Fix CSVLogger for remote FS

What does this PR do?

Fixes #18861

Before submitting

Was this discussed/agreed via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
Did you make sure to update the documentation with your changes? (if necessary)
Did you write any new necessary tests? (not for typos and docs)
[x] Did you verify new and existing tests pass locally with your changes?
Did you list all the breaking changes introduced by this pull request?
Did you update the CHANGELOG? (not for typos, docs, test updates, or minor internal changes/refactors)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:

Reviewer checklist

[ ] Is this pull request ready for review? (if not, please submit in draft mode)
[ ] Check that all items from Before submitting are resolved
[ ] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified

:books: Documentation preview :books:: https://pytorch-lightning--18864.org.readthedocs.build/en/18864/

@awaelchli my first commit was actually a quick fix, which actually only adds code, but I found it (i) a bit odd, not pretty lets say, and (ii) it will write to the remote FS csv file twice, but only in case of columns changes
You can check it out here: https://github.com/Lightning-AI/lightning/pull/18864/commits/763c1a91ea474d23f74eb1f1faf4df1c802efd2e
If you like it more, since I won't change any tests or other part of code, we could move forward with this one

awaelchli are there any updates for this?

@ioangatop, mind checking the conflict :)
@awaelchli, pls review...

@Borda done, thank you for the reminder :)


Improve markdown writing experience (use anchors and line formatting)

Using anchors will make it less painless to make changes without breaking the markdown and we could also use the line hiding feature of mdbook to make some of the explanations better by highlighting which lines are new/modified. High effort though, a good starting point might be doing this for new code.
https://rust-lang.github.io/mdBook/format/mdbook.html

[ ] Chapter 1
[ ] Cahpter 2
[ ] Chapter 3

Closing this as it's not a priority atm and likely high effort.

Reopening as it is very very annoying to make any change without breaking the whole book. Need a strategy for this, maybe a good first step is using it on new code and slowly adding it to old code.

Switches to anchors in the latest update for the main book, translations will be fixed in a second pass


Type: ignore for a block of code?

I have a block of code that I don't want to type check, how do I surpress type warnings for it?

There's currently no way to disable type checking for just a single block of code in a module. You can disable all type-related checks for a module by adding a pyrightconfig.json file and specifying the entire module in the ignore section.
Can you explain why you don't want to type check a block of code?

@erictraut Thank you for your reply!
The reasone why I want to do this is because I'm viewing codes written by other people, and I often got dozens of ... is not a member of "None" warning in a file. I don't want these warnings to show up and don't want to add type narrowing code / assertions in those files manually. I want to just disable type checking for a large block of code in those files.

If you're viewing code projects written by others, you can disable type checking for the entire project by simply setting typeCheckingMode to "off" for that project. As I said, you can also specify which files within a project that you would like type checking diagnostics to be suppressed by using the "ignore" section of a pyrightconfig.json file.
We currently have no plans to add a way to disable type checking messages for blocks within a file.

Just wanted to add another comment on a desire for a similar feature. It would be great if you could put a #type:ignore at the start of a block, like a for block or while block, and have it ignore any code within that block. We deal with some custom python code / format, but only for certain parts of a file. Would love to ignore these warnings for only certain code blocks!

+1 on SuperMB. Would be super-useful for code such as nested dataclasses with __post_init__s:
@dataclass
class LocalConfig:
    input: InputConfig
    output: OutputConfig

    # type: ignore
    def __post_init__(self):
        self.input = InputConfig(**self.input)  # Argument expression after ** must be a mapping with a "str" key type
        self.output = OutputConfig(**self.output)  # Argument expression after ** must be a mapping with a "str" key type

Is there any update for this?
class ABCConfig(BaseModel, extra="forbid"):
    numberKeys : Optional[Dict[Literal[VALID_VALUES['numberKeys']], NumericKeyConfig]] = None

# NOTE The VSCode Linter (PyLance) shows following bug for the above, but this runs perfectly in code , this is a known dynamic linting issue.
# Type arguments for "Literal" must be None, a literal value (int, bool, str, or bytes), or an enum value

Hey guys here is another use case with sqlalchemy ORM objects
I have a mapper object that maps let's say ProductORM to Product domain model.
I get pylint errors because ProductORM.name is of type Column[str] while Product.name is str. Now sqlalchemy ORM implicitly knows how to return the correct value in str, but I get pylance errors for this. No I don't want to # type: ignore all those lines and no I dont want to do type casting (str(orm.name)) for something that just works implicitly, and works fine for that matter.

Hey guys here is another use case with sqlalchemy ORM objects
I have a mapper object that maps let's say ProductORM to Product domain model.
I get pylint errors because ProductORM.name is of type Column[str] while Product.name is str. Now sqlalchemy ORM implicitly knows how to return the correct value in str, but I get pylance errors for this. No I don't want to # type: ignore all those lines and no I dont want to do type casting (str(orm.name)) for something that just works implicitly, and works fine for that matter.

While this is possibly (also) a parsing error, you can't ignore this as shown without bringing the entire d.baked_time = ... statement onto a single line:
    # Cannot assign member "baked_time" for type "Donut"
    # "datetime" is incompatible with "time | Combinable | None"
    d.baked_time = datetime.datetime(
        year=2007, month=4, day=20, hour=16, minute=19, second=59)   # type: ignore

Ironically, the #type: ignore is ignored.  A block ignore would cure the symptom.

+1 on this.
@erictraut asked at https://github.com/microsoft/pylance-release/issues/2512#issuecomment-1079934867

Can you explain why you don't want to type check a block of code?

A valid answer would be that "Pylance/Pyright is wrong". Consider this:
class Constants(Enum):
    USE_SRID:int = 3857 # https://epsg.io/3857
    MAX_PEER_DISTANCE_SRID_UNITS:float = 100 * 1000 # 100 km, EPSG:3857 is in meters
    MAX_PEER_COUNT:int = 100
    LIMIT_TO_COUNTRY:Optional[str] = None
    ZOOM_OUT_RESOLUTION:int = 8
    TARGET_PEERING_H3_RESOLUTION:int = 6
    TIMESTAMP_ID:str = str(dt.datetime.now().timestamp()).replace(".", "")
    H3_MAX_RESOLUTION:int = 15
    H3_MIN_RESOLUTION:int = 0

Every single line is squiggled, with a variant of Expression of type "Literal[6]" cannot be assigned to declared type "Literal[Constants.TARGET_PEERING_H3_RESOLUTION]" (in this particular case, it usually correctly goes away when the file is clean, but usually surfaces again as soon as the file is dirty). It's actively unhelpful to have that keep flashing up as bad.

@tigerhawkvok, it sounds like you're hitting a bug. Please consider filing a bug report with repro steps.

If you're viewing code projects written by others, you can disable type checking for the entire project by simply setting typeCheckingMode to "off" for that project. As I said, you can also specify which files within a project that you would like type checking diagnostics to be suppressed by using the "ignore" section of a pyrightconfig.json file.
We currently have no plans to add a way to disable type checking messages for blocks within a file.

We use the enaml python language extension (https://github.com/nucleic/enaml) and it's useful to associate .enaml files with python for syntax highlighting and code completion. However pylance warning makes it horrific to watch the sections of a file that contain enamdefs. Surely this is a legitimate case for disabling warnings for a block of code?


Skip  tags when counting number of AO parameters

The parameter counter doesn't handle markup like this very well:
https://github.com/tc39/proposal-temporal/pull/2245/files#diff-cd62efd2602bdd5c2e435179e40c5d2daa5db198c9ac6324a6f8cf1c41a89873R73-R82
It thinks the AO should be called with 4 or 5 parameters, whereas it should be 3 or 4. One of the parameters is inside a  tag, hence the discrepancy.

(A likely-looking workaround is _excludedItems__excludedKeys_: a List of property keys,, or _excludedItemsKeys_: ..., but neither of those are accepted by the structured header parser.)

Fixed in 15.0.1.


Can not save the option for Authorize for use in all pipelines

I can not save the option for Authorize for use in all pipelines. It's grey all the time.

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

ID: 140dcb9a-2ed0-11d5-064b-068f863ed97f
Version Independent ID: 672d2aa3-cf0d-9207-c97c-e2eba14506b7
Content: Secure files for Azure Pipelines and TFS - Azure Pipelines
Content Source: docs/pipelines/library/secure-files.md
Product: devops
Technology: devops-cicd
GitHub Login: @vijayma
Microsoft Alias: vijayma

@baoliangwan -- Thanks for your feedback; we appreciate it. To make sure we have all the information needed to triage your issue, please provide more context around the general task.
Meanwhile, here are a couple of options where you might consider asking your question:

Azure DevOps on Stack Overflow
Azure DevOps Support Bot


No longer runs automatically at startup

Microsoft PowerToys version
v0.80.1
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
General
Steps to reproduce
Even after setting the app under "General" to "Run at startup", PowerToys suddenly no longer opens at startup. Tried running both standard and as Administrator, same problem.
PowerToysReport_2024-05-02-18-16-46.zip
✔ Expected Behavior
PowerToys to open on Startup automatically
❌ Actual Behavior
Doesn't run automatically, must be run manually
Other Software
No response

Updated to v0.80.0 will see if that fixes.

Updated to v0.80.1, same problem.

PowerToysReport_2024-05-02-18-26-42.zip

Hey @loudersoft can you confirm what you have this setting set to?

I had the similar issue, and seems to be resolved at v0.82.0

will close as resolved for now


Document

Proposed changes
windows加速构建Kylin源码 安装本地nexus。
在构建Kylin源码过程中,会出现下载jar缓慢,或者是找不到jar等问题。
通过安装本地nexus来解决以上问题。
Windows Accelerated Build Kylin source install local Nexus Windows accelerated Build Kylin source install local Nexus.
When building Kylin's source code, there are problems such as slow jar downloads or jar discovery.
Fix this by installing a local Nexus.
Github Branch
document
Types of changes
What types of changes does your code introduce to Kylin?
No change, add a new document  kylin_build_src_setup_local_nexus.cn.md
windows加速构建Kylin源码 安装本地nexus。
在构建Kylin源码过程中,会出现下载jar缓慢,或者是找不到jar等问题。
通过安装本地nexus来解决以上问题。
Windows Accelerated Build Kylin source install local Nexus Windows accelerated Build Kylin source install local Nexus.
When building Kylin's source code, there are problems such as slow jar downloads or jar discovery.
Fix this by installing a local Nexus.
Put an x in the boxes that apply

[ ] Bugfix (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 not work as expected)
[ ] Documentation Update (if none of the other choices apply)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[ ] I have create an issue on Kylin's jira, and have described the bug/feature there in detail
[ ] Commit messages in my PR start with the related jira ID, like "KYLIN-0000 Make Kylin project open-source"
[ ] Compiling and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[x] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged

Further comments

Dear @monster0007 , you do in wrong way, please raise a new PR from your repo's document(NOT your main branch) branch to apache/kylin's document branch.

Dear Xiaoxiang Yu
   l am sorry about that. I will change the pull request and create a new PR about this document.
                                                          Best wish for you
                                                          monster0007(yushi)
------------------ 原始邮件 ------------------
发件人: "Xiaoxiang @.>;
发送时间: 2021年9月13日(星期一) 上午10:41
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [apache/kylin] Document (#1746)
Dear @monster0007 , you do in wrong way, please raise a new PR from your repo's document(NOT your main branch) branch to apache/kylin's document branch.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

i do in wrong way


Replace "About Us" images in html

Help wanted in replacing the existing 2 images in https://techpro.club/company
Anybody willing to take up the task is most welcome
You will download 2 free images from Unsplash.com and replace the images. Here are the links to images

https://unsplash.com/photos/kY2H30v6Bs4
https://unsplash.com/photos/Zyx1bK9mqmA

assign me please.

Sure. I have assigned

sorry, its my first time it will take time, i know how to fix it.

No problem. Please take your time.

@chilarai can I work on this

Hi @yuvi2565, the issue has been already assigned. But you may look into other issues if you want.
Also adding up more issues

Closed with PR #116


Boost OAP index file writer via zero copy

Currently, OAP index writer would finally copy index data from temporary file to final index file via stream copy. It's possible to boost this procedure using zero copy technique, And I've conducted some experiments comparing performance between stream copy and zero copy, seeing the attachment.
zerocp-vs-streamcp.pdf

@LuciferYang

Can you give a patch and do some benchmark use spark Benchmark framework to compare this scene？

Sure, I'd like make time to do a benchmark


Cannot logout most likely due to redis

Panel 0.7.0
Ubuntu 16.04

Details:
So, I ran the "php artisan p:environment:setup" command in the upgrading process and as redis is the new recommended driver for everything, I switched to it. However, after finishing the upgrade to 0.7.0 and doing some stuff in the panel, I tried to log out and just got a "Whoops, looks like something went wrong." error.
After that I ran the "php artisan pterodactyl:env" command. I switched the session driver and the queue driver back to databse and everything worked fine again.
So I think it's a bug. (Hopefully not my fault.)
Log:
https://hastebin.com/anuwawowuy.tex

duplicate of #950


Trying to downcast Bool <- Int32

Crystal: Crystal 0.23.1 [e2a1389] (2017-07-13) LLVM 3.8.1
OS: Ubuntu 14.04 on VirtualBox (Windows 10 host)
Code to reproduce
struct Test
  def initialize(**args, @w = false)
  end

  def self.test(**args)
    self.new(**args, false)
  end
end

Test.test(s: 2)

Fixed a few days ago. Will be available in the next release :-)
Well, "fixed". Arguments after a double splat will not be allowed (they are accidentally allowed, that's the bug).
Duplicate of #4965

@asterite do you know why the current error message is Trying to downcast Bool <- Int32 ? What is happening for this to happen? (just curious)

No idea :-D


Errors not going away

If I make a syntax error, Prettier shows me the error bar at the top that says "Unexpected error, expected ,", or something along those lines.
That's fine, but I find it a bit frustrating that these errors don't go away after a set time period, or if when I then save again and fix my error, the message doesn't go away. In addition, any new messages seem to stack, whereas potentially it would be better to simply have the newest message replace any others. I'm proposing some changes such that:

Only one error message ever shown at once
The error messages time out after X seconds (could be turned on/off in config)
On a successful format, any Prettier errors are removed.

I am happy to take a stab at a PR if you think anything along these lines would be useful :) Thanks for all your hard work with the extension 🎉

We are not doing a good job with errors ( #55 )
You can press ESC key to remove those errors currently.
I would love

On a successful format, any Prettier errors are removed.

with a little change:
On a successful format, any prettier errors for the formatted files goes away.
We are able to format multiple files and thus having errors for all of those.
Scenario: formatOnSave, saveAll, multiple errors.

For some reason the ESC key doesn't clear them for me - I suspect this is because I have VSCode-Vim which is overriding the ESC key. I'm not sure of a good way to get round that.
Other than that I agree with your plan that it sounds good. I'd also like an option to silence all errors (usually ESLint picks them up and underlines them in my editor so I don't need Prettier to tell me about them).

I think it's not prettier's role to point those mistakes but any linter.
I see an alternative to that. Having every errors in an outputChanel (see #55). If parsing errors can be clickable this would be great.
Do you want to PR this?

I think an option to disable Prettier giving error messages that's false by default would be reasonable - but happy to  be disagreed with! :)
I don't really understand what the outputChannel is - what would that look like in the editor? (I'm still new to VSCode!)

I'd like to avoid options :-)
The outputChanel is a write only panel at the bottom of  VSCode.

Ah understood - I would agree that would be the best place to have the output. If you have them there would you then get rid of the error at the top of the page?

Yes, it was instead of except for some errors we want to be sure to notify the user

@CiGit I was the maintainer of https://github.com/RobinMalfait/prettier-eslint-code and deprecated it in favour of this package. In that package we had a statusbar message indicating problems or not using a check mark or a cross.
When clicking on it, we showed the actual error using an outputChannel.
Would you like a PR where I implement it for this package and also add an option to hide/show that statusbar message?
I think that the error handling right now is annoying due to the popups.

@RobinMalfait Yes for a PR!

I don't get the point of the option. Isn't it something minimal?
Is it possible to have clickable links in the output for errors which have a file:loc info?

It annoys myself 😕

@CiGit I opened a PR, and the statusbar item is indeed minimal, but I had people request options to hide it. Feel free to have a chat on the PR #152

Changed in 0.21.0 and certainly fixed :-)


Method extractPeriodShooting in Floquet.jl is not defined

I was trying to compute a branch of periodic orbits of a forced nonlinear oscillator with shooting when I came across this issue. It happens when the continuation method is used with AbstractShootingProblem and detectBifurcation > 0. The method extractPeriodShooting is called by MonodromyQaD in Floquet.jl, giving the error. Bellow is a code sample that reproduces the error.
using Revise, Parameters, Setfield, Plots, LinearAlgebra
using DifferentialEquations
using BifurcationKit
const BK = BifurcationKit

# define the sup norm
norminf(x) = norm(x, Inf)

# function to record information from a solution
recordFromSolution(x, p) = (u1 = x[1], u2 = x[2])

####################################################################################################

function F!(f, x, p, t=0)
	@unpack a, b1, b2, d, λ, ω = p
	f[1] = x[2]
	f[2] = - d * x[2] - a * x[1] - b1 * (x[1]^2) - b2 * (x[1]^3) + λ * sin(ω * t)
    return f
end
F(x,p,t) = F!(similar(x),x,p,t)

# Defining the Jacobian
function dF(x,p,t = 0)
	@unpack a, b1, b2, d, λ, ω = p
    M = zeros(2,2)
    M[1,1] = 0
    M[1,2] = 1
    M[2,1] = -a -b1*2*x[1] -b2*3*(x[1]^2)
    M[2,2] = -d
    return M
 end

# parameters of the model
P = @with_kw (a=-1., b1=1., b2=0., d=0.1, λ=0.06, ω=0.81)
par_Helm = P(-1.0, 1.0, 0.0, 0.1, 0.06, 0.81)
par_Duff = P()
par0 = (@set par_Helm.a = -1.15)

# initial condition guess
z0 = [1.; 0.001]
vf = ODEFunction(F; jac = dF)       #ODEfunction with the Jacobian
prob = ODEProblem(vf, z0, (0.0, 1000*2*π/par0.ω), par0)   #ODEProblem encoding
sol = solve(prob, Tsit5())
plot(sol)

z0 = sol.u[end]
prob = ODEProblem(vf, z0, (0.0, 2*π/par0.ω), par0)   #ODEProblem encoding
sol = solve(prob, Tsit5())
plot(sol)

# this encodes the functional for the Shooting problem
probSh = ShootingProblem(
	# we pass the ODEProblem encoding the flow and the time stepper
	prob, Tsit5(),
	# this is for the phase condition, you can pass your own section as well
	[vec(sol[end])],
	# enable threading
	parallel = true,
	# these are options passed to the ODE time stepper
	atol = 1e-10, rtol = 1e-8)

# Newton interation for low energy level
zp0 = vcat(vec(sol[end]),2*π/par_Helm.ω)

ls = GMRESIterativeSolvers(reltol = 1e-7, N = length(zp0), maxiter = 100)
newtonOpt = NewtonPar(verbose = true, tol = 1e-8, maxIter = 25, linsolver = ls)

norminf(x) = norm(x, Inf)

# continuation options
opts_cont = ContinuationPar(dsmin = 0.001, dsmax = 1.0, ds= 0.01, pMin = 0.02, pMax = 0.1,
	maxSteps = 50, newtonOptions = newtonOpt, nev = 2,
	# options to detect bifurcations
	detectBifurcation = 3, detectFold = true, nInversion = 8, maxBisectionSteps = 25,
	precisionStability = 1e-8, saveSolEveryStep = 1)

br, = continuation(
    probSh,
    zp0,
    par0,
    (@lens _.λ),
    opts_cont,
    linearAlgo = MatrixFreeBLS(@set ls.N = ls.N + 1);
    verbosity = 3,
    plot = true,
    recordFromSolution = recordFromSolution,
	normC = norminf
)

Sorry, this should be posted in another repository.


Documentation templates

This PR adds templates for pull requests and a ReadMe.
I added links to each member's GH, the project spec, badges, and left half of the original repo author's info at the bottom. We can discuss what to do with that. I also added the setup notes discussed on the SetUp Reflection
The templates can be modified in their respective files: pull-request-template.md & README.md
The PR template will go into effect on the next PR.
Close #8

Now that the ReadMe is rendering on GH, I see some broken links, notably in the badges up top. Will redo after group has reviewed.

looks good to me!

One suggested change: just link to the OG Repo and have our README focus on our track of improving UX and Community


Implement float range generators

The implementation is more complex than a naive random * scale + low to correctly (I hope) support various combinations of inclusive/exclusive bounds of the range and also ranges that overflow maximum value of the float type. I added comments which hopefully explain everything in a reasonable detail.
This PR includes changes from #1 and so it should not be merged before it. After the first PR is merged, I will make sure this one will only contain float range related code.

I merged #1, can you rebase on top of that?

Done. Should I now fix the CI in a separate PR before you review this?

Done. Should I now fix the CI in a separate PR before you review this?

I'd rather it be in a separate PR, to keep things atomic.


Error: Evaluation failed: TestingLibraryElementError: Unable to find an accessible element with the role "button"

Hi,
I'am trying to reuse the storybook in my project but when i push the code on codemagic with the following command:
npx chromatic --project-token=1a5d[...] --build-script-name=build:storybook --allow-console-errors
An error appears:
Chromatic CLI v6.14.0
https://www.chromatic.com/docs/cli

  ✔ Authenticated with Chromatic
    → Using project token '********5491'
  ✔ Retrieved git information
    → Commit 'bec27bf' on branch 'main'; found 1 parent build
  ✔ Collected Storybook metadata
    → ; no supported addons found
  ✔ Initialized build
    → Build 6 initialized
  ✔ Storybook built in 4 minutes 31 seconds
    → View build log at /root/scaleway-ui/build-storybook.log
  ✔ Publish complete in 45 seconds
    → View your Storybook at https://63bebe8ce693f446618df4b5-zhrkhnbyvw.chromatic.com
  ✔ Started build 6
    → Continue setup at https://www.chromatic.com/setup?appId=63bebe8ce693f446618df4b5
  ✔ Build 6 failed after 37 seconds
    → Tested 413 stories across 82 components; captured 413 snapshots and found 1 component error

This is the content of the error:
Error: Evaluation failed: TestingLibraryElementError: Unable to find an accessible element with the role "button"

Here are the accessible roles:

  combobox:

  Name "Select...":
  <input
    aria-autocomplete="list"
    aria-expanded="false"
    aria-haspopup="true"
    autocapitalize="none"
    autocomplete="off"
    autocorrect="off"
    class=""
    id=":r0:"
    role="combobox"
    spellcheck="false"
    style="color: inherit; background: 0px center; opacity: 1; width: 100%; grid-area: 1 / 2 / auto / auto; font: inherit; min-width: 2px; border: 0px; margin: 0px; outline: 0px; padding: 0px;"
    tabindex="0"
    type="text"
    value=""
  />

  --------------------------------------------------

Ignored nodes: comments, script, style

              Name

              Description

              Default

              Control

              propertyName

              *

                This is a short description

                  summary

                defaultValue

            <button>
              Set string
            </button>

              propertyName

              *

                This is a short description

                  summary

                defaultValue

            <button>
              Set string
            </button>

              propertyName

              *

                This is a short description

                  summary

                defaultValue

            <button>
              Set string
            </button>

        No Preview

        Sorry, but you either have no stories or none are selected somehow.

          Please check the Storybook config.

          Try reloading the page.

        If the problem persists, check the browser console, or the terminal you've run Storybook from.

                Select...

                Option A

                <input
                  aria-autocomplete="list"
                  aria-expanded="false"
                  aria-haspopup="true"
                  autocapitalize="none"
                  autocomplete="off"
                  autocorrect="off"
                  class=""
                  id=":r0:"
                  role="combobox"
                  spellcheck="false"
                  style="color: inherit; background: 0px center; opacity: 1; width: 100%; grid-area: 1 / 2 / auto / auto; font: inherit; min-width: 2px; border: 0px; margin: 0px; outline: 0px; padding: 0px;"
                  tabindex="0"
                  type="text"
                  value=""
                />

                  <svg
                    class="css-klb7kl etwatq50"
                    viewBox="0 0 16 16"
                  >
                    <path
                      d="M8 11c-.28 0-.55-.11-.74-.3L3.3 6.77a1.04 1.04 0 0 1 0-1.47 1.06 1.06 0 0 1 1.49 0L8 8.48l3.2-3.17a1.06 1.06 0 0 1 1.72.33 1.04 1.04 0 0 1-.23 1.14L8.74 10.7c-.2.2-.46.31-.74.31"
                    />
                  </svg>

          <input
            name="basic"
            type="hidden"
            value="a"
          />

    at Object.getElementError (https://63bebe8ce693f446618df4b5-zhrkhnbyvw.capture.chromatic.com/75330.834ff524.iframe.bundle.js:2:1916496)
    at https://63bebe8ce693f446618df4b5-zhrkhnbyvw.capture.chromatic.com/75330.834ff524.iframe.bundle.js:2:1935143
    at https://63bebe8ce693f446618df4b5-zhrkhnbyvw.capture.chromatic.com/75330.834ff524.iframe.bundle.js:2:1934342
    at https://63bebe8ce693f446618df4b5-zhrkhnbyvw.capture.chromatic.com/75330.834ff524.iframe.bundle.js:2:1935683
    at Playground.play (https://63bebe8ce693f446618df4b5-zhrkhnbyvw.capture.chromatic.com/main.7e9be0db.iframe.bundle.js:1:660171)
    at _callee7$ (https://63bebe8ce693f446618df4b5-zhrkhnbyvw.capture.chromatic.com/75330.834ff524.iframe.bundle.js:2:1373312)
    at tryCatch (https://63bebe8ce693f446618df4b5-zhrkhnbyvw.capture.chromatic.com/75330.834ff524.iframe.bundle.js:2:4694795)
    at Generator.invoke (https://63bebe8ce693f446618df4b5-zhrkhnbyvw.capture.chromatic.com/75330.834ff524.iframe.bundle.js:2:4697342)
    at Generator.next (https://63bebe8ce693f446618df4b5-zhrkhnbyvw.capture.chromatic.com/75330.834ff524.iframe.bundle.js:2:4695570)
    at StoryRender_asyncGeneratorStep (https://63bebe8ce693f446618df4b5-zhrkhnbyvw.capture.chromatic.com/75330.834ff524.iframe.bundle.js:2:1365728)
    at ExecutionContext._evaluateInternal (/var/task/capture-v4/build/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:218:19)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async ExecutionContext.evaluate (/var/task/capture-v4/build/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:107:16)
    at async /var/task/capture-v4/build/bundle.js:703215:7
    at async NavigatorWatcher2.waitForIdle (/var/task/capture-v4/build/bundle.js:673194:9)
    at async PuppeteerRenderer.renderSpec (/var/task/capture-v4/build/bundle.js:703162:25)
    at async PuppeteerRenderer.renderSnapshot (/var/task/capture-v4/build/bundle.js:703054:21)
    at async PuppeteerRenderer.captureSpecs (/var/task/capture-v4/build/bundle.js:703003:18)
    at async PuppeteerRenderer.executeWithCallback (/var/task/capture-v4/build/bundle.js:703269:14)

A screen of element in error:

Hello @benjamin-carriou,
It seems like chromatic is testing accessibility on our components and one is not passing the test (RichSelect) however the storybook is still built and available. The library is still unstable and some component are not perfect yet, explaining why the test is failing.
I don't really understand why this is blocking for your usage, could you give me more context?
In the meaning time I will check if I can fix this issue, and keep you in touch 🙏

Hi @matthprost  and thx for the quick response :)
I had desactivate chromatic testing and I can host your storybook on now
In fact, I want to use your storybook in Figma with Locofy to drag and drop components on to accelerate our designs conceptions.
It is explain here but we can't import them in Figma because 1 composant "crash".
Thx for your help :)

Hi again @benjamin-carriou,
I found out the issue on our side, a selector was wrong in storybook play which was leading to this error.
We will merge and deploy very soon this fix, thank you for reporting it 🤝


fix: VariableJSONSchema optional input types

This PR fixes the following issues:

In GraphQL, optional input variables and types are also nullable.
in the JSON Schema, enum should not be combined with type (removed)
custom scalars should only accept basic primitives (i.e. no objects, arrays, etc)

awesome work! can you add a changeset and another test case for the null case that isn't covered? the coverage info you can see on the files tab

@bboure why don't you go ahead and add the custom mappings in this PR then, I agree it makes sense.
Others have expressed this need, and even introspecting the scalar info doesn't give us a deterministic solution. perhaps we can even provide a default mapping that can be overridden by users? Or perhaps we should provide none to avoid confusion.
Bonus if you can add the new scalar mapping to monaco-graphql as well, but if not I can. The main thing to remember is that the inter process boundary between main and worker process means the mapping will need to be json serializeable, though you don't need to perform the serialization.
it just means we will need a flat object mapping rather than a callback function or some such
Also, be sure to update the changelog and readme to reflect the changed behaviors with scalars

by flat mapping, it could look like this:
{
  DateTime: { type: "string", format: "datetime" }
}

come to think of it, i made a mapping just like this for a proprietary project where we decoratively generated openapi3 specs from graphql schema, I'm embarassed I didn't provide it sooner!

@acao  ok, I'll give it a shot.
I'll give a shot at adding it to monaco-graphql since this is something that I'll need, but I might need some guidance.
I was thinking in that direction too.
I think one good option would be to add an option somewhere in DiagnosticSettings. We'll probably need a config per model uri.
Something like this
monacoGraphQLAPI.setDiagnosticSettings({
  validateVariablesJSON: {...},
  customScalarSchemaMappings: {
    [Uri.file('operation.graphql').toString()]: {
      DateTime: { type: "string", format: "date-time" },
      // maybe a short-hand for type could be useful but not strictly necessary as it might bring confusion too.
      MyCustomScarlar: 'string',
    }
  }
});

@bboure awesome!  I think this could work fine, but I wonder if configuring it per schema makes even more sense?
initializeMode({
  schemas: [
    {
      uri: 'https://my-schema.com',
      fileMatch: ['**/*.graphql'],
      // note: not sure if ^ works if the graphql model is using urls for uris?
      customScalarMappings: {
          DateTime: { type: "string", format: "date-time" },
          // maybe a short-hand for type could be useful but not strictly necessary as it might bring confusion too.
          MyCustomScarlar: 'string',
      }
    },
  ],
});

also, in case you're wondering why this lives on graphql-language-service, I have plans to use this logic for variables validation/completion in the vscode extension as well :)

@acao I added custom scalar schemas support and monaco-graphql config as suggested.
I also took the opportunity to improve the schema descriptions a bit.
Descriptions will now look as follow:
[field description] (for object types and if field description is present)
(two new lines)
Type (scalar or custom)
[type description] (If present, except for default scalars)

Note about type descriptions: I kept backward compatibility and do not render the description of default scalars (String, Int, etc). (They were probably removed for a reason, probably because they are obvious?)
For custom scalars, we use the description from the custom schema, if present.
Examples
The birth date of the user.

Date!
An ISO_8601 date

The name of the user

String!

lmk if you have comments

@bboure nice, and input objects retain their formatting as well?

the above applies to all types. Objects might look like this
A field description

MyObjectType!
My object description

hm,,. testing this out in vscode and monaco-graphql, it seems that something breaks and the hover no longer renders, I will need to see if something has regressed elsewhere

another issue with monaco is the schema url, the warning blocks validation messages
can you change the meta schema to draft 4? this is what package.json and many standards use, and is mostly all we need for the simple schemas we generate from variable definitions
'http://json-schema.org/draft-04/schema'

I have some other changes I was planning to add today, for example to add optional anchor links for the graphiql@4 release with monaco coming soon, but I will wait until this PR is complete

update: the issue is with regressions in the example projects from what I can tell

Where is the issue exactly?
did I break something?

I tried this in one of my projects. it seems to work fine

did I break something?

no, there is a regression in the demos, where someone changed the mode instantiation pattern, so when the schema is fetched, the validation doesn't happen automatically for queries and variables, so you have to modify the query first before variables are validated again

no, there is a regression in the demos, where someone changed the mode instantiation pattern, so when the schema is fetched, the validation doesn't happen automatically for queries and variables, so you have to modify the query first before variables are validated again

Ah! I noticed this too and drove me crazy. It was next on my list to have a look at and fix.
You'll probably know better than me how to fix, but if you point me in the right direction, I can also have a look

@bboure I have some more fixes on the way, as you can see in #3384

@acao  I can rebase as soon as you merge the other.

ok, in that case, I will just open my PR against this one tonight, because that PR will take a while to get reviews before we can merge

@bboure I think this is fine to merge now actually, it won't be released until we merge the Release Packages PR. Otherwise it would be hard for me to make a PR against this branch

@bboure ok! this looks good to merge, thanks for all of this!


docs(qwen2-moe-lora.yaml): add loraplus example

Description
I want to try lora+ while not example yaml config,
After read your implementation, maybe loraplus_lr_ratio is the solution.

Hey, could you edit this file instead https://github.com/OpenAccess-AI-Collective/axolotl/blob/main/docs/config.qmd with the info you added along with maybe a source to implementation link for any future reader's reference?

@NanoCode012  Done.

Thanks!


[Question]: How to Read and where to put Captcha.

Ask your question
Hello,
I hope that you will be able to help me. I'm using the ioBroker.eusec adapter for some time, but recently I had to change password for eufy account ... because of that the adapter first was asking me fore authentication code (this one I received from mail and put into configuration) but after that I'm getting request for providing captcha and here my problems come.

My understanding is that I need to update eusec.0.captcha with correct code
The code in theory should be available in Received captcha image HTML but here I see a long string starting from:

To be honest I have no idea which part of this generated code is the captcha :( When I put whole value from Received captcha image HTML it does not work.
Can you provide me with some guidance how to get the final code and where it should be put please ?
Thank you in advance for your help and support.
Zbigniew

I downloaded logs and found there the picture. Problem Solved. Thank you.


Add visualizer that includes async actions

Hey @indifferentghost I'm resurrecting this repo and making it more general (less about a specific school, more about things anyone can use). I'm going to close this PR as stale, but I'd love if you'd want to contribute in the future!


Spyder gives wrong information about PEP8 with annotations

Description of your problem
Spyder recommends no whitespace around kwargs when there are type annotations, but according to PEP 8 there should be:
When combining an argument annotation with a default value, use spaces around the = sign (but only for those arguments that have both an annotation and a default).
Yes:
def munge(sep: AnyStr = None): ...
def munge(input: AnyStr, sep: AnyStr = None, limit=1000): ...

No:
def munge(input: AnyStr=None): ...
def munge(input: AnyStr, limit = 1000): ...

What steps will reproduce the problem?
def func(arg, kwarg: str=None):  # Good according to spyder
    return "This is bad according to PEP 8"

def func(arg, kwarg: str = None):  # Shows an exclamation mark
    return "This is good according to PEP 8"

Versions and main components

Spyder Version: 3.1.3
Python Version: 3.6.0
Qt Version: Unknown
PyQt Version: 5.8.1
Operating system: Windows 10 Home build 14393.rs1_release_inmarket.170303-1614

This is not under Spyder control, i.e. Spyder only parses and reports warnings generated by the pep8, and once 3.2 is released, pycodestyle, packages.
So I think you should report this issue in the pycodestyle repository.

After checking the file with pycodestyle file.py, it seems nor pycodestyle, nor flake8 nor pylint cause that error in that file, despite that error still being there in Spyder.

If you put the mouse over the exclamation marker what is the message?
Maybe It was generated for pyflakes (the example that you mention will cause a warning for the redefiinition of func)

E251 Unexpected spaces around keyword / parameter equals

Just did a quick check, the error is thrown by the pep8 module. I'm assuming this issue is deprecated then and I'll just have to wait for pep8 to be replaced by pycodestyle as soon as possible.

Ohh I see, so this error is related to #3197, that have already been fixed, and will be part of Spyder 3.2

The 3.2 milestone was planned for the day after tomorrow? I somehow feel like they're not going to reach it ;) Until then I'll just ignore this error and use pycodestyle manually I guess


Initial sync getting stuck at orphaned block

Describe the bug
Node keeps trying the same range:
2020-11-22 08:33:20 [SYNC]             info: Fetching blocks for 606921...606984 slot range
2020-11-22 08:33:22 [SYNC]             info: Imported blocks for slots: 606921,606923,606924,606925,606926,606927,606928,606929,606931,606932,606933,606934,606936,606938,606939,606941,606942,606947,606949,606950,606951,606954,606956,606958,606959,606960,606962,606963,606964,606965,606972,606973,606977,606979,606980,606981,606982
2020-11-22 08:33:22 [SYNC]             warn: Received block parent root doesn't match our head head=0x1664a3191404d5c5aafd7f24c22a417bc0b8628d009bed48ae0c9847b0198980, headSlot=606920, blockParent=0x6313aacdc01f649c765918506d90e4a8551077175c2dc7124860e1c6bca13e21, blockSlot=606921
2020-11-22 08:33:22 [SYNC]             warn: Failed to process range, retrying, lastSlot=606920 range={"start":606921,"end":606984}
2020-11-22 08:33:22 [SYNC]             info: Fetching blocks for 606921...606984 slot range

Note that last slot is 606920 and it's an orphaned block.
Expected behavior
Chain should ignore orphaned block
Steps to Reproduce
Sync Medalla
Need to have the same check like in https://github.com/ChainSafe/lodestar/pull/1736

Blocked by #1736

on another thought, initial already check linear chain so we just need to ignore the last block to make sure not to import orphaned block

we still get timeout and it caused initial sync stall in my test. This is the last log I got
2020-11-22 20:52:27 [SYNC]             info: Fetching blocks for 583048...583111 slot range
2020-11-22 20:52:53 [SYNC]             info: Fetching blocks for 583109...583172 slot range

also we have to increase minPeers to get correct common finalized epoch to determine if we bypass Initial Sync or not, currently I got to Regular Sync directly although I started from finalzied epoch 15614

an orphaned block may be in the middle too, I'll need to address it
 2020-11-24 04:48:36 [SYNC]             ^[[32minfo^[[39m: Imported blocks for slots: 740802,740805,740816,740818,740820,740821,740822,740824,740826,740827,740828,740829,740830,740831,740834,740835,740836,740840,740842,740843,740844      ,740845,740846,740847,740849,740850,740851,740852,740853,740855,740857,740858,740859,740860,740861,740862
65322 2020-11-24 04:48:37 [SYNC]             ^[[33mwarn^[[39m: Received block parent root doesn't match our head head=0x92470ebf03dc118fb2962b42aec8fcd6354dc753637b333ad8155d3c7446c9a2, headSlot=740805, blockParent=0xde5349ef19d97b4f0ad      c7e95356e9e830f3353e18eff8509e8617925cef4b692, blockSlot=740816

in this case 740805 is an orphaned block, we should not import it


Add new insert and remove subcommand

In response to Nageswara's recommendation, this pull request adds a new secvarctl subcommand: insert. secvarctl insert allows for a new secvar update to be submitted without the old one being replaced. The use case is if the user would like to add an ESL without overwriting the previous secvar ESLs.
This PR comes complete with implementations, tests and documentation for the new secvarctl insert command.
Okay, so I sorta-kinda lied when I said "secvarctl insert allows for a new secvar update to be submitted without the old one being replaced" . In reality, the function gets the current ESLs and appends the new ESL to it. With the combined ESL, it is sent to be put into an auth file. With the auth file, secvarctl insert allows the user to use the -w flag to submit the update to secvar sysfs or to a file with -o <outFile>. So, to simplify, the function really takes in two ESL's-> appends them -> generate auth -> ouptut . Various flags were added for different use cases. For example, by default the current ESL is taken from secvar sysfs /sys/firmware/secvar/vars/<varName>/data but the user can use -e <eslFile> to specify the current ESL. Additionally, the -p PATH flag can be used to specify the sysfs where it writes (to PATH/<varName>/update) and reads (to PATH/<varName>/data
Special thanks to @nasastry for a great feature request! I promise secvarctl remove is coming soon...

secvarctl insert implemented and has  test suite. secvarctl remove implemented but holding off on writing tests until I get the go ahead on general approach and arrguments (using X509 serial number as ESL identifier). Also still have to implement insert and remove for dbx updates.

Okay, I have finally got back to this. Thanks for all your patience. Updates are as follows:

rebased on main and fix conflicts
added test cases for secvarctl remove
implemented insert/remove for the dbx (insert works the same as the other variables, remove not so much)
add test cases for secvarctl insert/remove when working with dbx
update documentation

The way remove is currently working is to use the -x <serial_number> flag to identify an ESL that is to be removed from a chain of ESL's. The <serial_number> must be in the format  XX:XX:XX...:X with 20 bytes of hex data and be contained in the X509 of an ESL. This value can be taken from reading and ESL with  secarctl read or secvarctl -v -e <esl_file>. I could not think of an easier way to identify the ESL to remove from the chain, besides indexing them but that feels like a recipe for index-at-0 vs index-at-1 user issues. Anways, I had figured the serial number would be sufficient BUT the RFC says that it technically does not need to be 20 bytes (it just has to have a max of 20 bytes) AND it is only a unique value between it and it's CA's. But who is really going to generate there own X509's (openssl generates with 20 bytes and does not allow for custom values) ? right? right? Looking for more thoughts on this. Also, since the dbx does not contain x509's, the -x <serial_number> is interpreted as -x <hash_value> and uses the same XX:XX...X format to identify a hash contained in an ESL of the dbx's ESL chain.
Looking forward to more feedback!
Thanks!
Nick

Stale, and no longer a focus target. Closing PR.


DHT.get() - number of nodes that returned an item

To keep things alive in the DHT store (get/put), it's suggested an algorithm such as (http://libtorrent.org/dht_rss.html#re-announcing) to avoid overload of the network:

pick one random item (i) from the local repository (except
items already announced this round)
If all items in the local repository have been announced
2.1 terminate
look up item i in the DHT
If fewer than 8 nodes returned the item
4.1 announce i to the DHT
4.2 goto 1

However, I can't seem to find a way to see how many nodes returned the item after a get request. Is such functionality exposed?

Actually, this might be implemented as a dht.keepAlive(opts) method. From BEP44 (quite recent addition): https://github.com/bittorrent/bittorrent.org/blob/master/beps/bep_0044.rst#expiration
I'm willing to implement such functionality however I'm unsure how such polling functionality would look like as an API. Some ideas:
dht.keepAlive(opts, (err, res) => console.log(err, res)) // every 2 hours runs .put() based on above algorithm and executes callback?

@substack @mafintosh @feross suggestions?
Also please let me know what you think of my recent BEP suggestion for updating torrents based on DHT mutable items: https://github.com/bittorrent/bittorrent.org/pull/35

http://libtorrent.org/dht_rss.html#re-announcing is obsolete and should be ignored.
You can find the current algorithm at https://github.com/bittorrent/bittorrent.org/blob/master/beps/bep_0044.rst#expiration

The third option seems the most usable to me, and it doesn't require new APIs to be added, or additional state to be tracked inside the DHT client. I like that it does the right thing by default.
We can add a { force: true } option to force a put to happen even when the backoff algorithm doesn't allow it.

@feross what about an opposite { backoff: true } so we don't break existing tests and use cases where users don't need multiple roundtrips?

@lmatteis I still slightly prefer { force: true } since that way we do the right thing by default. We can bump the major version. But, I'm fine with { backoff: true } as well. @mafintosh - do you have thoughts?

I started implementing this here: https://github.com/lmatteis/bittorrent-dht/tree/backoff-algorithm
I'm a really bad coder 😄  so I'd appreciate feedback. Specifically, I decided to only alter _preput() and put the backoff logic in there. It seems to run a get based on the target to populate the local routing table. So I'm taking advantage of those round trips to also store the values: https://github.com/lmatteis/bittorrent-dht/blob/backoff-algorithm/client.js#L209

Cool -- thanks for giving it a shot. I'm probably not the best person to review this, tbh as I didn't write this part of the codebase. I think @mafintosh or @substack ought to take a look before we merge this.
Few things I noticed in your work so far:

I don't think the test you wrote is actually testing that the backoff is working correctly. I think you need to verify that no put actually happened.

MAX_COPIES should not be changed to 0.

@feross yeah it's actually quite hard to test this behavior. I'd have to instantiate N nodes and find a way that I can control how many copies are being stored, in order to test for < 8 and > 8 copies.
And yeah MAX_COPIES is a typo should be 8.

Does this mean that .put will re-announce in the background? Neither .announce/.lookup does this now so I'm unsure if that would be confusing. The feature seems useful though!

@mafintosh if we just alter .put (option 3), the re-announce happens at the app level (not inside the module). So we opted to go with option 3 by either doing force : true or backoff: true.
This is the actual algorithm: https://github.com/bittorrent/bittorrent.org/pull/38/files
I'm simply taking advantage of the _preput() to implement this.

From skimming this implementation it looks like put and get are totally separate lookups.
In my own implementation a put is a non-lookup action that takes a finished get as an argument, that way the responses of the get can be reused.

@lmatteis Re-announce should happen at the app level (option 3) to remain consistent with .announce/.lookup.

@substack any ideas how we can add tests for this?

@lmatteis Can't you just create 8 + 1 clients, then have one of them do two put() calls in a row? Only the first put() call should actually be sent to the clients.
To make this easier to test, you could make the constant 8 configurable, so you can set it to something smaller, like 2, for the tests.

@feross right but how do I test whether that second put() isn't sent to the clients?

@lmatteis You can spy on calls to the dht._onput() function. Not super elegant, but we don't have an event for when a put happens. So this works:
var onput = dht._onput // save the onput function
dht._onput = function () {
  t.pass('got `put` from remote peer')
  onput.apply(dht, arguments) // call the original onput function
}

Ok makes sense. I just didn't want to screw things up since I didn't see tests for private methods in the other tests.

Ok tests seem to pass. I'm just a little weary about this big change: https://github.com/feross/bittorrent-dht/compare/master...lmatteis:backoff-algorithm#diff-215b25d5bf5c0b4623ad1a2b62456f60L544
I'm essentially saving the value v and seq as well in the table for a target, since I need them to see whether we got multiple copies.

@lmatteis Can you send a PR?
@mafintosh I'm gonna need your help to review this one 👍 I really haven't dug into the BEP44 stuff very deeply.

@feross ok, i also just added the second point of the algorithm. Test still pass but we need more for the backoff. For instance, I'm not storing the key/signature in the table for a key, hence can't check whether a copy is valid or not. I'll send a PR so we can better review where to store this stuff , as it could increase memory footprint.


Improving test tools and strategies for multi-threading

The suggested plan of attack and documented test strategies on https://py-free-threading.github.io are up-to-date given what we know and the tools we have available. However, the testing strategies for uncovering thread-safety issues are falling short of what we need. Improving this should be a priority.
Ideas that need implementing or protyping:

[ ] create a decorator to easily run a pytest test case in parallel (can be based on the test patterns for threading and concurrent.futures in this doc section, and look something like the run_in_parallel from scikit-image)
[ ] a pytest plugin to all tests in a full test suite in parallel (e.g. using the decorator from the task above)
[ ] use ThreadSanitizer on a Python package (it has proven useful for CPython)

[ ] set up for NumPy and figure out how useful it is (what does it catch, what's the false positive rate)
[ ] document how to do this with Meson and CMake

For TSAN, I found some meson configuration in the QEMU repo that might be something to start with. It looks like all that's needed is making sure -fsanitize=thread gets into CFLAGS and LDFLAGS.

Oh never mind, meson has built-in support for it via b_sanitize. For some reason I thought there wasn't support.

https://py-free-threading.github.io looks like a cool resource! Are you planning to announce it at some point?

We did, via a blog post. Is there a spot you would have more easily heard the announcement?

I spent a little time looking at setting up TSAN for NumPy. Unfortunately it's not quite as easy to get working as ASAN. I got it working on my Mac, but because you need to set DYLD_INSERT_LIBRARIES and system integrity protection means that subprocesses don't inherit that environment variable, many tests fail because of that. Eventually I hit a seg fault in test_dtype.py::TestMonsterType::test_dict_recursion which I suspect is causing a stack overflow under TSAN. I'll have to look closer.
I tried also on my x86 linux laptop and unfortunately in Linux TSAN has issues with ASLR on newer kernels: https://github.com/google/sanitizers/issues/1716#issuecomment-2010399341
I might be able to get this working with clang 18 on Linux, but that might be annoying to get working on CI since it looks like that version hasn't been packaged yet for Ubuntu.

We did, via a blog post. Is there a spot you would have more easily heard the announcement?

I think an announcement on discuss.python.org would make sense...? 🤔

I might be able to get this working with clang 18 on Linux, but that might be annoying to get working on CI since it looks like that version hasn't been packaged yet for Ubuntu.

It's packaged (also for linux) in conda-forge. ;)
conda install clang_linux-64=18

Or plain clang if you want the bare binaries without any default flags etc. (which you can of course still override after the environment has been activated)


Loading linux musl addon Error: Cannot find module '@node-rs/bcrypt-linux-musl'

After installing on alpine docker container, I see such an error:
Loading linux musl addon Error: Cannot find module '@node-rs/bcrypt-linux-musl'
Require stack:
-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>- /usr/src/app/node_modules/http-auth/src/auth/basic.js
- /usr/src/app/node_modules/http-auth/src/http-auth.js

Could you please help me to handle it. Everything worked good some time ago.
Related to https://github.com/napi-rs/node-rs/issues/361

Fixed with 4.1.4


CSVs with semicolons do not work

They get results (i.e. not 500 error) but not legible results
Sample file:
https://www.dropbox.com/s/6lrgtabj1qswo5z/CSV_WITH_SEMICOLONS.csv?dl=0

added detectDelimiter function


torch.cat needs to be optimized

catArray needs to be optimized to be on-device.
Otherwise,  if we torch.cat 100s of small  tensors at the same time, the calls are all serialized and also have kernel launch overhead.
@killeent is working on this.

@soumith Is this going to be for CudaTensor only or for other Cuda Tensors as well ?

The general improvement will be for all types

@soumith Thanks for the clarification. I did not check the progress made here: https://github.com/torch/cutorch/issues/529 :)


Refactor mergeFilters() to eliminate the ts-ignores

I believe that this logic is effectively the same as what was originally implemented (but without the ts-ignores). Admittedly, my solution is slightly less performant than the original implementation, but in my opinion it's a minor trade off to ensure the function is strongly typed. If consumers of this library are being dumb by sending in huge arrays with a ton of redundant filters, then that's more user error than anything. In most realistic and efficiency-conscious scenarios, I think the performance trade-offs will be negligible.

Thank you for the PR and sorry for not answering this in time. Now there are too many conflicts to be worth merging, it's probably better to start anew.
But I think I personally prefer the ridiculously small performance gain over the type safety, so maybe let's not do this anyway.


Generic bootstrap does not regenerate UFW rules to allow TFTP access

If one setups a VM bootstrap image and then uses Vagrant.baremetal to re-provision the UFW rules are not initially updated. The rules from ufw.rb do not update on the re-provision but seem to update subsequently. Disabling the ufw service and re-chefing the bootstrap seems to add the new IP in for the TFTP rule (though the old IP is left in as well).
If one sees TFTP boot failing, simply check iptables -L under the ufw-user-input chain for TFTP and ensure the IP address listed is for the correct machine.

This is fixed in PR #143


missing required exit plugin will cause build failure

Signed-off-by: Robert Cerven<EMAIL_ADDRESS>

Can you provide an explanation of why this is needed?

added explanation into commit message

release note updated:

exit plugins marked as required but is missing, will fail build


Won't work on startup

Hi. I'm a little new to vim and all the plugins and I'm using Vundle to install this one. When I open gvim, powerline doesn't show up, but when I do a :PluginInstall or Update then it appears. Is there a way to skip this step so that the line appears on startup?

Please paste your entire vimrc, or minimal vimrc to reproduce the problem if possible so that I can investigate.

set nocompatible
filetype off
"set the runtime path to include vundle and initialize
set rtp+=/usr/share/vim/bundle/Vundle.vim
call vundle#begin('/usr/share/vim/addons/plugin')
"Enhanced sytax highlighting for python
Plugin 'hdima/python-syntax'
"Let vundle handle itself
Plugin 'VundleVim/Vundle.vim'
"The rest of the plugins
Plugin 'itchyny/lightline.vim'
Plugin 'NLKNguyen/papercolor-theme'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'tpope/vim-surround'
"Figure this one out for a tree heirarchy on the side
"Plugin 'scrooloose/nerdtree'
"Figure out how to install this one for fuzzy finder
"Plugin 'junegunn/fzf.vim'
"Plugin '/home/nikoziozis/Desktop/PersonalProjects/dotfiles/dotbot/bin/fzf'
call vundle#end()
filetype plugin indent on
" Make external commands work through a pipe instead of a pseudo-tty
"set noguipty
"This is the settings for python-syntax highlighting
let python_highlight_all = 1
" You can also specify a different font, overriding the default font
set guifont=Ubuntu\ Mono\ 18
"set the background color and theme here
"This line is here in case the theme messes up. Just uncommnet this and it
"should work.       g:PaperColor_Theme_Options
set background=dark
colorscheme PaperColor
"This turns on the line numbers on the side
set number
set laststatus=2
set tabstop=2
"This modifies the gui
set guioptions-=T
set guioptions-=m
set guioptions-=r
"begining of custom keymaps
"maps going forward and backwards a tab to  and
map  :tabp
map  :tabn
nnoremap   :!python3 %
"maps the changing the active split screen from combo commands to simpler ones
nnoremap
nnoremap
nnoremap
nnoremap
"end of custom key maps
" Source a global configuration file if available
if filereadable("/etc/vim/gvimrc.local")
source /etc/vim/gvimrc.local
endif


Is there lint support?

I could not find anything to support linting of the current document, i.e. showing syntax or grammar errors (like undefined variables) or even style errors, typically indicated by a squiggly red or yellow line. If there is no such thing yet, please consider adding it :)
The probably easiest way would be to extend the SymbolTag enum to include keywords like unused, undefined, alreadyDefined, styleViolation, accessViolation (e.g. accessing private members outside the class).

@rwols thanks for answering.
I will close the issue since Diagnostics are that way to go.


Tutorial Page private-link-aws.md Issue. PROD

Tutorial issue found: https://github.com/sap-tutorials/Tutorials/blob/master/tutorials/private-link-aws/private-link-aws.md  - file path is not unique. Your tutorial was not created.
Affected server: PROD

Tutorial was moved to another repository.


Headless VSCode means keyring dialogs wont pop up

From Jonathan:
it was just failing to set to the keyring because it didn't have access
or was requesting access from the OS
but of course because I was running headless
it wasn't showing me that "unlock keyring" dialog
but when I opened CRD it was working
Not sure if there's much we can do, but perhaps we can warn the user?

I was using vscode in the ssh / headless mode and every time I tried to click save on a postgres connection that required a password it just hid the “save” button but didn’t actually do anything -- no warning, no error.
I went to try it using a normal “headful” vscode in that environment, and noticed that I had permission request sitting open on the desktop when I remoted in.

After approving access to the keyring , it worked for me without any issues.

Not sure how we fix this one.  The Keyring UI is controlled by the OS.  @jonathanswenson you are running code-server?

Yeah I believe it is code-server. I set this up a long time ago, but following the instructions here.
If nothing else, perhaps an error message / timeout message about failure to write to the keyring after it doesn’t succeed for some amount of time? Then someone could at least try to figure out how to fix the keyring?


cargo build tries to build dependencies (and dependencies of them, recursively) with ALL features enabled, ALL dependency crates included, even if they are opted-out

Problem
gltf crate v1.41 depends on images, images has an optional dependency ravif that is not enabled by gltf, and ravif depends wasm-bindgen-macro, which uses an unstable feature allow_internal_unstable.
However when I was trying to build a crate depending on gltf, wasm-bindgen-macro was unexpectedly built, and compiler gave me the error:

I checked the project dependency with cargo tree and ravif should be the only crate using wasm-bindgen-macro. Deleting target or Cargo.lock, or even re-cloning the repository don't work.
Steps

git clone https://github.com/chuigda/easy-gltf
use a stable toolchain
cargo build

Possible Solution(s)
No response
Notes
No response
Version
cargo 1.83.0 (5ffbef321 2024-10-29)
release: 1.83.0
commit-hash: 5ffbef3211a8c378857905775a15c5b32a174d3b
commit-date: 2024-10-29
host: x86_64-pc-windows-msvc
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.9.0-DEV (sys:0.4.74+curl-8.9.0 vendored ssl:Schannel)
os: Windows 10.0.17763 (Windows 10 Enterprise LTSC 2019) [64-bit]

The default feature of image includes the default-formats feature, which enables avif. This is intended behavior.

https://github.com/chuigda/easy-gltf/blob/5b7de41cae97ae5810fa54fd0084f56c8dc3c8b1/Cargo.toml#L22
https://github.com/image-rs/image/blob/7495e4bd909d1bfa6370e60fa78d59971c273e43/Cargo.toml#L67-L70

Sorry my badness


Polyak Averaging Params_ema initiailzation

Hi, I was applying the changes in your HOWTO to add Polyak averaging and there seems to be some code missing, specifically params_ema is not initialized and so the line
optimizer, params_ema = train_step(optimizer, params_ema, batch)
causes an UnboundLocalError (params_ema referenced before assignment).

Yes you're right. Want to file a CL?

Er, I meant a PR :)

Okss, will try

Done! @avital

@marcvanzee is in the process of changing the example diff in the README and putting up our HOWTOs in a more structured way, so I'm closing this for now. Thanks @joaogui1!


early draft of FWD50 blog post

Closes #1359

Well I clearly need to do a better job with the descriptions on my commits. The above commits are for:

I added links to twitter profiles for some of the presenters we mention (e.g. Pia, Honey)
I added a bit more description around the links of articles/tools
I added one additional person to the 'new follows' section
I added a link to Sean's FWD50 blog post
minor typo fixes

So, all we need now is the French version! :smile:

Yay! I'm going to reach out to the presenters for the cheatsheet document and the miro board but to be sure they don't mind us sharing them.

File sent to translation. Nov. 20. 1000 words = SLA of 5 days

Ugghhhh I had a merge conflict re: cspell and when i tried to fix it, instead of accepting the changes from master, I overwrote the master with an old version of cspell.  :-( Not a rush but @gabrielcossette or @smellems, if either of you have time to help me reverse my commits that messed it up, I'd be grateful.

Ugghhhh I had a merge conflict re: cspell and when i tried to fix it, instead of accepting the changes from master, I overwrote the master with an old version of cspell. :-( Not a rush but @gabrielcossette or @smellems, if either of you have time to help me reverse my commits that messed it up, I'd be grateful.

I just made a cspell adjustment to revert the changes. Pushing in a second.


Fix Journal doc after a property change

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/6578/
Test PASSed.

alluxio-bot, merge this please

alluxio-bot, cherry-pick this to branch-2.1 please


[Blob Service] SetContainerMetadata Support in storage SDK

https://docs.microsoft.com/en-us/rest/api/storageservices/set-container-metadata

https://github.com/Azure/azure-sdk-for-cpp/pull/144


TFLite new quantizer brokes ALBERT model

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): docker container with ubuntu 16.04, running on host with fedora 31
TensorFlow installed from (source or binary): binary
TensorFlow version (or github SHA if from source): 2.2.0-dev20200119

Command used to run the converter or code if you’re using the Python API
config = tr.AlbertConfig.from_pretrained(model_dir)
    model = tr.TFAlbertForSequenceClassification.from_pretrained(
        model_dir + 'pytorch_model.bin',
        from_pt=True,
        config=config
    )

input_ids: tf.TensorSpec = tf.TensorSpec((1, 128), dtype=tf.int32, name='input_ids')
attn_mask: tf.TensorSpec = tf.TensorSpec((1, 128), dtype=tf.int32, name='attn_mask')
model._set_inputs([input_ids, attn_mask], training=False)

converter = tf.lite.TFLiteConverter.from_keras_model(model)
converter.experimental_new_converter = True
converter.experimental_new_quantizer = True
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS]

converter.optimizations = [tf.lite.Optimize.OPTIMIZE_FOR_SIZE]
converter.representative_dataset = representative_dataset
tflite_model = converter.convert()

The output from the converter invocation
2020-01-24 16:32:16.530758: W tensorflow/python/util/util.cc:319] Sets are not currently considered sequences, but this may change in the future, so consider avoiding using them.
2020-01-24 16:32:16.554102: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2020-01-24 16:32:16.557035: E tensorflow/stream_executor/cuda/cuda_driver.cc:313] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
2020-01-24 16:32:16.557052: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: bb9f01c415b3
2020-01-24 16:32:16.557059: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: bb9f01c415b3
2020-01-24 16:32:16.557145: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:200] libcuda reported version is: 435.21.0
2020-01-24 16:32:16.557160: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:204] kernel reported version is: 435.21.0
2020-01-24 16:32:16.557164: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:310] kernel version seems to match DSO: 435.21.0
2020-01-24 16:32:16.557353: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2020-01-24 16:32:16.574660: I tensorflow/core/platform/profile_utils/cpu_utils.cc:101] CPU Frequency:<PHONE_NUMBER> Hz
2020-01-24 16:32:16.575312: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x562d071745f0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-01-24 16:32:16.575337: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2020-01-24 16:32:18.432 | INFO     | __main__:<module>:114 - loaded model & tokenizer
2020-01-24 16:32:18.443 | INFO     | __main__:<module>:117 - loaded representative dataset
2020-01-24 16:32:19.227068: I tensorflow/core/grappler/devices.cc:55] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0
2020-01-24 16:32:19.227222: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session
2020-01-24 16:32:19.254757: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:815] Optimization results for grappler item: graph_to_optimize
2020-01-24 16:32:19.254798: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:817]   function_optimizer: function_optimizer did nothing. time = 0.004ms.
2020-01-24 16:32:19.254802: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:817]   function_optimizer: function_optimizer did nothing. time = 0ms.
2020-01-24 16:32:21.189883: I tensorflow/core/grappler/devices.cc:55] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0
2020-01-24 16:32:21.190007: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session
2020-01-24 16:32:22.539819: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:815] Optimization results for grappler item: graph_to_optimize
2020-01-24 16:32:22.539870: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:817]   constant_folding: Graph size after: 2861 nodes (-184), 3659 edges (-361), time = 906.902ms.
2020-01-24 16:32:22.539875: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:817]   constant_folding: Graph size after: 2861 nodes (0), 3659 edges (0), time = 359.704ms.
INFO:absl:Using experimental converter: If you encountered a problem please file a bug. You can opt-out by setting experimental_new_converter=False
2020-01-24 16:35:00.745 | INFO     | __main__:<module>:123 - model conversion finished, writing to file..
2020-01-24 16:35:00.752 | INFO     | __main__:<module>:128 - All Done!

Also, please include a link to the saved model or GraphDef
Sadly, tensorflow fails to save my model. I'm using fine-tuned version of ALBERT-base-v2(for sequence classification) from huggingface\transformers.
Failure details
Conversion went without any failures, but produced model is completely wrong, as it is 18x slower than model produced without calibration and experimental_new_quantizer(but with experimantal_new_converter) and this model produces trashed metrics:
# experimental_new_quantizer=True, experimental_new_converter=True and calibration is on
{"accuracy": 0.025161092359619514, "micro-f1": 0.3419799704482023, "macro-f1": 0.17553049991957947}
inference time: 18 sec \ sample (on x86_64)
# experimantal_new_quantizer=False, experimental_new_converter=True and no calibration
{"accuracy": 0.4894139306535747, "micro-f1": 0.6913144244564617, "macro-f1": 0.5892280589520447}
inference time: 1 sec \ sample (on x86_64)

experimental_new_quantizer is not tied to the new MLIR converter feature release, and it is not guaranteed to work at current stage.

@Rexhaif,
Is this still an issue?
Could you please update TensorFlow to the latest stable version and check if you are facing the same issue. Thanks!


chore: bdd-spring-1578578767 to 0.0.1

chore: Promote bdd-spring-1578578767 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Trivial fixes to Vue examples

(See commit messages for more details)

@brillout do you have mismatching module and moduleResolution on purpose in https://github.com/brillout/vite-plugin-ssr/blob/main/vite-plugin-ssr/tsconfig.json ?
$ pnpm run build

><EMAIL_ADDRESS>build /home/lourot/Documents/git/vike/vite-plugin-ssr/vite-plugin-ssr
> rimraf dist/ && pnpm run build:esm && pnpm run build:cjs

><EMAIL_ADDRESS>build:esm /home/lourot/Documents/git/vike/vite-plugin-ssr/vite-plugin-ssr
> tsc

tsconfig.json:6:15 - error TS5110: Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.

6     "module": "ES2020",
                ~~~~~~~~

Found 1 error in tsconfig.json:6

 ELIFECYCLE  Command failed with exit code 2.
 ELIFECYCLE  Command failed with exit code 1.

Last time I tried to update vite-plugin-md to its latest version it had some bug. It didn't seem related to vite-plugin-ssr so that's why I just keep using its 0.11.x release branch.
As for TypeScript: I don't get this error on a fresh install/build $ pnpm reset which installs TypeScript 5.1.6. Maybe you had another TypeScript version installed.

Thanks for your answer. I'm confused because what I was trying to fix in the first place is that<EMAIL_ADDRESS>has a peer dependency to<EMAIL_ADDRESS>and we have a peer dependency to<EMAIL_ADDRESS>and this led to a clash on my setup at some point, on main. I'll try to reproduce.

Such peer dependency is basically just a recommendation; it may or may not break things if you don't respect it.
Since the CI was green, I guess ignoring it didn't break things so far; the markdown page is part of the CI. Maybe you bumped some dependencies and things started to break.

@brillout if you follow the readme of the vue-full-v1 example, i.e. you use npm and not pnpm you can reproduce the issue:
$ git clone git@github.com:brillout/vite-plugin-ssr
$ cd vite-plugin-ssr/
$ git checkout main
$ pnpm clean
$ cd examples/vue-full-v1/
$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/vite
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/vite-plugin-md
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

So I intend to find a way to have a newer version of vite-plugin-md with which we don't have a peer dependency version clash, and at the same time fix the Vue tests that are failing now on CI. What do you think?

That'd be nice yes. Otherwise, if we do need a fix from vite-plugin-md and we're blocked by it, then we could set legacy-peer-deps in examples/vue-full-v1/.npmrc.

I can reproduce the pnpm run test:types failure locally. I'll have a look.

The failing React test is a flaky test (I couldn't find a way to make it stable). I've added you as collaborator so that you can re-run the CI. Once we do the Vike rename, you'll have full privileges.

I just found the bug report: https://github.com/antfu/vite-plugin-md/issues/112. This means that its 0.22.x release branch may work. That's neat as it gives users the choice between two (fairly) well maintained markdown plugins. I'll update the docs accordingly.

Thanks! I'm happy with the PR now. Do you want me to give a try at<EMAIL_ADDRESS>or are we fine with how it is now?

We can let the users try (they'll surely/eventually report back if there is an issue with it), or we can preemptively check on behalf of users. The lazy path seems fine to me, but as you wish :-).
Neat polishing PR 👌.

tsconfig.json:6:15 - error TS5110: Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.

Fixed.
FYI ths issue was that TypeScript 5.2 made a breaking change about this.
It seems like you were using a TS version that wasn't the one specified by pnpm-lock.yaml. (Maybe VSCode doesn't use the tsserver of the local TypeScript installation.)


Make a release

Make a new release for point 7.1 Modify tasks-phase1.md file.

Phase1_tasks 75% completed.


Cannot compile with Delphi_SVGEngine enabled

I would like to compile the packages with Delphi 11 using TSVG renderer (the one which uses GDI+ ?) by enabling the Delphi_SVGEngine define in SVGIconImageList.inc
SVGIconUtils.pas do not compile because the implementation of MakeTransparent() is missing :
{$IFDEF IgnoreAntiAliasedColor}
procedure MakeTransparent(DC: THandle);
{$ENDIF}

Hy  @zedalaye, TSVG is an older renderer not maintaned, written in native Delphi, but also Img32 renderer is written in native Delphi and actually is the best engine:
https://github.com/EtheaDev/SVGIconImageList/wiki/Choice-of-Factories
TSVG is included only for backward compatibility...
If you have problems of rendering some svg with Img32 open a specific issue.
Thanks.


fix ValidateMap and field references

Fixes Or Enhances
Implement support for ValidateMap using Field references
Fixes https://github.com/go-playground/validator/issues/893
Fixes https://github.com/go-playground/validator/issues/876
Fixes https://github.com/go-playground/validator/issues/943
Make sure that you've checked the boxes below before you submit PR:

[X] Tests exist or have been written that cover this particular change.

@go-playground/validator-maintainers

coverage: 74.194% (+0.02%) from 74.172%
when pulling 48ccdecf64fc69894ff611fe8a7fe8cda7d98941 on jippi:fix-ValidateMap-field-references
into 55313dbe00866e2404032d687098e35868db2f1c on go-playground:master.

bump on this one 🙏

bumping on this @deankarn


Too much space in dataset swap pop-up

Is your feature request related to a problem? Please describe.

Describe the solution you'd like
Enlarge the grid above the space.
Describe alternatives you've considered
Leave it.
Additional context
Reported while an integrated test on 6/11.

@eltriny 공통으로 쓰는 클래스로 box-preview 높이가 고정 설정되어 있는데 퍼블리시 확인 좀 해주세요


Bug - extra space between ListView items

This is the code:
public class JavaFxTest10 extends Application {

    @Override
    public void start(Stage primaryStage) {
        Application.setUserAgentStylesheet(new Dracula().getUserAgentStylesheet());
        ObservableList<String> items = FXCollections.observableArrayList(
            "Foo 1",
            "Foo 2",
            "Foo 3",
            "Foo 4",
            "Foo 5",
            "Foo 6"
        );

        ListView<String> listView = new ListView<>(items);
        var root = new VBox(listView);
        root.setStyle("-fx-background-color: red");
        Scene scene = new Scene(root, 400, 300);
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}

And this is the result:

As you see there is an extra space between items.

I'm encountering the same issue. What I noticed is that the number of extra spaces in the list depends on the font size.


Updates to documentation for icons/images

We need to add some additional documentation for our expectations for package icons and images.

Looks good to me :birthday: . One minor comment.

:+1: thanks John


Fix typo: Adding a missing "if" in sentence about ReAct in related_resources.md

Summary
This PR adds the word "if" to the sentence about the ReAct paper.
Changes

Minor Change

Adding the word "if" to a sentence

Motivation
The sentence doesn't make sense without a "when" or "if" in it.

Thank you for the fix!


NoCredentialsError Error with MLflow

Hello,
I followed the tutorial https://github.com/datarevenue-berlin/OpenMLOps/blob/master/tutorials/basic-usage-of-jupyter-mlflow-and-prefect.md
But when I get to mlflow.sklearn.log_model(lr, "model"), I get the error NoCredentialsError: Unable to locate credentials. If I understand correctly, MLFlow does not have the AWS credential to save files to S3 bucket? I thought the bucket was created by Terraform script, so shouldn't it already have the credential? How should I go and fix this? Thanks

check this https://github.com/mlflow/mlflow/issues/2150
or this https://www.youtube.com/watch?v=1ykg4YmbFVA&list=PL3MmuxUbc_hIUISrluw_A7wDSmfOhErJK&index=17 specially minute 25 when he edits the inbound rules so it can listen to the port 5000 where mlflow goes


Null on UnitOfWork Account Login

Hi, i just clone your project, doesn't change anything yet, but when i try to login, it say that UnitOfWork Account is null, is there any step that i missing? the database are already created using update-database.
Thank you for advice,

Strange, doesn't happen to me, could you share a stack trace?

Hi @Muchiachio i just change my connection from localdb to sqlexpress and it works, dont know why, maybe my localdb connection is still close, but why i can generate my table and seed data.
maybe for other that experience same error with me can change your connectionstring to sqlexpress or sql.
change your connection string to:
<add name="Context" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=ArchrestServer#Local;User ID=xx;Password=xxxx" providerName="System.Data.SqlClient" />         <add name="TestingContext" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=ArchrestServer_Testing#Local;User ID=xxxx;Password=xxxxx" providerName="System.Data.SqlClient" />
and default connection to:
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework">             <parameters>               <parameter value="Data Source=.\SQLEXPRESS; Integrated Security=True; MultipleActiveResultSets=True"/>             </parameters>         </defaultConnectionFactory>
Thank your for sharing this awesome things, it teach me alot how to programming with c# and mvc.
Once again, thank you.


Support enquiry !

Hi Feng, I checked http://emqtt.io/support and came to know that you provide installation and development support. Please send me your contact details or a link to linkedin profile to discuss more on this. You can reach me on<EMAIL_ADDRESS>

Hi Rahul, I sent a mail to<EMAIL_ADDRESS>


issue during CreateNet in MNIST tutorial

Hello
I follow https://caffe2.ai/docs/tutorial-MNIST.html on my installation of Caffe2 on Ubuntu 16.04.
the command: workspace.CreateNet(train_model.net) is producing following error:
Traceback for operator 26 in network mnist_train
:11
:8
/home/b2bot/anaconda2/lib/python2.7/site-packages/IPython/core/interactiveshell.py:2881
/home/b2bot/anaconda2/lib/python2.7/site-packages/IPython/core/interactiveshell.py:2821
/home/b2bot/anaconda2/lib/python2.7/site-packages/IPython/core/interactiveshell.py:2717
/home/b2bot/anaconda2/lib/python2.7/site-packages/ipykernel/zmqshell.py:501
/home/b2bot/anaconda2/lib/python2.7/site-packages/ipykernel/ipkernel.py:196
/home/b2bot/anaconda2/lib/python2.7/site-packages/ipykernel/kernelbase.py:390
/home/b2bot/anaconda2/lib/python2.7/site-packages/ipykernel/kernelbase.py:228
/home/b2bot/anaconda2/lib/python2.7/site-packages/ipykernel/kernelbase.py:276
/home/b2bot/anaconda2/lib/python2.7/site-packages/tornado/stack_context.py:275
/home/b2bot/anaconda2/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py:414
/home/b2bot/anaconda2/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py:472
/home/b2bot/anaconda2/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py:440
/home/b2bot/anaconda2/lib/python2.7/site-packages/tornado/stack_context.py:275
/home/b2bot/anaconda2/lib/python2.7/site-packages/tornado/ioloop.py:887
/home/b2bot/anaconda2/lib/python2.7/site-packages/zmq/eventloop/ioloop.py:177
/home/b2bot/anaconda2/lib/python2.7/site-packages/ipykernel/kernelapp.py:474
/home/b2bot/anaconda2/lib/python2.7/site-packages/traitlets/config/application.py:658
/home/b2bot/anaconda2/lib/python2.7/site-packages/ipykernel/main.py:3
/home/b2bot/anaconda2/lib/python2.7/runpy.py:72
/home/b2bot/anaconda2/lib/python2.7/runpy.py:174
RuntimeError                              Traceback (most recent call last)
 in ()
----> 1 workspace.CreateNet(train_model.net)
/home/b2bot/Project/caffe2/caffe2/build/caffe2/python/workspace.pyc in CreateNet(net, overwrite, input_blobs)
145         C.Workspace.current._last_failed_op_net_position,
146         GetNetName(net),
--> 147         StringifyProto(net), overwrite,
148     )
149
/home/b2bot/Project/caffe2/caffe2/build/caffe2/python/workspace.pyc in CallWithExceptionIntercept(func, op_id_fetcher, net_name, *args, **kwargs)
164 def CallWithExceptionIntercept(func, op_id_fetcher, net_name, *args, **kwargs):
165     try:
--> 166         return func(*args, **kwargs)
167     except Exception:
168         op_id = op_id_fetcher()
RuntimeError: [enforce fail at operator.cc:73] schema->Verify(operator_def). Operator def did not pass schema checking: input: "iter" output: "mnist_train/Iter" name: "" type: "Iter"
any idea to debug and fix this?
thanks in advance, Fran

following instructions from:  https://github.com/caffe2/caffe2/blob/master/caffe2/python/tutorials/MNIST.ipynb
was working  the line inside the def section of AddTrainingOperators is modified to
ITER = brew.iter(model, "iter")
then the AddTrainingOperators  does not report any warning anymore and the creation of the train network is not crashing anymore.
it might be useful to modify the corresponding line in the page:  https://caffe2.ai/docs/tutorial-MNIST.html
BR
Fran

Hi, @fbadaud
There is error for in running the tutorial:
RuntimeError: [enforce fail at leveldb.cc:70] status.ok(). Failed to open leveldb /root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb. Invalid argument: /root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb: does not exist (create_if_missing is false) Error from operator:
output: "dbreader_/root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb" name: "" type: "CreateDB" arg { name: "db_type" s: "leveldb" } arg { name: "db" s: "/root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb" }
I have those image files in the folder:
-rwxrwxr-x 1 1000 1000  7840016 Mar 17 05:43 t10k-images-idx3-ubyte
-rwxrwxr-x 1 1000 1000    10008 Mar 17 05:43 t10k-labels-idx1-ubyte
-rwxrwxr-x 1 1000 1000 47040016 Mar 17 05:43 train-images-idx3-ubyte
-rwxrwxr-x 1 1000 1000    60008 Mar 17 05:43 train-labels-idx1-ubyte
Could you please check what the error here is?
best regards,
wxie

Hi wxie
I am not connected and able to look in details at your error but you might xcheck  that  path between your command and the leveldb files are matching.

Hi, @fbadaud
Thanks. I am sure what you want me to check, so I post the complete error:

execfile("mnist-cnn-tutorial.py")
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
WARNING:root:Debug message: No module named caffe2_pybind11_state_gpu
Necessities imported!
Bookkeeping function created
WARNING:root:You are creating an op that the ModelHelper does not recognize: Iter.
name: "mnist_train_init"
op {
output: "dbreader_/root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb"
name: ""
type: "CreateDB"
arg {
name: "db_type"
s: "leveldb"
}
arg {
name: "db"
s: "/root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb"
}
}
op {
output: "conv1_w"
name: ""
type: "XavierFill"
arg {
name: "shape"
ints: 20
ints: 1

...
Protocol buffers files have been created in your root folder: /root/work/caffe2-example
Traceback for operator 0 in network mnist_train_init
/usr/local/caffe2/python/model_helper.py:418
mnist-cnn-tutorial.py:69
mnist-cnn-tutorial.py:151
:1
Traceback (most recent call last):
File "", line 1, in
File "mnist-cnn-tutorial.py", line 200, in
workspace.RunNetOnce(train_model.param_init_net)
File "/usr/local/caffe2/python/workspace.py", line 183, in RunNetOnce
StringifyProto(net),
File "/usr/local/caffe2/python/workspace.py", line 175, in CallWithExceptionIntercept
raise ex
RuntimeError: [enforce fail at leveldb.cc:70] status.ok(). Failed to open leveldb /root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb. Invalid argument: /root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb: does not exist (create_if_missing is false) Error from operator:
output: "dbreader_/root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb" name: "" type: "CreateDB" arg { name: "db_type" s: "leveldb" } arg { name: "db" s: "/root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb" }
And also my data directory:
~/work/caffe2-example/mnist-cnn # ls
backup  mnist-train-nchw-leveldb  t10k-images-idx3-ubyte  t10k-labels-idx1-ubyte  train-images-idx3-ubyte  train-labels-idx1-ubyte
~/work/caffe2-example/mnist-cnn # ls mnist-train-nchw-leveldb/
LOCK  LOG  LOG.old
Could you please check?
regards,
wxie

hi Wxie
in your ~/work/caffe2-example/mnist-cnn/ make a pwd and verify if the path correspond to :
/root/work/caffe2-example/mnist-cnn/
if it is matching, you might looks at the right of your files in this directory
hope it helps
BR
Francois

Hi, @fbadaud
Thanks. I am sure what you want me to check, so I post the complete error:

execfile("mnist-cnn-tutorial.py")
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
WARNING:root:Debug message: No module named caffe2_pybind11_state_gpu
Necessities imported!
Bookkeeping function created
WARNING:root:You are creating an op that the ModelHelper does not recognize: Iter.
name: "mnist_train_init"
op {
output: "dbreader_/root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb"
name: ""
type: "CreateDB"
arg {
name: "db_type"
s: "leveldb"
}
arg {
name: "db"
s: "/root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb"
}
}
op {
output: "conv1_w"
name: ""
type: "XavierFill"
arg {
name: "shape"
ints: 20
ints: 1

...
Protocol buffers files have been created in your root folder: /root/work/caffe2-example
Traceback for operator 0 in network mnist_train_init
/usr/local/caffe2/python/model_helper.py:418
mnist-cnn-tutorial.py:69
mnist-cnn-tutorial.py:151
:1
Traceback (most recent call last):
File "", line 1, in
File "mnist-cnn-tutorial.py", line 200, in
workspace.RunNetOnce(train_model.param_init_net)
File "/usr/local/caffe2/python/workspace.py", line 183, in RunNetOnce
StringifyProto(net),
File "/usr/local/caffe2/python/workspace.py", line 175, in CallWithExceptionIntercept
raise ex
RuntimeError: [enforce fail at leveldb.cc:70] status.ok(). Failed to open leveldb /root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb. Invalid argument: /root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb: does not exist (create_if_missing is false) Error from operator:
output: "dbreader_/root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb" name: "" type: "CreateDB" arg { name: "db_type" s: "leveldb" } arg { name: "db" s: "/root/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb" }
And also my data directory:
~/work/caffe2-example/mnist-cnn # ls
backup  mnist-train-nchw-leveldb  t10k-images-idx3-ubyte  t10k-labels-idx1-ubyte  train-images-idx3-ubyte  train-labels-idx1-ubyte
~/work/caffe2-example/mnist-cnn # ls mnist-train-nchw-leveldb/
LOCK  LOG  LOG.old
Could you please check?
regards,
wxie

Hi, @fbadaud:
The pwd is ok.
The right is like this:
~/work/caffe2-example/mnist-cnn # pwd
/root/work/caffe2-example/mnist-cnn
~/work/caffe2-example/mnist-cnn # ls -al
total 53678
drwxr-xr-x   4 root           root         4096 2017-08-06 10:50 .
drwxr-xr-x   4 root           root         4096 2017-08-06 10:57 ..
drwxr-xr-x   3 root           root         4096 2017-08-06 10:49 backup
drwxr-xr-x   2 root           root         4096 2017-08-19 09:38 mnist-train-nchw-leveldb
-rwxrwxr-x   1 1000           1000      7840016 2017-03-17 05:43 t10k-images-idx3-ubyte
-rwxrwxr-x   1 1000           1000        10008 2017-03-17 05:43 t10k-labels-idx1-ubyte
-rwxrwxr-x   1 1000           1000     47040016 2017-03-17 05:43 train-images-idx3-ubyte
-rwxrwxr-x   1 1000           1000        60008 2017-03-17 05:43 train-labels-idx1-ubyte
~/work/caffe2-example/mnist-cnn # cd mnist-train-nchw-leveldb/
~/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb # ls -al
total 8
drwxr-xr-x   2 root           root     4096 2017-08-19 09:38 .
drwxr-xr-x   4 root           root     4096 2017-08-06 10:50 ..
-rw-r--r--   1 root           root        0 2017-08-06 10:50 LOCK
-rw-r--r--   1 root           root        0 2017-08-19 09:38 LOG
-rw-r--r--   1 root           root        0 2017-08-06 10:50 LOG.old
~/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb # chmod 755 *
~/work/caffe2-example/mnist-cnn/mnist-train-nchw-leveldb # ls -al
total 8
drwxr-xr-x   2 root           root     4096 2017-08-19 09:38 .
drwxr-xr-x   4 root           root     4096 2017-08-06 10:50 ..
-rwxr-xr-x   1 root           root        0 2017-08-06 10:50 LOCK
-rwxr-xr-x   1 root           root        0 2017-08-19 09:38 LOG
-rwxr-xr-x   1 root           root        0 2017-08-06 10:50 LOG.old
The problem remains the same, and file right is like:
~/work/caffe2-example # ls -al mnist-cnn/mnist-train-nchw-leveldb/
total 8
drwxr-xr-x   2 root           root     4096 2017-08-26 10:36 .
drwxr-xr-x   4 root           root     4096 2017-08-06 10:50 ..
-rwxr-xr-x   1 root           root        0 2017-08-06 10:50 LOCK
-rw-r--r--   1 root           root        0 2017-08-26 10:36 LOG
-rwxr-xr-x   1 root           root        0 2017-08-19 09:38 LOG.old
Where could be the problem?
best regards,
wxie

Hi Wxie2017
I run again the trial on my side and got an error similar as you i think now. so if i find a solution i will share.
BR
Francois

hi again Wxie
As I said yesterday I got almost similar error as you during execution of my script for this trial.
This is another error versus the initial ticket I report about ITER and this new one relative to leveldb files.  In my case it occurs during the running of the network and it crash due to previous execution of the script and remaining .leveldb files in my root directory. I then rm -r *.leveldb in my root directory and the run is passing again.
on your side the error occurs earlier during the initialization of the network it looks that some leveldb can not be produced and used by the RunNetOnce step.  may be you have a write permission issue in your working directory or I suggest you post a new ticket with this problem
Best regards
FBadaud


Hello, I want to get from the gesture detection, the customer's gesture is "OK", "Rock", and "Spiderman". What should we do?

Hello, I want to get from the gesture detection, the customer's gesture is "OK", "Rock", and "Spiderman". What should we do?
And the arr I packaged is 2d by default and I want to change it to 3d. I didn't find this function

Are you using the desktop version? If so, you can reference the related issue #202 to change it to 3D.

@Sanerly您使用的是桌面版本吗？如果是这样，您可以参考相关的问题＃202将其更改为3D。

Hello,I'm using the mobile version, and I want to recognize the "ok" of the gesture

I think #296  can help you.

Hey guys, I modify the TensorFlow demo app, so it can run the palm model and hand landmark model.
please go https://github.com/laisuki1109/handtracking-with-Mediapipe to explore more !
With Java
you can set custom hand pose by xy coordinate
Thank you!


⚠ Bofrost.com has degraded performance

In 646a168, Bofrost.com (https://www.bofrost.com) experienced degraded performance:

HTTP code: 200
Response time: 950 ms

Resolved: Bofrost.com performance has improved in 52f3c3b after 7 minutes.


Migrate to hyperdrive v8

Hyperdrive v8 will be much faster and the API is expected to stabilise - it will track node's fs module API from now on.
https://github.com/mafintosh/hyperdrive/tree/v8
Release is expected very soon - in the meantime we should start migrating as we'll definitely want this in v1

v8 has landed in master with docs: https://github.com/mafintosh/hyperdrive

Major issues that need handling during the migration:

[ ] move from old API to new fs-based API
[ ] monitor download progress
[ ] move content server to hyperdrive-http


Use openst/organization-contracts

use OpenST/organization-contracts after published.

Duplicate of #712