Not running build tasks after update Ionic

After upgrading the version of the Ionic beta, you are not running the build tasks.

I am using TypeScript.
Your system information:
Cordova CLI: 5.2.0
Gulp version:  CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-alpha.51
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
ios-deploy version: 1.7.0
ios-sim version: 5.0.1
OS: Mac OS X El Capitan
Node Version: v0.12.7
Xcode version: Xcode 7.3 Build version 7D175

@kevinnascimento I guess that the problem might be caused by the fact that you're using the latest Ionic CLI but too old version of the Ionic Framework. I would recommend to you to upgrade your project to the latest version of the framework. Here is a short upgrade guide for beta.4 but since you're upgrading from an older version you may need to perform additional steps (in case that something is not working after the upgrade check out the breaking changes sections in the changelog and perform the required updates).

@iignatov Thanks!


Abstract Shader

The core functionality of the shader needs to be extracted so it can be extended as needed.
Defining and handling GLSL structs needs to be abstracted so developers can easily compose and register new structs.

then we won't need to support update_uniform_struct in the rendering engine. Removing this will help to keep things loosely coupled.

It is primarily update_uniforms that will need to be abstracted. The sampler_map could probably be moved into the shader class as a class property as well.

We could require registering every single uniform value e.g. sampler2D, T_MVP, etc. We can have some sane defaults of course, but this would allow people to easily extend it.
Internally the shader can handle generic uniform types such as int, float, vector, matrix, etc. And custom structs will need to be provided through the uniform registration.
The primary thing here is lighting. So we could have a special class for lights and materials that will allow them to register their uniforms. These configurations should be a 1:1 mapping with the shader files. This would be a simple and clear abstraction. e.g. the BaseLight will define some uniforms and anything that inherits it can define some additional uniforms.

The shader has to keep asking for the active light. Is there a way we can simply give it the thing that's being shaded?

Lights are the only things that have shaders.

material needs to support colors as well as textures. We need to be able to use just colors, textures, or both.

Lights are just shaders with some extra uniform information stored on them. So I could simply make lights inherit from the shader class and then allow them to configure some uniforms.

Add a register_uniform method to the shader class. Then lights can add uniforms directly onto the shader object. This way the shader does not need to access the light or rendering engine to collect the proper uniforms.

Made a ton of progress on writing a macro that will add support for annotating class properties with @[Uniform::Field(key: "somename")].
I just need to finish writing the recursion when other objects are included in the class.
This will set the foundation for decoupling everything from the shader. Once this is done we'll be able to call to_uniform to get a hash of all the uniform keys and values. Then the shader can use this to build out it's uniform keys.

we now have a macro that will serialize a class into uniform values.

eventually the light inheritance should look like this Light->AmbientLight->BaseLight->...

ok I need to get the spot light position working again, otherwise things are mostly done.


spinner never shows up for me

I followed the documentation in https://spin.js.org/ however somehow spinner is not working for me - the spinner never shows up with no error on console.
I am using typescript. Find my html,typescript code as below
My html code
<div id="spin-loader"  class="spinner">
My typescript code
import {Spinner} from 'spin.js';
import 'spin.js/spin.css';

var SPINNER_OPTIONS  =  {
  lines: 13, // The number of lines to draw
  length: 38, // The length of each line
  width: 17, // The line thickness
  radius: 45, // The radius of the inner circle
  scale: 1, // Scales overall size of the spinner
  corners: 1, // Corner roundness (0..1)
  color: '#df30de', // CSS color or array of colors
  //fadeColor: 'transparent', // CSS color or array of colors
  speed: 1, // Rounds per second
  rotate: 0, // The rotation offset
  animation: 'spinner-line-fade-quick', // The CSS animation name for the lines
  direction: 1, // 1: clockwise, -1: counterclockwise
  zIndex: 2e9, // The z-index (defaults to<PHONE_NUMBER>)
  className: 'spinner', // The CSS class to assign to the spinner
  top: '50%', // Top position relative to parent
  left: '50%', // Left position relative to parent
  shadow: '0 0 1px transparent', // Box-shadow for the lines
  position: 'absolute' // Element positioning
};
this.spinner = new Spinner(SPINNER_OPTIONS);
var target=$('#' + 'spin-loader');
this.spinner.spin(target);

Could you please help me?

What is this.spinner for?  Have you tried following the documentation and using document.getElementById instead of jQuery?

Yes, I am inside a class, spinner is my class variable, so that I initialize it once and use it as many times as needed.
Thank you very much, when I tried with "document.getElementById" it worked!


abnormal,increased,decreased brain N-acetyl-L-aspartate level

If this is a request for a new term, please provide us with the following information.

 Include a PubMed ID or URL(s) to refer to any relevant article(s) that provides information about the suggested term).

A. an anomaly in the amount of N-acetyl-L-aspartate, the substrate of aspartoacylase, present in brain tissue
B. an increase in the amount of N-acetyl-L-aspartate, the substrate of aspartoacylase, present in brain tissue
C. a decrease in the amount of N-acetyl-L-aspartate, the substrate of aspartoacylase, present in brain tissue
PMID:10820213; HP:0032273

Any additional notes to clarify the meaning or use of the term. Please provide a PubMed ID or URL(s) for the source of this information.

Suggested parent term (Please look in the hierarchy of the MP using the MP Browser or other browsers such as OLS and find the place in the MP where the new term best fits)

A. abnormal brain morphology (MP:0002152)
B. abnormal brain N-acetyl-L-aspartate level (new term)
C. abnormal brain N-acetyl-L-aspartate level (new term)

If you would like a nanoattribution, please indicate your ORCID id or provide a label such as MGI:sbello (organization, first initial-last name)

ORCID:0000-0003-3645-6803

used the CHEBI term name N-acetyl-L-aspartic acid in the term names
abnormal - MP:0021142
increased - MP:0021143
decreased - MP:0021144
also added MP:0021145 abnormal amino acid derivative level to group these types of terms


remove julien-truffaut/newts

https://github.com/julien-truffaut/newts/commit/2c2163d6a315596c0ce861ee08dd861222689fce
https://github.com/julien-truffaut/Monocle/commit/eb0db599a8f84c17152854ee92ed981e0ac115f1

/cc @julien-truffaut

Good call, I didn't know it was included. Yes it should be removed.

thank you!


Auto Updater for the application release

We need to integrate auto updater with github releases in the app
For the time being, we can utilize tauri default auto updater
Tauri Updater Doc


Add label on machine to differentiate between the tool used for managing machine configurations

Signed-off-by: Waleed Malik<EMAIL_ADDRESS>What this PR does / why we need it:
Add label on machine to differentiate between the tool used for managing machine configurations.
Which issue(s) this PR fixes (optional, in fixes #<issue number> format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Optional Release Note:

NONE

/retest

What's the plan on how to use this label?

I want a metric to differentiate between the machines created using OSM and those without them. This can be used for migration to OSM. Maybe we can even show this at the front-end. It'd be a warning in the view for machine or machine deployment that this machine is using legacy user data.

/lgtm
/approve


Move ember-get-config to dependencies

Didn't realize this needed to be under dependencies.  I already had it included in my other apps and didn't notice until I used it in an app that didn't have it as a dependency.
Follow on to #88

Good catch!

Thanks for the quick response! Much appreciated.

And it's out :)


If a vessel is manually set to Debris, the Kerbalism UI no longer lists any vessels

Manually setting a vessel to Debris causes the Kerbalism UI to no longer list any vessels.   Setting the vessel back to any other type allows the UI to function properly again.  Issue does not seem to affect debris created from decoupling or crashes.

I have this concept of 'invalid vessels', that are completely ignored by the simulation engine: that is, they do not exist as far as this mod is concerned.
The invalid vessels are:

debris
flags
asteroids
unknown objects
dead EVA kerbals
resque mission vessels

However there is a bug here, in the Monitor. It should have 'de-selected' the vessel when it was flagged as debris (thus showing the 'no vessels' string).
Anyway, thanks for the report.

No problem!

fixed here


[SwiftExpressionParser] Take in account pre-ABI bits.

@swift-ci please test

@swift-ci please test

@swift-ci test and merge

hopefully this will unbreak the public bots once and for all.

I'm late to the party, but 👍 from me.


[SPARK-27992][SPARK-28881][PYTHON][2.4] Allow Python to join with connection thread to propagate errors

What changes were proposed in this pull request?
This PR proposes to backport https://github.com/apache/spark/pull/24834 with minimised changes, and the tests added at https://github.com/apache/spark/pull/25594.
https://github.com/apache/spark/pull/24834 was not backported before because basically it targeted a better exception by propagating the exception from JVM.
However, actually this PR fixed another problem accidentally (see  https://github.com/apache/spark/pull/25594 and SPARK-28881). This regression seems introduced by https://github.com/apache/spark/pull/21546.
Root cause is that, seems
https://github.com/apache/spark/blob/23bed0d3c08e03085d3f0c3a7d457eedd30bd67f/sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala#L3370-L3384
runJob with resultHandler seems able to write partial output.
JVM throws an exception but, since the JVM exception is not propagated into Python process, Python process doesn't know if the exception is thrown or not from JVM (it just closes the socket), which results as below:
./bin/pyspark --conf spark.driver.maxResultSize=1m

spark.conf.set("spark.sql.execution.arrow.enabled",True)
spark.range(10000000).toPandas()

Empty DataFrame
Columns: [id]
Index: []

With this change, it lets Python process catches exceptions from JVM.
Why are the changes needed?
It returns incorrect data. And potentially it returns partial results when an exception happens in JVM sides. This is a regression. The codes work fine in Spark 2.3.3.
Does this PR introduce any user-facing change?
Yes.
./bin/pyspark --conf spark.driver.maxResultSize=1m

spark.conf.set("spark.sql.execution.arrow.enabled",True)
spark.range(10000000).toPandas()

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/.../pyspark/sql/dataframe.py", line 2122, in toPandas
    batches = self._collectAsArrow()
  File "/.../pyspark/sql/dataframe.py", line 2184, in _collectAsArrow
    jsocket_auth_server.getResult()  # Join serving thread and raise any exceptions
  File "/.../lib/py4j-0.10.7-src.zip/py4j/java_gateway.py", line 1257, in __call__
  File "/.../pyspark/sql/utils.py", line 63, in deco
    return f(*a, **kw)
  File "/.../lib/py4j-0.10.7-src.zip/py4j/protocol.py", line 328, in get_return_value
py4j.protocol.Py4JJavaError: An error occurred while calling o42.getResult.
: org.apache.spark.SparkException: Exception thrown in awaitResult:
    ...
Caused by: org.apache.spark.SparkException: Job aborted due to stage failure: Total size of serialized results of 1 tasks (6.5 MB) is bigger than spark.driver.maxResultSize (1024.0 KB)

now throws an exception as expected.
How was this patch tested?
Manually as described above. unittest added.

cc @cloud-fan, @gatorsmile, @BryanCutler,
Also cc @dongjoon-hyun, I think we should block Spark 2.4.4 RC2.

Otherwise, we should revert #21546 but ironically seems having a different fix from master will have less risk from my perspective because #21546 is too big and old.

I am going to add a test against SPARK-28881 first into the master branch first. And then port the test into here to target branch-2.4.

Those partial results can actually be reproduced, for instance as below:
spark.conf.set("spark.sql.execution.arrow.enabled", True)
spark.range(0, 330000, 1, 100).toPandas()

...
75897  75897
75898  75898
75899  75899

[75900 rows x 1 columns]

Yes, please.

retest this please

From what I know, this is the last one. Actually, this was reported yesterday .. I am a bit rushing the fixes to unblock another RC.

Between Spark 2.4.3 and RC 2.4.4, there look only one fix:
https://github.com/apache/spark/commit/0246f48979c7365e5c4d86d6d1605f740885743a#diff-e1e1d3d40573127e9ee0480caf1283d6
Which is from you :D.  As a matter of sign-off, +1 for PySpark and SparkR from me; however, sure, it might be matter to have some time and delay to test it out.

retest this please


Added forecasting relativist electrons chapter

I added the chapter based on Forecasting Megaelectron‐Volt Electrons Inside Earth's Outer Radiation Belt: PreMevE 2.0 Based on Supervised Machine Learning Algorithms. The chapter content was incorporated as chapter 8.

Thank you so much for your PR, @raplima! We will review and merge sometime in the next couple weeks.

@mbobra , thank you very much for all the help! I hope it goes smoothly.

Initial review looks good!
@raplima Couple of action items for you if you're willing:

[ ] Create a content/09/ folder and move your contents there and remove your content/08 folder. We have another chapter PR coming in just before this one taking the 08 slot and want to avoid file conflicts.
[ ] Update content/table_of_contents.md for your new chapter 9, following the example of the other chapters
[ ] Update the root/environment.yml file, specifying any package dependencies specific to your code, including version number (we didn't think of this until recently so we're now having to go back and figure out what versions thing need to run for the older chapters, which is, let me tell you, not a lot of fun. Much easier to do it upon initial commit.

@mbobra The notebook in this chapter initially refused to render on github but it worked after a couple tries. Also worked with nbviewer.
Also, we should decide what we want to do about data inclusion (even if file sizes are small). This notebook is really nice in that it already includes the code to download the data fresh via wget. But the commit also includes the data files (.txt). They aren't necessary to run the code and being small and simple, it's kind of nice to have them there for quick viewing. But that won't be the case for bigger data sets. Just something we should think about.

Notebook review:

Great overall!
I really like the links to more information (e.g.,melt and plotly, MinMax scaling)
Also liked that you wrote out equations so that they render nicely
Really liked the introductory text for each section, particularly section 3 and 4
Nice summaries, like just above In [42] "As a recap, ..." and all of section 5

[ ] The plotly plot doesn't render in nbviewer. It might once we process for display in the book proper. But if not, we should see if we can provide a link to the ChartStudio -- that generally plays nice with HTML embedding. That way readers can interact without needing to run the code -- that'd actually be amazing. We'll have to wait until after merge and made live to check if further action is needed.
[ ] Typo just above In [31]: "into three different dataframes acconding" should be "according" (wow.. can't believe I spotted that)
[ ] Figure for In [36] and In [43] not showing up either (same as the previous plotly action)
[ ] If it's easy, can you state either at the beginning or the end how much wall-clock time it takes for you to run this entire notebook, and also how long it takes to run through the expanded version of the paper? Plus whether this was run on a desktop/laptop or cluster. I think this is just of general interest to some readers.

That's it from me on the notebook! Looks so good!

@jmason86 Thank you very much for the review!

Update the root/environment.yml file, specifying any package dependencies specific to your code, including version number (we didn't think of this until recently so we're now having to go back and figure out what versions thing need to run for the older chapters, which is, let me tell you, not a lot of fun. Much easier to do it upon initial commit.

Yea, that seems no fun to track all versions. I added the new packages into environment.yml (I later noticed I forgo to commit and push the files outside my original content/08 folder, I hope I got them all now). But I was unsure if I should add version numbers to packages already listed, so I added the version number only to the "new ones":
    - plotly == 4.4.1
    - tensorflow == 2.3.0

But I added a cell at the end of the notebook ([48]) to print the version numbers for all libraries used:
Library              version
numpy                1.18.5
pandas               1.0.5
matplotlib           3.2.2
seaborn              0.10.1
plotly               4.4.1
scikit-learn         0.22.2.post1
tensorflow           2.3.0

I also added a cell ([47]) to answer:

If it's easy, can you state either at the beginning or the end how much wall-clock time it takes for you to run this entire notebook, and also how long it takes to run through the expanded version of the paper? Plus whether this was run on a desktop/laptop or cluster. I think this is just of general interest to some readers.

But I actually never properly measured how long it takes to run through the expanded version. I recall something around 3 hours, which I included in the notebook as a comment.

Typo just above In [31]: "into three different dataframes acconding" should be "according" (wow.. can't believe I spotted that)

Great catch! Thank you.
Regarding missing plots, I think maybe plotly plots won't render on github unless they're image files rather than html (e.g., here and here). I am not very familiar with nbviewer and ChartStudio, but I'm hoping the merge helps too.
The updated list:

[x]  Create a content/09/ folder and move your contents there and remove your content/08 folder. We have another chapter PR coming in just before this one taking the 08 slot and want to avoid file conflicts.
[x]  Update content/table_of_contents.md for your new chapter 9, following the example of the other chapters
[x]  Update the root/environment.yml file, specifying any package dependencies specific to your code, including version number (we didn't think of this until recently so we're now having to go back and figure out what versions thing need to run for the older chapters, which is, let me tell you, not a lot of fun. Much easier to do it upon initial commit.
[ ]  The plotly plot doesn't render in nbviewer. It might once we process for display in the book proper. But if not, we should see if we can provide a link to the ChartStudio -- that generally plays nice with HTML embedding. That way readers can interact without needing to run the code -- that'd actually be amazing. We'll have to wait until after merge and made live to check if further action is needed.
[x]  Typo just above In [31]: "into three different dataframes acconding" should be "according" (wow.. can't believe I spotted that)
[ ]  Figure for In [36] and In [43] not showing up either (same as the previous plotly action)
[x]  If it's easy, can you state either at the beginning or the end how much wall-clock time it takes for you to run this entire notebook, and also how long it takes to run through the expanded version of the paper? Plus whether this was run on a desktop/laptop or cluster. I think this is just of general interest to some readers.

Awesome! That's it from me then. Will wait for @mbobra to give it a once over before we merge and then we can check if the plots render in the online book (🤞).

Cool! Thank you very much for the help!

Alright, we're nearly ready to merge! We had another chapter come in at the same time. Can you pull, deconflict on the 3 files listed above, and commit?

Alright, we're nearly ready to merge! We had another chapter come in at the same time. Can you pull, deconflict on the 3 files listed below, and commit?

@jmason86 I pulled the changes and resolved the conflicts. Can you approve?

@mbobra and @jmason86, thank you very much for setting it all up!


Nano Clears Output

This is to replace swcarpentry/bc#741. Several boot camp attendees at the recent LBL event complained that every time they used nano it cleared all output from their terminals. @ethanwhite confirmed that nano does this both in Git Bash and in the normal Windows command shell.
Unfortunately some quick searching has not turned up any promising alternatives.

On Sun, Mar 15, 2015 at 04:26:12PM -0700, Greg Wilson wrote:

Closed #22.

Why closed?  We have @ethanwhite confirming that this happens, and
then me saying I can't reproduce it on Linux.  I suspect a bug in
PDCurses, but without access to a Windows box for testing, it's hard
to confirm that suspicion or debug PDCurses.  In any case, it
certainly seems like it's still an issue.


AE2 network connection not working after server restart

I am running version 1.17 with AE2 rv2,beta7 and have an odd issue where AE2 connections need to be broken and replaced on the outside of the compact machine to restore connectivity.  This only seems to happen on server restart.
What can I do to help troubleshoot this?

I did not manage to reproduce this. Are they visually connected?
And do you have an idea on how i could trigger this behavior?

I think it might have been due to the security station.  I'll test further.

I'm having this same issue, running AE2 RV8 and 1.17.

 I thought they weren't active on server restart, but can't say 100% on it.

The issue, for me, manifests as the network appearing to be connected with existing end points showing as active in Walia.  I have to break and re-add the cable on the outside of the Compact Machine to correct this.  I am going to test with the Security Station disabled to see if that might be the culprit.

I am also seeing this behavior....again....I thought this was fixed in a previous build.  Not sure if it is relevant but I am also using the security station (required for wireless) and the cables are going into an upgraded (nether star) machine that is quantum linked with other machines.  Everything is chunkloaded.

Security terminal definitely seems like the cause, as I was also having this issue. Adding an unassigned biometric card appears to have solved the issue though, along with replacing the terminal.

Same as #79, should be resolved with the release of 1.18.

It seems this bug is back in compactmachines3-1.12.2-3.0.12-b215

Compact Machines 3 never had AE2 support.


Use indices values to determine if a indice sits on a tile edge

Fix for https://github.com/loicgasser/quantized-mesh-tile/issues/17
Credits to @thiloSchlemmer
This PR also introduces a small refactoring and tests python 3.6

Coverage increased (+0.2%) to 91.789% when pulling 33444117fd6df9e919b92e4f027d412a16caa92e on bugfix/float-sides into 31a0560ace0b8a611cb316e9f9c4bc101ad5848b on master.


google.protobuf.message.DecodeError: Error parsing message with type 'tensorflow.GraphDef'

I trained the model and saved it, now I am trying to load but unable to do. I have seen in previous post as well, but reference links are not working.
Code
`#load model

with tf.io.gfile.GFile(args.model, "rb") as f:
    graph_def = tf.compat.v1.GraphDef()
    graph_def.ParseFromString(f.read())

# with tf.Graph().as_default() as graph:
generated_image_1, generated_image_2, generated_image_3, = tf.graph_util.import_graph_def(
        graph_def,
        input_map={'input_image' : input_tensor, 'short_edge_1' : short_edge_1, 'short_edge_2' : short_edge_2, 'short_edge_3' : short_edge_3},
        return_elements=['style_subnet/conv-block/resize_conv_1/output:0', 'enhance_subnet/resize_conv_1/output:0', 'refine_subnet/resize_conv_1/output:0'],
        producer_op_list=None
    )`

Error:
`Traceback (most recent call last):
  File "stylize.py", line 97, in <module>
    main()
  File "stylize.py", line 57, in main
    graph_def.ParseFromString(f.read())
google.protobuf.message.DecodeError: Error parsing message with type 'tensorflow.GraphDef'`

Note: I am using,
python = 3.7.6
Tensorflow-gpu=1.15
tensorboard=1.15.0
protobuf =3.19.4

@shubhambagwari ,
We see that you are using tf version 1.15, 1.x is not actively supported, please update to 2.x and let us know if you are facing same issue.

@tilakrayal I updated tensorflow version to 2.7, still not resolved.
File "stylize.py", line 107, in
main()
File "stylize.py", line 52, in main
graph = load_graph(args.model)
File "stylize.py", line 15, in load_graph
graph_def.ParseFromString(f.read())
File "C:\Users\shubham\env\lib\site-packages\google\protobuf\message.py", line 199, in ParseFromString
return self.MergeFromString(serialized)
File "C:\Users\shubham\env\lib\site-packages\google\protobuf\internal\python_message.py", line 1145, in MergeFromString
if self._InternalParse(serialized, 0, length) != length:
File "C:\Users\shubham\env\lib\site-packages\google\protobuf\internal\python_message.py", line 1198, in InternalParse
(data, new_pos) = decoder._DecodeUnknownField(
File "C:\Users\shubham\env\lib\site-packages\google\protobuf\internal\decoder.py", line 993, in _DecodeUnknownField
raise _DecodeError('Wrong wire type in tag.')
google.protobuf.message.DecodeError: Wrong wire type in tag.

@shubhambagwari ,
In order to expedite the trouble-shooting process, could you please provide a complete code snippet  you are using.

Can you please take a look at this SO link with the similar error.It helps.Thanks!

Can you mail me<EMAIL_ADDRESS>I can share gcolab sheet

@shubhambagwari ,
Can you please provide the code and the dependencies here or in colab gist.Thanks!


DE calibration fails when multiple fields are present in database and only a single field model has been filled

Running Commit #a2bb83c (stimelation)
input_ms.select_fields is set to [2] in this case (there are 3 fields available). I have filled DE_MODEL{1,2,3} with data for this field through
crystalball, e.g.
crystalball -sm quickview.<IP_ADDRESS>.SC0.ghz-sources.txt -w detag1.reg -f 2 -o DE_MODEL1<PHONE_NUMBER>.1.1.1ghz.ms

I get
2023-01-15 08:49:57 | INFO | preprocess:transcribe_recipe | The following model sources were obtained from --input-model-recipe:
   Columns: {'DE_MODEL3', 'MODEL_DATA', 'DE_MODEL1', 'DE_MODEL2'}
   Sky Models: None
2023-01-15 08:49:57 | INFO | ms_handler:read_xds_list | Antenna table indicates 62 antennas were present for this observation.
2023-01-15 08:49:57 | INFO | ms_handler:read_xds_list | Polarization table indicates 4 correlations are present in the measurement set - ['XX', 'XY', 'YX', 'YY'].
2023-01-15 08:49:57 | INFO | ms_handler:read_xds_list | Field table indicates phase centre is at ([ 1.08358621 -1.14760053] [ 2.3861727  -1.19545309]).
2023-01-15 08:49:58 | WARNING | reads:_group_datasets | Ignoring 'FLAG_CATEGORY': Unable to infer shape of column 'FLAG_CATEGORY' due to:
'Table DataManager error: Invalid operation: TSM: no array in row 0 of column FLAG_CATEGORY in /data2/bhugo/projects/projects/CXOUH110926/subset_quicklook/15605262<IP_ADDRESS>ghz.ms/table.f18'
2023-01-15 08:49:58 | WARNING | reads:_group_datasets | Ignoring 'DE_MODEL1': Unable to infer shape of column 'DE_MODEL1' due to:
'Table DataManager error: Invalid operation: TSM: no array in row 0 of column DE_MODEL1 in /data2/bhugo/projects/projects/CXOUH110926/subset_quicklook/15605262<IP_ADDRESS>ghz.ms/table.f26'
2023-01-15 08:49:58 | WARNING | reads:_group_datasets | Ignoring 'DE_MODEL3': Unable to infer shape of column 'DE_MODEL3' due to:
'Table DataManager error: Invalid operation: TSM: no array in row 0 of column DE_MODEL3 in /data2/bhugo/projects/projects/CXOUH110926/subset_quicklook/15605262<IP_ADDRESS>ghz.ms/table.f28'
2023-01-15 08:49:58 | WARNING | reads:_group_datasets | Ignoring 'DE_MODEL2': Unable to infer shape of column 'DE_MODEL2' due to:
'Table DataManager error: Invalid operation: TSM: no array in row 0 of column DE_MODEL2 in /data2/bhugo/projects/projects/CXOUH110926/subset_quicklook/15605262<IP_ADDRESS>ghz.ms/table.f27'
2023-01-15 08:49:58 | WARNING | reads:_group_datasets | Ignoring 'FLAG_CATEGORY': Unable to infer shape of column 'FLAG_CATEGORY' due to:
'Table DataManager error: Invalid operation: TSM: no array in row 28365 of column FLAG_CATEGORY in /data2/bhugo/projects/projects/CXOUH110926/subset_quicklook/15605262<IP_ADDRESS>ghz.ms/table.f18'
2023-01-15 08:49:59 | WARNING | reads:_group_datasets | Ignoring 'FLAG_CATEGORY': Unable to infer shape of column 'FLAG_CATEGORY' due to:
'Table DataManager error: Invalid operation: TSM: no array in row 1166747 of column FLAG_CATEGORY in /data2/bhugo/projects/projects/CXOUH110926/subset_quicklook/15605262<IP_ADDRESS>ghz.ms/table.f18'
2023-01-15 08:49:59 | WARNING | reads:_group_datasets | Ignoring 'DE_MODEL1': Unable to infer shape of column 'DE_MODEL1' due to:
'Table DataManager error: Invalid operation: TSM: no array in row 1166747 of column DE_MODEL1 in /data2/bhugo/projects/projects/CXOUH110926/subset_quicklook/15605262<IP_ADDRESS>ghz.ms/table.f26'
2023-01-15 08:49:59 | WARNING | reads:_group_datasets | Ignoring 'DE_MODEL3': Unable to infer shape of column 'DE_MODEL3' due to:
'Table DataManager error: Invalid operation: TSM: no array in row 1166747 of column DE_MODEL3 in /data2/bhugo/projects/projects/CXOUH110926/subset_quicklook/15605262<IP_ADDRESS>ghz.ms/table.f28'
2023-01-15 08:49:59 | WARNING | reads:_group_datasets | Ignoring 'DE_MODEL2': Unable to infer shape of column 'DE_MODEL2' due to:
'Table DataManager error: Invalid operation: TSM: no array in row 1166747 of column DE_MODEL2 in /data2/bhugo/projects/projects/CXOUH110926/subset_quicklook/15605262<IP_ADDRESS>ghz.ms/table.f27'
2023-01-15 08:49:59 | ERROR | goquartical:<module> | An error has been caught in function '<module>', process 'MainProcess' (64516), thread 'MainThread'<PHONE_NUMBER>35456):
Traceback (most recent call last):

> File "/data2/bhugo/projects/projects/CXOUH110926/subset_quicklook/venv3quartical/bin/goquartical", line 8, in <module>
    sys.exit(execute())
    │   │    └ <function execute at 0x7f99d14f2310>
    │   └ <built-in function exit>
    └ <module 'sys' (built-in)>
  File "/data2/bhugo/projects/projects/CXOUH110926/subset_quicklook/venv3quartical/lib/python3.8/site-packages/quartical/executor.py", line 28, in execute
    _execute(stack)
    │        └ <contextlib.ExitStack object at 0x7f9a812639d0>
    └ <function _execute at 0x7f99d14f23a0>
  File "/data2/bhugo/projects/projects/CXOUH110926/subset_quicklook/venv3quartical/lib/python3.8/site-packages/quartical/executor.py", line 100, in _execute
    data_xds_list, ref_xds_list = read_xds_list(model_columns, ms_opts)
                                  │             │              └ BaseConfig_input_ms(path='15605262<IP_ADDRESS>ghz.ms', data_column='CORRECTED_DATA', sigma_column=None, weight_column=None, time_...
                                  │             └ {'DE_MODEL3', 'MODEL_DATA', 'DE_MODEL1', 'DE_MODEL2'}
                                  └ <function read_xds_list at 0x7f992e4b79d0>
  File "/data2/bhugo/projects/projects/CXOUH110926/subset_quicklook/venv3quartical/lib/python3.8/site-packages/quartical/data_handling/ms_handler.py", line 87, in read_xds_list
    assert all(c in available_columns for c in columns), \
                    │                          └ ('TIME', 'INTERVAL', 'ANTENNA1', 'ANTENNA2', 'FEED1', 'FEED2', 'FLAG', 'FLAG_ROW', 'UVW', 'CORRECTED_DATA', 'DE_MODEL3', 'MOD...
                    └ ['INTERVAL', 'ANTENNA2', 'ANTENNA1', 'FLAG', 'STATE_ID', 'UVW', 'FEED2', 'WEIGHT', 'EXPOSURE', 'FLAG_ROW', 'OBSERVATION_ID', ...

AssertionError: One or more columns in: ('TIME', 'INTERVAL', 'ANTENNA1', 'ANTENNA2', 'FEED1', 'FEED2', 'FLAG', 'FLAG_ROW', 'UVW', 'CORRECTED_DATA', 'DE_MODEL3', 'MODEL_DATA', 'DE_MODEL1', 'DE_MODEL2') is not present in the data.

the following shows the columns are correctly filled
CASA <1>: tb.open("15605262<IP_ADDRESS>ghz.ms")
Out[1]: True

CASA <2>: tt = tb.taql("select * from<PHONE_NUMBER>.1.1.1ghz.ms where FIELD_ID==2")

CASA <3>: m = tt.getcol("MODEL_DATA")

CASA <4>: m1 = tt.getcol("DE_MODEL1")

CASA <5>: m2 = tt.getcol("DE_MODEL2")

CASA <6>: m3 = tt.getcol("DE_MODEL3")

CASA <7>: mres = m - m1 - m2 - m3

CASA <8>: mres.shape
Out[8]: (4, 478, 1270752)

full command (quotes needed to run in a z-shell without escaping)
goquartical input_ms.path=15605262<IP_ADDRESS>ghz.ms input_ms.data_column=CORRECTED_DATA input_ms.time_chunk=300s inpu
t_ms.select_fields="[2]" input_model.recipe='MODEL_DATA~DE_MODEL1~DE_MODEL2~DE_MODEL3:DE_MODEL1:DE_MODEL2:DE_MODEL3' output.subtract_di
rections="[1,2,3]" solver.terms="['G','DE']" solver.iter_recipe="[50,50,50,50,50,50]" output.products="[corrected_residual]" output.col
umns="['DECORR_RES']" G.type=phase G.time_interval=64s G.freq_interval=0 DE.type=complex DE.direction_dependent=True DE.time_interval=64s DE.freq_interval=8

I suspect I have no choice but to split out the data into a single field database. I think the selection mechanism is not working  as expected because it is not using TaQL underneath the hood and then tries to infer shapes based on first row? Why not do that from the meta data keyword tables and the coldescriptors and/or nrow?

Yup as I expected splitting to a single field database works. @JSKenyon probably best to implement the selection mechanisms via taql for this reason.

confirmed single field database runs through without a hitch

I made a decision to excise all TAQL from QuartiCal to avoid compatibility issues with the various backends. I appreciate that this does need to be fixed. Could you please point me at the data so that I can reproduce @bennahugo?

I have manage to reproduce - the issue is not with the selection but with the assert statement. The assert is relying on the output of xds_from_storage_ms which will omit the names of columns which are not initialised (i.e. columns which exist but haven't been filled, if the exemplar row it reads is in unfilled region). I am working on a fix.


tests/vntag: Basic test case for VNTAG decode

This PR adds a basic test for VNTAG decoding.

cf https://github.com/OISF/suricata/pull/6085

Continued in #500


Evaluation Error: ReferenceError: renderHeatmapCalendar is not defined

Hi!
I just installed your plugin because it looks really neat and promising. However, as i copy&paste the example from the Readme i get the following error message:
Evaluation Error: ReferenceError: renderHeatmapCalendar is not defined
    at eval (eval at <anonymous> (plugin:dataview), <anonymous>:13:1)
    at DataviewInlineApi.eval (plugin:dataview:19673:16)
    at evalInContext (plugin:dataview:19674:7)
    at asyncEvalInContext (plugin:dataview:19684:32)
    at DataviewJSRenderer.render (plugin:dataview:19705:19)
    at DataviewRefreshableRenderer.maybeRefresh (plugin:dataview:19283:22)
    at t.e.tryTrigger (app://obsidian.md/app.js:1:1027924)
    at t.e.trigger (app://obsidian.md/app.js:1:1027857)
    at t.trigger (app://obsidian.md/app.js:1:1648741)
    at DataviewPlugin.eval (plugin:dataview:20688:76)

I'm using:

Obsidian v1.0.3
Dataview v0.5.47
HeatmapCalendar v0.5.2

I restarted the application multiple times, but the error persists.
Thanks in advance for looking into this :v:

TIL: You have to enable every plugin that you installed because it's disabled by default. After enabling it obviously worked..


feat: add jenkins job select in create-blueprint page

Summary

Does this close any open issues?
Closes #3296

@likyh Since we have Jenkins using a "Job" concept to represent project, lets create models/JenkinsJob.js (modeled after GithubProject for example)
Something along the lines of...
class JenkinsJob {
  constructor(data = {}) {
    this.id = data?.id || null
    this.key = data?.key || this.id || null
    this.name = data?.name || null
    this.value = data?.value || this.name || this.id || null
    this.title = data?.title || this.name || this.id || null
    this.shortTitle = data?.shortTitle || null

    this.useApi = data?.useApi || true
    this.variant = data?.variant || 'job'
  }

  get(property) {
    return this[property]
  }

  set(property, value) {
    this[property] = value
    return this.property
  }

  getConfiguredEntityId() {
    return this.name.toString() || this.id
  }
}

export default JenkinsJob

After creating the model, search for new GitHubProject in the codebase and follow the same pattern to wrap Job objects with the new JenkinsJob model. The model could even be applied in one place at the createListData entry point, but you can follow the existing pattern being used by the other models for now.

@likyh Now that Jenkins won't depend on a one-off custom C#X Configuration key, have you tested Deployment Options workflow for Jenkins to ensure that transformation options are set correctly? (Both Create and Edit Modes)

@likyh Now that Jenkins won't depend on a one-off custom C#X Configuration key, have you tested Deployment Options workflow for Jenkins to ensure that transformation options are set correctly? (Both Create and Edit Modes)

Yes. I run it after create and edit. It works well.


Deserialize recurrences with multiple comma-separated exclusion dates

There's an issue #158 concerning this problem. I ran into it recently too. It looks like a small fix that deserves to be implemented.

I'm reviewing your change right now and am looking into adapting your change for RDATE as well. (As mentioned in #158 )


Azure.Identity fails when using OIDC auth

Package Name:  azure.identity
Package Version:  1.15.0
Operating System: ubuntu 22.04
Python Version:  3.10

Describe the bug
DefaultCredentials and AzureCliCredential fail to work properly in a Github Action that is using OIDC auth
To Reproduce
Steps to reproduce the behavior:

Follow the docs to create a GH repo with OIDC auth
create a long running python code that is using either DefaultCredentials or AzureCliCredential

Expected behavior
Python SDK is able to obtain oAuth token to Azure
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Repro:
name: repro

on:
  workflow_dispatch:

env:
  ARM_CLIENT_ID: xxx
  ARM_SUBSCRIPTION_ID: yyy
  ARM_TENANT_ID: zzz
  ARM_USE_OIDC: true

permissions:
  contents: read
  id-token: write

jobs:
  resourceGroup:
    runs-on:
    - azure-cli
    environment: development
    steps:
    - name: az login
      uses: azure/login@v1
      with:
        client-id: ${{ env.ARM_CLIENT_ID }}
        tenant-id: ${{ env.ARM_TENANT_ID }}
        subscription-id: ${{ env.ARM_SUBSCRIPTION_ID }}

    - run: |
        sudo apt-get update > /dev/null
        sudo -E apt-get install -y python3-dev python3.10-venv
      name: python setup
    - run: python3 -c "from time import sleep; sleep(600)"
      name: python sleep
    - run: |
        python3 -m venv ${{ github.workspace }}/venv
        source ${{ github.workspace }}/venv/bin/activate
        pip3 install azure-identity
        python -c "from azure.identity import AzureCliCredential
        print(AzureCliCredential().get_token('https://management.azure.com/').token)"
      name: python repro

Thank you for the feedback @gleb-boushev-effem . We will investigate and get back to you asap.

Thanks for reaching out.
Could you share some logs or error messages?
It is not quite clear to me of "AzureCliCredential fail to work properly in a Github Action that is using OIDC auth"
There are several possible reasons, e.g. az login did not succeed. The account did not have permission. The scope was not correct. (For ARM, it should be 'https://management.azure.com/.default').


react-native 0.63.3 gradle issue

I created a new fresh project and I installed the package v1.4.1. at the moment to run the command npx react-native run-android thows this error
$ npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 970 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
info Installing the app...

> Configure project :app
Reading env from: .env

> Task :react-native-config:compileDebugJavaWithJavac FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
15 actionable tasks: 15 executed

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-config:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

this is my setup
System:
    OS: macOS 11.0.1
    CPU: (4) x64 Intel(R) Core(TM) i5-6360U CPU @ 2.00GHz
    Memory: 35.44 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.15.1 - ~/.nvm/versions/node/v14.15.1/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.8 - ~/.nvm/versions/node/v14.15.1/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.0 - /Users/aerik/.rvm/rubies/ruby-2.7.1/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 13.6, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
    Android SDK:
      API Levels: 23, 25, 26, 27, 28, 29, 30
      Build Tools: 23.0.1, 23.0.2, 23.0.3, 25.0.0, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 27.0.3, 28.0.2, 28.0.3, 29.0.0, 29.0.2, 30.0.2
      System Images: android-22 | Google APIs Intel x86 Atom, android-25 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.87<IP_ADDRESS>58069
    Xcode: 11.6/11E708 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_121 - /usr/bin/javac
    Python: 3.8.3 - /Users/aerik/anaconda3/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: 0.63.3 => 0.63.3
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Any advice?
Thanks!

@costerik This looks like an issue with JDK after upgrading to Big Sur (macOS 11.0.1). Have you tried this solution to update your Java path?

on my mac big sur SSD, Simply downloading jdk  helped

Add this line in grale.properties
org.gradle.java.home=/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home
It worked for me :)


Diff Editor V2 Planning

Features from old diff editor:

[x] Inline View
[ ] Support audio cues
[ ] Diff Review (for screen readers)
[ ] Arrow gutter buttons to undo changes in side-by-side view
[x] Restoring view state should work
[x] Correct alignment for wrapped lines
[ ] Correct alignment when peek window is opened
[ ] Staging changes should work
[x] First diff should reveal automatically when opening a diff editor

New features:

[ ] Collapsing Unmodified Code

[x] First prototype
[ ] Figure out button names
[ ] Polishing style
[ ] Word-wrap doesn't confuse alignment when there is collapsed unmodified code

[ ] Update diff synchronously with incoming edits
[ ] Moved Code Detection

[x] First prototype
[ ] Typing in a moved code block should work
[ ] Polish Move UX

Under discussion:

[ ] Review Mode as third mode, additionally to Inline/Side-By-Side modes? (currently it is a modal)
[ ] Should Inline-Mode be renamed to Unified-Mode? (IntelliJ and diff use this term)

I'd like to suggest two more features that are in line with the above list but would greatly enhance the process of cleaning up change sets and avoiding committing console.logs or throwaway code.
1. Collapsing Staged Code (along with unchanged code)
This option would allow you to go through your unstaged changes and stage hunk by hunk (similar to Git's interactive staging), until there's nothing left in unstaged that should be part of the commit. I often do this in multiple passes when working on bigger commits; as soon as I'm sure about a part I already stage it, and keep working on the rest. After finally committing you either discard the remaining changes if it was throwaway code, or create additional commits if the goal was to create atomic commits.
2. Inline stage/discard buttons
This would be a perfect addition to Collapsing Unmodified Code. If the changes are shown in hunks already, having one-click buttons to stage/discard the hunk could be really valuable. As we have the 'scissor' bar already with the "show more" buttons, we could show them on the right.
Here's a quick screencap of these two features in GitX:
https://github.com/microsoft/vscode/assets/159500/ca6e78ef-84d0-4b47-9655-c62d757f0602

I like the stage/discard buttons, but I don't think it makes sense to add them to the 'scissor' bar - there could be multiple hunks between two such bars.
I could imagine some per-hunk status buttons though, indicating staged/unstaged/staged modified (maybe a tri-state checkbox?).
I think it is worth to explore this idea in a feature request issue. VS Code would need to compute the hunk-status on its own though, as its diff algorithm is different than gits and gits hunks might be different. I just wonder how you would represent staged hunks that the user already reset in the working tree (thus they wouldn't show when diffing working tree against head).


Add file for DFS (Depth first search) in Java.

📥 Pull Request
Description
Code and documentation for depth first search implemented in Java added!
Fixes #1937
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[X] Documentation update

Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[X] Any dependent changes have been merged and published in downstream modules

@ajay-dhangar
Please review, sir!

Done

Thank you!


added meta tags tittle favicon

changes
-one is added in tittle tag and
-added images and meta baner .
test cases checked

done


Hierarchical Categories in Scenario Editor are Weird

This is a problem that is anticipated, more than tested.
If you create hierarchical categories in Blawx using the "___ is a ___" category block, and you want to add values to attributes that are assigned to the sub-category and the super-category inside Scenario Editor, I think what you need to do is this:

create the object in the sub-category you want.
run the query
go back into the fact editor, and add the sub-category attributes in the sub-category list, and add the super-category attributes in the super-category list.

That seems... as the title says... a little weird.
I'm not sure if it's feasible to have Scenario Editor deal with category relationships. I think not, because at present there is nothing stopping them from being cyclical, and Scenario Editor would have no idea where to start.
It might be feasible to have the ontology endpoint output category relationships, also, by looking for "___ is a ___" category code, and letting the scenario editor add attributes of deemed categories to the category in which the object was created. Pretty complicated, and I'm not sure if that's the right solution to the problem, either. Just the best idea I currently have.

In version 1.4.0-alpha, the category equivalence block has been dropped, and the scenario editor has been revised so that there is nothing stopping you from making the same object in more than one category, giving you access to the attributes for all of them. I think this problem is resolved.


Update to latest gradle tools versions. Enable daemon gradle setting. Update SDK version.

Update to latest gradle tools versions.
Enable daemon gradle setting.
Update SDK version.

LGTM ( sorry for the delay I am still out of country, sometimes having access to internet )


Development: Resolve css selector warning on prod build

Checklist
General

[x] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Client

[x] I strictly followed the client coding and design guidelines.

Motivation and Context

When running npm run webapp:prod the following warning appeared:

Description

By changing the optimisation inlineCrictical to false in the angular.json file the warning is resolved. But it should be noted that this warning is a known issue in Angular 17 and should be resolved in the future. See the following GitHub (external) issues #4306 & #153
Testserver States

[!NOTE]
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked

Review Progress

Code Review

[ ] Code Review 1
[ ] Code Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage
unchanged

What exactly does this option regulate? I don't think we should turn off some optimization just to silence a warning message.

What exactly does this option regulate? I don't think we should turn off some optimization just to silence a warning message.

I investigated this issue on @krusche's behalf. What the optimisation does is explained well here css-inlining
But independent of the issue there are also voices against this optimisation in general. E.g. Disable Inline critical CSS
@Strohgelaender what is your view on that?

Let's test how the First Contentful Paint changes when setting inlineCritical to false.
We should also investigate how much css is actually inlined and whether we can remove unsafe-inline from the SecurityConfiguration without getting any other issues. Then, we can decide better how we want to move forward with this change

A quick test on production shows that the index.html is 8.5kB large and takes 48ms to load from the server. It includes around 680 lines of inline CSS, mostly colors, but also a few other styles

A quick test on production shows that the index.html is 8.5kB large and takes 48ms to load from the server.


I spiked implementing mappings with go templates. Something really nice is that there is a builtin function for url encoding which is essential when templating URLs especially when the values are likely to contain special characters.
https://github.com/projectriff/bindings/blob/c85d521cf92a69876ea0dafc5bca3f2ec3da773c/samples/service-binding.yaml#L17-L21


Sequential model parallel with multi nodes regarding --num_nodes

Sequential model parallel with multi nodes regarding --num_nodes
Please reproduce using the BoringModel
8 MP with 2 DP as follow.
# node 0
MASTER_ADDR=XXX.XXX.XXX.1 MASTER_PORT=7874 NODE_RANK=0 python train.py --gpus 8 --accelerator ddp  ....  --use_ddp_sequential --num_nodes 2

# node 1
MASTER_ADDR=XXX.XXX.XXX.1 MASTER_PORT=7874 NODE_RANK=1 python train.py --gpus 8 --accelerator ddp  ....  --use_ddp_sequential --num_nodes 2

It produces error as follow.
File "/home/hey/.local/lib/python3.7/site-packages/pytorch_lightning/plugins/ddp_sequential_plugin.py", line 233, in _infer_check_num_gpus
    "Pipe currently only supports splitting the module onto all available GPUs"

So I edited _infer_check_num_gpus as follow.
https://github.com/haven-jeon/pytorch-lightning/commit/c96f14470576356c059710ac6288fc6d9a1e22f6
After that, learning proceeds normally.
Environment

PyTorch Version (e.g., 1.0): 1.6.0
OS (e.g., Linux): CentOS 7
How you installed PyTorch (conda, pip, source):  pip
Build command you used (if compiling from source): pip install -U .
Python version: 3.7
CUDA/cuDNN version: 10.1
GPU models and configuration: P40
Any other relevant information:

@haven-jeon mind send it as PR? :]

@haven-jeon mind send it as PR? :]

Sure! 😃

@haven-jeon mind send it as PR? :]

Sure! 😃


Estimate how many times we hit the alma api.

We want to see how many times the alma api is hit in marc_liberation for any given job.
It would be good to see how many times the marc_liberation queries voyager based on the various endpoints and drive an estimate from that.
Once we get a week's worth of stats, use them in combination with the number of (anticipated) API calls per controller action to produce an estimate. Compare with the API limits.

We can track hits to our API with this: https://app.datadoghq.com/logs/analytics?agg_q=%40controller%2C%40action%2C%40format&cols=host%2Cservice%2C%40http.url_details.queryString.q%2C%40action%2C%40format&from_ts=1604271119706&index=&live=true&messageDisplay=inline&query=source%3Aruby+service%3Abibdata+-%40controller%3A"Locations%3A%3AHoldingLocationsController"+-%40controller%3A"Locations%3A%3ADeliveryLocationsController"+-%40controller%3A"HighVoltage%3A%3APagesController"++-%40controller%3A"Users%3A%3AOmniauthCallbacksController"&stream_sort=desc&to_ts=1606863119706&top_n=10&viz=query_table

I'm not sure how this will work now that we have removed the voyager helpers in the alma branch. My first thought was to merge this in the main branch to track the voyager calls but since we rebase the alma branch with the main branch this will error because it will no longer have the voyager helpers connection.

We need to figure out the Alma API limits and compare them to datadog limits in that timeframe and see if we have a problem.

We need to figure out the Alma API limits and compare them to datadog limits in that timeframe and see if we have a problem.

The current limit is 300,000 per day.

The current limit is 300,000 per day.

We may also need to make a datadog report for OL endpoints which use voyager directoy for patron account interactions.

We may also need to make a datadog report for OL endpoints which use voyager directoy for patron account interactions.

I followed @tpendragon solution and made a start with https://app.datadoghq.com/logs/analytics?agg_m=count&agg_q=%40controller%2C%40action%2C%40format&agg_t=count&analyticsOptions=["bars"%2C"cool"%2Cnull%2Cnull%2C"value"]&from_ts=1610402629076&index=&live=true&query=service%3Abibdata+host%3Abibdata-alma-staging1++-controller%3A"HighVoltage%3A%3APagesController"&to_ts=1610403529076&top_n=10&top_o=top&viz=query_table

I followed @tpendragon solution and made a start with https://app.datadoghq.com/logs/analytics?agg_m=count&agg_q=%40controller%2C%40action%2C%40format&agg_t=count&analyticsOptions=["bars"%2C"cool"%2Cnull%2Cnull%2C"value"]&from_ts=1610402629076&index=&live=true&query=service%3Abibdata+host%3Abibdata-alma-staging1++-controller%3A"HighVoltage%3A%3APagesController"&to_ts=1610403529076&top_n=10&top_o=top&viz=query_table

ExLibris documentation of the limits: https://developers.exlibrisgroup.com/alma/apis/#threshold

Work on this issue is happening in https://docs.google.com/spreadsheets/d/1LmwK6s2IK6L98-DY3JIHHohUQcqYYa7qupZIJHv7Pu8/edit#gid=0


Reference and Dereference application in inprocess application.

Take a reference to the application in each of the handlers such that when a request is using the application, the application won't be destroyed.
Part of fixing #550 and #548. We also need to implement shutdown with pending on each request.

Closing as it is part of #576


feat: support for ethereum proxies (EIP-1967, OpenZeppelin)

Fixes #8
Proxy contracts can now be detected:

Hey @carletex lmk if you had a chance to review this 😃

Hi @carletex, any update here?


Handle cancellation for server middleware

I think this will solve the issue of missing attributes on the spans for https://github.com/tpolecat/natchez-http4s/issues/19.  Whether this is an error maybe is up for debate, but based on when this can happen timeout etc, I'd expect this to be 'error: true' in the attributes on the span where it's elevated to that level.  The cancellation tag should also help with finding this specifically in any of the backends.
Happy to fix anything folk find wrong.

I personally think it should have the error tag too 👍🏻 This is the behaviour I was expecting from #19, awesome


sec

sec

I don't use this library (or PHP) anymore, so I have no plans to update it, but I could review/merge a PR.

I might update it shortly, been suddely swamped with other things -- everyone has been patched with something silly for now -- could of caused like $2m+ damage lol.


Block until a connection is available

Hello!
I just today found this repo and I'm loving it so far. I have one small gripe however.  This causes problems though as wttrbar tries to get data back before a connection is established once I open the laptop lid.
I believe the best solution for this is to block the main thread until a connection is established, so that the get call can finish successfully.
For now, I have
"custom/weather": {
        "format": "{}° ",
        "tooltip": true,
        "interval": 3600,
        "exec": "exit=101; while [ $exit = 101 ]; do wttrbar --main-indicator temp_F --fahrenheit; exit=$(echo $?); sleep 1; done",
        "return-type": "json"
    },

in my waybar config, which works, but it's inefficient.
Thanks!

should be fixed now following your PR, thanks again!


Rename copyright to credit on Location

We need to rename copyright to credit on Locations.
This is to make it a less strong statement, as though we are often the licensor of the digital image, we don't want people to think we are asserting ourselves as copyright holder of the work.

Needs a reindex before it can be closed.

Reindex is underway.


linera_core::client refactor

Motivation

Proposal

Test Plan

Release Plan

Need to bump the major/minor version number in the next release of the crates.
Need to update the developer manual.
This PR is adding or removing Cargo features.
Release is blocked and/or tracked by other issues (see links below)

Links

reviewer checklist

This PR was broken down into:

https://github.com/linera-io/linera-protocol/pull/2100
https://github.com/linera-io/linera-protocol/pull/2120
https://github.com/linera-io/linera-protocol/pull/2121
https://github.com/linera-io/linera-protocol/pull/2122
https://github.com/linera-io/linera-protocol/pull/2125
https://github.com/linera-io/linera-protocol/pull/2128
https://github.com/linera-io/linera-protocol/pull/2133
https://github.com/linera-io/linera-protocol/pull/2170
https://github.com/linera-io/linera-protocol/pull/2194


KeplerTargetPixelFileFactory does not output a WCS to the new TPF

The KeplerTargetPixelFileFactory and method from_fits_images needs to take the WCS solution of the input reference image, and send it to the output target pixel file. It is instead sending a null solution. It looks to me like the ext_info dictionary is only currently holding 1CRV5P and 2CRV5P, whereas it needs more keys to encapsulate the WCS. I will elaborate more on this later with some examples.

Thanks for reporting this issue @amcody! :+1:
A good first step towards resolving this issue could be to open a PR with a unit test that fails.  Then, when we push the solution to the same PR, we can verify that the bug is resolved and ensure that it is never re-introduced.
(Not every bug can be reproduced into a simple unit test, but it is worth trying -- wanna have a go?)


Mention module concatenation possibilities with TS1.8

In the section Namespaces and Modules you mention in the last sentence that it is not possible to concatenate modules to a single JS-File. However with TypeScript 1.8 it is possible to use the compiler switch --outFile together with --module amd or --module system.

Looks like the lint failed due to trailing spaces. Would you mind fixing that up?

lint works now. I changed the wording to you version.
To what site would you like to link? To the Compiler Options page? There are no anchors in that document... let's see, maybe I create another merge request ;-)

@ksrimmy looks good - one thing I'll point out is that the email address your commits used aren't associated with your GitHub account. If it doesn't matter, I can pull this in, but you might you might want to rewrite the commit with a git rebase, using git commit --amend --author "..." along the way. Alternatively, you can associate the email address for those commits with GitHub.
Let me know which you'd prefer.

Okay, I changed the message and used git push --force.
Is there a better option beside git push --force to change (hide) an accidentally pushed email address?

Well you can create a new branch and GitHub now allows you to change the branch for a given PR, but --force has always been my weapon of choice. 😄
Thanks for the PR!


refactor: Use tsup to support esm

Fix: #6

@dusionlike I change build tool to rollup, which can generate valid dts file for mjs and cjs


sampling direction & message passing direction  & directed graph

Hi
I feel some confused，for this directed graph

for the node A，NeighborSampler.sample will sampling the N(A) = {B,C} ?
and the message passing process will aggregate A_embedd = aggr(B,C) ?
so the sampling direction is not the same as the aggregation direction ?
But, we hope that  the sampling direction N(A) = {X,Y}，then the message passing direction will aggregation A_embedd = aggr(X,Y)
Where did I get it wrong？

If you want to compute a node embedding for node A, a neighbor sampler will need to sample neighbors that point to its node, i.e., node X and Y. As such, N(A) = {B, C} is correct, where N(A) hold all the nodes that point to node A.

If you want to compute a node embedding for node A, a neighbor sampler will need to sample neighbors that point to its node, i.e., node X and Y. As such, N(A) = {B, C} is correct, where N(A) hold all the nodes that point to node A.

Thanks for reply!
I didn't understand，you say  N(A) hold all the nodes that point to node A, but N(A) = {B, C} is correct?
May be N(A) = {X,Y} is correct?

Yes, this was a typo :) I fixed it above.

Yes, this was a typo :) I fixed it above.
Edit: It seems that I misunderstood your issue. Can you show me an example where NeighborSampler will sample nodes B, C rather than nodes X, Y?

Sorry, I just read your examples/ graph_sage_unsup.py to confirm how the sampling direction of the NeighborSampler.sample function is implemented

So everything is correct?

So everything is correct?

I'm not sure. I need to study how your underlying NeighborSampler.sample source code is implemented.
The above issue is just a doubt for me .

So everything is correct?

I check the result, it's correct!! :)
thks!


adc f1

Any thoughts on DMA field? If you want to leave it with EXTSEL and resolve later/with DMA3 that's fine and we can merge now, or it could be added just for ADC1 for now.

Done. Forget. Sorry.

Great, thanks!
bors r+


Add contributors

请在此留下你的 crowdin id

jerrold0607

w_Y_

@all-contributors please add @jerroldgao for translation

@all-contributors please add @wwbweibo for translation

WisWang

@all-contributors please add @WisWang for translation

geffzhang

@all-contributors please add @geffzhang for translation

@all-contributors  please add @zhi-gang-sunfor translation

@all-contributors please add @zhi-gang-sun for translation

https://github.com/all-contributors please add @liuyangc3 for translation

@all-contributors please add @liuyangc3 for translation

@all-contributors please add @miaobuao for translation


#193 Theme added(Winter)

Thank you for the new theme.  The colors are great for a Winter theme.

Thank you for pointing the changes, I just didn't notice it. I will make the change asap.


Avoid the clone in typechecking

Category
Internal refactors/changes
Describe the feature you'd like to request
Avoid the clone of expressions in cedar-policy-core/src/entities/conformance.rs, perhaps by converting toBorrowedRestrictedExpr instead of RestrictedExpr
Describe alternatives you've considered
Status quo
Additional context
No response
Is this something that you'd be interested in working on?

[X] 👋 I may be able to implement this feature request
[ ] ⚠ This feature might incur a breaking change

I believe this is referring to this clone.  Note that PartialValue may contain a full Expr in the Residual case.  But, based on comments in that function, we only call this function with values which are entity attributes.  This means we shouldn't have large Exprs hidden in these PartialValues, so this clone() is not a large cost and not worth optimizing.


mapToClass does it work for class properties too?

I have a class structure like this
export default class Message {
    id: string = "";
    media: Array<Media> = [];
}

export default class Media {
    thumbKey: string = ""

    isImage = (): boolean => {
        return this.mimeType.includes("image");
    }

}

I am creating tables like this
export default class MyDB extends Dexie {

message!: Table<Message, string>;

private constructor() {
    super('my-db');

    this.version(1).stores({
      message: 'id',
    });

    this.message.mapToClass(Message);
  }
}

now when I query
let message. = table.message.get("id")

message.media[0]. isImage()

the media is simple object array instead of being of class type Media. and the isImage() function call fails.
so does mapToClass take class properties into account?

No it only maps resulting objects to become instances of given class without executing its constructor. It usesObject.create(MappedClass.prototype) instead of new MappedClass().

As there is nothing more to this, closing the issue.
And more so, this sort of property based on classes should get mapped too, maybe in a later version of dixie.
for now, someone using mapToClass this caveat should be documented. ( I am not that well versed with JS nuances).
for now dixie has all the features that I want, going to deploy it soon to prod in use.

As there is nothing more to this, closing the issue. And more so, this sort of property based on classes should get mapped too, maybe in a later version of dixie. for now, someone using mapToClass this caveat should be documented. ( I am not that well versed with JS nuances). for now dixie has all the features that I want, going to deploy it soon to prod in use.

Thanks for the feedback. The reason behind the current behavior is to reserve constructors for the job of instanciating entities from application code using new() and let the DB-backed instances only return what is in the DB. If we'd expect a default constructor to be in place, we'd put a requirement on the app code to not declare parameterized constructors, or at least to always support the case when constructor is called without parameters.
But I think you have a point and there might be a future version that will use your approach.

It seems that using the example of Typescript with Mapped Classes on version 4 (found here https://dexie.org/docs/Typescript),  one cannot create a new instance of the classes (const myClass = new MyClass()). It throws a TypeError at new Entity (dexie.js:1191:26) from extending Entity. Is this expected, or in these cases is it advised to use the "old" way?

It seems that using the example of Typescript with Mapped Classes on version 4 (found here https://dexie.org/docs/Typescript), one cannot create a new instance of the classes (const myClass = new MyClass()). It throws a TypeError at new Entity (dexie.js:1191:26) from extending Entity. Is this expected, or in these cases is it advised to use the "old" way?

It's intendedly throwing because Entity subclasses are only meant to be new:ed by Dexie and not by application code. To add new entries, use db.myTable.add({...PoJo props}) and not by new:ing them. To obtain an instance of the entity, one must add it and then get it from DB to get the instance.


Added wrapping span to search dialog labels to make them easier to style

At present it is impossible to style the label of the search dialog without affecting the other elements also.  For instance, if I want to position the buttons to the right and the label to the left, I cannot do this, even with flex box, as CSS doesn't let me target a text node.
Adding a wrapping element around the label text allows them to be styled easily without changing any existing functionality.

That seems useful and harmless. Merged.


updated twitter card and open graph and added semantic markup

Added support for schema.org semantic (JSON-LD) markup and tweaked the open graph (facebook) and twitter card support to include article descriptions and images.

👍


KOGITO-4337: PostgreSQL persistence support for Job Service

Jira: https://issues.redhat.com/browse/KOGITO-4337
Description: PostgreSQL persistence support for Job Service. Build three separate artifacts for in-memory, Infinispan and PostgreSQL.
Many thanks for submitting your Pull Request :heart:!
Please make sure that your PR meets the following requirements:

[x] You have read the contributors guide
[x] Your code is properly formatted according to this configuration
[x] Pull Request title is properly formatted: KOGITO-XYZ Subject
[x] Pull Request title contains the target branch if not targeting master: [0.9.x] KOGITO-XYZ Subject
[x] Pull Request contains link to the JIRA issue
[x] Pull Request contains link to any dependent or related Pull Request
[x] Pull Request contains description of the issue
[x] Pull Request does not include fixes for issues other than the main ticket

How to retest this PR or trigger a specific build:

Pull Request
Please add comment: Jenkins retest this

Quarkus LTS checks
Please add comment: Jenkins run LTS

Full Kogito testing (with cloud images and operator BDD testing)
Please add comment: Jenkins run BDD
This check should be used only if a big change is done as it takes time to run, need resources and one full BDD tests check can be done at a time ...

The Linux check has failed. Please check the logs.

The Linux check has failed. Please check the logs.

Jenkins retest this

The Linux check is successful.

The Linux check is successful.

The Linux check is successful.

The Linux check is successful.

The Linux check is successful.

The Linux check has failed. Please check the logs.

Jenkins retest this

The Linux check has failed. Please check the logs.

The Linux check has failed. Please check the logs.

Jenkins retest this

The Linux check has failed. Please check the logs.

Jenkins retest this

Jenkins retest please

jenkins please retest this

jenkins please retest this

jenkins please retest this

The Linux check has failed. Please check the logs.

Jenkins retest this

The Linux check has failed. Please check the logs.

Jenkins retest this

The Linux check has failed. Please check the logs.

The Linux check has failed. Please check the logs.

jenkins please retest this

The Linux check has failed. Please check the logs.

jenkins please retest this

The Linux check has failed. Please check the logs.

jenkins please retest this

The Linux check has failed. Please check the logs.

jenkins please retest this

jenkins please retest this

The Linux check has failed. Please check the logs.

jenkins retest this

The Linux check has failed. Please check the logs.

Jenkins retest this

The Linux check has failed. Please check the logs.

jenkins please retest this

The Linux check has failed. Please check the logs.

jenkins please retest this

The Linux check has failed. Please check the logs.

The Linux check is successful.


fixes PlantSeg crash on apple silicon #273

I was able to reproduce this in the plantseg env (but not in a clean env)
The issue is the order of import of numpy/torch, and the fact that we are reading the state dict from file.
This will fail
import numpy as np
import torch

model = torch.nn.Conv3d(64, 32, kernel_size=(3, 3, 3))

torch.save(model.state_dict(), "model.pth")
model.load_state_dict(torch.load("model.pth"))

These two will work
import torch
import numpy as np

model = torch.nn.Conv3d(64, 32, kernel_size=(3, 3, 3))

torch.save(model.state_dict(), "model.pth")
model.load_state_dict(torch.load("model.pth"))

import numpy as np
import torch

model = torch.nn.Conv3d(64, 32, kernel_size=(3, 3, 3))

state_dict = model.state_dict()
model.load_state_dict(state_dict)

Solution
For now importing torch in the __init__.py works and has no drawbacks.

Looks like the pre-commit does not like this patch 🤣

Hey @lorenzocerrone
I documented the thing here: https://kreshuklab.github.io/plant-seg/chapters/getting_started/contributing/#before-submitting-a-pull-request
Hope it's not too annoying to you.
If it's a squash-and-merge commit, then just proceed. Otherwise you can do something like git rebase -i HEAD~4 and squash the commits from pre-commit.ci, or just force push a new version with the fix.

Looks like the pre-commit does not like this patch 🤣

Oh @lorenzocerrone I see what you mean. You need to do __all__ = [torch] or something to tell yourself that this import is not useless, or if you just want to tell Ruff that this is not useless, do:    # noqa: F401 on this line.

Hey @lorenzocerrone,
I noticed one thing: For macOS,there is no NVIDIA GPUs and therefore should not use -c nvidia, did you install with:
mamba create -n plant-seg -c pytorch -c nvidia -c conda-forge pytorch pytorch-cuda=12.1 pyqt plant-seg --no-channel-priority

This will not work because for macOS the official PyTorch should be:
conda install pytorch::pytorch torchvision torchaudio -c pytorch

So your installation script would be:
mamba create -n plant-seg -c pytorch -c conda-forge pytorch::pytorch pytorch-cuda=12.1 pyqt plant-seg --no-channel-priority

Please try this and see if the problem is solved for you!

I already used the correct mamba installation (pytorch-cuda=12.1 should also be removed). The bug persists no matter how I install plantseg, but I can not reproduce it in a clean env, so it's a bit weird.

Hey Lorenzo, since nothing fixes the environment you need (and PlantSeg is already not too fast so import torch doesn't really hurt the user experience anyways), let's squash and merge this?

I have one more question: What additional components does the unclean environment include? Or do you mean all macOS users will encounter #273 after launching it once?

I think I understood: In PlantSeg env this happens, while in a Torch + NumPy only env this doesn't.


2402 Add high level project description to README

Could you add a description of the weights sub package for completeness? A note on the manifest file would be uesful too

There's a plan to refactor the weights subpackage into a single module called "design_weights", so this should clarify what that part of the package is for
Added some info on the Manifest here


Account for new redirected response security restriction

CC: @gauntface @addyosmani as an FYI.
Library Affected:
sw-precaching
Browser & Platform:
Chrome 59+, Firefox
Issue or Feature Request Description:
There's background at https://bugs.chromium.org/p/chromium/issues/detail?id=658249
There's a new security restriction in place that adds in a Response.redirected field to indicate whether a response came from an HTTP 3xx redirect. If so, that response can't be used to fulfill any request that is made with a redirect === 'manual'. All navigation requests have redirect === 'manual'.
In practice, this is most likely to come up with precaching, since those responses are what's normally going to be used for navigations, and since you're most likely to pass in a specific URL that results in a redirect in that use case. (Passing in /index.html, which then gets redirected by a server to /, is common.)
There's a discussion of how this is going to be addressed in sw-precache at https://github.com/GoogleChrome/sw-precache/issues/220#issuecomment-274837496, and whatever approach is taken there should be carried over to sw-precaching, here: https://github.com/GoogleChrome/sw-helpers/blob/master/packages/sw-precaching/src/lib/controllers/base-cache-manager.js#L121

How does this differ from the last PR you took for redirects?
I'm fairly concerned that I can't reproduce any of these edge cases and it feels somewhat blind to keep on tweaking these behaviors without something that shows what is broken.

This one is actually based on a documented change in behavior with a clear reproduction that was provided in the updated sw-precache bug. Unfortunately, the last change was a red herring solution based on a comment from someone else on that bug. I have the original reporter confirming the change in that sw-precache bug thread.
The underlying change is https://bugs.chromium.org/p/chromium/issues/detail?id=658249, which has already gone live in Firefox, and will go live in Chrome 59.
The additional reproduction info is at https://github.com/GoogleChrome/sw-precache/issues/220#issuecomment-274264501, which was made more useful because Chrome 57 started issuing warnings explaining what was going on in advance of the Chrome 59 breakage.
So I have a good feeling for why it's required, and that's the explanation for why Firefox behaves differently than Chrome today.

Sorry what are the reproduction steps?
I understand https://hoverboard-experimental.firebaseapp.com/ that is causing an error with redirects somehow but Linux has Chrome 57, OS X Canary is Chrome 58 and I'm not seeing any error messages regarding redirects I'm seeing the empty screen on Firefox.
I'm not actually able to see any of the errors mentioned in Chrome.
I'll leave you to follow the thread but if this can't be written into a unit test this is going to be a never ending tail chase (This is the third redirect issue that's been raised between sw-toolbox and sw-precache and I don't think any test has captured the problems people have been hitting).

I feel guilty about the lack of unit tests! 😦
The reproduction steps are to cache a Response that has .redirected set to true, and then later on pass that Response to fetchEvent.respondWith(), when fetchEvent.request.mode === 'navigation'.
https://bugs.chromium.org/p/chromium/issues/detail?id=658249, which I wasn't aware of until today, has a more detailed explanation for the underlying browser change, along with an explanation of those same reproduction steps.
Firefox was ahead of the curve in enforcing this restriction, and reports of Firefox-specific errors motivated the original attempt at a fix. Firefox's error message wasn't as detailed as the Chrome error message. It's only just now that Chrome 57 has started warning about it that it became clear what was going on and I found the underlying issues.
https://hoverboard-experimental.firebaseapp.com/ has been redeployed throughout the day to try out various fixes in sw-precache. It's working in everything except Firefox right now, due to https://github.com/GoogleChrome/sw-precache/issues/220#issuecomment-274908690, but that will be taken care of as well.


missing ingressclass configuration for ingress

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What version of the Traefik's Helm Chart are you using?
10.15.0
What version of Traefik are you using?
2.6.1
What did you do?
installed and configured the ingressclass but supposed that in the Ingress provider could be possibile to specify the ingressclass value.
What did you see instead?
The ingresses did not get picked up by ingress controller
see this bug:
https://github.com/traefik/traefik/issues/9008
What is your environment & configuration?
rancher 2.6.1 kuberentes 1.21.7
Additional Information
It could be useful not to have to add the additionalArguments but to specify the ingressClass in the place where is more intuitive in helm values = providers.kubernetesingress.ingressclass

Hello @gioppoluca,
Thanks for your interest in Traefik,
We already support an ingressClass option for the kubernetesIngress provider as described here https://github.com/traefik/traefik-helm-chart/blob/master/traefik/values.yaml#L145.
According to this, we will close this issue.


[bug]: Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

Describe the bug
So I have been getting this error in my command line as soon as I installed fulldev-ui
Error:
Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

More info: https://sass-lang.com/d/legacy-js-api

I am having this only with the combination of postcss, if I use post css as is, I have no errors, If I use just the ui library I have no errors, I am only getting errors with the combination of using both of them
This is my postcss.config.cjs
module.exports = {
  plugin: [
    require("postcss-preset-env")({
      stage: 0,
    }),
  ],
};

Affected component/components/documentation
None
How to reproduce

Setup a basic empty astro project with the recommended settings
Use bun as package manager
install the following

bun install postcss postcss-preset-env

Setup the postcss with this config

module.exports = {
  plugin: [
    require("postcss-preset-env")({
      stage: 0,
    }),
  ],
};

Install fulldev-ui and copy the header component from the building blocks

---
import Header from 'fulldev-ui/components/Header.astro'
import HtmlWrapper from "../layouts/HtmlWrapper.astro"
---
<HtmlWrapper title="Home" desc="">
	<Header
  heading="Some Blog by Jagrit"
  links={[
		{
			text: 'Docs',
      href: '/overview/introduction/',
    },
    {
			text: 'Github',
      href: 'https://github.com/fulldotdev/ui',
    },
  ]}
  buttons={[
		{
			text: 'Docs',
      href: '/overview/introduction/',
    },
    {
			title: 'X / Twitter',
      icon: 'brand-x',
      href: 'https://x.com/silveltm',
      target: '_blank',
    },
  ]}
  frame="fill"
  position="relative"
	/>
</HtmlWrapper>

Logs
It's just a warning in the console in my VS Code

Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

More info: https://sass-lang.com/d/legacy-js-api

Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

More info: https://sass-lang.com/d/legacy-js-api

Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

More info: https://sass-lang.com/d/legacy-js-api

Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

More info: https://sass-lang.com/d/legacy-js-api

Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

More info: https://sass-lang.com/d/legacy-js-api

Before submitting

[X] I've made research efforts and searched the documentation
[X] I've searched for existing issues

Thanks for raising the issue @JagritGumber
We got this warning recently when we we updated the dependencies in the project. We don't use any Sass api's ourselves, so this is probably something caused by how Vite works with the new version of sass.
We will look into it, but you don't have to worry about it causing problems in the meantime, just a warning.

I've found this issue in the meantime.
We have fixed this by using this setting:
  css: {
    preprocessorOptions: {
      scss: {
        api: 'modern',
      },
    },
  }

Only thing is that we can only do this in the astro integration. I still want everything to work fine without a need for the integration, so for now I downgraded sass to v1.78.0.
This will remove the warning and also makes the components usable without the astro integration. We plan to add more options etc via the integration, improve the documentation on it, and test/support the astro add command. When we do this and using the integration will be easier, we will bump up sass again.


Fix CRS being WKT instead of PROJ.4

See https://github.com/mapbox/rasterio/blob/master/CHANGES.txt#L7 for the change in rasterio 1.0.14 and my conda-forge issue where I discovered this: https://github.com/conda-forge/gdal-feedstock/issues/262
This was put in a bugfix (micro version number) release of rasterio which made it harder to discover. @sgillies @snowman2 I saw that you brought this up and how it affected xarray (https://rasterio.groups.io/g/dev/message/68). If this pull request is a duplicate of a fix one of you made let me know.
To xarray devs, if I need to make any other changes (whats-new?) also let me know.

[ ] Closes #xxxx
[ ] Tests added
[ ] Fully documented, including whats-new.rst for all changes and api.rst for new API

Does this need a whats-new entry?

Does this need a whats-new entry?

Yes, I would recommend that here -- especially for cases where we're changing behavior without a deprecation cycle (which is sometime the best path forward)

This PR isn't changing any functionality. It is making the same functionality available with newer versions of rasterio.

OK, good point. I do still try to lean towards adding notes about bug fixes in "what's new" but it isn't strictly required.

@shoyer Added something to the whats-new. Let me know if anything needs changing.

thanks David, that looks great

@shoyer Any idea when a 0.11.4 or 0.12 will be released? I'm trying to work around some other rasterio bugs and would like to remove the restriction on the rasterio version used in my CI tests, but that requires this PR.

Hopefully quite soon! see https://github.com/pydata/xarray/pull/2777 for
current status
On Tue, Mar 12, 2019 at 10:31 AM David Hoese<EMAIL_ADDRESS>wrote:

@shoyer https://github.com/shoyer Any idea when a 0.11.4 or 0.12 will
be released? I'm trying to work around some other rasterio bugs and would
like to remove the restriction on the rasterio version used in my CI tests,
but that requires this PR.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pydata/xarray/pull/2715#issuecomment-472102830, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABKS1hs0lknMUSnOP9A_Qw0124V8HZllks5vV-SGgaJpZM4aUQen
.


cut_rows affects the color of mp.Numbers

if I didnt use cut_rows:
sb = mp.StackBar(t_p*100, colors=['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd', '#c49c94', '#f7b6d2', '#c7c7c7', '#dbdb8d', '#9edae5'], width=.8, orient="h")
gc_numbers = mp.Numbers(group_count, color=['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd', '#c49c94', '#f7b6d2', '#c7c7c7', '#dbdb8d', '#9edae5'])
cb = ma.ClusterBoard(t_p.T, height=4, margin=.5)
cb.add_layer(sb)
cb.add_right(gc_numbers, size=1.1, pad=.25)
cb.render()

if i use cut_rows:
sb = mp.StackBar(t_p*100, colors=['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd', '#c49c94', '#f7b6d2', '#c7c7c7', '#dbdb8d', '#9edae5'], width=.8, orient="h")
gc_numbers = mp.Numbers(group_count, color=['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd', '#c49c94', '#f7b6d2', '#c7c7c7', '#dbdb8d', '#9edae5'])
cb = ma.ClusterBoard(t_p.T, height=4, margin=.5)
cb.add_layer(sb)
cb.add_right(gc_numbers, size=1.1, pad=.25)
cb.cut_rows([4,7,9], spacing=.03)
cb.render()

why?

The color parameter in Numbers is designed to accept only a single color as indicated in the documentation. Although it works if you supply multiple colors, the behavior is not guaranteed. If you want to customize each color, please use Bar and check the last example https://marsilea.readthedocs.io/en/stable/api/APIs/marsilea.plotter.Bar.html

The color parameter in Numbers is designed to accept only a single color as indicated in the documentation. Although it works if you supply multiple colors, the behavior is not guaranteed. If you want to customize each color, please use Bar and check the last example https://marsilea.readthedocs.io/en/stable/api/APIs/marsilea.plotter.Bar.htmlNumbers中的color参数设计为仅接受文档中指示的单一颜色。虽然如果您提供多种颜色它可以工作，但不能保证其行为。如果您想自定义每种颜色，请使用Bar并检查最后一个示例https://marsilea.readthedocs.io/en/stable/api/APIs/marsilea.plotter.Bar.html

It seems that it's not quite working either.

The color parameter in Numbers is designed to accept only a single color as indicated in the documentation. Although it works if you supply multiple colors, the behavior is not guaranteed. If you want to customize each color, please use Bar and check the last example https://marsilea.readthedocs.io/en/stable/api/APIs/marsilea.plotter.Bar.html

group_rows, cut_rows and hsplit，It appears that these three features seem identical, but do they have any differences?

This is what you want:
import marsilea as ma
import marsilea.plotter as mp
import numpy as np

data = np.random.randn(4, 4)

h = ma.Heatmap(data)
h.add_right(mp.Bar([1,2,3,4], palette=["r", "g", ".1", ".8"]))
h.cut_rows([2])
h.render()

@SunYong0821 As of v0.4.6, you can use multiple colors for color in Numbers.
Hope you enjoy Marsilea!
import marsilea as ma
import marsilea.plotter as mp
import numpy as np

data = np.random.randn(4, 4)

h = ma.Heatmap(data)
h.add_right(mp.Numbers([1, 2, 3, 4], color=["r", "g", ".1", ".8"]))
h.cut_rows([2])
h.render()

The color parameter in Numbers is designed to accept only a single color as indicated in the documentation. Although it works if you supply multiple colors, the behavior is not guaranteed. If you want to customize each color, please use Bar and check the last example https://marsilea.readthedocs.io/en/stable/api/APIs/marsilea.plotter.Bar.htmlNumbers中的color参数设计为仅接受文档中指示的单一颜色。虽然如果您提供多种颜色它可以工作，但不能保证其行为。如果您想自定义每种颜色，请使用Bar并检查最后一个示例https://marsilea.readthedocs.io/en/stable/api/APIs/marsilea.plotter.Bar.html

group_rows, cut_rows and hsplit，It appears that these three features seem identical, but do they have any differences?group_rows、cut_rows 和 hsplit，看起来这三个功能看起来相同，但是它们有什么区别吗？

Regarding this, hsplit and vsplit are deprecated, you should see a warning when you use them. group_rows can split by given labels and order, cut_rows can split only by the index of row.关于这一点， hsplit和vsplit已被弃用，您在使用它们时应该会看到警告。 group_rows可以按给定的标签和顺序进行拆分， cut_rows只能按行的索引进行拆分。

OK  thx

@SunYong0821 As of v0.4.6, you can use multiple colors for color in Numbers.
Hope you enjoy Marsilea!
import marsilea as ma
import marsilea.plotter as mp
import numpy as np

data = np.random.randn(4, 4)

h = ma.Heatmap(data)
h.add_right(mp.Numbers([1, 2, 3, 4], color=["r", "g", ".1", ".8"]))
h.cut_rows([2])
h.render()

I test it pefect!~   thx~


[22.11] python3Packages.torch, torch-bin: add patch for CVE-2022-45907

Description of changes
https://nvd.nist.gov/vuln/detail/CVE-2022-45907
Addressed for unstable in #207056.
Used a slightly funny trick here (last used in #187537) to "patch" the wheel used in torch-bin. This is only possible because the fix itself is confined to a python file, present as source in the wheel.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Note: libtorch-bin looks like it's not vulnerable to CVE-2022-45907 because it doesn't contain any python components.


.Net: The class implementing IPromptRenderFilter is not being called

The class implementing IPromptRenderFilter is not being called when using the ChatCompletionService.GetChatMessageContentAsync method.
Program.cs
var MODEL_ID = Environment.GetEnvironmentVariable("MODEL_ID");
var API_KEY = Environment.GetEnvironmentVariable("API_KEY");
var ENDPOINT = Environment.GetEnvironmentVariable("ENDPOINT");

var builder = Kernel.CreateBuilder()
    .AddAzureOpenAIChatCompletion(
        deploymentName: MODEL_ID,
        endpoint: ENDPOINT,
        apiKey: API_KEY
        );

LoggerFactory loggerFactory = new();

var logger = loggerFactory.CreateLogger<Program>();
builder.Services.AddLogging(services => services.AddConsole().SetMinimumLevel(LogLevel.Trace));

builder.Services.AddSingleton<IPromptRenderFilter>(new PromptRenderFilter(logger));

Kernel kernel = builder.Build();

#pragma warning disable SKEXP0050
kernel.Plugins.AddFromType<TimePlugin>("time");

var chatCompletionService = kernel.GetRequiredService<IChatCompletionService>();

OpenAIPromptExecutionSettings openAIPromptExecutionSettings = new()
{
    ToolCallBehavior = ToolCallBehavior.AutoInvokeKernelFunctions
};

var result = await chatCompletionService.GetChatMessageContentAsync(
    "Is {{ time.Date }}, a national holiday in Japan?",
    executionSettings: openAIPromptExecutionSettings,
    kernel: kernel);

Console.WriteLine(result.ToString());

PromptRenderFilter.cs
internal class PromptRenderFilter(ILogger logger) : IPromptRenderFilter
{
    public async Task OnPromptRenderAsync(PromptRenderContext context, Func<PromptRenderContext, Task> next)
    {
        await next(context);

        logger.LogInformation($"RenderdPrompt: {context.RenderedPrompt}");
    }
}

I confirmed that the class implementing IAutoFunctionInvocationFilter is called when using the ChatCompletionService.GetChatMessageContentAsync method.
I know that implementing it in the following way works well. However, I don't think this approach is ideal.
//var result = await chatCompletionService.GetChatMessageContentAsync(
//    "Is {{ time.Date }}, a national holiday in Japan?",
//    executionSettings: openAIPromptExecutionSettings,
//    kernel: kernel);

var semanticFunction = kernel.CreateFunctionFromPrompt(
            "Is {{ time.Date }}, a national holiday in Japan?", openAIPromptExecutionSettings);

var result = await kernel.InvokeAsync(semanticFunction);

Is this a bug or just unimplemented?
UPDATE
I also confirmed that the event handler added using the addPromptRenderedHook function in the Java SDK is not called when using ChatCompletionService.getChatMessageContentAsync.

@takashiuesaka When you pass prompt in chat completion service like this:
var result = await chatCompletionService.GetChatMessageContentAsync(
    "Is {{$date}}, a national holiday in Japan?",
    executionSettings: openAIPromptExecutionSettings,
    kernel: kernel);

prompt rendering operation is not performed, and your prompt is injected into chat history as it is:
https://github.com/microsoft/semantic-kernel/blob/12a877b8297bfb39987843b3f95acf606cb163ca/dotnet/src/SemanticKernel.Abstractions/AI/ChatCompletion/ChatCompletionServiceExtensions.cs#L42-L45
That's why IPromptRenderFilter is not invoked. So, in order to invoke IPromptRenderFilter, prompt rendering operation should be performed, and this operation is performed only when there is a prompt function defined and executed, as per your example:
var semanticFunction = kernel.CreateFunctionFromPrompt(
            "Is {{$date}}, a national holiday in Japan?", openAIPromptExecutionSettings);

var result = await kernel.InvokeAsync(semanticFunction);

So, the real question is - should we add prompt rendering operation when calling IChatCompletionService directly? I would suggest creating a new issue for it with described use-cases, pros and cons of this approach etc, so it can be discussed further. In this case, we can close this issue, because if we will add prompt rendering operation to IChatCompletionService at some point, then, as part of this task, we will have to add IPromptRenderFilter invocation as well.
Thank you!

@dmytrostruk Thank you for your response. I understand that I need to create a new issue. So, I will create a new one and close this issue.

@dmytrostruk Thank you for your response. I understand that I need to create a new issue. So, I will create a new one and close this issue.

I created a discussion #7403.


docs: Add page about securing envoy to quick-start

Signed-off-by: Ryan Northey<EMAIL_ADDRESS>Commit Message: docs: Add page about securing envoy to quick-start
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]

/retest

@mattklein123 this one is nearly ready for final review - its taking a while as i was testing as i was writing it.
i still need to add/update some links and some small formatting/grammar issues

@mattklein123 this one should be ready for final review

@mattklein123 ive updated the SNI sections, and the initial warning about using auth/encryption.
Im still not 100% about the sni stuff, but i think this is closer to what we want.
I read the existing faq page, and anything else in the existing envoy docs. I tried playing with the auto_sni and auto_san settings, but couldnt seem to get them working or find any examples. The proto docs dont make it very clear the context that these can be used in.
I guess the main difference between what i have tried to add here and what is  in the faq already re sni, is why people would want/need to use it - from both server and client perspectives.

for reference these are the nginx docs related to sni https://docs.nginx.com/nginx/admin-guide/security-controls/terminating-ssl-http/#server-name-indication

also, not sure if this is necessary for first iteration - but would probs be good to get something about ocsp stapling in here

@mattklein123 it would be good to land this - ive posted it to users on slack twice in as many days - i think its pretty useful, and we can iterate