simp not unifying partial application of structure projection

Prerequisites

[X] Put an X between the brackets on this line if you have done all of the following:

Checked that your issue isn't already filed.
Reduced the issue to a self-contained, reproducible test case.

Description
In the mathlib4 port, certain simp lemmas that would apply in Lean 3 no longer apply in Lean 4 in the same case. It looks like this happens whenever we have a structure containing a field with a function, and a simp lemma is defined on the partially applied function in that field. simp has no trouble with partial application if it's on other definitions.
Steps to Reproduce
The following code contains two failing simp calls where rw succeeds. Equivalent code works fine in Lean 3.
structure BundledFunction (α β : Sort _) :=
(toFun : α → β)

namespace BundledFunction

-- `simp` doesn't seem to unify partial applications of structure projections:
-- https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/.60simp.60.20failing.20on.20partial.20application.20of.20projections
def id (α) : BundledFunction α α := ⟨λ a => a⟩

@[simp] theorem coe_id : (id α).toFun = _root_.id := rfl

example (x : α) : (id α).toFun x = x :=
by simp only [coe_id, id_eq] -- does not simplify anything
example (x : α) : (id α).toFun x = x :=
by rw [coe_id, id_eq] -- succeeds

-- seems to be another instance of the same behaviour:
-- https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/.60simp.60.20calls.20broken.20in.20mathlib4.23922/near/314790371

def otherProjection (f : BundledFunction α β) : α → β := f.toFun

@[simp] theorem toFun_eq_otherProjection : @toFun α β = otherProjection := rfl
@[simp] theorem id_apply : (id α).otherProjection x = x := rfl

example : (id α).toFun x = x := by simp only [toFun_eq_otherProjection, id_apply] -- does not simplify anything
example : (id α).toFun x = x := by rw [toFun_eq_otherProjection, id_apply] -- succeeds

end BundledFunction

-- `simp` is happy with partial applications in other functions:
def id2 (x : α) := x

@[simp] theorem id2_eq_id : @id2 α = id := rfl

example : id2 x = x := by simp only [id2_eq_id, id_eq] -- works fine
example : id2 x = x := by rw [id2_eq_id, id_eq] -- succeeds

Expected behavior: the simp calls on both lines marked -- does not simplify anything should solve the goal
Actual behavior: simp fails to rewrite. With trace.Meta.Tactic.simp on, the first simp call gives the following trace:
[Meta.Tactic.simp.unify] @BundledFunction.coe_id:1000, failed to unify
      (BundledFunction.id ?α).toFun
    with
      BundledFunction.toFun (BundledFunction.id α) x

Reproduces how often: always
Versions
You can get this information from copy and pasting the output of lean --version,
please include the OS and what version of the OS you're running.
$ lean --version
Lean (version 4.0.0-nightly-2022-12-09, commit 57a6aefb9240, Release)
$ uname -a
Linux vouwvervorming 6.0.10-arch2-1 #1 SMP PREEMPT_DYNAMIC Sat, 26 Nov 2022 16:51:18 +0000 x86_64 GNU/Linux

The commit above adds support for projection functions to our indexing data structure.
Note that @[simp] theorem toFun_eq_otherProjection : @toFun α β = otherProjection := rfl must be written as
@[simp] theorem toFun_eq_otherProjection : a.toFun = otherProjection a := rfl

to ensure the LHS is represented using a Expr.proj object (kernel projection) in our indexing data structure (i.e., discrimination tree).


inv -l : ModuleNotFoundError: No module named 'requests'

After pulling the recent changes into my fork the following happens when trying to execute inv -l within the cpp container:
flowd@DESKTOP-QF2HQEJ:~/faasm$ ./bin/cli.sh cpp
[+] Running 1/0
 ⠿ Container faasm-dev-cpp-1  Running                                                                              0.0s

----------------------------------
CPP CLI
Version: 0.1.7
Project root: /code/cpp
Mode: container
----------------------------------

(cpp) root@e8c3750591dd:/code/cpp# inv -l
Traceback (most recent call last):
  File "/code/cpp/venv/bin/inv", line 8, in <module>
    sys.exit(program.run())
  File "/code/cpp/venv/lib/python3.8/site-packages/invoke/program.py", line 373, in run
    self.parse_collection()
  File "/code/cpp/venv/lib/python3.8/site-packages/invoke/program.py", line 465, in parse_collection
    self.load_collection()
  File "/code/cpp/venv/lib/python3.8/site-packages/invoke/program.py", line 699, in load_collection
    module, parent = loader.load(coll_name)
  File "/code/cpp/venv/lib/python3.8/site-packages/invoke/loader.py", line 76, in load
    module = imp.load_module(name, fd, path, desc)
  File "/usr/lib/python3.8/imp.py", line 244, in load_module
    return load_package(name, filename)
  File "/usr/lib/python3.8/imp.py", line 216, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 702, in _load
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/code/cpp/tasks/__init__.py", line 6, in <module>
    from . import func
  File "/code/cpp/tasks/func.py", line 5, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

Since the tests seem to run through just fine I'm wondering if this error is on my end?
(I removed the docker container and image completely with all of its layers and repulled all of it just to make sure but that did not fix it)

I fixed it by installing the requirements by myself: pip3 install -r requirements.txt
Though I feel like this shouldn't be necessary since this should already happen here.


⚠ Bofrost.de has degraded performance

In 7e2e72e, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1351 ms

Resolved: Bofrost.de performance has improved in 940c501 after 9 minutes.


add cask file “gureum.rb” for korean keyboard app “gureum”

add cask file “gureum.rb” for korean keyboard app “gureum”
homepage: http://gureum.io

Don’t forget to squash your commits.

thank you for your advice

Thank you for the contribution. It needed some fixes, so they were made in a4353e88f6b42a4509387f1d1034faed71aada30. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


Don't create JpegImage object anymore - go functional style

JpegImage cleanup patch - see #770 and #771.

@pdfjsbot test

Holding on until #786 lands (which seems close). That one has been around for some time and I don't want to make trouble landing this one due to some cleanup that we can do afterwards as well.

@jviereck do you still want to clean this up?

@brendendahl, it's on my list.

New implementation inlining JpegImageLoader: @pdfjsbot test

+1 Looks good, thanks.

@pdfjsbot test


update crd and argocd-operator with master for downstream rollout UI extension

What type of PR is this?
/kind enhancement
What does this PR do / why we need it:
This PR update argo-cd CRD and argocd-operator with master for downstreaming rollout UI extension.
Have you updated the necessary documentation?

[ ] Documentation update is required by this PR.
[ ] Documentation has been updated.

Which issue(s) this PR fixes:
Fixes #GITOPS-5661
Test acceptance criteria:

[ ] Unit Test
[ ] E2E Test

How to test changes / Special notes to the reviewer:

/test v4.13-kuttl-parallel
/test v4.12-kuttl-sequential

/test v4.12-kuttl-sequential

/test v4.12-kuttl-parallel
/test v4.13-kuttl-parallel


Please consider adding Dependabot or other dependency management automation

# npm audit report

ansi-regex  5.0.0
Severity: high
Inefficient Regular Expression Complexity in chalk/ansi-regex - https://github.com/advisories/GHSA-93q8-gq69-wqmw
fix available via `npm audit fix`
node_modules/ansi-regex

minimist  <1.2.6
Severity: critical
Prototype Pollution in minimist - https://github.com/advisories/GHSA-xvch-5gv4-984h
fix available via `npm audit fix`
node_modules/minimist

2 vulnerabilities (1 high, 1 critical)

Thanks for the recommendations. I added Snyk Open Source since Dependabot can get very noisy (especially for dev dependencies).
This action has only two direct dependencies @actions/core and js-yaml. The npm audit report is for transit dependencies of various devDependencies. Hence there is no risk for users of that action. However, I agree keeping dependencies up-to-date  is something everyone should aim for.

Wrong button 🙈


Update note to mention App Center

Update docs to mention about App Center

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

@jwargo Can you and Aaron please review this change?

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

#sign-off

@jwargo: I'm sorry - only the author of this article, @sethmanheim, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

@sethmanheim can you please sign-off on this?

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

@sethmanheim Fixed it. Thanks for the feedback.

@sethmanheim Can you please sign off?

Looks good, thank you!
#sign-off

#sign-off


How to run inference on new questions to get answer

Hi,
Thank you for amazing work.
I have trained MetaQA model for question answer. I got around 0.95 accuracy.
Now how can i run the inference on new questions?
Thank you.

Is this issue same as #27 ?

Yes. However you can create a new dev dataset with single question and see the answer.

@apoorvumang Thank you.


Create defaults for 802.11s

Add default values for freifunk and profile_berlin.
defaults are for /etc/config/freifunk are
config 'defaults' 'wifi_iface_80211s'
option 'mode' 'mesh'
option 'encryption' 'none'
option 'mesh_id' 'Mesh-Freifunk'
option 'mesh_fwding' '0'
the defaults for profile_berlin are
config 'defaults' 'wifi_iface_80211s'
option 'mesh_id' 'Mesh-Freifunk-Berlin'

https://github.com/openwrt/luci/pull/2528 has been comitted.  These changes are now in the 18.x branch.

@SvenRoederer Could you please review this again?  The same changes are now currently in the 18.x branch of OpenWRT.

merged into master; see https://github.com/freifunk/openwrt-packages/issues/1#issuecomment-484914372


RRatelimiter - Can the method of delete and  trySetRate  support in a transaction ?

Problem:
In a production environment, we often deploy more than one application for high availability (HA). There are two steps: delete and trySetRate when update the RRatelimit object. In HA architecture, there will be such a situation: application 1 delete the object when application 2 trySetRate it,  therefore application 1 will update failed.
The solution i would like is support the update operation(delete and trySetRate) in a transaction.
The alternatives I have used in my project is locking object globally when update it.
Redisson Version: 3.13.0

use setRate method


dbt found two macros named "synapse__snapshot_merge_sql" in the project   "dbt_synapse".

Hi guys, I'm new to dbt. I'm trying to run "dbt init" project and edit the profile to my database. I can run the "dbt debug". But when, I run "dbt compile" or "dbt run" it shows this error:
Encountered an error:
Compilation Error
  dbt found two macros named "synapse__snapshot_merge_sql" in the project
  "dbt_synapse".
   To fix this error, rename or remove one of the following macros:
      - macros/materializations/snapshots/snapshot_merge.sql
      - macros/materializations/snapshot/snapshot_merge.sql

I'm using dbt-core-1.0.3 dbt-extractor-0.4.0 dbt-sqlserver-1.0.0 dbt-synapse-1.0.1

It works with dbt-synapse version 1.0.2b1


Parse AST and provide code introspection

Look at how glslang -i provides an AST and just use that information to provide code completion and other features.

any plans for this ?

Nope, but I'll absolutely accept a PR.


"Microsoft Forms" does has impact on the search results

This is rather a feedback than issue. You will get the follow results when you search for “Microsoft Forms font” in Google for example.
https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/font-object-microsoft-forms
https://www.howtoexcel.org/general/microsoft-forms/
https://books.google.com.my/books?id=ijM7PDa36KIC&pg=PA427&lpg=PA427&dq=microsoft+forms+font&source=bl&ots=tendLwT7v_&sig=ACfU3U3vgfRFVqUmmZBYSElXPQmwgletQA&hl=en&sa=X&ved=2ahUKEwij2r7ZqefmAhVp63MBHQgICBs4ChDoATASegQIChAB#v=onepage&q=microsoft forms font&f=false
Should there be 2 products having exactly the same name “Microsoft Forms”?

Thanks for your feedback. For product-related feedback, visit UserVoice.
Closing this issue.


Support PEP-621 pyproject.toml

I know you already support poetry and pipenv, but I would like to request the following feature to support PDM to.
Supporting official PEP-621 pyproject.toml and their extra.
I've try to create this addition since I wanted to contribute, but my javascript isn't really up to date and I have some difficulties to implements tests and understand some part of your code.
What I would like to:
custom:
  pythonRequirements:
    usePyproject: true  # don't know if it's necessary
    extra:
      - rich

so for this pyproject:
[project]
name = "pyproject"
version = "0.1.0"
description = ""
requires-python = ">=3.6"
authors = [
  {name = "Your Name"},
  {email =<EMAIL_ADDRESS>]
dependencies = [
  "Flask>=1.0",
  "bottle @ git+https://git<EMAIL_ADDRESS>  "boto3>=1.9",
]

[project.optional-dependencies]
test = [
  "tox",
]
rich = [
  "rich",
]

It would generate:
requirements.txt
Flask>=1.0
bottle @ git+https://git<EMAIL_ADDRESS>boto3>=1.9
rich

What I have tried to do:
const fs = require('fs');
const fse = require('fs-extra');
const path = require('path');
const { spawnSync } = require('child_process');
const tomlParse = require('@iarna/toml/parse-string');

/**
 * pyproject install
 */
function pyprojectTomlToRequirements() {
  if (!this.options.usePyproject) {
    return;
  }

  this.serverless.cli.log('Generating requirements.txt from pyproject.toml...');

  const destination = path.join(this.servicePath, 'requirements.txt');
  const requirementsContents = extractDependencies(this.servicePath);

  const editableFlag = new RegExp(/^-e /gm);
  const sourceRequirements = path.join(this.servicePath, 'requirements.txt');

  if (requirementsContents.match(editableFlag)) {
    this.serverless.cli.log(
      'The generated file contains -e flags, removing them...'
    );
    fse.writeFileSync(
      sourceRequirements,
      requirementsContents.replace(editableFlag, '')
    );
  }

  fse.ensureDirSync(path.join(this.servicePath, '.serverless'));
  fse.moveSync(
    sourceRequirements,
    path.join(this.servicePath, '.serverless', 'requirements.txt'),
    { overwrite: true }
  );
}

/**
 * Extract dependencies and extra from pyproject.toml
 */
function extractDependencies(servicePath, extra) {
  const pyprojectPath = path.join(servicePath, 'pyproject.toml');

  if (!fse.existsSync(pyprojectPath)) {
    return false;
  }

  const pyprojectToml = fs.readFileSync(pyprojectPath);
  const pyproject = tomlParse(pyprojectToml);

  const dependencies =
    (pyproject['project'] && pyproject['project']['dependencies']) || [];

  const extraDependencies =
    (pyproject['project'] && pyproject['project']['optional-dependencies']) || {};

  for (const [extraName, dependencies] of Object.entries(extraDependencies)) {
    if (extra.includes(extraName)) {
      dependencies = dependencies.concat(dependencies);
    }
  }
  return dependencies.join("\n");
}

module.exports = { pyprojectTomlToRequirements, isPyprojectProject };

Hope that  what I've done could help, sorry if I couldn't do more.

This looks amazing, and would be so nice, I love PDM ❤


How do you set homeDirectory?

Hi Victor, I've used your repositories as a great start to my m1 nix setup, so thanks very much!
I'm a bit of a nix beginner though, and I'm struggling to set my home-manager homeDirectory. When I attempt it:
({ config, pkgs, lib, ... }: {
            home-manager.users."jamievandyke" = {
              home.username = "jamievandyke";
              home.homeDirectory = "/Users/jamievandyke";

I get this error:
error: The option `home-manager.users.jamievandyke.home.homeDirectory' has conflicting definition values:
       - In `<unknown-file>': "/var/empty"
       - In `<unknown-file>': "/Users/jamievandyke"

I can't find where that is set nor know how to override it. If I don't set it then I can't use home-manager for things like gpg, because it needs that directory to not be /var/empty. I know I'm probably missing something, could you give me a pointer on what I need to know to figure this out?
This is what I'm currently doing (probably incorrectly) and it builds!
https://github.com/fearoffish/nixpkgs
Thanks
[edit] Added gh url.

Hey! here's a related issue from someone who seems to have a experienced the same: https://github.com/vic/mk-darwin-system/issues/10
We should definitely add documentation for that on mk-darwin-system.
My homedir is /v and it is set here: https://github.com/vic/vix/blob/474f246b944882167c7f6330045b2e7c4c6bac8c/vix/modules/vic/default.nix#L18

I can confirm (long delay sorry!) that setting it as suggested works:
({ config, pkgs, lib, ... }: {
            users.users."myuser".home = "/Users/myuser";


Now venimotes don't make a weird animation after dead seeking a target.
 Sometimes drones disappear before explode.
If is inmortal is activated you cannot die.

Good job, works great, just one observation, i don't know if its something related to this pr in specific, but the second miniboss seems to have crazy spams from time to time(seems it happens after the laser).

Its in develop too so its not this pr


Service "12-vertxbasic" is invalid: metadata.name: Invalid value:

From @burrsutter on June 6, 2017 13:20
Projects that begin with numbers fail in the Integration Test phase of the Jenkins build.
https://gist.github.com/burrsutter/f48fac019c3e3b371d9f51b9b212ee91
Workaround is to put the numbers later in the string like "vertx12basic".  The reason I moved the numbers earlier in the string is because the back end of the string is cut-off in the UI.
https://screencast.com/t/ilxblIBSplA
Copied from original issue: openshiftio/openshift.io#193

From @jstrachan on June 6, 2017 13:23
yeah - the wizard should disallow project names starting with numbers as they are invalid as kubernetes names for things like services

added better validation in forge


NIFI-2855: Site-to-Site with port forwarding.

This change allows user to run NiFi without root privilege but with low port (80 or 443) using port forwarding together.

Added following properties:

nifi.web.http.port.forwarding
nifi.web.https.port.forwarding

Please refer the admin guide for detail.
Tested with:

Local and Cloud Site-to-Site with only either one of 80 or 443 port is accessible
Enabling port forwarding, or without it (direct access)
Clustered/Standalone
With proxy
RAW transport protocol (works as it was)

Any comments are appreciated!

Ran contrib-check
Tried site-to-site while port forwarding 443 -> 9443 with tls
Tried site-to-site while port forwarding 80 -> 9443 without tls
+1

@brosander Thank you for reviewing and testing this. I will merge this to master following your +1.


Bug in the Engine routes: POST instead of GET (or vice versa)

In my controller:
body, ok = SuperfeedrEngine::Engine.subscribe(@feed, {retrieve: true, sync: true})
I need sync: true because is the only way I have found to validate the url/feed inserted by the user.
This triggers a sync request from Superfeedr to my service, however that request always fails. From my logs:

Started GET "/superfeedr_engine/30?hub.mode=subscribe&hub.topic=http%3A%2F%2Fexamplexyz.wordpress.com%2Ffeed&hub.challenge=lnpw4yj5rk9&hub.lease_seconds=315360000" for <IP_ADDRESS> at 2016-07-18 12:54:28 +0200
ActionController::RoutingError (No route matches [GET] "/superfeedr_engine/30"):
...

Indeed routes in your Engine are defined as follows:
Routes for SuperfeedrEngine::Engine:
  root GET  /                   superfeedr_engine/pubsubhubbub#index
notify POST /:feed_id(.:format) superfeedr_engine/pubsubhubbub#notify

As you can see the Engine expects a POST while your servers are actually triggering a GET request.
Can you fix this?

Ok, I've found out that the GET request is for the challenge (as described here: https://blog.superfeedr.com/pubsubhubbub/api/getting-started-with-pubsubhubbub/).
Currently I have made a patch by adding a custom method in routes:
get "#{SuperfeedrEngine::Engine.base_path}:feed_id" => 'feeds#superfeedr_challenge'

However I think that the Rails Engine MUST manage that request by itself.

I'm making a mess. sync: true is to validate the "intent" to subscribe, it doesn't validate the feed.


Add personas blog

@BrianMMcClain The author has signed off on the final edits. Ready to merge! Let me know if you'd like me to do it.


netcore2.2->netcore3.0

We need this to fix templating since it relies on dotnet-ef.

Need to clean up some extra stuff before we consider this.

🆙:date:


By line/Info What is this site, who is delivering it

Text for this is in Brenda's emails somewhere

Draft text in email from Paul 6/12/17.  Needs to be user tested and reviewed for accessibility/screen reader friendliness? (specifically "click on the link")

Text from Paul:
Find Whānau Support - Mobile Site
If you are using a mobile device and are looking for family support services near you then you can use Find Whānau Support, the mobile responsive site for the Ministry of Social Development’s Family Services Directory.
If you are a provider or want to use the enhanced functions of the Family Services Directory, then please click on the link.


Give visibility about batch details in tasks

Related product team resources: PRD (internal only)
Motivation

Avoid confusion about understanding how Meilisearch indexing is processing tasks
Usage
https://www.notion.so/meilisearch/Enhance-visibility-on-batched-tasks-1194b06b651f810b8fe0fab5d72846a8
Impacted teams
@meilisearch/docs-team
@meilisearch/integration-team

@meilisearch/integration-team @meilisearch/docs-team -> be careful, not everything in the PRD is implemented.
This issue is still remaining and will be done in pre-release: https://github.com/meilisearch/meilisearch/issues/5068


How to ignore SSL certificate errors in Chrome?

user query

May I ask if there is any way to bypass certificate error for chrome when using tagui?
I would like to include the condition --ignore-certificate-errors when tagui open a chrome session with the declared url.

There is no provision to accept user-specific Chrome options, but assuming that you are using Windows, you can modify the file src\tagui.cmd and change below line
start "" "%chrome_command%" !chrome_switches! !window_size! !headless_switch!

to the following
start "" "%chrome_command%" !chrome_switches! !window_size! !headless_switch! --ignore-certificate-errors

See if that works for you.


Helm operator versions upgrading documentation

Hi there,
Just been trying now the Operator built with Helm and I cannot find the operative to work with it and versioning.
When you start the project you run the command:
operator-sdk create api --helm-chart test --helm-chart-repo=https://chart.url --helm-chart-version 1.0.0

So it downloads the specified chart version.
But, what are the steps to follow when the chart must be updated?
Should we remove the content of charts/test and download new version and untar the content again in that path?

In helm-operators, each chart version can be considered like a version of Custom Resource. The operator manages and reconciles the chart. So updating to a new of version of chart, means that a new version of api in the operator project is getting created. The new chart version would translate to a new API version, which means we would have to scaffold a multi-version operator project if you would like to have both the chart versions. More on multi-version API projects and steps to scaffold it can be found here: https://book.kubebuilder.io/multiversion-tutorial/tutorial.html. If you would like to completely remove the old version, then rescaffolding is the only option.


Allow iptables delete command to fail

The iptables -D command may fail on first run.

iptables: No chain/target/match by that name.

This change avoids the issue by allowing it to fail and continuing script execution.

Thank you for your patch, @noamkush!


initial implementation

@akp111 Can you please resolve the conflicts and address the review comments

@akp111 can please resolve the conflict and address the review comment


Add Sass color accessibility theme function

Description
Add Sass function that auto detects background color and outputs the correct "light" or "dark" color theme based upon color accessibility standards.
Tweet - https://twitter.com/guylepage3/status/1075021874990604290

Looking for a #sass function that auto detects background color and outputs the correct "light" or "dark" color theme based upon color accessibility standards. @UniverseLabs #meta

Tasks

[ ] Create sass function
[ ] Test

Need to test out something like...
// Color contrast
@function color-yiq($color) {
  $r: red($color);
  $g: green($color);
  $b: blue($color);

  $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;

  @if ($yiq >= $yiq-contrasted-threshold) {
    @return $yiq-text-dark;
  } @else {
    @return $yiq-text-light;
  }
}

Done. Included in 1.5


refactor: remove the trace_decoder crate

mostly file renames or plain transplants except:

::trace_decoder::observer has just been folded into ::zero::intra_block_tries
::trace_decoder::{type1,type2} have been made submodules of ::zero::wire_tries
redact trace_decoder from the README
stopped setting RUSTFLAGS in ci jobs so we have one place where they're defined, and I don't waste a day debugging esoteric linker issues

@Nashtare / @muursh we'll need to update the required checks (also why do we have those if someone can just [skip-ci]?)

we'll need to update the required checks

Will update them once this lands (@muursh and I got rights to bypass PR requirements to merge this)

(also why do we have those if someone can just [skip-ci]?)

Good question, I'm not even sure this ever got used as it aims to be, probably best to simply remove. I think this came from an initial (long ago) refactoring of the CI by Leo if I'm correct, from which it got kept around.

I'll just reiterate once that I don't believe merging literally everything in a single crate is an ideal approach.

I believe we're on similar pages since our extensive discussion in #zero-dev on Sep 13th.
To be clear, my motivation for this change is summarized in this excerpt from our conversation:

Trace decoder does two completely unrelated things:

generate intra-block tries
parse (two, soon to be three) wire formats of different RPC nodes into tries

zero knows more about the latter, so the wire parsing should live there, and the former then amounts to basically a single function, which I don't think deserves its own package.

This unblocks my forward progress on #93.

but for the time being, this feels to bring more downsides than upsides

Out of curiosity, could you elaborate on these?

I think trace_decoder as a meaningful "mid-level" library is a mirage.

Also as a side note, as it looks like this may be the following target, I want to clarify that I am strongly against merging evm_arithmetization into zero crate

Thank you for your clarification.
I'm not interested in this at this time.
I'm happy that the cryptographers on our team work mostly on one crate, and "rust" devs on the other.
I also think it's a sensible crate boundary for that reason.

To be clear, my motivation for this change is summarized in this excerpt from our conversation:

Trace decoder does two completely unrelated things:

generate intra-block tries
parse (two, soon to be three) wire formats of different RPC nodes into tries

zero knows more about the latter, so the wire parsing should live there, and the former then amounts to basically a single function, which I don't think deserves its own package.

On "zero knows more about the latter, so the wire parsing should live there":
I don't think zero really knows about the underlying trie structure, especially if we focus (as our main product target) about Jerigon payloads which are compact encodings, effectively only pure byte blobs until the decoder parses them, regardless of whether we target a type 1 or type 2.

but for the time being, this feels to bring more downsides than upsides

Out of curiosity, could you elaborate on these?

Sure, my main interests with respect to separate crate with the layout I mentioned above are:

modularization: we can dev / test / reuse code independently, with separation of concerns in a cleaner fashion that in a giant crate
compilation time: especially with incremental compilation, this is really hindering developer experience when switching between branches. As an example, evm_arithmetization currently has 192 dependencies, zero has close to 600, and I probably switch between 6 / 8 branches a day at the very least.
granularity in testing: we've already mentioned that current CI was poor and unsatisfactory, but in an ideal world, separate crates is better to this extent, so that each can have its own tests / CI. A single crate makes CI slower and harder to isolate failures.
versioning: fairly early as of today, but once we get closer to production, we will want a clear versioning process and dependency management. Having everything bundled together makes it harder, and if we respect Semver, PATCH / MINOR increments are seemless across the other crates of the workspace.
collabs: very little weight here, but if a team was to be interested in a piece of this stack (say prover / decode / mpt_trie, it's much easier / meaningful to have open-source collab on separate distinct crates than a single huge one).

Btw. to somehow make the compromise between the @Nashtare and @0xaatif viewpoint, I would keep the ex trace decoder a bit separated from the existing zero code, having all ex trace decoder related code in the zero::prover_input submodule. I am not against this PR, but I don't see the reason for wire_tries to be first level zero public submodule, since only intra_block_tries` is using it.
Literally, existing zero calls only one API function in the trace decoder (entrypoint), and uses exported BlockTrace and OtherBlockData. I don't see the reason for their tight coupling on the organizational level (what @Nashtare is referring as middle-ware separation).

Also as a side note, as it looks like this may be the following target, I want to clarify that I am strongly against merging evm_arithmetization into zero crate and as codeowner, will reject any attempt to do so for the time being.

100% agreed.

I don't see the reason for wire_tries to be first level zero public submodule

I agree with Marko here. I'm not sure I see the argument right now either.

I still believe in this but it's not a priority right now


index-of-smallest-element-of-array.

Determines the index of the smallest element in an array.

@c7dl8p  you just spamed the repo with 19 pr


Typo - HummingbirdAuth / AuthenticatorMiddleware

In the "Overview" section "Requires an authenticate function that returns authentication data when successdul." Instead of "successful".

Will be fixed on next release of HummingbirdAuth with this i


StringExtension.emailRegx is horribly broken.

  Please use and include https://pub.dev/packages/email_validator.

thank you ,
i have fixed this issue now you can try it from pub.dev directly
https://pub.dev/packages/queen_validators


value={formattedNumber} results in country code being shown twice

I have a formatted number and I want to set this as the value (or defaultValue, either), for an edit screen.
However, I cannot set the original phone number in .
For example, the current data is +31612345678
In my edit screen, I set value={currentPhoneNumber}
What it displays is +31 +31612345678
How can I convince PhoneInput that my current value already has the +31 prefix and that it needs to be stripped off?

@garganurag893 any updates on this one?

import { PhoneNumberUtil } from 'google-libphonenumber';
const phoneUtil = PhoneNumberUtil.getInstance();

const parsedNo = phoneUtil.parse('your number', '');
if (parsedNo.hasNationalNumber()) {
  const nationalNumber = parsedNo.getNationalNumberOrDefault().toString();

  // store this nationalNumber in state
}

<PhoneInput
  ...
  textInputProps={{ value: phoneNumber }}
  ...
/>


Add lambda operator

It will take a QuoteNode and a PointerNode, and create and assign a string starting at the pointer address.

Actually this should probably be a function, perhaps salloc ?


Initial mediator work

Display an OOB invitation. Also presented as QR!

Codecov Report

Merging #976 (2fe4347) into main (3b77552) will decrease coverage by 5.92%.
Report is 3 commits behind head on main.
The diff coverage is n/a.

:exclamation: Current head 2fe4347 differs from pull request most recent head 4adc7dd. Consider uploading reports for the commit 4adc7dd to get more accurate results

@@            Coverage Diff             @@
##             main     #976      +/-   ##
==========================================
- Coverage   35.14%   29.23%   -5.92%
==========================================
  Files         413      414       +1
  Lines       27471    26246    -1225
  Branches     5811     5365     -446
==========================================
- Hits         9656     7673    -1983
- Misses      14776    16263    +1487
+ Partials     3039     2310     -729

Flag
Coverage Δ

unittests-aries-vcx
29.23% <ø> (-5.92%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.
see 162 files with indirect coverage changes

#977 does more on top of these changes.  Consider that PR instead.


"File format not supported" while sharing

I'm writing an application, and one page of it takes a screenshot and share it with other application e.g. WhatsApp.
Dependency used:
  screenshot: ^0.3.0
  share_plus: ^3.0.1
  image_gallery_saver: '^1.7.1'

Following is the code I'm using
  void _takeScreenShotAndShare() async {
    final imageFile = await _screenShotController.capture();
    ImageGallerySaver.saveImage(imageFile, name: "test_screenshot");   // this step works
    String tempPath = (await getTemporaryDirectory()).path;
    File file = File('$tempPath/image.jpg');
    await file.writeAsBytes(imageFile); // this step also works, I can check the jpg in the android data cache directory for the application
    await Share.shareFiles([file.path]);
  }

Now the screenshot is indeed taken and saved to the gallery, but in the share step, when I try to share it in WhatsApp it shows (as a system popup) `file format not supported

So, It seems it was a problem with the MIUI (12.5). For anyone stumbling on this issue (using MIUI devices) in the developer, options  Turn on MIUI optimization and enable force allow apps to write on external storage.


Fails to load with spaces in project parent directory

Maybe related to #109? I get a different error message, and this is on Linux.
Steps to reproduce:

mkdir "test with space"
cd "test with space"
stack new testpkg
cd testpkg
stack build intero
stack ghci --with-ghc intero

Expected behavior: loads a GHCi prompt with the added Intero features.
Actual behavior: error message:
$ stack ghci --with-ghc intero
Warning: File listed in testpkg.cabal file does not exist: README.md
Warning: File listed in testpkg.cabal file does not exist: README.md
testpkg-<IP_ADDRESS>: configure (lib + exe)
Configuring testpkg-<IP_ADDRESS>...
testpkg-<IP_ADDRESS>: initial-build-steps (lib + exe)
Warning: File listed in testpkg.cabal file does not exist: README.md
The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
Configuring GHCi with the following packages: testpkg
Using main module: 1. Package `testpkg' component exe:testpkg-exe with main-is file: /home/enolan/junk/test with space/testpkg/app/Main.hs
Intero 0.1.20 (GHC 8.0.2)
Type :intro and press enter for an introduction of the standard commands.

*** Exception: "/home/enolan/junk/test with space/testpkg/": changeWorkingDirectory: does not exist (No such file or directory)
*** Exception: "/home/enolan/junk/test with space/testpkg/": changeWorkingDirectory: does not exist (No such file or directory)

<no location info>: error:
    Could not find module ‘Lib’
    It is not a module in the current program, or in any known package.
Prelude>

The normal stack ghci works fine:
$ stack ghci
Warning: File listed in testpkg.cabal file does not exist: README.md
Warning: File listed in testpkg.cabal file does not exist: README.md
testpkg-<IP_ADDRESS>: initial-build-steps (lib + exe)
Warning: File listed in testpkg.cabal file does not exist: README.md
The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
Configuring GHCi with the following packages: testpkg
Using main module: 1. Package `testpkg' component exe:testpkg-exe with main-is file: /home/enolan/junk/test with space/testpkg/app/Main.hs
GHCi, version 8.0.2: http://www.haskell.org/ghc/  :? for help
[1 of 1] Compiling Lib              ( /home/enolan/junk/test with space/testpkg/src/Lib.hs, interpreted )
Ok, modules loaded: Lib.
[2 of 2] Compiling Main             ( /home/enolan/junk/test with space/testpkg/app/Main.hs, interpreted )
Ok, modules loaded: Lib, Main.
Loaded GHCi configuration from /tmp/ghci16245/ghci-script

In the Emacs mode it just fails silently. Flycheck errors don't show up and intero-type-at gives the "Couldn't guess that module name" message.

Getting this message on Windows too.

Having this issue as well. Although slightly different, (since this is on Windows), here's what I get:
C:\Users\Vitor Coimbra\ProjectName>stack ghci --with-ghc intero
ProjectName-<IP_ADDRESS>: initial-build-steps (lib + exe)
The following GHC options are incompatible with GHCi and have not been passed to it: -O2 -threaded
Configuring GHCi with the following packages: ProjectName
Using main module: 1. Package `ProjectName' component exe:ProjectName-exe with main-is file: C:\Users\Vitor Coimbra\ProjectName\app\Main.hs
Intero 0.1.20 (GHC 8.0.2)
Type :intro and press enter for an introduction of the standard commands.

*** Exception: SetCurrentDirectory "\"C:\\\\Users\\\\Vitor Coimbra\\\\ProjectName\\\\\"": invalid argument (A sintaxe do nome do arquivo, do nome do diretório ou do rótulo do volume está incorreta.)
*** Exception: SetCurrentDirectory "\"C:\\\\Users\\\\Vitor Coimbra\\\\Project Name\\\\\"": invalid argument (A sintaxe do nome do arquivo, do nome do diretório ou do rótulo do volume está incorreta.)

<no location info>: error:
    Could not find module `Lib'
    It is not a module in the current program, or in any known package.
Prelude>

(As a sidenote, "A sintaxe do nome do arquivo, do nome do diretório ou do rótulo do volume está incorreta." translates roughly to "The file, directory or drive name's syntax is incorrect.")
Intero also straight up doesn't work (no commands, no type-checking, no compilation, nothing). Launching the REPL (C-c C-z) gives the following messages:
Starting:
  stack ghci --with-ghc intero "--docker-run-args=--interactive=true --tty=false" --no-build --no-load --ghci-options "-odir=c:/Users/Vitor Coimbra/ProjectName/.stack-work/intero/intero1156CcY" --ghci-options "-hidir=c:/Users/Vitor Coimbra/ProjectName/.stack-work/intero/intero1156CcY" ProjectName
Intero 0.1.20 (GHC 8.0.2)
Type :intro and press enter for an introduction of the standard commands.

Warning: ignoring unrecognised input `Coimbra\ProjectName\.stack-work\intero\intero1156CcY'
Warning: ignoring unrecognised input `Coimbra\ProjectName\.stack-work\intero\intero1156CcY'
Warning: ignoring unrecognised input `Coimbra\ProjectName\.stack-work\intero\intero-script1156Pme'
Prelude>

As it can be seen, the warnings clearly show the space character is eating the full path it's supposed to be using.

I changed this line to the following: setCurrentDirectory (read (ghc_work_directory state))) and it works for me. Of course this is just a dirty hack. But I only started to learn haskell and I'm not confident enough to dig through getGHCiState and make PR with correct fix.
But, this may save someone like me, while we are waiting for release with fixed version.

Check out https://github.com/commercialhaskell/intero/commit/cf30e8068ee5e2a8f496dccb144af3d941caa71e, which I'm hopeful will fix this issue. Please all let me know how you get on.

@purcell does not work for me. The same error.

Sorry, my bad: I missed that the original issue arose even without elisp in the mix.

I had a dig into this and I really can't see where the spurious wrapping quotes are coming from. :-/

I reproduce this here:
Intero 0.1.21 (GHC 8.0.2)
Type :intro and press enter for an introduction of the standard commands.

*** Exception: "/Users/chris/Emacs/packages/intero/test with space/testpkg/": changeWorkingDirectory: does not exist (No such file or directory)
*** Exception: "/Users/chris/Emacs/packages/intero/test with space/testpkg/": changeWorkingDirectory: does not exist (No such file or directory)

<no location info>: error:
    Could not find module ‘Lib’
    It is not a module in the current program, or in any known package.

I think we can create a test in the test suite for this and then fix it out in the intero side.

I suspect that stack is passing in a quoted name, as if the argument is being used in a shell command string, when actually the argument is probably passed directly into "ghci" (intero). I'll check.

Oh, I see it doesn't reproduce with ghci itself. So this is purely in Intero. I'll take a look.

Arguments passed in are:
/Users/chris/.stack/snapshots/x86_64-osx/lts-9.3/8.0.2/bin/intero
--interactive
-i
"-odir=/Users/chris/Emacs/packages/intero/test with space/testpkg/.stack-work/odir"
"-hidir=/Users/chris/Emacs/packages/intero/test with /testpkg/.stack-work/odir"
-hide-all-packages
"-i/Users/chris/Emacs/packages/intero/test with space/testpkg/src"
"-i/Users/chris/Emacs/packages/intero/test with space/testpkg/.stack-work/dist/x86_64-osx/Cabal-<IP_ADDRESS>/build/autogen"
"-i/Users/chris/Emacs/packages/intero/test with space/testpkg/.stack-work/dist/x86_64-osx/Cabal-<IP_ADDRESS>/build"
"-stubdir=/Users/chris/Emacs/packages/intero/test with space/testpkg/.stack-work/dist/x86_64-osx/Cabal-<IP_ADDRESS>/build"
-I/usr/local/Cellar/r/3.4.1_1/include
-I/usr/local/opt/icu4c/include
-I/usr/local/opt/libxml2/include/libxml2/
-L/usr/local/Cellar/gmp/6.1.0/lib
-L/usr/local/Cellar/gsl/1.16/lib
-L/usr/local/Cellar/r/3.4.1_1/lib
-L/usr/local/opt/icu4c/lib
-L/usr/local/opt/libxml2/lib
-package-id=base-<IP_ADDRESS>
"-i/Users/chris/Emacs/packages/intero/test with space/testpkg/app"
"-i/Users/chris/Emacs/packages/intero/test with space/testpkg/.stack-work/dist/x86_64-osx/Cabal-<IP_ADDRESS>/build/testpkg-exe/testpkg-exe-tmp"
-rtsopts
-with-rtsopts=-N
-optP-include
-optP/private/var/folders/2s/6j1qqrgd57bg9ctkltrkn3z80000gn/T/ghci70154/cabal_macros.h
-ghci-script=/private/var/folders/2s/6j1qqrgd57bg9ctkltrkn3z80000gn/T/ghci70154/ghci-script

I believe @fly is onto something. This is where ghc_work_directory is initially set. However, these two commands :cd and :cd-ghc update the value.
I have a hunch that Stack in its passed-in GHCi script file provides :cd "foo ..", and Intero interprets that literally without handling the speech marks.

Found it 🔎 😄 ☝
Intero 0.1.21 (GHC 8.0.2)
Type :intro and press enter for an introduction of the standard commands.

*** Exception: "/Users/chris/Emacs/packages/intero/test with space/testpkg3/": changeWorkingDirectory: does not exist (No such file or directory)
*** Exception: "/Users/chris/Emacs/packages/intero/test with space/testpkg3/": changeWorkingDirectory: does not exist (No such file or directory)

<no location info>: error:
    Could not find module ‘Lib’
    It is not a module in the current program, or in any known package.
Prelude> :!cat /private/var/folders/2s/6j1qqrgd57bg9ctkltrkn3z80000gn/T/ghci92132/ghci-script
:cd-ghc "/Users/chris/Emacs/packages/intero/test with space/testpkg3/"
:add Lib
:cd-ghc "/Users/chris/Emacs/packages/intero/test with space/testpkg3/"
:add "/Users/chris/Emacs/packages/intero/test with space/testpkg3/app/Main.hs"
:module + Lib

So the difference between :load and :add  versus :cd/:cd-ghc is that the latter does not (never has) properly used the toArgs function to interpret command arguments for filepaths. See here for example, commands taking pathnames should use keepGoingPaths.
So that's the fix! Commit incoming.

Give it half an hour from now until the cabal hashes repo updates, and then you can pull this down and it'll install intero-0.1.23 with the fix.

Hey guys, sorry I never got around to checking if this was fixed or not. The original bug seems to have been fixed, but the second part of my first comment is still not working (i.e.: intero in Emacs does not work), which is exactly what #109 is about. What's the correct course of action here? Re-open this one? Or #109?

I do believe that this issue is fixed with the changes in https://github.com/commercialhaskell/intero/commit/cf30e8068ee5e2a8f496dccb144af3d941caa71e , but they were reversed for some reason?


Question about inconsistency of faceLandmarker.detectAsync inputs and outputs

Hello, I am using the FaceLandmarker model and I noticed that when using the RunningMode.LIVE_STREAM mode, I got 322 video frames through the camera and called the faceLandmarker.detectAsync method the corresponding number of times, but the returnLivestreamResult is executed only 295 times. Can you please tell me if it has an inconsistency between the number of inputs and outputs. Below is the code when I am using it:
    @Override
    public void run() {
        while (isVideoFrame) {

            try {
                if (FaceLandmarkerHelper.getInstance() != null) {

                    Frame frame = videoFrameQueue.take();
                    //......
                    detectAsync(mpImage, frameTime);
                    //......

                    //position prints the final result as 332
                    position++;
                }
            } catch (InterruptedException e) {

            }
    }

    private void returnLivestreamResult(
            FaceLandmarkerResult result,
            MPImage input
    ) {

        if (!result.faceLandmarks().isEmpty() && !isClose()) {
            long finishTimeMs = SystemClock.uptimeMillis();
            long inferenceTime = finishTimeMs - result.timestampMs();

            //frameCount prints the final result as 295
            MyLog.d("chunk","\nmediapipe returns the "+frameCount+"recognized image");
            ++frameCount;
            try {
                resultBundles.put(new ResultBundle(
                        result,
                        inferenceTime,
                        input.getHeight(),
                        input.getWidth(),
                        nv21landmarkQueue.take()
                ));
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
        input.close();

    }

Or, is it possible to turn on more than one measurement model, thus achieving increased efficiency?

So if I'm understanding the question correctly, it's likely the built-in flow control. If frames come in faster than the model can reasonably process them, some get dropped in the pipeline so that MediaPipe can focus on running inference for the latest frames.


Mac crash - fyi

Discussed in https://github.com/spimort/TerraBrush/discussions/138

Originally posted by fblair02 September 18, 2024
May or may not be of interest b/c Mac.  Godot 4.3 mono - Mac w/.NET) was rebooting randomly and hanging on save.  Finally got a clean import to load, but when running the demo project/scene got this:

Godot Engine v4.3.stable.mono.official.77dcf97d8 - https://godotengine.org
Vulkan 1.2.283 - Forward+ - Using Device #0: Apple - Apple M1 Max
================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.3.stable.mono.official (77dcf97d82cbfe4e4615475fa52ca03da645dbd8)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] invoke_previous_action(sigaction*, int, __siginfo*, void*, bool)
[2] 2   libsystem_platform.dylib            0x000000018b67e584 _sigtramp + 56
[3] ResourceLoader::_thread_load_function(void*) (in Godot) + 1560
[4] WorkerThreadPool::_process_task(WorkerThreadPool::Task*) (in Godot) + 580
[5] WorkerThreadPool::_thread_function(void*) (in Godot) + 256
[6] Thread::callback(unsigned long long, Thread::Settings const&, void ()(void), void*) (in Godot) + 120
[7] Thread::~Thread()
[8] 8   libsystem_pthread.dylib             0x000000018b64df94 _pthread_start + 136
[9] 9   libsystem_pthread.dylib             0x000000018b648d34 thread_start + 8
-- END OF BACKTRACE --
--- Debugging process stopped ---

Oh wow ok! 😮
So, were you able to see the scene in the editor before running it?
Were you able to use the tools?
I don't have a mac myself, so it will be hard to investigate for sure, but if it's something I can fix with your help, I'm down!
Let me know 🙂!

I played around with it for a bit yesterday.  I can't get the demo scene/project to consistently allow me to get to the point of building the C# project - when I load it in the editor starts to render and it kills Godot.
I can get it to work to a degree if I start a new project and copy the addon into it.  When I get the project set up and add a Terrabrush node, the terrain is black to transparent.  I can't get it to paint textures or add objects or foliage, but it does appear to make the height deformations (it takes some maneuvering to see it, but it's there.).
I can save the scene, but when I try to exit Godot - either fully or out to the Project menu - it hangs and has to be force-quit.
I'll fire it up later and capture some video of the behavior - apart from that error, I'm not getting anything in the logs or on the console.
Also, I'm happy to help if I can.

I've attached MSBuild logs - some deprecation warnings, but no issues on the project build.
msbuild_issues.csv
msbuild_log.txt

Alrighty - sorry for the delay; day job decided to get 'colicky'.
Here's some videos of project stuff.  Should be fairly self-explanatory.  DemoProject = working with the demo project; NewProject is just creating a new project and copying some things in.  The big 'DemoProject' video is from the start; the smaller one is after the demo has crashed and trying to reopen it.
https://drive.google.com/drive/folders/1L7mTt-tCtbt3SD5nDAhnSNvPJGRRTsJU?usp=sharing
Also, just as an aside, I'm very open to the idea that I'm doing something wrong; so let me know.

No problem for the delay, I have a full time job as well, I know what it is! 🙂
Ok, so for the first two vids, I don't know why it crashes. What I would recommend is to start the Godot with the console (does it exists on mac?).
On Windows, I have another executable file called "Godot_v4.3-stable_mono_win64_console.exe". It allows me to start Godot from a terminal and have more logs. Maybe that would help to see what happens.
For the last vid, it's the most promising one!
One thing I did notice is that you don't choose the right texture file for the Albedo. Take "Grass004_1K-JPG_Color.jpg" instead of "Grass004.png". The "Grass004.png" is just the preview of the result texture that comes from the website.
If you don't want the grass to be glowy, you can also take the inverted roughness.
Also, the crashes you got while painting comes from this I think.
https://github.com/godotengine/godot/pull/95420
https://github.com/spimort/TerraBrush/issues/133
I'm waiting for a new version of Godot to make sure it works.
Also, when you do a modification on the properties of TerraBrush, make sure you hit the "Update Terrain" button (if the terrain is already created) located in the toolbar at the top. This will apply the modifications to the current Terrain.
Apart from that, I think that in a new project it kinda works, right?
Let me know if that helps! 🙂

Heya - thanks for that.
With a new project, it mostly works-ish.  If it doesn't crash, Godot will hang on exit - either closing the project to go back to the Project menu or trying to exit altogether.
I can run from the console, but the output is pretty unsatisfying - basically, as soon as I edit a project, I lose console and it goes back to the terminal prompt:
Franks-MacBook-Pro-3:Godot_Plugins frankblair$ /Applications/Godot_mono.app/Contents/MacOS/Godot
Godot Engine v4.3.stable.mono.official.77dcf97d8 - https://godotengine.org
OpenGL API 4.1 Metal - 88.1 - Compatibility - Using Device: Apple - Apple M1 Max

Project is missing: /Users/frankblair/GodotProjects/terrabrushtest/project.godot
Project is missing: /Users/frankblair/GodotProjects/TerraBrush/project.godot
Editing project: /Users/frankblair/GodotProjects/terrabrushtest-new
Franks-MacBook-Pro-3:Godot_Plugins frankblair$

Choosing the right albedo makes the texture look better, that's for certain - oopsie.
Unfortunately, any time I hit 'Update Terrain', the terrain disappears and it crashes out of Godot.
If I have a texture set up at the start, and hit 'Create Terrain' it will take that texture (looks nice) and I can deform it (even nicer).  But if I don't - if I create the terrain first and then add textures - it won't paint the textures on the numeric grid.  I can deform it, but no textures appear and 'Update Terrain' crashes out.  It doesn't appear to corrupt the project file, though - I can go back in.  Until I try to save and quit - it hangs on quit.
I also found that if I set up the project fresh - through building and enabling the plugin - but don't add the TerraBrush node - it still hangs on exit.  TBH, I'm leaning toward the root problem being something with .NET and the Mac.  In the interest of being useful, as well as ornamental, here's a dump from when I killed the hung Godot process:
KillProcessDump-2024_09_21.txt
This is the only C# project I've attempted on the Mac (I actually got the .NET version just for this plugin).   I'll fire up a 'Hello world' C# project on the Mac to test the '.NET not paying nice with Mac' theory.

Also, as a followup - I mentioned getting a Windows laptop earlier - I set it up there and (spoiler alert:) it works great.

damn ok!
I'm not surprised that it works on Windows since this is the OS I use, but I'm surprised about the Mac version.
Maybe something to do with the shaders/vulkan?
I wish I could test it on a mac but It's not something possible at the moment.
Can you try other plugins for godot in C#? Maybe from here : https://github.com/godotengine/awesome-godot

Well, it is definitely not limited to this plugin.  I picked up this one - b/c it looked useful, too - and installed it.  It does the same thing re: hang on exit, even without actually using it.
https://cookiebadger.github.io/assetplacer-docs/index.html

Oh ok !
I'm happy to hear that this is not my plugin, but I'm sad to see that this happens on mac!
I wonder if there is anything logged on the Godot Github Issues?

Maybe this?
https://github.com/godotengine/godot/issues/94631#issuecomment-2246241278

So, I don't think it's that issue b/c that's related to exporting a project to run on MacOS.  My issues are in the editor and I can't find a comparable setting in project settings.

ok I see! Have you tried to post this issue on the Github of Godot? Maybe they have ideas.

I'll close this issue for now, let me know if there is any progress with the Mac side (feel free to open a new one if needed)!


update child operator versions

Signed-off-by: Nitin Goyal<EMAIL_ADDRESS>

/test odf-operator-e2e-aws

/test odf-operator-e2e-aws

/test odf-operator-e2e-aws

@iamniting What will we do for csi-addons & noobaa?

@iamniting What will we do for csi-addons & noobaa?

csi-addons there is already a version available, but we can not make use of it until ocs-client-operator uses the new one.
noobaa we need to check again with the noobaa team.


GitHub login broken within standalone Tauri build

It will spawn the webkit-gtk processes, but doesn't show the github login page inside the standalone.  0.15.3, 0.16.0 are broken.
Steps to reproduce
Create a new Linux account
Run X
Run term
sudo installed rust-1.73.0, cargo-1.73.0, nodejs-18.16.0, npm, webkit-gtk-2.43.2 with 4.0 API (unstable-tested) webkit-gtk-2.42.4 with 4.0 API (stable-tested), librsvg-2.56.3, gtk-3.24.38...
Download source tarball
Unpack tarball
cd into tarball
Updated credentials in .env (AUTH_GITHUB_ID="redacted", AUTH_GITHUB_SECRET="redacted", AUTH_GITLAB_ID="redacted", AUTH_GITLAB_SECRET="redacted", AUTH_SECRET="redacted", PUBLIC_SITE_URL="", TAURI_PRIVATE_KEY="" TAURI_KEY_PASSWORD="")
Edited src-tauri/tauri.conf.json to use npm instead of pnpm
npm install --legacy-peer-deps
npm run build
npm run build:tauri --release
sudo killall -9 node
src-tauri/target/release/git-light
The npm run preview works.

Hello
Why do you want to npm install with --legacy-peer-deps?
Also I don't see a release arg for the tauri build command (see the docs)
What do you mean exactly by "doesn't show the github login page"?

npm install --legacy-peer-deps fixes:
 * Running:	npm install --prefer-offline
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/vite
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!   peerOptional<EMAIL_ADDRESS>|| ^4.0.0 || ^5.0.0" from<EMAIL_ADDRESS>npm ERR!   node_modules/vitefu
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!     node_modules/@sveltejs/vite-plugin-svelte
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!       node_modules/@sveltejs/kit
npm ERR!         dev<EMAIL_ADDRESS>from the root project
npm ERR!         2 more (@sveltejs/adapter-static, @sveltejs/adapter-vercel)
npm ERR!       1 more (@sveltejs/vite-plugin-svelte-inspector)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@sveltejs/kit
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   node_modules/@sveltejs/adapter-static
npm ERR!     dev<EMAIL_ADDRESS>from the root project
npm ERR!   1 more (@sveltejs/adapter-vercel)
npm ERR!
npm ERR! Conflicting peer dependency<EMAIL_ADDRESS>npm ERR! node_modules/vite
npm ERR!   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   node_modules/@sveltejs/kit
npm ERR!     dev<EMAIL_ADDRESS>from the root project
npm ERR!     peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!     node_modules/@sveltejs/adapter-static
npm ERR!       dev<EMAIL_ADDRESS>from the root project
npm ERR!     1 more (@sveltejs/adapter-vercel)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /var/tmp/portage/dev-util/gitlight-0.16.0/homedir/.npm/_logs/2023-12-19T18_08_58_091Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /var/tmp/portage/dev-util/gitlight-0.16.0/homedir/.npm/_logs/2023-12-19T18_08_58_091Z-debug-0.log

The --release/--debug flag controls selection of build in src-tauri/tauri.conf.json.  --debug picks devPath.  --release picks distDir.
The login page is presented immediately after you click the "Log in to GitHub" button in the npm run preview version.
Using npm run preview
I deleted all cookies on Firefox
Click "or use the browser" button from http://localhost:5173/
Click "Log in to GitHub" button from http://localhost:5173/login
It sends me to "Sign in to GitHub" from https://github.com/login to authorize the app.

When using a tauri production build, the login system differs a bit, it should open your navigator where you can login to github, and you should be then prompted to reopen the app thanks to a deeplink.
Do you have correctly set the PUBLIC_SITE_URL env variable?

I did several possibilities.  PUBLIC_SITE_URL="" and PUBLIC_SITE_URL="http://localhost:5173" and with and without vite.
Most outcomes resulted in nothing.  Clicking the "Log in to GitHub" did nothing but spawn webkit-gtk processes without no UI form or changes.
Only with --debug [I think], the PUBLIC_SITE_URL="http://localhost:5173" resulted in git-light [tauri app] opening Firefox with http://localhost:5173/auth/github/login?from_app=true.  If vite server off, the Firefox page is blank.  If vite server on, git-light will open Firefox and will show content in Firefox.  Then, after authorization it will try to communicate with vite then open up a second instance of git-light while stuck on http://localhost:5173/login in git-light (tauri).   If you close all instances it bring it back into "Log in to GitHub" loop.
The .env was shred after the build but still works with the npm run preview (browser+vite workflow).

I honestly never tested it on linux so I don't know what to tell you, and also I'm not sure what you mean by "communicating with vite"
Maybe try to add logs in the frontend, for example in src/routes/(app)/+layout.svelte to check if the deeplink with params works
Btw why do you want to build the app? For developing pnpm dev:tauri should work fine

"communicating with vite" means after GitHub authorization.  It should display the redirect page for 1-3 seconds.  After that, it should will open and show http://localhost:5173/dashboard.  It doesn't do that on the Tauri standalone.
Gentoo Linux users almost build everything from source code for customization and performance reasons.  I tried the deb tarball, and it requires OpenSSL 1.1 that is not compatible with 3.0 which is the default on this distribution.

Sorry but I don't know how to help you
If you just want to use the app you wouldd be better off installing it the normal way:  https://gitlight.app/download/linux


Remove spurious text in evidence page

Remove "There should be some links here!" text from the top of the evidence page

Also done pending PR approval.

Also done pending PR approval.


Research applicable frameworks

References #8
It will be important to find one or more frameworks with visual components for graphing, forms, and designing and placing objects in a grid.

https://greensock.com/docs/ this framework looks like a good fit for our needs


How to use path finden

When I look at this http://neo4j.com/docs/stable/rest-api-graph-algos.html#rest-api-execute-a-dijkstra-algorithm-and-get-a-single-path I cann see that I can use some pathfinding alogrithms like dijkstra.
Currently I can't figer out how to do this with the Neo4J Client. Would I have to do this using the rest interface or is there a build API I'm overseeing?

I'm unaware of anyway to achieve this using the Client - there appear to be options with using Dijkstra in Cypher - (http://stackoverflow.com/questions/27361239/how-to-implement-dijkstras-algorithm-in-neo4j-using-cypher).
From the looks of it, someone has written a Dijkstra stored proc for Neo4j 3.0 (https://github.com/neo4j-contrib/neo4j-apoc-procedures/search?utf8=✓&q=dijkstra) in terms of how you call it - it's worth reading the docs - but once installed/added to neo, it's just like using normal Cypher.
The docs on the home page of APOC should help: https://github.com/neo4j-contrib/neo4j-apoc-procedures

I'm closing this as I can't see anyway to go forward, please re-open if you disagree!


Three sum Problem

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
Implemented the three sum problem in Python using the two-pointer technique
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
#7045

@ankitaggarwal23 @HarshCasper @bhav09 @gat786 @anushkrishnav
I have created a pull request with the complete code. Kindly review the same.

@all-contributors bot please add @devRawnie for code


[WFRP4e Core] career selector

Career selector doesn't load on new characterFrom<EMAIL_ADDRESS>10.288wfrp4e: 6.1.4Active Modules:

core module is not active, no careers to load


service: add links to hits of a search result

Closes https://github.com/inveniosoftware/invenio-records-resources/issues/123
Tests added at service level with a mock of the links schema. If the resources define the proper schema links, they will be rendered (tested this manually and is correct).
Question: @lnielsen
Should this task also include the addition of delete, list etc. links in for the record? Meaning changing resources/records/schema_links.py and implementing tests for them?

Coverage decreased (-0.2%) to 93.829% when pulling 37ab75cf87066de5b3e91a528e8001a24d2fa731 on ppanero:master into 84a7bf7f279def2d671bb72bae3c77804e206840 on inveniosoftware:master.

@fenekku I was just trying to clean up tests to have as less "skip" as possible. When permissions/access is tackled I assume this part will also be tested. WDYT?
What about opening an issue for it?

issue opened https://github.com/inveniosoftware/invenio-records-resources/issues/133

Thanks for that issue. Merge when you can


logdir setting has no effect

The setting of the log dir is not taken into account in the extension. Namely, setting the tensorboard log dir does not disable the prompt.
In the related commit, in package.json, we set this setting to be tensorBoard. But in the actual src/configuration.ts, we search a tensorboard. I guess if we uppercase the B on this line, it would fix the problem? (I am not a JS dev, so I cannot be sure at all)
Current workaround, lowercase the B in the JSON config manually.
From:
"tensorBoard.logDirectory": "/path/to/log/dir"

To:
"tensorboard.logDirectory": "/path/to/log/dir"

@DonJayamanne thanks for this extansion!
as of today this fix still doesn't work (on pre-release as well)
this workaround worked for me:

Current workaround, lowercase the B in the JSON config manually. From:
"tensorBoard.logDirectory": "/path/to/log/dir"

To:
"tensorboard.logDirectory": "/path/to/log/dir"

The issue does not seem to be fixed in the last version (v2023.10.1002992421). Do any maintainer have an idea on when this fix will be delivered? Thanks for your work!


feat: initial implementation of GraphQL Gene

Initial implementation of GraphQL Gene which is fully working (tested with one of Accès Impôt's private repository).
Mentioning a few things that were tested:

Model aliases
Create a directive for authentication with multiple admin roles
The default resolvers with fully working deep where argument, pagination, ordering
include and exclude config that only accepts field names of the current model
Infer types from GraphQL definition + from sequelize plugin settings

:tada: This PR is included in version graphql-gene-v1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Error: 0x80070002

Please use the following bug reporting template to help produce actionable and reproducible issues. Please try to ensure that the reproduction is minimal so that the team can go through more bugs!

A brief description
After update to Windows Insider Preview 14971 the Linux subsystem is broken.

Expected results
Be able to run bash and update Ubuntu packages to the latest version.

Actual results (with terminal output if applicable)
Microsoft Windows [Version 10.0.14971]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\Users\rado>bash
Error: 0x80070002
Press any key to continue...

Your Windows build number
10.0.14971

Steps / All commands required to reproduce the error from a brand new installation
bash.exe

Strace of the failing command

Required packages and commands to install

See our contributing instructions for assistance.

lxrun /uninstall /full /y followed by lxrun /y
fixed the problem and Ubuntu 16.04 has been installed replacing Ubuntu 14.04 .
Update has errors though as shown below:

Microsoft Windows [Version 10.0.14971]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>bash
root@IntersolPC:/mnt/c/Windows/System32# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
accountsservice apparmor apt-transport-https bind9-host cloud-init cloud-initramfs-copymods
cloud-initramfs-dyn-netconf curl distro-info-data dnsutils initramfs-tools initramfs-tools-bin initramfs-tools-core
isc-dhcp-client isc-dhcp-common kbd klibc-utils libaccountsservice0 libapparmor-perl libbind9-140 libcurl3-gnutls
libdns-export162 libdns162 libisc-export160 libisc160 libisccc140 libisccfg140 libklibc liblwres141 liblxc1
libpam-systemd libssl1.0.0 libsystemd0 libudev1 lxc-common lxcfs lxd lxd-client multiarch-support open-iscsi openssl
overlayroot pollinate python3-distupgrade python3-update-manager snap-confine snapd systemd systemd-sysv tzdata
ubuntu-core-launcher ubuntu-release-upgrader-core udev unattended-upgrades update-manager-core
update-notifier-common vlan
57 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
Need to get 0 B/23.4 MB of archives.
After this operation, 531 kB disk space will be freed.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 26096 files and directories currently installed.)
Preparing to unpack .../libsystemd0_229-4ubuntu12_amd64.deb ...
Unpacking libsystemd0:amd64 (229-4ubuntu12) over (229-4ubuntu8) ...
Processing triggers for libc-bin (2.23-0ubuntu4) ...
Setting up libsystemd0:amd64 (229-4ubuntu12) ...
Processing triggers for libc-bin (2.23-0ubuntu4) ...
(Reading database ... 26096 files and directories currently installed.)
Preparing to unpack .../libpam-systemd_229-4ubuntu12_amd64.deb ...
Unpacking libpam-systemd:amd64 (229-4ubuntu12) over (229-4ubuntu8) ...
Preparing to unpack .../systemd_229-4ubuntu12_amd64.deb ...
Unpacking systemd (229-4ubuntu12) over (229-4ubuntu8) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up systemd (229-4ubuntu12) ...
Initializing machine ID from random generator.
addgroup: The group systemd-journal' already exists as a system group. Exiting. Failed to set capabilities on file /usr/bin/systemd-detect-virt' (Invalid argument)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
Operation failed: No such file or directory
(Reading database ... 26096 files and directories currently installed.)
Preparing to unpack .../udev_229-4ubuntu12_amd64.deb ...
Unpacking udev (229-4ubuntu12) over (229-4ubuntu8) ...
Preparing to unpack .../libudev1_229-4ubuntu12_amd64.deb ...
Unpacking libudev1:amd64 (229-4ubuntu12) over (229-4ubuntu8) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu12) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu4) ...
Setting up libudev1:amd64 (229-4ubuntu12) ...
Processing triggers for libc-bin (2.23-0ubuntu4) ...
(Reading database ... 26096 files and directories currently installed.)
Preparing to unpack .../klibc-utils_2.0.4-8ubuntu<IP_ADDRESS>_amd64.deb ...
Unpacking klibc-utils (2.0.4-8ubuntu<IP_ADDRESS>) over (2.0.4-8ubuntu<IP_ADDRESS>) ...
Preparing to unpack .../initramfs-tools_0.122ubuntu8.5_all.deb ...
Unpacking initramfs-tools (0.122ubuntu8.5) over (0.122ubuntu8.1) ...
Preparing to unpack .../initramfs-tools-core_0.122ubuntu8.5_all.deb ...
Unpacking initramfs-tools-core (0.122ubuntu8.5) over (0.122ubuntu8.1) ...
Preparing to unpack .../initramfs-tools-bin_0.122ubuntu8.5_amd64.deb ...
Unpacking initramfs-tools-bin (0.122ubuntu8.5) over (0.122ubuntu8.1) ...
Preparing to unpack .../libklibc_2.0.4-8ubuntu<IP_ADDRESS>_amd64.deb ...
Unpacking libklibc (2.0.4-8ubuntu<IP_ADDRESS>) over (2.0.4-8ubuntu<IP_ADDRESS>) ...
Preparing to unpack .../systemd-sysv_229-4ubuntu12_amd64.deb ...
Unpacking systemd-sysv (229-4ubuntu12) over (229-4ubuntu8) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up systemd-sysv (229-4ubuntu12) ...
(Reading database ... 26096 files and directories currently installed.)
Preparing to unpack .../libapparmor-perl_2.10.95-0ubuntu2.5_amd64.deb ...
Unpacking libapparmor-perl (2.10.95-0ubuntu2.5) over (2.10.95-0ubuntu2.2) ...
Preparing to unpack .../apparmor_2.10.95-0ubuntu2.5_amd64.deb ...
Unpacking apparmor (2.10.95-0ubuntu2.5) over (2.10.95-0ubuntu2.2) ...
Preparing to unpack .../liblxc1_2.0.5-0ubuntu1~ubuntu16.04.2_amd64.deb ...
Unpacking liblxc1 (2.0.5-0ubuntu1~ubuntu16.04.2) over (2.0.4-0ubuntu1~ubuntu16.04.2) ...
Preparing to unpack .../lxc-common_2.0.5-0ubuntu1~ubuntu16.04.2_amd64.deb ...
Unpacking lxc-common (2.0.5-0ubuntu1~ubuntu16.04.2) over (2.0.4-0ubuntu1~ubuntu16.04.2) ...
Preparing to unpack .../lxcfs_2.0.4-0ubuntu1~ubuntu16.04.1_amd64.deb ...
Unpacking lxcfs (2.0.4-0ubuntu1~ubuntu16.04.1) over (2.0.3-0ubuntu1~ubuntu16.04.1) ...
Preparing to unpack .../lxd_2.0.5-0ubuntu1~ubuntu16.04.1_amd64.deb ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of stop.
Unpacking lxd (2.0.5-0ubuntu1~ubuntu16.04.1) over (2.0.4-0ubuntu1~ubuntu16.04.1) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of stop.
Preparing to unpack .../open-iscsi_2.0.873+git0.3b4b4500-14ubuntu3.1_amd64.deb ...
Unpacking open-iscsi (2.0.873+git0.3b4b4500-14ubuntu3.1) over (2.0.873+git0.3b4b4500-14ubuntu3) ...
Preparing to unpack .../snap-confine_1.0.43-0ubuntu1~16.04.1_amd64.deb ...
Unpacking snap-confine (1.0.43-0ubuntu1~16.04.1) over (1.0.38-0ubuntu<IP_ADDRESS>) ...
Preparing to unpack .../ubuntu-core-launcher_1.0.43-0ubuntu1~16.04.1_amd64.deb ...
Unpacking ubuntu-core-launcher (1.0.43-0ubuntu1~16.04.1) over (1.0.38-0ubuntu<IP_ADDRESS>) ...
Preparing to unpack .../update-notifier-common_3.168.2_all.deb ...
Unpacking update-notifier-common (3.168.2) over (3.168.1) ...
Preparing to unpack .../multiarch-support_2.23-0ubuntu4_amd64.deb ...
Unpacking multiarch-support (2.23-0ubuntu4) over (2.23-0ubuntu3) ...
Processing triggers for systemd (229-4ubuntu12) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu4) ...
Setting up multiarch-support (2.23-0ubuntu4) ...
(Reading database ... 26098 files and directories currently installed.)
Preparing to unpack .../tzdata_2016h-0ubuntu0.16.04_all.deb ...
Unpacking tzdata (2016h-0ubuntu0.16.04) over (2016f-0ubuntu0.16.04) ...
Preparing to unpack .../distro-info-data_0.28ubuntu0.2_all.deb ...
Unpacking distro-info-data (0.28ubuntu0.2) over (0.28ubuntu0.1) ...
Preparing to unpack .../libisc-export160_1%3a9.10.3.dfsg.P4-8ubuntu1.2_amd64.deb ...
Unpacking libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.2) over (1:9.10.3.dfsg.P4-8ubuntu1) ...
Preparing to unpack .../libdns-export162_1%3a9.10.3.dfsg.P4-8ubuntu1.2_amd64.deb ...
Unpacking libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.2) over (1:9.10.3.dfsg.P4-8ubuntu1) ...
Preparing to unpack .../isc-dhcp-client_4.3.3-5ubuntu12.4_amd64.deb ...
Unpacking isc-dhcp-client (4.3.3-5ubuntu12.4) over (4.3.3-5ubuntu12.1) ...
Preparing to unpack .../isc-dhcp-common_4.3.3-5ubuntu12.4_amd64.deb ...
Unpacking isc-dhcp-common (4.3.3-5ubuntu12.4) over (4.3.3-5ubuntu12.1) ...
Preparing to unpack .../kbd_1.15.5-1ubuntu5_amd64.deb ...
Unpacking kbd (1.15.5-1ubuntu5) over (1.15.5-1ubuntu4) ...
Preparing to unpack .../libssl1.0.0_1.0.2g-1ubuntu4.5_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.2g-1ubuntu4.5) over (1.0.2g-1ubuntu4.4) ...
Preparing to unpack .../accountsservice_0.6.40-2ubuntu11.3_amd64.deb ...
Unpacking accountsservice (0.6.40-2ubuntu11.3) over (0.6.40-2ubuntu11.2) ...
dpkg: error processing archive /var/cache/apt/archives/accountsservice_0.6.40-2ubuntu11.3_amd64.deb (--unpack):
unable to open '/usr/lib/accountsservice/accounts-daemon.dpkg-new': Permission denied
dmesg: read kernel buffer failed: Function not implemented
/bin/df: /proc/sys/fs/binfmt_misc: Operation not permitted
Preparing to unpack .../libaccountsservice0_0.6.40-2ubuntu11.3_amd64.deb ...
Unpacking libaccountsservice0:amd64 (0.6.40-2ubuntu11.3) over (0.6.40-2ubuntu11.2) ...
Preparing to unpack .../curl_7.47.0-1ubuntu2.2_amd64.deb ...
Unpacking curl (7.47.0-1ubuntu2.2) over (7.47.0-1ubuntu2.1) ...
Preparing to unpack .../libcurl3-gnutls_7.47.0-1ubuntu2.2_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.2) over (7.47.0-1ubuntu2.1) ...
Preparing to unpack .../apt-transport-https_1.2.15_amd64.deb ...
Unpacking apt-transport-https (1.2.15) over (1.2.12~ubuntu16.04.1) ...
Preparing to unpack .../bind9-host_1%3a9.10.3.dfsg.P4-8ubuntu1.2_amd64.deb ...
Unpacking bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.2) over (1:9.10.3.dfsg.P4-8ubuntu1) ...
Preparing to unpack .../dnsutils_1%3a9.10.3.dfsg.P4-8ubuntu1.2_amd64.deb ...
Unpacking dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.2) over (1:9.10.3.dfsg.P4-8ubuntu1) ...
Preparing to unpack .../libisc160_1%3a9.10.3.dfsg.P4-8ubuntu1.2_amd64.deb ...
Unpacking libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) over (1:9.10.3.dfsg.P4-8ubuntu1) ...
Preparing to unpack .../libdns162_1%3a9.10.3.dfsg.P4-8ubuntu1.2_amd64.deb ...
Unpacking libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) over (1:9.10.3.dfsg.P4-8ubuntu1) ...
Preparing to unpack .../libisccc140_1%3a9.10.3.dfsg.P4-8ubuntu1.2_amd64.deb ...
Unpacking libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) over (1:9.10.3.dfsg.P4-8ubuntu1) ...
Preparing to unpack .../libisccfg140_1%3a9.10.3.dfsg.P4-8ubuntu1.2_amd64.deb ...
Unpacking libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) over (1:9.10.3.dfsg.P4-8ubuntu1) ...
Preparing to unpack .../liblwres141_1%3a9.10.3.dfsg.P4-8ubuntu1.2_amd64.deb ...
Unpacking liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) over (1:9.10.3.dfsg.P4-8ubuntu1) ...
Preparing to unpack .../libbind9-140_1%3a9.10.3.dfsg.P4-8ubuntu1.2_amd64.deb ...
Unpacking libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) over (1:9.10.3.dfsg.P4-8ubuntu1) ...
Preparing to unpack .../openssl_1.0.2g-1ubuntu4.5_amd64.deb ...
Unpacking openssl (1.0.2g-1ubuntu4.5) over (1.0.2g-1ubuntu4.4) ...
Preparing to unpack .../ubuntu-release-upgrader-core_1%3a16.04.18_all.deb ...
Unpacking ubuntu-release-upgrader-core (1:16.04.18) over (1:16.04.16) ...
Preparing to unpack .../python3-distupgrade_1%3a16.04.18_all.deb ...
Unpacking python3-distupgrade (1:16.04.18) over (1:16.04.16) ...
Preparing to unpack .../python3-update-manager_1%3a16.04.4_all.deb ...
Unpacking python3-update-manager (1:16.04.4) over (1:16.04.3) ...
Preparing to unpack .../update-manager-core_1%3a16.04.4_all.deb ...
Unpacking update-manager-core (1:16.04.4) over (1:16.04.3) ...
Preparing to unpack .../lxd-client_2.0.5-0ubuntu1~ubuntu16.04.1_amd64.deb ...
Unpacking lxd-client (2.0.5-0ubuntu1~ubuntu16.04.1) over (2.0.4-0ubuntu1~ubuntu16.04.1) ...
Preparing to unpack .../pollinate_4.23-0ubuntu1~16.04_all.deb ...
Unpacking pollinate (4.23-0ubuntu1~16.04) over (4.21-0ubuntu1~16.04) ...
Preparing to unpack .../snapd_2.16ubuntu3_amd64.deb ...
Unpacking snapd (2.16ubuntu3) over (2.14.2~16.04) ...
Preparing to unpack .../unattended-upgrades_0.90ubuntu0.2_all.deb ...
Unpacking unattended-upgrades (0.90ubuntu0.2) over (0.90) ...
Preparing to unpack .../cloud-init_0.7.8-1-g3705bb5-0ubuntu1~16.04.3_all.deb ...
Unpacking cloud-init (0.7.8-1-g3705bb5-0ubuntu1~16.04.3) over (0.7.8-1-g3705bb5-0ubuntu1~16.04.1) ...
Preparing to unpack .../cloud-initramfs-copymods_0.27ubuntu1.2_all.deb ...
Unpacking cloud-initramfs-copymods (0.27ubuntu1.2) over (0.27ubuntu1) ...
Preparing to unpack .../cloud-initramfs-dyn-netconf_0.27ubuntu1.2_all.deb ...
Unpacking cloud-initramfs-dyn-netconf (0.27ubuntu1.2) over (0.27ubuntu1) ...
Preparing to unpack .../overlayroot_0.27ubuntu1.2_all.deb ...
Unpacking overlayroot (0.27ubuntu1.2) over (0.27ubuntu1) ...
Preparing to unpack .../vlan_1.9-3.2ubuntu<IP_ADDRESS>_amd64.deb ...
Unpacking vlan (1.9-3.2ubuntu<IP_ADDRESS>) over (1.9-3.2ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu4) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu12) ...
Errors were encountered while processing:
/var/cache/apt/archives/accountsservice_0.6.40-2ubuntu11.3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@IntersolPC:/mnt/c/Windows/System32#

Looks like this is a duplicate of #1378.

I had an install that was working, sort of.  I tried to edit my non-root account's .bashrc file using my Windows install of jEdit, and it appeared that the file became unreadable by my non-root account.  ls -l showed it as being owned by root, and in root's group; I'd run chown on it, and chown would claim it had changed the owner to my non-root name, but ls -l showed no change.
I eventually gave up and tried the uninstall, but got the dreaded 0x80070002 error when I tried to run bash.
I eventually tried the full uninstall: lxrun /uninstall /full, turn off "Windows Subsystem for Linux" in the Control Panel, delete the hidden lxss dir under AppData/Local/ (except Windows refuses to delete the rootfs subdir, which seems to be a link to the root of the C: drive).  Reboot, turn "Windows Subsystem for Linux" back on, reboot again, run lxrun /install from an admin cmd prompt, then run set default user....  Now I can log in to that account from an admin cmd prompt, but trying to log in from a non-admin cmd prompt still gives the 0x80070002 error.
From that admin-based bash shell, I can run sudo apt-get update, then sudo apt-get upgrade (bunch of stuff), and even sudo apt-get dist-upgrade.  Still get 80070002 error when trying to start bash from a non-administrator cmd prompt.
I shouldn't have to have to be admin just to run bash.  What gives?  Is there progress on this bug?  Do you need any logs, or can I test s.t. for you?
BTW, I have checked that bash.exe has read & execute permissions for all users.

Possible clue to my problem (dunno if it has anything to do with any of the other 80070002 problems): It turns out the new account that I've been trying to log in under is located under c:\users\Admin\AppData\Local\lxss, whereas my own Windows home is c:\users\maxwell\AppData\Local\lxss.  So maybe what it's telling me is that there is no accessible account for maxwell.  How to fix?  How to setup an account for linux user maxwell under Windows user maxwell, so I don't have to log in under an admin account?

@mcswell -- this sounds like a new issue.  Could you open up a new ticket?

Sure (I fly out of town in a couple hours, so if I don't get to this now, it will be a week).  I'm not sure which part is new, the part where I can't create a Linux account under my non-admin Windows username?

@mcswell - Looking forward to the new issue.
1. You cannot modify files located in %localappdata%\lxss with windows editors due to a current limitation of how Linux file attributes are stored. To recover these files I suggest copying them to a DrvFs mount (/mnt/c etc) and copying them back to the original location from within a bash shell.
2. You do not need to be a Windows administrator to create usernames. The command to create a new user account is: lxrun.exe /setdefaultuser@mcswell - Looking forward to the new issue.
1. You cannot modify files located in %localappdata%\lxss with windows editors due to a current limitation of how Linux file attributes are stored. To recover these files I suggest copying them to a DrvFs mount (/mnt/c etc) and copying them back to the original location from within a bash shell.
2. You do not need to be a Windows administrator to create usernames. The command to create a new user account is: lxrun.exe /setdefaultuser

@rcconsult - The issue in your second comment is being investigate internally. As of right now it looks like a bug that we've uncovered in Windows Defender.

ok, will do.  For the record, the bug I'm going to submit is that I can only run 'lxrun.exe /setdefaultuser' under the Administrator's cmd

Done, issue 1520.  Feel free to delete any of my msgs on this 1393 thread.  (BTW, re your comment above about Windows Defender, I'm running Avira antivirus.)

@mcswell -- thanks for posting the new ticket ( #1520 )!  Hopefully that'll get you a quick answer.
Regarding "not sure which part is new", as it turns out, I would actually say "all of it" :-)  It was certainly reasonable for you to post here first; I'm just triaging based on experience.
One observation:  According to #1520 , you're running build 14393.  That's the latest Windows stable build.  The OP on this thread is running build 14971, which is an Insider pre-release build.  A lot has changed about WSL since Windows's latest stable release; those changes are only available in Insider builds.  For example, the OP discusses having antivirus-related issues that appear to be specific to Ubuntu 16.04.  The version of Windows that you are running does not (officially) support Ubuntu 16.04 at all.  So that's presumably not relevant to you?
Also, the OP's problem appears to have been triggered by upgrading to a recent pre-release build.  Your issue was apparently triggered by editing a Linux file from Windows.  These are, as it turns out, both interesting potential causes of bugs, and they imply rather different things.  The OP's implies a regression in a recent Insider build.  (It happens; that's what pre-release builds are for.)  Yours implies an issue whose underlying cause may well be related to the issues discussed in this blog post:
https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/


Added defaults for grub and serial_console

When deploying ursula to SoftLayer virtual servers it was discovered that the
/etc/default/grub file did not exist and there was no serial console on the
virtual servers.  The changes made in this commit allowed the ursula deploy
to proceed.

Can one of the admins verify this patch?

"ok to test" to accept this pull request for testing
"test this please" for a one time test run
"add to whitelist" to add the author to the whitelist

Please don't click the button to update your branch. It creates a "merge" commit here in the PR, which looks ugly when we merge the PR to master.


Migrate Tag API in BigQuery

After fixking https://github.com/open-metadata/OpenMetadata/issues/1526, we need to take a look at the changes from https://github.com/open-metadata/OpenMetadata/pull/2587 and update ometa_api and the bigquery connector to remove the ad-hoc Tag implementations and use the client Tag Mixin

I will work on this.


sched: Remove multi-level queue priority limit

Modified bitmask to  bitmask array, it can make multilevel queue remove
32 bit prioriry limit.
We can scan bitmask array to find which queue have ready thread.
Only need the number of queues as priority because the priority
is checked on create_thread.

I don't normally make a big deal over style, but there are a LOT of whitespace-only changes here. Can you split those out so that the logic changes are isolated? I'm fine if you want to rework the whitespace in a separate patch.
No complaints in general about the change, but it's difficult to review in its current state

I don't normally make a big deal over style, but there are a LOT of whitespace-only changes here. Can you split those out so that the logic changes are isolated? I'm fine if you want to rework the whitespace in a separate patch.
No complaints in general about the change, but it's difficult to review in its current state

I apology for this and already split logic and the result of format tool.

I'm out of complaints. Looks good. Thanks.

Thanks for review.


[iOS Deploy] CFSocketSetAddress bind failure: 48

When run test or run for iOS ⇒ app is installed but not run and not start debug connection.
openfl run project.xml ios -debug -v
...
Initializing project...
Using project file: project.xml
Reading HXCPP config: /Users/ak/.hxcpp_config.xml
Using target platform: IOS

Running command: RUN
 - Running process: xcodebuild -version
 - Running command: /Users/ak/Developer/Haxe/libs/lime/2,9,1/templates/bin/ios-deploy install --noninteractive --debug --timeout 5 --bundle /Blah/blah/blah/bin/debug/ios/build/Debug-iphoneos/Renamed.app
[....] Waiting up to 5 seconds for iOS device to be connected
[....] Using (null) (902f315e51b0f6f494697915635204caf379d6c5).
------ Install phase ------
[  0%] Found (null) connected through USB, beginning install
[  5%] Copying /Blah/blah/blah/bin/debug/ios/build/Debug-iphoneos/Renamed.app/META-INF/ to device
...
[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 60%] TakingInstallLock
[ 65%] PreflightingApplication
[ 70%] VerifyingApplication
[ 80%] InstallingApplication
[ 85%] PostflightingApplication
[ 90%] SandboxingApplication
[100%] Installed package /Blah/blah/blah/bin/debug/ios/build/Debug-iphoneos/Renamed.app
------ Debug phase ------
Starting debug of (null) connected through USB...
[  0%] Looking up developer disk image
[ 90%] Mounting developer disk image
[ 95%] Developer disk image already mounted
2016-06-29 03:37:43.561 ios-deploy[35315:1375186] CFSocketSetAddress bind failure: 48
[100%] Connecting to remote debug server
-------------------------

Versions:

OS X 10.11.5 (15F34)
Xcode:

$ xcodebuild -version
Xcode 7.3.1
Build version 7D1014

lime: [2.9.1]
openfl: [3.6.1]
hxcpp [git] (not latest, work fine & like a stable)
Haxe 3.3 RC2

We're currently using (and contributing when possible) to https://github.com/phonegap/ios-deploy
It might be worth testing a newer version? If it works better, we include a newer build in Lime :smile:


Stack not unwinding on error [LuaJIT]

In my project I call an update function in protected mode, which in turn calls a C function, which then call a Lua function that then call error.
Callstack:
lua (protected)
C
lua (unprotected)
error
In the C function i have a std::string, who's destruction is never called, causing memory leaks.
After some digging around and testing I found that the problem occurs with LuaJIT but not Lua5.1 (built as c++).
I have modified the example code from https://github.com/ThePhD/sol2/issues/592 to demonstrate the problem:
#define SOL_EXCEPTIONS_SAFE_PROPAGATION 1
#include <sol.hpp>

int main(int, char**)
{
	static size_t fooCount{};

	struct Foo {
		Foo()
		{
			++fooCount;
		}
		~Foo()
		{
			--fooCount;
		}
	};

	{
		sol::state lua;
		lua.open_libraries(sol::lib::base);

		lua.script(R"(
			function crash()
				error()
			end
		)");

		lua["fn"] = [&]()
		{
			auto foo = std::make_shared<Foo>();
			lua["crash"]();
		};

		auto result = lua.safe_script("fn()", [](lua_State*, sol::protected_function_result pfr)
		{
			return pfr;
		});
	}

	assert(fooCount == 0);

	return 0;
}

I'm working on a Lua IDE integrated into my engine that allows live development. I need the error to unwind the call stack when an error is encountered, so I can't fix it by doing a protected call in the C function.
Is this expected behavior of LuaJIT and/or is there a way to circumvent it? Would be sad if i had to switch to Lua5.1 to avoid this problem.

Lua's error function longjmps when not built as C++.
... And that's it.
You don't get safety. You don't get unwinding. LuaJIT does not give any of this to you, unless you build x64 and do everything the documentation tells you to with the latest LuaJIT. This is spoken about extensively in so2's documentation. This isn't a sol2 problem. It's a Lua(JIT) problem.
Compile Lua as C++ or update your LuaJIT to behave. If neither work, consider re-structing your code and not calling crash() without using the designated protected_function mechanisms. (You can unwind the function manually by calling the function, handling the error, and then just return-ing gracefully.)

Everything is built as c++ and x64.
Doesn't the initial protected_function call handle subsequent calls to C function?

No. You need to protect everything. And handle everything. At all levels.
Consider replacing the default error handling function with set_default_handler to make your life easier.

Ok! Already using a custom handler =).
Will have to do some more tinkering then. Thanks!


refactor: refactor dwell time calculation in data processing script

Pull Request doc
Purpose
What is the larger goal of this change?
To update the dwell time calculation in the original data processing code.
What the code is doing
How is the purpose executed?
The dwell times are calculated by subtracting the current trip's end time from the next trip's start time. The last trip's dwell time is calculated by subtracting it's end time from the first trip's start time. This updated calculation also handles when start times begin past 12AM for all trips, which the previous version didn't handle and outputted negative times.
Testing
How did you test this change (unit/functional testing, manual testing, etc.)?
Since the output should not contain negative values (which the original code produced), some of the trips with the negative values were manually recalculated. Those were then used as test cases to compare against the updated code output.
Where to look

It's helpful to clarify where your new code lives if you moved files around or there could be confusion/
PreREISE/prereise/gather/demanddata/transportation_electrification/data_process.py

What files are most important?
data_process.py

Usage Example/Visuals
How the code can be used and/or images of any graphs, tables or other visuals (not always applicable).
Time estimate
How long will it take for reviewers and observers to understand this code change?
It should take maybe 15 minutes to 30 minutes to understand.

Not related to this PR: should we regenerate the existing immediate charing profiles in the Dropbox folder with this fix?

Not related to this PR: should we regenerate the existing immediate charing profiles in the Dropbox folder with this fix?

I think it would be a good idea to regenerate the existing profiles that way they're up-to-date.

@isond This is good to go and I will press the button once the linter doesn't complain. Thanks!


Unable to round-trip http request to upstream: dial tcp <IP_ADDRESS>:5000: i/o timeout

Unable to round-trip http request to upstream: dial tcp <IP_ADDRESS>:5000: i/o timeout

Thanks for noticing, should be fixed now


Implement sticky sessions for requesters

Currently we have a few load-balancing scenarios. Above all these, to let developers create stateful services, cote requesters should support sticky sessions, in that, it should be configurable that certain requests could be directed to certain responders.

I found that creating a microservice in my middleware did the trick! I run my app in cluster mode on 8 processes and just added another service called geo.js.


Getting error when I run zgetinventory.py on certain hostgroups

When I run this on my "Elastic Search" hostgroup I get this error:
./zgetinventory.py --hostgroups "Elastic Search" -F "software"
"id","host","software"
"12522","nw-es-201","2.4.0"
"12523","nw-es-202.prod.pcln.com","2.4.0"
"12524","nw-es-203.prod.pcln.com","2.4.0"
"12525","nw-es-204.prod.pcln.com","2.4.0"
"12526","nw-es-205.prod.pcln.com","2.4.0"
"13493","ny-es-001.prod.pcln.com","2.4.0"
"13494","ny-es-002.prod.pcln.com","2.4.0"
"13495","ny-es-003.prod.pcln.com","2.4.0"
"13550","ny-esclient-001.prod.pcln.com","2.4.0"
"13580","nw-esclient-201.prod.pcln.com","2.4.4"
"13655","nw-esmaster-201.prod.pcln.com","2.4.0"
"13656","nw-esmaster-202.prod.pcln.com","2.4.0"
"13657","nw-esmaster-203.prod.pcln.com","2.4.0"
Traceback (most recent call last):
File "./zgetinventory.py", line 305, in
row.append(host['inventory'][field])
TypeError: list indices must be integers, not str

Hi, thanks for using this!
Could it be the next hosts in the group doesn't have inventory enabled? You should be able to test with the '-i' flag. Please let me know the result!

Just tested this, it is indeed an error when encountering a host without inventory set.
I've now commited a version which will handle this gracefully by returning empty fields for theses hosts.
Let me know if it work for you!

Hey thanks Ray! It works finie now. I appreciate the quick fix

Awesome!


Cache blocks re-loading of images after failed attempts

If the image loader cannot successfully download an image on the first try, then, when caching is enabled, it does not make any attempt to download the image again at a later time. When the disk cache is enabled it does not even retry this when the application is terminated and started again. It seems that even in case of a download error something is stored in the cache which then blocks any further attempts. I tested this by removing my images from my server, then start the application, then copy the images back to the server while the application is still running. Switching screens or restarting the application does not force a re-load of the images. This all works when no caching is configured but this is no option for me.
I have configured caching like this:
    fun generateImageLoader(): ImageLoader {
        return ImageLoaderBuilder().apply {
            diskCache {
                DiskCacheBuilder()
                    .directory("... path to some cache directory ...".toPath())
                    .maxSizeBytes(1024 * 1024 * 50) // 50 MB
                    .build()
            }
            memoryCache {
                MemoryCacheBuilder()
                    .build()
            }
        }.build()
    }

Does the service return 200 when downloading the wrong thing?
The current caching policy is indeed rather rigid and I will be improving it in the near future.

I don't know what the server response was in these cases, especially as there are various different scenarios where this seems to happen.

I try added the http status code check and custom cache policy to the image request, It might help a little.


Fixed the compile warning in the WebViewExample.

Fixed the compile warning by switching the the BranchShareLink interface.

Result of Integration 1
Duration: 4 minutes and 53 seconds
Result: Perfect build! All 179 tests passed. :+1:
Test Coverage: 58%