Installing a native iOS Flipper plugin is trickier starting with 0.68.0

Description
Hi, following up on a Twitter discussion, I'm opening this here.
But this is not exactly a bug, it's more like a Dev experience issue: something that used to be easy and isn't anymore.
Apologies if I shouldn't have opened an issue here! 😥
Before v0.68.0
Adding a native iOS Flipper plugin used to be quite easy, a simple matter of adding 2 lines in AppDelegate.m.
For example for https://github.com/bamlab/react-native-performance, we add 2 lines:
#ifdef FB_SONARKIT_ENABLED
...
// Add this line
#import <FlipperPerformancePlugin.h>

static void InitializeFlipper(UIApplication *application) {
  ...
  // Add this line
  [client addPlugin:[FlipperPerformancePlugin new]];

  [client start];
}
#endif

After 0.68.0
After this commit https://github.com/facebook/react-native/commit/73a04d145251ad2aad8afb587d3fd0c746c9f00f#diff-68bc28be95c8d0faa843c16d1c24d21731a744801e1ab5c55ce7342a399c1f54R13 refactoring a lot of the Flipper boilerplate out of the AppDelegate, it becomes a bit trickier:
Basically it seems to me we now have to do something like this:
https://github.com/bamlab/react-native-performance/commit/dbfc5b0d3bcb07ef3420ec8466231844e9a83f5f#diff-8cbfe8e3302494c09b6d055cfcf7ebd417ba43ffc8ebf6e4a00197dbd09895cbR28, putting back the InitializeFlipper function, to ensure we respect the FB_SONARKIT_ENABLED flag.
This is also inconsistent with Android, where it is still quite easy to add a plugin: https://github.com/bamlab/react-native-performance/pull/55/commits/dbfc5b0d3bcb07ef3420ec8466231844e9a83f5f#diff-1d79c2256ea334f818216fdbc4a091ddf26a03a5b4ddec457ffcd534def4ce78R39
It's not so difficult, that is true, and I'm sure we can easily live with that, especially since this change seems to be paving the way for neat rearchitecture changes!
I'm just wondering if we can still keep the simplified version, I'd be happy to raise a PR on the template to make it similar to Android -> adding a ReactNativeFlipper.mm file containing only the Flipper setup.
Version
0.68.0
Output of npx react-native info
info Fetching system and libraries information...
System:
    OS: macOS 12.2
    CPU: (8) x64 Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz
    Memory: 8.63 GB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.2 - /var/folders/x6/jf0q0xr52rzckkbbb3q12xm40000gp/T/fnm_multishells/13745_1655043412092/bin/node
    Yarn: 1.22.18 - ~/.yarn/bin/yarn
    npm: 8.1.2 - /var/folders/x6/jf0q0xr52rzckkbbb3q12xm40000gp/T/fnm_multishells/13745_1655043412092/bin/npm
    Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /Users/almouro/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0
    Android SDK:
      API Levels: 23, 25, 27, 28, 29, 30, 31
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.0, 30.0.2, 30.0.3, 31.0.0, 33.0.0
      System Images: android-30 | Android TV Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom_64, android-30 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 2021.1 AI-211.7628.21.2111.8193401
    Xcode: 13.0/13A233 - /usr/bin/xcodebuild
  Languages:
    Java: 14.0.1 - /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.68.2 => 0.68.2
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

Initialize a new react-native project with npx react-native init
Try to install a native iOS Flipper plugin such as https://github.com/bamlab/react-native-performance

Snack, code example, screenshot, or link to a repository
Reproduction:
To install the plugin you now need to do something like this: https://github.com/bamlab/react-native-performance/pull/55/commits/dbfc5b0d3bcb07ef3420ec8466231844e9a83f5f#diff-8cbfe8e3302494c09b6d055cfcf7ebd417ba43ffc8ebf6e4a00197dbd09895cbR28

I'm just curious, why can't we do something like this before this line:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

FlipperClient *client = [FlipperClient sharedClient];
[client addPlugin:[FlipperPerformancePlugin new]];

[RCTAppSetupUtils prepareApp: application];

...
}

Adding the plugins before the prepareApp method runs should do the trick. That's what I was also suggesting on twitter. I think I've tried this before and it worked.


Events Page

Added Specific Event Pages

Merged, good work @bphoebew :rocket:
Follow up: do the backend to fill in the details and complete registration of user.


Develop

Codecov Report
Patch and project coverage have no change.

Comparison is base (fa344ab) 94.19% compared to head (7618078) 94.19%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #159   +/-   ##
=======================================
  Coverage   94.19%   94.19%
=======================================
  Files           4        4
  Lines         603      603
=======================================
  Hits          568      568
  Misses         35       35

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


add ServerBuilder.grpcServiceUnder()

One issue found in GrpcServiceBuilder.
in the comment of build() method, using serviceUnder() to bind grpc services to a prefix is recommended.
    /**
     * Constructs a new {@link GrpcService} that can be bound to
     * {@link com.linecorp.armeria.server.ServerBuilder}. As GRPC services themselves are mounted at a path that
     * corresponds to their protobuf package, you will almost always want to bind to a prefix, e.g. by using
     * {@link com.linecorp.armeria.server.ServerBuilder#serviceUnder(String, Service)}.
     */

While, when tried to using serviceUnder(), there happened "UNIMPLEMENTED, Method not found" exception.
After checking the related code, following approach seems to be the simplest solution.
    /**
     * Binds the specified {@link Service} under the specified directory.
     */
    public B serviceUnder(String pathPrefix, Service<HttpRequest, HttpResponse> service) {
        service(PathMapping.ofPrefix(pathPrefix, !(service instanceof GrpcService)), service);
        return self();
    }

But, this approach lead to circular dependency between core and grpc module. So added grpcServiceUnder() instead. Please help to reviw and share your opinions, thank you.

I've used serviceUnder without problem with armeria 0.51. Is this a different use case, or perhaps your version is outdated?
https://github.com/curioswitch/curiostack/blob/master/common/server/framework/src/main/java/org/curioswitch/common/server/framework/ServerModule.java#L340

Oh, will try to upgrade from 0.5 to 0.51, if 0.51 works fine, then will close this PR.

@anuraaga
Somehow, with 0.51.0, server shut down right after start up.
Then, tried with 0.52.0, got the same error.
Init sb like:
String servePathPrefix =     '/' + MyServiceGrpc.SERVICE_NAME; // "/my.package.name.MyServiceGrpc"
sb.serviceUnder(
   servePathPrefix,
    new GrpcServiceBuilder()
           .addService(new MyService())
            .supportedSerializationFormats(GrpcSerializationFormats.values())
             .build())

Then when serve one request with path /my.package.name.MyService/MyMethod, PathMappingResult of the ctx strip the prefix, then ctx.mappedPath() returns MyMethod, so method name becomes MyMethod when doing GrpcRequestUtil.determineMethod(ctx), leading
registry.lookupMethod(method) returns null because registry.methods using the full method(/my.package.name.MyService/MyMethod) as key in the map. So I think set stripPrefix as false could solve the problem.
getGrpcPath() in curiostack using default value "/api"(nothing related to grpc package and service name), this will not cause the stripPrefix issue, while how will you sending a grpc req to host:port/api? Cause grpc client(at lease object-c client) can only config host and port.

Ah the example makes it clear. In that case, user's could just use .service(PathMapping.ofPrefix(..., false), service) manually - I don't think this is worth adding an API to the builder, especially one named grpcFoo.
ServiceWithPathMapping as discussed elsewhere could also take care of this for users.
As an aside, mounting on /api works with grpc-web and armeria-grpc client, but indeed for other clients it needs to be mounted at /.

Oh~ You are right, .service(PathMapping.ofPrefix(..., false), service) is very handy. Thanks for sharing.
Close this PR because problem solved.
BTW, if I want to add some examples for general usage of armeria-grpc server, where should I check? Any doc contribution guide available?

@demongaorui

BTW, if I want to add some examples for general usage of armeria-grpc server, where should I check? Any doc contribution guide available?

For now, all the content in our web site is generated by Sphinx. You will find the .rst files under the site/ directory in this repository. ./gradlew site will generate a site into site/build/site/ so you can browse it from your browser. You could update the server-grpc.rst file to add more usages and tips. If you send a PR that improves our documentation, that would be very awesome! :-D


Update ARM Template

Fixed a couple of syntax issues with ARM template that was preventing it from being deployed as is.

@TheGitHubBro : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Dummy PR to test review requests

Please any review requests from this PR

@damithc fwiw I did get the following email:

@damithc requested your review on: se-edu/addressbook-level4#211 Dummy PR to test review requests.

Thanks for the info @pyokagan
The problem I'm facing is sometimes I cannot seem to be able to request reviews.
The last time I tried to add a reviewer to this dummy PR, it worked. I removed the request soon after, but I guess the alert was already sent out by that time. The problem seems to be an intermittent one, so I will be adding/removing review requests to this PR at different times. If you receive more review requests from this PR, you can safely ignore them.


a formula in paper

The two terms on the right-hand side of the formula are the same. How should this be understood?Is this an input error?

Hi, this formula has been fixed in the latest version:

The two terms ensure that exchanging node i and node j won't change the predicted distance between them.


Add checkmark for profiles reported today

Add green tick when user has reported for today on the Select Profile Screen.

PR here: https://github.com/zoe/covid-tracker-react-native/pull/284


Support automatic premainnet configuration

Adds the ability to run setup_environment for premainnet.

How are you testing these changes? Have you tried deploying?


Can't connect to server

Hi,
I am trying to run the example on the ReadMe. After updating the yaml to my image file, and sending a request from the client, I got the following error
 $ python resnet_client.py --server localhost --port 9000 cat_sample.jpg Traceback (most recent call last):   File "resnet_client.py", line 155, in <module>     main()   File "resnet_client.py", line 94, in main     args.server, args.port, args.model, jpeg_batch)   File "resnet_client.py", line 149, in predict_and_profile     result = stub.Predict(request, 60.0)  # 60 second timeout   File "/Users/kahmun/tf-serving-k8s-tutorial/client/client/lib/python2.7/site-packages/grpc/beta/_client_adaptations.py", line 310, in __call__     self._request_serializer, self._response_deserializer)   File "/Users/kahmun/tf-serving-k8s-tutorial/client/client/lib/python2.7/site-packages/grpc/beta/_client_adaptations.py", line 196, in _blocking_unary_unary     raise _abortion_error(rpc_error_call) grpc.framework.interfaces.face.face.AbortionError: AbortionError(code=StatusCode.UNAVAILABLE, details="Connect Failed")
The external-IP for the LoadBalancer is
$ kubectl get svc NAME             TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE kubernetes       ClusterIP      <IP_ADDRESS>       <none>        443/TCP          1h resnet-service   LoadBalancer   <IP_ADDRESS>   <pending>     9000:31072/TCP   1h
I read that when running in minikube, i should use NodePort instead, but switching to NodePort returns the same error. Is there anything that I am still doing wrong?
Also I was using the Dockerfile which was deleted in a previous commit, I don't think that is the issue could it?

Hi Kah,
We will have a new tutorial out by early next week. I will be working on
the github documentation for a couple of days afterwards, so I will let you
know once the project is fully up to date.
I may have some time later next week to look into the minikube issue. May I
ask what your computer's native OS is? I've only tested this on my macbook
which might have had some local configurations that I forgot to log.
Best,
Brian
On Wed, Sep 5, 2018 at 1:24 AM Kah Mun<EMAIL_ADDRESS>wrote:

Hi Brian,
Thanks for the reply, but I am working on the upgrade-to-tf-1.8 branch if
that is the march-2018 branch that you are referring to. It still returns
me the same error. Is the new tutorial going to be updated soon?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google-aai/tf-serving-k8s-tutorial/issues/2#issuecomment-418643510,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADj0k048ySJhBwSgGanDC74XLN5TSxyFks5uX4ofgaJpZM4WZKb_
.

Hi Brian,
I have tested both on MacOS and Ubuntu 18.04. Both have the same results.
Thanks for the help.


Continuous Integration

We already use https://ci.appveyor.com/ as a backend CI. Can we use it as frontend CI as well? If yes, let's use it; if no, let's check the other possibilities.

Done. Let's go with AppVeyor for now.


Set texture min/mag filters

Add the ability to set the texture minifying and magnification function/filter, both globally and per texture. Also, decide which should be the default.
These filters are currently set by S2D_GL_SetUpTexture, which is called by S2D_CreateImage, S2D_CreateText, and S2D_SetText. Instead of hard-coding the filter (as it currently is), it should be read from the global option (probably set in the window struct), unless one is specified by the texture (set in the texture's struct).
The #define should be something like this, so the options are friendly to everyone:
#define S2D_BLUR GL_LINEAR
#define S2D_PIXELATE GL_NEAREST

See the glTexParameter docs for more detail on min/mag filters.

This is low priority. Closing for now.


Fix part about the reclaim policy Delete in DAG section

Describe the solution you'd like
Correct the explanation about the reclaim policy Delete.
Additional context
For Delete it is said:

However, Kubernetes does not delete the storage which was referenced by the PV. A storage administrator will need to delete the volume on the backend.

This was fixed with commit 7b1524


JSqlParser treats the order by statement as the global one.  What does this internal order by mean?

JSqlParser treats the order by statement as the global one. What does this internal order by mean?

It's just example.
order by statement as one of，not as the global.
And the SQL cannot be executed after parsing.

JSqlParser treats the order by statement as the global one. What does this internal order by mean?

It's just example.
order by statement as one of，not as the global.
And the SQL cannot be executed after parsing.

JSqlParser 3.0 version is correct

Greetings,  I have just tested your example with 4.2 Snapshot from Git:
@Test
    public void testUnionLimitOrderByIssue1255() throws JSQLParserException {
        String sqlStr = "(SELECT __time FROM traffic_protocol_stat_log LIMIT 1) UNION ALL (SELECT __time FROM traffic_protocol_stat_log ORDER BY __time LIMIT 1)";

        Statement stmt = CCJSqlParserUtil.parse(sqlStr);
        System.out.println(stmt.toString());

        assertSqlCanBeParsedAndDeparsed(sqlStr, true);
    }

The test succeeds, I even double checked the result of the toString() myself.
What exactly is the problem please?

Greetings, I have just tested your example with 4.2 Snapshot from Git:
@Test
    public void testUnionLimitOrderByIssue1255() throws JSQLParserException {
        String sqlStr = "(SELECT __time FROM traffic_protocol_stat_log LIMIT 1) UNION ALL (SELECT __time FROM traffic_protocol_stat_log ORDER BY __time LIMIT 1)";

        Statement stmt = CCJSqlParserUtil.parse(sqlStr);
        System.out.println(stmt.toString());

        assertSqlCanBeParsedAndDeparsed(sqlStr, true);
    }

The test succeeds, I even double checked the result of the toString() myself.
What exactly is the problem please?
Please close the case, when verified.

Our Feedback are Correct, The test Succeeds when  changed the Version from 4.0 to 4.1
Thanks!


fix for logs in metaflow kfp plugin

Bug: task.stdout and task.stderr isn't fetching the logs, happens only in KFP plugin (AIP-3607)
Fix: Added and registered task metadata entries for 'log_location_stdout' and 'log_location_stderr'

To fix the style issue run:
black --target-version py27 ./metaflow/plugins/kfp/*.py
from the root of the repo


[server notice: tebex_not_set]

Hi there,
Thank you for reporting this issue. Unfortunately, we're unable to investigate this bug without further information or steps to reproduce it.
Since we have not been able to reproduce the issue and we do not have enough context to investigate it further, we will be closing this GitHub ticket. However, we encourage you to provide us with additional details or steps to reproduce the issue, so we can take a closer look.
Please feel free to open a new ticket with the additional information, and we'll be happy to investigate the issue further.
Thank you for your understanding and for your continued support of Tebex.
Best regards,
The Integrations Team.


2d plane stress concentration analysis returns an error

Description of the modifications
Running this example https://mapdl.docs.pyansys.com/version/stable/examples/gallery_examples/00-mapdl-examples/2d_plate_with_a_hole.html#sphx-glr-examples-gallery-examples-00-mapdl-examples-2d-plate-with-a-hole-py
returns the following error:

This example should be corrected so that it works seamlessly.
Useful links and references
No response

Hi @pmaroneh ... Please do update PyMAPDL to 0.68.1. That version should fix that.

@germa89 @pmaroneh I just tried with PyMAPDL 0.68.1 and MAPDL 23R2 and the notebook ran fine with no errors.
Mike


darwin.Libsystem: fix existing file error during build

Description of changes
After coreutils was updated in https://github.com/NixOS/nixpkgs/pull/222314, darwin.Libsystem began failing to build in the rework. This appears to be due to a changing in behavior of cp -n to return a non-zero exit code when a file already exists. Note this only affects the reworked stdenv because the current one builds Libsystem with coreutils from the bootstrap tools.
Testing was done with a build of the reworked stdenv bootstrap. For aarch64-darwin, I manually built darwin.libmalloc and confirmed it was building from the newer version. Since aarch64-darwin is not building a source SDK, these headers are not used, but it is ready if/when that it does.
Things done

Built on platform(s)

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

[x] 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
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 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.

@toonn I updated the PR to reflect that this is a Libsystem issue caused by Libc rather than a Libc issue alone. I also tested using the command you provided and can confirm it reproduces the error using the current stdenv.
$ nix-build --pure --no-out-link -E 'with (import ./. {}); darwin.Libsystem.override { inherit stdenv; }' --system x86_64-darwin
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/85zm06baw94yi7cz4nmr9yynqdrsigcw-Libsystem-1238.60.2.tar.gz
source root is Libsystem-Libsystem-1238.60.2
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file Libsystem-Libsystem-1238.60.2/xcodescripts/linker_arguments.sh
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "installPhase" }
installing
cp: not replacing '/nix/store/g65n8z3fgvy8dld580d53nqakv43g7ka-Libsystem-1238.60.2/include/./setjmp.h'


Edge missed between two EC2 instances

Issue and Steps to Reproduce
The final graph does not properly draw an edge between two EC2 nodes that are capable of communicating. Specifically, the EC2 are deployed to different VPCs in the same region and account. There is a peering connection between both VPCs and the route tables for both are configured to allow bidirectional communication. No NACLs exist. Each EC2 has their own security group. The SGs allow all traffic via SG ID (as opposed to a subnet CIDR or EC2 IP).
Versions
CloudMapper 2.3.0
Screenshots
CloudMapper output

SSHing into the cloudmapper test 2 instance.

From the cloudmapper test 2 shell, SSHing into the cloudmapper test instance.

The domain names, security group, and VPC of the cloudmapper test instance.

The domain names, security group, and VPC of the cloudmapper test 2 instance.

The SG configuration for the first EC2

The SG configuration for the second EC2

The route table configuration for the first VPC

The route table configuration for the second VPC

The peering connection between the two VPCs

Expected
An edge should be drawn between the two EC2s.
Actual
No edge is drawn.
Additional Details
I admittedly haven't done anything to investigate the cause for this behavior. If I get some free time in the future, I'll come back and see if I can dig it up.

Closing as I believe my explanation resolves this.


resolves #82 implement a toc

add a custom style on book doctype to add a page break after the preamble and the toc
add tests

resolves #82

It might be possible to add the page numbers on the Table Of Contents, once Paged.js process is completed, but it should be added in an other pull request.


Wired Subject behavior

Bug Report
Current Behavior
const rxjs = require('rxjs')

const subject = new rxjs.Subject()

subject.subscribe({
  next: (v) => {
    if (v === 1) {
      subject.next(2)
    }
  }
})

subject.subscribe({
  next: (v) => {
    console.log(v)
  }
})

subject.next(1)

log 2
log 1
Reproduction

REPL or Repo link:
https://stackblitz.com/edit/typescript-pw115w

var your => (code) => here;

Expected behavior
log 1
log 2
Environment

RxJS version: 6.5.3

It might seems weird, but this the expected behaviour. Subscribers are notified in the order in which they subscribe and your first subscriber effects another next notification - essentially re-entering the notification if the subscribers.

This is typical reentrant example and answer is well explained.


Just updates as you suggested in my last error

Issue
After doing that i get this error
──────────────────────────────────────────────────────────────────────
Aider v0.56.0
Main model: gpt-4o-2024-08-06 with diff edit format
Weak model: gpt-4o-mini
Git repo: .git with 2,159 files
Warning: For large repos, consider using --subtree-only and
.aiderignore
See:
https://aider.chat/docs/faq.html#can-i-use-aider-in-a-large-mono-repo
Repo-map: using 1024 tokens, auto refresh
VSCode terminal detected, pretty output has been disabled.
Use /help  for help, run "aider --help" to see cmd line args
──────────────────────────────────────────────────────────────────────

hello

Initial repo scan can be slow in larger repos, but only happens once.
Scanning repo:   0%|                         | 0/2157 [00:00<?, ?it/s]Repo-map can't include /home/dmtarmey/AiderProjects/my_project
Has it been deleted from the file system but not from git?
Repo-map can't include /home/dmtarmey/AiderProjects/venv/lib
Has it been deleted from the file system but not from git?
Scanning repo: 100%|█████████████| 2157/2157 [00:12<00:00, 167.55it/s]
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 0.2 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 0.5 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 1.0 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 2.0 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 4.0 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 8.0 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 16.0 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 32.0 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Tokens: 39k sent, 0 received. Cost: $0.10 message, $0.10 session.
──────────────────────────────────────────────────────────────────────

hello

litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 0.2 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 0.5 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 1.0 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 2.0 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 4.0 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 8.0 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 16.0 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Retrying in 32.0 seconds...
litellm.RateLimitError: RateLimitError: OpenAIException - Error code:
429 - {'error': {'message': 'You exceeded your current quota, please
check your plan and billing details. For more information on this
error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.',
'type': 'insufficient_quota', 'param': None, 'code':
'insufficient_quota'}}
Tokens: 39k sent, 0 received. Cost: $0.10 message, $0.20 session.
──────────────────────────────────────────────────────────────────────

Version and model info
Aider v0.56.0

This error only apeared after u used the update you sent me i have api account and haven't used it recently

Thank you for filing this issue.
Please do not spam issues with account problems. We cannot help you with quota exceeded errors. Please check your account and possibly your configuration (e.g. if you use Vertex AI that you have set the correct region).
Thank you.

Im not spamming im asking for help

The reason i reported it here was in case others had the same issue after using aider

The reason i reported it here was in case others had the same issue after using aider

If an API tells you that you exceeded your quota, this is a problem with your personal account, not with aider.
We cannot help you with that.

this issue was caused by a big in code somewhere that kept trying to access chatgpt over and over until openai thought there ware under some type of spamming attack I was asking you kindly to check it hasn't effecting anyone else !! As there are thousands of dependencies it could have been caused by only one.

I do not understand what you are referring to. ChatGPT and OpenAI API are separate products, they get accessed separately and billed separately. aider does not support accessing ChatGPT (the website) only OpenAI API.
Please note that this is a GitHub issue and not a chat interface. If you feel the need to chat, please join the aider Discord.

Sorry im sure your busy i was just saying i connected aider to my api key somethink stranged happened and it keps trying to do the same thing over and over and apammed api key and now i cant seem to get my api key to work, when i go on openai i just says iv used up my quota and no signs of when it will start again.

From: fry69 @.>
Sent: 23 September 2024 22:27
To: paul-gauthier/aider @.>
Cc: Darren Tarmey @.>; Author @.>
Subject: Re: [paul-gauthier/aider] Just updates as you suggested in my last error (Issue #1686)
I do not understand what you are referring to. ChatGPT and OpenAI API are separate products, they get accessed separately and billed separately. aider does not support accessing ChatGPT (the website) only OpenAI API.
Please note that this is a GitHub issue and not a chat interface. If you feel the need to chat, please join the aider Discord.
—
Reply to this email directly, view it on GitHubhttps://github.com/paul-gauthier/aider/issues/1686#issuecomment-2369429967, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAEQFCQEYAD47UV6RKLXSPTZYCBSTAVCNFSM6AAAAABOW4QWFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRZGQZDSOJWG4.
You are receiving this because you authored the thread.Message ID: @.***>


How to run the quantized Solar model?

I am trying to run the Solar model, but I am constantly failing. Here are my attempts:

[quantized] example (modified) with the Quantized Solar model (local)
: Failed. It only outputs nonsense that is unrelated to the question.
[llama] example with the Quantized Solar model (local)
: Failed. The process was Killed. Either because of ①a "Quantized" model or ②a low-spec PC (16GB of RAM, etc.).
[llama] example with the Solar model
: Failed. The process was Killed. The most likely cause is ①a low-spec PC.
oobabooga with the Quantized Solar model (local)
: Success. Confirmed that my PC can run the Quantized Solar model.
oobabooga with the Solar model
: Failed. The process was Killed. Confirmed that my PC cannot run the Solar model.

Conclusion: Is there any way to run the Quantized Solar model? I know I only wrote about 5 attempts, but I actually tried several different variations of the code in step 1. I also downloaded the model several times in my poor internet speed.

[quantized] example (modified) with the Quantized Solar model (local): Failed. It only outputs nonsense that is unrelated to the question.

If you are getting incoherent output, you might have the wrong tokenizer set. I have used the solar models with the quantized implementation of llama in candle with these settings:
model id: TheBloke/SOLAR-10.7B-v1.0-GGUF
revision: main
gguf file within the repo: solar-10.7b-v1.0.Q4_K_M.gguf
tokenizer repo: upstage/SOLAR-10.7B-v1.0
tokenizer file: tokenizer.json
With the wrong tokenizer, you can get some giberish output. Here is the output I got when trying to use the solar with the llama tokenizer:
капи кате cheap versree слоrio UnjetQL voiceseg listGE Here Jas SozialExt prod arr press віціled solemAnchor fields ár_+PLLouis searchedQu profileslickiedasterund v damalsisko timing rings authorizationтельной pochodontql tableView'];equationroom

The code to load the llama model and output
I used the model through a slightly higher level interface to candle transformers I am working on called Kalosm:
use kalosm::language::*;
use std::io::Write;

#[tokio::main]
async fn main() {
    let model = Llama::builder()
        .with_source(LlamaSource::solar_10_7b())
        .build()
        .unwrap();
    let prompt = "# About Machine Learning\n";
    let mut result = model
        .stream_text(prompt)
        .with_max_length(1000)
        .await
        .unwrap();

    print!("{prompt}");
    while let Some(token) = result.next().await {
        print!("{token}");
        std::io::stdout().flush().unwrap();
    }
}

Output:
# About Machine Learning
This is a list of resources that I use to learn about machine learning. The topic covers both the theory as well as the implementation in practice, using Python and R mostly (but also some other tools such as Matlab or Julia). This page will be updated regularly with new content so check back often! If you have any suggestions for additions please let me know via email at [email protected]
# Machine Learning Books
The following books are great resources to learn about machine learning. They cover both the theory and implementation in practice, using Python or R mostly (but also some other tools such as Matlab). This page will be updated regularly with new content so check back often! If you have any suggestions for additions please let me know via email at [email protected]
# Machine Learning Papers
The following papers are great resources to learn about machine learning. They cover both the theory and implementation in practice, using Python or R mostly (but also some other tools such as Matlab). This page will be updated regularly with new content so check back often! If you have any suggestions for additions please let me know via email at [email protected]
# Machine Learning Blogs
The following blogs are great resources to learn about machine learning. They cover both the theory and implementation in practice, using Python or R mostly (but also some other tools such as Matlab). This page will be updated regularly with new content so check back often! If you have any suggestions for additions please let me know via email at [email protected]


Use vault accounts for fragmenter

This updates the fragmentation logic in order to deprecate the usage of ephemeral wallets in favour of reserved accounts of Vault domain.
Daemon
For this, the fragmenter portable interface (ports.Fragmenter) and all other relative types/interfaces have been dropped. Basically, the only thing re-used is the fragmentation logic of the original FragmentAmount() method of both fee and market fragmnenter implementations.
These methods have been moved to a fragmenter_utils.go file and became internal methods of the app layer.
As already introduced, this makes use of 2 Vault reserved accounts that have been named FeeFragmenter and MarketFragmenter accounts. This has the benefit of not taking the risk of loosing funds during a fragmentation as explained in the related ticket.
Several RPCs have been added for these 2 new accounts to look similar to those defined for the Fee and Market ones:

ListFeeFragmenterAddresses to list all external addresses derived for the account
GetFeeFragmenterBalance to retrieve the current balance of the account
FeeFragmenterSplitFunds to perform fragmentation and deposit funds into fee account. The original FragmentFeeFragmenterDeposits is dropped.
WithdrawFeeFragmenter to withdraw ALL the funds owned by the account to some address

The same is done for the MarketFragmenter account.
CLI
On the CLI side, the interactive process originally done with tdex fee|market deposit --fragment is deprecated.
Instead, 2 new main commands are added:

feefragmenter to manage the fee fragmenter account
marketfragmenter to manage the market fragmenter account

Both commands have the following subcommands:

deposit [--num_of_addresses]  to retrieve address where to send funds
addresses to list all deposit (external) addresses
balance to see the current balance of the account
split to perform fragmentation&deposit into fee/market account
withdraw to send ALL the funds owned by the fragmenter to an external address

Therefore, the process is no-longer interactive. The operator needs to call at least deposit and split to perform the fragmentation of the funds.
BONUS:

In order to use the pkg/wallet to craft the deposit or withdraw transaction of the fragmenters, it's been necessary to add the option to the UpdateTx() to subtract fees from some LBTC output that is going to be added to the transaction. This can now be done by setting the new param SubtractFees, which is mutually exclusive to WantChangeForFees, which instead instructs to either subtract the fees from a change LBTC out, or to add one by making a new coinselction.
Rename the internal methods sendToMany and sendToManyFeeAccount of the app layer to sendToManyWIthFeeTopup and sendToManyWithoutFeeTopup to better understand their purpose.
This fixes some typos in the operator.proto file

Closes #495.
Please @tiero review this.

Just asking, Why we couldn't keep the tdex fee|market deposit --fragment UX instead of adding specific commands?

Since FeeFragmenter and MarketFragmenter became accounts similar to the Fee and Market ones, I thought they needed similar RPCs for consistency. Like for instance to check the balance or to list of all derivated deposit addresses.
At this point, the CLI would have been enriched with new commands anyways, so I decided to deprecate the interactive process of the fee/market account commands.


Transformer and pixi7 doesn't work if bundled with webpack

Transformer imports @pixi/interaction, but it was deprecated (as i understand) for pixi 7. At least i cant find version for pixi 7. That line broke all mouse behaviour. Looks like interactive = false, but it's not true.
I did monkey-patch for 3.0.1, just remove require('@pixi/interaction') from assembled js file. And all will works fine.
codepen works well on 3.0.1 and 7.2.4 pixi, because that code (header from transformer.js) in reality doesn't do require('@pixi/interaction')  in browser.
(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@pixi/interaction'), require('@pixi/display'), require('@pixi/math'), require('@pixi-essentials/bounds'), require('@pixi-essentials/object-pool'), require('@pixi/graphics')) :
      typeof define === 'function' && define.amd ? define(['exports', '@pixi/interaction', '@pixi/display', '@pixi/math', '@pixi-essentials/bounds', '@pixi-essentials/object-pool', '@pixi/graphics'], factory) :
        (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global._pixi_essentials_transformer = {}, null, global.PIXI, global.PIXI, global.PIXI, global.PIXI, global.PIXI));
  }(this, (function (exports, interaction, display, math, bounds, objectPool, graphics) { 'use strict'; })));

As fix:
Is it okay to just drop @pixi/interaction import?
cc
https://github.com/ShukantPal/pixi-essentials/issues/84

cc
https://github.com/ShukantPal/pixi-essentials/pull/86

This should be fixed in<EMAIL_ADDRESS>


Initial layout and mock data

Description

Contains the initial layout of the app along with mock data.
Uses mock redux store in react native testing library.

This isn't complete, but it's going in!


Reference latest version of a nuget package using * doesn't work

When I try to reference the latest version of a package using:
#r "nuget: Newtonsoft.Json, *"
i get the the following error message:

Unable to restore packages from 'C:\Users\adfrth5\AppData\Local\Temp\scripts\C\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\REPL\interactive\interactive\script.csproj'. Make sure that all script files contains valid NuGet references

Dotnet.Script.DependencyModel.Context.DotnetRestorer.Restore(string, string[]) in C:\Users\appveyor\AppData\Local\Temp\tmpC155\Dotnet.Script.DependencyModel\Context\DotnetRestorer.cs : 31
Dotnet.Script.DependencyModel.Context.ScriptDependencyInfoProvider.GetDependencyInfo(string, string[]) in C:\Users\appveyor\AppData\Local\Temp\tmpC155\Dotnet.Script.DependencyModel\Context\ScriptDependencyInfoProvider.cs : 32
Dotnet.Script.DependencyModel.Runtime.RuntimeDependencyResolver.GetDependenciesInternal(string, string[], bool) in C:\Users\appveyor\AppData\Local\Temp\tmpC155\Dotnet.Script.DependencyModel\Runtime\RuntimeDependencyResolver.cs : 78

A workaround using [*,9999] as version seems to work. But i can't test it because package reference inlineing seems not to work at all (see other issue).

can you please run the script with --debug flag? This should definitely work.


How to create queries with dynamic where clauses?

Hi all,
I am wondering if it is possible to create a dynamic query with different where clauses. My situation is that I have an endpoint that could pass in different statuses, different types, etc.
For example, the base endpoint is: /api/my-endpoint and if this was called, my query would be like so (lets call this the base query)
Model.query();

However, I can add query parameters like so: /api/my-endpoint?status=Success&type=Red, and I would want my query to look something like this:
Model.query().where('status', 'Success').andWhere('type', 'Red');

However, I wouldn't want to hardcode it, I would want to do something like so:
if (status) {
 // add where clause to base query
}

if (type) {
  // add another where clause to base query
}

// any other query parameters

Is there a way to do this in Objection?
Thanks!

The query is only executed once you await it. Before that, it remains an instance of QueryBuilder. The QueryBuilder class is mutable and each where call mutates the query. You don't need to assign the return value back to the query variable, but you can if you want (where always returns this)
const query = Model.query()

if (status) {
  query.where('status', status)
}

if (type) {
  query.where('type', type)
}

const result = await query;

You can make the last line more explicit by calling execute, but it's not needed:
const result = await query.execute();


Show the list of suggestions on click

Hi,
I work with a small list of suggestions, is this possible to display the dropdown when the user clicks in the field (and/or the search icon)?

No, But you can modify the component. You can copy the file called VueInstant.vue and update this variables suggestionsIsVisible && showSuggestions to true.
If you don't want hack the system you can use other library like https://sagalbot.github.io/vue-select/


Mobile support

It doesn't seems to open all the links on selection on https://www.amazon.in/gp/most-gifted/ref=zg_mg_unv_luggage_0_1 while using the extension in kiwi browser.

Hi Chirag, thanks for the report! Can you describe how to reproduce this, once I install Kiwi + the extension? (I'm not sure what I'd need to do that's equivalent to a right click, eg)
Thanks, N.

Hi Chirag, thanks for the report! Can you describe how to reproduce this, once I install Kiwi + the extension? (I'm not sure what I'd need to do that's equivalent to a right click, eg) Thanks, N.

For equivalent of the right click, I'm clicking the extension.


Just typo corrections.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 81.489%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/ui/modules/urlExport.ts
0
1
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
538

Relevant Lines:
654

💛  - Coveralls


Neovim version
0.10.0
Language affected
python
Query
No response
Strategy
No response
Description
As stated in the title, I know this is not a problem with the plugin. Are there any temporary solutions?

Can you please elaborate what exactly the issue is? Where is the problem when
you have an expression like this?
[x for x in [y for y in [z for z in zs]]]

Very Shiny:

Look normal to me. What exactly do you want changed? Do you want the for not to be highlighted? Are the colours wrong?

Look normal to me. What exactly do you want changed? Do you want the for not to be highlighted? Are the colours wrong?

Yes, all for and in should be purple.

Yeah, I think it was too presumptuous of me to highlight the keywords as well. Update to the latest master, they should now have their normal highlighting.

Perfect, Thanks!

Closing this as complete


how to use the edl loss when distilate?

@zimenglan-sysu-512 I guess you are referring to the way of knowledge distillation (KD) when using EDL loss?
This is interesting. In EDL, the expectation of classification probability is reformulated as \alpha / S rather than softmax normalization, similar to the temperature scaling technique in KD, probably you can set a scaling factor for the Dirichlet strength, e.g., \lambda S, such that the Dirichlet is more centralized, which further produces more centralized samplings of multinomial probabilities. However, it should be careful about how the uncertainty is changing correspondingly (should be linearly scaled intuitively.)


Spawn a new goroutine when calling EvictionCallback

This PR adds spawning a new goroutine when calling EvictionCallback.
Fixes: https://github.com/erni27/imcache/issues/41

Codecov Report

Merging #44 (3ff25b1) into master (b892187) will increase coverage by 0.02%.
The diff coverage is 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##           master      #44      +/-   ##
==========================================
+ Coverage   95.53%   95.56%   +0.02%
==========================================
  Files           8        8
  Lines         717      721       +4
==========================================
+ Hits          685      689       +4
  Misses         28       28
  Partials        4        4

Impacted Files
Coverage Δ

imcache.go
98.90% <100.00%> (+<0.01%)
:arrow_up:


deps: update cpp2sky to v0.6.0

Commit Message: deps: update cpp2sky to v0.6.0
Additional Description:
To close #23032
Risk Level: low.
Testing: n/a.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

/wait


Boundry

Hmm? Did you mean to do a pull request? I am not sure this is the right approach to add the image :)!

You can ask Toni he has done it lately :)!

ok :))
then I am trying a wrong way!


not working in macOS Sierra

OSX v10.12.6
Probably this is assumed w/ the fancy new touch bar and the complexity it introduces - but a fn key toggle would be AWESOME for my workflow!
Any known workarounds?

It seems to be working for me. What exactly is the issue you're facing? It's even working on High Sierra for me.

When I attempt to run it I get the error (in a dialog window) The action "Run AppleScript" encountered an error.

Oh I got this too when I upgraded to Sierra. Just delete the current binary you have, re-download and follow the installation steps again, it'll start working.

hmmm - I tried this but no luck.
git pull && make clean && make install && ./fn-toggle.app/Contents/MacOS/Application\ Stub

yields both the error dialog mentioned above along w/ the following output in stdout:
2017-10-02 13:02:42.974 Application Stub[78836:2812651] Cache file at /System/Library/Caches/com.apple.automator.actionCache-system-readonly.plist is not valid: System Languages have changed.
2017-10-02 13:02:42.974 Application Stub[78836:2812651] Failed to use read-only system cache from installer at /System/Library/Caches/com.apple.automator.actionCache-system-readonly.plist.

Actually . - now that I look more closely at the automator script - the Keyboard pane of System Preferences no longer contains a checkbox that allows default usage of F1, F2, etc Keys - so default selecting the first checkbox wouldn't do the trick. In fact, it should have checked Adjust keyboard brightness in low light but for whatever reason this doesn't happen.

In the end - I found this to be a solution that better suited my needs: https://www.imore.com/how-make-function-keys-default-touch-bar-display
As its application specific and not system wide - which is super ideal IMO.

Here's a fix:

Also make sure to give fn-toggle accessibility access

master updated to work with Venture


force_alternative_syntax

Rule request
I really like alternative syntax of PHP control structure. So I would like to propose force_alternative_syntax rule. Its job make sure long control structure syntax use alternative. In detail it would be:
return (new PhpCsFixer\Config())->setRules([
	// set true to use default config below
	'force_alternative_syntax' => true,

	// Force specific case to alternative syntax
	'force_alternative_syntax' => [
		// integer, tell the fixer how deep it should convert
		// 0 => only the parent
		// 1 => parent and the child(ren)
		// 2 => parent -> child(ren) -> grandchild(ren)
		'nest_depth' => 9, // I don't think there is anyone out there would dare to pass 3...

		// if nest, where syntax should start: true = from parent | false = from child
		'convert_from_parent' => true,

		// if syntax only costs a line: false = tradition | true = alternative
		'one_line' => false,

		// if syntax costs more than 2 lines: true = alternative | false = tradition
		'multiple_lines' => true,

		// add whitespace between the colon and the brace : false = no space | true = 1 whitespace
		'whitespace_before_colon' => false,
	],
]);

Code snippet that shows how the rule would fix PHP code
Case: 'force_alternative_syntax' => true
--- Original
+++ New

$cond = false;
$i = 0;

if ($cond) var_dump($cond);

- if ($cond) {
+ if ($cond):
   $cond = false;
   var_dump($cond);
- }
+ endif;

- while ($cond) :
+ while ($cond):
   $i += 1;
   $cond = $i == 100;
- }
+endwhile;

- while ($cond): $cond = true; endwhile;
+ while ($cond) $cond = true;

- while ($cond) {
+ while ($cond):
   $i += 1;
-    if ($cond) {
+    if ($cond):
       $cond = false;
       var_dump($cond);
-    }
+    endif;
   $cond = $i == 100;
- }
+endwhile;

Case: 'force_alternative_syntax' => ['nest_depth' => 0, 'convert_from_parent' => false]
In this case, the nest direction is started from the inside.
--- Original
+++ New
while ($cond) {
   $i += 1;
-    if ($cond) {
+    if ($cond):
       $cond = false;
       var_dump($cond);
-    }
+    endif;
   $cond = $i == 100;
}

How does everyone think? Please tell me if I miss sth.

IMO using this syntax is not a widespread practice, even for templating. For now I would suggest implementing this in a third-party package rather than here.

I think it is very good for readability. It's especially in nest code. But you mention 3rd-party pkgs... What is it? I only see custom rulesets, never heard about pkg before.

Hi and thanks for sharing your very detailed idea.
Currently I know of no widely used CS standard within the PHP community that uses the suggested CS. As such it is not really in the scope of this project itself and therefore I'll close this this issue. As Julien suggested you can still make the fixer/rule and use it within this tool as a 3rd party fixer. Please check out the docs:

https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.1.0/doc/cookbook_fixers.rst
https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.1.0/doc/custom_rules.rst

or have a look at other 3rd party rule providers to see how they do it, good luck!


RuntimeError inplace operation when training

Hi!
I am trying to run the code on the default configuration and after a while the program results in the following error:
Traceback (most recent call last):
  File "code/main.py", line 73, in <module>
    run()
  File "code/main.py", line 66, in run
    agent.run()
  File "/home/ail/slac.pytorch/code/agent.py", line 116, in run
    self.train_episode()
  File "/home/ail/slac.pytorch/code/agent.py", line 200, in train_episode
    self.learn()
  File "/home/ail/slac.pytorch/code/agent.py", line 228, in learn
    self.learn_sac()
  File "/home/ail/slac.pytorch/code/agent.py", line 275, in learn_sac
    self.policy_optim, self.policy, policy_loss, self.grad_clip)
  File "/home/ail/slac.pytorch/code/utils.py", line 39, in update_params
    loss.backward(retain_graph=retain_graph)
  File "/home/ail/miniconda3/envs/slac/lib/python3.6/site-packages/torch/tensor.py", line 198, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph)
  File "/home/ail/miniconda3/envs/slac/lib/python3.6/site-packages/torch/autograd/__init__.py", line 100, in backward
    allow_unreachable=True)  # allow_unreachable flag
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [256, 1]], which is output 0 of TBackward, is at version 3; expected version 2 instead. Hint: the backtrace further above shows the operation that failed to compute its gradient. The variable in question was changed in there or anywhere later. Good luck!

Is this a result of using a newer version of the dependencies? (the requirements.txt does not have pinned versions)
Thanks.

Hi, @asolano
Thank you for sharing.
It's an error due to the update of torch>=1.5.0.
I will fix it and refactor codes within a few days.
So, please downgrade to torch=<1.4.0 until then.
Thanks :)

Hi @asolano
I quickly fixed the issue.
Please check if you can run the code.
Thanks :)

Thanks for the quick response, Toshiki.
The new code seemed to run for a while, but then this error happened.
episode: 39    episode steps: 1000  reward: 6.7
------------------------------------------------------------
Learning the latent model only...
Finish learning the latent model.
------------------------------------------------------------
------------------------------------------------------------
environment steps: 40000  return: 11.4  +/- 3.9
------------------------------------------------------------
episode: 40    episode steps: 1000  reward: 16.0
Traceback (most recent call last):
  File "code/main.py", line 69, in <module>
    run()
  File "code/main.py", line 65, in run
    agent.run()
  File "/home/ail/slac.pytorch/code/agent.py", line 115, in run
    self.train_episode()
  File "/home/ail/slac.pytorch/code/agent.py", line 196, in train_episode
    self.learn()
  File "/home/ail/slac.pytorch/code/agent.py", line 224, in learn
    self.learn_sac()
  File "/home/ail/slac.pytorch/code/agent.py", line 292, in learn_sac
    'stats/alpha', self.alpha.detach().item(),
AttributeError: 'float' object has no attribute 'detach'

It seems there is some array/scalar type mismatch, right?
By the way, learning the latent model takes a long time, probably because it is not using the GPUs for those calculations (according to nvidia-smi and htop is all CPU)

Hi @asolano
I'm so sorry, it's a bug and I fixed it.
Please try it again.

By the way, learning the latent model takes a long time, probably because it is not using the GPUs for those calculations (according to nvidia-smi and htop is all CPU)

Let me assure you if you specify --cuda??
The example command in README seems to use GPU correctly.
$ watch -n 1 nvidia-smi

Every 1.0s: nvidia-smi

Mon Aug 31 09:56:30 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.33.01    Driver Version: 440.33.01    CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1080    Off  | 00000000:01:00.0  On |                  N/A |
| 45%   69C    P2    86W / 180W |   1972MiB /  8117MiB |     96%      Default |
+-------------------------------+----------------------+----------------------+

Thanks.

If you're using other than CUDA 10.2, you need to reinstall PyTorch for the proper version of CUDA. Please see the instructions for more details.
https://pytorch.org/get-started/locally/

Thanks for the update. The command I used is straight from the README, including the cuda flag:
$ python code/main.py --env_type dm_control --domain_name cheetah --task_name run --action_repeat 4 --seed 0 --cuda

At first it uses the GPU, but then it quickly slows down here:
episode: 28    episode steps: 1000  reward: 9.5
episode: 29    episode steps: 1000  reward: 16.2
episode: 30    episode steps: 1000  reward: 8.1
episode: 31    episode steps: 1000  reward: 5.1
episode: 32    episode steps: 1000  reward: 15.9
episode: 33    episode steps: 1000  reward: 9.7
episode: 34    episode steps: 1000  reward: 13.0
episode: 35    episode steps: 1000  reward: 15.9
episode: 36    episode steps: 1000  reward: 8.9
episode: 37    episode steps: 1000  reward: 18.7
episode: 38    episode steps: 1000  reward: 16.4
episode: 39    episode steps: 1000  reward: 13.3
------------------------------------------------------------
Learning the latent model only...

And this is the result of watching nvidia-smi:
Every 1.0s: nvidia-smi                                                                          Mon Aug 31 10:21:11 2020

Mon Aug 31 10:21:11 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.56       Driver Version: 418.56       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Quadro P5000        Off  | 00000000:18:00.0 Off |                  Off |
| 26%   28C    P8     6W / 180W |    336MiB / 16278MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  Quadro P5000        Off  | 00000000:3B:00.0 Off |                  Off |
| 26%   27C    P8     6W / 180W |     11MiB / 16278MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   2  Quadro P5000        Off  | 00000000:86:00.0 Off |                  Off |
| 26%   27C    P8     6W / 180W |     11MiB / 16278MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   3  Quadro P5000        Off  | 00000000:AF:00.0 Off |                  Off |
| 26%   28C    P8     6W / 180W |     11MiB / 16278MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0     83667      G   python                                         2MiB |
|    0     91916      G   python                                       257MiB |
|    0    274846      G   python                                        65MiB |
+-----------------------------------------------------------------------------+

It seems the part of the code dealing with tha latent model is not done on the GPU on this system.

I will try to update to CUDA 10.2 and see if there is any change.

Hi @asolano
I suspect that the issue is due to the invalid combination of CUDA and PyTorch.
Please reinstall PyTorch. For example, use the command below if you use CUDA 9.2.
pip install torch==1.6.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html

Thanks, I first tried updating cuda to 10.2 and pytorch to 1.6 as instructed in the website:
$ conda install pytorch torchvision cudatoolkit=10.2 -c pytorch

but nothing changed. So I recreated the environment from scratch:
$ pip install -r requirements.txt

and that didn't work, either.
So I updated torch and cuda to 10.1 (the same version as the host driver):
$ conda install pytorch torchvision cudatoolkit=10.1 -c pytorch

And now it is using one of the GPUs and the CPUS are almost idle, so that's good. I will let you know once it finishes!

Yeah... sometimes nvidia-driver and CUDA configuration doesn't go easily.
Anyway, I'm glad that everything seems to have worked out finally!!
(Maybe I should have shared Dockerfile I've been using...)
Thanks :)

Thanks, I first tried updating cuda to 10.2 and pytorch to 1.6 as instructed in the website:
$ conda install pytorch torchvision cudatoolkit=10.2 -c pytorch

but nothing changed.

Maybe it is because CUDA 10.2 only supports nvidia-driver 440.33 or later. (source)

Sounds reasonable, yes.
So, the default run took more than a day but it finished successfully:
------------------------------------------------------------
environment steps: 2990000  return: 862.7 +/- 10.5
------------------------------------------------------------
episode: 2990  episode steps: 1000  reward: 867.9
episode: 2991  episode steps: 1000  reward: 872.8
episode: 2992  episode steps: 1000  reward: 862.3
episode: 2993  episode steps: 1000  reward: 746.2
episode: 2994  episode steps: 1000  reward: 848.4
episode: 2995  episode steps: 1000  reward: 853.1
episode: 2996  episode steps: 1000  reward: 871.1
episode: 2997  episode steps: 1000  reward: 866.9
episode: 2998  episode steps: 1000  reward: 874.2
episode: 2999  episode steps: 1000  reward: 817.5
------------------------------------------------------------
environment steps: 3000000  return: 855.3 +/- 24.0
------------------------------------------------------------
episode: 3000  episode steps: 1000  reward: 883.7
episode: 3001  episode steps: 1000  reward: 859.7

Thanks again for the quick support.

So, the default run took more than a day but it finished successfully:

I'm glad to hear that.
Training of SLAC takes some time because the inference involves a sequence of forwarding propagation.
I have some ideas to speed up training a little bit, however, I don't have enough time to apply them.
Please close the issue if you don't have any other problems.
Thanks!!


Fix pointer down jitters

Its like its getting the wrong position

Also seeing this on mobile a lot. Seems to be related to interrupting a camera slide with a pan (via drag)

Fixed but also broke some other stuff

It wasnt fixed but now it is


Unexpected EOF

Setting Sabayon up on one of my environments is returning an EOF unexpectedly. Everything seems to be setup correctly, the same way I have it setup for another environment which is working great with Sabayon. The error I see is:
$ heroku run bin/sabayon -a sabayon-for-my-app

Running bin/sabayon on ⬢ sabayon-for-my-app... up, run.1834 (Hobby)
2017/01/30 17:14:22 cert.create<EMAIL_ADDRESS>domains='[www.domain1.com www.domain2.com]'
2017/01/30 17:14:23 [INFO] acme: Registering account for<EMAIL_ADDRESS>2017/01/30 17:14:23 [INFO][www.domain1.com, www.domain2.com] acme: Obtaining bundled SAN certificate
2017/01/30 17:14:24 EOF

$

Settings:
ACME_APP_NAME: my-app
ACME_DOMAIN: www.domain1.com,www.domain2.com
ACME_EMAIL<EMAIL_ADDRESS>HEROKU_TOKEN: .....

sabayon-for-my-app is using Hobby dynos; my-app is using standard dynos.

That looks like a connection unexpectedly lost when calling the letsencrypt API. You may want to try again in a couple hours.

Yep, I thought that too but I tried it last night and this morning several times with the same result.

This EOF is definitely an error in the connection, either with the letsencrypt API or the heroku one.
Seeing where this is happening in the logs, this would be with letsencrypt though.
Basically, an error is being returned by the API here.
There is nothing in this codebase I can change that will fix this kind of connectivity error.

The only other way this could have failed is if letsencrypt introduced a breaking change in their API. I just tried regenerating a certificate in a test app using sabayon, which worked properly.

Looking back through the output of my various attempts I see that one of them returned a different error message:
acme: Error 400 - urn:acme:error:badNonce - JWS has invalid anti-replay nonce 7TarXZbO....

All of the other attempts returned the EOF error.

I wonder if the problem may be caused because these domains are all production domains running on Heroku and already use a single Heroku SSL Endpoint with a valid UCC SAN certificate.
My Sabayon use is intended to replace the Heroku SSL Endpoint, but I can't remove it without incurring downtime for the clients of those domains.
I ran a test to get a cert using certbot and that failed too: Incorrect validation certificate for TLS-SNI-01 challenge.

Have you tried raising that issue with letsencrypt support?

Good suggestion: https://community.letsencrypt.org/t/site-with-existing-cert-fails-certbot-sabayon/26771

I got a cert successfully using certbot --manual, so it's not likely the existing cert causing the problem.
Perhaps the problem is to do with the Pre-boot feature of Heroku. This feature is used to prevent downtime on dynos, but a side effect is that when you change an environment variable in a Heroku app, that change is not immediately available to the code running on the dyno. My experience is that it takes 1-2 minutes before the change shows up in the code.
That would explain the problem for the first attempt running Sabayon (or first few). But would not explain it if the ACME_KEY-n and ACME_TOKEN_n keep their values every time Sabayon is run. From my quick tests they seem to keep their values, so then it's probably not caused by Pre-boot...

I don't think this is an issue with preboot. The EOF happens before the app is updated with the new values.
By default, sabayon waits for 20 seconds to ack the restart. But you can increase that with the RESTART_WAIT_TIME config var.

It looks like this is a bug in https://github.com/xenolf/lego - https://github.com/xenolf/lego/issues/338

In the interests of helping this along, I have had the same issue as the OP. So I tried re-deploying fresh to Heroku, and entered the same ENV variables as the current app I had this error on. So I go in and heroku run bash into the app and ran sabayon --force to see what would happen.
I got an error message (quoted below). After this error happened once, I could not see the error again and instead saw EOF without fail.
Now I also posted this in the lego issue since the trace clearly points there, but I am also going to leave it here for the benefit of debugging.
panic: runtime error: slice bounds out of range

goroutine 74 [running]:
panic(0x717ee0, 0xc4200100e0)
	/app/tmp/cache/go1.7.5/go/src/runtime/panic.go:500 +0x1a1
github.com/dmathieu/sabayon/vendor/github.com/xenolf/lego/acme.(*jws).Nonce(0xc42038eb00, 0xc4203a0500, 0x1, 0xc4201183f0, 0x1)
	/tmp/tmp.Q2359EFByl/.go/src/github.com/dmathieu/sabayon/vendor/github.com/xenolf/lego/acme/jws.go:105 +0xd4
github.com/dmathieu/sabayon/vendor/gopkg.in/square/go-jose%2ev1.(*genericSigner).Sign(0xc420308a50, 0xc4203a0460, 0x7d, 0x9d, 0x7f487012e1e8, 0xc420308a50, 0x0)
	/tmp/tmp.Q2359EFByl/.go/src/github.com/dmathieu/sabayon/vendor/gopkg.in/square/go-jose.v1/signing.go:157 +0x64f
github.com/dmathieu/sabayon/vendor/github.com/xenolf/lego/acme.(*jws).signContent(0xc42038eb00, 0xc4203a0460, 0x7d, 0x9d, 0xc42018acf0, 0x99, 0x100)
	/tmp/tmp.Q2359EFByl/.go/src/github.com/dmathieu/sabayon/vendor/github.com/xenolf/lego/acme/jws.go:70 +0x100
github.com/dmathieu/sabayon/vendor/github.com/xenolf/lego/acme.(*jws).post(0xc42038eb00, 0xc42038f380, 0x33, 0xc4203a0460, 0x7d, 0x9d, 0x0, 0x88, 0x88)
	/tmp/tmp.Q2359EFByl/.go/src/github.com/dmathieu/sabayon/vendor/github.com/xenolf/lego/acme/jws.go:35 +0x67
github.com/dmathieu/sabayon/vendor/github.com/xenolf/lego/acme.postJSON(0xc42038eb00, 0xc42038f380, 0x33, 0x7511a0, 0xc42018acf0, 0x6f1f80, 0xc42018ac60, 0x0, 0x0, 0x0)
	/tmp/tmp.Q2359EFByl/.go/src/github.com/dmathieu/sabayon/vendor/github.com/xenolf/lego/acme/http.go:96 +0x153
github.com/dmathieu/sabayon/vendor/github.com/xenolf/lego/acme.(*Client).getChallenges.func1(0xc4200821b0, 0xc4200e6360, 0xc4200e6060, 0xc42001415a, 0x1d)
	/tmp/tmp.Q2359EFByl/.go/src/github.com/dmathieu/sabayon/vendor/github.com/xenolf/lego/acme/client.go:408 +0x1c6
created by github.com/dmathieu/sabayon/vendor/github.com/xenolf/lego/acme.(*Client).getChallenges
	/tmp/tmp.Q2359EFByl/.go/src/github.com/dmathieu/sabayon/vendor/github.com/xenolf/lego/acme/client.go:421 +0x113

@dmathieu: @xenolf suggests upgrading to the latest version of lego.


As a user, I want to filter search results by publication year or range of years so that I focus on works from a particular time period.

Notes for testing

placeholder text should display max/min values based on what's in the database
should be able to specify just a min (everything after date), just a max (everything before), or both
use same date in both to get items from a single year
entering a min greater than max should give an error message
entering a date outside the max/min in the db should give an error message

Searched "(iamb OR trochee) AND count" returned 200 works. 1559 and 1922 were pre-populated, which are the correct dates! Filtered with start date of 1891 (no end date), works dropped to 112. Filtered with end date of 1820, works dropped to 5. Search 1820-1820, returned the single work published that year. Received error message when I tried to filter outside of parameters (entered 1500 and 1930). However, the thumbnails and text results with italicized search terms did not display when filtering by year (in any iteration I tested). Once I entered anything in the publication year fields (min and/or max) the results no longer displayed the actual results, just the work bibliography.

I still didn't fix this properly.  Back in dev queue and not ready for testing.

searched "iamb AND trochee" from 1900 to 1920 (and with a min only and a max only; and within a single year). Three snippets work great! Tried entering a reverse range (1900 to 1780) and also received the appropriate error message.


Headless filtering

Add ability to declare filter fields within the wrapper.  This is useful for tables that do not have a header row.  This can be implemented like this:
<table ts-wrapper ts-filter-fields="field1,field2,field3">

    <!-- there are no headers -->

    <tbody> ... </tbody>
</table>

@rycornell Neat!  I like it. I made a small style suggestion above, please change that and also document this in the readme file and provide a demo in the example file.


duplicate symbols for architecture armv7 Error

I'm getting
ld: 301 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@wasa4587 that's an installation issue, we're trying to put in place a better info for this - https://github.com/react-community/react-native-maps/issues/1862
meanwhile you could try the instructions @alvelig put together here? https://github.com/react-community/react-native-maps/issues/1862#issuecomment-350421802
Thanks

@wasa4587 Try to build that project
https://github.com/alvelig/react-native-maps-pods-example
(or just from scratch), if it fails let me know. If it does not, rebuild your project around the working maps. (That's much easier than looking for the solution to your problem, trust me).


Add --additionalImports option (both lower and uppercase)

Yes tried it out. But you are right.  Bother the comment and the fail is not well handled.


Failed to init data in quantaxis cli

hello  guys,
I'm a freshman to quantaxis, when I wanted to init data in quantaxis cli with command "save all", I got errors as following.
What I was wrong , any advise could be appreciated.
(venv) D:\py_workspace\QUANTAXIS>quantaxis
d:\py_workspace\quantaxis\QUANTAXIS\QAFetch\QAhuobi_realtime.py:667: FutureWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future versi
on. Specify a dtype explicitly to silence this warning.
candleline=pd.Series(),
QUANTAXIS> save all
Traceback (most recent call last):
File "D:\py_workspace\QUANTAXIS\venv\Scripts\quantaxis-script.py", line 33, in
sys.exit(load_entry_point('quantaxis', 'console_scripts', 'quantaxis')())
File "d:\py_workspace\quantaxis\QUANTAXIS\QACmd_init_.py", line 686, in QA_cmd
cli.cmdloop()
File "D:\Program Files\Python\Python38\lib\cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "D:\Program Files\Python\Python38\lib\cmd.py", line 217, in onecmd
return func(arg)
File "d:\py_workspace\quantaxis\QUANTAXIS\QACmd_init_.py", line 340, in do_save
if QA_Setting().client.quantaxis.user_list.find(
AttributeError: 'Cursor' object has no attribute 'count'

Sorry, I am not the author, I can not help you.

Sorry, I am not the author, I can not help you.

Downgrade  python version to 3.6.8(win32), and upgrade pip to newest version, then the problem has been fixed.


Can you please add more examples ?

+1 Один прямоугольник не совсем информативно для примера.

I added some examples into README.
Also, this lib is based on Konva framework http://konvajs.github.io/docs/ So you can just take examples from there and adopt them for React usage.


Fixed descriptions of the prefix parameters

Descriptions of "--hass-discovery-prefix" and "--hass-entity-id-prefix" were inverted.

Linting issue needs to be fixed.


the lastest VisIt in Windows stystem can't run.

I used VisIt 3.2.2 in my Windows device and it can't run now. I wonder if some update of Windows caused it. Thanks for your applying.

Can you please be more specific? Which version of Windows are you running? What exactly happens when you try to start VisIt? Do any of VisIt's components start (gui, viewer)?   Are you using the Start-menu icon to launch or running from a command prompt?  Do any error messages pop up?
Can you try running the 'VisIt with debug logging' icon from the Start Menu and see if any  log files are generated.
If they are generated they will be in your 'home' directory as described in the File Locations of our docs.
You could also try uninstalling and then re-installing VisIt.

Thanks a lot!
My version is Windows 10 pro (21H2).
When I open "VisIt 3.2.2", it loads about 80% and close. None of VisIt's components starts (gui, viewer).
I try running the 'VisIt with debug logging' icon from the Start Menu, but it has the same problem and I can't find any log files.
I try uninstalling and re-installing VisIt in different versions, but it is useless.

Have you tried looking at the log files for Windows firewall (or any anti-virus programs you have) to see if VisIt's components have been blocked or quarantined? gui.exe, viewer.exe, mdsever.exe,
I don't have access at the moment to that particular version of Windows for testing.
A long while ago, we used to have problems with VisIt hanging at startup.  We were able to work around it by installing VisIt with fewer database plugins.  This can be accomplished from the installer gui, by expanding the 'Database Plugins' in the 'Choose components' dialog:

You can uncheck a few, or uncheck all, then re-check only those readers that support your needs.  Reducing the number of database plugin speeds startup, but still may not resolve your issue.
Would you be willing to try a console version of 3.2.2? All VisIt components will launch as console apps instead of windows-apps and it may display error messages to the command window that help diagnose why VisIt is crashing at startup.

@Ron-Wang, I finally gained access to a Windows 11 system with OS Build version 21H2, and could not duplicate your issue.  It was running OS build 22000.613, no issues. I ran windows updated to 22000.729, still no issues running VisIt. Then installed another windows update that moved the OS build to 22000.778, still can not duplicate.
Are you still experiencing problems?


[FEATURE] Upgrade NextJS version and migrate from pages to app router

Description
The Repo is currently using NextJS version 12 and the pages router, Need to upgrade to NextJS Version 13 and migrate from pages router to app router
Expected Behaviour

use NextJS Version 13
routing using app router

Current Behaviour

Uses NextJS Version 12
Routing done using pages router

Additional information
Migration Guide:
https://nextjs.org/docs/pages/building-your-application/upgrading/app-router-migration#migrating-from-pages-to-app

/assign
please assign me to this

Hi,
I can do that, let me know if you need my help

PR resolves this issue


Using sc-show fails due to pdk file not found

While testing the flipflop design, I came across issue where if I run the "sc-show -design flipflop", the siliconcompiler throws following error,

| INFO    | job0    | ---          | -   | Setting commandline arguments
| INFO    | job0    | ---          | -   | Displaying /Users/dadu/Projects/chipDesign/build/flipflop/job0/export/0/outputs/flipflop.gds
| INFO    | job0    | ---          | -   | Showing file /Users/dadu/Projects/chipDesign/build/flipflop/job0/export/0/outputs/flipflop.gds
| INFO    | job0    | ---          | -   | Writing manifest to /Users/dadu/Projects/chipDesign/build/_show/sc_manifest.tcl
| INFO    | job0    | ---          | -   | Writing manifest to /Users/dadu/Projects/chipDesign/build/_show/sc_manifest.json
| ERROR   | job0    | ---          | -   | File ../third_party/pdks/virtual/freepdk45/pdk/r1p0/setup/klayout/freepdk45.lyt was not found
| ERROR   | job0    | ---          | -   | File ../third_party/pdks/virtual/freepdk45/libs/NangateOpenCellLibrary/r1p0/lef/NangateOpenCellLibrary.macro.mod.lef was not found
It is due to the incorrect path in pdks/*.py files which points to incorrect pdkdir variable.
I found simple workaround to get going where

Clone the siliconcompiler Github Repo. It contains the thirdparty/pdks directory
Capture the absolute path of siliconcompiler repo
Replace all "../third_party" in all .json files of your project directory with the absolute path of the third_party directory
Re-run the sc-show

I believe the third_party dir from pip siliconcompiler package is missing and instructions are missing from the docs. I will work on finding permeant fix for the issue

Thank you for reporting this, and for proposing a solution!
We're looking into this issue, which happens when the package is installed using pip. Like you noted, it's looking for files in the third_party/ directory which is not currently packaged with the Python wheel.
As an alternative to replacing all of the paths in your JSON manifest files, you should also be able to set an SCPATH environment variable pointing to the siliconcompiler repository's root directory. You can read a bit more about how the system looks for files here; the logic used by the target() method is also used wherever we try to find a file using a path from the schema.
We've also recently pushed a change to make these PDK files optional, and we're hoping to release those fixes soon.

We've released a fix to this issue in v0.1.1, which is now uploaded to PyPI. You can update your installation with: pip install --upgrade siliconcompiler.
There will still be a couple error messages printed, but KLayout should successfully display the resulting GDS now. We'll include a further fix to silence those errors in a future release! Closing for now, but please feel free to re-open the issue if the fix doesn't work for you.


allowed all versions above 12 for those of us using tf.13

what

Describe high-level what changed as a result of these commits (i.e. in plain-english, what do these changes mean?)
Use bullet points to be concise and to the point.

why

Provide the justifications for the changes (e.g. business case).
Describe why these changes were made (e.g. why do these commits fix the problem?)
Use bullet points to be concise and to the point.

references

Link to any supporting github issues or helpful documentation to add some context (e.g. stackoverflow).
Use closes #123, if this PR closes a GitHub issue #123

Closed by #25 #27


Update installation instructions in README.md

As discussed in #82, I've updated README.md's development installation instructions and fixed a broken link to the live API documentation (it had /docs instead of /redoc).
Please feel free to let me know of changes I should make! This is my first contribution to your project and I want to respect your workflow however I can.

Fixed by PR #104


search is giving wrong results

When looking for BRAF I get BANCR as the first hit (instead of BRAF).
The same happens with almost any target query (PTEN giving NDFIP1 instead of PTEN as the best query).

examples:
http://beta.opentargets.io/search?src=q:PTEN
vs
http://targetvalidation.org/search?src=q:pten
or
http://beta.opentargets.io/search?src=q:braf
vs
http://targetvalidation.org/search?src=q:braf

obsolete


Birthdate required for Vermittlungscode

Hi All Together,
@TobseF thanks for the awesome bot. It looks like there is a little problem with the Vermittlungscode search. It now queries the date of birth field instead of Persons age. Is there any way to change this?

Example can be seen here (attachment)
116117.app.html.zip

for a quick and dirty solution you can change: /src/main/kotlin/de/tfr/impf/config/Config.kt Line 59 to
val personAge: String by lazyProperty()
and /src/main/kotlin/de/tfr/impf/LocationPage.kt Line 43 to
 fun enterAge(age: String) {
findBy("//input[@formcontrolname='birthdate']").sendKeys("" + age)
   }
the config. properties in /src/main/resources also needs to be updated with the birthdate
personAge = MM/DD/YYYY
this is just a quick and dirty solution that got the Vermittlungscode Search going again. the Birthdate field needs to be in MM/DD/YYYY Format.

Small update:
the Birthdate field seems to be localized, since im using chromium in the docker instance of Debian. (Which probably defaults to en-US) it shows me the field in MM/DD/YYYY Format

this doesnt happen, if im using Chromium on my Desktop, where its already set in the DE Language.

The problem is also that the Fiddler solution to get instant codes doesn't work anymore

Fixed it with:
https://github.com/TobseF/impf-bot/commit/e34d36e3ebd773c59360b86287be1b55b3ad4b41
please report it it works - had no chance to test it 😅
ℹ Keep in mind, you have to update your config and add the birthDate field.


gunicorn resource "config" option breaks things?

Does anyone have any thoughts how to debug this?
  gunicorn do
    app_module 'hostdb.wsgi'
    port 9999
    config "/root/hostdb.new/gunicorn_config.py"
  end

This results in the service failing due to too many respawns:
Jan 28 17:17:53 rcf-webapps init: hostdb.new main process (5075) terminated with status 1
Jan 28 17:17:53 rcf-webapps init: hostdb.new main process ended, respawning
...
Jan 28 17:17:55 rcf-webapps init: hostdb.new respawning too fast, stopped

# hostdb.new generated by poise-service for poise_service[/root/hostdb.new]

description "hostdb.new"

start on runlevel [2345]
stop on runlevel [!2345]

respawn
respawn limit 10 5
umask 022
chdir /root/hostdb.new
env DJANGO_SETTINGS_MODULE="hostdb.settings"
env PATH="/opt/rh/python27/root/usr/bin:/usr/lib/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin:/bin:/sbin:/usr/sbin:/usr/rcf-krb5/bin:/root/bin:/opt/chef/embedded/bin:/opt/chef/embedded/bin"
env LD_LIBRARY_PATH="/opt/rh/python27/root/usr/lib64"
env MANPATH="/opt/rh/python27/root/usr/share/man:"
env XDG_DATA_DIRS="/opt/rh/python27/root/usr/share"
env PKG_CONFIG_PATH="/opt/rh/python27/root/usr/lib64/pkgconfig"

exec /opt/chef/embedded/bin/ruby -e 'Process::UID.change_privilege("apache"); ENV["HOME"] = Dir.home("apache") rescue nil; exec(*["/root/hostdb.new/.virtualenv/bin/python", "-m", "gunicorn.app.wsgiapp", "--config", "/root/hostdb.new/gunicorn_config.py", "--bind", "<IP_ADDRESS>:9999", "hostdb.wsgi"])'

If I run gunicorn --config /root/hostdb.new/gunicorn_config.py --bind <IP_ADDRESS>:9999 hostdb.wsgi by hand, it works.
If I comment out the 'config' property in the resource definition, everything works (but without the desired configuration as indicated in the gunicorn config file of course).
The config file contents are:
syslog = True
syslog_prefix = "hostdb_gunicorn"
syslog_facility = "daemon"
loglevel = "info"
errorlog = "/var/log/gunicorn_error.log"
accesslog = "/var/log/gunicorn_access.log"
worker_class = 'gevent'

I have to believe then that something is wrong with the generated upstart init file?

Check file permissions maybe? Also make sure it works with SCL, not the system Python: scl enable python27 'gunicorn --config /root/hostdb.new/gunicorn_config.py --bind <IP_ADDRESS>:9999 hostdb.wsgi'

Everything's owned by Apache (the whole tree). Using SCL the command runs fine as well.
application '/root/hostdb.new' do
  owner 'apache'
  group 'apache'

  python '2.7' do
    provider :scl
  end

  git do
    user 'apache'
    group 'apache'
    repository 'git@gitlab.our.org:R701-Tools/r701-hostdb.git'
    # revision   'master'
    revision   'django18'
    deploy_key chef_vault_item('secrets', 'hostdb-deploy')['private_key']
  end

  virtualenv do
    system_site_packages true
    user 'apache'
  end

  python_package 'django' do
    version '1.8.8'
  end

  python_package 'django-tastypie'
  python_package 'MySQL-python'
  python_package 'python-ldap'
  python_package 'gevent'

  template '/root/hostdb.new/hostdb/settings.py' do
    source 'settings_webapp.py.erb'
    owner 'apache'
    group 'apache'
    mode '0644'
    variables({
                :username => chef_vault_item('secrets', 'hostdb')['username'],
                :password => chef_vault_item('secrets', 'hostdb')['password']
             })
  end

  django do
    migrate false
    collectstatic true
    debug true
  end

  cookbook_file "/root/hostdb.new/gunicorn_config.py" do
    owner 'apache'
    group 'apache'
    mode '0644'
  end

  gunicorn do
    app_module 'hostdb.wsgi'
    port 9999
    config "/root/hostdb.new/gunicorn_config.py"
  end

end

What happens if you run the /opt/chef/embedded/bin/ruby -e 'Process::UID.change_privilege("apache"); ENV["HOME"] = Dir.home("apache") rescue nil; exec(*["/root/hostdb.new/.virtualenv/bin/python", "-m", "gunicorn.app.wsgiapp", "--config", "/root/hostdb.new/gunicorn_config.py", "--bind", "<IP_ADDRESS>:9999", "hostdb.wsgi"])' command from a console? (you might need to run that whole thing with scl enable)

If I manually change the upstart config to have a final line of the following, it works:
exec /root/hostdb.new/.virtualenv/bin/python -m gunicorn.app.wsgiapp --bind <IP_ADDRESS>:9999 --config /root/hostdb.new/gunicorn_config.py hostdb.wsgi

ah HA
Log file permissions from a previous non-apache run!
Error: Error: '/var/log/gunicorn_error.log' isn't writable [IOError(13, 'Permission denied')]

Yeah, the weird Ruby shim is because older versions of Upstart didn't support specifying a user to run as, so you were testing running it as root there. Going to close this out :)

Thanks yet again, Noah. At least I know how to debug the upstart part if there's a next time. Looks like I need to spend some time with man -s 5 init to figure out how to have made that permission denied error visible somewhere.

I don't know if you are on Ubuntu 12.04 or EL6, but the version of Upstart in both is total rubbish. I use it by default because it seems like the least surprising thing to do but I would highly recommend Supervisord or Runit, or upgrading to an OS with a more recent Upstart :)

CentOS 6. Duly noted.


Question: how to access jQuery for new opened window

Issue by rinatio from Tuesday Oct 01, 2013 at 18:44 GMT
Originally opened as https://github.com/bitovi/funcunit.js/issues/21
Sometimes I'd like to use jQuery instead of F to execute some code in the "test app window" after F.open(). How can I access it? I guess F.win.$ refers to the app's jQuery, not F.jQuery, but F.jQuery executes inside qUnit window. I know I can use
F.jQuery('selector', F.win.document)

but is there something simpler? A shortcut?

Given the age of this latest comment, I'm going to assume that this has been resolved.  If it has not, please re-open.


new school add

강서공업고등학교(서울특별시 고육청)
https://o365.sen.go.kr/

@shizuya159159 First stage of verification passed, official domain is m.blog.naver.com as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision. Proof of domain ownership: https://m.blog.naver.com/ybstream/221927280156

@shizuya159159 I am sorry, this domain seems to represent an umbrella institution, Seoul Metropolitan Office of Education. It is not a specific single university or a college.
Please apply for free educational license with an official document which proves that you are a student. You can do it using "OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students.
I have to close the request without merging.
Thank you for your understanding!


Generalize Runtime and provide JSON handler

This PR generalizes the runtime to support other values than JSON, we (or downstream dependencies) can create new handlers for other formats: Dhall, Binary, XML, whatever...
I also refactored the code so that lambdas don't need anymore to handle the runtime client logic (see the examples), but can directly use the JSON handler (or other handlers) simplifying downstream logic.
The modules for the "Raw" client are still exposed and usable by downstream dependencies that need that level of control.

👍 Seems reasonable, perhaps an example of something non-JSON would be also nice then?

@andreyk0 : Thanks, good point, this also made me realize decode needs to be effectful, otherwise some decoders  (e.g. dhall's, which performs side effects to resolve imports) will fail. Will add the dhall decoder as an example and make decoding effectful

@andreyk0: thanks for the feedback! This is done now, for dhall

Note: I still have to handle output well. Assuming Show is probably not the best option. I think I'll need to add an "encode" parameter to the runtime for maximum flexibility. This way it will also be possible to write hybrid handlers (with input and output both strongly typed, but different)

This is complete now :) I revised the approach to use typeclasses as suggested by @barambani .
Now it successfully decodes and encodes both JSON and Dhall values.

Actually, looks like in the "real" lambda world input needs to be valid json, so at the very least i need to escape the text. Still wip

Sorry, I keep pushing to this branch because I want a clean master. Last commit makes the handler function effectful, otherwise the runtime would be very limited in what it can achieve :)

Recalling our discussion, is it the handle operation or the encoding that can be effectful ? In which phase the dhal file needs to be resolved ?

Actually both. The dhall is effectful in the decoding, but the lambda itself also needs to "do something" when it's not a pure data transformation (e.g. trigger a step function)

Right, makes sense.

I'm unsure whether I should use MonadError as in https://github.com/EarnestResearch/aws-lambda-haskell-runtime-client/pull/36/commits/1b5131b02b2fe2aa077dfa572c5936a846286f8e or I should instead give the caller access to the client via MonadReader.
If I give them access via MonadReader, I also need to remove the logic of posting responses and errors from the handler and hand that over to the client, otherwise we risk that the caller calls postError and the handler does a postResponse afterwards. Any advice?

Can you re-approve if you are happy with the changes?