Incorrect URL for the Python client library on k8s.io/docs/reference/client-libraries/

This is a...

[ ] Feature Request
[x] Bug Report

Problem:
The URL to the Kubernetes Python client library is currently documented as: github.com/kubernetes-incubator/client-python/. Correct would be: github.com/kubernetes-client/python/.
Proposed Solution:
Change the URL in the documentation to: github.com/kubernetes-client/python/, pointing at https://github.com/kubernetes-client/python
Page to Update:
https://kubernetes.io/docs/reference/client-libraries/

PR with fix was merged: https://github.com/kubernetes/website/pull/7505


bug: The "to Edit" popup is too hard to dismiss when selecting to the end of a line

IDE Information
GoLand 2024.1.4
Build #GO-241.18034.61, built on June 20, 2024
Licensed to Michael Henderson
Subscription is active until January 31, 2025.
Runtime version: 17.0.11+1-b1207.24 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.5
GC: G1 Young Generation, G1 Old Generation
Memory: 16000M
Cores: 10
Metal Rendering is ON
Registry:
ide.completion.variant.limit=500
suggest.all.run.configurations.from.context=true
Non-Bundled Plugins:
org.asciidoctor.intellij.asciidoc (0.42.2)
com.sourcegraph.jetbrains (6.0.8-nightly)
com.intellij.tailwindcss (241.17890.21)
Bug Description
I’m using JB Goland with v6.0.8 nightly. When I highlight to the end of the line, Cody displays a wee box with “Ctrl + Shift + glyph to Edit.” That box requires too much effort to dismiss and breaks my concentration. I have to press Escape or the RIGHT ARROW to make it go away. The LEFT ARROW does nothing. When I’m just trying to change code from the caret to the end of the line, it’s annoying.

I think that this is a bug and not a feature since I can’t turn it off and it prevents me from easily changing code from the caret to the end of the line.
Other than that, I really like the feature.
(https://community.sourcegraph.com/t/the-to-edit-popup-is-too-hard-to-dismiss-in-jetbrains-ide/607)
Additional context
No response

May be a duplicate of #1798.

+1 Agree, the extra "shortcut tip" can be annoying for users who already know these shortcuts.
Please make it configurable on/off to give users the option of seeing it.

we'll work on this next, thanks for reporting!

Fixed with v6.0.14 of the plugin.


bug: lazy ignores the configured opts.git.url_format when self-updating

Did you check docs and existing issues?

[X] I have read all the lazy.nvim docs
[X] I have searched the existing issues of lazy.nvim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
v0.10.0-dev-295+g01f81ed89
Operating system/version
debian 11 (bullseye)
Describe the bug
I am running neovim behind a corporate firewall.
There is a local mirroring service that provides access to certain GitHub repositories.
Lazy.nvim is configured to download packages from mirror urls:
-- Configure Lazy to find plugins on repomirror
local opts = {
  git = {
    url_format = 'https://repomirror.company.com/github-neovim/%s.git'
  }
}
require('lazy').setup('plugins', opts)

This works for all plugins except for lazy itself.
When I run the :Lazy command and hit U to update all packages, all of them download correctly except for lazy.
I see this error message:
fetch failed: unable to access 'https://github.com/folke/lazy/lazy.nvim.git/': gnutlus_handshake() failed: Error in pull function.

This is not the correct url.
What I would expect is that lazy.nvim would try to download from 'https://repomirror.company.com/github-neovim/folke/lazy.nvim.git'.
Steps To Reproduce

Block access to GitHub, set up a mirror service to give access to lazy and other neovim plugins
Configure neovim as above to use the mirror service
Attempt to update lazy

Expected Behavior
Lazy should download a newer version of the lazy.nvim package from the mirror service, and upgrade itself.
Repro
Since this mirror service business is a pain to reproduce, I am happy to be a beta tester and try out any code changes.

I also tried as a workaround adding lazy to my plugin configuration so that I could specify a url for it.
I added this to my lua/plugins/init.lua file:
  { 'folke/lazy.nvim', url = "https://repomirror.company.com/github-neovim/folke/lazy.nvim.git" },

This caused neovim to show an error message on startup:
Error detected while processing /data/home/fhanson/.config/nvim/init.lua:
Two plugins with the same name and different url:
{
  new = {
    _ = {},
    dir = "/data/home/fhanson/.local/share/nvim/lazy/lazy.nvim",
    name = "lazy.nvim",
    url = "https://github.com/folke/lazy.nvim.git"
  },
  old = { "folke/lazy.nvim",
    _ = {},
    dir = "/data/home/fhanson/.local/share/nvim/lazy/lazy.nvim",
    name = "lazy.nvim",
    url = "https://repomirror.company.com/github-neovim/folke/lazy.nvim.git"
  }
}

Simple fix:
diff --git a/lua/lazy/core/plugin.lua b/lua/lazy/core/plugin.lua
index 72d5a06..fbbbf38 100644
--- a/lua/lazy/core/plugin.lua
+++ b/lua/lazy/core/plugin.lua
@@ -375,7 +375,9 @@ function M.load()
   -- load specs
   Util.track("spec")
   Config.spec = Spec.new()
-  Config.spec:parse({ vim.deepcopy(Config.options.spec), { url = "https://github.com/folke/lazy.nvim.git" } })
+  Config.spec:parse({
+    vim.deepcopy(Config.options.spec), { url = Config.options.git.url_format:format('folke/lazy.nvim') }
+  })

   -- override some lazy props
   local lazy = Config.spec.plugins["lazy.nvim"]

This has the unfortunate side effect that when url_format is set to something that doesn't point to GitHub, such as "%s", it causes Lazy to completely break down when trying to update.

That's because lazy no longer ignores git_url for lazy.nvim
So to make it work properly, you'll have to define the correct url for lazy.nvim


Example of better way to manage flags and mocks

JIRA link
Change description
Work checklist

[ ] Tests added where applicable
[ ] UI changes look good on mobile
[ ] UI changes meet accessibility criteria

Merge instructions
We are committed to keeping commit history clean, consistent and linear.  A BREAKING CHANGE can be part of commits of any type,
types other than fix: and feat: are allowed, for example build:, chore:, ci:, docs:, style:, refactor:, perf:, test:, and others,
footers other than BREAKING CHANGE: <description> may be provided.

A couple of comments but this looks like an improved approach over what we did in ROE.

There is a simpler way to do it using jest
https://jestjs.io/docs/mock-function-api#jestreplacedsource


Cocos2D 3.4 out

Cocos2D 3.4 is now available, but i can't see if there is now a good support for iPhone 6 & 6+ device. If so, what size and namefile shoud we use ?
This is not an issue but more a support request :)

As far as I can tell, there is still no "real" support for sprites using iPhone 6 / 6 Plus resolutions in v3.4; the exact same sprites / sprite filenames used by the Retina-Display iPhone 5 are also used by the Retina-HD iPhone 6 / 6 Plus.
It seems that full support for the new iPhone will be delayed until cocos2d v4.0, but no-one really knows when that will happen... one estimate I heard suggested it would be released around summer or fall of this year.

ok, thanks you !


[FEATURE REQUEST] Support llama.cpp backend

🚀 The feature, motivation and pitch
Using the llama.cpp backend (via the Python bindings) will enable us to benchmark gguf models, and also make it easier to benchmark larger models with less VRAM available.
Alternatives
No response
Additional context
Since the gguf models are saved in separate model repos, there’s full transparency in case the fp16 model is significantly better, say.

Just adding my two cents:
It seems it varies a little how people publish the gguf's. NorwAI put them in the same repo, and one then has to download the file manually, or use hf-hub and exclude everything else. Others have a branch for them, which makes it easy when loading from transformers (same repo, but with revision/branch x in the destination).
Is there an easy way to cover both scenarios? 😄

It seems it varies a little how people publish the gguf's. NorwAI put them in the same repo, and one then has to download the file manually, or use hf-hub and exclude everything else. Others have a branch for them, which makes it easy when loading from transformers (same repo, but with revision/branch x in the destination).
Is there an easy way to cover both scenarios? 😄

ScandEval supports loading revisions of models, so in case the ggufs are in a separate branch then one could simply evaluate @. If they're in the same repo then I assume that llama.cpp looks for gguf files in the repo, but I'm not sure about this. In any case, it sounds doable!


Check for Palindromes - Not recognizing true vs false

When I come and paste in the check paramteres into the code I get correct responding answer such as
palindrome("0_0 (: /-\ :) 0-0") should return true. And the output module will output "true".
However, the project criteria on the side doesn't turn green with a check mark.

Global variables are bad news. Please visit the Help Chat for assistance with challenges. This is not a bug with the tests. Thanks and happy coding!

Actually, I think palindrome("0_0 (: /-\ :) 0-0") should return false, instead of true. Isn't it?

@engincagatay Nope. You should be removing all non-alphanumeric characters from the string before checking if it is a palindrome, which would leave you with 0000.


fix: position image download icon relative to the image fallback button

🎯 Goal
Fixes: https://github.com/GetStream/stream-chat-react/issues/2209
🎨 UI Changes

I think this is already done in this PR: https://github.com/GetStream/stream-chat-css/pull/254/files

Yes, mistake. I wanted to have each of these logged separately in commit history.


Change interface for detached content

Relate to #122 , changing interfaces and roles of

t_cose_sign1_encode_parameters
t_cose_sign1_encode_signature
t_cose_sign_encode_start
t_cose_sign_encode_finish
t_cose_mac_encode_parameters
t_cose_mac_encode_tag

4 conditional branches are removed in total.
Two-step signing (computing mac) need to call QCBOREncode_BstrWrap and QCBOREncode_CloseBstrWrap2 respectively, but the performance and code size would be improved.

I've done.
The interface of t_cose_sign1_encode_parameters is not changed, but the role was changed.
Before
On not detached content mode
COSE_Sign1 = [
    Headers,
    payload : <<

On detached content mode
COSE_Sign1 = [
    Headers

After
On both not detached content mode and detached content mode
COSE_Sign1 = [
    Headers

That's why the interfaces are simplified and QCBOREncode_BstrWrap() are needed in the caller.

And t_cose_sign1_encode_signature2 was added to avoid changing t_cose_sign1_encode_signature .
https://github.com/laurencelundblade/t_cose/pull/144/files#diff-5b4b142e0ea21623123247a5a8d7cb7e5cdb5503c389c93881fd05f3195eba8bR601-R610

@laurencelundblade
I kept the interface and role of t_cose_sign1_encode_parameter and  t_cose_sign1_encode_signature .
The test codes that use those functions has not been changed.


Need overly permissive policy to avoid KMSKeyNotAccessibleFault

Hi!
If I add the permissions to the KMS Key as described in https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-modifying-external-accounts.html
{     "Sid": "Allow an external account to use this CMK",     "Effect": "Allow",     "Principal": {         "AWS": [             "arn:aws:iam::444455556666:root"         ]     },     "Action": [         "kms:Encrypt",         "kms:Decrypt",         "kms:ReEncrypt*",         "kms:GenerateDataKey*",         "kms:DescribeKey"     ],     "Resource": "*" }
I get the following error when the lambda for local copy runs:
[ERROR] 2020-03-31T09:00:41.188Z An error occurred (KMSKeyNotAccessibleFault) when calling the CopyDBClusterSnapshot operation: The source snapshot KMS key [arn:aws:kms:eu-west-1:accountnumber:key/keynumber] does not exist, is not enabled or you do not have permissions to access it.
However, if I do the same thing, but change the "Action" to '*', like this:
{     "Sid": "Allow an external account to use this CMK",     "Effect": "Allow",     "Principal": {         "AWS": [             "arn:aws:iam::444455556666:root"         ]     },     "Action": "*",     "Resource": "*" }
It works without issues.
What permission might be missing? I am not comfortable with this overly permissive policy...
Thanks in advance!

It seems to require the permissions of 'CreateGrant' and 'RevokeGrant' as well. That sorted it out for us.


Confirm popup in the center, alerts are not, please help!

With this code below, the first confirmation box comes up in the center as I would like it to. But the alert windows for the "Yes" and "No" buttons show up on the left, how can I fix this?

Thank you,
Anthony
$.confirm({
title: 'Gift Card Information',
content: 'Did you know we sell gift cards?',
boxWidth: "75%",
useBootstrap: false,
buttons: {
Yes: function(){
$.alert("That's great, call today to order!");
},
No: {
text: 'No',
action: function(){
$.alert("Well we do, you can call our office to order them!");
}
}
}
});

Hello @Antmanofgod
This is because you have useBootstrap: false set for the $.confirm function and not the alert functions.
Please set useBootstrap:false globally using jconfirm.defaults.useBootstrap = false
👍 I hope this helps

@craftpip Thank you, I will modify that line and give it a shot!

@craftpip Actually if I may bother you one more time, how would look when I add it to my existing code?
$.jconfirm.defaults = {
useBootstrap: false,
};
Like this? I have a feeling that's wrong...

Glad to help man


Errors

Notice: session_start(): Ignoring session_start() because a session is already active in C:\xampp\htdocs\staff\functions.php on line 2
Warning: Undefined array key "code" in C:\xampp\htdocs\staff\index.php on line 17
Warning: Undefined array key "is-logged-in" in C:\xampp\htdocs\staff\functions.php on line 25
errors i get on the login page
Errors when trying to get to the panel
Notice: session_start(): Ignoring session_start() because a session is already active in C:\xampp\htdocs\staff\functions.php on line 2
Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($var) must be of type Countable|array, string given in C:\xampp\htdocs\staff\index.php:17 Stack trace: #0 {main} thrown in C:\xampp\htdocs\staff\index.php on line 17

You can solved it?

I get the same errors


Improving: Log custom properties of custom exceptions

If we have custom exception with custom properties like this:
public class InvalidStatusCodeException : Exception

{

    public HttpStatusCode ReceivedStatusCode { get; set; }

    public string ApiUrl { get; set; }

    public InvalidStatusCodeException(HttpStatusCode receivedStatusCode, string apiUrl)

    {

        ReceivedStatusCode = receivedStatusCode;

        ApiUrl = apiUrl;

    }

}

these custom properties are not logged to Application Insights if this exception is fired.
One of the ways to log it in app Insight: add custom message, like this:
`

[ ] public InvalidStatusCodeException(HttpStatusCode receivedStatusCode, string apiUrl) : base($"Invalid Status code for request: '{apiUrl}', received code: {receivedStatusCode}")

`
but I don't want to prepare message on exception level (no way to sorting/filtering, can be localization etc).
It would be great to log custom properties for custom exceptions

You can do this (yourself) with an ITelemetryInitializer and a bit of reflection.


GCP Image: Unattended upgrades enabled by default

#152 fix the issue for AWS images - we have the same issue in GCP images using ubuntu 20.04 as the base.

@syuu1228 the fix for 152 was in aws code - we need to fix the gcp image as well - please provide a fix.
Thanks
Shlomi

@slivne I think we should fix this issue by https://github.com/scylladb/scylla-machine-image/pull/132 (Merging AWS/GCP/Azure script into single script), because we are just trying to merge the PR.

@syuu1228 Let's fix this for GCE for easier backporting, and then do #132 after that.


When will be available new rerelease?

Hi, we're working with a vendorized version of this package because there are some changes on master branch that there are not in latest release (2 May 2017).
Any idea when will be next release?
Thank you very much for this awesome library 💪

released

Thanks! 💯


ubuntu20.04  Failed to start Flutter renderer: No GL implementation is available

ubuntu20.04  Failed to start Flutter renderer: No GL implementation is available

Take a look at these two issues to see if anything helps to resolve it:
https://github.com/flutter/flutter/issues/106941
https://github.com/flutter/flutter/issues/76178

don't work


bump versions

weekly version bump.  leaving the old style k8s version pinned to the 1.4 series.  it should be removed in the next two weeks.

LGTM. Does k2-tools have a test? If so:
ok to test


Suggestion for StyledButton component

I want to congratulate you on the StyledButton component. Fantastic!
I would suggest two implementations:

Background transparency (like SpeedButton)
Capture SVG image

I believe it would be even better with these implementations.
Edilson Paio

Hello Edilson,

the Background transparency is available if you use TStyledGraphicButton or TStyledSpeedButton, because the inherits from TGraphicControl, but don't have TabStop and Focus, because they are only a "graphic surface".
TStyledButton and TStyledBitBtn inherites from TCustomControl that have a "windows handle" but not supports transparency, like classic TButton or TBitBtn.
The Glyph property is implemented into StyledButtons only for backward compatibility and the capability to "Capture SVG image" is not available. But I reccommend to use an ImageList capable to use SVG Icons (like my SVGIconImageList library), or a SVGIconImageCollection + VirtualImageList (if you have Delphi 10.4+). The you can attach the ImageList to the StyledButton or to an ActionList, so you can attach the Actions to the Action of the StyledButton.
I hope to help you...

No feedback... closed.


CRM Online Support?

Hey there,
nice looking project!
Did you need to use ILMerge for getting in the JS engines?
If yes, then this might possibly not work in CRM online with its sandbox, at least MS states it as not supported: https://blogs.msdn.microsoft.com/crm/2010/11/09/how-to-reference-assemblies-from-plug-ins/
Did you already try?
Kind Regards,
Florian

Hi Florian,
I didn't  have to use ILMerge because the JS Engine is totally included in the plugins project. No external DLLs are used.
The whole project was developped at first on CRM Online version 9.0, in sandbox mode.
You can give it a try, there is some simple examples on documentation page.
Thanks,
Amine


NIFI-13933 Upgrade Spring Security to 6.3.4 and other dependencies

Summary
NIFI-13933 Upgrades Spring Security from 6.3.3 to 6.3.4 mitigating an associated vulnerability for WebFlux classes that NiFi does not use.
Additional incremental upgrades include the following:

Upgraded Hadoop from 3.4.0 to 3.4.1
Upgraded Velocity Engine Core from 2.3.0 to 2.4.1
Upgraded Parquet Avro from 1.13.1 to 1.14.3
Upgraded Google Libraries from 26.47.0 to 26.49.0
Set protobuf-java to 3.25.5 for calcite-core and amazon-kinesis-client libraries

Changes also include removing unnecessary suppressions and adding new false positive suppressions to the Dependency Check Plugin configuration.
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[X] Apache NiFi Jira issue created

Pull Request Tracking

[X] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[X] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[X] Pull Request based on current revision of the main branch
[X] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[X] Build completed using mvn clean install -P contrib-check

[X] JDK 21

Licensing

[ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[ ] Documentation formatting appears as expected in rendered files

looks good.  will merge in just a bit after local build and review of dep vuln checks.


Script fails after three seconds using Arduino mouse

I tested the mouse in Arduino IDE and everything works fine.

But when I execute run.py, everything is fine, but after 3 seconds the mouse is uncontrollable. And no error is returned

[Detection window]
detection_window_width = 384
detection_window_height = 216
[Capture Methods]
Bettercam_capture = True
bettercam_capture_fps = 144
bettercam_monitor_id = 0
bettercam_gpu_id = 0
Obs_capture = False
Obs_camera_id = auto
Obs_capture_fps = 30
[Aim]
body_y_offset = 0.3
hideout_targets = False
disable_headshot = False
[Hotkeys]
hotkey_targeting = RightMouseButton
hotkey_exit = F2
hotkey_pause = F3
hotkey_reload_config = F4
[Mouse]
mouse_dpi = 800
mouse_sensitivity = 1
mouse_fov_width = 60
mouse_fov_height = 45
mouse_lock_target = False
mouse_auto_aim = False
mouse_ghub = False
[Shooting]
auto_shoot = False
triggerbot = False
force_click = False
[Arduino]
arduino_move = True
arduino_shoot = True
arduino_port = COM5
arduino_baudrate = 9600
arduino_16_bit_mouse = True
[AI]
You can find new improved models here https://boosty.to/sunone
AI_model_name = sunxds_0.4.1.pt
AI_model_image_size = 480
AI_conf = 0.1
AI_device = cpu
AI_enable_AMD = true
AI_mouse_net = False
[Debug window]
show_window = False
show_detection_speed = False
show_window_fps = False
show_boxes = True
show_labels = True
show_conf = True
show_target_line = True
show_target_prediction_line = True
debug_window_always_on_top = True
spawn_window_pos_x = 100
spawn_window_pos_y = 100
debug_window_scale_percent = 100

Additional Notes: I soldered the g-powered part as you did, and also used 12v to power the Arduino power strip

I'm having the same problem, please how can I fix it

You should try executing the script using the administrator command window

Message ID: @.***>

我也遇到了同样的问题，请问我该如何解决
You should try executing the script using the administrator command window


Design a richer footer

Neat and clever designs welcome!

Besides the<EMAIL_ADDRESS>reference, we are not giving any other pointer for anyone to check other places where our activity can be seen.
We could use the footer to include a few links:

GitHub organization profile
Notion FAQ public page
Discord invite link?
...

Instead of the brief footer we have now:

We could go towards a simple but extensible design, like this one from Mozilla:

Some more inspiration:

https://www.mockplus.com/blog/post/website-footer-design

Leads:

This should be implemented using Bulma layout, columns, and element classes as much as possible.
Relevant files: landing footer.html, tv footer.html and common.scss

At the same time:

Let's make sure the footer is the same in all sites, so let's move footer.html to .common/ and symlink it in the tv/ and landing/ site directories.

copy


Why is this page content being cleared?

I'm seeing some strange behavior that I'm unable to explain or workaround on my own. After performing a few commands, the DOM is suddenly cleared. It's crazy. Here's a repo that demonstrates the problem: https://github.com/york-solutions/chromeless-fs-clearing
Here's what the page looks like before the click() command is issued:

Here's what the page looks like after the test runs:

Notice

The URL hasn't changed
All nodes have been removed from both the head and body (except for one tracking image that was added after the page was cleared)
All attributes of html, head, and body have been removed
All the event listeners are still setup on the body.

So the page hasn't been reloaded; it's just somehow been cleared.
This doesn't happen if I remove the click() command from the code.
I thought that maybe the site had some code detecting the automated script. I can only image detecting unusual timing of events (i.e. too fast for a human) but adding wait(500) before the click doesn't fix the problem.
Perhaps the site has a bug in their code, but it doesn't happen when a user clicks nor when clicks are simulated via JS (and it would take a lot of effort to accidentally clear all nodes and attributes from both the head and body).
Any other ideas? I hate to point the finger at chromeless but I'm at a loss for any other explanation.

Playground URL: https://chromeless.netlify.com/#src=const chromeless = new Chromeless({ remote: true })

const screenshot = await chromeless
  .goto('https://familysearch.org/search/record/results?count=75&query=%252Bsurname%253Athurman~')
  .wait('#hr-data-table tbody')
  .click('#hr-data-table > tbody > .row-template:first-of-type')
  .wait(1000)
  .screenshot()

console.log(screenshot)

await chromeless.end()

It's quite possible that this is a legitimate bug in the remote protocol that chromeless uses (here: https://chromedevtools.github.io/devtools-protocol/). I don't have an explanation other than some combination is doing this...

This issue is solved by setting a realistic user agent.
chromeless.setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36')

Thanks for posting the solution. Future bots will thank you!


adding support for paginationContainerStyle prop

Fix https://github.com/Jacse/react-native-app-intro-slider/issues/97

Thanks for the PR @bienur! This has been added in 1c3d6bbced0ce089f2bdfc4533be5e3f9a375929


Avoid collecting v

Here's a proposal fixing https://github.com/gdalle/DifferentiationInterface.jl/issues/594#issuecomment-2430989350
You probably want to add test cases with ComponentArrays to your test suite

Thanks for the quick PR! Glad the collecting was an easy fix, I added it recently to work around some ComponentArray-related bug that I must have fixed another way.

I currently have it as a direct dependency, since I need to dispatch on ComponentArray for an index-handling function here.

Sure but do you run some of your tests on ComponentYrrays ?

Planning to add more, but yes, I've got basic ones e.g. here and here. That's how I caught this issue ;)


didSelectDate is not called

 Version: JTAppleCalendar (8.0.2)
(Required) Version Number:
Description
function didSelectDate is not working with me, please help me. thanks
Steps To Reproduce
    calendarView.calendarDelegate = self
    calendarView.calendarDataSource = self

Expected Behavior
Additional Context

Have you followed the examples on patchthecode.com ?
We have examples there already built

I had the same problem after migration to 8+ version.
The problem was in method signatures.
In 8+ version new parameter (indexPath: IndexPath) is added to didSelectDate method. So
func calendar(_ calendar: JTACMonthView, didSelectDate date: Date, cell: JTACDayCell?, cellState: CellState)
become
func calendar(_ calendar: JTACMonthView, didSelectDate date: Date, cell: JTACDayCell?, cellState: CellState, indexPath: IndexPath)

closing this issue.
Assuming resolved.
If you still have issues then let me know.


using fork operator with two different Data Publishers

Hi,
I want to publish data to a kafka topic and to hdfs and I have all the DataWriters and the Fork in place and running.
Now I want to use the TimePartitionedDataPublisher for the hdfs branch and the NoopPublisher for the kafka branch, but it doesn't seem to be possible. setting data.publisher.type.# is ignored. Also, data.publisher.type is marked as deprecated in ConfigurationKeys but the documentation still uses that, and the ones replacing it are mentioned nowhere.
I also found some more inconsistencies with branch specific settings, WRITER_FILE_PATH_TYPE and WRITER_PARTITIONER_CLASS seems to only have a global scope as well and cannot be set on a per branch basis.

Hey Clemens -
Thanks for the great questions. I’m going to handle them in easiest-hardest to answer..

I actually don’t think data.publisher.type should be marked as deprecated — we certainly use it in a bunch of our jobs as well. (And certainly not without updating the examples!) Let me check internally and probably remove the comment.

Yep, WRITER_FILE_PATH_TYPE is just a bug — we will fix! We recognize that in general the config can be confusing for end-users, and the design inside the system makes it hard to figure to how to map config to the various converters/writers that consume it.

In general, it’s best practice to actually set up two jobs to dual write like this. The major reasons for this are around failure:

We don’t have the ability to keep track of per-fork watermarks so, if, say, a write to HDFS fails and the overall job fails, you’ve already written a bunch of data of Kafka and we will re-write all this data when the job is restarted.
Even stranger would be if you had two different publishers and one publisher succeeded and one failed - does the 1st publisher have to unpublish the dataset somehow? What does published mean in this scenario?

The second case is why we only have one Publisher per job. That said this should obviously be better documented.
does that make sense?

To provide a slightly different perspective to @eogren's answer, if you need to get the same data to Kafka and HDFS, you can take one of two "recommended" paths:
a) Set up two independent jobs reading from your source and writing to Kafka and HDFS respectively. This may work if redundantly reading from the source is not a problem, or if you are trying to have separate pipelines for data to Kafka and HDFS so you can do audits later.
b) Set up one pipeline to read from the source and write to Kafka. Set up another to read from Kafka and write to HDFS. In this case, you are basically using Kafka as your derived source of truth for the transport, so if you have any data loss in Kafka, you see it in HDFS as well. This may be the preferred option in many cases, because extracting changes from the source can often be the bottleneck.
Using forks in Gobblin to write to two completely different systems (with different uptimes / guarantees) is not something we recommend in general.
HTH
Shirshanka

thanks a lot @shirshanka and @eogren
Ultimately my goal is to have an audit log in Kafka of how many messages gobblin has written to hdfs. I think I kind of got it working but I am not quite happy how it turned out. (basically a re-implementation of the AsyncBestEffortDataWriter)
I also had a look at the gobblin-audit subproject which seems to have the same goal in mind.
While its implementation seems fairly straightforward, I didn't find anything on its integration within a gobblin job and the documentation seems rather sparse

@cvaliente : Ok, this use-case does make a lot of sense. Did you consider using Gobblin's metrics capability and the metrics reporter to Kafka to accomplish this?
https://gobblin.readthedocs.io/en/latest/metrics/Gobblin-Metrics/#metrics
What sort of audit are you trying to do?
Simple count-based / more complex ?

The metrics reporter was actually the first thing I looked at before moving on.
Ideally I would like to emit counts per specific time window based on the message's timestamp - identical to the audits that our message producers emit. This way I can get a perfect 1:1 match between gobblin consumer audits and producer audits - if all works well, of course.
The metrics reporter didn't seem to support that without major changes.
The fork with a kafka audit writer and a hdfs writer branch seems to work fine now. The logging to kafka only happens in the commit phase of the datawriter, so only after all the data has been written to hdfs. I won't get transactional behaviour out of kafka, it will always be on a best effort basis, but if the producer and consumer message count match I can be fairly confident all my data is on the hdfs.

@cvaliente Seems reasonable. A few questions for me to help understand your requirements better: What semantics are you trying to achieve with the audit pipeline (exactly-once, at-least-once, at-most-once or best-effort)?
Some examples below:
1 [best-effort] If a record was written (and committed) on HDFS, there must be one corresponding audit aggregate record that contains it, but there could be audit records for records that were not finally written to HDFS.
2 [at-most-once] If there is an audit-record, there must be a contributing data record that was written and committed to HDFS, but there could be records on HDFS that don't have an audit record.
3 [at-least-once] For each record on HDFS, there is one or more corresponding audit-records in the audit-stream. There are no audit-records that contain aggregates for uncommitted data.
3 [exactly-once] Each audit-record has a corresponding set of records on HDFS, each record on HDFS has a corresponding audit-record. Each audit-record is only found once in the audit stream.
In a streaming (best-effort style) pipeline, you can achieve 1 by attaching a converter in your pipeline that inspects records passing through, creates the audit-record and sends it out to Kafka once the time-window is done. (This is generally how the producer audit in Kafka producer works IIRC)
To achieve 2 (at-most-once) in a batch pipeline, it might be better to write audit records to HDFS to the same staging dir as data and move them during your HDFS commit (data will be committed atomically with metadata). You then need another stage to emit these committed audit records to Kafka. I believe there is a post-publish stage that Gobblin supports. If you have a ton of audit records, this allows you to offload the storage of these to HDFS (instead of holding on to them in memory until you emit to Kafka). This strategy is at-most-once because the post-publish stage could fail but the data is already committed.
To achieve 3 [at-least-once], you could actually run a separate Gobblin pipeline whose only job is to find the audit-records on HDFS and emit them to Kafka with acks set to max.
4 [exactly-once] is pretty hard to get since this is in the limit doing 2PC between HDFS and Kafka.
So which semantic are you trying to achieve?

The ultimate goal is to be able to answer
"Did gobblin already pull in all of yesterday's (expected) data?"
before starting batch processes on hadoop going over that data.
So I believe I am going for 2 (at-most-once). If the producer audit and the consumer audit match, all the data needs to be on hdfs. if the audit doesn't match, it could be that we lost data somewhere in our pipeline, or because the post-publish step failed.
Thanks for your feedback and suggestions! I will have to look at how to implement such a post-publish stage.


OSRA318 date format helper

https://osraav.atlassian.net/browse/OSRA-318

I'd like to see the tests of constants removed and the commit history squashed, but otherwise this PR is ready to go.


During Kmesh daemon restart process, new connections will not go through waypoint

What happened:
I write E2E test case (#661 )  to make sure everything work fine before, during and after Kmesh daemon restart.
I check whether the managed application  is processed normally by the Kmesh by checking whether the request go through waypoint.
However, according to the test result, during the restart of Kmesh daemon, traffic does go pass through waypoint.
What you expected to happen:
Before, during and after Kmesh daemon restart, all traffic should go through waypoint.
How to reproduce it (as minimally and precisely as possible):
Deploy bookinfo and service granularity waypoint for reviews, ref: https://kmesh.net/en/docs/userguide/try_waypoint/
Keep an eye on waypoint log:
kubectl logs -f reviews-svc-waypoint-6884756fc5-524dz

Create continuous traffic:
kubectl exec deploy/sleep -- sh -c "for i in \$(seq 1 10000); do curl -s http://productpage:9080/productpage | grep reviews-v.-; sleep 1; done"

At this time, you will see that the waypoint continues to output access log.
Simulate the restart process of Kmesh daemon by change the Kmesh image to an unavailable image.
kubectl edit daemonset kmesh  -n kmesh-system
...
   image: ghcr.io/kmesh-net/kmesh:latest-a
...

After that Kmesh pod has been in unavailable state of "ImagePullBackOff" and waypoint no longer output access logs, indicating that subsequent traffic no longer go through waypoint.
Anything else we need to know?:
Environment:

Kmesh version:
Others:

This is most likely a problem with the kind environment used
In the K8S cluster environment set up by kind, the /sys/fs directory is read-only by default, and kmesh cannot operate the directory. Therefore, the bpf program is stored in the kmesh pod and is deleted during the restart.
If you go inside the node when setting up the k8s cluster and create a readable and writable bpf directory, you should be able to solve this problem.
docker exec -it ambient-worker /bin/bash
mount -t bpf none /sys/fs/bpf

Please retest @YaoZengzeng

This is most likely a problem with the kind environment used In the K8S cluster environment set up by kind, the /sys/fs directory is read-only by default, and kmesh cannot operate the directory. Therefore, the bpf program is stored in the kmesh pod and is deleted during the restart. If you go inside the node when setting up the k8s cluster and create a readable and writable bpf directory, you should be able to solve this problem.
docker exec -it ambient-worker /bin/bash
mount -t bpf none /sys/fs/bpf

After doing this, it will work fine

Tested and verified, now closed


docs: remove redundant step to install globally the package and use npx ins…

…tead
npx is better because it takes updates immediately, and not requiring to install anything globally

Nice one, thanks!


dark mode

I think it would be a great feature, especially since users could be viewing bright colors and want to see the contrast.
I think a button that toggles from light to dark mode would be very helpful. This would not only change the background color, but the text color as well.
As long as this feature is programmed well, I cannot think of any problems that could arise.

Hi,
I would like to take a shot at this.
Thank you,
Waj

I am closing this issue thank you to everyone who contributed! The feature with be included in v0.5.


Update smoke test versions

The usual smoke test version update before the RC release.

Related build: https://builds.gradle.org/viewQueued.html?itemId=18386331

The previous build only failed with the same problem that was already present on the release branch: https://builds.gradle.org/viewLog.html?buildId=18367239&tab=buildResultsDiv&buildTypeId=Gradle_Check_Stage_ReadyforRelease_Trigger


[Question] Power draw at standard clock ?

Hello
I'd like to use TWO edgetpu s on my Raspberry Pi 4,
which can output 1.2 A of current in total, through its USB ports
But I can't find how much current edgetpu uses at maximum, when it's running at standard
clock frequency
I wonder would 1.2 A be enough to feed two edgetpus
Also for USB is serial, they will share USB 3.0 bandwidth
so I'd like to hear your opinion on using two edgetpus on raspberry pi
Thank you

According to the official documentation:

The USB Accelerator is powered by 5 V from the USB interface through on-board power management chip (PMIC).
The device should be connected to a host computer with a USB cable that provides at least 500 mA at 5 V. Please note that when the device runs at maximum speed, it can draw a peak current of 900 mA.

According to the official documentation:

The USB Accelerator is powered by 5 V from the USB interface through on-board power management chip (PMIC).
The device should be connected to a host computer with a USB cable that provides at least 500 mA at 5 V. Please note that when the device runs at maximum speed, it can draw a peak current of 900 mA.

Thank you very much!

1.2A is not enough for both accelerator, unfortunately, I suggest a powered usb hub!


[INTEL MKL]  Setting default value for KMP_BLOCKTIME

To improve overall user experience and performance, this PR sets KMP_BLOCKTIME to 1, if not set already by user.

@alenik01 This PR has changes that could affect --config=mkl_aarch64 build. Could you please help check if things are okay on your end? (I plan to cherry-pick this into TF 2.5.)

Good morning, @penpornk Many thanks for the heads up. Mmain problem which I encounter with this commit is that it doesn't build even with --config=mkl, because Bazel for some reason fails to find external/llvm_openmp/include/omp.h. The similar situation is also for --config=mkl_aarch64. Did you manage to build the master after merging this commit?

Execution platform: @local_execution_config_platform//:platform
tensorflow/core/common_runtime/threadpool_device.cc:19:10: fatal error: external/llvm_openmp/include/omp.h: No such file or directory
19 | #include "external/llvm_openmp/include/omp.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Target //tensorflow/tools/pip_package:build_pip_package failed to build

Good morning, @alenik01! We decided not to cherry-pick this PR into 2.5 for now.

Did you manage to build the master after merging this commit?

I didn't try building it manually, but the oneDNN CI test for this PR was fine.

Good afternoon, @penpornk

Could you please help check if things are okay on your end?

I have checked --config=mkl_aarch64 with the current TF master and it works correctly on AArch64 server. The only disadvantage for us is that additional --cxxopt="-DDNNL_AARCH64_USE_ACL=1" has to be added now in the build command, i.e. defined globally for all the build instead of the necessary files only, I will try to find a more elegant solution.

we should not merge this PR as tensorflow build failed with --config=mkl. it is surprising that no one complained about it except @alenik01 alenik01

For example, tfserving build is failing due to this https://github.com/tensorflow/serving/issues/1958#issue-1092136168

cc: @TensorFlow-MKL @agramesh1

HI @penpornk we can revert this PR, it does not work the way it was intended. We will submit a PR to revert. Thanks.


eas build fails

Installed and ran pod install in the ios folder. Then triggered a development build with eas build --profile development --platform ios. I get the following build error:
› Compiling vision-camera-resize-plugin Pods/vision-camera-resize-plugin » ResizePlugin.mm

❌  (node_modules/vision-camera-resize-plugin/ios/ResizePlugin.mm:12:9)

  10 | #import <VisionCamera/FrameProcessorPluginRegistry.h>
  11 | #import <VisionCamera/Frame.h>
> 12 | #import <VisionCamera/SharedArray.h>
     |         ^ 'VisionCamera/SharedArray.h' file not found
  13 |
  14 | #import <memory>
  15 | #import <utility>
› Compiling react-native-blob-util Pods/react-native-blob-util » react-native-blob-util-dummy.m
› Compiling react-native-blob-util Pods/react-native-blob-util » ReactNativeBlobUtilRequest.mm
› Compiling react-native-blob-util Pods/react-native-blob-util » ReactNativeBlobUtilReqBuilder.mm
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ 	CompileC /Users/expo/Library/Developer/Xcode/DerivedData/cinia-flsttpspkygxcfbgnlwrkahnnqvc/Build/Intermediates.noindex/ArchiveIntermediates/cinia/IntermediateBuildFilesPath/Pods.build/Debug-iphoneos/vision-camera-resize-plugin.build/Objects-normal/arm64/ResizePlugin.o /Users/expo/workingdir/build/node_modules/vision-camera-resize-plugin/ios/ResizePlugin.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'vision-camera-resize-plugin' from project 'Pods')
▸ (1 failure)
2024-01-19 16:55:35.023 xcodebuild[2022:7945] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
** ARCHIVE FAILED **
The following build commands failed:
	CompileC /Users/expo/Library/Developer/Xcode/DerivedData/cinia-flsttpspkygxcfbgnlwrkahnnqvc/Build/Intermediates.noindex/ArchiveIntermediates/cinia/IntermediateBuildFilesPath/Pods.build/Debug-iphoneos/vision-camera-resize-plugin.build/Objects-normal/arm64/ResizePlugin.o /Users/expo/workingdir/build/node_modules/vision-camera-resize-plugin/ios/ResizePlugin.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'vision-camera-resize-plugin' from project 'Pods')
(1 failure)
Exit status: 65

Are you on VisionCamera 3.8.2 or higher?

3.6.17

You need to be on 3.8.2. or higher.

@ionflow did you have success?

Hey - did my commit here fix it maybe? https://github.com/mrousavy/vision-camera-resize-plugin/commit/794da738cae2df725c000477031ca604eb741275


Fixes #24220 - Allow lazy objects for success_url

See https://code.djangoproject.com/ticket/24220 for more info

buildbot, test this please.

Updated diff and commit message. Thank you for review!


SPOSiteDesignRights Rights property is invalid

Details of the scenario you tried and the problem that is occurring
I tried to export the site design rights but could not create the mof file. When calling Office365TenantConfig.ps1
i got the following error:
Office365DSC\SPOSiteDesignRights : At least one of the values 'System.Object[]' is not supported or valid for property
'Rights' on class 'SPOSiteDesignRights'. Please specify only supported values:
View, None.
At C:\temp\tstsitedesign\Office365TenantConfig.ps1:30 char:9
+         SPOSiteDesignRights c3e1fe9f-ed3e-44ed-8725-5b73f37fa360
+         ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Write-Error], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnsupportedValueForProperty,Office365DSC\SPOSiteDesignRights

Compilation errors occurred while processing configuration 'O365TenantConfig'. Please review the errors reported in
error stream and modify your configuration code appropriately.
At
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:3917
char:5
+     throw $ErrorRecord
+     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (O365TenantConfig:String) [], InvalidOperationException
    + FullyQualifiedErrorId : FailToProcessConfiguration

Verbose logs showing the problem
Office365DSC\SPOSiteDesignRights : At least one of the values 'System.Object[]' is not supported or valid for property
'Rights' on class 'SPOSiteDesignRights'. Please specify only supported values:
View, None.
At C:\temp\tstsitedesign\Office365TenantConfig.ps1:30 char:9
+         SPOSiteDesignRights c3e1fe9f-ed3e-44ed-8725-5b73f37fa360
+         ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Write-Error], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnsupportedValueForProperty,Office365DSC\SPOSiteDesignRights

Compilation errors occurred while processing configuration 'O365TenantConfig'. Please review the errors reported in
error stream and modify your configuration code appropriately.
At
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:3917
char:5
+     throw $ErrorRecord
+     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (O365TenantConfig:String) [], InvalidOperationException
    + FullyQualifiedErrorId : FailToProcessConfiguration

Suggested solution to the issue
The DSC configuration that is used to reproduce the issue (as detailed as possible)

  SPOSiteDesignRights 158e9200-5cfc-4c17-aa6f-bbef0517cad7
        {
            Ensure               = "Present";
            GlobalAdminAccount   = $Credsglobaladmin;
            Rights               = "System.Object[]";
            SiteDesignTitle      = "My Company Design #2";
            UserPrincipals       = @("meganb@m365x233468.onmicrosoft.com","nestorw@m365x233468.onmicrosoft.com");
        }

The operating system the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
dev

@vinkobedek can you post the output of running:
$id = (Get-PnPSiteDesign "My Company Design #2").Id
Get-PnPSiteDesignRights $id

Actually, forget it. I managed to recreate the issue. Will have it fixed within the next PR

I confirm that this issue is resolved and will close it.


fixes spelling

Like I mentioned on the pull request for Fit, the typos need to be fixed in the markdown files in doc/src.


fix: improve settings descriptions for actions trigged on save

closes #230051

@microsoft-github-policy-service agree

Please also take a look at editor.codeActions.triggerOnFocusChange, which will save in certain scenarios:

Not sure what you mean. This setting does not "save" in certain scenarios, it just triggers the code actions under some conditions, one of them being auto save is set to afterDelay. So the save happens automatically after delay, not from this setting.

@elias-pap sorry, that's what I meant. I added that setting a few iterations ago since users with afterDelay on wanted to still be able to run code actions.
my point of bringing it up is because we don't mention that this setting which will run code actions when the file isn't saved explicitly.
maybe adding a mention of this setting somehow could be helpful!

@elias-pap sorry, that's what I meant. I added that setting a few iterations ago since users with afterDelay on wanted to still be able to run code actions.

Right, that's what I had guessed.

my point of bringing it up is because we don't mention that this setting which will run code actions when the file isn't saved explicitly.
maybe adding a mention of this setting somehow could be helpful, although it is getting a bit verbose

I agree that it's a bit overkill. These settings are called "formatOnSave" and "codeActionsOnSave", so it's better to focus on what happens on save instead of repeating descriptions from other settings. The word "only" can be removed to avoid contradictions ("will only be run when the file is saved explicitly" -> "will be run when the file is saved explicitly").
The point of this fix is to clarify that the user can both have autoSave -> afterDelay enabled, and format the file (or run code actions) by saving manually, at the same time.


Eagle-577 UI policy management

For 0.5 api, policy management api has been update. UI also need fit for that.

LGTM


targetLinkLibrariesWithDynamicLookup: Backport module from scikit-build

Note that the name of the function remains prefixed with "sitk_"
Change-Id: I9e3eba4f3de436b297a2547c4f2a1346e6ecfec3

@jcfr
Some system and some language's dev packages don't contain the language library, and require the usage of dynamic look up in the executable for the language symbols. The manylinux docker image is one case of this. Previously the CMake variable "SITK_UNDEFINED_SYMBOLS_ALLOWED" was used to determine if the libraries were required.
https://github.com/SimpleITK/SimpleITK/blob/master/CMake/sitkLanguageOptions.cmake#L23-L27
I don't see a replacement for this variable. Any suggestions on how to update the behavior?

@jcfr Any feedback or suggestions on this issue?

When using manylinux, the following is done:
https://github.com/SimpleITK/SimpleITKPythonPackage/blob/426b971c730ac5ceaf81f87fac0142192b9031f1/scripts/internal/manylinux-build-wheels.sh#L26-L40
This allows to keep find_package(PythonLibs) happy while ensuring no target is linking against the python library. Simply using QUIET would not play the same role.

What is missing from the solution of marking a find language library as QUIET, and then not linking against it?
The prior solution does not include a check to ensure linking does not occur, but it does not require custom configuration when a system or language is encountered without the libraries. The problem ( or purposeful intent ) of language development packages not including libraries has occurred several time in the real world ( outside of building on manylinux). It is necessary to continue supporting these systems output the box.
An improved solution to the existing one is welcomed, if it meets the requirements.

solution of marking a find language library as QUIET, and then not linking against it?

Looking at your previous link, I missed the part where it doesn't link  against it. It looks like this is done in function sitk_target_link_libraries_with_dynamic_lookup implemented in  sitkTargetLinkLibrariesWithDynamicLookup.cmake#L81-L89
It turns out that the implementation of that same function in scikit-build also conditionally links against the python library. We are good on that front.
The problem is in two locations:

(1) SimpleITK/Wrapping/Python/CMakeLists.txt where SITK_UNDEFINED_SYMBOLS_ALLOWED is not set anymore.

and

(2)  SimpleITKPythonPackage/CMakeLists.txt

Problem (1)
For the problem (1), changing that code from
if ( SITK_UNDEFINED_SYMBOLS_ALLOWED )
  set( _QUIET_LIBRARY "QUIET" )
else()
  set( _QUIET_LIBRARY "REQUIRED" )
endif()

to
check_dynamic_lookup(MODULE
  SHARED
  SITK_UNDEFINED_SYMBOLS_ALLOWED
  unused
  )
if ( SITK_UNDEFINED_SYMBOLS_ALLOWED )
  set( _QUIET_LIBRARY "QUIET" )
else()
  set( _QUIET_LIBRARY "REQUIRED" )
endif()

should address the issue.
Similarly to the other CMake modules, I will make sure it is documented on read the docs.
In the mean time, associated documentation is here: https://github.com/scikit-build/scikit-build/blob/d592c8084a7e0502d9da9e7aacf0e465be40cc67/skbuild/resources/cmake/targetLinkLibrariesWithDynamicLookup.cmake#L61-L92
Problem (2)
For the problem (2) in SimpleITKPythonPackage/CMakeLists.txt, the code:

  if(NOT DEFINED PYTHON_INCLUDE_DIR
     OR NOT DEFINED PYTHON_LIBRARY
     OR NOT DEFINED PYTHON_EXECUTABLE)

    find_package ( PythonLibs REQUIRED )
    find_package ( PythonInterp REQUIRED )

  endif()

should be changed into
  # TODO: Download  https://raw.githubusercontent.com/scikit-build/scikit-build/v0.4.0/skbuild/resources/cmake/targetLinkLibrariesWithDynamicLookup.cmake
  include(targetLinkLibrariesWithDynamicLookup)
  check_dynamic_lookup(MODULE
    SHARED
    SITK_UNDEFINED_SYMBOLS_ALLOWED
    unused
    )

  if(NOT DEFINED PYTHON_INCLUDE_DIR
       OR NOT DEFINED PYTHON_LIBRARY
       OR NOT DEFINED PYTHON_EXECUTABLE)

    if ( SITK_UNDEFINED_SYMBOLS_ALLOWED )
      set( _QUIET_LIBRARY "QUIET" )
    else()
      set( _QUIET_LIBRARY "REQUIRED" )
    endif()
    find_package ( PythonLibs ${_QUIET_LIBRARY})
    find_package ( PythonInterp REQUIRED )

  endif()

Todo:

[ ] Generate documentation for targetLinkLibrariesWithDynamicLookup.cmake
[ ] Improve check_dynamic_lookup so that the fourth argument link_flags_var is optional
[ ] Even better, support signature check_dynamic_lookup(SITK_UNDEFINED_SYMBOLS_ALLOWED) that would be equivalent of calling check_dynamic_lookup(MODULE SHARED SITK_UNDEFINED_SYMBOLS_ALLOWED unused)

Thanks!

https://github.com/scikit-build/scikit-build/pull/230 is adding documentation along with support for the short signature check_dynamic_lookup(<ResultVar>)

CircleCI continuous build's configuration looks OK.
Merging into SimpleITK for nightly testing across platforms.


added metadata href+role (#362)

Overview
This PR is a fix for #362 and adds the optional metadata attributes href and role to the jinja templates. These attributes are only added when they are set.
Also autoescape is enabled for the jinja environment which is needed to encode URLs.
Related Issue / Discussion
#362.
Additional Information
Contribution Agreement
(as per https://github.com/geopython/pywps/blob/master/CONTRIBUTING.rst#contributions-and-licensing)

[ ] I'd like to contribute [feature X|bugfix Y|docs|something else] to PyWPS. I confirm that my contributions to PyWPS will be compatible with the PyWPS license guidelines at the time of contribution.
[x] I have already previously agreed to the PyWPS Contributions and Licensing Guidelines

Coverage remained the same at 73.14% when pulling fd433604c7a444791e4a1b46a53162bddd71f703 on bird-house:issue-362-templates-metadata into abdd4a3f01404e98d2d1705663537f9c2d1e5552 on geopython:master.

Works for me, thank you @cehbrecht


qiskit_qec.linear.symplectic.def _symplectic_product_vv_boolean gives wrong results

Steps to reproduce the problem
import numpy as np
from qiskit_qec.linear.symplectic import _symplectic_product_vv_boolean

a = np.array([1,0,0,0,1,1,1,0,1,0], dtype=np.bool_)
b = np.array([1,1,1,1,0,0,1,0,1,1], dtype=np.bool_)
_symplectic_product_vv_boolean(a, b, 5)

What is the current behavior?
Returns 1
What is the expected behavior?
The function should return 0, which is the actual symplectic product of the two vectors.
This example is actually the example in the docstring.
Note: Within qiskit_qec this function is never used, as in symplectic_product the input arrays are always converted to dtype numpy.int8.

Thanks @kaiott This is definitely and a rather simple fix:
r += vec1[i] & vec2[n + i] ^ vec1[n + i] & vec2[i]
should be
 r ^= vec1[i] & vec2[n + i] ^ vec1[n + i] & vec2[i]

I will include this fix in a PR that I am pushing through now.
PR #437


Not able to read content of the file which has parsed in multiPart() method

From<EMAIL_ADDRESS>on May 17, 2015 20:20:12
What steps will reproduce the problem? 1. > I have created tenantAdd() method - to add a tenant user by taking json input in a text file using multipart() method.
> Manually using POST REST client /using body() method when I parse the json input it works fine, but using multipart() method it is not working.
> Method:
  public static void tenantAdd(){
    Response res=given().headers("Accept","application/json")

.contentType("application/json")
.multiPart(newFile("file","D:/t/json.txt"))
.log().everything().when().post("/sites/"+id+"/tenants");
res.prettyPrint();
}
> D:/t/json.txt file input:
{
"name" : "Test ",
"description" : "administration tenant", "password" : "Test_123", "email" : "<EMAIL_ADDRESS>"
}
It is failing with below error:
> {
>      "detail": "Create tenant fails, cause: null",
>      "title": "Internal Server Error caused by unexpected exception",
>      "errorCode": "EMVI-WS-11019",
>      "problemType": " http://www.w3.org/Protocols/HTTP/HTRESP.html ",
>      "httpStatus": 500,
>      "httpMessage": "Internal error 'An error occurred while creating object from json String.' encountered while accessing 'Site' resource identified by '/em/websvcs/restful/extws/virtualization/infrastructure/v1/sites//tenants'",
>      "problemInstance": "/em/websvcs/restful/extws/virtualization/infrastructure/v1/sites//tenants"
> } What is the expected output? What do you see instead? > Output:
> ======
> Request method:	POST
> Request path:	https://IP:PORT/em/websvcs/restful/extws/virtualization/infrastructure/v1/sites//tenants
> Proxy:			<none>
> Request params:	<none>
> Query params:	<none>
> Form params:	<none>
> Path params:	<none>
> Multiparts:		<none>
> Headers:		Accept=/
> 				Content-Type=application/json; charset=ISO-8859-1
> Cookies:		<none>
> Body:
> {
>      "name": "Test",
>      "description": " administration tenant ",
>      "password": "Test_123",
>      "email"<EMAIL_ADDRESS>> } What version of the product are you using? On what operating system? Rest assured - 2.4.1
OS win7 Please provide any additional information below.
Attachment: Manual POST REST client.jpg
Original issue: http://code.google.com/p/rest-assured/issues/detail?id=402

From<EMAIL_ADDRESS>on May 17, 2015 22:51:00
I would appreciate if someone can update on this issue.

From<EMAIL_ADDRESS>on June 07, 2015 09:47:57
Could it be some charset issues? Perhaps you can try specifying charset/mimetype when sending the multipart request?

Closing since no response from user. Please reopen if it's still an issue.


Outlook event-based activation examples are immature

Note: This repo is only for questions related to its samples. If you have questions about how to use office.js or the Office developer platform, please post your question on https://stackoverflow.com. Tag your question with office-js or outlook-web-addins

Question
The recent Outlook-set-signature example is a great attempt to display how to use webpack to build event-based activation add-on. When following the example, it was easy to understand, how to build with the packager the entire add-on, including taskpane and event-based parts to include appropriate dependencies, do multi-scripting, etc. However, the most complicated part to understand and very hard to find any information for was left uncovered. So let me explain ...
The example completely covers how to build the entry point to be used in webcontrol runtime environment. Basically, this is similar to creating the entry point for taskpane and we use the packager (webpack) to produce the HTML file with appropriate dependencies. For example, when built, autorunweb.html would include not just the main script autorun.js but all required dependencies (for example polyfill.js lib; may include jQuery as well, but the example uses external source, which is fine for demonstration purpose to include at least one 3rd party library) ...
<!DOCTYPE html>

    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <title></title>

To finish with the introduction let's assume the autorun.js REQUIRED polifill.js and will fail without it. Or we can assume jQuery is required as well in order main script to work. So, this runtime (web-browser control) will handle the load of all of the required dependencies and the produced HTML file will properly work under Outlook on Web, Mac new UI, etc.
Finally to the question. Outlook desktop on Windows uses JS runtime instead. The entry point MUST be the single JS file, which the example has in the manifest. So far we just following the Event-based activation behavior and limitations where stated ...

Only the JavaScript file referenced in the manifest is supported for event-based activation. You must bundle your event-handling JavaScript code into this single file.

But when we look close on the example provided you just copied the main file without any processing and manifest pointed to this file...
Webpack command:
      {
        from: "src/runtime/Js/autorunshared.js",
        to: "[name]" + "[ext]",
      },

Manifest:
      "id": "runtime_1",
      "type": "general",
      "code": {
          "page": "https://localhost:3000/autorunweb.html",
          "script": "https://localhost:3000/autorunshared.js"
      },

If we still assume the autorunshared.js requires polifill.js or the entire jQuery library, the script will fail and I assume your example as well. It works only because the code really doesn't require the polifill or jQuery, I assume Outlook JS runtime will not have those dependencies, as it loads only the single JS file. Am I missing something? The example doesn't really explain how to load the required dependencies for the main JS file.
What I've done so far when trying to work on our company add-on ...
We are using webpack from the very first version of our add-on (years ago), as the Yeoman Generator is actually generates the add-on template this way. To add the event-based extension point I used the webpack to generate the single JS file with all of the required dependencies (kinda fat JS file). There are a lot of 3rd party dependencies for our code, such as polifill, jQuery, bootstrap, phonelib, etc.  The HTML entry point is clean and following the the documentation ...
<!doctype html>

    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <title>Email Encryption</title>

This page is left blank intentionally.

When the page loaded everything work as expected, even when webpack handling "unpacking" of this fat launchEvents.min.js file on the fly. When I pointed to the same ``launchEvents.min.js` JS file for Outlook Desktop JS runtime. It doesn't work and failing by timeout.
manifest.xml
<Runtimes>

<Runtime resid="LaunchEventsFile.Url">

  <Override type="javascript" resid="LaunchEventsJS.Url"/>
</Runtime>
</Runtimes>
<DesktopFormFactor>
<FunctionFile resid="FunctionsFile.Url" />
<ExtensionPoint xsi:type="LaunchEvent">
  <LaunchEvents>
    <LaunchEvent Type="OnMessageSend" FunctionName="onLaunchEventMessageSendHandler" SendMode="PromptUser"/>
  </LaunchEvents>

  <SourceLocation resid="LaunchEventsFile.Url"/>
</ExtensionPoint>

....

<bt:Url id="LaunchEventsFile.Url" DefaultValue="https://localhost:3000/launchEvents.html" />
<bt:Url id="LaunchEventsJS.Url" DefaultValue="https://localhost:3000/scripts/launchEvents.min.js" />

It looks like it does loading the JS, but most likely cannot find the association entry ...
Office.actions.associate("onLaunchEventMessageSendHandler", onLaunchEventMessageSendHandler);

because it's "hidden" by webpack packaging as any other 3rd party dependencies. May be I am wrong, but I have a hard time to find any "mature" example on how the single JS file have to look like when combined with 3rd party dependencies by webpack. And ALL your Outlook event-based examples are not helpful.
I am not asking you to extend the example (it might be a great idea for someone else in the future), but at least would you provide with any information on how this single JS must be packaged with webpack when there are some 3rd party dependencies. In your case for example the dependency for poolifill.js.
Sorry for the long essay, just wanted to make it clear.

Assigning @samantharamon to investigate.

Hello guys,
We have already passed this point and built our add-on as the bundled JS file for event-based activation. Right now it's at your discretion to close this ticket or work on it. For someone interested in the topic, we probably wouldn't figure out certain points without  "Viva Insights" add-on by Microsoft. This is an enterprise-quality event-based add-on. It's copyrighted, so it doesn't have a GitHub entry, but we learned a lot by looking at bundled JavaScript source code. It would be nice to have similar GitHub examples for everyone to see. I am certain, it would help the community to write more mature, enterprise-grade add-ons.

Hi @cut2run,
My apologies for not responding here sooner.
I understand that you've already built a bundled JS file for your event-based add-in. Event-based add-ins in classic Outlook on Windows use a custom sandbox that only supports JavaScript up to ECMAScript 2016. Classic Outlook on Windows doesn't use a webview sandbox for these add-ins. Because of this, only isomorphic JS libraries work well within this custom sandbox. Unfortunately, JQuery isn't one of those supported libraries as it uses DOM manipulation. The custom sandbox doesn't support DOM or BOM.
On that note, the JavaScript-only runtime used by classic Outlook on Windows is moving to the V8 JS engine, so that you can implement later ECMAScript standards in your event-based add-in. To learn more, see the "JavaScript runtime update" in What's new for Office Add-ins at Build 2024.
Before I close this issue, I want to address your suggestion to further enhance our existing samples. I added this to our backlog to look into further, so that we can provide samples that would benefit the community. We're hoping the move to the V8 engine will open up more functionality for event-based add-ins, but we'll also investigate other ways we can provide more real-life scenarios.
Thank you for your feedback. Please don't hesitate to create a new issue on GitHub if you have additional questions or feedback.


Setting up default address space takes a lot of memory

I was trying to run the test server and noticed that during startup, the application briefly takes around 270MB of memory.
This seems to happen while setting up the DefaultAddressSpace in Application.cs when entering SetupDefaultAddressSpace()
I tried to quickly debug to see what is taking so much memory but could not identify it. It seems to spike and drop down again to acceptable levels.

This can result in Out of memory errors when running on small devices like a Raspberry PI zero W 2.
Initially I thought it might be the demo historical data, but that is not the case.
Can someone explain what is taking this memory?
Is there a way to make this more efficient (less memory use)?

There are many small intermediate objects created while setting up the default address space. After a threshold (either time passes or memory limit reached), discarded objects are marked and feed.
This memory spike is due to how .NET's garbage collector works. When there is memory pressure, the top of the spike is clipped to not exceed the end result by more than a small margin (discarded objects are marked and collected when that happens).
For low-memory devices I wouldn't recommend .NET (I have a similar unreleased SDK for C++ which uses fixed memory allocations). If you must, I recommend not using the usual default address space and only create required nodes.

I'm aware of the garbage collector, but actually, this spike already seems to happen the moment you enter the SetupDefaultAddressSpace method in the Application.cs. Even before all the items are being created.
With .Net Framework the spike seems to be lower (83MB) but it is still weird that it seems to increase while just stepping into the method.
.Net seems to be optimizing and already allocate stuff in advance. if I comment out most of the code in SetupDefaultAddressSpace(), the memory stays low. I will look into it a little deeper

If you want to work with an embedded device and using the standard UA address space isn't important (i.e. type nodes, server nodes, buildinfo nodes, etc), you can just skip that method entirely and require very little memory for your address table.

Hi @nauful, just wanted to let you know that with some refactoring, this memory spike can be significantly reduced.
I just moved node creation for the default namespace to a method that takes the necessary parameters which already reduced the spike to less than a 3rd. Splitting up the address space generation reduced it even further.
This results in the memory only going up to around 25MB during startup. Lower than the memory when a connection is made.
Because I was just looking for a quick and dirty solution, the code change is quite rudimentary and I'm sure there are much more efficient ways to tackle this, but this resolves my issue: https://github.com/pspeybro/LibUA/commit/4e7fa5478e010de48a260057b8a5fa0eff865ce2


Changes to version behaviour - needs more work

https://github.com/open-contracting/ocdsdata/pull/57#issuecomment-380066443

still needs more work, as it can sometimes miss existing versions

I have noticed an issue, will do PR shortly.

Haven't seen an explination of the original comment but I think this is good now so closing.


Add link to line number

Permit to use link wich point directly to line number in docBlock : /** @see src/example/test.php:12 */

Ok fixed !

Thank you, new version released.


Error creating: pods "logs-agent-" is forbidden: unable to validate against any security context constraint

I'm trying to install the Cloud Logs agent on a ROKS cluster using this terraform script.
https://github.com/lionelmace/ibm-cloud-native/blob/main/terraform/observability-logs-agents-roks.tf
I'm facing the following issue
oc get events -n ibm-observe

LAST SEEN   TYPE      REASON         OBJECT                 MESSAGE
114m        Warning   FailedCreate   daemonset/logs-agent   Error creating: pods "logs-agent-" is forbidden: unable to validate against any security context constraint: [provider "anyuid": Forbidden: not usable by user or serviceaccount, spec.volumes[1]: Invalid value: "hostPath": hostPath volumes are not allowed to be used, spec.volumes[2]: Invalid value: "hostPath": hostPath volumes are not allowed to be used, provider restricted-v2: .initContainers[0].runAsUser: Invalid value: 0: must be in the ranges: [1000640000,<PHONE_NUMBER>], provider restricted-v2: .initContainers[0].privileged: Invalid value: true: Privileged containers are not allowed, provider restricted-v2: .containers[0].runAsUser: Invalid value: 10000: must be in the ranges: [1000640000,<PHONE_NUMBER>], provider restricted-v2: .containers[0].capabilities.add: Invalid value: "DAC_READ_SEARCH": capability may not be added, provider "restricted": Forbidden: not usable by user or serviceaccount, provider "ibm-restricted-scc": Forbidden: not usable by user or serviceaccount, provider "nonroot-v2": Forbidden: not usable by user or serviceaccount, provider "nonroot": Forbidden: not usable by user or serviceaccount, provider "ibm-anyuid-scc": Forbidden: not usable by user or serviceaccount, provider "hostmount-anyuid": Forbidden: not usable by user or serviceaccount, provider "ibm-anyuid-hostpath-scc": Forbidden: not usable by user or serviceaccount, provider "hostnetwork-v2": Forbidden: not usable by user or serviceaccount, provider "hostnetwork": Forbidden: not usable by user or serviceaccount, provider "hostaccess": Forbidden: not usable by user or serviceaccount, provider "ibm-anyuid-hostaccess-scc": Forbidden: not usable by user or serviceaccount, provider "node-exporter": Forbidden: not usable by user or serviceaccount, provider "ibm-privileged-scc": Forbidden: not usable by user or serviceaccount, provider "privileged": Forbidden: not usable by user or serviceaccount]
``

@lionelmace Did you set logs_agent_enable_scc to true for Openshift?

I just set it to true. I faced this new issue
Error: local-exec provisioner error
with module.observability_agents.module.logs_agent[0].helm_release.logs_agent
on .terraform/modules/observability_agents/modules/logs-agent/main.tf line 121, in resource "helm_release" "logs_agent":
  provisioner "local-exec" {
Error running command '.terraform/modules/observability_agents/modules/logs-agent/scripts/confirm-rollout-status.sh logs-agent ibm-observe': exit status 127. Output: .terraform/modules/observability_agents/modules/logs-agent/scripts/confirm-rollout-status.sh: line 8: kubectl: command not found

@lionelmace you need to ensure you have kubectl installed on the runtime. Since the initial issue is resolved, Im closing this. Feel free to open a new one if you face further issues

I'm running on the terraform in Hashicorp terraform cloud and I cannot install kubectl. Is there any workaround?

@lionelmace How about creating a null resource block in your terraform code to install the dependant binaries?


Pass in parts of options.content as inline values

It would be useful to pass in object from the options.content as inline values.
If I pass this json in via the option.content ...
myconfig.json
{
  "myobject": [
    {
      "title": "Git ate the last mint"
    },
    {
      "title": "Git explodes"
    },
    {
      "title": "Waiter says ..."
    }
  ]
}

... i can reference it in a _foreach loop.
item.htm

    {{item.title}}

This is enough in most cases. But let's say you want to use a different set of data for the item.htm template there would need to be some way of passing in the object that should be used.
{
  "myobject": [
    {
      "title": "Git ate the last mint"
    },
    {
      "title": "Git explodes"
    },
    {
      "title": "Waiter says ..."
    }
  ],
  "stars": [
    {
      "title": "Jupiter"
    },
    {
      "title": "Pluto. Yes Pluto."
    },
    {
      "title": "Mars"
    }
  ]
}

itemlist.htm

item.htm

    {{title}}

Not sure about the @ sign, just used it to differentiate from a normal variable.
Am I making any sense ?

Closing this in favor for a newer issue that discusses the same: #41


No database created for yig storage backend in docker-compose.yml

Is this a BUG REPORT or FEATURE REQUEST?:
This is a bug

Uncomment only one, leave it on its own line:
/kind bug
/kind feature

What happened:
No database created for yig storage backend in docker-compose.yml
What you expected to happen:
the database used by yig storage backend should be created in docker-compose.yml.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

Gelato(release/branch) version:
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

close this issue since it has already been solved.


Can't set formatting before writing

When I click bold/italics buttons or use shortcuts it doesn't change formatting when nothing is selected. Formatting can be changed only afterwards.

Yep, it's normal. It's the content editable. I can't do anything to that without amount of code like watching changes and apply style :(

I am not sure if it doesn't breat anything else, for now it seems it does what I wanted. 06505ded97a851200482c731c238a29a4bf4d202

This break some others use cases :/


Lotus Discord Server

Posting it as a new issue as the issue as #11 was already closed when I commented.
Since a majority of the fork community is on Discord, a Discord server for Lotus would be nice.

Hi!
Yes it needs one: https://discord.gg/enWNGT9j


Bot not reconnecting to steam

Is there an existing issue for this?

[X] I have searched for an existing issue

Expected behavior
Bot should automatically reconnect to Steam after disconnects
Actual behavior
Bot fails to reconnect. This prevents it from acting on trade offers. No error shown in logs
{"log":"[Nest] 1  - 05/07/2024, 9:22:30 AM   DEBUG [BotService] Trade offer poll succeeded in 533 ms\n","stream":"stdout","time":"2024-05-07T09:22:30.867408318Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:23:00 AM   DEBUG [BotService] Doing trade offer poll since<PHONE_NUMBER>\n","stream":"stdout","time":"2024-05-07T09:23:00.868415519Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:23:01 AM   DEBUG [BotService] Trade offer poll succeeded in 319 ms\n","stream":"stdout","time":"2024-05-07T09:23:01.192349756Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:23:29 AM   DEBUG [ManagerService] Sending heartbeat...\n","stream":"stdout","time":"2024-05-07T09:23:29.227028487Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:23:31 AM   DEBUG [BotService] Doing trade offer poll since<PHONE_NUMBER>\n","stream":"stdout","time":"2024-05-07T09:23:31.19163791Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:23:31 AM   DEBUG [BotService] Trade offer poll succeeded in 292 ms\n","stream":"stdout","time":"2024-05-07T09:23:31.48739677Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:24:01 AM   DEBUG [BotService] Doing trade offer poll since<PHONE_NUMBER>\n","stream":"stdout","time":"2024-05-07T09:24:01.488983989Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:24:01 AM   DEBUG [BotService] Trade offer poll succeeded in 234 ms\n","stream":"stdout","time":"2024-05-07T09:24:01.723860946Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:24:29 AM   DEBUG [ManagerService] Sending heartbeat...\n","stream":"stdout","time":"2024-05-07T09:24:29.268073708Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:24:31 AM   DEBUG [BotService] Doing trade offer poll since<PHONE_NUMBER>\n","stream":"stdout","time":"2024-05-07T09:24:31.734448733Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:24:32 AM   DEBUG [BotService] Trade offer poll succeeded in 955 ms\n","stream":"stdout","time":"2024-05-07T09:24:32.68278701Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:25:02 AM   DEBUG [BotService] Doing trade offer poll since<PHONE_NUMBER>\n","stream":"stdout","time":"2024-05-07T09:25:02.690625197Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:25:03 AM   DEBUG [BotService] Trade offer poll succeeded in 1003 ms\n","stream":"stdout","time":"2024-05-07T09:25:03.688759382Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:25:29 AM   DEBUG [ManagerService] Sending heartbeat...\n","stream":"stdout","time":"2024-05-07T09:25:29.310656981Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:25:33 AM   DEBUG [BotService] Doing trade offer poll since<PHONE_NUMBER>\n","stream":"stdout","time":"2024-05-07T09:25:33.695004643Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:25:34 AM   DEBUG [BotService] Trade offer poll succeeded in 973 ms\n","stream":"stdout","time":"2024-05-07T09:25:34.665484894Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:26:04 AM   DEBUG [BotService] Doing trade offer poll since<PHONE_NUMBER>\n","stream":"stdout","time":"2024-05-07T09:26:04.670732327Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:26:05 AM   DEBUG [BotService] Trade offer poll succeeded in 1014 ms\n","stream":"stdout","time":"2024-05-07T09:26:05.681514672Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:26:21 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:26:21.02450696Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:26:26 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:26:26.390315614Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:26:29 AM   DEBUG [ManagerService] Sending heartbeat...\n","stream":"stdout","time":"2024-05-07T09:26:29.338063978Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:26:31 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:26:31.709632187Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:26:35 AM   DEBUG [BotService] Doing trade offer poll since<PHONE_NUMBER>\n","stream":"stdout","time":"2024-05-07T09:26:35.684782582Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:26:36 AM   DEBUG [BotService] Trade offer poll succeeded in 981 ms\n","stream":"stdout","time":"2024-05-07T09:26:36.668407832Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:26:37 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:26:37.116410473Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:26:42 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:26:42.436768993Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:26:47 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:26:47.753986371Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:26:54 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:26:54.100376848Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:00 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:27:00.179528874Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:06 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:27:06.586656698Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:06 AM   DEBUG [BotService] Doing trade offer poll since<PHONE_NUMBER>\n","stream":"stdout","time":"2024-05-07T09:27:06.673152465Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:07 AM   DEBUG [BotService] Trade offer poll succeeded in 993 ms\n","stream":"stdout","time":"2024-05-07T09:27:07.665924227Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:12 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:27:12.716595672Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:18 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:27:18.836416059Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:25 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:27:25.332110262Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:29 AM   DEBUG [ManagerService] Sending heartbeat...\n","stream":"stdout","time":"2024-05-07T09:27:29.390526929Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:31 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:27:31.582806567Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:37 AM   DEBUG [BotService] Doing trade offer poll since<PHONE_NUMBER>\n","stream":"stdout","time":"2024-05-07T09:27:37.670721505Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:37 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:27:37.817443039Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:38 AM   DEBUG [BotService] Trade offer poll succeeded in 959 ms\n","stream":"stdout","time":"2024-05-07T09:27:38.62631804Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:44 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:27:44.143232495Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:50 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:27:50.222975695Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:27:56 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:27:56.277599187Z"}
{"log":"[Nest] 1  - 05/07/2024, 9:28:02 AM   ERROR [HealthCheckService] Health Check has failed! {\"bot\":{\"status\":\"down\",\"message\":\"Not ready\"}}\n","stream":"stderr","time":"2024-05-07T09:28:02.652658196Z"}

Steps to reproduce

Start the bot
Wait for the bot to get disconnected

TF2 Automatic version
5.7.1
Projects

[X] @tf2-automatic/bot
[ ] @tf2-automatic/bot-manager
[ ] @tf2-automatic/bot-data
[ ] @tf2-automatic/bot-manager-data
[ ] @tf2-automatic/bptf-manager
[ ] @tf2-automatic/bptf-manager-data
[ ] Other (see below)

Other projects
No response
Additional information
No response

I will be changing to logs so that the health check will log which part of the check fails. That way it will be easier to debug later on.

Can you try running https://github.com/tf2-automatic/tf2-automatic/releases/tag/v5.8.0 and let me know what it says when it becomes unhealthy? I included reasons for the health checks it should log those instead of the generic "Not ready".

Not logged in to steamcommunity

Seems like this is an issue with node-steam-tradeoffer-manager itself. Declining an offer will not work. sessionExpired event is not received.

But when trying to accept, it receives the sessionExpired event and that causes a relog


Built & pushed kube-ui v1.1

This doesn't change the version of the container started by the addon script, but does change the comment so hopefully no one will blow away the container I just built & pushed.
ref: #10645 & #10625

LGTM. Assigning to a TL (with fewer PRs to review).

LGTM
I don't think this needs a second reviewer, so marking ok-to-merge.
BTW the Shippable failure appears to be a flake in one of the contrib/mesos tests. I'll file an issue.


Migrate diagnostic settings storage retention to Azure Storage lifecycle management without a retention rule

The example of using a function app is not usefull in the case of migration Entra ID logs. So I have to know with is the correct provider here, right?
Thanks
[Enter feedback here]

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

ID: b686f483-4bd0-bc14-53f3-e893287ac652
Version Independent ID: ccc2c126-e4bb-75d0-1941-d4f7ffbae3a1
Content: Migrate diagnostic settings storage retention to Azure Storage lifecycle management - Azure Monitor
Content Source: articles/azure-monitor/essentials/migrate-to-azure-storage-lifecycle-policy.md
Service: azure-monitor
Sub-service: essentials
GitHub Login: @EdB-MSFT
Microsoft Alias: edbaynash

Hi @slueders-bag
I added some extra details in the article on how to configure the blob prefix.
You can drill into the container in the storage browser and use the path that is displayed:

#please-close


Many chrome zombie processes

Prerender doesn't kill chrome processes when connection closes (Chrome connection closed... restarting Chrome).

Also is there any way to view chrome logs?

This looks similar to https://github.com/prerender/prerender/issues/483
Which version of Prerender, Chrome, and Node are you using? Are you using any custom plugins or code?
You can view Chrome logs by passing parameters to Chrome to set up logging by passing chromeFlags to the spawn function: https://github.com/prerender/prerender/blob/master/lib/browsers/chrome.js#L24

Prerender 5.2.0
Chrome 63.0.3239.132
NodeJS v8.9.4
My server.js is very simple:
const prerender = require('prerender');
const server = prerender();
server.use(prerender.removeScriptTags());
//server.use(prerender.whitelist());
server.use(prerender.blockResources());
server.start();

I wasn't able to reproduce this locally when testing. Are the URLs that you're rendering causing a code path where our javascript throws an error and leaves the tab open? Do you see any errors in your Prerender logs?
You should be seeing the Prerender server restart Chrome every 10 minutes if there are no requests in flight or every hour if there are always more than 1 request in flight. Are you seeing those restarts happen? The restarts should be killing Chrome with a SIGINT which should clean up all open processes for that browser.

Forgot to mention that I run prerender with chrome in docker with SYS_ADMIN caps under non-privileged user.
Log:
app_1  | 2018-02-03T03:34:41.182Z Starting Chrome
app_1  | 2018-02-03T03:34:41.703Z Started Chrome: HeadlessChrome/63.0.3239.132
app_1  | 2018-02-03T07:09:42.788Z getting
app_1  | 2018-02-03T07:09:42.791Z invalid URL:
app_1  | 2018-02-03T07:09:42.793Z Restarting Chrome
app_1  | 2018-02-03T07:09:42.809Z got 400 in 21ms for
app_1  | 2018-02-03T07:09:42.845Z Chrome connection closed... restarting Chrome
app_1  | 2018-02-03T07:09:42.845Z Starting Chrome
app_1  | 2018-02-03T07:09:43.357Z Started Chrome: HeadlessChrome/63.0.3239.132
app_1  | 2018-02-03T08:56:18.798Z getting http://example.com/some/path
app_1  | 2018-02-03T08:56:19.495Z Restarting Chrome
app_1  | 2018-02-03T08:56:19.496Z got 307 in 698ms for http://example.com/some/path
app_1  | 2018-02-03T08:56:19.514Z Chrome connection closed... restarting Chrome
app_1  | 2018-02-03T08:56:19.514Z Starting Chrome
app_1  | 2018-02-03T08:56:20.024Z Started Chrome: HeadlessChrome/63.0.3239.132
app_1  | 2018-02-03T09:00:27.415Z getting
app_1  | 2018-02-03T09:00:27.417Z invalid URL:
app_1  | 2018-02-03T09:00:27.421Z got 400 in 6ms for
app_1  | 2018-02-03T09:17:50.030Z getting http://example.com/some/path
app_1  | 2018-02-03T09:17:50.705Z Restarting Chrome
app_1  | 2018-02-03T09:17:50.706Z got 307 in 676ms for http://example.com/some/path
app_1  | 2018-02-03T09:17:50.723Z Chrome connection closed... restarting Chrome
app_1  | 2018-02-03T09:17:50.723Z Starting Chrome
app_1  | 2018-02-03T09:17:51.234Z Started Chrome: HeadlessChrome/63.0.3239.132
app_1  | 2018-02-03T09:19:10.866Z getting http://example.com/some/path
app_1  | 2018-02-03T09:19:11.519Z got 307 in 653ms for http://example.com/some/path
app_1  | 2018-02-03T09:44:04.207Z getting http://example.com/some/path
app_1  | 2018-02-03T09:44:04.889Z Restarting Chrome
app_1  | 2018-02-03T09:44:04.892Z got 307 in 685ms for http://example.com/some/path
app_1  | 2018-02-03T09:44:04.910Z Chrome connection closed... restarting Chrome
app_1  | 2018-02-03T09:44:04.910Z Starting Chrome
app_1  | 2018-02-03T09:44:05.422Z Started Chrome: HeadlessChrome/63.0.3239.132
app_1  | 2018-02-03T09:44:40.288Z getting http://example.com/some/path
app_1  | 2018-02-03T09:44:40.933Z got 307 in 645ms for http://example.com/some/path
app_1  | 2018-02-03T09:56:20.299Z getting http://example.com/some/path
app_1  | 2018-02-03T09:56:20.896Z Restarting Chrome
app_1  | 2018-02-03T09:56:20.898Z got 307 in 598ms for http://example.com/some/path
app_1  | 2018-02-03T09:56:20.921Z Chrome connection closed... restarting Chrome
app_1  | 2018-02-03T09:56:20.921Z Starting Chrome
app_1  | 2018-02-03T09:56:21.431Z Started Chrome: HeadlessChrome/63.0.3239.132
app_1  | 2018-02-03T09:59:28.771Z getting http://example.com/some/path
app_1  | 2018-02-03T09:59:29.450Z got 307 in 679ms for http://example.com/some/path

Does that docker container run Chrome with --no-sandbox or any other different configs? I've seen some docker projects have to modify the arguments to Chrome to get it working.

Ran with --no-sandbox, but zombies are still here.

Sorry I should have been more clear. Usually --no-sandbox is what causes issues so I'm glad you didn't have that set previously. I wouldn't recommend using --no-sandbox.
It might also be helpful if you tried upgrading Chrome to v64 or even the current beta of v65 to see if that changes anything.
We don't see any of these hung processes on our machines and we max out our CPUs with rendering so I'll have to continue looking into this.

Using simple init (https://github.com/krallin/tini) solved the problem. Thanks for help!

Interesting, can you explain a little more how you used simple init with Prerender? That way we could look into using that with our repo if needed.

Just installed tini and changed CMD ["/usr/local/bin/node", "server.js"] to CMD ["/usr/local/bin/tini", "--", "/usr/local/bin/node", "server.js"] in Dockerfile. Also --init option from docker 1.13+ will work too.


Wrong time displayed on Graphs x-axis whereas times extracted from logs are correct

Hi,
There is a 2 hours time discrepancy between:

the right times parsed in my postgresql logs and displayed as texts in the pgBadger html report (here last time is 9AM which is good)
the wrong time scale (x-axis) displayed in all the graphs (queries/sec, connections/sec): here the last time shown is 11AM which is NOT good. It should be 9AM

I attach screenshots for your comprehension.
Thanks in advance for your analysis and answers.
Bertrand

Yes, the problem is that the timestamps shown in the Javascript graphs are based on your client host timezone and not the one of the log file. You can adjust the timezone for those graphs when building pgbadger reports using the -Z or --timezone option at command line. See pgbadger --help for usage.

Hi,
Ok I can do as you say and set --timezone parameter manually.
As my system timezone is "Europe/Paris", this is GMT+2 so I put:
--timezone +2

this means my system time is GMT+2

And this fixes the JS graphs. See the screenshot.

However I was wondering why this does not work WITHOUT this parameter.
As my postgresql log lines are tagged with a timezone:
2022-09-09 00:10:01.034 CEST [525932]: [2-1] user=...
And as CEST timezone is GMT+2 as well
This should be possible to select the x-axis time scale for the JS graphs without having to offset manually.
The drawback being that this offset may change depending on DST...
Well, thank you in any case for your answer.
Bertrand

This is just because sometimes there is no timezone information and some other time the client is not at the same timezone and historically pgbadger doesn't take care of the timezone in the logs. Maybe this could be improved by using an advanced Date/Time Perl module but this is not in the pgbadger development policy.


Refactor --rm to take a single path arg

--rm FOLDER PATH is not as user friendly as it could be.
It should really just be --rm PATH and we can search all of the config for the path.

Hi, Which folder is this command located?

You should search the whole config to find the folder with the path in it.

Done in f26ff83


Fix/41 Copy button to disappear on mouseout

Fixes #41
Screenshot

Hi @bhargav175 thanks a lot for your contribution, we'll have review and test on it, just wanna ask if you'd like to modify the commit message to 	Copy button to disappear on mouseout, fix #41? So that the origin issue can be connected and directly closed when we merging this PR, thanks!

@sufuf3 @hare1039 what do you think about taking this as your homework on the website? Just valid if this works fine!

@PeterDaveHello Of course. Just amended the commit message.

@bhargav175 Thanks man :+1:

hmmm, but I didn't see the update here, @bhargav175 maybe you forgot to push it?

@PeterDaveHello How about now ?

@bhargav175 perfect :+1:

Ping @sufuf3 @hare1039

It's awesome.

Ping @PeterDaveHello @pvnr0082t

@bhargav175 just found a small part may need to be done in the same PR, could you please also make the button show up when the mouse move onto the whole library block, instead of currently it'll only should up on the url? Many thanks.

@PeterDaveHello Yeah, I wanted to do that too. But I didn't want to a change that was not mentioned in the issue. The behavior earlier was that it shows up when you hover on the url part and does not get hidden away. Now, that the "hide" part is done, it feels a bit weird that it gets hidden the moment you hover out. Shouldn't this be another issue? Don't mind fixing it on this PR though.

@bhargav175 the reason is I would like to deploy them together, would you like to send another PR directly base on this on? I can marge them together, thanks.

Yeah I will
On Thu 9 Mar, 2017, 6:00 PM Peter Dave Hello<EMAIL_ADDRESS>wrote:

@bhargav175 https://github.com/bhargav175 the reason is I would like to
deploy them together, would you like to send another PR directly base on
this on? I can marge them together, thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cdnjs/new-website/pull/159#issuecomment-285338867,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACzPREZTJYWUplUO2sygq8QHf6m3Jqz8ks5rj_DngaJpZM4MTIzr
.

--
Thanks,
Bhargav Ponnapalli
Expert mentor at Codementor.io
https://www.codementor.io/bhargavponnapalli

@bhargav175 thanks!

@PeterDaveHello Just updated the PR. Let me know what you think.

Awesome 💯 , thanks @bhargav175 😄

Great!

@bhargav175 thanks for your contribution!

@bhargav175 just found that the button on each library's page is now broken, can you take a look?

I'll revert the second commit first.

I will.


fix: next step text

fixes: https://github.com/fabric8-launcher/launcher-frontend/issues/343

changed text a little README.doca should have been README.md IMO


Consistent usage pattern for CLI options --mets/--mets-basename/--working-dir

Current situation
The three options -M/--mets, -m/--mets-basename and -w/--working-dir (processors) / -d/--directory (ocrd workspace) are inter-connected and they can clash to cause ambiguous behavior when combined.
How it should be
--mets-basename should be deprecated in ocrd workspace, it can be simulated with a combination of --mets and --directory.
--working-dir should be properly taken into account for processor calls.
The resolving logic of processors and ocrd workspace should ideally use the same code for consistency
Steps

[ ] Test that OCR-D/core#696 is consistent
[ ] Decide on whether/when -mets-basename could be dropped
[ ] Merge OCR-D/core#696

Is it possible to provide an example for ambiguous behavior?

I think this epics lacks a step when deprecating --mets-basename: We should update this parameter's docs to make clear how its behaviour can be achieved by using the other two params. Or is this already implicit?

Is it possible to provide an example for ambiguous behavior?

For example, if you do ocrd workspacd -d /path/to/workspace1 -m /path/to/workspace2/mets.xml -M not-mets.xml, where should we look for the METS?

/path/to/workspace2/mets.xml (because of -m)
/path/to/workspace1/not-mets.xml (because of -d and -M)


Create Obstacle_Avoider_Bot.ino

It is the code for Obstacle Avoider Bot running on NodeMcu 12E Module Microcontroller.

Please have a look into it.