ConnectionError: HTTPConnectionPool(host='en.wikipedia.org', port=80): Max retries exceeded with url: /w/api.php?list=search&srprop=&srlimit=10&limit=10&srsearch=Barack&format=json&action=query (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000023606F8AB38>: Failed to establish a new connection...

I can not use almost any function of wikipidia module. It always returns to me the connection error.
My original code is:
wikipedia.search("Barack")
It gives me the error:
`Traceback (most recent call last):
File "", line 1, in
wikipedia.search("Barack")
File "F:\Anaconda3\anaconda3\lib\site-packages\wikipedia\util.py", line 28, in call
ret = self._cache[key] = self.fn(*args, **kwargs)
File "F:\Anaconda3\anaconda3\lib\site-packages\wikipedia\wikipedia.py", line 103, in search
raw_results = _wiki_request(search_params)
File "F:\Anaconda3\anaconda3\lib\site-packages\wikipedia\wikipedia.py", line 737, in _wiki_request
r = requests.get(API_URL, params=params, headers=headers)
File "F:\Anaconda3\anaconda3\lib\site-packages\requests\api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "F:\Anaconda3\anaconda3\lib\site-packages\requests\api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "F:\Anaconda3\anaconda3\lib\site-packages\requests\sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "F:\Anaconda3\anaconda3\lib\site-packages\requests\sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "F:\Anaconda3\anaconda3\lib\site-packages\requests\adapters.py", line 516, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='en.wikipedia.org', port=80): Max retries exceeded with url: /w/api.php?list=search&srprop=&srlimit=10&limit=10&srsearch=Barack&format=json&action=query (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000023606F8AB38>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应，连接尝试失败。'))`
I am new to scratching data. And I did not find any answer direct for this problem. Do I need to modify any of the scripts in the tracebacks? Appreciate your help!

@hawbox
可以修改库中的URL为‘https://en.volupedia.org/w/api.php’ 就可以调用了 不过相应比较慢。

Hi YixinNJU: I'm from China too and also encountered this problem.This problem is caused by the website block of Wikipedia by Chinese government. So please use proxies to access data from Wikipedia. Second is to degrade the version of urllib3 to 1.25.11 (just use pip install urllib3==1.25.11 to reinstall the module automatically) to avoid ProxyError problem if you are using proxies. The urllib3 bundled with latest Python package added support for HTTPs Proxy however it's need to make the system preferences configurate well to be working. Unfortunately I still can't figure out how I can make the preferences to work well with this module also I found an article related to the problem in Chinese for your reference (https://www.cnblogs.com/davyyy/p/14388623.html) . I need somebody to give some solutions to solve this problem. Lastly sorry for my poor English I'm trying to improve that.

Hello, I'm also from China and I meet this problem too. Thank you very much for your warm reply. I used the global Https  proxy and had degraded the version of urllib3 to 1.25.11 as you said, but I still can't solve this question. Have you solved it? please.

Hi YixinNJU: I'm from China too and also encountered this problem.This problem is caused by the website block of Wikipedia by Chinese government. So please use proxies to access data from Wikipedia. Second is to degrade the version of urllib3 to 1.25.11 (just use pip install urllib3==1.25.11 to reinstall the module automatically) to avoid ProxyError problem if you are using proxies. The urllib3 bundled with latest Python package added support for HTTPs Proxy however it's need to make the system preferences configurate well to be working. Unfortunately I still can't figure out how I can make the preferences to work well with this module also I found an article related to the problem in Chinese for your reference (https://www.cnblogs.com/davyyy/p/14388623.html) . I need somebody to give some solutions to solve this problem. Lastly sorry for my poor English I'm trying to improve that.

Hello, I have solved this error with your help. I add the below code in the '_wiki_request'  function of the wikipedia.py.
Specifically, the added code is :
proxies={
'http': 'http://<IP_ADDRESS>:7890',
'https': 'http://<IP_ADDRESS>:7890'  # https -> http
}
And what need to notice is the above code should be put before the code "r = requests.get(API_URL, params=params, headers=headers, proxies=proxies)" in this function.
Thank you for your warm answer again!

Hello
I'm behind a company proxy and handle the same problem via the request method at api.py in folder requests. You can add
verify=False
like here:
    with sessions.Session() as session:
        return session.request(method=method, url=url, verify=False, **kwargs)

or, what I do, is adding a certificate of the proxy, so that it let's me out (the page is not blocked, but we need to go through the proxy).
    with sessions.Session() as session:
        return session.request(method=method, url=url, , verify ='/path / to / certfile', **kwargs)

You could place the arguments at other points, but I choose this one. That way, I covered my virtual environment.

Hi YixinNJU: I'm from China too and also encountered this problem.This problem is caused by the website block of Wikipedia by Chinese government. So please use proxies to access data from Wikipedia. Second is to degrade the version of urllib3 to 1.25.11 (just use pip install urllib3==1.25.11 to reinstall the module automatically) to avoid ProxyError problem if you are using proxies. The urllib3 bundled with latest Python package added support for HTTPs Proxy however it's need to make the system preferences configurate well to be working. Unfortunately I still can't figure out how I can make the preferences to work well with this module also I found an article related to the problem in Chinese for your reference (https://www.cnblogs.com/davyyy/p/14388623.html) . I need somebody to give some solutions to solve this problem. Lastly sorry for my poor English I'm trying to improve that.

Hello, I have solved this error with your help. I add the below code in the '_wiki_request' function of the wikipedia.py. Specifically, the added code is : proxies={ 'http': 'http://<IP_ADDRESS>:7890', 'https': 'http://<IP_ADDRESS>:7890' # https -> http } And what need to notice is the above code should be put before the code "r = requests.get(API_URL, params=params, headers=headers, proxies=proxies)" in this function. Thank you for your warm answer again!

您好，我按照上述操作还是无法连接到wiki的网站，我是在实验室服务器上操作的，已经全局export的http代理，同时也尝试了降级urllib3，以及修改'_wiki_request' function，但上述操作都没有起作用。求教~~

Hi YixinNJU: I'm from China too and also encountered this problem.This problem is caused by the website block of Wikipedia by Chinese government. So please use proxies to access data from Wikipedia. Second is to degrade the version of urllib3 to 1.25.11 (just use pip install urllib3==1.25.11 to reinstall the module automatically) to avoid ProxyError problem if you are using proxies. The urllib3 bundled with latest Python package added support for HTTPs Proxy however it's need to make the system preferences configurate well to be working. Unfortunately I still can't figure out how I can make the preferences to work well with this module also I found an article related to the problem in Chinese for your reference (https://www.cnblogs.com/davyyy/p/14388623.html) . I need somebody to give some solutions to solve this problem. Lastly sorry for my poor English I'm trying to improve that.

Hello, I have solved this error with your help. I add the below code in the '_wiki_request' function of the wikipedia.py. Specifically, the added code is : proxies={ 'http': 'http://<IP_ADDRESS>:7890', 'https': 'http://<IP_ADDRESS>:7890' # https -> http } And what need to notice is the above code should be put before the code "r = requests.get(API_URL, params=params, headers=headers, proxies=proxies)" in this function. Thank you for your warm answer again!

您好，我按照上述操作还是无法连接到wiki的网站，我是在实验室服务器上操作的，已经全局export的http代理，同时也尝试了降级urllib3，以及修改'_wiki_request' function，但上述操作都没有起作用。求教~~

你好，请问你解决了吗


FEATURE: Explore chaining pipelines

Once the create-gke-cluster pipeline job completes, see if we can trigger another pipeline.  Bonus points if we can trigger more than one.

Completed


Fixup: Only apply formatting changes to a range, and clean the undo stack

Description
This PR:

Only applies the formatting changes to the fixup selection. By calling the format provider directly and filtering the edit down to the selection range. VS Code only provides formatDocument and formatSelection direct commands, so this is the approach that gives us the control we need.
Preserves a single undo/redo action for both the fixup and the formatting change. A user would have to undo a fixup twice if it also applied formatting. This should be an implementation detail and not visible to the user. Now both changes are consolidated into a single undo/redo action.

https://github.com/sourcegraph/cody/assets/9516420/7f5d6b9f-7c2b-4594-b1ad-25ac2d0b575b
Test plan
Tested locally, see demo

@abeatrix Other thought, should we add another code lens state for "Formatting..."? 🤔


Pass optional directory to helper methods

Since COGS may now be imported into other projects, I think it would be useful to be able to pass directories to methods like validate_cogs_project() and get_sheet_url(). Right now, these look for .cogs in the current working directory, but .cogs may be a level up or somewhere different entirely.
See potential issue with DROID - https://github.com/IHCC-cohorts/data-harmonization/issues/132

This is probably resolved by #84


Add constructor which allows specification of base directory

If the same ignore list is used at various levels (e.g. solution root and project roots), relative rules do not get applied correctly in child paths (because rules are assumed to be relative to the overall root.
If we allowed a base directory to be passed in, we could dynamically replace the base path in any rules in the list with a forward slash, which would mean the list still worked correctly from within the base path.

@nojaf Fixing this issue would fix the bug we found in Fantomas. It's ultimately thanks to the TrimStart on https://github.com/markashleybell/MAB.DotIgnore/blob/master/MAB.DotIgnore/IgnoreRule.cs#L171 .

@nojaf Fixing this issue would fix the bug we found in Fantomas. It's ultimately thanks to the TrimStart on https://github.com/markashleybell/MAB.DotIgnore/blob/master/MAB.DotIgnore/IgnoreRule.cs#L171 .


upgrade protobuf

升级protobuf

/run-all-tests

Should we directly merge this into master? @ilovesoup

@zhexuany I think it might conflict with #598 if we merge this directly into master.

Codecov Report

:exclamation: No coverage uploaded for pull request base (batch_write@96b0826). Click here to learn what that means.
The diff coverage is 100%.

@@              Coverage Diff               @@
##             batch_write     #601   +/-   ##
==============================================
  Coverage               ?   53.83%
  Complexity             ?      983
==============================================
  Files                  ?      136
  Lines                  ?     6405
  Branches               ?      761
==============================================
  Hits                   ?     3448
  Misses                 ?     2632
  Partials               ?      325

Impacted Files
Coverage Δ
Complexity Δ

...lient/src/main/java/com/pingcap/tikv/Snapshot.java
19.23% <ø> (ø)
4 <0> (?)

.../java/com/pingcap/tikv/exception/KeyException.java
57.14% <ø> (ø)
2 <0> (?)

...src/main/java/com/pingcap/tikv/codec/KeyUtils.java
94.44% <ø> (ø)
11 <0> (?)

...main/java/com/pingcap/tikv/util/RangeSplitter.java
65.78% <ø> (ø)
19 <0> (?)

...lient/src/main/java/com/pingcap/tikv/PDClient.java
79.11% <ø> (ø)
33 <0> (?)

.../main/java/com/pingcap/tikv/meta/TiDAGRequest.java
40.93% <ø> (ø)
47 <0> (?)

...ava/com/pingcap/tikv/operation/PDErrorHandler.java
50% <ø> (ø)
6 <0> (?)

...main/java/com/pingcap/tikv/util/KeyRangeUtils.java
4.16% <ø> (ø)
2 <0> (?)

.../com/pingcap/tikv/streaming/StreamingResponse.java
0% <ø> (ø)
0 <0> (?)

...ava/com/pingcap/tikv/region/RegionStoreClient.java
50.68% <ø> (ø)
37 <0> (?)

... and 12 more

Continue to review full report at Codecov.

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

I see the PR is labeled with DNM. We can merge this first and rebase #598

I see the PR is labeled with DNM. We can merge this first and rebase #598

agree

mars脑残粉来顶了！疯狂打电话！！


feature request: provide an easy way to add a title to the SVG icon

It would be awesome if we could easily provide some "title" prop to an icon and get it converted to the title element in order to provide some simple tooltip to the icon. Currently it's hard to extend the component to add such title attribute. Even when using a template I've only seen examples to use the 'code' variable, which makes it a bit complicated to add such a title to it based on props.
Thanks for svgr!

Good idea! I think it would be great to be able to specify title yes.

lol at "good first issue" here :)

I've just tried to give it a try by modifying the template while this isn't supported built-in. This is how my template looks like:
const TITLE = `{ title && <title>{title}</title> }`;

module.exports = (opts = {}) => (code, state) => {
  code = code.replace(/(<svg .*?>)/, `$1\n  ${TITLE}`);
  return `const ${state.componentName} = (props) => {
  const title = props.title;
  delete props.title;
  return ${code};
}
export default ${state.componentName};`;
}

Hmm yes it should work!  But relying on RegExp is too hacky, the safest way to do it is to use a h2x transformation.

Hello guys, I started to use svgr in my project and would like to have this feature too.
It makes sense if you want to have different title per projects or per usage in different places.
Great to have title property. Thank you!

v2 is published 🎉

@rosenfeld - quick question - why did you default this to false? is there a reason not to enable this by default?

It wasn't me who implemented, but I suspect it's false by default because we can't guess what the title would be for the svg. Using the filename as the title doesn't look like a good idea to me...

I thought the flag mean that the react-svg will accept a title prop, not auto-compute a title


ORSSerialPort open  -1

I use ORSSerialPort's open functtion,But the value of descriptor is -1. Here is the code!
descriptor = open([self.path cStringUsingEncoding:NSASCIIStringEncoding], O_RDWR | O_NOCTTY | O_NDELAY);
To check this error,I download the CoolTerm.And it display the port is connected!
Im confused!

Hi,
Have you verified that you've added the required sandbox entitlement for serial port access? If your app is sandboxed (the default Xcode Mac app template starts with sandboxing turned on), you'll need that or all attempts to open a serial port will fail. See here: https://github.com/armadsen/ORSSerialPort/wiki/Installing-ORSSerialPort#use-in-sandboxed-applications

Hi,
Have you verified that you've added the required sandbox entitlement for serial port access? If your app is sandboxed (the default Xcode Mac app template starts with sandboxing turned on), you'll need that or all attempts to open a serial port will fail. See here: https://github.com/armadsen/ORSSerialPort/wiki/Installing-ORSSerialPort#use-in-sandboxed-applications

Thanks your reply:
I have already add "com.apple.security.device.serial" is "true" in entitlement. But the result of open function is still -1.

Thanks your reply:
I have already add "com.apple.security.device.serial" is "true" in entitlement. But the result of open function is still -1.

Thanks you tips:
I delete sanbox,and open success

Thanks you tips:
I delete sanbox,and open success


Restructuring the Gem

Client class moved to a separate file.
New class Request created to handle http interactions with firebase.

Hi Edwin, sorry about the delay. I think that my problem with this PR is that it does too much for the benefit provided. If you're interested in adding support for additional Firebase products, I'd rather look at specific PRs for that rather than a general overhaul of the entire gem. For instance, changes to the new hash syntax will break old Ruby compatibility. It's fine to do that, but we're not getting much benefit out of doing that right now.

@vincentwoo The reason i have separated classes is to make future addition of other Firebase services easier.

I know, but unless we have an active plan to do that work, we are basically asking all our downstream users to refactor their code for no gain.


RenderTexture::getContentSize() is never set and always returns Size(0, 0)

axmol version: latest
devices test on:
developing environments

NDK version: r19c
Xcode version: 12.4
Visual Studio:

VS version: 2019 (16.11), 2022 (17.4)
MSVC version: 1929, 1934
Windows SDK version: 10.0.22621.0

cmake version:
Steps to Reproduce:

Calling RenderTexture::getContentSize() always results in (0, 0) (same in Cocos2d-x).  Is there any reason why this is so?
This also impacts RenderTexture::getBoundingBox(), which has fields that are all 0.
It seems to make more sense to set the content size based on the size the RenderTexture is created with.
This would mean that we would no longer need to call:
RenderTexture->getsprite()->getConentSize()
RenderTexture->getsprite()->getBoundingBox()
and can simply call
RenderTexture->getContentSize()
RenderTexture->getBoudingBox()
If there is no good reason why it is returning (0, 0), then I suggest this be changed to either set the content size of RenderTexture on creation, or have RenderTexture::getContentSize() return the internal sprite getContentSize() (which would need to be done for getBoundingBox() too).
Any input regarding this would be appreciated.

If this is fixed, then the internal _sprite position would also need to be changed, with the current code, the sprite anchor point is at Vec2::ANCHOR_MIDDLE, and given the size of the RenderTexture is Vec2(0, 0), then it just happens that the sprite looks like it is correctly positioned.
If the content size of the RenderTexture is set to a value other than Vec2(0, 0), then this will affect the internal sprite position, so it would need to also be adjusted to be centered inside the RenderTexture size, with either:
_sprite->setPositionNormalized(Vec(0.5f, 0.5f));
or
_sprite->setPosition(getContentSize() / 2);
I've discovered other issues with RenderTexture as well, such as the RenderTexture::setAutoDraw(true); not working as intended.  The implementation of the draw method seems to be incorrect:
void RenderTexture::draw(Renderer* renderer, const Mat4& transform, uint32_t flags)
{
    if (_autoDraw)
    {
        // Begin will create a render group using new render target
        begin();

        // clear screen
        _director->getRenderer()->clear(_clearFlags, _clearColor, _clearDepth, _clearStencil, _globalZOrder);

        //! make sure all children are drawn
        sortAllChildren();

        for (const auto& child : _children)
        {
            if (child != _sprite)
                child->visit(renderer, transform, flags);
        }

        // End will pop the current render group
        end();
    }
}

This will simple draw a blank image.  What I've found to work correctly is to remove the begin()/end() and also remove the call to  _director->getRenderer()->clear(...):
void RenderTexture::draw(Renderer* renderer, const Mat4& transform, uint32_t flags)
{
    if (_autoDraw)
    {
        //! make sure all children are drawn
        sortAllChildren();

        for (const auto& child : _children)
        {
            if (child == _sprite)
                continue;

            child->visit(renderer, transform, flags);
        }
    }
}

The alternative to fixing getContentSize() and getBoundingBox() etc is to add all the methods that don't work correctly under the private access modifier, so they cannot be called by external code, forcing the usage of RenderTexture::getSprite()->getContentSize() etc.

Is there any point in fixing the RenderTexture class, or should it just be left as-is?

I'll look into addressing the issues mentioned above and enhancing the API for RenderTexture, such as adding a RenderTexture::getTexture() method, which would make a lot of sense for that class.  Since no-one else seems to be having issues with the RenderTexture functionality as in its current state, then changing it isn't a priority.


Create flags aren't in alphabetical order in help text

$ machine create 2>&1 | head
NAME:
   create - Create a machine

USAGE:
   command create [command options] [arguments...]

OPTIONS:
   --virtualbox-memory '1024'                   Size of memory for host in MB
   --virtualbox-disk-size '20000'               Size of disk for host in MB
   --virtualbox-boot2docker-url                 The URL of the boot2docker image. Defaults to the latest available version [$VIRTUALBOX_BOOT2DOCKER_URL]

$ machine create 2>&1 | head
NAME:
   create - Create a machine

USAGE:
   command create [command options] [arguments...]

OPTIONS:
   --digitalocean-access-token                  Digital Ocean access token [$DIGITALOCEAN_ACCESS_TOKEN]
   --digitalocean-image 'docker'                Digital Ocean Image [$DIGITALOCEAN_IMAGE]
   --digitalocean-region 'nyc3'                 Digital Ocean region [$DIGITALOCEAN_REGION]

$ machine create 2>&1 | head
NAME:
   create - Create a machine

USAGE:
   command create [command options] [arguments...]

OPTIONS:
   --url                                        URL of host when no driver is selected
   --google-zone 'us-central1-a'                GCE Zone [$GOOGLE_ZONE]
   --google-machine-type 'f1-micro'             GCE Machine Type [$GOOGLE_MACHINE_TYPE]

Not sure if this is a machine or codegangsta/cli issue, I haven't done the digging yet but flag order (by driver) changes with every invocation of machine create -h.  This is disorienting if you're hunting down flags by provider in multiple invocations.
I'm assuming this is because they're being stored in a map internally so we will most likely need something along the lines of https://blog.golang.org/go-maps-in-action#TOC_7. to clean it up.

Interesting.... this might be because drivers are initialised in an indeterministic order.

I have a fix for this incoming....

Thanks!
On Mon, Jan 5, 2015 at 1:18 PM, Nathan LeClaire<EMAIL_ADDRESS>wrote:

I have a fix for this incoming....
—
Reply to this email directly or view it on GitHub
https://github.com/docker/machine/issues/214#issuecomment-68783300.


Various AX improvements

Fixed a regression in ax::run which wouldn't propagate exceptions
Improved logger exit handling in the compiler
Improved the behaviour of ax::parse for invalid ASTs

Signed-off-by: Nick Avramoussis<EMAIL_ADDRESS>

In the spirit of not holding this up, think this is fine to go in. Any further documentation improvements can be made in a future PR.


Wrong prediction of released nuscences Model

Hi, your work is really impressive and creative and thanks for the released codes!
However, I met a problem when doing predictions on nusences lidar data, by using your model weights "model_load_nuscenes.pt". All the predicted labels are the same class, namely 'terrain'. Is there any mistake about your weights file?
The following figure is the visualization of the prediction.
Looking forward to your reply.

Thanks, I have found the mistake. It is due to the failure  of loading model weights. The keys in your weights are all beginned with 'polar' while  in the built network they are beginned with 'cylinder'. I correct the ‘keys' and they worked now, so it is not the problem on colormap.


Wrong documentation or implementation?

The documentation for swipe recognizer says that default direction is 'DIRECTION_ALL' link.
Although on the code says 'DIRECTION_HORIZONTAL | DIRECTION_VERTICAL'.
Which one is correct?
ps.: I found this because I was trying to use 'swipeup' but it was not working. The event was not being dispatched. So I tried 'hammertime.get('swipe').set({ direction: Hammer.DIRECTION_ALL });' and it works.
ps2.: I could do a pull request, but I need to know if I edit the code or the doc =)

@renie actually if you read the note at the bottom of the page you link you will see it says

When calling Hammer() to create a simple instance, the pan and swipe recognizers are configured to only detect horizontal gestures.

Closing this as not an issue.


Not working with Precision Touchpad / Scrollpad

If you use a precision touchpad/scrollpad (at least on Windows 11), scrolling on the taskbar does not change the volume. Using an external mouse will work though.
I think somehow the precision touchpad drivers aren't sending wheel up/down events properly when scrolling on the taskbar.

Hello, same in MSI laptop with Win11, best regards.

This project relies on a different project to handle mouse and keyboard input events which has been seemingly inactive
I don't have a laptop with a "Precision Touchpad" optimized touchpad (the program works fine in my case with regular touchpad drivers). Will have to see if I can manually install those Precision Touchpad drivers and try some stuff out with it

Apparently touch events with a Precision Touchpad are handled differently from normal mouse input, it's currently not possible for me to implement a fix, support for handling these events with code seems very minimal. Sorry


Implement assume_role_with_web_identity

The AssumeRoleWithWebIdentity is a similar endpoint to STS's AssumeRole
where the authentication element is a JWT id_token from a configured OP.
This commit implements the functionality and relies on the same result
generated for the regular AssumeRole.
This implements feature #2312

Coverage increased (+0.02%) to 93.118% when pulling e54f74776b0b69a3fa848dba946951a532b30aa1 on caguado:fix/2312 into 9acdc59aa4ec54e2b995a4793503513e0b0dc055 on spulec:master.

Thank you!


fold PublishToDir into publish itself

@deitch this should simplify the pubsub refactoring a tiny bit

Thank you, yes, it should.

Hi Erik,
For the PublishPersist - Shouldn't we go by the model where zedagent publishes the GlobalConfig - and rest of the agents just subscribe to it? Then all these other agents - nodeagent, nim and diag - should just do "Subscribe". the modalities of Subscribe should be that:

If the Persistent file exists - Read from it.
If Persistent file doesn't exist, just use default values to begin with. When zedagent actually publishes GlobalConfig, the subscribers would get the updated values.

With this behavior, all of the normal cases are updated. The one case it doesn't address it - the override file in /config . The best way to handle this is - Make zedagent the first agent to startup - make it publish globalConfig - Then let it wait for Nim to publish NetworkDeviceStatus before going on to fetch the config from cloud..
Thanks,
Kalyan


Stacked Logarithmic axes with a 0 data point crashes page

Expected Behavior
Chart should not break page
Current Behavior
Chart breaks page
Possible Solution

Steps to Reproduce (for bugs)
Go to https://jsfiddle.net/kadeyuy/r190msc6/18/ and change the stacked from false to true and hit run and the page will crash.
Context
Trying to have a stacked logarithmic bar graph so that I can show how different data sets contribute to total number while also being able to see smaller data points.
Environment

Chart.js version: 2.6
Browser name and version: Chrome Version 59.0.3071.115 (Official Build) (64-bit)

Looks like the problem is that minNotZero is not set. The code for that is at https://github.com/chartjs/Chart.js/blob/5d95280d7b9c910f944ed7e219193a904bb4425b/src/scales/scale.logarithmic.js#L50 which leaves me.minNotZero equal to null instead of setting it.
Adding
if (value !== 0 && (me.minNotZero === null || value < me.minNotZero)) {
    me.minNotZero = value;
}

To the bottom of the if clause appears to fix the problem.

@etimberg This issue has been addressed through PR #4959.


Flutter for web support

With the release of Flutter 1.9. Flutter for web was merged in the main library. Because flutter for web can not work with dart:io. Niddler_dart is not supported for Flutter for web.
Not sure if it should be fixed right away or wait for the official release of flutter for web.
Browser-based applications can't use this library. Only servers, command-line scripts, and Flutter mobile apps can import and use dart:io.
https://api.dartlang.org/stable/2.5.0/dart-io/dart-io-library.html

Fixed in #3


[loc][Query][DevDiv] Please clarify placeholders "{0} ({1})"

VSCode Version:
OS Version:

Steps to Reproduce:
Hi, we have a query about the placeholders in source.
source:
{0} ({1})
File Name:
src\vs\base\browser\ui\actionbar\actionbar.nls.resx
Resource ID:
".resx", 0; "titleLabel"
Query:
Can you please clarify the placeholders? What will they be subtituted by? Thanks!
(vso tfs 557907)

0: action label
1: action keybinding

Thanks!


[Look&Feel] Adjust helper text size across monitor page

Description

Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

e2e tests are failing, could you check

e2e tests are failing, could you check

@riysaxen-amzn same tests are failing for other PRs. See analysis here in @AMoo-Miki 's  PR, I think it still seems like an alerting issue related to cluster/index not properly selected. https://github.com/opensearch-project/alerting-dashboards-plugin/pull/1010#issuecomment-2243941393


/meet-people page

is not opening its content
http://joxi.ru/YmEgMadsJNGN6A
Problem arose when user types were modified/added.
Second question: Where is file for editing/adding countries?

Can you send upload a screenshot showing the problem?

Secondly, what do you mean by adding contries on meet-people page...?  The page shows the current country based on your location.

You can also change the list of available countries in Admin Panel -> User/Admin -> Users -> Country Restriction. Check what countries are selected in there.
Hope it helps!!  🎉
Enjoy your weekend 🚀

I wanted to add a country that does not exist on country list. I will try what you suggested...

For first problem I sent screenshot showing the problem in link in my first message...When I click on browse people both in user and admin panet, no one appears...

screenshot

Can you send upload a screenshot showing the problem?

I found and fixed this problem.

@Pavkebgd It would be nice if you could explain what you did to solve your problem.
So other people who may have the same problem can get help too...
That's somewhat the reason of this forum.
Also, if you like the software, you can give it a Star on GitHub.
Thanks

@Pavkebgd It would be nice if you could explain what you did to solve your problem.
So other people who may have the same problem can get help too...
That's somewhat the reason of this forum.
Also, if you like the software, you can give it a Star on GitHub.
Thanks

Sure...since I changed User Types, I had problem with loading Browse People page...I solved the problem by changing user types also in: templates/themes/base/tpl/browse_user.inc
@polynamaude Will you please tell me:

Where is located file in which I can add country to the list od countries?
Since I plan to change domain name, where is located appropriate config file where I can make changes in domain name?

@Pavkebgd Hi,
You simply clear the caches when you change your domain name.
Also, you'll need to go into the database and change the domain name everywhere you'll see it.
Regarding the list of country, I'll give you a general hint that will be useful for many other problem you may encounter.
Simply use the "fgrep" command from the shell prompt. This will allow you to search inside files. If you want to know everywhere a specific country is named then you can search by using "France" for example and it shall give you the file(s) that have the word "France" in. This shall help you find where "France" is and as it's a pretty uncommon word except as a country, you'll get your answer.
Regarding your question about countries, it has been answered higher in the thread. There's not country list used by the software itself. It uses a external service to identify your location. (My best answer).

I wanted to add a country that does not exist on country list. I will try what you suggested...

Oh, interesting @Pavkebgd Which one is it? I would be pleased to add it if it's not already added in there.

Serbia, you do not have it on the list, while you have country Yugoslavia,
that does not exist. Will you add than Serbia to the list?
Sent from Samsung Galaxy
On Sun, 16 Aug 2020, 12:34 ♚ PH⑦ de Soria™♛<EMAIL_ADDRESS>wrote:

I wanted to add a country that does not exist on country list. I will try
what you suggested...
Oh, interesting @Pavkebgd https://github.com/Pavkebgd Which one is it?
I would be pleased to add it if it's not already added in there.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/808#issuecomment-674509678,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APFDRNYYDCHJ56W3T7TYBMLSA6Y2RANCNFSM4P7JSREA
.

@Pavkebgd Have you tried doing the search as I told you ? You can use the word "Yugoslavia" and you'll find where the lists are.

@Pavkebgd Have you tried doing the search as I told you ? You can use the word "Yugoslavia" and you'll find where the lists are.
This will be the fastest for you.
You can even make back a pull request and we'll integrate your changes into the system.

Sorry, I am not advanced user. I am not using prompt shell, I use only filezilla. Maybe I will try what you suggested. But, you said that you will add country Serbia in your system.

@Pavkebgd Please look at the username written...
There's more than one person in this conversation.
You can find a similar software that will search thru files under Windows. For example you can either install Cygwin or Mingw, use the search option in the Eclipse IDE, PHPStorm or other, etc.
If you we're able to change the template file, you shall be able to do the same for the country.
Even if PH did say he's gonna add it, this doesn't mean you'll get it today or the day after but mostly it will be added to the release cycle.

@Pavkebgd You better learn a way to search thru source code as this will be much needed when you'll start debugging.

@Pavkebgd Please look at the username written...
There's more than one person in this conversation.
You can find a similar software that will search thru files under Windows. For example you can either install Cygwin or Mingw, use the search option in the Eclipse IDE, PHPStorm or other, etc.
If you we're able to change the template file, you shall be able to do the same for the country.
Even if PH did say he's gonna add it, this doesn't mean you'll get it today or the day after but mostly it will be added to the release cycle.

I realised, but late, that PH, not you, mentioned adding...
Thank you for useful things you mentioned in your reply...

@Pavkebgd The modifications you already made are only the beginning of the interesting possibility you are about to discover. You'll gain much by customizing the system to meet your own specific needs.
If you ever take time to make translation to another language, we'll be more than happy to integrate it to the distribution if you make a pull request when done.
If you want to get a good start learning PHP, I'd suggest you look for the PHP Object Oriented guide for Wordpress as a book to start reading.
Don't hesitate if you ever have other questions

Serbia, you do not have it on the list, while you have country Yugoslavia, that does not exist. Will you add than Serbia to the list? Sent from Samsung Galaxy
…
On Sun, 16 Aug 2020, 12:34 ♚ PH⑦ de Soria™♛, @.***> wrote: I wanted to add a country that does not exist on country list. I will try what you suggested... Oh, interesting @Pavkebgd https://github.com/Pavkebgd Which one is it? I would be pleased to add it if it's not already added in there. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#808 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APFDRNYYDCHJ56W3T7TYBMLSA6Y2RANCNFSM4P7JSREA .

Thank you @Pavkebgd! I will add right away your beautiful country in the system and will be available in the next version (v16.0.0).
I feel really sorry that your country wasn't in the CMS.

Thank you @pH-7 !
Untill then, can you help me locating the file where I can add it now for my site?
Also, one small issue - May I and where in files I can remove or edit this attention message that appears (screenshot attached)?

After update to V16, you can find updated list of countries when you Edit profile, but during registration and in search form, it is still an old list of countries?
Maybe I didn’t properly updated site or this is bug?
From: ♚ PH⑦ de Soria™♛<EMAIL_ADDRESS>Sent: Friday, August 21, 2020 4:20 PM
To: pH7Software/pH7-Social-Dating-CMS
Cc: Pavkebgd; Mention
Subject: Re: [pH7Software/pH7-Social-Dating-CMS] /meet-people page (#808)
Right now, adding a new country is a big complex since it involves inserting a new row into the database as well  https://github.com/pH7Software/pH7-Social-Dating-CMS/commit/7f4d7b94fe2745e03114301e455c72476b806731 7f4d7b9
It will be included by default in the stable v16 which is schesuled for the end of this month. I really appreciate your understanding!
—
You are receiving this because you were mentioned.
Reply to this email directly, view https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/808#issuecomment-678315332  it on GitHub, or unsubscribe https://github.com/notifications/unsubscribe-auth/APFDRN277P32OAXBSCJ7IODSBZ7BTANCNFSM4P7JSREA .  https://github.com/notifications/beacon/APFDRN4REXTTJGSZBNOKO63SBZ7BTA5CNFSM4P7JSREKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFBXEKRA.gif


[bug] Basic set events not sent to mqtt anymore?

Version
Checklist:

[X ] I am not using HomeAssistant. Or: a developer has told me to come here.
[X ] I have checked the troubleshooting section and my problem is not described there.
[ X] I have read the changelog problem was not mentioned there.

Build/Run method

[x ] Docker
[ ] PKG
[ ] Snap package
[ ] Manually built (git clone - npm install - npm run build )

zwavejs2mqtt: 3.2.0
zwave-js: 7.1.1
Describe the bug
Until some unknown period in the past, basic set events from devices with a compat flag to undo the mapping and treat them as an event appeared under command class 32 under 32/0/event. After a complete rebuild of my network I no longer see 32 under any devices regardless of whether I use:

ValueID Topics
Named Topics (for this one basic isn't listed)

Double tapping my GE switches does send through the event properly (I can see it in HA) and I see it in the zwavejs1mqtt log. But I don't see any messages anywhere in mqtt.
With named topics:

With ValueID topics:

Expected behavior
Double tap up/down should generate an event notification with a value of 255/0, and this should appear in mqtt.
Additional context
zwave-js:
2021-04-12T04:38:31.385Z CNTRLR   [Node 002] treating BasicCC::Set as a value event
2021-04-12T04:38:31.385Z CNTRLR   [Node 002] [!] [Basic] event: 255                                 [Endpoint 0]

zwavejs2mqtt:
node2.log

Ah, should have read my own log file. I see this now under homeassistant/_EVENTS/ZWAVE_GATEWAY-MQTT/node/node_value_updated
Is it not possible to publish these under the device itself anymore?

homeassistant/_EVENTS/ZWAVE_GATEWAY-MQTT/node/node_value_updated

Humm that's the event, you should get it under node too 🤔 Let me check...

You should get a message under: .../32/0/event topic, I don't understand where it stops the propagation here. I have created a patch that could help understand where it blocks. Could you try to use master tag and resend me a full log?

I've confirmed this breaks in zwavejs2mqtt version 3.0.0, apparently from the jump to node-zwave-js 7.0.0. I speculate that this is because of a 7.0.0 breaking change separation value-notification from notifications.
https://github.com/zwave-js/node-zwave-js/pull/2029/files

There are both nodeValueNotification and nodeNotification events, them are handled differently on my side:

nodeValueNotification: https://github.com/zwave-js/zwavejs2mqtt/blob/master/lib/ZwaveClient.js#L617
nodeNotification: https://github.com/zwave-js/zwavejs2mqtt/blob/master/lib/ZwaveClient.js#L694

In v7 breaking changes @AlCalzone mentions the nodeNotification one but in your case what is raised is a nodeValueNotification that for some reason I get but is not published to MQTT

https://github.com/zwave-js/zwavejs2mqtt/blob/master/lib/ZwaveClient.js#L617
https://github.com/zwave-js/zwavejs2mqtt/blob/b3ad1a3625b35f3cad963a0aa3ca50f1a342ffe6/lib/ZwaveClient.js#L632
https://github.com/zwave-js/zwavejs2mqtt/blob/b3ad1a3625b35f3cad963a0aa3ca50f1a342ffe6/lib/ZwaveClient.js#L1175
https://github.com/zwave-js/zwavejs2mqtt/blob/master/lib/Gateway.js#L210
This are the functions called when that event is triggered, essetially I get it as a nodeValueNotificaiton event then I set the stateless flag and trigger the valueUpdate, that emits the event that is then catched by the gateway who translates the valueId to its topic.
My first thought was that maybe for some reason your node is not marked as ready, in that case: https://github.com/zwave-js/zwavejs2mqtt/blob/master/lib/Gateway.js#L223

Could someone give a try to #1055?

I have merged #1055 so you can use master tag in docker to see how it goes. Let me know!

I'll report back in a few, I was just building it from the PR.

Just wait few moments: https://github.com/zwave-js/zwavejs2mqtt/runs/2333371512

Weird, it didn't create the entities in zjs2m or the retained topic in HA but it did sent the topic once and triggered the automation I have in HA only one time.
zwavejs2mqtt-store.zip

This is correct as it is not returned from getDefinedValueIds method. BTW I could change this if needed and manually create an entry for that value once it get triggered the first time.

Wouldn't you need this so it sets up the entity for mqtt discovery?

So relevant logs are:
2021-04-13 08:09:41.090 INFO ZWAVE: Node 16: value added 16-32-0-event => 0
2021-04-13 08:09:41.095 DEBUG GATEWAY: Publishing discovery: {
  type: 'sensor',
  object_id: 'notification_event',
  discovery_payload: {
    value_template: '{{ {}[value_json.value] | default(value_json.value) }}',
    icon: 'mdi:alarm-light',
    state_topic: 'zwave2jsmqtt/master_bedroom_lights/32/0/event',
    json_attributes_topic: 'zwave2jsmqtt/master_bedroom_lights/32/0/event',
    device: {
      identifiers: [ 'zwavejs2mqtt_0xead969cf_node16', [length]: 1 ],
      manufacturer: 'GE/Jasco',
      model: 'In-Wall Dimmer Switch (14294 / ZW3005)',
      name: 'master_bedroom_lights',
      sw_version: '5.29'
    },
    name: 'master_bedroom_lights_notification_event',
    unique_id: 'zwavejs2mqtt_0xead969cf_16-32-0-event'
  },
  discoveryTopic: 'sensor/master_bedroom_lights/notification_event/config',
  values: [ '32-0-event', [length]: 1 ],
  persistent: false,
  ignoreDiscovery: false
}
.......
2021-04-13 08:09:41.107 DEBUG MQTT: Publishing to zwave2jsmqtt/master_bedroom_lights/32/0/event: {
  time:<PHONE_NUMBER>106,
  value: 0,
  nodeName: 'master_bedroom_lights',
  nodeLocation: ''
} with options { qos: 1, retain: true }
........
2021-04-13 08:09:58.324 DEBUG MQTT: Publishing to zwave2jsmqtt/master_bedroom_lights/32/0/event: {
  time:<PHONE_NUMBER>317,
  value: 0,
  nodeName: 'master_bedroom_lights',
  nodeLocation: ''
} with options { qos: 1, retain: true }

Seems the entity is created now right? Alsoo the message is published to MQTT. The strange thing here is that the retain flag is set to true

Wait maybe I have found something

Tried again and it's crashing zjs2mqtt. I'll add the logs in this comment in a sec.

Try with #1056

BTW I don't see the crash there

Not sure if crashing was the right word, maybe triggering a refresh is more accurate.

BTW please remember to delete logs between restarts so I only get the logs needed and not the old ones

Yes I did, if you see multiple restarts then it happened when I was double clicking the switches.

Depends on the device 🤷🏻♂
Please open an issue in node-zwave-js and attach a driver log of a re-interview and reports which show the behavior.


Wheel is not marked as binary

Here's a patch from uwsgi:
https://github.com/unbit/uwsgi/commit/7ebe9575d317f011dc361b7aeebfc6f2a22150d3

Here's how I did this for dumb-init: https://github.com/Yelp/dumb-init/pull/75

Closed via e6fa2488436


Feature: [list view] Ability to control place of button "Add"

Currently button "Add" always on bottom of view.
Will be great to give more control for its place.

The best approach is to use pages. in the future I think both this "add new" functionality and the little state form drop-down will be deprecated and you should do such functionality through a page (for add new, either embedded view or add a view link, for the state form use a filter view). There is still a bit of missing functionality to fully replace the existing "add new" functionality, I will work on that. Working with pages will give you exactly the flexibility that you ask for here.
But I have just added an option to views to "show on page", which really helps. That way view links, which point to the right row, can now be used with pages


Drop pyqt=4 requirement

Since anyqt is used as a pyqt compatibility layer, the package should work with any (recent) version of pyqt. The recipe needs to be updated accordingly.

Fixed in #21.


fix: patch next link errors and pass forward refs

What does this PR do and why?
Provide a description of what this PR does. Link to any relevant GitHub issues, Notion tasks or Discord discussions.
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] (if relevant) I have tested this PR in all supported browsers.
[ ] (if relevant) I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #3451   👈

This comment was auto-generated by Graphite.

@wraeth-eth queued this pull request to merge with Graphite.

@wraeth-eth merged this pull request with Graphite.


HDDS-10828. S3 robot tests should cover both OBS and FSO buckets

What changes were proposed in this pull request?
S3 robot tests cover only OBJECT_STORE buckets as of now. Modified the tests to cover FILE_SYSTEM_OPTMIZED buckets as well.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10828
How was this patch tested?
Tested the patch manually on a docker cluster.
Green CI run - https://github.com/sarvekshayr/ozone/actions/runs/9169163732

Acceptance tests cover different kinds of buckets (encrypted bucket, link to other bucket, bucket with EC replication). FSO bucket is already covered the same way:
https://github.com/apache/ozone/blob/87c394568e68c7f640e0185f3c64303d4b5994b4/hadoop-ozone/dist/src/main/compose/ozone-ha/test.sh#L41-L45

In Setup s3 tests, bucket is created with ${BUCKET_LAYOUT} OBJECT_STORE only.
https://github.com/apache/ozone/blob/00f89e60563a1e2d290cd49f7175dac87d533223/hadoop-ozone/dist/src/main/smoketest/s3/commonawslib.robot#L144
https://github.com/apache/ozone/blob/00f89e60563a1e2d290cd49f7175dac87d533223/hadoop-ozone/dist/src/main/smoketest/s3/commonawslib.robot#L157-L160
Also I do not see acceptance tests running for different bucket layouts in the CI run.

Closing this PR because the acceptance test already covers all 3 bucket layouts in https://github.com/apache/ozone/pull/6452.
Thank you @adoroszlai for pointing this out and @Tejaskriya and @tanvipenumudy for the review.


bubble sort algorithm under c++

IN this i will provide the code to sort an array using bubble sort algorithm.
please asssign me this under hacktoberfest 2023.

You have added a pull request so i am closing it.


"Jason" not found in production

(Maybe related with issues #25, #26)
When in production,  the 'Jason' dependency cannot be found.
A workaround is to add  {:jason, "~> 1.0"} to the app mix.exs file.

Hi @guidotripaldi, thanks for reporting!
This is a bug, I forgot to add it to applications. Will be fixed in the next release.
For a workaround, you may also add it to applications in the release.


Solved Matrix

Hello there! Im applying this algorithm for solving a problem with a lot of vertex and edges, and since the algorithm is 0(n^3) its very slow. I want to use the matrix already solved on my code, So, how Can I save the Matrix for just using it instead of calculating it each time?

We'll need more information to understand your question.
What is the problem and what algorithm are you using?


[MNT] effective testing via pytest-testmon

Upon the request of @fkiraly I investigated the possibility to use pytest-testmon for testing in sktime. When I tested many different commits from sktime history testmon selected single to triple digit number of tests out of the 20K test suite. I also tested multiple commits which introduced a test failure and testmon did execute the right tests to expose the failure. Very encouraging!
sktime code is tested from within site-packages installation after executing pip install . (pytest is then executed from a "dummy" subdirectory and using --pyargs sktime arguments) Unfortunately testmon doesn't support --pyargs . --pyargs support might not be added to testmon for a long time.
However, I would like to suggest, to reconsider the usage of --pyargs. Philosophically the way sktime now tests is fine, of course. You're testing the form of the product which is closer to "production" than to development environment. However, I must point out many times it's not the "production" version anyway. The production would be a tar.gz or wheel package.
I suggest normal test.yml would test the git source code (editable install, without --pyargs) this way: https://github.com/alan-turing-institute/sktime/commit/903682ec5a3a8d3d9002a1d1f049ded1242fcf5d
@lmmentel commented on this: https://github.com/alan-turing-institute/sktime/pull/2389#issuecomment-1087828335
but I didn't experience any failiures when testing site-packages vs testing code from git repo.
The set of tests picked with --pyargs sktime vs sktime/ is a little different and I would probably need you guys to have a look at it and confirm it's fine or tweak it.
Are you OK with executing test suite with pytest sktime instead of pytest --pyargs sktime ? Should I prepare the PR?

FYI @lmmentel, @freddyaboulton

... <1000 instead of >20000??
👀 👀 👀
👁👁

... <1000 instead of >20000?? 👀 👀 👀 👁👁

I put my testing commits to this table. I've been triggering the runs and writing the table by hand, so sometimes the durations and links are not apples to apples comparisons.  However as you can see this is great.
More random thoughts:

I might have been lucky, with the commits I picked, it's not a big sample size. However it's quite time consuming to do this so I would like to have your decision about --pyargs, before investing more time into this.
python -m pytest sktime/ picks 20633 tests vs 20212 picked by pytest --pyargs sktime. (I'm sure this could be fixed in pytest conf to match perfectly)
creating virtualenv takes 3 minutes. I used https://github.com/marketplace/actions/restore-or-create-a-python-virtualenv
execution of 0 or 1 test takes ~ 3 minutes. As far as I know this is not overhead of testmon but initialization of sktime.
there is huge amount of warnings which makes it quite annoying to work with the logs.

Watch out, the table is probably wider then you see.

testmon

original

link
duration in m
tests
link
duration in m
tests

https://github.com/tarpas/sktime/runs/5784944422?check_suite_focus=true
3.5
0
https://github.com/alan-turing-institute/sktime/runs/5705928653?check_suite_focus=true
39
20211

https://github.com/tarpas/sktime/actions/runs/2076198991
10
1778
https://github.com/alan-turing-institute/sktime/runs/5711518763?check_suite_focus=true
40
20202

https://github.com/tarpas/sktime/runs/5785681379?check_suite_focus=true
7
110
https://github.com/alan-turing-institute/sktime/runs/5711858176?check_suite_focus=true
45
20213

https://github.com/tarpas/sktime/runs/5785827784?check_suite_focus=true
3.5
4
https://github.com/alan-turing-institute/sktime/runs/5712043068?check_suite_focus=true
60.5
20212

https://github.com/tarpas/sktime/actions/runs/2076560534
12.5
1779
https://github.com/alan-turing-institute/sktime/runs/5712267222?check_suite_focus=true
60.5
20212

https://github.com/tarpas/sktime/actions/runs/2076658605
3.5
1
https://github.com/alan-turing-institute/sktime/runs/5712506663?check_suite_focus=true
44
20k

https://github.com/tarpas/sktime/actions/runs/2076758669
10
1779
https://github.com/alan-turing-institute/sktime/runs/5712509879?check_suite_focus=true
43
20k

https://github.com/tarpas/sktime/actions/runs/2076855145
56
20633
https://github.com/alan-turing-institute/sktime/actions/runs/2074016337
52
20212

@tarpas, this looks nice!
Here's a question: could you kindly explain the logic picking the tests in the following simplified case?

there is a function get_all_classes that picks up all classes in sktime and feeds them to three tests via pytest_generate_tests, let's say test1, test2, test3, depending on properties of the class (let's say attributes needs_test1, needs_test2, needs_test3)
in PR no.1, we add one new class somewhere in sktime
in PR no.2, we change the needs_test2 attribute to True from False in some existing class

Based on the "lines affected" logic (which I think is behind testmon?), why would this pick the right tests, i.e., in PR no.1 whichever tests the attributes require, and in test no.2, exactly test2?

Maybe the parameter of the test changes? test2[Class1] -> test2[Class2] ? In that case the node_id of the test changes and the "new" node_id is executed. If that's not the case, testmon will probably miss the change :(
There is actually much simpler case where I'm struggling for solution. If a constant from a different module (e.g. consts) is used in a test, e.g.
import consts
def test_a_is_1:
    assert consts.A == 1

the change of A value would be missed. I think I saw a commit in sktime a couple of weeks ago which concentrates the result values to be asserted into a different module, creating exactly this situation.
What now? :)

My suggestion regarding sktime testing holds. I would like you to test editable (git) source in CI. If somebody could also work on the inherent problems of the suite (long initialization and kilobytes of warnings), that would be great. If that's done I'll try to test testmon with sktime, compare the results and come up with sensible solutions/suggestions.

What now? :)

I´m not sure - could you give a few lines of why this would be missed?

If somebody could also work on the inherent problems of the suite (long initialization and kilobytes of warnings), that would be great.

Long initialization is due to fixture collection - any ideas how to address that?
Warnings are mostly deprecation related, is that correct?

What now? :)

I´m not sure - could you give a few lines of why this would be missed?

testmon considers only lines executed during the test execution as dependencies. Lines which are executed at import time (before test execution) are only considered a dependency in some cases and the case described is not one of them. I already have a couple of ideas how to approach fixing this, but it's not easy and without runtime cost.

Long initialization is due to fixture collection - any ideas how to address that?
pytest doesn't create fixtures for deselected tests. Are the many different classes initialized during pytest_generate_tests by chance? Would it be possible to postpone that to test setup? Maybe there is not low hanging fruit :/

Warnings are mostly deprecation related, is that correct?
It seems so. If not fixing, then maybe supressing warnings would be OK?

To modify and reiterate  my suggestion.

sktime would test editable (git) source in CI (no --pyargs)
--tmnet-noselect would be used so that no data is skipped, just ordered with the most likely to fail executing first
data would be collected, to understand if testmon would skip any failures
later if everything looks good, --tmnet-noselect --maxfail=1 can be used to save time of execution and capacity of CI, but not skip a failure
then --tmnet can be switched on for PRs
then --tmnet can be switched on in full

I'm on it!. I released a version tmnet/testmon which sorts tests as promised (--tmnet-noselect didn't sort them before). Now I discovered some new bug. sktime si quite a beast but I hope to have a PR read in the upcoming days.

sktime is quite a beast

😅 I hope you mean this only in the best possible of ways 😁
Jokes aside, thanks a lot for looking into this!

@fkiraly quick update: I didn't forget about testmon or sktime but the combination of sktime + xdist + coverage collection is causing problems which are hard to diagnose and hard to fix. There will be a release of testmon which supports xdist with a good performance soon, but the sktime + xdist + coverage will probably not be supported initially. I'll get back to sktime after testmon has been validated on smaller, less demanding projects.

hm, is coverage collection perhaps related to this?
https://github.com/alan-turing-institute/sktime/issues/3328
Apologies, I did not think carefully of testmon when we introduced the partition design here: https://github.com/alan-turing-institute/sktime/pull/3137
That makes individual CI jobs to run only a subset of estimators, which confuses codecov.
If we were to use testmon, we would first revert https://github.com/alan-turing-institute/sktime/pull/3137 (or simply set the --matrixdesign param to False in the test spec)


Fix/GitHub 884/mv feature option

This will be a breaking change, so we'll need to time the release with the FE @kyle-ssg.


cli: investigate argument parsing

[x] read https://rust-cli.github.io/book/index.html
[x] read through clap docs
[x] experiment
[x] decide on an approach (free-form parsing of input args without using a library? something else?), document it in this ticket, go from there

going with clap for now, i like its subcommands feature. will reopen or make a new ticket if it turns out to not be a good fit


Fix #3110 - Move logic from ISqlStatementExecutor into IRelationalCommand

Allow caller to manually control connection Open / Close
Remove CreateDbCommand from IRelationalCommand for #3112
Updates for Migrations in Migrator and RelationalDatabaseCreator
Updates to Query for RelationalDataReader and connection management changes to RelationalConnection
@bricelam @anpete

If possible, I'd like to get this reviewed soon since it's API surface changing
(ping) @bricelam @anpete

(Rebased over Telemetry/Diagnostic changes)

:shipit:


[macOS]: Missing privacy manifest

Steps to reproduce
...
Expected results
After uploading to the Mac App Store, you will not receive email notifications about issues with your submission.
Actual results
ITMS-91061: Missing privacy manifest - Your app includes “Contents/Frameworks/FlutterMacOS.framework/Versions/A/FlutterMacOS”, which includes Flutter, an SDK that was identified in the documentation as a privacy-impacting third-party SDK. Starting November 12, 2024, if a new app includes a privacy-impacting SDK, or an app update adds a new privacy-impacting SDK, the SDK must include a privacy manifest file. Please contact the provider of the SDK that includes this file to get an updated SDK version with a privacy manifest. For more details about this policy, including a list of SDKs that are required to include signatures and manifests, visit: https://developer.apple.com/support/third-party-SDK-requirements.

Code sample
Code sample
Not provided

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.24.2, on macOS 14.6.1 23G93 darwin-x64, locale zh-Hans-CN)
    • Flutter version 3.24.2 on channel stable at /Users/ying/fvm/versions/3.24.2
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cf269e36d (7 天前), 2024-09-03 14:30:00 -0700
    • Engine revision a6bd3f1de1
    • Dart version 3.5.2
    • DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/ying/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • ANDROID_SDK_ROOT = /Users/ying/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 81.1.3
    • Dart plugin version 242.21829.3

[✓] VS Code (version 1.93.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.96.0

[!] Proxy Configuration
    • HTTP_PROXY is set
    ! NO_PROXY is not set

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 14.6.1 23G93 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 128.0.6613.120
    ! Error: Browsing on the local area network for Kimmy's iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as
      this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

I think https://github.com/flutter/flutter/issues/143381 would help to resolve this.
I will keep it open for @stuartmorgan's input.

I have asked Apple Support to find out if a privacy manifest is required for macOS, but have not received a response. I will update the status of this issue when I hear back.

For reference https://github.com/flutter/flutter/issues/143381#issuecomment-2340969960

https://github.com/flutter/engine/pull/55078 is available in the Flutter master channel. We would really appreciate it if someone could confirm this makes the warning go away.

Stable hotfix request https://github.com/flutter/engine/pull/55366

Closing, this is available on 3.24.4.
https://github.com/flutter/flutter/blob/master/CHANGELOG.md#3244
Please continue to file new issues if you see App Store warnings/errors. Thank you!


Add DonchianChannel constructor overload

Allows for asymmetric channels to be created.
Distinct period lengths can now be passed into
the constructor for the upper channel and the
lower channel.

@adriantorrie - great change, can we also add a helper method in QCAlgorithm that can handle the asymmetry? I'm thinking of an overload to this guy.

@mchandschuh I'll get onto completing a helper method over the next few days, I'm a bit sick at the moment.

@adriantorrie - no worries mate, I'm just getting over something too, get better!

@adriantorrie - thanks for adding this, apologies on the slow turn around, been busy improving live stability. thanks for the great contribution!

Thank you @adriantorrie! Good addition!


dump Tuya eWeLink WiFi 4CH RF Smart Switch Module:

Hello, a device from our user:

readResult_BK7231N_QIO_2023-28-4--06-36-24.zip

Added as Tuya Generic TYWB 4CH-RF Smart Switch


[vcpkg baseline][kf5solid] Fix usage

Kf5solid requires libmount in Liunx, but doesn't add find_dependency(libmount) in its config.cmake file.
Fix that.

cc @wrobelda, it's a upstream bug.

@JackBoosY LGTM. The #20938 has that fixed already upstream, so it will require rebasing once yours get accepted.

@wrobelda Since there are some many changes in #20938. can we merge this PR first?

@wrobelda Since there are so many changes in #20938. can we merge this PR first?

Yes, absolutely. That's the right thing to do.

We have encountered a recursive dependency. The test of this PR depends on #21341, @BillyONeal please merge this PR or #21341 without the pipeline test passes.

I still think you need to add -DCMAKE_DISABLE_FIND_PACKAGE_LibMount=ON for the portfile because otherwise binary caching is screwed. (Otherwise update cmake to 3.22 and add CMAKE_REQUIRE_FIND_PACKAGE_<PackageName>)

I still think you need to add -DCMAKE_DISABLE_FIND_PACKAGE_LibMount=ON for the portfile because otherwise binary caching is screwed. (Otherwise update cmake to 3.22 and add CMAKE_REQUIRE_FIND_PACKAGE_<PackageName>)

Either that or patch REQUIRED into all the libmount places used by upstream?

I still think you need to add -DCMAKE_DISABLE_FIND_PACKAGE_LibMount=ON for the portfile because otherwise binary caching is screwed. (Otherwise update cmake to 3.22 and add CMAKE_REQUIRE_FIND_PACKAGE_<PackageName>)

Either that or patch REQUIRED into all the libmount places used by upstream?

We should only add this for every port that uses libmount.

I still think you need to add -DCMAKE_DISABLE_FIND_PACKAGE_LibMount=ON for the portfile because otherwise binary caching is screwed. (Otherwise update cmake to 3.22 and add CMAKE_REQUIRE_FIND_PACKAGE_<PackageName>)

Can you please elaborate why is this needed at all? And wouldn't -DCMAKE_DISABLE_FIND_PACKAGE_LibMount=ON disable finding LibMount at all, in which case the KF5SolidConfig.cmake.in patch is pointless? What am I missing here?

I still think you need to add -DCMAKE_DISABLE_FIND_PACKAGE_LibMount=ON for the portfile because otherwise binary caching is screwed. (Otherwise update cmake to 3.22 and add CMAKE_REQUIRE_FIND_PACKAGE_<PackageName>)

@Neumann-A, @BillyONeal Can you please elaborate why is this needed at all? And wouldn't -DCMAKE_DISABLE_FIND_PACKAGE_LibMount=ON disable finding LibMount entirelyl, in which case the KF5SolidConfig.cmake.in patch is pointless? What am I missing here?

Optional dependencies are bad, because key cause order dependencies. That is:
apt install libmount
vcpkg install kf5solid

and
vcpkg install kf5solid
apt install libmount

should produce the same results, because vcpkg is going to binary cache them as if they are the same and users expect them to be the same.

should produce the same results, because vcpkg is going to binary cache them as if they are the same and users expect them to be the same.

OK, I get that, but:

DCMAKE_DISABLE_FIND_PACKAGE_LibMount=ONdisable finding LibMount entirely, in which case theKF5SolidConfig.cmake.in` patch is pointless? What am I missing here?

What's the point of even adding that patch, if kf5solid now will never linked against libmount? My point is that a feature should be added to this port to optionally allow libmount, instead of permanently disabling it.

My point is that a feature should be added to this port to optionally allow that linkage, instead of permanently disabling it.

The feature must make the relevant find_package REQUIRED. And/or you add a libmount port as dependency.

My point is that a feature should be added to this port to optionally allow that linkage, instead of permanently disabling it.

The feature must make the relevant find_package REQUIRED. And/or you add a libmount port as dependency.

More accurately:

With the feature enabled, find_package(LibMount REQUIRED) must succeed.
With the feature disabled, LibMount_FOUND or other side effects of find_package(LibMount) must not have any effect on the build.
-DCMAKE_DISABLE_FIND_PACKAGE_LibMount=ON is an approach to achieve this, but it also affects dependencies.

My point is that a feature should be added to this port to optionally allow that linkage, instead of permanently disabling it.

The feature must make the relevant find_package REQUIRED. And/or you add a libmount port as dependency.

More accurately:

With the feature enabled, find_package(LibMount REQUIRED) must succeed.
With the feature disabled, LibMount_FOUND or other side effects of find_package(LibMount) must not have any effect on the build.
-DCMAKE_DISABLE_FIND_PACKAGE_LibMount=ON is an approach to achieve this, but it also affects dependencies.

Agreed.

More accurately:

With the feature enabled, find_package(LibMount REQUIRED) must succeed.

OK, I get that, but that PR effectively disabled libmount dependency, which will catch some developers using it off guard. And patching KF5SolidConfig.cmake.in was redundant, too. So while I understand this was breaking binary caching on CI/CD infra, that PR effectively will break things for devs.

I think that all ports that depend on libmount should add the keyword REQUIRED in find_package(libmount) to prevent inconsistencies with user expectations (users rarely check logs). And in *config.cmake.in, add the find_dependency of the dependency according to the option.

I think that all ports that depend on libmount should add the keyword REQUIRED in find_package(libmount) to prevent inconsistencies with user expectations (users rarely check logs).

Yeah, but my point is that we are being selective about libmount only. This fixes this specific binary-caching CI/CD issue for you, the vcpkg team, but there are tons of other OPTIONAL find_dependency usages in kf5 and other ports, which will break binary caching for other users, i.e. other teams of devs and/or their CI/CDs.

which will break binary caching for other users, i.e. other teams of devs and/or their CI/CDs.

In my opinion, this is just planting an untimely bomb, and explicit declarations are always safer than implicit declarations.
If downstream want to use this feature, they should ensure that libmount exists and turn on the corresponding option.

Well, the point of packaging is reproducibility. This is in conflict with developers trying to configure the build by auto-discovery. CMAKE_DISABLE_FIND_PACKAGE_xxx covers disabling features quite well, but we also need to cover reliably enabling features. CMAKE_REQUIRE_FIND_PACKAGE_<PackageName> is coming in CMake 3.22. (But freebsd is still at 3.20 in vcpkg.)

Well, the point of packaging is reproducibility. This is in conflict with developers trying to configure the build by auto-discovery. CMAKE_DISABLE_FIND_PACKAGE_xxx covers disabling features quite well, but we also need to cover reliably enabling features. CMAKE_REQUIRE_FIND_PACKAGE_<PackageName> is coming in CMake 3.22. (But freebsd is still at 3.20 in vcpkg.)

I agree. Sounds like something to be brought up with upstream. Also, I missed that CMAKE_REQUIRE_FIND_PACKAGE actually does what I suggested, so going forward we should be able to mitigate those issues.
@JackBoosY, I just posted a LibMount PR: #21491

the problem is even bigger than that. A lot of ports require X libraries on windows and a lot of the x features are behind additional dependencies and optional find_package. So linux binary caching currently is screwed any way.

wasn't there also a PR by @ras0219-msft with a wrap around find_package to make all calls required?

that highlighted how impossible was for now to really enforce this rule


CN - SpokeRegistration Lambda - Policy statements for AWS organisation

Describe the bug
In the CN (China) variant of the AWS instance scheduler, the scheduler’s main stack creates a Lambda function "SpokeRegistration" along with an associated IAM role.
Normally, the policy associated with the role is configured to use the AWS Organization ID rather than a wildcard "" using condition.
However, in China regions, the policy appears to default to "", even though it's not explicitly specified as such.
This could lead to unintended access permissions without raising any error.
To Reproduce
Deploy the China-specific (CN) template for the Instance Scheduler solution in a China region (e.g., cn-north-1) with AWS Organization "active".
Observe the creation of the Lambda function "SpokeRegistration" and associated IAM role in the stack.
Note that the policy behaves using a wildcard "*" rather than the AWS Organization ID.
Expected behavior
The policy should respect the AWS Organization ID when AWS Organisation is active on template.
Please complete the following information about the solution:
Version: [v1.5.1]
Region: [cn-north-1]
Was the solution modified from the version published on this repository? No
If the answer to the previous question was yes, are the changes available on GitHub? N/A
Have you checked your service quotas for the services this solution uses? Yes
Were there any errors in the CloudWatch Logs? No, but the policy defaults to "*" implicitly.
Screenshots
N/A
Additional context
N/A

Thanks for reporting this issue. we will investigate further and add a fix to our backlog as soon as we can repduce the error

@CrypticCabub I confirm the version used was 3.0.6.
Also tested on 3.0.7 with same behavior

Thank you for bringing the issue to our attention. Previously, the use of aws:PrincipalOrgId in AWS Lambda resource policies was supported only in other AWS global regions, but not CN-NORTH-1 and CN-NORTHWEST-1 regions. However, as of November 23, 2024, we have rolled out support for using aws:PrincipalOrgId key in Lambda resource policies for CN-NORTH-1 and CN-NORTHWEST-1 Regions. The policies will work as they do in other regions.
we recommend you disable and re-enable AWS Organizations mode on your deployed hub stack to redeploy the affected policy. Please make sure to NOT remove your PrincipalOrgID from the "Principals" parameter, or you will update the Config record and lose previously registered accounts.
The following is a list of the recommended steps:
Navigate to the CloudFormation console of the account containing the hub stack for the impacted version of Instance Scheduler (V3.0.0 - V3.0.7 deployed before November 23, 2024.
Select the deployed hub stack from the stack list and choose the "Update" option.
On the next screen labeled "Update Stack", select the option to "Use existing template" and click next.
On the next screen labeled "Specify stack details", the parameter labeled "Use AWS Organizations" will be set to "Yes". You will need to update the CloudFormation parameter labeled "Use AWS Organizations" to the value "No". You should not need to change any other parameters. Click next to navigate to the next screen.
On the next screen labeled "Configure stack options", click the check box at the bottom acknowledging the required capabilities and click next.
On the next screen labeled "Review ", make sure the updated CloudFormation parameter is appearing as "No" and then click submit.
You will now need to wait for the stack update to complete. You will know it is done when the status of the stack is "UPDATE_COMPLETE".
Repeat the previous steps, this time setting the "Use AWS Organizations" parameter back to "Yes". This will cause the Lambda Resource Policy to be recreated with the fixed conditional statement, restricting lambda invocations to principals within the organization.
Once the update is complete, navigate to the lambda function named InstanceScheduler-<YOUR_NAMESPACE>-SpokeRegistration and check that the Resource-based policy statements section contains a statement restricting permission to the PrincipalOrgId of your organization. You can view these by selecting the "Configuration" tab in the Lambda Function console, selecting the "Permissions" section in the sidebar, and scrolling to the bottom of that page where you will see a section labeled "Resource-based policy statements".
If you have questions, please contact AWS Support at https://console.aws.amazon.com/support/


loading existing cluster with devices fails

When creating a cluster, and then instantiating a new ClusterManager object, the code fails with UnexpectedDeviceGroupDevices.
This is because the partition is not being taken in to consideration when creating the given_device_names list

@pjbreaux this is your world

Ah yeah, this only happens on 12.0 right?
This is fixed as of PR #472

we were testing it on 12, yeah

Ok cool. I ran all of the func tests yesterday against 11.6 and 12.0 and got all green. That is based on my latest change though. I think there was a difference in the way those devices were reported between 11.6 and 12.0. 11.6 gave back devices in the group by name exactly, and 12.0 gives them back as device names in a partition ('/Common/bigip1').

Fixed by PR #471


How to remove  / delete mini app when downloaded from Federated.importModule

Ask your Question
Hi

How do I remove the downloaded mini app like this.
ScriptManager.shared.addResolver(async (scriptId, caller) => {
const containersURL = getContainersURL({
hostname: process.env.SAS_CATALOG_SERVER_URL,
version: appVersion,
platform: Platform.OS,
appName,
});

const containersResponse = await fetch(containersURL);
const containers = await containersResponse.json();
const resolveURL = Federated.createURLResolver({
containers,
});
let url;
if (DEV && caller === 'main') {
console.log('came 1:', containers)
url = Script.getDevServerURL(scriptId);
} else {
console.log('came 2:', containers)
url = resolveURL(scriptId, caller);
}
console.log('scriptid:', scriptId)
console.log('url:', url)
if (!url) {
return undefined;
}
return {
url,
cache: !DEV,
query: {
platform: Platform.OS, // only needed in development
},
verifyScriptSignature: DEV ? 'off' : 'strict',
};
});
Lets say I have a logic that some mini app is inactive I need to delete that mini app which is downloaded by the user once. So how do I remove that mini app.

Downloading the mini app bundles from external based on url and if I increase the version of the url and next time when it checks old url vs new url and if there is mismatch then will it automatically download the latest? (Following the same steps to download mini app as above)

To remove the mini-app script/scripts downloaded, you'll need to keep track of the scriptIds yourself and then use ScriptManager.invalidateScripts method (see docs). A demo implementation can be found in the TesterApp:
https://github.com/callstack/repack/blob/b68b6142af7c88d309dd6593efc165c42344dc4c/packages/TesterApp/src/remoteChunks/RemoteContainer.tsx#L37-L47

Yes, Repack will use the url as one of the params checked during cache verification. For a given script/chunk if the url has changed – it will get refetched and if that's successful – replaced. For more context please check out the following code:
https://github.com/callstack/repack/blob/b68b6142af7c88d309dd6593efc165c42344dc4c/packages/repack/src/modules/ScriptManager/Script.ts#L186-L201

Tried removing the news app from super-app-showcase, but still when I open the news mini app second time it loads directly not downloading again since I have invalidated that script.

Here I see that for the second import it wont load the sam container twice, but what if I want to remove that container on button click and when user visits the same screen second time (second time) I want the container to be fetched and evaluated again like the first time.

@saravanan6137 does this happen in release mode as well, or only in development? When in dev, by default chunk's cache is invalidated

<img width="844" alt="Screenshot 2023-10-28 at 12 43 40 AM"

src="https://github.com/callstack/repack/assets/68968235/24352b51-4343-40dd-838c-883f4e29d5e0">
I am running in dev mode but I found this, when I run first time it downloads and second time it directly loads. Then I added a button to invalidate the respective script. After invalidating ScriptManager.shared.on('invalidated') triggers. Then when I close the app and lunch again and when I go to the invalidated mini app it crashes. (Actual behaviour is to redownload the script and load the app right). I attached the screenshots of how I am loading the script with event (.on event) also and how I am invalidating the script. Please advice.

Invalidation method screenshot

Also I set cache to be true.

Hi, can please give the example of how to remove the cached news mini app which is loaded externally (external github)

I changed the repack code like this and it works, can you please check on this and in any latest version we have any fix like this?

Hi, @saravanan6137 . I have a question. After I have called invalidateScripts scripts. Then, I tried to go to this module. The second time, it doesn't load from the remote. Do you have any suggestions?

after calling the invalidate scripts, it will come here, do any customisations here. Here only I also changed to remove the cache

File name - scriptManager.js

I was also facing issue with invalidateScripts method. The file is getting deleted, but the entry in sqlite db is not getting cleared. On debugging it, it looks like there is a bug in invalidateScripts method. resolveScripts method appends caller to the scriptId to get the cacheKey (const cacheKey = `${scriptId}_${caller ?? 'unknown'}`;), while invalidateScripts directly uses scriptId as the cacheKey.

@sriharshaarangi that's a great find, are you willing to open a PR with fix for this?

@jbroma I am having few queries before getting into the fix:

Documentation says Name of the calling script - it can be for example: name of the bundle, chunk or container. However, that appears inaccurate. main appears to be the default caller. Actual value main does not come into either of those categories.
Should default caller value be made main instead of unknown?
I am unable to grasp what value the caller is adding for cacheKey in the first place. Can you please help elaborate, or point me to any other documentation?

@jbroma I am having few queries before getting into the fix:

Documentation says Name of the calling script - it can be for example: name of the bundle, chunk or container. However, the default value is main which is not the default bundle/chunk/container name.
Should default caller value be made main instead of unknown?
I am unable to grasp what value the caller is adding for cacheKey in the first place, if the underlying downloaded file  is the same irrespective of the caller value (I am assuming so as per the downloaded chunk file name). Can you please help elaborate, or point me to any other documentation behind the design decision?

@sriharshaarangi Let's move this to a separate issue and discuss it there please 🙏

Created - https://github.com/callstack/repack/issues/553


Is it possible to allocate memory on the GPU for a single value and reclaim it after a kernel call?

For example, I have a simple CUDA kernel which counts non-zero elements. It will not be run in parallel, only on one thread:
__global__ void countNonZeroElements(const float *input, int input_length, int *non_zero_count) {
    int count = 0;
    for (int i = 0; i < input_length; i++) {
        if (input[i] != 0) {
            count++;
        }
    }
    *non_zero_count = count;
}

The I want to read the non_zero_count variable after calling the kernel function.
I only see ways to allocate and reclaim a CudaSlice.

You could just allocate a cuda slice with one value.
let mut non_zero_count = dev.alloc_zeros::<i32>(1);

There's no way to pass pointers to primitive types to cuda kernels atm for a few reasons:

It'd have to be in some shared host/gpu memory
It'd be unsound because you could mutate the primitive on rust side while the kernel is running. This isn't possible with CudaSlice (unless you're using CudaStream improperly) because all the kernels are executed sequentially on a single stream.

Ok, got it. Thank you.
On Sat, 29 Apr 2023 at 3:48 am, Corey Lowman @.***>
wrote:

You could just allocate a cuda slice with one value.
let mut non_zero_count = dev.alloc_zeros::(1);
There's no way to pass pointers to primitive types to cuda kernels atm for
a few reasons:

It'd have to be in some shared host/gpu memory
It'd be unsound because you could mutate the primitive on rust side
while the kernel is running. This isn't possible with CudaSlice (unless
you're using CudaStream improperly) because all the kernels are executed
sequentially on a single stream.

—
Reply to this email directly, view it on GitHub
https://github.com/coreylowman/cudarc/issues/139#issuecomment-1528014831,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVFX245LMIEDOVJURPXACLXDQNHLANCNFSM6AAAAAAXPLU4UM
.
You are receiving this because you authored the thread.Message ID:
@.***>

Sure thing, closing for now 👍


Feasibility of using without Docker?

Hello!  I really like how SkiffOS is organized and am considering using it for a project.  I have a question: how feasible would it be to build images without docker as packaged software?  I am interested in using the layers management, which is really slick, without bundling Docker -- I have 32MB total storage on the board and I'd like to slim down to the very bare minimum.
I see that the SkiffOS core pulls in Docker, so is it "simply" a matter of writing a new base layer that does not require Docker?  Or is each layer automatically put into its own container (in other words, it's very deeply ingrained into the build process)?  If it's the former, I might request an officially-supported Docker-less base as a feature.
Thank you!

Very much doable. You can test this in a hacky way by deleting whatever you don't want in skiff/standard/buildroot/*. Just delete the lines related to Docker.
I have plans to onboard new container runtimes - cri-o, kata containers, and others, so it is about time that the Docker core get split into its own package and be made optional.

I've separated Docker into apps/docker in preparation for removing it as a dependency from skiff/standard.  Before this can happen there are some init scripts that need to check if Docker is enabled or not, but this is trivial and I'll complete that soon.

That's great to hear. I am definitely going to play with it more. I am not up to speed with it yet but ultimately if you want feedback on this I'll be watching with interest.

You can also add an additional layer with (in a file called buildroot/docker within the layer):
BR2_PACKAGE_DOCKER_ENGINE=n
BR2_PACKAGE_DOCKER_CONTAINERD=n
BR2_PACKAGE_RUNC=n

Oh cool, I didn't think about doing that. I'd prefer to avoid overriding a bunch of stuff in the long term (Yocto BSPs do this and it's very hard to read) but short term, it'll let me play around with changing the core.

You can overlay your own packages on top of it, and use Skiff as a submodule. It's described how in the readme.
If you add a custom config, and add the configuration lines I posted above in a buildroot config file, it will effectively disable Docker. You can also use this to add kernel config changes, additional buildroot packages, adjust the toolchain / optimization settings (you can optimize for size for example), etc etc.
cd workspaces/default
make menuconfig # opens the Buildroot config explorer

I've added an additional way to override the settings temporarily for local experimentation:
You can now simply place this file to disable docker:
$ cd SkiffOS
$ mkdir ./overrides/buildroot
$ echo "BR2_PACKAGE_DOCKER_ENGINE=n" > ./overrides/buildroot/docker
$ make configure compile

Etc, etc. You can place any Skiff configuration package files in "overrides" and override locally the settings.

Cool cool. My toolchain is compiling now.
Another question: Currently there is no way to override a Skiff-level layer dependency, correct?  I found your comment here suggesting that that was a planned feature.

Config negation would be cool and I might be able to get that in within the next couple days.

Would be cool, but don't rush it on my behalf!  I also feel like config negation would be the kind of thing you'd want to use really sparingly.  I can see how it'd be useful, but it could also make it very confusing to figure out what is actually getting compiled. So in this example, instead of the base layer providing Docker, each configuration package that provides a container would depend on apps/docker individually.
Does that make sense?  My caution is born of navigating override after override of Freescale's BSPs.

You can override dependencies as configurations later in the SKIFF_CONFIG comma separated chain take precedence. For example you could easily make a "nodocker" package that disables docker
I do plan to remove the apps/docker dependency from skiff/standard soon.

@thirtythreeforty This is about done.
There are a couple other things to save space: your target board config should support skiff/moduleimg, and you can additionally (although this is not yet in a config package) tell Skiff to mount a loop filesystem instead of loading the entire root system into RAM. This may be preferable if you don't have much memory.

Sweet.
moduleimg is cool, although currently I'm mounting squashfs rootfs on UBI (and the kernel knows how to mount, so no initrd), so moduleimg it doesn't buy me anything extra in this situation. I'm in a weird situation where the board has plenty of RAM (128MiB) but is tight on storage, so really just pulling Docker out of the base image should be enough.

This is done now as of https://github.com/paralin/SkiffOS/commit/0ee893202aa48fb20942c9f93c31c96d7a0a4313

Cool. core still appears to depend on apps/docker. Is that by design?

Yes. "Skiff core" refers to the feature that runs a docker container for each user. That's not required for an actual system. Skiff standard is applied automatically for that.


changeMainViewController with animation

Can i use changeMainViewController with animation?
To do transition between UIViewControllers

I created a pull request for this #177

I need this too, i also tried rcobelli code but crash on line animationWidth = -mainViewController.view.frame.size.width
We need to do some fade in animation because transition from one vc to other is "robotic"
Thanks


Git: Support to bulk resolve merge changes

The git stash conflict handle doesn't has a option to apply all current changes or incoming changes, you must apply the changes one by one，What if we add two new menu item to support apply all current changes or incoming changes, like:

This is independent of stash.


Initial layout

Test build of layout using shiny to generate a figure (basic layout of code on left, figure on right, parameter sliders underneath)


Make the project run locally but it failed

Hello dear project maintainers
I tried to run the project locally and it seems not working

It's hard to tell what's wrong from that error message. How are you running the server? What is the response to the hosting discovery (<your_office_online_server>/hosting/discovery) ?


leverage bosh 2.0 construction for on demand bosh deployment

As hazelcast is not natively multi-tenant, it would make sense to use on demand bosh deployment service. To ease this type of cloudfoundry service broker developement, Bosh 2.0 features improve the DRYness of the bosh manifest
see:

https://github.com/cloudfoundry/bosh-notes/blob/master/dynamic-provisioning.md
http://schd.ws/hosted_files/cfsummit2016/52/Alex Ley - On-Demand Service Provisioning with BOSH 2.0 - DRAFT.pdf

hazelcast bosh release manifest should use these bosh 2.0 features to be able to build a full fledge broker

hi @poblin-orange , thanks for the conversation and apologies for this massive delay in my response. We are very interested in learning more about your Hazelcast bosh-release, can you please share your email id or a direct contact handle where I can reach you? Or if you wish, you could write to me at<EMAIL_ADDRESS>Looking forward to hear from you soon. Thanks.

hello @wildnez. Sent you a mail to get in touch.
I think the bosh release and the ongoing effort to deploy on the fly bosh cluster could complement your ongoing work on broker / and PCF Tile for hazelcast