SSH + Windows Agents issues - ##[error]bash: ./sshscript: No such file or directory

Task name: SshV0 - https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/SshV0
Description: Bug fix.
Removing line endings using:
const removeLineEndingsCmd = tr -d \'\\015\' <${remoteScriptPath}> ${windowsEncodedRemoteScriptPath};
Is generating errors as example:
##[error]bash: ./sshscript_4324: No such file or directory
Refactoring to:
tr -d \'\\015\' <${remoteScriptPath}> ${windowsEncodedRemoteScriptPath};
It was tested and resolved the issue.
Documentation changes required: No
Added unit tests: No
Attached related issue: No
Checklist:

[ ] Task version was bumped - please check instruction how to do it
[X] Checked that applied changes work as expected

This has broken our release pipelines when our agents auto-updated to 2.175.2
Please get this fix out ASAP

We are also affected by this issue. Thanks to LuizMacedo for already submitting a fix!

Any updates on this issue, we are facing the same issue when i run ssh in inline script mode i am getting error no such file or directory. I am using windows agent with version 2.170.1

Same Here.
See:
Issue: https://github.com/microsoft/azure-pipelines-tasks/issues/13661
UserVoice: https://developercommunity.visualstudio.com/content/problem/1209307/ssh-run-shell-inline-script-on-remote-machine.html

Hello everyone. Please, check the new PG for the issue: https://github.com/microsoft/azure-pipelines-tasks/pull/13663


Feat/flex

Codecov Report

Merging #176 (84536a0) into dev (483abc3) will increase coverage by 2.58%.
The diff coverage is 83.76%.

@@            Coverage Diff             @@
##              dev     #176      +/-   ##
==========================================
+ Coverage   87.70%   90.29%   +2.58%
==========================================
  Files         380     1516    +1136
  Lines        3856     6727    +2871
  Branches      954     1026      +72
==========================================
+ Hits         3382     6074    +2692
- Misses        370      508     +138
- Partials      104      145      +41

Impacted Files
Coverage Δ

...magma-dom/src/components/Button/Button.stories.tsx
0.00% <0.00%> (ø)

.../react-magma-dom/src/components/Checkbox/index.tsx
95.00% <0.00%> (ø)

...act-magma-dom/src/components/Combobox/Combobox.tsx
92.85% <ø> (ø)

...agma-dom/src/components/Combobox/MultiCombobox.tsx
93.44% <ø> (ø)

...ma-dom/src/components/DatePicker/CalendarMonth.tsx
100.00% <ø> (ø)

...eact-magma-dom/src/components/DatePicker/index.tsx
97.41% <ø> (ø)

...a-dom/src/components/Dropdown/Dropdown.stories.tsx
0.00% <0.00%> (ø)

...om/src/components/Dropdown/DropdownSplitButton.tsx
100.00% <ø> (ø)

...act-magma-dom/src/components/Flex/Flex.stories.tsx
0.00% <0.00%> (ø)

...m/src/components/IconButton/IconButton.stories.tsx
0.00% <0.00%> (ø)

... and 1873 more

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 d42697c...84536a0. Read the comment docs.


Fix --no-default-features

cargo build/check/test --no-default-features is broken and a CI step was included to avoid the same problem in the future

Closing in preference to #678, which makes more drastic removals for --no-default-features.  Thanks for raising this issue!

This closure was unexpected. The work was indented to fix the problem and if the the current approach isn't desired, then you guys could at least hint the appropriated direction.

I'm sorry! I didn't want to make more work for you by saying "please re-do this pr." Fixing --no-default-features required making a lot of listener code conditional (everything except the traits)

@jbr Dont worry. Thanks for the fix 👍


DropdownItem content overflow hidden

Describe the bug

Content of the DropdownItem Component, that exceeds the size of the Component, will be hidden.
To Reproduce

One possible way:

set locale: 'de' in the config.yml

Expected behavior

No overflowing content.
Screenshots

Applicable Versions:

netlify-cms-app 2.12.5
netlify-cms-core 2.24.0
netlify-cms 2.10.41
os: linux x64 pop_os 19.10
browser: chrome Version 80.0.3987.163

Additional context

Can be fixed by setting the min-width: max-content property to anything different
https://github.com/netlify/netlify-cms/blob/174d86f0a083a8c89e832962e3bdfe4163def428/packages/netlify-cms-ui-default/src/styles.js#L328

This could be a possible solution too, overriding the DropdownList style with:
element.style {
    right: 0;
    left: auto;
    width: auto;
}


better configuration docs

The current description is shit and needs redone, But im not ready to rewrite it yet. i want to make configuration easier so that i have an easier time explaining how to do it. if i make progress on it and it seems to make it harder to use then ill have to make a section specifically for creating the tables someone might want

closing because i made a more broad requirement thats, and this has already been somewhat fulfilled


Use effects for actions

This PR introduces the Effect type to deal with asynchronous computations performed by actions returned from primitive tasks.
The Effect type is a mix between a promise, a function and an
observable. It provides a way to combine an async computation with a
sync version which "simulates" the effect that the async computation
will have on the underlying system. These types are also composable via
map and flatMap, which would allow building more complex effects
from simpler ones, however this is outside the scope of the current PR
(see PR #33 for a use of those ideas).
This PR changes the Action type to return effects instead of a Promise
which makes all actions observable by default, while keeping the action result
awaitable. This change is compatible with the existing API
Change-type: minor

I self-certify!


Add theme module

Problem
It would be nice to be able to create some nicely formatted widgets using themes.
In #786 and #787 we added material and tailwind palettes.
In #781 we tweaked the table example a bit to use a nicer layout and colors (note, the example image has not been updated yet - this needs to be a little less frantic to look nice on the example page):

The code for this is fairly verbose:
https://github.com/ratatui-org/ratatui/blob/6e52d55e944b6758908ec78977d22085c1076131/examples/table.rs#L120-L165
It would be nice to be able to somehow use this sort of format with a single line of code that selects some nice defaults:
Solution
Need to design an API for this carefully to accept both built-in and user themes.
This might look something like:
let table = Table::new(rows, widths).theme(ratatui::style::themes::material::slate_blue::TABLE_THEME);

Or something similar. I'm not sure whether we want a theme type per widget, or go a bit more meta and use higher level design scheme like properties - e.g. "primary", "secondary", "accent", ... It would be difficult to support both tailwind and material if we took this approach (though perhaps we do both and map the design scheme approach into the more narrow widget theme approach). There's a good article about how this might work at https://m3.material.io/foundations/design-tokens/overview
Alternatives

Additional context

let table = Table::new(rows, widths).theme(ratatui::style::themes::material::slate_blue::TABLE_THEME);

It is possible we wouldn't need widget specific themes. I think it would be possible to have an API like this:
let table = Table::new(rows, widths).theme(ratatui::style::themes::MATERIAL_BLUE)

where MATERIAL_BLUE is a palette for primary, secondary, colors, along with styles for text, border, background etc. And when this is passed in to a widget, widgets can pick the colors from UI elements that they want.
I imagine it would be possible to get to a point where MATERIAL_BLUE can be passed into any widget and the widget displays it well. For example, nvim has highlight groups that map UI elements to colors.
For example, here's a palette loosely based on catppuccin:
{
  base = "#eff1f5",
  primary = "#04a5e5",
  secondary = "#209fb5",
  overlay0 = "#9ca0b0",
  overlay1 = "#8c8fa1",
  overlay2 = "#7c7f93",
  subtext0 = "#6c6f85",
  subtext1 = "#5c5f77",
  surface0 = "#ccd0da",
  surface1 = "#bcc0cc",
  surface2 = "#acb0be",
  text = "#4c4f69",
}

And the THEME (e.g. CATPPUCCIN_LATTE) could be:
struct CATPPUCCIN_LATTE {
  foreground: Color, // defaults to palette.base
  background: Color, // palette.surface1
  background0: Color, // palette.surface2
  text_foreground: Color, // palette.text
  border_foreground: Color // palette.base.darken(20%)
  table_column_border_foreground: Color // palette.base.darken(40%)
}

The reason having a palette is useful is we can use HSLuv or something similar to generate shades (like the border_foreground example above).

The question then becomes which design scheme do we use for choosing those names.
https://m3.material.io/foundations/design-tokens/overview has some good ideas about how to make this hierarchical.
Particularly https://m3.material.io/foundations/design-tokens/how-to-read-tokens
What I like about that approach is that you can design for dark and light themes, and use a context to choose which one is displayed. Your widget component theme can map onto the tokens of the overall theme nicely.
I think at least one of the material design crates already handle these concepts, but I haven't dug into it yet.


Setup automated Jenkins jobs for building/testing master branch

Jobs were created. Need to check automation

For now this has no extra gates compared to mobile_app.

@relja128 The "gate" will be needed for PRs only. Because only approved/tested/buildable PRs can be merged to the master branch. Additional issue #42 was created


CodeIgniter Forums - Cannot Register

Try going to the following URL, click on Agree. The "Submit Registration!" button on the next page does not do anything.
https://forum.codeigniter.com/member.php?action=register
Also there is a captcha error on the bottom right of the page that says "This site key is not enabled for the invisible captcha."

Sorry about that. Should be all fixed up now. Thanks for reporting it!


Rename Symbol when object destructuring leads to compiler error

VSCode Version: Code 1.17.1 (1e9d36539b0ae51ac09b9d4673ebea4e447e5353, 2017-10-10T14:24:50.851Z)
OS Version: Windows_NT x64 10.0.14393
Typescript: 2.5.3

Might be another case of https://github.com/Microsoft/vscode/issues/36252 but a little different so opened a separate issue.
Steps to Reproduce:

I have this code

interface Result {
    a: number;
}

export function doThing(): Result {
    const a = 5 + 10;

    return {
        a
    };
}

export function DoTheThing(): void {
    const { a } = doThing();
}

Highlight a were object destructuring is occurring (in the DoTheThing function).
F2 - rename symbol to b

Expected:

No compiler errors
Something like the following

interface Result {
    b: number;
}

export function doThing(): Result {
    const a = 5 + 10;

    return {
        b: a
    };
}

export function DoTheThing(): void {
    const { b } = doThing();
}

Actual:
interface Result {
    b: number;
}

export function doThing(): Result {
    const a = 5 + 10;

    return {
        b // <-- this has the error below
    };
}

export function DoTheThing(): void {
    const { b } = doThing();
}

severity: 'Error'
message: 'Cannot find name 'b'.'
Reproduces without extensions: Yes

This issue was moved to Microsoft/TypeScript#19176


Add eval?

Is your feature request related to a problem?
We currently have query, which can runs a numexpr string using eval.
Describe the solution you'd like
Should we add an eval method itself? I find that when building something for the command line, allowing people to pass an eval-able expression can be a good interface.
Describe alternatives you've considered
No response
Additional context
No response

This was labeled as completed with #7163 , but if I'm reading the documentation correctly, Dataset.eval does not allow the numexpr engine, like the original comment by @max-sixty requests. Any idea if there is any plan to enable the numexpr engine like in the original comment
I am doing math operations on very large dataarrays, and am trying to find ways to avoid making lots of copies of the data. numexpr seems like it is smarter about this than a python engine would be.

Any idea if there is any plan to enable the numexpr engine like in the original comment

I don't think anyone is working on it. But we'd be very open to a contribution...


Make option to create zoomified coolers?

Will probably add "library_zoomified" and "library_group_zoomified" folders to cooler outputs.

As in the #45 , we'd need to create zoomified coolers for library and library_group level coolers, right?
Do we still want to control both with a single params flag?
Are we going to imply that zoomified coolers have to be balanced, or do we need another params.flag? Or probably use the same flag as in #45 to control balancing?
We could simply use the cooler corresponding to the min of params['bin'].resolutions to do zoomify, is that ok?
Any particular --balance-args we'd want to expose as params.flag? Same applies to #45 , actually - we might probably provide them as a single piece ${extra_args_options} and substitute in cooler balance ${extra_args_options} -o out.cool in.cool  and cooler zoomify --balance --balance-args "${extra_args_options}" -o out.multires.cool  in.hires.cool .  Does that sound ok?

solved by @sergpolly (totally agree with the proposed solution: zoomify both libraries and library_groups, reuse flags from the balancing step)


Add DeviceAuthEndpoint input field for AzureAD custom endpoints

Issue:

https://github.com/rancher/rancher/issues/42939

SURE-4275
Is your feature request related to a problem? Please describe.
To completely support the https://github.com/rancher/rancher/pull/44285 we also need to add one extra input field in the AzureAD configuration section, for the custom endpoints.
A user can provide custom endpoints, and we should support also a custom DeviceAuthEndpoint.

@gaktive @nwmac  we need this to complete our CLI feature for 2.9, and the June Patch release. The PoC is linked above for your team's reference of the backend changes. Feel free to reach out to Enrico for anything
cc @CamrynCarter for prioritization confirmation

https://github.com/rancher/dashboard/issues/10616 filed to investigate for the UI portion of this, though I'll have to check if this was on our radar before.

@samjustus We need this prioritized from a UI standpoint?

@CamrynCarter correct, for us to complete the feature in full

Hi @enrichman, does this change affect Steve or Norman API? UI is using /v3/authconfig to create and manage auth configuration including AzureAD
Thank you,
Evgeniya

@eva-vashkevich yes, it extends the API adding the deviceAuthEndpoint extra field to handle the new DeviceAuthEndpoint, so no breaking changes.

UI created their own issue for completing this work https://github.com/rancher/dashboard/issues/10616


Fix broken link.

Proposed changes
Fix broken link.
Unreleased project version (optional)
N/A
Related issues (optional)
N/A

Deploy preview for docsdocker ready!
Built with commit 4f25895adee479afbe12f1a74bbf240bdbcf293f
https://deploy-preview-9853--docsdocker.netlify.com


Gallery subfolder sometimes isn't created

In Windows, gallery subfolders don't always get created.
In the three occurrences I've seen, the gallery name contained characters that aren't usable for filenames (namely "/" , "|" and """ ). I'd suggest replacing those invalid characters with a _ .
BTW I'd also ensure that the combined path + filename doesn't exceed 250 characters, perhaps by shortening the subfolder name... It isn't a filesystem limitation per se, but many applications don't correctly work if the total path length exceeds that limit.
Thanks for this utility!

Thanks! I'll fix this in the nearest update!

Update posted to addons gallery.


🧑💻: Add Google translate feature

:red_circle: Title : Google Translator
:red_circle: Enhancement Aim : It will translate the whole page.
:red_circle: Changes : Changes the language
Screenshots 📷

:white_check_mark: To be Mentioned while taking the issue :

Full name : MuraliDharan N G
What is your participant role? (Mention the Open Source Program name. Eg. GSSOC, SSOC, JWOC, etc.)
GSSoC'24 Contributor

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

@MuraliDharan7 go ahead.


File transfer

This PR transfers the repo from my personal one to the team one. Everything should work here as long as the instructions are followed.

I have fixed every comment now, but am still waiting on response from @CGodiksen on some of the comments. When you have time, please make a review and resolve these comments if properly answered. Thank you.


Typo in content/v2.0/query-data/get-started/_index.md

Line 27 in: content/v2.0/query-data/get-started/_index.md
reads "last 5 minutes" but I think it should read "last hour".
The code example says "-1h" but the textual description says 5 minutes.
Relevant URLs
https://v2.docs.influxdata.com/v2.0/query-data/get-started/
What products and version are you using?
2.0 docs on the website.

Thanks @joeyhagedorn! Nice catch! Fixing...

Thanks for the quick fix!


Were dev tools removed?

I swear I somehow opened it before, maybe it was in one of drop-down menus above...

nwm I had to enable developer mode


Workaround to Postal Code DB error

Fixes #470
This is an initial workaround to solve the immediate issue of a DB error being thrown up to the UI when trying to save a campaign with a postal code set.
Before saving the campaign I have added a check to validate if the city, state and postal code combination are valid (only triggered if the postal code is supplied in the form) which will return a model error to the user if the postal code is not found.

@mheggeseth can I get a review?

Looks good. :shipit: I was a little unsure about creating a whole query for a supposedly temporary workaround, but it may be useful to have a query that tells you whether a postal code is valid so I'm good with keeping it.


Support for multiple cells

Any plans for support multiple cells. Since would be nice to have more than one item next to eachother

What do you mean?

Like a grid layout

I don't think to do some special mode for that, you can make item container with any data and view

Well, when i add a grid layout to the content. Items are appearing weird

Anyway, I'll support current realization as known as default data driven solution. If you want to add some features – do it :)


Update and rename README.adoc to README.md

@jackripper235

Hello @jackripper235 can we assume that this PR can be closed ? It looks very much like a test. Thanks!

@jackripper235 I closed the PR, assuming that it was indeed the result of some kind of testing.


Build crate ignoring #[ligen] macro calls

Make it possible to build the crate normally and on the stable toolchain while skipping over the #[ligen] macro calls when being built without cargo ligen

This is not necessary in the Ligen crate, we can allow ligen to be called but ignore it in the generators if the rustc flag is not set, which is being set in cargo-ligen before running build


Update transform-data.md

I fixed what looks like a typo to me; changed "transform and processes" to "transform and process"

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

@jameshkramer - thanks for the catch!


Error "Expected a different collection record structure" in Crisis Communication app

Hello team,
I imported the Crisis Communication app, removed and readded Sharepoint data source as in the instruction. I still got the error "Expected a different collection record structure" in the colNav collection in the Home menu component of the Home screen:

Would you please advise how to fix it?
Thank you.

Hello folks,
Even I am facing the same issue  after importing the Crisis Communication app, removed SharePoint data source as in the instruction. I still got the error "Expected a different collection record structure" in the colNav collection in the Home menu component of the Home screen. Anyone please Help me fix this Issue..
Nadiya Sayedi
<EMAIL_ADDRESS>

I am facing the same issue


Fix LiveQuery unsafe user

The LiveQuery server was explicitly calling enableUnsafeCurrentUser(), which should not be used in a server environment.
As far as I can tell, this was only used to provide a convenient way to get the user for a session token. I've replaced that mechanism with one that is safe to use when unsafeCurrentUser is disabled. I've also reviewed the LiveQuery code and fixed a place where it was issuing a call without using the master key.
The combination of these issues could result in unexpected failures for invalid session tokens.
Fixes #3516

That looks great! Thanks!


Android Basics: tip-calculator

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-tip-calculator?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-tip-calculator#3
In which task and step of the codelab can this issue be found?
4
Describe the problem
The text says the following "but in Euros, it would be formatted €1.234,56." this is only true for countries like Italy. Most places in Europe we use the comma to separate thousands and the dot for decimals.
Steps to reproduce?
N/A
Versions
N/A
Additional information
N/A

@ @clintonmagro
Thank you for reaching out to us and sharing this information. This is in contrast with how large numbers are formatted in the United States. We'll keep  this fact in mind when creating a codelab next time.


Promote memory to registers

Child of https://github.com/KhronosGroup/SPIRV-Tools/issues/457

WIP by @greg-lunarg

Various passes contributed by @greg-lunarg cover this.   Further enhancement/generalization will be handled with separate issues/cards/tasks.


Create dslcc.txt

@dkzver I am sorry, there are signs of this domain is being misused. This page https://www.dslcc.edu/technical-services/google-apps/ associates it with VCCS system, which is known to provide an ability to register an email address there even if you are not a student of the college.
If you are the student of this college, please apply with official document ("OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students).


Musl - Arm64

I would like to know if Pyroscope supports Alpine\Arm64.
I saw the docker image that is supported, but the first test didn't work: Img Docker

It is not supported. The arm images are just stubs that will print a message "profiling not supported"


BBB notes

Enable SPIdev1.0
Add the following to /mnt/boot/uEnv.txt:
enable_uboot_overlays=1
uboot_overlay_addr0=/boot/overlays/BB-SPIDEV1-00A0.dtbo

 gateway-config  /opt/start-gateway-config.sh: 15: /opt/start-gateway-config.sh: cannot create /sys/kernel/debug/bluetooth/hci0/adv_channel_map: Directory nonexistent
 gateway-config  /opt/start-gateway-config.sh: 17: /opt/start-gateway-config.sh: cannot create /sys/kernel/debug/bluetooth/hci0/adv_min_interval: Directory nonexistent
 gateway-config  /opt/start-gateway-config.sh: 18: /opt/start-gateway-config.sh: cannot create /sys/kernel/debug/bluetooth/hci0/adv_max_interval: Directory nonexistent

@shawaj is this valid. Is BBB going to be suppported hardware for our light miners.

No, we're not going to use BBB so you can close this out.

Yeah sorry this was just still open from a while ago


LICENSE

There is no LICENSE file here, so it's not clear what the license is.

Got that fixed: https://github.com/lithdew/kademlia/commit/50909bd894c08ae2975cfb3e7c833c33ce333325
Thanks for the heads up :smile:. Let me know if you have any questions about it.


[summer of code] elastic training on kubedl

Topic Description
elastic training has become new fashion in distributed model training, both job-completion-time and average cluster utilization benefited from it, we'd explore a native elastic training solution on kubedl and start from elastic-torch
Assignee
TODO

assign to EEEEEEYu


[SPARK-24800][SQL] Refactor Avro Serializer and Deserializer

What changes were proposed in this pull request?
Currently the Avro Deserializer converts input Avro format data to Row, and then convert the Row to InternalRow.
While the Avro Serializer converts InternalRow to Row, and then output Avro format data.
This PR allows direct conversion between InternalRow and Avro format data.
Credits to @cloud-fan .
How was this patch tested?
Unit test

Test build #92975 has started for PR 21762 at commit bb7a43c.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/929/
Test PASSed.

Test build #92975 has finished for PR 21762 at commit bb7a43c.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class AvroDeserializer(rootAvroType: Schema, rootCatalystType: DataType)
 sealed trait CatalystDataUpdater
 final class RowUpdater(row: InternalRow) extends CatalystDataUpdater
 final class ArrayDataUpdater(array: ArrayData) extends CatalystDataUpdater
class AvroSerializer(rootCatalystType: DataType, rootAvroType: Schema, nullable: Boolean)
class IncompatibleSchemaException(msg: String, ex: Throwable = null) extends Exception(msg, ex)
class SerializableSchema(@transient var value: Schema)

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/92975/
Test PASSed.

Test build #93026 has started for PR 21762 at commit aa5e79e.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/970/
Test PASSed.

Test build #93026 has finished for PR 21762 at commit aa5e79e.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/93026/
Test PASSed.

thanks, merging to master!


Support remote file backend.

filename should be just a name without a path.
If a file doesn't exist, deleting should fail gracefully without throwing an exception.

PR: https://github.com/perfectsense/gyro-azure-provider/pull/129


Add inline assets priority

Use md5 from content for discard multiple iterance.

Can you give me more details about what this issue is your solving with this? Perhaps some example on how i can recreate it?

No one issue, i read the file and found on inline_css the priority param, so i get idea to add priority feature to inline assets.
I post the pull request but not need to add, for this use "feature" type :)

https://github.com/namaless/grav/commit/e013cf70dbc084b4a4112ae48746e1f82b5bc6ed#diff-036bc801ec8840ea4247592b9ded7a66L298


Optimize crop! when only cropping top/bottom

I am working on a project where cropping performance is critical. There
are some situations where we only need to crop to the tops and/or
bottoms of images and I noticed an opportunity to take a shortcut to get
some perf gains.
I generated the cropped_height.png reference image by running
operations.png through imagemagick with the following command:
convert operations.png -crop 16x8+0+5 cropped_height.png
I tested the performance improvement in a little benchmark:
require 'benchmark'

pixels = []
width = 2000
height = 2000
(width * height).times { pixels << rand }

crop_opts = [0, 100, 2000, 1000]
x, y, crop_width, crop_height = crop_opts

n = 10
Benchmark.bmbm do |b|
  b.report('baseline:') do
    n.times do
      new_pixels = []
      for cy in 0...crop_height do
        new_pixels.concat pixels.slice((cy + y) * width + x, crop_width)
      end
    end
  end

  b.report('optimized:') do
    n.times do
      pixels.slice(y * width, width * crop_height)
    end
  end
end

The results of this show very good improvement:
Rehearsal ---------------------------------------------
baseline:   0.080000   0.070000   0.150000 (  0.144634)
optimized:  0.000000   0.000000   0.000000 (  0.000006)
------------------------------------ total: 0.150000sec

                user     system      total        real
baseline:   0.050000   0.070000   0.120000 (  0.126334)
optimized:  0.000000   0.000000   0.000000 (  0.000008)

This also seems to help with memory allocation for this scenario. Using memory_profiler in my benchmark script, it looks like the baseline method allocates 170,737,280 bytes vs 400 bytes for the optimized method.
In my real world scenario, this optimization drops chunky_png's memory allocation down from 1,044,501,338 bytes to 814,534,400 bytes. Of this savings, it looks like the operations.rb files memory allocation drops from 238,269,424 bytes to 8,302,424 bytes.

Nice :+1:. Keep it coming :)


Keyboard hidden TextInput when changing android/app/src/main/res/values/styles.xml

Current Behavior
To let the statusBar be transparent in Android, I add the code to /android/app/src/main/res/values/styles.xml that is :
<resources>
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="android:windowTranslucentStatus">true</item>
        <item name="android:windowTranslucentNavigation">true</item>
    </style>
</resources>

But then in React Native , Keyboard hidden the TextInput when focus.
Before adding that transparent codes, the TextInput is normal.
Expected Behavior
Even adding that transparent codes, the TextInput should be normal anytime.
Your Environment

software
version

react-navigation
1.0.0-beta.11

react-native
0.45.1

node
7.10.0

npm
4.2.0

I'm not sure if this is an issue related to React Navigation. Is this an issue with React Native or this library? If this is an issue with React Native, you can open an issue on the React Native repo.

Closing this issue. If you believe that this is an issue with React Navigation and not React Native, please reopen another issue with more details about the problem you are experiencing.


Windows certificate generation

Client certificate generation using windows is required for production-line deployment.
OpenSC provide a minidriver and pkcs#11 module for windows, providers can be listed using certutil -csplist
Request information specified using INF files:
[NewRequest]
; At least one value must be set in this section
Subject = "CN=test-client-cert,E=pki@test.com,OU=TestOrg_UNIT,0=TestOrg,S=TestCity,c=CN"

HashAlgorithm = Sha512
KeyAlgorithm = RSA
KeyLength = 2048
KeyUsage = "CERT_DIGITAL_SIGNATURE_KEY_USAGE | CERT_KEY_ENCIPHERMENT_KEY_USAGE | CERT_KEY_AGREEMENT_KEY_USAGE"
RequestType=PKCS10

Create a CSR using certreq -new client.inf client.req
Signing via certutil -sign  .\client.req client.crt locates the correct certificate, but, fails with:
CertUtil: -sign command FAILED: 0x80090014 (-2146893804 NTE_BAD_PROV_TYPE)
CertUtil: Invalid provider type specified.

And I don't know how to get the private key in this instance either...
Possibly should try using openssl with opensc-pkcs#11 :-/

OpenSSL installed via chocolatey loads configuration from C:\Program Files\OpenSSL-Win64\openssl.cfg.
Config (from here:
openssl_conf = openssl_init

[openssl_init]
engines = engine_section

[engine_section]
pkcs11 = pkcs11_section

[pkcs11_section]
engine_id = pkcs11

dynamic_path = "C:\\Windows\\SysWOW64\\pkcs11.dll"
MODULE_PATH = "C:\\Program Files\\OpenSC Project\\OpenSC\\pkcs11\\opensc-pkcs11.dll"

init = 0

However C:\\Windows\\SysWOW64\\pkcs11.dll does not exist, nor is there a pkcs11.dll in C:\Program Files\OpenSSL\lib\engines-1_1\pkcs11.dll as expected by openssl.
Running 'C:\Program Files\OpenSSL-Win64\bin\openssl.exe' x509 -engine pkcs11 results in:
invalid engine "pkcs11"
16692:error:25078067:DSO support routines:win32_load:could not load the shared library:crypto\dso\dso_win32.c:108:filename(C:\Program Files\OpenSSL\lib\engines-1_1\pkcs11.dll)
16692:error:25070067:DSO support routines:DSO_load:could not load the shared library:crypto\dso\dso_lib.c:162:
16692:error:260B6084:engine routines:dynamic_load:dso not found:crypto\engine\eng_dyn.c:414:
16692:error:2606A074:engine routines:ENGINE_by_id:no such engine:crypto\engine\eng_list.c:334:id=pkcs11
16692:error:25078067:DSO support routines:win32_load:could not load the shared library:crypto\dso\dso_win32.c:108:filename(pkcs11.dll)
16692:error:25070067:DSO support routines:DSO_load:could not load the shared library:crypto\dso\dso_lib.c:162:
16692:error:260B6084:engine routines:dynamic_load:dso not found:crypto\engine\eng_dyn.c:414:

Openssl binaries from https://slproweb.com/products/Win32OpenSSL.html do not seem to have paths replaced sensibly (looking for .so rather than .dll files etc.), try another build i guess?

Building libp11
In the x64 (!!) developer terminal:
git clone https://github.com/OpenSC/libp11
cd libp11
nmake -f Makefile.mak OPENSSL_DIR="c:\Program Files\OpenSSL-Win64" BUILD_FOR=WIN64

Win64 / VS2019 outputs libp11.zip
Updating C:\Program Files\OpenSSL-Win64\openssl.cfg with dynamic_path = "C:\\Users\\Ryan\\projects\\libp11\\src\\pkcs11.dll" gets pkcs11 to load at least!

omg it works!
C:\Users\Ryan\projects\ca [master ≡ +4 ~0 -0 !]> .\scripts\new-client.cmd electronpowered ep-int-01 test-client

C:\Users\Ryan\projects\ca>set ROOT_NAME=electronpowered
C:\Users\Ryan\projects\ca>set INT_NAME=ep-int-01
C:\Users\Ryan\projects\ca>set CLIENT_NAME=test-client
C:\Users\Ryan\projects\ca>set OPENSSL_BIN="C:\Program Files\OpenSSL-Win64\bin\openssl.exe"
C:\Users\Ryan\projects\ca>set KEY_LEN=2048
C:\Users\Ryan\projects\ca>set EXPIRY_DAYS=9999

"Using existing key: electronpowered/test-client.key"
"Generating CSR: electronpowered/test-client.csr"
engine "pkcs11" set.
Signature ok
subject=C = NZ, ST = Auckland, O = ElectronPowered Ltd, OU = Research and Development, CN = test-client, emailAddress =<EMAIL_ADDRESS>Getting CA Private Key
Enter PKCS#11 token PIN for Yubico PIV Authentication:
Enter PKCS#11 key PIN for SIGN key:
C:\Users\Ryan\projects\ca [master ≡ +4 ~1 -0 !]> ls


Update Airdrops Platinum Information

Token Address
https://scan.tomochain.com/tokens/0xe6a7bf45333a7018f709760263b7a5200d245ed3
Token Symbol
APT
Token Name
Airdrops Platinum
Token Logo

Token Description
Airdrops Platinum is the main gateway platform for projects and startups that will transform into a blockchain system with the full support of the worldwide community. Our vision is to create jobs for every people without income restrictions by participating in product development, blockchain projects and advertisers event.
Website
Under construction
Social links

https://t.me/airdropsplatinum_channel
https://t.me/airdropsplatinum_official
https://t.me/airdropsplatinum_news
https://twitter.com/Airdropplatinum
https://www.youtube.com/channel/UC6WA1mWOZtV9WhCmHrGxYxQ
https://www.linkedin.com/groups/13973476/
https://medium.com/@airdropsplatinum

done

We need to update token logo size.


Update observability quickstart to include local instruction

Description
Update observability quickstart to include local instruction
Issue reference
Please reference the issue this PR will close: #288
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[ ] The quickstart code compiles correctly
[ ] You've tested new builds of the quickstart if you changed quickstart code
[x] You've updated the quickstart's README if necessary

Few minor changes

Thanks a lot. I've addressed them all.


DDR doesn't respond to inputs after leaving pause menu

This also affects item select (I think?), and might have a good solution if we copy the inputmanager invocation lists and store the invocation lists temporarily while paused before inputmaps are changed. We can then reapply the invocation list after unpausing, thus preserving the delegate subscriptions


Update InternshipCard in the GUI to display {company name}[space]{role}

Remove the existing line for the role field in the InternshipCard too


Better description of parameters in Cloudformation Template

I have heard from different sources, that the ParameterLabels for domain, subdomain and NotificationsMail are not really helpful:

It is often confusing for what use-cases the domain/subdomain are being used for. From my understand, it is only for the RootMail feature at the moment, isn't it?
What Notifications are sent to the NotificationsMail and why should someone opt-out/opt-in from that?

When I have more answers, I will also make a PR to offer a better description.

Talked with Sebastian and Robert:

For now the only notifications sent to the NotificationsMail are notifications about new OpsItems (they are created because of the rootmail feature). In the future there might be more notifications, but nothing planned yet. (Technical background: Those notifications are sent over SNS and the NotificationsMail is a subscriber of this topic)
only used for Rootmail feature. Will adapt the Description of the Cloudformation Template

Not stale :)


AMD and CommonJs support

This is a great library, but it doesn't conform neither to AMD, nor to CommonJs.
As a polyfill it has to change the global scope to conform to the specs, but this is not always possible or desired.
For example, in Firefox Addon there is no way of changing the global (it is a Sandbox), thus there is no way this library can be included (require('.setImmediate') doesn't work, even though it is CommonJs environment).
There might be other environments that prohibit changing the global scope in any way.
On the other hand, even when possible, it might be undesirable to change the global scope and this is what AMD is all about. I should be able to load two different implementations of setImmediate() at the same time without any conflict.
The changes I made:

When loaded using AMD, no global scope touched, but export toGlobal() method, so that user can choose to export setImmadiate to global scope.
When in CommonJs nevironment, add setImmediate and clearImmediate to exports. Because I didn't wanna change old behaviour, in CommonJs it still tries to export to global as well, but I would not do that unless desired (eg. use toGlobal).

Dupe of #38.

Not 100% dupe!
I have nothing against shims, but I just have no way to use it in Firefox Addon!
In addition to trying to patch the global (yes, trying!), it should also export something.

Sorry, you should probably create another package for that. That's not the purpose of this package.

Ok, got it.
Thanks


LazyLoad and appendSlide doesn´t load first Image

Hi,
i need to append all Slides dynamically. So i´m using this code.

and JS
var pgal0 = [
    {src: 'assets/images/9/8B4MQPNAB6-5505aee9.jpg'},
    {src: 'assets/images/6/ESTTV0M8OG-43b7a666.jpg'},
    {src: 'assets/images/7/T96V0685JW-69354fe7.jpg'},
    ....
];

$(".initGallery").on("click", function() {
        var swiperGallery = new Swiper(".swiper-gallery", {
          nextButton: ".sgn",
          prevButton: ".sgp",
          grabCursor: true,
          preloadImages: false,
          lazyLoading: true,
          onInit: function(swiperGallery) {
            swiperGallery.appendSlide([
              "

",
              "

",
              "

",
             ...
         ]);
       }
    });
  });

this causes, that the first image isn´t loaded. But swiping to the next slide, and sliding back loads the first image well.
When using "swiperGallery.prependSlide" first displayed image is being loaded.
Did i forgot an additional parameter or this is kind og Bug ?
p.s.: This is a really nice Plugin!!!

There is no sense to do that - to load all slides within init event. Just append them before you init Swiper:
$('.swiper-wrapper').append('
...
...');
var swiperGallery = new Swiper(".swiper-gallery", {
          nextButton: ".sgn",
          prevButton: ".sgp",
          grabCursor: true,
          preloadImages: false,
          lazyLoading: true,
})

Hey,
this works. Thanks for your help.


Refactor complex operations to backend service actions

Checked for duplicates
No - I haven't checked
Alternatives considered
Yes - and alternatives don't suffice
Related problems
Some common operations are currently implemented with complex front-end logic that makes it difficult to reproduce the capability via the Aerie API. (Deleting an activity is the one that spawned the thought.)
Describe the feature request
It would be nice if complex logic like this were more frequently implemented as Hasura actions that interact with a back-end service so that client applications don't need to duplicate logic implemented in the UI. I think the solution for plan upload was a great demonstration of this pattern.

Lazily adding more thoughts here on coupling between the UI and backend, another pain point is the user role. As I understand, there is a lot of coupled logic between Hasura and the UI in order to indicate to the user which operations are available with a given role, but having this logic only available in the UI makes it very difficult to decode permission vs. query errors when going through Hasura.


Add NLP Tutorial

This builds upon

#174 (the tutorial does not work otherwise - really important)
#171

TODO

add references at the end to the other tutorials

EDIT:
You can now see the tutorial with the images right here.  Apart from that, I'm interested in opinions content- and style-wise :crossed_fingers:

Looks good! 👍
Review:

For the DF output, it would be elegant if you just copy-paste the output as we are doing in the getting-started (See "Getting Started" section, for instance, >>> df.head(2) )
This will need to go under website/blog as this is a Tutorial blog post and not a "getting started" page
Try to have subsection shorter and eventually add a sub-sub section.
"Of course, we use Texthero's count_sentences function.". Is "Of course" pertinent?

Extra:

We will need to adapt a bit the CSS code for the code snippet, it does not look that good (but that's not related with this PR)

Example:
Count Sentences - Who is the most well-known superhero?
Becomes
Count Sentences
Who is the most well-known superhero?

Incorporated the suggested changes from both your reviews :parachute: .

This will need to go under website/blog as this is a Tutorial blog post and not a "getting started" page

I believe that this should be getting-started-nlp (We accidentally named it tutorial-nlp) as this showcases the nlp module and tutorials should probably be more focused and in-depth (e.g. "Sparsity" or "Topic Modelling")


Adding DbgPrint and DbgPrintEx to Wdm

Small first pull request to begin adding missing functions from NtDll assembly. Couldn't for the life of me find anything that looked like a proper short id.
Marshalling the strings so that they are treated similarly to other PCSTR instances.
Was a bit unsure of how to treat arguments, so based it on WsMan.cs and used an IntPtr.

Thanks. Just a few notes on the changes I made:

Whenever possible, I provide enumerations and constants for methods like DbgPrintEx. You'll see those in DpFilter.cs.
PCSTR translates to [MarshalAs(UnmanagedType.LPStr)] string (not LPTStr). LPStr ensures that the string is always passed as ANSI and doesn't depend on any function level attributes for char type.
... in C++ always has to be an IntPtr in C#. I wrote a function (InteropExtensions.MarshalObjectsToPtr) to convert an object array to an allocated memory pointer to handle this conversion.
I added overloads to both functions that do the conversion above to simplify it for users

Thank you for the feedback and instruction!


fix(header/p2p): add trivial retrying for trustedPeer requested

Codecov Report

Merging #1647 (0e6fdd4) into main (b727ff6) will increase coverage by 0.02%.
The diff coverage is 63.63%.

@@            Coverage Diff             @@
##             main    #1647      +/-   ##
==========================================
+ Coverage   54.91%   54.93%   +0.02%
==========================================
  Files         231      231
  Lines       14999    15008       +9
==========================================
+ Hits         8236     8244       +8
- Misses       5882     5883       +1
  Partials      881      881

Impacted Files
Coverage Δ

libs/header/p2p/exchange.go
66.30% <63.63%> (-0.56%)
:arrow_down:

libs/header/p2p/server.go
76.10% <0.00%> (+1.88%)
:arrow_up:

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


Are loss/accuracy ratios a better early stopping condition than actual lack of improvement?

I'm going through the 2nd edition chapter 10 notebook and working on the "Training and Evaluating the Model" section. Going through the "Using Callbacks" section, the EarlyStopping method seems useful (by default using no improvement for some number of epochs). For some reason, my learning curves plot looks different. I may have tweaked something, but I think I have the random seed inits the same. It looks like mine starts to overfit way earlier than the book graph suggests. I can see how to make my own metric and incorporate into a custom early stopping callback, but it's not clear what the metric should be. Your example prints out the val_loss/loss ratio. I did that and it starts drifting up after epoch 10, which brings up some questions. Should this ratio be used as an early stopping condition? At what value (1.0, 1.5, . . .)? Better to use a ratio of accuracies as an overfitting indicator? Any other interesting metrics indicate overfitting? Graph below. Thanks.

Hi @gkd720 ,
Thanks for your question! This difference may be due to the fact the "sgd" optimizer used to have a default learning rate of 1e-3, but this was changed recently to 1e-2 (presumably to match the default in the multi-backend Keras implementation at keras.io).
So please use optimizer=keras.optimizers.SGD(lr=1e-3) instead of "sgd", and I'm guessing everything will fall back into place.

Yep. That was it. Thanks. Got to 88.25% training accuracy, 87.9% validation accuracy, and 86.6% on the test set after 70 epochs. Both validation and training loss still decreasing pretty much monotonically, without any hyper parameter tuning, and with a val/train loss ration at 1.04,  so no overfitting suspected yet, and accuracies still might drift up somewhat.
But back to my early stopping criteria questions above: What do the cool data scientists use (actual improvement amounts, loss ratio, accuracy ratio, etc.)? Or do they just eyeball an accuracy, and think "good enough"? Thanks again.

Thanks for your feedback, glad to know that setting the learning rate to 1e-3 fixed the discrepancy. Regarding your early stopping question, I'm not sure about cool data scientists, but I think the rest of us use the validation metric as the criterion: we're interested in how well the system will perform on new instances, and the validation metric is a fairly good way to estimate this, so if it stops improving, we should stop training.
Comparing the training loss and the validation loss is useful to know how bad overfitting is. If the spread is large, you don't just want to stop training, you also want to fix the problem, for example by training on more data, or regularizing the model, etc. Which implies retraining.
Hope this helps!

In your "If the spread is large", does that mean a large ratio, or just a large difference?
Anyway, I went ahead and did Chapter 10 Exercise 10 on the MNIST digits dataset (Doh! I now suspect you meant the fashion dataset. Oh well, it was a good exercise and I wanted to try hyper parameter tuning.) Trying some typical ranges, it ran for almost 2 hours on my late 2012 iMac with a 3.4 GHz Intel Core i7 and 16GB memory running at 800% (4 HT physical cores) which quickly kicked in the fan. The best model achieved 98.01% (WooHoo! . . . unless it's not really that hard for the digits vs. the fashion set). Is it possible to see live results in the Jupyter notebook during the tuning run? I see the results flying by in my terminal window but most of it scrolled out of the display buffer. I did see a warning about output going to stderr before some kind of "flag" assignment, so I guess I would have to explicitly write them to a file? I did see an occasional model summary fly by, so I guess writing from the build_model function can work. Would assigning the fit results to a "history" variable have forced the output to Jupyter? Could they be seen live, or only after all experimentation was completed? My concern is how to detect overfitting before all the runs are done.
Code/results below for review, or as another data point in the solution space. Thanks.
X_valid, X_train = X_train_full[:5000] / 255., X_train_full[5000:] / 255.
y_valid, y_train = y_train_full[:5000], y_train_full[5000:]
X_test = X_test / 255.

def build_model(n_hidden=1, n_neurons=100, learning_rate=3e-3, input_shape=[28,28]):
    model = keras.models.Sequential()
    model.add(keras.layers.Flatten(input_shape=input_shape))
    for layer in range(n_hidden):
        model.add(keras.layers.Dense(n_neurons, activation="relu"))
        n_neurons=n_neurons//3     # drop by an integral third each successive layer
    model.add(keras.layers.Dense(10,activation="softmax"))     # We know last level must pick 1 of 10 digits
    optimizer = keras.optimizers.SGD(learning_rate)
    model.summary()
    model.compile(loss="sparse_categorical_crossentropy",
                  optimizer=optimizer,
                  metrics=["accuracy"])     # Need this for early stopping.
    return model

keras_clf = keras.wrappers.scikit_learn.KerasClassifier(build_model)

from scipy.stats import reciprocal
from sklearn.model_selection import RandomizedSearchCV

param_distribs = {
    "n_hidden": [1, 2, 3],
    "n_neurons": np.arange(100, 500),
    "learning_rate": reciprocal(3e-4, 3e-2),
}

np.random.seed(42)
tf.random.set_seed(42)
# May have to Kernel -> Reconnect to see all results.
rnd_search_cv = RandomizedSearchCV(keras_clf, param_distribs, n_iter=20, cv=3, verbose=2, n_jobs=-1)
rnd_search_cv.fit(X_train, y_train, epochs=100,
                  validation_data=(X_valid, y_valid),
                  callbacks=[keras.callbacks.EarlyStopping(patience=10)])

Fitting 3 folds for each of 20 candidates, totalling 60 fits
[Parallel(n_jobs=-1)]: Using backend LokyBackend with 8 concurrent workers.
[Parallel(n_jobs=-1)]: Done  25 tasks      | elapsed: 54.9min
[Parallel(n_jobs=-1)]: Done  60 out of  60 | elapsed: 105.8min finished

model=rnd_search_cv.best_estimator_.model
model.summary()

Model: "sequential_4"
_________________________________________________________________
Layer (type)                 Output Shape              Param #
=================================================================
flatten_4 (Flatten)          (None, 784)               0
_________________________________________________________________
dense_11 (Dense)             (None, 341)               267685
_________________________________________________________________
dense_12 (Dense)             (None, 113)               38646
_________________________________________________________________
dense_13 (Dense)             (None, 10)                1140
=================================================================
Total params: 307,471
Trainable params: 307,471
Non-trainable params: 0

rnd_search_cv.best_params_
Out[54]:
{'learning_rate': 0.02298924804076755, 'n_hidden': 2, 'n_neurons': 341}

model.evaluate(X_train, y_train)
55000/55000 [==============================] - 2s 31us/sample - loss: 0.0041 - accuracy: 0.9999
Out[56]:
[0.004096633061076599, 0.99985456]

model.evaluate(X_valid, y_valid)
5000/5000 [==============================] - 0s 31us/sample - loss: 0.0652 - accuracy: 0.9820
Out[57]:
[0.06520095226885751, 0.982]

model.evaluate(X_test, y_test)
10000/10000 [==============================] - 0s 33us/sample - loss: 0.0688 - accuracy: 0.9801
Out[59]:
[0.06882534091388516, 0.9801]

Sorry for the late response.
98% accuracy on MNIST is good. With convolutional neural nets, you can go beyond 99% accuracy, and with data augmentation, ensembling, learning rate schedule, and so on, you can reach 99.7%.
To get live results in Jupyter, you probably should use the TensorBoard callback when you call the model.fit() method, and use the %tensorboard magic command to view progress.
Regarding your question about detecting overfitting: if you train your model and get good performance on the validation set, you might not care that there's a bit of overfitting. So usually what happens is you are unhappy about the validation performance, and you try to understand what happens, and the gap between the train metric and the validation metric is so great that you conclude that it's an overfitting problem, so you regularize your model or you find more training data or you reduce the size of your neural network (less layers, less neurons...), and so on. I've never tried to automate the interruption of training based on an overfitting criterion, but I guess you could. I think I would wait until the training metric reaches some threshold, and I would then stop training if and when the valid/train metric ratio reaches some other threshold. Not sure that's great, it's my first hunch. However, if we interrupt training while the validation metric is still improving, we run the risk of throwing away a model that would have been fantastic, despite some overfitting. What matters in the end is the generalization performance. I would prefer a model with 90% accuracy on the test set and 100% on the training set, versus a model with 80% accuracy on the test set and 85% on the training set. The first one overfits more than the second, but it's still much better.
Hope this helps.


git-annex assistant

To sync data between my offices, I used git-annex extensively.  I installed nixos 15.09 recently, and the "assistant" part of git-annex (which does the syncing) no longer appears to be available.  In nixpkgs, there a note about using git-annex-with-assistant (or something similar), but it didn't look to be accessible to me.
Anything reasonably quick I can do to get back my beloved assistant?

The command git annex assistant seems to work just fine after installing nix-env -iA gitAndTools.gitAnnex. What makes you say that the Assistant would be missing? How did you install git-annex?

my /etc/nixos/configuration.nix installs gitAndTools.gitAnnex as a
systemPackage.  These are the relevant files in /nix/store:
/nix/store/rvm17dxhjli1j8wrcc3r4cj1l9bhjljk-git-annex-5.20151102.1/

/nix/store/0nm72kfxywfv3qy77a6ixj03m170bgyq-git-annex-5.20151102.1.tar.gz.drv
/nix/store/s46h63rfipg1ma4j3qq1hhf7mdw8jqfm-git-annex-5.20151102.1.drv
Here's what the command line says:
% git annex assistant --autostart
Invalid argument `assistant'

This is on Nixos 15.09.  Any ideas?
On Wed, Dec 16, 2015 at 6:00 PM, Peter Simons<EMAIL_ADDRESS>wrote:

The command git annex assistant seems to work just fine after installing nix-env
-iA gitAndTools.gitAnnex. What makes you say that the Assistant would be
missing? How did you install git-annex?
—
Reply to this email directly or view it on GitHub
https://github.com/NixOS/nixpkgs/issues/11708#issuecomment-165175006.

Fixed by https://github.com/NixOS/nixpkgs/commit/ffd10ac482e24b76d2d7b6f7f172f36e4895a541.

Thanks!
On Wed, Dec 16, 2015 at 11:00 PM, Peter Simons<EMAIL_ADDRESS>wrote:

Closed #11708 https://github.com/NixOS/nixpkgs/issues/11708.
—
Reply to this email directly or view it on GitHub
https://github.com/NixOS/nixpkgs/issues/11708#event-494015455.


A sentence is not the main text.

That is 'Figure 1-3 A character that extends outside of the em square'.
I think that it is the caption of figure immediately below.

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

ID: 8c1e0369-7235-11e6-d1ef-f0a57fca7588
Version Independent ID: 78d6c664-b275-f986-5374-c3d01ef3ccb2
Content: TrueType fundamentals - Typography
Content Source: typographydocs/opentype/spec/ttch01.md
Product: typography
GitHub Login: @PeterCon
Microsoft Alias: PeterCon

This is the core OT spec. @PeterCon, who should update this?


Use util.promisify instead of fs-promise

Apparently fs-promise is deprecated.

So much for mz/fs.


Unable to install detectron2==0.6+cu111

detectron2 requires Python ≥ 3.7 but capeam is build on Python3.6

Detectron2 officially states that Python 3.7 or higher is required. However, it seems to work on Python 3.6 as well. Although the official documentation specifies Python 3.7 and above, I have successfully run Detectron2 on Python 3.6. This might be due to backward compatibility or specific configurations.
I installed detectron2 in a Python 3.6 environment using the following command:
python -m pip install detectron2 -f \   https://dl.fbaipublicfiles.com/detectron2/wheels/cu111/torch1.8/index.html


Extra parenthesis

README.md contains an extra bracket in the Contributors section.

I will work on it.

Assigned @udaymewada


Possibly Misleading: "This linker option is not available from the Visual Studio development environment"

While it is true that there is no specific property within a project's property pages that allows one to set a /DEFAULTLIB value, it seems misleading to say that the option is not available from the Visual Studio development environment.  The Linker | Command Line property page may be used within Visual Studio to specify /DEFAULTLIB.  A casual reader might take that sentence to mean more than it is really trying to say?

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

ID: 147c472f-8e2f-f936-349b-5fd526143b53
Version Independent ID: 35c431c6-2d5d-c8f1-e678-0bae77aaa71d
Content: -DEFAULTLIB (Specify Default Library)
Content Source: docs/build/reference/defaultlib-specify-default-library.md
Service: unspecified
Product: visual-cpp
GitHub Login: @corob-msft
Microsoft Alias: corob

True enough. I've updated the text to include the usual instructions for adding something via the Additional Options property, and made a few other minor editorial changes. This fix is in progress and should appear in a day or two.

Content is live.


Custom SSH port not working

Documentation says that it should be possible to specify the port. https://guild.ai/docs/reference/user-config/#ssh-remote
guild remote status my-ssh
I get connection timed out on port 22
remotes:
my-ssh:
type: ssh
port: 50000
user: example
host: ssh.example.com
guild-env: /example/my-model

No mention of ports in the code but looks like an easy fix. ssh_util.py
Would fix myself and make a PR but spent too much time trying to make with several different errors

Thank you! I'll get to that today.
If you could open an issue wrt your make errors, that'd be very helpful! I'd like to make it super easy for anyone to build.

Ah, good catch! I'll update the README so that's easier people.
On Wed, Jun 12, 2019 at 8:27 AM Richard Löwenström<EMAIL_ADDRESS>wrote:

I did not find any installation instructions because I only looked in the
readme. I found it on the homepage now and they worked for me
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/guildai/guildai/issues/28?email_source=notifications&email_token=AABNE5OGJYDDVHFMPP2YZWLP2D2TXA5CNFSM4HXHHSK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXQNAIA#issuecomment-501272608,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABNE5IFTC6NPTOIXX7ORWTP2D2TXANCNFSM4HXHHSKQ
.

@gar1t I started on this in a fork: https://github.com/samedii/guildai but got stuck on port not being defined in config like I thought it would be. Hoping you will see an easy solution to that

@samedii This is now supported in the latest release - 0.6.4. You can upgrade by running pip install --upgrade guildai. If that resolves your issue we can close this issue. Thanks again!

Thanks! Status is working, having trouble with running but I think that's my config


Consumption event subscription on unwanted queues

Hi Anthony,
I wanted to clear my understanding on the following workflow -
Let's say in ServiceX we have an Exchange 'A' which has the following queues q1, q2 & Exchange 'B' which has queue 'q3'. So what we do is declare exchange settings, like this,
"ExchangeA": {
"Type": "direct",
"Durable": true,
"AutoDelete": false,
"DeadLetterExchange": "exchange.a.dlx",
"RequeueFailedMessages": true,
"Queues": [
{
"Name": "q1",
"Durable": true,
"AutoDelete": false,
"RoutingKeys": [ "q1.routing.key" ],
"Arguments": {
"queue-mode": "lazy"
}
},
{
"Name": "q2",
"Durable": true,
"AutoDelete": false,
"RoutingKeys": [ "q2.routing.key" ],
"Arguments": {
"queue-mode": "lazy"
}
}
]
}
"ExchangeB": {
"Type": "direct",
"Durable": true,
"AutoDelete": false,
"DeadLetterExchange": "exchange.b.dlx",
"RequeueFailedMessages": true,
"Queues": [
{
"Name": "q3",
"Durable": true,
"AutoDelete": false,
"RoutingKeys": [ "q3.routing.key" ],
"Arguments": {
"queue-mode": "lazy"
}
},
]
}
This setting will be used in the QueueService.cs => StartExchange() & StartQueue() to build exchange and queue bindings.
Now as a convention stated by Rabbit Mq we declare Exchange and queue bindings in each app service that depends on using the same as a publisher or consumer.
Further in this example, let me state that ServiceX is a publisher publishing messages in q1, q2 and a consumer consuming from queue q3, well in this case what we do is get the IQueueService instance and say .StartConsuming() which brings us to the part where I need some clarification -
QueueService.cs => StartConsuming()
If we see this method

You can notice that it will iterate through each exchange [ExchangeA & ExchangeB] and bind consume event to all the queues in the exchange, which effectively means that ServiceX now has become a consumer from q1, q2, q3 which is not intended in this example. This leads to a  potential issue of a direct route messaging becoming a worker queue (ServiceX as one of the consumer ) messaging and ServiceX hogs on its own published messages (in q1 or q2) resulting in intended consumer not receiving it.
In my example above please feel free to throw in light, if there is any short coming in my understanding or if you think this is an intended code workflow to follow a convention I am unaware of or if it is a potential issue according to you as well.
Potential fix would be to provide flexibility to the developer to define a setting in RabbitMqQueueOptions to say 'isConsumer' which in turn can be used to filter in StartConsuming function to avoid declaring a service as a consumer on queues that it is not intended to consume. Let me know what you think.
Regards,
Kashif

Dear Kashif, thank you for asking.
Frankly speaking I have not had a case in which one application uses two exchanges. So I need a little bit of time to investigate and reproduce that.
So I am aware of the problem and will try to give you detailed answer asap. To be more precise if I have enough time I will try to do it next week.

Hi Anthony,
Thank you for replying.
Further to your reply, I wanted  to add that the example that I took is to stress on the fact that if a service (ServiceX) is publishing in queue A and B and consuming from C (irrespective of single / multiple exchange), we will still run into the problem of ServiceX establishing consumption event subscription on queue A and queue B, which is not intended. In this example we would have been fine if Service X did not have to consume from queue C because that would mean that you will not invoke StartConsuming() method.
I would suggest that for reproducing you can have two service X & Y have a single direct exchange E1 and have 3 queues in it.
Make X publish in q1 and q2 and make Y consume from q1 and q2.
So far you will not have to use StartConsuming() method in Service X as it is only publishing.
Generating the issue -
Now make Service X consume from q3, so use startConsuming() method.
Start Service X before service Y (important because X will be a priority consumer from q1 and q2)
Now, start service Y as well.
In the Rabbit admin page for q1 and q2 you will notice that consumer count is showing as 2, this is an indication of the error but it gets worse when you publish and notice that messages are never reaching message handlers of q1 and q2 that you have defined in Service Y, and if you notice the logs you will find that you getting delivery ack as well (Service X is sending you those).
Let me know if this makes sense and if it helps in reproducing the issue.
Regards,
Kashif

Hello, Kashif @skashif .
I apologize again for the long answers. Unfortunately, I didn't have much free time to deal with the problem, but I finally got around to solving it.
I analyzed several solutions and decided that the best way with the least changes would be to add an option for exchanges that would control their behavior on message consumption. So i ended up with couple new extension methods and one change for AddExchange method.
So for now if you want to add an exchange that only for message production then use method AddProductionExchange like this
    services.AddRabbitMqClient(rabbitMqSection)
        .AddProductionExchange("exchange.A", Configuration.GetSection("ExchangeSectionA"));

This is equivalent to:
    services.AddRabbitMqClient(rabbitMqSection)
        .AddExchange("exchange.A", isConsuming: false, Configuration.GetSection("ExchangeSectionA"));

But if you want an exchange that will do both producing and consuming then use AddConsumptionExchange. The usage is the same
    services.AddRabbitMqClient(rabbitMqSection)
        .AddConsumptionExchange("exchange.A", Configuration.GetSection("ExchangeSectionA"));

So this is equivalent to:
    services.AddRabbitMqClient(rabbitMqSection)
        .AddExchange("exchange.A", isConsuming: true, Configuration.GetSection("ExchangeSectionA"));

I found that adding new methods is more consistent for fluent API style which this library trying to follow.
Also i changed a readme file a bit to cover those changes.

And the main change inside the QueueService is
var consumptionExchanges = _exchanges.Where(x => x.IsConsuming);
foreach (var exchange in consumptionExchanges)
{
    foreach (var queue in exchange.Options.Queues)
    {
         _channel.BasicConsume(queue: queue.Name, autoAck: false, consumer: _consumer);
    }
}

To sum up I can say that you won't get any unwanted messages anymore. At least I hope to.
Give it a try and tell me if it is working or not.
Regards,
Antony

Hi Anthony,
Thanking you for taking time to address the issue. In theory the above changes looks promising to work but unfortunately I will not be able to test it with my current solution because of the lib v3.0.2 prerequisite of .net core >v3 and my solution is currently on .net core v2.2. We do not plan to use .net core v3 or higher for production use yet.
Please let me know if you would be pushing changes to lower version of your library to provide backward compatibility for .net core apps with v^2 or lower.
Thanks & Regards,
Anthony.

Hi, Kashif,
I made another version of the library compatible with .Net Core 2.2. Since I switched to the versioning model which follows version on the platform that library patch has the save version v2.2.0. So you can finally try it!
Feel free to leave a review on the lib, I am not gonna close this issue yet.
Regards,
Kashif

Hi Anthony,
Thank you for your reply, I will definitely try this and get back to you.
In the mean time, I have a different question if you don't mind answering it -
What do you think is a good approach to handle publishing of message in an offline scenario, i.e., if the rabbit mq server is down then channel .publish is going to throw an exception which means that we loose the message we trying to publish. Please let me know if you have taken care of such offline scenarios to log your messages and republish when the connection is recovered.
Regards.

Hi Anthony,
I can confirm that the changes are working well. Thank you for giving time to address the issue.
Regards.

Hello Kashif,
As for your question about keeping your application stable when RabbitMQ shuts down, I actually do not know a recipe for this. This question is rather polemical coz there are a lot of different hacks you can use but neither of them is unique solution. It also varies of how you use RabbitMQ.
So the base idea is to store all messages somewhere when RabbitMQ shuts down and then re-send them after Rabbit starts running again. And that somewhere can be anything: files, cache, database, another "backup" queueing system and etc. etc.
With files you can get in trouble with file locks on writing. Cache (Memcache, Redis cache or whatever)  is kind of a hack because it designed for different problems. Database is okay but you have to manage database connections properly (I assume it has to be in scoped mode, not transient) otherwise you can exceed the connection limit and lose messages anyway. Another "backup" queueing system seems like an overhead (you can just use RabbitMQ clustering).
I would have personally made a thing with database (with single table with columns [exchange; routing key; message]) and some sort of IHostedService which can check whether RabbitMQ is down or not and resend messages from the database easily. But again this solution is not ideal at all.
Feel free to tell me if you make any of this hacks by sending me an email which is showing in my profile.
And thank you for the feedback. I will close this issue for now.
Regards,
Antony


Can't install pagekit

I'd like to test this awesome looking CMS, but I've got stuck at installing.
I've got PageKit 0.8.7 & PHP v5.5
Currently I'm trying to install it on a hoster called hostinger.
My website is mmodefender.cu.cc
So, the issue is that after I press Install, I fill in all the details and I press Next. What happens? Nothing. Not even an error message, or the next step.
What did I do wrong?
If you have any special question please ask, I'll gladly answer :)
Thank you!

We released the Pagekit Beta today. I close this issue because the code base completely changed. Please open a new issue if it still exists.


Add PSNR target parameter to jpegli encoder.

Could you explain here or in a code comment what this does at a high level? If I understand correctly, when optimizing for PSNR you don't need adaptive quantization and you basically do a binary search to find out what amount of global quantization to use to get to a given target PSNR?
Shouldn't it in principle be possible to one-shot it instead of searching? After all, PSNR should be more or less the same thing as the average quantization error, so the same quantization constants should lead to more or less the same PSNR (modulo some image content dependency).

This code is not optimizing for PSNR, it simply selects a distance value that would result in a given PSNR, while doing everything it would do otherwise, including adaptive quantization if enabled. You are right that disabling adaptive quantization leads to a better file size for the same PSNR value. It did this mostly to be able to compare against sjpeg codec that has a similar option.

I see, thanks for the clarification.


Missing Step

The script first tries to find the api key this way
api_key = ENV["BUGSNAG_API_KEY"]
but I can't find any tutorials or installation docs that say we need to add an Environment variable named BUGSNAG_API_KEY and set the value to our key
Then the script tries to get the key from the Info.plist but I also can't find any tutorials or sections in the installation guide that say I should add the api key to my plist
# If not present, attempt to lookup the value from the Info.plist
if !api_key
  default_info_plist_location = Dir.glob("./{ios/,}*/Info.plist").reject {|path| path =~ /build|test/i }
  plist_buddy_response = `/usr/libexec/PlistBuddy -c "print :BugsnagAPIKey" "#{default_info_plist_location.first}"`
  api_key = plist_buddy_response if $?.success?
end

Since there are no instructions to add these values in either of these places, my dSYMs are NOT being uploaded so this plugin doesn't actually work.

Thanks for the report, @freddy1h. I've updated the instructions to include setting your API key and the script to fail if no API key is specified.


Use GCC-12 when compiling LLVM for x86_64

Link to action: https://github.com/PennyLaneAI/catalyst/actions/runs/10044575840
Context: It looks like the container updated GCC and LLVM does not like being compiled with GCC-13 (but is ok with GCC-12).
Description of the Change: Explicitly used GCC 12 when building the wheel
Benefits: Building the wheel.

The action in the link https://github.com/PennyLaneAI/catalyst/actions/runs/10044575840 passed what has been previously been failing.


Istioctl kube-inject fails to validate config map

Kube-inject is not working in latest master, it complains about not finding the config map, but the map is there, it is the validation that fails.
$ istioctl kube-inject -f samples/apps/bookinfo/bookinfo.yaml -v 10
I0718 13:29:16.027956   21258 loader.go:354] Config loaded from file /usr/local/google/home/andracis/.kube/config
I0718 13:29:16.029744   21258 round_trippers.go:398] curl -k -v -XGET  -H "Accept: application/json, /" -H "User-Agent: istioctl/v0.0.0 (linux/amd64) kubernetes/$Format" -H "Authorization: Basic YWRtaW46UXBsdHVPN0E4U29VT2F0Vg==" https://<IP_ADDRESS>/api/v1/namespaces/default/configmaps/istio
I0718 13:29:16.165889   21258 round_trippers.go:417] GET https://<IP_ADDRESS>/api/v1/namespaces/default/configmaps/istio 200 OK in 136 milliseconds
I0718 13:29:16.165918   21258 round_trippers.go:423] Response Headers:
I0718 13:29:16.165931   21258 round_trippers.go:426]     Content-Type: application/json
I0718 13:29:16.165941   21258 round_trippers.go:426]     Content-Length: 537
I0718 13:29:16.165951   21258 round_trippers.go:426]     Date: Tue, 18 Jul 2017 20:29:16 GMT
I0718 13:29:16.166004   21258 request.go:991] Response Body: {"kind":"ConfigMap","apiVersion":"v1","metadata":{"name":"istio","namespace":"default","selfLink":"/api/v1/namespaces/default/configmaps/istio","uid":"75b97d6e-6bea-11e7-884f-42010a8a01ba","resourceVersion":"8657121","creationTimestamp":"2017-07-18T18:53:59Z"},"data":{"mesh":"# Uncomment the following line to enable mutual TLS between proxies\n# authPolicy: MUTUAL_TLS\nmixerAddress: istio-mixer:9091\ndiscoveryAddress: istio-pilot:8080\ningressService: istio-ingress\nstatsdUdpAddress: istio-mixer:9125\nzipkinAddress: zipkin:9411"}}
Error: Istio configuration not found. Verify istio configmap is installed in namespace "default" with kubectl get -n default configmap istio
$ kubectl get -n default configmap istio
NAME      DATA      AGE
istio     1         2h

@andraxylia any workaround for this?

The master is still broken, even if some fixes went in, this is the current issue.
istio/pilot#971
The workaround is to supply --hub and --tag to istioctl:
. istio.VERSION
wget $ISTIOCTL_URL/istioctl-osx
mv istioctl-osx istioctl
chmod a+x istioctl
kubectl apply -f install/kubernetes/istio.yaml
kubectl apply -f <(./istioctl kube-inject -f samples/apps/bookinfo/bookinfo.yaml --hub $PILOT_HUB --tag $PILOT_TAG)
I tried with this SHA sourced from current istio.VERSION:
wget https://storage.googleapis.com/istio-artifacts/pilot/5633d45a99138892a0ba0d380dff5c587583edd3/artifacts/istioctl/istioctl-osx
k apply -f <(./istioctl kube-inject -f samples/apps/bookinfo/bookinfo.yaml --hub gcr.io/istio-testing --tag 5633d45a99138892a0ba0d380dff5c587583edd3 --namespace default)

should be working in 0.2.0 (but not on mac, https://github.com/istio/istio/issues/544)
it may/may not be working with custom / local builds or sourcing istio.VERSION (not sure we support that anymore, we wanted to get away from sourcing istio.VERSION afaik)
please reopen or file a specific issue if something is still not working


Avoid inaccurately inferring xhr abort - rebase.

@pygy
As requested :-)
(Apologies for getting it wrong initially :-s )

Great!
And, well... we all missed it until earlier today...


Branch length handling

The branch length preprocessing will need to be done in the model (i.e there are some branches that don't have lengths).
Issue identified in #22

Fixed.


feat: Add different output support to queries

This commit adds the ability to choose the output format of a query via
the v3 api so that a user can choose, whether by Accept headers or the
format url param, how the data will be returned to them.
Prior to this commit the default was a pretty printed text format, but
that instead has been changed to json as the default.
There are multiple formats one can choose:

json
csv
pretty printed text
parquet

I've tested each of these out and it works well. In particular the
parquet output is exciting as users will be able to perform a query and
receive back parquet data that they can then load into say a Python
script or something else to work on and operate it. As we extend what
data can be queried, as well as persisting it, what people will be able
to do with Edge will be really cool and I'm interested to see how users
will end up using this functionality in the future.
Note @pauldix that I'm opening this up as a draft until #24605 is merged as this work depends on it. I'll rebase and remove that code from here once it is. The most relevant bits of the PR are in influxdb3_server/src/http.rs if you want to look at it before the other PR is in.

I updated the test to check each format. However, I'm only uncertain about the check on the host for the parquet file one. The other values seem to change fine and I can test for them if I change the input data, but if I change the host name it does not work. I'm okay with the changes overall, but that test I feel a bit iffy on, but I can also serialize the parquet data to a RecordBatch so overall I think it's fine.

Hey @pauldix I updated the PR and it now successfully handles the check for parquet files as well. The data was just stored a little deeper it seems. We should be all good now!

Rebased off main and fixed the lint problem with clippy. I'll merge afterwords


policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+ #1658

policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+ #1658
please help on this

Please disable the PodSecurityPolicy:
global:   rbac:     pspEnabled: false


Add support for DSA signature checking under BoringSSL + tests

BoringSSL does not support DSA signatures via x509_verify so this adds extra handling for that case if x509_verify fails with an unsupported algorithm.

PTAL.

I think I've fixed everything, assuming Travis agrees.


Including specific features from crate in org-babel

Hello! Firstly thank you for the awesome work, this package has made writing and dealing with rust in emacs a breeze.
I was wondering if it's possible to specify particular features I want from a crate when using rustic with org-babel? For example, if I want to use serde and #[derive(Serialize)] with org-babel and rustic I can't seem to currently, since I need to include features = ["derive"] in the Cargo.toml entry for serde.
Supposing this functionality isn't available at the moment, would you be open to a PR to add it? Admittedly my elisp knowledge is almost non-existent, however this might be a good intro.

Hey, sure I would accept a PR. However I'm currently not sure how difficult it is. Since we want to have the contents of the Cargo.toml file in a different babel block we have to link the blocks somehow, so when the main block is executed the contents of the corresponding Cargo.toml block are inserted automatically.
When you have a solution for that the rest will be easy.

Hey, sure I would accept a PR. However I'm currently not sure how difficult it is. Since we want to have the contents of the Cargo.toml file in a different babel block we have to link the blocks somehow, so when the main block is executed the contents of the corresponding Cargo.toml block are inserted automatically.
When you have a solution for that the rest will be easy.

It should be similar to the logic that is needed for #122.

It should be similar to the logic that is needed for #122.

Hey, thanks for the swift reply. It seems I have underestimated the task considerably :) Sadly I don't think I'm in a position right now to tackle this properly with my current elisp knowledge.
However I think I may have found a hack for my use case. I was messing around with function rustic-babel-cargo-toml which takes the alist specifying the crate to also accept a pair of (version (features ..)) in the cdr position, for example:
#+begin_src rustic :crates '((serde "1.0" ("derive")) (serde_json . "1.0"))
...
#+end_src

or
#+begin_src rustic :crates '((tokio "1.0" ("rt-multi-thread" "macros")))
...
#+end_src

and got it working, it merely replaces the crate_name = version_num string that is generated and added to Cargo.toml with crate_name = {"version" = version_num, "features = [feature_1, feature_2, ..]}. Would a PR with this be of any use?

Hey, thanks for the swift reply. It seems I have underestimated the task considerably :) Sadly I don't think I'm in a position right now to tackle this properly with my current elisp knowledge.
However I think I may have found a hack for my use case. I was messing around with function rustic-babel-cargo-toml which takes the alist specifying the crate to also accept a pair of (version (features ..)) in the cdr position, for example:
#+begin_src rustic :crates '((serde "1.0" ("derive")) (serde_json . "1.0"))
...
#+end_src

or
#+begin_src rustic :crates '((tokio "1.0" ("rt-multi-thread" "macros")))
...
#+end_src

and got it working, it merely replaces the crate_name = version_num string that is generated and added to Cargo.toml with crate_name = {"version" = version_num, "features = [feature_1, feature_2, ..]}. Would a PR with this be of any use?

I didn't think of it before but for this case it would also be possible and easier to add a parameter :features that can be passed like :crates.
The solution I mentioned would be more difficult to implement, but it would allow using all possible options in Cargo.toml.
You would only have to extend rustic-babel-cargo-toml with similiar logic that we use for dependencies(:crates). If you want to give it a try I can help you with it.

I didn't think of it before but for this case it would also be possible and easier to add a parameter :features that can be passed like :crates.
The solution I mentioned would be more difficult to implement, but it would allow using all possible options in Cargo.toml.
You would only have to extend rustic-babel-cargo-toml with similiar logic that we use for dependencies(:crates). If you want to give it a try I can help you with it.

That sounds like a better approach, happy to have a go!

That sounds like a better approach, happy to have a go!

Regarding how it's specified, are you thinking something like the below?
#+begin_src rustic :crates '((serde . "1.0") (serde_json . "1.0")) :features '((serde . "derive"))
...
#+end_src

#+begin_src rustic :crates '((tokio "1.0")) :features '((tokio . ("rt-multi-thread" "macros")))
...
#+end_src

If so, what shall we do in the case of crates that aren't specified in :crates but do appear in :features? Possible options are set version to * or call user-error?

Regarding how it's specified, are you thinking something like the below?
#+begin_src rustic :crates '((serde . "1.0") (serde_json . "1.0")) :features '((serde . "derive"))
...
#+end_src

#+begin_src rustic :crates '((tokio "1.0")) :features '((tokio . ("rt-multi-thread" "macros")))
...
#+end_src

If so, what shall we do in the case of crates that aren't specified in :crates but do appear in :features? Possible options are set version to * or call user-error?

Hmmm I think user-error is too much in this case. But you can implement it how you want. If necessary we can always add a defcustom.

Hmmm I think user-error is too much in this case. But you can implement it how you want. If necessary we can always add a defcustom.

I've cooked something preliminary up here which appears to work on a first pass. A couple examples below:
#+begin_src rustic :crates '((serde . 1.0) (serde_json . "1.0")) :features '((serde . "derive"))
...
#+end_src

or
#+begin_src rustic :crates '((tokio . 1.0)) :features '((tokio . ("rt-multi-thread" "time")))
...
#+end_src

I also tried running make test to check I haven't broken anything however I get the below error which also appears in a clean download of the repo:
Compiling rustic-common.el

In toplevel form:
rustic-common.el:69:1:Error: Wrong type argument: listp, val
make: *** [Makefile:61: rustic-common.elc] Error 1

I've cooked something preliminary up here which appears to work on a first pass. A couple examples below:
#+begin_src rustic :crates '((serde . 1.0) (serde_json . "1.0")) :features '((serde . "derive"))
...
#+end_src

or
#+begin_src rustic :crates '((tokio . 1.0)) :features '((tokio . ("rt-multi-thread" "time")))
...
#+end_src

I also tried running make test to check I haven't broken anything however I get the below error which also appears in a clean download of the repo:
Compiling rustic-common.el

In toplevel form:
rustic-common.el:69:1:Error: Wrong type argument: listp, val
make: *** [Makefile:61: rustic-common.elc] Error 1

Yeah I remember make test is broken. Does it work with cask exec ert-runner instead ?

Yeah I remember make test is broken. Does it work with cask exec ert-runner instead ?

I believe so. Results from my fork:
Ran 245 tests in 23.140 seconds
1 expected failures

Results from a fresh download of the repo:
Ran 245 tests in 26.283 seconds
1 expected failures

I believe so. Results from my fork:
Ran 245 tests in 23.140 seconds
1 expected failures

Results from a fresh download of the repo:
Ran 245 tests in 26.283 seconds
1 expected failures

Sorry for the delay on this! I added a couple tests and opened a PR

Sorry for the delay on this! I added a couple tests and opened a PR


change default app language to "Persian" for Iranian stores

To do that, do we need a flavor for each store type? (National & International)


yq-go used different syntax for toml

Apparently yq still isn't found. https://github.com/IronCoreLabs/rust-toolchain/actions/runs/8511501727/job/23311218278?pr=8#step:4:29


.NET 8 in proc changes for dedicated linux images""

Reverts Azure/azure-functions-docker#1088
Revert revert and bring back dotnet inproc image to Docker Repo. In addition to this I will fix the tag from dotnet8 -> dotnet8.0 so that the Linux Platform can select this image

update tags to match 8.0 suffix - match the private stamp image map logs :)

Completed


Suggestion: Water Squares

a setting that can turn water circles into water squares for a more minecrafty feel

Feature request should go to Visuality.


application/x-form-urlencoded data is assumed to be latin

The www3 docs recommends to default to utf-8 when content-type is application/x-form-urlencoded if no charset information is available. NanoHTTPD currently defaults to the ASCII encoding instead.

Related to #437

I'm marking it as enhancement since the way you put it it seems like a suggestion and not a requirement.


[jvm-packages] Support external memory

Added some changes. It's not quite optimized yet, the host cache might be slow due to growing the stream. I will be on holiday until next year, so pushing as much as possible tonight.
Do we plan to do something similar for pyspark?


Diagnostic unit tests: SystemUsingDirectivesMustBePlacedBeforeOtherUsingDirectives

Implement unit tests for #68.

I have not seen this issue before.
I added some unit tests for SA1208 rule in #777 PR.


Docs update

Add an example adding tittle to the RnR_report() figure

use this topic to add a repeatability example


[Github] fix: Remove cover of product line item if media has been deleted

1. Why is this change necessary?
When a media is deleted, which has been assigned to a product, which is in an existing cart, the order process will fail:
An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`xxx`.`order_line_item`, CONSTRAINT `fk.order_line_item.cover_id` FOREIGN KEY (`cover_id`) REFERENCES `media` (`id`) ON DELETE SET NULL ON UPDATE CASCADE)

2. What does this change do, exactly?
Set the cover to null if the media is not existing on the product anymore.
3. Describe each step to reproduce the issue or behaviour.
Put an item into the cart, with an cover, remove the media of the cover item, and try to complete the order.
4. Please link to the relevant issues (if any).
-
5. Checklist

[x] I have rebased my changes to remove merge conflicts
[x] I have written tests and verified that they fail without my change
[x] I have created a changelog file with all necessary information about my changes
[ ] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

Imported from Github. Please see: https://github.com/shopware/shopware/pull/3829

[public] Shopware automated response: This issue is linked to the internal issue: NEXT-39416
[created from NEXT-39416, comment 509725]

[public]

Status Change: Open

This issue is ready for implementation.
[created from NEXT-39416, comment 509730]

[public]

Status Change: In Review

Work on this ticket is complete and is now pending review.
[created from NEXT-39416, comment 509732]

[public]

Status Change: Resolved

The ticket has been successfully completed; the solution is implemented and verified.
[created from NEXT-39416, comment 510123]

[public]

FixVersion Change: <IP_ADDRESS>

This issue will be / was solved in Shopware version <IP_ADDRESS>.
[created from NEXT-39416, comment 510124]


Add a unique method to ResourceError for easy type switch

It is currently difficult to type-switch on a ResourceError object
since some functions return values and others return pointers.
Adding a unique method to the struct allows the caller to typeswitch on
an interface without worrying about values or pointers.
Example: https://play.golang.org/p/bKw-1tl-8t

@boynton

👍


Add Mozilla Phabricator

Coverage increased (+0.001%) to 89.501% when pulling 70b412c6423ca036414b6a95affd7abd7dabd4f0 on SuriyaaKudoIsc:patch-1 into 1c3aa1b7e83cdb424a77127a2ba420790754b938 on mozilla:master.

ping @akatsoulas


Documents error？

My mother language is not English...

Is there something wrong?

The documentation isn't corrected indeed, thank you for your feedback!


VECTOR-SEARCH-8: Add optimized version of OnDiskOrdinalsMap for common case

Rework of https://github.com/datastax/cassandra/pull/737 / https://github.com/datastax/cassandra/pull/722 on diskann3 branch

Looks good!


DaemonSet fluentd-logging can't read container logs - Minikube

Versions
Hi !
I am running Minikube version: v0.22.3
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.0", GitCommit:"0b9efaeb34a2fc51ff8e4d34ad9bc6375459c4a4", GitTreeState:"clean", BuildDate:"2017-09-29T05:56:06Z", GoVersion:"go1.9", Compiler:"gc", Platform:"darwin/amd64"}

Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5", GitCommit:"17d7182a7ccbb167074be7a87f0a68bd00d58d97", GitTreeState:"clean", BuildDate:"2017-10-06T20:53:14Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

What I have done
I executed run_demo.sh and everything was deployed (pods were  running and configmap ok). :ok_hand:
What happened
However, I was't able to see logs onto Kibana.
When I execute the command kubectl --namespace kube-system logs -f fluentd-logging-z6lcd I get the following (one line for each container):
...
2017-10-23 19:30:16 +0000 [warn]: /var/log/containers/<container>.log unreadable. It is excluded and would be examined next time.
...

After googling a bit, I found out that the same issue was faced in other fluentd images (e.g. https://github.com/fabric8io/docker-fluentd-kubernetes/issues/14).
So I compared your fluentd-daemonset.yaml with the solution proposed here.
It turns out that your fluentd-daemonset.yaml definition missed an entry in volumeMounts. In particular the following:
        volumeMounts:
        ...
        - name: var-lib-docker
          mountPath: /var/lib/docker/
          readOnly: true
        ...

And then in volumes:
      terminationGracePeriodSeconds: 30
      volumes:
      ...
      - name: var-lib-docker
        hostPath:
          path: /var/lib/docker/

Once I have added them and re-deploy the DaemonSet I got the following (as expected):
...
2017-10-23 19:20:07 +0000 [info]: following tail of /var/log/containers/<container>.log
...

And now I am able to see logs onto Kibana. Hope it helps. 😃
PS: Let me know if you want a PR.

Thanks for the hint! I added the missing mount in this commit: 1ffe7b9ec0506a9675a0ed0dcbf8d43ed3302f1f
It worked for me. Can you verify it?

@hikhvar verified! It worked! You can close the issue! 😃
Thanks a lot!

Ok.


.travis.yml

add travis .yml

Sorry, I shouldn't be merging this PR here as it would override the template defaults. Let me know if you do not think this PR was a mistake.


BUGFIX: fix empty namespace error when webhook try to create resource

Ⅰ. Describe what this PR does
This PR fixes empty namespace error when webhook try to create resource. When webhook tries to mutate any pod, the objectMeta.Namespace of the pod may be empty, so it's not trustworthy to be used as the expected namespace. This PR fixes this by instead using runtimeInfo.GetNamespace().
Moreover, this PR adds log messages to help track the whole process of fuse sidecar injection.
Ⅱ. Does this pull request fix one issue?

fixes #2454
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

/test fluid-e2e

/lgtm
/approve


Generate request/response body schema based on dataclasses

Consider adding following methods for this purpose:

ControllerMethodInspector.inspect_response_body
ControllerMethodInspector.inspect_request_body

Done only for response https://github.com/mofr/winter/pull/25

@berenda-andrey Implementing it for request body it's not an issue as well, but we need to think about validation, right?

@mofr Yes, we need to think about it

Created #43 for request body and left this one for response body only.


Connection status unreliable

This is a great library. I especially like the built in reconnect-mechanism. It works well if I reboot my meteor server, but if I set the phone to flight mode, the status remains 'connected' an no automatic reconnect happens. Is this a known problem? It is probably a problem with ddp.js ...
Similarly, changing changing from Wifi to 4G connection drops the connection without any notice.

This is happened to any ddp js plugin such as asteroid, ddp-client etc. This is make any mobile apps hang sometime when changing from 3g to 4g or 4g to wifi or 4g to plane mode. I know because I am already make a production apps with ionic + ddp and also rn + ddp.

I'm about to to something about it thanks to NetInfo ;)

will wait for this too. This plugin will be amazing!

Is this still an issue ?
I do not have 3G/4G on my tablets, but when I disconnect manually my WIFI, DDP disconnects, and when I reconnect my WIFI, DDP reconnects.
My last commits might have resolve this (update ddp.js to 2.1.0). Please tell me ;)

1.0.0-beta6 definitely changed this. It seems that I cannot make the connection break anymore. Meteor.status().status is correctly changed to 'disconnected' when the network changes, and it is reestablished automatically. It does, however, take very long to reconnect. connection.connected stays false for up to about 10 seconds.
Before, I tried this approach with NetInfo:
  constructor() {
    ...
    NetInfo.isConnected.addEventListener(
      'change',
      this.changeNetInfo.bind(this)
    );
  }
  ...
  changeNetInfo(isConnected) {
    if (isConnected)
      Meteor.connect(METEOR_URL);
  }

This seemed to reconnect quickly (without noticeable time disconnected), but subscriptions somehow also need to be refreshed, I think.

On Ionic I can simply rerender all components with refreshing the page by force, when DDP is offline. Because it will make it hang about 10 sec when dc in ionic if I am not doing that (don't know on react).
How did it happen on react-native @tvogels ? Is it hang on dc or it just can't get data or completely broken?

I think I can close this issue now.
Fast reconnection when network state changes has been added in 1.0.0-beta7.
Thanks @tvogels !

@radiegtya I make my app show a loading screen when the reactive variable Meteor.status().connected == false. This loading screen just showed for 10 seconds when I switch network. But now it seems to work well, indeed. Thanks a lot, @Mokto!

this is amazing! thanks @tvogels @Mokto

@Mokto : btw subscriptions still not reconnected automatically, and it make my data cannot displayed when switching 3g/4g to wifi

Any update about this @Mokto

I'm reopening this and will think about it when I am more available  ;)

@Mokto : thanks, will wait for this before updating my production apps. :+1:

Oh then I will be looking into this very fast !

btw this can be hacked by Meteor.ddp.on('connect') function then set a state to trigger subscriptions. but those thing is not working too. Dunno why or I should importing another module.
An auto subscribe when reconnect will be better though.
Thanks a lot @Mokto

Should be ok now ;)
1.0.0-beta12.
Feel free to reopen if any issue !

how to use this? I am console log something in "startMeteorSubscriptions" method and nothing is printed while reconnecting?

Update: dunno why but it just work.. I'll update the status when I found any more bug. Thanks a lot @Mokto

Nothing to do indeed, I restart every subscription when it is reconnected to DDP.

I'm also having this issue. My react-native app disconnects and hangs by switching networks
( Wifi -> 4G ).
Mind you my app is already deployed in Ad Hoc Deployment it shouldn't need to stay in the same network. My meteor.connect is pointing to my production servers too.


MSFT_audio_emitter implementation

This change implements the MSFT_audio_emitter extension for the glTF loader.

We already have ufo on assets.babylonjs.com/ufo.glb. is it the same?

only one conflict and I can merge