Archive states at runtime

Description
Please include a brief summary of the change that this pull request proposes. Include any relevant motivation and context. List any dependencies required for this change.

Functionality for saving full states to a separate database which prevents the deletion of the keys in the archived states. Together with the already implemented state recovery methods this feature allows maintaining the appearance of disk storage for all state, while also reducing the size of the state database.

Fixes Issue #54.
Note: this PR builds on top of #482.

The PR in #482 should be reviewed and merged first. After which this PR can be rebased to master-pre-merge branch.

Type of change
Insert x into the following checkboxes to confirm (eg. [x]):

[ ] Bug fix.
[x] New feature.
[ ] Breaking change (a fix or feature that causes existing functionality to not work as expected).
[ ] Requires documentation update.

Testing
Please describe the tests you used to validate this pull request. Provide any relevant details for test configurations as well as any instructions to reproduce these results.

Existing suite of unit tests.
Running the kernel with pruning and archiving enabled and checking the existence of archived and current states by executing ./aion.sh --dump-state-size X where X is the height of the blockchain.
Running the kernel with a database containing a side chain and ensuring correct behavior in the different sync modes. Recovery from archived states works correctly when sync walks back to already pruned blocks.

Verification
Insert x into the following checkboxes to confirm (eg. [x]):

[x] I have self-reviewed my own code and conformed to the style guidelines of this project.
[x] New and existing tests pass locally with my changes.
[ ] I have added tests for my fix or feature.
[x] I have made appropriate changes to the corresponding documentation.
[x] My code generates no new warnings.
[x] Any dependent changes have been made.

After this PR the state pruning mode can be set from the config file before starting the kernel.
<!--Data pruning behavior for the state database. Options: FULL, TOP, SPREAD.-->
<!--FULL: the state is not pruned-->
<!--TOP: the state is kept only for the top K blocks; limits sync to branching only within the stored blocks-->
<!--SPREAD: the state is kept for the top K blocks and at regular block intervals-->
<state-storage>FULL</state-storage>

If the kernel is using a previous database, it's recommended to run the CLI state data reorganization before starting the kernel:
./aion.sh --state [CHOSEN_MODE]

When switching from TOP mode to FULL or SPREAD mode one should run the CLI command to avoid issues if a backward sync occurs due to re-branching beyond stored block states. If this is not done the kernel may encounter errors at run time. A simple kernel restart will solve these issues however.


Adds an activity route to the carbon API

Description
Adds an activity route. That returns activities for a given project. Activities can be filtered on ActivityType eg.
/projects/VCS-981-2017/activity?activityType=UpdatedPrice,Purchase
Related Ticket

PR 1/3 for ticket #1377

Checklist

[X] I have run npm run build-all without errors
[X] I have formatted JS and TS files with npm run format-all

@0xemc I added tests for activity routes in this one.

postman_collection.json

done in 58e2e98d4

Closed in favor of #1893


Mac Notification Badge do not show | Mac version 10.14.5 | Franz version 5.1.0

Describe the bug
I have WhatsApp service. I do not get notification badges from new Whatsapp messages in Franz app in Mac app bar.
Expected behavior
When I receive a new message I would like to see some indicator from it.
Desktop (please complete the following information):

Mojave 10.14.5

Same!
(Android Messages notifications stopped working last month as well...)

Same! No badges for services are being display, yet I still get notifications.

Mojave 10.14.5

Any news on this? Catalina 10.15

open


TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".css"

Describe the bug
I'm not that experienced with these things yet, but the app runs as should until I add the recommended providers from @adobe/react-spectrum package and then it crashes with the error message in the screenshot. I suspect it has more to do with the SSR implementation from this package (it fails in the server.ts. file). I've used @adobe/react-spectrum in other React Vite projects and never ran into this issue.
To Reproduce
Steps to reproduce the behavior:

Setup a new project using the vite-template example
Install @adobe/react-spectrum and react-aria
Wrap children with @adobe/react-spectrum Provider and I18nProvider as recommended (https://react-spectrum.adobe.com/react-aria/ssr.html, https://react-spectrum.adobe.com/react-spectrum/Provider.html)
Run npm run dev
It fails with the error message in the screenshot below

Expected behavior
Vite should not have an issue processing CSS files from vendor
Screenshots

Desktop (please complete the following information):

OS: Mac OS
Browser Chrome

@chrisidakwo Hi, check this please
Short summary:
1.
 <ConsistentSuspenseProvider>
      <StoreManagerProvider storeManager={storeManager}>
        <MetaManagerProvider manager={metaManager}>
          <Suspense fallback={<Fallback />}>
            <I18nProvider locale="en-GB">
              <Provider theme={defaultTheme}>{children} </Provider>
            </I18nProvider>
          </Suspense>
        </MetaManagerProvider>
      </StoreManagerProvider>
    </ConsistentSuspenseProvider>

// vite.config.ts

export default defineConfig({
  root: 'src',
  publicDir: '../public',
  envDir: '../',
  build: {
    outDir: '../build',
  },
  ssr: {
    noExternal: [
      '@adobe/react-spectrum',
      '@react-spectrum/actionbar',
      '@react-spectrum/actiongroup',
      '@react-spectrum/avatar',
      '@react-spectrum/badge',
      '@react-spectrum/breadcrumbs',
      '@react-spectrum/button',
      '@react-spectrum/buttongroup',
      '@react-spectrum/calendar',
      '@react-spectrum/checkbox',
      '@react-spectrum/combobox',
      '@react-spectrum/contextualhelp',
      '@react-spectrum/datepicker',
      '@react-spectrum/dialog',
      '@react-spectrum/divider',
      '@react-spectrum/dnd',
      '@react-spectrum/form',
      '@react-spectrum/icon',
      '@react-spectrum/illustratedmessage',
      '@react-spectrum/inlinealert',
      '@react-spectrum/image',
      '@react-spectrum/label',
      '@react-spectrum/labeledvalue',
      '@react-spectrum/layout',
      '@react-spectrum/link',
      '@react-spectrum/list',
      '@react-spectrum/listbox',
      '@react-spectrum/menu',
      '@react-spectrum/meter',
      '@react-spectrum/numberfield',
      '@react-spectrum/overlays',
      '@react-spectrum/picker',
      '@react-spectrum/progress',
      '@react-spectrum/provider',
      '@react-spectrum/radio',
      '@react-spectrum/slider',
      '@react-spectrum/searchfield',
      '@react-spectrum/statuslight',
      '@react-spectrum/switch',
      '@react-spectrum/table',
      '@react-spectrum/tabs',
      '@react-spectrum/tag',
      '@react-spectrum/text',
      '@react-spectrum/textfield',
      '@react-spectrum/theme-dark',
      '@react-spectrum/theme-default',
      '@react-spectrum/theme-light',
      '@react-spectrum/tooltip',
      '@react-spectrum/view',
      '@react-spectrum/well',
      '@spectrum-icons/illustrations',
      '@spectrum-icons/ui',
      '@spectrum-icons/workflow'
    ],
  },
  plugins: [SsrBoost(), react(), MobxManager()],
});

Great, thanks!
I actually switched from react-spectrum to MUI and the issue was gone. Became obvious it had something to do with react-spectrum but wanted to wait for your response.
Anyway, thanks.

Great, thanks!
I actually switched from react-spectrum to MUI and the issue was gone. Became obvious it had something to do with react-spectrum but wanted to wait for your response.
Anyway, thanks.


FIXED: event handler: 503 Service Unavailable error

FIX for: https://github.com/dora-team/fourkeys/issues/475

I had the same issue recently and I used the same fix. Thanks for putting up a PR


Fix dos through checking for remaining services before releasing ip. …

…Fixes #600

One small linting issue, we could ideally do with a test being added to the services test that will create a second service with a matching ip address to ensure the behaviour. (can be done separately)


Process all types of iterables

This PR comes to solve https://github.com/maxbachmann/rapidfuzz/issues/27.
The implementation is the same as done in fuzzywuzzy.

Oh your right appears I was not really thinking much when adding support for dictionaries and therefore silently dropping support for most iterables

Thanks for the fix

Happy to support a library I'm dependent on :smile:


Adds an option to chose whether the rules should be persisted

Hi thanks for the PR!
To avoid behaviour change from existing installations, I would set the default of firewall_persist_rules  to true.
I am afraid that ppl that upgrade will have their rules not persisted and they'll wonder why.
What do you think?

You are right. I updated the code and docs to the default of firewall_persist_rules to true

Thanks, I will check that out and fix Travis also. Seems like something changed since last PR.


Fixing inconsistent behaviour between drawLink() and drawImage().

I've noticed inconsistent behaviour between links and images. Here's a screencast to show what I mean: http://recordit.co/VeU4EJQeWP
PS. What an amazing Markdown editor. I love the visual feedback given by inline styling, and the wysiwyg-like toolbar... yet this thing is NOT a wysiwyg editor, so it doesn't come with any of the buggy baggage that most wysiwyg editors struggle with. THANK YOU <3

Thanks @JesseLeite for the compliments on the editor! This behavior is actually by design, since the idea for a link is to highlight text and add a URL, but for an image, it's generally used without any highlighting. SimpleMDE is designed for novice users with little-to-no knowledge of Markdown. Your solution for the image button will place highlighted text in the alt text area, which a novice user would not understand. It's better for them to not know that anything can be placed inside of the ![] brackets.

Fair enough.


[bug] L4Z implementation is broken on nodejs18

Hi, the L4Z implementation suggested in the documentation is broken on nodejs18
The error is about the _lz4.wasm file:
RuntimeError: abort(RuntimeError: abort(Error: ENOENT: no such file or directory, open '/var/task/_lz4.wasm'). Build with -s ASSERTIONS=1 for more info.). Build with -s ASSERTIONS=1 for more info.

The issue has already been reported, and there's a hackaround that doesn't work for me, surely because I use esbuild.
The kafkajs-lz4 implementation seems very old (+2y without a commit, and still in beta), do you have an alternative?
Thanks

Posted on the wrong github repository! Issue re-created here.


feat: add golang entrypoint

Description
This is a simple/short PR to set up the entry point for golang on the frontend. The PR sets up Go as a language that a user can choose, but it does not yet support the running a .go program yet, however it does support .go syntax highlighting 🥳
The accompanying go-slang PR: https://github.com/shenyih0ng/go-slang/pull/1
Setting up dev environment
There is currently no good way to test out go-slang with a frontend. Although the 2 repos are tightly coupled, they remain as independent repos which means that we will need to yarn/npm link the repos.

yarn link in go-slang repo
yarn link js-slang in the frontend repo

js-slang is used here since the package name has not been changed to go-slang, and i don't think we should be changing?

At this point frontend should be using a local build of go-slang instead of the one released on the registry
For every new feature/modification to go-slang, you will need to run yarn build in the go-slang repo so that the latest changes are built and updated in the /dist folder (that's the folder that frontend is using after linking)

note that CI would not pass since it still uses the js-slang package on the npm registry instead of our own go-slang


Update the CONTRIBUTING guide

It took me a fair bit of googling and playing around to get a grip on how librivox-catalog fits together, so I thought I'd start writing some of it down for the next person.
I haven't included any details on the structure of the code itself, but I've included some links out to the CodeIgniter docs, which should go a little way to helping people get started.

Thanks for taking a look! I'm out for a few days, but I can make the updates when I get home

If you (or anyone else, really) ends up coming back to this, I'd like to get rid of the first person singular ("I") in the couple of spots where it's used. Either using the passive voice, or first person plural ("we").

No problem, I've raised PR #208 to remove it :slightly_smiling_face:

At the request of garethsime, I here include the steps I have taken on a Mac running Ubuntu 22.04 under Parallels Desktop to install the Librivox Catalog development environment.
Install ansible
sudo apt update
sudo apt upgrade
sudo apt install ansible
Install ansible playbook
cd ~
git clone https://github.com/librivox/librivox-ansible
cd librivox-ansible
sudo nano inventory.yaml
Edit initial entries so they read:

localdev:
hosts:
<IP_ADDRESS>:
Note: I don't know how to represent the appearance of these entries properly here, but the second line is meant to be indented from the first, and the third line indented from the second. It's only the IP address you need to edit. The first and second lines remain untouched.

Run the following command:
sudo ansible-playbook --connection=local --inventory <IP_ADDRESS>, --limit <IP_ADDRESS> localdev.yaml -i inventory.yaml
Install WordPress
Start Firefox. Enter URL http://librivox.org
Result: Firefox displays message "Warning: Potential Security Risk Ahead".
Click "Advanced" button, then Accept the "Risk and Continue".
Wordpress installation screen is displayed.
I set the following values. There appear to be no wrong answers here!
Site title = LibrivoxSite
Username = LibrivoxUser
Password = LibrivoxPWD
Confirm use of weak password: check
Your email:
Click "Install Wordpress".
[There is no need to log in to WordPress when invited to, once this process has succeeded]
Verify installation
In Firefox, go to http://librivox.org/search
Result: The Librivox catalog search page is displayed.
Note: You need to enter exactly this URL.
A comment about this process
In practice, it took me hours to get to the point where I realised the process could be (and should be) this simple. I have, however, just installed the Librivox development environment on a second Mac running Ubuntu 22.04 under Parallels Desktop and verified that the above instructions worked for me as written.

Thanks for the write-up, @peterjdann! :slightly_smiling_face:
It's cool to see that the playbooks work well regardless of how the Ansible host is set up (Parallels, Docker, LXC, etc.), so hats off to @notartom for the love that's gone into them

In practice, it took me hours to get to the point where I realised the process could be (and should be) this simple.

Yeah, I found much the same the first time I set it up locally. In hindsight, it's really not that hard, but it felt tricky at the time haha

Note: I don't know how to represent the appearance of these entries properly here[...]

You can use triple back-ticks to start a code block


Retain Typescript types when converting Stateless component to Stateful (Class) component

Today, when refactoring is applied, the types are lost. We'd like to fix that

Fixed by https://github.com/wix/vscode-glean/commit/a6ac8a9be8f55b8b8e4f9ec8b563a6d354315cb1


to push code coverage report

CODECOV_TOKEN had to be changed in the Travis, to push to the new repo, i.e. ibm/scc-java-sdk instead to ibm-cloud-security/scc-java-sdk. Updated the Travis environment variables, creating this PR to trigger.

:tada: This PR is included in version 0.0.20 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Verify and fix BDB multi node deployment guide

Documentation support to add a new BDB node to an existing
replica set, using x.509 certificates and SSL/TSL connections, across
geographically dispersed clusters.
Fix some documentation issues and add more references i.e.
specifically about signing of MongoDB member certificates.
Minor fixes for nginx-https-dep.yaml(invalid configMap var)
Reconfigure nginx keep_alive between MongoDB front and backend ports.

Codecov Report

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

@@           Coverage Diff           @@
##           master    #1713   +/-   ##
=======================================
  Coverage   98.46%   98.46%
=======================================
  Files          59       59
  Lines        2864     2864
=======================================
  Hits         2820     2820
  Misses         44       44

Krish will have to review the details of this PR, since I won't have time this week and then I will be leaving for vacation starting on Friday. I would like to test this, but that will have to be postponed until I get back in September.
One high-level question I had was about the MongoDB Monitoring and Backup Agents on the new nodes. The new documentation says that the monitoring and backup agents are optional on the new nodes. Did you do some tests with those installed and running?
It seems to me that you'd want a monitoring agent for each MongoDB node in the MongoDB-cluster, but I'm not sure. Is it enough to have just one? What if that one goes down? On the other hand, can MongoDB Cloud Manager handle talking to lots of monitoring agents?
The backup agent is a bit different. I can understand why you'd only need one, but again, what happens if that one backup agent goes down? On the other hand, can MongoDB Cloud Manager handle talking to lots of backup agents, all backing up the same data?
I suspect the MongoDB documentation has something to say about this.
It would be nice if you could give some guidance in the documentation, rather than saying the monitoring and backup agents are "optional." Should they or shouldn't they install those agents, and how should they decide?

@ttmc I deployed the MongoDB monitoring and backup agents for all the clusters(3). We can definitely introduce multiple instances for monitoring and backup to improve HA/failover, but there is one only active Monitoring and Backup agent in a MMS group and multiple instances work in a Active/Standby mode.
I will be removing the optional tag from the monitoring and backup agents, because that is a better deployment configuration.

#fixes 1712


How to get User from UsersInfoRequest

Hello there.
I want to get user info like "pk","biography" and etc...
example code :
        IGClient lib = SerializeTestUtil.getClientFromSerialize(ba, "igclient.ser", "cookie.ser");
        UsersUsernameInfoRequest req = new UsersUsernameInfoRequest(username);
        IGResponse response = lib.sendRequest(req).join();

but result of 'IGResponse' does not have any user info.

Oh...
I should have used UserResponse instead of IGResponse.


Variable merging

declare var test: (s: string) => void;

declare var test: {
    (s: string) => void;
    tests: any[];
}

At the moment TS compiler shows error: Subsequent variable declarations must have the same type.

What's the intent of this code?

First declaration is from nuget package. I do not want to modify it.

We've had this request before. The problem is how do we support this dynamic, expando type of var usage but disallow meaningful errors that people generally associate with a good static checker. For example, you presumably would not have wanted to be allowed to declare var test: number; here, that would surely have been/caused a bug. But perhaps if the subsequent declaration is a subtype of the previous declaration we could allow it?

It would be nice if it will work the same way as in the case of interface merging. I.e. interpret a type of the variable, as a declaration of an anonymous interface:
declare interface _anonymous_interface_for_global_var_test: {
    (s: string) => void;
}

declare interface _anonymous_interface_for_global_var_test: {
    (s: string) => void;
    tests: any[];
}

If we allow this, it seems to imply we should allow extension of existing union types. But maybe I am wrong.

Just ran into this again trying to define the type of state in history's Location, which is defined as any in the official typings, and there's no provided means of overriding it: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/566e0394859fdc1dc893658ccec6b06372d56a91/types/history/index.d.ts#L46

Here is another example. Let's say we're making a library of utility functions. We want to import some of the utility functions into a front-end project.
To keep things organized, we want the utility functions to always be namespaced. For example, we want to require our developers to call utils.foo() and utils.bar() instead of just foo() and bar().
(The inspiration is the popular library Rxjs, which exports functions with very generic names like from and find, which when not namespaced can make code confusing.)
Simplest but worst solution
The library could have an index file that exports all the helper functions, which can then be imported with *, e.g.:
import * as utils from `utils/index.ts`;

utils.foo();
utils.bar();

However, without some very aggressive tree-shaking this would add all the helper functions into the project's Javascript bundle, which would be a lot of unnecessary bloat if the project only actually uses a few of the functions.
Mediocre solution
The project could have a file that is an interface between the project and the library, in which we import and export just the functions we want to use in the project:
// src/utils.ts

export { foo } from 'utils/foo.ts';
export { bar } from 'utils/bar.ts';

// src/app.ts

import * as utils from 'src/utils.ts';

utils.foo();
utils.bar();

However, this means someone has to maintain that interface, and if the project grows to encompass many modules with separate JS bundles, we could run into the same bloat problem as before.
Other mediocre solution
We could try to enforce a style rule that the function names have to be prefixed:
// src/app.ts

import { foo as utilsFoo } from 'utils/foo.ts';
import { bar as utilsBar } from 'utils/bar.ts';

...but that's annoying boilerplate to write, and is hard to enforce.
What we'd like
We'd like to (a) import just the modules we want, while (b) preserving namespacing.
We can declare additional global properties by adding them to the globalThis object like so:
declare global {
	interface HTMLElementEventMap {
		myCustomEvent: CustomEvent;
	}
}

It would be nice if there was a way to do something similar with other objects. To my mind it would look something like this:
// util/index.ts

export const utils = {};

// util/foo.ts

function foo() {};

utils.foo = foo;

declare module utils {
  export const foo = typeof foo;
}

// util/bar.ts

function bar() {};

utils.bar = bar;

declare module utils {
  export const bar = typeof bar;
}

// src/app.ts

import { utils } from 'util/index.ts';
import 'util/foo.ts'; // This causes `utils.foo` to be defined

utils.foo();
utils.bar(); // Error: undefined


[Performance] Modify FD flags as data become progressively cold

RocketMQ is designed to be write friendly, using commit log file sequence to store all topics served by the broker. This works well since the majority of the read are served with data from page-cache, thus random read is not involved.
Unfortunately, it is not always the case as more workloads are served. If a few subscribers read data that were kicked out of page-cache, severe read amplification and page-cache pollution are observed, bringing substantial impact to IO bandwidth, resulting in broker busy from time to time.
Page-cache pollution, at present, cannot be fixed unless we turn to Direct IO and manage cache manually, now that flag POSIX_FADV_NOREUSE of posix_madvise in Linux is no-op, which is not in sync with its doc.  Read amplification may be mitigated through posix_madvise, yet by way of JNI.
Along the way to identifying the performance issue, I found Lucene/elastic-search developers came across this issue years ago
https://github.com/elastic/elasticsearch/issues/27748
https://blog.mikemccandless.com/2010/06/lucene-and-fadvisemadvise.html

good idea.

amazing

Dismissed


Only set pivot point on gesture BEGAN, not every time on CHANGED

Context: http://codereview.cc/D1986#inline-7881

This is not possible. Because each GestureRecognizer has different slops, the moment BEGAN is called is different and thus the centroid at BEGAN is different for each GestureRecognizer.
Because each centroid is potentially different, one setPivot() in one BEGAN will be overwritten by the other setPivot() in another BEGAN. And this breaks the assumptions each GestureRecognizer makes.


[Site] Improve SEO meta

Add meta description & canonical on every page
Let's please Google / Pagespeed...
... to 100% and beyond 🚀

It's clean

Nice - thanks Simon!


refactor: migrate ref methods to command

Summary

migrate ref methods to command
add deprecated warning into getReactTag function
remove unused native methods (presentFullscreenPlayer, dismissFullscreenPlayer)
wrong type change (drm.getLicense)

as-is: () => void
to-be: () => string | Promise<string>

Motivation

we need to remove findNodeHandle (link)
Command doesn't allow return value or callback argument. however save and getCurrentPosition functions return a value. so we have to consider about whether to keep it or drop it.

Changes
Test plan

I will check if Interop Layer will work with those changes and I am fine to merge this (after @freeboub review)

@YangJonghun It also seems that we need to do some renaming as setVolume as Command collides with some other setVolume (probably from volume prop) - I suggest to rename setVolume Command to setVolumeCMD. It will be only internal change as we wrap commands in out component

I am also wandering if we should use TurboModuleRegistry.getEnforcing with old architecture "package" (Turbo modules has it own way to export modules in package - you can find it here). I have check it and we cannot move to it (new TurboModules package way) yet as we need to firstly move view to fabric.
All those changes that I am required from you are from my process of trying to build on New Arch - And I think that we cannot break support for Interop Layer as developers can depend on it. So for now it would be better to back to requireNativeComponent as with those changes I am not able to run app in new arch anymore.
WDYT @YangJonghun @freeboub ?

@KrzysztofMoch
Thanks for comment!
But AFAIK TurboModuleRegistry.getEnforcing works properly on interop layer probably because we didn't set congenConfig.
Also I confirmed that it runs on version 0.74 with new architecture.

Also I confirmed that it runs on version 0.74 with new architecture.

👀 In our example ? I have tried to run react-native-video (from this PR) but I wasn't able to do it in basic example nor "clean" RN app

Am I correct in asking for your suggestion like code below?

Yes this is what I meant

👀 In our example ? I have tried to run app with react-native-video (built from this PR) but I wasn't able to do it in basic example nor "clean" RN app (in both I used<EMAIL_ADDRESS>
No, I tested on my own bare react-native project (created via npx react-native init)
I tried with example! Thanks to let me know

No, I tested on my own bare react-native project (created via npx react-native init) I tried with example! Thanks to let me know

Strange I also tried to run it on new bare react-native project - it built but there was an error that VideoManager Module is missing "in TurboModule list" (as if it was not detected)

@KrzysztofMoch
I confirmed error you mentioned. Thanks
I'll be restore NativeModules

@KrzysztofMoch
If we need to support interop layer, I think we need to drop this PR.
New arch doesn't support partial migration.🥲
or create new stacked branch and merge it for prepare to support new arch.

This is something that also thought. I think it would be better to create new arch branch - then step by step migrate it
@freeboub WDYT?

This is something that also thought. I think it would be better to create new arch branch - then step by step migrate it @freeboub WDYT?

Yes It can make sense, but I am really afraid of divergencies... I don't think this PR is too much risky ... but it is still better  to merge steps by steps...

@freeboub @KrzysztofMoch
Moved some code fixes to PR #3980


How to define API for AgentOPS

I tried AGENTOPS_API_KEY, agentops, none worked.

Solved

How did you do that?


2023.3 Upgrade - Uncaught thread exception

After upgrading to 2023.3, I'm getting this error in my logs.  Reporting it here, but unclear if I need to do something on my end to fix.
This error originated from a custom integration.

Logger: root
Source: custom_components/webrtc/utils.py:235
Integration: WebRTC Camera (documentation, issues)
First occurred: March 1, 2023 at 18:20:53 (1 occurrences)
Last logged: March 1, 2023 at 18:20:53

Uncaught thread exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/config/custom_components/webrtc/utils.py", line 235, in run
    self.process = subprocess.Popen(
  File "/usr/local/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/lib/python3.10/subprocess.py", line 1847, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/config/go2rtc-1.2.0'

Try to delete file /config/go2rtc-1.2.0, so integration redownload it. Maybe there was some problem with internet.

Try to delete file /config/go2rtc-1.2.0, so integration redownload it. Maybe there was some problem with internet.

This issue only appeared after the upgrade, so I'll close this out.  Thanks for the response and guidance.


Dynamic Form - query items in a folder (managed metadata field)

[X] Enhancement
Version
[ 3.2.1 ]
Expected / Desired Behavior / Question
Component: Dynamic Form
When an item is in a folder, the CAML query does not return the result for the item if it has managed meta field (single)
In getSingleManagedMtadataLabel function, it looks like we might need the "RecursiveAll" in the ViewXml in the body of the api call to RenderListDataAsStream

Thank you @jumpei-yamauchi for reporting this one and proposing the solution!
The fix has been merged and will be included in the next release.
In a meanwhile you can test the functionality in beta version.


Renaming nodes broken on X11

Tested versions
Reproducible in 4.4 after #96829
System information
Godot v4.4.dev.mono (1d3e9b368) - Ubuntu 24.04.1 LTS 24.04 - Wayland - Vulkan (Forward+) - integrated AMD Radeon Graphics (RADV RENOIR) - AMD Ryzen 7 5800H with Radeon Graphics (16 Threads)
Issue description
Renaming nodes in the editor with F2 (or the context menu) does not work properly on X11 since #96829. It usually works once after the editor was started. After that when renaming, the text-field opens, text can be entered, but it cannot be confirmed until the text-field is clicked again.
Steps to reproduce
Open a project and try to rename any node with F2. This works the first time, but the second time, it needs to be refocused.
Minimal reproduction project (MRP)
N/A

I can confirm the issue on X11 / XWayland. I don't have the issue with the Wayland DisplayDriver or X11 in single-window mode.
CC @dsnopek
(For the record the "System information" in the OP state that you're using Wayland, but I guess this was copied over from another instance?)

I'm on a Wayland machine but use the XWayland version where the bug happens. I should have specified that more clearly.

I'm on a Wayland machine but use the XWayland version where the bug happens. I should have specified that more clearly.

Actually it's my bad, I thought the "Copy System Info" would mention what display driver is used by Godot, but it's indeed only reporting what is the session type at the OS level.
Mine is also:
Godot v4.4.dev (0a4aedb36) - Fedora Linux 40 (KDE Plasma) - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7600M XT (RADV NAVI33) - AMD Ryzen 7 7840HS w/ Radeon 780M Graphics (16 Threads)

I'll open a proposal about this because it's confusing and we always lack the proper info for Linux bug reports to know whether it's an X11 client on an X11 host or a X11 or Wayland client on a Wayland host.

Thanks!
I've finally managed to figure out why I haven't been able to reproduce some of these focus issues on my Ubuntu system, and I can now reproduce this one locally without having to test in a Fedora VM.
Anyway, I'm looking into it!


NUMBERING OF DOWNLOADED FILES

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.07.10. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x ] I've verified and I assure that I'm running youtube-dl 2018.07.10

Before submitting an issue make sure you have:

[ x] At least skimmed through the README, most notably the FAQ and BUGS sections
[ x] Searched the bugtracker for similar issues including closed ones
[x ] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[ ] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[x ] Feature request (request for a new functionality)
[ x] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2018.07.10
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Single video: https://www.youtube.com/watch?v=BaW_jenozKc
Single video: https://youtu.be/BaW_jenozKc
Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.

Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
using -o "%(playlist_index)s.%(title)s.%(ext)s"
If a youtube channel has less than 10 videos then this argument will number the videos downloaded starting with example1) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. but if the channel has more than 10 videos then the videos will be numbered example2) 01. 02. 03. 04. 05. 06. 07. 08. 09. 10.
for archival purposes if a channel that only has 8 videos has been downloaded they'll be numbered with example1, when that channel reaches 10 videos or more and the channel is downloaded again... the argument (-w, --no-overwrites) will be useless because youtube-dl will begin using example2 when numbering, so the first 1 through 9 videos will be re-downloaded, that making there be 2 copies of videos 1 through 9 with numbering of example1 and example2.

For archiving you must use --download-archive in the first place.
Also you can use any number of placeholder characters for integer since output template supports python string formatting.

Also you can use any number of placeholder characters for integer since output template supports python string formatting.

can you give me an example of


forward table to the model

I have alread known how to load pre-trained torch model and apply it using lutropy. It is able to forward a tensor to the model, but I'd like to forward a table with two tensors to the model.
As the model defined in torch with table as input, do forward in torch is
model:forward({x, y})
I wonder how to forward in the similiar way with lutropy.
Thanks in advance.

Hi, table can be constructed with lua.table(x, y), so for your case it would be:
model._forward(lua.table(x, y))

@oeway Many thanks for your suggestion, it works.


how to add file upload

its not working automatically

It should be. Please follow the setup and usage guide in the README thoroughly.
If it still does not work, please describe the exact problems in more detail – what is working and what isn’t. Apart from that, which Android version(s) have you tested this on?


global: repository syncing issues fix

Signed-off-by: Krzysztof Nowak<EMAIL_ADDRESS>

@krzysztof please remove the release commit.

Any particular reason to remove it? We are unfortunately in need of some rapid release cycles....

Which additional pre-release checks?

The release commit should be in a separate PR for many reasons in my eyes:

The bug fix or a feature request may fail and/or may need review amendments,  which is easier to do without release commits on top. (tactical reason)
The maintainer can take advantage of the release to add other minor things, or say update I18N translations if applicable. Basically, it's up to the maintainer to decide about best time to release. (strategical reason)
"Doing one thing at the time and doing it well."  Are we concentrating on making a nice bug fix or a nice feature implementation in the PR?  Or are we focusing on the release notes, the data migration procedures, the integration checks, etc? (focus reason)
A PR in separate branch would make it easier to rebase on top of any other changes that may come before release. Or imagine if the release fails because Travis tag pushing fails  for the maintainer (happened a few times). It's not about making release days later, it could be simply 30 minutes later, after I18N phrases come. (practical reason)
To make a release after every minor change asked by every service using the package would be definitely not a scalable model for the bright stable future. The lambda users would hate us because they cannot follow news stream, and PyPI.org sysadmins would hate us because we would be eating all their quotas. :)
(looking out for a stable future model; I know this case is different...)
Let's try to come with a scalable model, if a package is used by many services, because it wouldn't scale to make a new release after every commit. For example, one could imagine services relying on a pinned SHA1 from master branch, if they need to deploy quickly after a merge was done. These SHA1 never change, and the model would be more scalable with Ns services and Np patches?! (looking out for a stable future model again)

Disclaimer: I was trying to muse about a scalable release model vs a scalable deployment model for the stable times in a generic use case when a package is used by Nu services,  contributed to by Nc people, and maintained by Nm people. I know that in this case things are different, the package is still alpha, and still not used beyond Zenodo... but perhaps it's time to come with scalable practices to pave the way for brighter tomorrows? Let's muse IRL...

@tiborsimko I will merge once green, and we will come talk to you IRL.

@tsimko What abut automatic semantic versioning and releases on tags?
That would allow getting rid of all and any release prs (as any merged commit would be good and ready to be released) and will still allow the maintainer to decide what and when to release, in a very easy way, just by pushing a tag to the repo.
And also, as the semantic versioning scheme is kept, it allows any service manager to pin the version to the major number to avoid non-backwards compatible upgrades, having time to properly test upgrades in staging before deploying, and still getting bugfixes and compatible features.
This leaves open the ability to fast-track a change (as the release would be just pushing a tag) if needed, and a more continuous and stable flow of changes otherwise. And get rid of a bunch of manual work while addressing all the issues you raised.


distro: dts-scripts: fix check_for_dasharo_firmware

Related PR: https://github.com/Dasharo/dts-scripts/pull/58.

The build test will fail because https://github.com/Dasharo/dts-scripts/pull/58 is not merged, so the tests should be rerun after merging the related PR.
Manual tests:
Some of the credentials are empty:
*********************************************************
R to reboot  P to poweroff  S to enter shell
K to launch SSH server  L to enable sending DTS logs
V to enable verbose mode
Enter an option:
4

Enter logs key:
Logs key is empty, discarding credentials...
Press Enter to continue.

*********************************************************
R to reboot  P to poweroff  S to enter shell
K to launch SSH server  L to enable sending DTS logs
V to enable verbose mode
Enter an option:
4

Enter logs key:                xxx

Enter firmware download key:
Download key is empty, discarding credentials...
Press Enter to continue.

*********************************************************
R to reboot  P to poweroff  S to enter shell
K to launch SSH server  L to enable sending DTS logs
V to enable verbose mode
Enter an option:
4

Enter logs key:                xxx

Enter firmware download key:   xxx

Enter password:
Password is empty, discarding credentials...
Press Enter to continue.

Fake credentials:
*********************************************************
R to reboot  P to poweroff  S to enter shell
K to launch SSH server  L to enable sending DTS logs
V to enable verbose mode
Enter an option:
4

Enter logs key:                xxx

Enter firmware download key:   xxx

Enter password:                xxx
Dasharo DPP credentials have been saved
Checking for Dasharo firmware...
Waiting for network connection ...
Network connection have been established!
Checking if board is Dasharo compatible.
There is no Dasharo Firmware available for your platform.
Your credentials give access to:
Dasharo Pro Package (DPP): NO
DTS Extensions: NO
Press Enter to continue

True credentials:
*********************************************************
R to reboot  P to poweroff  S to enter shell
K to launch SSH server  L to enable sending DTS logs
V to enable verbose mode
Enter an option:
4

Enter logs key:                xxx

Enter firmware download key:   xxx

Enter password:                xxx
Dasharo DPP credentials have been saved
Checking for Dasharo firmware...
Waiting for network connection ...
Network connection have been established!
Checking if board is Dasharo compatible.
There is no Dasharo Firmware available for your platform.
Your credentials give access to:
Dasharo Pro Package (DPP): NO
DTS Extensions: YES
Checking for available DPP packages...
Installing available DPP packages...
Installing package txeconfigtool-git-r0.core2_64.rpm...
Downloading package txeconfigtool-git-r0.core2_64.rpm...
`premium/des-packages/some-package-git-r0.core2_64.rpm` -> `/var/dasharo-package-manager/some-package-git-r0.core2_64.rpm`
mc: <ERROR> Access Denied.
Press Enter to continue.

Do no mind mc: <ERROR> Access Denied. because these credentials were set only to view packages, not to download. But Dasharo Package Manager requires both.

Works, but there is problem that if you enter wrong credentials after you used correct ones then DTS extensions still uses correct ones while DPP tries to use new ones.

Works, but there is problem that if you enter wrong credentials after you used correct ones then DTS extensions still uses correct ones while DPP tries to use new ones.

This is not a scope of this PR, you should consider adding issue. Good note btw.


Clean-up of docstrings and log messages related to meta

Please confirm that this PR has done the following:

[ ] Tests Added
[ ] Documentation Added
[ ] Description in RELEASE_NOTES.md Added

Adding to RELEASE_NOTES.md (remove section after adding to RELEASE_NOTES.md)
Please add a single line in the release notes similar to the following:
- (#XX)[http://link-to-pr.com] Added feature which does something

Description of PR
This PR cleans up a few inconsistencies in the documentation of the meta indicators and changes the recommended arg of as_pandas() to with_meta (deprecating with_metadata).

@gidden, this PR refactors (among other clean-up operations) the arg of as_pandas() from with_metadata to with_meta for consistency - but looking at the function and its uses, I'm wondering if it wouldn't make more sense to change the behavior:

return data merged with all meta columns by default
return data merged with specific meta columns (by passing a list, used by the plotting functions)

If a user just wants data (current default), she/he can just use df.data.copy() directly, no need to use this wrapper... Any objections?

As there were no objections against the changed behavior of as_pandas() - I'm going to merge this PR tomorrow...


Cache Component Enhancement, shortcut to retrieve cache data

Suggestion to add shortcut function "retrieve" to "\yii\caching\Cache" Component as below:
/**
  * Retrieve data from cache or generate the content if cache not found or expired
  * a short cut for get and set the value from cache
  *
  * @param mixed $key a key identifying the value to be cached. This can be a simple string or
  * a complex data structure consisting of factors representing the key.
  * @param mixed $callback the callback function that return data to be cache
  * @param integer $duration the number of seconds in which the cached value will expire. 0 means never expire.
  * @param \yii\caching\Dependency $dependency dependency of the cached item. If the dependency changes,
  * the corresponding value in the cache will be invalidated when it is fetched via [[get()]].
  * This parameter is ignored if [[serializer]] is false.
  * @return mixed the data cached
  */
public function retrieve($key, $callback, $duration = 0, $dependency = null)
{
     if (($data = $this->get($key)) === false) {
         $data = call_user_func($callback);
         $this->set($key, $data, $duration, $dependency);
     }
     return $data;
}

So instead of every time when trying to retrieve data from cache e.g.
$key = 'data-cache-key';
$duration = 3600;
$dependency = null;//or some cache dependency

if (($data = Yii::$app->cache->get($key)) === false) {
    $data = [
        ['name'=>'RYU', 'Ranking': 9],
    ];//heavy computation db query or calculation to generate this data
    Yii::$app->cache->set($key, $data, $duration, $dependency);
}

//continue using $data to do something else

We could write the code as below:
$key = 'data-cache-key';
$duration = 3600;
$dependency = null;//or some cache dependency

$data = Yii::$app->cache->retrieve($key, function() {
    return [
        ['name'=>'RYU', 'Ranking': 9],
    ];//heavy computation db query or calculation to generate this data
}, $duration, $dependency);

//continue using $data to do something else

No way :laughing: I discussed this idea with @samdark in PM month ago and planned to implement it soon :)
Currently I have a project-scope implementation, that works for me (code) but it can not be accepted in core because it is not flexible enough. This thing is trickier than it appears.
The following use cases must be covered:

Static key, closure depends on some variables:

$cache->retrieve(['foobarcache', $images, $user_id], 3600, function () use ($images, $user_id) {
      return Foo::apiCall('getBar', [$images, $user_id]);
});

does this add any additional value except introducing a different way to do the same thing?

No.

why do we need it then?

To have a simple way to do this thing without copy-pasting with simple and clear API

without copy-pasting

what do you mean with that?

Take a look at the first post in this issue and compare 2nd and 3rd blocks of code.
I've posted example in the PR: https://github.com/yiisoft/yii2/pull/11173#issuecomment-200236312

case 1 (current way) is obvious about which code is executed in which case.
case 2 needs a lookup in the docs to understand it completely (assuming I see this code written by someone else)

I think the name doesn't make it clear as to what it does.
Maybe getWithSet?

This method offers very little enhancement while it is confusing and making the learning curve a little more tedious. I would not expect it to be maintained in the core framework.

I do not see good reasons to add this. thanks for the suggestion though.


Build binary with flambda on CI (try 2)

Last time, this failed due to additional complexity introduced by ocaml/setup-ocaml@v2. This complexity is supposed to make our lives better, but it doesn't: it even interferes with our cache, forcing you to use theirs. Except... their cache explicitly doesn't cache our dependencies, so it's still slow. Adding insult to injury, it's also installing more packages from apt, which can't be cached.
Since it's such a pain, we will just do what the v1 did with raw commands, except installing flambda.
Example run without cache: https://github.com/quantum5/magic-trace/runs/5750942329
Example run with cache: https://github.com/quantum5/magic-trace/runs/5751309514

For some reason the v1 of setup-ocaml installs those apt packages so I just copied them.


Configurable docs URL path

Would it be possible to make the docs path configurable via properties?
Example application.properties
springwolf.path=/my/docs/path

Do you mean the url path?

Yes, exactly (updated issue title). I'd like to serve the docs from a different path.

Do you need this feature to work with the UI?

No. I'd only like to configure the URL that produces the JSON output.

No problem, will be available in the next release :)

The documentation API endpoint url is now configurable from application.properties with the property springwolf.paths.docs. Please not that setting this property to any value other than the default will result in the UI not working.

@stavshamir Is it possible configure the UI path as well? I would like to serve both json and ui in custom paths. But even if it would default to the ui would be great

@stavshamir Is it possible to serve the UI in a costum path? Actually is there any way to serve both json and ui in custom paths, that would be really helpful


Check whether riboviz can be set up with Ubuntu LTS 20.04 & update install documentation

This is definitely a minor issue, and I'm going to throw it into backlog to start with because I don't think it's urgent at all, but probably is a "nice to have":  Since we're now into 2021, it might be worthwhile spending some time figuring out if we can get riboviz working on the latest Ubuntu LTS (long term support) release 20.04, and updating our install.md documentation?
Currently, as far as I know, we've only tried (or possibly only been able?) to get it working on the Ubuntu 18.04 LTS, and I think it would be good to confirm whether there are any reasons why we need to make it clear to users to avoid attempting to install on 20.04, or whether it's fine to run on and can be added to our "riboviz is tested on..." documentation.
I think @3mma-mack and @swinterbourne might have run into issues attempting to run on a VM of 20.04, but I'm not clear on what the exact issue was.  Can you both potentially add any details you've got notes on or can remember to this issue ticket?
I'm guessing a VM is the way to go with this, but installing a VM & running riboviz isn't something I've attempted yet.  Here again, @swinterbourne & @3mma-mack might be able to help, since this is something they've done very recently, and I'm pretty sure @mikej888 runs riboviz via VMs as well and could advise on this.
Currently I'm running on Ubuntu 18.04 LTS locally, so I'd be keen to update if we can prove it will be stable.

My Ubuntu VM is 18.04 LTS (though I did try CentOS 7 once) I can't foresee any reason why a later version of Ubuntu would cause any issues or why we should advise against it until we have some cold hard facts to back up that advisory! The only issues I've ever really had install-wise have been related to R and its dependencies which can be a nightmare!

My Ubuntu VM is 18.04 LTS (though I did try CentOS 7 once) I can't foresee any reason why a later version of Ubuntu would cause any issues or why we should advise against it until we have some cold hard facts to back up that advisory! The only issues I've ever really had install-wise have been related to R and its dependencies which can be a nightmare!

@mikej888 well now you mention it... we should probably upgrade to R 4.etc as well :D   Don't we want to tell our users that it works with "R version 4.0.3 (Bunny-Wunnies Freak Out)"? :rabbit2: :rabbit2: :grin:

@mikej888 well now you mention it... we should probably upgrade to R 4.etc as well :D   Don't we want to tell our users that it works with "R version 4.0.3 (Bunny-Wunnies Freak Out)"? :rabbit2: :rabbit2: :grin:

@FlicAnderson That's the best software version name I've seen in a while!

@FlicAnderson That's the best software version name I've seen in a while!

@FlicAnderson That's the best software version name I've seen in a while!

It is superb and I never want to upgrade!

@FlicAnderson That's the best software version name I've seen in a while!

It is superb and I never want to upgrade!

Error in installing on Ubuntu 20.04.1 (host on VirtualBox) and solutions
An error happened when running samtools --version on Ubuntu 20.04
error message:
samtools: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory

similar problem and reason reported at bioconda-recipes/issue/12958. In short, the conda's samtool (version 1.7) uses OpenSSL 1.0.0, which is not available in Ubuntu 20.04.
Some solutions:
uses the source from Ubuntu 1804 or earlier (This works)
from askubuntu.com
First edit the source list and add xenial security, then install libssl1.0.0

Edit the source list sudo nano /etc/apt/sources.list to add the following line: deb http://security.ubuntu.com/ubuntu xenial-security main
Then sudo apt update and sudo apt install libssl1.0.0.

Download the missing deb file and install (this works too)
also from askubuntu.com
If you don't want to modify apt source list, you can download and install the missing file only.
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.5_amd64.deb
sudo apt install ./libssl1.0.0_1.0.2n-1ubuntu5.5_amd64.deb

force re-install samtools v1.9 (not tested)
from merenlab/anvio/issues/1479
run conda install -c bioconda samtools=1.9 --force-reinstall to force update samtools.
However, this may broke the reliance between conda packages and may not work on riboviz

@cause's force re-install samtools v1.9 (not tested) was tried as part of #335 on a CentOS 7 (2009) VM and the fix worked without affecting the successful execution of the workflow.

I tried
$ conda install -y -c bioconda samtools=1.9

as part of building on Ubuntu 20.04 and samtools works:
$ samtools --version
samtools 1.9
Using htslib 1.9
Copyright (C) 2018 Genome Research Ltd.

As of commit 4eb8e8f, develop now has docs/user/deploy-ubuntu-vmware-windows.md updated for Ubuntu <IP_ADDRESS> also.

wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.5_amd64.deb
sudo apt install ./libssl1.0.0_1.0.2n-1ubuntu5.5_amd64.deb

I used libssl1.0.0_1.0.2n-1ubuntu5.12_amd64.deb the one quoted above I got a 404 error.


Refresh: Update Result<T, B> to be Result<(T,B), Error<B>

This PR is a update of #267, which seems to have gone stale, due to inactivity on in this repo.
Changes the return type to be a Result of tuples, instead of a tuple containing a result and a buffer. This allows this crate to work in a more ergenomic fashion with ? operator
In addition to updating the original PR, the following changes are made in this one, not in the original

BufError renamed Error. This follows the more usual convention of using crate prefixes to qualify error types, rather than the type name itself.
BufResult renamed Result. This is the same rational
map_buf helper function implrmented with a sealed trait, to give method calling convention, rather than qualified calls

closes #178

@ileixe would you care to review?
@Noah-Kennedy  / @carllerche / other maintainer? Any opinions?

@ileixe Does this address your comment?

@ollie-etl Exactly, thanks!

@ileixe That makes sense - done


Form helper path based on current module path rather than pwd

Description
Fixed issue #1875 which was introduced by new tests in PR #1852

as introduced, those new tests only worked if run from the root
of the parsl source tree.
Please include a summary of the change and (optionally) which issue is fixed. Please also include
relevant motivation and context.

Type of change

Bug fix (non-breaking change that fixes an issue)

This broke in CI in two of the three tests: one is reported in #1885, the other is a hang that I think is unrelated:
PYTHONPATH=. pytest parsl/tests/ -k "not cleannet" --config local --cov=parsl --cov-append --cov-report= --random-order
============================= test session starts ==============================
platform linux -- Python 3.6.7, pytest-4.6.11, py-1.7.0, pluggy-0.12.0
Using --random-order-bucket=module
Using --random-order-seed=558857
rootdir: /home/travis/build/Parsl/parsl/parsl/tests, inifile: pytest.ini
plugins: cov-2.10.1, typeguard-2.10.0, random-order-1.0.4, xdist-1.26.1, forked-1.3.0
collected 215 items / 7 deselected / 2 skipped / 206 selected
parsl/tests/test_docs/test_tutorial_1.py ss                              [  0%]
parsl/tests/test_docs/test_workflow4.py s                                [  1%]
parsl/tests/test_checkpointing/test_regression_233.py ...                [  2%]
parsl/tests/test_python_apps/test_configs.py s                           [  3%]
parsl/tests/test_bash_apps/test_multiline.py s                           [  3%]
parsl/tests/test_docs/test_workflow3.py s                                [  4%]
parsl/tests/test_regression/test_98.py .                                 [  4%]
parsl/tests/test_python_apps/test_garbage_collect.py s                   [  5%]
parsl/tests/test_thread_parallelism.py ss                                [  6%]
parsl/tests/test_staging/test_implicit_staging_https_in_task.py .        [  6%]
parsl/tests/test_python_apps/test_dep_standard_futures.py ss             [  7%]
parsl/tests/test_python_apps/test_memoize_5.py s                         [  8%]
parsl/tests/test_error_handling/test_python_walltime.py sss              [  9%]
parsl/tests/sites/test_dynamic_executor.py .                             [ 10%]
parsl/tests/test_regression/test_97.py s                                 [ 10%]
parsl/tests/test_docs/test_workflow2.py s                                [ 11%]
parsl/tests/test_checkpointing/test_python_checkpoint_1.py .             [ 11%]
parsl/tests/sites/test_worker_info.py .                                  [ 12%]
parsl/tests/test_checkpointing/test_regression_239.py ss                 [ 12%]
parsl/tests/test_summary.py .                                            [ 13%]
parsl/tests/test_regression/test_69a.py ss                               [ 14%]
parsl/tests/test_python_apps/test_depfail_propagation.py sss             [ 15%]
parsl/tests/test_regression/test_226.py sss                              [ 17%]
parsl/tests/test_python_apps/test_futures.py ssss                        [ 19%]
parsl/tests/test_python_apps/test_worker_fail.py s                       [ 19%]
parsl/tests/site_tests/test_site.py .                                    [ 20%]
parsl/tests/sites/test_launchers.py s                                    [ 20%]
parsl/tests/test_python_apps/test_memoize_3.py .                         [ 21%]
parsl/tests/test_flowcontrol/test_python_diamond.py s                    [ 21%]
parsl/tests/test_python_apps/test_overview.py ss                         [ 22%]
parsl/tests/test_threads/test_lazy_errors.py .                           [ 23%]
parsl/tests/test_flowcontrol/test_python.py s                            [ 23%]
parsl/tests/test_checkpointing/test_regression_232.py ss                 [ 24%]
parsl/tests/test_python_apps/test_memoize_2.py .                         [ 25%]
parsl/tests/test_python_apps/test_fibonacci_iterative.py s               [ 25%]
parsl/tests/test_callables.py sssssss                                    [ 28%]
parsl/tests/test_regression/test_221.py .                                [ 29%]
parsl/tests/test_checkpointing/test_python_checkpoint_2.py .             [ 29%]
parsl/tests/test_python_apps/test_fibonacci_recursive.py s               [ 30%]
parsl/tests/test_aalst_patterns.py ssssssssssssssssssssssssss            [ 42%]
parsl/tests/test_swift.py sss                                            [ 44%]
parsl/tests/test_bash_apps/test_keyword_overlaps.py ss                   [ 45%]
parsl/tests/test_error_handling/test_retries.py s.s                      [ 46%]
parsl/tests/test_bash_apps/test_apptimeout.py ss                         [ 47%]
parsl/tests/test_regression/test_1480.py
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received
The build has been terminated

I'll hit re-run on the assumption that these failures are unrelated to this PR; and continue to be as concerned for hanging as the general parsl dev team is.


The drupal.Dockerfile still using registry.gitlab.com/nikathone/drupal-docker-good-defaults/php-nginx:latest for php and nginx base image

Per @nikathone's comment here https://github.com/Islandora-Devops/isle-dc/pull/6
"The drupal.Dockerfile still using registry.gitlab.com/nikathone/drupal-docker-good-defaults/php-nginx:latest for php and nginx base image but this will change once we have a CI to build images/nginx-php/Dockerfile."
@nikathone Can we make an official Islandora version of this post-merge? We now have control over the Islandora Dockerhub account to be able to push images. We can also make a new repo accordingly if need be too. Your thoughts?

@dannylamb Have you made a new Github repo and Dockerhub image from this?

Yeah, I can update that.  I'm rocking the new repo now in my fork and everything works fine.


update "?" links to reference transit.land/documentation

resolves #319

@meghanhade I noticed a few links that can be updated. Please have a look and merge (or edit as you see fit) next week.

Good eye, thanks @drewda!

👍


Cannot set property 'webkitTransform' of undefined

I include file js in , then i call something like:
snabbt('#btnPostComment', 'attention', {
position: [50, 0, 0],
springConstant: 2.4,
springDeacceleration: 0.9,
});
and console error is:
Uncaught TypeError: Cannot set property 'webkitTransform' of undefined
Can you fix it ?
Thank you

The first parameter should be a reference to DOM-element, not a CSS-selector.
Try document.getElementById('btnPostComment') as first parameter.


Update for Tone Analyzer API v4

Tone Analyzer v4 is removing social and language tones.  Demo needs to be updated accordingly.
https://github.ibm.com/people-insights/tone-analyzer/issues/798

Implemented, approved and deployed.


Unable to send notifications

I am getting an error saying that the fields from_id,to_id,category_id are required using this code.
This used to work before, so I am not sure why it doesn't anymore after the new version. Has something changed?
Notifynder::loop($friends, function(NotifynderBuilder $theBuilder, $user) {
                $theBuilder
                    ->category('user.situation.updated')
                    ->to($user)
                    ->from($this->user)
                    ->url(url()->current())
                    ->extra(['username' => $this->user->user_name])
                    ->expire(Carbon::now()->addDay());
            })->sendWithPushNotification();

Hey,
first yes: there are some config updates but they shouldn't conflict with the sending.
First Tip: go back to Notifynder 3.1.6 this is the latest version before these updates.
Now to the solution, I will try to reproduce it and fix it after this. More details in slack.

Ok, cause you have an empty collection in the loop it throws an Exception in the send() method.
In PR #119 I've updated it to throw an InvalidArgumentException in the loop() method itself if it's empty.
Can you pls test it if this solves your problem (throws the right Exception) - composer version is dev-issue-118

ToDo:

split cases
precise Exception for not iterable
precise Exception for empty

PR #119 is merged - issue done & closed!?


Full Support of Braket Notation

Is your feature request related to a problem? Please describe.
Not a problem.
Describe the solution you'd like:
Is there any plan to provide full support of the brakes notation? Currently \Bra, \bra, \Ket, \ket, \braket are supported, but \Braket is not; this one handles expressions like <a|b|c> and can adjust its size to the contents.
Link to or name of a (La)TeX package that provides the same feature:
The Braket package

This seems like a reasonable request. I'll write a PR. Some time may go by before it gets reviewed.


adding \pandocbounded macro for pandoc 3.2.1

Thank you for this PR. I will be working on a release shortly.

Cool! Do you know roughly when the working version will bei available in pandoc/extra docker image?

@simondueckert This fix is included in version 2.5.0.

Hey @Wandmalfarbe  - I am still seeing Undefined control sequence. \pandocbounded in the latest version of the docker image. Is there any chance this fix can be pushed into the docker image? I think that's what @simondueckert was asking about as well.


[chore] refactor AMP validation

Make the AMP validation happen in a handle hook. This should fix https://github.com/sveltejs/kit/issues/3330 (it won't allow disabling it, but it will make it so that it's correct) and be a step towards https://github.com/sveltejs/kit/issues/2603. It wouldn't be hard to move this to an external package for users to call. However, the actual AMP HTML generation is pretty tied into SvelteKit and I'm not sure how we'd change that

We do have amp tests already in packages/kit/test/apps/amp that test that the validator works correctly. This is just moving code rather than adding anything new, so I don't necessarily think we need new tests


[#89] Initial approach to the integration tests

Using docker-compose in the pre-integration-test phase. In that phase it's also booting the app from the jar (we're checking that it's package properly).
Then in the integration-test phase it's executing 2 tests.
Finally in the post-integration-test phase (that's always executed regardless of the integration-test phase status) it's killing docker containers, and killing the started apps. Also it's printing 500 lines of logs from the started app (for debugging).

CC @dsyer , @spencergibb , @adriancole

summary of thoughts offline. would be great if the lifecycle of the components could be managed by junit somehow. they'd be easier to run I think


Quick addition to block call

Added the smiley face to the [mySprite] say [":)"] to make it more obvious which block to grab.

Squashing myself since it's just two characters in the md

Squashing myself since it's just two characters in the md


feat: enhance clean cmd capability

Signed-off-by: Batuhan Apaydın<EMAIL_ADDRESS>
Summary

To let people specify which tag type they want to delete from an image, .sig or .att or both.
Ticket Link

Fixes #1425
Release Note

feat: enhance clean cmd capability

Looks like we currently get an error if one of the types is not present:

We should probably allow that and continue.


Triggering Mythos for outdoor tile investigators only

Not sure if this is the right place to ask
How do i make mythos only effect investigators on outside tiles
I set MythosOutdoors==1 but my mythos events are still generalized
Do i have to manually say this will only affect investigators outside?
I feel like ive tried everything
Cheers

Imagine mythos events as a category of similar events, a bucket of events that can be randomly selected from if set to active (=1).
Each category can be turned on and off using the "Assign" function and setting them to =1.
Mythos events are binary,
0 = off
1 = on
When a mythos group is turned on, it gets added to the pool of available events and one is randomly selected at the end of each turn.
If no mythos events are set to 1, you get no mythos events at the end of your turn, as there are no events to randomly selected from active.
So if you want to guarentee an outdoor event to run, then you need to set all other mythos events to off (assign = 0) and then turn the $MythosOutdoors on (= 1).
Example:
$MythosMinor =1
$MythosOutdoors = 1
$MythosLibrary = 1
Each mythos phase the app randomly picks a category from the 3 above, then randomly picks an event to run.
Next mythos turn we open the kitchen and want to force a kitchen event. So as part of the "Open kitchen" event we can assign all of the above events to off (0) and turn on the kitchen mythos:
$MythosMinor =0
$MythosOutdoors = 0
$MythosLibrary = 0
$MythisKitchen = 1
The next myhow event will be one for the kitchen (randomly selected from that catagroy).
The tricky part is to capture the mythos events current state and set them back to what they were. There are ways to do this (i.e write the status of a mythos event to a quest variable before setting it to 0, then use that variable to write back the status to the mythos variable when you want to set them back).

I have read through this and have a much clearer understanding now. The bucket analogy was helpful.
I have tried just enabling $MythosOutdoors = 1
I checked the log and everything else is set to 0 except mythos outdoors
When i end the investigator step no Mythos step activates?
I have attached a screenshot below of what I have done

Thats odd, if you make that only set $MythosMinor = 1, what happens when you end the turn?

You still have to have a danger level active, and unfortunately that means that you still have the potential of drawing one of the random general events. When using a location based Mythos you're still required to have one of the 5 basic groups activated so that it knows which difficult to use. Mythos Tutorial covers how some of this works. @scrubbless is right about how to get them to run as a custom mythos event that activate at the end of a round. I think this might be the only way to get a guaranteed Outdoor to happen when you want it to.

@scrubbless When I set it to MythosMinor = 1 then a mythos minor event happens.
@LordPyrex  I will have to try a custom event and see if this can force an outdoor only event. Having both MythosMinor =1 and MythosOutdoor =1  gives me a chance to have either event and I'm really trying to force an outdoor only
Thank you for your help guys :-)

Have you considered writing your own mythos event? Even if you copy the text, you can then set the parameters exactly as you wish

As @scrubbless suggested, this approach also allows more thematic mythos events. The default ones are very uspecific and lore unfriendly IMO.


Structs optimization

hi,
i was looking at the repository code, and found some code can have some improvements, mainly in the part of the updating of liquid and vapor mole fractions.

Codecov Report

Merging #7 (98c82ac) into main (74fe6b4) will decrease coverage by 1.67%.
The diff coverage is 77.27%.

@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
- Coverage   62.19%   60.51%   -1.68%
==========================================
  Files          10       10
  Lines         939      889      -50
==========================================
- Hits          584      538      -46
+ Misses        355      351       -4

Impacted Files
Coverage Δ

src/eos.jl
92.61% <ø> (-0.69%)
:arrow_down:

src/flash.jl
94.37% <77.27%> (-0.68%)
:arrow_down:

src/kvalues.jl
73.33% <0.00%> (-4.45%)
:arrow_down:

src/mixtures.jl
71.42% <0.00%> (-1.91%)
:arrow_down:

src/stability.jl
91.07% <0.00%> (-0.46%)
:arrow_down:

src/derivatives.jl
94.59% <0.00%> (-0.41%)
:arrow_down:

src/rachford_rice.jl
65.71% <0.00%> (-0.08%)
:arrow_down:

src/utils.jl
0.00% <0.00%> (ø)

src/flow_coupler.jl
0.00% <0.00%> (ø)

... and 1 more

Continue to review full report at Codecov.

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

Thank you - much appreciated!


Fix docs styles

This PR reverts https://github.com/fastlane/fastlane/pull/9894 which broke the formatting of our actions docs.

@orta breaking all the things

Aww :D

This was the result of the change 😕 . I just removed the divs to revert the fix. Would obviously be happy to review another version of the PR @orta 😄 !  I tested this locally by just creating a lane in the fastlane/Fastfile that looked like
lane :test_docs do
  generate_markdown_docs
end
``

Running that will update the `fastlane/fastlane/docs/actions.md` file and if you open that up in a markdown editor, you can see how the styles are off a bit.

![screen shot 2017-08-01 at 1 22 08 pm](https://user-images.githubusercontent.com/2587018/28838283-ea2f9f92-76bd-11e7-841b-913252a2c628.png)


bugfix: '+' is more prior than 'or'

Means when call set function not set expire param, will cause int + None error

Thanks!


Bug in idempotence time reporting

Hi,
I noticed that my runs are showing:
INFO[0166] Idempotence was checked in 433ns

Looks like there's a bug at https://github.com/fubarhouse/ansible-role-tester/blob/master/util/idempotence.go#L62 - this will print the time delta of those two statements, rather than the delta to the start time of the idempotence run.
This is due to my mistake in #41. I'll send a fix soon.

Sent a fix in #56 . It's interesting to note that the reports in #2 were showing the correct time.

Cool.
Yeah, I was aware of it though I hadn't submitted an issue.
There's opportunity here to expand on the reporting mechanism to the run, install and kill commands to add to the report - and allow the tool to use the values directly instead of generating new ones.
I'll get this merged shortly - that can always be explored later.


Sorting by Topcoder handle is not working correctly.

Description:
Sorting by Topcoder handle is not working correctly.

@sandhiyakavi please check - we have fixed and re-indexed

Verified on Dev Env. Sorting correctly now

Closing as it was only on DEV.


chore: release 1.4.2

:robot: I have created a release *beep* *boop*
1.4.2 (2019-05-17)

Release is at https://github.com/googleapis/release-please/releases/tag/v1.4.2

The release build has started, the log can be viewed here. :sunflower:

:egg: You hatched a release! The release build finished successfully! :purple_heart:


[Bug]: when i use spu, it errors as follows "keyboardInterrrupt", but i did not use ctrl+c to end it

Issue Type
Others
Modules Involved
Others
Have you reproduced the bug with SPU HEAD?
Yes
Have you searched existing issues?
Yes
SPU Version
spu0.9.1b0
OS Platform and Distribution
linux18.04
Python Version
3.10.14
Compiler Version
GCC11.2.1
Current Behavior?
OpenBLAS blas_thread_init: pthread_create failed for thread 5 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
OpenBLAS blas_thread_init: pthread_create failed for thread 6 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
OpenBLAS blas_thread_init: pthread_create failed for thread 7 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
OpenBLAS blas_thread_init: pthread_create failed for thread 8 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
OpenBLAS blas_thread_init: pthread_create failed for thread 9 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
OpenBLAS blas_thread_init: pthread_create failed for thread 10 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
OpenBLAS blas_thread_init: pthread_create failed for thread 11 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
OpenBLAS blas_thread_init: pthread_create failed for thread 12 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
OpenBLAS blas_thread_init: pthread_create failed for thread 13 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
OpenBLAS blas_thread_init: pthread_create failed for thread 14 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
OpenBLAS blas_thread_init: pthread_create failed for thread 15 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
OpenBLAS blas_thread_init: pthread_create failed for thread 16 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
OpenBLAS blas_thread_init: pthread_create failed for thread 17 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: pthread_create failed for thread 61 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
OpenBLAS blas_thread_init: pthread_create failed for thread 62 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
OpenBLAS blas_thread_init: pthread_create failed for thread 63 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 2061029 current, 2061029 max
Traceback (most recent call last):
File "/z.py", line 2, in
from transformers import AutoTokenizer, FlaxGPT2LMHeadModel, GPT2Config
File "sfnew/lib/python3.10/site-packages/transformers/init.py", line 26, in
from . import dependency_versions_check
File "sfnew/lib/python3.10/site-packages/transformers/dependency_versions_check.py", line 16, in
from .utils.versions import require_version, require_version_core
File "sfnew/lib/python3.10/site-packages/transformers/utils/init.py", line 34, in
from .generic import (
File "sfnew/lib/python3.10/site-packages/transformers/utils/generic.py", line 29, in
import numpy as np
File "sfnew/lib/python3.10/site-packages/numpy/init.py", line 141, in
from . import core
File "sfnew/lib/python3.10/site-packages/numpy/core/init.py", line 23, in
from . import multiarray
File "sfnew/lib/python3.10/site-packages/numpy/core/multiarray.py", line 10, in
from . import overrides
File "sfnew/lib/python3.10/site-packages/numpy/core/overrides.py", line 6, in
from numpy.core._multiarray_umath import (
KeyboardInterrupt
Standalone code to reproduce the issue
print("A bug")

Relevant log output
No response

能复现吗，问题背景辛苦描述下

能复现吗，问题背景辛苦描述下
Thanks very much, when i use the following code, it errors above. But i can use it yesterday

import sys
from transformers import AutoTokenizer, FlaxGPT2LMHeadModel, GPT2Config
def text_generation(input_ids, params):
config = GPT2Config()
model = FlaxGPT2LMHeadModel(config=config)
for _ in range(10):
    outputs = model(input_ids=input_ids, params=params)
    next_token_logits = outputs[0][0, -1, :]
    next_token = jnp.argmax(next_token_logits)
    input_ids = jnp.concatenate([input_ids, jnp.array([[next_token]])], axis=1)
return input_ids

import secretflow as sf
In case you have a running secretflow runtime already.
sf.shutdown()
sf.init(['alice', 'bob', 'carol'], address='local')
alice, bob = sf.PYU('alice'), sf.PYU('bob')
conf = sf.utils.testing.cluster_def(['alice', 'bob', 'carol'])
conf['runtime_config']['fxp_exp_mode'] = 1
conf['runtime_config']['experimental_disable_mmul_split'] = True
spu = sf.SPU(conf)
def get_model_params():
pretrained_model = FlaxGPT2LMHeadModel.from_pretrained("gpt2")
return pretrained_model.params
def get_token_ids():
tokenizer = AutoTokenizer.from_pretrained("gpt2")
return tokenizer.encode('I enjoy walking with my cute dog', return_tensors='jax')
model_params = alice(get_model_params)()
input_token_ids = bob(get_token_ids)()
device = spu
model_params_, input_token_ids_ = model_params.to(device), input_token_ids.to(device)
output_token_ids = spu(text_generation)(input_token_ids_, model_params_)
outputs_ids = sf.reveal(output_token_ids)
print('-' * 65 + '\nRun on SPU:\n' + '-' * 65)
print(tokenizer.decode(outputs_ids[0], skip_special_tokens=True))
print('-' * 65)

when i use the following code, it errors above. But i can use it yesterday
import sys
from transformers import AutoTokenizer, FlaxGPT2LMHeadModel, GPT2Config
def text_generation(input_ids, params):
config = GPT2Config()
model = FlaxGPT2LMHeadModel(config=config)
for _ in range(10):
    outputs = model(input_ids=input_ids, params=params)
    next_token_logits = outputs[0][0, -1, :]
    next_token = jnp.argmax(next_token_logits)
    input_ids = jnp.concatenate([input_ids, jnp.array([[next_token]])], axis=1)
return input_ids

import secretflow as sf
In case you have a running secretflow runtime already.
sf.shutdown()
sf.init(['alice', 'bob', 'carol'], address='local')
alice, bob = sf.PYU('alice'), sf.PYU('bob')
conf = sf.utils.testing.cluster_def(['alice', 'bob', 'carol'])
conf['runtime_config']['fxp_exp_mode'] = 1
conf['runtime_config']['experimental_disable_mmul_split'] = True
spu = sf.SPU(conf)
def get_model_params():
pretrained_model = FlaxGPT2LMHeadModel.from_pretrained("gpt2")
return pretrained_model.params
def get_token_ids():
tokenizer = AutoTokenizer.from_pretrained("gpt2")
return tokenizer.encode('I enjoy walking with my cute dog', return_tensors='jax')
model_params = alice(get_model_params)()
input_token_ids = bob(get_token_ids)()
device = spu
model_params_, input_token_ids_ = model_params.to(device), input_token_ids.to(device)
output_token_ids = spu(text_generation)(input_token_ids_, model_params_)
outputs_ids = sf.reveal(output_token_ids)
print('-' * 65 + '\nRun on SPU:\n' + '-' * 65)
print(tokenizer.decode(outputs_ids[0], skip_special_tokens=True))
print('-' * 65)

Hi @zhangwaer
RLIMIT_NPROC 2061029 current, 2061029 max seems like you reached nproc limit

Hi @zhangwaer
RLIMIT_NPROC 2061029 current, 2061029 max seems like you reached nproc limit

Thanks very much, the error may caused by my comupter, because it report error as follows when i use " nvidia-smi"：nvidia-smi
-bash: fork: retry: 资源暂时不可用
-bash: fork: retry: 资源暂时不可用
-bash: fork: retry: 资源暂时不可用

Hi @zhangwaer
RLIMIT_NPROC 2061029 current, 2061029 max seems like you reached nproc limit

Thanks very much, the error may caused by my comupter, because it report error as follows when i use " nvidia-smi"：nvidia-smi -bash: fork: retry: resource unavailable temporarily -bash: fork: retry: resource unavailable temporarily -bash: fork: retry: resource unavailable temporarily

yup, either a reboot or increase limit should resolve this

Hi @zhangwaer
RLIMIT_NPROC 2061029 current, 2061029 max seems like you reached nproc limit

Thanks very much, the error may caused by my comupter, because it report error as follows when i use " nvidia-smi"：nvidia-smi -bash: fork: retry: resource unavailable temporarily -bash: fork: retry: resource unavailable temporarily -bash: fork: retry: resource unavailable temporarily

thanks very much!!!


Take out locks when updating tracks in the rules engine

potential race condition bug

super minor race condition potential (we don't have automated mutations, only reads). solve when it matters


No module named 'library' (colab pro)

Getting this error when running start stable diffusion cell
Error loading script: presets.py
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 263, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/kohya-sd-scripts-webui/scripts/presets.py", line 6, in
from kohya_ss.library import train_util, config_util
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/kohya-sd-scripts-webui/kohya_ss/library/train_util.py", line 61, in
from library.lpw_stable_diffusion import StableDiffusionLongPromptWeightingPipeline
ModuleNotFoundError: No module named 'library'
ControlNet v1.1.196
ControlNet v1.1.196
Calculating sha256 for /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/model.ckpt: Create LRU cache (max_size=16) for preprocessor results.
Create LRU cache (max_size=16) for preprocessor results.
Failed to load scripts.tabs.preparation.clean_captions_and_tags
No module named 'library'
Failed to load scripts.tabs.preparation.make_captions
No module named 'library'
Failed to load scripts.tabs.preparation.make_captions_by_git
No module named 'library'
Failed to load scripts.tabs.preparation.merge_captions
No module named 'library'
Failed to load scripts.tabs.preparation.merge_tags
No module named 'library'
Failed to load scripts.tabs.preparation.prepare_latents
No module named 'library'
Failed to load scripts.tabs.preparation.tag_images_by_wd14tagger
No module named 'library'
Failed to load scripts.tabs.tools.convert_diffusers
No module named 'library'
Failed to load scripts.tabs.tools.detect_face_rotate
No module named 'library'
Failed to load scripts.tabs.tools.resize_images_to_resolution
No module named 'library'
Failed to load scripts.tabs.training.fine_tune
No module named 'library'
Failed to load scripts.tabs.training.train_db
No module named 'library'
Failed to load scripts.tabs.training.train_network
No module named 'library'
Failed to load scripts.tabs.training.train_textual_inversion
No module named 'library'

that's an issue with the extension, library is a folder inside the extension's main folder

@TheLastBen Thanks for the quick reply. I also get this error when training textual inversion and the training stops after generating the first preview
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 612, in train_embedding
captioned_image = caption_image_overlay(image, title, footer_left, footer_mid, footer_right)
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/textual_inversion/image_embedding.py", line 150, in caption_image_overlay
font = ImageFont.truetype(textfont, fontsize)
File "/usr/local/lib/python3.10/dist-packages/PIL/ImageFont.py", line 855, in truetype
return freetype(font)
File "/usr/local/lib/python3.10/dist-packages/PIL/ImageFont.py", line 852, in freetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/usr/local/lib/python3.10/dist-packages/PIL/ImageFont.py", line 215, in init
load_from_bytes(font)
File "/usr/local/lib/python3.10/dist-packages/PIL/ImageFont.py", line 195, in load_from_bytes
self.font_bytes = f.read()
AttributeError: 'FreeTypeFont' object has no attribute 'read'

probably the pillow library version, I'll see what I can do


Dockerfile: run git gc on push to master or release publish

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew style with your changes locally?
[ ] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

This should help limit the size of our Docker image, which will make
docker pull a bit less unpleasant.

Does that make any significant difference in size? Would love to see some comparison.

There's an old PR that wasn't merged that makes this comparison. IIRC it's significant. I'll look for it in a bit.

https://github.com/Homebrew/brew/pull/13278

Is there a size difference between this PR's git gc and the other's git gc --aggressive? --aggressive is the slow one.

Will get back to this soon.


Update Windows-2016-Accurate-Time.md

Minor typo corrections

@MikeBazMSFT,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot