FOUC after Nuxt 3.10.2 update

Environment

Operating System: Darwin
Node Version:     v20.11.0
Nuxt Version:     3.10.1
CLI Version:      3.10.1
Nitro Version:    -
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      devtools, css
Runtime Modules:  -
Build Modules:    -

Reproduction
I haven't been able to reproduce it in Stackblitz, but the following steps should work:

Create a new project
$ pnpx nuxi@latest init fouc

Create the following file assets/css/main.css:
body {
  background-color: greenyellow;
}

Change app.vue:

<template>
  <div>
    Hello world
  </div>
</template>

Add the file to nuxt.config.ts:
export default defineNuxtConfig({
  css: ['assets/css/main.css'],
})

Start the dev server and refresh the page multiple times:
$ pnpm dev

You will notice that there's FOUC in the body styles. It is much more prominent when there are multiple styles applied, or a tool like Tailwindcss is used.
If you fix the Nuxt version to 3.10.1 with the following change in package.json it works correctly:
"resolutions": {
  "nuxt": "3.10.1"
}

Describe the bug
FOUC for global css styles passed to nuxt.config.ts.
Additional context
I haven't been able to pinpoint the commit that causes this issue, but looking at the release notes of Nuxt 3.10.2 it might be related to the following PR:

Inline entry styles before component styles (https://github.com/nuxt/nuxt/pull/25749)

Logs
No response

I've noticed that this occurs on Windows and not Linux, with external and not inline styles, in dev and not in prod. Maybe this is related to Vite.

Yes, this is a vite issue. It will be resolved with https://github.com/vitejs/vite/pull/15919

This should be fixed in<EMAIL_ADDRESS>Thanks for the help debugging this regression @danielroe! ❤

This should be fixed in<EMAIL_ADDRESS>
Unfortunately, the issue still exists 🤔

@rylanharper you can pin a dependency using "overrides" or "resolutions" in your package.json file. Something like this should work while waiting for the next Nuxt release:
"resolutions": {
  "vite": "5.1.3"
}


Improve debugability

Improve on SchemaModel, Storage and import/export levels. Add logging.

https://github.com/okfn/datapackage-storage-py/issues/2


FACT-3100) fix disks fact

https://tickets.puppetlabs.com/browse/FACT-3100
Fix disks fact could not get serial bacause of using absolute path for lsblk.

Can one of the admins verify this patch?

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[DOCFIX]updates Chinese doc for common config

Updates Chinese doc for Common-Configuration.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/15424/
Test PASSed.


docs: update requiremenets

:tada: This PR is included in version 1.1.0-dev.10 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


CsvReporter should set separator in dependence of locale-dependent decimal separator

Using the CsvReporter for example with a German locale, results in a CSV file that uses the comma as separator between the columns but additionally also as decimal separator:
1502448484,100,1,081546,0,610664,0,441010,0,097851,0,596013,0,643630,0,794799,0,971580,1,080447,1,081546,11,095617,0,090692,24,310302,69,889724,calls/minute,milliseconds

In the line above it is not clear where each column starts.
As the JDK class DecimalFormatSymbols provides the decimal separator derived from the given locale, it should be possible to use a different char for the column separator.
In general it would be useful to be able to provide the separator char for columns as parameter to the CsvReporter builder.

Alternatively or additionally, double quote values that can potentially contain a comma. Can be fancy and just check the decimal formatter output on startup to see if it's going to generate comma producing values e.g. US locale wouldn't need double quote ever.


environment variables should be ignored if empty string

What version of the credhub server you are using?
it is reporting 0.0.0 from the CLI
What version of the credhub cli you are using?
2.1.0
If you were attempting to accomplish a task, what was it you were attempting to do?
Creating a concourse task that sets the CREDHUB-* environment variables to allow people to run credhub interpolate. We've specified them under params in out tasks, as empty/null values, which allows pipelines to override them.
What did you expect to happen?
CREDHUB_CA_CERT would be ignored if it was an empty string.
What was the actual behavior?
$ export CREDHUB_SERVER="https://example.com" CREDHUB_SECRET="secret" CREDHUB_CLIENT="concourse" CREDHUB_CA_CERT=""
$ credhub interpolate --prefix /pipeline/vsphere --file 'files/*.yml'
provided ca certs are invalid

Please confirm where necessary:

[x] I have included a log output
[x] My log includes an error message
[x] I have included steps for reproduction

@jtarchie The CredHub team discussed this and we believe that throwing an error when an environment variable is present but not set follows expected behavior. Therefore, we would like to maintain the current behavior in order to be consistent with other CLI's.


[IOTDB-1575] Tsfile valueFilter cannot handle multiple pages

cherry pick

#3780

Coverage decreased (-0.03%) to 67.223% when pulling c25b2850d7341d54b7694c8ba251bdfc7a3db980 on liutaohua:master into 582e742bbc8235514f1c5001019a1765edc37adb on apache:master.


false positives?

I'm seeing a lot of "dodgyphp" and such, as well as what appears to be false positives about a specific malware, "spyeye".
Is this to be expected?

Thanks for your swift response, is there a way to get more verbosity in the results? If the results could show the problematic block of code it would really speed up sifting through dozens of "DodgyPHP" warnings.
I've got an up to date WP site that appears to be possibly sending out E-mail spam, but the scan results were not conclusive and wordfence doesn't see anything, nor does sucuri or similar external scans.
The only indication I have that the site may be infected is that all the spam seems to connect to SMTPD from localhost, while "legitimate" traffic has external IPs.


Web ble testing

Hi,
I want to use web ble in my windows  laptop so i don’t know how parameters or what install thing in google chrome to connect a ble device in this navigator.
If i do i scan in a simple web ble scan i don't see ble periphericals i just see bluetooth simple.
So i think that i miss a configuration.
Need help.
Best regards

So i see for the 1 not running for me i done then and nothing seeing.
So I want to test the second me aim is just to seeing a peripherals ble in web ble app

So is possible to use it on mac os x ? what extensions installed ?

On mac (and Android) it should work out of the box, without installing anything. You just need Chrome.

I do a simple scan with your demo to see my ble pycom.
I see nothing ?? and when i do a scan using (n/f connect i see a peripheri)

So alright i created my simple code in js.
So if i want to use it in my phone samsung I copied the code and when i execute the button is off if i want to use it locally.

Excellent! This should work with Chrome browser on any recent Samsung device, as long as you have Android 6 or newer.
Samsung's own browser has also added Web Bluetooth support, but you will have to install their very latest release (6.4, released last week) for that: https://www.androidpolice.com/2018/02/19/samsung-internet-v6-4-stable-rolls-web-bluetooth-improved-download-manager/
Good luck!


Add "Recent Topics" view for streams

The interleaved message view is very confusing for new users. As a fix for this, we added Recent Topics, but this only prevents the top-level of interleaved messages — when a user clicks on a stream in the left sidebar, they're dropped into a interleaved view again.
Instead, we should allow Recent Topics to filter by stream, and then add a mode (and eventually enable it by default, if all goes well) where Recent Topics is the default view from clicking a stream on the left sidebar, or clicking a #**stream** link.
(cc @evykassirer, who suggested this to me)

Made a CZO thread for discussion as well.

As per the discussion, we decided to have this as a setting that the user can toggle. The setting would allow the user to filter the stream in recent topics by clicking on it in the left sidebar instead of narrowing to the stream messages.

This would also be great for zulip mobile - the top-level shows all unread streams similar to Recent Topics, but clicking back from a topic has brought me to the interleaved messages which has the same problem for me (idk if this should be filed as a separate ticket)

Another related CZO thread: https://chat.zulip.org/#narrow/stream/137-feedback/topic/give.20topics.20space

As noted in the above thread, in the Recent Topics stream view, we will probably have no need to show topics in the left sidebar. We should try it out to validate the UX.

Recently mentioned in https://chat.zulip.org/#narrow/stream/137-feedback/topic/stream.20topics.20view

yes

Closing in favor of an updated issue: #29574.


CRASH WHEN TRYING TO EAT IN A NEW WORLD

Every time I create a new world and try to eat something, the game just crash but when I rejoin the same world problem seems to dissapear and I can eat normally again.
crash-2024-08-31_16.51.53-client.txt

Can you upload your latest.log file from the logs folder when you crash and your editableedibles config file?

Yeah of course, here they are.
latest.log
(GitHub doesn't seem to support .cfg files but here I send what I did in the config file)
    # List of food items and if their default onFoodEaten handling should be cancelled
    # Format: String itemid, Int metadata (-1 for any), Boolean shouldcancel
    # Example: minecraft:chicken, -1, true
    S:"Food Default Effect Override" <
        minecraft:chicken, -1, true
        minecraft:rotten_flesh, -1, true
    >

    # List of food items with their effects and chance to be applied when eaten
    # Format: String itemid, Int metadata (-1 for any), String potionid, Int duration, Int amplifier, Boolean showparticles, Float
    chance
    # Example: minecraft:chicken, -1, minecraft:hunger, 120, 0, false, 0.25
    S:"Food Effects and Chances" <
        minecraft:beef, -1, minecraft:poison, 100, 0, true, 1.0
        minecraft:beef, -1, minecraft:nausea, 600, 0, true, 1.0
        minecraft:beef, -1, minecraft:instant_damage, 0, 0, true, 0.25
        minecraft:porkchop, -1, minecraft:poison, 100, 0, true, 1.0
        minecraft:porkchop, -1, minecraft:nausea, 600, 0, true, 1.0
        minecraft:porkchop, -1, minecraft:instant_damage, 0, 0, true, 0.25
        minecraft:mutton, -1, minecraft:poison, 100, 0, true, 1.0
        minecraft:mutton, -1, minecraft:nausea, 600, 0, true, 1.0
        minecraft:mutton, -1, minecraft:instant_damage, 0, 0, true, 0.25
        minecraft:chicken, -1, minecraft:poison, 100, 0, true, 1.0
        minecraft:chicken, -1, minecraft:nausea, 600, 0, true, 1.0
        minecraft:chicken, -1, minecraft:instant_damage, 0, 0, true, 0.255
        minecraft:fish, 0, minecraft:poison, 100, 0, true, 1.0
        minecraft:fish, 0, minecraft:nausea, 600, 0, true, 1.0
        minecraft:fish, 0, minecraft:instant_damage, 0, 0, true, 0.25
        minecraft:fish, 1, minecraft:poison, 100, 0, true, 1.0
        minecraft:fish, 1, minecraft:nausea, 600, 0, true, 1.0
        minecraft:fish, 1, minecraft:instant_damage, 0, 0, true, 0.25
        minecraft:rotten_flesh, -1, minecraft:poison, 200, 0, true, 1.0
        minecraft:rotten_flesh, -1, minecraft:nausea, 600, 0, true, 1.0
        minecraft:rotten_flesh, -1, minecraft:instant_damage, 0, 0, true, 1.0
    >

I am unable to reproduce the issue with a matching modlist and editableedibles config, so its possible it is another mods config option causing issues.
There are multiple errors in your log related to (I assume) Raw Mouse Input, VintageFix, Universal Tweaks, and RLMixins.
If you could try removing each mod to see if the crash goes away to try to narrow it down it would be appreciated, otherwise I think I would need a copy of your instance in order to debug further without just guessing.

Okay so after a few testing I found the problem. Seems to be an incompatibility with Alfheim Lighting Engine, here I send the log. If you can't find anything there maybe I should report it to Alfheim?
latest.log

Update: Okay it seems its not Alfheim, will continue testing but what I mention worked for a moment


[Improvement][AMS]: Database table structure reconstruction

Search before asking

[X] I have searched in the issues and found no similar issues.

What would you like to be improved?
1.Use table id instead of the full name of table
2.The table contaber_metadata should have name as the primary key
How should we improve?
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Subtasks
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Finished by #1372.


Upstream merge

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 7 committers have signed the CLA.:white_check_mark: undefined:x: Curtis Castrapel:x: castrapel:x: a-series-of-tubes:x: mcpeak:x: p3rzanov:x: mbaciu-gpswCurtis Castrapel, a-series-of-tubes seem not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.


Can it be used offline?

I tested this project and had a great experience, but I found that the final rendering is based on an online address.
Considering possible issues with speed and stability, I would like to inquire if it is possible to copy the code corresponding to the address and use it offline.

Regrettably, that's not possible because the core rendering engine is not open-source. The purpose of this library is to leverage some interfaces exposed by the online XMind Share website to load any user files. This way, we can better utilize the interface to customize the display content without needing to upload the files to the XMind Share server.

I supposse I can not use this viewer in an Intranet website behind firewalls. Am I right?

Firstly, you should check your Content Security Policy (CSP). If your website restricts the embedding of iframes from certain sources, it indeed won't load or function unless you allow xmind.app as a source for iframe loading.
Secondly, once you've confirmed that the loading of the iframe hasn't been blocked by the browser, if you're still unable to load the file, you should check whether your file is being correctly loaded and provided. This includes checking the file's CORS policy and whether it's a valid file format, etc.
If you're still encountering issues after going through the above checks, please provide the specific error details to us to slove the problem.

I think I must clarify the 'Intranet' concept. Our users are in a corporate private network. Our intranet servers are in that network and users can browse webpages served by them. But neither users nor servers can access the Internet. If a frame, library or anything is not pre-downloadable and installed in our intranet servers by our tech team, then it just will not work.

I think I must clarify the 'Intranet' concept. Our users are in a corporate private network. Our intranet servers are in that network and users can browse webpages served by them. But neither users nor servers can access the Internet. If a frame, library or anything is not pre-downloadable and installed in our intranet servers by our tech team, then it just will not work.

You are right, the embed viewer does not work without public network access, such as under a DMZ network etc. This is because it loads HTML and scripts from xmind.app.


[docs] Add elevation prop in AppBar

[ ] PR has tests / docs demo, and is linted.
[ ] Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
[ ] Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

I'm closing this PR for #3172 that sounds provide a scalable solution to the problem. Thanks for raising this issue.


docs: proposal for feature request template

This is an initial proposal for a feature request template. The purpose with this template is to improve the review process for both parties (reviewer and submitter).

Some example to get up on speed would be nice.

Just so i understand you correctly, you want an example underneath the headings in addition to the description that is provided? :)


TF 2.0 save/restore DenseFeatures

** Code **
Follwing this guide i created a model to classify structured data https://www.tensorflow.org/alpha/tutorials/keras/feature_columns :
feature_columns = []
headers = dataframe.columns.tolist()

# feature cols
for header in headers:
    temp = feature_column.numeric_column(header)
    feature_columns.append(feature_column.bucketized_column(temp, boundaries=[-89, -70, -65, -60, -55, -50, -40, -30, -20]))
    #feature_columns.append(temp) #old code used without buckets. only numeric columns

feature_layer = tf.keras.layers.DenseFeatures(feature_columns)

model = tf.keras.Sequential([
  feature_layer,
  layers.Dense(128, activation='relu'),
  layers.Dense(128, activation='relu'),
  layers.Dense(128, activation='relu'),
  layers.Dense(3, activation='sigmoid') #cambiare con il numero di zone
])

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Win10
TensorFlow version (use command below): 2.0.0 alpha
Python version: 3.6

Describe the behavior
Now when i try to save with the usual
model.save('path_to_my_model.h5')
i cannot restore the model since i get an exception:

Unknown layer: DenseFeatures

looking at some other https://github.com/tensorflow/tensorflow/issues/26835 posts  I tried with
tf.keras.experimental.export_saved_model(model, 'experimental.h5')
but here I get another exception:

init() missing 1 required positional argument: 'feature_columns'

Tried to restore using
for header in headers:
    temp = feature_column.numeric_column(header)
    feature_columns.append(feature_column.bucketized_column(temp, boundaries=[-89, -70, -65, -60, -55, -50, -40, -30, -20]))

feature_layer = tf.keras.layers.DenseFeatures(feature_columns)

new_model = tf.keras.models.load_model('guesser.h5',custom_objects={'DenseFeatures':feature_layer})

new_model.summary()

but it always give me the feature_columns error

Tried with 2.0.0-alpha on Colab and was able to get the mentioned output.

I tried with tensorflow-2.0.0beta1, the issue is still there.

I spent time debugging issue in load_model(). Here is my theory:

As for the error message "Unknown layer: DenseFeatures",  the problem happens with this line of code: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/layers/serialization.py#L82.
DenseFeatures class is not part of the dict returned by the call to globals().

This problem can be solved (not sure if it is a correct way) by adding the following import to serialization.py:
from tensorflow.python.feature_column.feature_column_v2 import DenseFeatures

After that, load_model() will complain about "init() missing 1 required positional argument: 'feature_columns'". This happens in the init of DenseFeatures class. I think the root cause is that feature columns information is not serialized in the saved model file or is not read from the file correctly. From the deserialized model_config dict, I don't see feature columns.

Could anyone from the team take a look?  Thank you.

Digging more on this. based on this commit: https://github.com/tensorflow/tensorflow/commit/cd09510f9218220b872803c9ee70ba1dcd8c0f45#diff-99593c5667932dcaa61fb3e1b4921cc1, it seems like @karmel was fixing this issue and the fix hasn't made it to tf2.0 beta1 yet?

Can you try using the TensorFlow format for saving and restoring?
# feature cols
for header in headers:
    temp = feature_column.numeric_column(header)
    feature_columns.append(feature_column.bucketized_column(temp, boundaries=[-89, -70, -65, -60, -55, -50, -40, -30, -20]))
    #feature_columns.append(temp) #old code used without buckets. only numeric columns

feature_layer = tf.keras.layers.DenseFeatures(feature_columns)

model = tf.keras.Sequential([
  feature_layer,
  layers.Dense(128, activation='relu'),
  layers.Dense(128, activation='relu'),
  layers.Dense(128, activation='relu'),
  layers.Dense(3, activation='sigmoid') #cambiare con il numero di zone
])

model.save('output_path', format='tf')

That should work with the beta, though the change in question may have missed the cut. If it doesn't work, try with the nightly 2.0 release: https://pypi.org/project/tf-nightly-2.0-preview/

With tf.version 2.0.0-dev20190724, I tried saving a model model.save('output_path', format='tf') with no luck. I used the keras functional api to build the model.

@cysmnl Can you post a standalone code to reproduce the issue? Thanks!

I am very confused about which API should I use: see this simple Colab example with different approaches of saving and restoring a tf.keras.Sequential model with feature_columns / DenseFeatures.

Save:
🧐 Saved with keras APIs.
🧐 Saved with keras APIs in SavedModel format.
😵 Could **not** save with export_saved_model: __init__() missing 1 required positional argument: 'feature_columns'
🧐 Saved with tf.saved_model.save.

Restore:
😵 Couldn't load model via tf.keras.models.load_model (without custom objects): Unknown layer: DenseFeatures
😵 Couldn't load model via tf.keras.models.load_model (with custom objects): __init__() missing 1 required positional argument: 'feature_columns'
😵 Couldn't load model via tf.keras.experimental.load_from_saved_model: keras_model_tf/assets/saved_model.json; No such file or directory
😵 Couldn't load model via tf.keras.models.load_model: Passing a dictionary input to a Sequential Model which doesn't have FeatureLayer as the first layer is an error.
🧐 Model restored via `tf.saved.model.load('keras_model_tf')`
   Accuracy: 95.00%
🧐 Model restored via `tf.saved.model.load('tf_saved_model/1/')`
   Accuracy: 95.00%

I am now quite unsure about where the issue is and what are the best practices for exporting and restoring in this case.

I am currently submitting a fix for this issue, which will allow DenseFeatures to be saved and loaded using Keras APIs (model.save and tf.keras.models.load_model).
The best practices can be summed up to:
If you are planning to load the model back into Keras, use the Keras APIs for saving and loading. If you're not planning on using the Keras APIs to further train the model, then tf.saved_model.save and tf.saved_model.load is sufficient.
I believe the docs need to be updated, as the experimental function tf.keras.experimental.export_saved_model is now deprecated.

@batikus Is this resolved? Please take a look at the feature_column tutorial. I could save the model in "tf" and ".h5" formats without any issue.  Please check the gist here. If you still have an issue, please provide a simple standalone code to reproduce the issue. Thanks!

I am closing the issue as it was resolved in tf-nightly-2.0-preview. Please feel free to open it if the issue persists again. Thanks!

I am currently submitting a fix for this issue, which will allow DenseFeatures to be saved and loaded using Keras APIs (model.save and tf.keras.models.load_model).

@k-w-w , does this fix cover tf.keras.experimental.SequenceFeatures as well?
I save model by tf.keras.models..save('MODEL_PATH.h5'). Then while loading model by tf.keras.models.load_model(MODEL_PATH.h5), I experience the similar error message as described in this issue:

Unknown layer: SequenceFeatures

I have not found separete issue for save\load problems concerning SequenceFeatures but my problem is reproduced in tensorflow 2.0.0-rc0 and 2.0.0b1 do not reproduced in tf-nightly-2.0-preview. It is not clear now open issue for SequenceFeatures or not.


chore: upgrade node12.x to node14.x

This PR updates our default Nodejs lambda runtime to node14

@johnpc this needs a rebase


Start changelog

I was going through the commits since the v2.0.0 release, and thought it might be helpful to start maintaining a changelog?
These entries represent the most significant un-released changes - as far as I could tell.

Thanks for this


I am proposing to delete completion phase

please cancel - test purposes only

Are you sure that you want to not go through with this change?

Verified with Jeff....can't delete it.  Cusotmers requested to see what happens to their data.


Cross compiling from Linux to Windows with disabled default features for std is giving error

I'm getting this error when trying to build with xargo with default std features off, I can compile just fine using normal cargo.
user@localhost:~/Documents/project> xargo build --release --target x86_64-pc-windows-gnu
error: couldn't copy /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/crt2.o to /home/user/.xargo/lib/rustlib/x86_64-pc-windows-gnu/lib/crt2.o
caused by: No such file or directory (os error 2)
note: run with `RUST_BACKTRACE=1` for a backtrace

The error is caused here:
https://github.com/japaric/xargo/blob/23c6fd206296548c179aa20e048f77626acf24fa/src/sysroot.rs#L67
You need to install the x86_64-pc-windows-gnu target, I think, to get those files? I am not an expert in Windows matters but I assume that xargo code was added for a reason.^^

I can compile just fine using normal cargo.

How are you building the standard library using normal cargo?

I'm not building the standard library using normal cargo and I've x86_64-pc-windows-gnu installed, otherwise I wouldn't be able to compile it using standard cargo.

I'm not building the standard library using normal cargo

Then what do you mean by "I can compile just fine using normal cargo"? I thought you meant building the standard library, now I am not sure.

I've x86_64-pc-windows-gnu installed

Hm, can you check if the file "crt2.o" exists anywhere in /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu? It used to be at /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/crt2.o but maybe it moved...

Looks like these days the files reside at
~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/self-contained/crt2.o
~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/self-contained/dllcrt2.o
~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/rsbegin.o
~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/rsend.o

FWIW, the PR that broke this is probably https://github.com/rust-lang/rust/pull/72999.

The pull request works. Thanks for your help.


Add flex-wrap to relation field display

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@0492484). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             main        #3   +/-   ##
========================================
  Coverage        ?   100.00%
========================================
  Files           ?        30
  Lines           ?      2543
  Branches        ?         0
========================================
  Hits            ?      2543
  Misses          ?         0
  Partials        ?         0

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Cyborg module action icons

About the PR

Makes the cyborg modules have icons in the HUD instead of being the boring module sprite.
Why / Balance

Easier to see what the modules are without having to click through all of them.
Technical details

Made a new BorgModuleIcon component that takes a RSI path and state to it. When a module with said component is installed it uses that icon in the HUD. Otherwise defaults to a new no-action state.
Media

Very subject to change. Some of those are still placeholders.

Requirements

[X] I have read and am following the Pull Request and Changelog Guidelines.
[X] I have added media to this PR or it does not require an ingame showcase.

Breaking changes

Changelog

:cl:

add: Cyborg modules now have icons instead of using the module sprite.

Sci, service and syndi ones left

It should be all good to go now

i'm jyst curious, why you didn't put this datafield in ItemBorgModule?

i'm jyst curious, why you didn't put this datafield in ItemBorgModule?

In all honesty, didnt realize I couldve
and PJB said making a component for this is totally fine


Algebraic Team Feedback

You also have several notebooks that are conflicting to merge, even though you shouldn't have done any work in them. See if you can fix that.

You also have several notebooks that are conflicting to merge, even though you shouldn't have done any work in them. See if you can fix that.

This is weird, we didn't modify all of those. what should we do?


carthage build failed on MMDB-iOS

Build Failed
	Task failed with exit code 65:
	/usr/bin/xcrun xcodebuild -project /Users/jiar/Desktop/iOS_Self/Link/Link/Carthage/Checkouts/MMDB-Swift/MMDB.xcodeproj -scheme MMDB-iOS -configuration Release -derivedDataPath /Users/jiar/Library/Caches/org.carthage.CarthageKit/DerivedData/MMDB-Swift/0.2.6 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build

Everything is working just fine. Make sure you have internet access.

MMDB-Swift issues 8

Fixed.

You can switch the network, try it a few more times, wifi should not work, 4G should try a few more times.

查看日志，是网络的问题。
/Users/yourname/Carthage/Checkouts/MMDB-Swift/update_database.sh脚本里有命令
curl -L -o $tmpfile http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz，我是在这里卡住了


renderer: ignore set cursor surface if cursor should be hidden

Describe your PR, what does it fix/add?
Fix https://github.com/hyprwm/Hyprland/issues/3698.
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
No.
Is it ready for merging, or does it need work?
Yes.

Updated.


feat(trackedFunction): first attempt at implementing a re-callable trackedFunction

Once the new resource is assigned to the old property, the function isn't recalled for some reason. I still have to figure out why though.


[RESOLVED with PR #42]#error:  "TODO: type_of_file() is not implemented for Windows"

Line 136 in common.c doesn't allow build in Windows. Is there a type_of_file() function for Windows available?

https://github.com/tsoding/ded/pull/42 resolved this issue


Streamline the create_view API, and update docstrings for globals.py and table.py

This change is


Fix #170: Add announcements for component life-cycle + unit tests.

Minor cleanup.

@ELePors Can you send your code into this branch?

@ELePors Can you send your code into this branch?

Up :)

@ELePors, @Eliott-Guevel is waiting for your commit. Thanks.

👍


Implement directory mapping and WASI file functions

Refactor the importing of WASI functions to be clearer.
Implement path_open, fd_seek, fd_read, environ_sizes_get, environ_get for file acces.
Implement the mapping of real directories to virtual ones so that WASI can use different directories.
Add flag '--mapdirs real:virtual' for mapping directories.
Add flag '--env' for sharing host envrionment variables.
Add flag '--help' for printing available walrus options.
Also improve random_get test to not have a result.

@clover2123
Of course, my sources:
https://github.com/WebAssembly/wasi-filesystem/blob/main/path-resolution.md
https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-overview.md - Section: Capability-Oriented
WASI by design has an idea, where for security reasons runtimes may not allow programs to freely move between host directories. By default they only allow files to manipulate in their own directories and in directories which they have handles to. Also, to obfuscate the system they are on, inside they use virtual directories like '/var' or '/home' which are actualy directories like 'home/user/walrus/test' for example.
I hope this is an acceptable answer!

The pr was closed by a mistake I caused while tinkering with Visual Studio. Reopened it now.


AttributeError: module 'keras.api._v2.keras.applications.imagenet_utils' has no attribute 'correct_pad'

mobilevit.ipynb
AttributeError                            Traceback (most recent call last)
Cell In[4], line 42
38     return keras.Model(inputs, outputs)
41 # AttributeError: module 'keras.applications.imagenet_utils' has no attribute 'correct_pad'
---> 42 mobilevit_xxs = create_mobilevit()
43 mobilevit_xxs.summary()
Cell In[4], line 10, in create_mobilevit(num_classes)
6 x = inverted_residual_block(
7     x, expanded_channels=16 * expansion_factor, output_channels=16
8 )
9 # Downsampling with MV2 block.
---> 10 x = inverted_residual_block(
11     x, expanded_channels=16 * expansion_factor, output_channels=24, strides=2
12 )
13 x = inverted_residual_block(
14     x, expanded_channels=24 * expansion_factor, output_channels=24
15 )
16 x = inverted_residual_block(
17     x, expanded_channels=24 * expansion_factor, output_channels=24
18 )
Cell In[3], line 16, in inverted_residual_block(x, expanded_channels, output_channels, strides)
13 m = tf.nn.swish(m)
14 if strides == 2:
15     # AttributeError: module 'keras.applications.imagenet_utils' has no attribute 'correct_pad'
---> 16     m = layers.ZeroPadding2D(padding=imagenet_utils.correct_pad(m, 3))(m)
17 m = layers.DepthwiseConv2D(
18     3, strides=strides, padding="same" if strides == 1 else "valid", use_bias=False
19 )(m)
20 m = layers.BatchNormalization()(m)
AttributeError: module 'keras.api._v2.keras.applications.imagenet_utils' has no attribute 'correct_pad'

@mikechen66 can you provide a repro for your issue?

@mikechen66 ,
I hope you are referring to mobilevit tutorial.I have replicated the issue reported and attached gist for reference. We will have a look into it.

Hi @mikechen66 ,
In TF2.13 there are some shufflings happened and also a part of making keras as multi backend. Our Dev team have used a package namex for better safegaurd of some of private utilities.
I have corrected the import to make it workable and attached gist here for reference. Basically I changed the import as below that make it works.
from keras.src.applications import imagenet_utils
I may raise a PR for changing the same in the tutorial. Thank you!


Packages installed with Pip, even when using Conda to create environments

I'm probably misunderstanding exactly what's going on.  Is conda used to do anything more than provision the base environment?  I have a requirements.txt file, as well as a conda recipe and  an environment.yml.  It seems that only the requirements.txt file is used, and it feeds Pip?  The problem that precipitates this issue is that one (implicit) dependency of mine is Scipy, which tries to build from source on OSX, and barfs due to lack of Fortran compiler.  I want to pull from a binary source (conda repositories, ideally)
I'd like to use the environment.yml, which is consumed by conda-env - perhaps this is an additional backend?  I'm happy to implement this if it would be of value to others.

Conda is used to provision the environment, based on the set of packages listed in asv.conf.json, so you should list the requirements you want to be present there.
Your project itself is however installed with pip, not with conda-build (cf gh-279).

Beautiful, thank you!  This is a little clunky to have to keep the ASV conf and the other dependency lists in sync, but it works just fine.


Extensible vue components?

What problem does this feature solve?
The idea is to create components which are able to extend another components templates.
Ofcourse the original components needs some breakpoints (or however they're called) where the extending component can join. For example the original components can define "blocks" which just have some content. A block as a name, a start and an end - somehow just a simple html tag.
Then the extending component is able to overwrite, prepend or append the block - identified by its name.
This would be useful if you want to build an extensible website to give developers the ability to extend your components without editing the components code itself - to keep it update-safe.
What does the proposed API look like?
OriginalComponent.vue
<template>

        <block name="container_body">
            Vue
        </block>

</template>

ExtendingComponent.vue
<extends file="path/to/OriginalComponent.vue">
     <block name="container" append>
           is awesome.
     </block>
</extends>

The rendered result then should look like:

    Vue is awesome.

Ofcourse, the ExtendingComponent.vue has to be imported somewhere (outside of the OriginalComponent.vue).
Thats just the basic idea of it. Ofcourse it could be extended to extend the vue components script - and so on.

Dup of #5401

:( fak


Revert .opensearch_dashboards index references to .kibana

Signed-off-by: David Cui<EMAIL_ADDRESS>Description
Revert .opensearch_dashboards index changes to .kibana
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.

[x] All tests pass, including unit test, integration test and doctest

[ ] New functionality has been documented.

[ ] New functionality has javadoc added
[ ] New functionality has user manual doc added

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Why do we revert? Do we have plan to rename it to opensearch_dashboards later?

Index name in OpenSearch-Dashboards was changed back to .kibana. https://github.com/opensearch-project/OpenSearch-Dashboards/pull/374


Import a Wallet failed

I uploaded my wallet named "Hot Wallet.json" from Linux Mint. This failed with error can´t load configs file.
For fixing the error I just rename the wallet to "Wallet.json" the error is might be from the spacebar between "Hot Wallet".

I'm seeing this too. Can you test an export/import on your linux mint machine? Maybe it's a bug in Wasabi, but I don't have a linux desktop to test this.

I checked it with Mint and had the same Bug😅
Wasabi don´t like spacebars.

Yea, I was just writing I got this on windows too. I'll submit a fix to wasabi repo.

https://github.com/WalletWasabi/WalletWasabi/issues/13475


Support for packer v1.7.0

Fixes #948.
Adds support for running packer init in Packer version >= v1.7.0. A few comments about this change:

This should be backwards compatible with Packer < v1.7.0.
All the example Packer template are converted to HCL. I've kept the JSON equivalents in the repo for now since the old format is still supported.
Introduces a new dependency, hashicorp/go-version. Hopefully this is low impact/low overhead.
It turns out that when downloading plugins, Packer will happily stomp all over itself, causing checksum problems and difficult-to-debug failure modes if multiple tests are running and using the same plugins (e.g. the hashicorp/amazon plugin) at about the same time. To mitigate this, Terratest will instruct Packer to download plugins to a temporary directory, then will clean up when finished. This behavior is the default, but users can set DisableTemporaryPluginPath to disable it if desired.
The empty S3 bucket tests were unreasonably slow, so I lowered the file count from 10,000 to 1,000. Hopefully that should still be a sufficient quantity to remain an effective test.

All comments & feedback welcome!

Thanks for the review. I've incorporated the feedback. Relevant tests are passing, but I notice that TestGitRefChecks/GetCurrentRefReturnsLightTagValue is failing with:
 git_test.go:56:
        	Error Trace:	git_test.go:56
        	Error:      	Not equal:
        	            	expected: "v0.0.1-1-g58d3ea8"
        	            	actual  : "v0.0.1-1-g58d3ea8f"

        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-v0.0.1-1-g58d3ea8
        	            	+v0.0.1-1-g58d3ea8f
        	Test:       	TestGitRefChecks/GetCurrentRefReturnsLightTagValue
    --- FAIL: TestGitRefChecks/GetCurrentRefReturnsLightTagValue (0.02s)

Is this a known testing error?

Is this a known testing error?

I don't think this is a known error given that it passed recently. I think this might be a new error caused by overlapping git commit SHA prefixes that caused it to require another character to differentiate that one?

Thanks! Relevant tests are passing. Will submit a new PR to fix the GetCurrentRefReturnsLightTagValue test.

Doh, I thought I'd found all the references. Opened https://github.com/gruntwork-io/terratest/pull/966 to fix.


Internal Server Error:No glyph for xxx font NotoSans-Regular

Am I allowed to add Thai text on the watermark? It doesn't work when I try to replace the NotoThai font file in Container.

Watermark doesn't support custom fonts right now, I will try add support


Remove Map.DeleteWithErrno()

We don't need separate Map.Delete() and Map.DeleteWithErrno() functions, there should just be Map.Delete():
https://github.com/cilium/cilium/blob/ef04e0f5e2e16c421942bfb18d01f34136b04ba6/pkg/bpf/map_linux.go#L826-L855
Instead, here, we should be able to use errors.Cause() and compare the original error against syscall.Errno(syscall.ENOSYS):
https://godoc.org/github.com/pkg/errors#Cause

@joestringer can we delete this and favor https://github.com/cilium/cilium/issues/8324 ?

@ianvernon uhhhh, weird! Yeah let's close this one.


Support Laravel 10.x

This pull request includes changes from your build using the "Shift Workbench".
Before merging, you need to:

Checkout the shift-build-4522 branch
Review all comments for additional changes
Thoroughly test your application (no tests?, no CI?)

Don't hesitate to send your feedback to<EMAIL_ADDRESS>or share your :heart: for Shift on Twitter.

:warning: Shift detected a dependency for the laravel/framework. Unless you have a special requirement for depending on the entire Laravel framework, it's recommended to add dependencies for the specific illuminate packages instead.


Change the Updated Hero Seciton

Fix Issue: #99
I fixed the hero section on the course page by updating the layout and adding new functionality. The changes include:
Search Bar Integration: Added a search bar to allow users to search for all available courses directly from the hero section.
Enhanced Layout: Improved the design and responsiveness of the hero section to provide a more interactive and user-friendly experience.

@saismrutiranjan18 pls resolve the conflicts.

Which conflicts can you tell me in details, so that i look and solve

@saismrutiranjan18

@vivekvardhan2810 Ok

@vivekvardhan2810 is the conflict resolved?

@saismrutiranjan18, it's coming like this while i check the preview, it's not looking good, pls make the changes.

okay i'll further do and try to solve your query @vivekvardhan2810

should you want to change whole page or only hero section of course page? @vivekvardhan2810

@saismrutiranjan18 fix the whole page.

it did not look like this before.

actually i fix the hero page only at that time okay no problem i'll fix the whole page for you now @vivekvardhan2810

@saismrutiranjan18 have you done, as the resolve conflicts are coming.

not yet working on the cards @vivekvardhan2810

Okay, @saismrutiranjan18 pls do it as soon as you can, as you can see the conflicts are coming.

ok @vivekvardhan2810

@saismrutiranjan18 have you completed the work. As the conflicts are coming.
pls do it.

@vivekvardhan2810

Working on the Card Formatting and integration of photo in the card with some description rather than have some work with footer as well, i try my best and try to complete as soon as possible

Yes, @saismrutiranjan18 please complete it as soon as you can, as the issues are coming related to course page, so that's why

Yes, @saismrutiranjan18 please complete it as soon as you can, as the issues are coming related to course page, so that's why, as i am holding the course page related issues so long time and contributors are asking to assign me.

OK @vivekvardhan2810 I try to complete today onwards and try my best

Yes, @saismrutiranjan18 please complete it as soon as you can, as the issues are coming related to course page, so that's why, as i am holding the course page related issues so long time and contributors are asking to assign me.
@Is the card alignment all good and do you want some changes?

@vivekvardhan2810 I Completed all things are you there please look all those changes and what you want to change please tell me as soon as possible i make changes accordingly

These are all changes!

@saismrutiranjan18 pls resolve the conflicts.

@saismrutiranjan18 pls resolve the conflicts and add the code, then i will review it.

@vivekvardhan2810 Ok


JSON Server data convert

Hello i added an plugini and ran an application. Thank you.
Server is running and listening in this application...
I can see output when I send a post request with postman.
In the following code, how can I make an incoming requestin format in json and how to extract a json sent from an incoming query ?
server = TcpSocket.createServer((socket) => {
this.updateChatter('server connected on ' + JSON.stringify(socket.address()));
        socket.on('data', (data) => {
         console.log(data)
            this.updateChatter('Server Received: ' + data);
        });

This could be a way of doing it. However, it is a bit unsafe if you are getting two messages from the same socket too close in time.
socket.pool = '';
socket.on('data', (data) => {
      socket.pool += data;
       try {
            // Once the message is completed
            const response = JSON.parse(socket.pool);
            socket.pool = '';
            this.updateChatter('Server Received: ' + response);
       } catch (error) { } // Loop until the JSON is complete
});

Thanks for your quick answer.
I guess I couldn't tell my question here.
For example: <IP_ADDRESS>:5556 creating a server. I'm sending a post request to this server with postman.
And the query falls here:
socket.on('data', (data) => {
console.log(data)
});
data format: Uint8Array
I would parse it and get the following output:
I was wondering if I could convert the data content to json format and use it as data.body and just get the MySendData part.
POST / HTTP/1.1
User-Agent: PostmanRuntime/7.18.0
Accept: /
Cache-Control: no-cache
Postman-Token: 0203483a-b5ec-4c11-a3a0-a54daec0ce4c
Host: <IP_ADDRESS>:5556
Accept-Encoding: gzip, deflate
Content-Length: 31
Connection: keep-alive
{
"MySendData":"DataContent"
}

Sorry, I didn't understand the question. socket.on('data') is called each time a byte or a bunch of bytes are received from the client socket. If you are planning to receive big chunks of data (like HTTP), you should think of socket.on('data') like a loop and create your logic around that. If you are only working with HTTP, you can use Content-Length: 31 to detect the size of the message and act accordingly.
However, since your question is outside the scope of this library, I would recommend you to ask it in StackOverflow.

your questtion like websocket,not tcp-socket


UnicodeDecodeError in raven.utils.json.dumps

DjangoClient.get_data_from_request sets query_string = request.META.get('QUERY_STRING'). That string will be a latin-1 encoded string, and sometimes with values that can't be decoded to utf-8 (for instance when the request is sent from IE), which causes a crash in simplejson.iterencode.
The code should instead use get the query from the uri, or from request.get_full_path().

Bumping again the issue, missed the previous timeframe.


cmd/go: mod tidy takes excessive wall & CPU time statting irrelevant files

Version: go1.14.2, Repro on latest release: Yes. OS/Arch: Ubuntu 18.04 and amd64.
What did you do?
Ran go mod tidy on a directory where go mod tidy had already been run.
(In the top level of a go module which also happens to be a deeply nested directory tree with millions of XML files)
What did you expect to see?
An instant result.
What did you see instead?
24s wall & 13s CPU.
Discussion
Running strace reveals that go mod tidy is doing a stat-like system call to every file under my directory tree, which includes very many (millions) of irrelevant xml files in a deeply nested directory tree within my go module. My expectation is that Go would ignore these files. Maybe it has to read the directory entry, to discover go files or so, but it shouldn't do more work than that.
This bug currently renders vscode unusable because it frequently runs go mod tidy, and the net result is that I end up with hundreds of go mod tidy processes all contending to see who amongst them can stat files the fastest.
My initial workaround was to run pkill -cf 'go mod tidy' in a loop, but @jayconrod informs me that go tooling will ignore directories beginning with _ or ., so I will probably use that workaround for now.
/cc @bcmills @matloob @jayconrod

tidy walks the file system tree in the main module to find packages. Depending on the operating system, it may not need to stat every file during that walk, since we mostly just need to know whether something's a file or directory. There's probably opportunity for optimization here.

Taking a stack dump with ctrl-\ shows the offending call to filepath.Walk, which obviously populates os.FileInfo using stat. I guess this would require some other walking logic.
https://github.com/golang/go/blob/f092be8fd839f5e61745c1b7f3b5990b4b8d6565/src/cmd/go/internal/modload/search.go#L47
https://github.com/golang/go/blob/f092be8fd839f5e61745c1b7f3b5990b4b8d6565/src/cmd/go/internal/modload/search.go#L156
https://github.com/golang/go/blob/f092be8fd839f5e61745c1b7f3b5990b4b8d6565/src/cmd/go/internal/modcmd/tidy.go#L45

Following a conversation with @bcmills, he suggests https://godoc.org/golang.org/x/tools/internal/fastwalk which avoids all the stat calls.
I'm unlikely to be able to submit a patch for this, as much as I want to.
I did try out fastwalk quickly (protecting 'have' with a mutex), and found there is yet another thing which does a readdir:
https://github.com/golang/go/blob/f092be8fd839f5e61745c1b7f3b5990b4b8d6565/src/cmd/go/internal/imports/scan.go#L18
https://github.com/golang/go/blob/f092be8fd839f5e61745c1b7f3b5990b4b8d6565/src/cmd/go/internal/modload/search.go#L98

OK, I think I succeeded at testing fastwalk and using fastwalk instead of readdir. It reduces the runtime to 1s wall + 1.5 CPU + 0.9s sys. GNU find by comparison takes 0.8s+0.3s+0.5s. So the CPU cost isn't fantastic but it's still better than it was.
I still care about the battery usage of so many go mod tidy instances in vscode, and given how many processes there are lying around to kill it seems like there is an appreciable amount of CPU time being used over time, even with my fix /cc @stamblerre on that point.

I definitely think that commands like go mod tidy should be faster, but I also wonder if gopls could do better here given that it's a long-running daemon. Watching an entire module for file changes is tricky, but surely there is a way we can avoid walking the entire module over and over.

go mod tidy should only be necessary if it is possible that the module has become untidy.
In general, we try to make all go commands tidiness-preserving, so if the module was already tidy to begin with, it should only have become untidy if either:

some package has changed, in which case go list -deps -test on that package should suffice (rather than a full tree walk), or

some dependency has changed (due to running go build or go test on a package outside the main module, an explicit user edit to the go.mod or go.sum file, or an aforementioned change in some package), all of which we can detect by watching for changes in go.mod and go.sum alone.

(So, you may want to open a separate issue against gopls.)

If I remove the last dep on a module from my project, how would gopls use go list -deps -test to discover that the module is now unused?

If I remove the last dep on a module from my project, how would gopls use go list -deps -test to discover that the module is now unused?

If you have a cached invocation of go list -deps -test for that package, then you could notice that that dependency is removed by a later edit, and (perhaps) also notice that that dependency is not present in the output of go list -deps -test for any other package in the module.
Or, you could use the change in package dependencies to trigger a go mod tidy run, but more conservatively than for the whole module on ~every edit.

Or, you could use the change in package dependencies to trigger a go mod tidy run, but more conservatively than for the whole module on ~every edit.

We run it on saved changes to the go.mod file and on changes to imports that are saved on disk. We can probably optimize it further, but I think the gopls issue is probably a cancellation bug.

(That is now #38816)

The use of fsys package introduced by CL 261537  dramatically sped up go mod tidy when actual work is involved.
Below is a comparison for tests scripts run with go test -run=TestScript/.*tidy.* -v cmd/go using go1.15.6 and  on tip (go version devel +be9379f8a8 Sat Dec 5 12:36:42 2020 +0000 windows/amd64).

PASS: TestScript
3.25s
0.02s
-99%

--- PASS: TestScript/mod_indirect_tidy
5.31s
0.59s
-89%

--- PASS: TestScript/mod_tidy_cycle
0.29s
0.66s
+128%

--- PASS: TestScript/mod_tidy_error
2.49s
3.22s
+29%

--- PASS: TestScript/mod_tidy
1.22s
0.35s
-71%

--- PASS: TestScript/mod_tidy_old
-
14.65s
N/A

--- PASS: TestScript/mod_init_tidy
-
0.68s
N/A

--- PASS: TestScript/mod_tidy_quote
24.49s
12.52s
-49%

--- PASS: TestScript/mod_tidy_sum
26.17s
16.40s
-37%

--- PASS: TestScript/mod_tidy_replace
27.36s
15.94s
-42%

It seems that the concern raised in this issue has been answered.

@iWdGo I don't think that's expected. The fsys package is a wrapper around native file system calls. It can change which files we read (based on the -overlay flag), but it shouldn't affect performance significantly.
@matloob Have you seen speed differences in these tests? I wonder if that's actually caused by that CL or something else?

@jayconrod, the switch from Walk to WalkDir in CL 267719 could have sped things up.
@iWdGo, how confident are you that the improvement was observed as of CL 261537 as opposed to CL 267719?

@bcmills I thought similarly when posting. Bisect-ing up to the root of go1.16 CL 248038 did not show anything relevant.
After installing go1.15.5 and go1.15.6 as sdk's, the performance change is obvious:

go versions
go1.15.5
go1.15.6
%

--- PASS: TestScript/mod_tidy_sum
13.03s
24.19s
+85%

--- PASS: TestScript/mod_tidy_replace
17.46s
27.20s
+55%

go1.15.6 does not contain commits related to cmd/go as I understand. The performance change reported above might not be specific to go mod tidy.

Many changes later, the main performance problem seems solved on tip.
>gotip version
go version devel go1.18-ee91bb8319 Tue Sep 14 02:53:17 2021 +0000 windows/amd64

go versions
go1.15.5
go1.15.6
go1.17.1
gotip

--- PASS: TestScript/mod_tidy_sum
13.03s
24.19s
26.30s
15.29s

--- PASS: TestScript/mod_tidy_replace
17.46s
27.20s
27.47s
14.44s

Sounds like this is fixed.


Allow serializing more complex enums

I have an enum I'd like to serialize that looks like this:
#[derive(Debug, Deserialize, Serialize)]
#[serde(tag = "type")]
#[repr(u8)]
pub(crate) enum CustomViewOptionType {
    ByMonth { year: u16, month: u8 },
    ByYear { year: u16 },
    Range { start: NaiveDate, end: NaiveDate },
    Last30Days,
    All,
}

Running this through serde_json, you get something like
{ "type": "ByMonth", "year": 2018, "month": 6 }

What I want to end up with is instead
{ "type": 0, "year": 2018, "month": 6 }

Despite the #[repr(u8)], which the Rust compiler happily accepts for my non-unit enum, serde-repr tells me
error: must be a unit variant
   --> src\models.rs:244:5
    |
244 |     ByMonth { year: u16, month: u8 },
    |     ^^^^^^^

but I don't want a unit variant. I just want the enum tag serialized as a number rather than as text. What can I do?

This is a duplicate of #6.


Kinesis Elasticsearch Sink: add option to get config from DynamoDB

migrated to: snowplow/snowplow-elasticsearch-loader#20


Add missing prometheus services.

This will fix scraping metrics from kube-scheduler and kube-controller-manager in non-kubemark clusters.
Ref. https://github.com/kubernetes/perf-tests/issues/503

/assign @krzysied

/lgtm
/approve


Add missing regions to all services

I changed the way of populating the service backends to the newer boto3 function, so all supported regions (plus Gov and China) for the specific service are available for the user.
I hope I didn't miss any service :)
Fixes #2649
Fixes #1760
Fixes #2656

Coverage decreased (-0.07%) to 93.949% when pulling d7ba355a65f17664c56a7fedd7423a16605f2469 on gruebel:add-missing-regions into b8a1f85285fe28039da64005255e2c4488bc8764 on spulec:master.

I adjusted the tests to just check if there are more than one region. If you want me to do it differently, just give me a hint and I will adjust them.

Thanks for this. As @mikegrima’s suggestions are now incorporated I’ll merge this


[SDK Automation - Python] Enable breaking change detection for DPG & MPG

We will keep the same contract using in MPG to detect/present the breaking changes in the SDK automation CI framework.
@msyyc

more details are in https://github.com/Azure/autorest.python/issues/2354

As synced with @msyyc offline, we will keep this issue open for further testing effort tracking.

@msyyc is this task fully completed? How about the task of adding allowlist for services to enroll breaking changes detection? Can you link the related task? Thanks.

@raych1 - MPG is done.

For DPG, we plan to use allowlist. If there is service wants breaking detection, the package name shall be added here.

@msyyc do you have ETA for DPG?

It is already done. Breaking change detection is already enabled to some of data-plane SDK (e.g. "azure-ai-contentsafety", "azure-ai-vision-face") and we plan to enable more DPG SDKs gradually.

Is adding package name to the allow list a manual or auto step? Can we enable detection by default for DPG that generated by codegen? Is it done? https://github.com/Azure/azure-sdk-for-python/issues/37871

Both manual and auto step is OK. https://github.com/Azure/azure-sdk-for-python/issues/37871 is not yet and I plan to finish it this sprint.

Both manual and auto step is OK. Azure/azure-sdk-for-python#37871 is not yet and I plan to finish it this sprint.

@msyyc is this remained work completed?

Both manual and auto step is OK. Azure/azure-sdk-for-python#37871 is not yet and I plan to finish it this sprint.

@msyyc is this remained work completed?

You could close this issue.


Room join regex is too strict

#twitter@matrixdotorg:t2bot.io is a valid room alias but not accepted in the room join dialog box
Equivalent of https://github.com/vector-im/riot-android/issues/2079

I was able to join #_twitter_@matrixdotorg:t2bot.io on Riot iOS 0.6.20

True. Contrary to Riot-Android, Riot-iOS does not validate strings sent to the join request.
The bug will appear on the display. Links will not be created for such room aliases.


UI: Blog cards become small width for mobile, no constant height and Link in Image

Description

The blog card Section in https://smp-spec.io/blog/ becomes small widthwise, which looks bad on mobile screens.

Also, in order to read the content of the blog, the link is given in the Image section (Not to that whole card), on a small screen these images also become smaller so hard to find the "read more" link.
There is no constant height to cards on the desktop view.
Expected Behavior

The width of blog cards (Including Images) on the mobile screen view should be good enough to look UI more appealing.
The height of blog cards on Desktop, as well as mobile screens, should be constant or fixed or the same sized so that all the cards will look familiar and responsive.
able to read a blog by clicking anywhere on the card (current UI has a link in its image/thumbnail). On a small screen, it is hard to find the link.
Text Overflow in blog cards as given in this issue

.
Screenshots

Contributor Resources
The meshery.io website uses Jekyll and GitHub Pages. Site content is found under the master branch.

See the Contributing to Meshery.io Website section of the readme.md and other contributing instructions, too.
See Meshery site designs in this Figma designfile. Fill-in the Layer5 Community Member Form and join the Layer5 Community Slack for access.

Just one doubt that if we fix the height on desktop and mobile then it won't make much sense to change the width. Just need a little clarification on this doubt and could you assign this issue to me?

Just one doubt that if we fix the height on desktop and mobile then it won't make much sense to change the width. Just need a little clarification on this doubt and could you assign this issue to me? @mayurjadhav2002

Hey, Can I work on it?

Hey, Can I work on it?

@leecalcote

Hey hii @sahilyeole, I appreciate your engagement and efforts to work on this issue. I wanted to solve this issue so I started working on this. But I am not officially assigned. So, it would be good if you too start working and come up with an efficient solution.

Thank you, @mayurjadhav2002 and @sahilyeole. // @asubedy

Hey hii @sahilyeole, I appreciate your engagement and efforts to work on this issue. I wanted to solve this issue so I started working on this. But I am not officially assigned. So, it would be good if you too start working and come up with an efficient solution.

Yeah, no problem. Please proceed :)

Hii, @leecalcote fixed this issue and send PR.

@asubedy
yay, @mayurjadhav2002 🎈


[WinUI 3] TabView as TitleBar: TabStripFooter glitches out when maximizing Window

Describe the bug
When my TabView acting as my TitleBar reaches 8+ TabViewItems, maximizing/snapping causes the TabView.TabStripFooter (which I set to be the TitleBar) to behave unexpectedly. For very small time frame, on maximizing the window, the TabStripFooter moves to the middle of the screen and then immediately snaps to it's expected position. This causes the drag area of the window to move to the middle, resulting loss of control of the headers in that certain area, since the api thinks the drag region should be there. I've changed the color of the TabStripFooter to red to make this bug visible.
Note: the bug does not occur when manually resizing the window. Only maximizing/snapping causes the bug.
Steps to reproduce the bug

Create a blank WinUI 3 project
Add a TabView inside of MainWindow.xaml
Add 8+ Items in the TabView
Create a TabStripHeader and TabStripFooter
Set the minimum width of the TabStripFooter to 188 and the background color to red
Set the TabStripFooter as the TitleBar inside of the MainWindow.xaml.cs constructor
Set ExtendsContentIntoTitleBar = true inside of the MainWindow.xaml.cs constructor
Start the application and maximize the window
Try moving the window in the middle/try controlling TabViewItem headers in that area

Expected behavior
The TabStripFooter should stay where its supposed to be on maximizing not overdrawing the TabViewItem headers
Screenshots
https://github.com/microsoft/microsoft-ui-xaml/assets/62474166/9d02e654-6aed-4475-ac8e-f02df4ba63fc
NuGet package version
WinUI 3 - Windows App SDK 1.4.0: 1.4.230822000
Windows version
Windows 11 (22H2): Build 22621
Additional context
MainWindow.xaml

<TabView x:Name="TabViewMain">

    <TabViewItem Header="Test"/>
    <TabViewItem Header="Test"/>
    <TabViewItem Header="Test"/>
    <TabViewItem Header="Test"/>
    <TabViewItem Header="Test"/>
    <TabViewItem Header="Test"/>
    <TabViewItem Header="Test"/>
    <TabViewItem Header="Test"/>

    <TabView.TabStripHeader>
        <Grid x:Name="ShellTitlebarInset" Background="Transparent"/>
    </TabView.TabStripHeader>
    <TabView.TabStripFooter>
        <Grid x:Name="CustomDragRegion" Background="Red" MinWidth="188"/>
    </TabView.TabStripFooter>
</TabView>

MainWindow.xaml.cs:
using Microsoft.UI.Xaml;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.

namespace BugTest
{
    /// <summary>
    /// An empty window that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class MainWindow : Window
    {
        public MainWindow()
        {
            this.InitializeComponent();
            this.SetTitleBar(CustomDragRegion);
            this.ExtendsContentIntoTitleBar = true;
        }
    }
}

At this time you are responsible for calling AppWindow.TitleBar.SetDragRectangles when required to update the non-client area.
WASDK 1.4 introduced Microsoft.UI.Input.InputNonClientPointerSource to replace SetDragRectangles, but I haven't tried using it yet.


Issue with k8s.io/docs/tutorials/configuration/configure-java-microservice/configure-java-microservice-interactive/

Hi,
In my case the two maven module can not be built so it is not possible to follow the tutorial ....

Hi @bgranier, can you post the full error here as it can be fully understandable?
Related doc - https://kubernetes.io/docs/tutorials/configuration/configure-java-microservice/configure-java-microservice-interactive/
/language en
/priority awaiting-more-evidence

Hi,
With pleasure (french idioms) here is the trace 👍
[ERROR] Failed to execute goal com.spotify:dockerfile-maven-plugin:1.4.10:build (default) on project system: Could not build image: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

This is a duplicate of issue https://github.com/kubernetes/website/issues/37994
/triage duplicate
/remove-priority awaiting-more-evidence

Per this comment, I am closing this issue. Thanks!
/close


disable dynamodb data source when not needed

dynamodb is not supported in govcloud so this module will always fail to run.  Setting count to false allows this to run correctly.

Thanks for the code. Are you sure that DynamoDB is not supported in GovCloud? Could you try it with this module?
According to AWS documentation DynamoDB is actually supported in GovCloud, but I agree to turn it on/off should be optional.


0.7.0 build issue

Hi @jettro,
Thanks for getting this release out. Grunt wiredep is adding the c3js-directive.js (0kb) file as a dependency to the index.html with this new build. I noticed some refactoring was done and the concatenated file is not listed as the main in the bower.json [ "main": "c3js-directive.js",] file. Could you update it please?

I think I fixed it, created release 0.7.1


Formating styles errors

If user select text with a space on the end of the selection, all text after selection will be formated according to chosen rule

If user select text with a space on the start of the selection, the chosen rule is not be applied to text

Can you reproduce this with https://simplemde.com/?

I recommend using Vditor instead of simplemde, About angular version for @ng-util/markdown

No, i can't


Better alignment handling

Stop doing aligning on 2 layers, only do it in ndctl
and align rounding up there. In pmem-device-manager
layer make sure that size what we ask is at least 2GB.
Adding "get interleve ways" function in ndctl layer so that
namespace creation function can adjust to real alignment value.
Resolves #348

The first commit handles the align part. Another commit is needed to fix reporting back part

I addressed all (I hope) points from recent review round, pushed new version

Testing in direct mode is taking a long time: https://cloudnative-k8sci.southcentralus.cloudapp.azure.com/job/pmem-csi/view/change-requests/job/PR-349/

yes I notice  that too, but it's not easy to see where time goes/went, when I look to log text of that direct stage, it covers 18:09....18:29 i.e. approx 30 min, but stage itself has been running for 2h:30 already:
testing 1.14 direct

2h 30m 54s

(whole CI cycle now 3h24min)
Did I miss something.


Update and enhancement the command line

This PR is for removing the spatie/php-structure-discoverer and using the Finder from Symfony

Thanks for the PR! Tests are failing 👍

Hi @stevebauman, I fixed the issue and you can run the workflow again


Refactoring of package activity

It mostly looks awesome, aside from any comments I left. However, I'm not that versed in SQL, so I can't really review the activity query. You might want to ask @zalun, or someone else in #webdev.


Add Documentation on setting Flask

Type
Advancement
Description
Create a Documentation File using Markdown and add it into a specific Documentation/ directory to allow new contributors to get started with setting Flask. The features to be added in the documentation includes:

Give a basic idea about Flask as a Micro Web-Framework.
Give a step-wise plan of setting Flask on Windows/Linux/OSX Environment.
Add Screenshots wherever possible.
Add a sample Flask Code with a mock endpoint to show the Server up and running.

Tools
Markdown
Python
Pip/Conda
Have you read the Contributing Guidelines on Pull Requests?
Yes
Motivation
To contribute to the Wiki of this Project in the longer run.

I was interested to contribute. Please assign this task.

Go ahead @Satishcsg . Assigning you the issue.

could you tel me where would I have to include documentation file in the project ?

Could you tell me where would I have to include this markdown file ? Is it like create a new folder and and placing the md file in that folder. If it so, what name should be given to that folder ?


Add a method ClassSymbol.sealedChildren.

OK, I made it a List and added guarantees about the ordering in the documentation.


Multiple GPUs on training

💡 Your Question
I have two available GPUs to try and train my model, but I have no luck finding the right training parameter to enable it.
train_params = {
    # ENABLING SILENT MODE
    "MultiGPUMode": "DP",
   # "resume":True,
    "average_best_models":True,
    "warmup_mode": "linear_epoch_step",
    "warmup_initial_lr": 1e-6,
    "lr_warmup_epochs": 3,
    "initial_lr": 5e-4,
    "lr_mode": "cosine",
    "cosine_final_lr_ratio": 0.1,
    "optimizer": "AdamW",
    "optimizer_params": {"weight_decay": 0.0001},
    "zero_weight_decay_on_bias_and_bn": True,
        "ema": True,
    "ema_params": {"decay": 0.9, "decay_type": "threshold"},
    "max_epochs": 20,
    "mixed_precision": True,
    "loss": PPYoloELoss(
        use_static_assigner=False,
        num_classes=config.NUM_CLASSES,
        reg_max=16
    ),
    "valid_metrics_list": [
        DetectionMetrics_050(
            score_thres=0.1,
            top_k_predictions=300,
            num_cls=config.NUM_CLASSES,
            normalize_targets=True,
            post_prediction_callback=PPYoloEPostPredictionCallback(
                score_threshold=0.01,
                nms_top_k=1000,
                max_predictions=300,
                nms_threshold=0.7
            )
        )
    ],
    "metric_to_watch"<EMAIL_ADDRESS>}

These are the training parameters that I use, I've tried "MultiGPUMode": "DP",     "MultiGPUMode": "AUTO", also "multi_gpu": "AUTO", but after I start training I get the same message:
[2023-06-16] INFO - sg_trainer_utils.py - TRAINING PARAMETERS:
    - Mode:                         Single GPU
    - Number of GPUs:               1          (2 available on the machine)
    - Dataset size:                 9245       (len(train_set))
    - Batch size per GPU:           8          (batch_size)
    - Batch Accumulate:             1          (batch_accumulate)
    - Total batch size:             8          (num_gpus * batch_size)
    - Effective Batch size:         8          (num_gpus * batch_size * batch_accumulate)
    - Iterations per epoch:         1155       (len(train_loader))
    - Gradient updates per epoch:   1155       (len(train_loader) / batch_accumulate)

[2023-06-16  INFO - sg_trainer.py - Started training for 20 epochs (0/19)

There is a link in the documentation on how to use multiple GPUs, but it is empty.
What parameter should I enter for multiple GPU support?
Versions
No response

You can refer to documentation to set up your config accordingly:
https://docs.deci.ai/super-gradients/documentation/source/device.html#4-ddp-distributed-data-parallel
Please note, that running DDP from the Colab/Jupyter is theoretically possible, but tricky and is not covered in documentation.
For DDP we suggest to use regular python scripts and recipes (you for sure can have your own) and run them in one of ways:

https://github.com/Deci-AI/super-gradients/blob/master/src/super_gradients/recipes/roboflow_yolo_nas_s.yaml#L7
Have your own train.py file similar to this: https://github.com/Deci-AI/super-gradients/blob/master/src/super_gradients/train_from_recipe.py

Hope this answers your question. Let us know whether this resolves your issue.

Thank you for the fast reply,
I will surely look into it.

Waiting for a simple answer.
Please paste some code that works.
Thank you

I have the same issue...working with super-gradients version 3.6.0
set up the trainer with the magic function setup_device(multi_gpu='DP', num_gpus=2)
but it seems like it is still not recognizing all the GPUs...
- Mode:                         DATA_PARALLEL
    - Number of GPUs:               1          (2 available on the machine)
    - Full dataset size:            19970      (len(train_set))
    - Batch size per GPU:           48         (batch_size)
    - Batch Accumulate:             1          (batch_accumulate)
    - Total batch size:             48         (num_gpus * batch_size)
    - Effective Batch size:         48         (num_gpus * batch_size * batch_accumulate)
    - Iterations per epoch:         416        (len(train_loader))
    - Gradient updates per epoch:   416        (len(train_loader) / batch_accumulate)
    - Model: YoloNAS_L  (66.91M parameters, 66.91M optimized)
    - Learning Rates and Weight Decays:
      - default: (66.91M parameters). LR: 0.033 (66.91M parameters) WD: 0.0, (84.69K parameters), WD: 0.0005, (66.82M parameters)

and getting this error:
Traceback (most recent call last):
  File "/home/yolonas/yolonas_project_template.py", line 153, in <module>
    trainer.train(model=model,
  File "/usr/local/lib/python3.10/dist-packages/super_gradients/training/sg_trainer/sg_trainer.py", line 1521, in train
    train_metrics_tuple = self._train_epoch(context=context, silent_mode=silent_mode)
  File "/usr/local/lib/python3.10/dist-packages/super_gradients/training/sg_trainer/sg_trainer.py", line 500, in _train_epoch
    outputs = self.net(inputs)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/parallel/data_parallel.py", line 186, in forward
    return self.gather(outputs, self.output_device)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/parallel/data_parallel.py", line 203, in gather
    return gather(outputs, output_device, dim=self.dim)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/parallel/scatter_gather.py", line 104, in gather
    res = gather_map(outputs)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/parallel/scatter_gather.py", line 99, in gather_map
    return type(out)(map(gather_map, zip(*outputs)))
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/parallel/scatter_gather.py", line 99, in gather_map
    return type(out)(map(gather_map, zip(*outputs)))
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/parallel/scatter_gather.py", line 99, in gather_map
    return type(out)(map(gather_map, zip(*outputs)))
  [Previous line repeated 1 more time]
TypeError: 'int' object is not iterable
Traceback (most recent call last):
  File "/home/yolonas/yolonas_project_template.py", line 153, in <module>
    trainer.train(model=model,
  File "/usr/local/lib/python3.10/dist-packages/super_gradients/training/sg_trainer/sg_trainer.py", line 1521, in train
    train_metrics_tuple = self._train_epoch(context=context, silent_mode=silent_mode)
  File "/usr/local/lib/python3.10/dist-packages/super_gradients/training/sg_trainer/sg_trainer.py", line 500, in _train_epoch
    outputs = self.net(inputs)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/parallel/data_parallel.py", line 186, in forward
    return self.gather(outputs, self.output_device)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/parallel/data_parallel.py", line 203, in gather
    return gather(outputs, output_device, dim=self.dim)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/parallel/scatter_gather.py", line 104, in gather
    res = gather_map(outputs)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/parallel/scatter_gather.py", line 99, in gather_map
    return type(out)(map(gather_map, zip(*outputs)))
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/parallel/scatter_gather.py", line 99, in gather_map
    return type(out)(map(gather_map, zip(*outputs)))
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/parallel/scatter_gather.py", line 99, in gather_map
    return type(out)(map(gather_map, zip(*outputs)))
  [Previous line repeated 1 more time]
TypeError: 'int' object is not iterable

@motidil I'm also having the same problem, did you find a fix?

@icaroryan unfortunately not yet...

This seems to give a bit more information.
multi_gpu=MultiGPUMode.DISTRIBUTED_DATA_PARALLEL
And there too.

In this notebook multi-gpu training is set as OFF, for Distributed training multi_gpu can be set as MultiGPUMode.DISTRIBUTED_DATA_PARALLEL or MultiGPUMode.DATA_PARALLEL.

So I ended up writing something like that:
from super_gradients.training import models
from super_gradients.common import MultiGPUMode
from super_gradients.training.utils.distributed_training_utils import setup_device
DEVICE = 'cuda'
NUM_GPUS = 2
setup_device(device=DEVICE, multi_gpu=MultiGPUMode.DISTRIBUTED_DATA_PARALLEL, num_gpus=NUM_GPUS)
But the output was still

[2024-10-25 20:42:57] INFO - distributed_training_utils.py - Distributed training starting...
[2024-10-25 20:42:57] INFO - distributed_training_utils.py - Training in distributed mode... with 1 GPUs

I tried to add the multi_gpu to the Trainer but it failed stating that those parameters have to be given to setup_device.  I still tried to train just in case, without any luck.
I tried MultiGPUMode.AUTO instead of MultiGPUMode.DISTRIBUTED_DATA_PARALLEL as a setup_device parameter with the same "with 1 GPUs" result.
This is the setup_device header from the code:
"""
If required, launch ddp subprocesses.
:param multi_gpu:   DDP, DP, Off or AUTO
:param num_gpus:    Number of GPU's to use. When None, use all available devices on DDP or only one device on DP/OFF.
:param device:      The device you want to use ('cpu' or 'cuda')

If you only set num_gpus, your device will be set up according to the following logic:
    - `setup_device(num_gpus=0)`  => `gpu_mode='OFF'` and `device='cpu'`
    - `setup_device(num_gpus=1)`  => `gpu_mode='OFF'` and `device='gpu'`
    - `setup_device(num_gpus>=2)` => `gpu_mode='DDP'` and `device='gpu'`
    - `setup_device(num_gpus=-1)` => `gpu_mode='DDP'` and `device='gpu'` and `num_gpus=<N-AVAILABLE-GPUs>`

"""

Diving deeper I can see that setup_device is finally just doing some checks and calling setup_gpu(multi_gpu, num_gpus), so I tried to call this directly instead, in case the issue was on one of the checks. But I go the exact same result: "Training in distributed mode... with 1 GPUs".
While keep looking at the code, I can see than passing -1 as the number of GPUs makes a call to torch.cuda.device_counts(). Calling it manually returns 2. Passing -1 as num_gpus still gives me: Training in distributed mode... with 1 GPUs
So. I really tried hard! I read the doc, I looked into the code, I made many tests, but it's still not using more than one GPU. Guidance will be very welcome.


Some file is missing, like "012369.bin"

I download data_3d_raw.sqf and unzip it, I cannot see the "012369.bin".
However, when I run the code:
 File "/home/selfdriving/PaSCo/pasco/data/kitti360/kitti360_dataset.py", line 118, in __getitem__
    items.append(self.get_individual(id))
  File "/pasco/data/kitti360/kitti360_dataset.py", line 133, in get_individual
    data = self.load_data_v3(sequence, frame_id, original_id, n_fuse_scans=self.n_fuse_scans)
  File "/pasco/data/kitti360/kitti360_dataset.py", line 297, in load_data_v3
    pc = np.fromfile(pc_path, dtype=np.float32).reshape((-1, 4))
FileNotFoundError: [Errno 2] No such file or directory: '/big_data/KITTI-360/data_3d_raw/2013_05_28_drive_0002_sync/velodyne_points/data/012369.bin'

Did you download the KITTI-360 dataset raw velodyne scans as I mentioned here?


sites:list --json fails

- Do you want to request a feature or report a bug?
Bug.
- What is the current behavior?
$ node_modules/.bin/netlify sites:list --json
TypeError: Cannot convert undefined or null to object
    at sites.map.site (~/src/mojodna/stac-browser/node_modules/netlify-cli/src/commands/sites/list.js:33:23)
    at Array.map (<anonymous>)
    at SitesListCommand.run (~/src/mojodna/stac-browser/node_modules/netlify-cli/src/commands/sites/list.js:32:37)

build_settings is null for all of my sites in https://github.com/netlify/cli/blob/82c85f9adc5dd21464108822a85791c2a5832b58/src/commands/sites/list.js#L33
- What is the expected behavior?
netlify sites:list --json should output a JSON-formatted list of sites.
- Please mention your node.js, and operating system version.
MacOS 10.14 (Mojave)
Node.js v10.12.0

Thanks for the report, I'll take a look.


⚠ Bofrost.de has degraded performance

In 2a7db1f, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1201 ms

Resolved: Bofrost.de performance has improved in 60d24ae after 47 minutes.


degit executes bin.js on windows instead of running it as node

the recent updates 2.8.1 & 2.8.2
completely broke degit on windows 10.
when I run npx degit sveltejs/template .

unable to clone any repo because bin.js file gets executed by .js default app (vscode in my case).
instead of running node bin.js in command line path.
however version 2.8.0 works fine doesn't have this behavior

me too..has degraded processing

same thing for unix OSs
in the compiled form the shebang #!/usr/bin/env node is missing so the OS or npx for that matter is just exuecuting it as a normal shell script
(or in your case probably a batch file or something)

oh i see , this is more or less a duplicate of #274


Implement 'useTheme' using Hooks API

Hey there! 👋
I was wondering if there are plans on implementing Hooks API for specific parts regarding context providers? This would help us to use something like useTheme() outside of context of styled components, where we're currently using either withTheme HOC, or a render props pattern.
The implementation could probably be as simple as following:
const useTheme = (...path) => path.join(".").split(".")
  .reduce((a, c) => (a && a[c] ? a[c] : null), useContext(ThemeContext));

and it would allow us to do something like:
<Component background={useTheme('colors.blue')} />

I guess this has already been thought of, but since I couldn't find any issue related to it, I wanted to get your opinion on it.
I'd be more than happy to do a PR including something like this, maybe under something such as styled-components/hooks for now, until 16.8 (hopefully 🤓).

For anyone looking for a dead simple hook while we wait for something official:
import { useContext } from 'react';
import { ThemeContext } from 'styled-components';

export default function useStyledTheme() {
  const theme = useContext(ThemeContext);
  return theme || {};
}

import { useContext } from 'react'
import { ThemeContext } from 'styled-components'
import { get, identity } from 'lodash/fp'

export const useTheme = path => (path ? get(path) : identity)(useContext(ThemeContext) ?? {})

I'm reopening this, since #2343 does not include this.
I would like to see this as part of styled-components v5 and not a helper library.
I prefer the simplest version const useTheme = () => useContext(ThemeContext):

if you want to get some item at some path, you can use plain js or get or wrap the hook
passing a theme to merge (const currentTheme = useTheme({color: 'red'})) is not possible, because it would require wrapping the component with a provider

Hooks are more and more used and it would be nice to include a useTheme hook in the library. I had to create my own this is not convenient.
SeanRoberts proposed a working example:
import { useContext } from 'react';
import { ThemeContext } from 'styled-components';

export default function useStyledTheme() {
  const theme = useContext(ThemeContext);
  return theme || {};
}

A  lot of other React library propose such hooks.

@wmertens Absolutely understandable. I've listed the implementation I'm using just as inspiration for the meantime. Of course it makes little sense to bake the property getter into the hook that the generic library will provide.

I created a small utility function based on @SeanRoberts answer as I do agree it makes most sense, and since I'm dragging it from project to project I realized it makes sense to publish it (at least until we see it within the library).
https://github.com/markoradak/use-styled-theme

useTheme was added in https://github.com/styled-components/styled-components/pull/2765 Once a new version is released, your React components will be able to do this:
import { useTheme } from "styled-components";

export const MyNonStyledComponent = () => {
  const myBlueColor = useTheme().colors.blue;

  return <SomeJsx />;
}

This solution is a bit better than useTheme('colors.blue'), which was originally proposed in this issue. Reasons are type-safety and performance.

From @SeanRoberts most like answer.
For Typescript user I would use something like that
const useTheme = <T = DefaultTheme>() => useContext<T>(ThemeContext) || {};

I think that there's an error in the typing when working with typescript.

I think that there's an error in the typing when working with typescript.

https://github.com/DefinitelyTyped/DefinitelyTyped/pull/42415
Once this pull request is ready, it'll get fixed. Meanwhile just @ts-ignore it


Too many scrolls

There is too many scrolls using from my notebook.
Linux Mint
Chrome Version 51.0.2704.84 (64-bit)

What is the suggestion? Make the logo smaller?

Sorry for the delay.
Checked out here now and it does not happen anymore.


Connection gets terminated immediately at StartAsync

`var caCert = new X509Certificate("../test.crt");
var cbytes = caCert.Export(X509ContentType.Cert);
        var options = new ManagedMqttClientOptionsBuilder()
            .WithAutoReconnectDelay(TimeSpan.FromSeconds(5))
            .WithClientOptions(new MqttClientOptionsBuilder()
                               .WithCredentials("username", "password")
                                .WithClientId("Client1")
                               .WithTcpServer("broker.test.com", 443)
                               .WithTls(false, false, false, cbytes).Build())
            .Build();

        var mqttClient = new MqttFactory().CreateManagedMqttClient();

        mqttClient.StartAsync(options).GetAwaiter().GetResult();

`
The connection gets Finned after a SSL Continuation Data package being sent through.
Am I doing something wrong here?

okay I've found out that I need to add this line(is there a way to put this in the builder btw?).
options.ClientOptions.ChannelOptions.TlsOptions.UseTls = true;
However what's happening this time is:
Server to Client: Change Cipher Spec, Encrypted Handshake Message
Client to Server: 59080 -> 443 [ACK] ...
Client to Server: Application Data
Server to Client: Encrypted Alert
Server to Client: 443 -> 59080 [FIN, ACK] ...

Hi,
the builder already has a WithTls method. It sets the "UseTls" property always to true and the other parameters as they are provided.
Best regards
Christian

Thanks.
However I still cannot get the connection established. do you see anything wrong in my code?

`			MemoryPersistence persistence = new MemoryPersistence();
String clientId = "andr_" + UUID.randomUUID().toString().substring(0, 8) + "_"
+ System.currentTimeMillis() % 10000;
		// CA cert is used to authenticate the server
		FileInputStream in = new FileInputStream(
				System.getProperty("user.dir") + "/Cert/test.crt");
		CertificateFactory cf = CertificateFactory.getInstance("X.509");
		X509Certificate caCert = (X509Certificate) cf.generateCertificate(in);
		KeyStore caKs = KeyStore.getInstance(KeyStore.getDefaultType());
		caKs.load(null, null);
		caKs.setCertificateEntry("ca-certificate", caCert);
		TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
		tmf.init(caKs);

		// create SSL socket factory
		SSLContext context = SSLContext.getInstance("TLSv1.2");
		context.init(null, tmf.getTrustManagers(), null);

		mqttClient = new MqttClient(broker, clientId, persistence);
		MqttConnectOptions connOpts = new MqttConnectOptions();
		connOpts.setUserName(userName);
		connOpts.setPassword(password.toCharArray());
		connOpts.setSocketFactory(context.getSocketFactory());
		connOpts.setCleanSession(true);
		// System.out.println("Connecting to broker: "+broker);
		mqttClient.connect(connOpts);`

This is a Java implementation that is able to connect.

As it may be OT , I wouldn't recommend using port 443 as it is reserved port for http over ssl and cross-using ports could be considered as bad practice. You can run into bunch of unexpected network behaviors or problems.
are you using client certificate in server/client authentication? It failed even if you are explicitly set to ignore all cert errors?

Eventually I got it figured it out. Our broker happen to be using an older version of mqtt protocol: 3.1, which is probably not supported by mqttnet even though you can specify it in the code. I used another library m2mqttdotnetcore and it worked in this scenario...

Version 3.2 is also supported. Please share a trace so I can follow up the package flow. Processing trace messages is described in the Wiki.
Best regards
Christian


test: benchmark merging files in groups

$ gotest . -bench BenchmarkMergeFiles -v -run BenchmarkMergeFiles -benchtime 10s goos: darwin
goarch: amd64
pkg: github.com/moov-io/ach
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkMergeFiles
BenchmarkMergeFiles/MergeFiles
    merge_bench_test.go:148: 1 files merged into 1 files
    merge_bench_test.go:148: 100 files merged into 40 files
    merge_bench_test.go:148: 10000 files merged into 4000 files
    merge_bench_test.go:148: 112369 files merged into 44949 files
BenchmarkMergeFiles/MergeFiles-16         	  112369	     96709 ns/op	    4220 B/op	     347 allocs/op
BenchmarkMergeFiles/MergeFiles_3Groups
    merge_bench_test.go:152: 1 files merged into 1 files
    merge_bench_test.go:152: 100 files merged into 55 files
    merge_bench_test.go:152: 10000 files merged into 6005 files
    merge_bench_test.go:152: 51914 files merged into 36354 files
BenchmarkMergeFiles/MergeFiles_3Groups-16 	   51914	    242804 ns/op	   11140 B/op	     897 allocs/op
BenchmarkMergeFiles/MergeFiles_5Groups
    merge_bench_test.go:155: 1 files merged into 1 files
    merge_bench_test.go:155: 100 files merged into 61 files
    merge_bench_test.go:155: 10000 files merged into 6079 files
    merge_bench_test.go:155: 53403 files merged into 34335 files
BenchmarkMergeFiles/MergeFiles_5Groups-16 	   53403	    231150 ns/op	   10625 B/op	     859 allocs/op
BenchmarkMergeFiles/MergeFiles_10Groups
    merge_bench_test.go:158: 1 files merged into 1 files
    merge_bench_test.go:158: 100 files merged into 61 files
    merge_bench_test.go:158: 10000 files merged into 6573 files
    merge_bench_test.go:158: 51963 files merged into 34870 files
BenchmarkMergeFiles/MergeFiles_10Groups-16         	   51963	    235732 ns/op	   10881 B/op	     878 allocs/op
BenchmarkMergeFiles/MergeFiles_100Groups
    merge_bench_test.go:161: 1 files merged into 1 files
    merge_bench_test.go:161: 100 files merged into 40 files
    merge_bench_test.go:161: 10000 files merged into 5923 files
    merge_bench_test.go:161: 53691 files merged into 34368 files
BenchmarkMergeFiles/MergeFiles_100Groups-16        	   53691	    229409 ns/op	   10596 B/op	     857 allocs/op
PASS
ok  	github.com/moov-io/ach	90.088s

Codecov Report

Merging #1282 (36bc682) into master (95c51d5) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 36bc682 differs from pull request most recent head 1e47fe8. Consider uploading reports for the commit 1e47fe8 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1282   +/-   ##
=======================================
  Coverage   88.58%   88.58%
=======================================
  Files          73       73
  Lines        7080     7080
=======================================
  Hits         6272     6272
  Misses        476      476
  Partials      332      332


Arms disappear in Multiplayer

Forge 47.2.30
FPM: 2.4.0-1.20.1
In multiplayer if you set Vanilla Arms to Always (With dynamic off), most of the players will lose the arms
Will test ASAP without performance mods

Duplicate #440


cannot execute binary file: Exec format error

Operating system
Linux
Helmfile Version
none
Helm Version
none
Bug description
cannot install helmfile with correct arch.
Example helmfile.yaml
none
Error message you've seen (if any)
bash: ./helmfile: cannot execute binary file: Exec format error

Steps to reproduce
root@test:/# HELMFILE_VERSION=0.145.0
root@test:/# uname
Linux
root@test:/# arch
x86_64
root@test:/# wget -qO /helmfile https://github.com/helmfile/helmfile/releases/download/v${HELMFILE_VERSION}/helmfile_${HELMFILE_VERSION}_linux_amd64.tar.gz;
root@test:/# chmod 755 ./helmfile
root@test:/# ./helmfile
bash: ./helmfile: cannot execute binary file: Exec format error
root@test:/# rm ./helmfile
root@test:/# wget -qO /helmfile https://github.com/helmfile/helmfile/releases/download/v${HELMFILE_VERSION}/helmfile_${HELMFILE_VERSION}_linux_386.tar.gz;
root@test:/# chmod 755 ./helmfile
root@test:/# ./helmfile
bash: ./helmfile: cannot execute binary file: Exec format error

I am trying with HELMFILE_VERSION 0.145.0, but 0.145.* all don't seem to install the correct binaries.
Working Helmfile Version
none
Relevant discussion
No response

@mugioka I can't reproduce your issue. Thanks very much.
https://github.com/helmfile/helmfile/releases/download/v0.145.2/helmfile_0.145.2_linux_amd64.tar.gz

@mugioka How about extracting the .tar.gz? ;-)

@mugioka How about extracting the .tar.gz? ;-)
Edit: To be fair: I also stumbled over the fact the artifacts are compressed now.

yes. It should be uncompressed. @mugioka

Oh, sorry. I forget to uncompressed.
Thank you 🙏


pip install azure-storage==0.37.0 fails

Package Name:  azure-storage
Package Version:  0.37.0
Operating System: Windows-10
Python Version: 3.6.2

Describe the bug
pip install azure-storage==0.37.0 generates the error:
ERROR: Command errored out with exit status 1: python setup.py egg_info
To Reproduce
Steps to reproduce the behavior:

pip install azure-storage==0.37.0

Hi @gison93
This is by design, pip will print in output the rationale behind it:
> pip install azure-storage==0.37.0
Collecting azure-storage==0.37.0
  Downloading https://files.pythonhosted.org/packages/5d/cd/cac628adf6cb0086a24c20d76609445f1bf841483d56ec9f5645bbaa9ab7/azure-storage-0.37.0.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\lmazuel\AppData\Local\Temp\pip-install-576sqseg\azure-storage\setup.py", line 55, in <module>
        raise RuntimeError(message)
    RuntimeError:

    Starting with v0.37.0, the 'azure-storage' meta-package is deprecated and cannot be installed anymore.
    Please install the service specific packages prefixed by `azure` needed for your application.

    The complete list of available packages can be found at:
    https://aka.ms/azsdk/python/all

    Here's a non-exhaustive list of common packages:

    - [azure-storage-blob](https://pypi.org/project/azure-storage-blob) : Blob storage client
    - [azure-storage-file-share](https://pypi.org/project/azure-storage-file-share) : Storage file share client
    - [azure-storage-file-datalake](https://pypi.org/project/azure-storage-file-datalake) : ADLS Gen2 client
    - [azure-storage-queue](https://pypi.org/project/azure-storage-queue): Queue storage client

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\lmazuel\AppData\Local\Temp\pip-install-576sqseg\azure-storage\

Thanks!

Hi @lmazuel, thank you for the quick answer. My bad, I read that is deprecated but I missed "cannot be installed anymore".
Actually the issue arised because I had a job that installed azure-storage without specifying the version.
In the next days I will switch to the new specific package.
Thanks again!


Error in saved message

Hi, I keep seeing this error message in my saved message
#ERROR: 'NoneType' object has no attribute 'file_name'
If someone post anything in the chat group, then this message will send to my saved message.

Bro
To the forwarding channel guve admin privileges for your ac
The error says it all

I am facing same problem