PT-BR Translation for Patcher

I found out about this patcher today through the Mother Forever twitter, and saw that you were looking for potential translators.
I'm a native brazilian portuguese speaker, and I'd like to apply for a PT-BR translation!
I'm new to GitHub, and the Issues tab was the only way I could find to enter in contact (-_-;)

I found out about this patcher today through the Mother Forever twitter, and saw that you were looking for potential translators.
I'm a native brazilian portuguese speaker, and I'd like to apply for a PT-BR translation!
I'm new to GitHub, and the Issues tab was the only way I could find to enter in contact (-_-;)

Hi there, thank you for offering your help!
If you can translate this file: https://github.com/MusicTheorist/MOTHER-3-HQ-Sound-Mixing/blob/main/The MOTHER 3 HQ Audio Patcher/src/main/resources/lang/patcher_wip.properties
then I'll get back to you with more instructions!

Hi there, thank you for offering your help!
If you can translate this file: https://github.com/MusicTheorist/MOTHER-3-HQ-Sound-Mixing/blob/main/The MOTHER 3 HQ Audio Patcher/src/main/resources/lang/patcher_wip.properties
then I'll get back to you with more instructions! Let me know if you have any questions.

Good evening! I made a fork and edited the file, it can be seen here: https://github.com/somewhatviable/MOTHER-3-HQ-Sound-Mixing/blob/PT-BR-translation/The MOTHER 3 HQ Audio Patcher/src/main/resources/lang/patcher_wip.properties

Hi there, thank you for offering your help!
If you can translate this file: https://github.com/MusicTheorist/MOTHER-3-HQ-Sound-Mixing/blob/main/The MOTHER 3 HQ Audio Patcher/src/main/resources/lang/patcher_wip.properties
then I'll get back to you with more instructions! Let me know if you have any questions.

Good evening! I made a fork and edited the file, it can be seen here: https://github.com/somewhatviable/MOTHER-3-HQ-Sound-Mixing/blob/PT-BR-translation/The MOTHER 3 HQ Audio Patcher/src/main/resources/lang/patcher_wip.properties

Wow, that was much faster than expected; kudos to you!
I just need a few things addressed:

A translation for "Brazilian Portuguese"
A translation for "Brazilian Portuguese translations by "
Translations for all the error messages at the bottom of the "patcher_wip.properties" file
One quick question: I noticed you put "audio popping" and "pops" in quotation marks with the disclaimer window. Is that the best way to handle that for native Brazilian Portuguese speakers or no, those could be translated? I'll trust your answer!

Thank you once again!

I just need a few things addressed:
1. A translation for "Brazilian Portuguese"

2. A translation for "Brazilian Portuguese translations by _your-name-here_"

3. Translations for all the error messages at the bottom of the "patcher_wip.properties" file

4. One quick question: I noticed you put "audio popping" and "pops" in quotation marks with the disclaimers window. Is that best left in English or would it be better to translate? I'm not the expert here, so I trust your answer!

Thank you once again!

Well, it's Sunday, so might as well spend a couple hours translating stuff!
Just finished addressing all the things I missed, I think it's ready to go.
About the quotations, I originally thought keeping the original terms would be better in that context, but the portuguese ones work just as well, so I added them in.

Thank you kindly!! I'll be working on getting this out soon. If I have any other questions, I'll let you know!

Oh dear, seems I left in two typos in. I'm really sorry.
They're under "labelDecompCredit" and "labelExtraSupportCredit", I left the word "and" untranslated somehow, they should both be replaced with "e", like so: "Suporte técnico adicional: Lorenzooone, phoenixbound e Yosuke".
Sorry again, but thank goodness I catched those before the update goes live!

Thank you for catching those!!
While you're at it, feel free to draft an announcement post in Portuguese and I'll happily post it on Twitter along with tagging you, if you want!

Sure thing! Maybe something like this: "Atenção fans de MOTHER 3: Graças a @SomewhatViable, o patcher de Sound Mixing HQ agora está disponível em português brasileiro! Experiencie o mundo de MOTHER 3 como nunca antes, e sem machucar os ouvidos! A patch também funciona com a tradução PT-BR feita por Earthbound Brasil. Aproveitem!"

Perfect, thank you so much!! <3

Sure thing! Maybe something like this: "Atenção fans de MOTHER 3: Graças a @somewhatviable, o patcher de Sound Mixing HQ agora está disponível em português brasileiro! Experiencie o mundo de MOTHER 3 como nunca antes, e sem machucar os ouvidos! A patch também funciona com a tradução PT-BR feita por Earthbound Brasil. Aproveitem!"

Oh dear, that doesn't fit into a single tweet for me with the GitHub link. Needs to be 22 letters shorter?

Oh dear, that doesn't fit into a single tweet for me with the GitHub link. Needs to be 22 letters shorter?

Oh, sorry about that! If my math is correct, removing "Atenção fans de MOTHER 3:" should be enough to fit.

Graças a @somewhatviable, o patcher de Sound Mixing HQ agora está disponível em português brasileiro! Experiencie o mundo de MOTHER 3 como nunca antes, e sem machucar os ouvidos! A patch também funciona com a tradução PT-BR feita por Earthbound Brasil. Aproveitem!

Oh my god, I made a mistake here, aaaaaaaa.
"Graças a @SomewhatViable, o patcher de Sound Mixing HQ agora está disponível em português brasileiro! Experiencie o mundo de MOTHER 3 como nunca antes, e sem machucar os ouvidos! A patch também funciona com a tradução PT-BR feita por Earthbound Brasil. Aproveitem!
https://github.com/MusicTheorist/MOTHER-3-HQ-Sound-Mixing/releases/latest"
I forgot the "/latest" at the end of the GitHub link... it still has to be 8 letters shorter; my apologies :(

Graças a @somewhatviable, o patcher de Sound Mixing HQ agora está disponível em português brasileiro! Experiencie o mundo de MOTHER 3 como nunca antes, e sem machucar os ouvidos! A patch também funciona com a tradução PT-BR feita por Earthbound Brasil. Aproveitem!

Oh my god, I made a mistake here, aaaaaaaa.
"Graças a @somewhatviable, o patcher de Sound Mixing HQ agora está disponível em português brasileiro! Experiencie o mundo de MOTHER 3 como nunca antes, e sem machucar os ouvidos! A patch também funciona com a tradução PT-BR feita por Earthbound Brasil. Aproveitem! https://github.com/MusicTheorist/MOTHER-3-HQ-Sound-Mixing/releases/latest"
I forgot the "/latest" at the end of the GitHub link... it still has to be 8 letters shorter; my apologies :(

It's okay! Remove "Aproveitem!" and it'll fit.

Graças a @somewhatviable, o patcher de Sound Mixing HQ agora está disponível em português brasileiro! Experiencie o mundo de MOTHER 3 como nunca antes, e sem machucar os ouvidos! A patch também funciona com a tradução PT-BR feita por Earthbound Brasil. Aproveitem!

Oh my god, I made a mistake here, aaaaaaaa.
"Graças a @somewhatviable, o patcher de Sound Mixing HQ agora está disponível em português brasileiro! Experiencie o mundo de MOTHER 3 como nunca antes, e sem machucar os ouvidos! A patch também funciona com a tradução PT-BR feita por Earthbound Brasil. Aproveitem! https://github.com/MusicTheorist/MOTHER-3-HQ-Sound-Mixing/releases/latest"
I forgot the "/latest" at the end of the GitHub link... it still has to be 8 letters shorter; my apologies :(

It's okay! Remove "Aproveitem!" and it'll fit.

Okay, that did it. Thank you!!


Remove math transformers

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

Project coverage is 100.00%. Comparing base (53b332f) to head (48771ca).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #434   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files          128       127    -1
  Lines         3861      3838   -23
  Branches       275       274    -1
=========================================
- Hits          3861      3838   -23

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


JSHint 1.1.0 fails to install behind a proxy

I think htmlhint would be more proxy-friendly if you update jshint version to 2.1.3 or newer. Jshint 1.1.0 has a dependency directly from Github (esprima:   https://github.com/ariya/esprima/tarball/master) wich makes htmlhint unusable in my context. I’m maintaining a sonatype nexus private repository for my company, behind a proxy.

Now fixed.


[OpenCL] Don't initialize OpenCL runtime on host

After adding OpenCL wrapper, it is possible to build TVM with OpenCL support also on the host which doesn't have OpenCL libraries. But if you want to compile OpenCL module for a remote device on such host machine then you will see an error that OpenCL lib cannot be open.
To avoid such problem, dry_run argument was added to OpenCLModuleCreate function. This argument allows to generate OpenCL module without calling any methods from OpenCL runtime. And now OpenCL methods are called only when they really have to be executed.

cc: @elvin-n

@masahi, @elvin-n Could you please review?


Rank up class methods from category "instance creation" for special case that Markov delivers all 0

Idea: Nested ranking (1. Markov, 2. categories, 3. newly created methods  etc.)


scrub secrets when it is split in 2+ writes

if a secret is written to the log/file in more than 1 writes, it risks not being scrubbed as our logic does work for full values.
It shouldn't be a usual behavior, but it could happen, therefore we need to handle it.
Implementation idea
Concourse implementation for reference: https://github.com/dagger/dagger/pull/4518#discussion_r1105195391
Alternate implementation: better streaming capabilities, might allow some timing attack to discover some part of secrets
Regarding this subject, I was thinking about flushing some data that has no beginning of secrets in it, but if it had, then I would buffer until I can be sure no secrets are being written.
Let's say I have a secret this is secret.
We get Write("that is cool and this")
As this is the beginning of the secret, I could either flush that is cool and and conserve this as the future buffer.
Scenario 1: next one is Write("is secret, so don't leak it").
I get this +  is secret, so don't leak it, I replace this is secret by *** and send the whole scrubbed data: ***, so don't leak it.
Scenario 2: we get Write("is creative. Nice work").
The rest of the string doesn't match the secret, so we cancel the buffering for now until another match.
I think it would be nice, and avoid the lack of streaming if there is no secret match.
The only thing I fear, is people abusing the system to discover secrets by executing the pipeline with specific strings and check via timing or other analysis that some secret starts with a specific word.
The risk can be reduced by adding some random reslicing of the flushed data: instead of flushing the whole "that is cool and " and buffering this, we could randomly flush "that is cool a" and buffer nd this, so it doesn't completely break the streaming and we don't completely leak some info about the secret as well.
What do you think about this approach? @vito  @aluzzardi @sipsma

Currently being addressed by @matiasinsaurralde in https://github.com/dagger/dagger/pull/5149


A Match Made in Drug Discovery: Marrying Geometric and Diffusion Models

Hi @busycalibrating,
We have been given an extension till today by Professor Gidel. So we are making our submission.
We have decided to change our blogpost title to "A Match Made in Drug Discovery: Marrying Geometric and Diffusion Models"
My teammate @MeilinaR had opened a PR earlier (https://github.com/iclr-blogposts/staging/pull/7) but there were some issues with rebasing it so we have opened this new PR.
Could you please help to check if the markdown is being rendered without any issues on your side? We are having some technical issues with Jekyll.
Please let us know if there are any issues and we will resolve it
Thank you very much!

I've fixed the front matter and it looks good on my end - feel free to double check it before I merge it in

Thank you! Are you able to view the images?

Yep! Some math/latex stuff looks off though:

Think I should have fixed the formatting issues above! Were there any other issues? (I unfortunately am having some trouble getting Jekyll to run properly, as I did notice that on MacOS Ventura there were some dependency problems.)

Looks good! Thank you for the submission, I merged it in now

Hi, tiny correction! I did see the following, and that there were some troubles rendering some multi-author citations like in the second picture:

What would be the best way to fix it? Sorry for the hassle, as I could not render the blogpost locally!

Additionally, we wanted to update the title on OpenReview as the submission still had our old title -- however, when trying to change it we saw that the invitation had expired. Do you know if we could fix this, or leave it with our old title?

@busycalibrating would you mind helping us out again?

I've pushed some fixes to the above issues with blogpost! Re: OpenReview I'll ask my colleague about this, but I think it should be fine with the old title worst case scenario.


Latest versions of authenticators are not updated in IS 5.3.0, 5.4.0,5.4.1 WUM

TOTP, EmailOTP, Office365, X509, SMS OTP, and Twitter authenticators not get updated to the latest version in IS 5.2.0 WUM.

Thank you for your contribution!
We are closing this issue since it has not been prioritized for a long time. Chances are that it has already been solved in more recent versions. If not, we will be re-evaluating this when it becomes a priority.


Unproject using the same mapping used to project the binding

From the spec:

When a service binding projection is removed, the controller MUST use
the same mappings from the projection creation. After a
ClusterWorkloadResourceMapping resource is modified, each binding
targeting the mapped workload type MUST be removed, then reattempted
with the latest mapping.

We now stash the mapping used to project the binding on the workload as an annotation. When unprojecting that same binding, we use the stashed mapping to unproject the binding. If updating an existing binding, the stashed mapping is used to cleanup existing state before the updated mapping is used to re-project the binding into the workload.
Resolves #138

Codecov Report
Base: 82.66% // Head: 81.71% // Decreases project coverage by -0.95% :warning:

Coverage data is based on head (25e2090) compared to base (4d9ed4c).
Patch coverage: 73.42% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #233      +/-   ##
==========================================
- Coverage   82.66%   81.71%   -0.95%
==========================================
  Files          15       15
  Lines        1350     1444      +94
==========================================
+ Hits         1116     1180      +64
- Misses        200      217      +17
- Partials       34       47      +13

Impacted Files
Coverage Δ

projector/metapodtemplate.go
60.73% <33.33%> (-1.77%)
:arrow_down:

projector/binding.go
88.18% <67.85%> (-4.77%)
:arrow_down:

projector/mapping.go
94.11% <93.54%> (-5.89%)
:arrow_down:

resolver/cluster.go
88.46% <93.75%> (-0.57%)
:arrow_down:

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Feature/idm auth support

Addresses #50

@gmatoshp I am merging this but there are some outstanding issues. I will discuss tomorrow.


Move request context creation into dispatcher

Currently it's responsibility of client code to take context from the connection and assign it to the request. I think it make sense to move this responsibility inside dispatcher abstraction to have better control on request context creation and have possibility to extend context if we'll need to do so.
https://github.com/ksysoev/wasabi/blob/main/examples/http_backend/main.go#L34

addressed in #79


Check percentage correctness on lib/runtime-settings.lua

These look strange:
-- percentage in dependence of max.age.
-- After reaching this age, machines will request replacement
mod_settings.replacement_age = get_setting_value( 'replacement-age' ) *
                                   mod_settings.max_age / 100

-- percentage in dependence of max.age.
-- After reaching this age, machines will stop until they are replaced (default value)
mod_settings.max_operation_age = 150 * mod_settings.max_age / 100

These don't look right.
A percentage should be calculated based on the max value, but here values are divided by 100.
For example, suppose we had 50 for max_age and we had 25 for the replacement age.
We would get:
25 * 50 / 100    =>    1250 / 100    =>    12.5%

???
25 is clearly 50% of 50, not 12.5%
a simple 25 / 50 would output 0.5 which is what we want, I think?
There should only be a simple division:
mod_settings = get_setting_value( 'replacement-age' ) / mod_settings.max_age
-- might be good to apply math.floor or a rounding function!

Note
Won't change this until checking the code that uses this value, since this might require refactoring the users of this value too.
But this does look like a bug.

My mistake.
I forgot that 'replacement-age' was a percentage setting, so the calculation is correct.
BUT
This setting accepts values from 10 to 300, why is 150 age hard-coded as being the maximum?


[PaginationPlugin] return type of getPage() is unknown

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior
return type of PaginatorPlugin<Todo>.getPage() gives the following type-error:
Observable<PaginationResponse<unknown>> is not assignable to type Observable<PaginationResponse<Todo>>

Expected behavior
expected return type should be State not unknown:
Observable<PaginationResponse<Todo>>
Minimal reproduction of the problem with instructions

Open todos.component.ts
Hover over getPage on line 32: return this.paginatorRef.getPage(req)
Observe type is PaginationResponse<unknown> expected  PaginationResponse<Todo>

https://stackblitz.com/edit/github-ekomtg
What is the motivation / use case for changing the behavior?
Types should be proper
Environment
akita version: 4.10.8

You should pass the whole state:
private paginatorRef: PaginatorPlugin<TodosState>

Thanks you @NetanelBasal
The documentation implies otherwise :)
https://gist.github.com/shaharkazaz/3a416c0beec77e09065a805098d78c44#file-contacts-page-component-ts

https://netbasal.gitbook.io/akita/plugins/server-side-pagination


Error when install from source on windows

I try to install by typing
pip install .
from source in windows, and get errors:

Processing e:\mamba-ssm\mamba
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
C:\Users\Administrator\AppData\Local\Temp\pip-build-env-9652a1ll\overlay\Lib\site-packages\torch_subclasses\functional_tensor.py:258: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\utils\tensor_numpy.cpp:84.)
cpu = _conversion_method_template(device=torch.device("cpu"))
:118: UserWarning: mamba_ssm was requested, but nvcc was not found.  Are you sure your environment has nvcc available?  If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.
  torch.__version__  = 2.4.1+cpu

  Traceback (most recent call last):
    File "D:\software\miniconda3\envs\Mamba-SSM\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
      main()
    File "D:\software\miniconda3\envs\Mamba-SSM\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "D:\software\miniconda3\envs\Mamba-SSM\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
      return hook(config_settings)
    File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-9652a1ll\overlay\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
    File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-9652a1ll\overlay\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires
      self.run_setup()
    File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-9652a1ll\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup
      exec(code, locals())
    File "<string>", line 188, in <module>
  NameError: name 'bare_metal_version' is not defined
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.

I was confusing that
I already install cuda and nvcc, but it seems not detect torch version and nvcc on Path. Here is information of torch   and nvcc:
nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Wed_Aug_14_10:26:51_Pacific_Daylight_Time_2024
Cuda compilation tools, release 12.6, V12.6.68
Build cuda_12.6.r12.6/compiler.34714021_0

pip show torch

Name: torch
Version: 2.3.1+cu118
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Home-page: https://pytorch.org/
Author: PyTorch Team
Author-email<EMAIL_ADDRESS>License: BSD-3
Location: d:\software\miniconda3\envs\mamba-ssm\lib\site-packages
Requires: filelock, fsspec, jinja2, mkl, networkx, sympy, typing-extensions
Required-by:

I also encounter this problem after making sure install
mamba install -c nvidia cuda-nvcc
on my Saturn Cloud image. This is inconsistent though. First time on another image after install the nvcc on the environment it work with the
pip install --no-use-pep517 causal-conv1d>=1.2.0
pip install mamba_ssm

pip install --no-use-pep517 causal-conv1d>=1.2.0
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [13 lines of output]
      /tmp/pip-install-okauxcxc/causal-conv1d_7721d6a781ed44e89dfcba384dc3416f/setup.py:113: UserWarning: causal_conv1d was requested, but nvcc was not found.  Are you sure your environment has nvcc available?  If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.
        warnings.warn(
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-okauxcxc/causal-conv1d_7721d6a781ed44e89dfcba384dc3416f/setup.py", line 185, in <module>
          if bare_metal_version >= Version("11.8"):
      NameError: name 'bare_metal_version' is not defined

      torch.__version__  = 2.3.1.post100

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
jovyan@w-tinch-mambatheisfull2-0bcfa22156a94d00a56a836e8f7e831b-76kxst:~/workspace$ nvidia-smi
Sat Oct 12 10:47:57 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.06             Driver Version: 535.183.06   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  Tesla T4                       On  | 00000000:00:1E.0 Off |                    0 |
| N/A   25C    P8               9W /  70W |      0MiB / 15360MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|  No running processes found                                                           |
+---------------------------------------------------------------------------------------+
jovyan@w-tinch-mambatheisfull2-0bcfa22156a94d00a56a836e8f7e831b-76kxst:~/workspace$

Exactly the same problem.

I am facing the same issue. Any updates?


Improve PR Description by Adding Links to File Diffs in Enhancement Section

In the current GitLab pipeline, the 'describe' step generates a 'PR description' that includes an Enhancement section with details such as:
| BaseTestsGen.cs | Refactor BaseTestsGen and add CanonicalM class | +156/-329 |
where '+156/-329' added and removed lines in the diff, represented as . Currently, this information is presented as link to file in repository BaseTestsGen.cs.
Could it possible to enhance usability with change this links to the file diffs in the MR for Gitlab?
This improvement would allow users to quickly access and review the specific changes made to a file directly from the PR description, improving workflow efficiency.

thanks, will look into this
seems like a bug


[Question] Can't import component

Hi. I am trying to create a small components lib + styleguidist playground.
Playground works fine (it uses webpack), but my build is broken. I created a dist folder, npm pack-ed it, installed locally in another project.
import { Button } from "components-lib";

Module not found: Can't resolve 'components/Button'

My index.ts looks like this:
export { default as Button } from "components/Button";
export { default as Checkbox } from "components/Checkbox";
export { default as Icon } from "components/Icon";
export { default as SideMenu } from "components/SideMenu";

I get no errors during build.
My tsconfig:
{
  "include": ["src", "@types", "test"],
  "compilerOptions": {
    "target": "es5",
    "module": "esnext",
    "lib": ["dom", "esnext"],
    "importHelpers": true,
    "declaration": true,
    "sourceMap": true,
    "rootDir": "./",
    "strict": true,
    "noImplicitAny": false,
    "strictNullChecks": false,
    "strictFunctionTypes": true,
    "noImplicitThis": true,
    "alwaysStrict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noImplicitReturns": true,
    "noFallthroughCasesInSwitch": true,
    "moduleResolution": "node",
    "baseUrl": "./",
    "paths": {
      "*": ["src/*", "node_modules/*"]
    },
    "jsx": "react",
    "resolveJsonModule": true,
    "esModuleInterop": true,
    "isolatedModules": true,
  }
}

I also don't see any static assets 😔
// tsdx.config.js
const image = require('@rollup/plugin-image');

module.exports = {
  rollup(config) {
    config.plugins = [
      image({ incude: ['**/*.png', '**/*.jpg', '**/*.svg'] }),
      ...config.plugins,
    ];
    return config;
  },
};

This could be related with how externals are configured (which I found recently):
https://github.com/jaredpalmer/tsdx/issues/6#issuecomment-593146533

Marks all imports as external if they are not relative / are absolute (seen here).

Try using relative imports, e.g.
export { default as Button } from "./components/Button";
export { default as Checkbox } from "./components/Checkbox";
export { default as Icon } from "./components/Icon";
export { default as SideMenu } from "./components/SideMenu";

Seems to be the case for components. Is there a way to enable absolute imports? Alias?

Yeah unfortunately the rollup config has a lot to be desired in that way.
I'm not sure without creating a tsdx.config.js and implementing your own extends is this possible.
Something like:
const commonjs = require('@rollup/plugin-commonjs');

module.exports = {
  rollup(config) {
    config.external = () => {
        // custom external here, specifying what is to be bundled vs what is ignored.
    }

    return config;
  },
};

Many thanks!

Yep as @lpolito said, non-relative imports are treated as externals.
Regarding aliases, you can check out the HOWTO on that at https://github.com/jaredpalmer/tsdx/issues/379#issuecomment-568202209 .
Potentially related, there was a PR for TS paths -> alias support, but the TypeScript team's position is that paths shouldn't be used like that (only for type information and not for aliasing), so it's currently only unofficially supported by various workarounds. TSDX could have it built-in but I'm not sure that's a rabbit hole worth digging into. Can read more at https://github.com/jaredpalmer/tsdx/pull/374#issuecomment-569369106


Solana Connector

We have made substantial progress on building Gateway V2, the new standalone middleware that connects to various blockchains and the DEXs on them. While Gateway won’t be merged to the master branch until Q1 2022, developers can already check out the code on the feature branch: https://github.com/coinalpha/hummingbot/tree/feat/gateway-v2
We're seeing a lot more interest in building connectors to other blockchains like Solana. We have a private Telegram group for developers from the community to discuss how to integrate Hummingbot to Solana.
Email<EMAIL_ADDRESS>in order to get access to these private Discord and Telegram groups.

Hi, I saw the notice in the Hummingbot newsletter today that there is a new HBOT incentivized grant program for Solana connectors. It said "Join the community", so that's what I'm starting to do. My name is Shane Neeley, I'm representing the Web3 dev firm AktaryTech that has previously built Hummingbot connectors, along with many other applications in the space. Here's some more about us. Please let me know who else I might want to reach out to for this.

AktaryTech is a professional Web3 and dApp development agency. We’ve built a talented team, put in-place the best software practices, and committed ourselves to quality and code safety. We’ve helped clients launch automated trading bots, DeFi yield aggregation, lending protocols, developer education tools, on-chain games, and NFT marketplaces. Our skills in the entire Web3 stack are growing with every new project.
Hummingbot Connectors
Hummingbot is an open-Source algorithmic trading bot for CEXs and DEXs. We built connectors for clients that link Hummingbot's internal trading algorithms with live information from different exchanges. They interact with an exchange's REST API and through real-time interactions via Websockets; such as by gathering order book data and sending and canceling trades. We built connectors for speed in Python, Cython and AsyncIO. The projects we’ve done so far:

Client 1  — connector for a hybrid liquidity platform with an off-chain order book + on-chain AMM
Client 2  —  a crypto market maker who needed an OSL Exchange connector.

Related to Solana, we've recently been building an app that trains devs on the Rust programming language for decentralized applications. We gained experience with Rust, Cosmwasm, and this growing ecosystem of non-EVM products.


Support freq="W" in standardized indices

Pull Request Checklist:

[ ] This PR addresses an already opened issue (for bug fixes / features)

This PR fixes #xyz

[ ] Tests for the changes have been added (for bug fixes / features)

[ ] (If applicable) Documentation has been added / updated (for bug fixes / features)

[ ] CHANGELOG.rst has been updated (with summary of main changes)

[ ] Link to issue (:issue:number) and pull request (:pull:number) has been added

What kind of change does this PR introduce?

Add support for weekly standardized indices

Does this PR introduce a breaking change?
No
Other information:
I realize that xclim and climate_indices treat zero-inflated distributions differently. I will investigate which library does it correctly and include changes if needed
EDIT: I believe xclim has the correct implementation. The probability of zeroes should be determined in the fitting procedure, not by using the full dataset. The idea is when you compute a CDF, a zero value should be mapped to the prob_of_zero in the calibration period. That is the same logic as using the fitting params of the distribution in the calibration period to compute the CDF in the full dataset.
I confirmed this is also how it's done in the case of the R package (SPEI), although I find some steps a bit weird, but I'm not too familiar with R.

I could not get "max-lik" to work with the R package, just got NaNs. But I hacked the xclim SPI to be able to use lmoments3 (it should be modified to be able to accept lmoments3) and the results are quite similar

This is not the case as I add zeros, so the treatment must still be different

All in all, the weekly resampling seems to work well. On the question of the treatment of zeroes, climate-indices, R package, and xclim, all seem to work differently. I'm starting to think I have the right implementation, but if anyone wants to chip in, I would be glad if someone wants to give a fresh look on this

If the calendar is not appropriate, there will simply be problems with resampling or groupby ? Is that sufficient?

I don't know why #1892 was not closed, I thought it was automatic


WIP: Fix the bug in unit tests about sync.Pool

Ⅰ. Describe what this PR did
Callers should not assume any relation between values passed to Put and the values returned by Get.
Ref: https://github.com/golang/go/blob/master/src/sync/pool.go#L116-L151
// Get selects an arbitrary item from the Pool, removes it from the
// Pool, and returns it to the caller.
// Get may choose to ignore the pool and treat it as empty.
// Callers should not assume any relation between values passed to Put and
// the values returned by Get.
//
// If Get would otherwise return nil and p.New is non-nil, Get returns
// the result of calling p.New.
func (p *Pool) Get() interface{} {

Ref: https://github.com/golang/go/blob/master/src/sync/pool_test.go#L28-L42
	// Make sure that the goroutine doesn't migrate to another P
	// between Put and Get calls.
	Runtime_procPin()
	p.Put("a")
	p.Put("b")
	if g := p.Get(); g != "a" {
		t.Fatalf("got %#v; want a", g)
	}
	if g := p.Get(); g != "b" {
		t.Fatalf("got %#v; want b", g)
	}
	if g := p.Get(); g != nil {
		t.Fatalf("got %#v; want nil", g)
	}
	Runtime_procUnpin()

It seems that we should pin the P when do the unit test :)
Ⅱ. Does this pull request fix one issue?

Fixes: #1416
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
Ⅳ. Describe how to verify it
make unit-test

Ⅴ. Special notes for reviews

#1418 @SataQiu

It's caused by the race detecting of go test -race. It has 1/4 possibility to drop the value in sync.Pool.Put function.


Parsing API responses in Client changes empty objects into arrays

Happens here - https://github.com/keboola/storage-api-php-client/blob/c6d64279e1e83a8848c319218046602cdad4f917/src/Keboola/StorageApi/Client.php#L1866
Should use either json_decode($jsonString) (without assoc param) or return a new class, eg Result, as in AWS (preferable).

Then revert https://github.com/keboola/kbc-ui/commit/fdfc7c49ffa7582e095b77340e427daca4bb5e25

It caused problems again https://keboola.slack.com/archives/C02CGRFH8/p1518856186000086

Moved to Jira https://keboola.atlassian.net/browse/KBC-1811


Make examples build optional

The building of the examples requires extra dependencies and so should be optional for any consumers of this library.
Assumption should be to disable by default to simplify usage by consumers.
If disabled by default then ensure it is enabled in the CI to exercise the full build.

@patrick-stephens closing this since CTR_EXAMPLES should handle this

@patrick-stephens it's already there:
https://github.com/calyptia/ctraces/blob/master/CMakeLists.txt#L43


Subclass cleanup

Lots of cleanup, please see the individual commits.
This depends on https://github.com/gtk-rs/gir/pull/1066

The gir PR has been merged.

The gir PR has been merged.

Regenerated


react and react-dom peerDependencies values are different in nextra package.json

https://github.com/shuding/nextra/blob/6c58a89b067d5bafc04178390dab605059292344/packages/nextra/package.json#L91
Is there a reason for this? By setting "react-dom": ">=16.13.1" to match react, I can get a clean pnpm install without warnings for a React 17 project build.

Your are right, this is a mistake


Single dim domain bounds as arrays

Single dim algorithms error when integration bounds are single element arrays.
using Quadrature, Cubature, Cuba

cost(x,p) = sin.(x)

qprob = QuadratureProblem(cost,0,π; nout=1, batch=0)
sol = solve(qprob, QuadGKJL(), reltol=1e-3,abstol=1e-3)

qprob2 = QuadratureProblem(cost,[0],[π]; nout=1, batch=0)
sol2 = solve(qprob2, QuadGKJL(), reltol=1e-3,abstol=1e-3)

QuadGKJL only accepts one-dimensional quadrature problems.
error(::String) at error.jl:33
solve(::QuadratureProblem{false,DiffEqBase.NullParameters,typeof(cost),Array{Int64,1},Array{Irrational{:π},1},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}}, ::QuadGKJL; reltol::Float64, abstol::Float64, maxiters::Int64, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at Quadrature.jl:46
(::DiffEqBase.var"#solve##kw")(::NamedTuple{(:reltol, :abstol),Tuple{Float64,Float64}}, ::typeof(solve), ::QuadratureProblem{false,DiffEqBase.NullParameters,typeof(cost),Array{Int64,1},Array{Irrational{:π},1},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}}, ::QuadGKJL) at Quadrature.jl:45
top-level scope at singledim_arraybounds.jl:9

CubatureJLh() and CubatureJLp() have the same issues
using Quadrature, Cubature
qprob = QuadratureProblem((x,p)->sin.(x),0,π; nout=1, batch=0)
sol = solve(qprob, CubatureJLh(), reltol=1e-3,abstol=1e-3)

qprob = QuadratureProblem((x,p)->sin.(x),[0],[π]; nout=1, batch=0)
sol = solve(qprob, CubatureJLh(), reltol=1e-3,abstol=1e-3)

qprob = QuadratureProblem((x,p)->sin.(x),0,π; nout=1, batch=0)
sol = solve(qprob, CubatureJLp(), reltol=1e-3,abstol=1e-3)

qprob = QuadratureProblem((x,p)->sin.(x),[0],[π]; nout=1, batch=0)
sol = solve(qprob, CubatureJLp(), reltol=1e-3,abstol=1e-3)

MethodError: Cannot `convert` an object of type Array{Float64,1} to an object of type Float64
Closest candidates are:
  convert(::Type{T}, !Matched::T) where T<:Number at number.jl:6
  convert(::Type{T}, !Matched::Number) where T<:Number at number.jl:7
  convert(::Type{T}, !Matched::Base.TwicePrecision) where T<:Number at twiceprecision.jl:250
  ...
#17 at Cubature.jl:215 [inlined]
disable_sigint(::Cubature.var"#17#18"{Bool,Bool,Int64,Float64,Float64,Int64,Int32,Int64,Array{Float64,1},Array{Float64,1},Array{Float64,1},Array{Float64,1},Cubature.IntegrandData{Quadrature.var"#51#59"{QuadratureProblem{false,DiffEqBase.NullParameters,var"#60#61",Array{Int64,1},Array{Irrational{:π},1},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}}}},Ptr{Nothing}}) at c.jl:446
cubature(::Bool, ::Bool, ::Bool, ::Bool, ::Int64, ::Quadrature.var"#51#59"{QuadratureProblem{false,DiffEqBase.NullParameters,var"#60#61",Array{Int64,1},Array{Irrational{:π},1},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}}}, ::Array{Int64,1}, ::Array{Irrational{:π},1}, ::Float64, ::Float64, ::Int64, ::Int32) at Cubature.jl:169
#pcubature#26 at Cubature.jl:230 [inlined]
pcubature at Cubature.jl:230 [inlined]
solve(::QuadratureProblem{false,DiffEqBase.NullParameters,var"#60#61",Array{Int64,1},Array{Irrational{:π},1},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}}, ::CubatureJLp; reltol::Float64, abstol::Float64, maxiters::Int64, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at Quadrature.jl:142
(::DiffEqBase.var"#solve##kw")(::NamedTuple{(:reltol, :abstol),Tuple{Float64,Float64}}, ::typeof(solve), ::QuadratureProblem{false,DiffEqBase.NullParameters,var"#60#61",Array{Int64,1},Array{Irrational{:π},1},Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}}, ::CubatureJLp) at Quadrature.jl:117
top-level scope at cuba_vegas.jl:26

Yes, all of the methods are made in such a way that scalar values are kept different from array values, where that's the difference between 1 dimensional and N-dimensional. We can definitely relax that a bit by checking if size is 1

I understand that you may want to treat them different, however, both should work.

I think we should get rid of the nout keyword. For oop it can be determined automatically, and for iip I think we should make the user pass a prototype of the container, currently Vector{Float64} is assumed.
But it gets complicated in the batched form, if we want to allow integration over e.g. matrix valued functions.


feat (Analysis/Normed/Group): ultrametric normed groups are nonarchimedean

This PR proves that normed groups with a norm satisfying IsUltrametricDist are nonarchimedean topological groups, and also that continuous maps from a compact space to an ultrametric space are an ultrametric space.

[x] depends on: #14768

I think your PR description has a typo, and should be

ultrametric normed groups are nonarchimedean

Do you think it's worthwhile to combine these with my lemmas in #14768 https://github.com/leanprover-community/mathlib4/pull/14768/files#diff-59aef0da4a062256a000d746f59803a758717edfd3fd33f52b9ed92edafe5d03R169-R182 I know I proved them there for SeminormedAddGroup but should be easy to switch them to SeminormedGroup and additivize

Ah, I guessed you were the right person to ask, but I hadn't seen you had already PR'ed literally the same things!
Given that your PR is much wider in scope, I think the best option is for me to set this one to "blocked-by-other-PR" for the time being, and I'll do what I can to help you get #14768 reviewed; once that's done, we can revisit this one and slim it down to a small PR for any leftover lemmas that weren't subsumed in #14768.
I see you have already switched over to using @to_additive in #14768, which is great.

bors r+


do not format numbers as strings in qc table

We loose the histogram plotting ability in the HTML table then. Instead, we can add additional fancy int formatting in the table renderer.

This PR has to wait on a fix in #127.


Do not fetch from Polar/Strava when the service is not configured/enabled

Currently it works, but a message appears and it might be silently skipped

Each plugin can now be enabled/disabled and this is taken care of during import


Folder watching documentation appears to be inaccurate

Judging by the actual code, it seems like there was an API change without the folderWatcher examples in the documentation being updated.

Hi Daniel,
thanks for pointing that out. I changed the method signatures a while ago and must have forgotten to update the documentation. I will fix that by tomorrow.
Greetings

Andy

I have updated the README and the code comments (see: ecea47604a702853c881a7dd161fead47ce8467f).
You can see a working example in the live-reload feature of my markdown webserver "allmark" at github.com/andreaskoch/allmark/blob/master/src/allmark.io/modules/dataaccess/filesystem/watcher.go:
checkIntervalInSeconds := 1

recurse := true
skipNoFiles := func(path string) bool {
  return false
}

folderWatcher := fswatch.NewFolderWatcher(directoryPath, recurse, skipNoFiles, checkIntervalInSeconds)
folderWatcher.Start()

// the go-routine which waits for changes
go func() {
  running := true
  for running {

    select {
    case <-folderWatcher.Modified():
      backChannel <- true

    case <-folderWatcher.Moved():
      running = false

    case <-folderWatcher.Stopped():
      running = false
    }
  }
}()

Greetings
Andy


vscode, vscodium: 1.63.2 -> 1.64.0

Motivation for this change
https://github.com/microsoft/vscode/releases/tag/1.64.0
https://github.com/VSCodium/vscodium/releases/tag/1.64.0
Things done

[x] Applied the git diff patch from here and here.
[x] Make it built on x86_64-linux.
[x] See if vscode, vscode-fhs, vscodium launches and opens files.
[x] Fits CONTRIBUTING.md.

@ofborg test vscodium.wayland vscodium.xorg

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

5 packages built:

vscode
vscode-fhs
vscode-with-extensions
vscodium
vscodium-fhs


It is not working properly with the latest version of leetcode

Please review previous closed issues before filling out a new one! Duplicate issues will be closed without comment.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

It will not work as, to check whether you have solved the current question, leethub checks for an element with id f= success__3Ai7, which is only possible if you use old UI and since the last two UI changes, the one where the UI became modern and the new recent one where we got dynamic UI the only way now would be to change the entire logic or rewrite the logic to check the completion and stats using the response from the Leetcode server as we see in the network tab. This is essentially rewriting the whole logic, and I don't think the LeetHub v1 is being updated, and neither is this. This is just a fork that is used to add stats along with the question we put on GitHub and has the functionality to also use geeksForGeeks instead of LeetCode.  Maybe someone can write the whole logic again using network responses, till then either make do using the old Leetcode UI or just manually make a list of problems that you solve on leetcode.


Make create forum page

Create a temporary create_forum page.

Good Job.

I just modify a create_forum page.

Codecov Report

Merging #20 (d292ff9) into master (b34aca8) will increase coverage by 0.64%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage   91.02%   91.66%   +0.64%
==========================================
  Files           8        8
  Lines          78       84       +6
  Branches        2        2
==========================================
+ Hits           71       77       +6
  Misses          5        5
  Partials        2        2

Impacted Files
Coverage Δ

forums/urls.py
100.00% <ø> (ø)

forums/views.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

Nice! 👍


More things!

Basically, it clears the contents of all subfolders in each letter folder of each huge folder.
I found the path with CleanMyMacX and decided to add it here :3
It has the App Store cache, among other caches.

I definitely don't want everything in ~/.cache deleted.  I'm pretty sure some other people don't, either.

@necrotech fixed!


No user API to create a SparseMatrix object from float* A

It seems that No user API is provided in your code to create a "SparseMatrix" object from a sparse matrix with a dense format (such as float* A).
Otherwise, I can not test the performance of your kernel with real sparse weight matrices.
I have to write my own codes to generate the CSR format from float* A, and then I have to generate the row indexes according to your row-swizzle policy.
Is my understanding correct or did I miss something in your code?

Hi! Yes, you will have to write your own code to convert to CSR.
For real sparse weight benchmarks we had the matrices stored in compressed format and loaded them directly into cpp.

Thanks for your timely reply.
I have written my own code to generate a standard CSR format and I happily found that you already provided a function to convert a standard CSR format to your customized CSR format with row-swizzle and padding.


When I the change organization owner I am removed from the PCA group

When I change ownership to someone else; From user A to user B as a Project Collection Administrator. My own account is removed from the PCA group. I think this is unintended. If I mistakenly choose the wrong account everybody except this person would be locked out of the organisation.
The docs:
https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/faq-change-organization-ownership?view=azure-devops

Reassigning to chcomley.

Hi @leonpw, This is how it has been implemented, which is definitely not ideal. We hope to address this soon, but in the meantime I've created a user story for my backlog to add some clarity to the article and point you in the right direction. Thanks for reaching out, we appreciate it.


Cypress-io plugin does not split up the test cases to run in parallel when using custom test command that uses CYPRESS_INCLUDE_TAGS

Cypress-io plugin does not split up the test cases to run in parallel when using custom test command that uses CYPRESS_INCLUDE_TAGS.
When I pass the spec folder, I can see that the tests ar being split. But when use command that's specified in package.json with specific set of tags across the project, the plug in does not split the tests across the parallel threads, instead runs all the tests in all the threads.

Closing, since this is a stale issue. If there is new information available, then we can re-open.


Upgrading the kernel wipes sudo and su pam.d files

Describe the bug
When upgrading the kernel to version 6.6 or 6.5, it becomes impossible to su or sudo. Both command will fail without prompting for password. Or, in some other case, sudo will throw a : sudo: account validation failure, is your account locked?.
While digging a bit, I found that two files (maybe more, I haven't checked yet) were wiped : /etc/pam.d/sudo and /etc/pam.d/su. I am not sure if the files are wiped or if nix fails to write to it, but no errors are to be reported from nixos-rebuild command.
A temporary fix to this issue is to write manually the files content to the nix configuration file as follow :
security.pam.services.sudo.text = pkgs.lib.mkDefault( ''
original content
of the file
'' );

security.pam.services.su.text = pkgs.lib.mkDefault( ''
original content
of the file
'' );

But this seems like a bad fix because if this file was ever to be updated, the change would have to be reported back in the config file.
Steps To Reproduce
Steps to reproduce the behavior:

add config.boot.kernelPackages = pkgs.kernelPackages_latest; to /etc/nixos/configuration.nix
run nixos-rebuild boot or nixos-rebuild switch (while being root user if you don't want to be locked out of root permission).
try to sudo (using sudo -v for example). It should fail.
try to su. It should fail with su: Authentification failed
If you are root user, run less /etc/pam.d/su and less /etc/pam.d/sudo. Both file should be empty.

Expected behavior
/etc/pam.d/sudo and /etc/pam.d/su should not be modified after a nixos-rebuild.
Additional context
I haven't tried on older kernel packages that are deprecated, but seeing that two versions (6.6.x & 6.5.x) returns the same issue, there is a high probability that it is not a version specific issue.

/etc should not be modified manually. It's expected that any change to it will be overwritten by the next nixos-rebuild.

Sorry if I did not explain myself clearly. I did not manually modified those files. The issue is, those files are wrongly modified by NixOS when doing nixos-rebuild. They become empty which is NOT an expected behavior as this will lock the the user out of root user and sudo PERMANENTLY with no possibility of going back.
This is definitely a huge problem.

So where did the content of those files come from before you ran nixos-rebuild?

I'm kind of new to linux, but from my understanding, /etc/pam.d/su is part of every linux system and /etc/pam.d/sudo is part sudo. So I guess the later is generated by sudo. Again, from what I have read, those are normal system files.
I'll check if those files existed since my first generation NixOS. I'll update this comment.

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/sudo-fails-without-prompting-for-password/36056/3

You can use cat to be sure.

I used cat, and the files are indeed empty

The issue is gone with version 23.11. Since 23.05 is deprecated, should we close this issue ?


Once again, no thumbnail animation, no likes/dislikes on it...

What I did was remove it from the Firefox add-ons page, download the yeppha.github.io
on my desktop and drag it on the Firefox icon just like last time.
I checked some random video page for the animation, likes, dislikes and frame rate and
sadly, nothing, just a boring static one.
What did I do wrong this time?
Please help!

If you haven't used the version 2.1.7 yet then you can download it from here: https://github.com/YePpHa/YouTubeCenter/wiki
Do not choose the link in front of AMO because it leads to an outdated version.
If you already tried the version 2.1.7 then try the latest developer version which can be found here: https://github.com/YePpHa/YouTubeCenter/wiki/Developer-Version
I have tested with the developer version 461 just now and the thumbnail animation, likes/dislikes and quality all displayed correctly.

I don't see the watch later button when I hover over thumbnails on the my subscribtions list
on the default page everythign works fine -> the button is visible

actually there is no difference
the issue is that the hovering function doesn't work anymore
->it only works to set it to show always
I switched the settings but they only took effect after I reloaded the page which elad to a false conclusion on my site -> it happens on all sites: hovering doesn't work

I have used the dev version as suggested and it now works. Thank you very much!
I NEED my thumbnail animation!

@Djfe create a new issue for the hover issue as it's not completely the same as the one @campaignsong reported. Anyway, I can confirm that the issue you're having with i.e. 'watch later' doesn't work when it's not set to Always.


Re-exported symbols inside a namespace are ignored

Search terms
namespace, re-export
Expected Behavior
List re-exported symbols as members of the namespace.
Actual Behavior
Re-exported symbols are ignored.
Steps to reproduce the bug
Run tsdoc against the following input:
// index.d.ts
interface Bar {
  prop: number;
}

declare namespace admin {
  export interface Foo {
    prop: string;
  }

  export { Bar }
}

export = admin;

Generated output only lists Foo for admin:

Same happens when re-exporting symbols imported from another file:
import { auth } from './auth/index';

declare namespace admin {
  export { auth }
}

Environment

Typedoc version: v0.18.0
TypeScript version: v3.9.6
Node.js version: v10.22.0
OS: Mac

Fix published in v0.19.2


Avoid dependencies on external services

We have a dependency on the Google Api in the service without a real need, e.g. https://fonts.googleapis.com/css?family=Open+Sans:400,600,300 We could also use another font. The issue with this dependency is, that we are sharing our data without any need and if people are offline the browser tries to connect to the web for no apparent reason slowing down the page.
Please take out the dependency and implement another solution for the font.

There are two things that we can do:-

Replace the font with a different font.
Try to implement a solution which enables us to use google font even when the website is being viewed offline.

The former option is simple while the latter would require some work to do. However, I feel that the current 'Open Sans' font looks really neat and aesthetic and a lot of other people use it too. So, I am kinda leaning towards the later option. I could be wrong though. Please guide. Thanks!!

@mariobehling @Princu7
If we are going to use open sans we can use

gulp-google-webfonts it will download the font while generation of web-app and create a .woff file for it.
We can directly add .woff files using https://github.com/FontFaceKit/open-sans

The solution "Replace the font with a different font" or the idea of @geekyd both work for me. Just decide what you prefer.

@geekyd please proceed with saving it when the webapp is generated.

@Princu7 I am assigning this to you as @geekyd is focusing on other parts of Open Event. Please help to resolve this issue.


Create how-to-submit-a-canvasapp-sample.md

adding documentation how to contribute

Thank you! Merged as a wiki. We need the missing media file too :-)


Create a gokit channel under Gophers' slack community

There're lots of go discussion/channels in gophers' slack community
Should we create a gokit there?

Given that there's already an official IRC channel on freenode, it makes sense to not fragment the discussions.

Thanks for the note, @waitingkuo. +1 to not fragmenting, but also +1 to actually having discussion :) The freenode channel is basically dead. Let me hang out on Slack for awhile and see how it feels.

+1 to gophers slack channel

+1 to slack. I don't use it often, but I at least have an account that works and I would go there more given a good reason. With IRC I can never figure out how to get a non-guest freenode account setup.

I've created #go-kit on http://gophers.slack.com, we'll see how it goes for the next few days...

This seems successful to me.

Yep. Updated topic in Freenode #go-nuts; will change README in a second...

And done.


add python (Python Fluente) book

What does this PR do?
Add resource(s)
For resources
Description
Python Fluente, Segunda Edição is a directly translation of Fluent Python, Second Edition (O’Reilly, 2022). It is not a derivative work of Python Fluente (Novatec, 2015).
Why is this valuable (or not)?
This book was written for practicing Python programmers who want to become proficient in Python 3.
How do we know it's really free?
This translation has been authorized by O’Reilly Media for distribution under the terms of the CC BY-NC-ND license. The translation is distributed by the author himself, who owns the rights thereto.
For book lists, is it a book? For course lists, is it a course? etc.
It is a book.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Thanks, and welcome to free-programming-books!


cannot build using --features "metal" due to cargo limitations

see https://github.com/rust-lang/cargo/issues/5015

never mind; looks like this is pinned to use vulkan.

@tsal, hi, you can actually build this for metal, but you need to uncomment these lines in Cargo.toml:
https://github.com/amethyst/grumpy_visitors/blob/master/bins/client/Cargo.toml#L38-L40
and make sure to comment out vulkan then. Yeah, this is indeed not the most convenient way to do it.. :(
Also related: https://github.com/rust-lang/cargo/issues/1197.


httpConfig in addFullRequestInterceptor is empty

Hi,
Trying to add dynamic authentication header to the call made to a REST API and then I want to do:
 Restangular.addFullRequestInterceptor (function (element, operation, route, url, headers, params, httpConfig) {
      var loginCookie = angular.fromJson($cookieStore.get('Login'));
      var hash = CryptoJS.HmacSHA256(httpConfig.method + loginCookie.server_dateTime.replace('+', ' ') + '/' + route, loginCookie.login_token);
 ....
      return {
        element: element,
        headers: headers,
        params: params,
        httpConfig: httpConfig
      };
}

I'm having two issues here:

When using $http I can add interceptors as strings, allowing me to add a requestInterceptor by string in app.config (since I can't access the $cookie in .config). Is there any equivalent way of adding it with RestAngularProvider or am I forced to add the FullRequestInterceptor on every Restangular object in the case of cookies being needed?
In the above snippet is httpConfig an empty object {}. That means I can't get the method and thus can't sign my request in a way that this API requires me to. Am I doing something wrong there because according to the documentation the $http.config object should be there? Element is also empty but I'm not sure what's supposed to be in there anyway.

Thanks in advance

httpConfig is empty ({}) in the interceptor since you are not passing any custom httpConfig manually. It's there. It would've been the bug if it was undefined.
Restangular.one('accounts', 123).withHttpConfig({timeout: 100}).getList('buildings');

Now httpConfig will be
{ timeout: 100 }

In case it's empty, note that you can manually create & return a new config that it will be used instead.
Calling method is the only supported way to add interceptors for now.

@glispajon Was your issue resolved?


From private repo

@aczechowski : Thanks for your contribution! The author, @, has been notified to review your proposed change.


or with many branches

I need a parser with multiple branches. My first attempt was:
or(i, parser! { string(b"ERROR"); ret LogLevel::Error }, |i| {
    or(i, parser! { string(b"WARN"); ret LogLevel::Warn }, |i| {
        or(i,
           parser! { string(b"INFO"); ret LogLevel::Info },
           parser! { string(b"DEBUG"); ret LogLevel::Debug })
    })
})

It works, but it feels too verbose, so I tried to write this macro:
macro_rules! alt {
    ($i:expr, $a:expr) => { $a };
    ($i:expr, $a:expr, $b:expr) => { or($i, $a, $b) };
    ($i:expr, $a:expr, $($b:expr),*) => { or($i, $a, |i| alt!(i, $($b),*)) };
}

Now, the parser looks much better:
alt!(i,
    { parser! { string(b"ERROR"); ret LogLevel::Error } },
    { parser! { string(b"WARN");  ret LogLevel::Warn } },
    { parser! { string(b"INFO");  ret LogLevel::Info } },
    { parser! { string(b"DEBUG"); ret LogLevel::Debug } }
)

I have some questions:

Is this a good solution? Is there any alternative?
Can you include something like this in the crate? I think that more people will need a multi-or combinator.

Thanks!

I have been thinking about how to solve this for a while. Attoparsec and Parsec uses the Alternative typeclass to allow multiple alternations by using the <|> infix operator. I decided to hold off on implementing any macro like alt! to explore other options, as well as to see how well stacking the or combinator scales.
An infix combinator (or method) would be nice but is not possible due to the eager evaluation of the parsers in Chomp and the fact that it does not backtrack on errors (like Parsec does). The or combinator stores the position before evaluating the left hand side, and uses the stored position to evaluate the right hand side if the left hand side fails. With a lazy evaluation of the Parser monad we could possibly use eg. + or | for this, or an or method on ParseResult, but that requires Abstract output type parameters to land.
So, to list a few possible solutions I have thought of:
Tuple
Making an alt combinator function taking a tuple as an argument. This may have some merit but as in #26 this also has the issue of preventing type-inference of Input to the closures used in the tuples (so the parser! macro needs to be augmented with types and possibly lifetimes, which can be a huge issue).
Macro
It is essentially the macro you have provided above. The issue with macros is that they do not integrate nicely with the parse! macro:
parse!{i;
    // This works nicely:
    let a = or(decimal, hexadecimal);
    let b = alt!(this, will, fail, badly);
    let c = i -> alt!(this, will, work);
    ret (a, b, c)
};

With the inline action form it might be acceptable, and it is useful outside of the parse! macro.
Improve parse!
Improving parse! to support more syntax (ie. the Alternative typeclass infix operator <|>) might be another option:
parse!{i;
    let a = decimal <|> hexadecimal; // can use <|> due to ACTION being `$expr (...)`
    let b = this <|> will <|> work;
    ret (a, b)
}

It will not work with the INLINE_ACTION type (ie. i -> $expr) sine it ends in an expression which require , or ; to end. Could maybe be solved with parentheses. It is also very similar to the alt! macro when only used as an alteration one-liner:
let level = |i, b, r| string(i, b).map(|_| r);
parse!{i; level(b"ERROR", Error)   <|>
          level(b"WARN",  Warning) <|>
          level(b"INFO",  Info)    <|>
          level(b"DEBUG", Debug)}

Slice
Slice would be nice but requires indirection (ie. trait objects), so this is out.

I am currently leaning towards improving the parse! macro. The basic idea is to extend and generalize the grammar:
Block     ::= Statement* Expr
Statement ::= (Bind | Expr) ';'
Bind      ::= 'let' Var '=' Expr
Var       ::= $ident ':' $ty | $pat
Expr      ::= Term | Expr Operator Term
Term      ::= Ret | Err | Inline | Named | '(' Expr ')'
Ret       ::= "ret" (Typed | $expr)
Err       ::= "err" (Typed | $expr)
Typed     ::= '@' $ty ',' $ty ':' $expr
Inline    ::= $ident "->" $expr
Named     ::= $ident '(' ($expr ',')* (',')* ')'
Operator  ::= "<|>" | "<*" | ">>"

This should allow for a lot more flexibility in the use of the parse! macro:
// alternation:
parse!{i; a() <|> b() <|> c()}
// skipping:
parse!{i; decimal() <* token(b';')}
// inline ret and err
parse!{i; (ret 2) <|> err "will never happen"}

And most of this will be usable inline. If I can integrate this further with the https://github.com/m4rw3r/chomp/issues/26 it should make the parse! macro very powerful.

+1 on this, thanks @m4rw3r for the pros and cons of each approach.

I really like the <|> solution (-:

I have now managed to implement the following grammar with right-associative operators in the Expr without any operator precedence in #31


Minor improvements and fixes of the Czech translation

Much appreciated. I should be able to get these upstream today.


Feature request: Multiple "word" --> color options

It would be cool to have multiple filters matched up to individual colors.
Example...
Filter1 = "compost"  -->  Color1 = "purple"
Filter2 = "Farming Guild Contract"  -->  Color2 = "green"
Filter3 = "inventory, interesting"  -->  Color3 = "red"
I would naively say this is almost just adding a loop to the current code.
Thanks!

added in v1.1


Mount and install the operating system to a temporary image

Trying to upgrade form 10.9.5 to ElCapitan 10.11.4 following the steps as described.
I tried with 64g instead of 32g when creating /tmp/output.sparseimage but the error remains.
sudo installer -pkg /tmp/installesd/Packages/OSInstall.mpkg -tgt /tmp/os
Password:
installer: Package name is OS X
installer: Installing at base path /private/tmp/os
2016-05-13 11:50:09.776 installer[13369:8977] Looking for system packages
2016-05-13 11:50:09.780 installer[13369:8977] no system packages found
2016-05-13 11:50:09.781 installer[13369:8977] No or Invalid system receipts found on /private/tmp/os/Recovered Items
2016-05-13 11:50:09.781 installer[13369:8977] Attempting fallback using: /System/Library/PrivateFrameworks/SystemMigration.framework/Resources/FallbackSystemFiles.plist
2016-05-13 11:50:09.910 installer[13369:8977] Finding system files...
2016-05-13 11:50:11.486 installer[13369:8977] Writing system path cache.
2016-05-13 11:50:11.501 installer[13369:8977] FSF cache NOT written: /private/tmp/os/Recovered Items/System/Library/Caches/com.apple.FindSystemFiles.plist
installer: The install failed (There is not enough space on this disk to install the selected items.  Deselect at least 10.86 GB and try again.)```

Using AutoDMG I found:

Can I build images for one OS while running another?

No. Apple's installer does not work across OS versions. If you want to build a 10.9 image, AutoDMG >needs to run on a 10.9 machine.

provided it applies here too, it needs to be written somewhere.

This is quite odd. I have many times used createinstallmedia to build installer USB drives for newer versions than the one I'm running the command on, and it's never been a problem. I've gone from various versions to newer ones, sometimes one step up and sometimes two.

I was able to run createinstallmedia on an El Capitan machine for macOS Sierra. Maybe this only applies to creating full images using AutoDMG?


Failed to compile

Hi,
very intersting project. Using it in URP for Unity 6000.4, but get a shader compilation error.
#include <UnityShaderVariables.cginc> seems to be missing in the hlsl file to work with the _ScreenParams , but even after that, it is complaining, that SHADERGRAPH_SAMPLE_SCENE_NORMAL(uv) symbol cannot be resolved. The material renders pink.
Best

That's really strange. I have just tested it on 6000.5 and it works fine. Can you try one more time?
These are the steps I followed:

Create a new URP project using the template.
Import the 3 files from the Cavifree URP folder into the project.
Fix the broken link in the Custom Function node of the CavityShader shader graph.
Create a full screen pass in the Universal Renderer Data asset (inside Assets/Settings).
Tweak the settings in the CavityMaterial.

This is the result:

@tviel When you have a minute, can you confirm if you have managed to make it work? :)


[Popover] How to open Popover when hover button with material-ui V1 ?

[ ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

Context

Your Environment

Tech
Version

Material-UI

React

browser

etc

There is nothing specific to Material-UI in the question. You can controle the component. Listen for hover events and trigger the Popover when needed.


ProgressBar/ProgressBarStack display crazy float numbers in label for some progress values

OS, browser, uiv version
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3230.0 Safari/537.36"
master (23ec068)
Which component
ProgressBar, ProgressBarStacked
Steps to reproduce the problem
With <progress-bar v-model="foo">, with the default min value of 0 and max value of 100, if (for instance) foo == 7, the ProgressBar label will display "7.000000000000001%". This sort of thing happens for several other integers in 0..100 too. This of course causes the label to grow much wider for an instant and produces an unpleasant visual disruption.
Expected behavior
The ProgressBar label should keep the same precision through the whole range of progress values.
Actual behavior
The ProgressBar label displays numbers with several extra decimal places for certain progress values, due to the nature of floating point numbers.

This is because of the expression used here to derive a percentage based on value, min and max.
https://github.com/wxsms/uiv/blob/23ec068b39cf81edc03342abf2dabe34dcf2ad3d/src/components/progressbar/ProgressBarStack.vue#L55
I'm thinking the thing to do might be to slap a Math.round() around that.

Put in PR #76 to do just that.

Thanks for your contribute!


How to use transactions?

Hi!
How to use transactions when database queries located in different methods?
Like in my case? Or I must using this in handler functions?
func (m *Actor) beforeInsert(){
	m.CreatedAt = time.Now()
	m.UpdatedAt = m.CreatedAt
	m.AvatarUrl = "/img/face.png"
	p := m.Person
	p.Create()
	m.PersonId = p.Id
}

func (m *Actor) Create() error {
	err := db.Transactional(func(tx *dbx.Tx) error {
		var err error
		m.beforeInsert()
		err = tx.Model(m).Exclude().Insert("Alias", "PersonId")
		if err != nil {
			fmt.Println("Exec err:", err.Error())
		}
		return err
	})
	return err
}

This is the code I wrote for a project. You can use this handler (middleware) for any request that needs transaction. GetContext() retrieves some application-specific context information from routing.Context. You will need to pass along this context through all methods that need to do DB operations (this is because transaction is something per request).
import (
	"github.com/go-ozzo/ozzo-dbx"
	"github.com/go-ozzo/ozzo-routing"
	"github.com/go-ozzo/ozzo-routing/fault"
)

// Transactional starts a DB transaction.
// If a nested handler returns an error or a panic happens, it will rollback the transaction.
// Otherwise it will commit the transaction after the nested handlers finish execution.
// By calling app.Context.SetRollback(true), you may also explicitly request to rollback the transaction.
func Transactional(db *dbx.DB) routing.Handler {
	return func(c *routing.Context) error {
		tx, err := db.Begin()
		if err != nil {
			return err
		}

		ac := GetContext(c)
		ac.SetTx(tx)

		err = fault.PanicHandler(ac.Errorf)(c)

		var e error
		if err != nil || ac.Rollback() {
			// rollback if a handler returns an error or rollback is explicitly requested
			e = tx.Rollback()
		} else {
			e = tx.Commit()
		}

		if e != nil {
			if err == nil {
				// the error will be logged by an error handler
				return e
			}
			// log the tx error only
			ac.Error(e)
		}

		return err
	}
}

For your reference, I just published this repo: https://github.com/qiangxue/golang-restful-starter-kit

Great thanks! Very interesting, with DAO layer and errors handling! ))


Temperature Drop Outs

Hello ,
I have an issue with temperature when I set up modes/temperatures or at random refresh time. The tempeture falls down to -22.5C (or other minus number) for 5-10 seconds and then the normal tempeture appears.

LOG:
2020-05-26 11:12:35 DEBUG (SyncWorker_6) [msmart.lan] Received from <IP_ADDRESS>:6444 5a5a01116800200000000000000000000000000031860000000f0000000000000000000000000000c7ec8e4276f8accc266a4648044169534ef900b4addf8808145b702d1c28520aec9d938eeaae3d871b99ce4b7e20a37b951a3cdfd2e8af002178d80ff39f9455.
2020-05-26 11:12:35 DEBUG (SyncWorker_6) [msmart.device] refresh - Recieved from <IP_ADDRESS>,<PHONE_NUMBER>0f: aa23ac00000000000303c00057507f7f003c00000064ff0b00020000000000000000d149
2020-05-26 11:12:35 DEBUG (SyncWorker_6) [msmart.command] Appliance response data: c00057507f7f003c00000064ff0b00020000000000000000d149
2020-05-26 11:12:35 DEBUG (SyncWorker_9) [msmart.lan] Received from <IP_ADDRESS>:6444 5a5a0111680020000000000000000000000000002d8d000000100000000000000000000000000000c7ec8e4276f8accc266a4648044169534ef900b4addf8808145b702d1c28520aec9d938eeaae3d871b99ce4b7e20a37b302d88a48df0b3d5143d742e56777667.
2020-05-26 11:12:35 DEBUG (SyncWorker_9) [msmart.device] refresh - Recieved from <IP_ADDRESS>, 2d8d00000010: aa23ac00000000000303c00057667f7f000000000064ff0b00040000000000000000ac92
2020-05-26 11:12:35 DEBUG (SyncWorker_9) [msmart.command] Appliance response data: c00057667f7f000000000064ff0b00040000000000000000ac92
2020-05-26 11:12:35 DEBUG (SyncWorker_0) [msmart.lan] Received from <IP_ADDRESS>:6444 5a5a0111680020000000000000000000000000002f8d000000100000000000000000000000000000c7ec8e4276f8accc266a4648044169534ef900b4addf8808145b702d1c28520aec9d938eeaae3d871b99ce4b7e20a37bdf9cb1a2fc169ee1f1b7d550df1e7639.
2020-05-26 11:12:35 DEBUG (SyncWorker_0) [msmart.device] refresh - Recieved from <IP_ADDRESS>, 2f8d00000010: aa2bac00000000000304a100148240000000000037052b645a00001e13fe000000000000000000000000a5b2
2020-05-26 11:12:35 DEBUG (SyncWorker_0) [msmart.command] Appliance response data: a100148240000000000037052b645a00001e13fe000000000000000000000000a5b2
2020-05-26 11:12:35 DEBUG (SyncWorker_0) [msmart.device] Unknown Operational Mode: 0
2020-05-26 11:12:35 DEBUG (SyncWorker_0) [msmart.device] Unknown Fan Speed: 2
2020-05-26 11:12:42 DEBUG (SyncWorker_8) [msmart.packet_builder] Finalize request data: aa23ac000000000000024000a46503ff0000000002000000000000000000000000007072
2020-05-26 11:12:42 DEBUG (SyncWorker_8) [msmart.lan] Sending to <IP_ADDRESS>:6444 5a5a0111680020000000000000000000000000002f8d000000100000000000000000000000000000489d510f20d55a3422c50933fa3b4d0a5bcd628c7e000fa098bb3d63c90f44756ec374d91662b5fdd3d9d06a1ed87e46d27f41362d2a1397abf5b8232c95f1b2.
2020-05-26 11:12:44 DEBUG (SyncWorker_8) [msmart.lan] Received from <IP_ADDRESS>:6444 5a5a0111680020000000000000000000000000002f8d000000100000000000000000000000000000489d510f20d55a3422c50933fa3b4d0a5bcd628c7e000fa098bb3d63c90f44756ec374d91662b5fdd3d9d06a1ed87e46d27f41362d2a1397abf5b8232c95f1b2.
2020-05-26 11:12:44 DEBUG (SyncWorker_8) [msmart.device] apply - Recieved from <IP_ADDRESS>, 2f8d00000010: aa23ac00000000000302c000a4667f7f0000000000645a08001300000000000000003c4f
2020-05-26 11:12:44 DEBUG (SyncWorker_8) [msmart.command] Appliance response data: c000a4667f7f0000000000645a08001300000000000000003c4f
2020-05-26 11:12:44 DEBUG (SyncWorker_7) [msmart.packet_builder] Finalize request data: aa20ac00000000000003410000ff03ff00020000000000000000000000000004e9
2020-05-26 11:12:44 DEBUG (SyncWorker_7) [msmart.lan] Sending to <IP_ADDRESS>:6444 5a5a0111680020000000000000000000000000002f8d000000100000000000000000000000000000c7ec8e4276f8accc266a4648044169534ef900b4addf8808145b702d1c28520aec9d938eeaae3d871b99ce4b7e20a37bdf9cb1a2fc169ee1f1b7d550df1e7639.
2020-05-26 11:12:47 DEBUG (SyncWorker_7) [msmart.lan] Received from <IP_ADDRESS>:6444 5a5a0111680020000000000000000000000000002f8d000000100000000000000000000000000000c7ec8e4276f8accc266a4648044169534ef900b4addf8808145b702d1c28520aec9d938eeaae3d871b99ce4b7e20a37bdf9cb1a2fc169ee1f1b7d550df1e7639.
2020-05-26 11:12:47 DEBUG (SyncWorker_7) [msmart.device] refresh - Recieved from <IP_ADDRESS>, 2f8d00000010: aa23ac00000000000303c000a4667f7f0000000000655a08001600000000000000009de9
2020-05-26 11:12:47 DEBUG (SyncWorker_7) [msmart.command] Appliance response data: c000a4667f7f0000000000655a08001600000000000000009de9
2020-05-26 11:12:49 DEBUG (SyncWorker_5) [msmart.packet_builder] Finalize request data: aa20ac00000000000003410000ff03ff00020000000000000000000000000004e9
2020-05-26 11:12:49 DEBUG (SyncWorker_1) [msmart.packet_builder] Finalize request data: aa20ac00000000000003410000ff03ff00020000000000000000000000000004e9
2020-05-26 11:12:49 DEBUG (SyncWorker_6) [msmart.packet_builder] Finalize request data: aa20ac00000000000003410000ff03ff00020000000000000000000000000004e9
2020-05-26 11:12:49 DEBUG (SyncWorker_6) [msmart.lan] Sending to <IP_ADDRESS>:6444 5a5a0111680020000000000000000000000000002f8d000000100000000000000000000000000000c7ec8e4276f8accc266a4648044169534ef900b4addf8808145b702d1c28520aec9d938eeaae3d871b99ce4b7e20a37bdf9cb1a2fc169ee1f1b7d550df1e7639.
2020-05-26 11:12:49 DEBUG (SyncWorker_1) [msmart.lan] Sending to <IP_ADDRESS>:6444 5a5a01116800200000000000000000000000000031860000000f0000000000000000000000000000c7ec8e4276f8accc266a4648044169534ef900b4addf8808145b702d1c28520aec9d938eeaae3d871b99ce4b7e20a37b951a3cdfd2e8af002178d80ff39f9455.
2020-05-26 11:12:49 DEBUG (SyncWorker_5) [msmart.lan] Sending to <IP_ADDRESS>:6444 5a5a0111680020000000000000000000000000002d8d000000100000000000000000000000000000c7ec8e4276f8accc266a4648044169534ef900b4addf8808145b702d1c28520aec9d938eeaae3d871b99ce4b7e20a37b302d88a48df0b3d5143d742e56777667.

this problem is your device's reply is same as send.
2020-05-26 11:12:44 DEBUG (SyncWorker_7) [msmart.lan] Sending to <IP_ADDRESS>:6444 5a5a0111680020000000000000000000000000002f8d000000100000000000000000000000000000c7ec8e4276f8accc266a4648044169534ef900b4addf8808145b702d1c28520aec9d938eeaae3d871b99ce4b7e20a37bdf9cb1a2fc169ee1f1b7d550df1e7639.
2020-05-26 11:12:47 DEBUG (SyncWorker_7) [msmart.lan] Received from <IP_ADDRESS>:6444 5a5a0111680020000000000000000000000000002f8d000000100000000000000000000000000000c7ec8e4276f8accc266a4648044169534ef900b4addf8808145b702d1c28520aec9d938eeaae3d871b99ce4b7e20a37bdf9cb1a2fc169ee1f1b7d550df1e7639.

i trying to solve this problem, please wait

change msmart == 0.1.15 in custom_components/midea_ac/manifest.json file and try it

Same problem

temperature -25 is just device reply.
I don't know what the problem is yet.
What matters is can you control the device?

No i can controll the ACs fine. I just mention a bug. I use homekit bridge because all my devices are exposed to homekit and with this bug, sometimes, is quicker to controll the ACs from he official app but i have all the benefits of Siri. Anyway you did an awesome job... Keep going! Have you ever though to create an Homebridge-Midea-Local plugin??!!

This project has consumed a lot of my time. I'm not going to develop Homebridge.


Genie Builder with GenieFramework.jl?

Is there a way to use the Genie Builder extension on VSCode with the new GenieFramework.jl API?

Right now you can use the insider version of the plugin (just look for it in the marketplace). And soon (maybe even today) it will also be available as a new release of the stable plugin.

Thanks. Any tutorials/info on how the two would work together?
Kind Regards,
Rohit Sathish
On Nov 22 2022, at 5:16 pm, Adrian Salceanu @.***> wrote:

Right now you can use the insider version of the plugin (just look for it in the marketplace). And soon (maybe even today) it will also be available as a new release of the stable plugin.
—
Reply to this email directly, view it on GitHub (https://github.com/GenieFramework/GenieFramework.jl/issues/6#issuecomment-1323542658), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ALA6YPWALPJ4GML62HFLCFTWJSXBBANCNFSM6AAAAAASHVRAXU).
You are receiving this because you authored the thread.


Agile Translation workflows and MessageFormat

Hey,
I have hit an issue with using MessageFormat as part of a regular translation workflow, and I am looking for some advice - I am assuming my situation is not unique here.
Essentially, what the translation workflow does is inject English strings where no translation exists yet.
This causes all Asian languages to throw up errors with MessageFormat.compile, as they now contain the English one{..} category.
Is there anyway to ignore these errors, as the project essentially stops building until the translations come back in for the Asian languages and replace the English fallback.

If you handling doing the fallback, you’ll want to render fallback strings
in the english locale, not the one with missing strings.
It’s been a while though, do we do this fallback somewhere on your behalf?
On Tue, Mar 13, 2018 at 7:37 PM jamesbreen5<EMAIL_ADDRESS>wrote:

Hey,
I have hit an issue with using MessageFormat as part of a regular
translation workflow, and I am looking for some advice - I am assuming my
situation is not unique here.
Essentially, what the translation workflow does is inject English strings
where no translation exists yet.
This causes all Asian languages to throw up errors with
MessageFormat.compile, as they now contain the English one{..} category.
Is there anyway to ignore these errors, as the project essentially stops
building until the translations come back in for the Asian languages and
replace the English fallback.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/messageformat/messageformat.js/issues/187, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAF5Kk80e8BQxmLg0t_c9lZN-mWCVmtaks5teGZigaJpZM4Spqj8
.

We don't (yet...) provide fallback between locales, as the compiler output does not include an accessor method. Writing one is relatively simple, though; here's a sketch of something that might be appropriate here (note: haven't tested this specific code at all):
// presuming that you're using messageformat/loader or precompiling your strings
import en from 'messages/en'
import ja from 'messages/ja'

const data = { en, ja }

class Messages {
  availableLocales = Object.keys(data)
  defaultLocale = 'en'
  locale = 'ja'
  has(key, lc) {
    const d = data[lc || this.locale]
    return d && typeof d[key] === 'function'
  }
  get(key, props) {
    if (this.has(key)) {
      return data[this.locale][key](props)
    } else if (this.locale !== this.defaultLocale && this.has(key, this.defaultLocale)) {
      return data[this.defaultLocale][key](props)
    } else {
      return key
    }
  }
}

export default new Messages

Thanks, I can handle it on my end so, in how we fall back


Orientation change without supportedInterfaceOrientationsForWindow

Is there a way to get device orientation without overriding what I have set in plist. Kind of like a virtual vs actual?

Possibly react-native-orientation is what you're looking for?
You'll need to modify your NavigationApplication.java and add on onConfigurationChanged in there, like I did here:
https://github.com/airman00/react-native-navigation/blob/master/android/app/src/main/java/com/reactnativenavigation/NavigationApplication.java

@rogerkerse I don't believe this is possible with this package. If you find a workaround please let us know of your solution. Cheers.


Reports not saving to disk

When mode is "queue for upload" XML files are no longer saving to disk.

Multiple failures in the code were resolved.


Unable to override model attribute in responses

I am trying to override Model description in response for my operation using,
public void Apply(Schema schema, SchemaFilterContext context)
{
     schema.Properties = new Dictionary<string, Schema>.....
}

And I am adding that in object of SwaggerGenOptions using SchemaFilter. While opening the swagger page, I am getting an error that "Failed to load API definition". This used to work with .Net Framework, is it kind of regression or restriction in .net core?

If SB generates properties, then it's almost certain that your API accepts/emits them so I'm not really sure why you would want to do this.
In any case, I tried a filter similar to your example with the latest version (5.6.3) and it works without any issue so I don't think there's a repro of this issue anymore.

If SB generates properties, then it's almost certain that your API accepts/emits them so I'm not really sure why you would want to do this.
In any case, I tried a filter similar to your example with the latest version (5.6.3) and it works without any issue so I don't think there's a repro of this issue anymore.


vtgate: Fix that the tablet type is shown in the "Partitions:" list o…

…n the status page.
Before, string(i) was shown where i is the index of the array element (e.g. 0, 1 or 2). string(i) for these low i values always returned an empty string because it would be interpreted as an ASCII code and these low values do not map to printable characters.
Other changes:

use upper case tablet type string in the ServedFrom output. This is consistent with the "Gateway Status" and "Health Check Cache" output.
Fixed output of the ShardingColumnType enum.

LGTM


Feature/show creation timestamp on generate

I normally run kubb in watch mode. However, its hard to tell, if it picked up the latest changes or not. A endTime hint in the generation summary would help.
This PR adds a "finished" timestampl line to the generation summary

whoops other stuff smuggled into the PR. Please stand by

now its okay.


[Bug]: Cryptic error message for snaps saved using "CRLF" instead of "LF" line ending

Description
Pulling the snaps on a Windows and running the tests on a Docker (Linux) environment produces the following error:-
--- FAIL: TestFoo (0.01s)
  --- FAIL: TestFoo/test_snapshot (0.01s)
      foo_test.go:34: snapshot not found

This error is cryptic because suggests that the file doesn't exist when it is actually the wrong format. This can happen when developer clones a repository from Github and attempts to run the tests in a Docker container.
Steps to Reproduce

Go to snapshot folder.
Select a snap
Change the line ending from LF to CRLF on a Windows machine
Attempt to run the tests in a Docker container or some kind of Linux environement

Expected Behavior
Proposal: Update the docs to highlight this issue and maybe change the error message to be less cryptic. i.e.
--- FAIL: TestFoo (0.01s)
  --- FAIL: TestFoo/test_snapshot (0.01s)
      foo_test.go:34: snapshot not found or wrong format

Proposed changes to docs under notes. (Tried to create a PR but my branch was not accepted):
5. If you are running this package on both a Windows and Linux environment, you may encounter the following error:-

\```bash
--- FAIL: TestFoo (0.01s)
  --- FAIL: TestFoo/test_snapshot (0.01s)
      foo_test.go:34: snapshot not found
\```

this is because the snapshots are saved with a different line ending on each platform (LF on Linux, CRLF on Windows). To fix this, you can use the [dos2unix](https://pkgs.alpinelinux.org/package/edge/community/x86/dos2unix) tool to convert the line endings to LF on Linux

@gkampitakis just saw the new release, thanks for fixing this issue :)

Thanks for reporting the issue. Looks like my handwritten regex could not handle CRLF so it was not able to find snasphots inside the file and was reporting snapshot not found or wrong format. Tell me if now works for you 😄


no-unused-expression should permit await

The following code causes a linter error:
async function f(foo: Promise<void>): Promise<number> {
	await foo
	return 0
}

The output I get is:
src/foo.ts[2, 2]: expected an assignment or function call

Here's my tslint.json:
{
	"rules": {
		"no-unused-expression": true
	}
}

Thanks for the bug report @andy-hanson. I bet the issue comes from not handling await statements correctly. What versions of tsc does this apply to with which compiler settings? I know async/await support is still somewhat limited, correct?

This is tested with typescript 1.7.5, using tslint src/*.ts --target ES6. await foo() does work, as does const x = await foo.

@andy-hanson This is fixed on master now, and we'll likely do a release on NPM within the next week or so.

fix is available in tslint@next (v3.2.2-dev.1)


Cannot handle uncertainties in quantities

As of v0.2.3, PyTeCK cannot handle ChemKED files with uncertainties (at least in ignition delay, and likely other quantities).
For example, in eval_model,
        ign_delay = [case.ignition_delay.to('second').magnitude
                     for case in properties.datapoints
                     ]

doesn't work when the ignition delays have uncertainties, because case.ignition_delay is now a Measurement type that does not have the method magnitude. Instead, it needs to be case.ignition_delay.to('second').value.magnitude (I think).

possibly fixed in 1442f91 / v0.2.4a1

@skrsna can you share the other files you were using when you ran into this error, so I can replicate the issue?


integration: write to leader group first, or wait

Fix https://github.com/coreos/etcd/issues/6176.
The issue is that clusterMustProgress tries to write to the first member in clus.Members slice. And if clus.Members[0] happens to be the member in minority members that lost the leader, it needs some time to acknowledge the leader after network partition recovery.
Can reproduce by commenting out recoverPartition.
/cc @heyitsanthony @xiang90

not a fan of sleeps if not necessary, how about:
clusterMustProgress(t, append(majorityMembers, minorityMembers...))

@heyitsanthony Yeah that's better. Just fixed (4 members still need to wait since they recover with no leader).
PTAL.
Thanks.

lgtm after fixing the newline and waitleader stuff

Fixed. Merging in greens. Thanks!


Downloading each class separably to speed up

Hi, in order to speed up the downloads of the dataset (if I won't it will take something like 400 days), I'm trying to download each class separately, but I'm facing a problem that some classes are not downloading.
I mean "bartending" is not downloading but "cleaning toilet" does...
Do you have any Idea why this should happen?
Just to make it clear, I'm using 2 different computer to download to 1 disk. so each computer downloading 2-3 classes parallel, maybe something with the parallelization mess it up?
Thanks.

Hello,
how can I reproduce the error?
I ran this command:
python -m download --classes bartending
and the class "bartending" started downloading just fine.
O.


Playground: Loading in IE11 stuck on "Downloading TypeScript"

Loading https://www.typescriptlang.org/play within IE11 never completes -- it gets stuck on "Downloading TypeScript".
Looking at the F12 Developer Tools, it appears that there are several errors preventing the scripts from executing:

I am not advocating that TS Playground should support IE11 -- in fact, I believe Monaco Editor has dropped support for IE11 some time ago -- but I think it'd be nicer if the page showed a message like "Your browser is not supported, please use a modern version of Edge / Chrome / Firefox / Safari", rather than silently erroring out and staying stuck...

Yeah, looks like I can probably wrap the require for monaco in a try catch and show a message if that doesn't load.

Awesome! Out of curiosity, how often does the site deploy (e.g., now that you've merged this -- or other changes -- in, how soon will it reflect on the running site)?

Staging is every merge, the site auto updates from staging to prod every Monday unless we request a specific update via this workflow - since you asked, I just ran it.


Add Huawei 2G->3G Relations

Add Huawei 2G->3G Relations
Corrected typing mistakes Motorola Relations

Added ZTE 2G->3G Relations


spyder quits when replacing text in selection

hi, very often (almost every time) I click on "replace selection", spyder quits. any suggestions on what might be causing the problem?

Hi @bsierieb1,
Can you please upload a gif or video where you show us this behavior?

I'm closing this issue because there wasn't a follow-up response after more than a week. If your error persists please re-open this issue and reply with the requested information.
Thanks for reporting!


Log launch times for each pod?

Right here:
https://github.com/jupyterhub/binderhub/blob/master/binderhub/builder.py#L388
We log the launch time of each pod as a "bucket" meant for a histogram. This doesn't work super well in Grafana because the buckets themselves aren't encoded as floats, but as strings (so they aren't sorted properly).
Is there any reason not to just store the actual launch time for each pod? That way we can just aggregate this value in Grafana and calculate percentiles from the raw data stream. @yuvipanda was there a reason (e.g. slowness for queries) to use the histogram buckets thing in aggregate instead of just storing the raw value for each one?

I think
https://grafana.mybinder.org/dashboard/db/1-overview?refresh=5m&orgId=1&panelId=28&fullscreen&from=1524643146400&to=1524686346400
covers enough of this, so I'm closing


cross_validation.KFold depricated

Figure 3 cannot be reproduced as cross_validation.KFold is depricated. Will the script be updated?

We're no longer maintaining this repo but you can use sklearn.model_selection.KFold instead