[Discussion] Non-blocking I2C Trait

It's unfortunate that there's no nonblocking variant of the i2c HAL traits -- but that could easily change.
My first impression is that it should look something like:
//! Inter-integrated Circuit Interface

use nb;

/// Possible I2C errors
pub enum Error<E> {
    /// An implementation-specific error ocurred
    Other(E),

    /// Another master owns the bus
    ArbitrationLost,

    /// The slave did not acknowledge an address or data byte
    ByteNacked,

    /// An operation was attempted at an invalid time
    ///
    /// For example, an attempt to `send()` a byte before `send_address()` is called will fail with
    /// this error
    InvalidOperation,

    #[doc(hidden)]
    _Extensible,
}

/// Read or write access to the peripheral
pub enum AccessType {
    Read,
    Write,
}

pub trait Master {
    /// An enumeration of implementation-specific I2C errors
    type ImplError;

    /// Drive a start condition on the bus
    ///
    /// Returns an `Error` if the system is in an invalid state.
    ///
    /// May be used to generate a repeated start condition -- however, at minimum `send_address()`
    /// must be called between the start conditions.
    ///
    /// TODO: Does I2C require at least byte transferred before the repeated start? This is by far
    /// the most common use-case
    fn send_start(&mut self) -> nb::Result<(), Error<Self::ImplError>>;

    /// Drive a start condition on the bus
    ///
    /// Returns an `Error` if the system is in an invalid state
    fn send_stop(&mut self) -> nb::Result<(), Error<Self::ImplError>>;

    /// Send a peripheral address
    ///
    /// Must be the first operation after generating a start condition.
    fn send_address(
        &mut self,
        address: u8,
        access: AccessType,
    ) -> nb::Result<(), Error<Self::ImplError>>;

    /// Send a byte to the peripheral
    ///
    /// May be called several times after sending an address with `AccessType::Write`. May not be
    /// called after sending an address with `AccessType::Read`
    fn send(&mut self, byte: u8) -> nb::Result<(), Error<Self::ImplError>>;

    /// Send a byte to the peripheral
    ///
    /// May be called several times after sending an address with `AccessType::Read`. May not be
    /// called after sending an address with `AccessType::Write`
    fn read(&mut self, send_ack: bool) -> nb::Result<u8, Error<Self::ImplError>>;
}

If this is stabilized, there could be default implementations of blocking::i2c in terms of it, simplifying driver writers' lives.
Alternatives
The nonblocking trait could operate at a higher-level (basically just mirroring the traits exposed by blocking::i2c except with a nb::Result. The above trait has lots of potential for runtime errors, which may be undesirable.

I'd prefer statically checking validity of operation. Like this:
pub trait Send {
    type Error;

    fn send(&mut self, byte: u8) -> nb::Result<(), Error<Self::Error>>;
}

pub trait Receive {
    type Error;

    fn receive(&mut self, send_ack: bool) -> nb::Result<u8, Error<Self::Error>>;
}

pub trait Master {
    type Sender: Send;
    type Receiver: Receive;
    type Error;

    fn send_start(&mut self, address: u8) -> nb::Result<&mut Self::Sender, Error<Self::Error>>;
    fn receive_start(&mut self, address: u8) -> nb::Result<&mut Self::Receiver, Error<Self::Error>>;
}

Are there any developments on the subject or has it been decided not to build a shared public interface for the non-blocking i2c?

I'm not very experienced with this, but I'm wondering, why there is such a major distinction between this at all and why blocking is the default here.
I'd assume, that most μCs have special hardware for I2C, which makes non-blocking the more natural choice. I also think, that a non-blocking implementation can easily be changed into a blocking one.
Idea
So my naive idea of an I2C trait would be something like this:
We have a module embedded_hal::i2c which provides the following traits:

read/write (or send/receive) might block or not, depending on the implementation. The only guarantee is, that the transaction was started. This function might block when there is an incomplete previous transmission "in the pipe".
blocking_read/blocking_write guarantee that the transaction is complete when the function returns.

A HAL implementation could then for example implement a non-blocking variant and implement the blocking variant by using busy-waiting or - if there can only be a blocking implementation - use the same function for both of it. I seems like this is the way stm32f1xx_hal implements it.
Driver implementations would then be able to choose the according function for their implementation and save some (precious) μC cycles which are currently wasted by busy-waiting.
Problems
This would be a breaking change. But don't we use semantic versioning for that very reason?

Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable

I'm not very experienced with this, but I'm wondering, why there is such a major distinction between this at all and why blocking is the default here.

Because it's much easier to implement.

I'd assume, that most μCs have special hardware for I2C, which makes non-blocking the more natural choice. I also think, that a non-blocking implementation can easily be changed into a blocking one.

There're different kinds of "non-blocking". There's the kind where you basically just setup the data, point the peripheral to it and say do it and then just check whether the operation is done (i.e. poll the status) or receive a notification (i.e. an interrupt) that's how DMA works.
Problem: You may or may not be able to set up multiple operations in flight so you have to be able to reject a new transaction until the previous one has finished. And the caller needs to be able to deal with that situation.
Then there's a "software" implementation of the above. Problem here is: You need to have an internal buffer to handle store the in-flight data and you need to peridiocally poll the implementation (or use interrupts which really can not be done in a generic fashion internally) to make progress by spoon-feeding the next piece of data into the peripheral.
Problems: Buffers are complicated to implement, especially on lowlier MCUs without atomic operations and sizing is always going to be a big fun. Also you usually cannot stretch the clock forever so you need to poll frequently to make progress.
It's tricky to model an interface that works for both cases, and allows for (and actually requires) regular polling to check the status or make progress plus of course the application using that interface needs to be able to handle with errors which happen asynchronously.

Thanks for the good summary :+1: .
However, I still think, that a generic read/write trait that doesn't give specific guarantees would be nice and in addition to this a set of specialized traits (blocking_read, read_to_buffer, something with async/await...) for those drivers that require more fine grained control.
At the moment, every driver implementation requires the I2C object to implement embedded_hal::blocking::i2c, even though they might just send a single byte to a sensor.

At the moment, every driver implementation requires the I2C object to implement embedded_hal::blocking::i2c

Not sure I follow. When you say "driver", are you talking about the HAL impls? We're usally using the word driver for crate that takes an impl of the generic traits and converts them into a an API usable by applications. Of course the HAL impl needs to implement the whole interface at once which is why it has to be simple and generic.

even though they might just send a single byte to a sensor.

This does not really work for I2C because you need to deal with the addressing and the conditions, which the original proposal in this issue did by exposing a low level interface.

This does not really work for I2C because you need to deal with the addressing and the conditions,
which the original proposal in this issue did by exposing a low level interface.

I think, we are talking about a different level of asynchronicity here.
I'm only talking about not (busy-)waiting for the acknowledgement so that this time can be used for computation.
Indeed, this is not really nonblocking, because the software would still have to block when there is an ongoing I2C transfer and you want to initialize a second transfer. But it would at least speed up patterns like I2C transfer - computation - I2C transfer - computation, especially if utilizing DMA hardware.
In contrast, I understood the original proposal like you need a FIFO and a distinct thread that starts the next transfer as soon as the previous one has finished.
This sounds a lot like it requires async/await and I think, this a bit too high-level for the embedded-hal and would better fit in a specialized crate. But in that case, do you really need to control the start/stop bits from a driver point of view? I'd have guessed the current abstractions (write(&mut self, addr: u8, bytes: &[u8])) are sufficient.

Not sure I follow. When you say "driver", are you talking about the HAL impls? We're usally using the word driver for crate that takes an impl of the generic traits and converts them into a an API usable by applications.

That is what I meant by driver, too.

I think, we are talking about a different level of asynchronicity here.

I don't think so.

I'm only talking about not (busy-)waiting for the acknowledgement so that this time can be used for computation.

Sure. Depending on how you do your I2C communication you will still be able to do other computation.

Indeed, this is not really nonblocking, because the software would still have to block when there is an ongoing I2C transfer and you want to initialize a second transfer. But it would at least speed up patterns like I2C transfer - computation - I2C transfer - computation, especially if utilizing DMA hardware.

It could be truly non-blocking in this case, but somehow you need to manage the data and DMA accesses and that is simply not easy to abstract over generically.

In contrast, I understood the original proposal like you need a FIFO and a distinct thread that starts the next transfer as soon as the previous one has finished.

You absolutely need an software arbiter taking care of the bus accesses and feeding the data into the peripheral, just as I mentioned before. A separate task is a way of doing that and indeed how most embedded OSes do that but it's not really applicable here.
There might easy specialized implementations with a trivial interface for some MCUs but again we're looking for a universally useful abstraction here.

That is what I meant by driver, too.

Please note that there's literally no use in having a super driver that efficiently uses special traits for which there's exactly the two mandatory proving implementations. You might as well create and use a MCU specific optimized implementation of that driver then.
I'm convinced there's a way to provide so an interface which is easy enough to use and can be universally implemented but it will require quite a bit of work and trial-and-error to come up with something that is acceptable for inclusion here.
Please feel free to take on this task and come up a concrete proposal for such an interface. If you need help or testers, feel free to ping us on matrix or here and I'm sure there're plenty of people glad to help and figure this out with you.

Would replacing all busy_wait loops with an async suspension point fix the issue? I don't think you need any buffering as the future would require unique (&mut) access to the I2C struct, and the state is encoded by the async/await transform.

Would replacing all busy_wait loops with an async suspension point fix the issue? I don't think you need any buffering as the future would require unique (&mut) access to the I2C struct, and the state is encoded by the async/await transform.


[Question] - Deleting First Node

Hi,
I see a few issues where people are trying to re-install the 1st node and there seems to be a few issues with the process currently.
My question is - is there a specific process if I want to remove the 1st node without reinstalling it?  Will I run into any issues?
Thanks!

The detailed test steps about how to remove a node and how to add new / reinstall nodes.
https://github.com/harvester/harvester/issues/2665#issuecomment-1280711371

Thanks!

@RegisHubelia We will close this issue.
Feel free to re-open or fire new ones for any issues you encounter in the future, thanks.


SVG export error

example.zip

Yeah I am able to reproduce, its only happening for svg.

The shapes that are not rendered by SVG, the color is set to 71ba0 which is an invalid color for svg.  The app probably parses the color and falls back to black.

Yep, that's right, thanks for pointing this out @pshihn.
@zsviczian can you fix the value for stroke color? & it should work.
We should probably show some error message to inform the users about this.

Thanks. I did not spot the issue with the color. will fix!
On Wed, May 19, 2021, 22:11 Aakansha Doshi @.***> wrote:

Yep, that's right, thanks for pointing this out @pshihn
https://github.com/pshihn.
@zsviczian https://github.com/zsviczian can you fix the value for
stroke color? & it should work.
We should probably show some error message to inform the users about this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/excalidraw/excalidraw/issues/3602#issuecomment-844434341,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADNRO6QQ3JKL5DHK36GFX4DTOQLOJANCNFSM45FEBGDA
.

As I understand that color was set by an script that automates the diagram in your Obsidian plugin? The problem then is we're not restoring colors and allow importing invalid ones. It's unclear at what point does the renderer fall back to #000 and whether we can detect it and update the element's color.

Correct. I have a silly demo script to generate a mindmap from text. To make it more colorful I added the following to change color at every first level branch...
if (depth == 1) ea.style.strokeColor = '#'+(Math.random()*0xFFFFFF<<0).toString(16);
I am guessing this resulted in the invalid color.
You may want to add validation of imported colors, though I wouldn't worry about it too much. This is not an excalidraw issue, but an issue in my automation script.
Thanks.

@zsviczian i think your random calculator does not take into account leading 0s. So it could produce 6dbcc when it probably meant 06dbcc


1)Added a feature of platform selection when running tests through th…

…e Selenium Grid
/**

The platform where tests using Selenium Grid will be started
Can be configured either programmatically or by system property "-DplatformName=win7"
*/

2)Added the feature of adding plugins to the browser to chrome
/**

The browser plugins.
Can be configured either programmatically or by system property "-DpathToExtension.chrome=%pathToFileCrx%".
You can connect a lot of plug-ins to pass to them a path separated by a comma ("-DpathToExtension.chrome=adblockpluschrome.crx,extension_1_13_8.crx")
Default value: none (The browser starts without plug-ins)
*/

Hi @Antonppavlov
Please, fix checkstyle issues:
https://travis-ci.org/codeborne/selenide/builds/267265554?utm_source=github_status&utm_medium=notification
.....
[ant:checkstyle] Running Checkstyle 6.19 on 147 files [ant:checkstyle] [ERROR] /home/travis/build/codeborne/selenide/src/main/java/com/codeborne/selenide/Configuration.java:155: Line is longer than 136 characters (found 154). [LineLength] [ant:checkstyle] [ERROR] /home/travis/build/codeborne/selenide/src/main/java/com/codeborne/selenide/webdriver/WebDriverFactory.java:37:1: Class Fan-Out Complexity is 28 (max allowed is 26). [ClassFanOutComplexity] [ant:checkstyle] [ERROR] /home/travis/build/codeborne/selenide/src/main/java/com/codeborne/selenide/webdriver/WebDriverFactory.java:175:7: 'if' is not followed by whitespace. [WhitespaceAround] [ant:checkstyle] [ERROR] /home/travis/build/codeborne/selenide/src/main/java/com/codeborne/selenide/webdriver/WebDriverFactory.java:175:29: '!=' is not preceded with whitespace. [WhitespaceAround] [ant:checkstyle] [ERROR] /home/travis/build/codeborne/selenide/src/main/java/com/codeborne/selenide/webdriver/WebDriverFactory.java:175:31: '!=' is not followed by whitespace. [WhitespaceAround] [ant:checkstyle] [ERROR] /home/travis/build/codeborne/selenide/src/main/java/com/codeborne/selenide/webdriver/WebDriverFactory.java:175:36: '{' is not preceded with whitespace. [WhitespaceAround]


0.9.11 not support dynamic build schema

my app build schema when client request ,it will according client query.client query may be only mutation,like "mutation login .....",the backend build the schema bellow
$schema = new Schema([
  'query'=>null,//because the query is mutation ,so it is null
  'mutation'=>$mutation,//var $mutaion is mutation login,
 'types'=>$types
])

before 0.9.11 the code work fine,but 0.9.11,it will throw exception:
Schema query must be Object Type but got: NULL..
so i change the code
//config is null or [] or query config
$query = new ObjectType($config);
$schema = new Schema([
  'query'=> $query,
  'mutation'=>$mutation,//var $mutaion is mutation login,
 'types'=>$types
])

it works ,but extend other problem when the  api backend only have mutation,the schema  introspection query in chrome GraphiQL throw exception
Error: Query fields must be an object with field names as keys or a function which returns such an object.
i don't think the validator is a good idea,it is not support dynamic build schema.

i solved it with returning an empty array.

i update the issue..more description

To solve that u gotta leave query out of the array send too schema

$result = new Schema([
'mutation' => $mutation,
'types' => $types
]);
it does not work

i fixed it this way (https://github.com/TerraSkye/yii1-graphql/blob/master/components/GraphQL.php#L111)
i made a port for yii1 of your implementation. and had the same issue.

@tsingsun The query is required part. I am curious which version you were using before (which allowed query to be null)? That previous behavor was actually buggish, not the current one.
Quote from GraphQL spec:
The query type must always be provided, and is an Object base type.

If you really want to have empty query, just pass an empty object type:
$result = new Schema([
  'query' => new ObjectType(['name' => 'Query', 'fields' => []])
  'mutation' => $mutation,
  'types' => $types
]);

ths,its usefull..sorry,I made a mistake,the graphql version is correct.


Very high cpu usage

I did the load testing for rulio service with around 200 concurrent connections. The machine is 2 core 2.66 GHz and 8 GB RAM. With just 200 concurrent requests, the CPU Load touches 100%. The average rate is 16 Req per seconds. That seems very slow. Is there any way to improve the performance?

How are you running the load test? What platform?

I am using a linux ubuntu 16.04 machine. I am using https://github.com/rakyll/hey to generate a load. I noticed one more thing. After my load testing script ended pushing events to the rulio, the rulio's CPU usage remained very high even though no events being pushed to the service.

I am using cassandra backend. But it seems to me that, it is accessed on loading the rules. But on each event, the server doesn't go to cassandra.

If you can, try another persistence method to get started. The Cassandra support hasn't gotten much attention recently.

I tried with default storage. The usage remained very high.

Have you tried the little simulator in tools/sim?
Example output:
latencies,104,64.000000,64,1,3,6,7,21,2
latencies,105,58.000000,58,2,3,4,4,5,0
latencies,106,71.000000,71,1,2,3,5,6,0
latencies,107,66.000000,66,2,3,3,4,5,0
latencies,108,65.000000,65,1,3,3,5,6,0
latencies,109,63.000000,63,2,3,3,4,7,0
latencies,110,68.000000,68,1,2,3,5,9,1
latencies,111,63.000000,63,2,3,3,7,10,1
latencies,112,64.000000,64,1,3,3,5,6,1
latencies,113,66.000000,66,1,2,3,3,4,0
latencies,114,70.000000,70,2,3,4,10,12,1
latencies,115,61.000000,61,1,3,8,9,15,2
latencies,116,62.000000,62,2,3,4,6,7,1

Most of those numbers are milliseconds, which is a good starting point.
What do you see there?
What rules and events are you using in your tests?

Any solution to high CPU usage?

Hi Roneet,
I am sorry, I didn't find a solution to that problem.
-- Rakesh
On Wed, Apr 22, 2020 at 10:51 AM Roneet Shaw<EMAIL_ADDRESS>wrote:

Any solution to high CPU usage?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Comcast/rulio/issues/46#issuecomment-617827710, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJFN6YT4Z7BYN3I3QPR3ELRN4AAXANCNFSM4FUCFLVA
.


Promise is Undefined on IE11

Getting an error on the signup page in IE.
Appears on page load and on submit form
"Promise is undefined" in signup/index_bundle.js
Looks like IE doesn't support Promises and you have to add some sort of external promise library.

Ahh, thanks you for tracking that bug down.
Ccing Dave factor who originally wrote it for his benefit.
Will look into promises.js or something.
On Wed., 16 Nov. 2016 at 8:18 am, Thomas Sesselmann <
<EMAIL_ADDRESS>wrote:

Getting an error on the signup page in IE.
Appears on page load and on submit form
"Promise is undefined" in signup/index_bundle.js
Looks like IE doesn't support Promises and you have to add some sort of
external promise library.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/voteflux/vote-flux-v2/issues/15, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA_3sIqLbyDS4Wu5gPfDLZ22yEdifWx3ks5q-iGEgaJpZM4KzCEU
.

--
Cheers,
Max
xk.io
voteflux.org

@TomSesselmann - I can't test this easily, if you're able to that'd be great, but should work if not.

Yep, can confirm that the signup process works fine on IE11 now 👍


ARC permissions for GitHub App registration misleading

Code of Conduct

[x] I have read and agree to the GitHub Docs project's Code of Conduct

What article on docs.github.com is affected?
https://docs.github.com/en/enterprise-cloud@latest/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/authenticating-to-the-github-api#authenticating-arc-with-a-github-app
What part(s) of the article would you like to see updated?
Currently the docs for authenticating with a GitHub App for Actions Runner Controller indicates that Repository permissions of scope Administration: Read and write are required.  This is misleading because this scope is only required when registering ARC at the repository level and is not needed for Organization-scoped ARC registrations
Additional information
I'll update this in a PR

This is in the actions docset and it looks like the actions team has the linked PR covered with a review, so I'm going to remove this from the enterprise board 🙇♀

من دو ساله از طریق این سایت هک شده ام یکی کمکم کنه لطفا


Update RedirectToAccountControllerRequestsShould to use newly added extension methods in ApplicationUserTestHelpers

Fixes #1173

tried to do these in 'best order' but looks like it needs a rebase...


Don't throw on invalid cookies

Since cookies are user input, we shouldn't throw an exception if the cookie does not pass our tests.
Imho ignoring it is sufficient.
Maybe we could emit an event for debugging purposes, but certainly not an error.

+1


update spring

there seems to be a problem with Spring 3.2 & jetty with upstream - possibly related to https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.2-Release-Notes#jetty-12


How to attach to game window

Could you please help me attach my window to game window?
I am trying to use IMGUI to make an overlay window. (Writing a game cheat)
In my mind, it will be 2 methods:

Create a new window with transparent key then set it is topmost
Or an other way which IMGUI is supporting (but I dont know) to attach IMGUI to Game Window by IntPtr (Game Window ID)

Please tell me which is is best and how to do it. Thank you very much!

We can make the _window is top most but have no way to make it is transparent.
_window = new Sdl2Window("NIX", 10, 10, 100, 800, SDL_WindowFlags.Borderless | SDL_WindowFlags.AlwaysOnTop, false);
GraphicsDevice _gd =  VeldridStartup.CreateGraphicsDevice(_window, new GraphicsDeviceOptions(true, null, true));

@zaafar  Could you please help me make it transparent?

Basically what I am trying to say is, when we make the SDL2Window transparent the SDL_WindowFlags.AlwaysOnTop flag stops working.
I need to dig the code for making the SDL2Window transparent. Will share with you once I find it.

well, good news ... looks like it's working now .. it wasn't few months ago.
Time to go back to creating the overlay. :)
checkout my fork and commit to see how to get the window transparent
https://github.com/zaafar/ImGui.NET/commit/1a0f74062b36430fd2a3f2ad7caa7d0c3f1524c0
BTW @mellinoe  thx for adding the flag. :)


Modifying Route 53 Provider

Resolving a bug in the route53 provider that was preventing the
retrieval of more than 100 resource_record_sets in any given zone.
The Change enumerates the aws response object, allowing the client to page
through the responses.  I have been able to test this against a route53 zone with over 900 records. Provider now returns all values.

@DoctahPopp871 thanks for submitting, much appreciated.


Safari Support

Overview
This adds support for saving images in Safari. dom-to-image uses <foreignObject> tags which taint the canvas and prevent conversion to a DataURL in Safari. As a workaround, this PR adds an API endpoint for generating an image based on a carbon URL. To do this, the server renders the page in chrome using puppeteer, generates the image manually, and sends it as a response.
Still To Do

[x] send only Base64 encoded state not whole URL
[x]  get puppeteer working on Now (unless Zeit adds support for this we'll likely have to drop down to Docker)
[x] error handling

closes #28

Currently I recreated the docker image that clones the repository, it works as before. However I can't test on Safari, I don't have a Macintosh on hand... :confused:
You can pull image here if you want to test.
Keep me informed!

@briandennis how does the new api endpoint work? Is it just posting to https://carbon.now.sh/image and the body is a json holding all information in base64? I wanted to make a small cli for myself :smile:


[TASK]: Investigate showing (popping up) larger version of vegalite chart

Pascale was asking if it is possible to "pop up" a larger version of the Vegalite chart, similar to how model-comparison has this "preview" kind of things with PrimeVue images (https://primevue.org/image/)

            Comparison {{ index + 1 }}
            <Image id="img" :src="image" :alt="`Structural comparison ${index + 1}`" preview />

Not a priority I think, because Vegalite itself can already be detatched into Vegalite-editor in a different window/tab ... but might be good to spend maybe half a day looking at what options are there.

I think we can build something similar to <Image preview.. into VegaChart component


Add option to remove from menu

Now Wagtail has its own help menu which includes a link to the generic Wagtail Guide, it could be confusing to have this site-specific guide elsewhere in the menu. Could we have an option to remove this guide from the menu, and instructions for including it within the new help menu (using the register-help-menu-item hook).

Thanks @tomdyson, makes sense that.
I guess we are talking about an overall settings option that will do the following:

Turn off/Hide the core Help > Editor guide menu item
Move the wagtailguide 'Editor guide' menu item into the help menu, So it's replacing it.

Might be worth adding a setting for the wagtailguide menu label, should someone want both of these, they could name the wagtailguide one 'CMS Guide' or 'Publishers Guide'
I'll have a look into this :+1:

I've hashed something together here https://github.com/kevinhowbrook/wagtailguide/pull/23
It's basically v2.0.0 because I've dropped support for older versions, I'll let the older PyPI releases offer that


tag missing problem

I'm doing a research on tags .
We found that version 1.4.5-5、1.4.4-6 was released in Maven, but there was no corresponding tag in github. Can you help me with this?
1）What is the reason for tag's absence?

a、This version code has problems, such as the loophole, compatibility and interface issues, etc.
b、This version has functional problems, such as unreasonable function planning, basic function cannot be used
c、Forgot to tag
d、Don't care or is too trouble
e、others，_

2） To solve this problem, we propose a method that can find the true commit of version to help developers quickly locate the problem code and fix the bug. Here are the possible true commits given by our method. Can you confirm whether or not the actual commits are included, and if not, which ones?
Is v1.4.5-5 release on commit:
['2662fbdc320ce482a24c20b8fcac8b1d5b79fe33']
Is v1.4.4-6 release on commit:
['630adcdbb8abe1bf7b88bd266794cfdd9d33796f']
♥ This question is very important to our research. Thank you for your time!

I forgot to tag them. Looks like these are the right commits.


AttributeError: module 'pybgs' has no attribute 'DPAdaptiveMedian'

Hi there, I need some help.
When I tried to run the demo2.py, it reported an AttributeError: module 'pybgs' has no attribute 'DPAdaptiveMedian', then I annotated that line and ran again, same error happened but for the following line: AttributeError: module 'pybgs' has no attribute 'DPGrimsonGMM'

However, if I removed the whole  if is_cv2() or is_cv3() section, the program could be executed successfully

PC config.: Windows 10, Anaconda environment, Pycharm 2019.2.1, Visual studio 16 2019, OpenCV 3.4.2
I followed the https://github.com/andrewssobral/bgslibrary/wiki/Wrapper:-Python to install the pybgs  whereas the installation details were slightly different, First I cloned this repository and added OpenCV_DIR system path, Next cmake ... BGS_PYTHON_SUPPORT=ON ... failed, So I wnet back to Building Python wrapper from scratch then used python setup.py build and python setup.py install as a result I saw the:
-- The C compiler ...
...
-- Configuring done
-- Generating done
-- Build files have been written to: ...
Therefore I utilized VS 16 2019 to build the bgslibrary.sln in .\bgslibrary\build\temp.win-amd64-3.7\Release, which generated a file named pybgs.cp37-win_amd64.pyd
Based on this .pyd file I can smoothly run demo.py and demo2.py (removed a part), but the installation procedure and partial file names were not exactly the same as the tutorial, in addition the error "AttributeError: module 'pybgs' has no attribute 'DPAdaptiveMedian'".
I hope to know how to fix that.
Sincerely,

Hi @Acxyle ,
Thanks for reporting this issue. I will take a look on it.
Best

Hi there, I need some help.
When I tried to run the demo2.py, it reported an AttributeError: module 'pybgs' has no attribute 'DPAdaptiveMedian', then I annotated that line and ran again, same error happened but for the following line: AttributeError: module 'pybgs' has no attribute 'DPGrimsonGMM'

However, if I removed the whole if is_cv2() or is_cv3() section, the program could be executed successfully

PC config.: Windows 10, Anaconda environment, Pycharm 2019.2.1, Visual studio 16 2019, OpenCV 3.4.2
I followed the https://github.com/andrewssobral/bgslibrary/wiki/Wrapper:-Python to install the pybgs whereas the installation details were slightly different, First I cloned this repository and added OpenCV_DIR system path, Next cmake ... BGS_PYTHON_SUPPORT=ON ... failed, So I wnet back to Building Python wrapper from scratch then used python setup.py build and python setup.py install as a result I saw the: -- The C compiler ... ... -- Configuring done -- Generating done -- Build files have been written to: ...
Therefore I utilized VS 16 2019 to build the bgslibrary.sln in .\bgslibrary\build\temp.win-amd64-3.7\Release, which generated a file named pybgs.cp37-win_amd64.pyd
Based on this .pyd file I can smoothly run demo.py and demo2.py (removed a part), but the installation procedure and partial file names were not exactly the same as the tutorial, in addition the error "AttributeError: module 'pybgs' has no attribute 'DPAdaptiveMedian'".
I hope to know how to fix that.
Sincerely,

Hi, It's been three years and I'm using the DPAdatptiveMedian method inside this package and I'm experiencing the same problem, have you solved this problem now? sincerely look forward to your reply!

Hello @Acxyle  @LP308210365 ,
Sorry for my delayed feedback to you.
Unfortunately depending of the OpenCV version you have, only a few algorithms are available, here's an updated list:
https://github.com/andrewssobral/bgslibrary/wiki/List-of-available-algorithms#list-of-the-algorithms-available-in-bgslibrary
For info, I just released a new version of the BGSLibrary, now v3.1.0. I fixed several issues concerning the different OpenCV versions.
I tested it on Windows, Mac and Linux, both compiling the C++ library on OpenCV 3.4.7, 3.4.16 and 4.6.0.
I also tested its respective Python wrapper and GT user interface.
Everything is working for me, could you please check in your side if this new version fix your issues?
Thanks in advance,
Andrews


The global picture location needs to be recorded.

The global picture location needs to be recorded.
Every time you open a new particle effect, you need to re-select the position of the image, but the image is basically the same position. There are also some particle effects of the picture has been packaged, currently can not support, need this function.

I think I understand what you're asking for. This will be included in the next version. Thank you.


Fitness score 0 does not mean Sudoku is solved

You don't check if the 3x3 boxes have every number.
For your default Sudoku puzzle, solutions such as the following have a fitness score of 0, despite not being correctly solved:
7 6 4 | 8 5 9 | 3 1 2
9 2 1 | 7 3 4 | 6 5 8
8 5 3 | 6 2 1 | 7 4 9
- - - + - - - + - - -
1 3 5 | 2 9 7 | 4 8 6
2 9 7 | 5 4 6 | 8 3 1
4 7 6 | 3 1 8 | 9 2 5
- - - + - - - + - - -
3 1 8 | 9 7 5 | 2 6 4
6 4 9 | 1 8 2 | 5 7 3
5 8 2 | 4 6 3 | 1 9 7

Notice e.g. the two eights in the bottom left box.

Great catch! I was hoping that counting the duplicates in the rows and columns would be enough, but you proved that is insufficient. Thanks for pointing it out :+1:

Thanks for catching this!
I have a branch that will fix this, but it looks like @ewohltman is still working on the codebase. When things settle down I'll put in a PR.
With the fitness function fixed things go slower as expected, but not crazily slower. Still works fine for 3×3.

@BartMassey By all means, please go ahead! My fault for not branching and pushing straight to main. I'll wait for you before further pushes.
Thanks!


Bug: commit dates are saved according to local time

Currently commits are saved with a date corresponding to the local time of the committing lakeFS server (due to the use of time.Now() function or time.Unix(...) function if a date is passed).
Commits should be saved with a unified date, probably UTC.

@Jonathan-Rosenberg Was this fixed or simply invalid?

@itaiad200 this was invalid although an explicit use of UTC should be used when applying date to commits.


Add HSQL support for generated clauses

Both HSQLDB and H2 support both variants of this clause. See http://hsqldb.org/doc/2.0/guide/databaseobjects-chapt.html#dbc_tables and https://h2database.com/html/grammar.html#column_definition respectively.
Support for this was previously implemented for Postgres in 52c847 (#295).

:+1: thanks


Seeing Undefined as the Namespace

Installed my cluster on Digital Ocean and deployed the app by scaling to 5 . I still see "Current Namespace" as Undefined and also i dont see any pods to kill. I followed each and every step to deploy the app but still cant get it to working.

which is the name of namespaces you want to stress?

After couple of attempts , i have started seeing namespace1 in the current namespace. Also i am still 0 against all my metrics.
But i am seeing 3 alien pods now,

@rohits-splunk great!! if you vesit the url <your_url>/metrics you don't see anything? Are you using v1.9.5 image?

Yes i am using the v1.9.5 image, i see everything . But the all the metric numbers are 0 . Not sure why. I want to injest these metrics into

my monitoring tool, so if they are 0 nothing is gonna show up in the monitoring console.

chaos_jobs_node_count{node="pool-j7b8g0itq-71lkx"} 2 pods_not_running_on_selected_ns 0 fewer_replicas_seconds 0 log_pod_regex {"pod":".", "namespace":".", "labels":".", "annotations":"."} chaos_jobs_node_count{node="pool-j7b8g0itq-71lky"} 7 chaos_node_jobs_total 9 chaos_jobs_node_count{node="pool-j7b8g0itq-71lkf"} 1 current_chaos_job_pod 0 log_cleaner foobar latest_fewer_replicas_seconds 0 fewer_replicas_time 0

Thank @rohits-splunk! The square are node not pods... Do you see also the aliens? Sorry for this problems :(

No i dont see the aliens.

Ok @rohits-splunk.
As you can see from "developer tools" of the browser the API endpoint for show logs is this: https://kubeinvaders.io/kube/pods?action=list&namespace=namespace1
Please let me know if  you see some error. Follow these steps:

Press the button "disable game mode"
Open a terminal with kubectl logs <pod_of_kubeinvader> -n kubeinvaders
Execute from another termina  curl "https://<your_kubeinvaders_url>/kube/pods?action=list&namespace=namespace1" -k

Thanks, i am not able to open the link as it says "page cant be loaded".
I followed your steps :
pod_logs.txt

Disabled the game mode
The logs are downloaded ( Attached to this issue )
Cant access this link .

What annotation i should add to the pod get the metrics from this app ? On the OTEL collector config i have added annotation like this :
autodetect.prometheus:true

I think i will have to create another deployment in another namespace to create more aliens to kill . Do you know what method i should use ?

@lucky-sideburn  Any update on this ?

Hi @rohits-splunk can you please explain me how OTEL is working? I have to integrate OTEL with an existing Prometheus installation for trying your action.
Thanks

Thanks , I was able to get the data into our monitoring tool. Basically I added appropriate annotations to both OTEL collector pod and Application pod. The internal mechanism took care of scrapping the pods for the metrics.


feat: set up a release pipeline

We need a workflow for generating, signing, and uploading the artifacts when a new release's created.

I'll take this and see how to add such a pipeline.


going to old position of element

Describe the bug
I don't know if it has this feature to fix the problem because I didn't find it in the doc
The Problem is:
I create the OnChange function to make some actions in my code,
  const onChangeStep = (nextStepIndex: number) => {
      if (nextStepIndex === 3) {
        updateStepElement(nextStepIndex);
        dispatch(windowSlideAction.openGroups({ open: true }));
      }
  };

so when I got to StepIndex 3 I open some window, and the position of an element in step 3  is changed to another position
and the "introjs-helperLayer" && "introjs-tooltipReferenceLayer" are going to the old position of element in step 3
The Step 3 is going to Groups btn
but when i got to step 3 i open the window of the groups and as that you can  see is going to old position and not to new position of groups button.

To Reproduce
every time I change the position of some element in my steps array
then is going to the old position, and not to the new position
Expected behavior
That is going to the correct position also if i change the element position, i assume is will follow after the element in the steps array.
How often does this bug happen?
Every time
System Info
No response
Additional Context
No response

In the past, most of the time, position related issues have been related to Intro.js directly and not the React wrapper as it does not do much regarding positioning.
I made a small repro based on what you are describing using a "sidebar" as a "window" to move the "group" button. If this sidebar is basic and conditionally rendered, there is no issue in opening it at a specific step:
https://github.com/HiDeoo/intro.js-react/assets/494699/a72b22b4-2644-4fc7-8c0d-57f0dd2920da
However, as soon as I add an animation for example for the sidebar opening, the positions would be invalid and I would assume this may be the issue you are encountering:
https://github.com/HiDeoo/intro.js-react/assets/494699/cc046bc1-788d-412f-9d96-9104bcd15d71
There has been related issues in the past with various fixes like temporarily hiding the steps during the animation with a timer, e.g. https://github.com/HiDeoo/intro.js-react/issues/63#issuecomment-872012210 however waiting directly for the animations to be over and not using a set amount of time might be a better solution.
I guess you could also check if some people encountered a similar issue in the Intro.js repo and found potential workarounds. I will close this issue for now but feel free to share more infos or a repro if you think if this is directly related to intro.js-react.


[Bug]The Welcome Tour fails->The error pop up when the user clicks the Lets go button quickly

Description
[What happened ] In Welcome tour feature->When the user click on Do it for me button continuously then the error is displayed in widget and we are not able to continue the tour
Steps to reproduce the behaviour:
1.In the application page
2.click on Welcome tour
3.Click on Lets go Button
4.Click on Start Building button
5.Clik on do it for me button continuously
6.Validate the Functionality
expected result:
In Welcome tour feature->When the user click on Do it for me button continuously there should be pause or button should be disabled until the action is completed then allow to click on Lets go button so there should not be error
Actual Result:
In Welcome tour feature->When the user click on Do it for me button continuously then the error is displayed in widget and we are not able to continue the tour
Attached Video
https://drive.google.com/file/d/1R1PCrTERBWUofOVtNaZ3yjfpQN-fZkDp/view
Important Details

Version: Cloud
OS: Windows
Browser Chrome
Environment Production

@akash-codemonk can you have a look at this?


Update docker swarm tutorials

Secure: Add steps for generating client (root) cert/key and secrets
Secure & Insecure: Add copy-to-clipboard feature
Secure & Insecure: Add guidance on accessing the Admin UI from outside the swarm

Fixes #1617
Fixes #1640
Fixes #1736

This change is

@mberhault, @a-robinson, the main update here is adding explicit instructions for generating client (`root) certs and secrets. Please let me know where we might need to update or expand relevant explanations (I'm not really sure).
Otherwise, I'm wondering if we should add a step for calling up the admin UI? Do we have guidance anywhere on how to do that for a swarm?

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/526eccceb8ef0fd9d782a873d92bd3e97e10761b/

Ah, now I remember https://github.com/cockroachdb/docs/issues/1664. I'll look at that and work in a  section on accessing the admin UI.

I assume you'll copy your changes into the 1.1 files as well before merging?

Reviewed 1 of 2 files at r1.
Review status: 1 of 2 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.

v1.0/orchestrate-cockroachdb-with-docker-swarm.md, line 326 at r1 (raw file):

    --secret source=cockroachdb-1-crt,target=node.crt \
    --secret source=cockroachdb-1-key,target=node.key,mode=0600 \
    --secret source=cockroachdb-root-crt,target=client.root.crt \

I'm not the biggest fan in the world of loading the client certs into all the node containers rather than just running a new container with the client certs to open up a shell remotely, but I'm curious what @mberhault's opinion is.

Comments from Reviewable

Reviewed 1 of 2 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.

Comments from Reviewable

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/b7ef1ebd007e56694f900de5025abbcead9e2591/

Yeah, I'll copy everything to the 1.1 docs once changes are final.

Comments from Reviewable

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/5391be6ccf33f42e941191e46a25ddfac6c3300a/

v1.0/orchestrate-cockroachdb-with-docker-swarm.md, line 326 at r1 (raw file):
Previously, a-robinson (Alex Robinson) wrote…
I'm not the biggest fan in the world of loading the client certs into all the node containers rather than just running a new container with the client certs to open up a shell remotely, but I'm curious what @mberhault's opinion is.

Yeah, we avoid this in our other deployment docs now. Happy to do this differently with some guidance.

Comments from Reviewable

Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.

v1.0/orchestrate-cockroachdb-with-docker-swarm.md, line 326 at r1 (raw file):
Previously, jseldess wrote…
Yeah, we avoid this in our other deployment docs now. Happy to do this differently with some guidance.

I think we should skip those in orchestrated deployments. While it's somewhat reasonable to talk to the cluster locally on bare metal, it's usually a bit more difficult inside containers and better to support connecting from outside.

Comments from Reviewable

Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.

Comments from Reviewable

Reviewed 2 of 2 files at r2.
Review status: all files reviewed at latest revision, 3 unresolved discussions, all commit checks successful.

v1.0/orchestrate-cockroachdb-with-docker-swarm-insecure.md, line 143 at r2 (raw file):

at the IP of any instance running a node

It exposes it on all swarm nodes, not just those running a cockroach node.

v1.0/orchestrate-cockroachdb-with-docker-swarm-insecure.md, line 143 at r2 (raw file):

https://docs.docker.com/engine/swarm/services/#publish-a services-ports-using-the-routing-mesh

For whatever reason, this URL isn't routable. https://docs.docker.com/engine/swarm/services/#publish-ports is the best alternative.

v1.0/orchestrate-cockroachdb-with-docker-swarm.md, line 326 at r1 (raw file):
Previously, mberhault (marc) wrote…
I think we should skip those in orchestrated deployments. While it's somewhat reasonable to talk to the cluster locally on bare metal, it's usually a bit more difficult inside containers and better to support connecting from outside.

That sounds good to me. We can instead run a separate container where we mount in the client secrets and connect to the cluster from there.

Comments from Reviewable

Review status: all files reviewed at latest revision, 3 unresolved discussions, all commit checks successful.

v1.0/orchestrate-cockroachdb-with-docker-swarm-insecure.md, line 143 at r2 (raw file):
Previously, a-robinson (Alex Robinson) wrote…

at the IP of any instance running a node

It exposes it on all swarm nodes, not just those running a cockroach node.

Done.

v1.0/orchestrate-cockroachdb-with-docker-swarm-insecure.md, line 143 at r2 (raw file):
Previously, a-robinson (Alex Robinson) wrote…

https://docs.docker.com/engine/swarm/services/#publish-a services-ports-using-the-routing-mesh

For whatever reason, this URL isn't routable. https://docs.docker.com/engine/swarm/services/#publish-ports is the best alternative.

Done.

v1.0/orchestrate-cockroachdb-with-docker-swarm.md, line 326 at r1 (raw file):
Previously, a-robinson (Alex Robinson) wrote…
That sounds good to me. We can instead run a separate container where we mount in the client secrets and connect to the cluster from there.

OK, I'll need some guidance to get this right. In the cert generation step, we create the root user's cert and key on one of the instances running a node. So:

Where should the client cert and secrets be generated?
How do we get a separate container with those secrets and then start the sql shell from there?

Comments from Reviewable

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/376ae5b59bc8e5111492af65246ea2b5ed9f9c96/

Reviewed 1 of 2 files at r3.
Review status: 1 of 2 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.

v1.0/orchestrate-cockroachdb-with-docker-swarm.md, line 326 at r1 (raw file):
Previously, jseldess wrote…
OK, I'll need some guidance to get this right. In the cert generation step, we create the root user's cert and key on one of the instances running a node. So:

Where should the client cert and secrets be generated?
How do we get a separate container with those secrets and then start the sql shell from there?

I did a little looking, and it turns out that secrets are only usable by swarm services, not by individual containers. So our options are:

Generate the client cert/key and secret the same as they are in this guide. Then run a service pinned to the current host that mounts them, using a scheduling constraint. This gets pretty awkward because we have to run a command that will keep the container from exiting, like sleep 10000 or something, so that we can then attach to it once it's up.
Generate the client cert/key locally without creating secrets for them and run a local docker container that mounts them in. This isn't a great example of how to talk to the service, because a real client would probably run as a swarm service and use secrets, but it's a little less awkward.

Does either of those sound less bd to you? I suppose there's also a third option, which is to run something like our loadgen image as a service rather showing how to get an interactive shell.

Comments from Reviewable

Reviewed 1 of 2 files at r3.
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.

Comments from Reviewable

v1.0/orchestrate-cockroachdb-with-docker-swarm.md, line 326 at r1 (raw file):
Previously, a-robinson (Alex Robinson) wrote…
I did a little looking, and it turns out that secrets are only usable by swarm services, not by individual containers. So our options are:

Generate the client cert/key and secret the same as they are in this guide. Then run a service pinned to the current host that mounts them, using a scheduling constraint. This gets pretty awkward because we have to run a command that will keep the container from exiting, like sleep 10000 or something, so that we can then attach to it once it's up.
Generate the client cert/key locally without creating secrets for them and run a local docker container that mounts them in. This isn't a great example of how to talk to the service, because a real client would probably run as a swarm service and use secrets, but it's a little less awkward.

Does either of those sound less bd to you? I suppose there's also a third option, which is to run something like our loadgen image as a service rather showing how to get an interactive shell.

The third option actually sounds most realistic, and thus most helpful. Though I think it might be a mistake not to show uses how to connect our sql shell to the cluster as well, since we focus on the shell in so many other tutorials.
I guess, ideally, we would do both, with "Use the built-in SQL shell" step as well as a "Run the loadgen client".
That said, would it be ok  to go with the the tutorial as-is for now (with client certs on the nodes) and handle this work in a follow-up PR? I'm about to go on vacation and don't want to leave this sitting for 2 weeks...

Comments from Reviewable

Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.

v1.0/orchestrate-cockroachdb-with-docker-swarm.md, line 326 at r1 (raw file):
Previously, jseldess wrote…
The third option actually sounds most realistic, and thus most helpful. Though I think it might be a mistake not to show uses how to connect our sql shell to the cluster as well, since we focus on the shell in so many other tutorials.
I guess, ideally, we would do both, with "Use the built-in SQL shell" step as well as a "Run the loadgen client".
That said, would it be ok  to go with the the tutorial as-is for now (with client certs on the nodes) and handle this work in a follow-up PR? I'm about to go on vacation and don't want to leave this sitting for 2 weeks...

Yeah, it can go in as is.

Comments from Reviewable

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/bb54163e85cddedf67fa8b93faf990293476c391/

v1.0/orchestrate-cockroachdb-with-docker-swarm.md, line 326 at r1 (raw file):
Previously, a-robinson (Alex Robinson) wrote…
Yeah, it can go in as is.

OK, great. I just created https://github.com/cockroachdb/docs/issues/1745. I'll pick it back up once I'm back from vacation. If you happen to have time, please add any additional details you think I'll need.

Comments from Reviewable

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/774ce0093dc50042c1385bf34623451b22b9a1b2/


update hub websocket connected  failed

What happened:
update  clusternet to v0.17.2
child cluster  agent can't connect webocket to parents cluster
rollback clusternet-hub to 0.16.0  child cluster  agent can connect webocket to parents cluster
What you expected to happen:
child cluster  agent can connect webocket to parents cluster
How to reproduce it (as minimally and precisely as possible):
parents cluster k8s 1.26.3  child cluster k8s 1.24.6
Anything else we need to know?:
log：
ime="2024-12-11T08:20:20Z" level=info msg="Connecting to proxy" url="wss://192.168..:6443/apis/proxies.clusternet.io/v1alpha1/sockets/c74f63e1-77aa-4d90-bc50-d1e1f60a537f"
W1211 08:20:22.597795       1 clusterstatus_controller.go:147] failed to discover cluster CIDR: can't get pod ip range
W1211 08:20:22.597837       1 clusterstatus_controller.go:154] failed to discover service CIDR: can't get service ip range
time="2024-12-11T08:20:30Z" level=error msg="Failed to connect to proxy. Response status: 403 - 403 Forbidden. Response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"sockets.proxies.clusternet.io \"c74f63e1-77aa-4d90-bc50-d1e1f60a537f\" is forbidden: not yet ready to handle request","reason":"Forbidden","details":{"name":"c74f63e1-77aa-4d90-bc50-d1e1f60a537f","group":"proxies.clusternet.io","kind":"sockets"},"code":403}\n" error="websocket: bad handshake"
time="2024-12-11T08:20:30Z" level=error msg="Remotedialer proxy error" error="websocket: bad handshake"
E1211 08:20:35.688539       1 socket_controller.go:103] websocket connection error: websocket: bad handshake
time="2024-12-11T08:20:41Z" level=info msg="Connecting to proxy" url="wss://192.168..:6443/apis/proxies.clusternet.io/v1alpha1/sockets/c74f63e1-77aa-4d90-bc50-d1e1f60a537f"
W1211 08:20:42.619802       1 clusterstatus_controller.go:147] failed to discover cluster CIDR: can't get pod ip range
W1211 08:20:42.619844       1 clusterstatus_controller.go:154] failed to discover service CIDR: can't get service ip range
time="2024-12-11T08:20:51Z" level=error msg="Failed to connect to proxy. Response status: 403 - 403 Forbidden. Response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"sockets.proxies.clusternet.io \"c74f63e1-77aa-4d90-bc50-d1e1f60a537f\" is forbidden: not yet ready to handle request","reason":"Forbidden","details":{"name":"c74f63e1-77aa-4d90-bc50-d1e1f60a537f","group":"proxies.clusternet.io","kind":"sockets"},"code":403}\n" error="websocket: bad handshake"
time="2024-12-11T08:20:51Z" level=error msg="Remotedialer proxy error" error="websocket: bad handshake"
E1211 08:20:56.875156       1 socket_controller.go:103] websocket connection error: websocket: bad handshake
W1211 08:21:02.645870       1 clusterstatus_controller.go:147] failed to discover cluster CIDR: can't get pod ip range
W1211 08:21:02.645913       1 clusterstatus_controller.go:154] failed to discover service CIDR: can't get service ip range
Environment:

Clusternet version:

Clusternet-agent version (user clusternet-agent --version=json):
Clusternet-hub version (user clusternet-hub --version=json):

Kubernetes version (use kubectl version):
Cloud provider or hardware configuration:
OS (e.g: cat /etc/os-release):
Kernel (e.g. uname -a):
Others:

W1218 10:08:05.649936   12342 reflector.go:547] k8s.io/client-go/informers/factory.go:160: failed to list *v1.ValidatingAdmissionPolicy: the server could not find the requested resource
E1218 10:08:05.650010   12342 reflector.go:150] k8s.io/client-go/informers/factory.go:160: Failed to watch *v1.ValidatingAdmissionPolicy: failed to list *v1.ValidatingAdmissionPolicy: the server could not find the requested resource
W1218 10:08:05.651096   12342 reflector.go:547] k8s.io/client-go/informers/factory.go:160: failed to list *v1.ValidatingAdmissionPolicyBinding: the server could not find the requested resource
E1218 10:08:05.651121   12342 reflector.go:150] k8s.io/client-go/informers/factory.go:160: Failed to watch *v1.ValidatingAdmissionPolicyBinding: failed to list *v1.ValidatingAdmissionPolicyBinding: the server could not find the requested resource

Clusternet v0.17 used k8s.io/api with v1beta1.ValidatingAdmissionPolicy, which was not supported by k8s 1.26.3 (v1alpha1.ValidatingAdmissionPolicy). That's the reason why this happens. @huangyanhong

Fixes with $852


[Feature] Add accessible names to search engine buttons

Problem

When the platform is analized by the https://web.dev/, we see how we can can improve the accessibility section significantly.
The will address the issue to fix Buttons do not have an accessible name.
Adding accessible names to all the search engines button will significantly improve the accessibility test.

Why do we add this names? Screen reader users are not able to discern the purpose of elements with role="button" that do not have an accessible name.
Description

Adding aria-label="engine-name" to all engine buttons would improve this section.
https://dequeuniversity.com/rules/axe/4.4/button-name
Alternatives

Implementation

[x] I would be interested in implementing this feature.

@possumbilities please triage this issue

@JennySimen I agree this is an Issue, and I'm Ok with this fix as a temporary one, but in general  aria attributes are often needed when the rest of the code doesn't conform to a more standard and stable implementation. In this instance what you've discovered is that the more ideal scenario would be the buttons all need to be minimally <button> elements, AND that they contain inner text: <button>engineName</button>. If they had proper inner text, then the use of aria in this instance wouldn't be necessary.
But the current code is not easily refactored that direction, so the next best thing would be the aria-label route you've suggested.
I'm leaving this note here so we can make another Issue after this outlining an additional change to make the buttons operate in a more stable manner in the future (feel free to make that Issue if you want).


Getting errors while removing a song from the list

Based on the files and code snippets you’ve provided, it seems the MusicPlayerCore class is responsible for song-related tasks such as play, pause, changing volume, etc.
Here are issues that could cause errors when removing a song from a playlist:

Mutation of songs list: The major portion of logic for altering songs (including removal) should be in MusicPlayerCore class. The songs are maintained in this.SongIdList array, but I don’t see any method for removing a song from this list. If songs are being removed directly by manipulating this.SongIdList, it could lead to unexpected behavior, as it may not be synchronized with this.SongIdMap and this.CurrentSongId.

Playing a removed song: The PlaySelectSong method plays a song by its ID. If the song with this ID has been removed from the list (this.SongIdList), it would result in errors. Ensuring that the song exists in the list before playing it can prevent this error.

Navigating to removed song: Similar to PlaySelectSong, methods NextSong and PrevSong could also lead to errors. These methods navigate to the next or previous song in this.SongIdList. If the song has been removed but the current song id (this.CurrentSongId) isn't updated, it'll cause problems.

Inconsistent states: The UpdateSongPosition method helps to rearrange song list. If this method is being used to remove songs, it may cause inconsistent states, because it updates this.SongIdList without updating the this.SongIdMap and CurrentSongId.

Suggested Actions:

Add a remove method: Create a method in the MusicPlayerCore class to remove a song. This method should remove the song ID from this.SongIdList and entry from this.SongIdMap, and handle cases where the current song being played is removed.

Validate song exists: Before playing a song in PlaySelectSong and navigating in NextSong and PrevSong, validate that the song is still in the list.

Handle empty list: You should also include logic to handle cases where all songs are removed from the playlist.

Relevant Files:

main.ts seems to be where VueMiniPlayerCore initiates a new player and songs are appended. This file may not directly relate to the issue but is important for understanding application setup.

The iconfont.js file seems to contain SVG graphics for your player's UI, like volume icons. It doesn’t directly link with error in song removal but could be relevant for UI changes when a song is removed.

VueMiniPlayerCore.ts is the key file related to this issue. It has logic for song addition, rendition, changing sequence of songs. The issue most likely resides in the methods of the MusicPlayerCore class in this file.

After correcting these potential issues, you should be on a good track!


flutter create creates the wrong template for Android

Looking at this migration guide we can see we need to remove from the Manifest:
android:name="io.flutter.app.FlutterApplication"

But running flutter create . this is the Android Manifest being created:

Hi @feinstein
This is already addressed in the dev and `master channels
dev & master channels

stable & beta channels

Closing as fixed. If you disagree, please write in the comments and I will reopen it.
Thank you

@TahaTesser ok thanks!


Search page updates

search radius is increased to 5km
search suggestions limited to Belgium
tells the user that results are sorted by proximity
closes #107
closes #108

very nice Fatih, thank you

very nice Fatih, thank you


Setting read-only property: common\models\User::authKey

I catch an error when start oauth process:
Invalid Call – yii\base\InvalidCallException
Setting read-only property: common\models\User::authKey

have this
maybe need add to installation guide.
possible appear in yii2-advanced

Yes, please add to installation guide. And notify me.Thx

have this
maybe need add to installation guide.
possible appear in yii2-advanced
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or  view it on GitHub

С уважением,
<EMAIL_ADDRESS>

Maybe you disorder authKey and authkey


Update to targetSdkVersion >= 26 because of Target API level requirement from late 2018

https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html?m=1

https://developer.android.com/about/versions/nougat/android-7.0-changes.html

Test your app on a device with screen width sw320dp and be sure it performs adequately.

Apps on Android 7.0 should be able to gracefully handle configuration changes, and should not crash on subsequent starts. You can verify app behavior by changing font size (Setting > Display > Font size), and then restoring the app from Recents.

https://developer.android.com/about/versions/oreo/android-8.0-changes.html

As one of the changes that Android 8.0 (API level 26) introduces to improve battery life, when your app enters the cached state, with no active components, the system releases any wakelocks that the app holds.

All audio-related APIs should use AudioAttributes rather than audio stream types to describe the audio playback use case.

https://developer.android.com/guide/components/broadcast-exceptions
https://developer.android.com/about/versions/oreo/background#broadcasts
https://commonsware.com/blog/2017/04/11/android-o-implicit-broadcast-ban.html
https://stackoverflow.com/q/46121467
MindBell relies on the following broadcasts:
android.intent.action.MAIN -- explicit, addresses activity
android.intent.category.LAUNCHER -- explicit, addresses activity
android.intent.action.BOOT_COMPLETED -- implicit but exempted from limitations
android.intent.action.MY_PACKAGE_REPLACED -- explicit, addresses application
android.app.action.INTERRUPTION_FILTER_CHANGED -- TODO implicit, not exempted from limitations
android.intent.action.AIRPLANE_MODE -- TODO implicit, not exempted from limitations
android.intent.action.PHONE_STATE -- implicit but exempted from limitations
android.media.RINGER_MODE_CHANGED -- TODO implicit, not exempted from limitations
com.googlecode.mindbell.UPDATE_STATUS_NOTIFICATION -- TODO Really? explicit, addresses activity


Static tokens for other services to access Monolith

Done as part of https://github.com/orgs/appifyhub/projects/1.


[$250]  Web - Scan - Selecting tag via Enter key directly returns to first step of Scan request

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.63-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Precondition:

There is only one tag in the Collect workspace

Go to staging.new.expensify.com
Go to workspace chat
Go to + > Submit expense > Scan
Upload a receipt
Click Tag
Press down arrow key (if tag is not auto-selected), then hit Enter

Expected Result:
App will redirect to Scan confirmation page
Actual Result:
App returns to the first page of Scan expense flow
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/45b9aa1c-458f-489a-b102-bcb48c2daec8
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01c1670496416bc0ac
Upwork Job ID:<PHONE_NUMBER>274833408
Last Price Increase: 2024-04-19

@tylerkaraszewski  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

We think that this bug might be related to #wave-collect - Release 1

Making this external to get more eyes on this

The state is getting reset on enter making the user to land on the initial screen , we can look after the function getting triggered on enter keypress and resolve the issue

https://github.com/Expensify/App/blob/305f12c52ef228e7ed4845735a1794942a2b8d87/src/pages/EditRequestTagPage.js#L50 that's where it's located.
I'd actually make sure that selectTags is being called properly. If at all. And then see what changes afterwards to narrow down the source of the issue. One of the quickest things I'd do? Just check if the focus is being changed for some odd reason at the last minute. Weirder things have happened.
Contributor details
Your Expensify account email<EMAIL_ADDRESS>Upwork Profile Link: https://www.upwork.com/freelancers/makosai

Closing in favor of https://github.com/Expensify/App/issues/40551


Broken links on hydroshare site

"[Paper]"
Page: https://help.hydroshare.org/introduction-to-hydroshare/hydroshare-youtube-videos/
FIXED 9/1/2021 SS, link was broken, but updated in pages
Link in How do I set the spatial extent for a composite resource? section
Page: https://help.hydroshare.org/introduction-to-hydroshare/frequently-asked-questions/
Link broken: https://help.hydroshare.org/hydroshare-resource-types/composite-resource/
https://help.hydroshare.org/hydroshare-resource-types/ does not exist
However How do I set the spatial extent for a composite resource? section on https://help.hydroshare.org/introduction-to-hydroshare/frequently-asked-questions/ was updated with a better answer for setting spatial extent. Link was removed.
https://hydroshare.org/resource/fbaadd419941400e9d5d88d1d85f62fa/ link at the bottom
Page: https://help.hydroshare.org/hydroshare-resource-types/web-app/
https://help.hydroshare.org/hydroshare-resource-types/ is not a page, nor does the resource mentioned above exist.
This item will be ignored
http://dx.doi.org/10.4211/hs.877bf9ed9e66468cadddb229838a9ced link
Page: https://help.hydroshare.org/creating-and-managing-resources/connecting-your-resource-data-with-your-publication/
FIXED link made active 9/9/2021 SS, DOI link above was mentioned in text a few times, but not all were hyperlinked
"Basic Time Series Analysis - Time Series Resource"
Page: https://help.hydroshare.org/apps/jupyter-python-notebook/
**this APPS page does not exist, but I believe the question is on the MODELING page, this question is also addressed down below in CyberGIS TauDEM. Basic Time Series links are broken
https://www.crwr.utexas.edu/reports/2016/rpt16-1.shtml link
Page: https://help.hydroshare.org/apps/data-rods-explorer/
FIXED new link added 9/10/2021 SS, link to Katie Born's report was broken, but found a link that works, same report
https://apps.hydroshare.org/apps/hydroshare-gis/ link
Page: https://help.hydroshare.org/apps/hydroshare-gis/
Hydroshare-GIS is not a page, nor is HydroShare-GIS an app listed on the apps page, this was ignored
CyberGIS TauDEM App
Page: https://help.hydroshare.org/modeling/
maybe meant https://help.hydroshare.org/modeling/jupyter-python-notebook/
-TauDEM Hydrologic Terrain Analysis toolset
-Basic Time Series Analysis - Generic Resource
-Basic Time Series Analysis - Time Series Resource
need help finding links
Tony Castronova has been emailed 9/14/2021
Reference Time Series
https://help.hydroshare.org/about-hydroshare/usage-metrics/
**This link does not exist: https://help.hydroshare.org/about-hydroshare/usage-metrics/
However, if "Reference Time Series" is the issue, this seems the more appropriate page, however no links are broken
https://help.hydroshare.org/hydroshare-resources/content-types/referenced-time-series/
http://irods.org/wp-content/uploads/2015/09/UMG2015_P.pdf link (found an updated link)
http://www.iemss.org/sites/iemss2014/papers/iemss2014_submission_316.pdf link (no scholarsarchive.byu.edu link, but added Research Gate DOI link)
http://www.iemss.org/sites/iemss2014/papers/iemss2014_submission_243.pdf link (found a scholarsarchive.byu.edu link)
http://www.iemss.org/sites/iemss2014/papers/iemss2014_submission_259.pdf link (found a scholarsarchive.byu.edu link)
Page: https://help.hydroshare.org/about-hydroshare/publish/papers/
FIXED Updated with all new links 9/10/2021 SS
2014 and click on links
https://help.hydroshare.org/about-hydroshare/publish/presentations/
https://irods.org/wp-content/uploads/2015/06/Tarboton-HydroShare.pdf FIXED 9/13/2021 SS
http://www.awra.org/meetings/SnowBird2014/ deleted because not available
https://ceen.et.byu.edu/sites/default/files/snrprojects/project_6.pdf link MS report, no longer online
http://gradworks.umi.com/36/68/3668521.html link FIXED with new link 9/13/2021 SS
Page: https://help.hydroshare.org/about-hydroshare/publish/theses/
http://www.hydroshare.org/resource/19b6d368956b443ca3f6539c01ea17aa link
Page: https://help.hydroshare.org/about-hydroshare/publish/proposals/
FIXED with new link 9/13/2021 SS

@jtpollak please address as part of your review user documentation review and close when finished. Thanks!

@srclemens I started checking the fixes you indicated above, but started running into quite a few problems and was not seeing what you were referring to in some cases.  Here is how far I got, but lets work through this together.
On https://help.hydroshare.org/introduction-to-hydroshare/frequently-asked-questions/

Link to https://help.hydroshare.org/hydroshare-resource-types/ needs to be fixed to https://help.hydroshare.org/hydroshare-resources/.  Also strive to use relative html links so that on pages the links are to pages and on help they are to help.
Also update the wording to avoid the term “resource types”
On https://help.hydroshare.org/apps/web-app/
Correct the link at the bottom to (current GABBs App)
https://www.hydroshare.org/resource/8e4efd86e06d4bdabd9a56753a6a1a57/
On https://pages.hydroshare.org/creating-and-managing-resources/connecting-your-resource-data-with-your-publication/ I am not seeing any differences relative to corresponding help page.  Not sure what was fixed.
I can not find the page that this comment refers to
"Basic Time Series Analysis - Time Series Resource"
Page: https://help.hydroshare.org/apps/jupyter-python-notebook/
jupyter-python-notebook is not a page, same question asked below

@dtarb
On https://help.hydroshare.org/introduction-to-hydroshare/frequently-asked-questions/
Link to https://help.hydroshare.org/hydroshare-resource-types/ needs to be fixed to https://help.hydroshare.org/hydroshare-resources/. Also strive to use relative html links so that on pages the links are to pages and on help they are to help.
Also update the wording to avoid the term “resource types”
Jeff suggested: For terms – you should use the term “resource” to refer to the resource container, “content files” to refer to files within a resource, and for specifically typed content files you can use “content types” which include geographic feature, geographic raster, etc.
On https://help.hydroshare.org/apps/web-app/
Correct the link at the bottom to (current GABBs App)
https://www.hydroshare.org/resource/8e4efd86e06d4bdabd9a56753a6a1a57/
FIXED 9/20/21 SS
On https://pages.hydroshare.org/creating-and-managing-resources/connecting-your-resource-data-with-your-publication/ I am not seeing any differences relative to corresponding help page. Not sure what was fixed.
There were a few DOI links that were not hyperlinked so the reader could not click on them
I can not find the page that this comment refers to
"Basic Time Series Analysis - Time Series Resource"
Page: https://help.hydroshare.org/apps/jupyter-python-notebook/
jupyter-python-notebook is not a page, same question asked below
**Mentioned above, this is likely the page https://help.hydroshare.org/modeling/jupyter-python-notebook/
Because it is the only place that "Basic Time Series Analysis - Time Series Resource" is mentioned in HydroShare
This item, + the the last 3 links under Jupyter Notebook Examples are the items I emailed @Castronova about

according to Clara this has been completed, closing this. the page is still outdated and does need updating


Android's NFC support for React Native

Hi Guys,
I've been wandering around the web about implementing react native NFC modules. Got some posts where they say we can encapsulate the NFC with native modules. Also got some posts where they say react native cannot do NFC stuff.
So, I'd better get the answer first hand.
Is this something feasible?

It should be feasible if you write your own native modules. My guess is that the discrepancy comes from the fact that RN doesn't include NFC support, but you could implement it yourself.

Thanks!

@facebook-github-bot stack-overflow

Hey @fadils and thanks for posting this! @DanielMSchmidt tells me this issue looks like a question that would be best asked on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only. Will close this as this is really a question that should be asked on SO.

@fadils if you're still interested we recently released on GitHub react-native-nfc.


How to train on server?

I would like to train the rainbow main.py on a remote server without a GUI?

One of our colleagues wrote this, check it out.
https://medium.com/@etendue2013/how-to-run-ai2-thor-simulation-fast-with-google-cloud-platform-gcp-c9fcde213a4a

Is there any other ways to improve training speed for ai2thor wrapper with rainbow algorithms?


not enough space to initialize the connectedhomeip/chip-build-imx:latest container

Problem
During the CI test, connectedhomeip/chip-build-imx:latest docker image fails to be downloaded because of not enough space. the log is as below:
  failed to register layer: ApplyLayer exit status 1 stdout:  stderr: write /opt/fsl-imx-xwayland/5.15-kirkstone/sysroots/armv8a-poky-linux/usr/share/terminfo/c/cdc456: no space left on device

I pulled the container image on my local server, the info is as below:
REPOSITORY                       TAG       IMAGE ID       CREATED        SIZE
connectedhomeip/chip-build-imx   latest    9f9db4e01eb7   5 days ago     33.5GB

expected behavior: the docker image can be pulled and run to compile the code.
actual behavior: the docker image fail to be pulled.
steps to reproduce: pull the connectedhomeip/chip-build-imx:latest docker image
system configuration: default CI test configuration
screenshots, images, logs, etc: check the PR CI test failure info here https://github.com/project-chip/connectedhomeip/runs/7173480484?check_suite_focus=true

Proposed Solution
the docker image should be under "/var" by default. enlarge the related filesystem.

Caused by https://github.com/project-chip/connectedhomeip/pull/19941 I assume.  @andy31415 was trying to prod people about this, I think....
@FaqiangZhu-nxp


Labels version of the signature(s)

Yes, like https://github.com/c-cube/gen/issues/5 :)

Answering to https://twitter.com/das_kube/status/554002484247941120 :)
we can do like List and ListLabels maybe? 2 signatures 1 structure

Interesting, I never looked at how ListLabels was implemented. I'm not sure how the type checker accepts it, still, but I'll consider adding this to sequence and gen.

GenLabels will be in the next release (soon!). You can check it in the last commit in master.


Detection of a Goal Being Scored - Simple goal

Setup:

Player of team red in front of blue’s goal
Player kicks ball entirely over the goal line

Expected outcome:

Goal scored for team red
Game state switches to READY
After 45 seconds, the game state switches to SET
The ball is spawned at the center mark with team blue having kick-off
Game log contains the information (with real and simulated timestamp): goal scored + robot scoring the goal (identified by team and number), game state READY, game state SET, the position of the ball being spawned

While testing scenario #38, after scoring a goal, the ball is spawned at the center mark after the state changes to READY. According to the rule book (draft 3, line 1679): The ball is placed stationary on the centre mark after the SET signal was given.
so it should be spawned at the center mark after the state changes to SET. I think it is also true for starting the first and second half. But I don't exactly know where the ball should be at the beginning of first and second half.

This test is now automated and successfully passing  in scoring/goal.


Update dependencies: metarhia/config to 2.1.0

[x] tests and linter show no problems (npm t)
[x] code is properly formatted (npm run fmt)

Landed in https://github.com/metarhia/impress/commit/aa4318f0bec71d43e3b0e731ed4cac951e619ae5 and https://github.com/metarhia/impress/commit/253671d84ef168e6a484bc929df703978753dde3


Warn when a name of the wallet is near its expiry

Would be cool to have a warning or reminder when a name in the wallet is near its expiry.
(Configurable with on/off, and a timespan that defines "near")
Auto renewal is also imaginable :)

Related: https://forum.blockstack.org/t/will-you-remove-users-who-are-name-squatting/469/4

I think someone is working on an app for this...


send_xxx doesn't escape data

data = '{"body":"' + body + '","title":"' + title + '","type":"link", "url":"' + url_to_send + '"}'  is a serious security issue (from the "injection" category), plus many strings (.e.g. those that contain ") simply don't work.
Proper approach: json.dumps(dict(body=..., title=..., ...))

@iirekm Thank you! Fixed.


how to create xml file from yang module

Hi all
Is there any way to generate xml file from yang module
Thanks

We do not provide any such feature but pyang should, with its sample-xml-skeleton format, so you may try that.

Ok Thanks @michalvasko


fix: #755 - add whitespace control to generate_surrogate_key macro

resolves #755
This is a:

[ ] documentation update
[x] bug fix with no breaking changes
[ ] new functionality
[ ] a breaking change

All pull requests from community contributors should target the main branch (default).
Description & motivation
This pull request solves a problem with empty lines in the generate_surrogate_key macro, that causes sqlfluff linting fails for the compiled code.
Checklist

[ ] This code is associated with an Issue which has been triaged and accepted for development.
[x] I have verified that these changes work locally on the following warehouses (Note: it's okay if you do not have access to all warehouses, this helps us understand what has been covered)

[ ] BigQuery
[ ] Postgres
[ ] Redshift
[x] Snowflake

[ ] I followed guidelines to ensure that my changes will work on "non-core" adapters by:

[ ] dispatching any new macro(s) so non-core adapters can also use them (e.g. the star() source)
[ ] using the limit_zero() macro in place of the literal string: limit 0
[ ] using dbt.type_* macros instead of explicit datatypes (e.g. dbt.type_timestamp() instead of TIMESTAMP

[ ] I have updated the README.md (if applicable)
[ ] I have added tests & descriptions to my models (and macros if applicable)
[ ] I have added an entry to CHANGELOG.md

Thanks @akv-akv! I'll check this out soon but it seems like it should be a quick and easy fix!


error when generating graph with either include or exclude set

In python 2:
anagement/modelviz.py", line 95, in generate_graph_data     if relation['target'] in nodes: TypeError: 'NoneType' object has no attribute '__getitem__'
In python 3:
nt/modelviz.py", line 95, in generate_graph_data     if relation['target'] in nodes: TypeError: 'NoneType' object is not subscriptable
For now I have a fix by adding an if in line 95 to check if relation is None (PR to follow).

Thanks for this, I confirm it works, will wait for django-extensions==1.7.6.
I needed graph_model quickly so I did this and then it worked;
pip uninstall django-extensions
pip install git+https://github.com/django-extensions/django-extensions#egg=django-extensions

New release should be out shortly


Documentation Review

What's Changed:

Review of 25 models listed in the Release Notes
Review of 3 demos listed in the Release Notes
Minor consistency improvements
Fix of preprocessing information for efficientnet-b0 and efficientnet-b0_auto_aug (changes proposed by Viktor Borisov)

@aalborov please resolve merge conflicts

@vladimir-dudnik done

Fix of preprocessing information for efficientnet-b0 and efficientnet-b0_auto_aug (changes proposed by Viktor Borisov)

Where is this fix? You haven't made any changes to these models.


Missing etag in header for GET Operation

Which service(blob, file, queue, table) does this issue concern?
table
Which version of the Azurite was used?
3.18.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
npm, DockerHub
What's the Node.js version?
18.4.0
What problem was encountered?
GET Entity with PartitionKey= and RowKey= does not return etag in header
Steps to reproduce the issue?
Create entry in azure table with any partition_key and row_key, then perform an http GET request against the entry created
http://<IP_ADDRESS>:10002/devstoreaccount1/aztest(PartitionKey='partition_key',RowKey='row_key')

and check the response headers. etag header is not returned
Have you found a mitigation/solution?
Solution is to modify TableHandler.ts line 686
    const response: Models.TableQueryEntitiesWithPartitionAndRowKeyResponse = {
      statusCode: 200,
      date: tableContext.startTime,
      clientRequestId: options.requestId,
      requestId: context.contextID,
      version: TABLE_API_VERSION
    };

to
    const response: Models.TableQueryEntitiesWithPartitionAndRowKeyResponse = {
      statusCode: 200,
      date: tableContext.startTime,
      clientRequestId: options.requestId,
      requestId: context.contextID,
      eTag: entity.eTag,
      version: TABLE_API_VERSION
    };

Many thanks for raising this.
Someone is working on it.


Add OpenSSL 1.0.2o on CI build

It's a mandatory requirement for Poco, which
is present in getting started

Signed-off-by: Uilian Ries<EMAIL_ADDRESS>

I don't understand
OpenSSL doesn't break compatibility between patch versions. Why can't Poco use 1.0.2t?

@uilianries , if the new version is not used by Poco I wouldn't create it, but I understand this PR is needed to generate binaries for new compilers, so they are available for the getting-started.

@Croydon @jgsogo Poco 1.9.0 - 1.9.4 uses OpenSSL 1.0.2o which is present in the getting started. I don't want to see newbies waiting 15 minutes building Poco and OpenSSL on their first try, because there are no pre-built packages available in Conan Center.


IE7 not responding to child combinator ('>') when inside media query

Howdy Scott!
Not sure if this is something related specifically to respond.js or if it's a general issue w/ IE7.
IE7 has support for child combinators (element > element { styles here}), and seems to understand them well when I have them outside of the media queries, but any rules with combinators in media queries IE7 seems to ignore completely and I can only get it to understand the styles if I just use descendent selectors (I'd rather use the combinators because it'll eliminate the need for a bunch of arbitrary classes).
IE8 seems to understand the combinators just fine.
I'm still doing some testing, but I was wondering if you have happen to come across any similar issues while developing respond.js.
Thanks!
And thanks for your work on respond.js.
Best,
Diego

Not sure if this is the right place to report it, but this issue is still occurring when using a custom build of Modernizr that includes respond.js.

@curtisj44: don't want to make any ad, but if you can't have your CSS working with Respond, you could test mediatizr, I think there's no problem with '>' selectors

I've put together a basic demo of this issue: http://dl.dropbox.com/u/8864275/respond/issue21.htm

Nice work. This issue is fixed now with v1.1.0 RC1: http://dl.dropbox.com/u/8864275/respond/issue21-1.1.0rc1.htm

Great! Closing :)


Veröffentlichungsdatum

Please add a time stamp when publishing.

Dezember 2024

This will help contributors know if we have updated the doc
We should use CET and have HH:mm:ss
https://github.com/TIBHannover/co-site-glossar/blob/main/_quarto.yml

done

I saw that for https://github.com/TIBHannover/co-site-glossar/blob/main/_quarto.yml
We can add
date: last-modified
and format as we like also
https://quarto.org/docs/reference/dates.html

in _quarto.yml
book:
  date: now
  date-format: DD. MMMM YYYY, HH:mm:ss


chore: Moves ownership to TLS team

Description
Since we are separating the Telco team from a new TLS team, we now have a new Github group named tls. This PR moves this project's ownership to the TLS team.
Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that validate the behaviour of the software
[ ] I validated that new and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[ ] I have bumped the version of the library

Heads up that this won't change anything in the releases page; it only looks at the GitHub Teams a project is associated with so you'd need to remove this from the Telco team :)

Heads up that this won't change anything in the releases page; it only looks at the GitHub Teams a project is associated with so you'd need to remove this from the Telco team :)

Will do this as well! We use the codeowners file for code reviews though so both need to be done.


INSTALL error!

7>CMake Error at examples/undocumented/libshogun/cmake_install.cmake:31 (file):
7>  file INSTALL cannot find
7>  "E:/software_manual/shogun/build/examples/undocumented/libshogun/balanced_conditional_probability_tree".
7>Call Stack (most recent call first):
7>  examples/cmake_install.cmake:32 (include)
7>  cmake_install.cmake:34 (include)
7>
7>
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: The command "setlocal
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: E:\software_manual\cmake\bin\cmake.exe -DBUILD_TYPE=Release -P cmake_install.cmake
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErrorLevel
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /b %1
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDone
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
7>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: :VCEnd" exited with code 1.
7>Done building project "INSTALL.vcxproj" -- FAILED.

This error is occur when I startup my vs2017 and right click the INSTALL to build.
my environment is Windows7，vs2017，release x64.

Hi there, honestly I haven't build Shogun by Visual studio before. Could
you check if all the submodules have been cloned by 'git submodule update
--init'? Maybe they are unrelative, but missing submodule may cause 'not
found' error like that :)
Best Regards
2017-08-31 15:40 GMT+08:00 Jiewen Wen<EMAIL_ADDRESS>
This error is occur when I startup my vs2017 and right click the INSTALL
to build.
my environment is Windows7，vs2017，release x64.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/shogun-toolbox/shogun/issues/3974#issuecomment-326216399,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACEN04e4VQBlxZrNzDjhOhuYIxIYRVEbks5sdmNygaJpZM4PIb0s
.

https://ci.appveyor.com/project/vigsterkr/shogun
The link is my reference when i build.  the command 'git submodule -q update --init' was ran. however, the error was occur.


Fix grid's documentation errata

Errata in "An ion-col can be sized for different breakpoints by setting the ion-<breakpoint>-<width>."
It has to be col- inestead of ion-, for example: <ion-col col-12 col-sm-9 col-md-6 col-lg-4 col-xl-3></ion-col>

Thanks!


BA-1028 - Fix broken FA image names and bootstrap cleanup

fix(views) - Fix multiple missing icons and some formatting leftover from the bootstrap/FA upgrade
Fixes(BA-1028/1027)

I reviewed all changes/deletions.  All of the changes/deletions are approved.  I will squash my feature branch locally and merge into Dev.


Fix RPC Tests

This PR reduces the difficulty for devnet's genesis block and the cfund voting cycle length in order to reduce the total execution time of the RPC tests.

utACK

Compiled, running the test suite.

all passed.


Discovering Interactive Users

Describe the Issue
Rules in section 6.2. are using the variable called interactive_users_home, which is registered in PRELIM | Interactive User accounts task:
- name: "PRELIM | Interactive User accounts"
  ansible.builtin.shell: 'cat /etc/passwd | grep -Ev "nologin|/sbin|/bin" | cut -d: -f6'
  register: interactive_users_home
  ...

I discovered that the mechanism used for identifying such users is not working well, as the values used for grep prevent really identifying such users.
Expected Behavior
The ansible.builtin.shell command should identify all interactive users.
Actual Behavior
Interactive users are not returned by the above command.
# No filtering at all
example@exampleHost:~$ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
[...]
example:x:1000:1000:,,,:/home/example:/bin/bash
_rpc:x:108:65534::/run/rpcbind:/usr/sbin/nologin
statd:x:109:65534::/var/lib/nfs:/usr/sbin/nologin

# Filtering for 'nologin' indeed gets out most of the users, respectively some of the non-interactive ones
example@exampleHost:~$ cat /etc/passwd | grep -Ev "nologin"
root:x:0:0:root:/root:/bin/bash
sync:x:4:65534:sync:/bin:/bin/sync
example:x:1000:1000:,,,:/home/example:/bin/bash

# Adding '/bin' in this manner, as a filter for the reverse grep, will end up filtering also interactive users(e.g. ones which have /bin/bash or /bin/sh as their login-shell)
example@exampleHost:~$ cat /etc/passwd | grep -Ev "nologin|/bin"                                     ****** Here's the issue, in my opinion
example@exampleHost:~$

# Our suggestion, for filtering some values like `/bin/false` only on the relevant fields:
example@exampleHost:~$ grep -E -v '^(root|halt|sync|shutdown)' /etc/passwd | awk -F: '($7 != "'"$(which nologin)"'" && $7 != "/bin/false") { print $6 }'
/home/example

Control(s) Affected
6.2.* (e.g. 6.2.11, 6.2.13, etc.)
Environment (please complete the following information):

branch being used: [e.g. devel]

Additional Notes

The root, sync, shutdown, and halt users are exempted from requiring a non-login shell.

Possible Solution
I'll provide a PR immediately.

hi @ipruteanu-sie
This issue was merged to devel a couple of weeks ago.
I will close this Issue, if this does not resolve your issue please reopen.
Many thanks as always
uk-bolly


Add per-directory .gitignore support

In a git repo, you may have a top-level .gitignore file at the root of the repo, and individual .gitignore files in subdirs.
It seems that ag only uses the nearest .gitignore it can find, and then doesn't respect the higher level ones.
So if I'm in a subdir that has a .gitignore, then the one from the repo root dir is ignored.
In my opinion, ag should identify if it's inside a git repo, start from the current dir, traverse to the root dir of the repo, concatenating the contents of all .gitignore files found along the way, and using this aggregate ignore list.

Also is an issue the other way around.  If the top level directory and a lower level directory has a .gitignore, the lower level one it ignored.


MOB_rotateToLandscapeToDraw not hiding on iPhone

So on the mobile embedded iframe if I rotate the screen to draw a signature on android everything works fine. I can draw or accept a template signature and move on with the rest of the form.
However, on the iPhone the div MOB_rotateToLandscapeToDraw never removes itself on landscape mode, almost like it never detects it that it is in landscape mode. The options are hidden only because of the div and using dev tools if I make it hidden everything looks great.

Due to cross domain securities I can't use something like jquery to remove this on my own and the client does not want an app, so I can't use a webview to solve this like suggested on the docusign site, so any suggestions?

Hi @robertWeller, this usually happens due to a bug with iframes on iOS Safari. From what we've seen, the iframe does not resize after a rotate, which causes the iframe to actually be taller than it is wide (running slightly below the fold).
It being those dimensions forces the Draw a Signature screen to think that the device is still in portrait.
The fix we recommend is to listen to a window resize event through javascript and update the size of the iframe manually due to the iframe not respecting width and height percentages via CSS.

I used jquery to change the frames height to match the window height which suited my needs.
Thanks again!


Make html, text in css render on webviews

This data comes from an api in json format, the content is html, css, how to do this render in react-native?

If you have data from an API in JSON format, the React Native way to do it is not to have html and css, the way is to just use stuff like View and StyleSheet and use that to populate your view. Hope this helped!