Add agent metrics configuration and scrape all agent pods

Currently the default agent metrics config scrapes from the metrics agent only, and to a service endpoint. It would be useful to scrape from all metrics/logs agent pods directly.
There is POC code here: https://github.com/grafana/k8s-monitoring-helm/pull/128

Pulled the metrics list from the agent-flow-mixin
Use discovery.kubernetes.pods.targets instead of discovery.kubernetes.services.targets
To simplify config and to hit both metric and log agents pods labelMatchers.app.kubernetes.io/name is set to grafana-agent.*
Added namespace/pod/container label

Appreciate any thoughts, thank you

Thanks for opening this! This can be really helpful.
I've added some comments to your PR.

This can be closed now, right @n888 ?

All set, thanks for your assistance!


Add deprecated log when using MySQL with utf8 charset

So many issues caused by MySQL utf8 so I think we could drop the support for it.
This PR only adds an error log when using it.

make L-G-T-M work.


[bug 1139713] Fix received_ts migration

Quick r?

r+

Yeah. Dumb on my part. :(

d853fa9 [bug 1139713] Fix received_ts migration
Thank you!


build with babel-plugin-transform-runtime

There's an undocumented reliance on an ES6 polyfill being present, as evidenced in things like transpiled _toConsumableArray using Array.from.
This bit me hard today; when I tried including babel-polyfill to make my PhantomJS integration tests work, for some reason the polyfill seemed to crash PhantomJS!
By building this lib with babel-plugin-transform-runtime and including babel-runtime as a dependency (or peer dependency), you could mitigate errors like this.

@erikras, I see that problems related to this have been posted before, like #863 and #881.
Should we document this?

@gustavohenke I'd still prefer if redux-form relied on babel-runtime instead of babel-polyfill, but otherwise, we should document it

Phantomjs is crashing on our app at the moment and we isolated it down to this one line
import {getValues} from 'redux-form';

The weird thing is it only happens on Ubuntu and Arch and not on Mac.
Will report back and scratch our heads in the interim.

Although this library was still causing the issue.
Following this issue fixed it for us -> https://github.com/ariya/phantomjs/issues/13734
By changing devtool -> inline-source-map

Because this issue saw almost no activity for a few months, I'm closing it.


If the main class is named as "Game" with the "Game" template than the class has cyclic dependency.

It's a very minor bug but if the main class is the same name as what it is extending there will be a cyclic dependency error. Not sure if this would be feasible /justifiable to put the effort into preventing this since it is obvious how to solve it (just write the full path for the class that it extends) but just thought I'd report this anyway.

It's a fair point... I'm not sure how it could be solved in Liftoff code itself, since the template that's selected would affect what main class names are allowed. I think using the name of any core libGDX class for the main class name is a bad idea, though. Just like I wouldn't name a class in my code after something that exists in the core JDK library, like Array, I mean, Queue, I mean, Vector, I mean... uh...

It's a fair point... I'm not sure how it could be solved in Liftoff code itself, since the template that's selected would affect what main class names are allowed. I think using the name of any core libGDX class for the main class name is a bad idea, though. Just like I wouldn't name a class in my code after something that exists in the core JDK library, like Array, I mean, Queue, I mean, Vector, I mean... uh...

I would like to make a more general fix for this, but I'm not sure if there is any way to read what Template is selected.
Is that not possible, or am I missing something?


[BP-1.14][FLINK-26352][runtime-web] Add missing license headers to WebUI source files

What is the purpose of the change
This backport for #18951 was necessary despite the rat plugin update not being backported to release-1.14 because we still should have all *.ts files with the proper Apache header.
Brief change log
Cherry-picked from the parent #18951 :
$ git cherry-pick 932934aabb55a048da390ee804f4e55ab974ff2e

Verifying this change
Manually verified that there are no other *.ts files without the Apache header in flink-runtime-web/web-dashboard/src:
find flink-runtime-web/web-dashboard/src -name "*.ts" -exec sh -c 'echo '{}'; grep -c "Licensed to the Apache Software Foundation (ASF) under one" '{} \; | grep -B1 0

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? not applicable

@flinkbot run azure


[Bug] search.exclude is not working for workbench.action.showAllSymbols

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: v1.59.1
OS Version: Windows 10

Steps to Reproduce:

Make sure node_modules is excluded from search.exclude.
Use workbench.action.showAllSymbols.
Type in a symbol name that exists in node_modules.
That symbol shows up in the search result.

https://github.com/microsoft/vscode/issues/46718


Volume OSD is great but no Brightness OSD

The OSD for the volume is perfect but there is no OSD for the brightness even though I have enabled it in settings.  Any ideas?  Thank you.

@malensek I also have the same problem. To decrease or increase volume works without problem, but there is no visible change when I use 3rvx to adjust the brightness. Can you fix it please? 🙏


Question about Synthetic Word Dataset

I came here after reading "Synthetic Data and Artificial Neural Networks for
Natural Scene Text Recognition" looking for the code to generate Synthetic Word Dataset (http://www.robots.ox.ac.uk/~vgg/data/text/).  Is the code available?
Thanks.

The code is in this repository.

@ankush-me thanks for the pointer.


Update wiki

features collection (Why Orienteer?)
orienteer-archetype-war
writing testcases

Documentation is being moved to gitbook: https://www.gitbook.com/book/orienteer/orienteer/details


Cannot update to latest version?

For some reason I cannot update ReferenceFrameRotations to the latest version because of a conflict with SatelliteToolbox, that I am also using by the way:
(@v1.8) pkg> status --outdated ReferenceFrameRotations
Status `~/.julia/environments/v1.8/Project.toml`
⌅ [74f56ac7] ReferenceFrameRotations v1.0.1 (<v3.0.0): SatelliteToolbox

Any ideas? Should I delete ~/.julia/registries/General.tar.gz and recreate it?

This should be fix by now!


Genesis "hello world" code not functioning

After running the hello world code, I am receiving this error. I've checked everything is installed correctly in the right location.

AttributeError                            Traceback (most recent call last)
Cell In[28], line 2
1 import genesis as gs
----> 2 gs.init(backend=gs.cpu)
4 scene = gs.Scene(show_viewer=True)
5 plane = scene.add_entity(gs.morphs.Plane())
AttributeError: module 'genesis' has no attribute 'init'

how did you install genesis?

You can check
ls $CONDA_PREFIX/genesis/lib/python3.10/site-packages | grep genesis # remember to change the python version accordingly

There shouldn't be things like $CONDA_PREFIX/genesis/lib/python3.10/site-packages/genesis. If so, delete it.
Another check is
import genesis as gs
print(gs.__path__) # check if this is as expected

how did you install genesis?

I am just doing pip install genesis-world to install it.

You can check
ls $CONDA_PREFIX/genesis/lib/python3.10/site-packages | grep genesis # remember to change the python version accordingly

There shouldn't be things like $CONDA_PREFIX/genesis/lib/python3.10/site-packages/genesis. If so, delete it. Another check is
import genesis as gs
print(gs.__path__) # check if this is as expected

This is what I am getting when I run:
import genesis as gs
print(gs.__path__) # check if this is as expected

['/opt/anaconda3/lib/python3.11/site-packages/genesis']
I've uninstalled and reinstalled, not too sure whats going on


Build Foundation with DEPLOYMENT_RUNTIME_SWIFT disabled

Expand Linux platforms supported under DEPLOYMENT_RUNTIME_SWIFT=0 umbrella.

@swift-ci please test

@swift-ci please test and merge


Cross-correlations of two disjoint galaxy survey bins

Dear all,
I am implementing a multitracer code with a redshift survey divided in multiple, non-overlapping redshift bins.
As a consistency check, I asked pyccl to calculate the cross-correlation between the two bins, expecting it to be zero. Instead, the angular power spectrum is nonzero, although the product of the window, as expected, is. The issue is appearing also for a generic, overly simplified window, e.g. a constant.
I am attaching below a minimal example with a simple window and a linear power spectrum as Pk2d input.
Thank you very much,
Best
Andrea
`cosmo_test = ccl.Cosmology(Omega_c=0.25, Omega_b=0.05,
h=0.7, n_s=0.95, sigma8=0.8,
transfer_function='bbks',matter_power_spectrum='linear')
z_test = np.linspace(0,2,100)
a_test = 1/(1+z_for_test)
a_test = np.flip(a_test)
#print(a_test)
chi_test = np.flip(cosmo_test.comoving_radial_distance(a_test))
#print(chi_test)
k_test = np.logspace(-3,2,100)
Create window
window_1 = [1 if chis <= chi_test[int( len(chi_test)/2)] else 0. for chis in chi_test ]
window_1 = np.array(window_1)
window_2 = [1 if chis > chi_test[int( len(chi_test)/2)] else 0. for chis in chi_test ]
window_2 = np.array(window_2)
plt.plot(chi_test,window_1)
plt.plot(chi_test,window_2)
plt.show()
plt.plot(chi_test,window_1*window_2) # test window product is identically zero
plt.show()
Implement simple linear pk
pk_test = np.array([[cosmo_test.linear_matter_power(k_val,a_val) for k_val in k_test ] for a_val in a_test ])
#print(pk_test)
pk_test_val = ccl.pk2d.Pk2D(a_arr=a_test, lk_arr=np.log(k_test), pk_arr = pk_test, is_logp = False, extrap_order_lok=2, extrap_order_hik=2, cosmo=cosmo_test, empty=False)
Implement tracer
window_1_tracer = ccl.Tracer()
window_1_tracer.add_tracer(cosmo_test,(chi_test,window_1))
window_2_tracer = ccl.Tracer()
window_2_tracer.add_tracer(cosmo_test,(chi_test,window_2))

l_arr = np.unique((np.geomspace(2,10000, 64)).astype(int)) #definire gli l
plt.loglog(l_arr,ccl.angular_cl(cosmo_test,window_1_tracer,window_2_tracer,l_arr,pk_test_val))
plt.show()`

My suspicion is that the internal spline representation of the windows is non-zero between the chi samples where the window is 0 and the one where it is 1. Does this still give a non-zero cross-correlation if the windows are separated by >=2 \Delta\chi?

Dear Tillman,
thank you very much for the prompt answer. Indeed I forgot to specify exactly what you are saying: in an earlier test, the very first I did,  my kernels were not contiguous as in this case, but divided by some decimals in redshift and the correlation was correctly null. The issue rose exactly when the kernels became contiguous, as I need in reality.

Indeed, if I edit the implementation of the second window as follows
[1 if chis > chi_test[int( len(chi_test)/2)+1] else 0. for chis in chi_test ]
I correctly get zero in the power spectrum. Of course it makes sense as long as the chi_test array is dense enough that the distance between two points is very small.
Also notice that if I use the window.get_kernel() method, the product of the two windows is zero also in the original implementations, the problem appears only when the c_l calculator method is called.

probably. Alternatively, sample the kernels more finely to reduce spline ringing around the edges.
Since we seem to know what's causing this, I'll close the issue, but please reopen it if that's not the case.

Dear David,
The issue appears also when my chis are pushed up to 1000 or 10000 points, unfortunately.

Fundamentally, the window is only defined at the sample points. Any finite sampling will lead to some bleed because the window isn't defined between the sample points.


Jonjump package upgrade

latest versions of npm packages

@Jonjump,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

@Jonjump, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.
Thanks, Microsoft Pull Request Bot


init.py: Refactored code and updated docstring in public functions

Add missing docstrings to public functions. Followed the following pattern
Updated BaseNode's def inner_render() to the static method as the method doesn’t use its bound instance so that Python does not have to instantiate a bound method for every instance of this class.
Removed unused argument from def inner_render(self):

Not relevant after the refactor to jinja was done. So closing it now. 😄


updates hands to proper orientation, fixes #68

https://github.com/mozilla/unity-webvr-export/issues/68
Also checking in the blender files again since the collada didn't load completely into blender again.

@caseyyee did you remove the comment about https://bugzilla.mozilla.org/show_bug.cgi?id=1362545 or am I losing my mind?

nevermind, you mentioned it in PR #95: https://github.com/mozilla/unity-webvr-export/pull/95#issuecomment-363912865

@caseyyee: seemingly unrelated to this branch: I don't know when it happened, but the controllers no longer collide with the boxes. tried on this branch (caseyyee:hands), on mozilla:master, and on the version published on GitHub Pages.

otherwise r+

can you pull and rebase? (I see a bunch of unstaged and stale changes in this branch.)

@caseyyee: seemingly unrelated to this branch: I don't know when it happened, but the controllers no longer collide with the boxes. tried on this branch (caseyyee:hands), on mozilla:master, and on the version published on GitHub Pages.

correction: it seems to work sometimes. but I have to hit the boxes at exactly the right angle. and it's very, very inconsistent. I'll follow a follow-up issue, unless you know the issue right now. but I think it's properly deserving of its own issue. seems pretty critical; the controllers seem like they don't work otherwise (or the scene appears to not be interactive with the hands).

@cvan Yeah, can you file another issue for that?  I'll have to update the colliders.  It's always been kind of inconsistent.


Add ability for links in the side panel

I really like the minimal feel this theme gives, but I've come across the need to create more another-page.md like pages to make the front page less cluttered. While the example another-page.html has a back link to get to the front page again, when there are multiple "pages" it would be nice to have them all in the side bar so the user does not need to constantly click back to go through all the pages.
An example of where I think this feature would be helpful is here: https://chendaniely.github.io/2018-10-python1/
How I think this can be easily implemented is in the _layouts/default.html file where we can put a section for sidebar pages in the _config.yaml and it lists those pages in an un-ordered list of sorts.
Would be happy to send the PR if you think this fits with the scope and goals of the project.

It would be great if this is implemented.

Well here's another theme I modified on top of the theme and here's a demo


Does cronet support websocket?

Websockets are disabled in Cronet by default and there's no official support.
https://source.chromium.org/chromium/chromium/src/+/master:components/cronet/tools/cr_cronet.py;l=106


fixed slide-in animation with help from @twerth

All specs pass.

:+1:

Looks good. What was the issue you were trying to fix? I don't remember slide_in being broken when I used it.

There were two issues here. In our implementation we called append(...).hide.animations.slide_in but slide_in wasn't calling show (but slide_out was calling hide, so even if we hadn't hidden it the problem would still show up if you slide in, out, and back in again).
The second issue was that start_frame was a reference to bq, so the modified bq was returned at the end of the block instead of the appropriate unmodified copy of bq that start_frame was intended to be.

:+1:


Allow downloading/processing/caching only specific splits

Allow downloading/processing/caching only specific splits without downloading/processing/caching the other splits.
This PR implements two steps to handle only specific splits:

it allows processing/caching only specific splits into Arrow files
for some simple cases, it allows downloading only specific splits (which is more intricate as it depends on the user-defined method _split_generators)

This PR makes several assumptions:

DownloadConfig contains the configuration settings for downloading
the parameter split passed to load_dataset is just a parameter for loading (from cache), not for downloading

If you pass a dictionary like this:
{"main_metadata": url_to_main_data,
"secondary_metadata": url_to_sec_data,
"train": url_train_data,
"test": url_test_data}

then only the train or test keys will be kept, which I feel not intuitive.
For example if the users asks to load the "train" split, then the main and secondary metadata won't be downloaded.
You can fix that by keeping all the keys except the splits to ignore

Hi @lhoestq, I have been thinking about this and I think it is worth that we discuss about it.
When I created this PR, my first idea was to create a "hack" inside the download manager that will be able to filter some split(s) without touching any dataset script. Of course, the download manager does not know about splits logic, and thus this trick would only work for some very specific datasets: only the ones containing that pass a dict to the download manager containing only the keys "train", "validation", "test" (or the one passed by the user for advanced users knowing they can do it), e.g. the natural_questions dataset (which was one of the targets).
The big inconvenient of this approach is that it is not applicable to many datasets (or worse, it should be constantly tweaked to cope with exceptional cases). One exceptional case is the one you pointed out. But I see others:

the split keys can be different: train, test, dev, val, validation, eval,...
in hope_edi dataset, the split keys are: TRAIN_DOWNLOAD_URL, VALIDATION_DOWNLOAD_URL
in few_rel dataset, the split keys are: train_wiki, val_nyt, val_pubmed,..., pid2name
in curiosity_dialogs, the split keys are: train, val, test, test_zero; this means that for every split we pass, we will also get test_zero
in deal_or_no_dialog, each of the splits URL is passed separately to the download manager, so all splits would be always downloaded
etc.

Then after discussing, another idea emerged: pass a split parameter to _split_generators, which know about the splits logic, so that it can handle which splits are passed to the download manager. This approach is more accurate and can be tweaked so that it works with all the datasets we want. The only inconvenient is that then for every target dataset, we must modify its corresponding _split_generators script method.
My point is that I don't think it is a good idea to implement both approaches. They could even interfere with each other!
If you agree, I would implement ONLY the second one, which is simpler, more consistent and stable and will avoid future problems.

Hi @albertvillanova !
Yup I agree with you, implementing the 2nd approach seems to be the right solution


Update Python CI for macOS if needed

Majority CPython release supports 10.9 macOS which is quite old. And either CPython community or Apple might break the backward compatibility, and we might need to update them in near future, e.g. the 3.7.0 installer. This issue serves as a reminder.

We acknowledge this to be a valid feature request but since no one has come forward to implement this, we are going to close it for now while maintaining the label/Help wanted to indicate that this can be picked up as future work.


Score uploaded twice.

I set a score on Barbecue, and it appears to have uploaded twice, because it supposedly added 72 and 25 to my total PP.

The duplicate score is gone now.


Customize menu

Hi!
Your package is very useful, I won a lot of hours!
I have a question, is this possible to customize the persistent menu?
I want a different menu based on user choices (like disable subscription on automatic messages if they accepted this option earlier), it would be perfect if it was possible!
Thanks!

Hi @Iseldore
did you mean setup persistent menu?
https://github.com/CasperLaiTW/laravel-fb-messenger/wiki/Commands#fbmenus

Hi @CasperLaiTW
I mean a dynamic persistent menu, I would add a Postback button for a user during the conversation.
For what I understood, the menu is persistant (yeah, that's obvious), but I would know if it was possible to change this menu during the conversation. But maybe the menu is the same for every users and can't be changed ?

Hi @Iseldore
Yes, persistent must call Facebook API to changed and every users will get the same menus.
So I think you can't make dynamic persistent menu.
I think you have to make a conversation after user click on persistent menu and check user's status.

That's unfortunate :(
Anyway thanks again for your package and for your quick answer!


jpl:prolog_in_java fails with 9.3.15

When packaging this program from https://www.swi-prolog.org/download/devel/src/swipl-9.3.15.tar.gz tarball, this one test fails (previous version, 9.3.12, passed):
[  106s] test 84
[  106s]       Start 84: swipy:xsb_janus
[  106s]
[  106s] 84: Test command: /home/abuild/rpmbuild/BUILD/swipl-9.3.15/build/src/swipl "-p" "foreign=:/home/abuild/rpmbuild/BUILD/swipl-9.3.15/build/packages/plunit" "-f" "none" "--no-packs" "--on-error=status" "-s"
 "/home/abuild/rpmbuild/BUILD/swipl-9.3.15/packages/swipy/test_xsb_janus.pl" "-g" "test_xsb_janus" "-t" "halt"
[  106s] 84: Working Directory: /home/abuild/rpmbuild/BUILD/swipl-9.3.15/build/packages/swipy
[  106s] 84: Test timeout computed to be: 10000000
[  106s] 8: % [7/23] trie:insert_nested_get ..................... passed (0.001 sec)
[  106s] 8: % [8/23] trie:insert_vars ........................... passed (0.000 sec)
[  106s] 8: % [9/23] trie:insert_variant ........................ passed (0.000 sec)
[  106s] 8: % [10/23] trie:insert_vars .......................... passed (0.000 sec)
[  106s] 77: % [4/12] archive:create_and_open_named_no_close ..... passed (0.020 sec)
[  106s] 69/86 Test SWI-Prolog/swipl-devel#81: jpl:prolog_in_java ...............***Failed    0.20 sec
[  106s] Error: Could not find or load main class .usr.share.java.junit4.jar:.usr.share.java.hamcrest.hamcrest.jar:src.main.java.jpl.jar:src.test.java.jpltest.jar
[  106s] Caused by: java.lang.ClassNotFoundException: /usr/share/java/junit4/jar:/usr/share/java/hamcrest/hamcrest/jar:src/main/java/jpl/jar:src/test/java/jpltest/jar
[  106s]

Complete build log with all packages used and steps taken to reproduce.

The mentioned SWI-Prolog/packages-jpl@e3be3065f2c8e643bfee83fcb92545bb8afee03b seems to fix it (reproduced and tested on suse-tumbleweed Docker image)

Hmm, it seems to me that cmake/JUnit.cmake is not included in the distribution tarball. Is it?
Even with adding this file as a patch it fails, see build log.

Hmm, it seems to me that cmake/JUnit.cmake is not included in the distribution tarball. Is it?

tar ztvf swipl-9.3.15.tar.gz | grep /jpl/cmake
drwxrwxr-x root/root         0 2024-11-14 13:38 swipl-9.3.15/packages/jpl/cmake/
-rw-rw-r-- root/root      2541 2024-11-14 13:38 swipl-9.3.15/packages/jpl/cmake/JUnit.cmake

It surely has this file as otherwise it should not configure the test at all (and fail during the cmake run on a missing file).    You are also still using the old one as it says /usr/share/java/junit.jar:/usr/share/java/junit4.jar at some point and it does not print the (new) message during configure where it found junit[4].jar

On Sat Nov 23, 2024 at 1:29 PM CET, Jan Wielemaker wrote:

Hmm, it seems to me that cmake/JUnit.cmake is not included in the distribution tarball. Is it?

tar ztvf swipl-9.3.15.tar.gz | grep /jpl/cmake
drwxrwxr-x root/root         0 2024-11-14 13:38 swipl-9.3.15/packages/jpl/cmake/
-rw-rw-r-- root/root      2541 2024-11-14 13:38 swipl-9.3.15/packages/jpl/cmake/JUnit.cmake

I see, I was patching in wrong directory (cmake in the root of the package)! Now fixed in https://src.opensuse.org/pool/swipl/pulls/6. Thank you!


How to pass function parameter value inside MDX Query

Hi,
I need to PASS parameter values inside the MDX. See attachment for the example. How could i do that? Is there a way to do it?
def cubezero_all (self, pISacct, pcategory, pISmsr, ptime, pdivision = "CHC", pdepartment = "Operating Income", pcompany = "Total CHI"):**
        if self.cubename == "Incomestmt":
            print("Put Incomestmt ZeroOut COde")
            mdx = """
                  SELECT
                  NON EMPTY {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[division].[pdivision]}, ALL, RECURSIVE )}, 0 )} *
                  {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[department].[pdepartment]}, ALL, RECURSIVE )}, 0 )} *
                  {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[company].[pcompany]}, ALL, RECURSIVE )}, 0 )}*
                  {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[Accounts_IS].[pISacct]}, ALL, RECURSIVE )}, 0 )} *
                  {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[category].[pcategory]}, ALL, RECURSIVE )}, 0 )} *
                  {TM1FILTERBYLEVEL({TM1SUBSETALL( [currency] )},0)} *
                  {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[measures_IS].[pISmsr]}, ALL, RECURSIVE )}, 0 )}
                  ON ROWS,
                  NON EMPTY {TM1FILTERBYLEVEL({TM1DRILLDOWNMEMBER({[Time].[ptime]},ALL,RECURSIVE)}, 0)} ON COLUMNS
                  FROM [IncomeStmt]
                  """
            print(mdx)

Output:
Put Incomestmt ZeroOut COde

                  SELECT
                  NON EMPTY {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[division].[pdivision]}, ALL, RECURSIVE )}, 0 )} *
                  {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[department].[pdepartment]}, ALL, RECURSIVE )}, 0 )} *
                  {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[company].[pcompany]}, ALL, RECURSIVE )}, 0 )}*
                  {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[Accounts_IS].[pISacct]}, ALL, RECURSIVE )}, 0 )} *
                  {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[category].[pcategory]}, ALL, RECURSIVE )}, 0 )} *
                  {TM1FILTERBYLEVEL({TM1SUBSETALL( [currency] )},0)} *
                  {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[measures_IS].[pISmsr]}, ALL, RECURSIVE )}, 0 )}
                  ON ROWS,
                  NON EMPTY {TM1FILTERBYLEVEL({TM1DRILLDOWNMEMBER({[Time].[ptime]},ALL,RECURSIVE)}, 0)} ON COLUMNS
                  FROM [IncomeStmt]

I would like to see [division].[CHC] to be populated in first row of MDX.
Please Advise.
Thank You
Dharav

This is more of a general python question than an MDX question. I recommend you look at stack overflow for this. This article will help too https://realpython.com/python-f-strings/
From: tm1py @.>
Reply-To: cubewise-code/tm1py @.>
Date: Thursday, December 9, 2021 at 11:05 AM
To: cubewise-code/tm1py @.>
Cc: Subscribed @.>
Subject: [cubewise-code/tm1py] How to pass function parameter value inside MDX Query (Issue #655)
Hi,
I need to PASS parameter values inside the MDX. See attachment for the example. How could i do that? Is there a way to do it?
def cubezero_all (self, pISacct, pcategory, pISmsr, ptime, pdivision = "CHC", pdepartment = "Operating Income", pcompany = "Total CHI"):
if self.cubename == "Incomestmt":
print("Put Incomestmt ZeroOut COde")
mdx = """
SELECT
NON EMPTY {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[division].[pdivision]}, ALL, RECURSIVE )}, 0 )} *
{TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[department].[pdepartment]}, ALL, RECURSIVE )}, 0 )} *
{TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[company].[pcompany]}, ALL, RECURSIVE )}, 0 )}*
{TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[Accounts_IS].[pISacct]}, ALL, RECURSIVE )}, 0 )} *
{TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[category].[pcategory]}, ALL, RECURSIVE )}, 0 )} *
{TM1FILTERBYLEVEL({TM1SUBSETALL( [currency] )},0)} *
{TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[measures_IS].[pISmsr]}, ALL, RECURSIVE )}, 0 )}
ON ROWS,
NON EMPTY {TM1FILTERBYLEVEL({TM1DRILLDOWNMEMBER({[Time].[ptime]},ALL,RECURSIVE)}, 0)} ON COLUMNS
FROM [IncomeStmt]
"""
print(mdx)
Output:
Put Incomestmt ZeroOut COde
          SELECT

          NON EMPTY {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[division].[pdivision]}, ALL, RECURSIVE )}, 0 )} *

          {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[department].[pdepartment]}, ALL, RECURSIVE )}, 0 )} *

          {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[company].[pcompany]}, ALL, RECURSIVE )}, 0 )}*

          {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[Accounts_IS].[pISacct]}, ALL, RECURSIVE )}, 0 )} *

          {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[category].[pcategory]}, ALL, RECURSIVE )}, 0 )} *

          {TM1FILTERBYLEVEL({TM1SUBSETALL( [currency] )},0)} *

          {TM1FILTERBYLEVEL( {TM1DRILLDOWNMEMBER( {[measures_IS].[pISmsr]}, ALL, RECURSIVE )}, 0 )}

          ON ROWS,

          NON EMPTY {TM1FILTERBYLEVEL({TM1DRILLDOWNMEMBER({[Time].[ptime]},ALL,RECURSIVE)}, 0)} ON COLUMNS

          FROM [IncomeStmt]

I would like to see [division].[CHC] to be populated in first row of MDX.
Please Advise.
Thank You
Dharav
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/cubewise-code/tm1py/issues/655, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEK7GZRH3N3NIUIIUBR6RRDUQD4U3ANCNFSM5JXHMIHQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Agree with @rclapp. It's a pure python problem.
There are different ways to implement string formatting in python but I'm also a fan of f-strings.
If you are looking for a more sophisticated way to build MDX queries with python you can also check out mdxpy.
https://github.com/cubewise-code/mdxpy

Thank You Marius and Ryan.

I handle string as highlighted in the image and it works.

Ryan - Thanks for reference URL. I went through f strings and this approach looks much cleaner.
Marius  - I started liking f string as we can pull out more than just a parameter string.
Thank You fellas !!


Cleaning up footer alignment and size across browser widths

Signed-off-by: Steven Rathbauer<EMAIL_ADDRESS>Rendered Screenshot

Preview: https://rathpc.github.io/rook.github.io/

Nice, thanks for fixing this up too today @rathpc! 🤩


Unable to pull ECR images using docker-ecr-credential-helper

I'm using the following config to enable the use of docker-ecr-credential-helper:
runners_install_amazon_ecr_credential_helper = true
runners_environment_vars = ["DOCKER_AUTH_CONFIG='{\"credHelpers\": \"ecr-login\"}'"]

Now if I try to use an ECR image to build using the runner, I get the following:
Preparing the "docker+machine" executor
Using Docker executor with image<PHONE_NUMBER>12.dkr.ecr.us-east-1.amazonaws.com/myimage:latest ...
Pulling docker image<PHONE_NUMBER>12.dkr.ecr.us-east-1.amazonaws.com/myimage:latest ...
WARNING: Failed to pull image with policy "always": Error response from daemon: Head https://123456789012.dkr.ecr.us-east-1.amazonaws.com/v2/myimage/manifests/latest: no basic auth credentials (docker.go:147:0s)
ERROR: Preparation failed: failed to pull image "123456789012.dkr.ecr.us-east-1.amazonaws.com/myimage:latest" with specified policies [always]: Error response from daemon: Head https://123456789012.dkr.ecr.us-east-1.amazonaws.com/v2/myimage/manifests/latest: no basic auth credentials (docker.go:147:0s)

I tried assuming the EC2 instance's role and pulling from the ECR registry using that role and it worked fine.
What am I missing?

This is probably an issue from Gitlab-runner, but this is what I had to do to get it to work:
locals {
  registries = [
    "123456789012.dkr.ecr.us-east-1.amazonaws.com",
    "987654321098.dkr.ecr.us-east-1.amazonaws.com"
  ]
  docker_auth_config = jsonencode({
    "credsStore" = "ecr-login"
    "credHelpers" = merge({
      "public.ecr.aws" : "ecr-login"
      },
      {
        for reg in local.registries : reg => "ecr-login"
      }
    )
  })
}

# docker_auth_config will look something like "{ \"credsStore\": \"ecr-login\", \"credHelpers\": { \"123456789012.dkr.ecr.us-east-1.amazonaws.com\": \"ecr-login\", ...}}"

module "runner" {
  source = "npalm/gitlab-runner/aws"
  # ...
  runners_install_amazon_ecr_credential_helper = true
  runners_environment_vars                                 = ["DOCKER_AUTH_CONFIG=${local.docker_auth_config}"]
  runner_iam_policy_arns                                     = [aws_iam_policy.ecr_pull_policy.arn] # only the agent needs ECR access
}

Gitlab's documentation states that setting DOCKER_AUTH_CONFIG to
{
  "credsStore": "ecr-login"
}

should work for all ECR registries, but that did not work for me at all. Hopefully this helps someone.

@pierlucg-xs thank you so much for this, i've been tearing my hair out why this wasn't working on our hosted runners until i came across this and fixed it


feat: join workers

closes issue #10

Also try to bind when statement to some variables like k8s_cluster_node_type: master but not to inventory group names.
The same behavior for initial master node (but not forget to add preflight test to check if var e.g. k8s_cluster_initial_master: true belongs for the only host in play)


CoreDNS dashboard shows always 'No data'

How to categorize this issue?

/area monitoring
/kind bug
/priority normal
What happened:
CoreDNS dashboard shows always 'No data'
What you expected to happen:
To have a dashboard that shows data or to do not have a dashboard at all.
How to reproduce it (as minimally and precisely as possible):

Navigate to the grafana of a random Shoot

Ensure that the the tiles in CoreDNS dashboard always show No data. Probably the issue is related to the fact that coredns Pods are not listed for selection (None is shown instead).

Gardener version: master

/cc @wyb1

The metric names have changed. I will have to update Prometheus to collect these new metrics and update the dashboard

/reopen


Create the Events Page

Recreate the Events page as per the Figma design.

Create an Events schema (event name, picture location, and description)
List it using similar methods shown in pages like the projects page

Keep in mind the mobile implementation of the page.

#56


cannot delete namespace

when delete project or namespace, it display Waiting on project-precan-alert-controller_local. And cannot delete again. I have tried to use kubectl. It was error.

Let me know if you need help on this.


Fix Android plugin not working

fix naming collision of Dart plugin classes
correctly register Android side
fixes #21

Are you serious that the reason was that the classes have the same name? This isn't documented anywhere!

Are you serious that the reason was that the classes have the same name? This isn't documented anywhere!

Well for me that gave an error right away because it found 2 classes. Maybe you were also missing the implements: update_available - that was my problem first.

Fixed the line breaks.

Are you serious that the reason was that the classes have the same name? This isn't documented anywhere!

I wonder what happens if some other package has a class with the same name 🫣


add additional statements to policy to enable session manager

I think we should add a line in the Readme to explain that this also enables session manager and not just SSM. But its a great addition!


[SPARK-48497][PYTHON][DOCS] Add an example for Python data source writer in user guide

What changes were proposed in this pull request?

This PR adds an example for creating a simple data source writer in the user guide.
Why are the changes needed?

To improve the PySpark documentation.
Does this PR introduce any user-facing change?

No
How was this patch tested?

Verified locally.
Was this patch authored or co-authored using generative AI tooling?

No

cc @HyukjinKwon

Merged to master.


[FLINK-13016][network] Fix StreamTaskNetworkInput#isAvailable

This PR introduces two changes:
[FLINK-13016][network] Fix StreamTaskNetworkInput#isAvailable
[FLINK-13013][network] Request partitions during InputGate#setup
plus some hotfixes. For details, please check individual commits and their commit messages.
This PR either relays on the existing tests or adds new tests like StreamTaskNetworkInputTest to add missing test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

I have extracted https://issues.apache.org/jira/browse/FLINK-13013 changes from this PR since they were not stable yet. I will merge FLINK-13016 parts with green travis.


[CRITICAL] [App         ] Unable to get a Window, abort.

Software Versions

Python: 3.8.2
OS: Ubuntu 20.04.1 LTS
Kivy installation method: pip install https://github.com/kivy/kivy/archive/master.zip

Describe the bug
[CRITICAL] [Window      ] Unable to find any valuable Window provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
pygame - ModuleNotFoundError: No module named 'pygame'
File "/home/tanjil/.local/lib/python3.8/site-packages/kivy/core/init.py", line 58, in core_select_lib
mod = import(name='{2}.{0}.{1}'.format(
File "/home/tanjil/.local/lib/python3.8/site-packages/kivy/core/window/window_pygame.py", line 13, in
import pygame
x11 - ModuleNotFoundError: No module named 'kivy.core.window.window_x11'
File "/home/tanjil/.local/lib/python3.8/site-packages/kivy/core/init.py", line 58, in core_select_lib
mod = import(name='{2}.{0}.{1}'.format(
[CRITICAL] [App         ] Unable to get a Window, abort.
Additional context
Hello, im learning kivy and i'm trying to run an simple application but i got these errors
➜  Mobile App python3 main.py
[INFO   ] [Logger      ] Record log in /home/tanjil/.kivy/logs/kivy_20-09-02_11.txt
[INFO   ] [Kivy        ] v2.0.0rc3, git-Unknown, 20200831
[INFO   ] [Kivy        ] Installed at "/home/tanjil/.local/lib/python3.8/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0]
[INFO   ] [Python      ] Interpreter at "/usr/bin/python3"
[INFO   ] [Factory     ] 186 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_pil (img_pygame, img_ffpyplayer ignored)
[CRITICAL] [Window      ] Unable to find any valuable Window provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
pygame - ModuleNotFoundError: No module named 'pygame'
  File "/home/tanjil/.local/lib/python3.8/site-packages/kivy/core/__init__.py", line 58, in core_select_lib
    mod = __import__(name='{2}.{0}.{1}'.format(
  File "/home/tanjil/.local/lib/python3.8/site-packages/kivy/core/window/window_pygame.py", line 13, in <module>
    import pygame

x11 - ModuleNotFoundError: No module named 'kivy.core.window.window_x11'
  File "/home/tanjil/.local/lib/python3.8/site-packages/kivy/core/__init__.py", line 58, in core_select_lib
    mod = __import__(name='{2}.{0}.{1}'.format(

[CRITICAL] [App         ] Unable to get a Window, abort.

from kivy.app import App
from kivy.lang import Builder
from kivy.uix.screenmanager import ScreenManager, Screen

Builder.load_file('design.kv')

class LoginScreen(Screen):
	pass

class RootWidget(Screen):
	pass

class MainApp(App):
	def build(self):
		return RootWidget()

if __name__ == '__main__':
	MainApp().run()

Also i tried to install the pygame with pip and i got these error
➜  Mobile App pip3 install pygame
Defaulting to user installation because normal site-packages is not writeable
Collecting pygame
  Downloading pygame-1.9.6.tar.gz (3.2 MB)
     |████████████████████████████████| 3.2 MB 1.3 MB/s
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0ga4f59b/pygame/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0ga4f59b/pygame/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-2tputg3f
         cwd: /tmp/pip-install-0ga4f59b/pygame/
    Complete output (29 lines):

    WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
    Using UNIX configuration...

    /bin/sh: 1: sdl-config: not found
    /bin/sh: 1: sdl-config: not found
    /bin/sh: 1: sdl-config: not found
    Package freetype2 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `freetype2.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'freetype2' found
    Package freetype2 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `freetype2.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'freetype2' found
    Package freetype2 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `freetype2.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'freetype2' found
    /bin/sh: 1: freetype-config: not found
    /bin/sh: 1: freetype-config: not found
    /bin/sh: 1: freetype-config: not found

    Hunting dependencies...
    WARNING: "sdl-config" failed!
    WARNING: "pkg-config freetype2" failed!
    WARNING: "freetype-config" failed!
    Unable to run "sdl-config". Please make sure a development version of SDL is installed.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Installed sdl2 libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev and re-installed kivy. But installed with pip install git+https://github.com/kivy/kivy.git@master

Hi ! I have similar errors too but I don't know how to solve this:
`pi@raspberrypi:~/Python $ sudo python3 pitoucon.py
[INFO   ] [Logger      ] Record log in /root/.kivy/logs/kivy_20-09-05_9.txt
[INFO   ] [Kivy        ] v2.0.0rc3, git-Unknown, 20200904
[INFO   ] [Kivy        ] Installed at "/root/.local/lib/python3.7/site-packages/kivy/init.py"
[INFO   ] [Python      ] v3.7.3 (default, Jul 25 2020, 13:03:44)
[GCC 8.3.0]
[INFO   ] [Python      ] Interpreter at "/usr/bin/python3"
[INFO   ] [Factory     ] 186 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: sdl2
The path /dev/dri/ cannot be opened or is not available
The path /dev/dri/ cannot be opened or is not available
[CRITICAL] [Window      ] Unable to find any valuable Window provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
sdl2 - RuntimeError: b'No available video device'
File "/root/.local/lib/python3.7/site-packages/kivy/core/init.py", line 70, in core_select_lib
cls = cls()
File "/root/.local/lib/python3.7/site-packages/kivy/core/window/window_sdl2.py", line 152, in init
super(WindowSDL, self).init()
File "/root/.local/lib/python3.7/site-packages/kivy/core/window/init.py", line 982, in init
self.create_window()
File "/root/.local/lib/python3.7/site-packages/kivy/core/window/window_sdl2.py", line 290, in create_window
self.get_gl_backend_name())
File "kivy/core/window/_window_sdl2.pyx", line 112, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window
File "kivy/core/window/_window_sdl2.pyx", line 74, in kivy.core.window._window_sdl2._WindowSDL2Storage.die
x11 - ModuleNotFoundError: No module named 'kivy.core.window.window_x11'
File "/root/.local/lib/python3.7/site-packages/kivy/core/init.py", line 62, in core_select_lib
fromlist=[modulename], level=0)
[CRITICAL] [App         ] Unable to get a Window, abort.`
I installed dependencies (SDL2) with:
wget https://libsdl.org/release/SDL2-2.0.10.tar.gz     wget https://libsdl.org/projects/SDL_image/release/SDL2_image-2.0.5.tar.gz     wget https://libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz     wget https://libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.15.tar.gz
And then complied it.
Can you be more clear about how you install sdl2 ?

Hi ! I have similar errors too but I don't know how to solve this:
error.txt
I installed dependencies (SDL2) with:
wget https://libsdl.org/release/SDL2-2.0.10.tar.gz
wget https://libsdl.org/projects/SDL_image/release/SDL2_image-2.0.5.tar.gz
wget https://libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz wget https://libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.15.tar.gz`
And then complied it.
Can you be more clear about how you install sdl2 ?

Did you tried with sudo apt-get libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev?
And make sure to run everything with sudo

sudo apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev

Thank you so much!

Great

Hi,
I have the same problem, but I have installed kivy in conda environment (miniconda).
Software Versions
Python: 3.8.6
OS: Ubuntu 20.04.1 LTS
Kivy installation method: conda install kivy


[TransformerEngine] Support backward(retain_graph=True)

from thunder.benchmarks.targets import LitGPTConfig, LitGPTBenchmark, backward_only
import torch
import thunder
from thunder.executors.transformer_engineex import transformer_engine_ex

# With bigger model
# cfg: LitGPTConfig = LitGPTConfig.from_name("Llama-2-7b-hf")
# cfg.n_layer = 3
# b = LitGPTBenchmark(cfg, batchdims=(2,), device="cuda:0", dtype=torch.bfloat16, requires_grad=True)
# args, kwargs = b.make_batch()
# fn = thunder.jit(b.fn(), executors=[transformer_engine_ex,])

# With smaller model
def foo(x, w):
    return torch.nn.functional.linear(x, w)
x = torch.randn(16, 16, requires_grad=True, device='cuda')
w = torch.randn(16, 16, requires_grad=True, device='cuda')
args = (x, w)
kwargs = {}
fn = thunder.jit(foo, executors=[transformer_engine_ex,])

# backward_only creates a graph and calls `torch.autograd.backward` with `retain_graph=True`.
backward_fn, backward_setup = backward_only(fn, *args, **kwargs)
backward_args = backward_setup()
backward_fn(*backward_args)

# Second usage of `backward_fn` fails with
# File "/home/kkalambarkar/lightning-thunder/thunder/executors/transformer_engineex.py", line 352, in _te_functional_linear_backward_impl
#     with enable_grad(ctx.saved_tensors[2]):
# IndexError: tuple index out of range
backward_fn(*backward_args)

cc: @IvanYashchuk

One of the reason for the issue could that we have our own version of Context which may probably behaves differently when backward is called with retain_grad.

I think this may be the famous clearing of collections...

PyTorch requires all tensor data to be saved with ctx.saved_for_backward(*tensors) when it's not done objects can be deleted preemptively.

Even if we fix this, TransformerEngine itself has problem with running the backward multiple times with retain_graph=True.
import torch
from transformer_engine.pytorch import Linear as TELinear, fp8_autocast

m = TELinear(16, 16)
x = torch.randn(16, 16, device='cuda')

with fp8_autocast(True):
    o = m(x).sum()

o.backward(retain_graph=True)

# this fails with
# AssertionError: FP8 execution requires 2D input matrices with height divisible by 8 and width divisible by 16, but got tensor with dims=[0]
# looks like TELinear.backward mutates the context object such that it is not reusable.
o.backward()

Let's do the work anyway so that we hit the same error as in pure TE usage.

Currently, we send the data saved backward from forward using a mock context object using a dictionary
https://github.com/Lightning-AI/lightning-thunder/blob/ab514fcb7836683c7b57f9bd7fe338a77d516bd2/thunder/executors/transformer_engineex.py#L125-L140
A dictionary instead of a Context object directly was used to let clear_mutable_collections clear the dict and subsequently release the memory held by tensors. It was also considered too much work to faithfully model the properties of saved tensors (number of saved tensors their type and shape). However, to ensure correct behavior from PyTorch we need to pass tensor objects through PyTorch's save_for_backward(*tensors) function. That means we need to modify TransformerEngine's meta to return TensorProxies explicitly and not hidden behind a generic 'CollectionProxy'.


Yii opens db connection even when query result got from yii's cache

Hey, guys!
I have noticed the next problem:
When I am trying to find something with ActiveRecord with "where" as array - the yii opens db connection and then gets the result from cache system.
But when I'm using "where" as a string - problem disappears:
$alias = "welcome";
$model = StaticPages::getDb()->cache(
    function ($db) use ($alias) {
        return StaticPages::find()->where("alias = 'test'")->one();
    },
    3600
);

It looks like quoteValue function opens db connection.
What steps will reproduce the problem?
A piece of component's config:
<?php
return [
    // ...
    components' => [
        'db'      => [
            'class'               => 'yii\db\Connection',
            'dsn'                 => 'mysql:host=localhost;dbname=web',
            'username'            => 'web',
            'password'            => '1234567',
            'charset'             => 'utf8',
            'enableSchemaCache'   => true,
            'schemaCacheDuration' => 3600,
            'schemaCache'         => 'cache',
        ],
        'cache'   => [
            'class'        => 'yii\caching\MemCache',
            'useMemcached' => true,
            'servers'      => [
                'main' => [
                    'host'   => 'localhost',
                    'port'   => 11211,
                    'weight' => 100,
                ],
            ],
        ],
    // ...
];

Example:
$alias = "welcome";
$model = StaticPages::getDb()->cache(
    function ($db) use ($alias) {
        return StaticPages::find()->where(['alias' => $alias, 'language' => Yii::$app->language])->one();
    },
    3600
);

What is the expected result?
Yii mustn't open db connection.
What do you get instead?
Yii opens db connection.
Additional info

Q
A

Yii version
<IP_ADDRESS>

PHP version
5.4.16

Operating system
CentOS 7.3

Indeed quoteValue opens connection.

It does that because it needs PDO for quoting the value.

Agreed with @cebe, behavior is correct.
In case you have slaves, connection will be opened to the slave DBMS instance.

Did you see in my config slave connections? I'm not. And there are no slave configs.
So, behavior is incorrect.
Make a try to pay more attention to yii2 framework development.
Right now you are pushing to use "where" as string instead of array for case like above, maybe because of laziness?

I don't see why connection is opened in case of existence of cached value.

This issue is not easy to fix but it could be possible to fix it. This depends on how quote is implemented on the PDO drivers. If the driver needs a database connection to quote, it is not possible to fix it and not a Yii issue but a PDO one. If PDO can quote without DB connection we might be able to instantiate a PDO instance in this case without opening a connection. This will be a bit complicated because of master/slave implementation but should be still possible.

We may also be able to delay the quoting to be done after caching checks, needs to be checked.

@cebe You cannot possibly quote without opening a database connection.
Quoting depends on the server settings and connection settings, like character set. Which are not known before connecting.

If you want to check the cache then support for that needs to be added to the Query layer; which is a big change. Also note that this would break with parameter binding since those bindings might be changed.

That's implementation difficulties. It's not making current behavior correct.

True, but it is an indicator that this is not about query caching, but more about model caching.
Also it would replace the cost of setting up the database connection with serializing the query object without database connection (to get the cache key).
I'm all in favor of supporting this, just saying that it might be a lot of work for a little gain.
Especially since most requests will hit the database at some point.
For this use case it seems view / data caching is more appropriate.

Hello!  I use yii  2.0.12 with php7.1 and postgress PDO.
And I have exactly same issue.
I solved that by this way.
As i see \yii\db\Connection::quoteValue used mainly by \yii\db\Command::getRawSql and only for log and cache purposes
So i just create my own db connection class and rewrite quoteValue like this
namespace common\components;
use yii\db\Connection;
class TDbConnectionCustomQuote extends  Connection {
    /** @inheritdoc */
    public function quoteValue($value)
    {
        // quoteValue needs open connection
        // it is bad for caching
        // so make own quote

        // it is secure enough, as for real sql prepare is used.
        // quoteValue used only for log and cache

        // code here is from \yii\db\Schema::quoteValue
        if (!is_string($value))
            return $value;

        return "'" . addcslashes(str_replace("'", "''", $value), "\000\n\r\\\032") . "'";
    }
}

Another approach i think is create own implementation of \yii\db\Command::getRawSql without
quoteValue. It is slightly more secure.
Hope it helps some one.

I was thinking some more about this and we could use something else than getRawSql() for the query key of course...
Instead we can simply use getSql and serialize the params ourselves (for a cache key there is no DB specific serialization we care about) so we could simply json_encode.

I found that there is one more place in the code where a database connection is opened even if there is a cache in front of it: the supportsFractionalSeconds  method in the \mysql\QueryBuilder class.
In my own code I added an override for this class and method that always returns true (not the cleanest solution). I suggest exposing this property as a config parameter somehow, and only checking the database if the config parameter is not provided.

Hello @andrei-livadariu ! I am having exactly the same issue. How did you managed the method override?
I'm not that good in OOP to manage that by myself.

I have another issue, but problem same. I have master and slave dbs. Some of my requests uses only master connection, but when quoteValue() function is called - it opens slave connection (tooks useless 10ms of time). I have highload project and this useless connection opens taking big amount of time.
Problem in:
    public function quoteValue($str)
    {
        if (!is_string($str)) {
            return $str;
        }

        if (($value = $this->db->getSlavePdo()->quote($str)) !== false) {
            return $value;
        }

        // the driver doesn't support quote (e.g. oci)
        return "'" . addcslashes(str_replace("'", "''", $str), "\000\n\r\\\032") . "'";
    }

@sartor that's separate issue. Let's discuss it separately.

Ok, I'll create new issue and maybe pull request with solution

I was thinking some more about this and we could use something else than getRawSql() for the query key of course...
Instead we can simply use getSql and serialize the params ourselves (for a cache key there is no DB specific serialization we care about) so we could simply json_encode.

any progress?


prepare for occt7.3

Checklist

[ ] Used a fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

depends on https://github.com/conda-forge/occt-feedstock/pull/24

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender


Chrome crashes on startup on m1 Mac

Running a Selenium test causes Chrome to crash on startup using Selenoid on an m1 Mac and specifying selenoid/chrome as a browser with:
Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: crashed.

Selenoid logging:
2022/05/06 23:15:04 [-] [INIT] [Loading configuration files...]
2022/05/06 23:15:04 [-] [INIT] [Loaded configuration from config/browsers.json]
2022/05/06 23:15:04 [-] [INIT] [Your Docker API version is 1.41]
2022/05/06 23:15:04 [-] [INIT] [Timezone: Local]
2022/05/06 23:15:04 [-] [INIT] [Listening on :4444]

2022/05/06 23:15:28 [-] [NEW_REQUEST] [unknown] [<IP_ADDRESS>]
2022/05/06 23:15:28 [-] [NEW_REQUEST_ACCEPTED] [unknown] [<IP_ADDRESS>]
2022/05/06 23:15:28 [0] [LOCATING_SERVICE] [chrome] []
2022/05/06 23:15:28 [-] [DEFAULT_VERSION] [Using default version: latest]
2022/05/06 23:15:28 [0] [USING_DOCKER] [chrome] [latest]
2022/05/06 23:15:28 [0] [CREATING_CONTAINER] [selenoid/chrome]
2022/05/06 23:15:28 [0] [STARTING_CONTAINER] [selenoid/chrome] [45e69e6a382af73130dd47c94891ea25a2e12c8e1519ec9f98db95c7d0f1a6b1]
2022/05/06 23:15:29 [0] [CONTAINER_STARTED] [selenoid/chrome] [45e69e6a382af73130dd47c94891ea25a2e12c8e1519ec9f98db95c7d0f1a6b1] [0.29s]
2022/05/06 23:15:31 [0] [SERVICE_STARTED] [selenoid/chrome] [45e69e6a382af73130dd47c94891ea25a2e12c8e1519ec9f98db95c7d0f1a6b1] [2.45s]
2022/05/06 23:15:31 [0] [PROXY_TO] [45e69e6a382af73130dd47c94891ea25a2e12c8e1519ec9f98db95c7d0f1a6b1] [http://<IP_ADDRESS>:54991]
2022/05/06 23:15:31 [0] [SESSION_ATTEMPTED] [http://<IP_ADDRESS>:54991] [1]
2022/05/06 23:15:33 [0] [SESSION_FAILED] [http://<IP_ADDRESS>:54991] [500 Internal Server Error]
2022/05/06 23:15:33 [0] [REMOVING_CONTAINER] [45e69e6a382af73130dd47c94891ea25a2e12c8e1519ec9f98db95c7d0f1a6b1]
2022/05/06 23:15:33 [0] [CONTAINER_REMOVED] [45e69e6a382af73130dd47c94891ea25a2e12c8e1519ec9f98db95c7d0f1a6b1]

I would expect selenoid/chrome to work on an m1 Mac, or for there to be an alternate image that does, such as seleniarm/node-chromium for a vanilla Selenium grid.
Thanks!

Duplicates https://github.com/aerokube/selenoid/issues/1109. See the following PR with a Chromium workaround.

@originbeh no, this was only merged as source code.


fix add sync after streamload (#30009)

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Fix greater than

@HeidiSteen

LGTM

#sign-off

@HeidiSteen, who can approve this review?

@BevLoh I'm not sure because this isn't a repo I maintain or contribute to, but you could try Ted Glaza or Heath Stewart

@BevLoh this documentation file is auto-generated from the nuget package. If we accept this PR it's going to get flattened on the next nightly run :(
Not only that, but the document that this is modifying is actually rendering properly.

The real issue is in the track 1 docs corresponds to a different file.
I am tracking down possible fixes for this.

@scbedd, I had no idea. Ok, I'm going to close this PR, assuming you'll figure out a way to fix this. Let me know if you need anything from me.


Add information about upgrading from postgres 9.5

What
In order to make upgrading a smoother process it makes sense to document
this in our tech docs rather than asking people to check for old emails.
It also makes sense to pull this up to an appropriate level so that it
is surfaces on the side menu.
How to review
Describe the steps required to test the changes.

Preview the content locally (see README) and check that it renders as expected.
Manually check that any removed or renamed anchor tags are not in use (linkchecker doesn't do this).
Check the words added

Who can review
Probably @markpeterbuckley

Can this go at the end of https://docs.cloud.service.gov.uk/deploying_services/postgresql/#upgrade-postgresql-service-plan ? Think this is in the wrong place.


npm run e2e: TSError: Unable to compile TypeScript

I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
npm run e2e fails

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

on clean project when I run npm run e2e:
`
[22:55:26] I/direct - Using ChromeDriver directly...
[22:55:26] I/launcher - Running 1 instances of WebDriver
[22:55:50] E/launcher - Error: TSError: ⨯ Unable to compile TypeScript
<EMAIL_ADDRESS>(7,5): Duplicate identifier 'readonly'. (2300)
<EMAIL_ADDRESS>(7,14): '=' expected. (1005)
<EMAIL_ADDRESS>(7,14): Cannot find name 'first'. (2304)
<EMAIL_ADDRESS>(7,19): ';' expected. (1005)
<EMAIL_ADDRESS>(7,21): Duplicate identifier 'boolean'. (2300)
and etc...
`

What is the expected behavior?

e2e tests must works

What is the motivation / use case for changing the behavior?

on previous version angular2-webpack-starter e2e tests worked without problems

Please tell us about your environment:

Angular version: 2.0.0-rc.1
angular2-webpack-starter: 5.0.5
Browser: Chrome 51

Could this be a duplicate of https://github.com/AngularClass/angular2-webpack-starter/issues/615?

@TobiasKrogh It seems that this is the case


merging CAX-9-onboarding into main

please everybody in Onboarding-team check whether this PR contains their expected changes

nothing from me to add.


Button "return to draft orders" moving to orders view

What I'm trying to achieve
Back to draft order view.
Steps to reproduce the problem

Go to draft orders view
Click on any draft order
Click to "<- DRAFT ORDERS" button
I'm moved to orders view instead of draft orders view.

The same bug appears when clicking back from create draft order view.
Screenshots

System information
Browser: Chrome

Solved


Allow using rebar3 nightly builds

Closes #68.

The action itself will run rebar3 version and this might report an actual version (eg. at the moment, 3.18) which could be confusing. Should we force the output to "nightly" when the input is so?

The action itself will run rebar3 version and this might report an actual version (eg. at the moment, 3.18) which could be confusing. Should we force the output to "nightly" when the input is so?

That makes sense to me 👍

I made the changes and rebased on main.

Fixing the action CI errors now...


NeurIPS challenge quickstart guide

Adds a minimal tutorial to guide newcomers through the process of using Lit-GPT. We have a lot of tutorials, which are great,  but they are more detailed. Some people are looking for minimal document with the sequence of steps before reading these more in-depth tutorials.

Thanks a lot everyone, I incorporated all your changes!!


[FEATURE] Make the color of scroll to top button matching with the theme of website

Description
Hwy @Fenrir-04 The color of scroll to top button does not match the theme of the website. Due to this, it is not looking good. Please assign me this issue. Thank you!
Screenshots

Additional information
If the button is red it would be much more appealing.
Checklist

[X] I agree to follow this project's Code of Conduct
[X] I have checked the existing issues
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

Hello @Fenrir-04 I think I can help with this please assign this to me.Thank you : )


Add TimeMap response headers and body.

JIRA Ticket: https://jira.duraspace.org/browse/FCREPO-2623
What does this Pull Request do?
Adds response to GET/HEAD requests to the Memento TimeMap located at /fcr:versions.
What's new?

Adds a Link header with a placeholder TimeMap RDF type to the response
Adds a new MessageBodyWriter for a stream of Links for the body of the application/link-format content.

How should this be tested?

Create a versionable resource.

> curl -i -XPUT -H"Link: <http://fedora.info/definitions/fcrepo#VersionedResource>; rel=\"type\"" http://localhost:8080/rest/versionableObject
HTTP/1.1 201 Created
Date: Thu, 26 Oct 2017 03:30:21 GMT
ETag: W/"04ca9b02c77e7a3a0af40b59cd29669ff223094b"
Last-Modified: Thu, 26 Oct 2017 03:30:21 GMT
Link: <http://localhost:8080/static/constraints/ContainerConstraints.rdf>; rel="http://www.w3.org/ns/ldp#constrainedBy"
Link: <http://fedora.info/definitions/fcrepo#VersionedResource>; rel="type"
Link: <http://localhost:8080/rest/versionableObject>; rel="timegate"
Link: <http://localhost:8080/rest/versionableObject/fcr:versions>; rel="timemap"
Location: http://localhost:8080/rest/versionableObject
Content-Type: text/plain
Content-Length: 44
Server: Jetty(9.3.1.v20150714)

http://localhost:8080/rest/versionableObject

Get the Timemap

> curl -i -G http://localhost:8080/rest/versionableObject/fcr:versions
HTTP/1.1 200 OK
Date: Thu, 26 Oct 2017 03:31:13 GMT
Link: <http://www.w3.org/ns/ldp#Resource>; rel="type"
Link: <http://www.w3.org/ns/ldp#RDFSource>; rel="type"
Link: <http://fedora.info/definitions/v4/repository#TimeMap>; rel="type"
Vary-Post: Memento-Datetime
Allow: POST,HEAD,GET,OPTIONS
Content-Type: application/link-format
Content-Length: 233
Server: Jetty(9.3.1.v20150714)

<http://localhost:8080/rest/versionableObject>; rel="original",
<http://localhost:8080/rest/versionableObject>; rel="timegate",
<http://localhost:8080/rest/versionableObject/fcr:versions>; rel="self"; type="application/link-format",

Additional Notes:
Example:

Does this change require documentation to be updated? no
Does this change add any new dependencies?  no
Does this change require any other modifications to be made to the repository (ie. Regeneration activity, etc.)? no
Could this change impact execution of existing code? no

Interested parties

@awoods @dbernstein Before this is ready to go I need a good way to write a test checking for those provided Links in the response body.
Any suggestions of things you've used in the past?
I'm thinking of doing string searches and that seems fragile.

All ready for review.

This allows standard RDF responses, however the subject is fedora:timemap, instead of fcr:versions. I'm guessing that we need that HttpResourceConverter now...not sure.
Also I didn't add a test yet as it seemed to make more sense to wait until we have some Mementos and test ldp:contains as both application/link-format and text/turtle together.

FYI: have been on the road.  Will take a look Wednesday

@awoods updated, I think I got it all. I also removed my duplicate protected FedoraResource resource() definition as it was the same as the super class.

@awoods @birkland I just noticed I dropped the */* content-type from here, I'm adding a commit to bring it back.

@whikloj , @awoods  Hm, am I missing something here?  Started the webapp after a successful build via mvn jetty:run, then did:
Dev@MSEL-DRCC02 MINGW64 ~/projects/fcrepo4/fcrepo-webapp (pr/1264)
$ curl -v -u "fedoraAdmin:fedoraAdmin" -i -XPUT -H"Link:
<http://fedora.info/definitions/fcrepo#VersionedResource>; rel=\"type\""
http://localhost:8080/rest/versionableObject

> PUT /rest/versionableObject HTTP/1.1
> Host: localhost:8080
> Authorization: Basic ZmVkb3JhQWRtaW46ZmVkb3JhQWRtaW4=
> User-Agent: curl/7.49.1
> Accept: */*
> Link: <http://fedora.info/definitions/fcrepo#VersionedResource>; rel="type"
>
< HTTP/1.1 400 Bad Request
< Date: Thu, 02 Nov 2017 18:27:34 GMT
< Link: <http://localhost:8080/static/constraints/CannotCreateResourceException.rdf>; rel="http://www.w3.org/ns/ldp#constrainedBy"
< Content-Type: text/plain;charset=utf-8
< Content-Length: 82
< Server: Jetty(9.3.1.v20150714)

Invalid interaction model: http://fedora.info/definitions/fcrepo#VersionedResource

Also, for giggles I created a version in the UI.  Apparently the old versioning is still active in its own orthogonal universe??

@birkland : it sounds like you may be interacting with a different version of Fedora.
I just rebuilt this PR and copy/pasted your commands, and successfully created the versionableObject.
Additionally, when I click on the "Create Version" button, I get a stacktrace, as expected.

Yup, requests were going to another instance.  Looks good.  Known issue re: subjects noted


Issue Template Updates for Figma link

Current Behavior
The project's current issue templates are missing an open invitation link where new contributors can join the community's Figma team and view user interface designs and other UX projects.
Desired Behavior
Each template that has a reference to Figma in its resources section should an invite link added.
Implementation
In each issue template that refers to Figma, replace the current line referring to Figma with this line:
- 🎨 Wireframes and [designs for Meshery UI](https://www.figma.com/file/SMP3zxOjZztdOLtgN4dS2W/Meshery-UI) in Figma [(open invite)](https://www.figma.com/team_invite/redeem/qJy1c95qirjgWQODApilR9)```

Acceptance Tests

All references to Figma include the "open invite" link.

Contributor Guide

Thanks, @depleur 👍

If the issue is still not solved please assign me.

@Saurabhmahto, you might want to look for an unassigned issue here


Add or tweak a converter to deal with trivial variables and constraints

What is the expected enhancement?
QuadraticProgram may include trivial variables and constraints.
For example, #227 includes a trivial variable (lower bound and upper bound are equal).
Here is an example of a trivial constraint.
from qiskit_optimization.problems import QuadraticProgram

qp = QuadraticProgram()
qp.linear_constraint(sense='==', rhs=1)  # constraint: 0 == 1

It is good to eliminate such trivial cases in some existing converters or a new converter.
Fixes #227

Hi @t-imamichi
I'd like to fix this problem.
I went through the piece of code mentioned #227 and we have to find a workaround when the bounds range is 0. We could set the value of power as 0 directly which calculating the np.log2(var_range). This would prevent the exception from being raised.
I've little to no idea about the purpose of the converters but just isolating the method seems solvable. I've a mathematical background, so understanding equations won't be a problem.
What is the recommendation?

Thank you for raising a hand for this issue.
Because it is more important to fix the bug #227, I recommend to add a workaround for IntegerToBinary converter.
As I commented https://github.com/Qiskit/qiskit-optimization/issues/227#issuecomment-900953877, if variable range is zero, we can substitute the variable with a constant value.
Estimated tasks are as follows:

Apply QuadraticProgram.substitute in IntegerToBinary when variable range is zero
Add unit tests in https://github.com/Qiskit/qiskit-optimization/blob/main/test/converters/test_converters.py
Add a release note

I have one quick question / suggestion:
Would a potential fix be to insert a check here (above this line):
https://github.com/Qiskit/qiskit-optimization/blob/103db34daf68f0d4c93a558891a50bb0b5de2450/qiskit_optimization/converters/integer_to_binary.py#L104
for if var_range:
and only execute the rest of the current code in _convert_var() if var_range is non-zero?
Then it might work to add:
    else:
        # add some code to create one or more binary variables as needed to hold the value of `lowerbound`

I am not sure - it's just a suggestion I had after reviewing the current code.
Thank you again for your quick response and for investigating this issue and working on a fix!

@wpoxon-qci Thank you for your solution. It looks good to be a workaround. Just I suggest power = int(np.log2(var_range)) if var_range > 0 else 0 to be clear.
As I wrote https://github.com/Qiskit/qiskit-optimization/issues/228#issuecomment-901268665, it's OK to make a PR with a workaround, unit tests, and a release note.

@wpoxon-qci I made another bug fix of int2bin #230. If you are OK, I can include your suggestion as part of #230. If you want to make your own PR, it's also alright. What do you think?

@wpoxon-qci Thank you for your solution. It looks good to be a workaround. Just I suggest power = int(np.log2(var_range)) if var_range > 0 else 0 to be simple (1 line) and clear (">0" part).

@t-imamichi - Thank you for your improvements to my proposed fix.  I like your version of the change better.  I can take your proposed change and run it in my environment and provide confirmation that it fixes my original issue in #227.  It should be fine, but I will just try it and provide positive confirmation.

@wpoxon-qci I made another bug fix of int2bin #230. If you are OK, I can include your suggestion as part of #230. If you want to make your own PR, it's also alright. What do you think?

@t-imamichi - if you are already working on a PR for another fix in the int2bin code, please go ahead and include the fix for this issue in your other PR.  Thank you!

@t-imamichi - just confirming.  Your suggested version of the fix also works to resolve the original issue I submitted in #227.
I re-ran my test and it passed with the modifications to the fix that you suggested.  Here is an updated version of the change that I tested with:
@@ -101,7 +107,7 @@
         self, name: str, lowerbound: float, upperbound: float
     ) -> List[Tuple[str, int]]:
         var_range = upperbound - lowerbound
-        power = int(np.log2(var_range))
+        power = int(np.log2(var_range)) if var_range > 0 else 0
         bounded_coef = var_range - (2 ** power - 1)

         coeffs = [2 ** i for i in range(power)] + [bounded_coef]

If you are willing to include this change when you make your other int2bin fix in #230 that would be excellent.  Thank you!

@wpoxon-qci I was thinking exactly the same. Apologies it took me a while to revert.
As @t-imamichi is already working on this, he can proceed and add it in his PR. If required, I can raise a fix for this post confirmation.
I'd happy to look at any other outstanding issue. Would be glad if you can point in the relevant direction.

Thank you, @wpoxon-qci. I will include @wpoxon-qci's solution in #230.
@atulanand206 We still need to handle trivial variables and constraints even if we merge #230. If you wish, you can work on it. I will add another issue for the topic because we discussed a lot about the workaround in this thread already. I would like to avoid confusion of discussion.


AGRI token

AgriChain Utility Token (AGRI)
www.agrichain.com

Please, lowercase file name for next upload, for now, added lowercased image file name here:https://github.com/TrustWallet/tokens/commit/1199111a97895099b5b0b32a10eb8d6af8890340
Also, you can use these graphics to say that your ERC20 token fully compatible with Trust Wallet (https://trustwallet.com/logo-assets). Tokens will show up automatically once the user receives them.
Feel free to share this on social media and tag Trust Wallet:

Twitter: @trustwalletapp

Facebook: @trustwalletapp


[vscode.dev] "New File" shortcut shown in menu is incorrect

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.63.0
OS Version: Microsoft Edge 94.0.992.50 on Windows 10 Enterprise 1909

Steps to Reproduce:

Go to https://vscode.dev
Press "ctrl + alt + N"

What did I expect:
A new file tab is opened
What did I see:
A new browser tab is opened
What went wrong:
The correct shortcut to create a new file tab is "ctrl + alt + win + N". If I use these combo, then a new file tab is opened corrcetly.

From https://github.com/microsoft/vscode/commit/f17b1ec6386e9dbef4cbcd26915188a18c3d55d5

Dup of https://github.com/microsoft/vscode/issues/138991


WIP Updated token values

Description
Token values based on current Figma state.
Additional context

Issue reference

coverage: 77.359% (+11.0%) from 66.382%
when pulling f1610be340b6471882e890cf0512711288ca8174 on feat/new-tokens
into 200fb654a1af654bdfaad3f575afd3bf1ab0b498 on test/sass-unit-reenable.

Will be solved in #1722


Tooltip on control buttons

Is there any way to activate or add tooltips on hover over the control buttons?

Hi @tinkermachine For now there is no provided API for adding tooltips to the toolbar, but probably at some point this feature could be added.


[metrics] Understanding Contributing Organizations and Sub-Projects metrics

The definitions given for these metrics in their respective files are quite vague. What is meant by a subproject?
What is a contributing organization?
These questions were addressed in issue #10 and #11, which was a long time back. Is there a better and clearer way to define them?
The links to the metrics' pages are:

https://github.com/chaoss/wg-gmd/blob/master/metrics/organizations.md
https://github.com/chaoss/wg-gmd/blob/master/metrics/organizations-new.md
https://github.com/chaoss/wg-gmd/blob/master/metrics/sub-projects.md

@GeorgLink @jgbarah

We need to work on that. But in any case, please remember that we're working sort of top-down, from a focus area, to the (knowledge or actionable) goals for that focus area, to the questions that may help to reach those goals, to the metrics that can help to answer those goals. Therefore, we need to consider this (organizations and subprojects) in the context of the relevant focus area / goal / question.
I would close this for now, but at the same time, find out in which focus areas organizations and subprojects are relevant, and reopen the discussion in that context.

Thanks for the reply!

I would close this for now, but at the same time, find out in which focus areas organizations and subprojects are relevant, and reopen the discussion in that context.

Will do!


Error starting spork

I get the following error when running Guard.
bundle exec guard
Starting Spork for RSpec
/Library/Ruby/Gems/1.8/gems/guard-spork-0.4.0/lib/guard/spork/spork_instance.rb:28:in `exec': can't convert Hash into String (TypeError)
from /Library/Ruby/Gems/1.8/gems/guard-spork-0.4.0/lib/guard/spork/spork_instance.rb:28:in `start'
from /Library/Ruby/Gems/1.8/gems/guard-spork-0.4.0/lib/guard/spork/spork_instance.rb:27:in `fork'
from /Library/Ruby/Gems/1.8/gems/guard-spork-0.4.0/lib/guard/spork/spork_instance.rb:27:in `start'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard/dsl.rb:117:in `to_proc'
from /Library/Ruby/Gems/1.8/gems/guard-spork-0.4.0/lib/guard/spork/runner.rb:25:in `each'
from /Library/Ruby/Gems/1.8/gems/guard-spork-0.4.0/lib/guard/spork/runner.rb:25:in `launch_sporks'
from /Library/Ruby/Gems/1.8/gems/guard-spork-0.4.0/lib/guard/spork.rb:23:in `start'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard.rb:322:in `send'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard.rb:322:in `run_supervised_task'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard.rb:320:in `catch'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard.rb:320:in `run_supervised_task'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard.rb:153:in `start'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard.rb:254:in `run_on_guards'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard.rb:253:in `each'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard.rb:253:in `run_on_guards'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard.rb:252:in `catch'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard.rb:252:in `run_on_guards'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard.rb:251:in `each'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard.rb:251:in `run_on_guards'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard.rb:152:in `start'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/lib/guard/cli.rb:68:in `start'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /Library/Ruby/Gems/1.8/gems/guard-0.8.8/bin/guard:6
from /usr/bin/guard:19:in `load'
from /usr/bin/guard:19

I think that the env variable is the one not being converted to a string. When I print it out, I see RAILS_ENV => test

Which version of Spork do you use? Spork is launching well without Guard?

ok duplicate issue here


enable dynamicaly created Task to be self-destructable on last iteration

Allow to dynamically create Task objects that could be self-destructed by Scheduler on last iteration.
Mostly useful for one-shot tasks for postponed activities. It helps to save some memory and there is no need to keep track of expired task objects.

I really like the idea.
I will need to think through the implementation details though.
Thank you for the idea and the effort!

Implemented as version 3.7.0
An example is here:
https://github.com/arkhipenko/TaskScheduler/tree/testing/examples/Scheduler_example19_Dynamic_Tasks_SelfDestruct
Enjoy and thank you for the idea.

thanks @arkhipenko, looks good to me!
Just if you wanna know my feedback:
IMO Task::setSelfDestruct() method should be considered very dangerous in scenarios with self-destructing obects. I.e. I create an object and keep reference to it. But the scope keeping the reference cant guarantee it's validity at any random point in time. So, using any methods on an object reference that could possibly not exist any more is unsafe and may lead to assertion failure or use-after-free. On the other hand, methods like Task::reset() could introduce even more ambiguity.
Sooner or later somebody will shot his own leg using this :)
So my original idea was to make it like "fire-and-forget", once self-destructing object has been created, there is no way of turning back and any references to it should be considered as invalid.
As a compromise Task::setSelfDestruct() could be a private method, but Task::reset() still could lead to a mem leak.
That was just my thoughts in general.
Thanks for the implementation anyway!  But it is a problem with the entire library, there are other ways to be careless and screw things up.
 I will add a WARNING to the Wiki (if anyone reads it.. :) )

but Task::reset() still could lead to a mem leak.

By the way - why do you think reset could introduce a memory leak? It does not allocate anything.
All I see is that it could break the execution chain - something I should probably code around.
Here
https://github.com/arkhipenko/TaskScheduler/blob/e7703d441b8fd6cd481853dc594b24edd55dfc15/src/TaskScheduler.h#L522
If task is part of the chain, this unsafely yanks it out. If there were any tasks after it, they will not be executed.
A safer way is to call Scheduler::deleteTask here if iScheduler is not NULL.
But even then, the double-linked list is fragile, no question.

Ha!  Task::reset() is actually a private member (unless you use _TASK_DEBUG to make all methods public, which is not recommended). We should be safe!

Ha! Task::reset() is actually a private member

Huh! Indeed :) I missed it. I was thinking about calling reset and loosing pointer later somehow. With a private method it should be OK then. :)

If task is part of the chain, this unsafely yanks it out. If there were any tasks after it, they will not be executed.
A safer way is to call Scheduler::deleteTask here if iScheduler is not NULL.

Yeah, this could potentially be a weak spot.
In one of my projects I've used a linked list of std::shared_ptr's and it worked automagically - once you kick the object off a list it will self-destruct :) But you need a list as a container, your tasks a linked to each other - quite an interesting solution, btw. My first idea was that a Scheduler class is a container, but to my surprise I found that it was an iterator actually :)

Task call Scheduler::deleteTask() in the destructor, so should be safe from the chain perspective.
And yes, since original TS was created for things like Uno and Nano, every byte counted, hence compile options and Scheduler as an iterator rather than container. Size and efficiency were (and still are) the main goals


How to join Mage Slack for support?

I see there is a restriction on the email domain

@nandubatchu There's no restriction on the email domain

@nandubatchu are you able to join the slack channel?

Yep, I am able to. Thanks!


fix Android package identifier description text

with some TODO items:

[x] update existing test snapshots
[ ] consider adding clarification that this is a Java package identifier
[ ] ensure that this update does not break the CLI

This is a quick fix update. I expect to merge it soon for the sake of consistency with iOS option recently updated in PR #166.


Object reference not set to an instance of an object

I get the above error again after closing a game. The play time of the game also doesn't update.
playnite.log
extensions.log

Same problem
extensions.log
playnite.log


The code for some components and some files can't be seen

Describe the bug
The code for some components and some files can't be seen, also the loading icon keeps in loop and it looks that it can't continue doing the jobs in the list.
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-9mkxi7
Steps to reproduce

Write the desired action to generate code
wait until it finishes
try to open any component or file under the folder section in the code UI
the code does not appears, also the loading icon on the chat is still in an infinite loop
Cannot open the terminal, preview or see the generated code

Expected behavior
See the code, the preview and the terminal.
Screen Recording / Screenshot
No response
Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 129
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 201583680,
  "usedJSHeapSize": 195602992,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = camgrafiman
Chat ID = b59cb4f5db1d

Additional context
Message:
Absolutely! React is an excellent choice for your website, especially considering your requirements for an image grid gallery with advanced features. Let's proceed with creating your website, incorporating Framer Motion for animations and building a robust image gallery.

First, let's set up the project with the necessary dependencies:

I've created a basic structure for your artist portfolio website using React, TypeScript, Tailwind CSS, and Framer Motion. Here's a breakdown of what I've done:

1. Set up the project with necessary dependencies, including Framer Motion for animations.
2. Created a responsive layout with a header, main content area, and footer.
3. Implemented an image gallery component with category filtering and search functionality.
4. Added smooth animations using Framer Motion for various elements.

Key features of the image gallery:
- Category filtering buttons
- Search bar for finding specific artworks
- Responsive grid layout for displaying images
- Smooth animations when filtering or searching

To further improve your website, you can:

1. Replace the mock data in the ImageGallery component with your actual artwork data.
2. Implement a lightbox feature to view images in full size when clicked.
3. Add a dedicated page or modal for each artwork with more details.
4. Implement lazy loading for images to improve performance.
5. Add a contact form in the Footer or a separate Contact page.
6. Create an About page to share your artist statement and biography.

Remember to replace "Your Name" with your actual name throughout the components and update the social media links in the Footer component.

This setup provides a solid foundation for your artist portfolio website. You can now run the development server and start customizing the content and styles to match your personal brand and showcase your artwork effectively.

@camgrafiman we recently deployed a fix, could you check again?

@camgrafiman we recently deployed a fix, could you check again?

I've tried with a new one and now it works, thanks a lot!!


Change 'faraday_middleware' to runtime dependency

In the README, it is documented that this gem needs "faraday_middleware" gem installed.
We should make it a runtime dependency so that people don't have to specify it explicitly, or don't accidentally remove "faraday_middleware"
For the context: in our repo, we have "faraday_middleware" installed because it's the dependency of another gem. When we removed that gem we almost accidentally remove "faraday_middleware". Only upon reading README of "faraday_middleware-aws-sigv4" do we realize it is still needed

Coverage remained the same at 100.0% when pulling d4d3c8765254d146ec7f7962fe40eadcec647b24 on manhhung741:master into 85322daa62e922f4f209c086eb0cacb1d6b20221 on winebarrel:master.

Thank you for the pull request.
However, faraday_middleware is not needed for FaradayMiddleware::AwsSigV4 to work.
I'm not going to add any unnecessary dependencies.
e.g.)
require 'faraday_middleware/aws_sigv4'
require 'pp'

conn = Faraday.new(url: 'https://apigateway.us-east-1.amazonaws.com') do |faraday|
  faraday.request :aws_sigv4,
    service: 'apigateway',
    region: 'us-east-1',
    access_key_id: ENV['AWS_ACCESS_KEY_ID'],
    secret_access_key: ENV['AWS_SECRET_ACCESS_KEY']
  # see http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Sigv4/Signer.html
  faraday.adapter Faraday.default_adapter
end

res = conn.get '/account'

pp res.body

Oh. Perhaps I misunderstood the example in Readme. So “faraday_middleware”
was needed for that example alone and not in general?
On Thu, Apr 30, 2020 at 4:51 PM Genki Sugawara<EMAIL_ADDRESS>wrote:

Thank you for the pull request.
However, faraday_middleware is not needed for FaradayMiddleware::AwsSigV4
to work.
I'm not going to add any unnecessary dependencies.
e.g.)
require 'faraday_middleware/aws_sigv4'require 'pp'
conn = Faraday.new(url: 'https://apigateway.us-east-1.amazonaws.com') do |faraday|
faraday.request :aws_sigv4,
service: 'apigateway',
region: 'us-east-1',
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY']
see http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Sigv4/Signer.html
faraday.adapter Faraday.default_adapterend
res = conn.get '/account'
pp res.body
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/winebarrel/faraday_middleware-aws-sigv4/pull/8#issuecomment-622179201,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFH4ANOH3ZMIWYUX35FZGTRPIFGPANCNFSM4MWGMD4Q
.

In that example, why was “faraday_middleware” needed? I’m trying to
determine if it’s safe for us to remove that gem from our codebase. It’s
not added directly, but an ex-team member required both gem in initializers
(like in the example in Readme)
On Thu, Apr 30, 2020 at 11:48 PM Harry Doan<EMAIL_ADDRESS>wrote:

Oh. Perhaps I misunderstood the example in Readme. So “faraday_middleware”
was needed for that example alone and not in general?
On Thu, Apr 30, 2020 at 4:51 PM Genki Sugawara<EMAIL_ADDRESS>wrote:

Thank you for the pull request.
However, faraday_middleware is not needed for FaradayMiddleware::AwsSigV4
to work.
I'm not going to add any unnecessary dependencies.
e.g.)
require 'faraday_middleware/aws_sigv4'require 'pp'
conn = Faraday.new(url: 'https://apigateway.us-east-1.amazonaws.com') do |faraday|
faraday.request :aws_sigv4,
service: 'apigateway',
region: 'us-east-1',
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY']
see http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Sigv4/Signer.html
faraday.adapter Faraday.default_adapterend
res = conn.get '/account'
pp res.body
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/winebarrel/faraday_middleware-aws-sigv4/pull/8#issuecomment-622179201,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFH4ANOH3ZMIWYUX35FZGTRPIFGPANCNFSM4MWGMD4Q
.

Thanks for updating the Readme :-)


The new terminal cuts off emoji characters

VSCode Version: Code 1.17.0 (be377c0faf7574a59f84940f593a6849f12e4de7, 2017-10-04T23:45:46.804Z)
OS Version: Windows_NT x64 10.0.15063
Extensions:

Extension
Author (truncated)
Version

vscode-eslint
dba
1.3.2

Steps to Reproduce:

change terminal to cmd.exe
open terminal
run node
console.log('😺')

Result:
cat face cut off vertically (space not wide enough to display whole emoji)
Desired result:
cat face fully displayed (as worked in VS Code prior to 6 Oct 2017)

Reproduces without extensions: Yes/No

This will be fixed in https://github.com/Microsoft/vscode/issues/35188


How to download ImageNet21K?

Thank you for your great work! I want to download ImageNet21k by "the official website (official winter 2021 released version)".But I find these only.Can you tell me how to download detailedly? I'm  looking forward
to your reply.

Can you tell me how to download detailedly?

Hi, thanks for your interest.
You need to login and download this one:

Hi, thanks for your interest. You need to login and download this one:

Thanks for your reply!


change supported node versions to 4 and 6

We should support whatever LTS versions that Node.js still maintains.

:shipit:


Update README.md

Hello team!  Could you guys please check and approve changes in README file.

Awesome!


solve the dependency in cmake

I solve the depencency in cmake, which appears in src/ARTED/FDTD. Please merge this PR.

Thank you @mn2007 san, I think this modification is correct and worth to merging the developer branch.