cant set config:fileURL for playground

ok guys, trying realm 2.02 in xcode 8 playground.
let config = Realm.Configuration(
    // Get the URL to the bundled file
    fileURL: Bundle.main.url(forResource: "MyBundledData", withExtension: "realm"),
    // Open the file in read-only mode as application bundles are not writeable
    readOnly: true)

// Open the Realm with the configuration
let realm = try! Realm(configuration: config)

im trying to set the default location of the realm file via the config, ive tried a bunch of stuff setting the config object fileUrl property, it appears playgrounds dont allow access to the main file system.
i just want the realm file to stay in a place to use the realm browser. trying the above code from realm site yielded the error
fatal error: A Realm Configuration must specify a path or an in-memory identifier.: file /Volumes/Mac /XXX/Pods/RealmSwift/RealmSwift/RealmConfiguration.swift, line 203
any suggestions on how to set the fileURL in both playgrounds as well as the simulator. ideally somewhere on my local filesystem
thx

Hi @ggunders!
If you're getting the A Realm Configuration must specify a path or an in-memory identifier error, that means that your implementation for Bundle.main.url() must be returning nil. The Swift Playground's access to on-disk resources is limited, so you need to properly import the Realm file into Playgrounds as a resource to access it.

As long as it's able to generate a URL for the Realm file, you should be to copy that URL you see there and open it in the Browser. The Simulator SHOULD work too, assuming it doesn't enforce any sandboxing like iOS does.
I hope that helped!

ok i  moved he default.realm file into the Resources directory in my playground.
then tried the following(changing name to test.realm)
var config = Realm.Configuration()
let path = Bundle.main.url(forResource: "test", withExtension: "realm")
config.fileURL = path
let realm = try! Realm(configuration: config)
print(Realm.Configuration.defaultConfiguration.fileURL!)

the following error
fatal error: 'try!' expression unexpectedly raised an error: Error Domain=io.realm Code=2 "Unable to open a realm at path '/var/folders/tj/zcchzkcj23x4b1ygms5l7m1m0000gp/T/com.apple.dt.Xcode.pg/resources/AC308449-D16B-4386-A038-12F29549B9FC/test.realm.management': make_dir() failed: Operation not permitted." UserInfo={Error Code=2, NSFilePath=/var/folders/tj/zcchzkcj23x4b1ygms5l7m1m0000gp/T/com.apple.dt.Xcode.pg/resources/AC308449-D16B-4386-A038-12F29549B9FC/test.realm.management, Underlying=make_dir() failed: Operation not permitted, NSLocalizedDescription=Unable to open a realm at path '/var/folders/tj/zcchzkcj23x4b1ygms5l7m1m0000gp/T/com.apple.dt.Xcode.pg/resources/AC308449-D16B-4386-A038-12F29549B9FC/test.realm.management': make_dir() failed: Operation not permitted.}: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-8<IP_ADDRESS>/src/swift/stdlib/public/core/ErrorType.swift, line 178

do i have to do anything else to setup the resources directory. ive seen some people create a symbolic back to /User/XXX/Documents

are permission attributes necessary for this operation

The playground process only has read-only access to files in the bundle, so you'll need to set Realm.Configuration.readOnly to true.

ok i see, putting the realm db into resources is only useful for reading the database not writing to it. in order to add more data to the realm.db file, it would need to be outside the resources directory correct.
if i want the db to be placed somewhere i designate i should be using a simulator and not the playground correct, otherwise its just a read only file.

That's correct. If the Playground process is read-only, it won't be possible to make changes to any Realm files from within it.
Yes, you can use the Simulator to test out writing to Realms with no limitations.

That's correct. If the Playground process is read-only, it won't be possible to make changes to any Realm files from within it.
Yes, you can use the Simulator to test out writing to Realms with no limitations.

Not quite. The bundle is read-only in playgrounds and on iOS devices. It's technically not read-only in the iOS Simulator, though that's arguably a bug.
Also, playgrounds can write to Realm files, just not in the bundle.

@ggunders I'm closing this since we haven't heard back from you in a few weeks, but don't hesitate to reach out if you have any further questions.


[BUG] Incorrect units in dashboard for storage size allocation

Describe the bug
In the the dashboard, the storage size allocated units are incorrect. The disk is 1TB in capacity but 1.01GiB is displayed. The result shows "Allocated 217 of 1.01GiB" which doesn't make sense. It seems like whatever is deciding which units to use is either rounding or mixing up TB vs TiB & GB vs GiB on a disk that's almost exactly 1TiB/TB.

To Reproduce
Have a disk that's at or just above 1TiB in capacity.
Expected behavior
Should show correct units, 1.01TiB instead of 1.01GiB.
Support bundle
N/A
Environment

Harvester ISO v1.4.0 amd64
Baremetal

Additional context
Just upgraded from v1.3.2 to v1.4.0 and units were correct before upgrade.

I can reproduce this in v1.4.0

It could be related to how UI converts and displays the value.
cc @a110605 Do you have insight into this?

We have changed storage size from Reserved to Allocated and calcaulate the total / used number based on longhorn setting storage-over-provisioning-percentage. Maybe something wrong in storageStats(). cc @votdev
https://github.com/harvester/dashboard/pull/1105

I can also reproduce, fwiw:

The node has 2 480GB disks, and it appeared after force-formatting the second drive -> so allocated shifted to 1.22GiB instead of TiB I believe :thinking:


Does not exit from mocha tests

Your examples use process.exit(0) to finish/exit.  However, I can't do that in the middle of a mocha test started from gulp.  My tests run/pass and work great when cached but then just hang after the last line below.  What do you advise?
VCR_MODE=cache gulp
[15:10:53] Using gulpfile /mmedia/documents/projects/uwscripts/nodemodules/node-uwsws/gulpfile.js
[15:10:53] Starting 'lint-src'...
[15:10:53] Starting 'lint-test'...
[15:10:53] Finished 'lint-test' after 98 ms
[15:10:53] Finished 'lint-src' after 319 ms
[15:10:53] Starting 'test'...

  ․․․․․․․․․․

  10 passing (38ms)

[15:10:54] Finished 'test' after 662 ms
[15:10:54] Starting 'default'...
[15:10:54] Finished 'default' after 5.43 μs

Fyi.... exporting httpServer server from src/server.js and then from index.js allows me to do the following in my outter most describe() and that works.  Shall I make a pull request?
  after(function() {
    sepia.server.close();
  });

I was just digging into this, and I found exactly what you pointed out. The fix is what you describe, but I'm going to look into exposing a cleaner API if I can, perhaps with some sort of sepia.shutdown() function. I don't want to just expose the internal server out into the open.
I'm happy to look at a pull request implementing that, or I'll work on it myself today.

Ok, that should do it unless maybe now or in the future you want the shutdown method to do more than what it's doing now.

I published version 2.0.0. If you're not using the embedded server, then you can just upgrade, and you won't need to make any changes. If you do need it, you'll need to change your require to:
var sepia = require('sepia').withSepiaServer();

And then call sepia.shutdown() whenever you need to shut it down.

That works!  Thanks for the quick change.


Large image jpg - fail

Hi,
when openseadragon load an image with 30750x9729 it's showed white screen after loaded
thanks for your reply

Is this a single image or have you converted it into tiles? If it's a single image, it seems like it's a bit too big for that and would be best converted. Here's a collection of tools for that:
http://openseadragon.github.io/examples/creating-zooming-images/

it's a single image. If i download image ed open it with browser the image is showed, but if i open it with openseadragon there is not error in console, only white screen.

What browser are you testing on? I know Safari has some limitations on how big of a canvas you can make.
At any rate, that image is big enough that it's worth converting into a DZI or something; not only will it fix this issue, but it'll load faster for your end users.

the issue is resolved or not?

@KARTHI2710 This was just a discussion; no action item came out of it. Is there some issue you're experiencing?


Build Error on RN 0.60 IOS

I can`t build the app @ rn 0.60 , i ve downloaded the package using npm , and every build i make , returns this error, any solution ?

Our react-native-agora module is just a native module adapter for react-native it is not same as AgoraRTCSDK that need agora rtc compatible browser or webView. If you r using AgoraRTCSDK on webView or browser, please check the compatible list


NetworkInfo.IsConnected Object reference not set to an instance of an object

Hi,
i'm having a System.NullReferenceException error when my smartphone is not connected on internet. But when i'm connected on wifi or roaming, there are no error.
NetworkInfo info = connectivityManager.ActiveNetworkInfo; bool isOnline = info.IsConnected; Console.WriteLine(isOnline);
How can i fix that?

Fix:
bool isOnline = info == null ? false : info.IsConnected;


Enh listify ndarray

Where is _transform_data even used? I can't find it anywhere in mds/bs/ophyd

11:40 $ git grep _transform_data
metadatastore/commands.py:    val_ts_tuple = _transform_data(data, timestamps)
metadatastore/commands.py:            val_ts_tuple = _transform_data(ev['data'], ev['timestamps'])
metadatastore/commands.py:def _transform_data(data, timestamps):

Ah, I was on the master branch.

LGTM. Anything else you want to add?

This is a hot-fix to make the single-element MCA at SRX running (and ken just confirmed that it works for this use-case).


Copyright

Hello,
I would like to use Figure 4 from https://github.com/google-ai-edge/mediapipe/blob/master/docs/solutions/pose.md in my Bachelor thesis. Is this possible w.r.t. copyright?
Thanks

Hi @MassPig,
We believe that using the figures should not result in any copyright issues. For more information, please refer to our license terms and conditions.
Thank you!!


add: more issue templates

Summary
This PR adds new issue templates for documentation related issues and other category.
Approach
Previously, contributors were only presented with a single issue template, which often caused confusion when reporting issues. This also made it difficult for maintainers to prfioritize and address the most critical issues. With this update, contributors will now have the option to directly raise documentation issues or other types of issues, streamlining the issue reporting process and improving overall project management.
Issue ticket number : https://github.com/TeamShiksha/logoexecutive/issues/391

How to Test the Changes
To test these changes, navigate to the repository's "New Issue" page and verify that the options for "Documentation Issue" and "Other Issue" are available and function as expected

Screenshots or Recordings

Checklist

[ ] I have added/updated tests that cover the changes.
[ ] I have updated the documentation to reflect the changes.

From where did u took reference from?

I looked up a few repositories but didn’t find any specific leads for the documentation issue and other issue template. So, I implemented them based on the discussion in the meeting and the pattern of other issue templates in this repository.

I looked up a few repositories but didn’t find any specific templates for the documentation issue and other issues. So, I implemented them based on the discussion in the meeting and the pattern of other issue templates in this repository.

Please mention the few repositories you looks into.


merge package template from arlac77/npm-package-template

Updated standard to latest version

Coverage remained the same at 91.411% when pulling c5640beb3a5f7403973b3bba1cf621af910331be on template-sync-1 into 2cb6180bfe9131d787ba1f30004c779d03f6cccf on master.

Codecov Report

Merging #128 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #128   +/-   ##
=======================================
  Coverage   91.41%   91.41%
=======================================
  Files          18       18
  Lines         163      163
=======================================
  Hits          149      149
  Misses         14       14

Continue to review full report at Codecov.

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


Keras Multi-Class Accuracy/Loss during testing

Hi,
How do I measure the accuracy of my multi-class classifier with Keras at testing?
I have a set of predicted labels, and true labels for my image data (multi-class).
Is it by using the model.evalaute(..) in keras? I am using the Sequential model.
I don't quite understand what metrics does the model.evaluate() return.
Thanks
Please make sure that the boxes below are checked before you submit your issue. Thank you!

[ ] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps
[ ] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps
[ ] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

The docs give some examples:
model.compile(optimizer='rmsprop',
          loss='categorical_crossentropy',
          metrics=['accuracy'])  # metric which will be used is defined here

And regarding evaluates return values:
Scalar test loss (if the model has no metrics) or list of scalars (if the model computes other metrics). The attribute model.metrics_names will give you the display labels for the scalar outputs.

For raw per-class validation accuracy:

def per_class_accuracy(y_preds,y_true,class_labels):
    return [np.mean([
        (y_true[pred_idx] == np.round(y_pred)) for pred_idx, y_pred in enumerate(y_preds)
      if y_true[pred_idx] == int(class_label)
                    ]) for class_label in class_labels]

def update_val_history():
    [val_history[class_label].append(np.mean( np.asarray(temp_history).T[class_idx] )
                             ) for class_idx, class_label in enumerate(class_labels)]

Example:
class_labels = ['0','1','2','3']
val_history = {class_label:[] for class_label in class_labels}

y_true   = np.asarray([0,0,0,0, 1,1,1,1, 2,2,2,2, 3,3,3,3])
y_preds1 = np.asarray([0,3,3,3, 1,1,0,0, 2,2,2,0, 3,3,3,3])
y_preds2 = np.asarray([0,0,3,3, 0,1,0,0, 2,2,2,2, 0,0,0,0])

y_preds1 = model.predict(x1)
temp_hist.append(per_class_accuracy(y_preds1,y_true,class_labels))
update_val_history()
y_preds2 = model.predict(x2)
temp_hist.append(per_class_accuracy(y_preds2,y_true,class_labels))
update_val_history()

print(val_history)

>>{
'0': [0.25, 0.50],
'1': [0.50, 0.25],
'2': [0.75, 1.00],
'3': [1.00, 0.00]
}


Initialize implementation for spark reader

Proposed changes
Initialize implementation for spark readers, which could read GAR files into Spark DataFrame.
Types of changes
What types of changes does your code introduce to GraphAr?
Put an x in the boxes that apply

[ ] Bugfix (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)
[ ] Documentation Update (if none of the other choices apply)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the CONTRIBUTING doc
[x] I have signed the CLA
[x] Lint and unit tests pass locally with my changes
[x] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Further comments
Fixed issue: #29

LGTM


README improvement ideas

Hi there!
I saw this project thanks to your tweet being retweeted by Gleb Bahmutov. It's really exciting and I'm looking forward to using it if I need to make a CLI in the future!
I really liked the documentation flow in README.md, great work there!
However, when continuing to the API Documentation part, I struggled with understanding how desc can be used. I almost stopped reading there, but then figured that hey, maybe I could help a bit and offer some improvements to the documentation while I still haven't tested out the code!

I'd like to avoid phrases such as A Description is just what you'd expect. — I really don't know what I'd expect (does it describe the entire application? A command? Or something entirely else?) so it was a bit off-putting to not understand immediately what it was about.
I don't really know what a parent type means in this context usage-wise, and the example didn't help me. Maybe the example could be amended to show how it ties into the Flag or Command types?
The desc() function isn't used anywhere else but in the API documentation, so even after reading the entire README, I still don't know how it is used.

Do you think that maybe expanding the help() command section could showcase how desc ties into commands?

Also, I feel like the you guessed it in the help() documentation doesn't really give any meaningful information to a first-time reader. As I didn't have any previous knowledge of this library, I actually first assumed that help() would be used as a flag — node ./myapp.js --help. So now that I didn't actually guess it correctly, I felt a bit bummed.
But hey! This README is still among one of the best and most concise READMEs I've come across, so all in all you've done awesome work! These are just a few nitpicks that I wanted to share as I got the feeling that you'd appreciate feedback on the README as it is :blush:
Let me know if you think that these concerns are valid. If you tell me how desc is actually used in an example CLI, I could try to put up a pull request that tries to resolve these issues I came across :smile:

Hello @valscion! Thank you for taking the time to read the entire README, it's pretty long. And I appreciate even more you taking the time to write up an issue on things you felt were subpar.
I should have known that desc and help would bring some confusion. They were added at the last minute because I realized users would probably want/expect some sort of automatic help display, as it is common to many alternatives. That being said, they didn't quite get the love as the other aspects of the documentation and now I'm being called out on it, which is good. :smile:
I definitely put it on my list of things to do. My current thinking is to sort of expand on the current desc example with something like flag(desc('this is a flag'), ...), and also choosing works a little more carefully with a little less assumption. Then I think it'd be good to say something like More example usage here with a link to the help section.
My thinking is to show the example in the walkthrough section again, but with the help decorator wrapped around it with the addition of desc() in the example text. How does that sound?
Thanks again for this, issues are invaluable for open-source maintainers. :+1:

@valscion I've update the README and removed the assumptive text that was in there. I added a slightly more useful example for the desc section, but also added a much more useful example to help

Awesome! Glad I could be of help. I'm right now heading home for the night, I'll try to remember to give more details tomorrow when I get on my laptop but overall you've done great improvements! And now I pretty much understand how desc() works, hooray! 😄

Great, more feedback always welcomed.

For more great context on writing friendly documentation that can be understood easily, I highly suggest reading https://github.com/thejameskyle/documentation-handbook — it's super awesome!

Thanks for the tip!


Chrome donut chart animation bug; transitions behave unexpectedly

In chrome, the code below has started causing an odd transition behavior in my pie chart when the data is updated.  I've attached an image to illustrate the issue.  This only started happening recently, and other browsers (Safari, IE10+) don't exhibit the behavior; the transitions behave just like they do in the example: https://bl.ocks.org/mbostock/1346395

The code below was generated from coffeescript. I can provide the original CS if requested
({
  renderChart: function() {
    var color, height, radius, svg, width;
    width = this.ui.chartWrap.width();
    height = this.ui.chartWrap.height();
    radius = Math.min(width, height) / 2;
    color = d3.scale.category20();
    if (_.every(this.data, function(type) {
      return !type.count;
    })) {
      return false;
    }
    this.pie = d3.layout.pie().value(function(d) {
      return d.count;
    }).sort(null);
    this.arc = d3.svg.arc().innerRadius(.5 * radius).outerRadius(radius);
    svg = d3.select('#dups-chart').append('svg').attr('width', width).attr('height', height).append('g').attr('transform', "translate(" + (width / 2) + "," + (height / 2) + ")");
    this.path = svg.selectAll('path').data(this.pie(this.data)).enter().append('path').attr('d', this.arc).attr('class', (function(_this) {
      return function(d, i) {
        return _this.data[i]["class"];
      };
    })(this)).attr('data-type', (function(_this) {
      return function(d, i) {
        return _this.data[i].value;
      };
    })(this)).each(function(d) {
      this._current = d;
    });
    return this.updateChart();
  },
  updateChart: function() {
    var arcTween, hasData, view;
    view = this;
    arcTween = function(a) {
      var i;
      i = d3.interpolate(this._current, a);
      this._current = i(0);
      return function(t) {
        return view.arc(i(t));
      };
    };
    hasData = _.any(this.data, function(d) {
      return d.count > 0;
    });
    if (hasData) {
      this.ui.chartWrap.find('svg').show();
      this.pie.value(function(d) {
        return d.count;
      });
      this.path = this.path.data(this.pie(this.data));
      return this.path.transition().duration(750).attrTween("d", arcTween);
    } else {
      return this.ui.chartWrap.find('svg').hide();
    }
  }
});

the transitions behave just like they do in the example

Sorry, are you saying that this example is broken too? I don’t see any problem.
https://bl.ocks.org/mbostock/1346410
Or are you saying that your code is only broken on Chrome?

In any case, I’m not able to do any further investigation without a running example that demonstrates the problem. Can you please reduce it to something that runs on bl.ocks.org (or, if you prefer, JSFiddle)? I will reopen this bug when you provide additional information for me to look at. Thank you!

Sorry for the confusion.
The example works fine in Chrome, but not my code.
One thing I have noticed is that the larger the change (going from a count of 7mill -> 100k) affects the amount of weirdness in the transition.

It certainly looks weird… like the inner and outer radius of the ending edge of the second yellow arc are wrong, but I have no idea why that would be. Perhaps you could try putting your data into the example I linked? Again, I’m happy to investigate if you can help me reproduce this problem.

I'll work on getting something online. Thanks!

Ok, so the values alone don't seem to cause the problem. Here is your example with the numbers from my API: https://bl.ocks.org/kwhitaker/87cefa0c596cffe51dab46369cf966f3
I'll update the code to reflect what I've written, and see if that causes it here as well.

Well, I figured out where the bug was coming from. Turns out it had nothing to do with d3 at all; I had a transition in the CSS for my chart paths. Somehow there was a weird intersection between the d3 transition and the css transition in Chrome only.

Wow @kwhitaker your last comment saved me after days of frantically grasping at straws for why my circle objects' transitions were all delayed in Chrome. In my case, I had a css transition: all 0.5s that seemed to be interfering with the d3 transition, causing an odd delay, and only in Chrome.


gio: implement enumerate_children_async

Fixes https://github.com/gtk-rs/gtk-rs/issues/69

To test I modified one of the examples in this way (I do not think we want to add an example for each function)
https://gist.github.com/pbor/6a8dfc1511b9688d057e0e6c9190a4f9


Sugestion: ability to set max block use per page

It would be great to be able to set a maxusage per page on a contentblock.
It could be a property on the ContentBlockDefinition and than a greyed out version of the block in the overview or something?

This is to prevent editors from adding the same block a lot of times on a page? I am a bit hesitant to include all sorts of properties for fairly niche use cases in the backoffice on IContentBlockDefinition. Not to mention changing that interface would technically be a breaking change as well, although I don't think many people made their own implementation of it.
I'm thinking we can probably add some JavaScript events which can be used to add this kind of logic through your own code. That is, some events like addBlock / openBlockPicker, etc, which will allow you to just add any custom JS you want in the backoffice. I feel that's probably the better approach for stuff like this. We would still have to make it possible to disable a block in the picker somehow but that can be arranged.

I just don't really understand the usecase; why would you limit the functionality like this for the content editor?

Thanks for the answers
First the use case:
I use the blockbuilder on a structuredcontent page, for example product overview.
On the page the editor can pick a header and than content from a selection of contentblocks.
One of the blocks is the actual products. This contains some settings and renders a Vue component that shows the products in the front end.
I only want the editor to pick this block once.
If this use case is a accepted use case than the IContentBlockDefinition looks like the best place for this setting.
All other options feel like a hack?
If the use case is weird than I have to at a different way to solve this indeed.

I'm sorry I don't think this really warrants a dedicated property on the Content Block definition. This is primarly some UX thing which I hope we can solve in some other way in the future.
In your specific case I think the client will hopefully realize they should only place 1 product overview on the page without you forcing that in the UI. Although if you make it possible for them to customize the products to show in that block it's not unreasonable to put that block multiple times on the page, showing related products in a couple of blocks.
Anyway, closing this now but might refer to this later if we have some ideas about how to support some custom UX logic.
If any future reader also wants this functionality feel free to reopen and/or comment.


Change $lib, $app and $service-worker to #lib, #app and #service-worker

I think svelte kit should stick to the node.js package.json imports property spec: https://nodejs.org/api/packages.html#packages_imports
https://nodejs.org/api/packages.html#packages_subpath_patterns
This could avoid future inconsistencies with node and would allow to use the imports property instead of actual aliases (Vite, tsconfig, jest, etc...)

That won't work on the client-side. I guess the question is if the bundler will find and convert it during the build process. It's interesting that you raised this though. I wasn't familiar with that feature.
I'm not entirely sure this is something we'd change, but I've added it to the 1.0 milestone so that we at least consider it before then since it'd be a breaking change.

That won't work on the client-side.

Why have you raised this? aren't you forced to go through a bundler/builder (Rollup/Vite w esbuild) in order to use sveltekit? 🤔

After thinking about this for a bit, I think it could be confusing. E.g. I think that you'd still need Vite aliases sometimes because the Node stuff only works with .js files.
For example, I don't think this will work:
  "imports": {
    "#img/*": "./src/images/*"
  }

There's a lot of questions I'd have and none of them seems specific to SvelteKit. I think this is an area where we'll follow Vite's lead and support whatever they support. If they start recommending Node imports over aliases then we'll follow that advice

Makes sense to follow vite's lead. Though I couldn't find any discussion about it in their repo.
After spending much time fighting the module resolution system in my app when using ts-node, I chose to adopt the standard '#' and move on.
Just wanted to report here that it works well for me.
Using kit 1.0.0-next.295, adapter-node, typescript and "module" module type
package.json:
"imports": {
    "#lib/*": "./src/lib/*"
}

svelte.config.js:
vite: {
      resolve: {
        alias: {
          '#lib': path.resolve(__dirname, './src/lib'),
        },
      },
}

tsconfig.json:
"paths": {
    "#lib/*": ["src/lib/*"],
    "#lib": ["src/lib"],
}

relevant for those fighting with ts-node: If I recall correctly, this is the issue preventing use of $lib alias.

cheers @ximus, been running into issues with a ts-node code gen script throwing
CustomError: Cannot find package '$lib' imported from [...]

Followed the same steps above to adopt #lib, and can now move on. dev/test/build scripts run just fine, too (after applying the unfortunate config overwrites).
Not strictly relevant to Svelte/SvelteKit per-se, but also leaving this here in case someone else hits this particular error while better ESM + paths support is still WIP.


"Add new section" button should be integrated in drop-down

This is a nice to have and it would entail to convert more controls to this kind of style
It would be nice to convert the current "Add new section" button in the create a new student form to a "google like" add new button.  By that we mean the "add new section" should be a selectable parameter within the dropdown menu, rather than be its own link.

Hey, we did this!


Dataset Variable handling + ODK Handling

This PR does 2 things:
Updates basic support for 'dataset variables':

DatasetVariable::class now has the correct relationships to Entity::class and Dataset::class. (This is used in the tape-data-system to allow us to update the variables for the Agricultural Systems).

Adds better handling of link to ODK / errors

Previously, you would get errors for lots of things (including running migrations!) if you had not added valid ODK_ environment variables to a real ODK Central server.
Now, you can install the package just fine and run the app without connecting to ODK Central. When there are no env credentials:

The XlsformTemplateResource  shows a warning notice explaining that you cannot upload forms.
Creation of entities that use HasXlsforms (e.g., Teams, platforms), do not trigger an attempt to create a project on ODK Central.

Additionally, there is now a better approach to creating the required Platform::class entry:

previously, this was done in the migration.
This is now moved to a separate seeder (following good practice to only use migrations for structural database changes). This seeder should be run as part of the main application seeding (e.g:

database/seeders/DatabaseSeeder.php:

use Illuminate\Database\Seeder;
use Stats4sd\FilamentOdkLink\Database\Seeders\PlatformSeeder;

class DatabaseSeeder extends Seeder
{

    public function run(): void
    {
         $this->call(PlatformSDeeder::class);
    }

}

This seeder will create the Platform::class entry. If there is no ODK_PLATFORM_PROJECT_ID env variable, it will take the normal approach, which includes going to ODK Central and creating a new project. It will then set the ODK_PLATFORM_PROJECT_ID to that project ID.
When you run the seeder a second time, it will check that same variable, and will not create a 2nd project on ODK Central. It will instead link the new platform entry to the existing project.
This saves the creation of multiple copies of test projects as you run php artisan migrate:fresh lots of times in local development.

Thank you Dave.
I did testing a few times to figure out the correct procedure for setup, I found two issues:

The seeder file has not been published. (How to publish a seeder file from submodule? It looks like Service Provider does not provide this feature... Should we change the seeder file to the last migration file in submodule?)

If ODK central config items are empty in .env file. Team seeder file will throw error because it talks to ODK central when creating a Team. I can login but filament will prompt to create a new team because the logged in user does not belong to any team. Team cannot be created successfully in front end because ODK central config items in .env file. The logged in user will stuck here. He will have no chance to see the newly added warning notice in front end.

Here is my testing procedure details FYI:
cd c:\public
git clone https://github.com/stats4sd/apni-research apni-research-v3
cd apni-research-v3
git submodule init
git submodule update
cd packages
cd filament-odk-link
git checkout dataset-variables
git pull
create local database
prepare .env file

update local db config items
copy Laravel Reverb config items
do not fill in values for ODK central config items

composer install
php artisan key:generate
npm i
npm run build
npm run dev
remove create platform migration files in main repo (I pushed them to main repo before...)
run command to publish migration files from submodule

php artisan vendor:publish --tag="filament-odk-link-migrations"

the latest create platform migration file is published
remove the duplicated create_permission_tables migration file
refresh database with migration files and run seeders

php artisan migrate:fresh --seed
cURL error when running Teams seeder
it talks to ODK central to create ODK project when creating Team

http://apni-research-v3.test
login as<EMAIL_ADDRESS>Team has not been created yet (because there is no ODK central config items in .env file)
User does not belong to any team, filament prompt to create a new team

cURL error when creating Team...

The logged in user will stuck here. He will have no chance to see the newly added warning notice in front end.

I read all modified program source code in this PR. Now I have a better understanding for this change.
I did some minor refinements, mainly to take care config item existence and empty config item.
Basically it works well, migration files and seeder files can be executed without ODK link config items (or they are empty) in .env file.
Some pages show error due to appUsers (actually it is because odkProject is null) but it is expected. I think we do not need to further handle because it should connect to a valid ODK central server to make it work.
By adding ODK central config items and values in .env file, all migration files and seeder files executed successfully.
When I login as admin account, there is one minor issue in below page:
Admin Panel > Teams list page > View a team > error occurred
If I run "php artisan migrate:fresh --seed", there is no app_users record created for Platform in odk_projects record

By the way, here are something need to be handled:

When I setup main repo APNI Research, I pushed the previously published migration files from submodule. They are in main repo now. For my testing, I manually removed them and then publish submodule migration files for testing. (P.S. Still need to remove create permissions migration file)

There is a change in main repo for App\Models\Team.php, to remove code for odkLinkService and createLinkedOdkProject. (Because these will be centrally handled by HasXlsForms trait.
I did not commit the change yet as I accidentally commit to dev (luckily I did not run "git push" yet). I will undo my local commit and push my change in a new branch of main repo.

Thanks Dan - useful review and updates to the PlatformSeeder. I've made a few last tweaks (to handle cases where the project id environment variable is present but an empty string or where the variable doesn't exist at all).

When I setup main repo APNI Research, I pushed the previously published migration files from submodule. They are in main repo now. For my testing, I manually removed them and then publish submodule migration files for testing. (P.S. Still need to remove create permissions migration file)

👍 . Makes sense. I typically will update the migration files in the migration file to get them working, then copy them back into the package to update them. Your approach works well too, though you're right you then get some possible ordering issues.

In main repo, there are some migration files to be executed after running submodule migration files. Currently I renamed the date part in migration files to make them in correct seqeunce. Not sure how to make it work for a formal setup...

I think in a formal setup, devs would publish the migration files from the package when needed, and won't be re-publishing them, so there won't be these ordering issues we see from developing the package itself and re-publishing.

In main repo, I pushed a previously published submodule config file, we will need to remove it in main repo

Or update it! Depends if you had made changes to it or not.

In DatabaseSeeder.php, I cannot refer to seeder file in submodule. I copied the seeder file from submodule to main repo, then add it in DatabaseSeeder.php, then the seeder file can run.

That's odd. It works for me on the tape-data-system (code as above, also here )
This looks good - is this good to merge?


[WIP][HIVEMALL-171] Tracing functionality for prediction of DecisionTrees

What changes were proposed in this pull request?
Introduce decision_path UDF providing tracing of decision tree prediction paths
What type of PR is it?
Feature
What is the Jira issue?
https://issues.apache.org/jira/browse/HIVEMALL-171
How was this patch tested?
unit tests, manual tests on EMR
How to use this feature?
to be described in the user guide
Checklist

[ ] Did you apply source code formatter, i.e., ./bin/format_code.sh, for your commit?
[ ] Did you run system tests on Hive (or Spark)?

Show decision paths for each Decision Tree
SELECT
  t.passengerid,
  decision_path(m.model_id, m.model, t.features, '-classification')
FROM
  model_rf m
  LEFT OUTER JOIN -- CROSS JOIN
  test_rf t
limit 3;

passengerid
path

892
["2 [0.0] = 0.0","0 [3.0] = 3.0","1 [696.0] != 107.0","7 [7.8292] <= 7.9104","1 [696.0] != 828.0","1 [696.0] != 391.0","0 [0.961038961038961, 0.03896103896103896]"]

1309
["2 [0.0] = 0.0","0 [3.0] = 3.0","1 [1306.0] != 107.0","7 [22.3583] > 12.675","1 [1306.0] != 429.0","1 [1306.0] != 65.0","6 [117.0] != 481.0","6 [117.0] != 251.0","0 [0.9466666666666667, 0.05333333333333334]"]

1308
["2 [0.0] = 0.0","0 [3.0] = 3.0","1 [1305.0] != 107.0","7 [8.05] > 7.987500000000001","1 [1305.0] != 429.0","1 [1305.0] != 65.0","7 [8.05] <= 8.08125","1 [1305.0] != 338.0","1 [1305.0] != 220.0","6 [889.0] != 558.0","0 [1.0, 0.0]"]

SELECT
  t.passengerid,
  decision_path(m.model_id, m.model, t.features, '-classification', array('pclass','name','sex','age','sibsp','parch','ticket','fare','cabin','embarked'))
FROM
  model_rf m
  LEFT OUTER JOIN -- CROSS JOIN
  test_rf t
limit 3;

passengerid
path

892
["sex [0.0] = 0.0","pclass [3.0] = 3.0","name [696.0] != 107.0","fare [7.8292] <= 7.9104","name [696.0] != 828.0","name [696.0] != 391.0","0 [0.961038961038961, 0.03896103896103896]"]

1309
["sex [0.0] = 0.0","pclass [3.0] = 3.0","name [1306.0] != 107.0","fare [22.3583] > 12.675","name [1306.0] != 429.0","name [1306.0] != 65.0","ticket [117.0] != 481.0","ticket [117.0] != 251.0","0 [0.9466666666666667, 0.05333333333333334]"]

1308
["sex [0.0] = 0.0","pclass [3.0] = 3.0","name [1305.0] != 107.0","fare [8.05] > 7.987500000000001","name [1305.0] != 429.0","name [1305.0] != 65.0","fare [8.05] <= 8.08125","name [1305.0] != 338.0","name [1305.0] != 220.0","ticket [889.0] != 558.0","0 [1.0, 0.0]"]

SELECT
  t.passengerid,
  decision_path(m.model_id, m.model, t.features, '-classification', array('pclass','name','sex','age','sibsp','parch','ticket','fare','cabin','embarked'), array('no','yes'))
FROM
  model_rf m
  LEFT OUTER JOIN -- CROSS JOIN
  test_rf t
limit 3;

passengerid
path

892
["sex [0.0] = 0.0","pclass [3.0] = 3.0","name [696.0] != 107.0","fare [7.8292] <= 7.9104","name [696.0] != 828.0","name [696.0] != 391.0","no [0.961038961038961, 0.03896103896103896]"]

1309
["sex [0.0] = 0.0","pclass [3.0] = 3.0","name [1306.0] != 107.0","fare [22.3583] > 12.675","name [1306.0] != 429.0","name [1306.0] != 65.0","ticket [117.0] != 481.0","ticket [117.0] != 251.0","no [0.9466666666666667, 0.05333333333333334]"]

1308
["sex [0.0] = 0.0","pclass [3.0] = 3.0","name [1305.0] != 107.0","fare [8.05] > 7.987500000000001","name [1305.0] != 429.0","name [1305.0] != 65.0","fare [8.05] <= 8.08125","name [1305.0] != 338.0","name [1305.0] != 220.0","ticket [889.0] != 558.0","no [1.0, 0.0]"]

SELECT
  t.passengerid,
  decision_path(m.model_id, m.model, t.features, '-classification -no_sumarize')
FROM
  model_rf m
  LEFT OUTER JOIN -- CROSS JOIN
  test_rf t
limit 3;

passengerid
path

892
["2 [0.0] = 0.0","0 [3.0] = 3.0","1 [696.0] != 107.0","7 [7.8292] <= 7.9104","1 [696.0] != 828.0","1 [696.0] != 391.0","0 [0.961038961038961, 0.03896103896103896]"]

1309
["2 [0.0] = 0.0","0 [3.0] = 3.0","1 [1306.0] != 107.0","7 [22.3583] > 7.9104","1 [1306.0] != 429.0","1 [1306.0] != 65.0","7 [22.3583] > 12.675","6 [117.0] != 481.0","6 [117.0] != 251.0","0 [0.9466666666666667, 0.05333333333333334]"]

1308
["2 [0.0] = 0.0","0 [3.0] = 3.0","1 [1305.0] != 107.0","7 [8.05] > 7.9104","1 [1305.0] != 429.0","1 [1305.0] != 65.0","7 [8.05] <= 12.675","7 [8.05] <= 10.65205","1 [1305.0] != 338.0","1 [1305.0] != 220.0","6 [889.0] != 558.0","7 [8.05] <= 8.08125","7 [8.05] > 7.987500000000001","0 [1.0, 0.0]"]

SELECT
  t.passengerid,
  decision_path(m.model_id, m.model, t.features, '-classification -no_sumarize -no_verbose')
FROM
  model_rf m
  LEFT OUTER JOIN -- CROSS JOIN
  test_rf t
limit 3;

passengerid
path

892
["2 = 0.0","0 = 3.0","1 != 107.0","7 <= 7.9104","1 != 828.0","1 != 391.0","0"]

1309
["2 = 0.0","0 = 3.0","1 != 107.0","7 > 7.9104","1 != 429.0","1 != 65.0","7 > 12.675","6 != 481.0","6 != 251.0","0"]

1308
["2 = 0.0","0 = 3.0","1 != 107.0","7 > 7.9104","1 != 429.0","1 != 65.0","7 <= 12.675","7 <= 10.65205","1 != 338.0","1 != 220.0","6 != 558.0","7 <= 8.08125","7 > 7.987500000000001","0"]

SELECT
  t.passengerid,
  decision_path(m.model_id, m.model, t.features, '-classification -no_sumarize -no_verbose -no_leaf')
FROM
  model_rf m
  LEFT OUTER JOIN -- CROSS JOIN
  test_rf t
limit 3;

passengerid
path

892
["2 = 0.0","0 = 3.0","1 != 107.0","7 <= 7.9104","1 != 828.0","1 != 391.0"]

1309
["2 = 0.0","0 = 3.0","1 != 107.0","7 > 7.9104","1 != 429.0","1 != 65.0","7 > 12.675","6 != 481.0","6 != 251.0"]

1308
["2 = 0.0","0 = 3.0","1 != 107.0","7 > 7.9104","1 != 429.0","1 != 65.0","7 <= 12.675","7 <= 10.65205","1 != 338.0","1 != 220.0","6 != 558.0","7 <= 8.08125","7 > 7.987500000000001"]

SELECT
  t.passengerid,
  decision_path(m.model_id, m.model, t.features, '-classification -no_verbose -no_leaf')
FROM
  model_rf m
  LEFT OUTER JOIN -- CROSS JOIN
  test_rf t
limit 3;

passengerid
path

892
["2 = 0.0","0 = 3.0","1 != 107.0","7 <= 7.9104","1 != 828.0","1 != 391.0"]

1309
["2 = 0.0","0 = 3.0","1 != 107.0","7 > 12.675","1 != 429.0","1 != 65.0","6 != 481.0","6 != 251.0"]

1308
["2 = 0.0","0 = 3.0","1 != 107.0","7 > 7.987500000000001","1 != 429.0","1 != 65.0","7 <= 8.08125","1 != 338.0","1 != 220.0","6 != 558.0"]

SELECT
  t.passengerid,
  decision_path(m.model_id, m.model, t.features, '-classification -no_verbose -no_leaf', array('pclass','name','sex','age','sibsp','parch','ticket','fare','cabin','embarked'), array('no','yes'))
FROM
  model_rf m
  LEFT OUTER JOIN -- CROSS JOIN
  test_rf t
limit 3;

passengerid
path

892
["sex = 0.0","pclass = 3.0","name != 107.0","fare <= 7.9104","name != 828.0","name != 391.0"]

1309
["sex = 0.0","pclass = 3.0","name != 107.0","fare > 12.675","name != 429.0","name != 65.0","ticket != 481.0","ticket != 251.0"]

1308
["sex = 0.0","pclass = 3.0","name != 107.0","fare > 7.987500000000001","name != 429.0","name != 65.0","fare <= 8.08125","name != 338.0","name != 220.0","ticket != 558.0"]

Show frequently appeared branch
WITH tmp as (
  SELECT
    decision_path(m.model_id, m.model, t.features, '-classification -no_verbose -no_leaf', array('pclass','name','sex','age','sibsp','parch','ticket','fare','cabin','embarked')) as path
  FROM
    model_rf m
    LEFT OUTER JOIN -- CROSS JOIN
    test_rf t
)
select
  r.branch,
  count(1) as cnt
from
  tmp l
  LATERAL VIEW explode(l.path) r as branch
group by
  r.branch
order by
  cnt desc
limit 100;

branch
cnt

sex = 0.0
112782

sex != 0.0
68905

pclass = 3.0
55387

pclass != 3.0
53513

embarked != 1.0
42619

parch <= 0.5
33110

pclass != 1.0
31776

ticket != 71.0
27084

...
...


MSmedia, MSmodel, rast_client, rpcclient, and Template

Hello @Fxe ,
Here are a few edits and error corrections to MSmedia, MSmodel, rast_client, rpcclient, and template.
MSmedia:

negative values are prefixed directly to values
generic argument names were clarified
items() simplified a for loop

MSmodel:

pyeda is imported, with a comment for Windows users (for whom the import was originally commented). This prevents a ModelNotFoundError later in the code when pyeda is called by never imported.
Error messages were clarified
the empty argument catch of get_set_set was moved to the beginning of the function, to save unnecessary computation.
replace returns the original string if the sought character is not found, so the logic was simplified
a possible error with get_set_set is flagged, where its named suggests that it returns a set but it actually returns a dictionary.

rast_client:

unused imports are flagged

rpcclient:

an in-line conditional was simplified
the second condition of call, where self.token is not None, is corrected to use self.token instead of token, since Token was determined to be None in the previous condition.

template:

unused imports were flagged
variable definitions are condensed
1/0 boolean logic, not involving KBase objects, is replaced with True/False

I can clarify or discuss any changes.
Thank you so much :)
Andrew

Looks good overall. We should be careful about the boolean change in the template function, as this may break code that calls this function. You should check this.


Replace actions menu with button(s)

Scope of changes
This PR replaces the actions menu with buttons to allow users to trigger specific actions depending on the resource.
Making the table rows clickable was previously discussed, but that change would make it so that users aren't able to copy data displayed in a table. Also, the change would've either had to be made with JS or by adding a link to each <td> . Other options would've required significant CSS changes or not using <table> which then requires having to make the element replacing the table accessible.
This change would be consistent with the Delete button currently displayed in the api keys table.
Questions:

Do we want to use Action buttons instead of making the table rows clickable?
If we move forward with the button, do we still want to include a preview button in the transactions list table?

Type of change

[ ] bug fix
[ ] new feature
[ ] documentation
[x] other (describe)

Acceptance criteria
https://www.awesomescreenshot.com/video/30573463?key=8a81008160c7fd306955d4791397fa90
Author checklist

[x] I have manually tested the change and/or added automation in the form of unit tests or integration tests
[ ] I have updated the dependencies list
[ ] I have added new test fixtures as needed to support added tests
[ ] I have added or updated the documentation
[x] Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)

Reviewer(s) checklist

[ ] Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.
[ ] To the best of my ability, I believe that this PR represents a good solution to the specified problem and that it should be merged into the main code base.

@pdeziel Yes, the main question was about whether we should use the button instead. The other one I had can be discussed during a future sync.


fix: Add a paragraph about authentication to Actor Standby

This is a quite important part of sending Standby requests, and it was missing.
I'm having a hard time coming up with some nice formatting, @TC-MO feel free to restructure as you deem fit.

as for formatting, maybe a bigger code example instead of just code within text would  be better?

Do we have some example of how to put bigger code examples within lists?


Refactor Codebase to Use Abstract Syntax Trees for Code Changes

PR Type:
Refactoring

PR Description:
This PR introduces a major refactoring of the codebase to use Abstract Syntax Trees (ASTs) for managing code changes. The main changes include:

Replacing the previous Change and Changes classes with a new set of classes that represent different types of code modifications (e.g., AddFunction, DeleteFunction, ModifyFunction, etc.).
Implementing an ASTChangeApplicator class that applies a list of changes to a given source code.
Implementing a CustomASTTransformer class that visits different nodes in the AST and applies the necessary modifications.
Updating the backend/app_setup.py and backend/database/my_codebase.py files to accommodate these changes.
Increasing the MAX_TOKENS limit in backend/agent/agent.py from 2000 to 4000.
Adding new test cases in backend/tests/test_codebase.py and backend/tests/test_memory_manager.py.

PR Main Files Walkthrough:
 files:

backend/agent/agent_functions/changes.py: Replaced the previous Change and Changes classes with a new set of classes that represent different types of code modifications. Implemented an ASTChangeApplicator class that applies a list of changes to a given source code. Implemented a CustomASTTransformer class that visits different nodes in the AST and applies the necessary modifications.
backend/app_setup.py: Updated the CodingAgent instantiation to not include the Changes callable, which has been removed.
backend/database/my_codebase.py: Updated the remove_old_files and _update_files_and_embeddings methods to accommodate the new changes.
backend/agent/agent.py: Increased the MAX_TOKENS limit from 2000 to 4000.
backend/tests/test_codebase.py: Added new test cases to validate the changes.
backend/tests/test_memory_manager.py: Updated the setup method to setup_method to align with pytest conventions.

/describe

/update_changelog

'/update_changelog --pr_update_changelog.push_changelog_changes=true'


[Modal] Fix scroll jump issue

[x] I have followed (at least) the PR section of the contributing guide.

Fixes scroll jump issue that occurs when opening Modal (#18793)
@oliviertassinari I deviated from your suggested diff so that scroll is still disabled when the container is not overflowing (I also added a related test for that).
Closes #18793

@cvara Thanks for the new test case! I have tried to make the logic a bit denser, let me know :)

Yeah, I misread your diff, sorry. It's cleaner this way.

Thank you!

Happy to have helped a bit :)

Contribution like this one x1,000 it makes a huge difference :).


to array form confusing

Let's say we have this sanitization form
{
	"type":"object",
	"properties":{
		"code":{
			"type":"array",
			"items":{
				"type":"number"
			}
		},
		"class":{
			"type":"array",
			"items":{
				"type":"string"
			}
		}
	}
}

When I send body like below, the result looks reasonable.
// source
{ code: '2,4,6', class: 'C,A' }
// -> result
{ code: [2,4,6], class: ['C', 'A'] }

However, look this situation,
// source
{ code: '[2,4,6]', class: '[C,A]' }
// -> result
{ code: [2,4,6], class: '[C,A]' }

numbers go right, but strings are not. The source is not weird form while we are dealing with query params like ?code=[2,4,6]&class=[C,A]. Because everything are strings in query params as you know.

Hi @heycalmdown
When the value is "[C,A]", schema-inspector call JSON.parse(), and it fails because it's not a valid JSON string. On the other hand, "[2,4,6]" can be parsed via JSON.parse()
You should try to send ?code=2,4,6&class=C,A or ?code=[2,4,6]&class=["C","A"]

Got it. I understood. Thanks! :)


stream sidebar: Stop interleaving muted streams

There hasn't been a final decision on this yet, but in some offline conversations we've been considering changing how we show muted streams.  Instead of keeping them interleaved among non-muted streams (and grayed out), we may move muted streams to their own section in the left sidebar.
Muted streams would appear below non-muted streams and above inactive streams.
When we mute a stream, especially when using a sidebar chevron menu, we need to decide what happens in the left sidebar.  We will probably mostly mimic the UI that happens when you unpin a stream.  See #1714 for more details on sidebar scrolling.
(Likewise, when unmute a stream, we will probably mostly mimic the pinning UI.)

I'm closing this, since I already find the stream sidebar too complicated in how we treat not-recently-active streams.


Example with multiple exogenous variables

Suppose I want to forecast a series, using itself plus multiple other series as exogenous variables. Is it possible? can you provide a simple example?

Sure. There are two ways to do this:

Explicit multivariate models - only VAR models at the moment in this library. You would enter a dataframe with the multiple series, specify the lag order, then you can do multivariate prediction straight from there.

Implicit multivariate models - if there is one series in particular you are interested in, then first choose a model that allows you to include exogenous variables, such as:

ARIMAX model
GASX model
GASReg model
Dynamic Linear Regression model (Gaussian state space)
Dynamic Non-Linear Regression model (Non-Gaussian state space)

And include the other series as your predictors via patsy notation (see examples). The tricky bit is how to do prediction with these exogenous variables - you'll need to forecast the exogenous variables (e.g. estimate univariate models on these and get predictions via the predict() method). Once you have the predictions for the exogenous variables, put them into a dataframe. Then use this dataframe in the predict() method of your main model as the oos_data() argument.
Appreciate the answer above is a bit verbose. TLDR answer is: make forecasts of the exogenous variables, make a dataframe out of them, and include the dataframe as the data_oos argument in predict().

Thanks! it really helped.

No worries at all.


How can the customised props be kept after updating components from shadcn

Overview

Take button.tsx from shadcn/ui as an example
I wanna set my custom  variant& size style in button.tsx since the default ones don't fit my use case

Struggle

When running npx shadcn-ui@latest add button, all of my customised variant& size gone

Question

How can I suppose to set custom variant in the component level and also remain flexible to get updates from shadcn/ui? Thank you!

@tcf01 shadcn/ui is like an wrapper on components, you can always update the button component created in components folder as per your need.

@tcf01 shadcn/ui is like an wrapper on components, you can always update the button component created in components folder as per your need.

@rahulpunase Yeah, I have tried that.
Let say I have added sth in my component(See the comment line). However after running npx shadcn-ui@latest add button, myTestingVariant will be gone.
I think it will be hard to manage if we have a lot of shadcn/ui components and we need to diff them manually. Is there any workarounds for this issue
const buttonVariants = cva(
  'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
  {
    variants: {
      variant: {
        myTestingVariant: 'bg-primary text-primary-foreground hover:bg-primary/90', //this is my custom variant
        default: 'bg-primary text-primary-foreground hover:bg-primary/90',
        destructive:
          'bg-destructive text-destructive-foreground hover:bg-destructive/90',
        //...
      },
      //...
    },
    //...
  },
)

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

Is there any work around to overcome the issue!

i am in the same situation where i made some customization to some components inside the /ui folder, and now i would like to update the shadcn to the latest version, one of the reason is the new integration of RTL direction support. I don't want the update to overwrite what i customed ...


Fix the action warnings

Blindly bumped to the latest versions. Not sure how to test these, you'd need to trigger a snapshot using the version in the PR.

You can trigger the snapshot workflow from the branch if it's in the main repo (not on a fork) if you really want to rest it before we merge it


Create a seperate selinux util script for airgap downloads.

Is your feature request related to a problem? Please describe.

When dealing with airgap installs on RHEL/Centos/SLE systems with selinux, its unclear what k3s selinux rpm you need/ is the latest available until you run the install.sh script and its spits out an error at you.
Describe the solution you'd like

Duplicate the selinux functions in install.sh into a separate script in contrib/util. This script would simply download the appropriate rpm for the system. It could then be separately installed by the user, or transferred another airgapped node and installed there.
Describe alternatives you've considered

Additional context

Do we need a script for this, or can we just point users at the release artifacts for k3s-selinux and trust them to pick the correct target distro that they plan to install upon?

Brad is right, pointed them to the correct release section is more than sufficient.


Added ACS Chat preview feature: introducing chat data retention as a thread property.

This preview API introduces introducing chat data retention as a thread property.

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.Communication.Chat


I want setup eclipse and program orther in support teamtalk please help me.

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way


Clarify documentation on MarkdownEditor file upload functionality

When reading the documentation it is not obvious how the file upload functionality of the MarkdownEditor is supposed to work. This PR adds the information on how the feature is working to the description of the MarkdownEditor field.

Thanks!


Loss of accuracy of accumulated time

https://github.com/NucciTheBoss/charming-exercises/blob/20e2c30e57d8fb3d41dac342b6542f2f6d3b7b55/hot-potato/src/charm.py#L54
Using round() causes a significant loss of precision and actually introduces error. > x.5 rounds up, which is up to just under +0.5 off, while <= x.5 rounds down which is up to -0.5 off.
What if the delta between each update was <= 0.5? What would time_elapsed be? The issue doesn't go away even if the delay is >=1s.
You are better off keeping accurate counts and tweaking displays that favoring display and lossing information.

Fixed in the latest update.


Features and Templates UX with growing collections

Context
Once we opened up the dev container spec, we moved to a model of community-hosted Templates and Features (through "Collections"), rather than a mono-repo where the spec maintainers own everything.
We've seen tremendous and fast-paced growth in our collections, which is very exciting! Though this growth poses an interesting challenge: how do we effectively display these collections in supporting tools without the list getting too long?
Current examples
Supporting tools like VS Code and GitHub Codespaces surface the Templates and Features from the spec's index. While currently effective overall, it'll pose more challenges over time:

Uncertainty over which Template or Feature to choose - it can be confusing or overwhelming trying to consider what each one does, where it comes from (publisher), etc
Latency in loading and searching through so many artifacts
Process of browsing and getting more info is disruptive

Brings user to github.com, rather than staying in their editor

Potential solutions

Sort by verified Templates or Features first

Need ability for checkmark for collections beyond those hosted in the devcontainers GitHub org

Filtering to a more manageable and applicable list

i.e. filter by OS, tech stack

In-product marketplace for getting more info (to avoid being redirected out to GitHub)

Next steps
Share this issue with the community, including in our dev container community Slack channel, to get broader feedback.

I think something like the GitHub Apps/Actions marketplace https://github.com/marketplace is a good place to take inspiration from. In fact, many companies or projects that have community-driven addons/plugins/content use something akin to a /marketplace page. Some examples other than GitHub include: https://vercel.com/integrations https://wordpress.org/plugins/ https://hub.docker.com/search?q=&type=extension https://aws.amazon.com/marketplace
Here's a rough napkin sketch of a marketplace-like thing: https://devcontainers.org/marketplace
Another alternative (less techy, more manual) is an awesome list like https://github.com/vitejs/awesome-vite#plugins or https://github.com/rollup/awesome


[AppConfig] Adding autorest customization for SettingFields

resolve issue: https://github.com/Azure/azure-sdk-for-java/issues/33993

API change check
API changes are not detected in this pull request.


Link to  Add-TPMSelfWriteACE.vbs doesnt work

Page has a link to required script  Add-TPMSelfWriteACE.vbs. When I click this doesn't go to this script just a general download page where searching for this script doesnt work.

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

ID: 61c3977f-3b78-1d8e-ad8f-50538ad1934f
Version Independent ID: 46b9ab6d-7a30-4dab-70fa-e1c97cc3ec3e
Content: Set up MDT for BitLocker (Windows 10) - Windows Deployment
Content Source: windows/deployment/deploy-windows-mdt/set-up-mdt-for-bitlocker.md
Product: w10
Technology: windows
GitHub Login: @greg-lindsay
Microsoft Alias: greglin

@greg-lindsay. issue is confirmed by me also. Script ls missing.

The script is also referenced at https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc766015(v=ws.10)?redirectedfrom=MSDN
It appears the download was removed. I think this was due to removal of SHA1 signed uploads.  It is also available here: https://github.com/DeploymentArtist/DF4/blob/master/BitLocker and TPM/Add-TPMSelfWriteACE.vbs
To fix this I am likely going to have to re-upload the script to the DLC and edit the link to point to the new upload.  In the meantime, it's possible to just copy the script from the link I provided here.

I've replaced the script center link with a link directly to the author's github source.

@greg-lindsay . Thanks for updating script link. Just now I visited link and I have seen it .

Thank you, @greg-lindsay


Could not resolve com.carlosgub.kotlinm.charts:charts:1.0.2

When I tried to build the project, I got the next error:
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve com.carlosgub.kotlinm.charts:charts:1.0.2.
     Required by:
         project :app
      > Could not resolve com.carlosgub.kotlinm.charts:charts:1.0.2.
         > Could not get resource 'https://maven.pkg.github.com/carlosgub/kotlinm-charts/com/carlosgub/kotlinm/charts/charts/1.0.2/charts-1.0.2.pom'.
            > Could not GET 'https://maven.pkg.github.com/carlosgub/kotlinm-charts/com/carlosgub/kotlinm/charts/charts/1.0.2/charts-1.0.2.pom'. Received status code 401 from server: Unauthorized

I think it is because the credentials in the project are wrong.

Create a GitHub Access token with permission read:packages and change the token in settings.gradle.kts, also change the username

Thanks! @EzekielWachira It is working now :)


[Draft] Add support for TXT format

added support for TXT format (every row is just one value containing the whole line)

@akariv
@OriHoch
please take a look - I've created a draft per https://github.com/frictionlessdata/datapackage-pipelines/pull/35

looks good, I'll integrate it with our use-case and see how it works

@roll - see #155 - added a failing test for our use-case

@OriHoch
Thanks. I've added a config parameter to skip html detection for whitelisted types.

@roll perfect! :bowtie:

@roll @akariv
Is this not feature creep? It is a real stretch to consider this tabular data IMHO, and there is no advantage to using tabulator for this type of data.
If we do want to expand the concept of tabulator to this level, then is this the correct abstraction for HTML? Unlike text files, where we have decades of convention splitting on lines, doing the same for HTML is almost meaningless.
An HTML parser in the sprit of tabulator would likely view the document as a tree, with top-level branches of head and body, no? Not so different, conceptually, to our streaming JSON parser based on ijson.
I'm not against this if you two are for it, but reading this, it really feels like a "feature" that does not need to be implemented in tabulator in order to support these data sources in Data Package Pipelines.

@pwalsh
I agree that the HTML use case is not something tabulator should deal with - but in this PR it's a text parser not an HTML parser.
Regarding adding the text parser - I agree that it's a stretch but it solves a very general "itch" of being able to use  a the Tabulator loaders and streaming facilities (while ignoring the parsing)
This is very useful and to have the same functionality without Tabulator will require to duplicate a lot of code from Tabulator
Ideally - if the loaders part of Tabulator were extracted to some kind of a loading module - we would have used that directly without Tabulator..

@akariv
@pwalsh
Honestly I don't have an opinion on it for now. So just an example how it could be implemented on tabulator level for https://github.com/frictionlessdata/datapackage-pipelines/pull/35#issuecomment-293150768
@OriHoch
After tabulator-v1 release I'm going to make custom loaders and parsers as provisional public API. For now it's just intentionally hidden because for v1 the focus is to be not a framework but library which just works for main schemes and formats. Also loader/parser protocols are not fully finalized to be publicly available.

The TXT processor is a degenerate CSV parser (with the delimiter being '\n', and no quoting or headers). So, we can always abuse tabulator to read these files - even without these code modifications (although we'll still need to be able to switch off html detection with an extra parameter).
DEMO:
$ cat > bla
Standing on the water casting your bread
While the eyes of the idol with the iron head are glowing.
Distant ships sailing into the mist,
You were born with a snake in both of your fists while a hurricane was blowing.
Freedom just around the corner for you
But with truth so far off, what good will it do?

Jokerman dance to the nightingale tune,
Bird fly high by the light of the moon,
Oh, oh, oh, Jokerman.
$ python
Python 3.6.1 (default, Mar 27 2017, 00:25:54)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-8<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tabulator
>>> it=tabulator.Stream('bla', format='csv', delimiter='\n', headers=['data']).open().iter()
>>> list(it)
[['Standing on the water casting your bread'], ['While the eyes of the idol with the iron head are glowing.'], ['Distant ships sailing into the mist,'], ['You were born with a snake in both of your fists while a hurricane was blowing. '], ['Freedom just around the corner for you'], ['But with truth so far off, what good will it do?'], [], ['Jokerman dance to the nightingale tune,'], ['Bird fly high by the light of the moon,'], ['Oh, oh, oh, Jokerman.']]

Is this really abuse? A bit.

For some text files it actually makes lots of sense (e.g. https://raw.githubusercontent.com/dwyl/english-words/master/words.txt).
For others it doesn't, although still useful (e.g. if you want to grep over a file it's nice to have a way to stream its lines even if it's remote).
I agree that for many HTMLs it won't work, but for others it might be used to feed the parser incrementally (http://lxml.de/parsing.html#incremental-event-parsing).

Do we need tabulator for that? Perhaps not all of it, although it's loader system is pretty useful (and a waste to rewrite).
I suggest that if this is possible to do it without adding a custom TXT processor (and it seems to be the case), then let's do it like this - we just need the HTML detection feature to be configurable.
@roll @OriHoch what do you think?

@akariv
I was thinking about it - I suppose it just should be checked on some dialect edge-cases like how it will handle escape char (or disable) etc.

I think that the txt parser solves this in a very elegant, simple way and with minimal risk
Also, I don't think it's a very large stretch to consider plain text files as tabular data with a single column
for example, consider sources like this - https://github.com/dwyl/english-words

another option -
refactor this code from stream.py into a public function:
        # Initiate loader
        self.__loader = None
        if scheme is None:
            scheme = helpers.detect_scheme(self.__source)
            if not scheme:
                scheme = config.DEFAULT_SCHEME
        if scheme not in config.LOADERS:
            message = 'Scheme "%s" is not supported' % scheme
            raise exceptions.SchemeError(message)
        loader_path = config.LOADERS[scheme]
        if loader_path:
            loader_class = helpers.import_attribute(loader_path)
            loader_options = helpers.extract_options(options, loader_class.options)
            self.__loader = loader_class(**loader_options)

that's most of the work, then maybe another function that streams from the loader

So we have a few options here:

Add txt support to tabulator as originally suggested
Allow disabling of HTML detection and parse txt as a special CSV dialect
Expose loader functionality as a public API

I guess that (2) can be done now and (3) can be considered for v1.
@OriHoch I think that if we can achieve the same end-goal with existing functionality + parameters (i.e. special CSV dialect) it's better than adding code that doesn't completely fit in. We can have code that detects format="txt" format and replace it with csv + the specific parameters (e.g. delimiter='\n', headers=["data"] etc.)
@roll - what do you say?

@akariv
I'm +1 to (2) with Stream(allow_html=False).

I tested the csv hack - it does some transformations on the data which might cause unexpected problems
here is a test-case with a couple of example I found:
https://gist.github.com/OriHoch/67947d3e7ba12e3d2265a0f9b8076314
from the point of view of datapackage-pipelines - I think that if we can't ensure a 100% transformation accuracy it's not so usable for us and we will just have to live without the added benefits of the Tabulator loaders

I will be able to create Stream(allow_html=False, custom_parsers={'txt': <you-parser>}) on tabulator level as a provisional API on next week if all other solutions don't make happy everyone. It's relatively simple just can't jump on it on this week.

@roll  - yes, that's perfect! next week is fine

@roll - is there an issue for this change (above)? Should I open one?

@akariv
https://github.com/frictionlessdata/tabulator-py/issues/156
I plan to be on it tomorrow.

Cool @roll, for some reason I didn't spot it... thanks!


Whitelist which env variables we would like to collect

I don't like the idea that we collect all environment variables when something fails for sentry-cli because we might leak secrets from anyone using this.

I'm not as concerned about this anymore.

I'm not as concerned about this anymore.


Not pulling clover sources( Won't build )

Doesn't seem to be pulling clover, just says it's downloading and returns me to the command prompt immediately.
`jam$ clobber

(  \ ( )    (  _  )(  _\ (  \ (  _\ |  `
| ( ()| |    | ( ) || () )| () )| (()| () )
| |  _ | |  _ | | | ||  _ <'|  _ <'|  ) | ,  /
| (( )| |( )| () || () )| () )| (( )| |\
(/'(/'(_____)(/'(/'(_/'() ()
v0.1.4 by @Dids
✔ Verifying folder structure
✔ Verifying UDK2018 is up to date
◌ Downloading Clover ⠹ :~ jam$ `

Try running with clobber --verbose to further debug it. Build logs can also be found in ~/.clobber/logs. Also which OS version are you running?

Try running this manually: svn list ttps://svn.code.sf.net/p/cloverefiboot/code

Thanks, I just had to run the svn co https://svn.code.sf.net/p/cloverefiboot/code /Users/jam/.clobber/src/edk2/Clover command and accept the certificate.


Evaluate removal of pragma warning for SYSLIB0015

Since 6.0.0-preview.3 DisablePrivateReflectionAttribute is removed. Please evaluate its removal from CoreAdapter.cs
Reference: https://docs.microsoft.com/en-us/dotnet/api/system.runtime.compilerservices.disableprivatereflectionattribute?view=net-6.0
PR which disabled the warning: https://github.com/PowerShell/PowerShell/pull/15221

If I understand correctly whole nternal static bool DisallowPrivateReflection(Type type) method should be removed.

@adityapatwardhan Is it removed or just obsoleted?


A way to seed database is required

Hello! I see the issue #2069.
The thing is what described there is not seeding and for sure it's better to do with migrations.
What seeding is - it is filling database with fake data. This can be done for demonstration, for example.
And this mechanism is needed. It's important to understand what seeding is, because it's often mixed up.
Take a look at how rails works: it has a command for applying migrations rake db:migrate and a command for applying seed data rake db:seed. I think we need something similar here.

We have a way to do it using faker: https://github.com/yiisoft/yii2/tree/master/extensions/faker#faker-extension-for-yii-2

Fake is a way to seed database.
But is there a mean  and a dedicated place to do this in Yii2 ?
I search ... but seems no .

https://github.com/yiisoft/yii2-faker/blob/master/docs/guide/README.md

What do you mean by "mean and a dedicated"?

I found information in your link.
My wonder was to separate processing of testing and processing of seeding.
And reading test chapter led me to misundertsand. I thought that in fixture was only possible when fetching tests.
And it seems that I could call it in a separate way fixture/generate users
so everything was ok


请问，如何import进来

如题

Hi, could you please leave your comments in english ?
你好，你能用英文發表評論嗎？

when i use in vue3 project, get the error:
The following dependencies are imported but could not be resolved:
vue3-tree-vue/dist/types/src/types
And my code is:
import Vue3TreeVue from 'vue3-tree-vue'
import { TreeViewItem } from 'vue3-tree-vue/dist/types/src/types'

Oops!
@liu3104009029 have you been able to resolve this? Also what version are you working with? Thanks.

still not resolved！
<EMAIL_ADDRESS>

Thanks for the update. Kindly provide a sample I can reproduce ?

It may be that other unknown packages are referenced in my project, causing this error. I apologize for my sloppiness, sorry! ! !


Why CategoricalSampling doesn't use self.frequency?

https://github.com/VicentePerezSoloviev/EDAspy/blob/f5fd52be374fa510db4da73bf5cf5eb6fb55c3d0/EDAspy/optimization/custom/initialization_models/categorical_geninit.py#L32-L46

Thank you for pointing this out. This is a bug that has been moved from the samplers. It is defined in order to ensure the initial probabilities of each possible instance. Will go through it and solve this. Thanks.

Checkout the new version in https://github.com/VicentePerezSoloviev/EDAspy/blob/master/EDAspy/optimization/custom/initialization_models/categorical_geninit.py
Now the initializer has been updated.

The issue has been solved


getMappingFile is deprecated

getMappingFile is deprecated from AGP 3.6.0 (frist stable version comes Feb 2020, frist alpha version comes May 2019).
It's not a big deal, only warning logs show every time on build. I'm just giving this information.

You're right


ARROW-12060: [Python] Enable calling compute functions on Expressions

This makes the following already possible (to use in filter or projection expression in dataset):
In [1]: import pyarrow.compute as pc

In [2]: import pyarrow.dataset as ds

In [3]: pc.hour(ds.field("datetime_col"))
Out[3]: <pyarrow.dataset.Expression hour(datetime_col)>

In [4]: pc.days_between(ds.field("col1"), ds.field("col2"))
Out[4]: <pyarrow.dataset.Expression days_between(col1, col2)>


chore: patch revm to reth_freeze

pin revm to same branch that reth uses
ref
https://github.com/foundry-rs/foundry/pull/6416
https://github.com/bluealloy/revm/pull/875
FYI @DaniPopes

We can merge the 2 prs if the alloy bump can be cherry picked onto this branch

closing in favor of #6416


virtcontainers: Don't ignore container mounts based on their path

Instead of ignoring containers based on their path, this commit
relies on the type of mount being "bind" to choose if this mount
should be ignored or not.
For instance, we have some use cases where k8s expects the path
"/dev/container-log" to be bind mounted inside the container, but
the code ignores it because it has the prefix "/dev" which is a
system prefix mount.
Fixes #116 #122
Signed-off-by: Sebastien Boeuf<EMAIL_ADDRESS>

/cc @bergwolf @laijs @jodh-intel @grahamwhaley @egernst @chavafg

lgtm

@jodh-intel @egernst Updated !

lgtm

Waiting for CI to turn green...

I see an error from the log-parser tool:
ERROR: kata-log-parser: failed to parse agent log entry {Count:0 TimeDelta:0 Filename:/home/jenkins/jenkins_slave/workspace/kata-containers-runtime-ubuntu-16-04-PR/go/src/github.com/kata-containers/tests/kata-proxy.log Line:40213 Time:2018-03-28 16:46:15.612334551 +0000 UTC Pid:11669 Level:info Msg:time="2018-03-28T16:46:15.591557266Z" level=debug msg="process exited" name=kata-agent pid=204 source=agent status=1[    2.329912] CS:  0010 DS: 0000 ES: 0000 CR0:<PHONE_NUMBER>050033
 Source:agent Name:kata-proxy Data:map[]}: key "0000" already exists in map with value "" (entry: &{Count:0 TimeDelta:0 Filename:/home/jenkins/jenkins_slave/workspace/kata-containers-runtime-ubuntu-16-04-PR/go/src/github.com/kata-containers/tests/kata-proxy.log Line:1 Time:2018-03-28 16:46:15.591557266 +0000 UTC Pid:204 Level:debug Msg:process exited Source:agent Name:kata-agent Data:map[CS:: 0010: DS:: 0000: ES:: status:1[ 2.329912]:]}) (entry: {Count:0 TimeDelta:0 Filename:/home/jenkins/jenkins_slave/workspace/kata-containers-runtime-ubuntu-16-04-PR/go/src/github.com/kata-containers/tests/kata-proxy.log Line:1 Time:2018-03-28 16:46:15.591557266 +0000 UTC Pid:204 Level:debug Msg:process exited Source:agent Name:kata-agent Data:map[DS:: 0000: ES:: status:1[ 2.329912]: CS:: 0010:]})


[next export] Render dynamic content by query string for exported html

Is there a way to render dynamic content by query string for exported html? What about a hook (onload) after page load?

Solution: just use query string for params (instead of a custom router) and Router.replace to do the navigation. Everything work out of the box.


Caching Contract/Token

Calling web3 even for the symbol name is slow.
We could create the Token object in one model, pass it to other models. The same query to web3 may run multiple of times.
We can cache the loaded Contract/Token with respect to the inputs for initialization, chain_id and block_number.

@newtectonics and I discussed this. When a model returns a token, most times you just want the address and don't want the meta data. When passing a token as input, it could sometimes be useful to send in more meta data if it's available. Since it's the same DTO, I think we'd need to add a method that could be used when using it as input.
Perhaps something like this:
self.context.models.example.foobar(token=token.withMetadata())

Alternatively, we could have a token.metadata model that returns the metadata for a token address on a given chain_id and block_number and the results would be cached.

@leafyoung Is this still relevant?

The performance bottleneck has been reduced. Let's close this for now.


Sync project_api branch with the master

This PR sync all the changes in the master branch with the project_api branch.

merging without the tests will get them fixed with a separate PR


feat: split trivy.imageRef into trivy.repository and trivy.tag

Signed-off-by: Engin Diri<EMAIL_ADDRESS>Description
This PR is related to #522. We use in our company a private registry, and while we can seperate for the operator the registry from the tag it was not possible for the trivy image itself.
With this PR we can do this, and don't have to think about to check the tag when we update the operator itself.
Related issues

Close #522

Remove this section if you don't have related PRs.
Checklist

[x] I've read the guidelines for contributing to this repository.
[x] I've added tests that prove my fix is effective or that my feature works.
[x] I've updated the documentation with the relevant information (if needed).
[x] I've added usage information (if the PR introduces new options)

@dirien Look good!! couple of comments:

Run : make generate-all to re-generate deploy/static/trivy-operator.yaml

update docs with updated params

once checks passes we are good for merge

Thanks for the feedback @chen-keinan. Done and ready to review when you are 😄

Thanks for the feedback @chen-keinan. Done, and ready to review when you are 😄

cool ,We need also to update the initConfig for the tests to pass

Sorry @chen-keinan for my n00b style! Now I run make test to ensure that all test are running  through without an error! 😅

@dirien LGTM 🚀  thank you for the contribution , I'm holding merge as I want to make a patch release with security fixes
#529 #531   , we can marge it afterwards.


insecure-skip-tlog-verify: rename and adapt the cert expiration check

closes: https://github.com/sigstore/cosign/issues/2590
Summary

Based on the discussion in https://github.com/sigstore/cosign/issues/2590, we decided to rename the flag from insecure-skip-tlog-verify to insecure-ignore-tlog. Likewise, we also decided to throw an error expecting a signed timestamp whenever users ignore the tlog validation and no timestamp-rfc3161 was present.
Release Note

Documentation

Codecov Report

Merging #2620 (a66fb00) into main (3a492c7) will decrease coverage by 0.00%.
The diff coverage is 25.00%.

@@            Coverage Diff             @@
##             main    #2620      +/-   ##
==========================================
- Coverage   30.14%   30.13%   -0.01%
==========================================
  Files         146      146
  Lines        9252     9255       +3
==========================================
  Hits         2789     2789
- Misses       6032     6035       +3
  Partials      431      431

Impacted Files
Coverage Δ

cmd/cosign/cli/options/verify.go
0.00% <0.00%> (ø)

cmd/cosign/cli/verify.go
0.00% <0.00%> (ø)

cmd/cosign/cli/verify/verify.go
22.49% <0.00%> (ø)

cmd/cosign/cli/verify/verify_attestation.go
3.43% <0.00%> (ø)

pkg/cosign/verify.go
39.36% <20.00%> (-0.14%)
:arrow_down:

cmd/cosign/cli/verify/verify_blob.go
49.33% <100.00%> (ø)

cmd/cosign/cli/verify/verify_blob_attestation.go
33.64% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Search bar takes a while to load

Migrated from GitLab: https://gitlab.com/meltano/hub/-/issues/108
Originally created by @DouweM on 2021-08-04 14:08:26

Possibly because https://gitlab.com/meltano/hub/-/blob/main/js/main.js#L5 uses the load event instead of DOMContentLoaded.

View 3 previous comments from the original issue on GitLab


Fixed metatron.sh script upstart mode

Description
The upstart mode couldn't be used because there was no logic to extract the flag from the arguments passed to the script.
The upstart mode starts the application in foreground mode which is useful if you use a service manager which manages the lifecycle of the process. I renamed the upstart mode to foreground since it basically just starts the application in the foreground. This mode is also used by other service managers like systemd or Solaris / Illumos SMF.
I have also removed the piping of stdout to log file from the forgeround mode. When using systems like systemd, SMF, etc. these manage the output of the processes they manage. For example in case of systemd by displaying it via journalctl and SMF does this similar.
Related Issue :
#2206
How Has This Been Tested?
Metatron could be sucesfully started with /opt/metatron/discovery/bin/metatron.sh --config=/etc/metatron/discovery foreground.
Need additional checks?
Types of changes

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

Normally the upstart argument rename to foreground would be a breaking change. However considering it has been broken since the initial check-in (as far as I can tell) I don't think this is a breaking change.
Checklist:

[ ] I have read the CONTRIBUTING document.
[X] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.

lgtm 👍
Thank you for taking the trouble to help me. I do appreciate it.


Warps comments and docstrings

From contrebasse on 2012-09-25T15:38:05Z
Spyder Version:  2.1.11
Python Version:  2.7.3
Qt Version:      4.8.2, PyQt4 (API v2) 4.9.4 on Linux
When typing long comments or docstrings, I have to manually press return at the right place to keep my line below, say, 79 characters. The idea would be that when typing continuous text in a comment or a docstring, the text would be automatically wrapped, a # added (if not in a docstring) and indentation being set to the previous one.
The warp limit would be set by the position of the vertical line.
If a newline is manually created, this behavior would not occur, to no mess with one line comments and to be able to easily type code.
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1155

From ccordoba12 on 2015-01-02T18:27:39Z
Labels: MS-v2.4

@Nodd is this something you still needs to be addressed?
Feels like too much needs to be taken into account and corner cases where thing might go wrong.
I think it would be easier to double click (or something on a docstring, context menu edit) and having a text editor open, (like the one for the variable explorer), where you could arrange everything and then by hitting enter  the correct lump of text could be arranged for the user.

There is a tool like autopep8 to format docstrings, I don't remember the name. That could be a plugin.
The functionnality would be very nice, it would help adding comments and documentation a lot.


OrientGraphFactory.getNoTx() gets stuck when the DB is created on the files-system.

OrientDB Version: 3.0.0
Java Version: 1.8
OS: suse 11
OrientGraphFactory.getNoTx() gets stuck when the DB is created on the files-system.
only 21 files are created in the db directory. The first file is manindex.cpm and the last file is jobs.db.0.wal and then it gets stuck. The time difference between the first created file and the last created file is 7 minutes.
When the DB created in memory everything works fine.
What could be the issue? Is there any requirements on the file system?

Hi @morad-morad , could you attach a stack trace when DB gets stuck? Could you add it as a gist? Please do not put full stack traces into issue comments.

Thanks.
Uploaded stack-trace and jstack output.
stack.tar.gz

Hi @morad-morad I see that system waits for checking of the amount of free space during the flush of data from WAL nothing more. Could you do the following? Could you send me several such thread dumps with let say 1 min interval? I suppose 5 of them would be cool to have. If that is slow down because of free space check I will provide you patch to fix it very soon.

Thanks @laa
I'll send the thread dumps soon.

Hi @laa
Can we get the patch please? Is there any quick fix that we can do?
Thanks

Hi @morad-morad could you try this distribution https://drive.google.com/file/d/1b5UEaMrTzehA2Y9ozgNQgxNfA020zFhT/view?usp=sharing . Could you also start from a fresh database? Do not try to open previous one. Because I see that it is crashed and the system tries to restore it.

@morad-morad yes you are right.

Hi @laa
I get the following exception when using the provided distribution:
java.lang.NoSuchFieldError: INSTANCE
at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.makeActive(OrientBaseGraph.java:366)
at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.(OrientBaseGraph.java:146)
at com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx.(OrientGraphNoTx.java:62)
at com.tinkerpop.blueprints.impls.orient.OrientGraphFactory$2.getGraph(OrientGraphFactory.java:116)
at com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getNoTx(OrientGraphFactory.java:240)

Hi @morad-morad that means that you have issues with your classpath, how do you build the project?

Thanks. you're right I fixed my classpath but now I get another exception:
java.util.ServiceConfigurationError: com.orientechnologies.orient.core.index.OIndexFactory: Provider com.orientechnologies.orient.core.index.hashindex.local.OHashIndexFactory not found
at java.util.ServiceLoader.fail(ServiceLoader.java:239)
at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at com.orientechnologies.orient.core.index.OIndexes.getFactories(OIndexes.java:73)
at com.orientechnologies.orient.core.index.OIndexes.getAllFactories(OIndexes.java:85)
at com.orientechnologies.orient.core.index.OIndexes.getFactory(OIndexes.java:120)
at com.orientechnologies.orient.core.index.OIndexManagerAbstract.create(OIndexManagerAbstract.java:172)
at com.orientechnologies.orient.core.db.OSharedContextEmbedded.create(OSharedContextEmbedded.java:113)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentEmbedded.createMetadata(ODatabaseDocumentEmbedded.java:250)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentEmbedded.internalCreate(ODatabaseDocumentEmbedded.java:221)
at com.orientechnologies.orient.core.db.OrientDBEmbedded.internalCreate(OrientDBEmbedded.java:266)
at com.orientechnologies.orient.core.db.OrientDBEmbedded.create(OrientDBEmbedded.java:209)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.create(ODatabaseDocumentTx.java:978)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.create(ODatabaseDocumentTx.java:947)
at com.orientechnologies.orient.core.db.OPartitionedDatabasePool.openDatabase(OPartitionedDatabasePool.java:297)
at com.orientechnologies.orient.core.db.OPartitionedDatabasePool.acquire(OPartitionedDatabasePool.java:261)
at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.(OrientBaseGraph.java:147)
at com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx.(OrientGraphNoTx.java:61)
at com.tinkerpop.blueprints.impls.orient.OrientGraphFactory$2.getGraph(OrientGraphFactory.java:119)
at com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getNoTx(OrientGraphFactory.java:244)

Hi @morad-morad that is also should be an issue in the classpath, probably you use different versions of libraries.

Hi @laa
I need orientdb-graphdb jar of the same version (3.0.2)
How can I get it? it doesn't exist in the provided distribution

Hi @morad-morad could you take this jar from here http://central.maven.org/maven2/com/orientechnologies/orientdb-community-tp2/3.0.1/

Hi @laa
Still getting the same exception... my classpath contains the jars in the libs directory of the distributions that you provided. I use it at compilation and runtime. compilation passes successfully, bu I get the following exception at runtime:
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'GraphDbFactoryBean': Invocation of init method failed; nested exception is java.util.ServiceConfigurationError: com.orientechnologies.orient.core.index.OIndexFactory: Provider com.orientechnologies.orient.core.index.hashindex.local.OHashIndexFactory not found
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:775)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)
at com.simpledb.Main.main(Main.java:9)
Caused by: java.util.ServiceConfigurationError: com.orientechnologies.orient.core.index.OIndexFactory: Provider com.orientechnologies.orient.core.index.hashindex.local.OHashIndexFactory not found
at java.util.ServiceLoader.fail(ServiceLoader.java:239)
at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at com.orientechnologies.orient.core.index.OIndexes.getFactories(OIndexes.java:73)
at com.orientechnologies.orient.core.index.OIndexes.getAllFactories(OIndexes.java:85)
at com.orientechnologies.orient.core.index.OIndexes.getFactory(OIndexes.java:120)
at com.orientechnologies.orient.core.index.OIndexManagerAbstract.create(OIndexManagerAbstract.java:172)
at com.orientechnologies.orient.core.db.OSharedContextEmbedded.create(OSharedContextEmbedded.java:113)

Hi @laa
I was able to solve this issue by removing the checkFreeSpace in OLogSegment.java

Hi @morad-morad did you use 2.2.17 since begging? Because I see 3.0 version in issue.

Hi @laa  Yes I use 2.2.17 from beginning sorry it was my mistake. But I did try to use 3.0.0 and it also got stuck for me.

Hi @morad-morad. It is partially correct. We can not just remove check of free space, but we can enforce minimum check interval of free space.   I see here two variants I will apply the previous patch either to latest  3.0.x version or to latest 2.2.x version and we check it again. What variant do you prefer?

Hi @laa
I use orientdb-core-2.2.17.jar and orientdb-graph-2.2.17.jar. So I prefer the latest 2.2.x version.
Thanks

Hi @laa Any updates? can I get the patched latest 2.2.x?

Hi @morad-morad could you check this build?https://drive.google.com/file/d/1qV4HodVLKwitX_FIksEYv4MiDGhWMqWq/view?usp=sharing

Thanks @laa
I'll try it and update you

Hi @laa
unfortunately this didn't work
Attached thread dumps
jstacks.tar.gz

Hi @morad-morad , got it. Will provide you other solution in a couple of days.

Hi @morad-morad could you try this one https://drive.google.com/file/d/1qV4HodVLKwitX_FIksEYv4MiDGhWMqWq/view?usp=sharing

Hi @morad-morad could you check the latest build provided with the patch?

Hi @morad-morad could you check the latest build provided with the patch?

Moved to 3.1 version because of no response.

Hi guys, please let me know if this issue still actual I will work on it.


Linking VRFS

Im looking for the abilities to link multiple VRFS together.
We will often use Multiple VRFs on the same hardware which will route to each other via a Firewall. However i cant ensure uniqueness across multiple VRFS without manually checking before hand.

Is this issue related to netbox or to netbox-documents? I don't think this plugin is modifying VRFs in any way :thinking:

Unfortunately this plugin is not suited for what you are requesting. Perhaps a FR at Netbox itself may prove more fruitful.


Bjorncs/rewrite config convergence checker client

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Looks like a unit test got unstable:
13:02:30 [ERROR]   ConfigConvergenceCheckerTest.service_convergence_timeout:187->assertResponse:225->lambda$service_convergence_timeout$0:190
13:02:30 Expecting:
13:02:30  <"{"url":"http://<IP_ADDRESS>:43619/serviceconverge","host":"<IP_ADDRESS>:43619","wantedGeneration":3,"error":"Connect to <IP_ADDRESS>:43619 [/<IP_ADDRESS>] timed out"}">
13:02:30 to start with:
13:02:30  <"{"url":"http://<IP_ADDRESS>:43619/serviceconverge","host":"<IP_ADDRESS>:43619","wantedGeneration":3,"error":"Read timed out">

@hmusum I'll fix