'num of chunks' shown as a negative in web-interface

What did you do?
Looking at my prom web-interface http://<IP_ADDRESS>:9090/tsdb-status Number of Chunks is shown as -456475
$ curl -s localhost:9090/api/v1/status/tsdb | jq ".data.headStats"
{
  "numSeries": 1369489,
  "numLabelPairs": 74540,
  "chunkCount": -456479,
  "minTime":<PHONE_NUMBER>121,
  "maxTime":<PHONE_NUMBER>252
}

here's overview of my tsdb:
data# promtool tsdb list .
BLOCK ULID                  MIN TIME       MAX TIME       DURATION       NUM SAMPLES  NUM CHUNKS   NUM SERIES   SIZE
01G3N2603Y0PE40CKX6VRXSAB2<PHONE_NUMBER>122<PHONE_NUMBER>000  53h59m59.878s  471451639    3929643      38725        433448110
01G3TVJM9Q7DH1G3W2PAQGCR55<PHONE_NUMBER>122<PHONE_NUMBER>000  53h59m59.878s  457038293    3809713      40159        428479489
01G40MZEYGGEWVBMG9S1WN1CYX<PHONE_NUMBER>122<PHONE_NUMBER>000  53h59m59.878s  922604697    7740319      124242       671688701
01G46EC4WJKF96NBZRSK3KPSR8<PHONE_NUMBER>122<PHONE_NUMBER>000  53h59m59.878s<PHONE_NUMBER>   13524550     300887<PHONE_NUMBER>
01G4C7RPZE6GZHAFB0TTDW23FR<PHONE_NUMBER>122<PHONE_NUMBER>000  53h59m59.878s<PHONE_NUMBER>   13867490     260968<PHONE_NUMBER>
01G4J15ANBSWCQ4Y1M7F60WAY9<PHONE_NUMBER>122<PHONE_NUMBER>000  53h59m59.878s<PHONE_NUMBER>   13467860     131754<PHONE_NUMBER>
01G4QTHY9JFFRDGEESHS64R1SW<PHONE_NUMBER>122<PHONE_NUMBER>000  53h59m59.878s<PHONE_NUMBER>   13310693     127249<PHONE_NUMBER>
01G4XKYJ5S95FTYG8PHZSJW9FV<PHONE_NUMBER>122<PHONE_NUMBER>000  53h59m59.878s<PHONE_NUMBER>   13275555     124950<PHONE_NUMBER>
01G53DEHFQBH3C2VNKF7DZVMQJ<PHONE_NUMBER>122<PHONE_NUMBER>000  53h59m59.878s<PHONE_NUMBER>   24038886     7649212<PHONE_NUMBER>
01G596S0PH1X40106FMMNJFBJX<PHONE_NUMBER>122<PHONE_NUMBER>000  53h59m59.878s<PHONE_NUMBER>   70158281     34171232<PHONE_NUMBER>
01G5F0ASCEEEJ0FZKV1GQT0ES0<PHONE_NUMBER>122<PHONE_NUMBER>000  53h59m59.878s<PHONE_NUMBER>   67967636     32992100<PHONE_NUMBER>
01G5MJPFBSCXFHZQ0YZ1X5F7Y5<PHONE_NUMBER>000<PHONE_NUMBER>000  54h0m0s<PHONE_NUMBER>   68999158     33334540<PHONE_NUMBER>
01G5PQD59BKGWNGJFRN9JFE21Y<PHONE_NUMBER>122<PHONE_NUMBER>000  17h59m59.878s<PHONE_NUMBER>   22508451     11747030<PHONE_NUMBER>
01G5RN6RFPHWX35MDW8JDPW499<PHONE_NUMBER>122<PHONE_NUMBER>000  17h59m59.878s<PHONE_NUMBER>   23113953     12500476<PHONE_NUMBER>
01G5TC4CRENP7G2NA0J70996Q7<PHONE_NUMBER>000<PHONE_NUMBER>000  18h0m0s<PHONE_NUMBER>   22633013     12196284<PHONE_NUMBER>
01G5WGRG2Z2VAWABR12M1ADEKE<PHONE_NUMBER>121<PHONE_NUMBER>000  17h59m59.879s<PHONE_NUMBER>   22821238     12005950<PHONE_NUMBER>
01G5WYG4WJ87JK79PEGERQQQSQ<PHONE_NUMBER>000<PHONE_NUMBER>000  6h0m0s         449694097    7721930      4760195<PHONE_NUMBER>
01G5WYE90ZAP5YNEVNDXCRSWST<PHONE_NUMBER>000<PHONE_NUMBER>000  2h0m0s         149984245    2479712      1819318      356725823
01G5X5A0SJCCZ9920YG2DES4ZD<PHONE_NUMBER>121<PHONE_NUMBER>000  1h59m59.879s   149806749    2518409      1865448      366250244
01G5XC5R1J3305D6C37ZXZ3GX4<PHONE_NUMBER>121<PHONE_NUMBER>000  1h59m59.879s   149941492    2537842      1885470      369396192

and sum of chunks:
data# promtool tsdb list . | sed '1d' | awk '{ s+=$6 } END {print s}'
420424332

What did you expect to see?
expecting num of chunks (sum) to be positive value
What did you see instead? Under which circumstances?
.
System information
Linux 3.10.0-1160.15.2.el7.x86_64 x86_64
Prometheus version
prometheus, version 2.36.0 (branch: HEAD, revision: d48f381d9a4e68c83283ce5233844807dfdc5ba5)
  build user:       root@b3126bd1c115
  build date:       20220530-13:56:56
  go version:       go1.18.2
  platform:         linux/amd64

Prometheus configuration file
.

Alertmanager version
.

Alertmanager configuration file
.

Logs
.

restarted prometheus -> can't reproduce anymore...

just checked again, it is negative again:
$ systemctl status prometheus
● prometheus.service - The Prometheus monitoring system and time series database.
   Loaded: loaded (/usr/lib/systemd/system/prometheus.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2022-06-19 11:01:40 MSK; 2 days ago
     Docs: https://prometheus.io
 Main PID: 7205 (prometheus)
   CGroup: /system.slice/prometheus.service
           └─7205 /usr/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/opt/prometheus/data --storage.tsdb.retention.time=45d --enable-fea...
...

$ curl -s  localhost:9090/api/v1/status/tsdb  | jq '.data.headStats'
{
  "numSeries": 125051,
  "numLabelPairs": 8998,
  "chunkCount": -757793,
  "minTime":<PHONE_NUMBER>122,
  "maxTime":<PHONE_NUMBER>870
}

can someone look please?

I got the same issue with prometheus 2.37.0

That's weird. It seems to be based of this metric: prometheus_tsdb_head_chunks, which I assume is going negative too?

promtool tsdb list is for the DB. The negative value is for the HEAD. It is something worth investigating.
Can we get the values for
prometheus_tsdb_head_chunks_created_total
prometheus_tsdb_head_chunks_removed_total
prometheus_tsdb_head_chunks
Thanks

Hi!
Observed the same issue in Prometheus 2.45.0:
curl -s  localhost:9090/api/v1/status/tsdb  | jq '.data.headStats' {   "numSeries": 1752605,   "numLabelPairs": 27412,   "chunkCount": -14343,   "minTime":<PHONE_NUMBER>055,   "maxTime":<PHONE_NUMBER>246 }
Related metrics:
prometheus_tsdb_head_chunks -14339 prometheus_tsdb_head_chunks_created_total 1.163943301e+09 prometheus_tsdb_head_chunks_removed_total 1.16395764e+09
Regards.

Hello from the bug scrub.
Thanks for all the reports. This seems to be bug that's still around. @jcreixell will have a look.

I can have a look

Looking at the last report, seems like the negative number can indeed be derived from chunks created - chunks removed, somehow prometheus thinks we are removing more chunks than adding new ones.

prometheus_tsdb_head_chunks -14339
prometheus_tsdb_head_chunks_created_total 1.163943301e+09
prometheus_tsdb_head_chunks_removed_total 1.16395764e+09

I have found 2 places in the code base where the prometheus_tsdb_head_chunks_created_total is decreased:

https://github.com/prometheus/prometheus/blob/main/tsdb/head.go#L1576
https://github.com/prometheus/prometheus/blob/main/tsdb/head_wal.go#L469

I will focus on these for the investigation.
To help reproduce the issue, it would be helpful to get an example prometheus config which causes this, as well as a screenshot graph on how the metric evolves over time and becomes negative, logs would also be useful (I am interested in seeing when and how the metric gets out of sync and whether it eventually recovers or stays that way).


Reunion Push Notifications Public API spec

👋 @hulumane, I see this is marked [draft], are you looking for feedback yet?

@riverar Yes we are looking for active feedback. There are still a few loose ends with the GetActivationArgs pattern that needs to be discussed.

@andrewleader @danielayala94 @sharath2727 Please note the first Public API draft

Where does this work land, in terms of the Roadmap (https://github.com/microsoft/ProjectReunion/blob/main/docs/roadmap.md)?

Where does this work land, in terms of the Roadmap (https://github.com/microsoft/ProjectReunion/blob/main/docs/roadmap.md) timeline?

@riverar - we are tentatively targeting this to land by the end of 2021. As soon as our plans become more solidified, we will get it added to the official roadmap. Of course, this is not final yet, but we plan to keep the community updated with this.

@ShawnSteele This needs to go through the Public API review process


feat: introduce basic erd

Looks good to me.
Probably we need to normalize person and language within the entries, so we don't have troubles to select and aggregate the data later on. So a relation between ExposureEntry and PersonValue as well as LanguageExposure and LanguageValue needs to be created later on.

I explicitly didn't add this relation, because custom values will be allowed for both cases. I think it's the easiest way like this. If you have a better idea on how to model this with allowing custom values, let me know.


deprecate --backup option

Refs #3887
As this was an internal/non-user facing option I didn't think there were any other changes needed in the config module as part of this deprecation, but please let me know if I missed anything

Sorry that the original issue was unclear about my intention, but I would prefer to remove this and make it a hard error rather than keep it.

Sorry that the original issue was unclear about my intention, but I would prefer to remove this and make it a hard error rather than keep it.

No worries! Will update this accordingly

Thanks!


Add Support for Arabic language and smiliars of UTF-8 languages...

@ziggi it'd be great if you merged this repo into yours... (it supports Arabic and Farsi)
https://github.com/AmyrAhmady/FarsiType

Just add character codes for Arabic and Farsi fonts here: https://github.com/ziggi/rustext/blob/master/src/converter.cpp
I can't do this.


Problem with getting SiteSettings from the OwinMiddlewares

We've created an issue on codeplex, but since it seems to be a 'bug' after 1.9.2, I'm posting this here on Github with a link to the original post.
Anyone who has some ideas about this issue?
http://orchard.codeplex.com/discussions/655411#post1476792

Anyone? Seems to be related to Autofac I guess...

Long story short: you can't use directly injected dependencies in the middleware's delegate but you need to access the ambient WorkContext.
This is not a bug, though something that's not trivial to pinpoint: Owin middlewares are self-contained delegates that will run on a request. The IOwinMiddlewareProvider they are created in is only their factory.
This means that the middlewares should run independently of their provider, i.e. they also need to use a work context scope independent of that of their provider's.
For an example see: https://orcharddojo.net/blog/writing-an-orchard-owin-middleware

We're able to do it like this right now:
using (var scope = _workContextAccessor.CreateWorkContextScope()) {
   var settings = scope.Resolve<ISiteService>().GetSiteSettings();
}

So, indeed using a scope.
And I could get my specific settings like this:
var workContext = _workContextAccessor.GetContext();
if (workContext != null) return;

// If null, create a new WorkContextScope
var workContextScope = _workContextAccessor.CreateWorkContextScope();
workContext = workContextScope.WorkContext;

var wsFederationSettings = workContext.CurrentSite.As<WsFederationSettingsPart>();

Any problem with these solutions you think?

You don't need to create a new WC as there should be one at that point already (i.e. you can always use _workContextAccessor.GetContext(); or inject Work<T> types), but otherwise good. If I'm mistaken and you do see the WC being null for some reason then I'd think it's a bug and please come back here to elaborate.

Yeah, this line:
_workContextAccessor.GetContext()
is giving me NULL.
The same counts for every interface I'm injecting through the constructor, e.g.:
IAuthenticationService
IContentManager

They are throwing an exception during initializing of the component.

Where exactly are you calling GetContext()? Because it should happen inside the app delegate, not outside of it anywhere in the provider.

Yes, that is what I do:
public IEnumerable<OwinMiddlewareRegistration> GetOwinMiddlewares()
        {
            return new[]
            {
                new OwinMiddlewareRegistration
                {
                    Priority = "9",
                    Configure = app => {

                        var workContext = _workContextAccessor.GetContext();
                        if (workContext != null) return;

                        using (var scope = _workContextAccessor.CreateWorkContextScope()) {
                            var siteSettings = scope.Resolve<ISiteService>().GetSiteSettings();
                        }

And it returns null. (version 1.10.1)

Hmm, that's strange, I don't know why this happens as it shouldn't....

I can confirm that it indeed returns null. The reason is that the OWIN middleware components are invoked outside the scope of a WorkContectScope. If at this time there was actually an ambient HttpContext.Current available, it would be fine. However, no such HTTP context is available this early in the pipeline (or perhaps because the code runs on a different thread).
So it seems that either each individual OWIN middleware provider needs to create a work context scope themselves as Daniel is doing, or we need to update the Activate method on the DefaultOrchardShell to wrap the middle ware invocations with an actual work context scope, as is also done a few lines below in that method:

I just created PR #7161 that implements what I propose above. Using this, IHttpContextAccessor.GetContext() will return a non-null IWorkContextScope (being an instance of CallContextScopeImplementation since there is no real HttpContext when this executes.)

Thanks for the follow up, Sipke!


feat: add OMKG token

Hi Alex, could you add it's coingecko ID under tokenID and the .svg please : )

added the svg and coinGecko ID but also noticed that some of the data from the ITS was wrong and we manually fixed it.


Transaction Middleware

Problem
I need to forward user session information to the database for auditing purposes. I figured it would be great if I could use set_config() and current_setting() outlined in the hasura documentation here: hasura auditing. This works by executing a single Statement at the beginning of every transaction:
BEGIN;
SET LOCAL "hasura.user" = '{... various session variables}'
UPDATE post SET published = true, ... WHERE condition;
COMMIT;

This local variable can then be used inside a update trigger for example to save/log the user initiating the update/create/...
This does not seem to be possible with the way prisma transactions/middleware is implemented.
Using an $executeRaw bundled together with my query in a transaction block the following way does not work as I expect it to:
const setSession = prisma.$executeRaw(`SET local "hasura.user" = '{"x-hasura-role": "role"}';`);
const query = prisma.post.create({ ... });
const result = await prisma.$transaction([ setSession, query]);

Produces the postgres logs below. The SET LOCAL statement is executed before the BEGIN.
Suggested solution
Therefore I would need to execute a single raw query at the beginning of every transaction.
Optimally there would be transaction based middleware similar to how the current middleware prisma.$use works.
Instead of getting called on every query it would be called with the start and end of every transaction.
Something like: prisma.$useTransaction() or as a flag prisma.$use(..., oncePerTransaction)
This should let one execute Statements inside the BEGIN;... COMMIT; block.
Alternatives
Fix transactions to include raw queries like SET LOCAL inside the BEGIN; COMMIT; block.
Additional context
Postgres Logs
postgres_1        | 2020-12-03 07:31:31.081 UTC [32] LOG:  execute s0: SET local "hasura.user" = '{"x-hasura-role": "role"}';
postgres_1        | 2020-12-03 07:31:31.081 UTC [32] WARNING:  SET LOCAL can only be used in transaction blocks
postgres_1        | 2020-12-03 07:31:31.090 UTC [33] LOG:  statement: SET search_path = "public"; SET NAMES 'UTF8';
postgres_1        | 2020-12-03 07:31:31.091 UTC [33] LOG:  statement: BEGIN
postgres_1        | 2020-12-03 07:31:31.092 UTC [33] LOG:  execute s1: SELECT "public"."User"."id" FROM "public"."User" WHERE "public"."User"."id" = $1 OFFSET $2
postgres_1        | 2020-12-03 07:31:31.092 UTC [33] DETAIL:  parameters: $1 = '1', $2 = '0'
postgres_1        | 2020-12-03 07:31:31.093 UTC [33] LOG:  execute s2: INSERT INTO "public"."Post" ("title","content","published","authorId") VALUES ($1,$2,$3,$4) RETURNING "public"."Post"."id"
postgres_1        | 2020-12-03 07:31:31.093 UTC [33] DETAIL:  parameters: $1 = 'test', $2 = 'test', $3 = 'f', $4 = '1'
postgres_1        | 2020-12-03 07:31:31.097 UTC [33] LOG:  execute s3: SELECT "public"."Post"."id", "public"."Post"."title", "public"."Post"."content", "public"."Post"."published", "public"."Post"."authorId" FROM "public"."Post" WHERE "public"."Post"."id" = $1 LIMIT $2 OFFSET $3
postgres_1        | 2020-12-03 07:31:31.097 UTC [33] DETAIL:  parameters: $1 = '13', $2 = '1', $3 = '0'
postgres_1        | 2020-12-03 07:31:31.097 UTC [33] LOG:  statement: COMMIT

This would be a great feature and valuable in many other circumstances as well.
Transaction are quite common - and being able to put middleware around it would be really useful.

Related: https://github.com/prisma/prisma/issues/5128


add grunt, jshint, and npm test script

Adding JSHint via Grunt, and npm test script.
This will help ensure we have valid and safe JS, especially through proposed changes.
Once this is in place, we can get CI integration and badges, e.g. Travis CI.

Thanks for the PR. Given that we're just looking at linting here, can you replace the Grunt setup with a straight npm script?

ping @adjohnson916 :)

@addyosmani @arthurvr I've switched this to a simple npm script using vanilla jshint as a dependency, removing the grunt file and dependency.
I've rebased the same branch and force pushed, though its name which includes "grunt" is now a misnomer, rather then create a new branch and PR, because it keeps things together better.
Note that there are JSHint warnings in the current code. If we merge this, I can follow up with fixes for that. Would you then consider adding CI to check this, e.g. Travis CI?

@EvanCarroll Thanks for merging!

NP. patches will be easier to get in now. I'm going to help out with the project. Thank for the patience.


⚠ File access (beta) has degraded performance

In 98d56cb, File access (beta) (https://beta.fyle.uk/file/fish) experienced degraded performance:

HTTP code: 503
Response time: 9174 ms

Resolved: File access (beta) performance has improved in c8a0cb1.


PDFs are ANSI A (letter) dimensions regardless of width and height entered

Exported a few PDFs and I noticed that they all are sized at ANSI A 8.5x11" (letter). This line of code may be to blame. It looks like there are only a few options for the paper size in the jsPDF spec, though it appears you can specificy a custom size in this case.
Here are a few example PDFs where the filename was the input values in inches.
Changing to millimeter mode switches the output paper size to A4.

Since the jsPDF documentation doesn't say anything about custom page sizes, I purposely set the output to letter for inches and A4 for millimeters. Thanks to the Stack Overflow post you linked to, I'm now using arbitrary page sizes.

Excellent! Glad to help.


Add project planning voting boxplot generation script

Description

No issue for this.
This PR adds a script which can be used to create the effort/impact boxplots for yearly project planning. Instructions for how the input spreadsheet should be constructed are defined within the new directories.
An example output from the script is also included. If folks have any comments or suggestions for improvements of the graph itself, please feel free to add them!

Testing Instructions

Due to the nature of the voting, this presently can only be tested by Openverse maintainers.

Run pipenv install in the new directory
Download the voting spreadsheet (access restricted) as a ".xlsx" file (default location is data/votes.xlsx within the project_planning directory).
Run pipenv run python graph_project_voting.py and verify the files were generated in outputs/

Checklist

[x] My pull request has a descriptive title (not a vague title likeUpdate index.md).
[x] My pull request targets the default branch of the repository (main) or a parent feature branch.
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[ ] I added or updated tests for the changes I made (if applicable).
[x] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no visible errors.
[ ] I ran the DAG documentation generator (if applicable).

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

LGTM, the contents of the README.md could also be a page in the docs but this is okay for small independent utils that are not directly a part of the Openverse project.

That's....a really good idea 😮 🤔 I'll definitely think about moving all our project planning stuff into the public docs once the process for this year is over! It could be helpful to other groups!


Remove Gradle afterEvaluate block to include lifecycle dependencies

As part of migrating the plugins, we've needed to add in a Gradle afterEvaluate block that includes some extra libraries in cases where we're on older versions of Flutter and they're not exposed by the engine: https://gist.github.com/blasten/78e97b1d97a736d7e8dcc3f520cea3f0.
We've chosen to do this instead of including them in just plain old dependencies because plugins really shouldn't be specifying these dependencies themselves. We're only including them at all to prevent compile failures on older Flutter versions.
Once the missing dependency fix rolls to Flutter stable we should remove them.

This is now unblocked. See also flutter/flutter#47153.

Closing this. #47153 will track the remaining work.


prob-establish-log.csv not working properly

The pest file does not report the values for the final column for AvgProbEst.  They are empty cells.
Also, the pest file looks fine (except issue above) for a single cell sim.  But for an entire landscape, the pest file has more than one entry for each spp*climate region.  See attached jpg  There should be one entry for AmBeech in CLIM01, but there are 38 before it swiches to CLIM02.

Fixed, not tested.  New installer (v0.7) available.

You fixed the second problem (hurray!), but not the first one.  This one.
The pest file does not report the values for the final column for AvgProbEst. They are empty cells.

Extra column removed.  New installer.

I'm confused; I don't understand why you removed a column.  We are missing at least one column of values.  In previous versions of NECN, we had a column marked "OtherAdj" and "ProbEst", which are technically both missing from the output file.  The p-est output file should look like this:
Time |Species| ClimateRegion | SWHC |AvgTempMult | AvgMinJanTempMult | AvgSoilMoistureMult | OtherAdjustMult | AvgProbEst

SWHC is no longer a column.


Feature: fix a number of redirect handling issues

When requesting an eventsource endpoint and defining custom, sensitive headers, such as Authorization and Cookie, these headers should not be forwarded when redirecting to a different origin than the original.
While looking in to fixing this, I discovered that the current redirect handling also does not support relative URLs in the Location header (eg Location: /some/other/path), nor does it set any limit on the maximum number of redirects. Instead of attempting to patch all these shortcomings, I feel we are better suited by utilizing the follow-redirects module, which handles all of these cases and is widely used.

We should however release this as a major update since webpack configs may need to be updated.

I don't think there should be any config changes necessary, but given I am not 100% sure, I agree with your point. Given this is patching a security issue, I really want to get a patch release out to ensure people don't have to upgrade to a new major to be covered. I have opened #273 to address only the headers issue, leaving this one as a general redirect handling PR.
Would you mind reviewing that one, @joeybaker ?

Looks like this perhaps got left out in the cold. Any idea if this PR will get merged in?

eventsource@^3 has a completely new implementation based on fetch() which should automatically take care of redirects.


fix: No active package very_good_cli.

Description
I am trying to install/activate "very_good_cli" in my mac, using dart pub global activate very_good_cli but follwing error:
+ _fe_analyzer_shared <IP_ADDRESS>s)
+ analyzer 6.4.1
+ archive 3.4.10
+ args 2.4.2
+ async 2.11.0
+ boolean_selector 2.1.1
+ checked_yaml 2.0.3
+ cli_completion 0.5.0
+ cli_util 0.4.1
+ collection 1.18.0
+ convert 3.1.1
+ coverage 1.7.2
+ crypto 3.0.3
+ csslib 1.0.0
+ equatable 2.0.5
+ ffi 2.1.2
+ file 7.0.0
+ frontend_server_client 3.2.0
+ glob 2.1.2
+ html 0.15.4
+ http 1.2.1
+ http_multi_server 3.2.1
+ http_parser 4.0.2
+ io 1.0.4
+ js 0.7.1
+ json_annotation 4.8.1
+ lcov_parser 0.1.2
+ lints 3.0.0
+ logging 1.2.0
+ markdown 7.2.2
+ mason 0.1.0-dev.52
+ mason_logger 0.2.12
+ matcher 0.12.16+1
+ meta 1.12.0
+ mime 1.0.5
+ mustache_template 2.0.0
+ node_preamble 2.0.2
+ package_config 2.1.0
+ pana 0.22.1 (0.22.2 available)
+ path 1.9.0
+ platform 3.1.4
+ pointycastle 3.7.4
+ pool 1.5.1
+ process 5.0.2
+ pub_semver 2.1.4
+ pub_updater 0.4.0
+ pubspec_parse 1.2.3
+ retry 3.1.2
+ safe_url_check 1.1.2
+ shelf 1.4.1
+ shelf_packages_handler 3.0.2
+ shelf_static 1.1.2
+ shelf_web_socket 1.0.4
+ source_map_stack_trace 2.1.1
+ source_maps 0.10.12
+ source_span 1.10.0
+ stack_trace 1.11.1
+ stream_channel 2.1.2
+ string_scanner 1.2.0
+ tar 1.0.4
+ term_glyph 1.2.1
+ test 1.25.2
+ test_api 0.7.0
+ test_core 0.6.0
+ typed_data 1.3.2
+ universal_io 2.2.2
+ very_good_cli 0.20.0
+ very_good_test_runner 0.2.0
+ vm_service 14.2.0
+ watcher 1.1.0
+ web 0.5.1
+ web_socket_channel 2.4.4
+ webkit_inspection_protocol 1.2.1
+ win32 5.3.0
+ yaml 3.1.2
Could not find a file named "pubspec.yaml" in "/Users/tsvillain/.pub-cache/hosted/pub.dev/very_good_cli-0.20.0".

And if trying to run it using dart pub global run very_good_cli:very_good create which shoud be used if we this is not possible (e.g. in CI)
Output:
No active package very_good_cli.

After cleaning dart global cache and reinstalling using using sudo dart pub global activate very_good_cli
When I try to create a project. It's not working please see the log below:
tsvillain@Tekeshwars-MacBook-Air Desktop % sudo dart pub global activate very_good_cli
Password:
   Woah! You appear to be trying to run flutter as root.
   We strongly recommend running the flutter tool without superuser privileges.
  /
📎
Package very_good_cli is currently active at version 0.20.0.
The package very_good_cli is already activated at newest available version.
To recompile executables, first run `dart pub global deactivate very_good_cli`.
Installed executable very_good.
Activated very_good_cli 0.20.0.
tsvillain@Tekeshwars-MacBook-Air Desktop % very_good create hello
No active package very_good_cli.

Is that bug fixed?

No, it dropped the idea to use this package.

Hi @tsvillain! Thanks for opening an issue 💙 and sorry for the late reply. I am not able to reproduce this behaviour. Can you provide an output of your flutter doctor? (cc @tsvillain )

Hey @tsvillain  since this seems to be silent for a while, I am closing this for now. If anything comes up, don't hesitate on telling.


setup.py: Enhance to print stdout and stderr messages.

We want to see the stdout and stderr messages if the python install.py fails,
This PR is to capture stdout and stderr to check the details of the issue https://github.com/junaruga/rpm-py-installer/issues/260 .
Python 3.11
Success case
$ source venv/bin/activate
(venv) $ pip install .
Processing /home/jaruga/var/git/rpm-py-installer
  Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for rpm-py-installer, since package 'wheel' is not installed.
Installing collected packages: rpm-py-installer
  Running setup.py install for rpm-py-installer ... done
Successfully installed rpm-py-installer-1.2.0

[notice] A new release of pip available: 22.2.2 -> 22.3.1
[notice] To update, run: pip install --upgrade pip

I added a unit test to test pip install ..

You can test the new test with command below on your local.
$ tox -e py311 -- -s "tests/test_integration.py::test_pip_install"

Rebasing on the latest master branch to pass the CI.

Rebased. Now the output in the error cases are blow on Python 3.11.0 on Fedora 36.
Error case without verbose option
(venv) $ pip install --use-pep517 .
Processing /home/jaruga/var/git/rpm-py-installer
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [63 lines of output]
      running egg_info
      writing rpm_py_installer.egg-info/PKG-INFO
      writing dependency_links to rpm_py_installer.egg-info/dependency_links.txt
      writing top-level names to rpm_py_installer.egg-info/top_level.txt
      reading manifest file 'rpm_py_installer.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files found matching 'test-requirements.txt'
      no previously-included directories found matching 'tests'
      adding license file 'LICENSE'
      writing manifest file 'rpm_py_installer.egg-info/SOURCES.txt'
      Traceback (most recent call last):
        File "/home/jaruga/var/git/rpm-py-installer/venv/lib64/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/home/jaruga/var/git/rpm-py-installer/venv/lib64/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/jaruga/var/git/rpm-py-installer/venv/lib64/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-dz0dn_fb/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-dz0dn_fb/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-dz0dn_fb/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 485, in run_setup
          self).run_setup(setup_script=setup_script)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-dz0dn_fb/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 117, in <module>
        File "/tmp/pip-build-env-dz0dn_fb/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-dz0dn_fb/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-dz0dn_fb/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-dz0dn_fb/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-dz0dn_fb/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 1208, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-dz0dn_fb/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 80, in run
        File "<string>", line 43, in install_rpm_py
      Exception:
      Command: /home/jaruga/var/git/rpm-py-installer/venv/bin/python3 install.py
      Return Code: [1]
      Stdout: [[INFO] Installing...
      [INFO] Created working directory '/tmp/tmpn16dliph-rpm-py-installer'
      [INFO] Downloading archive. 'https://github.com/rpm-software-management/rpm/archive/rpm-4.18.0-release.tar.gz'.
      ]
      Stderr: [Traceback (most recent call last):
        File "/home/jaruga/var/git/rpm-py-installer/install.py", line 2224, in <module>
          main()
        File "/home/jaruga/var/git/rpm-py-installer/install.py", line 2219, in main
          app.run()
        File "/home/jaruga/var/git/rpm-py-installer/install.py", line 46, in run
          raise InstallError(message)
      InstallError: RPM Python binding failed to install with unknown reason.
      ]

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip available: 22.2.2 -> 22.3.1
[notice] To update, run: pip install --upgrade pip

Error case with verbose option
(venv) $ RPM_PY_VERBOSE=true pip install --use-pep517 -v .
Using pip 22.2.2 from /home/jaruga/var/git/rpm-py-installer/venv/lib64/python3.11/site-packages/pip (python 3.11)
Processing /home/jaruga/var/git/rpm-py-installer
<..snip..>
  Exception:
  Command: /home/jaruga/var/git/rpm-py-installer/venv/bin/python3 install.py
  Return Code: [1]
  Stdout: [running build
  running build_py
<...snip...>
  [DEBUG] CMD: /home/jaruga/var/git/rpm-py-installer/venv/bin/python3 setup.py -v install
  [DEBUG] CMD Return Code: [0], Stdout: [None], Stderr: [b'/tmp/pip-build-env-hvqzxh3l/overlay/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.\n  warnings.warn(\n/tmp/pip-build-env-hvqzxh3l/overlay/lib/python3.11/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.\n  warnings.warn(\nzip_safe flag not set; analyzing archive contents...\nrpm.__pycache__._rpm.cpython-311: module references __file__\n']
  [DEBUG] CMD: cd /tmp/tmpbb8xzf4y-rpm-py-installer
  [DEBUG] CMD: /home/jaruga/var/git/rpm-py-installer/venv/bin/python3 -m pip --version
  [DEBUG] CMD Return Code: [1], Stdout: [b''], Stderr: [b'/home/jaruga/var/git/rpm-py-installer/venv/bin/python3: No module named pip\n']
  [DEBUG] CMD: cd /home/jaruga/var/git/rpm-py-installer
  ]
  Stderr: [Traceback (most recent call last):
    File "/home/jaruga/var/git/rpm-py-installer/install.py", line 2224, in <module>
      main()
    File "/home/jaruga/var/git/rpm-py-installer/install.py", line 2219, in main
      app.run()
    File "/home/jaruga/var/git/rpm-py-installer/install.py", line 46, in run
      raise InstallError(message)
  InstallError: RPM Python binding failed to install with unknown reason.
  ]

  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /home/jaruga/var/git/rpm-py-installer/venv/bin/python3 /home/jaruga/var/git/rpm-py-installer/venv/lib64/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpotp38q71
  cwd: /home/jaruga/var/git/rpm-py-installer
  Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip available: 22.2.2 -> 22.3.1
[notice] To update, run: pip install --upgrade pip

OK case
(venv) $ pip install .
Processing /home/jaruga/var/git/rpm-py-installer
  Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for rpm-py-installer, since package 'wheel' is not installed.
Installing collected packages: rpm-py-installer
  Running setup.py install for rpm-py-installer ... done
Successfully installed rpm-py-installer-1.2.0

[notice] A new release of pip available: 22.2.2 -> 22.3.1
[notice] To update, run: pip install --upgrade pip


Uncaught TypeError: Cannot read property 'dartClass' of undefined

Having trouble registering a propertyChanged observer in Polymer.dart (dart 1.18.1). The method pageChanged is never called when I run pub serve and surf to http://localhost:......web/index.html#/home. I suspect it is not registered in the first place.
Error:
Uncaught TypeError: Cannot read property '__dartClass__' of undefined
  Polymer.Dart.InteropBehavior._propertyChanged
  Polymer.Bind._modelApi._propertySetter
  Polymer.Base._addFeature._notifyPath
  (anonymous function)
  Polymer.Base._addFeature._notifyListener
  (anonymous function)
  Polymer.Base._addFeature.fire
  Polymer.Base._addFeature._notifyPathUp
  Polymer.Base._addFeature._notifyPath
  Polymer.Base._addFeature.set
  Polymer.__routeQueryParamsChanged
  Polymer.Base.extend._complexObserverEffect
  Polymer.Base._addFeature._complexObserverPathEffect
  Polymer.Base._addFeature._pathEffector
  Polymer.Base._addFeature._notifyPath
  Polymer.Base._addFeature.set
  Polymer.__tailQueryParamsChanged
  Polymer.Base.extend._complexObserverEffect
  Polymer.Base._addFeature._complexObserverPathEffect
  Polymer.Base._addFeature._pathEffector
  Polymer.__setMulti
  Polymer.__tryToMatch
  Polymer.Base.extend._complexObserverEffect
  Polymer.Bind._modelApi._effectEffects
  Polymer.Bind._modelApi._propertySetter
  Polymer.Bind._modelApi.__setProperty
  Polymer.Base._addFeature._applyEffectValue
  Polymer.Base.extend._annotationEffect
  Polymer.Bind._modelApi._effectEffects
  Polymer.Bind._modelApi._propertySetter
  setter
  (anonymous function)
  Polymer.Base._addFeature._flushHandlers
  Polymer.Base._addFeature._afterClientsReady
  Polymer.Base._addFeature._ready
  Polymer.Base._addFeature._tryReady
  Polymer.Base._addFeature._initFeatures
  Polymer.Base.createdCallback
  (anonymous function)
  registerDartTypeUpgrader
  (anonymous function)

See https://github.com/pjjjv/Akepot/commit/dbf85b3bae3647fbfea78ff6e0a3807fd6e3de1d file app_akepot.dart.

Please can you provide more context? Pubspec.yaml to begin with and snippets of code could help diagnose the problem.

Here's the pubspec.yaml:
https://github.com/pjjjv/Akepot/blob/dbf85b3bae3647fbfea78ff6e0a3807fd6e3de1d/pubspec.yaml. Full source code was linked to above.

The error only occurs when I add tail="{{subroute}}" to the app-route element in app-akepot.html.
Some code snippets:
<link rel="import" href="../../packages/polymer/polymer.html">

<dom-module id="app-akepot">

  <link rel="import" type="css" href="app_akepot.css">
  <template>

Abba

    <login-screen id="loginscreen" layout vertical center-center fit class="{{(signedIn && readyDom) ? '' : 'show'}}" signedin="{{signedIn}}"></login-screen>

    <competences-service id="service" user="{{user}}" signedin="{{signedIn}}" readydom="{{readyDom}}"></competences-service>

    <app-location route="{{route}}" use-hash-as-path></app-location>
    <app-route
        route="{{route}}"
        pattern="/:page"
        data="{{routeData}}"
        tail="{{subroute}}"></app-route>

    <iron-pages role="main" selected="[[page]]" attr-for-selected="name">
      <page-home name="home"></page-home>
      <page-edit name="edit"></page-edit>
      <page-not-found name="not_found"></page-not-found>
    </iron-pages>

    <paper-toast id="toast" text="Connection timed out. Showing limited messages.">
      <paper-button dismissive tabindex="0" autofocus class="flat-button">Retry</paper-button>
    </paper-toast>

  </template>

</dom-module>

@HtmlImport('app_akepot.html')
library akepot.lib.app_akepot;

import 'package:polymer/polymer.dart';
import 'package:web_components/web_components.dart';
import 'package:akepot/login_screen.dart';
import 'package:akepot/competences_service.dart';
import 'package:akepot/pages/page_home.dart';
import 'package:akepot/pages/page_edit.dart';
import 'package:akepot/pages/page_not_found.dart';
import 'package:polymer_elements/app_route.dart';
import 'package:polymer_elements/app_location.dart';
import 'package:polymer_elements/iron_pages.dart';

@PolymerRegister('app-akepot')
class AppAkepot extends PolymerElement {
  @property bool signedIn;
  @property bool readyDom;
  @property User user;
  @property CompetencesService service;
  @Property(observer: 'pageChanged', notify: true) String page;

  AppAkepot.created() : super.created();

  static const int MIN_SPLASH_TIME = 1000;
  static const Duration SPLASH_TIMEOUT =  const Duration(milliseconds: MIN_SPLASH_TIME);

  void ready () {
    service = $$('#service');
  }

  @Observe('routeData.page')
  void routePageChanged(String page) {
    if (page == null || page == ""){
      page = 'home';
    }
    this.page = page;
  }

  @reflectable
  void pageChanged(String page, String oldValue) {
    // load page import on demand.
    Polymer.importHref('pages/page_' + page + '.html');
  }
}

From slack. app_akepot.htmlhas in <app-route ...> bindings to properties route, routeData and subroute I don't find them in app_akepot.dart, normally shouldn't they be defined here or?

I believe that solves it. Thanks for your response in slack.
Totally couldn't make that up from the error message though. Can that be fixed?

I haven't seen that warnings for this could be activated, maybe there are some option in js polymer.

Sorry, I checked superficially. Adding subroute to the dart file does not solve it.
The error message is thrown in:

Here's  with the debugger variables. I do have an event "signedIn" elsewhere in my code.

    Polymer.Dart.InteropBehavior = {
      // Secret hook into property changes. Pretty hacky but its more efficient
      // than using a JsProxy object for the element.
      _propertyChanged: function(path, newValue, oldValue) {   path = "signedIn", newValue = false, oldValue = undefined
1562
        var parts = this._getPathParts(path);  parts = []
1563
        var prop = parts.splice(parts.length - 1, 1)[0];    prop = "signedIn"
1564

1565
        // Get the model which is being updated.
1566
        var thisArg = this.get(parts);   thisArg = competences-service#service.style-scope.app-akepot, parts = []
1567

1568
        // If the property to update is an array key, we need to get the index
1569
        // for that item instead.
1570
        if (prop.charAt(0) == '#') {  prop = "signedIn"
1571
          // Ouch, O(n) operation :(. Also doesn't support duplicates :(.
1572
          prop = thisArg.indexOf(Polymer.Collection.get(thisArg).getItem(prop));   prop = "signedIn", thisArg = competences-service#service.style-scope.app-akepot
1573
        }

        // Grab the __dartClass__ if we already have one
        thisArg = thisArg.__dartClass__ || thisArg;

        // Finally, update things on the dart side.
        Polymer.Dart.propertyChanged(thisArg, prop, newValue);
      },

It gets into the same trouble when path = "route.__queryParams".

The newpolymer branch contains the latest and update version of the code https://github.com/pjjjv/Akepot/tree/newpolymer ?

Try initializing fields bounded to app-route tag attributrs with {}.

@jonboj correct

@dam0vm3nt Indeed, I debugged the propertyChanged function. After I uncommented the signedIn parts from my code, the only remaining variable that it stumbles over is "subroute". If I remove this, then finally, my pageChanged method is triggered. But the reason the javascript code stumbles over subroute is that it does not find it on AppAkepot. Your solution of setting "subroute ={};" for initialization solves that, and this works too. Thanks @dam0vm3nt.
Now, the standard app-route element seems to be easily high on difficult data bindings involving structured data and leads to observing path changes internally in Polymer.dart.
Is this necessary initialization documented somewhere? Does it apply to most polymer elements?

Just looking in the code at branch newpolymer The routeDatais treated as a structured binded data.
https://github.com/pjjjv/Akepot/blob/newpolymer/lib/app_akepot.dart#L37
routeData is declared as dynamic type
https://github.com/pjjjv/Akepot/blob/newpolymer/lib/app_akepot.dart#L21
Polymer does a lot of instrumentation of the binded properties, since dynamic is like so fare unknown type, I suspect this will not work with a dynamic.  I think before doing more bug search on <app-route> it is worth to get some confirmation that bind to dynamic works.

hi, you can try adding the following overrides to you yaml and see if the problem is gone ?

 polymer:
    version:  "^1.0.0-rc.18.exp.6"
    hosted:
      name: polymer
      url: http://pub.drafintech.it:5001
 polymer_interop:
    version: "^1.0.0-rc.10.exp.8"
    hosted:
      name: polymer
      url: http://pub.drafintech.it:5001

This is a polymer version corresponding to the latest PR I've submitted. It contains also an new strategy for converting to and from JS that should be more performant for lists and maps.

@dam0vm3nt These PRs solve it as far as I can tell. The error is gone. (I had trouble reproducing for a while so the circumstance might be slightly different).

fixed by #710


Timeout hit even though no timeout was specified

In dsub 0.3.4, I just ran into an issue where I had a job running for a week that was terminated, saying Failure message: User specified operation timeout reached.
However, I didn't specify a --timeout for this job. Looking at the docs and the user-facing code, I don't see any place where a default timeout is set. Is there silently a default of 1 week if no --timeout is set?

Hi @carbocation .
The default is indeed 7 days.
There is a command-line flag --timeout:
 google_v2.add_argument(
      '--timeout',
      help="""The maximum amount of time to give the pipeline to complete.
          This includes the time spent waiting for a worker to be allocated.
          Time can be listed using a number followed by a unit. Supported units
          are s (seconds), m (minutes), h (hours), d (days), w (weeks).
          Example: '7d' (7 days).""")

Thanks. Worth documenting the default? Right now, an "Example" of 7 days is used, but it wasn't clear that that was the default.

Ack - sorry - you are right. It is not documented by dsub as the default, just as an example. The pipelines API documents it as the default:
https://cloud.google.com/life-sciences/docs/reference/rest/v2beta/projects.locations.pipelines/run#Pipeline

timeout | string (Duration format)
The maximum amount of time to give the pipeline to complete. This includes the time spent waiting for a worker to be allocated. If the pipeline fails to complete before the timeout, it will be cancelled and the error code will be set to DEADLINE_EXCEEDED.
If unspecified, it will default to 7 days.
A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".

We will update the dsub help text to be more clear.

Oh, thank you! I read through the dsub code and didn't see it defined there, but I didn't think to turn to the pipelines API documentation. So, this is actually a relief: the default is coming from the underlying API, and my ability to read code is still (potentially) intact.

The docs have been updated, closing out.


Vaadin 7 Support

Hello,
I am trying to port a very old Vaadin app with zero tests. Is it possible to use Karibu Testing with Vaadin 7? The documentation talks about Vaadin 8 but on the Old Vaadin Forum @mvysny said (Emphasis mine 😄):

The Karibu Testing framework may be exactly what you're looking for. It supports both Vaadin 8 and Vaadin 10; adding Vaadin 7 support is very easy. https://github.com/mvysny/karibu-testing

Any hints?
Thank you

Hi, Vaadin 7 and Vaadin 8 frameworks are very similar (the initialization procedure is similar), therefore Karibu mocking code should work with vaadin 7 as well. You can try to change vaadin8_version=7.x.x in gradle.properties then rebuild karibu, to see whether karibu would work out of the box; if not then it might require simple fixes here and there.

Thanks, i will try.
I think it's not worth releasing for Vaadin 7 at this point. I will copy your v8 code in the project directly while I'm working on the port. If I find any problem, I will try to make pull request.
There would be no licensing problem, right? (It is a closed-source software)

There would be no licensing problem, right? (It is a closed-source software)

No problem there. Karibu uses a permissive Apache license which allows code usage in closed-source projects. Please feel free to use the code in any way you need 👍

Closing as WON'T FIX as discussed above.


Exporting fitting parameters

I have added two lines to op_eccKlose.m that add the eddy current correction to the container. Then I created and annotated osp_exportParams.m in utilities that combines the data fitting parameters and metadata and saves them as a .mat file. I was unable to test with MRSI data, but it works for SVS and multiple files.

As I work on the code for my project that uses osp_exportParams, I came across two  things that I'm missing so far. In the MM fitting routine, is it just the amplitudes or also lineshapes that are optimized? If the lineshapes are included, where is the gaussianLB_mm saved? Secondly, I saw in the code somewhere that the current SNR calculations use the max height of the spectra instead of Cr (original implementation). But in MRSCont, it indicates that the SNR is wrt Cr. Is this label a remenant of the original implementation or is it infact the SNR of Cr?

Hi John,
Sorry for the late reply. This one has slipped my mind. With regards to your questions:

The MM clean-up modeling does not use a lineshape model. I think it is still in the optimizer but not applied or used. I should remove this in the next release.
SNR is calculated from the 3-ppm creatine peak. However, the function for this is built from the FID-A original which uses the 2-ppm NAA peak and also names its variables that way, even if you are using a different ppm range.

I hope this answers your questions.
Helge


Task: Debugging Init Containers

cc @erictune @foxish @kow3ns @janetkuo @kubernetes/sig-apps

This change is

Here's a direct link to the preview: https://deploy-preview-1821--kubernetes-io-vnext-staging.netlify.com/docs/tasks/troubleshoot/debug-init-containers/

LGTM

Looks great. One small nit and we can merge.

Still one small nit and a merge conflict (everything in StatefulSet touches the TOC, so that's okay; we just have to resolve them as we go).

@devin-donnelly I resolved the merge conflict. Is there another nit, or are you talking about the one I fixed yesterday?

Sorry, that commit slipped past me. Should be good to go now.


Fix http api example

Change Summary

The latest version of Axios returns the body in response.data so we need to pull messages out of there.

Merge Checklist
Choose all relevant options below by adding an x now or at any time before submitting for review

[x] PR title adheres to the conventional commits standard
[ ] PR has a changeset
[ ] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore)
[x] PR includes documentation if necessary.
[x] All commits have been signed

PR-Codex overview
This PR focuses on fixing a bug in the code related to accessing the text of the first cast in the API response.
Detailed summary

Updated code to access the text of the first cast in the API response by correcting the object path.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Thanks!


Please allow user to change OneDrive address because I have change my OneDrive address

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here. Ex: What device type/UI layout and app version?

This is done with v0.7.

You can download v0.7.0 here.


set virtual owner on non-personal spaces

Description
Set a virtual user as an owner on non personal spaces to be able to pass the space manager role to a new user. We need the virtual user as a technical user for the impersonation during public link access.
Related Issue

oCIS part of https://github.com/cs3org/reva/pull/3091

Motivation and Context

How Has This Been Tested?

test environment:
test case 1:
test case 2:
...

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Technical debt
[ ] Tests only (no source changes)

Checklist:

[ ] Code changes
[ ] Unit tests added
[ ] Acceptance tests added
[ ] Documentation ticket raised:

:boom: Acceptance test localApiTests-apiSpaces-ocis failed. Further test are cancelled...

It seems to fix the "leave the space" scenario.
runsh: Total unexpected passed scenarios throughout the test run:
apiSpaces/shareSpaces.feature:77
apiSpaces/shareSpaces.feature:78

we need to merge the reva pr, then we can drop the replacement, update reva and merge this 🤞


Non-Static Subs

Users should be able to create subs on their own (configurable) so either the admin/s or user/s can create new subs.

I second this.  I've been looking all over the internet for decent Reddit style sites to use within OpenNIC and sadly all the promising ones have had some terrible deal breaker like not being able to reset passwords.  The ability for users to create and moderate their own subs would be a huge plus.


Detox can't tap on iOS software keyboard because of visibility check

What happened?
Detox can't tap on iOS software keyboard with error: "View is not hittable at its visible point. Error: View is not visible around point."
App under test is React native application. In my test scenario - i need to validate, that keyboard is present on screen and tap on particular button, f. e. button "."
await element(by.label('.')).getAttributes().then((res) => console.log(res));
Correctly find and returns element attributes:
11:55:34.134 detox[7094] i user {
  isAccessibilityElement: true,
  activationPoint: { x: 295.5, y: 199.5 },
  elementSafeBounds: { y: 175, x: 269, width: 53, height: 49 },
  frame: { y: 806, x: 269, width: 53, height: 49 },
  label: '.',
  enabled: true,
  hittable: true,
  visible: true,
  normalizedActivationPoint: { x: 0.5, y: 0.5 },
  className: 'UIAccessibilityElementKBKey'
}

But when i try to tap on it:
await element(by.label('.')).tap();
i got following error:
Test Failed: View is not hittable at its visible point. Error: View is not visible around point.
    - view point: {564.5, 374.5}
    - visible bounds: {{0, 0}, {430, 243}}
    - view bounds: {{0, 0}, {430, 243}}
    ---
    Error: Error Domain=DetoxErrorDomain Code=0 "View “<UIKeyboardLayoutStar: 0x7fab9bb59000>” is not visible: View does not pass visibility percent threshold (100)"

.typeText() works totally fine, but in my case it's not an option, element i need to interact with - is from 3-d person library. So i can't control testID-s or labels of elements. I can't select it by element method, to call method .typeText() but i can tap on it to invoke ios software keyboard.
Could you assist on this issue? Detox can't tap on system software keyboard?
What was the expected behaviour?
Detox should tap on ios software keyboard. It's visible, not obscured by any other UI elements.
Was it tested on latest Detox?

[X] I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

[ ] I have followed the instructions under Identifying which synchronization mechanism causes us to wait too much.

Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 20.9.1
React Native version: 0.68.5
Has Fabric (React Native's new rendering system) enabled: no
Node version: 16.20.0
Device model: Simulator iPhone 14 Pro Max
iOS version: 16.4(20E247)
macOS version: 13.4.1 (22F82)
Xcode version: 14.3.1 (14E300c)
Test-runner (select one): jest
Detox logs
Detox logs
13:12:08.883 detox[9660] i device app.bundle.name launched. To watch simulator logs, run:
        /usr/bin/xcrun simctl spawn 56702C8B-F15C-41D5-BDDA-38B8F533BC58 log stream --level debug --style compact --predicate 'process == "ApplicationRN"'

13:12:19.059 detox[9660] i lifecycle test > tap on keyboard: should tap email, render kayboard, tap dot
13:12:19.120 detox[9660] i child-process:SPAWN_END /usr/bin/xcrun simctl spawn 56702C8B-F15C-41D5-BDDA-38B8F533BC58 log stream --level debug --style compact --predicate "processImagePath beginsWith \"/Users/k.danenkov/Library/Developer/CoreSimulator/Devices/56702C8B-F15C-41D5-BDDA-38B8F533BC58/data/Containers/Bundle/Application/307A6610-0862-4140-B90E-63AFD1BBC22B/ApplicationRN.app\"" exited with code #0
13:12:19.121 detox[9660] i child-process:EXEC_CMD /usr/bin/xcrun simctl get_app_container 56702C8B-F15C-41D5-BDDA-38B8F533BC58 app.bundle.name
13:12:19.293 detox[9660] i child-process:SPAWN_CMD /usr/bin/xcrun simctl spawn 56702C8B-F15C-41D5-BDDA-38B8F533BC58 log stream --level debug --style compact --predicate "processImagePath beginsWith \"/Users/k.danenkov/Library/Developer/CoreSimulator/Devices/56702C8B-F15C-41D5-BDDA-38B8F533BC58/data/Containers/Bundle/Application/307A6610-0862-4140-B90E-63AFD1BBC22B/ApplicationRN.app\""
13:12:22.909 detox[9660] i user {
  elementSafeBounds: { y: 7, x:<PHONE_NUMBER>333333, width: 42.333333333333314, height: 49 },
  hittable: true,
  isAccessibilityElement: true,
  normalizedActivationPoint: { x: 0.5000000000000007, y: 0.5 },
  visible: true,
  className: 'UIAccessibilityElementKBKey',
  label: 'i',
  frame: {
    y: 638,
    x:<PHONE_NUMBER>333333,
    width: 42.333333333333314,
    height: 49
  },
  activationPoint: { x: 321.5, y: 31.5 },
  enabled: true
}
  origin: at test/e2e/deposit.e2e.ts:20:101
13:12:25.257 detox[9660] i child-process:EXEC_CMD /usr/bin/xcrun simctl io 56702C8B-F15C-41D5-BDDA-38B8F533BC58 screenshot "/private/var/folders/2g/3v5c91994cj0jg6jr3jhy8v00000gn/T/efd3b61f-3b59-4eaa-aaaf-5f2c46466e7e.detox.png"
13:12:25.478 detox[9660] i artifact:MOVE_FILE moving "/Users/k.danenkov/Library/Developer/CoreSimulator/Devices/56702C8B-F15C-41D5-BDDA-38B8F533BC58/data/Containers/Data/Application/C958590E-3E51-45CA-8B28-6CD4928A56FA/tmp/3714D000-B9D0-43DF-B650-92BC13C2C5FD.viewhierarchy" to artifacts/ios.2023-07-03 10-11-55Z/✗ test tap on keyboard should tap email, render kayboard, tap dot/ui.viewhierarchy
13:12:25.479 detox[9660] i artifact:MOVE_FILE moving "/Users/k.danenkov/Library/Developer/CoreSimulator/Devices/56702C8B-F15C-41D5-BDDA-38B8F533BC58/data/Containers/Data/Application/C958590E-3E51-45CA-8B28-6CD4928A56FA/tmp/visibilityFailingScreenshots/DETOX_VISIBILITY_UIKeyboardLayoutStar <0x7f9fd42ea000>_SCREEN.png" to artifacts/ios.2023-07-03 10-11-55Z/✗ test tap on keyboard should tap email, render kayboard, tap dot/DETOX_VISIBILITY_UIKeyboardLayoutStar__0x7f9fd42ea000__SCREEN.png
13:12:25.480 detox[9660] i artifact:MOVE_FILE moving "/Users/k.danenkov/Library/Developer/CoreSimulator/Devices/56702C8B-F15C-41D5-BDDA-38B8F533BC58/data/Containers/Data/Application/C958590E-3E51-45CA-8B28-6CD4928A56FA/tmp/visibilityFailingRects/DETOX_VISIBILITY_UIKeyboardLayoutStar <0x7f9fd42ea000>_TEST.png" to artifacts/ios.2023-07-03 10-11-55Z/✗ test tap on keyboard should tap email, render kayboard, tap dot/DETOX_VISIBILITY_UIKeyboardLayoutStar__0x7f9fd42ea000__TEST.png
13:12:25.483 detox[9660] i artifact:MOVE_FILE moving "/private/var/folders/2g/3v5c91994cj0jg6jr3jhy8v00000gn/T/efd3b61f-3b59-4eaa-aaaf-5f2c46466e7e.detox.png" to artifacts/ios.2023-07-03 10-11-55Z/✗ test tap on keyboard should tap email, render kayboard, tap dot/testFnFailure.png
13:12:25.547 detox[9660] i child-process:SPAWN_END /usr/bin/xcrun simctl spawn 56702C8B-F15C-41D5-BDDA-38B8F533BC58 log stream --level debug --style compact --predicate "processImagePath beginsWith \"/Users/k.danenkov/Library/Developer/CoreSimulator/Devices/56702C8B-F15C-41D5-BDDA-38B8F533BC58/data/Containers/Bundle/Application/307A6610-0862-4140-B90E-63AFD1BBC22B/ApplicationRN.app\"" exited with code #0
13:12:25.548 detox[9660] i lifecycle test > tap on keyboard: should tap email, render kayboard, tap dot [FAIL]

13:12:25.565 detox[9660] i artifact:MOVE_FILE moving "/private/var/folders/2g/3v5c91994cj0jg6jr3jhy8v00000gn/T/f3d2a7c3-7ff7-47d8-a4d3-09fd4c245b0f.detox.log" to artifacts/ios.2023-07-03 10-11-55Z/✗ test tap on keyboard should tap email, render kayboard, tap dot/device.log
13:12:25.566 detox[9660] i artifact:MOVE_FILE moving "/private/var/folders/2g/3v5c91994cj0jg6jr3jhy8v00000gn/T/71b4615a-9278-4b41-b0cd-4125a373ccce.detox.log" to artifacts/ios.2023-07-03 10-11-55Z/56702C8B-F15C-41D5-BDDA-38B8F533BC58 2023-07-03 10-12-25Z.startup.log

 FAIL  test/e2e/deposit.e2e.ts (29.337 s)
  test
    tap on keyboard
      ✕ should tap email, render kayboard, tap dot (6415 ms)

  ● test › tap on keyboard › should tap email, render kayboard, tap dot

    Test Failed: View is not hittable at its visible point. Error: View is not visible around point.
    - view point: {621.83333333333326, 38.5}
    - visible bounds: {{0, 0}, {430, 243}}
    - view bounds: {{0, 0}, {430, 243}}
    ---
    Error: Error Domain=DetoxErrorDomain Code=0 "View “<UIKeyboardLayoutStar: 0x7f9fd42ea000>” is not visible: View does not pass visibility percent threshold (100)" UserInfo={NSLocalizedDescription=View “<UIKeyboardLayoutStar: 0x7f9fd42ea000>” is not visible: View does not pass visibility percent threshold (100)}

      23 |       await waitFor(element(by.label('i'))).toBeVisible().withTimeout(3000);
      24 |       await element(by.label('i')).getAttributes().then((res) => console.log(res));
    > 25 |       await element(by.label('i')).tap();
         |                                    ^
      26 |       // await expect(app.keyboard.key1).toBeVisible();
      27 |       // await element(by.label('Удалить')).getAttributes().then((res) => console.log(res));
      28 |       // await element(by.label('Удалить')).tap();

      at Object.<anonymous> (test/e2e/deposit.e2e.ts:25:36)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 1 total
Snapshots:   0 total
Time:        29.396 s, estimated 33 s
Ran all test suites.
13:12:25.718 detox[9659] E lifecycle Command failed with exit code = 1:
jest --config test/jest.config.js
13:12:25.719 detox[9659] i ws-server Detox server has been closed gracefully
13:12:25.720 detox[9659] E ws-server connection :63307<->:63325

Device logs
Device logs
paste your device.log here!

More data, please!
DETOX_VISIBILITY_UIKeyboardLayoutStar__0x7fab9bb59000__SCREEN
(https://github.com/wix/Detox/assets/29140464/5ca01f28-ffe7-47ab-9c74-391c8661d584)

DETOX_VISIBILITY_UIKeyboardLayoutStar__0x7fab9bb59000__TEST
(https://github.com/wix/Detox/assets/29140464/9c0546e1-6b3d-4b3d-bc0b-ce104a221911)

testFnFailure
(https://github.com/wix/Detox/assets/29140464/17219d99-2034-4a53-9ec9-9565b0c4bbd8)

ui.viewhierarchy.zip
device.log

BTW found method .tapBackspaceKey() -  still failing with similar error:
Test Failed: View is not hittable at its visible point. Error: Failed to interact with the screen at point: {215, 121.5}.

     18 |     it('should render deposit with open keyboard, tap deposit, render loader', async () => {
     19 |       await expect(app.keyboard.key1).toBeVisible();
   > 20 |       await app.keyboard.keyBackspace.tapBackspaceKey();

@asafkorem could you help here?

BTW found method .tapBackspaceKey() - still failing with similar error:
Test Failed: View is not hittable at its visible point. Error: Failed to interact with the screen at point: {215, 121.5}.

     18 |     it('should render deposit with open keyboard, tap deposit, render loader', async () => {
     19 |       await expect(app.keyboard.key1).toBeVisible();
   > 20 |       await app.keyboard.keyBackspace.tapBackspaceKey();

@fpmboy Could you please share here the screenshot from when the failure occurred?


deps<EMAIL_ADDRESS>

Other Express-related packages like body-parser and raw-body require<EMAIL_ADDRESS>so upgrading this dependency in compression saves a copy of bytes on all installations that combine express and compression.

Closed in favor of #192


Subtype: Make sure we continue to test after optional

In the case where we have an optional field that is not present we still
need to check the remaining fields.

I ran the test before and after the fix to verify that it does test the right thing 🥇


Add FreeConsole() call to ensure console window always gets hidden

Fix for https://github.com/susam/uncap/issues/6
Steps to reproduce:

Launch a cmder console
Double-click uncap.exe from a File Explorer - rather than launching from a console
Uncap shows an empty console output window

The issue is likely to do with ConEmu's hooking of consoles, but didn't investigate further since this simple fix worked for me

@susam, maybe this could be merged? :)

Thank you, Jeremy (@navhaxs), for creating this pull request and thank you, Mikkel (@Madsn), for reminding me to merge this. Sorry, it took so long to take a look at this pull request. I've not had a Windows laptop with me in the last couple of years, so that's why I it took so long. Finally, today I created a Windows 10 Pro virtual machine on Azure to reproduce this issue and test this pull request.
I could reproduce the issue after installing and running Cmder. The fix in this pull request works for the reported issue, i.e., launching Uncap by double-clicking.
The root cause of the issue here is that in the presence of Cmder, the FindWindow("ConsoleWindowClass", NULL) call gets a handle to another window (not the window in which Uncap is running), so the ShowWindow(h, SW_HIDE) call later attempts to hide the wrong window instead of the window in which Uncap is running. I will push another fix later that addresses this root cause. For now, I am merging this pull request as is, so that it remains in the commit history of this project.


simple javadoc fix for accomodating the newst maven version

With the newest maven version, they check for the javadoc syntax more rigorously. Made changes to reflect this new maven behavior.

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

Codecov Report

Merging #385 into dev will decrease coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev     #385      +/-   ##
============================================
- Coverage     40.16%   40.14%   -0.03%
+ Complexity     1892     1890       -2
============================================
  Files           107      107
  Lines         24482    24482
  Branches       4038     4038
============================================
- Hits           9833     9828       -5
- Misses        12815    12821       +6
+ Partials       1834     1833       -1

Flag
Coverage Δ
Complexity Δ

#JDBC41
39.99% <ø> (-0.05%)
1881 <ø> (-2)

#JDBC42
40.03% <ø> (+0.02%)
1889 <ø> (+4)
:arrow_up:

Impacted Files
Coverage Δ
Complexity Δ

...m/microsoft/sqlserver/jdbc/SQLServerException.java
77.23% <ø> (ø)
29 <0> (ø)
:arrow_down:

...om/microsoft/sqlserver/jdbc/ReaderInputStream.java
44.94% <0%> (-3.38%)
16% <0%> (-1%)

...om/microsoft/sqlserver/jdbc/SimpleInputStream.java
47.4% <0%> (-1.49%)
9% <0%> (-1%)

...m/microsoft/sqlserver/jdbc/SQLServerResultSet.java
27.23% <0%> (-0.17%)
187% <0%> (-1%)

...om/microsoft/sqlserver/jdbc/SQLServerBulkCopy.java
49.43% <0%> (-0.08%)
210% <0%> (ø)

...rc/main/java/com/microsoft/sqlserver/jdbc/DDC.java
30.78% <0%> (+0.67%)
58% <0%> (ø)
:arrow_down:

...a/com/microsoft/sqlserver/jdbc/PLPInputStream.java
40.96% <0%> (+1.2%)
29% <0%> (+1%)
:arrow_up:

Continue to review full report at Codecov.

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


docs: add some sql command docs 1

closes: #ISSUE

Change logs
docs: add some sql command docs 1
Contributor's Checklist
Here are some reminders before you submit the pull request:

Make sure your Pull Request has a clear title and commit message
Please sign the Contributor License Agreement as promoted for your
first-time contribution
Make sure your changes deployment preview is successful
List your communications in the GitHub Issues or
Discussions (if has or needed)
Feel free to ask for @doc team or other people to help review and approve

These SQL statement info might not be applicable to the open-source CBDB. Further validation is required, so I'll close this PR for now.


⚠ Bofrost.be has degraded performance

In ecbbf4b, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 980 ms

Resolved: Bofrost.be performance has improved in 10a10b8 after 19 minutes.


Cannot install module - /bin/pip: No such file or directory

Hello,
Trying to install a module fails with the following error:
/bin/sh: /bin/pip: No such file or directory
I am using MacOS and have installed python and python3 using homebrew.
Then installed pipenv using pip3.
which pip returns:
/usr/local/bin/pip
and pip itself is found as a command.
However, if I use python -m pip --version it points to the default MacOS python:
pip 9.0.1 from /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg (python 2.7)
I am unaware where it tries to resolve pip from and does not find it.
I am not sure if there is a problem with my $PATH paths or the issue is different.
Thank you for your time!

Try the fancy installation method

Second. Pipsi is the way to go for installing python cli utils

Thanks for the replies.
I first uninstalled and installed again python and python3 using homebrew and also re-installed pip.
Then I was able to successfully install pipenv using pipsi by the provided link for the fancy installation.
However, trying to install any module, I know get the following error:
Traceback (most recent call last):
File "/usr/local/bin/pipenv", line 7, in
from pipenv import cli
File "/usr/local/lib/python3.6/site-packages/pipenv/init.py", line 13, in
from .cli import cli
File "/usr/local/lib/python3.6/site-packages/pipenv/cli.py", line 11, in
import background
ModuleNotFoundError: No module named 'background'

Type in the pip-tools. Installed them and now I am back at square one with the initial error:
/bin/sh: /bin/pip: No such file or directory

Do you have PYTHONHOME set or something?

No, I do not.
pip is available in terminal.
$ which pip
/usr/local/bin/pip
but it is only 'attached' to python2 and python3 but not the default python:
$ python -m pip
/usr/bin/python: No module named pip
Any ideas on what could be wrong?

Seems the root cause was that pew was not working due to not set locale.
Setting it in .bash_profile seems to resolve the issue.
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

Will further test and later update if this is solved.

💫✨🍰✨💫

We should check for this and add some pretty error message if it's not set.

@kennethreitz should pew check for this or should pipenv?

@erinxocon pew should.

$ hash -r
Reset your bash cache. It will solve the problem.

I was having an issue only on codebuild, and this solved it for me: https://github.com/pypa/pipenv/issues/1929

Maybe this will help newbies like me in the future.
I Following @nzagorchev comment:
add @nzagorchev script in your ~/.bash_profile or ~/.zshrc
sudo vim ~/.bash_profile
or
sudo vim ~/.zshrc if you're using zsh
then add the following script to the file
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

then run this command:
source ~/.bash_profile
or
source ~/.zshrc  if you're using zsh
then close your terminal and open it again.
after that, it works perfectly :)

Me funciono esta opcion
$pip install -U pip
$which pip
/usr/bin/pip
$hash -r
$which pip
/usr/local/bin/pip
Referencia: https://stackoverflow.com/questions/16237490/i-screwed-up-the-system-version-of-python-pip-on-ubuntu-12-10


Number of max concurrent calls on the class gets overwritten along the life of the object

When using the class, I expect the number of max concurrent calls I use on the constructor to be kept along the life of the object (unless a call to setMaxConcurrent() is done) but if you add less request than this number, execute, and then try to add new requests the number of max concurrent calls for the object gets overwritten by the amount of calls made on the first execute().

dumb mistake. fixed

This isn't actually fixed in the current release. Changing the first bit of execute() to th following solves it:
    //Execute the request queue
    public function execute() {
        //limit initial parallel requests to _maxConcurrent and don't overwrite _maxConcurrent.
        $init_request_count = (count($this->requests) > $this->_maxConcurrent)
                                ? $this->_maxConcurrent
                                : count($this->requests);
        //the request map that maps the request queue to request curl handles
        $requests_map = [];
        $multi_handle = curl_multi_init();

        //start processing the initial request queue
        for($i = 0; $i < $init_request_count; $i++) {
            $this->init_request($i, $multi_handle, $requests_map);
        }

Resolved in newest version v3. Please upgrade


[SPARK-17208] [SQL] Build Outer Join Test Cases in File-based Testing Framework

What changes were proposed in this pull request?
This PR is part of the original PR: https://github.com/apache/spark/pull/14625.
Based on file-based SQL end-to-end testing framework in SQLQueryTestSuite, this PR is to create test cases for outer joins.
In addition, this PR also renamed the test data sets to more meaningful names, based on the comments from @cloud-fan
TODO: will upload the results generated by Hive.
How was this patch tested?
N/A

Test build #64334 has started for PR 14782 at commit dc36ce9.

Test build #64338 has started for PR 14782 at commit 02d500b.

Using the same data and query, the Hive outputs are attached below:
hive.output.txt
After comparison, the Spark-generated results are the same.

Test build #64334 has finished for PR 14782 at commit dc36ce9.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/64334/
Test PASSed.

Merged build finished. Test PASSed.

Test build #64338 has finished for PR 14782 at commit 02d500b.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/64338/
Test PASSed.

@gatorsmile maybe you should stop porting more tests for now. I don't want you to waste time. I feel you are just porting the tests over from Hive compatibility suite, but that's not really the point. This is a framework to create test cases that would actually make sense. The best cases are the ones that are very small and simple and can test specific aspects of the query engine.

I see. Thanks! Let me close this one.


plgx version 2.0.3 will not work under Keepass v2.54

Keepass 2.54 installed on Ubuntu 20.04.6 will not work, gives following error upon starting Keepass:

Keepass was installed using
sudo add-apt-repository ppa:ubuntuhandbook1/keepass2
sudo apt install keepass2

If the graphic is not visible, its a dialog box that states:
The following plugin is incompatible with the current Keepass version: /usr/lib/keepass2/plugins/KeeAnywhere-2.0.0.plgx

Have a look at the plugin's website for an appropriate version.

On some systems, the "mono-complete" package may be required for plugins to work properly.

I am reluctant to install a complete development environment, as I am not sure of what side-effects may occur.
Any help would be appreciated.

I had a similar issue in Windows 7 with Keepass 2.54 64-bit when I tried to load the last plugin version. I believe could be the same issue.

Hi,
In general this combination works at my machine:

Realcool @.***> hat am 10.09.2023 17:41 CEST geschrieben:
I had a similar issue in Windows 7 with Keepass 2.54 64-bit when I tried to load the last plugin version. I believe could be the same issue.
[imagen] https://user-images.githubusercontent.com/872693/266845753-19bb8f1c-457b-4b9a-89e9-d4ba416aa968.png
—
Reply to this email directly, view it on GitHub https://github.com/Kyrodan/KeeAnywhere/issues/381#issuecomment-1712846022, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACWW2SKNY6U4P5KDPO7CDDXZXNSJANCNFSM6AAAAAA2EST3QM.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

same issue windows 8.1 32bit

same issue windows 8.1 32bit

I did find solution. Install newer dot net. I installed 4.7.1 and it works.

From my recent experience with KeePass 2.55 on Windows 11, it requires that KeePass is started with 'Admin' or 'root' privileges when initializing the plugin for the first time. My guess is it's because it needs access to the system's secure credentials storage. Once you have the credentials of your cloud provider authenticated and saved, you can start KeePass normally.

@gabrielballone @cacophobe
To those who have found you need admin to connect, I have two questions:

Is your user account capable of admin privileges or do you have to authenticate as a different user to run as admin? (for example, at home I click "run as admin" and the box just asks yes or no; at work, I click run as admin, and the box forces me to enter another username/password which I don't have so I have to call IT)
What cloud provider are you using? Google Drive, by chance?

Is your user account capable of admin privileges or do you have to authenticate as a different user to run as admin? (for example, at home I click "run as admin" and the box just asks yes or no; at work, I click run as admin, and the box forces me to enter another username/password which I don't have so I have to call IT)

In my case, my user has admin privileges. I've just need to select "run as admin" and click yes.

What cloud provider are you using? Google Drive, by chance?

I'm using Google Drive. To get clear, I only need to "run as admin" to make the authentication process. Not for compiling/installing the plug-in. I need to do same procedure for any other cloud provider that I want to add. I'd test it with Dropbox too.

@gabrielballone , maybe you and @mailyspamy are seeing the same issue as #301? That's my first thought when people say they needed admin rights to add an account. I'm not sure if KeeAnywhere actually uses the Windows credential storage, but I know I've never needed admin access to add accounts (except for the issue I linked of course), just for installing the plugin.
I'm not sure @cacophobe is seeing the same thing though. That issue has never been seen to affect Windows 10 (or later) before.

This time I tried, on Windows 11, the User Account had Administrator privileges, so I just had to press the Yes button on the UAC prompt.
But in case it helps, the last time I had tried a few years back on Windows 10, I had faced the same issue. But back then, I used to have a separate Administrator account, so I had to type the Administrator password at the prompt.
As for the second question, I am using Dropbox as the cloud provider.
In case most Windows users are not having this issue, it may be some settings that I usually tweak in my windows installations that are causing it.
On March 21, 2024 3:20:51 PM UTC, Jackabomb @.***> wrote:

@gabrielballone @cacophobe
To those who have found you need admin to connect, I have two questions:

Is your user account capable of admin privileges or do you have to authenticate as a different user to run as admin? (for example, at home I click "run as admin" and the box just asks yes or no; at work, I click run as admin, and the box forces me to enter another username/password which I don't have so I have to call IT)
What cloud provider are you using? Google Drive, by chance?


build failing on dokku

Not sure why this happens, it works on heroku.
Everything up-to-date
Counting objects: 26, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (25/25), done.
Writing objects: 100% (26/26), 2.72 KiB | 0 bytes/s, done.
Total 26 (delta 18), reused 0 (delta 0)
-----> Cleaning up ...
-----> Building crafatar ...
-----> Multipack app detected
       =====> Downloading Buildpack: https://github.com/mojodna/heroku-buildpack-cairo.git
       =====> Detected Framework: Cairo
-----> Vendoring binaries
       Fetching https://s3.amazonaws.com/mojodna-heroku/cedar-14/cairo-1.12.16-1.tar.gz
       Fetching https://s3.amazonaws.com/mojodna-heroku/cedar-14/freetype-2.5.3-1.tar.gz
       Fetching https://s3.amazonaws.com/mojodna-heroku/cedar-14/giflib-4.2.3-1.tar.gz
       Fetching https://s3.amazonaws.com/mojodna-heroku/cedar-14/pixman-0.32.6-1.tar.gz
-----> Tweaking Cairo, FreeType, and Pixman include paths
-----> Configuring build environment
-----> Building runtime environment
       =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git
       =====> Detected Framework: Node.js

-----> Reading application state
       package.json...
       build directory...
       cache directory...
       environment variables...

       ACHIEVEMENT UNLOCKED: iojs :)

       Node engine:         1.2.x (iojs)
       Npm engine:          unspecified
       Start mechanism:     Procfile
       node_modules source: package.json
       node_modules cached: true

       NPM_CONFIG_PRODUCTION=true
       NODE_MODULES_CACHE=true

-----> Installing binaries
       Resolving iojs version 1.2.x via semver.io...
       Downloading and installing iojs 1.2.0...
       Using default npm version: 2.5.1

-----> Building dependencies
       Node version changed (v0.10.35 => v1.2.0); invalidating cache
       Installing node modules

       ><EMAIL_ADDRESS>install /tmp/build/node_modules/canvas
       > node-gyp rebuild

       child_process: customFds option is deprecated, use stdio instead.
       make: Entering directory `/tmp/build/node_modules/canvas/build'

       // stipped lots of output

       make: *** [Release/obj.target/canvas/src/CanvasRenderingContext2d.o] Error 1
       make: Leaving directory `/tmp/build/node_modules/canvas/build'
       gyp ERR! build error
       gyp ERR! stack Error: `make` failed with exit code: 2
       gyp ERR! stack     at ChildProcess.onExit (/tmp/build/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
       gyp ERR! stack     at emitTwo (events.js:85:13)
       gyp ERR! stack     at ChildProcess.emit (events.js:153:7)
       gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1044:12)
       gyp ERR! System Linux 3.13.0-45-generic
       gyp ERR! command "node" "/tmp/build/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
       gyp ERR! cwd /tmp/build/node_modules/canvas
       gyp ERR! node -v v1.2.0
       gyp ERR! node-gyp -v v1.0.2
       gyp ERR! not ok

       ><EMAIL_ADDRESS>install /tmp/build/node_modules/lwip
       > node-gyp rebuild

       child_process: customFds option is deprecated, use stdio instead.
       make: Entering directory `/tmp/build/node_modules/lwip/build'

       // stripped lots of output

       SOLINK_MODULE(target) Release/obj.target/lwip_image.node
       SOLINK_MODULE(target) Release/obj.target/lwip_image.node: Finished
       COPY Release/lwip_image.node
       make: Leaving directory `/tmp/build/node_modules/lwip/build'
       npm ERR! Linux 3.13.0-45-generic
       npm ERR! argv "/tmp/build/.heroku/node/bin/iojs" "/tmp/build/.heroku/node/bin/npm" "install" "--quiet" "--userconfig" "/tmp/build/.npmrc"
       npm ERR! node v1.2.0
       npm ERR! npm  v2.5.1
       npm ERR! code ELIFECYCLE

       npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
       npm ERR! Exit status 1
       npm ERR!
       npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
       npm ERR! This is most likely a problem with the canvas package,
       npm ERR! not with npm itself.
       npm ERR! Tell the author that this fails on your system:
       npm ERR!     node-gyp rebuild
       npm ERR! You can get their info via:
       npm ERR!     npm owner ls canvas
       npm ERR! There is likely additional logging output above.

       npm ERR! Please include the following file with any support request:
       npm ERR!     /tmp/build/npm-debug.log

-----> Build failed

       We're sorry this build is failing! If you can't find the issue in application code,
       please submit a ticket so we can help: https://help.heroku.com/
       You can also try reverting to our legacy Node.js buildpack:
       heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-nodejs#v63

       Love,
       Heroku
To dokku@crafatar:crafatar
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@crafatar:crafatar'

Might be that the container is missing a C++ package to build the binary (I've had that same node-gyp issue on regular EC2 instances). Not sure what the trouble-shooting steps would be, perhaps trying to build the package yourself in a container and seeing what it needs?

I guess this travis failure is related. Apparently it's caused by iojs / node-canvas:
><EMAIL_ADDRESS>install /home/travis/build/crafatar/crafatar/node_modules/canvas
> node-gyp rebuild
child_process: customFds option is deprecated, use stdio instead.
make: Entering directory `/home/travis/build/crafatar/crafatar/node_modules/canvas/build'
  SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node
  SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node: Finished
  COPY Release/canvas-postbuild.node
  CXX(target) Release/obj.target/canvas/src/Canvas.o
  CXX(target) Release/obj.target/canvas/src/CanvasGradient.o
  CXX(target) Release/obj.target/canvas/src/CanvasPattern.o
  CXX(target) Release/obj.target/canvas/src/CanvasRenderingContext2d.o
../src/CanvasRenderingContext2d.cc: In member function ‘void Context2d::shadow(void (*)(cairo_t*))’:
../src/CanvasRenderingContext2d.cc:374:22: warning: unused variable ‘surface’ [-Wunused-variable]
../src/CanvasRenderingContext2d.cc: In static member function ‘static void Context2d::SetLineDash(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/CanvasRenderingContext2d.cc:2117:21: error: ‘_isnan’ was not declared in this scope
../src/CanvasRenderingContext2d.cc:2117:36: error: ‘_finite’ was not declared in this scope
../src/CanvasRenderingContext2d.cc: In static member function ‘static void Context2d::SetLineDashOffset(v8::Local<v8::String>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)’:
../src/CanvasRenderingContext2d.cc:2156:7: error: ‘_isnan’ was not declared in this scope
../src/CanvasRenderingContext2d.cc:2156:24: error: ‘_finite’ was not declared in this scope
make: *** [Release/obj.target/canvas/src/CanvasRenderingContext2d.o] Error 1
make: Leaving directory `/home/travis/build/crafatar/crafatar/node_modules/canvas/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/travis/.nvm/versions/io.js/v1.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at emitTwo (events.js:85:13)
gyp ERR! stack     at ChildProcess.emit (events.js:153:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1044:12)
gyp ERR! System Linux 2.6.32-042stab094.7
gyp ERR! command "node" "/home/travis/.nvm/versions/io.js/v1.2.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/travis/build/crafatar/crafatar/node_modules/canvas
gyp ERR! node -v v1.2.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok

It was indeed an issue with canvas & iojs, fixed by Automattic/node-canvas#522


How can I stop to get url?

I want stop to get url when the page close. When I open a page, then use youtube-dl get url. If get url is not finished, I close the page immediately.

https://github.com/rg3/youtube-dl#is-the-description-of-the-issue-itself-sufficient

way close? Is there a way to close it get url?

Is there a way to close it get url? @dstftw


[Feature Request] Allow either IP address or domain

I'm using this library to see if a service is online by converting the domain to an ip and then using port 80. It'd be handy if this library could check if the input is a ip, if it isn't then it'd either convert the domain to an ip and use that.

I think this would be too much to ask from portscanner.
Please checkout checkdns or check-domain.

Just a quick example of how it could be added using the native dns package.
var dns = require('dns');
dns.lookup('google.com', function(err, address, family){
    console.log(address); // address = the first A record of google.com
});

That certainly makes it seem easier that I had originally thought. Thanks for that.
I've made some preliminary changes in an attempt to support this in #47. Please checkout locally and test it out if can.
I still have some concerns though.
Would it still require identifying addresses and deciding which ones to lookup, or could we make all addresses go through dns.lookup, be it IP address (including IPv6) or domain names, and if so what might be the consequences?
Could you suggest some tests for this scenario? I've only ever used portscanner in localhost machine context.


Runs BridgeNetCompilerTask only if sources changed

Fixes the issue described in https://forums.bridge.net/forum/community/help/6093-bridge-compiler-running-on-every-project-in-solution-even-if-no-changes.
Changes proposed in this pull request:

Added inputs and outputs to the Task, so that msbuild will only trigger the task if the source c# files changed.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Slavik Neimer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Are you using Visual Studio?
This PR is unlikely to get accepted as is because we cannot reproduce a scenario in which this change does anything different than the default behaviour.
A few other issues:

The outputs path assumes Bridge JS will always be output to $(OutputPath)/bridge/
The outputs path assumes Bridge JS will always be output as its Assembly name, matching $(AssemblyName).js, which is also a setting depending on Bridge.json or assembly/attributes settings.

Implementing this change makes several assumptions about the the output folder and output file name, and hard-codes those assumptions. This would ignore settings from Bridge.json.

I compile from command line (msbuild), not from Visual Studio.
It's weird that you can't reproduce it - it happens to me 100% of the time,
and also happened to the guy who wrote the post. What I see is, every time
I compile (from the command line), the BridgeNetCompilerTask is executed,
even if nothing in the code changed. This happens because when you run
msbuild, it looks at the task's Inputs and Outputs, and if all inputs are
older than all outputs, then it skips the task. Since Inputs and Outputs
are not specified for BridgeNetCompilerTask, msbuild always performs this
task. I don't know how Visual Studio works.
As for the points you raised, you're right, I didn't look at the
configuration... Also, I only check for .js file, but don't check for .ts
file. Since I'm not familiar with the configuration, and it will take me a
while to do it properly (much longer than it would take to someone familiar
with your code), unfortunately, I can't spend the time to do a proper fix.
I hope someone on your end can do it.
For now, I'll just override the task's definition in my own repo, as a
workaround, in order not to wait ~40 seconds that BridgeNetCompilerTask
takes.
I do hope you fix it one day, in order to help others.
What's the best way for me to get notified when you release new versions of
the nuget?
On Wed, 12 Feb 2020 at 06:29, Geoffrey McGill<EMAIL_ADDRESS>wrote:

Are you using Visual Studio?
This PR is unlikely to get accepted as is because we cannot reproduce a
scenario in which this change does anything different than the default
behaviour.
A few other issues:

The outputs path assumes Bridge JS will always be output to
$(OutputPath)/bridge/
The outputs path assumes Bridge JS will always be output as its
Assembly name, matching $(AssemblyName).js, which is also a setting
depending on Bridge.json or assembly/attributes settings.

Implementing this change makes several assumptions about the the output
folder and output file name, and hard-codes those assumptions. This would
ignore settings from Bridge.json.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bridgedotnet/Bridge/pull/4107?email_source=notifications&email_token=AID7EPWOEF24JMESUCTJFSTRCN3JZA5CNFSM4KSS6YA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELPL3NQ#issuecomment-585022902,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AID7EPR44N4Y55RNZH3BJ43RCN3JZANCNFSM4KSS6YAQ
.

For now, I'll just override the task's definition in my own repo, as a workaround

This looks like a good work-around.
Sorry we were not able to accept the PR. Unfortunately, not enough information was provided in order to reproduce the issue, and hard-coding of the Inputs/Outputs doesn't take into account user-specific settings based on the bridge.json.
We will keep this performance issue in mind and hopefully another solution can be found.


Language and Format for body and target

The new spec advises to support a format and a language property for all targets and bodies.

Implemented via ExternalWebResource interface.


Bug when sending function

Sorry to report a bug! Without this add-on installed, if I have my cursor at the end of the second line below, (at the place of the |) it'll send the rest of the function. With this installed, it appears that something is going awry and not sending to the ipython kernel correctly. It appears that the same error occurs when I select the 2nd through 4th lines. I'm hitting cmd+enter (hydrogen:run) in both instances.
d = {'col1': [1, 2], 'col2': [3, 4]}
df = pd.DataFrame(|
    data=d,
    dtype=np.int8)

File "<ipython-input-19-8cb79410d243>", line 2
    data=d,
           ^
SyntaxError: unexpected EOF while parsing

Hopefully fixed now.
This is embarrassing, looks like I don't know how the Javascript string manipulation APIs work.


Boolean response type for textDocument/edit

Test plan
Test manually and check the trace log. The response for textDocument/edit should be either true or false.

@odisseus @pkukielka Awesome thanks for catching this.
This does mean we run into the error that I mentioned on Slack too. Maybe that should be a follow-up fix though.
To reproduce:

Run "Generate Tests" on a function where this is already a test file
Notice that Cody starts generating and then immediately throws an error

It seems that we're using an incorrect range for some reason 🤔  I wonder if there's some race condition where we attempt the next edit before the document has updated with the latest range.
I will see if I can replicate this with a test in the Agent, but curious if you have any ideas what might be happening here
https://github.com/sourcegraph/jetbrains/assets/9516420/5c50accb-ef18-4a39-a206-b742cdc61a43


New command: ~Dice

Dice command.
Probably new module (Casino?) (New issue?)

How often do people need to roll dice?

I would like to register my disappointment at this

your disappointment has been registered.