review form templatetag

I am trying to build a templatetag to generate the review form on any page (instead of having to go to /review/ to fill the form) : any pointer about how to get this done ?

figured it out, sorry.


fix: improve prevent_unencrypted_uploads documentation

what

Update documentation for the prevent_unencrypted_uploads variable to more clearly explain its behavior.
why

references

Closes #177

notes
I also opened a PR on the CI job to fix this job error

/terratest

/terratest

@pazaan could you please add one more change to examples/complete/variables.tf to satisfy tflint:
  variables.tf:6:1: warning: variable "arn_format" is declared but not used ()

/terratest

Thank you, @pazaan 👏

@cloudposse/approvers please review this as a code owner.


Slider Change Event Not Working Correctly

Hello, I'm getting a weird issue. Please note I'm new to reactjs. I'm trying to use the Slider component and it's not getting the proper value when I click on the slider (not drag). It's always returning 0 or last known value but when I drag it's ok.
<Slider
    ref="slider"
    name="slider"
    min={0}
    max={100}
    onChange={this.onChangeSlider}/>

onChangeSlider: function(event){
    console.log('changed', this.refs.slider.getValue());
    ...

https://docs.google.com/a/digitalmatrices.com/file/d/0ByrhEzRpMgUrRWprQkRqemFfbUk/edit?usp=drivesdk

Maybe trying getting the value from the event:
onChangeSlider: function (event) {
  console.log('changed', event.target.value);
}

Thanks for the reply.  I tried that before and I was getting 'undefined' for a value. But this works!
onChangeSlider: function(event, value){
    console.log('changed', value);
}


Get metric name from params

There was duplication before, so this means we only have the metric name in one place

Changes Unknown when pulling 77b4c90211a6d56b01c77e0d48b4202d7310c1c5 on feature-get-metric-name-from-params into ** on master**.


Identifier not found "stTLSv1_1" #1

Hi. I want to test the library on Raspberry Pi. I get this error when I compile the package. If I comment it out it compiles but I am not sure what will break if that is not there.

Hi! You can try to comment this. But can you specify more details: Lazarus and FPC version, OS and CPU target etc?

Hi, If I comment it out it compiles and runs but when it runs I get SSL errors.
I tried the project on Windows and there it works 100%. I then tried it on The Raspbarian Desktop in a virtual machine. There I get the same error that the variable does not exist.
I then tried it on Debian Desktop. There it compiles but I get SSL error also.
On Raspberry Pi I use it on Raspbian Buster (Debian 10) and FPC is 3.3.1 and Lazarus is 2.0.1

Here I comment it out

Then I get the SSL error.

If you don't have a Raspberry Pi you can download the Desktop and run it in a VM
https://www.raspberrypi.org/downloads/raspberry-pi-desktop/

I meant to comment out the whole procedure.
procedure TTelegramSender.HttpClientGetSocketHandler(Sender: TObject;
  const UseSSL: Boolean; out AHandler: TSocketHandler);
begin
  {$IFDEF LINUX}
    //if UseSSL then begin
    //  AHandler:=TSSLSocketHandler.Create;
    //  TSSLSocketHandler(AHandler).SSLType:=stTLSv1_1;  // <--
    //end;
  {$ENDIF}
end;

Nope. Still get a SSL error.
Error: [HTTPPostJSON] ESSLSocketError: No SSL Socket support compiled in.
Please include opensslsockets unit in program and recompile it.

@JacoFourie please try last commit

@Al-Muhandis I did comment it out. I then get that error
Error: [HTTPPostJSON] ESSLSocketError: No SSL Socket support compiled in.
Please include opensslsockets unit in program and recompile it.

@Al-Muhandis I get the same error with the commit from 7 hours ago.
Error: [HTTPPostJSON] ESSLSocketError: No SSL Socket support compiled in.
Please include opensslsockets unit in program and recompile it.
It wants SSL but can not find it.

@JacoFourie Are you sure you tried the latest commit https://github.com/Al-Muhandis/fp-telegram/commit/4154e00da2a204420974f0f2ecaa89050a412ba6 / https://github.com/Al-Muhandis/fp-telegram ?

Yes

@JacoFourie Did you tried to add opensslsockets unit in tgsendertypes.pas ?
implementation

uses
  jsonparser, jsonscanner{$IFDEF ExplSSL}, sslsockets, fpopenssl{$ENDIF}, opensslsockets
  ;

It is already included. If you include it again you get an error that it is already included.
I got Telegram working using Synapse. Your code still does not work but I gave up on it. I just wanted to send a message.
Using Synapse it is very easy.
https://medium.com/@xabaras/sending-a-message-to-a-telegram-channel-the-easy-way-eb0a0b32968
https://api.telegram.org/bot[BOT_API_KEY]/sendMessage?chat_id=[MY_CHANNEL_NAME]&text=[MY_MESSAGE_TEXT]
All you do is an HTTPS get post with that string and the message is sent.
Thanks for the effort, but I gave up on it.
Regards.


Add support to sumneko's Lua extension

Might require some extra fiddling with the .vscode directory, most specifically to set Lua version, ignore directory, library (for Codex) and max preloads (to support over 500kb of the Codex):
{
    "Lua.runtime.version": "Lua 5.3",
    "Lua.workspace.ignoreDir": [
        ".vscode",
        "out"
    ],
    "Lua.workspace.library": [
        "util/Codex.lua"
    ],
    "Lua.workspace.preloadFileSize": 1000,
    "Lua.workspace.maxPreload": 10000
}

The lua extension also does not pull type definitions from the new Codex.lua for library, system, unit, etc. In the new version they instantiate the class with "system = System()" . To get type definitions I either had to add the appropriate<EMAIL_ADDRESS>annotations or revert them to references of the class "system = System" .
I'm not sure if this would impact anything using emmylua for annotations or just this extensions implementation.

@MatheusMK3
Be a bit careful with this. I've setup my own library paths so if the compiler starts modifying that, it might cause undesired effects.

@fiddlybits01 I might add the ---@type annotations to handle it, but the correct way of doing it is really system = System() as system is an instance of the System class here. The annotations shouldn't be an issue though.
As for @PerMalmberg's comment, I'm still considering what to do, I was considering detecting pre-existing configs and "extending" them, but I'm not 100% sure yet.


Unique Network chains support

Unique Network chains were added according to the enKrypt docs.
Everything is built and passed. We can see the networks in the borwser extension.

Please refer to following links for information regarding assetsHandler
EVM: https://myetherwallet.gitbook.io/enkrypt-documentation/adding-an-evm-network
Substrate: https://myetherwallet.gitbook.io/enkrypt-documentation/adding-a-substrate-network-to-enkrypt

closing since #275 is merged, please reopen if this PR has something extra


controllable mod 1.20.1 forge crashing

crash-2024-01-17_12.50.22-client.txt

i do not have optifine installed

does it crash often with controllable? Or it also crashes with other mods?

Here's an answer from chatgpt-4, I wish it may be helpful: The crash report you've posted shows that Minecraft has encountered an unexpected error, resulting in a crash. The specific issue here is a NullPointerException, which occurs when the game code tries to use a null object reference.
Here's a breakdown of the key points from the crash log:
The crash happened in the Minecraft client while it was running with Forge mod loader (1.20.1-forge-47.2.20).
The error was caused by the invocation of a method on a null object reference within the game's code, specifically this.f_91074_ being null in the Minecraft class.
The error occurred in the net.minecraft.client.Minecraft class, which suggests that it's likely related to the core game and not directly caused by a mod.
The crash report shows that numerous mods are loaded, but none are directly indicated as the cause. Therefore, the issue might not be with a specific mod but with how they interact with each other or the base game.
There are mixin transformations applied to the game (e.g., xaeroworldmap, physicsmod, vivecraft, etc.), which can alter how the game functions at a low level. This can sometimes introduce compatibility issues and cause crashes.
The error took place during the rendering process (indicated by Thread: Render thread).
Given this information, here's how you can troubleshoot the issue:
Mod Conflict: The crash may be due to a conflict between mods. Try removing some of the recently added mods to see if the issue persists. If you can start the game after

Having the same problem but... It is like this.Opens then loads then loads backwards.


[Build] build with unix lineEnding in Windows

Motivation
When build pulsar in Windows using "mvn clean install -DskipTests" and upload the tar.gz file in /distribution/server/target to Linux server, the package can not be executed because the sh files and bin files in /bin are using Windows line ending.
Modifications
Specify unix line ending when building pulsar.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API: (no)
The schema: ( no )
The default values of configurations: ( no)
The wire protocol: ( no)
The rest endpoints: ( no)
The admin cli options: ( no)
Anything that affects deployment: (yes )

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks


Ideas on how to "Print to PDF"?

Anyone have any thoughts on how we might "Print to PDF" a slide deck?

I have used deck2pdf. It's useful.


Sort a Stack

Related Issue

Sort a Stack #1461

Proposed Changes

I have added the following things: -
Problem Statement
Examples
Algorithm
Code
Time Complexity & Space Complexity

Additional Info
LINK OF THE PROBLEM STATEMENT
Checklist

[x] ✅ My code follows the code style of this project.
[x] 📝 My change requires a change to the README.
[x] 🎀 I have updated the README accordingly.
[x] 👀 I have read the CONTRIBUTING document.
[x] ✨ I have added tests to cover my changes.
[x] 🚩 All new and existing tests passed.
[x] 🌟 ed the repo

We were supposed to sort a stack.

I have added the Problem Statement, Examples, an Algorithm on how to approach this problem, a commented Code, and written the Time Complexity and Space Complexity. And finally updated the README.md.

This change helps to solve the problem of  Stacks i.e. Sort a Stack and this problem helps in understanding the concept of Stacks in depth.

I coded this problem in VS Code and tested the given problem on the test cases in the range : 1<=N<=100. And it is working fine for them.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Output Screenshots

Screenshot #1
Screenshot #2

Input : St= {11,2,32,3,41}
Input : St= {9,3,28,4}

@Mrjoy832 I have done the requested changes.

LGTM🌟


Consider moving build to CMake

Already need it for RyuJIT anyway, plus it would make us cross-platform for building (whether our C++ code is cross-platform is another question :) .

please no. It badly breaks builds for Windows on ARM

As pointed out in the opening comment, CMake is a requirement for the .NET JIT so it can't be avoided. Hence sticking with manual VS build files and an eventual Makefile doesn't get us away from needing to use CMake.

Once our changes land upstream in CPython then CMake may be useful for having a single build target in the top directory that used CoreCLR's CMake rules so that it was CMake all the way down (and we currently need to build CoreCLR as we statically link it into Pyjion).

CoreCLR is built with Razzle for builds that ship with Windows and the official CoreCLR .NET Core RC2 builds, not a single bit of CMake.

@kika123 : that might be true for WIndows, but that doesn't cover Linux or OS X. And obviously those build files are generated using CMake: https://github.com/dotnet/coreclr/blob/master/CMakeLists.txt . I realize you don't want CMake used for your Windows on ARM use-case, but unless you're willing to develop and maintain a build setup that works on Windows, OS X, and Linux for Pyjion, going with the build solution that our biggest (and as of Python 3.6, hopefully only) dependency just makes sense for simplifying our lives in keeping this project going in our spare work time.

@brettcannon actually, my issue to get Windows on ARM with CMake .NET Core compiles got rejected and closed without justification

It might be worth considering meson.
It's a newer cross platform build system that uses and builds on some of the ideas in CMake.
Gstreamer are switching to it.   At the very least, I can confirm that it seems to build that project a lot more quickly than their old automake based solution.

I believe @stuaxo is talking about https://github.com/mesonbuild/meson.

Here's some info. ...
http://blog.nirbheek.in/2016/05/gstreamer-and-meson-new-hope.html
But I have no horse in this race and cmake is probably used more widely :)

I have some experience with CMake and would be happy to start working on this, if it has been settled. I am very much in favor of choosing CMake, as it is very common and more people know it than other cross platform meta-build systems.

@ethanhs if you feel up for doing this, then please do!

Implemented in #237 :-)


Update composer.json

Minor fix, change "merge-plugin"  configuration

It is the way it is right now on purpose, including everything by default causes issues with plugins that are already pulled in via composer. You should be using this section to include only the specific plugins in your project that you include as a part of your project but have their own composer.json files.


Throw UnauthenticatedException as is from RPCs

Merged build finished. Test FAILed.

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

Jenkins test this please

@cheng-chang PTAL.

Merged build finished. Test PASSed.

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

Merged build finished. Test FAILed.

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

Jenkins, test this please

Merged build finished. Test FAILed.

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

Jenkins, test this please

Merged build finished. Test PASSed.

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

alluxio-bot, merge this please


fix: bindwidth -> bandwidth

Signed-off-by: zhangyue<EMAIL_ADDRESS>
Ⅰ. Describe what this PR did
fix typo
Ⅱ. Does this pull request fix one issue?

None.
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
None.
Ⅳ. Describe how to verify it
no need.
Ⅴ. Special notes for reviews
None.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #413   +/-   ##
=======================================
  Coverage   66.77%   66.77%
=======================================
  Files          50       50
  Lines        2245     2245
=======================================
  Hits         1499     1499
  Misses        675      675
  Partials       71       71

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 92bf197...19e3a1d. Read the comment docs.


fix: add ci for test, lint, format and typecheck

🚀

It seems you will have to run this command locally, to get some files correctly formatted (beware, files will be modified in place):
./node_modules/.bin/prettier -w --check "**/src/**/*.ts"


Add option to disable plugin installation

Fixes #26857
@veblush @jtattermusch
@UVV-gh I used a name here that reflects what the option is actually doing, hope that is ok.

Thank you for the PR!

@jtattermusch Could you give one more LGTM?

Superseded by https://github.com/grpc/grpc/pull/27626


Non-reproducible results

Dear maintainers,
I am running AlpacaEval 2.0 using GPT-4o-mini as a judge. Every time I run the evaluation I get a different result. Is that a reason for that and how can I fix it?
Thanks!
Felipe

you shouldn't because evaluations are cached. If you remove caching it is normal that results are not deterministic given that the API models are not deterministic. But AlpacaEval's standard errors are low and so results shouldn't be too different.
Can you share the results you get? In particular please share the entire row that you see in the terminal (I would like to see the win-rates, the standard errors, and the number of annotated examples)

I also have different results when calling the same model each time.

Same issue.
I am running AlpacaEval with the default annotator (weighted_alpaca_eval_gpt4_turbo) to evaluate the outputs in ./results/gemma-2-9b-it-SimPO/model_outputs.json.
I plotted the histogram of the absolute differences of the preference scores below:

the generated leaderboard (I reformated the csv into markdown):

Model
win_rate
standard_error
n_wins
n_wins_base
n_draws
n_total
discrete_win_rate
mode
avg_length
length_controlled_winrate
lc_standard_error

gemma-2-9b-it-SimPO
65.86422561532919
1.423459922555078
540
264
1
805
67.14285714285714
community
1833
72.3508446939842
0.5167873784867067

gemma-2-9b-it-SimPO-rerun
65.90176174567401
1.4214682843719195
550
254
1
805
68.38509316770185
community
1833
72.23893471246227
0.5333697317163058

openpipe-moa-gpt-4-turbo-v1
63.15493451236265
1.422980098799326
515
283
7
805
64.40993788819875
community
1856
68.37866250336802
0.7309418614587613

gemma-2-9b-it-DPO
65.35922380122982
1.402802336467638
536
268
1
805
66.64596273291924
community
2016
67.6620382198043
0.6605613085864308


[Feature] Desire to Use the Latest Version of lmdeploy with PyTorch 2.1.0

Motivation
Hello,
I've noticed that in the recent versions of your library, the dependency requirement for PyTorch has been raised to 2.3.1. I am currently using PyTorch 2.1.0 in my environment and would like to continue using this version with the latest version of your library.
I would like to inquire about the following:
What prompted the decision to raise the PyTorch dependency version to 2.3.1? Were there specific features or improvements introduced in 2.3.1 that are not supported in version 2.1.0? If so, are there backward compatibility solutions provided to use these features on older versions of PyTorch?
Thank you for your assistance and I look forward to your reply.
Related resources
No response
Additional context
No response

Pytorch 2.1.0 requires triton==2.1.0 which is not supported in our repo.
It should be ok to use Pytorch2.1.0 with triton==3.0.0


[Feature Request]: Expose metrics for rps

Implementation ideas
Currently, we scale DA nodes based on memory usage.
@walldiss proposed scaling on rps, which would need to be exposed in order to scale on that metric.
cc. @Bidon15 @walldiss

It would be great to have a counter on the requests per type (like requested headers).
This would enable the following:

Scaling on this as resources are not sufficient enough
We can compare requests per second with resource usage in our dashboards for debugging & monitoring

There are multiple components that needs to be monitored to get an idea of rps / load:

[x] shrex/eds server

metric:shrex_eds_server_total_responses

[x] shrex/nd server

metric:shrex_nd_server_total_responses

[x] header server

metric: hdr_p2p_exch_srvr_headers_served_counter

[ ] ipld server

metric: not yet implemented, tracking issue: https://github.com/celestiaorg/celestia-node/issues/2454


Partitioning settings per role?

I think this is more of a feature request, but is there any recommended approach for structuring settings or making them conditional based on environment or role?
Say you have a Constance setting for an "api host" that should be set to X for your production environment. But for your staging environment, it should be set to Y.
Ideally, to simplify application code, you'd want to define it under one Constance variable like "API_HOST", but define two different values, each used based on which environment flag is set. Then, if you put a snapshot of your production database onto your qa/test/staging database, it will automatically use the correct setting even though it's the same data.
Based on the docs, I'm assuming nothing like this is currently supported?

Hello, there is no such feature in constance.
How I see different approaches to store project settings:

Store settings in code or env vars. Env vars are defined on server. Settings are changed by developers or admins.Settings are static.
Store settings in database (like constance). They can be changed by developers, admin, managers, staff and so on. Settings are dynamic.

So your request is to store some static settings in dynamic approach. Env vars solve this problem. I do not see the reason for this feature.

For anyone who's interested, I was able to implement this on top of Constance pretty easily by storing role-specific values in a pipe-delimited list in standard Constance value, and then subclassing constance.base.Config and overriding __getattr__() to split and return the correct value based on the current role defined in the env.


How do I get Cognito Access token using Federated SignIn?

Do you want to request a feature or report a bug?

report

What is the current behavior?

I'm receiving the CognitoIdentityCredentials and not the cognito access token

What is the expected behavior?

Mybe, but I need to get the access token.

Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions?

I don't think so.

You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app.

More info
https://stackoverflow.com/q/50959946/319206

@michelmob
Thanks for reaching out!
How are you trying to retrieve the token after login?
Have you tried this?
import { Cache } from 'aws-amplify';
Cache.getItem('federatedInfo').token;
(Answer also posted to SO)

Hi @michelmob ,
The github wiki FAQ has an entry on this topic
tldr:
If you are using federated identities, then you will only have access to the token that is received from the provider (Facebook, Amazon, etc), not from Cognito.  You can access this token by importing Amplify's Cache module and using Cache.getItem('federatedInfo').
If you want a token actually from Cognito, you can go the Hoisted UI route.
Closing this issue for now - please let us know if this doesn't help!

OK, thank you so much.


Fix text field clipping when erasing rapidly.

RenderEditable.paint assumes that if the length of the text fits within the
visible region, then the text will be rendered at the start of the region and be
completely visible. This is not always true, since the text may still be
rendered at an offset if an animation is ongoing when the text begins to fit.
This fixes #22288 and #14121

Thanks for fixing! Do you think you could add a test to make sure we don't regress? Otherwise, LGTM.

Done, although I've refactored the implementation a little to make it easier to test. Please take another look since this is my first Flutter PR.

A few nits, otherwise LGTM!


RserveException: eval failed

Project Robyn
Describe issue
I've received the error "RserveException: eval failed" when running robyn_outputs.  Is this a memory error?  Any other details about the error and possible solutions would be appreciated.
Environment & Robyn version
Version == 3.9.0

Hi, how can we replicate this issue? Did you try refreshing your session and re-running the code?


⚠ Community has degraded performance

In 212387f, Community (https://community.wrk.com/health) experienced degraded performance:

HTTP code: 200
Response time: 182 ms

Resolved: Community performance has improved in 422ba95.


fix get api version

The site again changed the way of obtaining the version url.

Not a version issue, they've changed the airings URL actually. ("minified-airings")

the present url is still working after the changes I proposed

Not on my side.

"minified-airings" (with both your method and mine)

Not sure what's going on.

Maybe it has something to do with the region. If minified-airings works better we surely can change it.

Not sure what's going on.
Maybe it has something to do with the region. If minified-airings works better we surely can change it.

Well... if it works for you, then it's rather weird for me. Maybe it's a matter of referer/origin, though I had no issues into switching API endpoints.
PickX's API on my side (Website, French-BE) gives me "minified-airings".

Not sure what's going on.
Maybe it has something to do with the region. If minified-airings works better we surely can change it.

Well... if it works for you, then it's rather weird for me. Maybe it's a matter of referer/origin, though I had no issues into switching API endpoints.
PickX's API on my side (Website, French-BE) gives me "minified-airings".

On my side I also have noticed that they use a different endpoint is used. But the old endpoint is still working.

(and honestly, the "minified-airings" makes it worse, as both airing dates and program data are split inside the JSON)
Just for the sake of testing, can you tell me if PR #2518 works for you ?

Weirdly enough your PR also works.
I'm not sure it will work on the long term, because if you look at the current request they use a different mechanism to generate the api version.

(and honestly, the "minified-airings" makes it worse, as both airing dates and program data are split inside the JSON)
Just for the sake of testing, can you tell me if PR #2518 works for you ?

Weirdly enough your PR also works. I'm not sure it will work on the long term, because if you look at the current request they use a different mechanism to generate the api version.

The best of both worlds would be to have both our methods, yours to begin, mine as a fallback.

what makes it thing a bit difficult is that instead of returning 404 errors when an url is wrong, they return empty data when returning the programs.
Before I made the changes in my PR a version was correctly retrieved, but when getting the airings invalid data was returned.
So while it's definitely not impossible we have to be smart about this.

An idea that just got into my attention is that the hashes might be somewhere in their GraphQL API... if we query it, we might get it. It's in the PickX MWC config.

Huh. Now that's odd.

An idea that just got into my attention is that the hashes might be somewhere in their GraphQL API... if we query it, we might get it. It's in the PickX MWC config.

Thats one of the values I parse in order to get the correct versión.
I used your code and modified the regex pattern to that variable. And then there is an endpoint that uses that hash that returns the valid version API.

OK, found out the issue... it's in the "Accept" headers. If they're removed, the API will refuse to answer.

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0
Accept: /
Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br, zstd
Basically, here are the headers I need to make the request work (in Insomnia)

OK, found out the issue... it's in the "Accept" headers. If they're removed, the API will refuse to answer.

The airings API ?
When you go to the Pickx epg site, what's the url that's being used in the ajax requests ?
In my case it looks like this https://px-epg.azureedge.net/minified-airings/21734497794195v.4.2/2024-12-18/channel/UID50297?timezone=Europe%2FBrussels.
The reason I bring this up is I thing they might me phasing out endpoints.
So they might have changed the hash mechanism, but they might have a phase out period in order to maintain compatibility
(avoiding caching issues, or waiting until they modify the code on their set-top-boxes).
We might be at a weird time in point where it seems the 'old' is still working, while it's going to break the moment they decide to terminate the phase out.
This is all an assumption since this provider is intentionally a PIA.

For me it looks like this : https://px-epg.azureedge.net/minified-airings/21734516102845v.4.2/2024-12-18/channel/UID50208?timezone=Europe%2FParis

If you go to https://www.pickx.be/api/s-375ce5e452cf964b4158545d9ddf26cc97d6411f0998a2fa7ed5922c88d5bdc4 (PickX MWC config endpoint) the following is returned :
{"version":"21734497794195v.4.2"}
That returns the<PHONE_NUMBER>0399v.4.2 value.
The REACT_APP_VERSION_HASH value is 6cf6c50068fe62f1c110f27da0257e3572024018f824c137d379653481d272df
If you try to retrieve the version through https://www.pickx.be/api/s-6cf6c50068fe62f1c110f27da0257e3572024018f824c137d379653481d272df the following is returned :
{
    "version": "11702375189765v.4.2"
}

This might give the impression it's still somehow working, but the airings endpoint is broken when using this version.

For me it looks like this : https://px-epg.azureedge.net/minified-airings/21734516102845v.4.2/2024-12-18/channel/UID50208?timezone=Europe%2FParis

That seems to match up.

Interesting...

Well, great job ! I've remade my tests and code based on yours, and it works pretty fine on my side. Will close my PR and approve yours.

Interesting...

Yeah for some reason that still works for the minified-airings but not on the airings endpoint.

Well, great job ! I've remade my tests and code based on yours, and it works pretty fine on my side. Will close my PR and approve yours.

I haven't modified any test on my PR. So if you've remade them you might want to add them.

Tell me if the new version of the PR still works for you. I've managed to mock the fetchAPIVersion function quite properly it seems. Everything seems to pass.

Both the channel retrieval and tests work without issue.
Thanks for the mention in your commit.
I'll close my PR so that the maintainers don't have confusions regarding which one to approve.

PR #2519 already contains the proposed fix + additional changes.


Add TOSI logo to website

@all-contributors please add @complexbrains for bug, content, doc, eventOrganizing, maintenance, mentoring, review, ideas.


Add backend structures needed

How to store/demarcate the Questions?

New QuestionFormat for pulling rda-metadata in on specific question.

Need to make this extensible for other api-like questions (Biosharing, ect). @sjDCC @stephaniesimms,  Do we know how many other such integrations we are expecting down the line?  If it's just the two, it probably makes sense to make two different QuestionFormats and leave the API's address in the description field, which is currently unused.  If we think this may be expanded down the line, we may want only one 'API' QuestionFormat, and have a table or some other mechanism for determining which API to access.
How to store the answers?
@sjDCC @stephaniesimms Do we want free-text in addition to storing the chosen record?  Records will be recorded by their unique id given by the external API.
How to get the data
This will be requested in JS from the API.  Instead of storing the external integration, we simply search for the stored record uid, and build page display

Hi @xsrust There will definitely be re3data too, but possibly more so probably worth planning for several
If there's a freetext response, I think this should be stored in the main answer box and focus here on the chosen record

per UX meeting comments:

ideal scenario would be to plan for other integrations (re3data, etc)
yes, we probably need to be able to record free text answers

In order to be able to save multiple standards and an optional comment, the selections will be stored as JSON in the Answer.text field, in the following format:
{
    standards: {'msc:m15'=>'msc:m15'},
    text: "my comment here"
}

Note that all keys must be accessed by strings after using JSON.parse(answer.text)
ex. parsed_answer["standards"]

added ability to store user-generated standards.  For these, the key and value will both be the title of the standard.
Made the decision to change the 'msc:m__' standards to have the value be the title of the standard.  this way we don't need to query the API for export

Looks good and works for selected standards and ones added by user. Closing out


SE-0228 default implementation amendment

Adds a default init(stringLiteral:), plus an unavailable version which is used when the default init(stringInterpolation:) for DefaultStringInterpolation is available.
This amendment was suggested by @jrose-apple, who found it strange that you would need to implement init(stringLiteral:) when init(stringInterpolation:) provides a superset of its functionality. @milseman and I agree that it's a good idea.
Not sure if we should merge this now or wait for the core team meeting.
cc @DougGregor

We're right at the end of the scheduled review period, so I'll bring this up to the core team rather than merging speculatively. Thanks!


Dashboard add new feature

What this PR does / why we need it:
1.Add feature of volume extending and creating from snapshot
2.Capacity display format
3.Fixed datatable component style
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
@xing-yang @leonwanghui
Release note:

Coverage remained the same at 43.996% when pulling 1538de2a81543884b272d92793f92f0f5675beec on jimccfun:development into 5e3a718d2c0228bcc6144eff70c7d41face53a00 on opensds:development.


Display project size in project settings

Closes #8186

Usually
 tags contain nested
 tags, so something like:

Foo

Bar

turns into:

Foo
Bar

We'll want to do the same here.

Done with changes

Thanks!


pymongo filter_fields should default to None, not {}

The new filter_fields argument in pymongo changes from None to {}, as with query_filter.
https://github.com/uriyyo/fastapi-pagination/blob/91cdd7a706705d8c5d0dbe51d690fb3db06c4803/fastapi_pagination/ext/pymongo.py#L31
However, in pymongo None means "perform no filtering" and {} means "return only the ObjectId".
So, this results in errors of the following kind:
pydantic_core._pydantic_core.ValidationError: 3 validation errors for Page[Peripheral]
items.0.peripheralID
  Field required [type=missing, input_value={'_id': ObjectId('6286cafb01072e1f8a55b7ca')}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.5/v/missing

I think this is as simple as removing the linked line to fix the problem.

@spr Thanks for reporting this issue, will try to fix it ASAP

Thanks for the quick fix!

Hi @spr,
New version 0.12.14 has been released, this issue should be fixed.

Hi @spr,
I am closing this issue, please reopen it in case if issue still exists on your side


start_spoof cheatcode

We should be able to provide message signature from get_tx_info syscall in tests, in order to enable testing accounts

Work on compiler side should already be mostly done (see linked PR). We've decided to continue working on python implementation later. Moving back to backlog

start_spoof allows mocking TransactionInfo returned by get_tx_info (https://github.com/starkware-libs/cairo/blob/main/corelib/src/starknet/info.cairo#L61)
stop_spoof removes this mocking


Newtonsoft.Json.dll release incompatible versions with same strong name

Please review issue #615 and also see this topic.
Our application uses a local reference to Newtsonsoft.Json.dll version 8.02.
Another application (from a different company) installed Newtsonsoft.Json.dll version 8.03 into the GAC.
It totally broke our application.  Json.Net has worked flawlessly for us otherwise and has been able to handle everything we've thrown at it.
This is the only issue we've ever really had with Json.Net.
I thought it was something I was doing wrong.
Hopefully you're in a better mood this year...
Cheers!

Every approach to strong naming has issues. This is the issue of the approach I've chosen.

This is known issue
http://stackoverflow.com/questions/31608983/newtonsoft-json-net-version-incompatibility-dll-hell

@JamesNK
If it is not hard, can you please explain why did you chose this approach for versioning?
Because from user point of view it looks absolutely insane. Different companies can brake each other software without even knowing about that. And end-user can not resolve this conflicts at all.
Thank you.

James, can you comment on your approach and why you feel it is the right solution for json.net? I personally have not run into this issue because we only ever bin deploy code to our web servers and do not use json.net for any desktop apps that might have this issue.
From what I can work out you feel having a single strong version that remains x.0.0.0 (like the current <IP_ADDRESS> I am using) is good and you just change the file version. But if there are incompatible changes, won't that mean stuff breaks as mentioned above if somehow the DLL is shared in the GAC? While I do agree putting stuff in the GAC is a really bad idea, it's what we have and a lot of stuff gets deployed in the GAC at install time whether we like it or not.
I believe what is being requested is that for every new build the file version increases, which is what I see for all the other projects we use via NuGet. Can you explain why you feel that is a bad idea?

We  had similar problems with other assemblies, or solution was to build  ourself, using our own snk file, so we get our own "strong name". That  way, we can make sure we have unique version numbers, and the framework  cannot load wront assemblies because it prefers GAC to local  installation directory. It's a shame that applications cannot suppres loading from GAC (or at  least repriorize GAC to be searched after local directories...)


Enable Jetty Logging

I'm trying to debug a crash in Jetty during startup, but it appears that Javalin always disables Jetty logging. Is there some way to prevent this from occurring?
https://github.com/tipsy/javalin/blob/master/javalin/src/main/java/io/javalin/Javalin.java#L165

@amc6 unfortunately not right now. Logging is re-enabled after startup, but I guess that doesn't help you much. Could you start your Jetty server manually? I'll make a config option for this in the mean time.

If you build the master branch you can do
JettyUtil.logDuringStartup = true

That was quick! Thanks, i'll give that a try.

This is out as part of ALPHA1 now:
<dependency>
  <groupId>io.javalin</groupId>
  <artifactId>javalin</artifactId>
  <version>4.0.0.ALPHA1</version>
</dependency>


No Gaze cursor after publishing

http://destroy.vizor.io/fthr/gaze-text
The text has On GazeClick  ... when editing the graph, I get the cursor, but it disappears on publish.

In this case above the problem might be the Text preset.
However, over the weekend I was doing a lot of tests, and also had cases where there wasn't a text preset but cursor would disappear. Can't reliably reproduce this though, sometimes, especially on simple graphs, the cursor does appear correctly.


Does not work on non-US user localizations

Note : DarkSky API requires that latitude and longitude uses decimal dot.
So using this API client with ie. Croatian localization settings (comma for decimal separator) will generate invalid DarkSky api url like forecast/716c78f54adfbe480b8168907f743729/42,9150,- 78,7410?&exclude=flags&extend=hourly&lang=x-pig-latin&units=si
Also there is extra space in longitude parameter.
Suggested fix for DarkSkyServices.cs
        string BuildRequestUri(double latitude, double longitude, OptionalParameters parameters)
        {

            // Fix nubers to ignore regional
            var lat = $"{latitude:###.#############}";
            var lon = $"{longitude:###.#############}";

            var queryString = new StringBuilder($"forecast/{_apiKey}/{lat},{lon}");

Note:
var lat = $"{latitude:###.#############}"; // still uses regional settings :(

//Val : Value : -123,4167036709875
//My fix:  Console.WriteLine($"Invariant val: { latitude.ToString(CultureInfo.InvariantCulture.NumberFormat)}");
//Invariant val: -123.4167036709875
//With ###.############# : -123,4167036709875

Yes, I discovered that. I pushed the fix last night that forces the invariant culture.


Fix: 'ttir.squeeze' op Dimensions must be same for input & output

Fix: https://github.com/tenstorrent/tt-forge-fe/issues/772
The issue arises from an incorrect incoming edge to the commute clone node. Previously, the node inherited the incoming edge from the old edge, which led to inconsistencies in shape and caused the recalculation of shape to fail. By updating the incoming edge after the node is attached, this inconsistency will be resolved.
Before

After

Can you please add a unit test in forge/csrc/test/passes/test_erase_inverse_ops.cpp?

Can you please add a unit test in forge/csrc/test/passes/test_erase_inverse_ops.cpp?

Done @dgolubovicTT .
Can you please review it?

I am still looking into this... I want to make sure this is the right way to solve this one...

@ashokkumarkannan1 this is my understanding of what is happening here:
We are trying to add squeeze op as an inverse to reshape ((16,256,256) -> (1,16,256,256)) on the operant of the current node we are commuting the reshape over.
The issue is that dimensions of the output tensor must be the same as the input tensor except for dimension we are squeezing.
In our case we have a broadcast on edge before squeeze. That broadcast isn't accounted for since MLIR doesn't have a representation for broadcast. Then, the only thing MLIR sees is the input of squeeze being (1,1,256,256) and output (16,256,256).
Normally, this problem doesn't exist since broadcast is commuted through clone op (in our case squeeze). However, try_commute_bcast_through_clone only supports reshape and transpose, and fails silently for squeeze.
Your solution is hacking this by changing clone op_type to reshape just to make commuting broadcast possible: In this line by removing the condition op is again changed op type to reshape op->change_op_type("reshape"); and the whole for loop seems to be skipped.
This hopping between op types is wrong IMO. The logical thing is to add commute through squeeze and unsqueeze, but I would have to think a little more.
Maybe I am missing some pieces. @ashokkumarkannan1 please give your thoughts on this so we can see the whole picture

@ashokkumarkannan1 this is my understanding of what is happening here: We are trying to add squeeze op as an inverse to reshape ((16,256,256) -> (1,16,256,256)) on the operant of the current node we are commuting the reshape over.
The issue is that dimensions of the output tensor must be the same as the input tensor except for dimension we are squeezing. In our case we have a broadcast on edge before squeeze. That broadcast isn't accounted for since MLIR doesn't have a representation for broadcast. Then, the only thing MLIR sees is the input of squeeze being (1,1,256,256) and output (16,256,256).
Normally, this problem doesn't exist since broadcast is commuted through clone op (in our case squeeze). However, try_commute_bcast_through_clone only supports reshape and transpose, and fails silently for squeeze.
Your solution is hacking this by changing clone op_type to reshape just to make commuting broadcast possible: In this line by removing the condition op is again changed op type to reshape op->change_op_type("reshape"); and the whole for loop seems to be skipped.
This hopping between op types is wrong IMO. The logical thing is to add commute through squeeze and unsqueeze, but I would have to think a little more.
Maybe I am missing some pieces. @ashokkumarkannan1 please give your thoughts on this so we can see the whole picture

Hi @dgolubovicTT ,
As you mentioned, due to broadcast TM and it is not reflected in MLIR, the output shape of reshape is wrong. ([1, 1, 256, 256] cannot be reshaped to [16, 256, 256]). So I made the shape calculation from previous node of this squeeze op. I too suspected there is a hidden bug here but not sure what it is. If you have any pointers, please let me know

@dgolubovicTT I have updated the code now. can you review it ?

Hey guys, what is the status of this PR?

Hey guys, what is the status of this PR?

@nvukobratTT  the logic of the erase_inverese_ops for squeeze and unsqueeze ops in commute_clone is rectified and updated .


LNK2001 errors when compiling MuJoCo on Windows

Hi,
I'm a student and I'm trying to use MuJoCo for a real-time project I'm currently working on.
I'm looking for some help with compiling MuJoCo on Windows with VS2017 (C++).
Currently I get lots (=42) of LNK2001-errors wth functions like  __imp__mj_step and such, meaning something isn't linked correctly.
The .vcxproj-file should show you all the relevant information on what sources, directories etc. I include/link to:

MuJoCo_VS.vcxproj

  </PropertyGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    <ClCompile>
      <PrecompiledHeader>
      </PrecompiledHeader>
      <WarningLevel>Level3</WarningLevel>
      <Optimization>Disabled</Optimization>
      <SDLCheck>true</SDLCheck>
      <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <ConformanceMode>true</ConformanceMode>
      <AdditionalIncludeDirectories>C:\mujoco\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    </ClCompile>
    <Link>
      <SubSystem>Console</SubSystem>
      <GenerateDebugInformation>true</GenerateDebugInformation>
      <AdditionalLibraryDirectories>C:\mujoco\lib;C:\mujoco\bin;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
      <AdditionalDependencies>glfw3dll.lib;mujoco.lib;%(AdditionalDependencies)</AdditionalDependencies>
    </Link>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
    <ClCompile>
      <PrecompiledHeader>
      </PrecompiledHeader>
      <WarningLevel>Level3</WarningLevel>
      <Optimization>Disabled</Optimization>
      <SDLCheck>true</SDLCheck>
      <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <ConformanceMode>true</ConformanceMode>
      <AdditionalIncludeDirectories>C:\mujoco\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    </ClCompile>
    <Link>
      <SubSystem>Console</SubSystem>
      <GenerateDebugInformation>true</GenerateDebugInformation>
      <AdditionalLibraryDirectories>C:\mujoco\lib;C:\mujoco\bin;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
      <AdditionalDependencies>glfw3dll.lib;mujoco.lib;%(AdditionalDependencies)</AdditionalDependencies>
    </Link>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    <ClCompile>
      <PrecompiledHeader>
      </PrecompiledHeader>
      <WarningLevel>Level3</WarningLevel>
      <Optimization>MaxSpeed</Optimization>
      <FunctionLevelLinking>true</FunctionLevelLinking>
      <IntrinsicFunctions>true</IntrinsicFunctions>
      <SDLCheck>true</SDLCheck>
      <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <ConformanceMode>true</ConformanceMode>
      <AdditionalIncludeDirectories>C:\mujoco\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    </ClCompile>
    <Link>
      <SubSystem>Console</SubSystem>
      <EnableCOMDATFolding>true</EnableCOMDATFolding>
      <OptimizeReferences>true</OptimizeReferences>
      <GenerateDebugInformation>true</GenerateDebugInformation>
      <AdditionalLibraryDirectories>C:\mujoco\lib;C:\mujoco\bin;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
      <AdditionalDependencies>glfw3dll.lib;mujoco.lib;%(AdditionalDependencies)</AdditionalDependencies>
    </Link>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
    <ClCompile>
      <PrecompiledHeader>
      </PrecompiledHeader>
      <WarningLevel>Level3</WarningLevel>
      <Optimization>MaxSpeed</Optimization>
      <FunctionLevelLinking>true</FunctionLevelLinking>
      <IntrinsicFunctions>true</IntrinsicFunctions>
      <SDLCheck>true</SDLCheck>
      <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <ConformanceMode>true</ConformanceMode>
      <AdditionalIncludeDirectories>C:\mujoco\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    </ClCompile>
    <Link>
      <SubSystem>Console</SubSystem>
      <EnableCOMDATFolding>true</EnableCOMDATFolding>
      <OptimizeReferences>true</OptimizeReferences>
      <GenerateDebugInformation>true</GenerateDebugInformation>
      <AdditionalLibraryDirectories>C:\mujoco\lib;C:\mujoco\bin;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
      <AdditionalDependencies>glfw3dll.lib;mujoco.lib;%(AdditionalDependencies)</AdditionalDependencies>
    </Link>
  </ItemDefinitionGroup>
  <ItemGroup>
    <ClCompile Include="MuJoCo_VS.cpp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="..\bin\basic.exe" />
    <None Include="..\bin\compile.exe" />
    <None Include="..\bin\derivative.exe" />
    <None Include="..\bin\glfw3.dll" />
    <None Include="..\bin\mujoco.dll" />
    <None Include="..\bin\record.exe" />
    <None Include="..\bin\simulate.exe" />
    <None Include="..\bin\testspeed.exe" />
    <None Include="..\bin\testxml.exe" />
  </ItemGroup>
  <ItemGroup>
    <Text Include="..\bin\MJDATA.TXT" />
    <Text Include="..\bin\MJMODEL.TXT" />
    <Text Include="..\bin\MUJOCO_LOG.TXT" />
  </ItemGroup>
  <ItemGroup>
    <Library Include="..\..\..\lib\glfw3dll.lib" />
    <Library Include="..\..\..\lib\mujoco.lib" />
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="..\..\..\include\GLFW\glfw3.h" />
    <ClInclude Include="..\..\..\include\GLFW\glfw3native.h" />
    <ClInclude Include="..\..\..\include\mujoco\mjdata.h" />
    <ClInclude Include="..\..\..\include\mujoco\mjexport.h" />
    <ClInclude Include="..\..\..\include\mujoco\mjmodel.h" />
    <ClInclude Include="..\..\..\include\mujoco\mjrender.h" />
    <ClInclude Include="..\..\..\include\mujoco\mjtnum.h" />
    <ClInclude Include="..\..\..\include\mujoco\mjui.h" />
    <ClInclude Include="..\..\..\include\mujoco\mjvisualize.h" />
    <ClInclude Include="..\..\..\include\mujoco\mjxmacro.h" />
    <ClInclude Include="..\..\..\include\mujoco\mujoco.h" />
  </ItemGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  <ImportGroup Label="ExtensionTargets">
  </ImportGroup>
</Project>

I'd deeply appreciate if anyone could point me to what I need to change in order for it to compile correctly

Not entirely sure why, but changing the architecture from x86 to x64 did the trick for me

Not entirely sure why, but changing the architecture from x86 to x64 did the trick for me


Support 1:1 NAT behavior

Relates to pion/webrtc#835
Added 1:1 DNAT behavior.
Tested with PR at pion/ice#103

Codecov Report

Merging #38 into master will increase coverage by 0.21%.
The diff coverage is 89.1%.

@@            Coverage Diff             @@
##           master      #38      +/-   ##
==========================================
+ Coverage   82.24%   82.46%   +0.21%
==========================================
  Files          15       15
  Lines        1425     1494      +69
==========================================
+ Hits         1172     1232      +60
- Misses        176      180       +4
- Partials       77       82       +5

Impacted Files
Coverage Δ

vnet/router.go
81.31% <83.01%> (+0.01%)
:arrow_up:

vnet/nat.go
93.33% <92.23%> (-1.12%)
:arrow_down:

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 77ceb2a...b46f313. Read the comment docs.


Question about colors

This is not so much an 'issue' as a question about how this neural net works, and forgive my ignorance if this was mentioned in your documentation. Since this is a 2D NN, if I were to imagine the input layer as one dimension being input pixels along the x axis and the other being input pixels along the y axis, how is the color information managed? Do you assign a specific range (between, say, -1 to 1) to a single channel?
Thanks in advance!
Madhu

Hi @MaDooSan,  Currently, by default, each color pixel in the BMP image gets converted to a floating point monochrome value in the range -1.0..+1.0, and that's what gets copied to the input neurons.
Alternatively, you can input just a single color channel from the BMP image with the color channel parameter.
The default conversion to monochrome is (0.3Red + 0.6Green + 0.1Blue), a common photographic conversion. To modify that, see ImageReaderBMP::getData().
Currently, neural2d cares only that the number of pixels in each BMP file is equal to the number of neurons in the input layer. The program does not care if the dimensionality is the same. For example, if your input layer has 64 neurons arranged in any width and height, then each BMP file must also have exactly 64 pixels, and they can be arranged in any width and height, even different. (If the dimensionality is different, we assume you know what you're doing with your input data.) The pixel values get assigned to the input neurons, one pixel per neuron, reading the source pixels across the columns and down the rows (relative to the image file) and writing the values to the input layer across the columns and down the rows (relative to the neural net input layer).

Ahh, I see. That makes a lot of sense. Thanks for clarifying the conversion factor, I must have missed that.
Cheers!


null appears to be mishandled

data,error,links,status
,Query string parameter 'input' is not validate,"",400

In the above sample, the 'data' attribute was null while 'links' was an empty array; I believe 'data' should also be an empty string? need to investigate due to the years gap between now & the last code change.

This is correct; null being the absence of a value will be handled correctly. If a string replaced the non-value, it would have to be handled via macro on csv import (out of band knowledge).


Styled Components Getting styles after render

Followed the documentation as per styled components for SSR and the styled are getting applied on client after the render of the HTML. Any work around on this.

This is normal because the style is extracted with ExtractTextPlugin and is added via a script tag, which renders it after HTML.
To have the style at the same time as the HTML I think that it should not be extracted and added via a style tag.

Thanks, yeah got it. I managed to get it working. You're awesome!


DNS resolution in CGO

The pr address the two issues:

resolve the DNS using cgo
As a MAC user, i put multiple DNS resolver file within /etc/resolver directory
support https_proxy to call service api

@andreasf here's the env i'm working
→ go version
go version go1.8.3 darwin/amd64

Hi,
Thanks for this PR!
Indeed Go seems to use the Go DNS resolver by default when cross compiling from Linux in CI. Building locally on Mac OS, I automatically get the cgo resolver, as it is described in the docs.
GODEBUG=netdns=cgo is a runtime flag and does not change the build output. CGO_ENABLED=1 go build -tags netcgo might help, but now we need a cross compilation gcc toolchain.
It might be easier to just build on Mac OS instead.

canceled due to cross compiling


yolov4_tiny-608X608 - Yolo to ONXX conversion error.

Parsing DarkNet cfg file...
Traceback (most recent call last):
File "yolo_to_onnx.py", line 955, in
main()
File "yolo_to_onnx.py", line 896, in main
layer_configs = parser.parse_cfg_file(cfg_file_path)
File "yolo_to_onnx.py", line 94, in parse_cfg_file
layer_dict, layer_name, remainder = self._next_layer(remainder)
File "yolo_to_onnx.py", line 150, in _next_layer
param_type, param_value = self._parse_params(param_line)
File "yolo_to_onnx.py", line 177, in _parse_params
param_value = float(param_value_raw)
ValueError: could not convert string to float: '1.5y'

This is because the parser code in "yolo_to_onnx.py" failed to handle something in your cfg file.  You could check where in your cfg file the "1.5y" pattern could be found.  Fix it.  Then the script should work.

@jkjung-avt
Thanks man,
but, Getting large detected area instead of exact ROI,
I have trained a custom tiny YOLOv4 with 416X416 reslolution, but Running inference on 1080X1080 resolution.
Will that going to effect?

I have trained a custom tiny YOLOv4 with 416X416 resolution, but Running inference on 1080X1080 resolution.

That won't work too well.  It's better to train and inference with the same resolution.


[multistage] Do Not Log Entire Plan in QueryServer

Saw this when fixing tpch tests. Logging entire plan can be dangerous in production scenarios (plans are usually large)
cc: @walterddr

Codecov Report

Merging #10930 (16b8ac5) into master (85bb1fa) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           master   #10930     +/-   ##
=========================================
  Coverage    0.11%    0.11%
=========================================
  Files        2188     2134     -54
  Lines      117754   115249   -2505
  Branches    17791    17489    -302
=========================================
  Hits          137      137
+ Misses     117597   115092   -2505
  Partials       20       20

Flag
Coverage Δ

integration1temurin17
?

integration1temurin20
?

integration2temurin11
?

integration2temurin17
?

integration2temurin20
?

unittests1temurin17
?

unittests1temurin20
?

unittests2temurin11
?

unittests2temurin17
0.11% <0.00%> (ø)

unittests2temurin20
?

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

Impacted Files
Coverage Δ

...va/org/apache/pinot/query/service/QueryServer.java
0.00% <0.00%> (ø)

... and 56 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Color abstraction

I finally looked into the color issues that I had on the Amiga and as you might have guessed it was big vs little endian related. I started off adding some #ifdefs in the code but it got ugly super quickly.
What I did now was to create a simple LeColor struct:
struct LeColor {
    uint8_t r;
    uint8_t g;
    uint8_t b;
    uint8_t a;
};

And then I started replacing all the uint32_t by LeColor and change the code super slighly.
Then I changed the draw_win thing and added appropriate bitmasks so that windows renderes it properly. That was it. I now have a version which looks EXACTLY the same on Amiga and Windows.
Is this change desired? How would you do it?
My guess is that I broke the SIMD stuff.
I could start cleaning it up and then provide a pull request. What do you think? What would be your approach to the problem?

btw...I am seeing black rectangles from time to time...didn't yet look into it. but also this is now the same on amiga and windows :D (intrasterizer no mmx/simd)

Sounds good to me.
Can you make a pull request so I can test the code?

should find some time this evening I guess

Ok, then I will adapt the asm code if necessary.

Pull request opened: https://github.com/Marzac/le3d/pull/9


[5.8] support for array callables as pipes

This bring support for all the php callables to be accepted as pipes.
Previous PRs to add tests for pipe are made to make sure that this change is not going to break the current functionality and is fully additive.
This makes the pipeline component sweeter specially when used outside of laravel or when used within the application code.

I think the Pipeline is pretty good really. I feel like we're adding stuff just for fun now.

@taylorotwell Honestly I needed this for my laravel-middlewarize package.
When using middlewares within application code for example in a controller it is nice to have a prive method as a middleware.


Repo sync for protected CLA branch

The pull request is created from master637725962144479118 to master to fix git push error for protected CLA branch

@ghogen : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Does Linkage support BelongsToMany relations

Laravel Version: 5.8.38
PHP Version: 7.4
Laravel-admin: 1.8

When editing I have relation in table, but it's not showing me that relation is active and neither radio is clicked
Example:
$form->radio('relation', 'Relation name')
->options(Model::all()->pluck('title', 'id'))
->when(1, function (Form $form) {
//
})
->when(2, function (Form $form) {
//
});
Does linkage support values from BelongsToMany? If yes, how to implement it?

@z-song


Doing this project without the LCD code

Hi I want to create this exact project and i am not a programmer. I want to use the .py code minus the adafruit LCD part and show the results in the terminal or message box itself. Thanks so much if you can help me do that <3

What kind of a display are you planning to use? Are you thinking about just having a monitor up and just watching the Py script scroll by in console?

Also, this code is pretty old; the API call I used probably needs updating by now...


spirv-fuzz: Permute the order of variables at function or module scope

The order in which variables are declared in a function should not matter. The order in which global variables (and more generally global declarations) appears doesn't matter as long as def-use constraints are satisfied. There is scope for both kinds of permutation.
@dneto0 thanks for suggesting this.
@Vasniktel does the transformation for moving an instruction within its block already take care of OpVariable instructions?

No, we don't support OpVariable in that transformation. We could extend it but that might not be a good idea since most of the code in that transformation is concerned with swapping memory-related instructions correctly (e.g. swapping two OpStore's) and swapping OpVariable's wouldn't fit the current implementation (since there are no constraints for their ordering). I think it's better to have a separate transformation for this (in the same way we have a transformation that permutes function parameters).

Here's a description of the issue for someone wishing to solve it.
The first block in a function starts with 0 or more OpVariable instructions. The order in which these instructions appear should not matter, thus they can be permuted.
It would make sense to implement a new transformation, TransformationSwapFunctionVariables, that takes the ids of two variables, checks that they exist and are in the same function (in IsApplicable), and swaps them (in Apply).
Then a new fuzzer pass, FuzzerPassPermuteFunctionVariables could randomly permute the variables of functions in a module by applying random swaps.
This fuzzer pass should be a "final" fuzzer pass in fuzzer.cpp.


Replace use of default registerer in flagext package

We're trying to move away from global metrics since this is supposed to be a shared library. @pstibrany recommended potentially setting the register and logger with some sort of init method that could be called from an application's main function.

What @pstibrany suggested sounds a reasonable solution to me. I would keep the init function restricted to the flagext package tho. If we make it generic, it's more likely we'll end up using global logger/registered in other places, which is something we want to strongly discourage.

Agree we want to discourage use of global logger/metrics registerer.


2.1

add aggregate method ( fix #56)
add dropIndex and dropIndexes methods (fix #113)
use util.inherits instead of __proto__
Add castIds option to disable the automatic id casting (fix #1, #72)

[Current coverage][cc-pull] is 91.21%

Merging [#134][cc-pull] into [master][cc-base-branch] will decrease coverage by 0.06%

@@             master       #134   diff @@
==========================================
  Files             4          4
  Lines           298        330    +32
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            272        301    +29
- Misses           26         29     +3
  Partials          0          0

Powered by Codecov. Last updated by [1b86ac9...d9035eb][cc-compare]
[cc-base-branch]: https://codecov.io/gh/Automattic/monk/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/Automattic/monk/compare/1b86ac9b33ff3b17ec59232fce4deab72f34bea6...d9035ebb9982d9780aaff112e1055b7e2460e39c
[cc-pull]: https://codecov.io/gh/Automattic/monk/pull/134?src=pr

@mathieudutour my first thought was: I'd add a test for the fix of #137 :)
I'll take a closer look at the other things 👍

Other than those minor kinds of things, LGTM :shipit:


Authorization rules no longer work after upgrading to transformer v2

Before opening, please confirm:

[X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
8.0.2
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Amplify Categories
auth
Amplify Commands
Not applicable
Describe the bug
Since 2018, we've been using the appsync client on backend lambda processes to process data (for example, onSave from DynamoDb streams).
After upgrading to transformer v2, these stopped working with errors such as the following:
UserLambdaValidationException - PostAuthentication failed with error GraphQL error: Not Authorized to access updateUser on type Mutation.

Here is how we're connecting
const appsync = new AWSAppSyncClient({
  url: awsmobile.aws_appsync_graphqlEndpoint,
  region: awsmobile.aws_appsync_region,
  disableOffline: true,
  auth: { type: AUTH_TYPE.AWS_IAM, credentials: () => console.log("AWS.config.credentials", AWS.config.credentials) || AWS.config.credentials },
});

And here are the relevant rules - comments inline.
[
      {
        allow: owner
        identityClaim: "realUserId"
        ownerField: "id"
        operations: [read, update, create]
      } # The owner can read, update and create
      { allow: groups, groups: ["Admins"], operations: [read, update, create] } # Anyone from the Admins group can read, update and create
      { allow: private, provider: userPools, operations: [read] } # Anyone logged in via cognito can read
      { allow: private, provider: iam, operations: [read, update, create] } # FOR BACKEND USE - allow the backend system process to read, update and create
      { allow: public, provider: iam, operations: [read] } # Anyone can read
    ]

Expected behavior
The backend service can call the mutation
Reproduction steps

Upgrade to transformer v2
Try to run the mutation

GraphQL schema(s)

# Put schemas below this line

Log output

# Put your logs below this line

Additional information
No response

Found the docs on this (although I'm surprised they're not in the migration guide).
Check this section on this page


toDecimal() doesn't add trailing zeros

bigRat(9).toDecimal(2) => "9"
I'm expecting bigRat(9).toDecimal(2) => "9.00"

var string = bigRat(9).toDecimal(decimals);
if (!string.includes(".")) {
  string = string.concat(".00");
} else if (string.includes(".") && string.split(".")[1].length === 1) {
  string = string.concat((decimals - 1) * "0");
}
return string;

This was intentional. If a number can be represented exactly in the given number of decimal digits, it will remove any trailing 0s since they don't provide any information. Otherwise, it will keep them. For example,

bigRat(9).toDecimal(2) => "9"
bigRat("9.0001").toDecimal(2) => "9.00"

If this doesn't seem like sensible behavior, let me know. In any case, I should probably mention these details in the documentation.

I'm not sure. I think toDecimal reminds me of "to decimal places", and I'm sure (at school) if I was asked to give 9 to 2 decimal places, I would say 9.00.

You were dead right. I should have said I am trying to represent money, and at the time I couldn't see a use for toDecimal other than printing for display. This should be a function separate to toDecimal() if anything.


Update SR-IOV to v1.3.0

Updates to the latest sriov and nfd chart releases:

sriov-network-operator v1.3.0
sriov-nfd v0.15.6

This also modifies the chart version scheme to use the upstream chart's semver instead of the prior scheme (<version>+up<upstream_version>). For example, the prior chart version was 1.2.4+up0.1.0 whereas the next published chart version will be 1.3.0
Open vSwitch networks are currently unsupported. The OvsNetorks CRD has been added, but any reference to the ovs-cni image has been removed.

I think it LGTM, but out of curiosity, for my own understanding: do we need to adds the OvsNetorks CRD anyway?

I think it LGTM, but out of curiosity, for my own understanding: do we need to adds the OvsNetorks CRD anyway?

Yes, it's needed because the sriov-network-operator will attempt to index the OVSNetworks and fail during start-up if the api-resource is not present:
unable to create index field for cache  {"error": "no matches for kind \"OVSNetwork\" in version \"sriovnetwork.openshift.io/v1\""}

See also: https://github.com/k8snetworkplumbingwg/sriov-network-operator/blob/master/main.go#L166-L173

Yes, it's needed because the sriov-network-operator will attempt to index the OVSNetwork and fail during start-up if the api-resource is not present:

Thank you for the explanation! I'll approve once we address the other comment.


Installation with Ansible 2.4

Ansible 2.4 is out but the installation checks won't let us use it.

Ansible 2.4 now supported


add /tmp/kainstall-offline-file//manifests/kube-flannel.yml failed.

Warning: Permanently added '<IP_ADDRESS>' (ECDSA) to the list of known hosts.
Warning: policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
podsecuritypolicy.policy/psp.flannel.unprivileged created
clusterrole.rbac.authorization.k8s.io/flannel created
clusterrolebinding.rbac.authorization.k8s.io/flannel created
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Retry 1/6 exited 1, retrying in 1 seconds...
Warning: policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
podsecuritypolicy.policy/psp.flannel.unprivileged configured
clusterrole.rbac.authorization.k8s.io/flannel unchanged
clusterrolebinding.rbac.authorization.k8s.io/flannel unchanged
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Retry 2/6 exited 1, retrying in 2 seconds...
Warning: policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
podsecuritypolicy.policy/psp.flannel.unprivileged configured
clusterrole.rbac.authorization.k8s.io/flannel unchanged
clusterrolebinding.rbac.authorization.k8s.io/flannel unchanged
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Retry 3/6 exited 1, retrying in 4 seconds...
Warning: policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
podsecuritypolicy.policy/psp.flannel.unprivileged configured
clusterrole.rbac.authorization.k8s.io/flannel unchanged
clusterrolebinding.rbac.authorization.k8s.io/flannel unchanged
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Retry 4/6 exited 1, retrying in 8 seconds...
Warning: policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
podsecuritypolicy.policy/psp.flannel.unprivileged configured
clusterrole.rbac.authorization.k8s.io/flannel unchanged
clusterrolebinding.rbac.authorization.k8s.io/flannel unchanged
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Retry 5/6 exited 1, retrying in 16 seconds...
Warning: policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
podsecuritypolicy.policy/psp.flannel.unprivileged configured
clusterrole.rbac.authorization.k8s.io/flannel unchanged
clusterrolebinding.rbac.authorization.k8s.io/flannel unchanged
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Error from server (NotFound): error when creating "/tmp/kainstall-offline-file//manifests/kube-flannel.yml": namespaces "kube-flannel" not found
Retry 6/6 exited 1, no more retries left.
[2024-11-25T21:43:01.129652550+0800]: ERROR:   [apply] add /tmp/kainstall-offline-file//manifests/kube-flannel.yml failed.

请问这个有什么解决办法么?

看起来老版本的离线包不能用了，离线包对安装环境要求高些。


ImportError: lxml.html.clean module is now a separate project lxml_html_clean over test suite (Ubuntu 20.04 and benchmarks)

🧰 Task

Seems like the latest release of lxml (5.2.0) moved a module to be an independant package (lxml.html.clean -> new lxml_html_clean package)? See https://github.com/napari/napari/actions/runs/8510883283/job/23309875720?pr=6794#step:11:174 and https://github.com/napari/napari/actions/runs/8510883283/job/23309397479?pr=6794#step:8:144

I looked into this for a bit more context:
https://lxml.de/5.2/changes-5.2.0.html

The lxml.html.clean implementation suffered from several (only if used) security issues in the past and was now extracted into a separate library:
https://github.com/fedora-python/lxml_html_clean
Projects that use lxml without "lxml.html.clean" will not notice any difference, except that they won't have potentially vulnerable code installed. The module is available as an "extra" setuptools dependency "lxml[html_clean]", so that Projects that need "lxml.html.clean" will need to switch their requirements from "lxml" to "lxml[html_clean]", or install the new library themselves.

Googling around, it looks like there is some folks looking into alternatives to html_clean:
https://github.com/psf/requests-html/issues/558
nh3 seems promising:
https://github.com/messense/nh3
Maybe in the short term we should migrate to the html_clean package, just to silence the CI errors but then we may want to consider whether we should replace it?

I played with nh3, here's a branch using that instead of lxml:
https://github.com/psobolewskiPhD/napari/tree/use_nh3_html_sanitizer
The main difference is handling quotes, where nh3.clean doesn't escape quotes.

Currently facing this error on a planned Notebook too

Hi guys, how should we overcome this

Currently patched to this :
!pip install --upgrade lxml_html_clean

import geograpy

url = 'https://en.wikipedia.org/wiki/2012_Summer_Olympics_torch_relay'
places = geograpy.get_geoPlace_context(url=url)
print(places)

It perfectly worked : I could update 🥷 Neo4J Ninjas duckdb dataset 🦆

It's impossible to figure out what the issue is.
We'll need the text of the entire traceback. You can post it between sets of three backticks ` so it's formatted as code.

I am currently facing this error, are there any way to fix it? Thank you!

@jamesnq are you using napari? There's no way to tell from your screenshot. Please post the entire traceback as text. Thanks!

@jamesnq are you using napari? There's no way to tell from your screenshot. Please post the entire traceback as text. Thanks!

Thanks for your reply, I already fixed the error. I install the lxml_html_clean library and run with python 3.10 instead of 3.12 and it works!

I had a similar issue, I am running a python 3.10 env, to solve the problem had to do:
conda update napari
pip install lxml[html_clean]

Try to
pip install lxml_html_clean
It might do the trick. This worked for me

try to install lxml_html_clean with python 3.10
On Sun, 26 May 2024 at 18:33 Luis @.***> wrote:

Try to
pip install lxml_html_clean
It might do the trick. This worked for me
—
Reply to this email directly, view it on GitHub
https://github.com/napari/napari/issues/6798#issuecomment-2132186398,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANKRCJ6EQRHAL4SEK5F7F4LZEHB7PAVCNFSM6AAAAABFR42XACVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSGE4DMMZZHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

from napari import utils

Is causing an import error for me. Was hoping to avoid having to install this package that seems to only be used for testing.

It's not just testing, it's used when producing screenshots here. However, it's supposed to be optional — I see now that we should replace this catch with an ImportError.


Header updated

I have made some changes in Style.css

This does not solve the highlighted issue

@smaranjitghose can you please give some more detail about the issue

@smaranjitghose can you please give some more detail about the issue

I have given a snapshot and pointed out the difference. Please refer it there

@smaranjitghose  so basically in the website at the home page t is not seeing properly right this is the issue

@smaranjitghose so basically in the website at the home page t is not seeing properly right this is the issue

ya


fix windows msgpack build failure

fixes windows will see if okay on linux

As windows build rocblas is now broken will hope to merge on the weekend if this passes, not sure if a tensile tag update will happen on weekend too?

As windows build rocblas is now broken will hope to merge on the weekend if this passes, not sure if a tensile tag update will happen on weekend too?

Tensile tag update PR happens every Friday and Sunday.


Laravel Mix way to use webpack's DefinePlugin

Is there a Laravel Mix simple way to use webpack's DefinePlugin?
I see there is a "MixDefinitionsPlugin". Not sure if it is for internal purposes only; there is no documentation about it.
Thank you.

https://github.com/JeffreyWay/laravel-mix/blob/master/docs/quick-webpack-configuration.md


Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'NONE')

I am using PDF.js Demo project and in app.js I am getting error "Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'NONE')"
if (pdfViewer.hasEqualPageSizes) {
            return;
  }

at return statement. and I think because of that in UI the current page set as 0 and I have to scroll to view pdf

When opening an issue, please provide all of the information requested in https://github.com/mozilla/pdf.js/blob/master/.github/ISSUE_TEMPLATE.md since as-is this unfortunately isn't actionable/valid.
Furthermore, please see https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md (emphasis mine):

If you are developing a custom solution, first check the examples at https://github.com/mozilla/pdf.js#learning and search existing issues. If this does not help, please prepare a short well-documented example that demonstrates the problem and make it accessible online on your website, JS Bin, GitHub, etc. before opening a new issue or contacting us in the Matrix room -- keep in mind that just code snippets won't help us troubleshoot the problem.


pkg/cluster: be smart about number of master nodes before remove any …

…member from the cluster
If we do not have enough master nodes, we should simply wait for the old node to be online again.
Removing the etcd member will not help us to recover the cluster to the desired number of members, since we do not have enough master nodes for self hosted etcd.
Instead, there is a large chance that the old node is taken offline for maintenance temporary experiencing network partition. When it comes back, it will recover itself since we persist data for self hosted case.
/cc @hongchaodeng @hasbro17

/cc @hasbro17 @hongchaodeng can you take another look?

SGTM. I can try to test this PR out on a multi-master self-hosted cluster by manually forcing a node to become unready and see that the operator does not delete the pod of the downed cluster.

@hasbro17 Thanks. Let me know how it goes. I am trying to add node kill/partition into coreos/ktestutil. so that we can write automated test against this :P.

LGTM

Haseeb and I justified a bit why we need this change. I'm writing down the discussions here.
Note that if a node was going down but not deleted, k8s would not delete pods from the node in a short time. In long time (5 mins), eviction will happen. This is not something this PR would address because it is controller manager taking the action. See https://github.com/coreos/etcd-operator/issues/1117 .
This is to take care when a node was reboot. When it was shutdown, it would have terminated all processes. After it reboot up, docker ps would show that etcd container Exit (0) before. Kubelet would take this information and update APIServer that etcd pod's phase to be Completed, and then based on etcd pod's RestartPolicy: Always to restart it. There could be a window that operator might delete it. This PR prevents that from happening.

This is to take care when a node was reboot. When it was shutdown, it would have terminated all processes. After it reboot up, docker ps would show that etcd container Exit (0) before. Kubelet would take this information and update APIServer that etcd pod's phase to be Completed, and then based on etcd pod's RestartPolicy: Always restart it. There could be a window that operator might delete it. This PR prevents that from happening.

it is also possible that etcd operator have deleted the pod. then there will be a new pod in the pending state until this node back online. so the original pod will be deleted by the kubelet on that node, and a new pod will be created. this is another unwanted behavior.
However, on the other side, if this node is actually dead for ever, etcd operator WILL DO NOTHING until there is a new node comes up. This might lead to a bad situation.
For example, we have a 5 master nodes, 5 etcd nodes setup:
(n1, n2 ,n3, n4, n5)
(e1, e2, e3, e4, e5)
After n1 dies
with this PR
(    , n2 ,n3, n4, n5)
(e1, e2, e3, e4, e5)
with out this PR
(    , n2 ,n3, n4, n5)
(    , e2, e3, e4, e5)
After n2 dies
with this PR
(    ,    ,n3, n4, n5)
(e1, e2, e3, e4, e5)
with out this PR
(    ,    ,n3, n4, n5)
(    ,   , e3, e4, e5)
After n2 dies
with this PR
(    ,    ,   , n4, n5)
(e1, e2, e3, e4, e5) -> Lost quorum!
with out this PR
(    ,    ,  , n4, n5) -> Still OK!
(    ,   ,   , e4, e5)
But I think the situation I showed is a extreme case, since users should set node alter, and add back enough nodes when there are node failures. So I believe the advantage this PR brings overweights its disadvantage.

After n1 dies
with this PR
( , n2 ,n3, n4, n5)
(e1, e2, e3, e4, e5)
without this PR
( , n2 ,n3, n4, n5)
( , e2, e3, e4, e5)
======
Are you assuming n1 is not deleted from API. Even without this PR, e1 won't be deleted, right?

Are you assuming n1 is not deleted from API. Even without this PR, e1 won't be deleted, right?

I assume n1 is deleted from the api server, but no new node is added.

Again

But I think the situation I showed is a extreme case

I have this assumption, since if n1 is deleted, either the auto scaling group deleted it or a human deleted it from k8s api. A new node should be expected to add back shortly either by the scaling group and the same human.

I thought maintenance would done via node draining: https://kubernetes.io/docs/tasks/administer-cluster/safely-drain-node/#use-kubectl-drain-to-remove-a-node-from-service

@hongchaodeng
Well... Yes, if it is a planned long-term maintenance. If I just want to take the node down for 3 minutes for updating my OS. I probably wont brother to ask all the pods to be rescheduled, especially for master nodes.

Why is the node deleted from API?

What do you mean? I explained that a human might do it or aws auto scaling group might do it. The node might be forever dead, for example the hardware is broken so that the hardware under the vm is taken to replace.

If a node was deleted, then the etcd pod be deleted too. The etcd operator will create a new member on new nodes.


Separate functions to handle individual algorithms

Is your feature request related to a problem? Please describe.
Write separate functions for every individual algorithm instead of throwing everything up into one big function. By doing this, we call  indivudual algorithms we only need and not everything in general. this also helps in futher implementing advanced features of particular algorithms.

How do you plan on writing that?
I'm thinking it would be redundant to breakdown the classification algorithms into different functions with the accompanying metrics. Meaning for every algorithm you want to use you have to make a call to every single attribute you want which is almost the same as making calls using sklearn. That's my opinion though, Im interested in your take

you make a good point. i'll take that out for now till there's a need for that


Fetch only supports GET requests

I'm trying to do POST requests with the fetch API, but I think currently it's not supported (according to the signature, it only takes a string, nothing more).
external fetch : string => CoreRe.promise response = "" [@@bs.val];

Are there plans to do a fetchPost version?

Fixed by #16, can be closed.


Hmmm... your example on the README.md page does not compile

Is the example on your README.md web page meant to compile with a Microsoft compiler? I put your example in Visual Studio 2017 and it will not compile.  For example:

    // list comprehension, generating linQ output.
    public static object apply_map(object mapfn, object filterfn) {
        return (from n in lst
            where filterfn
            select mapfn(n)).ToList();
    }

"lst" is not defined.  There are numerous other errors.  Am I missing something?
Charles

The project is still under development. At this point, the translation is mostly syntactic; Python syntactic elements are translated to C# syntactic elements. Currently underway is an effort to handle type inference properly.  Once this has become stable enough, the README.md will be updated with the improved translation.


refactoring the project 🔨

move assets folder to internal directory
renaming some packages and variables
move ASCII-art to internal (create a new package: app)
move parser in cmd package to internal
use regex in parser (parseVariables function)

This issue break into multiple issues.  💔


Sources for parts?

Planning on building one of these but struggling to find some parts( mostly the solenoid/manifold assembly) is it possible to include links to sources for parts ?

hi, the solenoid manifold in the current models are made by Ningbo Xinyi Sunshine Pneumat Science Tech. A lot of the parts are generic such as Arduino, capacitive sensors, DC motors, if you can find a local suppliers it would be better for you since the price with shipping varies a lot depending where you are. Let me know if you have any trouble in sourcing the parts.

hi, the solenoid manifold in the current models are made by Ningbo Xinyi Sunshine Pneumat Science Tech. A lot of the parts are generic such as Arduino, capacitive sensors, DC motors, if you can find a local suppliers it would be better for you since the price with shipping varies a lot depending where you are. Let me know if you have any trouble in sourcing the parts.

Hi, the X2V030-08-6F-DC12V model number that can be read on the solenoid pic gives no results today, so more information on this part would be helpful. Thank you

Hi, the X2V030-08-6F-DC12V model number that can be read on the solenoid valve pic gives no results today, so more information on this part would be helpful. Thank you

they don't have standard parts for sale, you will have to specify your manifold requirement. CP800 uses 6 channels but you may want to have less or more of different materials depending on your chemicals.
https://xysunpc.en.alibaba.com/productgrouplist-801761158/valve_manifold.html?spm=a2700.shop_plgr.88.42


alert component fixes...

What is the purpose of this pull request?

RGBA colors for the content and close button to fix contrast
close button as span was semantically incorrect, used button instead

Which issue number does this fix?
#61

Hey there! Before continuing with this pull request, please make sure you have read through the README and CONTRIBUTING files, and have added your changes to the demo site at index.html.

Looks great. Merging now.


install liboqs-python in docker image so version check can succeed

Your call, @vsoftco, whether enabling correct operation of the docker image for 0.7.2 would warrant a re-release...

@baentsch Thanks! I saw that. I'll re-tag. I still think that even if setup.py is not used, the library should just warn and not crash, so I'll fix that as well then re-tag the release after


Some flags are not defined

Hi,
flags like 'retry-attempts' aren't usable at this moment (checked latest and v6 versions). 'internal' flag for example works properly.
I'm trying to run registrator with these flags (using docker-compose):
-internal -retry-attempts 10

It also seems that many other flags are "missing". Here's my output:
2015/09/22 09:45:52 Starting registrator v6 ...
flag provided but not defined: -retry-attempts
Usage of /bin/registrator:
-deregister="always": Deregister exited services "always" or "on-success"
-internal=false: Use internal ports instead of published ones
-ip="": IP for ports mapped to the host
-resync=0: Frequency with which services are resynchronized
-tags="": Append tags for all registered services
-ttl=0: TTL for services (default is no expiry)
-ttl-refresh=0: Frequency with which service TTLs are refreshed

Great app by the way!

The two "retry" flags were added in master, so they will be part of the future "v7". It looks like the docs page is being generated from master right now, so I'll have to check with @progrium on getting it to list the docs for the released versions.
If you need those you can try the ":master" label in Docker.

+1 on fixing docs, was very confused

+1, anticipating v7 with -retry-attempts

Docs can be fixed with pull requests! They're right there in the docs
directory. It's just markdown!
On Fri, Jan 22, 2016 at 4:08 AM, Etki<EMAIL_ADDRESS>wrote:

+1, anticipating v7 with -retry-attempts
—
Reply to this email directly or view it on GitHub
https://github.com/gliderlabs/registrator/issues/255#issuecomment-173867984
.

--
Jeff Lindsay
http://progrium.com

@progrium done #324

Closing as docs were added and merged. Thanks @etki!


Text composables: Android Basics with Compose

URL of codelab

In which task and step of the codelab can this issue be found?
Describe the problem
in learn more link the link to Pixel density is broken
Steps to reproduce?

Go to...
Click on...
See error...

Versions
Android Studio version:
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.

Hi @scropion86
Thank you for writing in and bringing this to our attention.
The lesson has been updated and will be republished again in the near future.
Hope you are enjoying the course.
Regards.


Rename CHANGE.md to CHANGES.md

Coverage remained the same at 98.734% when pulling ee19b9eba53d87b4d6e1aaa296341569815334e5 on waldyrious:patch-1 into defb0cdd4428844d576a1fbcb72326f9d7883304 on yaniswang:master.


Manually test that radioState returns the right values on Lollipop/Marshmallow devices that don't have the right BLE hardware

@tompaana: I think currently, if you try to run some Thali test app on a device that doesn't have the required HW capabilities, there is an exception like https://gist.github.com/vjrantal/cd12b6246562586abdf5 .

This should already be fixed. Can you, @vjrantal, reproduce this?

@tompaana: I am not sure since the CI was the best place to check issues like this with various devices, but we don't currently have that option. I am fine closing this and reopening if I run into this in the future.


main: use cross-platform temporary directory.

This change is

Thanks @xoviat

Only took me three tries to get it right!


I have the following error when installing osmnx. I need your help!

pip install osmnx  ---->
    A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Please read the installation instructions.


typo: azsadmin/resource-manager/gallery/Microsoft.Gallery.Admin

Double word "gallery"
metdata -> metadata

Automation for azure-sdk-for-go

Automation for azure-sdk-for-js

Automation for azure-sdk-for-python

Automation for azure-sdk-for-node

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-java

Can one of the admins verify this patch?


About the reset function in attention bias

In  transformer_sentence_encoder.py line 233~238 :
        # p_0 \dot p_0 is cls to others         cls_2_other = abs_pos_bias[:, 0, 0]         # p_1 \dot p_1 is others to cls         other_2_cls = abs_pos_bias[:, 1, 1]         # offset          abs_pos_bias = abs_pos_bias[:, 1:, 1:]
abs_pos_bias[:, 1, 1] seems strange. I think this should be abs_pos_bias[:, 1, 0] ?

(0,0)=p0 \dot p0,
(1,1)=p1 \dot p1,
p0 and p1 are embedding for cls to others and others to cls

Oh, It seems that you have TWO additional tokens before the sentence, at p0 and p1, including the [CLS] token.
Then you truncate the attention about the first token (line 238), using the attention between p0 and p0 and attention between p1 and p1 for cls to others and others to cls, respectively? (line 239~240)

refer the the our description in the paper:

Oh, I miss that. Thank you!

@guolinke Hi, I still wonder why the p0 \dot p0 and p1 \dot p1 is reused here. What if other position encoding vectors, such as p2 \dot p2 and p3 \dot p3? And what if using completely irrelevant vectors, such as q0 ]dot q0 and q1 \dot q1?

@guolinke Hi, I still wonder why the p0 \dot p0 and p1 \dot p1 is reused here. What if other position encoding vectors, such as p2 \dot p2 and p3 \dot p3? And what if using completely irrelevant vectors, such as q0 ]dot q0 and q1 \dot q1?


#4836: Add support for blocking conv activation in 2d systolic conv v…

…ariant

CI - https://github.com/tenstorrent-metal/tt-metal/actions/runs/7648820942


Change name of the hdn morphodict to Gúusaaw

Correct name of the hdn morphodict to Gúusaaw, with an accent of the first ú but not the second one.

Apparently done in: https://guusaaw.altlab.dev/


Avoid computing tag helper documentation strings in compiler

Fixes #8538
The Razor compiler spends time formatting documentation strings for various tag helper objects, even though it never uses them. Each string is written directly to JSON when tag helpers are serialized. This affects throughput performance when tag helpers are passed from Microsoft.AspNet.Razor.Remote (running in Roslyn OOP) to VS, or when they are written to or read from the project.razor.json file.
This change provides a mechanism for tag helpers to reference a DocumentationDescriptor rather than a string. This descriptor holds onto an ID that refers to the expected string resource and an object[] of arguments if formatting is required. I've ensured that this is a non-breaking change. The Documentation property still exists and can be set on tag helper builders. However, I've gone ahead and updated the compiler to never set that property and to use documentation descriptors instead. The net result is that excess work can be avoided in the compiler and in serialization.

Thanks everyone for great suggestions. Much appreciated!


Finding nearby locations within a given radius

Hello there,
I have stored latitude and longitude for different interesting places in my database. Whenever a user clicks into any of the interesting places, the show page displays details of the location, along with a google map with a marker pointing at it.
Now I have been trying to implement a button to "Show nearby places", along with a drop-down for ranges (eg. 50km, 100km, 150km), but could not figure out how to do it.
I was wondering how to find the neighboring places withing a given range from a selected location, using the latitudes and longitudes I have in my database.
Sorry if I am being way too dumb
I have even posted the message in stackoverflow http://stackoverflow.com/questions/8113120/finding-nearby-locations-within-a-given-radius
Thanks

Just answered on stackoverflow.
Cheers,
Ben