Add thermosiphoning example

Add example with thermosiphoning

All the closed-loop/AGS examples end up with the thermosiphon effect operating. Are you looking for a non-AGS example?

All the closed-loop/AGS examples end up with the thermosiphon effect operating. Are you looking for a non-AGS example?

@malcolm-dsider Correct, looking for a non-AGS example (but thanks for clarification re: AGS)

@malcolm-dsider Thanks for that explanation, very helpful - and great to know that we in fact already have an EGS thermosiphoning example I wasn't even aware of! I added a comment to example_SHR-1.txt referencing this discussion that will be included in whatever PR I make next (https://github.com/softwareengineerprogrammer/GEOPHIRES-X/commit/f043ca5ec9d416a363190bf1153013a8496f946c)


Recent actions on ctrl/command + P

Compact list of recent actions (ctrl + P) should be available on all sessions screens (but not on welcome).

done


HTTP Header Content-Type is ignored

casperjs may ignore HTTP Header "Content-Type".
I found this problem when I implement casperjs script for the Japanese web pages.
There are 2 different pages.
first one has  ,
another one does not have  above.
Both of them send HTTP Header
Content-Type: text/html; charset=Windows-31J
As the result ,
casperjs can work fine for first one .
but cannot work for another one. and japanese word in the page which I fetched via casper.getHTML().
is completely crashed.
I guess casperjs should read "HTTP Header Content Type"  as same as usual browser.

Can you please provide a minimal working example?

As part of a cleanup effort:
Looks to be a stale help request. Assuming you've moved on to better and cooler things.  Please feel free to re-open if this is still an active issue for you and we'll try our best to help out.


using pdfkit with CSP not allowing eval()

Would it be possible, to make pdfkit usable with a CSP not allowing eval()? As our site handles personal data, all eval() is not allowed to be executed, rendering pdfkit unusable.

We run into the same problem here.
The unsafe evaluation comes from the devongovett/restructure package:
https://github.com/devongovett/restructure/blob/master/src/Pointer.coffee#L11.
The coffee script builds a function from a parametric variable name.
It renders PDFkit unusable with decent CSP settings that do not include 'unsafe-eval'.

see devongovett/restructure#22

Any updates on this?

Now that https://github.com/foliojs/restructure/issues/28 has been fixed and released in 2.0.0, would it be possible to update pdfkit/fontkit to use the new version without the CSP issue?

We'd also be really keen on having this. It's preventing us from having a CSP without unsafe-eval on our sites that use AMCharts (which depends on pdfkit, which in turn depends on this)

Any update? This library cannot be used securely with modern applications.

+1 this is breaking our Web application security. Do others have alternatives to pdfkit that are secure CSP header friendly?

Is there an update on this? I would love to get rid of the 'unsafe-eval' in our Content Security Policy.

Dependencies updated in latest version 0.16.0.


Better documentation for kubectl and azad-proxy plugin

When following the installation guide, it's not obvious how to install kubectl and the azad-proxy plugin installation from krew is a bit down in the azad-kube-proxy documentation. We should add som docs to make this process easier to follow.

We should recommend installing winget for Windows: https://apps.microsoft.com/store/detail/app-installer/9NBLGGH4NNS1
Then it's just running winget install -e --id Kubernetes.kubectl to install the kubectl client.

Krew requires git wich isn't installed by default on Windows, but can easily be installed if you have winget using: winget install -e --id Git.Git

Krew can't be installed using winget, but easily done using:
$latestVersion = (Invoke-WebRequest "https://github.com/kubernetes-sigs/krew/releases/latest").BaseResponse.ResponseUri.OriginalString.split('/')[-1]
curl.exe -LO "https://github.com/kubernetes-sigs/krew/releases/download/$latestVersion/krew.exe"
curl.exe -LO "https://github.com/kubernetes-sigs/krew/releases/download/$latestVersion/krew.exe.sha256"

Now validate that the downloaded version have the correct hash: $(Get-FileHash -Algorithm SHA256 .\krew.exe).Hash -eq $(Get-Content .\krew.exe.sha256)
Then continue with the install:
.\krew.exe install krew
rm krew.exe*
[Environment]::SetEnvironmentVariable("PATH", $Env:PATH + ";%USERPROFILE%\.krew\bin", [EnvironmentVariableTarget]::User)

Restart the shell/terminal and then install azad-proxy:
kubectl krew install azad-proxy


Bolt has stopped to update the editor

Describe the bug
I just spended a lot of tokens trying to make bolt return to update the code in editor but without success, I need help to give my chat back, to continue my project.
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-s4abk9
Steps to reproduce
I don´t know, he just started to send the code in the chat
Expected behavior
I expect the bolt send and update the code in the editor.
Screen Recording / Screenshot
No response
Platform

OS: [e.g. macOS, Windows, Linux]
Browser: [e.g. Chrome, Safari, Firefox]
Version: [e.g. 91.1]

Additional context
No response

Same issue, same day. It listed a number of files to generate, but stopped halfway through the first one. Every attempt to make it finish the files after a refresh (cause the chat also stops working) ended in a similar way, just a little further.


Refactor distance function to be more clear and ensure matched character sets get marked properly.

Refactor distance function to be more clear and ensure matched character
sets get marked properly.
Adding Unit Test to ensure string order test failure/pass
See: https://github.com/NaturalNode/natural/issues/302
fixes #302

David

This appears a failure on node 0.8 due to dependent packages. Might be an overall failure of the latest master branch.

David

thanks! sorry for the delay


Implement RetrievalQA with the LLM

Note: The OPENAI_CHAT_DEPLOYMENT environment variable should be compatible with chat completions while the OPENAI_DEPLOYMENT should be compatible with text embeddings.
My setup is:
OPENAI_DEPLOYMENT=text-embedding-ada-002
OPENAI_CHAT_DEPLOYMENT=gpt-35-turbo

Hello. The use of ChatOpenAI initializes but runs into an InvalidRequestError: The API deployment for this resource does not exist  when I was trying to generate output. I could not determine the solution but changing to AzureChatOpenAI worked. Since this is the only place that uses the LLM, it would not affect the code implementation too much.
I'll add a fix for the cached session history. Thanks

Hello. The use of ChatOpenAI initializes but runs into an InvalidRequestError: The API deployment for this resource does not exist when I was trying to generate output. I could not determine the solution but changing to AzureChatOpenAI worked. Since this is the only place that uses the LLM, it would not affect the code implementation too much.
I'll add a fix for the cached session history. Thanks

Check the version of openai and langchain you are using compared to what is in the requirements.txt. You shouldn't have any errors if they are the same. You are probably using a higher version.

Here's my current langchain version. It matches the one on requirements.txt

Here's the one I have for OpenAI, it currently matches. As a control test, is it possible to generate a response with the current LLM in place, to see if its a misstep from my end (if you have the time). Much appreciation

Hmm alright. Thank you very much
On Thu, 31 Oct 2024, 17:04 Samuel Bamgbola, @.***>
wrote:

[image: openai]
https://private-user-images.githubusercontent.com/59177747/381999396-1ad8ebaa-3352-4e06-9a8c-ac0dbf463132.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzAzOTA4OTMsIm5iZiI6MTczMDM5MDU5MywicGF0aCI6Ii81OTE3Nzc0Ny8zODE5OTkzOTYtMWFkOGViYWEtMzM1Mi00ZTA2LTlhOGMtYWMwZGJmNDYzMTMyLlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDMxVDE2MDMxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRmZGQ3MzNiMWYwNDM2YWQ3NjdlMjJjMjk0N2ZhNWVlZWRiNjI1MzI0ZGNjNjIwZjA0MzFkYzlkODgxYTNmZGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dylXrT_o6vTxVRYBaX3mVREHld5buVDbmHchIAdN_TM
Here's the one I have for OpenAI, it currently matches. As a control test,
is it possible to generate a response with the current LLM in place, to see
if its a misstep from my end (if you have the time). Much appreciation
Oh okay. I will try that. It's something that has been tested before
though. But I will run a sample again and update you.
—
Reply to this email directly, view it on GitHub
https://github.com/mlsanigeria/speak-to-docs/pull/43#issuecomment-2450255216,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AODPWEY4PWVRQOL2STWRMOTZ6JIJZAVCNFSM6AAAAABQ6BKON6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJQGI2TKMRRGY
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hmm alright. Thank you very much
…
On Thu, 31 Oct 2024, 17:04 Samuel Bamgbola, @.> wrote: [image: openai] https://private-user-images.githubusercontent.com/59177747/381999396-1ad8ebaa-3352-4e06-9a8c-ac0dbf463132.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzAzOTA4OTMsIm5iZiI6MTczMDM5MDU5MywicGF0aCI6Ii81OTE3Nzc0Ny8zODE5OTkzOTYtMWFkOGViYWEtMzM1Mi00ZTA2LTlhOGMtYWMwZGJmNDYzMTMyLlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDMxVDE2MDMxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRmZGQ3MzNiMWYwNDM2YWQ3NjdlMjJjMjk0N2ZhNWVlZWRiNjI1MzI0ZGNjNjIwZjA0MzFkYzlkODgxYTNmZGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dylXrT_o6vTxVRYBaX3mVREHld5buVDbmHchIAdN_TM Here's the one I have for OpenAI, it currently matches. As a control test, is it possible to generate a response with the current LLM in place, to see if its a misstep from my end (if you have the time). Much appreciation Oh okay. I will try that. It's something that has been tested before though. But I will run a sample again and update you. — Reply to this email directly, view it on GitHub <#43 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AODPWEY4PWVRQOL2STWRMOTZ6JIJZAVCNFSM6AAAAABQ6BKON6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJQGI2TKMRRGY . You are receiving this because you authored the thread.Message ID: @.>

It works fine.


Clean also inline assets folder

At the moment, the folder with the inline assets doesn't get cleaned up.

Solved with 5.1.5


Fix builds for pythonPackages.azure-mgmt-*

Don't merge until nixops is updated!
EDIT Nixops has received a package-private, pinned version of azure-mgmt-*, so this can be merged at leisure
Motivation for this change
Followup to the reverts in https://github.com/NixOS/nixpkgs/issues/52547
Revert the reverted updates and apply some build fixes on top
With this, nixops still fails, because it can't work with these versions, so this will need to wait until nixops is updated:
Traceback (most recent call last):
  File "/nix/store/jsnrx8ggppa9q7iiry88s763y0p2qhb5-nixops-1.6.1pre2706_d5ad09c/bin/..nixops-wrapped-wrapped", line 5, in <module>
    from nixops import deployment
  File "/nix/store/jsnrx8ggppa9q7iiry88s763y0p2qhb5-nixops-1.6.1pre2706_d5ad09c/lib/python2.7/site-packages/nixops/deployment.py", line 1275, in <module>
    _load_modules_from("backends")
  File "/nix/store/jsnrx8ggppa9q7iiry88s763y0p2qhb5-nixops-1.6.1pre2706_d5ad09c/lib/python2.7/site-packages/nixops/deployment.py", line 1273, in _load_modules_from
    importlib.import_module("nixops." + dir + "." + module[:-3])
  File "/nix/store/w30zkhdjf6qp4ppx9xzffsh9dic31aq8-python-2.7.15/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/nix/store/jsnrx8ggppa9q7iiry88s763y0p2qhb5-nixops-1.6.1pre2706_d5ad09c/lib/python2.7/site-packages/nixops/backends/azure_vm.py", line 23, in <module>
    from nixops.azure_common import ResourceDefinition, ResourceState, ResId, normalize_location
  File "/nix/store/jsnrx8ggppa9q7iiry88s763y0p2qhb5-nixops-1.6.1pre2706_d5ad09c/lib/python2.7/site-packages/nixops/azure_common.py", line 19, in <module>
    from azure.mgmt.network import NetworkResourceProviderClient
ImportError: cannot import name NetworkResourceProviderClient

cc @olcai @FRidh

btw, if you want to reproduce the error, please do so with nixopsUnstable. nixops still fails for a different reason https://github.com/NixOS/nixops/pull/1050

these libraries have been updated in 3a49f9825af 2eb9ded8865 808e5d95b74 9f97782601c 7f80b2fda56
I'll pin the older versions in the nixops package, so that work on https://github.com/NixOS/nixops/issues/1065 can progress independently.

It seems, the azure-mgmt-* builds are still failing: https://hydra.nixos.org/build/89652010 https://hydra.nixos.org/build/89671586
Haven't tested the fixes in this PR with the newer version, but should basically work ...

This build failure was ported to stable: https://github.com/NixOS/nixpkgs/pull/55757

https://hydra.nixos.org/eval/1508454?filter=azure-mgmt&compare=1508182&full=#tabs-still-fail
cc https://github.com/NixOS/nixpkgs/issues/56826

@bendlas this doesn't apply anymore, could you rebase?
What else is preventing this from being merged?
Does nixops work with the updated packages, or do we need to keep the private ones?

this doesn't apply anymore, could you rebase?

Can do. AFAICT, we don't have any consumers, other than nixops, though.

Does nixops work with the updated packages, or do we need to keep the private ones?

Unfortunately, https://github.com/NixOS/nixops/issues/1065 needs to be resolved first.

Ran 0 tests in 0.000s

Please add appropriate checkPhases.


GroupBy of stacked dim with strings renames underlying dims

Names for dimensions are lost (renamed) when they are stacked and grouped, if one of the dimensions has string coordinates.
data = np.zeros((2,1,1))
dims = ['c', 'y', 'x']

d1 = xr.DataArray(data, dims=dims)
g1 = d1.stack(f=['c', 'x']).groupby('f').first()
print('Expected dim names:')
print(g1.coords)
print()

d2 = xr.DataArray(data, dims=dims, coords={'c': ['R', 'G']})
g2 = d2.stack(f=['c', 'x']).groupby('f').first()
print('Unexpected dim names:')
print(g2.coords)

Output
It is expected the 'f_level_0' and 'f_level_1' be 'c' and 'x', respectively in the second part below.
  Expected behavior?  Bug?

Same or different problem as https://github.com/pydata/xarray/issues/1483?

Here's a quick and dirty workaround that works at least for my use case.  arr_orig is the original DataArray from which arr_unstacked_bad was generated via a stack/groupby/apply/unstack chain yielding the _level_0 etc. dims, with the stack call having been arr_orig.stack(**{dim_of_stack: dims_stacked}). Likely excessively convoluted and YMMV.
def fix_unstacked_dims(arr_unstacked_bad, arr_orig, dim_of_stack, dims_stacked):
    """Workaround for xarray bug involving stacking str-based coords.

    C.f. https://github.com/pydata/xarray/issues/3287

    """
    dims_not_stacked = [dim for dim in arr_orig.dims if dim not in dims_stacked]
    stacked_dims_after_unstack = [dim for dim in arr_unstacked_bad.dims
                                  if dim not in dims_not_stacked]
    dims_mapping = {d1: d2 for d1, d2 in zip(stacked_dims_after_unstack, dims_stacked)}
    arr_unstacked_bad = arr_unstacked_bad.rename(dims_mapping)

    arr_out = arr_orig.copy(deep=True)
    arr_out.values = arr_unstacked_bad.transpose(*arr_orig.dims).values
    return arr_out.assign_coords(arr_orig.coords)

This does look weird. A PR would be great.

Notice that the string coordinate also gets reordered alphabetically: in @chrisroat 's example above, the coord goes from ['R', 'G'] to ['G', 'R'].
@max-sixty I can't promise a PR anytime soon, but if/when I do manage, where would be a good starting point?  Perhaps here where the "level" names are introduced: https://github.com/pydata/xarray/blob/009aa66620b3437cf0de675013fa7d1ff231963c/xarray/core/dataset.py#L251-L256

Re the reordering; that's the case, though it does reorder the dimension, not just the coord (i.e. it's still correctly aligned). Slight change to the original example to demonstrate.
In [18]: data = np.arange(2).reshape((2,1,1))
    ...: dims = ['c', 'y', 'x']
    ...:
    ...: d1 = xr.DataArray(data, dims=dims)
    ...: g1 = d1.stack(f=['c', 'x']).groupby('f').first()
    ...: print('Expected dim names:')
    ...: print(g1.coords)
    ...: print()
    ...:
    ...: d2 = xr.DataArray(data, dims=dims, coords={'c': ['R', 'G']})
    ...: g2 = d2.stack(f=['c', 'x']).groupby('f').first()
    ...: print('Unexpected dim names:')
    ...: print(g2.coords)
Expected dim names:
Coordinates:
  * f        (f) MultiIndex
  - c        (f) int64 0 1
  - x        (f) int64 0 0

Unexpected dim names:
Coordinates:
  * f          (f) MultiIndex
  - f_level_0  (f) object 'G' 'R'
  - f_level_1  (f) int64 0 0

In [19]: d2
Out[19]:
<xarray.DataArray (c: 2, y: 1, x: 1)>
array([[[0]],

       [[1]]])
Coordinates:
  * c        (c) <U1 'R' 'G'
Dimensions without coordinates: y, x

In [20]: g2
Out[20]:
<xarray.DataArray (y: 1, f: 2)>
array([[1, 0]])
Coordinates:
  * f          (f) MultiIndex
  - f_level_0  (f) object 'G' 'R'
  - f_level_1  (f) int64 0 0
Dimensions without coordinates: y

Yes that second reference looks like the place @spencerahill!

Thanks @max-sixty.  Contrary to my warning about not doing a PR, I couldn't help myself and dug in a bit.  It turns out that string coordinates aren't the problem, it's when the coordinate isn't in sorted order.  For example, @chrisroat's original example doesn't error if the coordinate is ["G", "R"] instead of ["R", "G"].  A more concrete WIP test:
def test_stack_groupby_unsorted_coord():
    data = [[0, 1], [2, 3]]
    data_flat = [0, 1, 2, 3]
    dims = ["y", "x"]
    y_vals = [2, 3]

    # "y" coord is in sorted order, and everything works
    arr = xr.DataArray(data, dims=dims, coords={"y": y_vals})
    actual1 = arr.stack(z=["y", "x"]).groupby("z").first()
    midx = pd.MultiIndex.from_product([[2, 3], [0, 1]], names=dims)
    expected1 = xr.DataArray(data_flat, dims=["z"], coords={"z": midx})
    xr.testing.assert_equal(actual1, expected1)

    # Now "y" coord is NOT in sorted order, and the bug appears
    arr = xr.DataArray(data, dims=dims, coords={"y": y_vals[::-1]})
    actual2 = arr.stack(z=["y", "x"]).groupby("z").first()
    midx = pd.MultiIndex.from_product([[3, 2], [0, 1]], names=dims)
    expected2 = xr.DataArray(data_flat, dims=["z"], coords={"z": midx})
    xr.testing.assert_equal(actual2, expected2)

test_stack_groupby_str_coords()

yields
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)

[...]

AssertionError: Left and right DataArray objects are not equal

Differing values:
L
    array([2, 3, 0, 1])
R
    array([0, 1, 2, 3])
Differing coordinates:
L * z        (z) MultiIndex
  - z_leve...(z) int64 2 2 3 3
  - z_leve...(z) int64 0 1 0 1
R * z        (z) MultiIndex
  - y        (z) int64 3 3 2 2
  - x        (z) int64 0 1 0 1

I'll return to this tomorrow, in the meantime if this triggers any thoughts about the best path forward, that would be much appreciated!


remove NAPI_EXPERIMENTAL

As discussed in #380 , I believe the NAPI_EXPERIMENTAL flag is causing build issues on supported node versions for this package.
I've looked through the git blame, and it appears that NAPI_EXPERIMENTAL was added a number of years ago for BigInt support. BigInt support was added to node in version 10, and this package says it supports 12, 14, 16 and 18.
So I think it's safe to remove NAPI_EXPERIMENTAL which will fix some failures on node version 18.20+ and other things.
Fixes #380

Hi @acheronfail ,
Thanks for the PR! You are correct that NAPI_EXPERIMENTAL was added as a define when BigInt wasn't part of the main Node-API spec.
I am a little confused as to why NAPI_EXPERIMENTAL is causing an issue though. What I suspect is there is an interplay between the version of the node-addon-api package, the NAPI build version, and the version of Node.js. Can you try the following for me?

Update the version of node-addon-api to ^8.0.0 in the package.json. Currently it is some ancient version of the package, and I suspect it doesnt have the right napi-inl.h file for the right version of Node.js
In the napi_versions array at the bottom of the package.json, update the array to only include 8, 9. I think those versions should encapsulate all currently supported versions of Node.js: https://nodejs.org/api/n-api.html#node-api-version-matrix

If you make those changes, redownload the dependencies, and then rerun the build, does that fix the issue?

With this as the diff:
diff --git a/package.json b/package.json
index 2a6374a..359f6d1 100644
--- a/package.json
+++ b/package.json
@@ -41,7 +41,7 @@
   "dependencies": {
     "@mapbox/node-pre-gyp": "^1.0.5",
     "async": "^3.0.1",
-    "node-addon-api": "^3.0.2"
+    "node-addon-api": "^8.0.0"
   },
   "gypfile": true,
   "devDependencies": {
@@ -57,10 +57,8 @@
     "host": "https://github.com/markdirish/node-odbc/releases/download/v{version}",
     "package_name": "{name}-v{version}-{platform}-{arch}-napi-v{napi_build_version}.tar.gz",
     "napi_versions": [
-      3,
-      4,
-      5,
-      6
+      8,
+      9
     ]
   }
 }

I get this error:
/Users/acheronfail/src/node-odbc/node_modules/node-addon-api/napi-inl.h:68:12: error: no matching function for call to 'napi_add_finalizer'
  status = napi_add_finalizer(env, obj, data, finalizer, hint, nullptr);
           ^~~~~~~~~~~~~~~~~~
/Users/acheronfail/src/node-odbc/node_modules/node-addon-api/napi-inl.h:2379:29: note: in instantiation of function template specialization 'Napi::details::AttachData<Napi::details::CallbackData<Napi::Value (*)(const Napi::CallbackInfo &), Napi::Value>, &Napi::details::default_finalizer>' requested here
    status = Napi::details::AttachData(env, *result, data);
                            ^
/Users/acheronfail/src/node-odbc/node_modules/node-addon-api/napi-inl.h:2436:7: note: in instantiation of function template specialization 'Napi::CreateFunction<Napi::details::CallbackData<Napi::Value (*)(const Napi::CallbackInfo &), Napi::Value>>' requested here
      CreateFunction(env, utf8name, CbData::Wrapper, callbackData, &value);
      ^
../src/odbc.cpp:148:42: note: in instantiation of function template specialization 'Napi::Function::New<Napi::Value (*)(const Napi::CallbackInfo &)>' requested here
  exports.Set("connect", Napi::Function::New(env, ODBC::Connect));
                                         ^
/Users/acheronfail/Library/Caches/node-gyp/18.20.2/include/node/js_native_api.h:513:1: note: candidate function not viable: no known conversion from 'void (*)(napi_env, void *, void *)' (aka 'void (*)(napi_env__ *, void *, void *)') to 'node_api_nogc_finalize' (aka 'void (*)(const napi_env__ *, void *, void *)') for 4th argument
napi_add_finalizer(napi_env env,
^
1 warning and 1 error generated.

It's a slightly different type error, but still to do with napi_add_finalizer...

Great work, @acheronfail !
Any ETA on when this will be merged?


SPARK-16920: Add a stress test for evaluateEachIteration for 2000 trees

What changes were proposed in this pull request?
Just adding a test to prove error by tree is working for 2000 trees, the fix of SPARK-15858
before it was failing to do the calculation after long time
How was this patch tested?
Just run the test

Test build #71003 has started for PR 16495 at commit d3e2dad.

Test build #71003 has finished for PR 16495 at commit d3e2dad.

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

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

Merged build finished. Test PASSed.

The key point @vlad17 made was that an operation which should be O(N) is taking O(N^2) in the current implementation.  Let's fix that, regardless of whether or not we add a stress test.
Also, we can't add such a long test for this.  Unit tests should take seconds at most, and ideally sub-second times.  Offline stress testing is great, though.
Thanks!

Yes, sorry for my wording. A unit test is indeed an inappropriate place for stress tests. An offline test would be sufficient to verify that an O(N) implementation is an improvement over the O(N^2) one. Ideally the stress test would be neatly described in the PR message so that anyone could replicate, perhaps even linking to a gist with the script to run it.

@mhmoudr Will you be able to update this?

Sure .. I am, but just a bit busy nowadays, in general I am planing to investigate the additional complexity issue, and as for the test I agree with the fact that the test should not be added to unit test as far as there is a specific agreed manner for adding stress tests, also to add, in term of the test itself, I would say it will be a wast of time to train the model  every time we need to test this area, so I was thinking of train a model once and save it to resources, then once I need to test the evaluateEachIteration it will be much faster to lead the pre saved model from resources and run the test directly, thoughts?
for the time being I will close the pull request and once I have the change ready I will create a new one.
Mahmoud

To traing a (one-off) model a keep it in resources, then load it to run the test.
investigate the added comlexity issue.
To move the test away from unit tests
Provide instructions on how to run the stress test

Thanks @mhmoudr
As far as the stress test, I'd recommend posting instructions as a Github gist and linking it to wherever you post results on JIRA or a PR.  We wouldn't want to add a model (a binary file) to git unless absolutely necessary.
When we address the complexity issue, we can post stress test results and the link to the gist.


Accessibility Check

Page title: Add the word portfolio to the page title to extend the description.
Image text alternatives ("alt text") (pictures, illustrations, charts, etc.): No issues found
Headings: No issues found
Contrast ratio ("color contrast"): add a border to the form button when clicked to make it more distinguishable.
Resize Text: No issues found
Keyboard access and visual focus: No issues found
Forms, labels, and errors (including Search fields): Add the interactions in the labels.
Moving, Flashing, or Blinking Content: No issues found
Multimedia (video, audio) alternatives: No issues found
Basic Structure Check: No issues found

Hi Arturo, great job!!
I see that the changes we agreed to make are already made, and everything is ok.
Thanks.


[Katana] Allow choosing the class in the genesis file without affecting the actual class hash

Description

Add a name field in GenesisClassJson that allows class identification by a unique name rather than by hash in Katana
Related issue

Fixes #<#1502>
Tests

[x] Yes
[ ] No, because they aren't needed
[ ] No, because I need help

Added to documentation?

[ ] README.md
[x] Dojo Book
[ ] No documentation needed

Checklist

[X ] I've formatted my code (scripts/prettier.sh, scripts/rust_fmt.sh, scripts/cairo_fmt.sh)
[X ] I've linted my code (scripts/clippy.sh, scripts/docs.sh)
[X ] I've commented my code
[X ] I've requested a review after addressing the comments

i've also took the liberty to add some changes in https://github.com/dojoengine/dojo/pull/1975/commits/8403a27f12041728b27559d097a2b34c5031ed8a . basically adding a custom deserializer for the NameOrHash enum.
because both are parsed as string in the JSON format, we need to do distinguish between when user set an actual class hash (with 0x prefix) or a name.


add further atlases or keep it lightweight? [enhancement]

From the documentation I understand that the Desikan-Killiany atlas is included to provide an example of how to use the toolbox and that's it's comparable easy to use any atlas one might want. However, it might be a nice feature if some well-known and heavily used parcellations would already be included. Depending on your thoughts and how you want the toolbox structure and size to be, I would be happy to help out (e.g. including some atlases I already have in ALPACA). To keep it lightweight, nilearn's fetch.datasets functions could be used to get the atlas files, while the respective csv could be included in the toolbox.

Hey @PeerHerholz! Thanks so much for reaching out with the suggestion. :slightly_smiling_face:
This is something that I've been thinking about for various projects since it came up in miykael/atlasreader#4, and I unfortunately I have yet to settle on a good solution. I'd love to be able to use the atlas fetchers in nilearn, but unfortunately the metadata provided with the atlases aren't consistent enough to rely on. It would be great if something like HAWG could be adopted to standardize the metadata, but we're not there yet.
So my question in response to your question is: how would you decide which atlases to include? I have trouble settling on a relatively concise list, myself, and really only included the DK atlas because it's convenient (low resolution = quick to test!). I would be alright including a small list (maybe <5 atlases) I think, but worry that this is something that could quickly balloon out of proportion... Let me know your thoughts!

As @PeerHerholz sais, the question is lightweight or not. A nilearn fetch_ approach is probably possible, the metadata are not too chaotic and I'm sure that a PR to nilearn could take care of any issues.
But as I mention here (https://github.com/miykael/atlasreader/pull/60#issuecomment-424442889), I see some other issues with using nilearns fetch_ approach. The main one is the problem of file size. nilearn is prone to download much more than you need. But also this could perhaps been taken care of with a PR to nilearn.

@illdopejake is currently working to standardize nilearn fetchers, which might help here !

I'm going to close this since I think at the current juncture including atlases is outside the scope of abagen. Will maybe revisit at a later point but the plan is to stick to just processing and workflows, with the DK atlas included purely for example purposes.


TeX "\newcommand" doesn't cause re-render in time

// Add the newcommand here

aaa

### Title

bbb

ccc

$ \A $

Add $ \newcommand{A}{AAAAA} $ to the first line, then the last line won't be re-rendered.
It seems that StackEdit only renders some lines before and after the updated line, so other equations stays the same. Are there any way to know 'they should be re-rendered'?

Closing this. Please open a new ticket if the problem still exists in the v5 (https://stackedit.io/app).

But how can I enable math equations in v5?

Please have a look at the markdown cheat sheet in the menu.


handle_unknown event publishing policy wrt presence_changed

#53 refers to a presence_change event, which I'm interested in tracking, as well.
Is there a reason that this block couldn't publish the event anyway?  If no handler is subscribed to the event, isn't it close to a no-op?
Might there be a preference for, say, adding handle_presence_change to this block?

I'd be happy to have any types of events trigger a custom Lita event that handlers could subscribe to. A PR doing this would gladly be accepted.


Deprecated guide on how to use managed identity

This page has not been marked as deprecated or updated according to the latest standards.
The referred code samples and docs are updated:
https://docs.microsoft.com/en-us/dotnet/api/overview/azure/service-to-service-authentication
https://github.com/Azure-Samples/app-service-msi-keyvault-dotnet/tree/master/WebAppKeyVault
But the main section is not:
https://docs.microsoft.com/en-us/azure/app-service/overview-managed-identity?tabs=dotnet#asal

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: f57d3177-ce9e-ebfa-03a7-45beb8ca3212
Version Independent ID: a59df23d-f3ac-9809-61d3-5741e31f020a
Content: Managed identities - Azure App Service
Content Source: articles/app-service/overview-managed-identity.md
Service: app-service
GitHub Login: @mattchenderson
Microsoft Alias: mahender

@Cnordbo , We have assigned this to the content owner/author for review.

Updated per https://github.com/MicrosoftDocs/azure-docs-pr/pull/186513. #please-close


Add escaping special characters & tests

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Error handling when internet access is disabled

Describe the bug

Screen froze on "Requesting credential..." loading screen (iOS)

To Reproduce
Steps to reproduce the behavior:

Click "Add VC" and enter valid UIN/VID
Click “Generate VC” – should display screen to enter verification code
Deactivate internet access
Enter correct verification code
See Error

Release Build
iOS build: Version 0.4.0 (1.0.0)
Android build: 0.4.0-beta.1

Tested on:
QA4 - 0.4.0 (10.5) -iOS
QA4_io.mosip.residentapp-0.4.0-rc5-dirty-newlogic_20221012_0759.apk]
Resident app build version:
v0.4.0 (10.5) - iOS
v0.4.0 RC5
MOSIP server: QA4
Devices:
Samsung Galaxy A23
iPhone 11
WORKS AS EXPECTED FOR BOTH ANDROID AND iOS
@pmigueld @kyanthony @danicaerediano


Traces can have configurable sampling

This issue created a new problem where the traceID is not getting initialized, when tracer configs are not provided the global tracer becomes noop tracer

@vipul-rawat should we create a new issue for the same and track it there

Sure! we can and then link it to this, will close this one!


The tab name displayed in the Entity Configuration does not update after navigating from one location to another

The tab name fails to update dynamically as you navigate between different sections or pages within the application after accessing the Entity Configuration tab
Steps to reproduce the behavior:

Go to 'https://function-adminportal-test.shesha.dev/settings/entity-configs/configurator'
Check the tab name
Navigate to any form afterwards
Check the tab name
Actual Results: The tab name cached the entity configuration
Refresh
Actual Results: The tab name is updated and if you refresh, it does update the tab name to function

Expected behavior
The tab name should not cache the entity configuration tab name. For confistency, let's check how the other tabs display

Example

Related Item

#839


[Question] How to acheive something similar to those designs

Hi thanks for this awesome package,
i used it in one of my apps, and i'm ready to use it again but i couldn't found the key to acheive thise styles with
here's the styles i need
Style 1

Style 2

both styles make the selected item in the center each time i scroll or focus on an item it should be in the center,
can anyone guide me from where i should start or of course a simple example of how to acheive those styles with this package or using a native React-Native code.
thanks in advance.

Sorry, please allow me to advertise for my open source library! ~
I think this library react-native-reanimated-carousel will solve your problem. It is a high performance and very simple component, complete with React-Native reanimated 2


Ignite boilerplate with ReactNavigation Example?

Hello,
I'm having a hard time figuring out how to implement the navigationBar, which I believe is included in the main boilerplate, yes?
If so, could someone leave an example of how to implement this in an ignite app? The instructions at https://reactnavigation.org/docs/intro/ don't seem to apply.

Stay tunned here -> https://github.com/infinitered/ignite/issues/1135 !
I'm doing this boilerplate, hopefully fully featured during next week (I'm leaving in week end in few hours) !
It's an ignite App "stacks in tabs", everything is in the readme

Turns out I was editing another app's navigator 😅
But totally looking forward to that boilerplate!

Ooh 😀 I've done that before. Glad you figured it out!


Have one place to install workflow and refer it instead of duplicating

@mboersma @vdice or @kmala do you remember why we opened this ticket (i.e. where in the docs is the duplicate information)?

https://github.com/deis/workflow/blob/master/src/quickstart/provider/aws/install-aws.md
https://github.com/deis/workflow/blob/master/src/quickstart/provider/gke/install-gke.md
https://github.com/deis/workflow/blob/master/src/quickstart/provider/vagrant/install-vagrant.md
https://github.com/deis/workflow/blob/master/src/quickstart/provider/azure-acs/install-azure-acs.md
All these say almost the same info and steps.

I thought the idea was to reduce the amount of copy-and-pasted content between the several "Quick Start" installation paths. sphinx had an include directive, but mkdocs doesn't, so that would either require some trickery or rearrangement of content into general and specific installation paths with links to each other (which I think we should avoid--it wasn't user-friendly in Deis v1 when we had that).

Maybe there is a Markdown pre-proceesor or mkdocs extension that allows for include-type blocks? In Deis v1 we had directives like this throughout the install docs to keep things DRY:
.. include:: ../_includes/_generate-discovery-url.rst
If there's no such mechanism, I think we should close this issue and live with the duplication. Users really did not appreciate being told "go here for general DNS setup instructions, then return to this AWS-specific guide," and that seems like the only other solution.

@mboersma thanks for researching; I'll take a look as well.
I definitely agree if there isn't such an include solution we should stick w/ the duplication.

https://pypi.python.org/pypi/markdown-include exists and can be installed as an extension of mkdocs. I can tackle this.


Rust: Prototype of generic HttpFgbReader

Right now the Flatgeobuf crates has a synchronous FgbReader and an async HttpFgbReader. But the HttpFgbReader is not generic. It requires an underlying reqwest::Client. It would be great to allow this underlying backend to be generic.
The motivation for this is to connect Flatgeobuf to the object-store crate, which abstracts among various object storage providers including S3, GCS, Azure, etc. In https://github.com/geoarrow/geoarrow-rs/pull/494 I have an example of connecting object-store to http_range_client::AsyncHttpRangeClient (https://github.com/geoarrow/geoarrow-rs/pull/494/files#diff-4bc105a5ea08ab4e7e6d0bea2453dcd5e3a7c89d531019042abfeeca30b4b83c), but I can't construct a FlatGeobuf::HttpFgbReader that's generic over that backend.

Hi @kylebarron - is there a reason that this is opened as a draft? What further changes are you intending to make?

Hi @kylebarron - is there a reason that this is opened as a draft? What further changes are you intending to make?

Mostly just that it was a proposal and I hadn't opened an issue previously to discuss it, and I wasn't sure if people were interested in such a change.

Can I do something to help move this PR forward? Anything blocking merge?


The certificate chain was issued by an authority that is not trusted

Background
Our database is hosted on Amazon RDS which provides SSL server certificates whose root CA is not in the Trusted Root Certification Authorities in the OS by default.  This creates an issue when attempting to negotiate client side encryption when connecting to SQL Server.
Based on this AWS article, I understood that if encryption is forced at the server level, then client certificate negotiation is not required. This has been the current approach for our Database and has been working for years using System.Sql.Client.  Even though encryption is not specified in the client connection string, all connections are encrypted. This is verifiable using a query on SQL server which shows us that all connections are encrypted.
Current issue
While upgrading our application from Net Core 3.1 to Net 6.0, we updated our code to use Microsoft.Data.SQLClient instead of using System.Data.SqlClient. I understand that there is a breaking change in Microsoft.Data.SQLClient that sets the Encrypt property in the SQL connection string to true by default. Since we force encryption at the server as stated in the previous paragraph, we set Encrypt to false in the connection string. However, we are running into the error below.
"Microsoft.Data.SqlClient.SqlException: 'A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)'"
Adding the AWS certificates to the Trusted Root Certification Authorities for all users is not trivial, will be difficult to maintain, requires admin access on client computers to install, and is therefore an undesirable path forward.
Setting TrustServerCertificate=True works but we do not want to do this as this leaves the server in an insecure state.
During our research into the issue, we found a new connection string property in Microsoft.Data.SQLClient called ServerCertificate at this link.
We tried to use this property by downloading the certificate from Amazon, and setting the value of ServerCertificate to the path of the amazon certificate on local directory. It did not work and yielded the following error message:
Microsoft.Data.SqlClient.SqlException: 'A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate is not valid for the requested usage.)'
At this point, we are reaching out to the community to see if anyone has any ideas on how to connect to SQL Server using Microsoft.Data.SQLClient using encryption, but without having to install certificates on the client machine.
Using ServerCertificate property seemed like a good workaround, but we were not able to get this working for us.

@rajibsm thanks for the detailed explanation. What platform is your application running on (Windows, Linux, ...)?

@JRahnama The application is running on Windows.

Adding the AWS certificates to the Trusted Root Certification Authorities for all users is not trivial, will be difficult to maintain, requires admin access on client computers to install, and is therefore an undesirable path forward.

Installing the root certificates in the current user's Trusted Root Certification Authorities store on Windows does not require admin access. (This is the route we're going for our end users' laptops; we're only installing in the machine store on servers, where we have admin access already.)

Setting TrustServerCertificate=True works but we do not want to do this as this leaves the server in an insecure state.

It's the same state you were in before the upgrade.

@rajibsm
What you're referring to was added to MDS in v2.0 as a breaking change, so this is by-design:
https://learn.microsoft.com/en-us/sql/connect/ado-net/introduction-microsoft-data-sqlclient-namespace?view=sql-server-ver16#breaking-changes-in-20
"The driver will now perform Server Certificate validation when the target SQL Server enforces TLS encryption, which is the default for Azure connections."

Setting TrustServerCertificate=True works but we do not want to do this as this leaves the server in an insecure state.

I'm not sure I understand server implications, maybe could you elaborate? As trusting server certificate is a client side setting, as it was done by default with forced server encryption until this change.

There seems to be confusion here on the behavior of SqlClient before the changes in MDS 2.0.
In all versions of System.Data.SqlClient and MDS versions before 2.0, when Encrypt=false (the default), server certificates were never validated by the client, regardless of the TrustServerCertificate setting. (Validation ensures the certificate chain is trusted and valid and that the server name being connected to matches the name in the certificate.) When encryption is enforced from the server side, yes, encryption is negotiated but the client never validates the server certificate. While this should protect the connection from simple observers, it does not prevent MITM attacks where a middle man may present the client with its own certificate (or even tell the client it doesn't need to encrypt) and proxy the encrypted connection to the server. As HamsterExAstris said, "[Setting TrustServerCertificate=True is] the same state you were in before the upgrade."
The above is why we've been adjusting default behavior, breaking backwards compatibility. Most people aren't security experts and don't understand the security implications of maintaining the status quo. In order to truly secure your environment, you must enforce encryption from the client side and used validated server certificates (either via a public trust chain or a private, manual one).


Mouse control

Good day to you!
Got a little bit confused, is keyd capable of controlling mouse?
I can see messages in commits and in issues, but still can't find a way to keybind mouse movement
Thank you!

At the moment keyd does not allow you to control your mouse from your keyboard. It should be fairly trivial to add this, and it is on the roadmap. You may want to check out https://github.com/rvaiya/warpd in the meantime.
The mouse functionality you are seeing concerns coordinating mouse button presses with key presses (e.g clearing oneshot modifiers on button presses).

got it.
Thank you!


Lacking "Testing" documentation

How to properly test rubykassa scenarios without involving robocassa backend?

@Fedcomp maybe you have to use WebMocks? https://github.com/bblimke/webmock


⚠ GazelleGames has degraded performance

In 89b216f, GazelleGames ($GGN) experienced degraded performance:

HTTP code: 200
Response time: 1750 ms

Resolved: GazelleGames performance has improved in 9ee1e82.


[Private Ci] Use UTF-8 locale

Currently, our private CI images are using a C locale. Switch to a UTF-8 locale, which is what the Azure Pipelines runner seems to expect (it injects for example environment variables with UTF-8 encoded values). (And it's the only sane thing to do anyways.)

I updated the container image for private CI to use a UTF-8 locale. Let's see if that solves the problem for https://github.com/lowRISC/opentitan/pull/2275 once rebased.

#2275 shows the private CI system is now able to speak UTF-8. In 2020! Unbelievable.


CI/CD - release to LCS and deployment

Thanks for this document. It's a good start. Maybe you should consider to change or remove the first image as does not contain the same tasks as in the other images for the pipline, shown in this documentation.
One thing I find really missing is a another document for the "Release" part of the CI/CD that describes the upload of the artifacts to LCS and deployment to different environments and how to handle LCS 300 MB limitation and reduce the size for RSCU before deployment in a automatic way (see "Deploy the deployable packes" documentation.
A simple "Release" to Dev, with approvers to release to Test, as an example, should be enough.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: cd465bf3-be18-a1ac-76d1-23dc8ff06ea4
Version Independent ID: f8c4ea31-1332-763b-ab5e-d5e7197f8a5f
Content: Set up Commerce SDK build pipeline - Commerce | Dynamics 365
Content Source: articles/commerce/dev-itpro/retail-sdk/SDK-build-pipeline.md
Service: dynamics-365-commerce
Product: ****
Technology: ****
GitHub Login: @mugunthanm
Microsoft Alias: mumani

@Halldor10, thanks for the feedback.
@mugunthanm, please review.

Thanks for the feedback, removed the image for now.
300 MB was a recent bug in the product which increased the package size, hotfix released to fix that issue.
Soon we will update this document with the release pipeline to LCS.


Allow template variables for swagger-ui to be passed via options to app

Allow the template variables for swagger-ui index.j2 to be set via app options.
This allow for setting e.g. the clientId and other oauth config like so:
options = {
    "swagger_ui_template_variables": {
        "initOAuth": {
            "clientId": "00000000-1111-2222-3333-444444444444",
            "usePkceWithAuthorizationCodeGrant": True,
        }
    },
}
app = connexion.FlaskApp(options=options)

This was necessary specifically for me to be able to pass "usePkceWithAuthorizationCodeGrant": True to swagger-ui to enable oauth autorization code flow with PKCE.

Thx for the PR @rasmuspeders1, but this is a duplicate of #1179.

I also need to set usePkceWithAuthorizationCodeGrant to True to use Oauth2 with Azure AD however I do not see how #1179 allows me to do that.  Can you demonstrate how I can set that to true?


Request for controlling synthetic submit button insert mode

Rationale: when bottom margin resets rely on :last-child { margin-bottom: 0; }, the synthetic submit button causes a margin to appear on form submission.
It could be as easy as:
// Control the synthetic submit button's insert mode, either appendTo or prependTo
submitButtonInsertMode: 'appendTo',

// Add submit button's data
if (this._$submitSource) {
  $('<input class="parsley_synthetic_submit_button" type="hidden">').attr('name', this._$submitSource.attr('name')).attr('value', this._$submitSource.attr('value'))[this.options.submitButtonInsertMode](this.$element);
}

Maybe a decent solution would be to have a new setting for the class of parsley_synthetic_submit_button (I should have used hyphens, btw) and change the default behavior this way:

find existing input using that class.
if it doesn't exist and we need one, create it.
set the disabled attribute, name and value  correctly.

This way, you could pre-populate your forms with that input and place it wherever you want, or wrap it in a display:none div, etc...
Does that sound ok?
If so, care to provide a PR for this?

PS: Sorry for the delay...

Pushed those changes to master.
Moreover, no longer using synthetic-submit thingy unless it's needed (i.e. unless using remote/promise validations).
Hope that this is good enough for you purposes.


Added MalShare searching

Added search functionality to link in MalShare.com

@silascutler ping. If you authorize it in github, I can make the changes in your repository and merge it.

Added.  Thanks

@silascutler I changed what I wanted, Thank you for the PR!


Reproduce applied econometrics textbook examples in notebooks

Motivation:

uncovers potentially needed functionality
makes sure that pyfixest actually runs for "real world" problems and not simply my synthetic test datasets

Textbooks with code:

the effect  (data in the causaldata package)
the mixtape (data also included in the causaldata package)
Data Analysis Business & Econ (github repo)

HI!
This might be useful https://github.com/pachadotdev/tradepolicy. There I reproduced all the results from "An Advanced Guide to Trade Policy Analysis" in base R and then I did the same with fixest. The results are the same as the Stata version.

Super cool, thanks for the pointer!


Support a convention for specifying more paths to toolchain binaries

Currently cargo supports setting linker and ar in a config file, which is useful but is not always sufficient for cross-compiling crates that build native libraries.
While cross-compiling Servo I found that I had to specify quite a few extra tools to get everything to compile:
https://gist.github.com/luser/a33e5070d1c55a7d2c46fe763a9d1543#file-servo-cross-mac-L59
This was mostly because various crates used different build systems for building native libraries--autotools, cmake, etc. I think it'd be useful if the gcc crate supported a convention for specifying more tools in .cargo/config so that common crates for building native libraries (like cmake) could use that support to drive their builds.
Specifically, I think it would be useful if it allowed at least setting cc, cxx, ranlib, and exposed those values through its API.

Interestingly, AFAICT cargo does not expose the values of linker or ar from .cargo/config to build scripts even if they're set.

Yeah currently Cargo doesn't expose linker and/or ar to build scripts, but that probably wouldn't push this over the finish line either as you probably also want to at least read cxx (if not cc before linker). At the very least it'd be good to canonicalize this information all into one location, however, even if Cargo isn't passing the information.
It's probably worth at least doing some parsing of .cargo/config to learn information like this. I'd need to double check to ensure a build script can figure out what directory it was invoked from, however. I forget if that's passed through or not...

I'd need to double check to ensure a build script can figure out what directory it was invoked from

That depends on the user. I think you can specify the linker just by giving the name, in case it is in your environment PATH. Personally I don't have it in the path and just gave the full (absolute) location to the file, which would be enough to get the directory, as all the different tools can find in the same directory as the linker.
But even if the user doesn't give the full path, we should be able to get the directory of the executable on all development OS's, no? I know on Unix based systems it's possible with tools like whereis/which, and I suppose Windows has its own system call to get it as well.

I just noticed that gcc doesn't take advantage of the standard-ish TOOLCHAIN_PREFIX or CROSS_COMPILE environment variables in HOST != TARGET scenarios. Would you accept a change to use these when available?

@jdub certainly! I hadn't heard of those before but if they're commonly in use I'd love to have support for them.

I might stick to CROSS_COMPILE for now, as it's unclear if TOOLPREFIX and TOOLCHAIN_PREFIX are sufficiently standard-ish. CROSS_COMPILE appears in Linux, musl, etc. as the binary name plus a hyphen, such that you can use it and get a valid binary name even if it's not set, e.g.
CC := $(CCACHE) $(CROSS_COMPILE)gcc
CXX := $(CCACHE) $(CROSS_COMPILE)g++
AR := $(CROSS_COMPILE)ar

Ok sounds good to me!

It looks like cargo will pass the environment variable TARGET to build scripts
https://doc.rust-lang.org/cargo/reference/environment-variables.html
Also of note are HOST and NUM_JOBS

And also RUSTC_LINKER, which does what it says

Could we also have TARGET_LD and LD distinguished?
I'm cross-compiling from one x86_64-unknown-linux-gnu to a different x86_64-unknown-linux-gnu
TARGET_CC and CC might work for compiling, to distinguish between build scripts and the cross-compiled binaries/libs, but the same linker is being used to build the build scripts as is being used to link the cross-compiled binaries, and so the build scripts won't run.
I've had to set this script as my: --config target.$(RUST_TARGET).linker=\"linker-hack\" in order to call the right linker, depending on what is being linked
#! /bin/bash
grep -q 'build_script_main\|build_script_build' <<<"$*" && exec gcc "$@" || exec ${TARGET_CC:-${CC}} "$@"

I'm cross-compiling from one x86_64-unknown-linux-gnu to a different x86_64-unknown-linux-gnu

Can you expound on how the two targets differ? Also: I don't think this is the right place to ask this question. This is about the cc crate, but it sounds like your issue is with cargo itself choosing the right linker. You may be interested in one or both of these cargo issues that I filed a while back:
https://github.com/rust-lang/cargo/issues/5754
https://github.com/rust-lang/cargo/issues/5755

Can you expound on how the two targets differ?

Different compilers, different libc, and ultimately to run against a different kernel. target binaries fail to run in the host environment due to linker problems.
Those tickets you referred to also seem relevant, I'm not sure which (or both?) would need adjusting.

I think that these reports all cover my use case thoroughly:

https://github.com/rust-embedded/meta-rust-bin/issues/97
https://github.com/rust-lang/cargo/issues/8147
https://github.com/rust-lang/cargo/issues/5754
https://github.com/rust-lang/cargo/issues/5755

TARGET_CC and CC might work for compiling, to distinguish between build scripts and the cross-compiled binaries/libs, but the same linker is being used to build the build scripts as is being used to link the cross-compiled binaries, and so the build scripts won't run.

Maybe the target-applies-to-host and/or host-config feature is what is needed here?
You should be able to override the host linker explicitly when using stable toolchains by setting this in your env:
__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly"
CARGO_UNSTABLE_TARGET_APPLIES_TO_HOST="true"
CARGO_TARGET_APPLIES_TO_HOST="false"
CARGO_UNSTABLE_HOST_CONFIG="true"
CARGO_HOST_LINKER="host-gcc"

Setting CARGO_UNSTABLE_HOST_CONFIG with the explicit CARGO_HOST_LINKER might not actually be needed as cargo should by default use the normal host linker as long as the __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS, CARGO_UNSTABLE_TARGET_APPLIES_TO_HOST and CARGO_TARGET_APPLIES_TO_HOST are set as in my example

Maybe the target-applies-to-host and/or host-config feature is what is needed here?

Thank you so much @jameshilliard, these touch the point so well, particularly host-config, and the tip to also apply to current stable is very gratefully received.
I am surprised that these don't both have the same value, is that a mistake? :
CARGO_UNSTABLE_TARGET_APPLIES_TO_HOST="true"
CARGO_TARGET_APPLIES_TO_HOST="false"

If I set the env as described, do I override the host linker explicitly by setting HOST_LD or HOST_CC, or by using a host.* section in config.toml as explained in host-config ?

I am surprised that these don't both have the same value, is that a mistake? :

Should be correct, see:
CARGO_UNSTABLE_TARGET_APPLIES_TO_HOST="true"
CARGO_TARGET_APPLIES_TO_HOST="false"
For stable, if I set the env as described, do I override the host linker explicitly by setting HOST_LD or HOST_CC, or by using a host.* section in config.toml as explained in host-config ?
You can set this if you need a specific host linker:
CARGO_UNSTABLE_HOST_CONFIG="true"
CARGO_HOST_LINKER="host-gcc"


Remove 'support.google.com' references from documentation.

Only half of the pages with references to 'support.google.com' are updated in this push.  The rest will be written up in a new bug.

Fixes #148.

Sure, but I don't know the opengee.org or github wiki well enough yet to
know what these values should be.
There are 5 references to google on this webpage(6004748.html), three of
which are the same.
Any recommendations will be appreciated.
Thanks,
Eric.
On Mon, Jun 19, 2017 at 11:21 AM, Lee Savoie<EMAIL_ADDRESS>wrote:

@tst-lsavoie requested changes on this pull request.
In earth_enterprise/docs/landing_page/manual/answer/6004748.html
https://github.com/google/earthenterprise/pull/249#discussion_r122784612
:

@@ -286,7 +286,7 @@

Localize international URL for support answers

-https://support.google.com/earth/#topic=4363013
There are other configuration values on this page that point to google.com
domains (like www.google.com and earth.google.com). Can we change those
to reference opengee.org or something on the github wiki?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/google/earthenterprise/pull/249#pullrequestreview-44929984,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AaxYdJr9kULy0n6kVh74_2EUo7fB-J3oks5sFrwmgaJpZM4N-fHe
.

Since there's not a good way to fix 6004748.html and it's a fairly minor part of the documentation, we decided to leave it as is and fix it on a future issue.


The photo(e.g. .eddx format to jpeg/png) converted to pdf is obscure when enlarge the pdf

Configuration:

Web browser and its version: edge 109.0.1518.55 and chrome 110.0.5481.105
Operating system and its version: windows10
PDF.js version: 3.4.120
Is a browser extension: no

Steps to reproduce the problem:

as for the complexed eddx file which size is large and figure is also large（e.g. UML and font with color, pattern and so on）converted to pdf，embeding the pdf to html：
Check the rendering effect on the browser and enlarge the pdf by 50%, 100% and 150%. The result is that the pdf is very blurred and can't be seen clearly

What is the expected behavior? (add screenshot)
having the effect like that The browser's own pdf plugin effect， can be clearly displayed when zoomed in

The Attach (recommended) or Link to PDF file here:-part of the issue template is always required in order for any issue to be actionable/valid.


feature: pandoc raw_tex and raw_attribute support

Did you check the tree-sitter docs?

[X] I have read all the tree-sitter docs if it relates to using the parser

Is your feature request related to a problem? Please describe.
Pandoc has a few handy extensions, that allow embedding raw content in the output document. It would be nice to support these for e.g. highlighting.

Raw attributes

Inline spans and fenced code blocks with a special kind of attribute will be parsed as raw content with the designated format. ...

```{=latex}
\begin{tabular}{|l|l|}\hline
Age & Frequency \\ \hline
18--25  & 15 \\
26--35  & 33 \\
36--45  & 22 \\ \hline
\end{tabular}
```

Raw TeX

... pandoc allows raw LaTeX, TeX, and ConTeXt to be included in a document. Inline TeX commands will be preserved and passed unchanged to the LaTeX and ConTeXt writers. ...

\cite{jones.1967}
\begin{tabular}{|l|l|}\hline
Age & Frequency \\ \hline
18--25  & 15 \\
26--35  & 33 \\
36--45  & 22 \\ \hline
\end{tabular}

Describe the solution you'd like

Language injection for fenced blocks with raw attributes, just like with regular fenced code blocks
TeX injection for LaTeX environments (\begin{}-\end{} blocks); I'm not sure if supporting other *TeX commands would be feasible.

Describe alternatives you've considered
No response
Additional context
https://pandoc.org/MANUAL.html#extension-raw_attribute
https://pandoc.org/MANUAL.html#extension-raw_tex

Feature 1 should be quite doable, it would just imply improving the rules for parsing the language here:
https://github.com/tree-sitter-grammars/tree-sitter-markdown/blob/7fe453beacecf02c86f7736439f238f5bb8b5c9b/tree-sitter-markdown/grammar.js#L186-L196
I personally will probably have no capacity to work on this though.
Feature 2 would be quite hard, since it both is hard to detect (one would need to know if there is an end block before it is clear whether something is latex) and collides with other grammar rules.

Feature 1 already works, though, by virtue of injections? You just have to use proper language annotations:
```latex
\begin{tabular}{|l|l|}\hline
Age & Frequency \\ \hline
18--25  & 15 \\
26--35  & 33 \\
36--45  & 22 \\ \hline
\end{tabular}
```

your example would be pasted as a (visible) code block, and the one with {=latex} would be inserted in the actual latex output as latex code, or rendered, in case the output format is e.g. pdf, in this case as a table

That's completely out of scope for a Markdown tree-sitter parser, sorry.


TypeScript doesn't correctly infer union types as React/JSX properties

Hey,
typescript version: 2.5.3
My problem is really close to this issue's, although the main problem of it was fixed:
https://github.com/Microsoft/TypeScript/issues/10171
so I take this issue's example:
type TextProps = { editable: false }
               | { editable: true, onEdit: (newText: string) => void }

class TextComponent extends React.Component<TextProps, {}> {
    render() {
        return Some Text..;
    }
}

I can't use the props in JSX, while it works with directly using React.createElement:
const textProps: TextProps = {
    editable: true as true,  // Whoops, why not literal type?
    onEdit: () => {}
} as any;

<TextComponent {...textProps} /> // fails
React.createElement(Button, textProps) // works

// or
function id(t: TextProps): TextProps { return t; }
const textProps2: TextProps = id(textProps);

<TextComponent {...textProps2} />, // fails
React.createElement(Button, textProps2) // works

Any clue why or how to fix/workaround that?
Thanks

Duplicate of https://github.com/Microsoft/TypeScript/issues/18670


InfluxDb support

Are there any plans to support metrics databases such as this one ?
https://github.com/influxdata/influxdb

I'm not familiar with this one.
But there is Infiniflux jdbc driver in default DBeaver config. Isn't it the same?

No, its not the same.
InfluxDb, is one of the most popular metric databases currently in use and it uses form of SQL to query metric data.

+1

+1

+1

+1

+1

Indeed.
In the meantime, if you are on windows, I created this tool to help:
https://github.com/majkinetor/psinflux

Unfortunately there is no JDBC or ODBC driver for InfluxDb. At least public.
But it has quite clear Java API so it is very possble to write DBeaver extension for it.
However it will take relatively much time (1-2 weeks of coding).
If somebody wants to participate in this and contribute some code (on Java) - please tell.

There is also REST interface that can be used, as I did above in Powershell.
This also seems legit: https://github.com/influxdata/influxdb-java

As a BigData database InfluxDB was implemented as a part of DBeaver EE and it will be released in DBeaver EE 5.2 (September, 2018).
Now, you can test it in the EA version: https://dbeaver.com/files/ea/


Submodules: relative paths converted to absolute paths

This fixes issues of relative paths when cloning a fork of proteus, as the submodules are not necessarily forked with it (and therefore won't be found at e.g. ../air-water-vv

I can't get on there and test, unfortunately.  You  don't have to do a build, though, just try to clone and run git submodule update --init --recursive. I tend to think we should just go ahead and merge this, however. It can be manually handled for the hpc build.

I gave the modifications a try on an HPC system, and git submodule update --init --recursive does work without issue.


Loading fonts from a CDN throws Unsupported MIME application/xml

Expected Behavior
Font will load correctly using Jimp.loadFont('url-to-font'). Specifically when that URL references a file that is on Google Cloud Storage / Firebase Storage.

Current Behavior
Application crashes throwing the error:
Error: Unsupported MIME type: application/xml
    at Jimp.throwError (/Users/jeroenc/dev/ribbon/node_modules/@jimp/utils/src/index.js:15:13)
    at Jimp.call (/Users/jeroenc/dev/ribbon/node_modules/@jimp/core/src/utils/image-bitmap.js:84:25)
    at Jimp.call [as parseBitmap] (/Users/jeroenc/dev/ribbon/node_modules/@jimp/core/src/index.js:395:17)
    at parseBitmap (/Users/jeroenc/dev/ribbon/node_modules/@jimp/core/src/index.js:339:14)
    at cb (/Users/jeroenc/dev/ribbon/node_modules/@jimp/core/src/index.js:68:14)
    at cb (/Users/jeroenc/dev/ribbon/node_modules/@jimp/core/src/request.js:47:9)
    at IncomingMessage.<anonymous> (/Users/jeroenc/dev/ribbon/node_modules/phin/lib/phin.compiled.js:1:2100)
    at IncomingMessage.emit (events.js:194:15)
    at IncomingMessage.EventEmitter.emit (domain.js:441:20)
    at endReadableNT (_stream_readable.js:1107:12)

Failure Information (for bugs)

Steps to Reproduce

Example code based on README for @jimp/plugin-print
import Jimp from 'jimp';

async function main() {
  const ASSET_BASE_PATH = 'https://storage.googleapis.com/data-sunlight-146313.appspot.com';
  const font = await Jimp.loadFont(`${ASSET_BASE_PATH}/ribbon/fonts/roboto-large.fnt`);
  const image = await Jimp.read(1000, 1000, 0x0000ffff);

  image.print(font, 10, 10, 'Hello World!');
}

main();

The fnt file references this image as its file: https://storage.googleapis.com/data-sunlight-146313.appspot.com/ribbon/fonts/roboto-large.png
The fnt file can be downloaded by going to: https://storage.googleapis.com/data-sunlight-146313.appspot.com/ribbon/fonts/roboto-large.fnt
Context

Jimp Version: 0.6.0
Operating System: MacOS Mojave
Node version: 11.4.0

Note that the code was run in a TypeScript based project, however this should hardly matter in the grand scheme of things.
Failure Logs
See above

Commenting to check if this is still going to be looked into. It's been a long while since the label was assigned.
Would give it a shot myself but despite my JS knowledge I just cannot wrap my head around the font loading code :\

I'll try to take a look this week! Being the only maintainer on this project is lonely 😢

Haven't really looked into this since the last bump but I assume it hasn't been resolved so bumping it again

Hello, I was trying to import a custom font when it gave me this same problem, after a while trying I got it solved by removing this line from the beginning of it:

I tried with your source and the problem seems to be the same...
I hope this helps you to solve it...


Add files via upload

羽小翟

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Map incorrectly sizing when StatusBar.overlaysWebView == false

I'm submitting a ...  (check one with "x")
[ ] question
[x] any problem or bug report
[ ] feature request
The plugin version:  (check one with "x")
[ ] 1.4.x
[x] 2.0.0-beta3
(multiple maps branch)
If you choose 'problem or bug report', please select OS:  (check one with "x")
[ ] Android
[x] iOS
cordova information:  (run $> cordova plugin list)
com.googlemaps.ios 2.3.0 "Google Maps SDK for iOS"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.7 "Console"
cordova-plugin-device 1.1.6 "Device"
cordova-plugin-dialogs 1.3.3 "Notification"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-firebase 0.1.23 "Google Firebase Plugin"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-googlemaps 2.0.0-beta3-20170828-2350 "cordova-plugin-googlemaps"
cordova-plugin-network-information 1.3.3 "Network Information"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-plugin-x-socialsharing 5.1.8 "SocialSharing"
cordova-sqlite-storage 2.0.4 "Cordova sqlite storage plugin"
es6-promise-plugin 4.1.0 "Promise"

Current behavior:
When StatusBar.overlaysWebView(false); is called, the map resizes itself incorrectly. It seemingly moves up 20px or so.
Expected behavior:
The map should resize as a normal element would, rather than moving up 20px or so.
Steps to reproduce:
Repo that reproduces the issue.
On a blank cordova project, adding a map and using the StatusBar cordova plugin to change the status bar overlay is all that it takes. Please run repo locally to see it in action.
Screen capture or video record:

Related code, data or error log (please format your code or data):
No errors are thrown, and the only code that I use to actually trigger the behavior is
StatusBar.overlaysWebView(false);

Please create a demo project and share it on github.

Does it have to be github? I've already created a demo project, I linked to it under "Steps to reproduce" and it is on bitbucket.

Ah, you already shared. Thank you. I will check it later.

Awesome, thank you so much for your time!
On Tue, Aug 29, 2017 at 3:29 PM Masashi Katsumata<EMAIL_ADDRESS>wrote:

Ah, you already shared. Thank you. I will check it later.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1688#issuecomment-325823065,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMv37SVRvNQ6kmsGGGWwzXK7CMbeEq70ks5sdJDSgaJpZM4PGlcN
.

Check here.
https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/242

Unfortunately that doesn't solve the issue. I've updated my demo repo with the solution proposed in issue #242, and the same error still happens.

It seems the status bar plugin changes the frame size.
https://github.com/apache/cordova-plugin-statusbar/blob/master/src/ios/CDVStatusBar.m#L476

I confirmed the maps plugin does not do anything at all.

If it helps anyone else who comes across this in the future, I solved my issue by manually applying a 20px top padding to the page and kept the status bar overlapping the webview.


IE "Could not complete the operation due to error 800a025e."

Getting this error in IE 11.0.22 at line 460 of the unminified JS file. It occurs in this code:
    if (anode && anode.parentNode && fnode && fnode.parentNode) {
        r.setStart(anode, aoffset);
        r.setEnd(fnode, foffset);
        s.removeAllRanges(); //<=== IE error here
        s.addRange(r);
      }

This seems to be a known problem in IE. The suggested fix as described here is to test that a range exists before attempting to remove. I changed the above code as follows and no longer get this error:
    if (anode && anode.parentNode && fnode && fnode.parentNode) {
        r.setStart(anode, aoffset);
        r.setEnd(fnode, foffset);
        if (s.getRangeAt(0).getClientRects.length > 0) { // Avoid IE error 800a025e
            s.removeAllRanges();
        }
        s.addRange(r);
      }

The "suggested fix" from the referenced page is not an accepted fix, probably because it doesn't work. Another approach is likely needed.

Hi,
I came up with a functioning workaround. You can read the details in my post on stackoverflow for details: https://stackoverflow.com/a/37580789


So it would be nice to have at least a running minimal configuration.
Unfortunately every time i flashed the basic XM530 images the device comes up nicely but
after a minute it automatically reboots!
Is there a build in tamper prevention in form of some secret values in the registers ?
Or any idea what could be the cause?
Btw. the first very helpful links in the https://github.com/OpenIPC/camerasrnd/[README.md are pointing to the wrong locations and are dead. Unfortunately i cannot change it.
Best regards

Some logdata & pictures of the hardware:

XM530_Boot_OpenIPC.txt
XM530_Boot_StockFirmare.txt

This is some heavily modded firmware. First try flashing it to SPI, following the manual. Running from RAM assumes some deep knowledge of internals and i think it just wont work on xm530 due to extreme lack of free RAM

Thanks for the hint! Make sense, but the SPI instructions are missing from the automatically generated instructions and are hidden deep in the old wiki help. Unfortunately (as always) after an hour setting up and playing around with u-boot I accidentally erased some part of the u-boot bootloader and bricked the devices.
Since i am not in the mood to de-solder the chip and potential hard brick the device in the case of destroyed solder pads on the PCB i searched for a better non-invasive de-bricking method. I found a Boot ROM uploader option if i short a pin and set the uart baudrate to 57600: ROM START! Now the chip accepts something via the serial console. But i don´t know the right format. I tried different encodings (base64, srecord, asc) for the orginal u-boot.bin file in the hope the chip will run the provided ASCII encoded binary. - Any idea what could be the right format or what kind of data the BootRom waits for? An Image file or just the orginal Uboot.bin ? As least the ROM code checks the input and comments on wrong non ASCII input stream:  CMD CKECK ERROR! - Do you have per accident a dump of the chip internal BootROM ?

Theres a windows app for that.
pctools.tar.gz

Unfortunately the provided 560 Bytes archive contains only a 181 Bytes large mostly unreadable readme.txt.
Could you please upload a valid archive? Would be nice to get the right file encoding...
Thank you!

pctools.tar.gz

Hi! I'm facing something similar on xm530. Not at 1 minute, but when running ipctool or trying to access a video stream.
The original bootargs where set the mem=40M.
The recommended bootarg of openipc for this platoform is 35M.
UPDATE: After bumping it to 40MB now I can run ipctool without reboots.
What are the rest of the 64MB used for?
root@openipc-xm530:~# ipctool
The ipctool installed as remote GitHub plugin
---
chip:
  vendor: Xiongmai
  model: XM530
board:
  vendor: Xiongmai
ethernet:
  mac: "30:ff:f6:8a:a0:54"
rom:
  - type: nor
    block: 64K
    partitions:
      - name: boot
        size: 0x40000
        sha1: c3cc8dc8
        contains:
          - name: xmcrypto
            offset: 0x2fc00
          - name: uboot-env
            offset: 0x30000
      - name: env
        size: 0x10000
        sha1: d8812e1d
      - name: kernel
        size: 0x200000
        sha1: 4c5214ec
      - name: rootfs
        size: 0x500000
        path: /,squashfs
        sha1: 75397723
      - name: rootfs_data
        size: 0xb0000
        path: /overlay,jffs2,rw
    size: 8M
ram:
  total: 64M
  media: 24M
firmware:
  kernel: "3.10.103+ (SMP Mon Apr 24 18:18:51 UTC 2023)"
  toolchain: gcc version 8.4.0 (Buildroot -gff5aa3b6-dirty)
  main-app: /usr/bin/majestic
sensors:
- vendor: SmartSens
  model: SC2235E
  control:
    bus: 0
    type: i2c
    addr: 0x60

I rised the mem to 44MB and there are no more reboots. Seems I could lower it to 42MB as there are 2M free.
top:
Mem: 38696K used, 2320K free, 264K shrd, 1376K buff, 4424K cached

free:
root@openipc-xm530:~# free
              total        used        free      shared  buff/cache   available
Mem:          41016       33224        1388           0        6404           0
-/+ buffers/cache:        33224        7792
Swap:             0           0           0

What are the rest of the 64MB used for?

ram:
total: 64M
media: 24M

This is like iGPU used DRAM on laptops, RPi, etc allocating it for video buffers

Thanks for the clarification Dmitry, kudos for the titanic project.
At 44MB seems stable now. I've found that what creates reboots are UART disconnections. I will create a new issue to avoid polluting this one.

I found a Boot ROM uploader option if i short a pin and set the uart baudrate to 57600: ROM START!

Hi @jokolaco ! I have also ruined my bootloader. Could you explain what pin are you shorting to enter this mode?

I finally had to unsolder the flash, it didn't work doing it in place. I improved an existing tool to flash with ESP32

Sorry for the delay.
For me to desolder the SPI chip was also the only solution.
The chinese tool provided from dimerr not worked for me.
I tried different windows versions and uart adapters but the program always freeze.
A simple linux command line solution would be nicer but since we don´t know the exact encoding not a feasable option.
I reflashed the SPI chip with the latest flashrom version and a SPI capable arm board.
I also resocket the chip. Now i can play with uboot without worries. The bootloader is fine but it would be nice to have an open solution, so everything could be flashed with the right parameters in one run. I i found the time i will try it but i think i need the dts or devicetree for u-boot compiling.
Any idea where i can find the devicetree ?


Fixes issue 20

It appears that when the server is under extreme IO load there is a race condition where the process doesn't get started, this causes a panic: runtime error: invalid memory address or nil pointer dereference which terminates the process/service.

Stress tested against a 1 core VM with 4GB RAM and 4GB Swap running 8 checks via monitoring-agent;
with these 2 commands maxing the machine out:
stress --vm 25
fio --name TEST --eta-newline=5s --filename=temp.file --rw=read --size=15g --io_size=15g --blocksize=1024k --ioengine=libaio --fsync=100000 --iodepth=32 --direct=1 --numjobs=32 --time_based --runtime=86400 --group_reporting

Previously this would crash out, with this fix in; it does not


Failed to connect to ordermgr endpoint

Hi,
I encountered the following error, after the services have been successfully deployed and  I started try out the services:
zji@~/opentracing-prometheus-example/simple> curl http://<IP_ADDRESS>:30772/buy
curl: (7) Failed to connect to <IP_ADDRESS> port 30772: Connection refused
I deployed the 2 services on minikube:
zji@~/opentracing-prometheus-example/simple> kubectl get pod
NAME                                 READY     STATUS    RESTARTS   AGE
accountmgr-59fd8dc6c8-frsq4          1/1       Running   2          18m
accountmgr-59fd8dc6c8-h7rdw          1/1       Running   1          18m
accountmgr-59fd8dc6c8-zkqnp          1/1       Running   1          18m
jaeger-deployment-84c69bc88d-l9s8h   1/1       Running   0          20m
ordermgr-7998c8794c-78csd            1/1       Running   1          18m
ordermgr-7998c8794c-f2gql            1/1       Running   1          18m
ordermgr-7998c8794c-zvdbw            1/1       Running   1          18m
prometheus-865564b8f5-5c6b4          1/1       Running   0          21m
zji@~/opentracing-prometheus-example/simple> kubectl get svc
NAME               TYPE           CLUSTER-IP       EXTERNAL-IP   PORT(S)                        AGE
accountmgr         LoadBalancer   <IP_ADDRESS>   <pending>     8080:30515/TCP                 18m
jaeger-agent       ClusterIP      None             <none>        5775/UDP,6831/UDP,6832/UDP     21m
jaeger-collector   ClusterIP      <IP_ADDRESS>     <none>        14267/TCP,14268/TCP,9411/TCP   21m
jaeger-query       LoadBalancer   <IP_ADDRESS>   <pending>     80:32428/TCP                   21m
kubernetes         ClusterIP      <IP_ADDRESS>        <none>        443/TCP                        25m
ordermgr           LoadBalancer   <IP_ADDRESS>      <pending>     8080:30772/TCP                 18m
prometheus         LoadBalancer   <IP_ADDRESS>   <pending>     9090:30900/TCP                 22m
zipkin             ClusterIP      None             <none>        9411/TCP                       21m
zji@~/opentracing-prometheus-example/simple> minikube service ordermgr --url
http://<IP_ADDRESS>:30772

Also noticed Jaeger is going up and down:
zji@~/opentracing-prometheus-example/simple> kubectl get pods
NAME                                 READY     STATUS    RESTARTS   AGE
accountmgr-59fd8dc6c8-frsq4          1/1       Running   3          40m
accountmgr-59fd8dc6c8-h7rdw          1/1       Running   3          40m
accountmgr-59fd8dc6c8-zkqnp          1/1       Running   3          40m
jaeger-deployment-84c69bc88d-l9s8h   0/1       Running   0          42m
ordermgr-7998c8794c-78csd            1/1       Running   1          40m
ordermgr-7998c8794c-f2gql            1/1       Running   2          40m
ordermgr-7998c8794c-zvdbw            1/1       Running   4          40m
prometheus-865564b8f5-5c6b4          1/1       Running   0          43m
zji@~/opentracing-prometheus-example/simple> kubectl describe pod jaeger-deployment-84c69bc88d-l9s8h
Name:           jaeger-deployment-84c69bc88d-l9s8h
Namespace:      default
Node:           minikube/<IP_ADDRESS>
Start Time:     Tue, 06 Feb 2018 10:33:28 -0800
Labels:         app=jaeger
                jaeger-infra=jaeger-pod
                pod-template-hash=4072567448
Annotations:    kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicaSet","namespace":"default","name":"jaeger-deployment-84c69bc88d","uid":"3953422a-0b6c-11e8-8238-080...
Status:         Running
IP:             <IP_ADDRESS>
Controlled By:  ReplicaSet/jaeger-deployment-84c69bc88d
Containers:
  jaeger:
    Container ID:   docker://195994efcf29127298a85b60f4e5375a912a1fdb92b8991f74f0f7018c7e8e18
    Image:          jaegertracing/all-in-one
    Image ID:       docker-pullable://jaegertracing/all-in-one@sha256:38a827ec75750e31af32d129686676e065b496a90264c953b423c60ebec26a4e
    Ports:          5775/UDP, 6831/UDP, 6832/UDP, 16686/TCP, 9411/TCP
    State:          Running
      Started:      Tue, 06 Feb 2018 10:33:32 -0800
    Ready:          False
    Restart Count:  0
    Readiness:      http-get http://:16686/ delay=5s timeout=1s period=10s #success=1 #failure=3
    Environment:
      COLLECTOR_ZIPKIN_HTTP_PORT:  9411
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-rv2pb (ro)
Conditions:
  Type           Status
  Initialized    True
  Ready          False
  PodScheduled   True
Volumes:
  default-token-rv2pb:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  default-token-rv2pb
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     <none>
Events:
  Type     Reason                 Age                From               Message
  ----     ------                 ----               ----               -------
  Normal   Scheduled              38m                default-scheduler  Successfully assigned jaeger-deployment-84c69bc88d-l9s8h to minikube
  Normal   SuccessfulMountVolume  38m                kubelet, minikube  MountVolume.SetUp succeeded for volume "default-token-rv2pb"
  Normal   Pulling                38m                kubelet, minikube  pulling image "jaegertracing/all-in-one"
  Normal   Pulled                 38m                kubelet, minikube  Successfully pulled image "jaegertracing/all-in-one"
  Normal   Created                38m                kubelet, minikube  Created container
  Normal   Started                38m                kubelet, minikube  Started container
  Warning  Unhealthy              32m (x9 over 35m)  kubelet, minikube  Readiness probe failed: Get http://<IP_ADDRESS>:16686/: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
  Normal   SuccessfulMountVolume  31m                kubelet, minikube  MountVolume.SetUp succeeded for volume "default-token-rv2pb"
  Normal   SuccessfulMountVolume  27m                kubelet, minikube  MountVolume.SetUp succeeded for volume "default-token-rv2pb"
  Normal   SuccessfulMountVolume  21m                kubelet, minikube  MountVolume.SetUp succeeded for volume "default-token-rv2pb"
  Normal   SuccessfulMountVolume  13m                kubelet, minikube  MountVolume.SetUp succeeded for volume "default-token-rv2pb"
  Normal   SuccessfulMountVolume  9m                 kubelet, minikube  MountVolume.SetUp succeeded for volume "default-token-rv2pb"
  Normal   SuccessfulMountVolume  4m                 kubelet, minikube  MountVolume.SetUp succeeded for volume "default-token-rv2pb"

Any help is appreciated.
thanks
-Eric

Hi Eric
The example services don't have readiness probes, so you may need to wait before the endpoint is actually available. If you could try the service after say 10 or 20 seconds and let me know if you still fail to connect.
Haven't seen the restarts - what versions of minikube and kubenetes client/server are you using?

Thanks @objectiser
The problem is not about waiting, and the Jaeger pod just went up and down continuously.
attached below please find the version information:

minikube  version
minikube version: v0.24.1
kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.1", GitCommit:"3a1c9449a956b6026f075fa3134ff92f7d55f812", GitTreeState:"clean", BuildDate:"2018-01-04T19:59:01Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.0", GitCommit:"0b9efaeb34a2fc51ff8e4d34ad9bc6375459c4a4", GitTreeState:"clean", BuildDate:"2017-11-29T22:43:34Z", GoVersion:"go1.9.1", Compiler:"gc", Platform:"linux/amd64"}

For the jaeger problem, could you create an issue on https://github.com/jaegertracing/jaeger-kubernetes providing any details you have.


Consider a "back" button for small (phone) screens

The specific issue arises from a small screen (such as an iPhone 11) and the layout of Frigate inside of HA.
A typical journey is to start on the Cameras page, and then look at the events for the camera.  On a larger screen, it is clear you have moved to the Events page; however, the context is harder to notice on the small screen (even though admittedly it says "EVENTS" in big letters at the top :-) ).
What I find myself doing is  clicking on the events of a camera, and wanting to go back to the overview (Cameras) page.  I do not find it easy to go to the Events page and then switch to selecting the camera from a pull-down.  I appreciate all the flexibility the event filters give me, but it may be too flexible for most users, most of the time.
Suggestion is to at least add a "back" button near the Frigate hamburger menu.  I believe that would smooth a large number of user journeys even if "back" was just at the top level (no need for a complete back stack).
Thanks for considering.

a few things to point out:

the frigate logo at the top already takes you back to the main page
on iPhones for example you can always swipe from the left side to go back
if you use the slide out menu, the frigate logo there also already acts as a link back to the main page

All of these things are true, and fine for the experienced user.  The members of my family who I want to use this are used to things like a back button, which I think is a good affordance.

This issue is filed in the wrong repo. As this is a Frigate backend request, and not related to the HA integration, please file a feature request over there if you want to discuss further.


[Easy] validation & errors

validation in the empty input
theme button console message clear
after gating error on city name it's not working correctly and getting any output

Please assign this to me, Thank You.

Go ahead! Contribute well🚀


Update docs, release previews, etc.

In-repo help:

[x] Timer management (removed timer management for #28)
[x] Update app-store screenshots to match #28

Done as part of the new interface update.


makefile: removed duplicated targets from Makefile

About this change: What it does, why it matters
Removing copyright and coverage because both targets are specified twice in Makefile.

Lint fixes available here : Lint fixes are here https://github.com/aiven/myhoard/pull/53


2023.6.1b0 KeyError: 'enable_camera'

Got this in my logs when i updated to 2023.6.1b0:
2023-06-20 14:24:33.600 ERROR (MainThread) [homeassistant.config_entries] Error migrating entry husqvarna_automower for husqvarna_automower
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 632, in async_migrate
    result = await component.async_migrate_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/husqvarna_automower/__init__.py", line 171, in async_migrate_entry
    new_options.pop(opt_key)
KeyError: 'enable_camera'

@prairiesnpr nope this is on my test instance where i haven't enabled the camera feature 😄

Thanks, in our testing it didn't show up, I'll make sure we catch it, should be able to get a PR in tonight. Still seems odd, would've expected it to be present in the options.


"SyntaxError: Can't build lexer" on Ubuntu 23.04

I am getting the following error when trying to compile gem5 on Ubuntu 23.04 with scons 4.0.1:
ERROR:fm_proj_ply:/home/alexander/Desktop/junkyard/ramreuse/dev/gem5/build/X86/arch/arm/fastmodel/SConscript:220: Invalid regular expression for rule 't_STRLIT'. global flags not at the start of the expression at position 13 SyntaxError: Can't build lexer
I've been able to build gem5 in the gem5 Ubuntu 22.04 Docker image but I'm not sure why I'm getting this error when compiling on my own machine. Thank you for the help.

What version of gem5 are you using? I believe that gem5 23.0 (released over the weekend) fixes this issue. Can you try pulling the stable branch and checking if this is still a problem?
Note: The underlying problem (I think) was with Python 3.11 and ply.

I'm pretty sure this bug is due to gem5 <v23 being incompative with Python 3.11. Given the lack of of response I'm closing this issue.
Those with this issue should obtain the latest version of gem5 (or at least >=v23).

Apologies for the late response, yes the latest release did fix my problem! Thank you for the help.