No CSV or HTML results generated

Hi,
Thanks for the great work! I used the "inference.py" file on a sample table images with the goal of obtaining the extracted cells in either csv or html format but none was generated. Please, what am I doing wrongly?

I might be wrong here but the table transformer doesn't do OCR.

I might be wrong here but the table transformer doesn't do OCR.

Have you checked the inference.py file provided? Specifically, the cells_to_csv and cells_to_html functions.

yes both functions don't have OCR on them.

A related question, how to get the bboxes for all the detected cells? It is in the return of self.det_model(), it seems in my examples, outputs['pred_boxes'].shape is always [1, 15, 4], why always 15?

https://colab.research.google.com/drive/1lLRyBr7WraGdUJm-urUm_utArw6SkoCJ?usp=sharing
Take a look at this

Table Transformer, doesn't perform OCR directly, they did mention to pass words_dir which is output of some OCR you used.
so the csv files I think should carry the bounding box and other factors   ORR  it might carry the OCR section (WORDS) found within the ROI when the tables are saved..

You can use Extractable to extract csv or xml from pdf-tables. It is built on top of Microsofts' TATR and is compatible with windows ubuntu and macOS

I ran in thinking it would be a good alternative to my implementation but sadly it's not that good.

@linkstatic12 what seemed to be the issue?

@SuleyNL , extractable is good and it does work to get table images. However, csv or xml returns bounding box values and not actual table values and labels.

@sharvaridhote Could you please share the code you ran that produces the problem? I cannot seem to recreate it using this;
import extractable as ex table_pdf_file = 'WNT1.pdf' empty_folder = 'WNT1xml' ex.extract(table_pdf_file, empty_folder, output_filetype=ex.Filetype.XML, mode=ex.Mode.PERFORMANCE)
Have you ran it in PRESENTATION-mode? perhaps it didnt recognize your table columns and rows?

Hi @SuleyNL,
Thank you for the reply.  I am trying to extract tables from this :https://www.imf.org/external/pubs/ft/ar/2022/downloads/2022-financial-statements.pdf
I have tried different modes and xml and csv format. I was expecting better formatted table output. It still does great job in locating tables. I can use output table images. It would be good to get features such as which page and how many tables, table location, bounding box and page number as an output.
Thanks

Here are some images of tables of which it detected structure in;

and here are some excel tables i managed to get extracted from it;

Unfortunately it is not perfect and requires some post-processing by the programmer such as in this case:

If you want to access a list of all tables and structures you can do so by accessing the return value from the extract() function:
dataobj = ex.extract(table_pdf_file, empty_folder, output_filetype=ex.Filetype.EXCEL, mode=ex.Mode.PERFORMANCE)
list_of_table_coords_and_page = dataobj.data['table_locations']

print(list_of_table_coords_and_page)

This will output a list containing for each detected table the x and y coordinates aswell as the page:
[{'x': 183, 'y': 280, 'page': 3}, {'x': 132, 'y': 395, 'page': 10}, {'x': 134, 'y': 375, 'page': 11}, {'x': 139, 'y': 432, 'page': 12}, {'x': 136, 'y': 463, 'page': 13}, {'x': 134, 'y': 1141, 'page': 16}, {'x': 881, 'y': 266, 'page': 16}, {'x': 153, 'y': 1783, 'page': 17}, {'x': 878, 'y': 706, 'page': 23}, {'x': 878, 'y': 1168, 'page': 23}, {'x': 886, 'y': 1502, 'page': 24}, {'x': 878, 'y': 834, 'page': 25}, {'x': 873, 'y': 424, 'page': 25}, {'x': 878, 'y': 845, 'page': 27}, {'x': 136, 'y': 371, 'page': 27}, {'x': 874, 'y': 348, 'page': 27}, {'x': 884, 'y': 301, 'page': 28}, {'x': 129, 'y': 939, 'page': 29}, {'x': 888, 'y': 1804, 'page': 29}, {'x': 886, 'y': 488, 'page': 30}, {'x': 890, 'y': 1182, 'page': 30}, {'x': 139, 'y': 546, 'page': 31}, {'x': 891, 'y': 428, 'page': 31}, {'x': 138, 'y': 854, 'page': 32}, {'x': 879, 'y': 796, 'page': 32}, {'x': 864, 'y': 389, 'page': 33}, {'x': 887, 'y': 1196, 'page': 34}, {'x': 875, 'y': 1454, 'page': 35}, {'x': 144, 'y': 1699, 'page': 35}, {'x': 137, 'y': 284, 'page': 35}, {'x': 142, 'y': 1535, 'page': 36}, {'x': 146, 'y': 1744, 'page': 38}, {'x': 884, 'y': 909, 'page': 39}, {'x': 871, 'y': 382, 'page': 39}, {'x': 134, 'y': 1685, 'page': 40}, {'x': 141, 'y': 868, 'page': 41}, {'x': 149, 'y': 399, 'page': 44}, {'x': 149, 'y': 356, 'page': 45}, {'x': 149, 'y': 370, 'page': 46}, {'x': 147, 'y': 378, 'page': 47}, {'x': 140, 'y': 410, 'page': 48}, {'x': 143, 'y': 395, 'page': 50}, {'x': 134, 'y': 402, 'page': 51}, {'x': 305, 'y': 1950, 'page': 54}
...
...
...}]

If you would like to see the confidence aswell, that possible as it is also logged by Extractable but it would be a bit more tricky to get. The confidence for each table is found in:  dataobj.data['TableDetectorTATR']['detection']
dataobj = ex.extract(table_pdf_file, empty_folder, output_filetype=ex.Filetype.EXCEL, mode=ex.Mode.PERFORMANCE)
list_of_logs_containing_confidence = dataobj.data['TableDetectorTATR']['detection']

print(list_of_logs_containing_confidence )

this would return:
['Detected table with confidence: 0.942 at location: [223.73, 320.86, 1570.85, 524.63]',
'Detected table with confidence: 0.998 at location: [172.82, 435.92, 1550.88, 1273.52]',
'Detected table with confidence: 0.999 at location: [174.49, 415.85, 1524.34, 1249.1]',
'Detected table with confidence: 0.997 at location: [179.45, 472.47, 1528.12, 750.77]',
'Detected table with confidence: 0.999 at location: [176.47, 503.17, 1544.16, 1798.65]',
'Detected table with confidence: 0.999 at location: [174.29, 1181.46, 814.84, 1379.8]',
'Detected table with confidence: 0.978 at location: [921.51, 306.78, 1423.8, 489.91]',
'Detected table with confidence: 0.919 at location: [193.14, 1823.28, 871.23, 2056.43]',
'Detected table with confidence: 0.903 at location: [918.15, 746.17, 1574.14, 965.21]',
'Detected table with confidence: 1.0 at location: [918.04, 1208.17, 1575.54, 1364.85]',
'Detected table with confidence: 0.976 at location: [926.71, 1542.82, 1515.95, 1871.22]',
...
...
... ]

these are the x, y, width and height values as provided by TATR, those are very tightly fitted to the table. I recommend adding 20px to all of the borders to get an adequate image of the full table.
If the column and row detection is not according to your wish you can also tune the sensitivity of the model by manually entering into the extractable/StructureDetector.py file and going to line 166 to 178. Here, extractable decides which columns and rows to keep and which to 'throw away' based on TATR's confidence.
if not (label == 1 and score <= .88) and \  #This means only keep columns when confidence is higher than 88%
not (label == 2 and score <= .64) and \     #This means only keep rows when confidence is higher than 64%

I understand that this is a temporary solution, I am working on allowing these values to be passed in as input variables in the extract() function so you dont need to get into the code to change them.
I hope you got some value out of it. If you have any feedback or suggestions regarding extractable, let me know!

I have provided the tokens as a list of dictionaries as suggested here:
https://github.com/microsoft/table-transformer/blob/main/docs/INFERENCE.md
However, it seems it is completely ignored.
I guess that the bounding boxes differ a bit, but still...

Hello everyone!
I have some unstructured tables which they confiuse LLM to extract correct values of tables. I was thinking to use this code to extract tables in CSV format and then I feed LLM. However @linkstatic12 said this code does not give OCR. What do you recommend me to extract correct table csv format?


Remove references to Ardent and Bouncy from newer install pages

Foxy page handled in https://github.com/ros2/ros2_documentation/pull/541

Considering that we don't have install instructions for Ardent or Bouncy any more, I think it's fine to remove the Ardent-specific info from the DDS-Implementations page (2448c7a).


python310Packages.twisted: 22.8.0 -> 22.10.0

What do we do about 22.05?
Description of changes
fixes CVE-2022-39348
https://github.com/twisted/twisted/releases/tag/twisted-22.10.0

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

cc @NixOS/nixos-release-managers

What do we do about 22.05?

Mangle the patches mentioned in the advisory.

So, this broke the build/tests on aarch64-darwin:

https://hydra.nixos.org/build/200269778
ofBorg attempt in 22.11 backport
https://logs.nix.ci/?key=nixos/nixpkgs.203401&attempt_id=a4a5e395-6893-4128-a822-b8c5e87c5458

(The other three platforms built OK on staging-next.)

This update broke buildbot.  https://hydra.nixos.org/build/200806424
/cc maintainers: @ryansydnor, @lopsided98.
Also in 22.11; it's not nice when security fixes bring incompatible changes (e.g. "deprecations and removals" in these release notes).


Link to terms leads to 404

When trying to register a new account on https://metriq.info/Register

Clicking the link to terms leads to a 404 page: https://metriq.info/MetriqTermsofUse.html

I found and fixed this on Wednesday, Will. You might be caching a redirect.
Have you tried hard-refreshing the page? (Ctrl+Shift+R)

@willzeng Nevermind. I was the one caching the page, not you. I had to test this in the production environment itself, so the fix is already up. I'm opening a PR, for Monday.

Great!
On Sun, Nov 28, 2021, 4:28 PM Daniel Strano @.***>
wrote:

@willzeng https://github.com/willzeng Nevermind. I was the one caching
the page, not you. I had to test this in the production environment itself,
so the fix is already up. I'm opening a PR, for Monday.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/unitaryfund/metriq-app/issues/345#issuecomment-981155284,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABHZDAWC4CKS72PU4S3BJWTUOKNGLANCNFSM5I5UMHGA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


[fix] bug on FixedOrMetricControl component causing issues with deck.gl polygon height + deck.gl scatter radius controls

CATEGORY
Choose one

[x] Bug Fix
[ ] Enhancement (new features, refinement)
[ ] Refactor
[ ] Add tests
[ ] Build / Development Environment
[ ] Documentation

SUMMARY

Fixes bugs causing FixedOrMetricControl to not render and then associated bugs in deck.gl polygon and deck.gl scatter causing map control functionality to break on input.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Slightly changed the UI of FixedOrMetricControl so it expands downward instead of as a pop-up as this was creating a double pop-up menu when Metric control was selected. See below for new UI:

TEST PLAN

Visual inspection
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

REVIEWERS

The master build was broken over the past few days because of travis changes, rebasing your PR should help.

Should be good to go

Grateful for all your PRs @thunter009 , keep 'em comin'!


Virtualize the Rendering of the Nodes

Is your feature request related to a problem? Please describe.
I'm currently using the react-dnd-treeview library in a project where I need to manage a large number of nodes within the tree. The issue arises when the number of nodes becomes large (thousands of nodes). The performance of the application degrades significantly, leading to noticeable lag, particularly when interacting with the tree view and switching between different components (e.g., a canvas and a layers manager). The problem seems to stem from the fact that all nodes are being rendered in the DOM simultaneously, which overloads the browser and causes performance issues.

Describe the solution you'd like
It would be beneficial if the library could incorporate virtualization into the rendering of the nodes within the tree. Virtualization would allow only the visible nodes (within the viewport) to be rendered at any given time, drastically improving performance for trees with a large number of nodes. This could be implemented by leveraging existing libraries like react-window or react-virtualized, which are specifically designed to handle large lists efficiently by virtualizing the DOM rendering.

Describe alternatives you've considered
As a workaround, I've considered manually implementing virtualization by wrapping the node rendering logic within a virtualized list component (such as react-window). However, this approach is challenging because the library's current API does not easily support such integration without significant modifications. Another alternative could be lazy loading nodes, but this only addresses part of the problem and doesn't entirely resolve the performance issues with large trees.

Additional context
In my project, as well as in a smaller test sandbox I set up for reference, I've noticed that the performance issue primarily occurs during the initial load of the component. This is particularly evident when dealing with a large number of elements. For instance, in scenarios where the tree contains 20,000+ nodes, the initial load time is significantly delayed. This appears to be due to the fact that all of these elements are being attached to the DOM simultaneously.
CodeSandBox

@minop1205 I can work on this problem if possible, however I don't know how the rendering mechanism works, been trying to look for it on the codebase and just couldn't find it.


get_bytes for Buf trait

fn get_bytes(&mut self, size: usize) -> Bytes
This is somewhat similar to https://github.com/tokio-rs/bytes/issues/228 but for reading from a Buf.
The idea is that a Buf implementation may already have an efficient way to get a "view" of some of its bytes that does not involve an expensive copy. The default implementation would just allocate a new Bytes object and then use copy_to_slice.
The Bytes type could have a specialized implementation that just calls split_to on itself. In the future it may be possible to specialize the implementation of Buf for &'static [u8] too, since Bytes can cope with that, or maybe Bytes will get an optional lifetime parameter allowing it to hold reference of any lifetime.

I think this is fixed by #439.

Yep 👍


Fix incorrent field de-duplication

Summary of the changes / Why this improves CrateDB
In a scenario like so:
create table t1 (x int);
create table t2 (x int);
insert into t1 (x) values (1), (2), (3);
insert into t2 (x) values (2), (3), (4);
refresh table t1, t2;
select * from (select * from t1 left join t2 on t1.x = t2.x) tjoin;

The query returned the value for t1.x twice because it got
de-duplicated due to the fields looking identical. Both had
relation=tjoin and path=x.
To address this, this changes the Field to contain the symbol the field
is pointing to. This way it includes a reference to the underlying
t1.x or t2.x Reference symbols and it correctly detects that the
fields on the upper level are different.
This should also make it easier to later on de-duplicate fields() and
outputs() on AnalyzedRelation
Checklist

[x] User relevant changes are recorded in CHANGES.txt
[x] Touched code is covered by tests
[x] Documentation has been updated if necessary
[x] CLA is signed
[x] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in CHANGES.txt
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

ok to test


https://github.com/guardrex/HostedWASM50AADGroupsAndRolesSample

Following https://github.com/guardrex/HostedWASM50AADGroupsAndRolesSample
When i log in the page just hangs in on Completing login... with url https://localhost:5001/authentication/login-callback# in the browser.
I have made sure that api app has GroupMember.Read.All with admin consent
In expose api -- in our case we see "api://" url which i have put it in "https://tenantname. .. " as suggested in the article.

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

ID: 896be20d-1321-0e2f-3efb-d0ce8f1e631a
Version Independent ID: f5e2b80f-9478-7500-2bc5-930237274f4b
Content: Use Graph API with ASP.NET Core Blazor WebAssembly
Content Source: aspnetcore/blazor/security/webassembly/graph-api.md
Product: aspnet-core
Technology: aspnetcore-blazor
GitHub Login: @guardrex
Microsoft Alias: riande

OOF for the :gift: holidays :snowman:
This issue has been marked for triage on the Blazor.Docs project, and I'll respond as soon as I return in 2021.
We only work on documentation on this repo. If you need product support, close this issue and seek assistance through one or more of the following support channels:

Stack Overflow (tagged: blazor)
General ASP.NET Core Slack Team
Blazor Gitter

If you think that you found a potential bug in the framework or have product feedback, close this issue and open a new issue for the ASP.NET Core product unit at aspnet/AspNetCore issues.
For problems or feedback on Visual Studio or Visual Studio for Mac, close this issue and use the Report a Problem or Suggest a Feature processes from within VS, which open internal issues for the VS team. For more information, see Visual Studio feedback options or How to report a problem in Visual Studio for Mac.
For problems with Visual Studio Code, close this issue and ask for support on community support forums. For bug reports and product feedback, open an issue on the microsoft/vscode GitHub repo.
⛄🎁 Happy Holidays! :dancer::man_dancing::partying_face: Happy New Year! :balloon::champagne::tada:

That sample app might not be completely up-to-date. You can see the latest guidance, which is merely under review, on the PR at ...
https://github.com/dotnet/AspNetCore.Docs/pull/20856
As I pasted in my OOF message above ☝, I'm actually out on vacation until 2021. I wouldn't be able to provide product support until I return.

Sure @guardrex Thank you for your help, as always. Happy holidays and a very happy new year!! :) 👍  Enjoy your vacation.

That 'completing login' problem on the callback has usually been traced to some kind of app or Azure configuration problem (or violating the general guidance on lingering cookies breaking an app). You'll probably have to go back over the config again on both sides to see if you can figure out where the problem is.
As you know, we don't really handle product support here. We need devs to tell us that they found a specific problem in a topic in order to make it actionable.
At the time that I put that sample app up on my repo, it was working. However, it's not latest ... e.g., Microsoft.Identity.Web is at 1.4.1. Idk if that will solve it, but it's one thing to look at.

@manasimahajann ... I don't have anything further that I can add to my last set of remarks on this one. There's probably a configuration problem somewhere within your app or Azure config. Because we're so short handed and 🏃😅 all the time, we aren't able to provide product support to find a configuration problem within a developer's app when the guidance is correct (if it is correct).
My recommendation is to work back through the entire app, groups/roles setup, and Azure config to confirm configuration is correct. If you find out what the problem is and there's something wrong with the guidance on the PR or elsewhere, then open a docs issue (or note it back on this one ... I'll re-open this) for analysis and work.


cb-access-key is not allowed by Access-Control-Allow-Headers

I'm trying to use the library from the browser and I see this:

Fetch API cannot load https://api.gdax.com/accounts. Request header field cb-access-key is not allowed by Access-Control-Allow-Headers in preflight response.

From this forum thread it is suggested that what might be happening is that the message is not signed.
However the library does it.
var sig = signRequest(auth, method, relativeURI, opts);

I'm no CORS expert, but it seems like the only way to fix this is to have the backend add the headers to the preflight response. Is it something that could happen?

+1, same issue. Trying to access via node library.

+1

This should be closed. https://community.coinbase.com/t/help-request-header-field-cb-access-key-is-not-allowed-by-access-control-allow-headers/819

Link is broken !

Any word on this? Having the same issue

I'm having the same issue. When launching my call to the "/accounts" endpoint (with the four required headers) using Postman however, it does work... When running the call from a browser (combo of jQuery and PHP for auth), I get the error "Request header field CB-ACCESS-PASSPHRASE is not allowed by Access-Control-Allow-Headers in preflight response."
Any word on how to fix this? I've tried using the additional headers:

"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET",
"Access-Control-Allow-Headers": "*"

But adding these extra headers still doesn't fix the issue.
Any help will be much appreciated!

Any updates on this issue?

Hi, have same issue.
Have nodejs code that fetch https://api.gdax.com/BCH-BTC/ticker  and it works, only User-Agent headers is set there, but then i try to load same link from chrome, firefox, or node-red getting error {"message":"CB-ACCESS-KEY header is required"}, very strange behavior, any clues ?


Inconsistent behavior when setting values in structured arrays using nested loops in Numba

When trying to set values in a structured array using nested loops in a Numba @njit function, I encounter a No implementation of function error. However, setting values explicitly outside the inner loop works fine. This inconsistency seems unexpected and could be a potential bug or limitation in Numba.
import numpy as np
from numba import njit

# Code that fails
@njit()
def example_fails():
    arr = np.empty(3, dtype='uint8, uint8')
    for k in range(3):
        for i in range(2):
            arr[k][i] = 0
    return arr

re = example_fails()

# Code that works
@njit()
def example_works():
    arr = np.empty(3, dtype='uint8, uint8')
    for k in range(3):
        arr[k][0] = 0
        arr[k][1] = 0
    return arr

# Running the function works fine
re = example_works()
print(re)

Error Message
No implementation of function Function(<built-in function setitem>) found for signature:

>>> setitem(Record(f0[type=uint8;offset=0],f1[type=uint8;offset=1];2;False), int64, Literal[int](0))

@njit()
def example_worked():
    arr = np.empty(3, dtype='uint8, uint8')
    for k in range(3):
        for i in range(2):
            arr[k][0] = 0
    return arr
re = example_worked()

^also worked

Thanks for the report - it does indeed seem that we only have implementations for setitem on records where the index is known statically (e.g. explicitly using an integer value instead of a variable). I tried a literal unroll on the range (which I thought might succeed with a known upper bound):
import numpy as np
from numba import njit, literal_unroll

@njit
def example_fails():
    arr = np.empty(3, dtype='uint8, uint8')
    for k in range(3):
        for i in literal_unroll(range(2)):
            arr[k][i] = 0
    return arr

re = example_fails()

but it still has the same problem, and the silent failure of literal_unroll() seems like an issue (see #9882).
Unrolling a tuple of the values seems to work:
import numpy as np
from numba import njit, literal_unroll

@njit
def example_unrolled_tuple():
    arr = np.empty(3, dtype='uint8, uint8')
    for k in range(3):
        for i in literal_unroll((0, 1)):
            arr[k][i] = 0
    return arr

re = example_unrolled_tuple()

Is this practical for your use case?

Labelled as a feature request - to support setitem on dynamic indices in records.

Yes, it is helpful. Otherwise, I would need to manually unroll the code.


Docs on "Deployment on Ubuntu with nginx"

There should be a basic guide to deploying an Angel instance underneath a nginx server on Ubuntu. This is pretty simple, and doesn't require much in the way of DevOps.

Install Dart
Set ANGEL_ENV=production
Sync changes with the server
i. Use SFTP
ii. Or, sync from a private Git repo
iii. Host a local Git server to sync changes
iiii. Git version histories take up more space, so probably just use SFTP for this guide.
Use upstart (comes with Ubuntu) to start server on system boot, and restart if it crashes
i. https://askubuntu.com/questions/251577/how-to-supervise-and-automatically-restart-a-process
Basic nginx setup with proxy_pass
i. Don't run your application server as root
ii. Configure proxy to send request bodies

IF I have time today, it would be nice to shoot a short video of creating a DigitalOcean box, syncing it with an Angel project via SFTP, setting up upstart, and then configuring nginx to proxy down to the API server.


Installation abort at "Setting up backend" with a broken pipe error

Describe the bug
The installation process is blocked at the step "Setting up backend" during long long time then abort after a broken pipe in the connection. It happened every time i tried.
Context

Hardware: desktop pc
YunoHost version: 4.2.6
I have access to my server: SSH and webmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance?:  yes

If yes, please explain: looping script to correct regular deletion of resolv.dnsmasq.conf content

Using, or trying to install package version/branch: testing

Steps to reproduce
```
sudo yunohost app install librephotos
 ```

Expected behavior
Installation succeeds.
Logs
https://paste.yunohost.org/raw/icokepilaq

Did you install via SSH? "broken pipe" would mean an SSH timeout in that case. You can tweak your sshd config to keep the connection alive, but a simpler solution would just be to press Enter every so often at the terminal, to keep the connection alive.

Another "safe" way to run long commands is to use a screen.
apt install screen
screen
# It will create a new empty prompt
yunohost app install ...

If connection breaks: screen -R to reconnect to the screen after logging in again in SSH.

Compiling sources can be very resource-consuming too. It is possible some services get killed by the system in the process, including the SSH server.
How much RAM do you have? Could you consider stopping some of your largest apps while installing Librephotos? Or adding a swap file?

You were right, installation was too heavy for my hardware.


clahub.com has gone

It might be nice not to rely on another tool for CLA agreement. Maybe this could work for now instead... https://github.com/marketplace/actions/cla-assistant-lite

Ugh, how annoying. I was thinking of building it in anyway, CLAHub was never particularly great UX. Thanks for the action thing, I'll take a look.

Ugh, how annoying. I was thinking of building it in anyway, CLAHub was never particularly great UX. Thanks for the action thing, I'll take a look.

I'd better remove the link from the submission process asap I guess.

I'd better remove the link from the submission process asap I guess.

Not really sure what I'm doing but I think #994 will replace the clahub accept button with a view CLA button if there's a cla.html page in the manifesto. If that's any use.

Not really sure what I'm doing but I think #994 will replace the clahub accept button with a view CLA button if there's a cla.html page in the manifesto. If that's any use.


Feat/dojo physics projectile

First example using Vec2 and Fixed types
Everything works as cairo project. Tests all pass locally. I've checked sample output for an entire projectile path using print, manually putting these in a spreadsheet, and then plotting the points. It looks good.
TODO: More thorough test using pytest  and put that output into Jupyter notebook to plot results. To do this, I need to first convert projectile.cairo into a starknet contract, which I'm working on but encountering some hurdles (explained more in discord).

I think we should merge this and then open a new issues for expansion - this library will be in constant dev so let's get everyone up to this date.

I think we should merge this and then open a new issues for expansion - this library will be in constant dev so let's get everyone up to this date.

Either way ok w/me. Will get back to this and make these changes. On back burner atm.


Allow trace header propagation without trace exporting

This change allows trace ID / traceparent to be propagated or generated by the runtime without exporting full trace logs.
In configuration this can be done via
apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
  name: daprConfig
spec:
  tracing:
    samplingRate: "1"

Previously it was necessary to choose one of the existing exporters like otel, zipkin or stdout even if all one was interested in was the forwarding of trace headers through Dapr.
Internally this is accomplished by creating a NullExporter which is registered if none of the other trace exporters have been registered.

[x] Code compiles correctly
[x] Created/updated tests
[x] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

/ok-to-test


No hint path defined for [websockets].

I recently upgraded our laravel from 5.2 to 5.8 and when I try to access the dashboard I get No hint path defined for [websockets].
I think somehow the routes were not automatically created.

I ended up fixing this. We had some code we put in for theme switching and it was nuking our Hint Paths. Removed the theme switching and got the package working


Adding Protonmail crashes Franz

Describe the bug
Protonmail is not working, and causes the program to crash.
To Reproduce
Steps to reproduce the behavior:

Add service for Protonmail

Without even getting a chance to log in, it crashed Franz. Upon re-loading, it was having issues working properly (CPU suddenly went crazy busy), and crashed. Next time I restarted it, and disabled the service, then removed it. Tried next to add it through custom website, also caused issues/performance issues.
Desktop (please complete the following information):

OS: Windows 10
Browser: Brave, (chromium)
Browser: 74.0.3729.131
Version Franz: 5.1.0

Hi,
I managed to generate a service crash, but I don't know how I did it, as it worked 9 times outta 10 on Mojave 10.14.4. This bug requires investigation.
Normally I would advise you to open your issue in the appropriate repository, but after reviewing the code of the service, I haven't found anything that could cause a crash. I think something else triggered it.

same here:

added service
clicked on service icon
franz crashed

Linux 4.19.32-1-MANJARO
Franz 5.1.0


remembering search items per page #2175

https://github.com/dockstore/dockstore/issues/2175
Selected number of items per page in search results table should stay consistent when navigating away and back to search page. For example selecting 20 items per page then click navigating to an entry and then navigating back to the search page should continue to show 20 items per page rather than defaulting back to 10.

Pending passing build (not sure if real failure or not)

Pending passing build (not sure if real failure or not)

@denis-yuen it looks like a flaky cypress test. Group 3 organizations.ts, the test is passing locally but failing on travis for some reason


Feature : Implemented an interactive FAQ section on the homepage for …

…improved user engagement and accessibility.

Description

Added a new FAQ section to the homepage to address common user queries and enhance the overall user experience.
The FAQ section is fully interactive, allowing users to expand and collapse individual questions for ease of navigation.
Used responsive design techniques to ensure seamless functionality across different devices and screen sizes.
FAQ data is dynamically rendered, making future updates easy and scalable.

Fixes #1236

Screenshots

BEFORE
AFTER

I’ve been experiencing issues with adding images for the past 4-5 days.

Checklist

[x] Tests have been added or updated to cover the changes
[x] Documentation has been updated to reflect the changes
[x] Code follows the established coding style guidelines
[x] All tests are passing

This section is already there, in Imagine-ai section you can check in the deployed site.


Logging: repair the Windows build after MSVCRT rename

Import CRT instead of MSVCRT.
[One line description of your change]
Motivation:
[Explain here the context, and why you're making that change. What is the problem you're trying to solve.]
Modifications:
[Describe the modifications you've done.]
Result:
[After your change, what will change.]

@swift-server-bot add to whitelist


finish FIXME: move open_browser() to addon/browser

finished a FIXME tag

Oops! I did not notice webaddons.py at first. I'll move the "open a browser for mitmweb" to webaddons.py soon.


Unity UI Toolkit

how can i use it with Unity UI Toolkit the package uses Simple Unity.UI elements and there is no documents on how can i add the design to UI Builder

The package does not support UI Toolkit yet.
Here is the documentation link: Unity Figma Importer Documentation


UnicodeError with md2po in MinGW64

I don't have permission to reopen #125, but I found some additional information that might indicate the underlying issue.
This test Action can run on any repo
update_locales.yml.txt
name: Update Locales

on:
  workflow_dispatch:

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Install MDPO
      run: pip install mdpo
    - name: generate file
      run: touch a.md
    - name: Insert Text
      run: echo "helloworld" >> a.md
    - name: test1
      run: md2po ./a.md
    - name: test2
      run: python -c "import os;print(os.path.exists('a.md'));"
    - name: test3
      run: cat ./a.md | md2po

It produces the following result

Looks like the way md2po read files could be causing the issue.
I modified my script to do something as the following
< $mdfilepath md2po --md-encoding utf-8 --po-encoding utf-8 -e utf-8 -w $width -q -s -c --po-filepath $pofilepath
When I ran this script an encoding issue occurred.
I'm trying to use > filename to bypass the md2po read file issue, and it works for most of the files except a few ones.
Traceback (most recent call last):
  File "C:\Program Files\Python39\Scripts\md2po-script.py", line 33, in <module>
    sys.exit(load_entry_point('mdpo==0.3.19', 'console_scripts', 'md2po')())
  File "c:\program files\python39\lib\site-packages\mdpo\md2po\__main__.py", line 157, in main
    sys.exit(run(args=sys.argv[1:])[1])  # pragma: no cover
  File "c:\program files\python39\lib\site-packages\mdpo\md2po\__main__.py", line 148, in run
    pofile = markdown_to_pofile(opts.glob_or_content, **kwargs)
  File "c:\program files\python39\lib\site-packages\mdpo\md2po\__init__.py", line 624, in markdown_to_pofile
    return Md2Po(
  File "c:\program files\python39\lib\site-packages\mdpo\md2po\__init__.py", line 510, in extract
    _parse(self.content)
  File "c:\program files\python39\lib\site-packages\mdpo\md2po\__init__.py", line 500, in _parse
    parser.parse(
UnicodeEncodeError: 'utf-8' codec can't encode character '\udc93' in position 1705: surrogates not allowed

Thank you for the report @dingyifei, I'm reproducing it here and will try to investigate asap 👍🏼

The newer version changed a bit but is having the same error

The md2po ./a.md error has been fixed in v0.3.56 as you can see here.

Thank you for improving mdpo!
I think po2md also has a similar issue. Sorry for missing it earlier. It seems like the same issue just in a different place.
The following issue occurred in Action

Action yml:
name: Update Locales

on:
  workflow_dispatch:

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Install MDPO
      run: pip install mdpo
    - name: generate file
      run: touch a.md
    - name: Insert Text
      run: echo "helloworld" >> a.md
    - name: test1
      run: md2po ./a.md
    - name: test2
      run: python -c "import os;print(os.path.exists('a.md'));"
    - name: test3
      run: cat ./a.md | md2po
    - name: test4
      run: cat ./a.md | md2po -s --po-filepath a.po && cat ./a.md | po2md -p a.po
    - name: test5
      run: cat ./a.md | md2po -s --po-filepath a.po && po2md a.md -p a.po

I think po2md also has a similar issue...

Thank you for catching it. It's fixed in v0.3.57.

I'm trying to use > filename to bypass the md2po read file issue, and it works for most of the files except a few ones.
UnicodeEncodeError: 'utf-8' codec can't encode character '\udc93' in position 1705: surrogates not allowed

Hi @dingyifei, could you point what is the file that is raising this error?

More than one file has this error. One of them is
HallFilamentWidthSensor.po.txt
input md:
HallFilamentWidthSensor.md
output md:
HallFilamentWidthSensor.md
command:
cat $mdfilepath | po2md --md-encoding utf-8 --po-encoding utf-8 \
    -p $pofilepath -q -s $targetmdfile

I'm not able to reproduce it with > at this point (I messed up my script), but using cat filename | po2md does the trick.

Additionally, I observed some problem with old markdown outputs can't be correctly updated (so I added an rm command in my script). It doesn't affect rendering though. Should I create a new issue regarding this behavior?

I can't reproduce it. The original error was produced due to an unencodable surrogate, which I think that should be considered an invalid input. Maybe, you can share the encoding that is using your terminal?

Version: po2md 0.3.66
terminal settings:

I believe it is running UTF-8 because the Chinese characters are being properly handled. I'll try to reproduce the markdown update inconsistency issue when I get enough time.

I'm not sure how, but it seems like the old markdown files are being updated correctly now. It's probably fixed in the link wrap fix or some other related fixes. I remember it was inserting extra empty lines (I think I had a screenshot somewhere) and ignoring wrap width on the first line of a paragraph.

Could it be the MingW64 used by Git Bash being so ridiculously different? This is a strange result

I'm not able to reproduce in MinGW64. Maybe your version have that problem with PIPES. As this works everywhere except inside your version of MinGW64, I'm closing this.

Input
cat HallFilamentWidthSensor.md | python3 "$(python3 -c "import mdpo;print(mdpo.__path__[0]);")\po2md\__main__.py" --md-encoding utf-8 --po-encoding utf-8 -p HallFilamentWidthSensor.po -qs HallFilamentWidthSensor.output.md

Result
$ cat 'HallFilamentWidthSensor.output.md'
This document describes Filament Width Sensor host module. Hardware used for
developing this host module is based on Two Hall liniar sensors (ss49e for
example). Sensors in the body are located opposite sides. Principle of operation
: two hall sensors work in differential mode, temperature drift same for sensor.
Special temperature compensation not needed. You can find designs at
[thingiverse.com](https://www.thingiverse.com/thing:4138933)

[Hall based filament width sensor assembly video](https://www.youtube.com/watch?v=TDO9tME8vp4)

## How does it work?

Sensor generates two analog output based on calculated filament width. Sum of
output voltage always equals to detected filament width . Host module monitors
voltage changes and adjusts extrusion multiplier. I use aux2 connector on
ramps-like board analog11 and analog12 pins. You can use different pins and
differenr boards

## Configuration

    [hall_filament_width_sensor]
    adc1: analog11
    adc2: analog12
    # adc1 and adc2 channels select own pins Analog input pins on 3d printer board
    # Sensor power supply can be 3.3v or 5v
    Cal_dia1: 1.50 # Reference diameter point 1 (mm)
    Cal_dia2: 2.00 # Reference diameter point 2 (mm)
    # The measurement principle provides for two-point calibration
    # In calibration process you must use rods of known diameter
    # I use drill rods as the base diameter.
    # nominal filament diameter must be between Cal_dia1 and Cal_dia2
    # Your size may differ from the indicated ones, for example 2.05
    Raw_dia1:10630 # Raw sensor value for reference point 1
    Raw_dia2:8300  # Raw sensor value for reference point 2
    # Raw value of sensor in units
    # can be readed by command QUERY_RAW_FILAMENT_WIDTH
    default_nominal_filament_diameter: 1.75 # This parameter is in millimeters (mm)
    max_difference: 0.15
    # Maximum allowed filament diameter difference in millimeters (mm)
    # If difference between nominal filament diameter and sensor output is more
    # than +- max_difference, extrusion multiplier set back to %100
    measurement_delay: 70
    # The distance from sensor to the melting chamber/hot-end in millimeters (mm).
    # The filament between the sensor and the hot-end will be treated as the default_nominal_filament_diameter.
    # Host module works with FIFO logic. It keeps each sensor value and position in
    # an array and POP them back in correct position.
    #enable:False
    # Sensor enabled or disabled after power on. Disabled by default
    # measurement_interval:10
    # Sensor readings done with 10 mm intervals by default. If necessary you are free to change this setting
    #logging: False
    #  Out diameter to terminal and klipper.log
    #  can be turn on|of by command
    #Virtual filament_switch_sensor suppurt. Create sensor named hall_filament_width_sensor.
    #
    #min_diameter:1.0
    #Minimal diameter for trigger virtual filament_switch_sensor.
    #use_current_dia_while_delay: False
    #   Use the current diameter instead of the nominal diamenter while the measurement delay has not run through.
    #
    #Values from filament_switch_sensor. See the "filament_switch_sensor" section for information on these parameters.
    #
    #pause_on_runout: True
    #runout_gcode:
    #insert_gcode:
    #event_delay: 3.0
    #pause_delay: 0.5

## Commands

**QUERY_FILAMENT_WIDTH** - Return the current measured filament width as result

**RESET_FILAMENT_WIDTH_SENSOR** Ð²Ð‚â€œ Clear all sensor readings. Can be used
after filament change.

**DISABLE_FILAMENT_WIDTH_SENSOR** Ð²Ð‚â€œ Turn off the filament width sensor and
stop using it to do flow control

**ENABLE_FILAMENT_WIDTH_SENSOR** - Turn on the filament width sensor and start
using it to do flow control

**QUERY_RAW_FILAMENT_WIDTH** Return the current ADC channel values and RAW
sensor value for calibration points

**ENABLE_FILAMENT_WIDTH_LOG** - Turn on diameter logging

**DISABLE_FILAMENT_WIDTH_LOG** - Turn off diameter logging

## Menu variables

**hall_filament_width_sensor.Diameter** current measured filament width in mm

**hall_filament_width_sensor.Raw** current raw measured filament width in units

**hall_filament_width_sensor.is_active** Sensor on or off

## Template for menu variables

    [menu __main __filament __width_current]
    type: command
    enable: {'hall_filament_width_sensor' in printer}
    name: Dia: {'%.2F' % printer.hall_filament_width_sensor.Diameter}
    index: 0
    [menu __main __filament __raw_width_current]
    type: command
    enable: {'hall_filament_width_sensor' in printer}
    name: Raw: {'%4.0F' % printer.hall_filament_width_sensor.Raw}
    index: 1

## Calibration procedure

Insert first calibration rod (1.5 mm size) get first raw sensor value

To get raw sensor value you can use menu item or **QUERY_RAW_FILAMENT_WIDTH**
command in terminal

Insert second calibration rod (2.0 mm size) get second raw sensor value

Save raw values in config

## How to enable sensor

After power on by default sensor disabled. Enable sensor in start g-code by
command **ENABLE_FILAMENT_WIDTH_SENSOR** or change enable parameter in config

## Logging

After power on by default diameter Logging disabled. Data to log added on every
measurement interval (10 mm by default)


Added PhraseMatchQuery and MultiMatchQuery.

Closes #3725

per-field boosting and wildcard fields

I added code to return an error in that case.


Potential FAQ

Would this work at the department level for all of its components?  Would this work for a single team within an agency?
Yes


Standardize routes file configuration (and rename --routes => --routes-file)

Previously the routes file took a special path through function calls that
prevented it from receiving values from the normal configuration sieve
(defaults => config file => cli).
When the (redundant) CLI default was removed in #206 this meant that a routes
file must be specified on the command line.
This patch standardizes handling of routes file configuration.  It also
changes the name of the --routes option to --routes-file to more
accurately reflect what it is (and to avoid a name conflict with an existing
const in startServer.js).  As such this is a breaking change.

@aickin, @withinboredom - I think you two are probably the most familiar with this code.  Have a look?

lol ... woops :smiley: LGTM

👍

This is a good change! 👍


[new] - Add no-redundant-roles rule

Fixes #149
https://www.w3.org/TR/html5/dom.html#aria-role-attribute

Coverage remained the same at 100.0% when pulling 0fe43e2a17aa2b9ab95b7587ee49167440c35b63 on ethanc/no-redundant-roles into 84d0078b9704728db75db802381e5bc3f9c0bdd0 on master.

Coverage remained the same at 100.0% when pulling 4333d27c7a59030077fe7eb8457aa2e549f369c2 on ethanc/no-redundant-roles into d394b4c5e48f800e1f22d2416b38360a50db8e97 on master.


Pause when looking up a word?

I am used to Language reactor, and sometimes when I want to look up a word I forget to pause and then I lose the word I was looking up.
If possible, I would like to have a setting that allows the stream to automatically pause when looking up a word with yomitan.
if not auto pause, it could automatically trigger the rewind feature that already exists, that way it replays the sentence the word is in until you are done hovering over the word.

Asbplayer is unlikely to implement integrations with specific dictionary extensions and so your problem is not likely to be solved as is.
I am planning to add a pause-on-hover feature for asbplayer which if implemented cleverly may be able to help with this problem.

This is now possible with pause-on-hover.

woohoo!


[BUG] Switch to old Hnsw Orchestrator

Description of changes
Summarize the changes made by this PR.

Improvements & Bug fixes

...

New functionality

...

Test plan
How are these changes tested?

[ ] Tests pass locally with pytest for python, yarn test for js, cargo test for rust

Documentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?

#3106  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Sicheng-Pan and the rest of your teammates on  Graphite


Refactor the interplay between questions and suite/experiment generation.

Description
Allow for the suite file to be templated based on answers to 'suite' questions.

Superseded by #324


Crash at start on Android

It's crashing at start on android. Gave me error about test widget while packaging. Then I deleted test widget. Enabled showing ads in dev builds. Packaged successfully but crashes at start

Hello @NursultanNazarov !
Can you send an adb log with a crash? You can get it using next instructions:

Enable developer and USB debugging modes on your phone
Open your app and wait until it crashes
Connect your device to a PC
Open up a cmd in some folder and call next command: adb.exe logcat -d *:S UE4:* DEBUG:* > log.txt

You should see a log.txt file with a log inside. Upload it somewhere (GDrive, Pastebin or smth) and send a link here.


 We likely need to zip them and then try to download the zip.

Re-enable downloads of OME ZARRs as part of this work. I had to disable it in the meantime due to a request from EMT for their paper submission


Delete untagged images

delete all untagged images
Delete all untagged images
- uses<EMAIL_ADDRESS>  with:
    owner: bots-house
    name: some-web-service
    token: ${{ secrets.PAT }}
    untagged: all

deleted older than untagged images
Delete all untagged older than N days
- uses<EMAIL_ADDRESS>  with:
    owner: bots-house
    name: some-web-service
    token: ${{ secrets.PAT }}
    untagged-older-than: 7 # days

keep latest untagged
Delete all untagged exclude latest N
- uses<EMAIL_ADDRESS>  with:
    owner: bots-house
    name: some-web-service
    token: ${{ secrets.PAT }}
    untagged-keep-latest: 3

or all in one field syntax
untagged: all
untagged: |
   older-than: 7 # days
   keep-latest: 3 # number of untagged images

Any chance of this being released soon?
One thing that I noticed with the current implementation though, is that you can't specify untaggedKeepLatest: 0.

Any news about this?

This would be very nice to have

This works if you directly use the commit sha:
jobs:
  purge-image:
    name: Delete untagged images from ghcr.io
    runs-on: ubuntu-latest
    steps:
      - name: Delete image
        # using specific sha because untagged feature is unreleased
        uses: bots-house/ghcr-delete-image-action@8ad9844765a47a28ee289f054323f56ebe8fd3e9
        with:
          owner: ForAllSecure
          name: mcode-action-examples
          token: ${{ secrets.GITHUB_TOKEN }}
          untagged-keep-latest: 1

@mr-linch : if you need some help maintaining this repo I'd be happy to help out.

Hey, I'm sorry for not responding for a long time.
@vlussenburg I added you as the maintainer. Thank you, I would be glad to have your help.
Please use PR for any code changes.

Keep the latest N untagged images

Released in v1.1.0


Must specify a java package in order to build this experience for Android. Please specify one in app.json at "expo.android.package"

Description
Must specify a java package in order to build this experience for Android. Please specify one in app.json at "expo.android.package"
Expected Behavior
git clone my personal project: https://github.com/kenpeter/osmosis_seek_android
run exp build:android
Expect it build successfully.
Observed Behavior
git clone my personal project: https://github.com/kenpeter/osmosis_seek_android
run exp build:android
Must specify a java package in order to build this experience for Android. Please specify one in app.json at "expo.android.package"

More detail here: Detail here: https://stackoverflow.com/questions/42967465/created-an-app-with-create-react-native-app-how-to-publish-it-to-the-google-pla
Environment
Please run these commands in the project folder and fill in their results:

npm ls react-native-scripts:

<EMAIL_ADDRESS>/var/www/html/test/testme/seekandroid
├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>
npm ls react-native:

<EMAIL_ADDRESS>/var/www/html/test/testme/seekandroid
└── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>npm ERR! code 1

npm ls expo:

├──<EMAIL_ADDRESS>└── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>npm ERR! peer dep missing<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>
node -v:

v6.10.0

npm -v:

3.10.10

yarn --version:

0.21.3

watchman version:
none

Also specify:

Operating system: ubuntu 16.04, 64 bit

Phone/emulator/simulator & version: nexus 6p or emulator

Reproducible Demo
https://github.com/kenpeter/osmosis_seek_android

Hi! Thanks for the detailed report! The issue here appears to be that your project has both app.json and expo.json files, which aren't correctly merged right now. If you delete app.json, building your project should work.
Since this is an issue with the exp tool, I've opened an issue there: https://github.com/exponent/exp/issues/41, and am closing this one.

Also, if you delete app.json, you'll also need to rename expo.json to exp.json, I believe.

Got similar issue:
Must specify a java package in order to build this experience for Android. Please specify one in app.json at "expo.android.package"
with
node: v8.5.0
npm: 5.3.0
expo: 19.0.1
I have only app.json in my project. Not have exp.json/expo.json.
Can anyone please help me regarding this.

Check if your app.json is look like this:
{
  "expo": {
   "name": "Your App Name",
   "icon": "./path/to/your/app-icon.png",
   "version": "1.0.0",
   "slug": "your-app-slug",
   "sdkVersion": "17.0.0",
   "ios": {
     "bundleIdentifier": "com.yourcompany.yourappname"
   },
   "android": {
     "package": "com.yourcompany.yourappname"
   }
  }
}

@freundallein I'm having the same issue and my app.json has the exact same password as you provided. Same order, the only changes are the values.

same problem here
' Must specify a java package in order to build this experience for Android. Please specify one in app.json at "expo.android.package" '

@figitaki, it's strange, because i had the same issue and solve it after check my braces be like:
{     "expo": {         "android": {             "package": "anything"         }     } }

i am having the same exact structure, dont know why it cant find the android package name

On the same stage :( Can anyone give a thought?

here's an example of a valid android package in app.json https://github.com/brentvatne/growler-prowler/blob/master/app.json

Maybe the build error was related to versionCode line that's why it caused a build issue. I've just tried to delete this record then rebuild again, however this error [exp] Cannot start new build, as there is a build in progress. still appears.
 "android": {
      "package": "com.cleanme.cleanme",
      "versionCode": "16.8"
    }

try creating a unique package name, i think i was using one from a tutorial and it errored until i changed to something like com.$myname.$appname so com.johnasmithablah.fitnessapp

for anyone else having the same issue I solved it by moving the "android" portion in app.json inside "expo" key.


cssnext support

What is the recommended way to use cssnext (includes Autoprefixer) with meteor-scss?

I don't have an answer for that at the moment, I'm aware that Meteor are rethinking the asset compilation so it may come soon via them, otherwise it'd have to be a new meteor package.

Thanks for your honest answer and clarification. I'll be waiting to see what the next versions of Meteor have to offer. Closed until then.


Add repository ARN to output

The PR exposes repository ARN from the module (Replacement of https://github.com/cloudposse/terraform-aws-ecr/pull/28). As mentioned in https://github.com/cloudposse/terraform-aws-ecr/pull/28 it's very useful when you add policies to a registry.

@aknysh can you look into this PR when you have time?

/codefresh run test

@aknysh done!

/codefresh run test


Google_Sign_In doesn't work with Mac M1 and Flutter 2.8.0

Thats all, I had to check one by one dependency and I found that problem.

got the same error, app run well on physical device but not stimulator, here is the Xcode build error:
ld: warning: ignoring file /Users/myname/Library/Developer/Xcode/DerivedData/Runner-apmvuqmltylgrmgxlwpauoovlckj/Build/Products/Debug-iphonesimulator/google_sign_in/google_sign_in.framework/google_sign_in, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64
ld: in /Users/myname/Documents/github/myproject/ios/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(GIDEMMErrorHandler_3a47e13d8ca81b41e9cdb7ef5468004a.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/myname/Documents/github/myproject/ios/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@bichoalexis
Are you trying to run it on simulator or device ? Can you provide any error logs that it throws ?
@ChauCM Looking at the error log, you seem to be hitting https://github.com/flutter/flutter/issues/85713, so try to switch to latest master and see if it works.

@darshankawar Then I got stuck at this: https://github.com/fluttercommunity/flutter_downloader/issues/575
    /Users/myname/Documents/github/myproject/ios/Runner/AppDelegate.swift:3:8: error: no such module 'flutter_downloader'
    import flutter_downloader
           ^
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in parallel
    /Users/myname/Documents/github/myproject/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'AppAuth' from project 'Pods')
    /Users/myname/Documents/github/myproject/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'GoogleSignIn' from project 'Pods')

The physical Iphone that I have run fine though. But if I go into AppDelegate.swift and remove everything about flutter_downloader plugin, I got audio_service problem. So I'm not sure if it's a plugin problem. My IOS Deployment Target on everything (include pod file) is 11.0.
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    /Users/chaucao/Documents/github/thuthanh/daithuthanh/ios/Runner/GeneratedPluginRegistrant.m:12:9: fatal error: module 'audio_service' not found
    @import audio_service;
     ~~~~~~~^~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in parallel

This could be the same problem as #94914, please try this change to Podfile as workaround: https://github.com/flutter/flutter/issues/94914#issuecomment-992898782


Python error using pyaudio

I got this error errno -9996] invalid input device (no default output device) somebody has any clue

Can confirm this. GUI pops up for a seconds and quits:
(RGB) C:\Users\STFU\Desktop\Systematic-LEDs-master\Systematic-LEDs-master\python>python main.py
Could not find settings.ini
No user colours found
No user gradients found
Traceback (most recent call last):
File "main.py", line 2046, in
microphone = Microphone(microphone_update)
File "main.py", line 842, in init
device_info = py_audio.get_device_info_by_host_api_device_index(0,i)
File "C:\Users\STFU\Anaconda2\envs\RGB\lib\site-packages\pyaudio.py", line 852, in get_device_info_by_host_api_device_index
host_api_device_index)
OSError: [Errno -9996] Invalid device

Thank you. It works with Anaconda 3. Sorry for the inconvenience.

Don't worry bro
On Sun, Feb 3, 2019, 12:41 PM Maerchensarg<EMAIL_ADDRESS>wrote:

Thank you. It works with Anaconda 3. Sorry for the inconvenience.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/not-matt/Systematic-LEDs/issues/69#issuecomment-460076808,
or mute the thread
https://github.com/notifications/unsubscribe-auth/As6sG_84UL_R9j5WHay-g2iXfW6by55dks5vJy12gaJpZM4afR4p
.


Change help command to show the --all flag text in the content, and get it from the language

Tested working.
A better solution for #322

Spanish works too:


Question | Auto-Place New Windows in Two Zones Possible?

Description of the new feature / enhancement
I have a question rather than a suggestion:
Right now I have the option to place a window manually between to zones (I'm using a layout of 2 columns of equal height), making it cover them both as kind of another "virtual" zone that is made of the two zones and the space beween them - when I start positioning it in zones and hold it over the space between them, both zones are selected.
Is it possible to set up the automatic window placement of new windows in that "virtual zone"?
Scenario when this would be used?
When wanting to have a layout of columns, and a window that spans two columns (or ideally more) without needing to manually create overlapping zones by dragging them and resizing them - this way the zones are pixel-perfect in size and ratio.
Supporting information
No response

You can select any number of zones as you want to snap the window using Ctrl. Let me know if it helped!

https://docs.microsoft.com/en-us/windows/powertoys/fancyzones

Now I'll be able to snap windows onto the combined zone more easily and more quickly. :)
Do you know if there's a way to trigger new window placement in that area - if it's considered a zone for the auto-placement option for new windows that places in the last known zone?

Sure, the window should be opened in all those zones where it was snapped. If this doesn't happen for you, please share a bug report.
/bugreport

Sure, the window should be opened in all those zones where it was snapped. If this doesn't happen for you, please share a bug report.
/bugreport

I was referring to Windows that have not been snapped to zones before.
The feature you talked about works just fine for me. 🙂

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

แกไข้ละพัฒนาแอฟ

I was referring to Windows that have not been snapped to zones before.

Oh, it's an Idea-Enhancement then! :)
Currently, non-snapped windows won't be opened in a zone.

After your explanation I understand it is an Idea-Enhancement - and I am suggesting it. :)
I used to use Linux with KDE (a Linux desktop environment) that offered control of placement down to where the placement starts in respect to the window (its center point, top-left point, etc.), and in respect to the pixel grid of the total resolution of the monitor, when it comes to opening windows automatically in set locations, so I think similar functionality - will make for a better user experience, and with zones there's no need for calculations and choosing margins and paddings of windows - those are pre-determined by the zones themselves.

Being able to define a default zone that newly opened windows are added to would be a nice addition.
This would need to be exclusive to windows that have not been added to a zone before or are not part of a zone at last closing.
It would probably also need an exclusion list like the one that already exists for the whole FancyZones feature.
@GalGreenfield, could you edit the issue description to only contain this suggestion? At the moment it is a little bit confusing because the multiple zones question has been answered.


Add: #19 "--args" argument to pass argument log command

For generating logs between 2 tags or sha1's we need to pass additonal
arguments to the git log command. Add a command line argument that will
be passed onto the git log in addition to the arguments that are needed
for git2json

Thank you!


Fix failure of running prepare with python3

This commit fixes #5053.
It removes the usage of string.strip which will fail in python3.

Coverage increased (+0.006%) to 64.51% when pulling cfc95c69e668656f0fe4973e350f3c5410ecf536 on reasonerjt:fix-prepare-python3 into 05c5cbc227bd75e0d75b5580c7f3ee9f259a9096 on vmware:master.


Fix error message when using auth command with client credentials.

Also upgraded all dependencies to get tests and lint working.
Also updated CHANGELOG with missing 4.0.0 release.

Not sure what that travis-ci failure is about. I can't see any details on it... maybe travis-ci isn't setup on this repo?

Details say no rakefile found

I think travis.yml needs to be .travis.yml if you want to try that

@david-wb I see that now too... didn't see the details link. I'll give that a shot.

@david-wb yep, that worked. Thanls.


Authorizing each bulletin returned through the bulletin board

NIFI-2486:

Authorizing individual bulletins being returned through the bulletin board.

Reviewing

+1
Visually verified code and did a contrib check build. In a 3 node secure cluster tested various different scenarios involving logging and the bulletin board. Also sanity checked in standalone as well. Thanks @mcgilman, I will merge it in.


Prepare the SAP Cloud Platform Cloud Foundry Environment for Development (non-trial account)

Tutorial URL: https://developers.sap.com/tutorials/cp-portal-cloud-foundry-prepare-dev.html
Please specify the step you are referring to
Step 1: Set up your own subaccount for development
WHY my space memory plan is 0 MB?

@whiteezeng You are using trial account?
@qmacro Do you know how the quota is allocated?

If you are  using a trial account the quota is allocated automatically.  In this tutorial it mentions that if you are not using a trial account, you should contact your SAP Cloud Platform administrator and ask them to provide the relevant entitlements and quotas.
Thanks Lindsay

@LindsayBert @thecodester  YES, I am using trial account.  it should‘ve been allocated automatically , but it's not. How can I fix this?

I think this is beyond the scope of the people who write the tutorials. I suggest asking in the community https://www.sap.com/community.html or https://answers.sap.com/index.html
@otiliamarinescu Before closing the issue, how can we handle these types of SAP Cloud Platform issues, unrelated to the specific tutorial?

@thecodester this should be clarified with Katrin or Annika.
One suggestion I have for this particular case, since the issue of entitlements not being automatically assigned is quite common, would be that authors add a note to the step informing users how to assign entitlements manually in case the automatic provisioning failed.

Thank you for your feedback. The issue seems to be resolved, so I am closing the issue.
If you still have questions, feel free to reopen the issue.


Replace or remove Cheetah

Cheetah has not been updated since 2010 and is not python 3 compatible. @ticoann I see its used in ReqMgr and is referenced in WMCore/WebTools. Will it be used after ReqMgr is removed in favor of RM2?

We don't use Cheetah template in WMCore other than ReqMgr, however I am not I am not sure whether other applications using WebTools use Cheetah, DBS, maybe DAS. I will check with Yuyi and Valentin, (I am not sure whether Crab uses WebTools.

A possible solution could be using Cheetah3, https://pypi.org/project/Cheetah3/, which supports both py2.7 and python3.
I followed the instructions at https://github.com/dmwm/WMCore/wiki/Docker-and-WMCore#install-python-packages-via-pip to install Cheetah3 via pip in my docker container.
They did not change the name of the module (Cheetah3 is imported with import Cheetah in both py2 and py3), so that I had to move the directory ./unittestdeploy/wmagent/1.3.2.pre2/sw/slc7_amd64_gcc630/external/py2-cheetah/2.4.0-comp2/lib/python2.7/site-packages/Cheetah so that python finds the new version of cheetah, the one installer by Cheetah3.
I checked that python finds the right version with
[root@82f179d8a51e WMCore]# python
>>> import Cheetah
>>> Cheetah.Version
'3.2.5'

I then looked for the modules that use Cheetah:
> grep -ri "cheetah"
src/templates/WMCore/WebTools/ConfigFile.tmpl:
templates is the default directory for the applications Cheetah
src/templates/WMCore/WebTools/Page.tmpl:                                        href="documentation/ConfigFile">ConfigFile) and use Cheetah to
src/python/WMCore/ReqMgr/Web/tools.py:    from Cheetah.Template import Template
src/python/WMCore/ReqMgr/Web/tools.py:    TemplatedPage is a class that provides simple Cheetah templating
src/python/WMCore/ReqMgr/Web/tools.py:            templates = 'Cheetah'
src/python/WMCore/ReqMgr/Web/tools.py:        return self.templatepage_cheetah(ifile, *args, **kwargs)
src/python/WMCore/ReqMgr/Web/tools.py:    def templatepage_cheetah(self, ifile=None, *args, **kwargs):
src/python/WMCore/WebTools/Welcome.py:from Cheetah import Version as cheetah_version
src/python/WMCore/WebTools/Page.py:from Cheetah import Version
src/python/WMCore/WebTools/Page.py:from Cheetah.Template import Template
src/python/WMCore/WebTools/Page.py:    TemplatedPage is a class that provides simple Cheetah templating
src/python/WMCore/WebTools/Page.py:        self.debug("Using Cheetah version: %s" % Version)
src/python/WMCore/WebTools/Page.py:        Apply the cheetah template specified by file to the data in arg and kwargs.
requirements.txt:Cheetah==2.4.0
requirements.wmagent.txt:Cheetah==2.4.0

I did not find any unit test directly related to the modules that usa cheetah, but src/python/WMCore/WebTools/RESTFormatter.py imports from WMCore.WebTools.Page import TemplatedPage, _setCherryPyHeaders so that it seems to make use of cheetah.
I run its unit test and everything seems fine
python setup.py test --buildBotMode=true --reallyDeleteMyDatabaseAfterEveryTest=true --testCertainPath=test/python/WMCore_t/WebTools_t/RESTFormat_t.py

running test
Using the tests below: test/python/WMCore_t/WebTools_t/RESTFormat_t.py
#### WE ARE DELETING YOUR DATABASE. 3 SECONDS TO CANCEL ####
#### buildbotmode is true
We are going to trash databases after every test
### We are in buildbot mode ###
----------------------------------------------------------------------
Ran 5 tests in 0.001s

OK
path lists is ['test/python/WMCore_t/WebTools_t/RESTFormat_t.py']
Out of 5 cases, we will run 5
#1 testGenerator (WMCore_t.WebTools_t.RESTFormat_t.RESTFormatTest) ... CherryPy Checker:
The use of 'localhost' as a socket host can cause problems on newer systems, since 'localhost' can map to either an IPv4 or an IPv6 address. You should use '<IP_ADDRESS>' or '[::1]' instead.

CherryPy Checker:
The Application mounted at '/unittests/rest' has an empty config.

ok
#2 list1 takes no arguments, it should raise an error if called with one. Require json output. ... ok
#3 testReturnFormat (WMCore_t.WebTools_t.RESTFormat_t.RESTFormatTest) ... ok
#4 testSupportedFormat (WMCore_t.WebTools_t.RESTFormat_t.RESTFormatTest) ... ok
#5 testUnsupportedFormat (WMCore_t.WebTools_t.RESTFormat_t.RESTFormatTest) ... ok

----------------------------------------------------------------------
XML: /home/dmwm/wmcore_unittest/WMCore/nosetests.xml
----------------------------------------------------------------------
Ran 5 tests in 0.833s

OK
Testing complete, there are now 1 threads
/home/dmwm/unittestdeploy/wmagent/1.3.2.pre2/sw/slc7_amd64_gcc630/external/py2-cherrypy/17.4.0/lib/python2.7/site-packages/cherrypy/process/wspbus.py:258: RuntimeWarning: The main thread is exiting, but the Bus is in the states.STOPPED state; shutting it down automatically now. You must either call bus.block() after start(), or call bus.exit() before the main thread exits.
  'main thread exits.' % self.state, RuntimeWarning)

This is promising. I can not think of any better way to test this, do you have idea? Should we try to change a spec file and let jenkins do its job?

Dario, 4 years ago we had this PR to support jinja templates (which AFAIK supports both major python versions):
https://github.com/dmwm/WMCore/pull/7100
If Cheetah now supports python3 - AND it would not require any code changes from our side neither from the other services depending on WMCore - then integrating Cheetah3 into our stack is certainly the best way to go. We can even consider dropping Jinja templates IMO.
Of course we would have to properly test this cheetah3, but if it works fine. Then it would be just a matter of updating the spec files of anything depending on py2-cheetah to py2-cheetah3.
What do you think?

I do agree with you. I would only change our spec files and test the new Cheetah3. I would leave any refactoring, i.e. dropping jinja templates, after the migration is complete

@mapellidario as we discussed in the past week, I'm setting this issue free such that others can pick it, if they want.

@yuyiguo : The PR from @mapellidario with the change suggestion I put at the end builds for me.

@yuyiguo The suggestion was just pushed today in the PR. Could you please test when you get the chance?

This is supposed to have been fixed by: https://github.com/cms-sw/cmsdist/pull/6898
Thanks to Dario and Kenyi. From my side, this issue is ready to be closed. Please feel free to do so.

Yes, it's fine closing this issue for me, too. In case we find any problem we can always open a new issue. (I leave to you the dopamine rush of pressing the "close with comment" button ;) )

If you insist :-D
Summary: our COMP python3 stack supports Cheetah3, which should have the same interface/import as the Cheetah package.
Closing this issue.


NoMethodError: undefined method `watch_pods'

Hey guys -
What is the relationship between the get_, watch_, etc. methods, and my k8s cluster?
For example, why can I use my kubeclient to watch_workflows in this example but not watch_pods (isn't everything a pod in k8s)?
[2] pry(main)> client.watch_workflows
=> #<Kubeclient::Common::WatchStream:0x0000560985209380
 @formatter=#<Proc:0x00005609852093d0@/usr/local/bundle/gems/kubeclient-4.6.0/lib/kubeclient/common.rb:314 (lambda)>,
 @http_client=nil,
 @http_options=
  {:basic_auth_user=>nil,
   :basic_auth_password=>nil,
   :headers=>{},
   :http_proxy_uri=>nil,
   :http_max_redirects=>10,
   :ssl=>
    {:ca_file=>nil,
     :cert=>
      #<OpenSSL::X509::Certificate
       subject=#<OpenSSL::X509::Name CN=kubernetes-admin,O=system:masters>,
       issuer=#<OpenSSL::X509::Name CN=kubernetes>,
       serial=#<OpenSSL::BN<PHONE_NUMBER>468317551>,
       not_before=2019-09-09 21:12:06 UTC,
       not_after=2020-09-08 21:12:07 UTC>,
     :cert_store=>
      #<OpenSSL::X509::Store:0x0000560984f5f1e8
       @chain=nil,
       @error=nil,
       @error_string=nil,
       @time=nil,
       @verify_callback=nil>,
     :key=>#<OpenSSL::PKey::RSA:0x0000560984f5f170>,
     :verify_mode=>1},
   :socket_class=>nil,
   :ssl_socket_class=>nil},
 @uri=#<URI::HTTPS https://<IP_ADDRESS>:6443/apis/argoproj.io/v1alpha1/watch/workflows>>
[3] pry(main)> client.watch_pods
NoMethodError: undefined method `watch_pods' for #<Kubeclient::Client:0x0000560984f5f0a8>
Did you mean?  watch_pod_log
from /usr/local/bundle/gems/kubeclient-4.6.0/lib/kubeclient/common.rb:103:in `method_missing'

According to the URI, looks like you created a Client for argoproj.io/v1alpha1 API group (which I guess is from https://github.com/argoproj/argo).
Pods are in the core v1 group.
(See https://kubernetes.io/docs/concepts/overview/kubernetes-api/#api-groups)
Currently you need a separate Client instance for each API group you use.  Each one defines methods only for kinds that it discovers under that group.
Let me know if this helped.

Super helpful indeed - thanks @cben, much obliged.

isn't everything a pod in k8s?

No.  Kubernetes defines many object types (kinds), some representing stuff involved in actually running applications (like nodes, pods, services, ingresses, volumes...), some being abstract k8s concepts like service accounts and RBAC permissions...
It also allows defining any number of "custom resources".  The Argo workflows are such custom resources. They don't have any inherent meaning to k8s itself, but there is typically a program - usually called "controller" or "operator" - that watches/validates/updates such resources, and does something in response to them.
What you maybe meant is that many object kinds representing different ways to run something - e.g. Deployment, ReplicaSet, DaemonSet, Job, CronJob, and apparently Argo Workflow, ultimately result in creation of Pod objects (which results in some node running a pod).
That's true, but it's not manifest at the API layer kubeclient talks to.  To the API, each kind is separate.  (It doesn't know there are controller loops whose behavior is to take object X and create object Y.)


2.0.17 vue-tsc error - multiple event properties with different modifiers returns TS1117: An object literal cannot have multiple properties with the same name

vue-tsc throwing error on component with multiple @keydown events with different modifiers as of 2.0.17.
Does not reproduce in 2.0.16
vue-tsc --build --force
with component that includes
<input
  @keydown.esc="handleEsc"
  @keydown.down.prevent="handleDown"
  @keydown.up.prevent="handleUp"
  @keydown.tab="handleTab"
/>

results in
- error TS1117: An object literal cannot have multiple properties with the same name.
@keydown.down.prevent="handleDown"
 ~~~~~~~

- error TS1117: An object literal cannot have multiple properties with the same name.
@keydown.up.prevent="handleUp"
 ~~~~~~~

- error TS1117: An object literal cannot have multiple properties with the same name.
@keydown.tab="handleTab"
 ~~~~~~~

Fixed by https://github.com/vuejs/language-tools/commit/b359aa9ba2bb2e96141f5b22586df23a09598c0f

looked, didn't find - thanks much to you all!


Bug - Some of the Deep Nav Keys Not Working

Most of the Deep Nav keys work for me except for:
Roam42 Jump nav:
Blocks:
Expand all - x
Collapse all - l
Align left - 1
Center - 2
Align right - 3
Justify - 4
Add reaction - a
I'm on mac catalina. Does anybody else have this issue?

Glad you contacted me. I just tried them and they were working for me. Please DM me on twitter or on the Slack channel #roam42 for us to walk through it together.


Add traits for custom measures (and later contribute for general use)

    @pat-alt Great to hear about your progress!

Q1: Firstly, should I extend MMI.evaluate to assert that users only use one of the two applicable custom measures?

Generally the kind of target proxy the measure is used for is articulated with the prediction_type trait. (Measures have traits, just like models. The manual mentions this, but you'll want to look also here if you're contributing new measures.) So, you would do something like:
StatisticalTraits.prediction_type(::Type{<:YourMeasureType}) = :probablisitic_set

edited: The model version of this trait is already suitably overloaded here:
https://github.com/JuliaAI/MLJModelInterface.jl/blob/d9e9703947fc04b0a5e63680289e41d0ba0d65bd/src/model_traits.jl#L27
The evaluate apparatus in MLJBase should check the model matches the measure and throw an error if it doesn't. Possibly, as this is a new target proxy type, the behaviour at MLJBase may need to be adjusted. The relevant logic lives approximately here:
https://github.com/JuliaAI/MLJBase.jl/blob/d79f29b78c5068377e25363884e2ea1c4b4a149a/src/resampling.jl#L600

Q2:

Do you always see this rubbish, or just for your custom measure? Where are you viewing this? Is it in an ordinary terminal or VSCode,  notebook, other? Could you please try MLJ.color_off() and see if that helps?
Originally posted by @ablaom in https://github.com/pat-alt/ConformalPrediction.jl/issues/40#issuecomment-1336528755

I'd support including your measures at MLJBase/src/measures.jl . BTW, the intention is to make measures are stand-alone package.


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-28-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 4536

Questions ?
Please refer to the Backport tool documentation


client.request isn't working

client.request isn't working in this code:
import datetime
import json
import os
import scratchattach as scratch3

scratchinfo = None
client = None
username = None
]
if 'COOKIE' in os.environ:
    scratchinfo = {
        "username": "crashbandicootsthe1",
        "sessionid": os.environ['COOKIE']
    }
    session = scratch3.Session(scratchinfo["sessionid"], username=scratchinfo["username"])
    conn = session.connect_cloud("854753637")

    if conn is not None:
        client = scratch3.CloudRequests(conn)  # Assigning client here if conn is not None
    else:
        print("Failed to connect to the cloud.")
else:
    print("The 'COOKIE' environment variable is not set.")

if client is not None:
  def connect():
    username = session.get_linked_user
    return username
  response = connect()
print("Response:", response)

else:
    print("Client is not defined, cannot use @client.request")

@client.request
def ping():
    print ("ping recieved")
    return "pong" # Return a response

def load_user_data():
    if os.path.exists('user_data.json'):
        try:
            with open('user_data.json', 'r') as file:
                return json.load(file)
        except json.JSONDecodeError as e:
            print(f"Error decoding JSON: {e}")
            return {}
            return session.get_linked_user
            return balance
    else:
        return {}

def save_user_data(user_data):
    with open('user_data.json', 'w') as file:
        json.dump(user_data, file, indent=4)

def add_nectarcoin(user_data, linked_user, amount):
    if linked_user in user_data:
        user_data[username]['nectarcoin'] += amount
    else:
        user_data[username] = {'nectarcoin': amount, 'last_claim_date': datetime.date.today().isoformat()}  # Start with 150 Nectarcoin

# Rest of your code...

def claim_daily_nectarcoin(user_data, username):
    today = datetime.date.today()
    if username in user_data:
        last_claim_date = user_data[username].get('last_claim_date')
        if last_claim_date != today.isoformat():
            user_data[username]['nectarcoin'] += 15
            user_data[username]['last_claim_date'] = today.isoformat()
            save_user_data(user_data)  # Save the updated user_data to the JSON file
    else:
        # Add the missing user to the database with an initial balance of 150 and today's date
        user_data[username] = {'nectarcoin': 150, 'last_claim_date': today.isoformat()}  # Start with 150 Nectarcoin
        save_user_data(user_data)  # Save the updated user_data to the JSON file

# Rest of your code...

def check_balance(user_data, username):
    if username in user_data:
        return user_data[username]['nectarcoin']
    else:
        # Add the missing user to the database with an initial balance of 150
        today = datetime.date.today()
        user_data[username] = {'nectarcoin': 150, 'last_claim_date': today.isoformat()}
        save_user_data(user_data)  # Save the updated user_data to the JSON file
        return 150  # Return 150 as the initial balance for the missing user

# Main program
if __name__ == "__main__":
    user_data = load_user_data()

    while True:
        print("Nectarcoin Menu:")
        print("1. Check Balance")
        print("2. Claim Daily Nectarcoin")
        print("3. Send Nectarcoin")
        print("4. Connect")
        print("5. Exit")

        choice = input("Enter your choice: ")

        if choice == "1":
            username = input("Enter your username: ")
            balance = check_balance(user_data, username)
            print(f"Your Nectarcoin balance: {balance}")

        elif choice == "2":
            username = input("Enter your username: ")
            claim_daily_nectarcoin(user_data, username)
            print("You have claimed 15 Nectarcoin for today.")

        elif choice == "3":
            sender = input("Enter your username (sender): ")
            receiver = input("Enter receiver's username: ")
            amount = int(input("Enter the amount to send: "))

            if sender in user_data and user_data[sender]['nectarcoin'] >= amount:
                add_nectarcoin(user_data, receiver, amount)
                user_data[sender]['nectarcoin'] -= amount
                print(f"{amount} Nectarcoin sent to {receiver}.")
            else:
                print("Insufficient funds.")

        elif choice == "4":
            try:
                connect()

                print("Connection established.")
            except Exception as e:
                print(f"Failed to connect: {e}")

        elif choice == "5":
            save_user_data(user_data)
            print("Exiting Nectarcoin.")
            break

        else:
            print("Invalid choice. Please try again.")

client.run()

Umm there is a on going issue with cloud variables on the scratch website that could be effecting all scratchattach servers out there


Problem creating a report

When I click on the link to create a report I get error message like this
error generating TeX file for dash {Title:  Description: VariableValues: Rows:[] Panels:[]}: error creating temporary directory at tmp/6c8ee8d1-7c03-497d-8801-fa04d92d3f27: mkdir tmp: no such file or directory
Is there any specific way to fix this, or am I just missing something?

Great, thanks for posting the solution so that others might find it useful.


Reserved urlencoded path symbols get  java.net.URISyntaxException: Illegal character in path

I need to request a url with square brackets in the path, like host://www.domain.com/[something]/etc.
I do URLEncoder.encode the path before passing the url to Unirest.get(url).
Anyway, this generate the exception: java.net.URISyntaxException: Illegal character in path at index...
in SystemDefaultRoutePlanner, line
targetURI = new URI(target.toURI());
I think the problem is that kong.unirest.apache.BaseApacheClient determineTarget uses URIUtils.extractHost(requestURI) that accept encoded URI but lose this encoding and return HttpHost without encoding.
Perhaps org.apache.http.client.utils.URIUtils should not be used in kong.unirest.apache.BaseApacheClient

You can't have square brackets in a directory path, it's against the URI spec, so encoding them is the only way to get it is to encode it. I'm not sure how you are doing that but here are two examples that work:
         Unirest.get("host://www.domain.com/" + URLEncoder.encode("[brackets]") + "/etc")
                .asSting();

        Unirest.get("host://www.domain.com/{param}/etc.")
                .routeParam("param", "[something]")
                .asString();

I added a test showing this working:
https://github.com/Kong/unirest-java/commit/c5c714a545b63c36f5cf914c881d3722104878e9

Thank you very much. Yes, it works OK.
It was my fault - I encoded the whole path (with the first slash).


Implement paging

When using list, nuget automatically tries to page with a pagesize of 30.
As paging is not implemented yet, it will output only 30 results and then endlessly loop with calls like:
GET http://myserver/Search()?$orderby=Id&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=30&$top=30&semVerLevel=2.0.0
OK http://myserver/Search()?$orderby=Id&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=30&$top=30&semVerLevel=2.0.0 40ms

Can be simply reproduced by calling:
nuget list -AllVersions -Verbosity detailed -Source http://myserver

Good catch. Would you like to send a pull request to improve this?

Fixed in #35


Error message in EntityView::set_pair refers to missing method add_pair

The error message reads: "setting tag relationships is not possible with set_pair. use add_pair instead."
However, this method does not exist.

Thanks for reporting it, fixed!


Realm <-> Realm authorization during indexing

In progress

This is blocked until we land https://github.com/cardstack/boxel/pull/1080.

Closing in favor of https://github.com/cardstack/boxel/pull/1201


fix(models): filter out reserved tag keys in points parser

This is an improvement to the validation done when parsing points. Certain tag keys are reserved and should not be used. This adds a validation step to the points parsing in the models package.
This step throws an error whenever any of the following tag keys are used:
"\xff"
"\x00"
"_measurement"
"_field"
"time"
Before this change was introduced the parsing benchmarks looked like this:
goos: darwin
goarch: amd64
pkg: github.com/influxdata/influxdb/models
BenchmarkParsePointsTagsSorted2-16       	 2000000	       664 ns/op	  76.76 MB/s
BenchmarkParsePointsTagsSorted5-16       	 2000000	       855 ns/op	  97.07 MB/s
BenchmarkParsePointsTagsSorted10-16      	 1000000	      1206 ns/op	 118.54 MB/s
BenchmarkParsePointsTagsUnSorted2-16     	 2000000	       789 ns/op	  64.57 MB/s
BenchmarkParsePointsTagsUnSorted5-16     	 1000000	      1117 ns/op	  74.26 MB/s
BenchmarkParsePointsTagsUnSorted10-16    	 1000000	      1838 ns/op	  77.78 MB/s
PASS
ok  	github.com/influxdata/influxdb/models	11.309s

Afterwards they look like this:
goos: darwin
goarch: amd64
pkg: github.com/influxdata/influxdb/models
BenchmarkParsePointsTagsSorted2-16       	 2000000	       745 ns/op	  68.38 MB/s
BenchmarkParsePointsTagsSorted5-16       	 2000000	       993 ns/op	  83.52 MB/s
BenchmarkParsePointsTagsSorted10-16      	 1000000	      1475 ns/op	  96.94 MB/s
BenchmarkParsePointsTagsUnSorted2-16     	 2000000	       874 ns/op	  58.33 MB/s
BenchmarkParsePointsTagsUnSorted5-16     	 1000000	      1243 ns/op	  66.73 MB/s
BenchmarkParsePointsTagsUnSorted10-16    	 1000000	      2037 ns/op	  70.18 MB/s
PASS
ok  	github.com/influxdata/influxdb/models	12.796s

So there is some slow down (roughly 10 - 15% slower). Any suggestions for improvements welcomed.

[ ] CHANGELOG.md updated with a link to the PR (not the Issue)
[x] Well-formatted commit messages
[x] Rebased/mergeable
[x] Tests pass
[x] http/swagger.yml updated (if modified Go structs or API)
[x] Documentation updated or issue created (provide link to issue/pr)
[x] Signed CLA (if not already signed)

@stuartcarnie Is there anything we need to do or be prepared for in order to roll this out safely?

@GeorgeMac in terms of preparing for a deployment  - we probably need to think about the fact this may break existing users or clients. Please check with @bpalani and explain the impact of this change.

neat will crack out benchstat


[deCONZ] Phoscon-GW: warning:

05FB9B6CAE: potentially stale api key: {"create date":"2022-02-22T16:22:22","last use date":"2022-02-22T16:53:32","name":"homebridge-deconz#dockerpi"}
is this normal, or a config error

There’s another API key with the same name in the deCONZ gateway.  This could be valid if you run multiple instances of Homebridge deCONZ on the same host, but most likely, you reset Homebridge or removed the cached accessories, without un-exposing the gateway first.

Everything is freshly installed, Homebridge is running in Docker (basement),
Deconz on an extra Rasperry Pi.

Hello, I have the same problem, I have tried to use the api, but I do not understand how to use it and it always gives me an error.  Is there any way you can explain to us how to remove the old api?

hello again, I thought that deleting and reinstalling the problem would solve it and I have found that I have tripled it.
I need help with the command for terminal to remove the api that I have left over. I can't figure out how to use the api.
I am very inexperienced in this API and I would appreciate a tutorial please.
Thank you very much in advance.

the same thing happened to me,
[2/24/2022, 10:52:50 PM] [deCONZ] Phoscon-GW: warning: 05FB9B6CAE: potentially stale api key: {"create date":"2022-02-22T16:22:22","last use date":"2022-02-22T16:53:32","name":"homebridge-deconz#dockerpi"}
[2/24/2022, 10:52:50 PM] [deCONZ] Phoscon-GW: warning: 573787698A: potentially stale api key: {"create date":"2022-02-22T18:26:09","last use date":"2022-02-24T20:38:21","name":"homebridge-deconz#dockerpi"}
[2/24/2022, 10:52:50 PM] [deCONZ] Phoscon-GW: warning: 927A80A6A5: potentially stale api key: {"create date":"2022-02-24T20:41:38","last use date":"2022-02-24T20:52:51","name":"homebridge-deconz#dockerpi"}
otherwise the plugin runs great

I am very inexperienced in this API and I would appreciate a tutorial please.

Please folks, I am not your personal help desk, nor your teacher.  If you want to learn about the REST API provided by deCONZ, please see the documentation over at their GitHub repository.

Phoscon-GW: warning: 05FB9B6CAE: potentially stale api key

Homebridge deCONZ needs an API key to communicate with deCONZ over the API.  deCONZ stores the keys it has given out; Homebridge deCONZ stores the key it has obtained in cachedAccessories.  If you delete the gateway accessory from there, or if you bluntly re-install Homebridge, Homebridge deCONZ no longer knows the API key, and needs to obtain a new API key.  However, deCONZ still has the old key.
To prevent this from happening, make sure to deselect Expose on the Gateway Settings, so Homebridge deCONZ removes the API key from deCONZ, before deleting (the gateway accessory from) cachedAccessories.
deCONZ stores API keys under application name and hostname (that's the name attribute in the warning message), as specified by the (new) client when requesting an API key.  Homebridge deCONZ uses homebridge-deconz for application name (duh), and the hostname of the system it's running on as hostname.  If you were to run multiple instances of Homebridge deCONZ on the same system, their corresponding API keys would have the same name.  Homebridge deCONZ doesn't know whether the other API key with the same name is legit, because it belongs to another Homebridge deCONZ instance, or stale, left behind by deleting the accessory.  Therefore Homebridge deCONZ cannot bluntly delete any other API key with the same name.  Hence it issues the warning.
If the API key is indeed stale, you could either ignore the warning message, or delete it using the API.  The API exposes the API keys under /config/whitelist.  I prefer to use the deconz command-line utility bundled with Homebridge deCONZ to interact with the API, but any REST client like Postman or even curl would do.
Using deconz, you simply issue deconz delete /config/whitelist/api-keyfrom the command line. Note that unlessdeconzis run on the same system as deCONZ, and deCONZ is running on port 80, you need to specify the hostname and port todeconzusing-H.  Before you can use deconz, it needs to obtain an API key, just like any API client.  Issue deconz -h` for help.

Thank you very much, it is true that you are not our personal help desk. But given the problem and the lack of understanding of the api, we need to ask you.
Sorry for the consecutive messages but I reiterate that for people with little programming experience the api are complicated and even if I do deconz --help for me that help is little explained
Thanks for your extensive answer, as I understand that someone else will have this problem at some point I have managed to remove the old api. Removing the old api, the other connection problems with accessories were also eliminated
I have used this command line
deconz -H localhost:4530 delete /config/whitelist/number of api in the warning

Thank you very much

Please folks, I am not your personal help desk, nor your teacher. If you want to learn about the REST API provided by deCONZ, please see the documentation over at their GitHub repository.

That's a shameful answer, to be honest! I'm grateful for your work, but you should rise above that kind of comment. I do not know, but I'm probably not the only one who credits your work, financially ... I'm well aware that, your time is not commensurate with what you receive.  So it's not okay to ask questions? You launch something, and prompt, warn against HUE being deleted as a plugin. I would like to contribute to the development, but not with your premise.

For newer people running in to this wanting to learn; here's deCONZ API documentation:
https://dresden-elektronik.github.io/deconz-rest-doc/endpoints/configuration/#delete-api-key
It helped me in this case. Appreciate your work, ebaauw.

after a new install i got this:
[11/22/2023, 9:49:05 AM] [deCONZ] DeConz: warning: FC6FFC23BF: potentially stale api key: {"create date":"2023-11-20T11:52:53","last use date":"2023-11-21T16:16:27","name":"homebridge-deconz#homebridge"}
i tried this to solve it:
deconz -H <IP_ADDRESS>:8081 delete /config/whitelist/FC6FFC23BF
and the i get this:
root@homebridge:/var/lib/homebridge $ deconz -H <IP_ADDRESS>:8081 delete /config/whitelist/FC6FFC23BF
deconz delete: request 1: DELETE /config/whitelist/FC6FFC23BF
deconz delete: error: request 1: /config/whitelist/FC6FFC23BF: api error 1: unauthorized user
How to solve this? Do i have to optain a new api-key to delete the whitelist ?


Failed to open .caffemodel: "index out of range"

While opening .caffemodel, Netron v1.6.3 failed with the following message

RangeError: index out of range: 128062 + 10 > 128062

Can you share the model file?


Add utils tests

These are now public API, so they should be tested explicitly rather than just through integration testz

Resolved in #66