Nap as a flux-like store

This is the other side of #13: I'm using redux.js at home and I was wondering how to make a flux-like store with Nap / resourceful.
Turns out, IMHO, that they are conceptually very similar:

Redux has actions. An action is "the only source of information for a store", and "must have a type property that indicates the type of action being performed". Sounds similar? Our RESTful requests are actions, with type set to one of the HTTP verbs and the rest of the data as a payload.

Redux has reducers and stores. Reducers "specify how the application’s state changes in response". They are essentially request handlers. The store holds state, and can be easily achieved within a module that uses immutables.

Redux has middlewares, which come out of the box with Nap.

The only thing we don't have currently is subscribing to a store, aka being called back when the store changes. We had the stream type implementation in am-address that would be perfectly suited for it and probably could have a space in Nap.

Interesting. Worth spiking a POC...

I'm going to provide a more reasoned response in due time, but I just wanted to quickly comment on your last point about streams. I haven't seen the am-address implementation, so please excuse anything I might say that's redundant, I'll have a look for it later. Anyway, streams is a thing we discussed a lot back in the early days – and whether to make it core or not. Thing is, the request/response model isn't by itself very well suited to streams, and moreover there are different kinds of streams that make finding a generic abstraction difficult. So what we decided back then was that the request/response model stays put, but that you should be able to respond with a stream. This would allow us (and others) to implement different kinds of streams (such as event source) while not limiting ourselves. So in essence, the stream isn't a primitive construct like responses. Instead, it is the response – or well, the response body anyhow.

Yep, understood. Makes sense, and that's how we do it now with zap streams. I guess that, in the spike, we just need to respond with a dispatchers or whatever form of one-way evented communication.
Also, probably #5 is related to this: if we can specify our custom media types, it'll be easy to have a whatever.stream type and use it requesting from our "store".

Well, #5 is more to the point of abstracting away hypermedia affordances from the underlying media type.  So HTML for instance has <form>, and JSON-inspired hypermedia format may use URI templates or some other construct, but from a Javascript perspective they can be abstracted away as simply functions. There was some work to that effect in the experimental branch I think (and if not, I probably have it not-pushed somewhere.) Frankly, it's more of a client side aspect, and ought to perhaps be part of a pure client project like am-address instead. It's just that I think there may be an opportunity for a feature in nap there to provide for a away to add media type handlers (or "renderers", in the sense that they render a function) such that clients can be composed instead of being monoliths.

So, to clarify, the point of adding that level of abstraction is such that you can consume a resource and make use of its hypermedia affordances, without ever really having to know or care what media type the returned representation is. As well, because nap has request metadata (a one-up on actions) even media types that do not support hypermedia (such as plain ol' JSON) could do so via Link headers. A consumer wouldn't, and shouldn't, have to care how the links are represented, if nap abstracts that away.

And again to clarify, because clearly I can't get it all in one post. You're absolutely on point with the streams thing. :o)


[HUDI-6516] Correct the use of hoodie.bootstrap.mode.selector

Change Logs
The following is the current configuration of bootstrap's mode selection:

hoodie.bootstrap.mode.selector
hoodie.bootstrap.mode.selector.regex
hoodie.bootstrap.mode.selector.regex.mode

Fix https://github.com/apache/hudi/pull/6673#discussion_r1257984792, The correct use of hoodie.bootstrap.mode.selector is:

specify hoodie.bootstrap.mode.selector.regex, then set hoodie.bootstrap.mode.selector as BootstrapRegexModeSelector,  then set hoodie.bootstrap.mode.selector.regex.mode for the specify partitions

set  hoodie.bootstrap.mode.selector  as MetadataOnlyBootstrapModeSelector or FullRecordBootstrapModeSelector

Impact
Correct the use of hoodie.bootstrap.mode.selector
Risk level (write none, low medium or high below)
low
Documentation Update
none
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

CI failure is caused by other, Can you help with a review? @codope

@danny0405 @codope Can someone help with a review? It's a bug fix. And I've already resolved one conflict...

@codope

And then there is a config hoodie.bootstrap.mode.selector.regex.mode which can be either FULL_RECORD or METADATA_ONLY. This config cannot be set to METADATA_ONLY if we are using FullRecordBootstrapModeSelector.

see BootstrapRegexModeSelector

hoodie.bootstrap.mode.selector.regex.mode is only used with BootstrapRegexModeSelector, It has nothing to do with MetadataOnlyBootstrapModeSelector or FullRecordBootstrapModeSelector


Number entity in French doesn't recognize decimals

Describe the bug
The number recognizer in french culture returns bad resolutions for decimals
To Reproduce
Steps to reproduce the behavior:

Go to "www.luis.ai"
Create an app with "French" culture and add number entity
Publish the app
Hit the endpoint with text "6,12" in French culture "number entity"
Check the resolution of the output
The resolution returned is "612"

Expected behavior
The resolution should be "6.12"
Sample input/output
Input: "6,12"/ Output: "612"/ Expected Output: "6.12"
Input: "5.45"/ Output: "545"/ Expected Output: "5.45"
Platform (please complete the following information):

Platform: .NET
Environment: nuget package/LUIS
Version of package: 1.4.0

@Basma-Emara, we can't replicate this problem in the Recognizers. The output is correct. It seems to be a LUIS-specific issue.
Tagging @hazemelh.


Add session_affinity_ttl option to the libs.

Description
This change enables using PersistenceTTL to specify the time in seconds the cookie is going to stay alive. This will provide the user the flexibility to set the cookie expiry time if the choose to.
Has your change been tested?
Yes. Unit test added.
Types of changes
What sort of change does your code introduce/modify?

[X] New feature (non-breaking change which adds functionality)

Have you got some links to the API endpoint or documentation that supports this change? I don't see anything about a session affinity TTL in the API, docs or UI itself to suggest this is a thing.

The api documentation and ui hasn't been updated yet. You could expect that to happen within one or two weeks. I made the PR to make sure the option is available here.

Thanks for the additional context. It would be 💯 if we could include that in the initial PR description too so that everyone is on the same page.
I assume we're holding off merging until this feature is released?

I am fine either way. The feature can be used by someone who wants to try it without documentation.

Let's hold off until it's all released to avoid any confusion and we can include a link to the documentation here at the same time.

@jacobbednarz The documentation has been updated. Let me know if any changes are needed for merging this.
https://api.cloudflare.com/#load-balancers-create-load-balancer

👊 thanks @georgethomas111 !


Initial Tecan integration

Adds preliminary support for Tecan labware and liquid classes. Backend includes methods for limited aspirating and dispensing. Dimensions and fixed constants need further verification.

Seems like the type checking failure is due to a new release of mypy.

https://github.com/PyLabRobot/pylabrobot/commit/6835d1b9c5324dcd2c343c12bec658543d637464 should fix that if you sync the fork

This is amazing Wilson!
If you need help filling in commands, please let me know.

Great work! Is there any part of the setup that is not part of this code yet?

Can we include those in the deck initialization?
Are there any other things that should be done before basic.ipynb runs as a standalone notebook?

A wash station is assigned on its own now. For now, the backend assumes that it is assigned to rail 1.
Setting fixed tips is a bit trickier. lh currently requires something like:
# standard fixed tips
tips = {channel: standard_fixed_tip() for channel in range(8)}
lh.update_head_state(tips)

Perhaps we can add a method like request_initial_machine_state to the backend spec? I'm not the biggest fan of requiring the code snippet above in every Tecan protocol. Happy to discuss.

I don't think the Tecan can report which channels have fixed tips mounted. It seems like this is configured and stored entirely by EVOware. A new method would still require the user to manually set tips.

All right. I think we should be ready to merge then.


NU5: Test the activation by keeping Zebra running

[ ] Keep your local Zebra rode nunning through activation (anyone interested can do this)
[ ] Deploy a Zebra beta.10 node before the activation with enough time for it to sync (monday? or maybe earlier to be sure)
[ ] Check the logs for errors and to verify it keeps syncing

Deploying a beta.10 mainnet node

It seems deploying from a tag is not working right now, deploying from main

It's  zebrad-main-bfa319d on GCP

We ended up not being able to deploy on GCP due to #4546 but me, @upbqdn and @dconnolly kept Zebras running and everything went smoothly :tada:


AddRoleTable doesn't actually add everything

What version of Super Graph are you using? super-graph version
I'm using Super Graph as a library, v0.14.50.
Have you tried reproducing the issue with the latest release?
I think this is the latest release
What is the hardware spec (RAM, OS)?
Not relevant
Steps to reproduce the issue (config used to run Super Graph).
Create any config with empty Roles and Tables, then:
 err := conf.AddRoleTable("user", "my_table", core.Query{
 		Limit:   50,
 		Filters: []string{"{ user_id: { eq: $user_id } }"},
 		Columns: []string{"id", "user_id", "created_at", "bla_bla"},
 		Block:   true,
 	})

 if err != nil {
 	log.Fatalf("Failed to add role: %v", err)
 }

log.Printf("Tables: %+v\n\n", conf.Tables)
log.Printf("Roles: %+v\n\n", conf.Roles)

Expected behaviour and actual result.
Tables: []
Roles: [{Name:user Match: Tables:[] tm:map[]}]

The Roles tables field is empty.
I had a look in the AddRoleTable function, I expect that it's an issue of by-reference or by-pointer. The newly created Role r in the function does get the table added. When I add a print statement at the end of the function:
log.Printf("\n\nEnd of function: %+v\n%+v\n", c.Roles[0].Tables, r.Tables)

End of function: []
[{Name:my_table ReadOnly:false Query:<nil> Insert:<nil> Update:<nil> Delete:<nil>}]

Note that it's broken twice in the same way: Query is also nil here.
It took me a while to figure out it wasn't me who was doing something wrong ^^

Made a PR for a fix in #140

Thanks and sorry for the delay I'm  in a middle of a bit of a major refactor to make things more readable and into smaller packages


Add User Management to Cobalt

At the moment, the MVP of Cobalt does not "know" the user.
There is no concept of login and have a user profile.
First Stage:
The sysadmin should be able to add users to the database with their Email and Password as credentials.
Those users should be able to log in using those credentials and see the data which belongs to them.
There will be multiple User Roles in the future, e.g., Admin, Scientist, Student, Team Lead, etc.
In the first phase, we will have the role of SCIENTIST.

@cungns
The work you did belongs to a new MENU ITEM
This functionality can also be used in the future only by specific users with the admin role.
For now, we can add a new menu item "Manage Teams" and have the functionality there.

@namtranhuu This issue is ready I assume?

@viandrea
Yes


community: add SingleStoreDB semantic cache

This PR adds a SingleStoreDBSemanticCache class that implements a cache based on SingleStoreDB vector store, integration tests, and a notebook example.
Additionally, this PR contains minor changes to SingleStoreDB vector store:

change add texts/documents methods to return a list of inserted ids
implement delete(ids) method to delete documents by list of ids
added drop() method to drop a correspondent database table
updated integration tests to use and check functionality implemented above

CC: @baskaryan, @hwchase17

@baskaryan, could you please take a look? Thank you!

Hello @baskaryan, @hwchase17!
Could you please take a look?
Thanks!

@baskaryan, @hwchase17, @ccurme, could someone please take a look? Or could you point me to the right person to review the PR?
Thanks!

Hello, @baskaryan, @efriis, @eyurtsev, @ccurme, @vbarda, @hwchase17! Could someone please take a look at this PR? or point me to the right person to review it? Thank you!

Thanks, @ccurme. Could you please check it again?


Fix multiple DispatchGroup leaves

Issue
It appears that if you use multiple packages that hook into push notifications, some might trigger didRegisterForRemoteNotificationsWithDeviceToken multiple times (in my case, twice).
Because you can only leave a DispatchGroup as many times as you enter it, deviceTokenReadyDispatchGroup.leave() throws an error. This crashes the app.
Solution
Track how many times the DispatchGroup was entered, so extra leaves are ignored.

I just released a broken version of the package because I was making changes to Pigeon too, to use the new 2.x release. I will fix it later today.


Invite to org

Name: Akshita Gupta
Why would you like to join the organisation?
To contribute to organisation

Check Your email OR vist this Page Click Here

I didn't receive the invite

@VasudevJaiswal

@akshitagupta15june
Dear Member Plz Check again

🎉🎊Welcome to Jaidev Studio🎉🎊!!

Why not contribute to...
Unique-Github-Profiles!

#Dear Member
You show that you are part of this org, by making your org badge public. This will show our profile org on your profile to others:
Follow This:

After you join the organisation, search your name in the list of people. 🔍
Follow this below: ⬇


Draft for handling epsilon-dependence of orientation

Description
This changes the camera.lookAt implementation so that the orientation does no longer depends (so strongly) on certain "epsilon" values of the target position. Some additonal details are laid out in https://github.com/CesiumGS/cesium/issues/11488 .
The fact that the title and the name of the branch contain the word draft should be a clear indicator:
This is not supposed to be merged!
This should just serve as a basis for figuring out how to solve the issue sensibly.
As pointed out in the comments to the issue: There is no one-fits-all solution. The whole zoomTo-functionality just assumes that everything happens on the surface of the WGS84 ellipsoid. When a tileset has a distance of (0,0,100) or (5000,0,0) from the center of the ellipsoid, then trying to compute the ENU orientation from the point on the surface that is closest to this point hardly makes sense. Tilesets that are not "geolocated" (but have their center at the origin) will usually not be handled gracefully by that function. But basically every Sandcastle in the world will use the zoomTo/flyTo functionality. So every change here will inevitably be a "breaking change" in terms of the behavior.
That said .... what is currently implemented here will do the following:

It will compute the distance of the target (i.e. the center of the bounding sphere to zoom to) to the origin.
It will compute the distance of the eye point to the target (based on the offset that is passed in)
It will compute a "weight" from that. When the eye is "far away" from the target, then the target position will less affect the orientiation of the camera.

In terms of "testing", I focussed on the case of a tileset with a bounding sphere that covers the whole earth, but is centered at different positions. These are created (on the fly) in the sandcastle that is given below, with the
  createSampleOption([0, 0, 0]),
  createSampleOption([1e-15, 1e-15, 1e-15]),
  ...
  createSampleOption([0, 100, 0]),
  ...
  createSampleOption([0, 0, 14000000]),

lines.
Some examples of the old behavior, showing that the orientation strongly depends on that magic "epsilon":

Some examples of the new behavior:

To emphasize this again: This is not a 'proposed solution'. The approach feels pretty arbitrary, and I could come up with a million cases where this will lead to "unexpected results". (And the functionality of flyTo is not covered here at all...)
The goal is mainly to encourage people to chime in, saying what could be "The Right Orientation" for each of the createSampleOption cases in this sandcastle:
const viewer = new Cesium.Viewer("cesiumContainer", {
  //globe: false
});

let currentTileset;

function createTilesetObject(center) {
  const tilesetObject = {
    asset: {
      version: "1.1",
    },
    geometricError: 1e10,
    root: {
      refine: "ADD",
      boundingVolume: {
        sphere: [
          center[0],
          center[1],
          center[2],
          12000000,
        ],
      },
      geometricError: 1.0,
    },
  };
  return tilesetObject;
}

function createTilesetUrl(center) {
  const tilesetObject = createTilesetObject(center);
  const url =
    "data:application/json;base64," + btoa(JSON.stringify(tilesetObject));
  return url;
}

function zoomToTilesetFixed(targetTileset) {
  const boundingSphere = targetTileset.boundingSphere;
  const transform = Cesium.Matrix4.fromTranslation(boundingSphere.center);
  const offset = new Cesium.Cartesian3(boundingSphere.radius, 0, 0);
  viewer.camera.lookAtTransform(transform, offset);
}

async function createTileset(center) {
  if (Cesium.defined(currentTileset)) {
    viewer.scene.primitives.remove(currentTileset);
    currentTileset = undefined;
  }
  const url = createTilesetUrl(center);
  currentTileset = viewer.scene.primitives.add(
    await Cesium.Cesium3DTileset.fromUrl(url, {
      debugShowBoundingVolume: true,
    })
  );
  viewer.zoomTo(currentTileset);
  //zoomToTilesetFixed(currentTileset);
}

function createSampleOption(center) {
  return {
    text: center.toString(),
    onselect: async function () {
      try {
        await createTileset(center);
      } catch (e) {
        console.log(e);
      }
    },
  };
}

const sampleOptions = [
  createSampleOption([0, 0, 0]),
  createSampleOption([1e-15, 1e-15, 1e-15]),
  createSampleOption([1e-12, 1e-15, 1e-15]),
  createSampleOption([1e-15, 1e-12, 1e-15]),
  createSampleOption([1e-10, 1e-10, 1e-10]),
  createSampleOption([1e-5, 1e-5, 1e-5]),
  createSampleOption([0, 0, 1]),
  createSampleOption([0, 1, 0]),
  createSampleOption([1, 0, 0]),
  createSampleOption([100, 0, 0]),
  createSampleOption([0, 100, 0]),
  createSampleOption([0, 0, 100]),
  createSampleOption([10000, 0, 0]),
  createSampleOption([0, 10000, 0]),
  createSampleOption([0, 0, 10000]),
  createSampleOption([1000000, 0, 0]),
  createSampleOption([0, 1000000, 0]),
  createSampleOption([0, 0, 1000000]),
  createSampleOption([10000000, 0, 0]),
  createSampleOption([0, 10000000, 0]),
  createSampleOption([0, 0, 10000000]),
  createSampleOption([14000000, 0, 0]),
  createSampleOption([0, 14000000, 0]),
  createSampleOption([0, 0, 14000000]),
];
Sandcastle.addToolbarMenu(sampleOptions);

Author checklist

[x] I have submitted a Contributor License Agreement
[x] I have added my name to CONTRIBUTORS.md
[ ] I have updated CHANGES.md with a short summary of my change
[ ] I have added or updated unit tests to ensure consistent code coverage
[x] I have update the inline documentation, and included code examples where relevant
[ ] I have performed a self-review of my code

The approach that is shown here is a draft. Most of the value of this PR might be the sandcastle with the test cases. But it is still (too) far away from a robust, generic, agreed-upon, universal solution to the problem to warrant keeping it open any longer. (Or to put it that way: Whatever we're going to do: It will be vastly different from what is currently done in this PR).


Fix typos in english localization

This PR fixes a couple of typos in the English localization. Thanks!

Thanks!


Make featured image a link to article

Removes the scoped variables in with() so that we can use  {{ .Permalink }} and make the image a link to the article.

Hugo not found image in my end. I'll look into it

@BGnoinski Can you check the link works correctly?

@zzossig Links definitely work on my end.

Can you post the image link that your picture is trying to use?

Oh, the default test site is looking for http://localhost:35193/en/images/tree.jpg but I have the en disabled via defaultContentLanguageInSubdir = false
And I just confirmed with the test site that with  defaultContentLanguageInSubdir = false the image loads correctly.
I think the Language subdir will need to exclude images, unless your intent is to have different images for each language?

Hmm, I'll investigate more to support them all no matter that is true or false.


Add route table to airlock processor subnet

Resolves #2097 Resolves #2222
What is being addressed
Airlock processor subnet was missing a route table.
How is this addressed

Add the route table to airlock processor subnet
Add the default nsg to the airlock notification subnet
Create subnets and assign nsg sequentially as parallel operations are not allowed and sometimes cause a failure.

/test-extended

/test-destroy-env

/test-destroy-env

/test-extended

/test-extended

/test-extended


Colortool not changing the default for VS 2017 developer command prompt

Please use this form and describe your issue, concisely but precisely, with as much detail as possible

Your Windows build number:  (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.16299.125]

What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)

I'm running the Developer Command Prompt for VS 2017, in admin mode.
I run the following:
colortool -b campbell
This changes the color of the current session. But if I open a new instance of the developer command prompt, only the default black & white terminal colors are being used. If I open a new regular command prompt, I see that Campbell has been applied.
Is there anyway to get this to work?

What's wrong / what should be happening instead:

Opening a new instance of Developer Command Prompt should use the new default color theme.

From the help text:
By default, applies the colors in the specified .itermcolors or .ini file to the current console window.
This does NOT save the properties automatically. For that, you'll need to open the properties sheet and hit "Ok".

You'll need to open the property sheet and hit okay to get the settings to persist for a particular shortcut.

That works, thank you!

thank you ， it mean Rclick the powershell windows — attributes — sure（ok）
to store the theme， reopen well


MB-3619 Add queries to MoveTaskOrder page

Description

On the MoveTaskOrder page, replace the existing data fetch code with React Query, to fetch and populate MTO shipments and MTO service items.
Notes:
MoveTaskOrder should be converted from a class component to a functional component
The queries triggered by componentWillMount should be replaced with useQuery hooks, and Redux connect code should be deleted
The logic in existing mapStateToProps that maps API data to the format expected by the component may need to be replicated in the useQuery hook.
This may be a good time to also move the MoveTaskOrder.jsx file into the new file structure (ie., pages/Office/MoveTaskOrder/MoveTaskOrder.jsx)
AC:
MoveTaskOrder does not rely on Redux for any API data
MoveTaskOrder queries the API directly for any data needed (MTO shipments & MTO service items) based on the MTO ID in the URL params

Reviewer Notes
Is there anything you would like reviewers to give additional scrutiny?
Setup
Add any steps or code to run in this section to help others prepare to run your code:
make db_dev_e2e_populate
make server_run
make office_client_run

To test:

Login in to Office app as TOO, local
Navigate to http://officelocal:3000/moves/5d4b25bb-eb04-4c03-9a81-ee0398cb779e/mto
mtoShipments and mtoServiceItems should be loaded

Code Review Verification Steps

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change

Screenshots
If this PR makes visible UI changes, an image of the finished UI can help reviewers and casual
observers understand the context of the changes. A before image is optional and
can be included at the submitter's discretion.
Consider using an animated image to show an entire workflow instead of using multiple images. You may want to use GIPHY CAPTURE for this! 📸
Please frame screenshots to show enough useful context but also highlight the affected regions.

Fails

:no_entry_sign:
Yarn Audit Issues Found:
high - Remote Code Execution
Package serialize-javascript
Patched in >=3.1.0
Dependency of react-scripts
Path react-scripts > terser-webpack-plugin > serialize-javascript
More info https://npmjs.com/advisories/1548
1 high vulnerabilities and 0 critical vulnerabilities found

Messages

:book:
:link: MB-3619

  Generated by :no_entry_sign: dangerJS against 75ca4694cda702ff11cbd79f466c199a49aabe0a

@donaldthai Can I suggest that we need to query the move task order itself?  I know it's needed for the duty station addresses at least.

I think it would be good to get into the habit of adding e2e tests as new pages are added, so maybe we could add one to this PR that is just the TOO navigating to the MTO tab?

Since we no longer have Move Task Orders, should we rename any new instances of MoveTaskOrder to Move? For example, src/pages/Office/MoveTaskOrder/moveTaskOrder.jsx would become src/pages/Office/Move/move.jsx

Hey @donaldthai for the moveOrders query the data object response seems to return keys for the duty station ids as keys and the entitlement object but none of the top level properties. I was really only expecting one moveOrder object is this right?

ohhh good catch..! I think that is because of how moveOrders is defined in Entities/schema.js ... I've definitely been noticing some adjustments may be needed to make normalizr place more nicely with how we are using queries


Update diagrams of the Maven modules

We have significantly outdated documentation of the Maven modules, we need to consolidate the documentation to reflect the current status.

Our projects get more loosely coupled and therefore, there is not much benefit in keeping a diagram of all our Maven dependencies.


chore: bump @types/chai to 5.0.1

Description

#7121 cc @hi-ogawa

fix broken vitest assert types
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
[x] Ideally, include a test that fails without this PR but passes with it.
[x] Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.

Tests

[x] Run the tests with pnpm test:ci. (vitest/test/config/fixtures/exec-args-fixtures/vmThreads.test.ts fails for some reason)

Documentation

[x] If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

[x] Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

note: I haven't actually checked if the typings work now, but based on a simple diff between v4 and v5, I concluded that bumping the version will fix the issue

welp ci is breaking, idk y

I am not entirely sure why 2130edc is required for build to succeed. I am also not sure why simply building the repository causes cced3ff either

ci based tdd

found out the type issue
Caused by this commit https://github.com/vitest-dev/vitest/commit/5f4774fcc4ef05a7b32822ba1cad2d7979371e35
I am not sure why he is inlining chai types when he already patched it? anyway, this is out of my decision.
This was not an issue in the previous @types/chai
4.3.6
declare namespace Chai {

5.0.1
declare global {
    namespace Chai {

@sheremet-va I would like to know how you would approach this issue
also I am not willing to fix the failing test as I have no idea why it fails

Hey, thanks for bringing the PR :wave:
I suggested it without knowing much, but it looks fairly messy. Don't worry about this and we can take over this.
The idea of not having @types/chai in dependencies remove certain frictions in ts setup, so I get the idea. I'll push a few changes to test something.


BlendMVS train

Hi~
Thanks for your excellent work. Have you ever used BlendMVS dataset to train this model? Is there any recommend param settings?

Hi,
I think the example in CasMVSNet_pl is helpful.


added explicit coach mark tap event in CoachMarksControllerDelegate

Checklist for this pull request

[ ] I have read the guidelines for contributing.
[ ] I have updated README.md, describing the new feature I'm adding (if applicable).
[ ] I have checked that my code additions did fail neither code linting checks nor unit/UI test.

Description
added explicit coach mark tap event in CoachMarksControllerDelegate

Better late than never, four years later, I'm merging. Thanks for your work!


SSH Tunneling

Article checklist
Attention
Our Peer Reviewer and Content Moderator teams do NOT provide any revisions services. All revisions and edits should be completed on your own forked repo (as to not take up room in the queue) in order for our team to review them all in a timely manner.
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.

As a rule of thumb - please be sure to only submit articles (pull requests) that are fully polished and ready to be published. Be sure to go through our resources documents for extra and 3rd party (vetted) resources to help improve overall technical writing.

Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[X] Have you used the correct folder and file structure? - see Contribution Guidelines

[X] Is your article properly formatted in Markdown? - see Github Markdown guide

[X] Have you used our preferred heading structure? - H3 (###) and up

[X] Does your article follow any of the suggested structure formats? - see example formats

[X] Is your article over 750 words? - Tool: Wordcounter.net

[X] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[X] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[X] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[X] Have you included a hero image that is 600x400 pixels, under 300KB in size, and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[X] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[X] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[X] Have you checked your article for readability? - Tool: Hemmingway
[X] Have you added sources for quotes and images that aren't yours?

Technical checks

[X] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[X] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[X] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

`This closes #6335

Finally, delete the article checklist notes in blockquotes and submit your PR. We look forward to reviewing your article.

Plagiarism check complete

@Dawe-7
The requested changes are in place. You can have a look at it..... thanks.

@Dawe-7 The requested changes are in place. You can have a look at it..... thanks.

@Joesongoma kindly add sources for the images that are taken from other blogs/sites.

@Dawe-7  Image sources are in place. Thanks

jumping on this one


FileNotFoundError: Cannot find file: Real-ESRGAN_result.zip

Will you assist with resolution?

Same issue here.


Refactor batch_and_prepare_binned_render_phase in preparation for bin retention.

This commit makes the following changes:

IndirectParametersBuffer has been changed from a BufferVec to a RawBufferVec. This won about 20us or so on Bistro by avoiding encase overhead.

The methods on the GetFullBatchData trait no longer have the entity parameter, as it was unused.

PreprocessWorkItem, which specifies a transform-and-cull operation, now supplies the mesh instance uniform output index directly instead of having the shader look it up from the indirect draw parameters. Accordingly, the responsibility of writing the output index to the indirect draw parameters has been moved from the CPU to the GPU. This is in preparation for retained indirect instance draw commands, where the mesh instance uniform output index may change from frame to frame, while the indirect instance draw commands will be cached. We won't want the CPU to have to upload the same indirect draw parameters again and again if a batch didn't change from frame to frame.

batch_and_prepare_binned_render_phase and batch_and_prepare_sorted_render_phase now allocate indirect draw commands for an entire batch set at a time when possible, instead of one batch at a time. This change will allow us to retain the indirect draw commands for whole batch sets.

GetFullBatchData::get_batch_indirect_parameters_index has been replaced with GetFullBatchData::write_batch_indirect_parameters, which takes an offset and writes into it instead of allocating. This is necessary in order to use the optimization mentioned in the previous point.

At the WGSL level, IndirectParameters has been factored out into mesh_preprocess_types.wgsl. This is because we'll need a new compute shader that zeroes out the instance counts in preparation for a new frame. That shader will need to access IndirectParameters, so it was moved to a separate file.

Bins are no longer raw vectors but are instances of a separate type, RenderBin. This is so that the bin can eventually contain its retained batches.

Running an example check to spot unexpected regressions: https://github.com/TheBevyFlock/bevy-example-runner/issues/74

Looks like this broke shadows. I'll look.

this fixed shadows, https://github.com/bevyengine/bevy/pull/16836 broke them

Shadows still seem broken even with this PR. I wonder if the issue is intermittent.


Adding new questions for funding required

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Please also include any acceptance criteria if you have any.

Adding new question for Capital costs

Type of change
Please delete options that are not relevant.

[ ] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce
the testing if necessary.
Before PR's can be merged they will need to be tested by QA and approved where
applicable. To flag the change to QA assign @XGovFormBuilder/qa as one of the reviewers.

[ ] Test the funding-required-cof form

Checklist:

[ ] My changes do not introduce any new linting errors
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation and versioning
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] I have rebased onto main and there are no code conflicts
[ ] I have checked deployments are working in all environments
[ ] I have updated the architecture diagrams as per Contribute.md

@adamdavies1 Can you link to to this ticket and update the ticket to includes the changes to the Funding required form please?
https://dluhcdigital.atlassian.net/browse/FS-3817

@adamdavies1 Can you link to to this ticket and update the ticket to includes the changes to the Funding required form please? https://dluhcdigital.atlassian.net/browse/FS-3817

https://dluhcdigital.atlassian.net/browse/FS-3819 there was a separate ticket for this change, it should be linked to that


net: lib: nrf_cloud: updated test-spec.yml to trigger downstream job

Added an entry for CI-cloud-test that will run the downstream job of test-fw-nrfconnect-nrf-iot_cloud when any of the listed modules change.
See IRIS-5423
Signed-off-by: Tony Le<EMAIL_ADDRESS>

I think a special cherry picking and naming process needs to be followed for commits to this repository
See the previous commits to this file:
https://github.com/nrfconnect/sdk-zephyr/commits/main/.github/test-spec.yml


Grid layout

As I wrote in the previous issue, I love this implementation and the demo app. Have you given any thoughts to how to reuse most of the implementation and instead apply a vertically scrolling grid layout?
I'm not sure that the underlying collection view would be the same though, since you would probably not want to expose the section configuration in the same way, but instead insert either item size or number of columns?

Hi again,
The collection implementation is generic, so achieving a vertically scrolling grid layout is only a matter of compositional layout definition. I am in fact implementing a vertical grid with the same CollectionView at the moment (link can break in the future as it belongs to a feature branch, but code will sooner or later end on develop) .
It suffices to define a single section and to put all items there, e.g.
private static func layoutSection() -> NSCollectionLayoutSection {
    let itemSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .fractionalHeight(1))
    let item = NSCollectionLayoutItem(layoutSize: itemSize)
    item.contentInsets = NSDirectionalEdgeInsets(top: 20, leading: 20, bottom: 20, trailing: 20)

    let groupSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .absolute(400))
    let group = NSCollectionLayoutGroup.horizontal(layoutSize: groupSize, subitem: item, count: 4)

    return NSCollectionLayoutSection(group: group)
}

Here I configured the grid with some padding around items, a height of 400 points, and 4 items per column, but of course you can create more elaborate layouts.
Here is the result I get with the layout definition above (no more individual scrolling, the grid is a vertical one):

Hope this helps!

Aha, ok! Wow, you are using parts of collection view that I've never used! I'm very impressed!
I took your advice and didn't use this repo as a library, but rather started breaking up the code into multiple files as a way for me to read and understand it piece by piece. I was under the impression that I should create a new collection view and reuse some common parts, but now I take it that I should rather just provide the already existing collection view with another section layout provider?
I've started pushing the code to a library of my own (with credits and links to you and this repo of course), but perhaps this approach exposes too much if we can achieve various layouts with the same collection view? However, if you want me to create a PR with these changes, just let me know: https://github.com/danielsaidi/SwiftUIKit/tree/master/Sources/SwiftUIKit/Views/Collections
I'd be very interested in the final grid result :)

Ok, I have started playing around with encapsulating your layouts in reusable types. For instance, by having this:
public struct CollectionViewLayout {

    var sectionLayoutProvider: (Int, NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection
}

we could create pre-configured layouts, like your catalog layout:
public extension CollectionViewLayout {

    static var catalog: CollectionViewLayout {
        CollectionViewLayout { sectionIndex, layoutEnvironment in
            let itemSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .fractionalHeight(1))
            let item = NSCollectionLayoutItem(layoutSize: itemSize)
            let groupSize = NSCollectionLayoutSize(widthDimension: .absolute(300), heightDimension: .absolute(450))
            let group = NSCollectionLayoutGroup.horizontal(layoutSize: groupSize, subitems: [item])
            let header = NSCollectionLayoutBoundarySupplementaryItem(
                layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .absolute(44)),
                elementKind: UICollectionView.elementKindSectionHeader,
                alignment: .topLeading)
            let section = NSCollectionLayoutSection(group: group)
            section.contentInsets = NSDirectionalEdgeInsets(top: 20, leading: 0, bottom: 20, trailing: 0)
            section.interGroupSpacing = 100
            section.orthogonalScrollingBehavior = .continuous
            section.boundarySupplementaryItems = [header]
            return section
        }
    }
}

where the variable parts can be configured by converting catalog to a func. We should then be able to apply the layout with a new CollectionView initializer:
public init(
    rows: [CollectionViewRow<Section, Item>],
    layout: CollectionViewLayout,
    @ViewBuilder cell: @escaping (IndexPath, Item) -> Cell,
    @ViewBuilder supplementaryView: @escaping (String, IndexPath) -> SupplementaryView) {
    self.cell = cell
    self.rows = rows
    self.sectionLayoutProvider = layout.sectionLayoutProvider
    self.supplementaryView = supplementaryView
}

and create our collection view like this:
var body: some View {
    CollectionView(rows: rows, layout: .catalog, cell: myCell, supplementaryView: mySection)

I'm trying to get this to work. I will ping here once I've uploaded the result to the repo.

Ok, so this is pretty nice...from your Shelf view:
var body: some View {
    CollectionView(rows: rows, layout: .catalog, cell: cell, supplementaryView: supplementaryView)
        .frame(maxWidth: .infinity, maxHeight: .infinity)
        .ignoresSafeArea(.all)
}

func cell(indexPath: IndexPath, item: String) -> some View {
    GeometryReader { geometry in
        Button(action: shuffle) {
            ...
            .cardButtonStyle()
        }
    }
}

func supplementaryView(kind: String, indexPath: IndexPath) -> some View {
    HStack {
        Text("Section \(indexPath.section)")
        Spacer()
    }
}

I will try to create a grid layout with the code you posted above as well :)

Ok, the vertical grid layout is done!
public extension CollectionViewLayout {

    /**
     This layout makes a `CollectionView` render itself as a
     vertical grid with `itemsPerRow` items per grid row.
     */
    static func verticalGrid(
        itemsPerRow: Int,
        itemHeight: CGFloat = 200,
        itemInsets: NSDirectionalEdgeInsets = NSDirectionalEdgeInsets(top: 20, leading: 20, bottom: 20, trailing: 20)) -> CollectionViewLayout {
        CollectionViewLayout { sectionIndex, layoutEnvironment in
            let layoutSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .fractionalHeight(1))
            let layoutItem = NSCollectionLayoutItem(layoutSize: layoutSize)
            layoutItem.contentInsets = itemInsets
            let groupSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .absolute(itemHeight))
            let group = NSCollectionLayoutGroup.horizontal(layoutSize: groupSize, subitem: layoutItem, count: itemsPerRow)
            return NSCollectionLayoutSection(group: group)
        }
    }
}

Which I apply in the same way as the .catalog style:
var body: some View {
    CollectionView(rows: rows, layout: .verticalGrid(itemsPerRow: 4), cell: cell, supplementaryView: supplementaryView)
        .frame(maxWidth: .infinity, maxHeight: .infinity)
        .ignoresSafeArea(.all)
}

The result is just amazing and renders super fast even though I fetch 1000x1000 pixel large images without downsampling:

Glad you made it work! If this is ok for you I propose we close this issue (except if you still want to add something, of course).

Yes, feel free to do so :)
I have pushed the stuff to https://github.com/danielsaidi/SwiftUIKit/tree/master/Sources/SwiftUIKit/Views/Collections so please grab any parts that you think look good.


Upgrading from v1.21.4-23 to v1.21.4-28 fails

https://github.com/rancher-sandbox/cOS-toolkit/issues/1136

should be fixed by now in the new releases


Fix typo for auto_detect_ep function

Type of Change
bug fix

it seems the CI failure is due to latest torch can't export > 2GB model to ONNX model:
https://github.com/pytorch/pytorch/issues/132205
https://github.com/huggingface/optimum/issues/1800

@hshen14 it's been 4 days since the provided changes were approved, please merge

@hshen14 it's been 4 days since the provided changes were approved, please merge

@Crafter-san，since there is no available solution to fix export issue on latest Torch currently, we are trying to find out the proper Torch version, which will be limited in CI test.  The PR will be merged soon after this walk around applied in CI

Unit Test ONNXRT baseline runs the unittest of main branch, its failure makes sense.
Unit Test ONNXRT runs the unittest of this PR's branch, it has passed.
So we can merge this PR

@thuang6 here is the possible offender for the size limit: https://github.com/pytorch/pytorch/issues/132205
If you could share this with the rest of the team, you guys could possibly go through and fix the issue and make a pull request. I don't have enough Python experience to fix the issue myself.

additionally, the issue is within it requiring a filename to properly write it to a file. I don't know how, but perhaps including an arg for filename, and a default filename (for people using things like Optimum CLI that don't have access to the direct args)

Pytorch issue is in the process of being fixed: https://github.com/pytorch/pytorch/pull/140962
It will soon merge and hopefully fix export issues

Reversion complete
https://github.com/pytorch/pytorch/pull/140961
https://github.com/pytorch/pytorch/pull/140962
Please act accordingly

Reversion complete pytorch/pytorch#140961 pytorch/pytorch#140962 Please act accordingly

Hi, thank you for your reminder, we will remove the version control after torch latest version is released which contains this commit.

@mengniwang95 when will it be fixed? There's no new versions/releases

Hi @Crafter-san , this fix is in pytorch source code and now what we need to do is waiting for the new release of pytorch to fix this issue. If you failed to export onnx model due to this issue, you can downgrade your pytorch version or build pytorch from its main branch source code.


Assist fails to turn on/off switch entity because it tries to act on sensor with same name

hello,
I have a sensor and switch entities both named "ingresso". This was not an ambiguity because they belong to different domains, so that one is called sensor.ingresso and the other switch.ingresso.
When I tell Assist to turn on/off the switch entity (e.g. turn on ingresso), Assist will try to turn on the sensor instead of the swicth and will, of course, fail. It also fails silently because Assist will respond saying the ingresso has been turned on, but the log says that such action is not supported for sensor entity.

Logger: homeassistant.components.homeassistant
Source: components/homeassistant/init.py:117
Integration: Home Assistant Core Integration (documentation, issues)
First occurred: 16:42:27 (1 occurrences)
Last logged: 16:42:27
The service homeassistant.turn_on does not support entities sensor.ingresso

This can be fixed by changing the name of the sensor from ingresso to ingresso_
I can't think an instance where a sensor can be acted upon, to my knowledge sensors can only be read by user or automation, therefore I think that they should be filtered out if an action could not be applied to such an entity.

The English on/off sentences now exclude the sensor domain


Adding TidierVest.jl

I am planning to add TidierVest.jl as a dependency to Tidier.jl so that it gets automatically installed when you install Tidier.jl (similar to how tidyverse works).
However, in R's tidyverse, rvest isn't automatically re-exported into the namespace. I'm thinking we may diverge from that behavior in Tidier.jl and re-export all base packages. If a user is truly using Tidier.jl, then we should make sure that all of the underlying package functions are available to them so they don't have to keep track of this behavior.
If anyone disagrees with this approach, feel free to share thoughts here.
@jdiaz97, let me know if you have any thoughts on this. Thanks!

@rdboyes any thoughts on this?

I think the expectation as a user would be that Tidier makes all Tidier*** packages available, so it makes sense to include TidierVest. People with specific requirements can import package-by-package

Perfect. Agree that this makes the most sense.
I'll plan to add TidierVest while also bumping the dependency versions of all the other packages. This way, updating Tidier will ensure that all the base packages get updated to their latest versions.

Just an average R Tidyverse user (for work) and fully agree with your approach of including TidierVest.jl within Tidier.jl. We're used to the practice importing the Tidyverse as a whole when you start a project and then narrowing down the imports later on when finishing things up.

Thanks @micke754 for sharing that perspective! Have been busy with work, going to take care of this soon.

TidierVest.jl is now included with Tidier.jl, so closing this issue!


Add lookup optimization for InDimFilter

Fixes #2787
Optimize InDimFilter by doing reverse lookup on the search values, similar to optimization used in SelectorDimFilter.

Thanks for the contrib, can we ad some UTs please.

👍

👍 , only a minor nit: https://github.com/druid-io/druid/pull/2938#discussion_r63653046


Add bit-banging based driver for WS2812B LED strip

These two patches have been tested with the ZIP Halo LED strip for the BBC micro:bit:
https://www.kitronik.co.uk/5625-zip-halo-for-the-bbc-microbit.html
The implementation utilizes inline assembly and only supports the Cortex-M0 for now.

Note: this driver does not yet support coexistence with Bluetooth. That's the next step I'm working on - it'll involve integration with the Bluetooth controller's ticker module.

Codecov Report

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

@@           Coverage Diff           @@
##           master    #6274   +/-   ##
=======================================
  Coverage   53.16%   53.16%
=======================================
  Files         412      412
  Lines       40136    40136
  Branches     7731     7731
=======================================
  Hits        21337    21337
  Misses      15664    15664
  Partials     3135     3135

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 10ef346...71ae8c1. Read the comment docs.

Hrm... why not just get it right for both cases? I don't think it's going to blow any resource budgets to do so. I also note that you're relying on the order of r/g/b in the struct earlier in this routine, which also seems unnecessary.

What's wrong with the approach taken by lpd880x_strip_update_rgb(), which makes no assumptions about struct layout or whether scratch is present?

That's a fair point. Since I'm having to mess with the given buffer anyway, re-encoding all three pixels is not that much overhead. I've pushed a version that does this (and removes the depends on I added earlier).

@mbolivar are you ok with the changes I made? Your review seems to be the only thing preventing this one from being merged.

@mbolivar are you ok with the changes I made? Your review seems to be the only thing preventing this one from being merged.

@mbolivar ping


wasm: Allow setting attributes / annotations on a field

The API exposed to gadgets should provide a mechanism to set the attributes / annotations of a field. It's needed to allow the gadget wasm module controlling how a field is shown, it's formatting, etc.

#3149 allowed to set annotations for fields added by operators like wasm in the metadata. I don't think we need to have this support in wasm for now.


IGNITE-20475 .NET: EF Core provider [POC]

Proof of concept: Entity Framework Core provider for Apache Ignite 3.
BasicTest.cs provides a working demo:

Creates 2 tables
Populates data
Performs a query

Implementation Details

EF Core implements most of the logic for SQL generation, change tracking and so on
Our part, the provider, is about two things:

Connecting to the DB and performing queries
SQL customization (type mapping, supported features, syntax quirks)

But we already have a LINQ provider, what is the difference?
Think micro-ORM vs full-blown one.
Ignite LINQ provider:

Comes in the box, very lightweight
Can do LINQ without any setup, literally one line
Limited DML
No DDL

EF Core:

Separate package
Full-blown ORM, extremely powerful
Familiar to any .NET developer, same API for many databases
TBD: more

More Info

EF Core is the most popular ORM for .NET. Provides an abstract way of working with a database without writing any SQL by hand. Includes DDL, DML, migrations.
Providers exist for many databases: https://learn.microsoft.com/en-us/ef/core/providers/
Writing a provider: https://learn.microsoft.com/en-us/ef/core/providers/writing-a-provider
Reference implementation: https://github.com/dotnet/efcore/tree/main/src/EFCore.Sqlite.Core

JIRA epic created: https://issues.apache.org/jira/browse/IGNITE-22132
Closing this PR.


Great Expectations Plugin

Signed-off-by: Samhita Alla<EMAIL_ADDRESS>TL;DR
Add great expectations plugin to validate data.
Type

[ ] Bug Fix
[ ] Feature
[x] Plugin

Are all requirements met?

[x] Code completed
[ ] Smoke tested
[x] Unit tests added
[x] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
TASK
Define GETask and validate the dataset by passing it as an argument to the task.
Valid data example:
import os

import pandas as pd
from flytekitplugins.greatexpectations import GETask

from flytekit import kwtypes, task, workflow

task_object = GETask(
    name="test4",
    data_source="data",
    inputs=kwtypes(dataset=str),
    expectation_suite="test.demo",
    data_connector="data_example_data_connector",
)

@task
def my_task(csv_file: str) -> int:
    task_object(dataset=csv_file)
    df = pd.read_csv(os.path.join("data", csv_file))
    return df.shape[0]

@workflow
def valid_wf(dataset: str = "yellow_tripdata_sample_2019-01.csv") -> int:
    return my_task(csv_file=dataset)

if __name__ == "__main__":
    print(f"Running {__file__} main...")
    print(valid_wf())

Invalid data example:
@workflow
def invalid_wf(dataset: str = "yellow_tripdata_sample_2019-02.csv") -> int:
    return my_task(csv_file=dataset)

if __name__ == "__main__":
    print(f"Running {__file__} main...")
    invalid_wf()

Output:
...
COLUMN          FAILED EXPECTATION
passenger_count -> expect_column_min_to_be_between
passenger_count -> expect_column_mean_to_be_between
passenger_count -> expect_column_quantile_values_to_be_between
passenger_count -> expect_column_values_to_be_in_set
passenger_count -> expect_column_proportion_of_unique_values_to_be_between
trip_distance -> expect_column_max_to_be_between
trip_distance -> expect_column_mean_to_be_between
trip_distance -> expect_column_median_to_be_between
trip_distance -> expect_column_quantile_values_to_be_between
trip_distance -> expect_column_proportion_of_unique_values_to_be_between
rate_code_id -> expect_column_max_to_be_between
rate_code_id -> expect_column_mean_to_be_between
rate_code_id -> expect_column_proportion_of_unique_values_to_be_between
...

TYPE
Attach GEType to your dataset in a task which shall then automatically validate your data.
import os

import pandas as pd
import pytest
from flytekitplugins.greatexpectations import GEConfig, GEType
from great_expectations.exceptions import ValidationError

from flytekit import task, workflow

ge_config = GEConfig(
    data_source="data",
    expectation_suite="test.demo",
    data_connector="data_example_data_connector",
)

@task
def my_task(csv_file: GEType[str, ge_config]) -> int:
    df = pd.read_csv(os.path.join("data", csv_file))
    df.drop(5, axis=0, inplace=True)
    return df.shape[0]

@workflow
def valid_wf(dataset: str = "yellow_tripdata_sample_2019-01.csv") -> int:
    return my_task(csv_file=dataset)

valid_wf()

EXAMPLES CONCERNING FlyteSchema & FlyteFile ARE AVAILABLE IN TESTS
Tracking Issue
https://github.com/lyft/flyte/issues/
Follow-up issue
NA
OR
https://github.com/lyft/flyte/issues/

@kumare3 Added support for FlyteSchema and FlyteFile. Please review.

Thanks, @samhita-alla ! Overall this looks awesome. Just a few questions and a few stylistic suggestions from our end right now.

@talagluck: Thanks for reviewing it! When you get the time, check the Great Expectations' examples I've written -- https://github.com/flyteorg/flytesnacks/pull/332.

https://github.com/flyteorg/flytekit/pull/559 needs to be updated with the GE plugin to change ctx.file_access.download_directory(x, y) to ctx.file_access.get_data(x, y, is_multipart=True), if this PR gets merged before #559.

Thanks for these updates, @samhita-alla! This looks great.

Just a heads up—pinned the Great Expectations version to 0.13.23. If it's the latest, test_flytekit_sagemaker_runner.py is throwing an error:
_______ ERROR collecting tests/scripts/test_flytekit_sagemaker_runner.py _______
ImportError while importing test module '/home/runner/work/flytekit/flytekit/tests/scripts/test_flytekit_sagemaker_runner.py'.
Hint: make sure your test modules/packages have valid Python names.

Traceback:
/opt/hostedtoolcache/Python/3.7.11/x64/lib/python3.7/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/scripts/test_flytekit_sagemaker_runner.py:5: in <module>
from scripts.flytekit_sagemaker_runner import run as _flyte_sagemaker_run
E ModuleNotFoundError: No module named 'scripts.flytekit_sagemaker_runner'

Hi @samhita-alla - thanks for letting us know. That error doesn't look like it would be due to Great Expectations. Do you have any ideas about why it might be occurring?
I think pinning will be ok temporarily, but we're in the process of rolling out some important fixes and powerful features, so it would be good to unpin in the near future.

Hi @samhita-alla - thanks for letting us know. That error doesn't look like it would be due to Great Expectations. Do you have any ideas about why it might be occurring?
I think pinning will be ok temporarily, but we're in the process of rolling out some important fixes and powerful features, so it would be good to unpin in the near future.

I'm not sure as to why it's happening. We will have to dig deeper to find that out. I'm sure the problem is on our end.
@wild-endeavor Any thoughts about the test error?

I was able to repro this. This was caused by https://github.com/great-expectations/great_expectations/pull/3003/, which ends up defining a package called scripts which takes precedence during package resolution.
I opened https://github.com/flyteorg/flytekit/pull/598 to fix the issue.

@samhita-alla this is great, I have a few nits. we can handle them in 2 ways. I am ok with merging and then revisiting the nits, especially refactoring the extremely large functions and also handling other types - either with an error or supporting them


ChefDK Installation fails on Windows 10

Description
Cannot install chefdk version 0.19.6 on Windows 10.
After asking for administrator credentials, installer starts working, and a few moments later I get the error message :
Chef DK v0.19.6 Setup Wizard ended prematurely because of an error.
ChefDK Version
ChefDK 0.19.6. Same thing happens with 0.18.30, 0.18.26 and 0.17.17.
Platform Version
Windows 10 :
> [System.Environment]::OSVersion.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      14393  0

Replication Case
Attempt to install ChefDK from the package on https://downloads.chef.io/chef-dk/windows/
Stacktrace
Windows Installer log here

The error seems to be on extracting a zip

Starting extraction
MSI (s) (D8!34) [15:30:24:245]: Closing MSIHANDLE (9) of type 790531 for thread 11316
MSI (s) (D8!34) [15:30:24:348]: Creating MSIHANDLE (10) of type 790531 for thread 11316
Exception thrown by custom action:
MSI (s) (D8!34) [15:30:24:349]: Closing MSIHANDLE (10) of type 790531 for thread 11316
MSI (s) (D8!34) [15:30:24:353]: Creating MSIHANDLE (11) of type 790531 for thread 11316
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: 1 is not a supported code page.
Parameter name: codepage
at System.Text.Encoding.GetEncoding(Int32 codepage)
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries()
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor(Stream stream)
at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractZip(Stream inputStream, String targetDirectory, Overwrite overwrite, ConfirmOverwriteDelegate confirmDelegate, String fileFilter, String directoryFilter, Boolean restoreDateTime, Boolean isStreamOwner)
at CustomActionFastMsi.CustomActions.FastUnzip(Session session)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at Microsoft.Deployment.WindowsInstaller.CustomActionProxy.InvokeCustomAction(Int32 sessionHandle, String entryPoint, IntPtr remotingDelegatePtr)
MSI (s) (D8!34) [15:30:24:353]: Closing MSIHANDLE (11) of type 790531 for thread 11316
CustomAction FastUnzip returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (D8:B0) [15:30:24:365]: Closing MSIHANDLE (2) of type 790536 for thread 11120
Action ended 15:30:24: InstallFinalize. Return value 3.

I just had a complete install there of version 1.0.3
PS C:\Users\user> [System.Environment]::OSVersion.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      14393  0

I have just tried version 1.0.3. I still get the same behaviour.

Just had the same issue when running the installer. Tried chefdk-1.2.22-1 and 1.3.10-1 both with the same error. It however did leave a zip at c:\opscode and after manually unzipping it i am getting access denied errors unzipping the ruby gem thor-0.19.1\spec files.

To me the same error occurred with all the 1.x versions of the Chef DK with the same stack trace as @PatrickWalker mentioned (Windows 10 build 15063). After changing all the regional and language options back to en-US and rebooting, version 1.4.3 installed correctly, maybe it helps someone.
I'd also try checking for the installed .NET Framework versions, the underlying ICSharpCode.SharpZipLib.dll might have an old version included. I had both .NET 4.7 and .NET 3.5 installed.

Even though this one is older, merging with https://github.com/chef/chef-dk/issues/1290 since we've gotten further into what the root problems seem to be.


Does OK.with handle raised errors?

https://github.com/CrowdHailer/OK#oktry
OK.try do
  user <- fetch_user(1)             # `<-` operator means func returns {:ok, user}
  cart <- fetch_cart(1)             # `<-` again, {:ok, cart}
  order = checkout(cart, user)      # `=` allows pattern matching on non-tagged funcs
  saved_order <- save_order(order)
after
  response(:created)                # Value will be returned unwrapped
rescue
  :user_not_found ->
    response(:not_found)
  :could_not_save ->
    response(:internal_server_error)
end

Does that mean the cases under rescue are raised errors, or errors in {:error, reason} ?

rescue is for {:error, reason}.
Unfortunately there is a very limited selection of keywords I can use for starting new code blocks.

I would have guessed it would have caught raised issues.
Not related, but are the values defined under the try block available inside rescue?
A pattern I tend to use from using Either in swift is log the error with the previous value defined.
E.g if parsing a JSON string loaded from a file fails.
I'd like to know the file name as well as the JSON content itself.
static fileprivate func parseJSON(fromFileContent fileContent:FileSystemLoader.FileContent<String>) throws -> Parser.UnfilteredContent {
        return try Either<Error, FileSystemLoader.FileContent<String>>
            .right(fileContent)
            .map { $0.content }
            .map { $0.data(using: String.Encoding.utf8) }
            .map { try $0.throwingIfNil(Parser.ParseError.failedEncodingFileContentToData(fileContent)) }
            .map { try JSONSerialization.jsonObject(with: $0, options: []) }
            .mapLeft { throw Parser.ParseError.failedParsingFromFileContent(fileContent, $0) }
            .map { FileSystemLoader.FileContent(with: (raw:fileContent.content, processed:$0 as AnyObject), from: fileContent.file) }
            .unwrapError()

    }
    ```

Turns out it's not
  def ok do
    OK.try do
      file    <- "priv/sample.json" |> File.read
      content <-  file |> Poison.Parser.parse
    after
      IO.inspect content
    rescue
      error -> IO.inspect file
    end

  end

It would be nice to have access to have a list of the content before the failure without inserting them to a list outside the block

That sounds like an interesting challenge. If the rescue block is called because File.read failed then what would the value of file be.
yes I agree it's confusing. I think the only solution I have is a nice explanation on why exceptional cases (bad input) are not the same as programmer errors. I use OK to handle the former and raised errors just end up in by bug tracker.
Not just an elixir problem but using defexception in modules called FooError is also rather unhelpful

@CrowdHailer I think we're venturing outside the scope of this library.
What I am looking for is not something where I match on a specific error, but a specific call.
I think code makes for easier example, so lets draw some pseudo code.
def ok do
OK.try do
content    <- filename |> File.read  as: {LoadingFile, filename}
parsed_content <-  file |> Poison.Parser.parse as: {ParsingContent: [content, filename]}
after
IO.inspect parsed_content
rescue
{LoadingFile: filename} -> IO.inspect filename
{ParsingContent: [content, filename} -> IO.inspect content
end
end

To be honest, I actually also prefer the piping way (like the Swift sample above) than using the "with" syntax.
Some pseudo code
operation = content
~~> happy_path
~~> until_something
~~> goes_wrong
~~> and_let_me_have_all
~~> the_info_to_match_on_the_wrong

case operation.result. do
    {:ok, value} -> IO.inspect value
    {:error, reason} -> IO.inspect reason
end

case operation.error. do
    {:happy_path, [content | _]}
        -> IO.inspect "Error occured on happy path with content  "#{v}"
    {: until_something, [result_from_happy_path | x]}
        -> IO.inspect "Error occured on : until_something content  "#{result_from_happy_path}"

    {: goes_wrong, [result_from_until_something | x]}
        -> IO.inspect "Error occured on : goes_wrong content  "#{result_from_until_something}"

end

That is much closer to the swift example you shared before.
just to double check you know that OK has an ~>> operator?
result = content
~>> happy_path
~>> until_something
~>> goes_wrong
~>> and_let_me_have_all
~>> the_info_to_match_on_the_wrong

case result do
  {:ok, v} ->
  {:error, v} ->
end

I am, in fact, I am looking at it as a base for something new. Maybe one could wrap lhs ( and unwrap before the next ~>> pipe.
That way you always end up with wrapped struct or tuple that has additional information about its error.

https://github.com/CrowdHailer/OK/blob/master/lib/ok.ex#L141
I am guessing the first two lines here have something to do with the end clause
 value = quote do: value
    args = [value | args]
#.......
 unquote({call, line, args})

On inspecting value, and args, I find it to be empty but it should contain my argument ([1]) could you explain how that actually works?

What's your take on something like
content = "filename.json"
operation =
content
|> Ok.pipable
~>> happy_path, as: :happy
~>> until_something
~>> goes_wrong, as: :wrongy

case operation.result. do
    {:ok, value} -> IO.inspect value
    {:error, reason} -> IO.inspect reason
end

case operation.error. do
    {:happy, [filename | _]}
        -> IO.inspect "Error occured on happy path with filename  "#{v}"
    {: until_something, [result_from_happy_path | x]}
        -> IO.inspect "Error occured on : until_something content  "#{result_from_happy_path}"
    {: wrongy, [result_from_until_something | x]}
        -> IO.inspect "Error occured on : goes_wrong content  "#{result_from_until_something}"

end

I'm not convinced I see that value for my code but I have got familiar with how OK is now. I would be interested in the experiment, certainly. perhaps get a few more opinions on the discussion would be good too

That sounds good. You can feel free to close this if you're thinking of a different avenue to continue.
I also want to point out that I agree with you

Tempted to say all elixir funcs should return a result tuple. {:ok, 4} = 2 + 2

I actually think Elixir would have been better if it treated everything as a "monad" (even if it's just a tuple).

@seivan thanks for your points here. Closing as I don't think this issue has any next action. apart from perhaps more docs/a blog post explaining the points but (speaking for my self) that's not happening soon and I already have a similar issue for that


Many improvements to evolutionSteer !

Hey Carykh !
First of all i wan't to thank you for all your work. I am one of your silent admirers on Youtube and always watch your videos with great interest!
I downloaded the evolutionSteer project in order to create my first creatures and went addicted with it (!). I was frustrated to see only jumping creatures so worked on it to improve the selection mechanism, force them to walk and eventually conquer the world. This is the result of my work, the best i did was a creature who did 29 chomps in 2 minutes (with 90° curving). You can see it softly walking here with its 6 feet.
Here is a (non-exhaustive) list of modifications i made to your original script:

added Radioactive mode to temporarily increase the mutation rate of the creatures
added gift function, that increases the duration of the simulation based on the number of chomps
selection features to remove jumpers !!! (i hate them) and to increase the brain width during evolution
possibility to change the number of creatures per generation (a smaller number such as 250 creatures seems to have a better efficiency for evolution)
multithreading support, based on the work by nathan29299292 and d4rkc0d3r
saving/autosaving function, initially based on darkracer's work (but i did eventually rewrote everything for heap memory limitations). It would allow to exchange creatures between people which is great !
various speed improvements, especially one based on the ticket #10 by MauroMombelli
Processing 3 compatibility
Well and sort-of a documentation ;-)

Well, i hope you will find these modifications interesting. While i wrote this message a new species has emerged, i think i owe them to go and feed them with little multicolour blobs...
Have a nice day!
Joseph

BEAUTIFUL!!
i like how you cut the sigmoid in diferent linear approximation. another
inprovement could be to do math in integer, or use gpu.
about thread, would be nice a way to set core-1 thread, so we can keep one
free for normal stuff.
2017-07-27 19:27 GMT+02:00 alamaz<EMAIL_ADDRESS>
Hey Carykh !
First of all i wan't to thank you for all your work. I am one of your
silent admirers on Youtube and always watch your videos with great interest!
I downloaded the evolutionSteer project in order to create my first
creatures and went addicted with it (!). I was frustrated to see only
jumping creatures so worked on it to improve the selection mechanism, force
them to walk and eventually conquer the world. This is the result of my
work, the best i did was a creature who did 29 chomps in 2 minutes (with
90° curving). You can see it softly walking here
https://www.youtube.com/watch?v=RZWCME8O2Rg with its 6 feet.
Here is a (non-exhaustive) list of modifications i made to your original
script:

added Radioactive mode to temporarily increase the mutation rate
of the creatures
added gift function, that increases the duration of the simulation
based on the number of chomps
selection features to remove jumpers !!! (i hate them) and to
increase the brain width during evolution
possibility to change the number of creatures per generation (a
smaller number such as 250 creatures seems to have a better efficiency for
evolution)
multithreading support, based on the work by nathan29299292
https://github.com/nathan29299292/ and d4rkc0d3r
https://github.com/d4rkc0d3r/
saving/autosaving function, initially based on darkracer
https://github.com/darkracer's work (but i did eventually rewrote
everything for heap memory limitations). It would allow to exchange
creatures between people which is great !
various speed improvements, especially one based on the ticket #10
by MauroMombelli https://github.com/carykh/evolutionSteer/issues/10
Processing 3 compatibility
Well and sort-of a documentation ;-)

Well, i hope you will find these modifications interesting. While i wrote
this message a new species has emerged, i think i owe them to go and feed
them with little multicolour blobs...
Have a nice day!
Joseph
You can view, comment on, or merge this pull request online at:
https://github.com/carykh/evolutionSteer/pull/13
Commit Summary

Create README.md
Update README.md
Added radioactive mode
Merge remote-tracking branch 'origin/master'
Fresh blood
Simulation timer
Creature number
Processing 3
Moved global variables
Added timer
Multithread
Other technique to remove jumpers
Mass extinction
Adding gitattributes for EOL
Multithread 2
Savable
Save screen
Interface glitch
Autosave
Autosave 2
Autosave timecoded
AutoPause
Saving 2
Optimisation
Expanded brain
Ignore all gz files
Light save
Gift function
Update mutation comportement
Changed default parameters
Update readme file
Readme update for install
added commands for reducing and increasing gift
added "k" in readme
Modified mutation properties

File Changes

A .gitattributes
https://github.com/carykh/evolutionSteer/pull/13/files#diff-0 (1)
A .gitignore
https://github.com/carykh/evolutionSteer/pull/13/files#diff-1 (7)
M Axon.pde
https://github.com/carykh/evolutionSteer/pull/13/files#diff-2 (29)
M Brain.pde
https://github.com/carykh/evolutionSteer/pull/13/files#diff-3 (140)
M Creature.pde
https://github.com/carykh/evolutionSteer/pull/13/files#diff-4 (421)
M Muscle.pde
https://github.com/carykh/evolutionSteer/pull/13/files#diff-5 (73)
M Node.pde
https://github.com/carykh/evolutionSteer/pull/13/files#diff-6 (153)
A README.md
https://github.com/carykh/evolutionSteer/pull/13/files#diff-7 (56)
A code/jackson-core-2.9.0.pr4.jar
https://github.com/carykh/evolutionSteer/pull/13/files#diff-8 (0)
A code/jackson-dataformat-smile-2.9.0.pr4.jar
https://github.com/carykh/evolutionSteer/pull/13/files#diff-9 (0)
A computingThread.pde
https://github.com/carykh/evolutionSteer/pull/13/files#diff-10 (31)
M evolutionSteer.pde
https://github.com/carykh/evolutionSteer/pull/13/files#diff-11 (904)

Patch Links:

https://github.com/carykh/evolutionSteer/pull/13.patch
https://github.com/carykh/evolutionSteer/pull/13.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/carykh/evolutionSteer/pull/13, or mute the thread
https://github.com/notifications/unsubscribe-auth/AGE80dH6x-IrVD6Ng7yFJQVqooXUccOwks5sSMiBgaJpZM4OlmOU
.

If you haven't noticed by now, cary is bad at maintaining his github, you might want to contact him via discord or twitter DM

hey guys!
im new to github, but i really like this game
so my question is, how can i add all of this changes to my file easily? without changing all the code myself, because im too dumb for that
thank you :)

@alamaz Your video looks to be unavailable and I wanna see!


QC-FC analysis is slow

https://github.com/SIMEXP/fmriprep-denoise-benchmark/blob/010a88ceaeb965ad5af98bd62c2e4c2fc0727d14/code/metrics/quality_control_connectivity.py#L21
Might need to check the implementation.

Could not find ds000288 on openneuro, but depending on the dataset, age and sex effect could be negligible?
This would drastically reduce the computation time (no more matrix inversion).
Also I know sometimes scipy can decrease performance, so it could be worthwhile checking with a manual implementation instead (thinking of stats.pearsonr here, you don't need the hypothesis testing for example, just go with the raw mat formula) ?

Oops should be ds000228
We do need the p-value. And the effect of age is relevant enough from my initial check

I decided to crunch this metric on the cluster....


python3Packages.grad-cam: Fix alias-free eval

Description of changes
With allowAliases = false, this package doesn't evaluate:
error: Function called without required argument "scikitlearn" at /home/bt1cn/.cache/nixpkgs-review/rev-fef1cfb05a1fa5596591058fe56fbb120b83d550/nixpkgs/pkgs/development/python-modules/grad-cam/default.nix:9, did you mean "scikit-learn"?

https://github.com/NixOS/nixpkgs/blob/de9d483a2e8e930467a6cbe18597a22637f2c9e6/pkgs/top-level/python-aliases.nix#L218
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Ah... We probably want to do the same thing for python3Packages.jaxopt as well :upside_down_face:
https://github.com/NixOS/nixpkgs/blob/eea5dc6e5d622667b990e2e4b5bb997b4434148f/pkgs/development/python-modules/jaxopt/default.nix#L42


Add 'g:airline_solarized_dark_inactive_background' option for solarized.vim

Increases contrast to make it easier to distinguish between active and inactive buffers.
Default:

Darker:

Upps, missed this PR notification. Thanks. Merged!


ImportError: cannot import name TOWER_FREEZE_KEYS

Python 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow
print tensorflow.version
1.4.0-rc1

root@dl-1080:/data/TensorFlow/tensorpack/examples/ShuffleNet# python shufflenet.py
Failed to load OpenCL runtime (expected version 1.1+)
Traceback (most recent call last):
File "shufflenet.py", line 14, in
from tensorpack import logger, QueueInput, InputDesc, PlaceholderInput, TowerContext
File "/usr/local/lib/python2.7/dist-packages/tensorpack-0.7.1-py2.7.egg/tensorpack/init.py", line 16, in
from tensorpack.callbacks import *
File "/usr/local/lib/python2.7/dist-packages/tensorpack-0.7.1-py2.7.egg/tensorpack/callbacks/init.py", line 30, in
_global_import(module_name)
File "/usr/local/lib/python2.7/dist-packages/tensorpack-0.7.1-py2.7.egg/tensorpack/callbacks/init.py", line 13, in _global_import
p = import(name, globals(), locals(), level=1)
File "/usr/local/lib/python2.7/dist-packages/tensorpack-0.7.1-py2.7.egg/tensorpack/callbacks/inference_runner.py", line 22, in
from ..graph_builder.predict import SimplePredictBuilder
File "/usr/local/lib/python2.7/dist-packages/tensorpack-0.7.1-py2.7.egg/tensorpack/graph_builder/init.py", line 32, in
global_import(module_name)
File "/usr/local/lib/python2.7/dist-packages/tensorpack-0.7.1-py2.7.egg/tensorpack/graph_builder/init.py", line 13, in global_import
p = import(name, globals(), locals(), level=1)
File "/usr/local/lib/python2.7/dist-packages/tensorpack-0.7.1-py2.7.egg/tensorpack/graph_builder/predictor_factory.py", line 10, in
from ..utils.naming import TOWER_FREEZE_KEYS
ImportError: cannot import name TOWER_FREEZE_KEYS

pip uninstall tensorpack
python setup.py install
problem solved!!


Lucky Number

🚀 Feature
Lucky numbers are subset of integers. Rather than going into much theory, let us see the process of arriving at lucky numbers,
Take the set of integers
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,……
First, delete every second number, we get following reduced set.
1, 3, 5, 7, 9, 11, 13, 15, 17, 19,…………
Now, delete every third number, we get
1, 3, 7, 9, 13, 15, 19,….….
Continue this process indefinitely……
Any number that does NOT get deleted due to above process is called “lucky”.
WILL BE SOLVING USING RECURSION
Have you read the Contributing Guidelines on Pull Requests?
yes
Motivation
Want to add in cpp in cp
Pitch
As a GSSoC'21

/assign


Crafting large numbers of items at once freezes the game

Minecraft 1.16.1
Stacc 1.16.1 4
In 1.15.2, I tried crafting 100,000 Stone Pickaxes and it caused the server to freeze for about 30 seconds. Then I tried crafting 1,000,000 Iron Blocks and it caused the server to freeze for a few minutes.
In 1.16.1, I tried crafting 100,000 Oak Logs and it caused the server to freeze for about 25 seconds (24544ms from the log).
These freezes are most likely because the game rescans the entire recipe registry for each and every item to be crafted, instead of caching and first checking the most recently used recipe (similar to how FastWorkbench and FastFurnace does it).
By similar logic, the following also holds true:

Repairing a diamond helmet with a very large negative durability with a maxed-out stack of diamonds freezes the game for a few minutes. To reproduce: /give @p diamond_helmet{Damage:1000000000) and /give @p diamond<PHONE_NUMBER>

Large numbers of trades at once may freeze the game for a few seconds to minutes. To reproduce: summon villager ~ ~ ~ {VillagerData:{level:99,profession:"minecraft:armorer",type:"minecraft:desert"},Offers:{Recipes:[{maxUses:2147483647,priceMultiplier:0f,buy:{id:"minecraft:stone",Count:1b},sell:{id:"minecraft:dirt",Count:1b}}]}} and /give @p stone<PHONE_NUMBER>

Does fastworkbench fix the problem, ain't there a fabric version

ye there is

if the game continues to lag even with that mod, tell me

With FastBench for Fabric on a vanilla crafting table, I get the following results:

Crafting 100,000 Iron Blocks causes the client to freeze for less than a second.
Crafting 1,000,000 Iron Blocks causes the client to freeze for a few seconds.
Crafting 10,000,000 Iron Blocks causes the client to freeze for a few more seconds. The server also outputs a log entry saying that it was running about 5 seconds behind.
Crafting 100,000,000 Iron Blocks causes the client to freeze for a couple minutes. The server also outputs a log entry saying that it was running about 50 seconds behind.
Crafting 1 billion Iron Blocks will most likely crash the server due to the watchdog, if enabled.

iitemstack bad iritat

no u

not sure how to practically fix this without breaking a bunch of mods, either iitemstack will do it or a fapi addition is gonna need to be added

The problem is that fixing this would require rewriting a good portion of the crafting system and would be extremely likely to break mods.

yeah what I would do is prevent items from stacking over a certain number in the crafting table

fixed via setting max stack size in crafting inventory to 64

small amendment
@Mixin(CraftingInventory.class)
public abstract class CraftingInventoryMixin_LimitStackSize implements Inventory {
	private static final int STACC_SIZE_LIMIT;
	static {
		if(FabricLoader.getInstance().isModLoaded("fastbench")) {
			STACC_SIZE_LIMIT = 1_000_000;
		} else {
			STACC_SIZE_LIMIT = 1_000;
		}
	}
	@Override
	public int getMaxCountPerStack() {
		return STACC_SIZE_LIMIT;
	}
}


add language arabic

Thank you very much for the good program you provided and I would like to help the development of the download manager

@hosseinSh1379 Thank you 🙏


Now, A monkey only will attend to one message

The state change when a message is received.

Changes Unknown when pulling<PHONE_NUMBER>a6d3ac5f43086f6803cf99788441f5 on impruvement/blockMonkey into ** on master**.


BZ 1149871 - export Business Process in PDF format does not includes documentation values

6.4.x PR for this BZ

+1

Merged into 6.4.x.


Devices without firmware-embedded activation key

Could you add what the process if for devices without firmware-embedded activation keys under 'Exiting enterprise deployments' section?

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

ID: dd18b4c7-1c71-916d-cb5c-8322903e8ed5
Version Independent ID: 7b4c1663-1b1a-2952-7bf8-b0cb724013af
Content: Windows 10 Subscription Activation
Content Source: windows/deployment/windows-10-enterprise-subscription-activation.md
Product: w10
GitHub Login: @greg-lindsay
Microsoft Alias: greglin

@officedocsbot assign @mypil

@stusims - Thank you for submitting feedback.
I will get this issue over to the Win10 ITPro writing team for investigation.
Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

@stusims - From our understanding, the issue has been resolved but it may take a few days for the merged content to appear in the article. If you feel it hasn't been resolved, please re-open this issue.
Thank you for your contribution to make the docs better! Much appreciated!

@officedocsbot close


Fix more minor issues with artifact releaser testing pipeline

Fix certgen file name, and make the tag filter even more stringent to avoid cases where the tag is, for example, 20180708a, which would make the pipeline fail.

/lgtm

/lgtm

/approve


[bug] Frame wallet not detected by Web3Modal

Link to minimal reproducible example
Can be reproduced on https://eth.blockscout.com/UPDATED: 28-AUGtested with https://lab.web3modal.com/library/wagmi/
Summary
WC modal does not detect Frame wallet running as:

Frame desktop app
Frame Companion extension

Tested on
MacOS Sonoma 14.5, Apple Silicon
Safari Version 17.5 (196<IP_ADDRESS>.6)
Chrome Version 125.0.6422.141 (Official Build) (arm64)
Steps to reproduce

Run Frame app with an active account
(optional) Enable Frame Companion extension in Chrome
Open https://eth.blockscout.com/
Click on Connect wallet
Select All wallets
Select Frame

Result: Not Detected

List of related npm package versions
@web3modal/wagmi: 4.2.1UPDATED 28-AUG

the wallet is being detected

When I try to connect this msg appears

Issue has been canceled


Add avoid_unused_function_parameters

Describe the rule you'd like to see added and to what rule set
Like avoid_unused_constructor_parameters, unused parameters in function is surely unintentional
Additional context
badFunction(int unusedParameter, [String unusedPositional]) {
    print(unusedParameter);
}

If this a request for a new lint, or a request to add an existing lint to the package:lints set (new lint requests should instead go to dart-lang/linter)?

Oh! my bad.
It is a new lint rule, thank you!


Add support for Var methods

FlagSets have methods for creating a flag with a pointer to the variable that stores the value. It would be nice to have that feature for consistency.
https://godoc.org/flag#FlagSet.BoolVar

The whole purpose of Dyn flags is that they are not pointers: they have thread-safety built in.
You can still use standard *Var from FlagSet, just not in a dynamic fashion.


error on build application

Hi,
I started all over to install easy-email, installation went fine, but on npm run build, I get this error:

Remove ! if not use Typescript.

Hi,
thank you for the hint, that helped. When running build again, there came the next error: Cannot find module: 'react-final-form'. Make sure this package is installed.
I resolved that by installing react-final-form.
Build succeeded.
When starting easy-email, the window opens, but still (comparing to your demo) missing some things:

It does right away open with the editor, not with the demo templates. Do I have to install something more?
In the editor the header-part with export, send test mail and save is missing. How can I get that?

My editor window:

Just put whatever the default template you want in initialValue. The content field is what displayed in the editor, so make sure you set the correct value.

You can customize the buttons and stuff here :)

Thank you for your help. But it does not work yet. Now I have the following error:

It seems to be a syntax error, please check your code. Here is a simple demo https://github.com/m-Ryan/easy-email-demo

ok, I sorted that out (i hope), but now, I get this:
./src/App.js
Attempted import error: 'IEmailTemplate' is not exported from 'easy-email-editor'.

ok, I sorted that out (i hope), but now, I get this:
./src/App.js Attempted import error: 'IEmailTemplate' is not exported from 'easy-email-editor'.

Pleasa send a full working exmaple

Thank you for your attention. I appreciate that.
Here my App.js:
App.zip

Thank you for your attention. I appreciate that.
Here my App.js: App.zip

I think you are just using JavaScript and don’t need typings, try this
App.zip

Thank you a lot, now it works. I will see by comparing my file with yours, what are the differences. Perhaps I learn something.


Sub menus in context menu doesn't expand

Description
I tried creating a zip file from a selection which, of course, can be accessed using context menu > some zip software > create zip., and then I found this.
Here's what it looks like:
screen-capture (20).webm
Steps To Reproduce
No response
Expected behavior
The submenus should expand and work properly
Files Version
<IP_ADDRESS>
Windows Version
10.0.22622.575
Relevant Assets/Logs
N/A

This is more likely a WinUI bug. Whats your display resolution?

This is more likely a WinUI bug. Whats your display resolution?
I often use 2560x1440 on primary display

from your video it look very low. Could you try lowering the scaling or expand the window and see if it still doesn't work

from your video it look very low. Could you try lowering the scaling or expand the window and see if it still doesn't work

I'm already using 100% scaling for Windows.
Here's the full 1440p window:
https://user-images.githubusercontent.com/88200096/185936549-0a8df596-3055-4c73-b0a0-9ab794c8ce70.mp4
Apparently, Edit tags are also not working (v<IP_ADDRESS>)

This is working for me in <IP_ADDRESS>. Can you try that version.

I think the problem also occurs outside the app. I tried the option "Save As" in MS Paint but it doesn't expand. Do you think it has something to do with the UI of Windows?

build 22623.730

Most likely, that being said, is this an issue in the preview version of Files?

Most likely, that being said, is this an issue in the preview version of Files?

yes both in stable and preview

Let's treat this as a Windows issue.

I have just checked this and it works fine, so try restarting your computer, reinstalling Files, or any other common "computer fix". You know what I mean... :)
Conclusion : It is not an issue of "Files".


web: landing page pass

some ideas:

[x] responsiveness
[x] iterate on design (halftones, etc.)
[ ] copy changes

per discussion today: “if you are interested in building a specialized note tool with this product, talk to us” - a section with a form

@progrium ready for review: https://www.figma.com/file/6EKKAb0mjYISW7jXVElDm5/Treehouse-Website?node-id=114%3A76468&t=IgqQGW7sRW4SdVcp-1
not a major iteration, but adding in the halftones and a couple banners/callouts. let's go over it tomorrow.

here is the final halftone asset, the tile size should be 50x50px.

figma:
https://www.figma.com/file/6EKKAb0mjYISW7jXVElDm5/Treehouse-Website?node-id=114%3A62073&t=qjvIoBGOUBYBzXEQ-1


report: Evaluation of Intermediate Representations (part of Literature review) [2h]

Prerequisite for issue #22.

completed as of rev f91a6ded0fecc4ea257a82ded8dd8774299778f1.


Hygene for HyGene

Apologies for the dad joke in the title. I wanted to address low hanging fruit. I removed unnecessary dependencies to help load time and to prevent future version conflicts. One recommendation is to avoid any dependencies that are not necessary. In the model examples, I added a separate environment so that those examples can run without the need to add them to the package. I recommend adding Documenter and DocumenterTools to your global environment (that is the recommendation since they exist outside of specific packages and projects).
It was not clear to me if the following are used in the core package: Distributions, Parameters, StatsBase, PrettyTables.
As a stop gap, I added a smoke test to make sure that the code runs as changes are made. I will add tests to individual functions as I familiarize myself with the code.

Thanks so much! I am trying to learn good "hygiene" for Julia code. Why can't I just post my spaghetti code??? /s


Bump glob-parent?

Just wondering if you were willing to bump glob-parent.  I believe version 3.1.0 is currently available.
/cc @es128

Willing, yes. There's more to it than a simple version bump - iirc it causes windows backslash problems without further adjustments within chokidar and I haven't taken the time to sort it out.

@es128 oh yeah, I totally forgot about that.  I'll ping @jonschlinkert and @doowb to see if they can look at this when they have time.

I'll take a look this weekend.

@doowb sorry, I need to ping this again because this (and some other glob related dependencies) are a big duplication problem in my dependency tree.
@es128 any chance we could major bump all the outdated glob dependencies (anymatch, glob-parent, is-glob) and major bump here?  Even if it's a breaking change for my glob-watcher, I can just force the major in my tree.

This was done in 2.0.0


Support TCX files

A user asked for TCX files, which are not supported yet. I'll have to look into this file format.

I've added https://github.com/alenrajsp/tcxreader, but there is some more work to do. Somehow the files start with spaces:
          <?xml version="1.0" encoding="UTF-8"?>
<TrainingCenterDatabase
  xsi:schemaLocation="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2 http://www.garmin.com/xmlschemas/TrainingCenterDatabasev2.xsd"
  xmlns:ns5="http://www.garmin.com/xmlschemas/ActivityGoals/v1"
  xmlns:ns3="http://www.garmin.com/xmlschemas/ActivityExtension/v2"
  xmlns:ns2="http://www.garmin.com/xmlschemas/UserProfile/v2"
  xmlns="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns4="http://www.garmin.com/xmlschemas/ProfileExtension/v1">
            <Activities>
              <Activity Sport="Other">

And that confuses the parser:
2023-11-26 17:53:26 geo_activity_playground.importers.directory ERROR Error while parsing file Activities/9890487249.tcx:
Traceback (most recent call last):
  File "/home/mu/Projekte/geo-activity-playground/geo_activity_playground/core/activity_parsers.py", line 133, in read_activity
    df = read_tcx_activity(path, opener)
  File "/home/mu/Projekte/geo-activity-playground/geo_activity_playground/core/activity_parsers.py", line 96, in read_tcx_activity
    data = tcx_reader.read(path)
  File "/home/mu/.cache/pypoetry/virtualenvs/geo-activity-playground-cM-Vn1fX-py3.9/lib/python3.9/site-packages/tcxreader/tcxreader.py", line 26, in read
    tree = ET.parse(fileLocation)
  File "/usr/lib64/python3.9/xml/etree/ElementTree.py", line 1222, in parse
    tree.parse(source, parser)
  File "/usr/lib64/python3.9/xml/etree/ElementTree.py", line 580, in parse
    self._root = parser._parse_whole(source)
xml.etree.ElementTree.ParseError: XML or text declaration not at start of entity: line 1, column 10

Seems to work now.


Update README.md

Added content to the README
https://github.com/ibmsoe/bigtop/pull/1/commits/b0f69448b466e4f003627f4d6a2de08ca931dde7

https://github.com/ibmsoe/bigtop/pull/1/commits/b0f69448b466e4f003627f4d6a2de08ca931dde7