MDVRP - original code runs but does not print out routes. Help!

Hello!
Here is the original code that software developers provided on your GitHub. See attached. I also provide one of the input files (provided on Github called 'p01'
MDVRP_original.zip
p01_multidepot.zip
(I had to zip the files bc it wouldnt let me attach it for some reason!!)
If you run it, the output is:
New model incumbent solution 576.865, TIME = 0h0m8s86t = 886

Search is finished, global bounds : [ 576.865 , 576.865 ], TIME = 0h0m8s86t = 886
How do you get it to print the routes of the trucks? Any help would be greatly appreciated!! Thanks!

I can meet someone (a developer) on Zoom if that is easier?

Talked with another PhD student and figured it out!
We had to add this part to the code: (under 'if model.solution.is_defined :' ) , BELOW.
The output tells you the route of which vehicle, but doesnt tell you form which 'depot' (since its a multi-depot) it leaves from! How do I do that? I print the OUTPUT at the very bottom!
print(f"""Statistics :
best lower bound : { model.statistics.best_lb }
solution time : {model.statistics.solution_time}
number of nodes : {model.statistics.nb_branch_and_bound_nodes}
solution value : {model.solution.value}
root lower bound : {model.statistics.root_lb}
root root time : {model.statistics.root_time}.
""")
print(f"Status : {model.status}.\n")
print(f"Message : {model.message}.\n")
    for route in model.solution.routes:
        print(f"Vehicle Type id : {route.vehicle_type_id}.")
        print(f"Ids : {route.point_ids}.")
        print(f"Load : {route.cap_consumption}.\n")

OUTPUT:
Statistics :
best lower bound : 673.478
solution time : 15.5534867
number of nodes : 1
solution value : 673.478
root lower bound : 673.478
root root time : 15.5351252.
Status : 0.
NEW multidepot.zip
Message : The solution found is optimal..
Vehicle Type id : 51.
Ids : [51, 46, 11, 51].
Load : [0.0, 25.0, 54.0, 54.0].
Vehicle Type id : 53.
Ids : [53, 34, 35, 19, 53].
Load : [0.0, 17.0, 23.0, 51.0, 51.0].
Vehicle Type id : 50.
Ids : [50, 12, 24, 50].
Load : [0.0, 23.0, 51.0, 51.0].
Vehicle Type id : 52.
Ids : [52, 49, 33, 29, 52].
Load : [0.0, 10.0, 36.0, 55.0, 55.0].
Vehicle Type id : 51.
Ids : [51, 23, 42, 6, 22, 51].
Load : [0.0, 10.0, 21.0, 40.0, 56.0, 56.0].
Vehicle Type id : 52.
Ids : [52, 48, 4, 37, 52].
Load : [0.0, 18.0, 39.0, 54.0, 54.0].
Vehicle Type id : 53.
Ids : [53, 20, 15, 1, 53].
Load : [0.0, 8.0, 23.0, 53.0, 53.0].
Vehicle Type id : 50.
Ids : [50, 41, 18, 39, 40, 50].
Load : [0.0, 13.0, 22.0, 29.0, 56.0, 56.0].
Vehicle Type id : 50.
Ids : [50, 3, 17, 50].
Load : [0.0, 9.0, 50.0, 50.0].
Vehicle Type id : 51.
Ids : [51, 47, 25, 7, 0, 51].
Load : [0.0, 17.0, 24.0, 47.0, 54.0, 54.0].
Vehicle Type id : 51.
Ids : [51, 45, 10, 31, 51].
Load : [0.0, 5.0, 24.0, 36.0, 36.0].
Vehicle Type id : 52.
Ids : [52, 8, 38, 32, 9, 52].
Load : [0.0, 11.0, 25.0, 48.0, 53.0, 53.0].
Vehicle Type id : 50.
Ids : [50, 43, 44, 14, 36, 16, 50].
Load : [0.0, 16.0, 26.0, 36.0, 45.0, 48.0, 48.0].
Vehicle Type id : 53.
Ids : [53, 2, 27, 30, 21, 28, 53].
Load : [0.0, 16.0, 30.0, 41.0, 49.0, 55.0, 55.0].
Vehicle Type id : 51.
Ids : [51, 13, 5, 26, 51].
Load : [0.0, 21.0, 36.0, 51.0, 51.0].

Dear @mventura00,
Sorry for a long answer, there is now the vacation period in France.
Your code is ok.
To know the depot for a route in the solution, you should look for the first point id. It corresponds to the depot from which vehicle starts from.

Thank you very much!
Question 1: where do we specify in this data input file, what the latitude and longitude of the depot is (to tell it where it is located)? I looked at the website you gave me (in the other issue which was SO helpful) but in the data representation/ definition, there doesnt seem to be a place where you specify location of the depot.
I saw in this other site: https://github.com/inria-UFF/VRPSolverEasy/blob/master/docs/Demos/MDVRP.rst
### It has this:
nb_depots = 2
nb_customers = 3
vehicle_capacity = 60
cust_demands = [15,52,65]
cust_coordinates = [[55.21,44.36],[57.81,53.27]]
depot_coordinates = [[54.69,57.36],[54.31,65.23]]
So  do we put that directly in the MDVRP.py   and modify it for our problem then?
Question 2: how do we know what to put for teh # of possible visit combinations? and the list of all possible visit combinations?
Question 3: for beginning of time window, does

Dear Marta @mventura00,
In the description of the instance format, one can read: In the case of the MDVRP, the lines go from 1 to n + t and the last t entries correspond to the t depots. So, depot coordinates are given in the last lines. Visit combinations are ignored for the MDVRP, as well as time windows.

Dear @mventura00,
Sorry for a long answer, there is now the vacation period in France.
Your code is ok.
To know the depot for a route in the solution, you should look for the first point id. It corresponds to the depot from which vehicle starts from.

Thank you @rrsadykov !! Youre very nice and helpful.


Java 9 : illegal reflective access

Hello,
When using Darcula LAF under java 9, we get those warnings:
`WARNING: Illegal reflective access by com.bulenkov.darcula.DarculaLaf (file:/data/jmeter/workspace/jmeter_trunk/lib/darcula.jar) to field javax.swing.text.html.HTMLEditorKit.DEFAULT_STYLES_KEY
WARNING: Illegal reflective access by com.bulenkov.iconloader.util.UIUtil (file:/data/jmeter/workspace/jmeter_trunk/lib/darcula.jar) to field sun.awt.CGraphicsDevice.scale
`
I didn't find it reported so I thought you might be interested.
Regards

I can confirm this issue.

I also find that even compiling a Java 11 project with darcula.jar on the classpath is enough to hang javac.

Please check if this is fixed, I don't get this issue with Java 14. IIRC the Darcula implementation was switched out recently so it might have been fixed then.

This bug makes it difficult to ship Java apps with the Darcula theme using jpackage.

I've been ignoring this error for quite a while; but the latest JDK 16 is now causing Exceptions due to this illegal reflective issue, and is preventing the use of Darcula going forward (it still works on JDK 15 and before though). This is really unfortunately, because I really think Darcula is one of the nicest UI themes out there.
are there any plans to get this fixed/upgraded?

Since Darcula seems to be abandonware, we actually moved to FlatLaf for jAlbum. It even has a Darcula theme. It was a smooth transition.

Thanks for sharing this, @davidekholm.


Use parse/stringify from flatted lib to support circular structures (fixes #222)

This PR fixes the problem described in #222. It replaces the use of JSON.stringify/JSON.parse with functions from the flatted library.
Instead of just fixing that problem, this PR changes stringify/parse to flatted in all parts that consitute the library itself - i.e. the examples and the storybook are unchanged.
Checklist

[x] Use a separate branch in your local repo (not master).
[x] Test coverage is 100% (or you have a story for why it's ok).

Well and now one cannot run the dev server anymore because it complains that "export" keyword is unexpected inside flatted/esm.

Will take a look.

Fixed by just importing:
flatted instead of flatted/esm or flatted/cjs.
Their package.json includes a main and module section, which should allow imports to pick up the correct file.
About the coverage check, are you talking about why we use Coveralls in addition to Travis? Travis merely runs the build and reports the coverage to Coveralls, which has better tooling like the ability to view covered / uncovered lines. In theory it is possible to have Travis just spit out a coverage number and fail the build if it doesn't meet a threshold, but Coveralls is useful enough that I decided to keep them separate.


how does dart-generate-js-code embed manual js code

I wanted to embedding the H5 page generated by Dart2JS into an Android or iOS app. But typically a page that does this needs to communicate with the local APP (calling the WebView interface). I came up with a way to write my own JS communication interface(typically via a shared window object), and then communicate with data in dart-generate-js-code, (dart-generate-js-code calls hand-written JS Code and Hand-written JS callsdart-generate-js-code). Is there such an interface currently available? Or does dart-generate-js-code have a way to invoke the WebView interface directly?
(I guess the Dart2JS compiler could, in theory, add compilation capabilities to other hand-written JS files.)
thanks

Hi again @Earlonus, as I mentioned in #44550 -  consider posting questions in stack overflow. The community can be very helpful and others will benefit from reading your question and answer in the future :)
It sounds to me like you would like a provided and supported mechanism for inter-operating between Dart and JavaScript code. Currently the recommended way to do so is to use package:js (see https://pub.dev/packages/js). JS-interop is still in active development, so it may change a bit in the next few months.
Cheers,
Siggi

Hi again @Earlonus, as I mentioned in #44550 -  consider posting questions in stack overflow. The community can be very helpful and others will benefit from reading your question and answer in the future :)
It sounds to me like you would like a provided and supported mechanism for inter-operating between Dart and JavaScript code. Currently the recommended way to do so is to use package:js (see https://pub.dev/packages/js). JS-interop is still in active development, so it may change a bit in the next few months.
Cheers,
Siggi

Hi again @Earlonus, as I mentioned in #44550 - consider posting questions in stack overflow. The community can be very helpful and others will benefit from reading your question and answer in the future :)
It sounds to me like you would like a provided and supported mechanism for inter-operating between Dart and JavaScript code. Currently the recommended way to do so is to use package:js (see https://pub.dev/packages/js). JS-interop is still in active development, so it may change a bit in the next few months.
Cheers,
Siggi

Thanks for your answer, it solves this problem

Hi again @Earlonus, as I mentioned in #44550 - consider posting questions in stack overflow. The community can be very helpful and others will benefit from reading your question and answer in the future :)
It sounds to me like you would like a provided and supported mechanism for inter-operating between Dart and JavaScript code. Currently the recommended way to do so is to use package:js (see https://pub.dev/packages/js). JS-interop is still in active development, so it may change a bit in the next few months.
Cheers,
Siggi

Thanks for your answer, it solves this problem


chore(client): simplify otel context propagation logic

With this PR, we are simplifying the otel context propagation logic. A few versions ago, otel contexts did not propagate through thenables, and thus PrismaPromises. This is not the case anymore, so the overall logic can be relaxed as the context does not need to be passed end-to-end.

This is still a work in progress.
 Add otel.ts like this:
import { Resource } from '@opentelemetry/resources'
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions'
import {
  BasicTracerProvider,
  ConsoleSpanExporter,
  SimpleSpanProcessor,
  BatchSpanProcessor,
} from '@opentelemetry/sdk-trace-base'
// import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-grpc'
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http'
// import { JaegerExporter } from '@opentelemetry/exporter-jaeger'
// import { registerInstrumentations } from "@opentelemetry/instrumentation";
import { AsyncHooksContextManager } from '@opentelemetry/context-async-hooks'
import * as api from '@opentelemetry/api'

/** SETUP */

export function otelSetup() {
  // a context manager is required to propagate the context
  const contextManager = new AsyncHooksContextManager().enable()

  // it's for node.js for span nesting and ctx propagation
  api.context.setGlobalContextManager(contextManager)

  // a simple exporter that logs the raw data to the console
  const consoleExporter = new ConsoleSpanExporter()

  // exporter that natively works with jaeger without extras
  const otlpTraceExporter = new OTLPTraceExporter()

  // a standard provider that can run on the web and in node
  const provider = new BasicTracerProvider({
    resource: new Resource({
      // we can define some metadata about the trace resource
      [SemanticResourceAttributes.SERVICE_NAME]: 'test-tracing-service',
      [SemanticResourceAttributes.SERVICE_VERSION]: '1.0.0',
    }),
  })

  // a provider combines multiple exporters to send the data
  // provider.addSpanProcessor(new SimpleSpanProcessor(consoleExporter))
  provider.addSpanProcessor(new SimpleSpanProcessor(otlpTraceExporter))
  //   provider.addSpanProcessor(new BatchSpanProcessor(exporter))

  // makes the provider the global tracer provider for telemetry
  provider.register()
}

And then an index.ts:
import { trace, context, SpanKind, TraceFlags } from '@opentelemetry/api'
import { Span } from '@opentelemetry/sdk-trace-base'
import { PrismaClient } from '.prisma/client'
import { otelSetup } from './otel'

otelSetup()

// set things up for tracing our "app"
const tracer = trace.getTracer('MyApp')

const results = {}

  for (let i = 0; i < 3; i++) {
    await tracer.startActiveSpan('create-user', async (span) => {
      try {
        const email =<EMAIL_ADDRESS>        return await prisma.user.create({
          data: {
            email: email,
          },
        })
      } finally {
        span.end()
      }
    })
  }
  // console.log(users)
}

void main()
  .then(() => {
    console.table(results)
  })
  .catch((e) => {
    console.log(e.message)
    process.exit(1)
  })

Schema file
generator client {
  provider        = "prisma-client-js"
  output          = "../node_modules/.prisma/client"
  previewFeatures = ["tracing", "interactiveTransactions"]
  //engineType = "binary"
}

datasource db {
  provider = "postgresql"
  // url      = "postgresql://postgres:postgres@localhost:5432/test-db"
  url      = "postgresql://postgres:prisma@localhost:5434"
}

model post {
    id          String  @id @db.VarChar(36)
    description String? @db.VarChar(255)
    userId      String  @db.VarChar(36)
    user        user    @relation(fields: [userId], references: [id], onDelete: Cascade, onUpdate: Cascade, map: "FK_user_id_post_userId")

    @@index([userId], map: "FK_user_id___post_userId")
}

model user {
  id        String   @id @default(uuid())
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
  name      String?
  email     String   @unique
  posts post[]
}

Then in the new reproductions folder run pnpm i && pnpx prisma migrate dev
Then go to your prisma engines folder and run:
cargo build --package query-engine-node-api --release

That will generate a engine to run as a node API library. We need to copy it across. I have a file like this:
copy.sh
rm -rf node_modules/.prisma/client/libquery_engine-darwin-arm64.dylib.node
cp /Users/garren/dev/prisma/prisma-engines/target/release/libquery_engine.dylib node_modules/.prisma/client/libquery_engine-darwin-arm64.dylib.node

Modify for your folders.
After this you can:
pnpx ts-node index.ts

After it has run navigate to http://localhost:16686
Click on find traces and you should see all the traces

Going to merge this, it's been open a long time, It’s had manual testing from @garrensmith and myself, automated e2e testing in the branch, a review from @SevInf where feedback was applied, and in yesterday's deep dive we(@SevInf @Jolg42 @jkomyno) dived into it to share knowledge and test the release on NPM.


Incorrect source file name

Fixes the <Not found> issue on the "PrefixSuffixUtil.java" tab (see https://cookbook.vaadin.com/prefix-util ) caused by wrong sourceFiles property value.

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks!

Thanks!


pip install troposphere issue

Hi,
I’m trying to install the troposphere library and it looks like it’s partially installing then failing. I’m assuming on one of the dependencies.
I’ve attached a screenshot. Please let me know if you need more information.

Is the install successful on some other platform?

This should now be fixed in b64da1f. Apparently, some packages define their dependencies in setup.py as a single string instead of a list of str. Our dependency parser did not handle this case, so it attempted to treat the whole dependency file as a list of dependencies, taking each byte as a separate dependency.
I'll merge the fix in a few minutes, can you check if it will work then?
Also, congratulations for creating issue #404. Ironically, pip could indeed not find the dependencies...

basestring points to a Python 2 issue. There are other long-standing Python 2 issues still open for the toposphere project. Do they officially support Python 3?


fix(dashmate): zero ssl verification passes without being verified

Issue being fixed or feature implemented

ZeroSSL certificate verification passes without actually verifying the certificate.
What was done?

Make sure that verification server is responding before we request verification from ZeroSSL
Remove wrong automate retries on verification
Display error from undocumented error response from ZeroSSL

How Has This Been Tested?

Obtain certificates on with open and close 80 port
Breaking Changes

None
Checklist:

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added or updated relevant unit/integration/functional/e2e tests
[x] I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
[x] I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

[x] I have assigned this pull request to a milestone

@coderabbit review


Catalog App - istio fails in k8s 1.16.2

What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):
in v2.3.1-rc1, cluster k8s 1.16.2
istio shows 3 templates and neither of them work in 1.16.2

@jiaqiluo what charts branch are you looking at? this looks like it's coming from charts verus system-charts.
the istio catalog in the charts branch (library) should not show any versions.

@jiaqiluo If you are pointing to the k8s-1.16 branch, it doesn't have the max version for istio, but it is already in master, but it breaks CI when we bring that commit into that branch. Therefore, that chart has a unique case where it's already fixed to hide all versions in master branch.


Fix getManualLicenseFile

A quick tread through using this amazing example from scratch revealed that the action name referenced was slightly off.
Quick reference and sanity check of the referenced action

thanks!


Add boolean function

This PR is for adding the most basic way to represent preferences via an Order: a Boolean function.

Changes Unknown when pulling f07a683bd711df2c832e87840a8920f1116e1fbd on add-boolean-function into ** on develop**.

Changes Unknown when pulling 765c17db41250998082142db146c3a37eeca57ed on add-boolean-function into ** on develop**.


output just one file

Right now we generate 1 output file per part of each input file. Perhaps it would be more convenient to output a single file.

This issue no longer relevant. We've completely re-written, so now library functions don't do IO. The command line app can easily be designed to support various output options.


DO NOT MERGE: Make a Regex toolchain in CI

Make a regex toolchain to try out lookbehind assertions, for swift-evolution.

https://github.com/swiftlang/swift-experimental-string-processing/pull/760
@swift-ci Please Build Toolchain macOS Platform

@swift-ci please build toolchain

https://github.com/swiftlang/swift-experimental-string-processing/pull/760
@swift-ci please build toolchain


ls: implement --group-directories-first

Closes #3519

Cool stuff. Could you please add tests? thanks

Cool stuff. Could you please add tests? thanks

I did it but I went down a rabbit hole. I found out that ls -a doesn't work the same as the GNU version. The . and .. directories are always first, no matter what. If sorts are applied, -r is specified or --group-directories-first is used, the location of . and .. shouldn't always be on the top.
Now with the changes I made it mostly behaves the same (I think). But this created one unfortunate side effect: ls -a1v now places .. at the end of the list and . at the begging. The GNU version places both . and .. at the begging. I couldn't find an easy fix for this so I just changed the test.

I went down a rabbit hole.

Welcome to the Rust/coreutils ;)

An unrelated test failed. Maybe re-run that step of the CI?

bravo
Warning: Congrats! The gnu test tests/ls/group-dirs is no longer failing!


Saurabh kumar

Description

Related Issues

Changes Proposed

Checklist

[x] I have read and followed the Contribution Guidelines.
[x] All new and existing tests passed.
[x] I have updated the documentation to reflect the changes I've made.
[x] My code follows the code style of this project.
[x] The title of my pull request is a short description of the requested changes.

Screenshots
Note to reviewers

Hi @saurabh9798, thanks for your interest in contributing to DevDisplay!
We noticed you adding your profile on #DevDisplay but forgot to star the repo. It's like making an amazing sandwich and forgetting to take a bite! -- I think our repo's feeling a little lonely without your 🤗 So, be sure to star the DevDisplay GitHub Repository. 🌟
💌 This is a mandatory step for all contributors. & It's is the first priority of contribution in DevDisplay 💌
Thanks 👍🏻


refactor(dbm-services): 资源导入优化

关联研发信息
dev_branch: refactor/optmization_import_resource/#372
target_branch: v1.2.0


Broken swagger:response Generation with Go 1.22.0 + 1.21.5 darwin/arm64

Problem statement
I've been trying to get Swagger running for a few hours now. I can't seem to get responses working at all. Using code directly from the example page (https://goswagger.io/use/spec/response.html):
// A ValidationError is an error that is used when the required input fails validation.
// swagger:response validationError
type ValidationError struct {
    // The error message
    // in: body
    Body struct {
        // The validation message
        //
        // Required: true
        // Example: Expected type int
        Message string
        // An optional field name to which this validation applies
        FieldName string
    }
}

And building with swagger generate spec -o ./swagger.yaml (also tried swagger generate spec -o ./swagger.yaml --scan-models), I get this output:
responses:
    validationError:
        description: A ValidationError is an error that is used when the required input fails validation.

No amount of anything seems to fix this from what I've tried.
Any help would be greatly appreciated!
Environment
swagger version: v0.30.5 (I've tried static builds + homebrew)
go version: 1.22.0 + 1.21.5
OS:  darwin/arm64

Also tried Docker, couldn't get it working. Hit way too many issues worth my time, already spent wayyy to long trying to get this working.

Moved to #3035


msgpack: invalid code=d9 decoding bytes length

What version of Genji are you using?

$ genji version
latest master as of today.
commit f8b184da75c85692c6b9ebd0c1d24c0d37fdb457 (origin/main, origin/HEAD, main)
Author: Asdine El Hrychy
Date:   Mon May 16 20:31:46 2022 +0400

    Improve INSERT API

What did you do?

create airbnb-listing table
db.Exec("CREATE TABLE listing")
insert data into airbnb-listing
db.Exec("INSERT INTO listing VALUES ?", &listing)
select average rating group by city
select city, avg(review_scores_rating) as avg_rating from listing group by city order by avg_rating desc;

What did you expect to see?
average rating grouped by city
What did you see instead?
msgpack: invalid code=d9 decoding bytes length
Test data & Genji database attached
airbnb-listings-10.txt
listing.db.zip

Thanks for the details issue and for the data!
I'm currently rewriting the encoding layer so this should be fixed this week

We are no longer using msgpack, we switched to a custom encoding layer.
I can confirm that the query works now:
select city, avg(review_scores_rating) as avg_rating from listing group by city order by avg_rating desc;
{
  "city": "Beijing",
  "avg_rating": 90
}


Single resources instead of nested resources

Codecov Report

Merging #24 into master will decrease coverage by 0.04%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #24      +/-   ##
==========================================
- Coverage   92.12%   92.08%   -0.05%
==========================================
  Files          53       53
  Lines         851      846       -5
  Branches       36       36
==========================================
- Hits          784      779       -5
  Misses         66       66
  Partials        1        1

Impacted Files
Coverage Δ

...efront.Menu.API/Models/ServiceModel/ItemCatalog.cs
100% <ø> (ø)
:arrow_up:

...Menu.API/Models/ServiceModel/OptionGroupCatalog.cs
100% <ø> (ø)
:arrow_up:

.../Models/DataModel/OptionGroups/OptionGroupQuery.cs
100% <ø> (ø)
:arrow_up:

...ont.Menu.API/Controllers/OptionGroupsController.cs
100% <100%> (ø)
:arrow_up:

...Storefront.Menu.API/Controllers/ItemsController.cs
100% <100%> (ø)
: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 c629cd2...4cf50cf. Read the comment docs.


Failing in ubutnu OS

Failed to install funnel on ubuntu 19.10. Am I missing something? Are there any prerequisite for funnel installation.
$ pip3 install git+https://github.com/PaulMcInnis/JobFunnel.git

Error logs
    ERROR: Command errored out with exit status 1:
     command: /home/xyz/.asdf/installs/python/3.8.0/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n91obe4e/scikit-learn/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n91obe4e/scikit-learn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dbbevzm6/install-record.txt --single-version-externally-managed --compile
         cwd: /tmp/pip-install-n91obe4e/scikit-learn/
    Complete output (90 lines):
    Partial import of sklearn during the build process.
    blas_opt_info:
    blas_mkl_info:
    customize UnixCCompiler
      libraries mkl_rt not found in ['/home/xyz/.asdf/installs/python/3.8.0/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
      NOT AVAILABLE

    blis_info:
      libraries blis not found in ['/home/xyz/.asdf/installs/python/3.8.0/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
      NOT AVAILABLE

    openblas_info:
      libraries openblas not found in ['/home/xyz/.asdf/installs/python/3.8.0/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
      NOT AVAILABLE

    atlas_3_10_blas_threads_info:
    Setting PTATLAS=ATLAS
      libraries tatlas not found in ['/home/xyz/.asdf/installs/python/3.8.0/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
      NOT AVAILABLE

    atlas_3_10_blas_info:
      libraries satlas not found in ['/home/xyz/.asdf/installs/python/3.8.0/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
      NOT AVAILABLE

    atlas_blas_threads_info:
    Setting PTATLAS=ATLAS
      libraries ptf77blas,ptcblas,atlas not found in ['/home/xyz/.asdf/installs/python/3.8.0/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
      NOT AVAILABLE

    atlas_blas_info:
      libraries f77blas,cblas,atlas not found in ['/home/xyz/.asdf/installs/python/3.8.0/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
      NOT AVAILABLE

    accelerate_info:
      NOT AVAILABLE

    /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages/numpy/distutils/system_info.py:1896: UserWarning:
        Optimized (vendor) Blas libraries are not found.
        Falls back to netlib Blas library which has worse performance.
        A better performance should be easily gained by switching
        Blas library.
      if self._calc_info(blas):
    blas_info:
      libraries blas not found in ['/home/xyz/.asdf/installs/python/3.8.0/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
      NOT AVAILABLE

    /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages/numpy/distutils/system_info.py:1896: UserWarning:
        Blas (http://www.netlib.org/blas/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [blas]) or by setting
        the BLAS environment variable.
      if self._calc_info(blas):
    blas_src_info:
      NOT AVAILABLE

    /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages/numpy/distutils/system_info.py:1896: UserWarning:
        Blas (http://www.netlib.org/blas/) sources not found.
        Directories to search for the sources can be specified in the
        numpy/distutils/site.cfg file (section [blas_src]) or by setting
        the BLAS_SRC environment variable.
      if self._calc_info(blas):
      NOT AVAILABLE

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-n91obe4e/scikit-learn/setup.py", line 290, in <module>
        setup_package()
      File "/tmp/pip-install-n91obe4e/scikit-learn/setup.py", line 286, in setup_package
        setup(**metadata)
      File "/home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages/numpy/distutils/core.py", line 137, in setup
        config = configuration()
      File "/tmp/pip-install-n91obe4e/scikit-learn/setup.py", line 174, in configuration
        config.add_subpackage('sklearn')
      File "/home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages/numpy/distutils/misc_util.py", line 1033, in add_subpackage
        config_list = self.get_subpackage(subpackage_name, subpackage_path,
      File "/home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages/numpy/distutils/misc_util.py", line 999, in get_subpackage
        config = self._get_configuration_from_setup_py(
      File "/home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages/numpy/distutils/misc_util.py", line 941, in _get_configuration_from_setup_py
        config = setup_module.configuration(*args)
      File "sklearn/setup.py", line 66, in configuration
        config.add_subpackage('utils')
      File "/home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages/numpy/distutils/misc_util.py", line 1033, in add_subpackage
        config_list = self.get_subpackage(subpackage_name, subpackage_path,
      File "/home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages/numpy/distutils/misc_util.py", line 999, in get_subpackage
        config = self._get_configuration_from_setup_py(
      File "/home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages/numpy/distutils/misc_util.py", line 941, in _get_configuration_from_setup_py
        config = setup_module.configuration(*args)
      File "sklearn/utils/setup.py", line 8, in configuration
        from Cython import Tempita
    ModuleNotFoundError: No module named 'Cython'
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/xyz/.asdf/installs/python/3.8.0/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n91obe4e/scikit-learn/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n91obe4e/scikit-learn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dbbevzm6/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

There are prerequisites, looks like something has changed with the installer.
This needs to be fixed.

I am also having the same issue but with different output.
Python3.5 and python3.6 are installed on my system (ubuntu 16.04 lts)
pip is only setup with python3.5 so that seems to be the one that JobFunnel gets run with.

When I try install jobfunnel manually from github I encounter the same issue.

Can you both confirm for me the results of running ‘which pip’ are pythong 3?

Some on Arch Linux.
➜  / which pip /usr/bin/pip ➜  / python --version Python 3.8.1 ➜  / pip --version pip 19.2.3 from /usr/lib/python3.8/site-packages/pip (python 3.8) ➜  /

uname -a
Linux desktop 5.3.0-26-generic #28-Ubuntu SMP  2019 x86_64 x86_64 x86_64 GNU/Linux

➜ which pip3
/home/xyz/.asdf/shims/pip3
➜ python --version
Python 3.8.0
➜ pip --version
pip 19.3.1 from /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages/pip (python 3.8)

Ok, I've replicated this issue. Its an issue with the version of scikit learn and python.
If you use python 3.7.6 it should work fine.

Alternatively, wait until v 2.0 is merged, which fixes this issue.

The installation went fine with v 2.0. Now Its works fine for me.
➜ pip3 install git+https://github.com/PaulMcInnis/JobFunnel.git
Collecting git+https://github.com/PaulMcInnis/JobFunnel.git
  Cloning https://github.com/PaulMcInnis/JobFunnel.git to ./pip-req-build-bmm7ykj6
  Running command git clone -q https://github.com/PaulMcInnis/JobFunnel.git /tmp/pip-req-build-bmm7ykj6
Requirement already satisfied: beautifulsoup4>=4.6.3 in /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages (from JobFunnel==2.0.0) (4.8.1)
Requirement already satisfied: lxml>=4.2.4 in /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages (from JobFunnel==2.0.0) (4.4.2)
Requirement already satisfied: requests>=2.19.1 in /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages (from JobFunnel==2.0.0) (2.22.0)
Requirement already satisfied: python-dateutil>=2.8.0 in /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages (from JobFunnel==2.0.0) (2.8.1)
Requirement already satisfied: PyYAML>=5.1 in /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages (from JobFunnel==2.0.0) (5.2)
Collecting scikit-learn>=0.21.2
  Downloading https://files.pythonhosted.org/packages/db/5d/dddb8b82ee573df2ccaacb210e1df56daec33dd62aa637005dbc7b889eea/scikit_learn-0.22.1-cp38-cp38-manylinux1_x86_64.whl (7.0MB)
     |████████████████████████████████| 7.0MB 142kB/s
Collecting nltk>=3.4.1
  Downloading https://files.pythonhosted.org/packages/f6/1d/d925cfb4f324ede997f6d47bea4d9babba51b49e87a767c170b77005889d/nltk-3.4.5.zip (1.5MB)
     |████████████████████████████████| 1.5MB 27kB/s
Requirement already satisfied: scipy>=1.4.1 in /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages (from JobFunnel==2.0.0) (1.4.1)
Requirement already satisfied: soupsieve>=1.2 in /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages (from beautifulsoup4>=4.6.3->JobFunnel==2.0.0) (1.9.4)
Requirement already satisfied: idna<2.9,>=2.5 in /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages (from requests>=2.19.1->JobFunnel==2.0.0) (2.8)
Requirement already satisfied: certifi>=2017.4.17 in /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages (from requests>=2.19.1->JobFunnel==2.0.0) (2019.9.11)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages (from requests>=2.19.1->JobFunnel==2.0.0) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages (from requests>=2.19.1->JobFunnel==2.0.0) (1.25.7)
Requirement already satisfied: six>=1.5 in /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages (from python-dateutil>=2.8.0->JobFunnel==2.0.0) (1.12.0)
Requirement already satisfied: numpy>=1.11.0 in /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages (from scikit-learn>=0.21.2->JobFunnel==2.0.0) (1.18.0)
Requirement already satisfied: joblib>=0.11 in /home/xyz/.asdf/installs/python/3.8.0/lib/python3.8/site-packages (from scikit-learn>=0.21.2->JobFunnel==2.0.0) (0.14.1)
Installing collected packages: scikit-learn, nltk, JobFunnel
    Running setup.py install for nltk ... done
    Running setup.py install for JobFunnel ... done
Successfully installed JobFunnel-2.0.0 nltk-3.4.5 scikit-learn-0.22.1
/tmp took 1m34s
➜ funnel --help
usage: CLI options take precedence over settings in the yaml fileempty arguments are replaced by settings in the default yaml file
       [-h] [-s SETTINGS] [-o OUTPUT_PATH] [-kw [KEYWORDS [KEYWORDS ...]]] [-r] [-c] [-d DELAY] [-md MIN_DELAY] [--fun {constant,linear,sigmoid}]
       [--log_level {critical,error,warning,info,debug,notset}] [--similar] [--no_scrape] [--no_delay] [--recover] [--save_dup]


Presentation: filter button

Closes https://github.com/iTwin/itwinjs-backlog/issues/109
Renders action button on nodes for filtering.

One thing I noticed is that when filter button is clicked node is selected. I think this should not happens and it should be possible to click filter button without changing selection.

Which is better?
With medium spacing.

With no spacing.

Which is better?

I vote for no spacing


feat: setup build step

Fixes #482, #496

Add build step with react-native-builder-bob
Apply their strict tsconfig
Cleanup what's published to NPM
Unified the metro config even more
Both examples work with the library src
Expo now uses the plugin src, no previous build required during development

I've kept the plugin build as is and did not move it to bob. There are specialized configs provided by expo-module-scripts which we should keep.

This ones ready! Please read the initial comment for an overwiew, what I did and why. It builds and runs for all examples and I've also used the result of yarn pack in our expo project.

True, simplifying commands would be nice, but only if we can get the same results. Created a follow-up.


Added MarriedTooOldWarning

MarriedTooOld is raised when a spouse was married at an age greater than 100 (DefaultMaxMarriageAge).

This change is

Codecov Report

Merging #255 into master will increase coverage by 0.13%.
The diff coverage is 94.44%.

@@            Coverage Diff             @@
##           master     #255      +/-   ##
==========================================
+ Coverage   64.12%   64.25%   +0.13%
==========================================
  Files         201      202       +1
  Lines        6417     6446      +29
==========================================
+ Hits         4115     4142      +27
- Misses       2174     2176       +2
  Partials      128      128

Impacted Files
Coverage Δ

document.go
78.41% <ø> (ø)
:arrow_up:

individual_node.go
95.26% <ø> (-0.09%)
:arrow_down:

family_node.go
90.18% <100%> (+1.61%)
:arrow_up:

married_too_old_warning.go
84.61% <84.61%> (ø)

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 9130b15...fe7c599. Read the comment docs.


Adding timer on top

Would be great to have a timer on top, presenting time and date.
Feel free to adapt the colors to something smooth and pleasant.
The watch/date should be real time updating.

I can help with this

are you available now

adding time and date


⚠ Bofrost.es has degraded performance

In c8884b0, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 2008 ms

Resolved: Bofrost.es performance has improved in 1b99187.


Cannot use Hexagon delegate in Oneplus 6t. Failed to fetch Hexagon NN version. Not working since 18-Nov-2020.

2020-11-18 23:49:31.577 10150-10267/org.tensorflow.lite.examples.alerts.debug E/org.tensorflow.lite.examples.alerts.debug: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:728:Error 45: fopen failed for libhexagon_nn_skel_v65.so. (No such file or directory)
2020-11-18 23:49:31.578 929-961/? E//vendor/bin/cdsprpcd: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:728:Error 45: fopen failed for libhexagon_nn_skel_v65.so. (No such file or directory)
2020-11-18 23:49:31.578 10150-10232/org.tensorflow.lite.examples.alerts.debug D/org.tensorflow.lite.examples.alerts.debug: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:921: Error fffffffb: remote handle open domain failed. domain 3, name file:///libhexagon_nn_skel_v65.so?hexagon_nn_domains_skel_handle_invoke&_modver=1.0&_dom=cdsp, dlerror cannot open libhexagon_nn_skel_v65.so
2020-11-18 23:49:31.578 10150-10232/org.tensorflow.lite.examples.alerts.debug D/org.tensorflow.lite.examples.alerts.debug: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:958: Error fffffffb: remote handle64 open failed. name file:///libhexagon_nn_skel_v65.so?hexagon_nn_domains_skel_handle_invoke&_modver=1.0&_dom=cdsp
2020-11-18 23:49:31.578 10150-10232/org.tensorflow.lite.examples.alerts.debug W/tflite: Failed to fetch Hexagon NN version. This might be because you're using incompatible versions of libhexagon_interface and libhexagon_nn_skel. You must use compatible versions. Refer to Tensorflow Lite Hexagon Delegate Guide.
2020-11-18 23:49:31.578 10150-10232/org.tensorflow.lite.examples.alerts.debug I/tflite: Hexagon Delegate is not supported.

@ibrahimgharyali
Please, fill issue template.
Provide the exact sequence of commands / steps that you executed before running into the problem.Thanks!

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOs Mojave (running on Android 9)
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: Oneplus 6t Snapdragon 845 SoC.
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): TFLite 2.3.0
Python version: 1.15.2
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory: mobilenet_v2, GPU- Adreno 630

Adding Hexagon delegate to tflite interpreter throws error Hexagon Delegate is not supported.
I was able to run it till yesterday. I believe there is a new update in the tensorflow-lite-hexagon:0.0.0-nightly and it stops working for my device
                HexagonDelegate hexagonDelegate = null;
                try {
                    Interpreter.Options tfliteOptions = new Interpreter.Options();
                    hexagonDelegate = new HexagonDelegate(context);
                    tfliteOptions.addDelegate(hexagonDelegate);

                } catch (UnsupportedOperationException e) {
                    e.printStackTrace();
                }`

Error Logs:
2020-11-18 23:49:31.577 10150-10267/org.tensorflow.lite.examples.alerts.debug E/org.tensorflow.lite.examples.alerts.debug: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:728:Error 45: fopen failed for libhexagon_nn_skel_v65.so. (No such file or directory)

2020-11-18 23:49:31.578 929-961/? E//vendor/bin/cdsprpcd: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:728:Error 45: fopen failed for libhexagon_nn_skel_v65.so. (No such file or directory)

2020-11-18 23:49:31.578 10150-10232/org.tensorflow.lite.examples.alerts.debug D/org.tensorflow.lite.examples.alerts.debug: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:921: Error fffffff: remote handle open domain failed. domain 3, name file:///libhexagon_nn_skel_v65.so?hexagon_nn_domains_skel_handle_invoke&_modver=1.0&_dom=cdsp, dlerror cannot open libhexagon_nn_skel_v65.so

2020-11-18 23:49:31.578 10150-10232/org.tensorflow.lite.examples.alerts.debug D/org.tensorflow.lite.examples.alerts.debug: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:958: Error fffffff: remote handle64 open failed. name file:///libhexagon_nn_skel_v65.so?hexagon_nn_domains_skel_handle_invoke&_modver=1.0&_dom=cdsp

2020-11-18 23:49:31.578 10150-10232/org.tensorflow.lite.examples.alerts.debug W/tflite: Failed to fetch Hexagon NN version. This might be because you're using incompatible versions of libhexagon_interface and libhexagon_nn_skel. You must use compatible versions. Refer to Tensorflow Lite Hexagon Delegate Guide.

2020-11-18 23:49:31.578 10150-10232/org.tensorflow.lite.examples.alerts.debug I/tflite: Hexagon Delegate is not supported.

Provide the exact sequence of commands / steps that you executed before running into the problem.Thanks!

Trying to run a mobilenet_v2 int8 model in my android device.
I followed this guide: https://www.tensorflow.org/lite/performance/hexagon_delegate
Add gradle dependencies for tflite, tflite-gpu, tflite-hexagon:
 implementation "org.tensorflow:tensorflow-lite:2.3.0"
 implementation "org.tensorflow:tensorflow-lite-gpu:2.3.0"
 implementation 'org.tensorflow:tensorflow-lite-hexagon:0.0.0-nightly'

copied .sofiles (libhexagon_nn_skel.so, libhexagon_nn_skel_v65.so, libhexagon_nn_skel_v66.so) extracting from tflite_hexagon_nn_skel_v<IP_ADDRESS>.run into path project -> app -> src -> main -> jniLibs -> {arm64-v8a, armeabi, armeabi-v7a, mips, mips64, x86, x86_64} .
The model is running on cpu as well as on GPU Delegate.

Can you capture the whole logcat ?
Can you verify that the files are in the expected locations on the device

In the initialize line for the delegate
(e.g.) hexagonDelegate = new HexagonDelegate(activity);
Can you print
activity.getApplicationInfo().nativeLibraryDir
and check that the shared lib files are on the device under the same path.
adb shell ls -al <PATH_PRINTED_FROM_ABOVE>
If you can paste the results in the reply will be good.
Thanks

@ibrahimgharyali
Please, fill issue template.
Provide the exact sequence of commands / steps that you executed before running into the problem.Thanks!

done

@ibrahimgharyali Please reply to https://github.com/tensorflow/tensorflow/issues/45014#issuecomment-731474874
Thanks

Can you capture the whole logcat ?
Can you verify that the files are in the expected locations on the device

In the initialize line for the delegate
(e.g.) hexagonDelegate = new HexagonDelegate(activity);
Can you print
activity.getApplicationInfo().nativeLibraryDir
and check that the shared lib files are on the device under the same path.
adb shell ls -al <PATH_PRINTED_FROM_ABOVE>
If you can paste the results in the reply will be good.
Thanks

print activity.getApplicationInfo().nativeLibraryDir = /data/app/com.package.name-XXXXXXXXXXX==/lib/arm64
log from adb shell ls -al /data/app/com.package.name-XXXXXXXXXXX==/lib/arm64
total 16
drwxr-xr-x 2 system system 4096 2021-07-06 11:19 .
drwxr-xr-x 3 system system 4096 2021-07-06 11:19 ..

@ibrahimgharyali Based on what you shared, the libraries are not packaged with your app. You need to get them packaged to be able to run the delegate.

Any updates on this issue?

 For example, this explain how to do it.


About "Cannot release an unlocked lock" exception

I encounter a ''Cannot release an unlocked lock" exception when using the redis lock, and find these 2 lines in source code:
if self.acquired_until is None:
    raise ValueError("Cannot release an unlocked lock")
```

I don't understand why these 2 lines are needed?

I think the lock / release action should be wholly controlled by the developer so no need to add a limit here.

I'm seeing this error when using a context manager on a production machine. I'm not sure if the call to do_something() raised an exception, but that is a possibility.
def get_redis_lock():
    """ Returns a lock. """
    return Lock(redis=redis_connection, name='test', blocking=True,
                blocking_timeout=180)

def event_loop():
    while True:
        with get_redis_lock():
            do_something()
        time.sleep(1)

File "/usr/local/travis/virtualenv/lib/python2.7/site-packages/redis/lock.py", line 88, in __exit__

 self.release()
   File "/usr/local/travis/virtualenv/lib/python2.7/site-packages/redis/lock.py", line 133, in release
     raise LockError("Cannot release an unlocked lock")
 redis.exceptions.LockError: Cannot release an unlocked lock


Cant set facebook redirect url.

Hi, I tried to set the https://www.facebook.com/connect/login_success.html as a valid redirect url in my facebook app settings, but it says that it is not valid as it a facebook address. Without setting anything it gives an error: The domain of this URL is not included in App Domains. For this URL to load, please add all application domains and subdomains in the "Application domains" field in the application settings. and does not return any token. Could you help me out with this?

Same here!

Do you have any idea @kanekotic?


marke EL 6 as supported

Thank you for the handy role! It worked great for me on CentOS 6

Thanks again @brad !

No problem 😀


De/serialize struct as an array of values

From IRC:

<mimbo> Hi all. How to I de/serialize a struct as an array of values?
<mimbo> i.e. struct T { s: String, i: i32, b: bool } should be used from ["str", 123, true]

Here is one approach.
extern crate serde;
extern crate serde_json;
use serde::{Serialize, Serializer, Deserialize, Deserializer};

#[derive(Debug)]
struct T {
    s: String,
    i: i32,
    b: bool,
}

impl Serialize for T {
    fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error>
        where S: Serializer
    {
        (&self.s, self.i, self.b).serialize(serializer)
    }
}

impl Deserialize for T {
    fn deserialize<D>(deserializer: &mut D) -> Result<T, D::Error>
        where D: Deserializer
    {
        Deserialize::deserialize(deserializer)
            .map(|(s, i, b)| T { s: s, i: i, b: b })
    }
}

fn main() {
    let t = T { s: "str".to_owned(), i: 123, b: true };
    let j = serde_json::to_string(&t).unwrap();
    println!("{}", j);

    let t2: T = serde_json::from_str(&j).unwrap();
    println!("{:?}", t2);
}

I have not seen this use case before but if it turns out to be pretty common, we could make it nicer with some sort of attribute.
#[derive(Serialize, Deserialize, Debug)]
#[serde(as_tuple)]
struct T {
    s: String,
    i: i32,
    b: bool,
}

On the other hand if is common in mimbo's code but uncommon elsewhere, you could write a macro_rules! macro to generate Serialize and Deserialize implementations like this for a particular struct.

Use cases:

<sfackler> i have done this before to shrink e.g. {"time": 1000, "value": 10.5} to [1000, 10.5]

<mimbo> the use case is to compact data

I think it would be reasonable for us to support this in #[derive(Serialize)].

I have similar use-case, but with enum as a target - items in the source I'm pulling data from are encoded as ["TagN", value1, value2, ...] which I want to decode into an MyEnum::TagN(value1, value2, ...). My understanding is that it's not currently achievable with just "internally tagged" enum representation because it expects a string key into a map?

Here is a macro based on @dtolnay solution tested on serde = "1.0.80".

Just for reference, there is a crate for this now: https://crates.io/crates/serde_tuple


ieee802154: Remove dead code and allow debug for RAW channel

Codecov Report

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

@@           Coverage Diff           @@
##           master   #11259   +/-   ##
=======================================
  Coverage    53.1%    53.1%
=======================================
  Files         218      218
  Lines       26887    26887
  Branches     5954     5954
=======================================
  Hits        14277    14277
  Misses      10174    10174
  Partials     2436     2436

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 701a574...49155b1. Read the comment docs.

@tbursztyka merged


Allow file to be specified for config:push

Hey,
It would be good for deis config:push to accept a path to a .env file.
I have 2 apps setup from 1 repo, one for staging and one for production, each have their own .env files.
An example would be: deis config:push ./env.production

ive got some code it reads a config.json file from the project root when creating a projects so on deis create the config it added to the application so by the time you run git push deis master the config it in place.
It lets you set RAM, CPU , VALUES etc. it you want Im happy to issue a pull request , It would not be hard to change it to use a .env file ..

@apps4u that may be a great candidate for a plugin!
http://docs.deis.io/en/latest/customizing_deis/cli-plugins/

@apps4u That would be awesome. Does it let you set all ENV vars?

yes , I’ll create a public repo and issue a push or should I just publish the link as I said its reads from a file called config.json in the project root but it would not be hard to change to read a .env file . Also It has not had any test written for the features I added so the pull request won’t be approved so I’ll just post a link to the repo and copy the code ..
All you need to do is change the default file name from config.json to your .env and then write one or two tests as it required for the pull request to be approved ..
I use the code every day so its works 100% but I didn’t write a test for it.
Jason Kristian | Director | Apps 4 U Pty Ltd.
ph: +61<PHONE_NUMBER>
mob: +61 0411 389 392
e: Jason Kristian<EMAIL_ADDRESS>
On 8 Apr 2015, at 6:10 pm, Scott Robertson<EMAIL_ADDRESS>wrote:
@apps4u https://github.com/apps4u That would be awesome. Does it let you set all ENV vars?
—
Reply to this email directly or view it on GitHub https://github.com/deis/deis/issues/3423#issuecomment-90837886.

+1

Sorry The codes on my laptop and I left it mothers when I went for easter.  so I wont have it back for three days please wait and I'll upload the code then sorry for the delay Ive not added the changes to repo  so its the only copy is on my laptop.

I have a working bash script for this. It is Heroku-specific, but making it work with a .env file shouldn't be too hard, as the format is the same as the output from heroku config.
https://github.com/onbjerg/heroku-to-deis

Wow. Ok, I didn't even realize you only needed to make it possible to specify a path. I need to get some more sleep.


Setup : Layout issue on mobile when changing orientation

I have some difficulties explaining it, but basically when it happens, the whole page gets shifted on the left hand side which makes the app look weird.
Steps to reproduce (in a new Setup page) on mobile (Android at least) :

Select blank candidate 1
popover should should, as well as the mobile keyboard
Rotate device landscape, everything should be good until now
Close keyboard
Rotate back device in portrait

Now the screen should be half filled by the setup page layout and the rest is white
I suspect that this is due to popovers, as I think I remember them putting a new element just before the end of the body, so this may be what's causing this shifting behavior.
My suspicions are also enhanced by the fact that if there is no error in the candidate field (so enter a name between step 2 and 4), this bug doesn't happen (because there is no popovers to show).

Another way to test this in desktop browser :

Comment out the line checkElement.addEventListener("focusout", () => $(checkElement).popover("hide")); in setup.js (line 417 at time writing this)
Focus Candidat 1
Use chrome dev tolls to rotate the "device" twice : bug present

The issue here seems to only happen when a popover is open (you could substitute Candidat 1 in step 2 to the db name), but I'm not sure how could I fix this (this seems to be a bootstrap issue rather than an issue on my end...)
I'll keep investigating

This seems to be a problem only on Chrome, it does't seemd to happen in Firefox (or at least I couldn't get to to happen in Firefox...)
Also tested Firefox on my Android phone and that bug doesn't happen there either

Following steps to test this in desktop browser, but also the same in mobile :
Before fix :

After fix :

I tried alot of fixes, especially from https://stackoverflow.com/questions/8840580/force-dom-redraw-refresh-on-chrome-mac, but none of them really worked, but toggling d-flex works, so there we go
I used toggle twice in case I change the layout in the future : toggling it twice will mean that it will be back to whatever class it was before (if d-flex was there before, it will be there again; if iit wasn't, it won't be there after the reflow).


[JSON RPC] replace GRPC storage client with LibraDB handle

Motivation
Before this PR, the JSON RPC server accessed storage via GRPC storage client, which is redundant in terms of networking protocol. This PR replaces GRPC storage client in JSON RPC server with a Arc<LibraDB> handle to directly interact with storage
Test Plan
Refactored and existing tests pass

@bors-libra: r+

:pushpin: Commit 6fbc99d has been approved by phoenix-antigravity

:hourglass: Testing commit 6fbc99d1fb2f917a626858d8e06d237c61565290 with merge a9024dec3f704727e30ac42566a075d27831b3b8...

:broken_heart: Test failed - checks-circle_commit_workflow

@bors-libra: r=phoenix-antigravity

:bulb: This pull request was already approved, no need to approve it again.

This pull request previously failed. You should add more commits to fix the bug, or use retry to trigger a build again.
There's another pull request that is currently being tested, blocking this pull request: #2556

:pushpin: Commit 6fbc99d has been approved by phoenix-antigravity

@bors-libra retry

:hourglass: Testing commit 6fbc99d1fb2f917a626858d8e06d237c61565290 with merge 69b59469a11293597adebf70934f1daa09af7e31...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: phoenix-antigravity
Pushing 69b59469a11293597adebf70934f1daa09af7e31 to master...


Add userStatusFlag for changing status based on task

Issue:
Parent Ticket Id - https://github.com/Real-Dev-Squad/website-backend/issues/1184
Description:
Add userStatusFlag for changing status based on task
Anthing you would like to inform the reviewer about:
Dev Tested:

[x] Yes

Images/video of the change:
Follow-up Issues (if any)

Closing this as by mistake push unwanted changes. will raise a new PR


Need advise on having mvcli tests on petitboot

Customers are coming to us to create Marvell RAID VD, so we have working test case implemented for Host OS (RHEL & Ubuntu) in avocado-misc framework. https://github.com/avocado-framework-tests/avocado-misc-tests/pull/564
We would like create a same test case to work on petitboot shell.
Let us know your opinion on having this test case on op-test-framework...
Thank you,
Naveed

Hi @stewart-ibm
We request to have your thoughts on this..
With regards,
Naveed

IIRC mvcl is a petitboot plugin?
Having a test could be good, as we certainly do want to ensure that existing plugins continue to work.
Of course, we'll need the test guarded by appropriate checks for a machine that has a Marvell card in it.

mvcli is not yet a plugin its just a binary that runs on petiboot shell.
There is a microsemi adaptec raid card which has "arcconf" which comes as plugin form factor.
Should we ask the development to see if mvcli can be built as pb-plugin?

Yeah, I don't want us to start testing running random binaries in petitboot. We support the petitboot plugin interface and the kernel ABI there, and that's the best way to test things.

As per previous comment, Closing the issue. Please feel free to reopen the issue if you feel it is still relevant.


Fix constant names

Fixes https://github.com/flutter/flutter/issues/15521

Already done in #420

Sorry bout that, @jason-simmons


Replace NSURLConnection for NSURLSession

What
Replace NSURLConnection with NSURLSession. Also Includes initial filtering and context classes.
Why
NSURLSession gives us more flexibility, we no longer have to use the shared cookie store for the application and we can separate out our requests from any HTTP requests they make to their backend.
How

TDRemoteRequest (and its subclasses ) moved to using CDTURLSession, a facade for NSURLConnection.
TDURLConnectionChangeTracker (Probably needs remaining now) moved to NSURLSession
Bump the supported platforms from iOS 6 to iOS 7 and OS X 10.8 to 10.9

Limitations

Completion handler callbacks occur on the thread that created the CDTURLSession object. This is a temporary stop gap until the TDReplicator (and it's sub classes) can be made thread safe.
Filters are not completely implemented, the classes are there as part of the initial import for @tomblench's initial test project.

Reviewers
reviewer @tomblench
reviewer @gadamc
reviewer @mikerhodes

I am +1 on this. Careful squashing required.

+1 - I think we should re-visit the other didReceiveChallenge delegate method and see if it really does get called and/or do anything useful. But that's something for a cleanup PR


Logged-in users have a persistent cart

[x] Logged-in-user across multiple devices: user is logged in on my mobile device and add some items to their cart. When they open the browser on a separate device and log in, they should see those items in their cart.
[ ] No one else should be able to edit my cart except the user

closed by #33


How to use with PCA9685

Hey, first of all, thanks for putting this in place, amazing work!
I would like to know how I can use this with PCA9685, my idea is to use the PCA9685 to control 8 relays and 8 led strings using a mosfet, so for the realys basically I need ON and OFF but for the LED the idea is to be able to have them ramp up and down on pragramable time (small reef aquarium projetc).
Thank you!

I have not tried the PCA9685 module yet with Raspberry Pi. From what I see,
it is designed to control LEDs. You mention using MOSFETs - that is
definitely a good idea as multiple LEDs would likely draw too much power
from the controller directly. Controlling relays with the same controller
may work, just don't forget the flywheel diodes.
I would be interested how that project turns out if you decide to go for it.
On Sat., Nov. 27, 2021, 10:37 a.m. Carlos Eduardo Guimarães, <
@.***> wrote:

Hey, first of all, thanks for putting this in place, amazing work!
I would like to know how I can use this with PCA9685, my idea is to use
the PCA9685 to control 8 relays and 8 led strings using a mosfet, so for
the realys basically I need ON and OFF but for the LED the idea is to be
able to have them ramp up and down on pragramable time (small reef aquarium
projetc).
Thank you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mheidenreich/PWMLEDs/issues/2, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASJ3XOKNNOOBULL4KE5Q5X3UOD3LTANCNFSM5I4JUWFQ
.

The electronic is already working at some level, the challenge that I was not able to overcome is that for the pca9685 python driver, you have to specify the pulse length in hex going from 0 to 0xffff and I was not able to translate your 100 values table or function to match that. As for the relays, I'm using the 8 relays model that is already protected, so is working fine so far.

It's hard for me to say without trying it with the actual controller. My
lookup table goes from 0 to 1 so the only thing I can suggest is to
multiply these values by 0xFFFF.
On Sat., Nov. 27, 2021, 2:33 p.m. Carlos Eduardo Guimarães, <
@.***> wrote:

The electronic is already working at some level, the challenge that I was
not able to overcome is that for the pca9685 python driver, you have to
specify the pulse length in hex going from 0 to 0xffff and I was not able
to translate your 100 values table or function to match that. As for the
relays, I'm using the 8 relays model that is already protected, so is
working fine so far.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mheidenreich/PWMLEDs/issues/2#issuecomment-980789847,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASJ3XOIEDK4EQAPTJBRRE63UOEXCDANCNFSM5I4JUWFQ
.


Automatically figure out how much a shared GCP cluster spends in a month (and map those costs to inner hubs)

placeholder

Notes
avg(
		label_replace(
			label_replace(
				avg(
					count_over_time(kube_pod_container_resource_requests{resource="memory", unit="byte", container!="",container!="POD", node!=""}[$__interval])
					*
					avg_over_time(kube_pod_container_resource_requests{resource="memory", unit="byte", container!="",container!="POD", node!=""}[$__interval])
				) by (namespace,container,pod,node) , "container_name","$1","container","(.+)"
			), "pod_name","$1","pod","(.+)"
		)
	) by (namespace)

https://grafana.pilot.2i2c.cloud/goto/SrIMEnBVk?orgId=1

Timeselector 90d
sum by (namespace) (max_over_time(kube_pod_container_resource_requests{resource="memory",unit="byte",container!="",container!="POD", node!=""}[$__interval]))

Step 1d
https://grafana.pilot.2i2c.cloud/goto/rtyVU7fVz?orgId=1

Opencost worked and was able to generate shared cluster breakdown however it's not calculating all the costs. It might not handle all our initial needs and there might be some bugs in it to fix.
I've redeployed support from master to clean up for the weekend
kubectl get service -n support
NAME                                         TYPE           CLUSTER-IP     EXTERNAL-IP     PORT(S)                      AGE
support-grafana                              ClusterIP      <IP_ADDRESS>    <none>          80/TCP                       654d
support-ingress-nginx-controller             LoadBalancer   <IP_ADDRESS>    <IP_ADDRESS>   80:30226/TCP,443:30605/TCP   654d
support-ingress-nginx-controller-admission   ClusterIP      <IP_ADDRESS>   <none>          443/TCP                      654d
support-kube-state-metrics                   ClusterIP      <IP_ADDRESS>     <none>          8080/TCP                     654d
support-prometheus-node-exporter             ClusterIP      <IP_ADDRESS>    <none>          9100/TCP                     268d
support-prometheus-server                    ClusterIP      <IP_ADDRESS>   <none>          80/TCP                       654d

Given the pricing inconsitencies with opencost I'm going to switch next to a timebox investigation of cluster usage metering for GCP using GKE usage metering feature joined with the detailed cloud stats. That will hopefully be more accurate than prometheus but we can fall back to that.
https://blog.searce.com/visualize-google-kubernetes-engine-usage-and-cost-metrics-using-google-data-studio-97e79ce9e2f4
https://www.cloudskillsboost.google/focuses/7114?parent=catalog
https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-usage-metering#console
https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-usage-metering?&_ga=2.44889252.-1474538276.1677878796#view_in_data-studio
Also https://cloud.google.com/community/tutorials/writing-prometheus-metrics-bigquery

The GKE resource usage accumulated over the weekend and simple queries work.
SELECT
  cluster_name,
  labels,
  usage
FROM
  two-eye-two-see.2i2c_shared_cluster_costs.gke_cluster_resource_usage
WHERE
  namespace="staging"

SELECT
  DATE(start_time) as date,
  resource_usage.cluster_name,
  resource_usage.cluster_location,
  resource_usage.namespace,
  resource_usage.resource_name,
  resource_usage.sku_id,
  gcp_billing_export.sku_description,
  SUM(resource_usage.usage.amount) AS usage,
  resource_usage.usage.unit AS usage_unit,
  SUM(resource_usage.usage.amount * gcp_billing_export.rate) AS cost_estimate,
  gcp_billing_export.currency
FROM
  two-eye-two-see.2i2c_shared_cluster_costs.gke_cluster_resource_usage AS resource_usage

-- select only workloads matching the defined "drilldown_label"
---  CROSS JOIN UNNEST(labels) AS label ON label.key=drilldown_label

-- join with billing table to get pricing information and sku description
  LEFT JOIN (
  SELECT
    DATE(usage_start_time) as date,
    sku.id AS sku_id,
    sku.description AS sku_description,
    SAFE_DIVIDE(SUM(cost), SUM(usage.amount)) AS rate,
    currency
  FROM
    two-eye-two-see.cloud_costs.gcp_billing_export_v1_011901_F8160A_68DED7
  WHERE
    project.id = "two-eye-two-see"
  GROUP BY
    date,
    sku_id,
    sku_description,
    currency) AS gcp_billing_export
  ON DATE(resource_usage.start_time) = gcp_billing_export.date AND resource_usage.sku_id = gcp_billing_export.sku_id

GROUP BY
  date,
  cluster_name,
  cluster_location,
  namespace,
  resource_name,
  sku_id,
  sku_description,
  usage_unit,
  currency

ORDER BY
  date,
  cluster_name,
  cluster_location,
  namespace,
  resource_name

From prometheus we can quesry programatically to do calendar month - what I think we need to do to match the existing grafana step approach is to
Query at the end of month
Set the duration to be the length of month in days, with a step of 1d
Sum the max over time by namespace
I need to check my understanding of how prometheus is handling this
sum(max_over_time(
        kube_pod_container_resource_requests{resource="memory"}[28d:1d] @1677646800.0
    )) by (namespace)

Some further hints https://www.robustperception.io/monthly-reporting-with-prometheus-and-python/

So to get the bytes ratio we might want to do something like the following
https://grafana.pilot.2i2c.cloud/goto/jlON7SL4k?orgId=1
sum(max_over_time(kube_pod_container_resource_requests{resource="memory"}[$__interval:24h])) by (namespace) /
ignoring (namespace) group_left
sum( machine_memory_bytes{})

The code to do this is now commited and has been used for Q2 billing.


Possible data race issues

Hi, it seems the pointer variable self->locked should be guarded by the lock self->mtx.
However, it seems the self->locked is not protected at Line 489 due to the early lock releases at Line 488.
https://github.com/julius-speech/julius/blob/4182bf024872cf4ff4388475359d74695dd5ee16/msvc/Library_PortAudio/src/src/os/unix/pa_unix_util.c#L476-L493

Similarly to
https://github.com/julius-speech/julius/blob/4182bf024872cf4ff4388475359d74695dd5ee16/libsent/src/adin/pa/os/unix/pa_unix_util.c#L441-L449


Libreoffice Base crashes at start

Describe the bug
Libreoffice crashes near the start when making a new Base file.
Steps To Reproduce

Open Libreoffice
Create a new "Base" file. Accept the default settings and click next a few times.

Additional context
NixOS x86_64-linux
nixpkgs nixos-22.11 @ 339fc3dcc98f39d08496fb90c0d6b5fb81519246
Same result with pkgs.libreoffice or pkgs.libreoffice-fresh
Exception in thread "Thread-0" java.lang.NoClassDefFoundError: java/sql/SQLException
Caused by: java.lang.ClassNotFoundException: java.sql.SQLException
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
Exception in thread "Thread-0" java.lang.NoClassDefFoundError: java/sql/SQLException
Caused by: java.lang.ClassNotFoundException: java.sql.SQLException
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)

Fatal exception: Signal 11
Stack:
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/libuno_sal.so.3(+0x401d3)[0x7fc2550c31d3]
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/libuno_sal.so.3(+0x40394)[0x7fc2550c3394]
/nix/store/cd37wc6s7ycgn69w5z74w3xqwnpy5941-openjdk-minimal-jre-17.0.3+7/lib/server/libjvm.so(+0xd86906)[0x7fc225f21906]
/nix/store/cd37wc6s7ycgn69w5z74w3xqwnpy5941-openjdk-minimal-jre-17.0.3+7/lib/server/libjvm.so(JVM_handle_linux_signal+0x23d)[0x7fc225f2233d]
/nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/libc.so.6(+0x3dbf0)[0x7fc254dc4bf0]
/nix/store/cd37wc6s7ycgn69w5z74w3xqwnpy5941-openjdk-minimal-jre-17.0.3+7/lib/server/libjvm.so(+0x28a2c0)[0x7fc2254252c0]
/nix/store/cd37wc6s7ycgn69w5z74w3xqwnpy5941-openjdk-minimal-jre-17.0.3+7/lib/server/libjvm.so(+0x8b45f7)[0x7fc225a4f5f7]
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/../program/libjdbclo.so(+0x42f94)[0x7fc226529f94]
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/../program/libjdbclo.so(+0x43664)[0x7fc22652a664]
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/../program/libjdbclo.so(+0x31128)[0x7fc226518128]
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/../program/libjdbclo.so(+0x3256d)[0x7fc22651956d]
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/../program/libjdbclo.so(+0x37aa7)[0x7fc22651eaa7]
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/libgcc3_uno.so(+0xa016)[0x7fc249a45016]
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/libgcc3_uno.so(+0x93c8)[0x7fc249a443c8]
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/libgcc3_uno.so(+0x9896)[0x7fc249a44896]
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/libuno_cppu.so.3(+0x1d095)[0x7fc2540e9095]
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/libaffine_uno_uno.so(+0x2408)[0x7fc24119a408]
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/libaffine_uno_uno.so(+0x2443)[0x7fc24119a443]
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/libaffine_uno_uno.so(+0x2cba)[0x7fc24119acba]
/nix/store/3h5qzzfwx50nqs1ykaanfy7zi3bshx4a-libreoffice-<IP_ADDRESS>/lib/libreoffice/program/libuno_sal.so.3(+0x42db8)[0x7fc2550c5db8]
/nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/libc.so.6(+0x88e86)[0x7fc254e0fe86]
/nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/libc.so.6(+0x10fd70)[0x7fc254e96d70]

Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
 - system: `"x86_64-linux"`
 - host os: `Linux 5.4.228, NixOS, 22.11 (Raccoon), 22.11.20230121.339fc3d`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.1`
 - channels(root): `""`
 - channels(r): `""`
 - nixpkgs: `/home/user/src/nixpkgs`

Oh, that's too bad: what else can be wrong after #212556?

could you try with the qt version? I did just that on unstable and it was fine.

Same result with libreoffice-qt on master and nixpkgs-unstable.

release-22.05@0874168639713f produces the same result.
release-21.11@eabc38219184 does not crash. It presents a dialog with an error:

JRE is Defective
LibreOffice requires a Java Runtime Environment (JRE) to perform this task. The selected JRE is defective. Please select another version or install a new JRE and select it under Tools - Options - LibreOffice - Advanced.

This is working for me now with libreoffice-fresh on nixpkgs master@2287bee5ab. I'm not sure what I did to make it work, though. One thing I did that may have helped is to rm -rf ~/.config/libreoffice.
I was straceing libreoffice to see what was going on. I noticed it was reading the wrong JDK path in the Nix store. It should be using the one available at libreoffice-fresh.jdk. But it was reading a different one that didn't contain the SQL classes, as indicated in the error message.
Perhaps there was some configuration pointing it to the wrong JDK? This was my first time using Libreoffice Base, and I don't recall ever doing any JDK configuration in LibreOffice.


Integrate with Bean Validation

As part of the program plan 2021, the community would like to see some integration between JWT and Bean Validation. I think Spec and TCKs will need to be updated to ensure the two technologies work together.

Can we first discuss the benefits and drawbacks of adding this to the spec and requiring that Bean Validation is added to MicroProfile?  If we want that MicroProfile can easily be adopted by new implementations we should make it as easy as possible and thus do not require many specifications.
Also, when adding almost the entire Web profile stack of Jakarta EE, it is no longer lightweight and heavier than WebProfile itself.
The topics that are on the program plan are things we should look into, they are not decided since there was no discussion at all at that moment. And in one of the meetings, it was even indicated that they are topics for discussion for this year.

Can we first discuss the benefits and drawbacks of adding this to the spec and requiring that Bean Validation is added to MicroProfile? If we want that MicroProfile can easily be adopted by new implementations we should make it as easy as possible and thus do not require many specifications.
Also, when adding almost the entire Web profile stack of Jakarta EE, it is no longer lightweight and heavier than WebProfile itself.
The topics that are on the program plan are things we should look into, they are not decided since there was no discussion at all at that moment. And in one of the meetings, it was even indicated that they are topics for discussion for this year.

@rdebusscher this issue is for conversation within JWT group. If it deems not useful, it is fine and we can just summarise why not.

@Emily-Jiang

As part of the program plan 2021, the community would like to see some integration between JWT and Bean Validation.

First time I'm hearing about it - where it was proposed, what are the use cases ?
IMHO it is out of scope for MP JWT - the only angle is, at some point, hopefully in 2.0, we may support injecting complex claims as beans - but even if we do it - application of Bean Validation is orthogonal

@Emily-Jiang, for example:
@Inject
JsonwebToken jwt;

Address address = jwt.getClaim("address", Address.class);

or, when talking about the bean validation:

@Claim(name="address")
@Inject
Address myAddress;

Now, here you can see it is not an MP-JWT concern - whose responsibility is to make sure the address claim is produced as Address - but Bean Validation constraints is something the user would apply independently - for ex to Address fields/methods

To clarify the history behind the creation of this issue; It is indicated in the Program Plan that the Bean Validation could be interesting to add to a couple of specifications.
So this issue is created to gather some use cases where the usage of the Bean Validations annotations could be useful for this spec.

@Emily-Jiang

As part of the program plan 2021, the community would like to see some integration between JWT and Bean Validation.

First time I'm hearing about it - where it was proposed, what are the use cases ?
IMHO it is out of scope for MP JWT - the only angle is, at some point, hopefully in 2.0, we may support injecting complex claims as beans - but even if we do it - application of Bean Validation is orthogonal

@sberyozkin this was raised on the 2021 MicroProfile Program Plan googledoc Question 1 - bulletin point 11.
As explained earlier, if this is not something we envisage with a valid and immediate use case, we can put this on hold or close this issue. These are all valid outcomes. I just want to start the conversation and then record in the program plan.

@rdebusscher @Emily-Jiang Thanks for the clarification.
I can certainly imagine how Bean Validation can be usefully applied alongside MP-JWT in the MP platform where MP-JWT 2.0 would have an ability to inject claim objects other than JsonObject - but I'd be concerned about making it a direct dependency.
Example, I'd like to avoid something like If the claim is represented as a custom bean then the claim producer must run BVal on this object (or optionally run it if 'mp.jwt.bean-validation-enabled=true' is set). IMHO it would overload MP-JWT with the orthogonal concern not directly (fundamentally) related to MP-JWT.
However what I think this issue does help with is that it provides a very good reason for MP-JWT 2.0 to support the injection of custom claims as beans (plus updating JsonWebToken to have T <T> getClaim(String name, Class<T> claimClass)) - for the users to have an opportunity to transparently apply BVal to these beans should they wish to do it

@rdebusscher @Emily-Jiang Thanks for the clarification.
I can certainly imagine how Bean Validation can be usefully applied alongside MP-JWT in the MP platform where MP-JWT 2.0 would have an ability to inject claim objects other than JsonObject - but I'd be concerned about making it a direct dependency.

However what I think this issue does help with is that it provides a very good reason for MP-JWT 2.0 to support the injection of custom claims as beans (plus updating JsonWebToken to have T <T> getClaim(String name, Class<T> claimClass)) - for the users to have an opportunity to transparently apply BVal to these beans should they wish to do it

ah, I see. The current valid claim types are

java.lang.String

java.lang.Long and long

java.lang.Boolean and boolean

java.util.Set<java.lang.String>

javax.json.JsonValue.TRUE/FALSE

javax.json.JsonString

javax.json.JsonNumber

javax.json.JsonArray

javax.json.JsonObject

java.util.Optional wrapper of the above types.

org.eclipse.microprofile.jwt.ClaimValue wrapper of the above types.

With what you propopsed, it could be any type. Right?

@Emily-Jiang Exactly, #100 was the main issue opened by the user awhile back where we started narrowing down on a possible solution. I guess It would indeed make sense to open a more concrete issue - will do soon, thanks


Error: assertion "_dbus_check_is_valid_utf8 (*string_p)" failed in file ../../dbus/dbus-message.c

When running the Spotify Connect example target/debug/librespot --appkey spotify_appkey.key --cache tmp --name pi the following error appears
process 17124: arguments to dbus_message_iter_append_basic() were incorrect, assertion "_dbus_check_is_valid_utf8 (*string_p)" failed in file ../../dbus/dbus-message.c line 2676.
This is normally a bug in some application using the D-Bus library.
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: DNSError(NoMemory)', ../src/libcore/result.rs:746
note: Run with `RUST_BACKTRACE=1` for a backtrace.

The following errors are showing when I activate the backtrace
   1: 0x54f1a433 - sys::backtrace::tracing::imp::write::h12167fd87c4444bfCwu
   2: 0x54f1ce17 - panicking::default_handler::_$u7b$$u7b$closure$u7d$$u7d$::closure.43431
   3: 0x54f1c99b - panicking::default_handler::h9f8ceb45c392442dd5y
   4: 0x54f0aa6f - sys_common::unwind::begin_unwind_inner::hf5f65b9eced8cd83rlt
   5: 0x54f0afb3 - sys_common::unwind::begin_unwind_fmt::h8fbe76036c0b1b80xkt
   6: 0x54f199fb - rust_begin_unwind
   7: 0x54f24f4f - panicking::panic_fmt::hf5513279aa3d2ea26YL
   8: 0x54c3379f - result::unwrap_failed::h11053035362580410660
                at ../src/libcore/macros.rs:29
   9: 0x54c33597 - result::Result<T, E>::unwrap::h16659752087029109074
                at ../src/libcore/result.rs:687
  10: 0x54c15733 - discovery::DiscoveryManager::run::h86f7924c19979c7fL2b
                at src/discovery.rs:121
  11: 0x54b4442b - main::h4deaf41955222e3dXba
                at src/main.rs:96
  12: 0x54f1c56b - sys_common::unwind::try::try_fn::h13484918573325342335
  13: 0x54f19993 - __rust_try
  14: 0x54f19993 - __rust_try
...
  100: 0x54f19993 - __rust_try

I have compiled librespot on my Raspberry Pi 2 using the latest Rust nightly and the latest version of librespot

Quick update. When compiling librespot without the flag --features discovery I don't have the problem and librespot works correctly.

Maybe it's about no more memory on your pi ("DNSError(NoMemory)"). You should use the release build on slower devices like Raspberry Pi 2 (--release), also see https://github.com/plietar/librespot/issues/53. Maybe you also need to stop other services on your pi (although librespot doesn't need much memory).

Same thing with the --release flag. I can run librespot specifying my user and password but the discovery crashes with the same error as before: DNSError(NoMemory)

Another blind guess from the error message would be that your computer's name has some non-ascii characters in it which fail a conversion to utf8 (what's your output of hostname). Or maybe your Spotify username has some non-ascii chars?

The username shouldn't matter, it isn't involved in the mdns advertisement.
On the other hand, the hostname could be the cause.
If you run the following, what do you get ?
avahi-publish -s TestService _http._tcp 1234

I had to install avahi-utilsto get the command avahi-publish working but when I did it, here is the outcome of the command:
osmc@osmc:~/dev/spotify/librespot$ avahi-publish -s TestService _http._tcp 1234
Established under name 'TestService'
```

And my hostname is osmc

@camfrout Could you try again with the latest master ?
It could very much have been the same bug as plietar/rust-dns-sd#3, which was just fixed.
Thanks

Different issue now, I recompiled librespot to take in account v 0.1.3 of rust-dns-sd but when I run the program  in discovery mode I have the following: WARNING: dns-sd is not enabled. Service will probably not be visible and nothing more happens.

At the risk of sounding like a condescending a**, did you compile with --features discovery?

Yes, but using the --release tag as well: cargo build --release --features discovery

You're sure you running the right binary? Maybe try cargo clean before.

Try rebasing and rebuilding? Sounds like there has been something messy
happening with dns-sd in the cache or something.
On Fri, Mar 11, 2016 at 2:26 p.m., herrernst<EMAIL_ADDRESS>wrote:
You're sure you running the right binary? Maybe try cargo clean before.
—
Reply to this email directly or view it on GitHub
[https://github.com/plietar/librespot/issues/49#issuecomment-195387193] .[https://github.com/notifications/beacon/AD_dEtq3bJSoeCNgt-AxO0JxfA2Z7Daxks5psXuQgaJpZM4HcyxF.gif]

The issue was indeed from my side. I ran an old bash script I used to test the discovery feature but the executable listed in my script was still the debug one.
It is working now, thanks everyone, I am closing the issue.


Why remove the resources links?

This was pretty handy, was there a logical reason to remove them?

This should describe the reasoning behind it: https://swarfarm.com/feedback/896/

I commented on the feedback area as well. I think the internal links where extremely useful, hopefully those are not a problem to maintain and can be brought back.

I understand the request to include the internal one - I will add that back


Update connection_fields.xsd with 2021.1 changes

Update connection_fields.xsd with 2021.1 changes

Added name attribute restrictions;
Added support for placeholder for string, file and textbox fields;
Added textbox type.

Should be in the 22.1 branch


Typo

Fixes a misspelling in the dementia module and changes EGRF to an integer because the FHIR exporter only handles Observation.valueQuantity and '>60' is a String which would produce invalid resources.

For context, the ">60" value was suggested based on clinician feedback - #114 . Ideally we'd be able to keep that but not if it breaks the export


Support for AmiBlitz 3.9

The overview for the extension states that it works with Amiblitz. I have Amiblitz 3.9 installed on an A1200 in WinUAE. I followed the set up procedure but Ctrl+F6 yields a "Please Insert Blitz 2 in any drive" system request in Workbench. Are there some additional steps that will get this to work? Failing that, can support for Amiblitz 3 be added?
Thanks

Ok, need to add a config toggle for amiblitz3 and add new AREXX scripts.


Support Laravel 8

ErrorException
Undefined property: anlutro\LaravelSettings\SettingsManager::$app (View: /Users/aleyrsrglts/Sites/baydar-valley.com/project-laravel/resources/views/layouts/app.blade.php)

@sashsvamir, @anlutro
Now this package will support <= laravel 8 without any problem

Thanks for the PR.

This has now been released as v1.0.0.


Neo matrix data not retrieved after a depth of 3 items

Description
Hi,
I've hit an issue with this plugin where it seems like the depth of the graph is limited.
I'm currently using a neo matrix, which was working fine with the original gatsby-source-graphql plugin.
This is what my query looks like in Gatsby

query MyQuery ($id:StringQueryOperatorInput) {
  craftWorkshopsWorkshopEntry(id: $id) {
    neoLP {
      ... on Craft_neoLP_ctas_BlockType {
         horizontalAlignment
         children {
	    ... on Craft_neoLP_cta_BlockType {
		label
          }
        }
      }

      ... on Craft_neoLP_columns_BlockType {
        children {
          ... on Craft_neoLP_column_BlockType {
            rightColumnFirstMobile
            children {
              ... on Craft_neoLP_ctas_BlockType {
                children {
                  ... on Craft_neoLP_cta_BlockType {
                    pageLink
                  }
                }
              }
              ... on Craft_neoLP_richtext_BlockType {
                richtext
              }
            }
          }
        }
      }
    }
  }
}

The matrix (ctas) block when placed at the root of the matrix returns its data correctly.
Here is a sample response.
{
  "data": {
    "craftWorkshopsWorkshopEntry": {
      "neoLP": [
        {
          "children": [
            {
              "rightColumnFirstMobile": false,
              "children": [
                {
                  "richtext": null
                },
                {
                  "children": []
                },
                {
                  "richtext": null
                },
                {
                  "richtext": null
                },
                {
                  "children": []
                },
                {
                  "richtext": null
                },
                {
                  "children": []
                }
              ]
            },
            {
              "rightColumnFirstMobile": false,
              "children": []
            }
          ]
        },
        {
          "horizontalAlignment": "left",
          "children": [
            {
              "label": "Test"
            }
          ]
        }
      ]
    }
  }
}

Rebuilding this within CraftCMS using the graphiql UI works fine and so does the standard gatsby-source-graphql plugin.
Steps to reproduce

Create a neo matrix with a depth of more than 3 (not 100% sure what depth breaks)
See if data is returned

Additional info

Craft version: 3.5.18
PHP version: 7.2.24
Database driver & version: MySQL 5.5.5
Plugins & versions: Neo (2.8.5)

Thanks for any help you can provide

The reason it worked before with the gatsby-graphql-source plugin is because the plugin just executed all the GraphQL queries on every site build, as opposed to building a data store and just adding new data to it on subsequent builds.
Matrix blocks and Neo block types are not queryable directly with Craft's GraphQL API and are not exposed as stand-alone types for Gatsby, so the source toolkit can't convert them to Nodes for Gatsby. So, when creating the data store, the toolkit can't replace the nesting relationships in a simple way.
I'm assuming Gatsby hits some nesting level limitations - perhaps @vladar can confirm if it's true.

@andris-sevcenko The GraphQL toolkit prevents recursive fragments (in generateDefaultFragments function). For deep nesting, you should provide custom fragments of the expected depth. So in theory, if Craft plugin supports custom fragments - it should be possible to via additional config.

Thank you, @vladar!
@andrewmumblebee you'll want to take a look at the documentation here - hope this helps!


Add status and filter branch

Two new commands are added, which are status and filter.
Status is used to mark whether someone is blacklisted/favourited in ModuleMateFinder (e.g. status 1 s/blacklist).
Filter is used to filter people in ModuleMateFinder by their tags (e.g. filter friends). This is case sensitive, and can only filter by 1 tag.
Examples:
status 1 s/blacklist - will blacklist the person at index 1
filter t/CS3230 - will find all persons with the tag CS3230
Automated test cases have also been added.
Please review before merging.

Codecov Report

Merging #15 (f05a5f5) into master (514bcc0) will increase coverage by 0.20%.
The diff coverage is 76.36%.

@@             Coverage Diff              @@
##             master      #15      +/-   ##
============================================
+ Coverage     72.15%   72.35%   +0.20%
- Complexity      399      438      +39
============================================
  Files            70       76       +6
  Lines          1232     1335     +103
  Branches        125      139      +14
============================================
+ Hits            889      966      +77
- Misses          311      331      +20
- Partials         32       38       +6

Impacted Files
Coverage Δ

...main/java/seedu/address/commons/core/Messages.java
0.00% <ø> (ø)

.../seedu/address/logic/parser/AddressBookParser.java
84.21% <0.00%> (-15.79%)
:arrow_down:

...in/java/seedu/address/logic/parser/ParserUtil.java
85.36% <0.00%> (-11.86%)
:arrow_down:

...eedu/address/logic/parser/StatusCommandParser.java
0.00% <0.00%> (ø)

...rc/main/java/seedu/address/model/ModelManager.java
100.00% <ø> (ø)

src/main/java/seedu/address/ui/PersonCard.java
0.00% <0.00%> (ø)

...eedu/address/logic/parser/FilterCommandParser.java
72.72% <72.72%> (ø)

...c/main/java/seedu/address/model/person/Status.java
81.81% <81.81%> (ø)

...c/main/java/seedu/address/model/person/Person.java
94.11% <83.33%> (-3.51%)
:arrow_down:

...java/seedu/address/logic/commands/EditCommand.java
95.89% <85.71%> (-1.13%)
:arrow_down:

... and 9 more

Continue to review full report at Codecov.

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

LGTM, maybe for the test files might want to update the tags to be module names as reflected in here

I'll let the changes (for tags to module names) be written over the current files when clearing of data since they will overlap. Since there are no other issues, I'll merge and close this PR.


Can event be reused if it is not triggered the first time?

Consider this situation:

state A depends on two events(eventA and eventB), exclusive is false, and timeout period is 10 minutes. if both events are triggered, state A will transit to state B; if timeout, it will transit to state C
only eventA is triggered in 10 minutes, so the state A transit to state C
after several state transition, workflow transit to state A again, this time only eventB is triggered, will state A transit to state B? because in step2 eventA is already triggered

also for state which has event state type, if event is triggered 3 times, is this mean there will be 3 state instance running?

think of event state as for example workflow.await(duration, condition). The condition defines as the onEvents structure and the exclusive prop as you mentioned.
for 3 no, each "entry" into a state is a new state invocation. so the condition mentioned before is applied again

@elim19 just fyi we have a discussion board too https://github.com/serverlessworkflow/specification/discussions
that might be better suited for question than opening issues (might be easier)

for state which has event state type, if event is triggered 3 times, is this mean there will be 3 state instance running?

@tsurdilo , are you saying, the event must be triggered after workflow.await(duration, condition) is called, so if it is triggered before you call workflow.await(duration, condition), it will be ignored?


Could you consider adding an independent dark theme to your application?

I've recently bought your great add-on for the windows taskbar, and have the normal light theme in windows applied. Some applications I just like to have in dark mode while others are still in a normal light mode. Your add-on seems to have the dark-theme only if windows itself is in dark mode. Could you consider adding this dark-theme as an option inside the add-on itself to switch even if windows is in light-mode?

You mean light-mode for calendar and agenda, or Settings window, or both?

Well, mainly I'd love to see it in the calendar and agenda panel (the whole sidebar). I wouldn't care if it is "light theme" in the settings option, since that's what it actually is (selected windows style), and I guess, that making that independent is not worth the effort if it is even possible, since you might rely on windows api in this specific case.
So basically just an independent "dark-mode" for the whole sidepanel (calendar & agenda).


Documentation: Limitations

Description of changes:
No changes to RMC. Adds a new section "Limitations" to documentation in order to summarize the current status in regards to Rust feature support using a table.
Preview here
Call-outs:
Open as draft so I can get some feedback.

Testing:

How is this change tested? Running remote server for documentation.

Is this a refactor change? No.

Checklist

[x] Each commit message has a non-empty body, explaining why the change was made
[x] Methods or procedures are documented
[x] Regression or unit tests are included, or existing tests cover the modified code
[ ] My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

Thanks @celinval ! Updated the PR with some of your suggestions, let me know if you have other comments 😄

Forgot to mention stack unwinding - Added a new section on panic strategies just now.