[MM-8497] Ability to set Do Not Disturb for a specified period of time

This reverts commit 406f787f0baaaeb4da8b7aef62b8a4faf9fc3f91.

Hello @darkLord19,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

/update-branch

@darkLord19 Can you please take a look at why some checks are not passing. Thanks.

@jgilliam17 fixed

@darkLord19 My first DND timer for 30min expired as expected. 🎊
I have few more timers set 1h, 2h, tomorrow and custom and will update here as I confirm their expiration. Thanks.

Hello @darkLord19 Let us know if you have any questions about Devin's feedback. Thanks

@jgilliam17 i have addressed the comments. Please verify that dnd expiration is working in test servers after the changes

Thanks @darkLord19
Seeing a new error when trying to set Custom dnd

and similar error for tomorrow

my bad. my local dev env was messed yesterday so couldn't verify locally. I have pushed the fix, please check now

Removing cloud-test-server for maintenance reasons. Feel free to add it again if needed.

@jgilliam17 Did you get the chance to test the test server with latest commit? It was a busy week due to MatterCon so if you couldn't test this week then let's try to get it done at the start of next week(monday,tuesday) so we can test on community-daily since that's where there were issues

Thank you @darkLord19 LGTM
Yes, I was able to test yesterday, only one timer "tomorrow" was missed when server was removed for maintenance. There is an issue with test servers, so I will defer testing "tomorrow" setting after merge on daily.
@devinbinnie Can you please give this another look?  Thanks


fix cupy.random.standard_exponential bug

Jenkins, test this please.

Jenkins CI test (for commit eb5b5982a0627ac89c284c138d6bf98557aa8d6b, target branch master) succeeded!


[GLUTEN-6180][VL] Fix NPE if spilling is requested during task creation

An initial reservation for Velox task memory pool was introduced in https://github.com/apache/incubator-gluten/pull/5815. However that reservation doesn't work correctly with spilling facilities so may lead to NPE.
The patch fixes the issue with some minor refactors.
Tested with existing integration tests to avoid regression.

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query
log/native_6205_time.csv
log/native_master_06_25_2024_524434826_time.csv
difference
percentage

q1
34.75
37.64
2.887
108.31%

q2
23.71
23.31
-0.405
98.29%

q3
38.72
40.76
2.041
105.27%

q4
36.44
32.85
-3.594
90.14%

q5
69.24
72.82
3.585
105.18%

q6
7.50
10.28
2.781
137.10%

q7
78.57
80.76
2.185
102.78%

q8
82.83
85.49
2.658
103.21%

q9
125.07
118.88
-6.191
95.05%

q10
46.59
44.99
-1.599
96.57%

q11
19.80
20.46
0.658
103.32%

q12
24.37
24.64
0.267
101.10%

q13
37.31
39.04
1.729
104.64%

q14
21.28
19.01
-2.263
89.37%

q15
28.79
33.57
4.774
116.58%

q16
13.87
14.18
0.309
102.23%

q17
104.55
103.92
-0.627
99.40%

q18
145.90
148.88
2.980
102.04%

q19
17.00
15.08
-1.918
88.71%

q20
29.75
31.11
1.362
104.58%

q21
255.81
259.47
3.652
101.43%

q22
12.40
12.59
0.188
101.51%

total
1254.25
1269.71
15.461
101.23%


Avoid __popcnt64 on MSVC Windows 32-bit platform

The __popcnt64 intrinsic isn't supported on 32-bit Windows, so __popcnt should be used instead.
See also https://learn.microsoft.com/en-us/cpp/intrinsics/popcnt16-popcnt-popcnt64?view=msvc-170.

IMO, ideally we should use stdc_count_ones (see here and WG14 N3220). But it will take a long long while until C23 will become popular enough.

@asg017 ping.

Gently ping @asg017. Can we merge this?


Fix broken [get_]user_agent() function, add Default to model::sms::Message, README/doc fixes

get_user_agent()

This was broken, see #15.
Renamed to user_agent(), see #16.
Added build.rs which generates version.txt
Simplified user_agent() to just include!("version.txt").
Removed now superfluous SdkError variants.
Simplified return signatures of some functions as they can't fail any more.

Default

Added Default to model::sms::Message.

README/Docs

Adjusted docs & README accordingly.
Fixed line breaks (proper markdown) and headline capitalization in README.
Added SDK docs link to README.

Hi Moritz, we scheduled Rust SDK work for this week. I expect these changes to go out in a couple days.


Allow empty SMTP_USERNAME and SMTP_PASSWORD

Feature Description
Some SMTP don't use any authentication.
And maybe update to a more maintained mail pkg (like https://github.com/xhit/go-simple-mail).

Thanks @ruessej for sharing it
Can you share SMTP providers that don't use auth, because I feel then it would be a security concern in some sense ;-)

Ah, I see!
In that case, passing any random values to SMTP USERNAME & PASSWORD should do the job right ;-)
Just want to keep those with security concerns


Add an optional false-positive coordinates path to the preprocessing

This adds an optional false-positive coordinates path to the
preprocessing script that allows for fp oversampling from explicit
coordinates, rather than having to make model predictions.

@feihugis can you review this, please?


problem compile for esp-open rtos

Hi
ok library perfect. su osx system
Compile for Esp-open-rtos problem
error: #error "This module only works on Unix and Windows, see MBEDTLS_TIMING_C in config.h"
#error "This module only works on Unix and Windows, see MBEDTLS_TIMING_C in config.h"

I haven't used the ESP32 compilation environment, so I don't think I can give any advice. However, please find a way to port MBEDTLS to ESP32. Such as https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/protocols/esp_tls.html

I haven't used the ESP32 compilation environment, so I don't think I can give any advice. However, please find a way to port MBEDTLS to ESP32. Such as https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/protocols/esp_tls.html

used Esp8266  problem compilation

used Esp8266  problem compilation


Updated pattern links

This reflects that the part with moving button to atoms/button is confusing. Should we begin with atoms/button right away and stick with it?

This is stale, sorry we never came aorund merging this.


e2e UI: Test upgrade in a dedicated test

Follow up of https://github.com/rancher/elemental/issues/651
Until now, we test all the thing in one test and that's not the proper way to test upgrade.
For testing upgrade, we have to install from stable and then upgrade to dev/staging.
That means we need to switch upgrade from our nightly test and move it to a second nightly test.

Upgrade test was disabled in our main scenario https://github.com/rancher/elemental/pull/679.
Let's write another test to handle upgrade.

We will probably use this https://github.com/rancher/elemental/issues/649


Port Identity unit tests to junit5

Migrates Identity unit tests to use Junit 5.
This unblocks Recorded tests work for Identity SDK.

API change check
API changes are not detected in this pull request.


[wip] introduce no-panic crate

see #34

not going to do this for now, i don't see the ecosystem improving


Question - Is it possible to pull the processed NVD CVE files?

Hello, I was looking into ways of speeding up the amount of time the dependency check scan took when ran in a Azure Pipeline using the "OWASP Dependency Check" task.
Reading the logs, it seems that a lot of the time is going into downloading and processing the CVE files:

[INFO] Processing Complete for NVD CVE - 2016  (18858 ms)
[INFO] Processing Started for NVD CVE - 2018
[INFO] Processing Complete for NVD CVE - 2017  (14071 ms)
[INFO] Processing Started for NVD CVE - 2019
[INFO] Processing Complete for NVD CVE - 2018  (12425 ms)
[INFO] Processing Started for NVD CVE - 2020
[INFO] Processing Complete for NVD CVE - 2019  (9792 ms)
[INFO] Processing Started for NVD CVE - 2021
[INFO] Processing Complete for NVD CVE - 2020  (10823 ms)
[INFO] Processing Started for NVD CVE - 2022
[INFO] Processing Complete for NVD CVE - 2021  (11030 ms)
[INFO] Processing Started for NVD CVE - 2023
[INFO] Processing Complete for NVD CVE - 2023  (193 ms)
[INFO] Processing Complete for NVD CVE - 2022  (10686 ms)

My questions are:

What does the program do when it says its "Processing" a NVD CVE -  file?
Does the processing on the CVE file output a file to be used?
Can I tell the scan to use a previously processed version of the NVD CVE files?

Thank you in advance.

Hi @Cosmin-Apopei,
Regards 1.:
This happens in the OWASP Dependency Check itself that is wrapped in this Azure DevOps extension.
Here's the code.
It seems to download the definition files and imports them. Indeed, there happens much more under the hood, therefore the aforementioned code reference.
Regards 2.:
Please see Regards 1.
Regards 3.:
To reduce the execution time, you can cache all downloaded data. Please check this #110.
But, this works in Azure Pipelines only, it won't work for Azure DevOps Server <= 2019 (on-prem), because the Cache-task is not compatible/exists for this version. Regards Azure DevOps Server 2022 I cannot say.

I have no idea how the azure pipeline task is setup or used as the project is maintained by a different team.
In general - there is a data directory that should be cached. If you run the dependency-check update at least once evey 7 days only a very small XML file is downloaded and processed.

Thank you both for your answers. Adding caching to my pipeline has reduced its time significantly.


Don't use prefix when using envvar as default

When doing something like env:"OVERRIDE_PORT,default=$DEFAULT_PORT", you would expect the default value to be the environment variable you get when running echo $DEFAULT_PORT in your terminal. However, it uses the same prefix as the field it's on. So, if OVERRIDE_PORT has a prefix of MY_PREFIX, the default that would be used would actually be MY_PREFIX_DEFAULT_PORT.
My specific use case where this is a problem is when I'm trying to deprecate old environment variables. I have a deprecated variable called FEATURE_DISABLEBUS, and I want to replace this with BUS_CONTROLLER_ENABLED. The new variable lives in a BusControllerConfig struct with a prefix of BUS_CONTROLLER. However, if I try to default to the deprecated variable, it tries to use BUS_CONTROLLER_FEATURE_DISABLEBUS.

This seems like a good change for 1.0 (where we can break the API).

For the time being, are there any workarounds?

Unfortunately not at this time.


Using repeat directive is not working

Hi, I created this code snippet
const items = [
  {
    id: 0,
    label: 'Hey'
  },
  {
    id: 1,
    label: 'Hey'
  }
];

const template = (self) => html`

    ${repeat(items, (i) => i.id, (i, index) => html`

${index}: ${i.label}
`)}

`;

and it returns an error
repeat.js:38 Uncaught Error: repeat can only be used on NodeParts
    at part (repeat.js:38)
    at getValue (element-lite.umd.js:1686)
    at NodePart.setValue (element-lite.umd.js:1763)
    at TemplateInstance.update (element-lite.umd.js:1909)
    at NodePart._setTemplateResult (element-lite.umd.js:1822)
    at NodePart.setValue (element-lite.umd.js:1775)
    at TemplateInstance.update (element-lite.umd.js:1909)
    at render (element-lite.umd.js:1489)
    at HTMLElement.invalidate (element-lite.umd.js:2117)
    at HTMLElement.connectedCallback (element-lite.umd.js:2099)

Am i doing something wrong?

How did you import repeat? It should be coming from import {repeat} from "lit-html/lib/repeat"

I'm currently unable to reproduce this with the code in the OP (plunker where the code works), could you provide a code sample where the error actually occurs (e.g. a plunker)? Does this happen in all browsers? (maybe it works for me because it's only broken for a certain browser/version)

@bgotink I'm using it as part of shadow dom. I'm going to create a small repo for it.

same error, sounds like similar or the same usage as follows:
source excerpt:
import { LitElement, html } from<EMAIL_ADDRESS>import { repeat } from<EMAIL_ADDRESS>
class ThisProblem extends LitElement{
	_render(){
return html`

    ${repeat([{name:'stuff'},{name:'things'},{name:'lastly'}], (i) => i.id, (i, index) => html`

${index}: ${i.name}
`)}

`;
...excerpt ends...

lit-html near line 31:
    return directive((part) => {
        if (!(part instanceof NodePart)) {
            throw new Error('repeat can only be used on NodeParts');
        }

error:
repeat.js:31 Uncaught Error: repeat can only be used on NodeParts
    at directive (repeat.js:31)
    at getValue (lit-html.js:334)
    at NodePart.setValue (lit-html.js:420)
    at TemplateInstance.update (lit-html.js:576)
    at render (lit-html.js:130)
    at render (shady-render.js:35)
    at HTMLElement._applyRender (lit-element.js:182)
    at HTMLElement._propertiesChanged (lit-element.js:132)
    at HTMLElement._flushProperties (properties-changed.js:335)
    at HTMLElement._flushProperties (lit-element.js:142)

@jimmont
You can simply import using:
import {LitElement, html} from "@polymer/lit-element/lit-element";
import {repeat} from "lit-html/lib/repeat"

Anyways, in your example, your objects are missing the id property?
{name:'stuff'},{name:'things'},{name:'lastly'} should be {id: 1, name:'stuff'},{id: 2, name:'things'},{id: 3, name:'lastly'}

thanks @ernsheong, the problem is unrelated to the missing id--it has to do with the classes I'm importing and how they're intended to be used, which is still a mystery to me. I found and started reading the very helpful material at https://polymer.github.io/lit-html/guide/#template-dialects-lit-html-vs-lit-extended (found via https://github.com/Polymer/lit-element/issues/63).
the following change (inexplicably) fixes my previous _render (above):
import { repeat } from 'lit-html/lib/repeat.js';
import { html } from 'lit-html/lib/lit-extended.js';
import { LitElement } from<EMAIL_ADDRESS>

I'm pretty tired so the reason might be obvious--I'd really like to better understand how this was intended to work. Feel like I'm losing a lot of time on something that should be straightforward.

Also check your dependencies, lit-element is at version 0.5.1 as of writing this. You should not need to install lit-html separately.
Check out https://github.com/Polymer/pwa-starter-kit for a starter kit using LitElement. The wiki at https://github.com/Polymer/pwa-starter-kit/wiki contains many helpful demo apps with source codes.
Particularly, https://github.com/PolymerLabs/polymer-redux-hn/blob/master/src/components/hn-list.js uses LitElement and repeat, may be useful to study.
Admittedly, going the LitElement route is unnerving and at times feels like re-inventing the wheel. (someone get me an advanced router for LitElement, anyone?) Really tempted by Vue and all that. Take your pick between magic and standards-based.

yes @ernsheong npm install and dedupe are the steps used to get these packages and I just imported them wherever they land. The import for repeat changed so perhaps that was somehow a source of the problem. Seems a bit strange.

I'm having the same issue and it seems to stem from multiple packages having lit-html as a dependency, Webpack imports, and where npm puts packages.
The compiled version of<EMAIL_ADDRESS>has this in it:
if (!(part instanceof NodePart)) {
    throw new Error('repeat can only be used on NodeParts');
}

After Webpack processes that you get something like the following:
    if (!(part instanceof _lit_html_js__WEBPACK_IMPORTED_MODULE_0__["NodePart"])) {
        throw new Error('repeat can only be used on NodeParts');
    }

part has a function location of<EMAIL_ADDRESS>_lit_html_js__WEBPACK_IMPORTED_MODULE_0__["NodePart"] has a function location of node_modules/lit-html/lit-html.js

Both lit-htmls are v0.10.0 so I'm not sure why npm isn't deduping them.
> npm ls lit-html
<EMAIL_ADDRESS>/Users/abraham/dev/node-package
├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>
...
After some further exploration, I deleted node_modules and package-lock.json and installed dependancies again.
Now the error is gone and the packages are showing as deduped.
> npm ls lit-html
<EMAIL_ADDRESS>/Users/abraham/dev/node-package
├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>deduped
└──<EMAIL_ADDRESS>

This does look like a duplication problem (another symptom is rendering [object Object] instead of nested templates. Not sure what we can do in the library. instanceof is a pretty important test to use, we could duck-type, but we've had changes to the internal APIs recently where that would break anyway.
I'm going to start being much more careful with revving the minor version before we hit 1.0 so hopefully there will be less duplication.

I've got both of these problems (repeat broken, [object Object]). I'm using rollup and npm to build.
Is there anything I can do on my end? I'm hoping to work this out so I can publish a library of Apollo GraphQL base classes based on LitElement.
The exact same code works fine if it's imported as a relative path from within the consuming app's src files.
e.g.
/* src/components/foo-element/foo-element.js */
import { ApolloQuery } from 'lit-apollo/apollo-query' // `[object Object]`
import { ApolloQuery } from '../lit-apollo/apollo-query' // works

@bennypowers try making sure that everything is using the same version of lit-html and then run npm dedup.

With the help of @ruphin, I solved the problem by applying the following plugin to my rollup config. It ensures that any module importing lit-element imports only the version maintained by the top-level app.
import includepaths from 'rollup-plugin-includepaths';
const plugins = [
  includepaths({
    include: {
      // only use app's version of lit-element
      '@polymer/lit-element': <EMAIL_ADDRESS>      // when using `includepaths`, if two modules share the same name, it can cause clobberage.
      'shaka-player': 'node_modules/shaka-player/dist/shaka-player.compiled.js',
    },
  }),
  ...etc
];

TBH this feels like a bad hack, but I'm at a loss for a better solution, given the current state of the platform. I really hope something like https://github.com/npm/npm/issues/20185 lands shortly so that developers can deal sanely with these types of scenarios.

Ironically, I came across this issue myself now after upgrading to latest LitElement. I can confirm that npm dedupe helped.

Guys I get the following error when I try to use repeat derective to fix select
npm dupl didn't help, as well as reinstalling nodemodules what could be the problem?
if (!(containerPart instanceof lit_html_js__WEBPACK_IMPORTED_MODULE_0_["NodePart"])) { throw new Error('repeat can only be used in text bindings'); } // Old part & key lists are retrieved from the last update (associated // with the part for this instance of the directive) const oldParts = partListCache.get(containerPart) || []; const oldKeys = keyListCache.get(containerPart) || []; // New part list will be built up as we go (either reused from old parts // or created for new keys in this update). This is saved in the above // cache at the end of the update. const newParts = []; // New value list is eagerly generated from items along with a parallel // array indicating its key. const newValues = []; const newKeys = []; let index = 0; for (const item of items) { newKeys[index] = keyFn ? keyFn(item, index) : index; newValues[index] = template(item, index); index++; } // Maps from key to index ..................


[NEW] WarCon 2024

Name: WarCon
Website: https://warcon.pl/
Date(s): 14-15 June 2024
Location: Warsaw, Poland
Twitter/Mastodon Handle:  @WarConPL
Free: Undefined

Thanks!


feat: adding rename-packages script

This PR addresses the feature request: #63

Few things to address:

[ ] Update documentation
[ ] Add rename root package option
[ ] Discuss the proper line argument name
[ ] Explain to @imCorfitz what "nukes itself after you run it." means

Maybe we could extend on this script a little bit. Might be of interest to also change the author for all packages. Maybe even an ignore patterns argument to exclude certain packages.


Displays a subset of protein molecules

Dear all,
Firstly, thanks again for the nice work! I am also really grateful for support and implementing features based on requests from people!

The figure above shows a molecular structure, which is composed of a complete molecular data (ribbon) and cavity data (sphere).
Now, I want to use pdbe to realize it. What should I do? As shown below, they are displayed in one page.

Best regards,
Fanyin.

Hi, Please refer to the Mol* viewer documentation here - https://molstar.org/viewer-docs/


Add methods to manipulate polygons

Just some stuff that might be useful when working with polygons. I have some old code of more complex stuff as well from the time I was working on an level generator, such as polygon smoothing to turn 90 angles to something like this: http://elmaonline.net/statistics/level/184982 but I'm not sure how useful that would be to others and what should be included in the library anyways.

Nice! Thanks for contributing :)


ActiveRecord relations: inverseOf() does not care about asArray()

I'm not sure should it be treated as a bug or not.
What steps will reproduce the problem?
class Customer extends ActiveRecord
{
    public function getOrders()
    {
        return $this->hasMany(Order::className(), ['customer_id' => 'id'])
            ->inverseOf('customer');
    }
}

class Order extends ActiveRecord
{
    public function getCustomer()
    {
        return $this->hasOne(Customer::className(), ['id' => 'customer_id']);
    }
}

// customer is already loaded earlier for any other purpose
$customer = Customer::findOne(1);

// just lazy shortcut instead of `Order::find()->where(['customer_id' => $customer->id])`
$order = $customer->getOrders()
    ->limit(1)
    ->asArray()
    ->one();

What is the expected result?
Either $order has no 'customer' key or $order['customer'] is array too.
What do you get instead?
$order['customer'] instanceof Customer === true

Additional info

Q
A

Yii version
2.0.12-dev (01dc29705)

PHP version
irrelevant

Operating system
irrelevant

What is expected behaviour? This specific case is not documented. I mostly expect that there in no 'customer' in $order array, but it goes from use case. ->asArray()->inverseOf(null) fixes it.

According to existing test cases exsistance or $order['customer'] is intended. Should it be an array or AR model?


Release v0.9.24

It's time to make a release from v0.9 branch.

Released: https://github.com/neutrinolabs/xrdp/releases/tag/v0.9.24


[Bug] Changing theme doesn't update tab text color

(thanks to the user who reported this bug through the app via goo.gle/nia-app-feedback)
Changing from dark to light theme doesn't update the the text on the tabs.
Steps to repro:

Tap on the Settings icon, switch to the opposite theme to the current one

Expected result:

Color of text in the tabs at the bottom of the screen changes to one which is easily readable

Actual result:

Color of text in tabs at bottom of screen doesn't change making it difficult to read

In my case, on changing the theme from "Default" to "Android" or vice-versa, the color of the currently selected tab remains the same and only changes after clicking on other tab. The device I use runs on Android 10.

As it can be seen in the above screenshot, I had first set the theme to "Android" and then changed it to "Default" and so all the other elements have got the default colors while the selected tab still has the "Android" theme color.

I was also facing the same issue, to reproduce, try to change the theme ASAP, and boom!...

In this situation, if we select the other bottom bar item the them will be fixed

Related upstream issue: https://issuetracker.google.com/issues/254918865

This should be fixed when we update to 1.4.0-beta01 or higher for dependencies.


TypeError: '<' not supported between instances of 'NamedSplit' and 'NamedSplit'

Environment info

transformers version: 3.3.1 (installed from master)
datasets version: 1.0.2 (installed as a dependency from transformers)
Platform: Linux-4.15.0-118-generic-x86_64-with-debian-stretch-sid
Python version: 3.7.9

I'm testing my own text classification dataset using this example from transformers. The dataset is split into train / dev / test, and in csv format, containing just a text and a label columns, using comma as sep. Here's a sample:
text,label
"Registra-se a presença do acadêmico <name> . <REL_SEP> Ao me deparar com a descrição de dois autores no polo ativo da ação junto ao PJe , margem esquerda foi informado pela procuradora do reclamante que se trata de uma reclamação trabalhista individual . <REL_SEP> Diante disso , face a ausência injustificada do autor <name> , determina-se o ARQUIVAMENTO do presente processo , com relação a este , nos termos do [[ art . 844 da CLT ]] . <REL_SEP> CUSTAS AUTOR - DISPENSADO <REL_SEP> Custas pelo autor no importe de R $326,82 , calculadas sobre R $16.341,03 , dispensadas na forma da lei , em virtude da concessão dos benefícios da Justiça Gratuita , ora deferida . <REL_SEP> Cientes os presentes . <REL_SEP> Audiência encerrada às 8h42min . <REL_SEP> <name> <REL_SEP> Juíza do Trabalho <REL_SEP> Ata redigida por << <name> >> , Secretário de Audiência .",NO_RELATION

However, @Santosh-Gupta reported in #7351 that he had the exact same problem using the ChemProt dataset. His colab notebook is referenced in the following section.
To reproduce
Steps to reproduce the behavior:

Created a new conda environment using conda env -n transformers python=3.7
Cloned transformers master, cd into it and installed using pip install --editable .  -r examples/requirements.txt
Installed tensorflow with pip install tensorflow
Ran run_tf_text_classification.py with the following parameters:

--train_file <DATASET_PATH>/train.csv \
--dev_file <DATASET_PATH>/dev.csv \
--test_file <DATASET_PATH>/test.csv \
--label_column_id 1 \
--model_name_or_path neuralmind/bert-base-portuguese-cased \
--output_dir <OUTPUT_PATH> \
--num_train_epochs 4 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--do_train \
--do_eval \
--do_predict \
--logging_steps 1000 \
--evaluate_during_training \
--save_steps 1000 \
--overwrite_output_dir \
--overwrite_cache

I have also copied @Santosh-Gupta 's colab notebook as a reference.

Here is the stack trace:
2020-10-02 07:33:41.622011: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
/media/discoD/repositorios/transformers_pedro/src/transformers/training_args.py:333: FutureWarning: The `evaluate_during_training` argument is deprecated in favor of `evaluation_strategy` (which has more options)
  FutureWarning,
2020-10-02 07:33:43.471648: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcuda.so.1
2020-10-02 07:33:43.471791: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.472664: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GTX 1070 computeCapability: 6.1
coreClock: 1.7085GHz coreCount: 15 deviceMemorySize: 7.92GiB deviceMemoryBandwidth: 238.66GiB/s
2020-10-02 07:33:43.472684: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
2020-10-02 07:33:43.472765: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcublas.so.10
2020-10-02 07:33:43.472809: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcufft.so.10
2020-10-02 07:33:43.472848: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcurand.so.10
2020-10-02 07:33:43.474209: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusolver.so.10
2020-10-02 07:33:43.474276: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusparse.so.10
2020-10-02 07:33:43.561219: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudnn.so.7
2020-10-02 07:33:43.561397: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.562345: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.563219: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1858] Adding visible gpu devices: 0
2020-10-02 07:33:43.563595: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2020-10-02 07:33:43.570091: I tensorflow/core/platform/profile_utils/cpu_utils.cc:104] CPU Frequency:<PHONE_NUMBER> Hz
2020-10-02 07:33:43.570494: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x560842432400 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-10-02 07:33:43.570511: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2020-10-02 07:33:43.570702: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.571599: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GTX 1070 computeCapability: 6.1
coreClock: 1.7085GHz coreCount: 15 deviceMemorySize: 7.92GiB deviceMemoryBandwidth: 238.66GiB/s
2020-10-02 07:33:43.571633: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
2020-10-02 07:33:43.571645: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcublas.so.10
2020-10-02 07:33:43.571654: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcufft.so.10
2020-10-02 07:33:43.571664: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcurand.so.10
2020-10-02 07:33:43.571691: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusolver.so.10
2020-10-02 07:33:43.571704: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusparse.so.10
2020-10-02 07:33:43.571718: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudnn.so.7
2020-10-02 07:33:43.571770: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.572641: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.573475: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1858] Adding visible gpu devices: 0
2020-10-02 07:33:47.139227: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1257] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-10-02 07:33:47.139265: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1263]      0
2020-10-02 07:33:47.139272: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1276] 0:   N
2020-10-02 07:33:47.140323: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:47.141248: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:47.142085: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:47.142854: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1402] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 5371 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1070, pci bus id: 0000:01:00.0, compute capability: 6.1)
2020-10-02 07:33:47.146317: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5608b95dc5c0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2020-10-02 07:33:47.146336: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): GeForce GTX 1070, Compute Capability 6.1
10/02/2020 07:33:47 - INFO - __main__ -   n_replicas: 1, distributed training: False, 16-bits training: False
10/02/2020 07:33:47 - INFO - __main__ -   Training/evaluation parameters TFTrainingArguments(output_dir='/media/discoD/models/datalawyer/pedidos/transformers_tf', overwrite_output_dir=True, do_train=True, do_eval=True, do_predict=True, evaluate_during_training=True, evaluation_strategy=<EvaluationStrategy.STEPS: 'steps'>, prediction_loss_only=False, per_device_train_batch_size=4, per_device_eval_batch_size=4, per_gpu_train_batch_size=None, per_gpu_eval_batch_size=None, gradient_accumulation_steps=1, learning_rate=5e-05, weight_decay=0.0, adam_beta1=0.9, adam_beta2=0.999, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=4.0, max_steps=-1, warmup_steps=0, logging_dir='runs/Oct02_07-33-43_user-XPS-8700', logging_first_step=False, logging_steps=1000, save_steps=1000, save_total_limit=None, no_cuda=False, seed=42, fp16=False, fp16_opt_level='O1', local_rank=-1, tpu_num_cores=None, tpu_metrics_debug=False, debug=False, dataloader_drop_last=False, eval_steps=1000, dataloader_num_workers=0, past_index=-1, run_name='/media/discoD/models/datalawyer/pedidos/transformers_tf', disable_tqdm=False, remove_unused_columns=True, label_names=None, load_best_model_at_end=False, metric_for_best_model=None, greater_is_better=False, tpu_name=None, xla=False)
10/02/2020 07:33:53 - INFO - filelock -   Lock<PHONE_NUMBER>05776 acquired on /home/user/.cache/huggingface/datasets/e0f1e9ed46db1e2429189f06b479cbd4075c0976104c1aacf8f77d9a53d2ad87.03756fef6da334f50a7ff73608e21b5018229944ca250416ce7352e25d84a552.py.lock
10/02/2020 07:33:53 - INFO - filelock -   Lock<PHONE_NUMBER>05776 released on /home/user/.cache/huggingface/datasets/e0f1e9ed46db1e2429189f06b479cbd4075c0976104c1aacf8f77d9a53d2ad87.03756fef6da334f50a7ff73608e21b5018229944ca250416ce7352e25d84a552.py.lock
Using custom data configuration default
Traceback (most recent call last):
  File "run_tf_text_classification.py", line 283, in <module>
    main()
  File "run_tf_text_classification.py", line 222, in main
    max_seq_length=data_args.max_seq_length,
  File "run_tf_text_classification.py", line 43, in get_tfds
    ds = datasets.load_dataset("csv", data_files=files)
  File "/media/discoD/anaconda3/envs/transformers/lib/python3.7/site-packages/datasets/load.py", line 604, in load_dataset
    **config_kwargs,
  File "/media/discoD/anaconda3/envs/transformers/lib/python3.7/site-packages/datasets/builder.py", line 158, in __init__
    **config_kwargs,
  File "/media/discoD/anaconda3/envs/transformers/lib/python3.7/site-packages/datasets/builder.py", line 269, in _create_builder_config
    for key in sorted(data_files.keys()):
TypeError: '<' not supported between instances of 'NamedSplit' and 'NamedSplit'

Expected behavior
Should be able to run the text-classification example as described in https://github.com/huggingface/transformers/tree/master/examples/text-classification#run-generic-text-classification-script-in-tensorflow
Originally opened this issue at transformers' repository: https://github.com/huggingface/transformers/issues/7535. @jplu instructed me to open here, since according to this evidence, the problem is from datasets.
Thanks!

Hi !
Thanks for reporting :)
Indeed this is an issue on the datasets side.
I'm creating a PR

Thanks @lhoestq !


Rename hugo-academic to academic and sync

Hello,
This PR renames the 'hugo-academic' submodule to just 'academic' (as per the installation guide for the new version of the theme) and synchronises with the latest 'academic' theme commit.
Please let me know if there are any issues.
Thanks!

Hello @gcushen,
I've merged your pull request as 443362015bf2175b2b14bf56e0a2698ecc2bb506. Please use a separate branch if you create a pull request. Otherwise it requires a few additional steps to merge your commits.
Cheers,
Digitalcraftsman

Sorry, will use a separate branch next time. Cheers @digitalcraftsman !


Feat: Hover effect on Get started button in navbar.

Is there an existing issue raised for this?

[X] I have searched the existing issues

Describe the feature
I want to add hover effect on Get Started button.
Add Screenshots
Add catchy hover effect.
Record Options

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'23 contributor
[X] I want to work on this issue

Okay @akshaysoni10
Go for it


delegate name attribute to parent_manager

when changing the name of a parent_manager, the name of the child manager is not updated.
because child_manager are mostly read-only, we just delegate the name display to the parent_manager
fixes https://bugzilla.redhat.com/show_bug.cgi?id=1464529
@hsong-rh could you 👍 the change on the storage manager?
@moolitayer could you 👍 the change on the monitoring manager?
@miq-bot assign @agrare
@miq-bot add_label bug

:+1: from me, will wait for feedback from others to merge

Should we also remove:
https://github.com/manageiq/manageiq/blob/70edcc40e631a9ef7ed2aaf79d09baf21e4b5726/app/models/mixins/has_network_manager_mixin.rb#L29
https://github.com/manageiq/manageiq/blob/62f873e33a5e82d65e0e281aadf912d313bae67d/app/models/mixins/has_monitoring_manager_mixin.rb#L10
...

@moolitayer here we validate the presence and uniqueness of the name. So, I'd keep setting the name there

👍 from me


Cleanup and style adjustments

This PR tries to unify the formatting a bit more.
I adopted the style that was most common across the project so far.

Ok this patch now includes style adjustments to enforce the 92 character limit throughout the project (i hope i didn't miss a case). And the whitespace after a cast proposed by @renner. If there is any other styling issue that bugs you please let me know.

Closing since all of this is now in master after we merged #50.


Add rounded rectangle to Graphics

This PR (delete as applicable)

Adds a new feature

Describe the changes below:
Added fillRoundedRect and strokeRoundedRect functions to Phaser.GameObjects.Graphics, that draw a filled/stroked rounded rectangle.
Got some code for different radii per corner from here

This is a lovely feature, thank you. My only comment is that I find it confusing that if you don't provide a radius, it defaults to 20, but if you provide a blank radius object, it defaults to zero. I'll merge it anyway and fix it here :)

@TadejZupancic  Just wondering, but any idea why this doesn't render correctly in canvas? It almost works, see here: http://labs.phaser.io/view.html?force=Canvas&v=dev&src=src/game objects/graphics/fill rounded rectangle.js

It works in 3.11, but not in dev - maybe it has something to do with the graphics pipeline change? I'll see if I can find something.

Please check Graphics.arc function. endAngle is changed there and that's why it is drawn incorrectly. I think endAngle -= startAngle; line is there my mistake and should be deleted.

Yeah it's the overshoot calculation causing it again - thanks, will fix.


Use remote-literal-include to support references to remote code [wrid22]

As per subject.
Should fix #2444.
This uses the sphinxext-remoteliteralinclude (Github repository: wpilibsuite/sphinxext-remoteliteralinclude) Sphinx extension to directly include code / resources hosted remotely, instead of having to copy whole sections of code verbatim into the .rst. This extension is essentially identical to literalinclude and supports all the configuration options of that extension.
Screenshot showing how this renders (current version for comparison: here):

This is the first code section in Setting up efficient intra-process communication. I edited that page as it's mentioned in https://github.com/ros2/ros2_documentation/issues/2444#issuecomment-1115146117.
See d08758fb7b84f1b4c9e29c9dfba8489e00eee272 and 39c44db8bdac7752fbfbc35cc6515e79f81a5547 for two example 'styles': the former uses an actual permalink (as suggested in #2444), the latter uses the currently used link, which includes REPOS_FILE_BRANCH.
Both have their pros and cons.
Before updating all pages which reference code, decisions should be made whether:

depending on remoteliteralinclude for this is acceptable
to use permalinks or not
which specific settings for each rli:: directive we'd like to standardise on

Once we reach consensus about this, other pages should be updated to migrate to remoteliteralinclude where applicable, literalinclude should be removed as well as any local copies of sources that accompany pages using that directive.

remoteliteralinclude comes very close to what we had on the ROS 1 wiki with <<CodeRef(..)>>.

@kurshakuz wrote:

I am leaning more towards using the second approach, as using permalinks adds almost no benefit compared to copy&pasting existing code snippets. It will require same maintenance efforts while requiring to updating all current snippets.

I'd like some more opinions here.
The main reason for permalinks is to avoid documentation going stale without anyone noticing.
Especially things like line-references or emphasis on specific code sections can very easily 'break' if we'd just track HEAD of a particular branch.

So if we're not going to change from REPOS_FILE_BRANCH to something else in this PR (that's what #2802 is for): which style of linking do we want to use here? Actual permalinks, or tracking HEAD of each branch?

CC: @clalancette

Friendly ping

And another friendly ping

I have some time to work on this before the new academic year starts.
Could we arrive at a consensus as to what style of link we'd want for the code snippets (ie: perma-links or chasing-HEAD)?

Could we arrive at a consensus as to what style of link we'd want for the code snippets (ie: perma-links or chasing-HEAD)?

This is a tough call.
So on the one hand, I agree with you that using HEAD can lead to broken documentation that is hard to notice.  So that would argue for using permalinks.
On the other hand, if we use permalinks that means we'll likely have a different permalink per branch, which makes backporting documentation changes between branches harder (basically it leads to more conflicts).
On balance, I think that keeping the documentation consumable for end-users is more important.  So I'd argue for using permalinks.

An option which would require more work would be to add a task to the deployment script(s) which diff the files referenced by remote-literal-include. A warning could be raised if there are differences detected.
Ideally it'd be the other way around (ie: warn the repositories where included files are hosted), but that'd seem even harder to implement.

Could be something to add to the CI or the site generation buildfarm job.

While we could add it to the site generation job (https://build.ros.org/job/doc_ros2doc/), the fact of the matter is that it can go a long time before being noticed there.  I think I'm the only one that ever looks at that output, and I only look at it from time-to-time.  It just doesn't make any issues very visible.
The other option of adding it to CI makes it a lot more visible, but it also punishes unrelated PRs that just happen to be opened (or modified) after an upstream tutorial gets changed.  That doesn't seem very fair to contributors.
While I appreciate the work you've done in trying to make this more visible, I'm inclined to use permalinks for now and see how it goes.  If it turns out that we are having a lot of conflicts, we can revisit your script and try to find a better place to put it.

I'm not the one having to update all those permalinks when (back)porting pages.
So if you're happy/OK with it, so am I.

I've changed the PR to use permalinks everywhere, and converted a few pages to remote-literal-include just to see how it would look.
Something I've noticed is that the sources in (fi) ros2/examples sometimes already diverge from what is included in some of the tutorials right now. A good example is Tutorials/Intermediate/Writing-an-Action-Server-Client/Cpp.rst. The text states something like "an action server requires 6 things" and shows a bit of code (the ctor). However, the sources (rolling branch, here) have 4 more arguments which are not discussed (could also be I'm looking at the wrong file).
This would be something permalinks could help with, as changes upstream don't get reflected here.

Unrelated: there are quite some places where it appears references to existing files in some package(s) are made, but I can't find them, or I'm not looking in the right places.

I'm going to close this, as it doesn't appear this is going to get merged.
Other contributors feel free to pick this up.


Menu Tabs in selected state(Collapsed menu state) are not having 4.5:1 color contrast ratio

Steps to Reproduce

Launch Xamarin Workbooks application.
Select platform to WPF and create workbook.
Navigate to Menu Tabs (File/Run/Tools/Help) in collapsed state and take the screenshot. Open the screenshots in Paint.
Verify the color contrast ratio of Menu Tabs.

Expected Behavior
Color contrast ratio should be minimum 4.5:1 ratio
Actual Behavior
Color contrast ratio for copy right text is 1.3:1
User Impact
Low vision user will feel difficult to see the text.
Screenshots

Environment
Windows : Version 1803 (OS Build : 17134.81)
Xamarin Version : 1.4(master/b3f92f9)

Log File

Exemption Approved - 1813


0.2.1

@JuliaRegistrator register()

Registration pull request created: JuliaRegistries/General/15698
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.1 -m "<description of version>" b4847d41c8b9983f96c77dbb371e2c4297a58ac8
git push origin v0.2.1


[BUG] cannot join with no overlapping index names

Although the log file seems to be a valid one (MILP model feasible, and optimal value found), grblogtools cannot parse correctly the log (attached
solver_gurobi_8_0_ir.log).
The same issue appears when using the Python API directly parse and get_dataframe functions, with one or several valid logs.
Versions

Gurobi Optimizer version 9.1.2 build v9.1.2rc0 (linux64)
python3.9.5
grblogtools=2.0.0
pandas==1.5.3

Buggy code
python3 -m grblogtools test.xlsx solver_gurobi_8_0_ir.log

Error messages
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File ".venv_39-dev/lib/python3.9/site-packages/grblogtools/__main__.py", line 4, in <module>
    cli(
  File ".venv_39-dev/lib/python3.9/site-packages/grblogtools/cli.py", line 28, in cli
    summary = result.summary()
  File ".venv_39-dev/lib/python3.9/site-packages/grblogtools/api.py", line 118, in summary
    summary = summary.join(parameters)
  File ".venv_39-dev/lib/python3.9/site-packages/pandas/core/frame.py", line 9734, in join
    return self._join_compat(
  File ".venv_39-dev/lib/python3.9/site-packages/pandas/core/frame.py", line 9773, in _join_compat
    return merge(
  File ".venv_39-dev/lib/python3.9/site-packages/pandas/core/reshape/merge.py", line 158, in merge
    return op.get_result(copy=copy)
  File ".venv_39-dev/lib/python3.9/site-packages/pandas/core/reshape/merge.py", line 805, in get_result
    join_index, left_indexer, right_indexer = self._get_join_info()
  File ".venv_39-dev/lib/python3.9/site-packages/pandas/core/reshape/merge.py", line 1039, in _get_join_info
    join_index, left_indexer, right_indexer = left_ax.join(
  File ".venv_39-dev/lib/python3.9/site-packages/pandas/core/indexes/base.py", line 259, in join
    join_index, lidx, ridx = meth(self, other, how=how, level=level, sort=sort)
  File ".venv_39-dev/lib/python3.9/site-packages/pandas/core/indexes/base.py", line 4455, in join
    return self._join_multi(other, how=how)
  File ".venv_39-dev/lib/python3.9/site-packages/pandas/core/indexes/base.py", line 4578, in _join_multi
    raise ValueError("cannot join with no overlapping index names")
ValueError: cannot join with no overlapping index names

@vepain thanks for reporting! I can't replicate this with pandas 1.5.3, but I do get the same error with pandas 2.0.1.
It's the result of a groupby behaviour change in pandas2. This is addressed by #29, but we haven't released the change yet. We'll do that shortly.

Closing as this is fixed in grblogtools 2.1.0 (just released on PyPI).

Thank you for your fast response!
Indeed, this is for pandas==2.0.1, I did something wrong with the versions


Django cms 3.3.1 Integrity Error Column 'creation_date' cannot be null

Hi
I've developed a Django CMS (3.3.1) website in my local environment and then, I've deployed it in my production environment restoring a dump of my MySQL database.
Once, on my production environment, I create a new page all works ok, but when I try to publish it, I get this error:
IntegrityError at /it/admin/cms/page/96/it/publish/ (1048, "Column 'creation_date' cannot be null") Request Method: POST Request URL: http://.../ Django Version: 1.9.9 Python Executable: /usr/local/bin/python Python Version: 2.7.5 Python Path: ['...lib/python2.7/django_cms-3.3.1-py2.7.egg'
also, if I run moderator command I get:
python manage.py cms moderator on
/.../lib/python2.7/django/db/backends/mysql/base.py:112: Warning: Column 'creation_date' cannot be null
return self.cursor.execute(query, args)
I don't have this problem in my local environment.
In the prod env I have python 2.7.5 and in my local env I have 2.7.10.... I don't know if this can be the problem...
Any suggestion?
Thanks.
Fabrizio

I've found the solution. The problem was the version of MySQL-python... with the 1.2.3 I had the problem then, I have updated to 1.2.5 and all works ok.
I close this issue.


TimelineItem type definition missing

Describe the bug
In the documentation, I can see TimelineItem has 6 props that can be customized.
But in the type definition file, there are only 4

Reproduction
<TimelineItem
title={"Update " + (i+1)}
date={new Date(siteLog.dateAdded).toLocaleDateString("en-US", {
year: "numeric",
month: "long",
day: "numeric",
})}
customLiClass=""  // THIS LINE GIVES ERROR
>
<svelte:fragment slot="icon">

</svelte:fragment>

{siteLog.description}

Flowbite version and System Info
System:
    OS: macOS 13.2.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 37.93 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.14.0 - /usr/local/bin/node
    npm: 8.19.2 - /usr/local/bin/npm
  Browsers:
    Chrome: 114.0.5735.90
    Safari: 16.3
  npmPackages:
    "flowbite": "^1.6.5",
    "flowbite-svelte": "^0.35.3"

There will be six type definitions in the coming version.

I close the issue for now.
Thank you for your contribution.
Please feel free to open a new issue.


React Group Project

We have completed setting up our Kanban View for our react group project

Our project link is below
https://github.com/Gh-Reza/space-traveler-s-hub/projects/2
There are two students in this group

Hi @demesameneshoa and @Gh-Reza ,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

Highlights
Set up kanban board ✔
Tasks assigned fairly to the group members ✔
Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

@OyePriscilla  Thank you for the feedback!


[Feature Request]: Telemetry improvements

Description
We need to disable telemetry by default, if this library should be used in production for many reasons. Telemetry, especially in IaC environments should always be opt-in and as there is a GUID hardcoded, the customer cannot even take a look into the telemetry data that was collected using the GUID and no one really knows where it is reporting. From a compliance view, it's unacceptable to have telemetry enabled by default without the possibility to view it or without any documented details about which metrics are collected exactly and where they are sent to.
In addition to disable telemetry by default, we also need to make the "Customer Usage Attribution ID" customizable. This ID is often used by CSPs and consulting companies to track deployments with their customers and should never be overwritten.
It currently makes the life harder for these companies as they are normally the ones using this module library and they need to disable telemetry explicitly for every module and adding in their own CUAID deployments.

Hey @itpropro,
thanks for creating the issue - I'll make sure it is addressed. Until then I'll try to provide some context, based also on what is documented in the Wiki.
The main point is, that the ID, which is deployed as part of the modules, is actually not a CUA-ID and can not be used to track the metrics that are usually collected using it (Note: A CUA-ID deployment requires a specific naming pattern that we 'break' using a suffix). This is by design and can, internally, only be used to get insights into the number of deployments of a given module. This also means we don't actually overwrite any existing such deployment. If one wants to deploy a CUA-ID I'd further highly recommend to do this on a solution and not a module level.
While this answer may not be satisfying I hope it helps a bit. As initially stated, I'll forward the issue to the right parties.

Thanks for explaining @MrMCake! My main concern is not in the technical implementation, but more in the transparency for customers. For the ones who never heard of the CUA-ID, it's confusing that it is deployed without consent and for the ones who know it (like me) it's even more confusing 😉
There is a general negative spirit towards telemetry from Microsoft, although it is absolutely essential to improve products. To avoid people feeling like modules can deploy anything without anyone recognizing, we should change it to opt-in and document the exact telemetry data in more detail.
Another argument for opt-in is that there is no concept of global variables currently in bicep. That means that with the way that 99% of the people are currently using the CARML module, which is copying one or the whole folder, as they are not in the bicep module registry yet, you have to disable telemetry in every single module usage.

To address the above questions/concerns, the Telemetry chapter in the "Library - Module design" article has been updated with additional information about Telemetry approach used in the CARML library.


[VS Code] Joining collaboration session: Collaboration session not found.

%0A%0A%23%23 Error:%0AJoining collaboration session: Collaboration session not found.%0A%0A%23%23 Steps to Reproduce:%0A1.%0A2.%0A%0A||Version Data|%0A|-:|:-|%0A|**extensionName**|VSLS|%0A|**extensionVersion**|1.0.337|%0A|**protocolVersion**|2.2|%0A|**applicationName**|VSCode|%0A|**applicationVersion**|1.35.0|%0A|**platformName**|MacOS|%0A|**platformVersion**|17.4.0|

Hi, @victorgois07 ,  thank you for reporting the issue. The issue title says that the session you were trying to connect was no longer active. Do you think the session did end at the time of your connection or you think that's a real issue?
Thanks!

Most likely the host stopped sharing before you tried to join, so I'm going to go ahead and close this, since the error is expected in that case. If that is not what happened, feel free to reopen, and please provide more details about your experience.


Add "known issue" about admin integration. See #54, #59

Thanks for that.  It would definitely be nice to have admin integration.

Yes, definitely! Thanks @ezheidtmann


/Users/jing/.pub-cache/hosted/pub.flutter-io.cn/image_picker-0.7.5+4/ios/Classes/FLTImagePickerPhotoAssetUtil.m:5:9: In file included from /Users/jing/.pub-cache/hosted/pub.flutter-io.cn/image_picker-0.7.5+4/ios/Classes/FLTImagePickerPhotoAssetUtil.m:5:

I use    image_picker: ^0.7.0 #图片选择   in pubspec.yaml
but run is failed
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on Mac OS X 10.15.7 19H2 darwin-x64, locale
zh-Hans-CN)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from:
https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK
components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup
for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdk to update to that location.
[!] Xcode - develop for iOS and macOS
✗ Xcode 11.0.0 out of date (12.0.1 is recommended).
Download the latest version or update via the Mac App Store.
[✗] Chrome - develop for the web (Cannot find Chrome executable at
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[!] Android Studio (not installed)
[!] Connected device
! No devices available
help me,thanks

supplement:
/Users/jing/.pub-cache/hosted/pub.flutter-io.cn/image_picker-0.7.5+4/ios/Classes/FLTImagePickerPhotoAssetUtil.m:26:42: Expected a type
/Users/jing/.pub-cache/hosted/pub.flutter-io.cn/image_picker-0.7.5+4/ios/Classes/FLTImagePickerPhotoAssetUtil.m:27:83: Property 'assetIdentifier' not found on object of type '__strong id'

@zhangxiaobin123456
You are using an older version of image_picker. Current latest version is 0.8.4+4. Also you are on older version of stable, current stable is 2.8.1. I recommend to upgrade both to latest and try again to see if it works or not.
If not, please provide flutter doctor -v, and complete minimal reproducible code sample that we can use to verify the issue.

@zhangxiaobin123456 You are using an older version of image_picker. Current latest version is 0.8.4+4. Also you are on older version of stable, current stable is 2.8.1. I recommend to upgrade both to latest and try again to see if it works or not.
If not, please provide flutter doctor -v, and complete minimal reproducible code sample that we can use to verify the issue.

Thank you. I upgraded Xcode to solve this problem


Updated names.txt

Can you please update your code by pulling the latest code from the original repo?

git pull upstream main

git push origin main


Add staging users. Add office users.

Description
Add some staging users and some office users. This is done in two separate migrations.
Reviewer Notes
Is there anything you would like reviewers to give additional scrutiny?
Setup
To verify contents:
ENVIRONMENTS="staging" download-secure-migration<PHONE_NUMBER>3249_add-staging-users.sql
cat tmp/secure_migrations/*/20190522173249_add-staging-users.sql

download-secure-migration<PHONE_NUMBER>2452_add-office-users.sql
cat tmp/secure_migrations/*/20190522192452_add-office-users.sql

Checking the migration works:
- make run_staging_migrations
- psql-prod-migrations
- Query database to confirm users have been added

References

Office users story
Staging users story

Looks like first name/last names are mixed up.

Thanks for catching that. Fixed it for those users and re-uploaded.

Change looks good.


ARROW-8314: [Python] Add a Table.select method to select a subset of columns

This is a pure python implementation. It might be we want that on the C++ side (unless it already exists?), but having it available in Python is already useful IMO.

Here's a C++ version, albeit from the R bindings: https://github.com/apache/arrow/blob/master/r/src/table.cpp#L128-L151
Since you're doing this in Python as well, maybe this should be moved to C++?

@jorisvandenbossche Do you need help on this?

I added a C++ version (didn't yet update R to use it)

It would also be nice to add a test on the C++ side, if that's not too time-consuming.

I added a C++ version (didn't yet update R to use it)

Are you intending to make that change in this PR too?

I updated this, and added a small C++ test.

Are you intending to make that change in this PR too?

Realistically speaking, not at the moment (I certainly want to learn how to set up a R dev environment, but just before the release with other priorities might not be the best time ;-))
So would either merge without, unless you can quickly push a change (I suppose it might be an easy change).

I added https://issues.apache.org/jira/browse/ARROW-9387 for using this in R. It might be trivial but in case it isn't I don't want to block this.

@pitrou could you check the C++ test?

@jorisvandenbossche I'll take a look when I'm done with 1.0.0-critical tasks. Hopefully before the end of the week :-)

+1


major changes in the theme

Is that intended @NYRI4 ?

is now

#10

For users of spicetify 2.8.1 and lower, copy paste app.css in user.css

Seems like just to be an ad from your Spotify Client (because you have no Premium)


Remove remaining deprecated hooks

I assume we'll add this to 0.8?

Tbh, I was just going to do it as a minor release. The hooks have been marked as deprecated since we made the library public, so not sure it necessarily constitutes a breaking change

I assume we'll add this to 0.8?

Tbh, I was just going to do it as a minor release. The hooks have been marked as deprecated since we made the library public, so not sure it necessarily constitutes a breaking change

I understand your perspective here, but it's definitely a breaking change. I doubt it will break many consumers, practically, but removing any public API can cause builds to suddenly fail if they're pulling in the latest patch version (which is common).

I think it's fine. I've done it with the other modules and it's not an unexpected breaking change if the module has forever been marked as deprecated.

@thegreatercurve Can you rebase this?


AVRO-3054: Fix / support decimal logical type in Ruby

Jira

[x] My PR addresses the following Avro Jira issues and references them in the PR title. For example, "AVRO-1234: My Avro PR"

https://issues.apache.org/jira/browse/AVRO-3054
In case you are adding a dependency, check if the license complies with the ASF 3rd Party License Policy.

Tests

[x] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

[x] My commits all reference Jira issues in their subject lines. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters (not including Jira issue reference)
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Documentation

[x] In case of new functionality, my PR adds documentation that describes how to use it.

README/CHANGELOG not updated, but the logical type support from AVRO-2677 should have included this encoder/decoder rather than leaving it up to consumers to shove the correct bytes in there. AVRO-2677 is closed, and we are unsure the appropriate measure to take with that. Should we have opened a new issue due to AVRO-2677 not being fully implemented or reopened it? If the former, if someone wants to create that ticket, we're happy to rewrite our commit messages with the correct ticket number.

Credit
This upstream PR was originally created by @ziggythehamster & @johvet as part of #918.
Supercedes PRs (from $918)
The following PRs are currently open and implement an incorrect version of this feature, and should be closed:

#829
#840

Both PRs shove a string like "1.234" into the bytes, rather than encoding them according to the specification. Both PRs do not validate inputs nor introduce infrastructure to do that.
Notes from #918

The Avro specification is imprecise about how decimals are to be implemented, which required us to dig into the source code of Avro for Java as well as dig into Java's BigDecimal and BigInteger to make sure we were doing the same thing. Perhaps the specification could include a Java one-liner that implements the encoder/decoder? Here's a Scala one-liner that we used to test our implementation:

val encoded = new java.math.BigDecimal("3.4562").setScale(6).unscaledValue().toByteArray()
val decoded = new java.math.BigDecimal(new java.math.BigInteger(encoded), 6)

encoded.map("%02x".format(_)).mkString(" ") // 34 bc c8: String
decoded // 3.456200: java.math.BigDecimal

We tested this in Ruby 2.3, 2.4, 2.5, 2.6, and 2.7. This is the reason for the <= check for retained objects, as some Ruby versions retain objects where others don't. We think this is either a bug in memory_profiler or a bug in Ruby itself.
Your build system depends on the echoe gem, but echoe is not compatible with RubyGems > 2.7. RubyGems 3.x has been out since 2018, and RubyGems 2.7 barely works in newer versions of Ruby. Consider upgrading this.
This PR is against master, but 1.9 is the current stable version. This branch is a version based on 1.9 with #761 incorporated (#761 was the PR that incompletely implemented AVRO-2677).
There's a gem published to GitHub packages as well, if you're like us and need a version with decimal support before this hits an official channel.

This looks correct to me. Thanks for taking over on getting this landed; we have not had the time to work on the comments raised in the original PR or keep it fresh.

@andrewthauer Thank you for continuing to push this forward! I've taken a look at this branch, and I created my own branch to work through any additional changes that I would make. I have that commit here if you'd like to take a look:
https://github.com/tjwp/avro/commit/bdb64e658750e58ecdc8e659195cb39df41dbb55
The main change is to bring the validation of the decimal logical type forward to when the schema is parsed. That way errors with a schema are caught prior to any encoding/decoding. Please take a look and let me know what you think.
As for https://github.com/apache/avro/pull/1082, if you and @ziggythehamster have looked and have no major concerns with it, then I'm happy to move forward.

@tjwp - Thanks for looking at this and also working on the additional validation refactoring.
It definitely seems more appropriate to handle the validation up front vs during encoding/decoding. https://github.com/tjwp/avro/commit/bdb64e658750e58ecdc8e659195cb39df41dbb55 seems cleaner as well imo. I haven't tested against that or #1082, but nothing stands out as concern in either. Are you thinking of getting both of those merged and before this?

@twjp - Did you want me to try and incorporate the changes from #1082 and/or https://github.com/tjwp/avro/commit/bdb64e658750e58ecdc8e659195cb39df41dbb55 into this PR?

@andrewthauer My plan was to address the schema matching with fixed feedback in #1082, and get that merged first.
After that this pull request will need to be rebased. Then the changes from https://github.com/tjwp/avro/commit/bdb64e658750e58ecdc8e659195cb39df41dbb55 should be incorporated into this branch. It is possible some additional changes may also be required as a result of #1082. I may be able to work on this consolidation once #1082 is done.

@tjwp - Sounds good. I'll keep an eye on #1082, and once that lands I'll rebase and look at incorporating https://github.com/tjwp/avro/commit/bdb64e658750e58ecdc8e659195cb39df41dbb55.

Almost forgot about https://github.com/tjwp/avro/commit/bdb64e658750e58ecdc8e659195cb39df41dbb55. This is not incorporated into the branch @tjwp.

@tjwp - Updated as per your suggestions. Ideally the additional validation can be addressed in future PR. Would be great to get this PR shipped so we can stop using the forked version we have.

I've created issues for the fixed validation and encoding/decoding:

https://issues.apache.org/jira/browse/AVRO-3141
https://issues.apache.org/jira/browse/AVRO-3142
I'm optimistic that I'll have some time to work on those.

Ideally the additional validation can be addressed in future PR.

👍🏻

Would be great to get this PR shipped so we can stop using the forked version we have.

Looks good! Merging now


Handle two or more pre-confirmations at the same slot in the demo

There is an edge case in the frontend demo where sending two pre-confirmations rapidly in the same slot can cause the second one to fail with NonceTooLow error.
This is due to fact the nonce is obtained from the provider i.e. the execution state, which hasn't processed the pre-confirmed transaction yet, and as such the nonce of same transaction is the same of the first one.
In order to solve this, in the frontend we should increment the nonce of the account upon receiving the commitment from the sidecar

Maybe this can help: https://x.com/_jxom/status/1802851459072925900

On the sidecar there was an incorrect nonce inserted in the state diff, which has been fixed with the following commit: d074de9 (#62).


Refactor of functional tests

Reviewed here: http://review.markusproject.org/r/1115/

@nifter Nice job!

This wasn't actually pulled in. Was that intentional?

@benjaminvialle Thoughts?

Code looks fine to me. I've rebased it, and running the tests right now. I will push it once this is done.
Sorry about that @Nifter , and thanks for spotting it !


Added Core function parameter in func definition

Just added a parameter that was missing in the function defintion but existed below in the parameters section

Thanks


The content is always wrapped in HTML

When requesting something that returns a non-HTML document, e.g. application/json, if the response from the server is HTTP 304, then the content_type is undefined but the content (presumably the cached content) is wrapped in HTML, e.g.

{ value => 1 }

This consistently happens when the response is HTTP 304, but this seems to happen sometimes when the response is HTTP 200.

Looking at the code, the decoded_content method is treating the content as HTML:
sub decoded_content($self) {
    $self->document_future->then(sub( $root ) {
        # Join _all_ child nodes together to also fetch DOCTYPE nodes
        # and the stuff that comes after them
        my @content = map {
            my $nodeId = $_->{nodeId};
            $self->log('trace', "Fetching HTML for node " . $nodeId );
            $self->target->send_message('DOM.getOuterHTML', nodeId => 0+$nodeId )
        } @{ $root->{root}->{children} };

        Future->wait_all( @content )
    })->then( sub( @outerHTML_f ) {
        Future->done( join "", map { $_->get->{outerHTML} } @outerHTML_f )
    })->get;
};

It should check the content type, and perhaps just return the raw content instead?

 Can you see if the following works well enough for your use case(s)? It uses the content from the response, but that content will already have been decoded and I'm not sure how well it works with binary content:
sub decoded_content($self) {
    $self->document_future->then(sub( $root ) {
        # Join _all_ child nodes together to also fetch DOCTYPE nodes
        # and the stuff that comes after them
        my $ct = $self->ct;

        my $res;
        if( $ct eq 'text/html' ) {
            my @content = map {
                my $nodeId = $_->{nodeId};
                $self->log('trace', "Fetching HTML for node " . $nodeId );
                $self->target->send_message('DOM.getOuterHTML', nodeId => 0+$nodeId )
            } @{ $root->{root}->{children} };

            $res = Future->wait_all( @content )
            ->then( sub( @outerHTML_f ) {
                Future->done( join "", map { $_->get->{outerHTML} } @outerHTML_f );
            });
        } else {

            # Return the raw body
            #use Data::Dumper;
            #warn Dumper $self->response;
            #warn $self->response->content;

            # The content is already decoded (?!)
            # I'm not sure how well this plays with encodings, and
            # binary content
            $res = Future->done($self->response->content);
        };
        return $res;
    })->get;
};

That works for JSON data, but I get an error for HTML pages:

Could not find node with given id
-32000 at perl5/perlbrew/perls/perl-5.28.1/lib/site_perl/5.28.1/Chrome/DevToolsProtocol/Target.pm line 491
at perl5/perlbrew/perls/perl-5.28.1/lib/site_perl/5.28.1/Future.pm line 882

Whoops - sorry, I didn't run the test suite properly. This one passes my new test and the existing test suite - does it work for your case too?
sub decoded_content($self) {
    my $res;
    my $ct = $self->ct || 'text/html';
    if( $ct eq 'text/html' ) {
        $res = $self->document_future->then(sub( $root ) {
        # Join _all_ child nodes together to also fetch DOCTYPE nodes
        # and the stuff that comes after them

            my @content = map {
                my $nodeId = $_->{nodeId};
                $self->log('trace', "Fetching HTML for node " . $nodeId );
                $self->target->send_message('DOM.getOuterHTML', nodeId => 0+$nodeId )
            } @{ $root->{root}->{children} };

            return Future->wait_all( @content )
            ->then( sub( @outerHTML_f ) {
                Future->done( join "", map { $_->get->{outerHTML} } @outerHTML_f );
            });
        });
    } else {
        # Return the raw body
        #use Data::Dumper;
        #warn Dumper $self->response;
        #warn $self->response->content;

        # The content is already decoded (?!)
        # I'm not sure how well this plays with encodings, and
        # binary content
        $res = Future->done($self->response->content);
    };
    return $res->get
};

This seems better.


Windows support

Changes

Organized folder structure into src and include (containing only public headers)
Updated CMakeLists to build static lib and app, with install target
Changed threads to use std::thread (compiled with the same pthread on Linux)
Updated build to support multi-platform SerialPort

Added ISerialPort interface
Moved Linux SerialPort into src/linux
Added Windows SerialPort into src/windows

Validation
Validated on Windows by running NavXTimeStamp.exe with a navX-Sensor. Roll, pitch, yaw, accelerations, and time work as expected, as well as errors if a sensor isn't connected.
I would appreciate someone validating that it still works on Linux.
Misc
I tried to keep the Windows implementation as similar to the original Linux as possible, although it seems like there may be a minor inconsequential bug in the Write method where it repeatedly writes chunks of size length until it sees the termination character. If length is a parameter, I believe Write should be checking that to know when it's done, not the completion character, but in all current cases they seem to align so there's no issue.

I pulled in the License commit, so you might want to pull that in separately (or not squash commit this PR) so git doesn't get confused later on.

trying to finalize this now so it's also compatible with being built into a ROS2 package


Add .editorconfig file.

Handy config file when developing on multiple operating systems.

EditorConfig helps maintain consistent coding styles for multiple
developers working on the same project across various editors and IDEs.

More info: https://editorconfig.org/

Looks, good, thanks!


Swift lexer: add 'associatedtype' keyword

Adds the associatedtype keyword to the Swift lexer.
I also moved the init keyword to the next line to keep them at a roughly even length.

Merged, thanks for your contribution!


GetCustomPin based on coordinates is quite dangerous

Hello,
Thank you for the great sample!
One thing upsets me in your example.
The GetCustomPin function is based on the coordinates of the item to find.
However, it is possible that two Markers have the same coordinate.
I was able to solve the problem for Android and UWP by storing a reference to the native pin in my CustomPin.
I couldn't find how to do this in the CustomRenderer for iOS.
Do you have an idea?
Thank you in advance for your answer.

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

ID: 19aecf1c-11b6-6920-a37e-817458e52dd1
Version Independent ID: af9cea8e-800f-c462-7efb-7f048235db3a
Content: Customizing a Map Pin - Xamarin
Content Source: docs/xamarin-forms/app-fundamentals/custom-renderer/map-pin.md
Product: xamarin
Technology: xamarin-forms
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Hi @cbs-cbt
Unfortunately we cannot respond to support questions here. The recommended place to seek help is the Xamarin.Forms channel on Microsoft Q&A.

Hi @cbs-cbt
Unfortunately we cannot respond to support questions here. The recommended place to seek help is the Xamarin.Forms channel on Microsoft Q&A.


fix: remove downstream approach jobs

What does this pull request do?
Remove the downstream approach jobs.
Why is it important?
We would not use them.

@kuisathaverat can I read up somewhere why we're removing these jobs again? Did it not work as intended?

@beniwohli we have to remove this one or the other, you are more comfortable with the other approach so we remove the new approach, finally it is the same only different UI.

ah, gotcha. Thanks!


Camera stuttering when using with camera.startFollow, a tilemap and zoom

Hi!
I was playing around with Phaser and tried to make a Zelda-like RPG.
I chose to use a tilemap to design my map. The map is bigger than the screen, so a camera follows the player.
The thing is: the camera is very choppy!
I use the startFollow method.

If I follow the player with a lerp value of 1 (follow the player without any delay), then the player looks smooth but the background choppy
If I follow the player with a lerp value of 0.05 (follow the player with a delay), then both the player and the background look choppy

Other informations:

my map is pretty big, but I tried with a smaller one and I still had the issue.
I use the arcade physics engine
I use a zoom of 3

Update: I just noticed that if I removed the zoom and put the lerp value of the camera to 1, the character is smooth and the background is okay (but still a little choppy).
Here is the scene code 🖋 and the index.js code 📝
And here is a video 🎬
Am I doing something wrong, or is it indeed an issue with Phaser?
Thanks 😊

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

This can happen if your camera has its roundPixels property enabled.

I noticed this bug today, too and i can confirm that it happens even without any zoom and with disabled roundPixels on the camera. In my game i only have pixelArt enabled on the main game config which seems to round some numbers. Enabling roundPixels on the camera helps a bit, but it still happens.
Plus, i noticed that spritesheets get distorted, too. See this screenshot. That's because positions of sprites don't get rounded. I expected that pixelArt would enable that as sprites don't seem to have have a roundPixels property. Same with roundPixels on the camera. Shouldn't pixelArt on the main game config do all of this because pixel games need integers?

Thank you all for your answers!
Do you have a recommendation to solve the issue?

Sorry, my comments above were directed at @bonsaiheldin - I've not looked into the original issue yet because I can't run the example provided stand-alone, so it'll take time to re-create a local test case before I can dig in to it.

@photonstorm Oh...  May I be of any help?

It would help if it was immediately available as a Codepen or JSBin that's as small as possible to reproduce the issue.

I am having a similar problem, this what happens when this.cameras.main.startFollow(this.player, true); round pixel is set to true on camera in version 3.10 (but not in 3.9), background tile sprite is fine, but the player character is not:

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.


Clarification on o/reset! usage.

The docs seem to suggest you can use reset! outside the rules block.

The session dynamic var will have the current value of the session, and reset! will update it so it has the newly-inserted value. This is nice if you want to thread a lot of calls together, or if you want to write code that works the same both inside and outside of the rule.

Which seems to disagree with the helpful exception:
You may only call `reset!` in a :then or :then-finally block

Can you give an example of something that runs inside and outside the rule code block.

It can only be called inside of a rule. What i meant is that the threaded insert calls you make can run outside of a rule too, so you could put them in a function and run them in either place. If you use insert! instead, those calls will not work outside of a rule.


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-k8s-22-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 902

Questions ?
Please refer to the Backport tool documentation


(SERVER-1110) Introduce environment_classes endpoint

This PR introduces a new HTTP endpoint, environment_classes, which
returns information about the available classes on a per environment
basis, including the names of the classes, associated parameter names
and types, and the default values for any parameters, where applicable.
This PR also moves some of the JRuby request handling helper
functions from the request-handler-core namespace into a new namespace,
jruby-request, so that the backend implementation of the new
environment_classes endpoint can reuse some of those same functions
without having to be processed by the request-handler-service.
This PR also removes some code that had been added in previous tickets --
SERVER-815 and PE-11124 -- in anticipation of what the environment_classes
endpoint would need.  That code no longer seemed to be appropriate, so it
seemed best to just remove it.

Done with initial review.  Left a handful of nitpicks and clarifying questions, but, looking good!

Done responding to latest round of comments.

@cprice404 I think I've addressed all of your comments with my latest commit.  Anything else that you think needs to be addressed at this point?

+1, Will merge after travis.
@fpringvaldsen @haus dunno if one of you just wants to peek over the parts of this that modify the request-handler fns?  Just to make sure they make sense in the context of what you guys have in flight?
There's a bunch of this PR that you probably won't have context around so don't sweat it too much.  But I am planning on merging this today.


Save on close

Thank you for your project! I was waiting to see it :)
On Mac I don't see any notification that database is not saved before app close. Its easy to lose some changes. It would be nice if you figure out how to integrate it.

Hm, onbeforeunload event is not triggered; tanks, I'll add a fix


Use ext4-DAX as the oracle for all file systems

Currently the oracle file system is an instance of the same file system being tested, but it would be better for the oracle to be a more mature file system so that (non-crash-consistency) bugs in the target file system cannot obscure crash-consistency bugs.

Hi, would love to contribute. Is there a specific place I can start at?


Add scikit-learn compatible BayesSearchCV

Hey.
Do you intent to provide a GridSearchCV plug-in replacement or only the optimizer?
The thing is that it might take a while to get that into scikit-learn, and it would be nice if people had access to it.
Cheers,
Andy

Would be a nice thing to have indeed! There is already a rudimentary example at https://github.com/scikit-optimize/scikit-optimize/blob/master/examples/plot_random_vs_gp.py but it would be even better to wrap to into a BayesSearchCV object.

We should take inspiration from the discussion and design in scikit-learn/scikit-learn#5491

http://arxiv.org/abs/1603.06560 via http://www.argmin.net/2016/06/20/hypertuning/ so we just wrap dummy_minimize? IMHO we should do some benchmarking 📊 😀

Random search for parameters is already in scikit-learn :)

I was practicing my sarcasm, before it becomes illegal after the 🇬🇧  votes to leave 💶  (really money is the only euro symbol we have? 😢)

On a more serious note, reading the blog a bit more carefully I think what they found is that if you can run twice as many points when doing random sampling then that beats BO. Slightly 🍎 to 🍑  comparison.

Why do you think so? It is just trying to put some perspective into what the baseline of hyperparameter search should be.
I think "how much better than random is state of the art smbo?" is a good question, and the answer is that it is between 1x and 2x faster, but in no setting they looked at was it more than 2x faster.

I think it is an interesting investigation for sure. The way the paper is phrased it comes across a bit dismissive of BO. The advice "evaluate your expensive functions twice as often and you will get a better result" is a bit impractical if your function is expensive to evaluate which is presumably why you are bothering with something complex like BO. That is all.

#112 demonstrates how to use skopt for hyper-parameter optimisation.
Might still be worth also providing something like a SkoptSearchCV object though, behaving like an actual scikit-learn estimator.

Bumping this. Having a SkoptSearchCV would be nice.

Not sure about the name, but otherwise like the idea!

Was just about to open an issue, but found this :)
Is anyone working on this issue? I have a working draft implementation of SkoptSearchCV in one of my forks, which extends BaseSearchCV and behaves kinda like RandomizedSearchCV. I could create a pull request over next days if no one is working on this. Seems like a cool thing to have around.

Please do :)

Ok then :) Will review the code once again and open a PR somewhere close to the weekends.

Done!


我遇到一个难题，想不通，要崩溃了。。。 ？？？

一直就是这个样子的 系统win7 求解 有账号 也绑定了百度云账号

请给出Run records.log，在exe目录下。

BaiduPanDownload - v<IP_ADDRESS>
DEBUG: Logger was created successfully.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Creating module catalog.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Configuring module catalog.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Creating Unity container.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Configuring the Unity container.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Adding UnityBootstrapperExtension to container.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Configuring ServiceLocator singleton.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Configuring the ViewModelLocator to use Unity.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Configuring region adapters.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Configuring default region behaviors.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Registering Framework Exception Types.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Creating the shell.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Setting the RegionManager.. Priority: Low. Timestamp:2017-03-22 09:39:33Z.
DEBUG: Updating Regions.. Priority: Low. Timestamp:2017-03-22 09:39:33Z.
DEBUG: Initializing the shell.. Priority: Low. Timestamp:2017-03-22 09:39:33Z.
DEBUG: Initializing modules.. Priority: Low. Timestamp:2017-03-22 09:39:33Z.
DEBUG: Initialize DownloadCoreModule Module.. Priority: Low. Timestamp:2017-03-22 09:39:33Z.
DEBUG: Bootstrapper sequence completed.. Priority: Low. Timestamp:2017-03-22 09:39:33Z.
INFO: User: "15242287804" has successfully logged in.. Priority: Low. Timestamp:2017-03-22 09:39:40Z.
INFO: MainWindow has been created and displayed.. Priority: Low. Timestamp:2017-03-22 09:39:40Z.
INFO: SignWindow has been closed.. Priority: Low. Timestamp:2017-03-22 09:39:41Z.
EXCEPTION: Exception: NullReferenceException, Message: 目标目录不存在, StackTrace:
at BaiduPanDownloadWpf.Core.NetDiskFile.d__45.MoveNext() in C:\Users\18448\Source\Workspaces\BaiduPanDownloadWpf\BaiduPanDownloadWpf.Core\NetDiskFile.cs:line 175
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at BaiduPanDownloadWpf.ViewModels.Items.NetDiskFileNodeViewModel.<b__39_0>d.MoveNext() in C:\Users\18448\Source\Workspaces\BaiduPanDownloadWpf\BaiduPanDownloadWpf\ViewModels\Items\NetDiskFileNode.vm.cs:line 108
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at BaiduPanDownloadWpf.ViewModels.HomeViewModel.d__31.MoveNext() in C:\Users\18448\Source\Workspaces\BaiduPanDownloadWpf\BaiduPanDownloadWpf\ViewModels\Home.vm.cs:line 91
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at BaiduPanDownloadWpf.ViewModels.HomeViewModel.<<-ctor>b__4_4>d.MoveNext() in C:\Users\18448\Source\Workspaces\BaiduPanDownloadWpf\BaiduPanDownloadWpf\ViewModels\Home.vm.cs:line 38
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c__DisplayClass2.b__3(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
. Priority: High. Timestamp:2017-03-22 09:39:41Z.
INFO: The software has crashed.. Priority: High. Timestamp:2017-03-22 09:39:41Z.

@DingpingZhang BaiduPanDownload - v<IP_ADDRESS>
DEBUG: Logger was created successfully.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Creating module catalog.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Configuring module catalog.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Creating Unity container.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Configuring the Unity container.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Adding UnityBootstrapperExtension to container.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Configuring ServiceLocator singleton.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Configuring the ViewModelLocator to use Unity.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Configuring region adapters.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Configuring default region behaviors.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Registering Framework Exception Types.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Creating the shell.. Priority: Low. Timestamp:2017-03-22 09:39:32Z.
DEBUG: Setting the RegionManager.. Priority: Low. Timestamp:2017-03-22 09:39:33Z.
DEBUG: Updating Regions.. Priority: Low. Timestamp:2017-03-22 09:39:33Z.
DEBUG: Initializing the shell.. Priority: Low. Timestamp:2017-03-22 09:39:33Z.
DEBUG: Initializing modules.. Priority: Low. Timestamp:2017-03-22 09:39:33Z.
DEBUG: Initialize DownloadCoreModule Module.. Priority: Low. Timestamp:2017-03-22 09:39:33Z.
DEBUG: Bootstrapper sequence completed.. Priority: Low. Timestamp:2017-03-22 09:39:33Z.
INFO: User: "15242287804" has successfully logged in.. Priority: Low. Timestamp:2017-03-22 09:39:40Z.
INFO: MainWindow has been created and displayed.. Priority: Low. Timestamp:2017-03-22 09:39:40Z.
INFO: SignWindow has been closed.. Priority: Low. Timestamp:2017-03-22 09:39:41Z.
EXCEPTION: Exception: NullReferenceException, Message: 目标目录不存在, StackTrace:
at BaiduPanDownloadWpf.Core.NetDiskFile.d__45.MoveNext() in C:\Users\18448\Source\Workspaces\BaiduPanDownloadWpf\BaiduPanDownloadWpf.Core\NetDiskFile.cs:line 175
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at BaiduPanDownloadWpf.ViewModels.Items.NetDiskFileNodeViewModel.<b__39_0>d.MoveNext() in C:\Users\18448\Source\Workspaces\BaiduPanDownloadWpf\BaiduPanDownloadWpf\ViewModels\Items\NetDiskFileNode.vm.cs:line 108
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at BaiduPanDownloadWpf.ViewModels.HomeViewModel.d__31.MoveNext() in C:\Users\18448\Source\Workspaces\BaiduPanDownloadWpf\BaiduPanDownloadWpf\ViewModels\Home.vm.cs:line 91
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at BaiduPanDownloadWpf.ViewModels.HomeViewModel.<<-ctor>b__4_4>d.MoveNext() in C:\Users\18448\Source\Workspaces\BaiduPanDownloadWpf\BaiduPanDownloadWpf\ViewModels\Home.vm.cs:line 38
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c__DisplayClass2.b__3(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
. Priority: High. Timestamp:2017-03-22 09:39:41Z.
INFO: The software has crashed.. Priority: High. Timestamp:2017-03-22 09:39:41Z.

未绑定网盘账号

问题是我绑定了啊 下载了一个文件之后就这样子的


Autocomplete does not work for named parameters of callable classes

Consider the following:
class Callable {
  void call({int value}) {}
}

void main() {
  final instance = Callbable();
  instance();
}

where the cursor is inside instance(<here>)
Then the auto-complete should suggest value:. But in reality, it suggests all the variables accessible from the scope of main, so instance, Callable, ...

I notice the area-intellij tag @rrousselGit / @a-siva, is this only a problem in intellij? I think it is a problem in all IDEs.

I had the problem with VScode personally

ah ok, I did realise that you can just write the call method and that does give you the autocomplete & method docs; it negates the callable class functionality entirely but it does provide a workaround.

Any updates?!

Any updates?!

@lrhn Sorry to bother you.
Do you think it would be possible to get this bug fixed? It appears to be an analyzer issue, as this impacts all IDEs.
It's a common source of confusion:
https://github.com/rrousselGit/freezed/issues/137
https://github.com/rrousselGit/freezed/issues/199
https://github.com/rrousselGit/freezed/issues/225
https://github.com/rrousselGit/river_pod/issues/59
https://github.com/rrousselGit/freezed/issues/346

@lrhn Sorry to bother you.
Do you think it would be possible to get this bug fixed? It appears to be an analyzer issue, as this impacts all IDEs.
It's a common source of confusion:
https://github.com/rrousselGit/freezed/issues/137
https://github.com/rrousselGit/freezed/issues/199
https://github.com/rrousselGit/freezed/issues/225
https://github.com/rrousselGit/river_pod/issues/59
https://github.com/rrousselGit/freezed/issues/346

Relabeling as area-analyzer, let's see if an analyzer developer can look at it.

Relabeling as area-analyzer, let's see if an analyzer developer can look at it.

might be a regression or not released yet, but this still does not work as expected with vscode and the dart extension @v3.32.0
@srawlins you linked the wrong issue (this one) - the right one seems to be https://github.com/dart-lang/sdk/issues/45595 which is still open

Hello, the fix https://dart-review.googlesource.com/c/sdk/+/242283 seems to be in review since more than a year