Please make sure libcudnn_ops_infer.so.8 is in your library path?

I keep getting this error no matter what I do:
Run on GPU with float16
Estimating duration from bitrate, this may be inaccurate
Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory
Please make sure libcudnn_ops_infer.so.8 is in your library path!
Aborted (core dumped)
find / -name "libcudnn_ops_infer.so.8"
/home/silvacarl/.local/lib/python3.8/site-packages/nvidia/cudnn/lib/libcudnn_ops_infer.so.8
any ideas?
PATH=$(echo "$PATH:/usr/local/cuda-11.7/bin:/usr/lib/x86_64-linux-gnu:/home/silvacarl/.local/lib/python3.8/site-packages/nvidia/cudnn/lib")
LD_LIBRARY_PATH="/usr/local/cuda-11.7/lib64:/usr/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/home/silvacarl/.local/lib/python3.8/site-packages/nvidia/cudnn/lib"
even that doesnt work.

i created a fresh ubuntu 20.04.
for some reason this is not getitng installed: libcudnn_ops_infer.so.8
which pip package does this come from?

I apologize, i was testing this on WSL2.  on Ubuntu 20.04 in a VM, works great.
will check it on GPU next.

ok, tried everything i can think of, this:
import time
from faster_whisper import WhisperModel
model_size = "large-v2"
print("Run on GPU with float16")
model = WhisperModel(model_size, device="cuda", compute_type="float16")
start_time = time.time()
segments, info = model.transcribe("12694263-Joan-Svarczkopf.mp3", beam_size=5)
print(info)
print("Detected language '%s' with probability %f" % (info.language, info.language_probability))
print("--- %s seconds ---" % (time.time() - start_time))
for segment in segments:
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
print("--- %s seconds ---" % (time.time() - start_time))
gives me this error no matter what I do:
$ python faster-whisper-test.py
Run on GPU with float16
Estimating duration from bitrate, this may be inaccurate
Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory
Please make sure libcudnn_ops_infer.so.8 is in your library path!
Aborted (core dumped)

$ whisper-ctranslate2 12694263-Joan-Svarczkopf.mp3 --compute_type int8_float16
Detecting language using up to the first 30 seconds. Use --language to specify the language
100%|████████████████████████████████████████| 922M/922M [00:03<00:00, 273MiB/s]
100%|█████████████████████████████████████| 2.29k/2.29k [00:00<00:00, 13.3MiB/s]
100%|███████████████████████████████████████| 449k/449k [00:00<00:00, 2.69MiB/s]
100%|█████████████████████████████████████| 2.10M/2.10M [00:00<00:00, 9.16MiB/s]
Estimating duration from bitrate, this may be inaccurate
Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory
Please make sure libcudnn_ops_infer.so.8 is in your library path!
Aborted (core dumped)

The same happened to me using an Anaconda virtual environment, this is the solution I found:
mkdir -p $CONDA_PREFIX/etc/conda/activate.d

echo 'CUDNN_PATH=$(dirname $(python3 -c "import nvidia.cudnn;print(nvidia.cudnn.__file__)"))' >> $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh

echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/:$CUDNN_PATH/lib' >> $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh

source $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh

I had this error in runpod.io. The following helped:
!apt-get install libcudnn8
!apt-get install libcublas-12-0 -y

this nailed it for me:
export LD_LIBRARY_PATH=$(echo "$LD_LIBRARY_PATH:/usr/local/cuda-11.7/targets/x86_64-linux/lib/:/home/silvacarl/.local/lib/python3.8/site-packages/nvidia/cudnn/lib/")

@silvacarl2 you save my day, thank you

any time, ctranslate2 is awesome


[Feat:Improve Unit Test Coverage for pkg/ Directory]

Improve Unit Test Coverage for pkg/ Directory
Current Situation
The pkg/ directory currently has limited unit test coverage. Some critical code paths and edge cases remain untested, which could lead to undetected bugs and reduced code reliability.
Impact
The lack of comprehensive unit tests in the pkg/ directory can result in:

Increased risk of regressions during future code changes.
Difficulty in identifying and fixing bugs efficiently.
Reduced confidence in the stability and reliability of the codebase.

Ideal Future Situation
The pkg/ directory should have robust and comprehensive unit tests that cover all critical code paths and edge cases. This would:

Increase the test coverage as much as possible.
Ensure that the codebase is stable and resilient to changes.
Facilitate faster development and debugging by identifying issues early.

Implementation Options

Audit Existing Tests: Identify gaps in the current test coverage and prioritize adding tests for untested or under-tested code.
Add Unit Tests: Write detailed unit tests for each module under the pkg/ directory, covering:

Edge cases.
Common use cases.
Potential failure scenarios.

Use Coverage Tools: Utilize tools like go test -cover to measure coverage and identify areas that need improvement.

Additional Information

Testing should adhere to the existing project standards and use consistent naming conventions.
Mocking and stubbing may be used where necessary to isolate unit tests from external dependencies.
Ensure that the added tests are maintainable and easy to understand.

Let me know , if I can take this  on !! I would be happy to contribute.

Let me know , if I can take this on !! I would be happy to contribute.

Any 1% increase in test coverage would be welcomed!!!
Feel free to choose a package you want add test, open an issue and ping me so I could assign it to

Thanks ! For your kind response
Could you share your slack ...I am already in the cncf group .

@eiffel-fl Do we have discussed the idea of this proposal to the team ?...just curious to know so


未知错误

Microsoft PowerToys version
0.67.0
Installation method
GitHub, PowerToys auto-update, Microsoft Store
Running as admin
Yes
Area(s) with issue?
General, Settings, System tray interaction
Steps to reproduce
在系统托盘中启动功能后几分钟后出现错误
✔ Expected Behavior
No response
❌ Actual Behavior
No response
Other Software
PowerToysReport_2023-02-05-12-31-52.zip
PowerToysReport_2023-02-05-12-24-03.zip
PowerToysReport_2023-02-05-12-32-19.zip

Can you please describe what you're observing? Even a screenshot might help. /needinfo

closing due to inactivity


Status name overflows the 'default status' banner

Describe the bug
Given that there seem to be no length limitation on application status names, very long names overflow the 'application submitted' banner.
To Reproduce
Steps to reproduce the behavior:

As a CiviForm admin, go to the Programs tab.
Find a draft program (or create one if needed).
Click on the three dots menu to the right and select "Manage application statuses."
Click on the "Create a new status" button.
Give your new status a very long name.
Select the "Set as default status" checkbox.
Click the "Confirm" button.
Click "OK" on the "The default status will be updated to..." popup.
See the green banner which says:  " has been updated to the default status."  Notice that the text overflows the banner.

Expected behavior
I expect the application status name to fit within the bounds of the banner.  If we want to allow for longer names (not sure why we would need such long names), we could truncate them within the banner.
Screenshots

Desktop (please complete the following information):

OS: iOS
Browser: Chrome
Version: 113.0.5672.126

Smartphone (please complete the following information):
Did not verify bug on mobile.
Additional context
As a technical note, I would suggest adding a length limit on the status name input field.  Apart from fixing this particular bug, it would prevent other such bugs from occurring.

@melanie-exygy Similar to #5001 this only occurs with an unbroken block of text. Another place where I agree a character limit is needed though.

Consulted ppl in prox-management since it's more of a product question -  it seems like we're on board with limiting status to 35 characters. I will add this limit to the PR.

Seattle has multiple entries that are greater than this limit.
Instead of limiting the character count we could wrap or truncate the text in the banner since it's just a UI issue.

Seattle has multiple entries that are greater than this limit.
Instead of limiting the character count we could wrap or truncate the text in the banner since it's just a UI issue.

No problem. I can fix this soon.

Looks like this is fixed. Can this issue be closed?

How's it look with a long string that has no spaces to naturally break on?

Looks like this is fixed. Can this issue be closed?

The issue is still present.  The status needs to be a long string without spaces.


Introspection request ignores token's expiration time

Created by: @yetizer Apr 08 2021 at 16:44 CET
Last updated: Jul 07 2021 at 09:28 CET
ClickUp ID: IK-777
I've set up a sample application that uses the SDK (node.js) to perform token introspection.  When parsing the response in tokenInfo I am expecting to be able to retrieve the expiration timestamp with:
tokenInfo.expireTime.seconds
Instead I am getting an "undefined" error.
Attachment(s):
https://github.com/indykite/clickup-attachments/blob/master/4a5431b6-f430-4b40-a4f5-1ee291ec973a.js

Commented by: @bradtumy Apr 08 2021 at 16:48 CET
I've attached my sample js file

Commented by: @bradtumy Apr 08 2021 at 16:49 CET
I am handling the error with an If statement for now but can remove that to get the actual error that occurs

Commented by: @yetizer Apr 08 2021 at 17:02 CET
error handling in nodej sdk needs to be done differently; testing if you got actuall response or error is not the best thing to do

Commented by: @bradtumy Apr 16 2021 at 20:38 CET
@yetizer I think we can close this as "not reproducible ".  I was able to rebuild my local docker environment and I am no longer seeing this error.

Closed: Apr 27 2021 at 13:40 CET


Use Uuid7.Empty as default zero value when no other value is available

There are some cases where Structs can be created without utilizing any of the constructors. This is because structs are a value type, and the compiler can just allocate the memory if it needs to. This happens a lot in EFCore, but can also happen when you create an array of Uuid7s, and likely some other scenarios. In this case, the Uuid7 should initialize to a valid zero value. But, there's no way assign a default Bytes array, which means it was null, instead.
This changes checks that the Bytes array has actually been initialized before use, and substitutes the properly initialized Empty Bytes array if not.
This will hopefully resolve some problems I've been having with EFCore.

Just to confirm that I saw it but... I am a bit worried about performance implications. I will check it over weekend and look at it a bit deeper.

After checking it for a while, I decided not to take your pull request in its current form. Don't misunderstand me, you find a valid issue and a miss on my side. However, there is a measurable performance effect for general UUID generation for something that should be a corner case.
I did some work on that issue by hardening comparison functions to deal properly with Bytes=null case and that sorted out the underlying issue in slightly different manner.
That said, I would appreciate if you would contribute your test-case changes since they are valid test that was completely missed by me. If you would modify pull request to include only test, I would appreciate it.

That works for me! I can make that update soon

@medo64 I pulled out just the tests

Tnx!


fix: modify regex to accept arrow syntax for IIFE

Pre-Submission Checklist

[ ] Your pull request targets the staging branch of freeCodeCamp. (No staging branch, targets next)
[X] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[X] You have only one commit (if not, squash them into one commit).
[X] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[X] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[X] Tested changes locally.
[X] Addressed currently open issue (replace XXXXX with an issue no in next line)

Closes #18193
Description

This PR modifies the regex condition for this challenge to accept an anonymous function with either the
function () {} syntax, or the () => {} syntax.

Hi @ZackWard
Thanks a lot for taking the time to prepare this PR. Unfortunately these files were moved to their location here:
https://github.com/freeCodeCamp/freeCodeCamp/blob/next/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/understand-the-immediately-invoked-function-expression-iife.english.md
Can you please make a fresh PR.
Thanks.


Update Swedish translations

Q
A

Bug fix?
[x]

New feature?
[ ]

New sample?
[ ]

What's in this Pull Request?
Fixed Swedish tranlations of Months, name of days (lower case in Swedish). Date format YYYY-MM-DD. Compared translations with Swedish version of Word 365 , OneDrive and Teams. @patrikhellgren vänligen kontrollera mina översättningar. /Henrik

@Henke-visual many thanks, this has now been merged

Cool. Happy to contribute 👍

@Henke-visual Sorry I didn't manage to get my comments in before the merge.

ModernTaxonomyPickerDefaultPlaceHolder - This should really be "Ange en term som du vill tagga" since that is the out-of-the-box translation in Swedish sites. Even though it might not be the best Swedish, I think it is more important to have the same translation since the rest of the control looks like the out-of-the-box control and it would be confusing for the end users if the wording was different.

DateTimePickerHourValueInvalid - There is a space in the beginning of the string that probably should not be there.

Everything else seems ok and great work. Would you like me to submit a new PR or will you do it yourself?

Thanks for checking.
Yes please proceed and submit the PR.
Regards,
Henrik

Från: Patrik Hellgren @.***>
Skickat: onsdag 26 januari 2022 23:07
Till: pnp/sp-dev-fx-controls-react
Kopia: Henrik Svensk; Mention
Ämne: Re: [pnp/sp-dev-fx-controls-react] Update Swedish translations (PR #1099)
@Henke-visualhttps://github.com/Henke-visual Sorry I didn't manage to get my comments in before the merge.

ModernTaxonomyPickerDefaultPlaceHolder - This should really be "Ange en term som du vill tagga" since that is the out-of-the-box translation in Swedish sites. Even though it might not be the best Swedish, I think it is more important to have the same translation since the rest of the control looks like the out-of-the-box control and it would be confusing for the end users if the wording was different.
[image]https://user-images.githubusercontent.com/31273837/151254348-14593a3d-4aac-4bb7-8946-045c12e37513.png

DateTimePickerHourValueInvalid - There is a space in the beginning of the string that probably should not be there.

Everything else seems ok and great work. Would you like me to submit a new PR or will you do it yourself?
—
Reply to this email directly, view it on GitHubhttps://github.com/pnp/sp-dev-fx-controls-react/pull/1099#issuecomment-1022647145, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APGSVEAUCYWJ72FZNT7HMP3UYBWAXANCNFSM5MZGCUWA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>


Redirection back to create account page

During the account creation flow, the POST to /create_account renders the login template, so that the user can log in immediately after successful account creation. When this template renders, it checks the request path and puts the URL for /create_account in the redirect_url hidden input. Thus, after the user successfully logs in, they are sent back to the create account page, rather than the home page.
Either the conditions inside the login template should be changed to avoid this, or the whole flow should be redone, using POST-to-GET refresh redirects, in a way that avoids the same issue.

This should be fixed now.


Compiler error in task_group.h since Visual Studio updated to 15.7.1

I'm getting a compiler error

[...]tbb\task_group.h(94): error C2530: 'my_task': references must be initialized

since I've updated Visual Studio to version 15.7.1 (possibly also 15.7).
Just including the main header tbb/tbb.h causes the error to occur (no additional code required). I've also opened a question on stackoverflow.
System info:

TBB 2018 Update 3 (just rebuild it using vcpkg package manager, tbb:x64-windows package)
Visual Studio 15.7.1
Windows 10 Pro x64 1709 (build 16299.431)

I have failed to reproduce the issue with Visual Studio (without vcpkg). I tried c++17 and c++latest but tbb/tbb.h is compiled successfully. Is it possible to capture the compiler switches (in the output log) when the compiler is invoked with vcpkg?

If I understand the issue correctly, then the only relevance vcpkg has is that it adds the folder containing tbb/tbb.h to the MSBuild additional include directories (which translates to a /I). Notably, we don't modify the user's /std:xyz setting.

Same issue: https://stackoverflow.com/q/50275673/2230159

@alexey-katranov The compiler for the debug build is invoked with
CL.exe /c /I. /Zi /nologo /W4 /WX- /diagnostics:classic /Od /D _WINDLL /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"C:\libs\vcpkg\buildtrees\tbb\src\tbb-633b01ad27e012e1dc4e392c3230250d1f4967a4\build\vs2013\x64\tbb\Debug\\" /Fd"C:\libs\vcpkg\buildtrees\tbb\src\tbb-633b01ad27e012e1dc4e392c3230250d1f4967a4\build\vs2013\x64\tbb\Debug\vc141.pdb" /Gd /TP /FC /errorReport:queue   /c /MDd /Od /Ob0 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_USE_DEBUG /D__TBB_LIB_NAME=tbb_debug.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBB_BUILD=1 /W4 /I../../src /I../../src/rml/include /I../../include ..\..\src\tbb\concurrent_hash_map.cpp ..\..\src\tbb\concurrent_queue.cpp ..\..\src\tbb\concurrent_vector.cpp ..\..\src\tbb\dynamic_link.cpp ..\..\src\tbb\itt_notify.cpp ..\..\src\tbb\cache_aligned_allocator.cpp ..\..\src\tbb\pipeline.cpp ..\..\src\tbb\queuing_mutex.cpp ..\..\src\tbb\queuing_rw_mutex.cpp ..\..\src\tbb\reader_writer_lock.cpp ..\..\src\tbb\spin_rw_mutex.cpp ..\..\src\tbb\x86_rtm_rw_mutex.cpp ..\..\src\tbb\spin_mutex.cpp ..\..\src\tbb\critical_section.cpp ..\..\src\tbb\mutex.cpp ..\..\src\tbb\recursive_mutex.cpp ..\..\src\tbb\condition_variable.cpp ..\..\src\tbb\tbb_thread.cpp ..\..\src\tbb\concurrent_monitor.cpp ..\..\src\tbb\semaphore.cpp ..\..\src\tbb\private_server.cpp ..\..\src\rml\client\rml_tbb.cpp ..\..\src\tbb\tbb_misc.cpp ..\..\src\tbb\tbb_misc_ex.cpp ..\..\src\tbb\task.cpp ..\..\src\tbb\task_group_context.cpp ..\..\src\tbb\governor.cpp ..\..\src\tbb\market.cpp ..\..\src\tbb\arena.cpp ..\..\src\tbb\scheduler.cpp ..\..\src\tbb\observer_proxy.cpp ..\..\src\tbb\tbb_statistics.cpp ..\..\src\tbb\tbb_main.cpp ..\..\src\old\concurrent_vector_v2.cpp ..\..\src\old\concurrent_queue_v2.cpp ..\..\src\old\spin_rw_mutex_v2.cpp ..\..\src\old\task_v2.cpp

I just verified the error on another machine.

@Dimension4 I tried your command but it does not reproduce the issue. Could you, please, repeat my experiment to understand if the issue relates to the specific environment or vcpkg somehow? I source the Visual Studio environment for 'x64' and build the TBB sources with the provided command:
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.7.1
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

> CL.exe /c /I. /Zi /nologo /W4 /WX- /diagnostics:classic /Od /D _WINDLL /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"C:\libs\vcpkg\buildtrees\tbb\src\tbb-633b01ad27e012e1dc4e392c3230250d1f4967a4\build\vs2013\x64\tbb\Debug\\" /Fd"C:\libs\vcpkg\buildtrees\tbb\src\tbb-633b01ad27e012e1dc4e392c3230250d1f4967a4\build\vs2013\x64\tbb\Debug\vc141.pdb" /Gd /TP /FC /errorReport:queue   /c /MDd /Od /Ob0 /Zi /EHsc /GR /Zc:forScope /Zc:wchar_t /DTBB_USE_DEBUG /D__TBB_LIB_NAME=tbb_debug.lib /DDO_ITT_NOTIFY /GS /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE /D_WIN32_WINNT=0x0502 /D__TBB_BUILD=1 /W4 /I../../src /I../../src/rml/include /I../../include ..\..\src\tbb\concurrent_hash_map.cpp ..\..\src\tbb\concurrent_queue.cpp ..\..\src\tbb\concurrent_vector.cpp ..\..\src\tbb\dynamic_link.cpp ..\..\src\tbb\itt_notify.cpp ..\..\src\tbb\cache_aligned_allocator.cpp ..\..\src\tbb\pipeline.cpp ..\..\src\tbb\queuing_mutex.cpp ..\..\src\tbb\queuing_rw_mutex.cpp ..\..\src\tbb\reader_writer_lock.cpp ..\..\src\tbb\spin_rw_mutex.cpp ..\..\src\tbb\x86_rtm_rw_mutex.cpp ..\..\src\tbb\spin_mutex.cpp ..\..\src\tbb\critical_section.cpp ..\..\src\tbb\mutex.cpp ..\..\src\tbb\recursive_mutex.cpp ..\..\src\tbb\condition_variable.cpp ..\..\src\tbb\tbb_thread.cpp ..\..\src\tbb\concurrent_monitor.cpp ..\..\src\tbb\semaphore.cpp ..\..\src\tbb\private_server.cpp ..\..\src\rml\client\rml_tbb.cpp ..\..\src\tbb\tbb_misc.cpp ..\..\src\tbb\tbb_misc_ex.cpp ..\..\src\tbb\task.cpp ..\..\src\tbb\task_group_context.cpp ..\..\src\tbb\governor.cpp ..\..\src\tbb\market.cpp ..\..\src\tbb\arena.cpp ..\..\src\tbb\scheduler.cpp ..\..\src\tbb\observer_proxy.cpp ..\..\src\tbb\tbb_statistics.cpp ..\..\src\tbb\tbb_main.cpp ..\..\src\old\concurrent_vector_v2.cpp ..\..\src\old\concurrent_queue_v2.cpp ..\..\src\old\spin_rw_mutex_v2.cpp ..\..\src\old\task_v2.cpp
task_v2.cpp
spin_rw_mutex_v2.cpp
concurrent_queue_v2.cpp
concurrent_vector_v2.cpp
tbb_main.cpp
tbb_statistics.cpp
observer_proxy.cpp
scheduler.cpp
arena.cpp
market.cpp
governor.cpp
task_group_context.cpp
task.cpp
tbb_misc_ex.cpp
tbb_misc.cpp
rml_tbb.cpp
private_server.cpp
semaphore.cpp
concurrent_monitor.cpp
tbb_thread.cpp
Generating Code...
Compiling...
condition_variable.cpp
recursive_mutex.cpp
mutex.cpp
critical_section.cpp
spin_mutex.cpp
x86_rtm_rw_mutex.cpp
spin_rw_mutex.cpp
reader_writer_lock.cpp
queuing_rw_mutex.cpp
queuing_mutex.cpp
pipeline.cpp
cache_aligned_allocator.cpp
itt_notify.cpp
dynamic_link.cpp
concurrent_vector.cpp
concurrent_queue.cpp
concurrent_hash_map.cpp
Generating Code...

> cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.14.26428.1 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

Simply removing /permissive- (e.g. set Comformance Mode to No in the C/C++ options) gets past this issue. I would think Intel would fix this soon)

Indeed, adding /permissive- allows to reproduce the issue (with VS 15.7.4 / compiler version 19.14.26431 in my case).
However, this is a compiler bug. The code is perfectly valid, compliant C++; the reference is explicitly initialized in the initializer list of the constructor, as it can be seen in the code:
https://github.com/01org/tbb/blob/615bb971db8784ab6c005a856e8ed3e8cea61d9b/include/tbb/task_group.h#L96
Note also that this is seemingly a regression in VS, because at least the initial release of VS 2017 (15.0.something) compiles the code even with /permissive-.
I have tried to remove inheritance from no_copy and explicitly declare the default ctor and copy ctor as deleted, however this did not help. The only other way to work it around I could think of is to use a pointer instead of reference; but this is quite undesirable.

I opened a bug: https://developercommunity.visualstudio.com/content/problem/278652/vs-157-incorrectly-reports-c2530-with-permissive-o.html

A workaround was added into TBB 2019 Update 1.


CC-1589 Upgrading ecs service module version to fix multi lb name len…

…gth issue.

CI: No IaC security warnings found


what is URN

URN is 164 characters after
**** Translating
file:

that 164 characters is URN?? or without "=="

The URN gets composed based on an encoding of your bucket name, your file name with the extension, you can decode it with different tools online, try it with the == signs and without, if you see that everything matches, the best one to use will be the non equals one.


Prez refactor

This work will refactor Prez to only provide OGC compliant endpoints and not render HTML; which will be left to a vue JS frontend application.
Significant changes include generalising SPARQL queries to a common CONSTRUCT template; separation of SPARQL requests for context (where required, currently only for HTML) and further use of profiles to allow rendering of complex property chains, inbound links etc.

@jamiefeiss @nicholascar
Working:

'data' endpoints for spaceprez and vocprez: (dataset, feature collection, feature, concept scheme, vocabulary, collection, concept, listings of all of these)
basic unit tests for all of the data endpoints above. These compare the API response to what is in tests/data//expected_responses. @jamiefeiss if you find the API responses are missing data you need (they will be), you can update these RDF files to make the tests fail, and I can update the code accordingly @nicholascar the tests which require a SPARQL endpoint now use conftest.py to define environment variables; so the copying of config files is no longer necessary
parameterised SPARQL queries for objects, listings, and annotations (labels, descriptions etc.)
graph cache for tbox labels
inclusion of property paths via sh:sequencePath (see example in https://github.com/RDFLib/prez/blob/3202acc6f878c30b80c8b16ae1ca918d93083a56/prez/profiles/vocprez_default_profiles.ttl#L126)
inclusion of properties via profiles
exclusion of properties via profiles
inverse properties ("inbound links") via profiles
redirection for /object?uri=... for spaceprez only

To do:

CQL functionality
test performance of concurrent annotation queries (labels etc.) vs. a single query
non 'data' endpoints (home etc.)
document the profile functionality
performance test inclusion/exclusion methods (FILTER, VALUES, explicit graph pattern matches)
extend SPARQL CONSTRUCT for listings to include a sample of members - this may require explicit specification of the 'list' property in profiles, as per example query

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>

CONSTRUCT {<https://linked.data.gov.au/dataset/facilities/education> ?p ?o}
WHERE {
  {
    <https://linked.data.gov.au/dataset/facilities/education> !rdfs:member ?o ;
                                                               ?p ?o
  }
  UNION
  {
    SELECT * {
      <https://linked.data.gov.au/dataset/facilities/education> rdfs:member ?o ;
                                                                ?p ?o
    } LIMIT 20
  }
}

startup caching of labels
logging
unify vocprez item/listing objects as per spaceprez object, if possible
all catprez objects/functionality

Thanks for the list, I've checked a few off, will update here as I go


Benchmark improvements & fixes

This:

(https://github.com/crystal-lang/crystal/commit/16eb8bb58a051a53039db29cabe5a57fc6d0994d) Fixes that when doing this: Benchmark.ips {}, that this happens:Unhandled exception: Empty enumerable (Enumerable::EmptyError)
  from /usr/lib/crystal/benchmark/ips.cr:727:5 in 'run_comparison'
  from /usr/lib/crystal/benchmark/ips.cr:40:9 in 'execute'
  from /usr/lib/crystal/benchmark.cr:113:5 in '__crystal_main'
  from /usr/lib/crystal/crystal/main.cr:97:5 in 'main_user_code'
  from /usr/lib/crystal/crystal/main.cr:86:7 in 'main'
  from /usr/lib/crystal/crystal/main.cr:106:3 in 'main'
  from __libc_start_main
  from _start
  from ???

Or for Benchmark.bm {}, this happens:       user     system      total        real

That error can be quite confusing and the empty benchmark doesn't seem quite right to me either. Now instead, nothing happens and the benchmark will get skipped. And if you for whatever reason want to do macro stuff in a Benchmark.ips, you don't have to handle the case where the benchmark is empty.
(https://github.com/crystal-lang/crystal/commit/16eb8bb58a051a53039db29cabe5a57fc6d0994d) Currently this:Benchmark.bm do |bm|
  bm.report
end

results in:in line 2: 'Benchmark::BM::Job#report' is expected to be invoked with a block, but no block was given

which is of course the expected behaviour.
But this?Benchmark.ips do |bm|
  bm.report
end

you will get this!Unhandled exception: Empty enumerable (Enumerable::EmptyError)
  from /usr/lib/crystal/benchmark/ips.cr:761:5 in 'report'
  from /eval:3:3 in '__crystal_main'
  from /usr/lib/crystal/crystal/main.cr:97:5 in 'main_user_code'
  from /usr/lib/crystal/crystal/main.cr:86:7 in 'main'
  from /usr/lib/crystal/crystal/main.cr:106:3 in 'main'
  from __libc_start_main
  from _start
  from ???

That's not a very helpful error. But why does this happen? It's because the method to print out the results is called report without a block. But now this method is renamed to print_results in order to fix this.
(https://github.com/crystal-lang/crystal/commit/0f1ff3573cbacc0d219ff94cef3d293e61c9f515) Minorly improves documentation.

Ever planned on merging this?

In Ruby the output is:
       user     system      total        real

Is that the output in this PR? I think because it ends early nothing gets printed, which might be confusing.


Replace 'set-output'

Fix MAAP-Project/maap-documentation#145 and NASA-IMPACT/active-maap-sprint#411

The post to CI is 404. Not sure why without access to the secrets, but from the action run it looks like my update is correct. Requesting review to confirm.


Implement python black formatting for the dataquery subpackage

Running the following command on the dataquery subpackage and its unittest:
python -m black macrosynergy/dataquery
python -m black tests/unit/dataquery

which enforces the black automatic formatting of the code (a modification to the PEP-8 standard).

Closing. Other PR incorporates python black.


Added Haskell version of llama2.c

I noticed there was no Haskell version, so I implemented it for the sake of completeness

wow very cool ty :)


Disabling the Show Sticker option will keep it visible but glitched

Describe the bug
If the Show Sticker option is disabled on the Options, it will still show the sticker but slightly bugged.
This only happens when using the Options and not the Tools menu, and the visual glitch can be visually fixed by moving or resizing the window.
To Reproduce

Position a Sticker so is covering the Bottom or Top Bars
Go to the settings, disable the Show Sticker option and press OK

Expected Behavior
The big sticker is not glitched.
Environment
PyCharm 2020.3.4 (Community Edition)
Build #PC-203.7717.65, built on March 16, 2021
Runtime version: 11.0.10+8-b1145.96 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 976M
Cores: 4
Non-Bundled Plugins: io.acari.DDLCTheme, io.unthrottled.amii
Screenshots
With a huge custom sticker:

With the stock Miku sticker but slightly repositioned:

Interesting. I've been able to verify the issue. I'll have this fixed in the next release.
Thanks for taking the time to report this issue and providing very helpful supporting information! and for being my sticker tester


add a sentinel file to build dir to avoid re-running cmake

This is my "rebased" version of PR #113.

In my testing thus far, this change seems to be working.

lgtm

An interesting quirk of this MR is that you now have to obi clean or manually re-run cmake if you change the cmake-args.
We could consider storing the value of cmake-args in that hello-obi.txt file when it's creating, and comparing the current value with the value stored in the filesystem to determine whether to re-run cmake.

filed here #120


[taskflow] new version 3.3.0

Describe the pull request
Updated to new release 3.3.0

If you have added/updated a port: Have you run ./vcpkg x-add-version --all and committed the result?

Yes

Thanks for the update!


[test] temporarily fix HPCG reference version

Hello @sebkelle1, Thank you for updating!

In the file cscs-checks/microbenchmarks/hpcg/hpcg_benchmark.py:

Line 27:80: E501 line too long (85 > 79 characters)

Do see the ReFrame Coding Style Guide


Add support for static AWS credentials in GlueHiveMetastore

This PR adds support for specifying static AWS credentials for GlueHiveMetastore through two new configuration options, hive.metastore.glue.aws-access-key and hive.metastore.glue.aws-secret-key. This is helpful in situations where someone may want to access a glue catalog through Presto without running the cluster on AWS infrastructure.
I believe this may also resolve #726 as a side effect.

@findepi All review comments addressed.

@findepi I think the product test flaked: https://travis-ci.com/prestosql/presto/jobs/199445614


Bump packaging from 21.3 to 22.0 (#5228)

Pull request opened by the merge tool on behalf of #5228

Merged in a293aa71a4007d52a0aa52037115f354ea8c64ed


Increase proxy support tests timeouts

The ProxySupportSpecs kept failing remotely due to timeouts.
This PR increases the timeouts of both tests and changes the specification title to make it easier to distinguish the spray proxy results from the akka-http proxy results-

LGTM


Divisional Stage - Awaiting Fees - Due Date

As a Ministry user
I want to set a due date when I have a division in the stage "awaiting fees"
so that I know when I need to follow up and/or move to gather records

Assumptions & Scope
This story is based on user feedback around how some teams process their requests. This due date picker for awaiting fee estimate will assist Ministry teams that first canvass their divisions for fees before switching over to gathering records.
Due dates should also trigger notifications consistent with other divisional tracking notifications.
What is IN scope?
Adding a due date picker for awaiting fee estimate
What is NOT in scope?
Acceptance Criteria
Scenario 1: Due Date and E-Approval Fields

GIVEN a Ministry coordinator is on the review request page
AND they have selected a division
WHEN they select the divisional stage "Awaiting Fee Estimate"
THEN two additional fields will appear: a free text field for E-Apps/Other
AND a field for a due date, that includes a calendar picker consistent with other calendar pickers used in the application
https://jacklyn808742.invisionapp.com/console/share/3W2O64AP5C/768088423

Scenario 2: Due Date Calendar Picker - Activation

GIVEN a Ministry coordinator has selected a divisional stage that reveals the due date calendar picker
WHEN they click on the calendar icon
THEN the will active the calendar picker, consistent with other pickers used across the application

Scenario 3: Select Due Date

GIVEN a Ministry coordinator has activated the calendar picker on a divisional stage
WHEN they select a date
THEN the date will appear in the YYYY MM DD Format

Scenario 4: Due Date Selected Cannot be before received date

GIVEN a Ministry coordinator has activated the calendar picker on a divisional stage
WHEN they attempt to select a date before the received date of the request
THEN they will not be able to select that date

Scenario 5: E-Apps/Other Ref Number

GIVEN a Ministry coordinator has selected a divisional stage that reveals the due date calendar picker
WHEN they click on the space for E-Apps/Other
THEN they will be able to input text into the box, up to a maximum of 12 characters

Scenario 6: Save Changes

GIVEN a Ministry coordinator has selected a divisional stage that reveals the due date calendar picker
AND they have filled in the date and/or the e-apps/other field
AND all other mandatory fields have been captured in the request
WHEN they click save changes
THEN the save toast will appear in the top right corner
AND The divisional tracking changes will be saved

Scenario 7: Divisional Comment Update with Due Date and E-App

GIVEN a Ministry coordinator has saved a divisional stage that includes a due date and/or an e-apps field filled in
WHEN the automated comment is added to the comment log
THEN the message will be: "[Division Name] division has been updated to [Stage] E-App/Other reference Number: XXXXXX Due on YYYY MM DD"

Scenario 8: Divisional Comment Update with no Due Date or E-App Reference

GIVEN a Ministry coordinator has saved a divisional stage that does not includes a due date or an e-apps field filled in
WHEN the automated comment is added to the comment log
THEN the message will be: "[Division Name] division has been updated to [Stage]

Dependencies? What is the impact of this dependency? (If so, link dependency in the ticket, make it visible in a team´s backlog)
Validation Rules? (If yes, list here)
Design
@xxx - please link the Design here
Definition of Ready

[ ] Is there a well articulated User Story?
[ ] Is there Acceptance Criteria that covers all scenarios (happy/sad paths)?
[ ] If there is a user interface, is there a design?
[ ] Does the user story need user research/validation?
[ ] Does this User Story needs stakeholder approval?
[ ] Design / Solution accepted by Product Owner
[ ] Is this user story small enough to be completed in a Sprint? Should it be split?
[ ] Are the dependencies known/ understood? (technical, business, regulatory/policy)
[ ] Has the story been estimated?

Definition of Done

[ ] Passes developer unit tests
[ ] Passes peer code review
[ ] If there's a user interface, passes UX assurance
[ ] Passes QA of Acceptance Criteria with verification in Dev and Test
[ ] Confirm Test cases built and succeeding
[ ] No regression test failures
[ ] Test coverage acceptable by Product Owner
[ ] Ticket ready to be merged to master or story branch
[ ] Developer to list Config changes/ Update documents and designs
[ ] Can be demoed in Sprint Review
[ ] Tagged as part of a Release
[ ] Feature flagged if required
[ ] Change Management activities done?

Request from TRAN to add due date to awaiting fee estimate.
cc @lmullane @liseandtea @KyEggleston @JHarrietha-AOT

Dev team - let me know if this can just be rolled up into 3325, or if tickets should be separate


What is the corrent way to unbind views in onDestroyView()

Hi,
Previously I was using unbind() method but now in v8 of ButterKnife, there's no such method and just the binding method returns an Unbinder which will help with that. But the question, what is the correct way to do that? Is it recommended in fragments?

Create a field in your fragment as
Unbinder unbinder;
in onCreateView you call
unbinder = Butterknife.bind(this, root);
and in onDestroyView you need to call
unbinder.unbind();
thats it you're done.

@lkishor Thanks man. Is it recommended to unbind?

Yes it is, It will set your bindings to null, freeing up memory...take a look at
BINDING RESET at
http://jakewharton.github.io/butterknife/

@lkishor Thanks so much man.

Sorry to ask this, but why the change from the simple Butterknife.unbind()?
Warm regards,
A user who just upgraded from previous version

So listeners can be cleared
On Thu, Sep 1, 2016 at 11:47 PM Aiman B<EMAIL_ADDRESS>wrote:

Sorry to ask this, but why the change from the simple Butterknife.unbind()
?
Warm regards,
A user who just upgraded from previous version
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/JakeWharton/butterknife/issues/585#issuecomment-244276337,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEEEVF99TB6Xo-aw14UVCnx8AAcGWtZks5ql5xNgaJpZM4IjUP_
.

Is it really necessary that Butterknife throws an exception when the target object is null while unbinding (throw new IllegalStateException("Bindings already cleared."))? Could it not just do nothing? With the exception thrown I have to catch it always preventively and cannot do anything about it anyway.

I agree with @semaphore3000 . Is there a better way to handle this @JakeWharton


How to call RASA NLU from python function without training the rasa model repeatedly

I am calling the pre trained RASA NLU model from the flask function in python, I want to avoid training the data everytime the function is being called as it is slowing down my application.
When I remove the train command(trainer.train(training_data)) the code does not run at all.
Is there a way I can call RASA from within python function.
Thanks!

Load model using
interpreter = Interpreter.load(model_directory)
Parse message to get result.
interpreter.parse(msg)
Please close issue once done.

Thanks, got it.


Ignore empty cells

Hi. I need to parse a sheet that contains empty cells, but I can't ignore them, I need to obtain some empty char or nil option. Is there some way to have this behavior?  I saw that you added the functionality  of ignoring empty cells in the last version.

Yes, that was a temporary fix. I actually just finished the code to fix that issue and will be publishing it shortly. Empty cells will now be represented as nil. Once published, please let me know if you have any additional issues!

Changes are live. Let me know how it goes.

It works perfectly.. thanks!


Smaller model?!

are there plans for a smaller model?
if it really is 32.25 GB for the voice model it cant be run on consumer GPU.
Also how many parameters is the model?
and how to run it?

also is the 32.25 GB model just voice or also llama3?

The 32 GB includes the Llama 3 finetune. With the quantization described in #8 you should be able to run on a consumer GPU.


[Protected var] page 296 "Recurring Req. Worksheet" - CurrentJnlBatchName

Can we please have (protected var) access to the global variable "CurrentJnlBatchName" in page 296 "Recurring Req. Worksheet"?
Cfr. #15181

@AlexanderYakunin Any chance in having this on prioritized for the nextMajor?

Did you check the code for 22.x? This was fixed long time ago. Not sure why this request is not closed on GitHub.
Here is what we have in this object:
protected var
    ShortcutDimCode: array[8] of Code[20];
    Description2: Text[100];
    BuyFromVendorName: Text[100];
    CurrentJnlBatchName: Code[10];
    OpenedFromBatch: Boolean;


React -> Open

React -> Open
Removed duplicated React component library row.
Link: https://github.com/cruip/open-react-template/
Checklist:

[x] I have performed a self-review of submitted resource and its follows the guidelines of the project.

@karesztrk Hey thanks for the PR, Can you point out where is the duplications?

Found it. All good.


Android version 14 supported?

When I tried it on android 14 it didn't work sir can you kindly try with a14

I can't find any related code modification between Android 10 ~ Android 14 in AOSP, plus I don't have A14 device currently, I am unable to fix this.


symlink() function is unimplemented on this machine error in windows

When I try to use ember-cli-rails in windows, the following exception error when visit the url:
NotImplementedError (symlink() function is unimplemented on this machine):

ember-cli-rails (0.1.11) lib/ember-cli/app.rb:201:in `symlink'
ember-cli-rails (0.1.11) lib/ember-cli/app.rb:201:in `make_symlink'
ember-cli-rails (0.1.11) lib/ember-cli/app.rb:201:in `symlink_to_assets_root'
ember-cli-rails (0.1.11) lib/ember-cli/app.rb:165:in `prepare'
ember-cli-rails (0.1.11) lib/ember-cli/app.rb:32:in `run'
ember-cli-rails (0.1.11) lib/ember-cli-rails.rb:83:in `block in each_app'
ember-cli-rails (0.1.11) lib/ember-cli-rails.rb:83:in `each'
ember-cli-rails (0.1.11) lib/ember-cli-rails.rb:83:in `each_app'
ember-cli-rails (0.1.11) lib/ember-cli-rails.rb:47:in `run!'
ember-cli-rails (0.1.11) lib/ember-cli/middleware.rb:23:in `enable_ember_cli'
ember-cli-rails (0.1.11) lib/ember-cli/middleware.rb:8:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in `call'
activerecord (4.1.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
activerecord (4.1.4) lib/active_record/migration.rb:380:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.1.4) lib/active_support/callbacks.rb:82:in `run_callbacks'
actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/reloader.rb:73:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.1.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.1.4) lib/rails/engine.rb:514:in `call'
railties (4.1.4) lib/rails/application.rb:144:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
c:/Ruby200/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
c:/Ruby200/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
c:/Ruby200/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
```

Running in Windows 7 Enterpise with administrator right

I do not own a Windows machine and can't fix this problem. Any help here would be welcome.

http://www.ember-cli.com/#symlinks-on-windows says it's an access control policy issue, i.e. run as admin, or failing that have the plugin fall back on copying files when symlinking isn't available.

@nruth this issue has nothing to do with ember-cli

The issue here is that windows doesn't support symlinks in the same way. See my PR #136 which solves this issue (based on my tests) using the mklink windows command.

@rwz OK, I'll leave you to it then.

I can create a branch and start working on windows support. However I need people to voluntarily help me testing it since I don't own a Windows machine.

I want to volunteer for testing on Windows.
I am currently using it and had to make changes to ember-cli-rails-0.3.5 to make it work on Windows.
I had to implement #114 with a change to ember-cli\app_win.rb
OLD:

@ember_path ||= app_path.join

NEW:

ember_path ||= Rails.root.join

I also had change to the ember-cli\runner.rb because Process.getpgid is not supported on Windows.
OLD:

    def still_running?
      Process.getpgid app.pid
      true
    rescue Errno::ESRCH # no such process
      false
    end

NEW:

   def still_running?
      Process.kill 0, app.pid
      true
    rescue TypError #Errno::ESRCH - no such process, Errne::EPERM
      false
    end

We're sorry that this issue has sat for so long.
The project is now maintained by thoughtbot, and we're declaring an issue bankruptcy of sorts.
We're closing this issue. If what you've described is still a problem, please comment on this issue and we'll reopen.
@JanJacobs those changes look promising, would you mind opening a PR to help with windows support?
Thanks for your patience.

:+1:  Still have this problem on windows 7 using Rails 4.2.4 and ember-cli-rails 0.5.3 with corresponding ember-cli-rails-addon

Would anyone still seeing this problem pleae try out:

https://github.com/thoughtbot/ember-cli-rails/tree/remove-sprockets for ember-cli-rails gem
https://github.com/rondale-sc/ember-cli-rails-addon/tree/remove-sprockets for ember-cli-rails-addon

Each of those branches has up-to-date README's.

Unfortunately I still get the symlink() function is unimplemented on this machine error.
Gemfile:
source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.4'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc

gem 'ember-cli-rails', git: 'git@github.com:thoughtbot/ember-cli-rails.git'

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug'
end

group :development do
  # Access an IRB console on exception pages or by using <%= console %> in views
  gem 'web-console', '~> 2.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

and package.json from ember:
{
  "name": "frontend",
  "version": "0.0.0",
  "description": "Small description for frontend goes here",
  "private": true,
  "directories": {
    "doc": "doc",
    "test": "tests"
  },
  "scripts": {
    "build": "ember build",
    "start": "ember server",
    "test": "ember test"
  },
  "repository": "",
  "engines": {
    "node": ">= 0.10.0"
  },
  "author": "",
  "license": "MIT",
  "devDependencies": {
    "broccoli-asset-rev": "^2.1.2",
    "ember-cli": "1.13.8",
    "ember-cli-app-version": "0.5.0",
    "ember-cli-babel": "^5.1.3",
    "ember-cli-content-security-policy": "0.4.0",
    "ember-cli-dependency-checker": "^1.0.1",
    "ember-cli-htmlbars": "0.7.9",
    "ember-cli-htmlbars-inline-precompile": "^0.2.0",
    "ember-cli-ic-ajax": "0.2.1",
    "ember-cli-inject-live-reload": "^1.3.1",
    "ember-cli-qunit": "^1.0.0",
    "ember-cli-rails-addon": "git+https://github.com/rondale-sc/ember-cli-rails-addon.git#a5d2cf050dce8d943f1eced990a535a8f6e7ac11",
    "ember-cli-release": "0.2.3",
    "ember-cli-sri": "^1.0.3",
    "ember-cli-uglify": "^1.2.0",
    "ember-data": "1.13.8",
    "ember-disable-proxy-controllers": "^1.0.0",
    "ember-export-application-global": "^1.0.3"
  }
}

Running on 64-bit Windows 7 Professional Service Pack 1

I implemented the changes from swelham
"The issue here is that windows doesn't support symlinks in the same way. See my PR #136 which solves this issue (based on my tests) using the mklink windows command."
Additionally I had to make the following changes
ember-cli\app_win.rb
OLD:

@ember_path ||= app_path.join

NEW:

ember_path ||= Rails.root.join

I also had change to the ember-cli\runner.rb because Process.getpgid is not supported on Windows.
OLD:

    def still_running?
      Process.getpgid app.pid
      true
    rescue Errno::ESRCH # no such process
      false
    end

NEW:

   def still_running?
      Process.kill 0, app.pid
      true
    rescue TypError #Errno::ESRCH - no such process, Errne::EPERM
      false
    end

I using 64-bit Windows 10 Pro.

@wjdhamilton it sounds like you're running off of master.
To run the branches I suggested, you'll need to modify your Gemfile and Ember's package.json:
# Gemfile

gem 'ember-cli-rails', github: 'thoughtbot/ember-cli-rails', branch: 'remove-sprockets'

{
 "devDependencies": {
    "ember-cli-rails-addon": "rondale-sc/ember-cli-rails-addon#remove-sprockets",
  }
}

@JanJacobs thanks for sharing those Windows fix proposals.
Unfortunately, I don't have access to a Windows machine to verify their validity.
There is a branch that introduces AppVeyor for CI testing:
https://github.com/thoughtbot/ember-cli-rails/pull/291
Would you mind helping to create windows versions of:

bin/setup - installs dependencies, runs bundler, clones https://github.com/kellyselden/ember-cli-output.git, runs appraisal in CI, installs ember-cli-rails-addon@rondale-sc/ember-cli-rails-addon in that Ember repo, runs rake ember:install
bin/setup_ember - adds a catchall route to the Ember application, copies an image file into the ember application, adds the image to a template

Once we have setup parity across platforms, we can start to ensure the Windows version behaves the same as other Operating Systems versions.

I want to help, yes please.
Just a bit crazy at the office at the moment, by next week most of SA is on holiday and then I can get some work done:))

@seanpdoyle I've just tried a fresh app with the two links that you suggested, however the app now reports: No `ember-cli` executable found for `frontend`. Install it: $ cd C:/sites/ember-cli-rails-windows-test/frontend $ npm install. I have definitely run npm install in frontend.

@wjdhamilton did you ever find the solution to this problem? I'm trying to hand over an app I wrote on a Mac to a Windows dev and he is getting the same error, been stuck on this for ages!

Unfortunately not - I bought a mac when Rails stopped working properly on Windows and never looked back!
On 15 Aug 2016, at 08:08, Grant van Helsdingen <notifications<EMAIL_ADDRESS>wrote:
@wjdhamiltonhttps://github.com/wjdhamilton did you ever find the solution to this problem? I'm trying to hand over an app I wrote on a Mac to a Windows dev and he is getting the same error, been stuck on this for ages!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/thoughtbot/ember-cli-rails/issues/114#issuecomment-239741676, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHJwKp70sUxUW4vyKz7kLKMKNOJrPxVEks5qgBBrgaJpZM4Dv1hL.

@1vanhelsing1 if you're still trying to hand this over to a windows dev, as of the 14942 build of the win 10 insider preview, you can now use ember-cli in windows bash.
I recommend having that be the official answer and close this issue.


Backports 1.2.1

Mongodb test has failed for a long time due to the lack of online source (ycsb).

@davies need rebase merge.


Augment text

resolves #206

currently three transforms:

FStringTextAugmentor uses eval to lazily evaluate f-strings. This is pretty lightweight but has some rather serious security issues - users could do things like FStringAugmentor(["{__import__('os').system('rm -rf /')}", "{exit()}"]) and then watch the entire ray cluster nuke itself. But on the other hand, users could do that anyway with map.
UDFTextAugmentor asks for a function that maps documents to strings and updates docs' text representations accordingly. This is probably the most heavyweight API, but also the most powerful b/c the user can do whatever the heck they want. But also it's really just a thin layer over map.
JinjaTextAugmentor asks for a jinja2 template string and throws the jinja rendering engine at it (using a sandboxed env for more safety). This may be the best solution in terms of power, safety, and simplicity, but it also has the benefit of bringing in another rather large library to the sycamore dependency list; and as we all know, sycamore is the mother of all libraries.

FString and Jinja augmentors also allow the user to specify a set of modules to use in the augmentation - so I can do something like this:
from sycamore.transforms.augment_text import JinjaTextAugmentor
from sycamore.transforms.regex_replace import COALESCE_WHITESPACE
import pathlib
template = '''This document is from {{ pathlib.Path(doc.properties['path']).name }}.
The title is {{ doc.properties['title'] }}.
The authors are {{ doc.properties['authors'] }}.
{% if doc.text_representation %}
    {{ doc.text_representation }}
{% else %}
    There is no text representation for this
{% endif %}
'''
aug = JinjaTextAugmentor(template=template, modules={"pathlib": pathlib})
aug_docset = exp_docset.augment_text(aug).regex_replace(COALESCE_WHITESPACE)
aug_docset.show(show_binary=False, truncate_content=False)

I find myself liking the Jinja syntax more than I expected, though definitely agree about adding infinite dependencies. @baitsguy since you have actually tried to construct the metadata, what do you think? I suppose if I were to vote I would say keep the UDF version and the Jinja version.

btw I'm not sure that TextAugmentor is really the best name for this class/feature. Maybe TextFormatter? Idk, that doesn't feel quite right to me. Not sure. Any suggestions?


[add] support for vim-devicons

Hello, @cocopon .
Thanks for creating great Vim plugin.
I wrote a patch to support vim-devicons.
vim-devicons url

https://github.com/ryanoasis/vim-devicons

This patch can rendering icon font.
Could you check this PR?
screen shot

Thank you for the contribution! Adding icon to each item looks nice, but there are some points that I'm concerned about.

About user interface
I think a file icon and its name should be placed side by side because they express the same subject.

Your impl: (file icon) (selection mark) (file name)
My thought: (selection mark) (file icon) (file name)

About implementation
Current implementation is tightly coupled with vim-devicons. If user want to use another way to show icon, we should add another renderer option to Vaffle. I think that providing a custom function to render icon is better solution. For example:

function! RenderMyFavoriteIcon(item)
  " Use vim-devicons or other favorite way
  return ...
endfunction

let g:vaffle_render_custom_icon = 'RenderMyFavoriteIcon'

@cocopon
Thanks for review!
How about this patch?
example
function! RenderMyFavoriteIcon(item)
  return printf('%s %s %s',
        \ WebDevIconsGetFileTypeSymbol(a:item.basename, a:item.is_dir),
        \ a:item.selected ? '*' : ' ',
        \ a:item.basename . (a:item.is_dir ? '/' : ''))
endfunction

let g:vaffle_render_custom_icon = 'RenderMyFavoriteIcon'

If you writing this config in vimrc, vaffle can render icon font.

Thank you for the changes!

Basic design looks good
I think that custom function should return only its icon and other UI elements (selection mark, returned icon, name) should be rendered by Vaffle for UI consistency reason
Default value of the option should be empty because this option expects the value to be function name and string value 'default' looks like a function name

I adjusted.
How about this?
example
function! RenderMyFavoriteIcon(item)
  return WebDevIconsGetFileTypeSymbol(a:item.basename, a:item.is_dir)
endfunction

let g:vaffle_render_custom_icon = 'RenderMyFavoriteIcon'

Looks good! Looking into the details...

In addition, I changed the syntax highlighting.
I think it will render correctly.

I update document and syntax name.

@cocopon
Thanks for review, I fixed.

Great! Finally, could you squash all commits into a single one and force-push it? I'll merge it.

OK, I squashed!

@cocopon
Sorry.., I fixed.

Merged. Thank you for your contribution!

Thank you for your kind review and merge.


Adding event details view

Hi , I would like to add event details for a particular date when user switches to week view.
There is a considerable amount of space below the week view as i am using only one week to display at a time.I would add a view below the the dates so that it looks like it is part of JTHorizontalCalendarView. Can you tell me where and how i can do that.

The view with event details are very specific to your design and the informations about the event, there is no common view for that.
This view is below JTCalendarHorizontalView so it's not part of this library.
You have to create your own view.


feat: Allow specifying HTTP and HTTPS port.

HTTP/S load balancer supports HTTP/S on custom ports. This PR allows specifying ports - as per documentation exactly one  port from 1-65535.

@miromichalicka thx for the PR. Can u plz follow this guide to fix lint issues.

Hi @imrannayer, thank you for the review. I run and committed the output of make docker_generate_docs. When I try running make build, it completely reverts my changes, is that expected behaviour? I appreciate your help.

Oh I got it. You need to make changes in template before running make build. You dont need to make changes directly in the code.

Ok, should be done, let's see if there are any other issues. Thanks for your help.

/gcbrun


[viz][treemap v2] click on corner the chart will move around and the section color is not correct with the represented number scale

2 issues seeing in the Treemap V2
1, the Treemap chart will move if clicking on the corner section of the chart
2, the bigger the number, the lighter the color in the treemap section, should i expect the other way?
Expected results
1, click on the corner of the chart will not move it
2, color is darker with larger number?
Actual results
1, chart is shifting position when click on the corner section
2, color is lighter with larger number
Screenshots
https://user-images.githubusercontent.com/81597121/120585338-663b7880-c3e6-11eb-8a51-fb76a0c0126c.mov
How to reproduce the bug

Open treemap v2 chart
Click on the corner or edge of the chart
observe
See error

Environment
(please complete the following information):

superset version: master

Checklist
Make sure to follow these steps before submitting your issue - thank you!

[ ] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
Add any other context about the problem here.

fixed https://github.com/apache-superset/superset-ui/pull/1151

Closing due to provided fix. Please re-open if the situation persists.


Windows client snapshot -> FUSE mount -> Samba share -> cant copy files

I have found a similar issue which is already closed: https://github.com/restic/restic/issues/988
However, I am not quite sure if this issue has been pinned down correctly. It seems to me, that it requires a particular scenario in order to be reproducible.
Output of restic version
Servers - responsible for providing repository with rest-serv, for fuse mount and samba share,
Tested with two different servers:

Server A:

restic 0.9.2 compiled with go1.10.1 on linux/amd64
rest-server 0.9.7 compiled with go1.10.1 on linux/amd64
Samba Version 4.7.6-Ubuntu

Server B:

restic 0.9.2 compiled with go1.10.3 on linux/arm64
rest-server 0.9.7 compiled with go1.10.1 on linux/arm64
Samba Version Version 4.5.12-Debian

Clients - responsible for creating snapshots

Windows: restic 0.9.2 compiled with go1.10.3 on windows/amd64
Linux:  client version corresponds to server version(creating snapshots directly on the server - Although the repository is available in the local filesystem, I still access it through rest-serv to ensure comparable conditions)

How did you run restic exactly?
creating snapshots without any fancy options.
mounting the repository with:

RESTIC_REPOSITORY=/mnt/backup/live/restic_live
RESTIC_PASSWORD = restic
restic mount --allow-other --snapshot-template '2006_01_02__15_04'

What backend/server/service did you use to store the repository?
local repository

mounting: accessed directly
creating snapshots: accessed through rest-serv

Expected behavior
The mounted repository is shared by samba. I expect to be able to browse and copy files out of this samba share.
Actual behavior
Two different hosts backup to my repository

windows client
linux client(the 'server' itself)

I have configured a samba share which includes the mountpoint served by restic's fuse. When I access this share I observe the following behaviour:

I can browse all snapshot files without problems

I can copy files from snapshots which have been created by the linux client.

I can not copy files from snapshots which have been created by the windows client.(This file is no longer located in...)

For the Windows snapshots, I can see the filesize in folder view in Windows Explorer. However, If I open the 'File Properties' window, it is a 50/50 chance to get the actual file size or to get 0 bytes as a result.

It does not matter how I access the samba share(e.g. Windows Explorer, Chrome, ...)

If I open a folder which belongs to a windows client's snapshot, select some files and hit F5 to refresh, then thesefiles disappear from the folder view. I have to go to the parent folder and back into the child in order to have this file reappear(windows explorer)

Working with the mounted repository directly on the server(not via samba) works for all kind snapshots without problems.

Steps to reproduce the behavior
Create a snapshot with a windows client and try to copy a file from the mounted repository through samba.
Do you have any idea what may have caused this?
Since it only affects files created by the windows client, this has to be related to differences between the way files are saved with the windows or linux version of restic. I could think of some kind of file attributes which are additionally specified, missing or differently encoded and eventually lead to samba's confusion. It seems that listing files in a directory works fine, but accessing a file object is errornous.
Do you have an idea how to solve the issue?
No
Did restic help you or made you happy in any way?
Restic helped me to end my search for a personal backup solution. Although it required some additional work to wrap it with 'comfort features'(e.g.: monitoring, reminders, notifications) i am satisfied with the final result and very happy to have choosen restic as the 'system's backend'.

Hm, very interesting! It would be helpful if you can create a new repo that you can share with me which includes a snapshot made with the Linux client (can be browsed via Samba) and a snapshot made with the Windows client (that cannot be browsed via Samba). Maybe we can pin it down then...

Thank you for your fast reply!
I created a new repository on a virtual machine which corresponds to 'Server A' in my initial post.
Since I don't know if the working internals differentiate by file size, I backupped small(image) as well as larger files(.zip|.bz2). Some files are exclusive to a single client, whereas some are present on both. While the filenames would not win an award for consistency, it should still be easy to follow how the files are distributed. The backupped files are:
Windows:

image_win_only.jpg
image_win_linux.png
winows.zip
win_linux.bz2

Linux:

image_win_linux.png
linux.bz2
win_linux.bz2

I used the following commands on the clients to create the snapshots:

restic -r rest:http://<IP_ADDRESS>:8080 backup --tag=linux ~/RESTIC_TEST
restic -r rest:http://<IP_ADDRESS>:8080 backup --tag=windows C:\Users\dmi\_TEMP\RESTIC_TEST

This is the resulting repository: restic_repo_sambatest.zip
My observations from the initial post fully apply to this repository. None of the files in in the windows client's snapshot are accessible through the samba share.

Did you get a chance to look at this repository? If yes - were you able to reproduce the issue?

Not yet, sorry. I need to build an environment where I can test that, and I'm swamped with other stuff.

Any progress on this? I think I have the same issue here:

the repository is mounted with restic mount --allow-other --no-default-permission -r /srv/restic/home /srv/samba/home
access / copying from /srv/samba/home/[latest/anyfile] on the Linux host is possible (for root and non-root user)
some files can not be access via Samba
the samba-share simply looks like this (/etc/samba/smb.conf):

[backup-home]
   path = /srv/samba/home/snapshots
   read only = yes

Debian/stretch, restic version 0.9.5, Samba 4.5.16

@dmi-github: can you provide content of you smb.conf file?
My workaround so far (but I am not sure if this is a good idea):
[backup-home]
   path = /srv/samba/home/snapshots
   read only = yes
   force user = root

@jkird @dmi-github Could you try whether restic 0.10.0 helps with this issues? Or whether the mount --no-default-permissions helps?

@fd0 is there any news about this topic?

@t1moro As you can see above, the current state is that it's awaiting feedback from the people @MichaelEischer mentioned. Had there been any other progress, it would have been noted in this issue.

@rawtaz You're right. Since @jkirk and @dmi-github not answering, ill try to describe my setup:

Windows-Client: restic_0.12.0_windows_amd64.exe
Linux-Client: restic 0.12.0 compiled with go1.15.8 on linux/amd64
Samba:  4.11.6-Ubuntu with smb.conf

[global]
        log file = /var/log/samba/%m
        log level = 1

[data]
        # This share requires authentication to access
        path = /srv/samba/data/
        read only = no

Mounting the repo:
restic mount --repo /srv/samba/data/repo --allow-other --no-default-permissions /srv/samba/data/recovery

Output from mount:
restic on /srv/samba/data/recovery type fuse (ro,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)

Accessing files is possible for the linux-client, but not for the windows client.

Linux

ruth@debian:~$ ls -lah /mnt/data/recovery/hosts/debian/latest/home/ruth/Documents/
total 512
drwxr-xr-x 2 ruth ruth  0 Jun 25 09:21 .
drwxr-xr-x 2 ruth ruth  0 Jun 25 09:19 ..
-rwxr-xr-x 1 ruth ruth 19 Jun 25 09:21 testfile.txt

ruth@debian:~$ cat /mnt/data/recovery/hosts/debian/latest/home/ruth/Documents/testfile.txt
this is a testfile

Windows

ruth@debian:~$ ls -lah /mnt/data/recovery/hosts/pc01/latest/C/Users/pc01/Documents/
total 512
drwxr-xr-x 2 ruth ruth 0 Jun 25 09:14 .
drwxr-xr-x 2 ruth ruth 0 Jun 25 07:03 ..
-rwxr-xr-x 1 ruth ruth 8 Jun 25 09:14 testfile.txt
drwxr-xr-x 2 ruth ruth 0 Jun 25 09:14 testfolder

ruth@debian:~$ cat /mnt/data/recovery/hosts/pc01/latest/C/Users/pc01/Documents/testfile.txt
cat: /mnt/data/recovery/hosts/pc01/latest/C/Users/pc01/Documents/testfile.txt: No such file or directory

Accessing the files from the samba-server directly is no problem
ruth@ubuntu:~$ cat /srv/samba/data/recovery/hosts/pc01/latest/C/Users/pc01/Documents/testfile.txt
testfile

I attached the repository created for this test (password: repo)
repo.zip
The workaround mentioned by @jkirk to force the user to root is also not working for me.

@t1moro Can you update your post so it's shown/clarified where/in what you are running all the commands? For example it's a bit confusing when you talk about Windows yet we see a ruth@debian:~$ prompt.

@rawtaz I edited the post, hopefully its more clear right now.

@t1moro Thanks. So the problem is with snapshots created by a Windows backup client. I'm curious, if you try to ls paths higher up from that file you are getting "No such file or directory" for, at which point does the problems start? Or does ls always work, so it's just reading actual files that doesn't?

@rawtaz ls is always working. You can copy the folder structure, but there arent any files beeing copied:
root@linux-client:~# cp -r /mnt/data/recovery/hosts/windows-client/latest/C/Users/User/Documents/ .
cp: cannot open '/mnt/data/recovery/hosts/windows-client/latest/C/Users/User/Documents/testfile.txt' for reading: No such file or directory
cp: cannot open '/mnt/data/recovery/hosts/windows-client/latest/C/Users/User/Documents/desktop.ini' for reading: No such file or directory

root@linux-client:~# l
total 4,0K
drwxr-xr-x 3 root root 4,0K Jun 25 20:25 Documents

root@linux-client:~# ls -lah Documents/
total 12K
drwxr-xr-x 3 root root 4,0K Jun 25 20:25 .
drwx------ 5 root root 4,0K Jun 25 20:25 ..
drwxr-xr-x 2 root root 4,0K Jun 25 20:25 testfolder

root@linux-client:~# ls -lah Documents/testfolder/
total 8,0K
drwxr-xr-x 2 root root 4,0K Jun 25 20:25 .
drwxr-xr-x 3 root root 4,0K Jun 25 20:25 ..

If i browse the share with smbclient,:

files from linux-client:

smb: \recovery\hosts\linux-client\latest\home\ruth\Documents\> ls
  .                                   D        0  Fri Jun 25 17:30:38 2021
  ..                                  D        0  Fri Jun 25 17:17:02 2021
  testfile.txt                        N       19  Fri Jun 25 17:30:50 2021

                0 blocks of size 1024. 0 blocks available

files from windows-client:

smb: \recovery\hosts\windows-client\latest\C\Users\User\Documents\> ls
  .                                   D        0  Fri Jun 25 17:32:17 2021
  ..                                  D        0  Fri Jun 25 16:07:08 2021
  desktop.ini                                402  Fri Jun 25 16:05:28 2021
  testfile.txt                                 8  Fri Jun 25 17:32:28 2021
  testfolder                          D        0  Fri Jun 25 17:32:16 2021

                0 blocks of size 1024. 0 blocks available

Note the 'N' flag on the output - iam not sure what it exactly stands for, since iam not able to find any documentation about this flag inside smbclients ls.
I guess the problem is somewhere related to samba serving the mounted directory. Maybe some windows file-attributes, where samba doesnt know how to handle those?

Peculiar. This needs debugging with something that reproduces it.

Since restic 0.16.0 was released yesterday, I thought I would give this issue another try.
On our backup server we serve the restic snapshots via restic mount to /srv/snapshots and share this folder via a Samba share snapshots.
We want to export a single snapshot to an external hard drive (on a regular basis).
To do so we mount the Samba share snapshots on another host:
% sudo mount -t cifs -o username=backup,ro //backup01.in.example.com/snapshots /mnt/data-snapshots
Password for<EMAIL_ADDRESS>
At first everything looks good:
  synprodpat@iris01 ~ % sudo ls -l /mnt/data-snapshots
  [....]
  drwxr-xr-x 2 root root 0 Jul 30 22:30 20230730T223010-zeus01
  drwxr-xr-x 2 root root 0 Jul 31 21:00 20230731T210017-hera03
  drwxr-xr-x 2 root root 0 Jul 31 22:30 20230731T223010-zeus01

But after a few seconds the share gets 'stale':
  % sudo ls -l /mnt/data-snapshots
  ls: cannot access '/mnt/data-snapshots': No such file or directory
  % sudo ls -l /mnt/
  ls: cannot access '/mnt/data-snapshots': No such file or directory
  total 24
  drwxr-xr-x 2 root root 4096 Sep 26  2021 archive-snapshots
  drwxr-xr-x 2 root root 4096 Mar 31  2021 cluster-backup
  d????????? ? ?    ?       ?            ? data-snapshots
  drwxr-xr-x 2 root root 4096 Mar 21  2022 extarchbackup
  drwxr-xr-x 2 root root 4096 Mar 31  2021 extbackup
  drwxr-xr-x 2 root root 4096 Nov  6  2022 extdatabackup
  drwxr-xr-x 2 root root 4096 Mar 31  2021 extvmbackup

The logs will show this at the time of the mount:
Aug 01 13:03:16 iris01 kernel: CIFS: Attempting to mount \\backup01.in.example.com\snapshots
Aug 01 13:03:24 iris01 kernel: CIFS: VFS: parse_server_interfaces: malformed interface info

restic mount is (re)started once a day via a systemd service.
Basically we only have the --owner-root flag set:
% sudo systemctl cat restic-mount  | cat
# /etc/systemd/system/restic-mount.service
[Unit]
Description=Restic Mount Backup Service
After=syslog.target
After=network.target

[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/local/bin/restic mount --time-template "20060102T150405" --path-template "snapshots/%%T-%%h" --owner-root --password-file /root/.restic_data_password -r /srv/backups/restic/hera02-data /srv/snapshots
ExecStop=/usr/bin/smbcontrol smbd close-share snapshots
Restart=always
RestartSec=10
RuntimeMaxSec=86400
KillMode=process
KillSignal=SIGINT
TimeoutStopSec=5

[Install]
WantedBy=multi-user.target

Note, that %T-%h in --path-template needs to be escaped with % in the systemd unit file and that we close the the samba share when stopping the restic mount service.
The share looks like this:
[snapshots]
   comment = Backup Snapshots
   browseable = yes
   path = /srv/snapshots/snapshots
   guest ok = no
   read only = yes
   valid users  = backup
   force user = root

I just noticed that the given path is within the restic mount point. Could this be the problem?
@MichaelEischer I somehow missed you recommendation to add the --no-default-permissions. Makes no sense for --owner-root, no?

I just change the path of the share from /srv/snapshots/snapshots to /srv/snapshots.
The mount point did not get lost so far. As far as I can say, the issue seems resolved for me.
@dmi-zie et all: Where is your restic mount mount point? And what path have you set in the Samba share?


Option to see large types (extend view box)

I like the vscode-twoslash-queries extension. Currently it shows a type within one line but for very large types it would be nice if you can expand that window to actually see the full type.
Screenshot

The API for showing things inline doesn't have the ability to do mutli-line annotations.
I think theres an interesting space for figuring a way to trigger an action which opens a sidebar with the full info if it's constrained though?

Imagine if we could attach a keybinding that took the token under the cursor and created a pane that showed the types, similar to when you click "View Problem"

playground inline type style is better

In some of my more recent work in monaco (on unrelated things) I've used the monaco viewzones API to get pretty inline messages - they can be multi-line, so I guess it could be possible

In some of my more recent work in monaco (on unrelated things) I've used the monaco viewzones API to get pretty inline messages - they can be multi-line, so I guess it could be possible

( But the popover would be the same as the hover, it is the same API request to typescript)

Looks good.

In some of my more recent work in monaco (on unrelated things) I've used the monaco viewzones API to get pretty inline messages - they can be multi-line, so I guess it could be possible

( But the popover would be the same as the hover, it is the same API request to typescript)

Like ZoneWidget, VSCode does not seem to provide related functional support, maybe we still need to wait for ZoneWidget.
https://github.com/microsoft/vscode/issues/88483

Could Editor inserts be used to implement this at least for Insiders? https://github.com/microsoft/vscode/issues/85682


How do I uninstall this completely?

I ran the install script on an older version of ubuntu wsl, and have since uninstalled that instance, now every time I boot up, a powershell window pops-up with this error message:
Cannot invoke method. Method invocation is supported only on core types in this language mode.
At line:1 char:31
+ ... heduledJob; $jobDef = [Microsoft.PowerShell.ScheduledJob.ScheduledJob ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage

You cannot call a method on a null-valued expression.
At line:1 char:216
+ ... ata\Local\Microsoft\Windows\PowerShell\ScheduledJobs'); $jobDef.Run()
+                                                             ~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

I tried running the uninstall script but it keeps giving this error:
#########################################################
#                                                       #
#       One Script WSL2 Systemd uninstall script        #
#                                                       #
#########################################################

Write-PowerShellMsg : The term 'Write-PowerShellMsg' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At C:\Users\user\.workspace\wsl2\systemd\uninstall.ps1:183 char:5
+     Write-PowerShellMsg
+     ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Write-PowerShellMsg:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

I think it should work if you download the uninstall script again - I've just committed lots of improvements. You can now specify which distro to remove systemd from instead of uninstalling from all distros, and you can also tell it not to remove the kernel or gnupg. The new synopsis is:
./uninstall.ps1 [-Distro <distro name>] [-LeaveKernel] [-LeaveGPG]

Hi, has this solved your problem?


about train my class segmentation

hi，thanks for your great working，I want to train my single class segmentation based on your project，I have some doubt about training：

the dataset format：the data directory should include image and mask，the mask is binary single channel image，right？？
could I run train.py directly？？what else should I consider and modify？？
thanks
best regard

image with RGB channels [0,255], Mask with one channel (0-background,
255-foreground).
yes, you can train with 'train.py' directly. just modify the training
data path should work. If you want, you can add the validation process in
the training code.

On Mon, Jun 7, 2021 at 6:34 AM xiongzhu666 @.***> wrote:

hi，thanks for your great working，I want to train my single class
segmentation based on your project，I have some doubt about training：

the dataset format：the data directory should include image and
mask，the mask is binary single channel image，right？？
could I run train.py directly？？what else should I consider and
modify？？
thanks
best regard

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dennisbappert/u-2-net-portrait/issues/8, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ADSGORPD2PILRETGWXD4E43TRQV4PANCNFSM46GV5KTQ
.

--
Xuebin Qin
PhD
Department of Computing Science
University of Alberta, Edmonton, AB, Canada
Homepage:https://webdocs.cs.ualberta.ca/~xuebin/

@xuebinqin @dennisbappert  hello sir，when i  train ，it propers bellow problems：
hydra.errors.InstantiationException: Top level config has to be OmegaConf DictConfig, plain dict, or a Structured Config class or instance。
how can i deal with it ？ thanks


How to user ssh public/private key as authentication method

Hi,
I searched the issue list, no related issues about this.
Could someone help to tell me how to specific Netopeer2 server to accept public key?
Also how to tell netopeer-cli to use specific private key file?
Thanks a lot

Hi,
there is no information about this because it is not finished (devel-server branch). Technically, it is finished and should work, but needs a bit more testing and, as you noted, documentation. However, other issues appeared and this was currently put on hold. So, if you want to try it now, I can only tell you to study the models for NETCONF server and try to figure it out, in CLI simply use help and go from there.
Regards,
Michal

Thanks


Document all steps of the release process

So that things like https://github.com/prometheus/prometheus/issues/925 don't happen (forgot to update stable branch). Ideally, this will be automated at some point.

I'd like to see docker tags for each each version as they're released. So in addition to what you said on the other thread, I'd like to see a 0.15.0 docker tag, etc as each release happens. Latest would still point to stable & master to master. This would let me stick on a particular version & choose to upgrade when I'm ready after testing in my env etc by changing to the appropriate docker tag. If latest is the only available release tag that makes users vulnerable to breaking changes between releases with no option to pick an actual release version.

@jimmidyson That sounds like a great idea. @discordianfish Is that easy to automate with the Docker Hub? Must be, right? :)

Yeah if you're using docker hub automated builds you just add another build pointing to your git tag.

No, there is no easy way to automate this. You still need to manually create a new tag in the hub for every release. But this in general sounds good and should be put into the release docs. On the long run I would stop using automated builds and just build the images locally and push it. This way we can automate setting the right tags etc.

@jimmidyson + 1 on the requested feature.
Thanks

@discordianfish We (fabric8) switched to our own builds for exactly that reason. We use circleci.com & works great.

As I said in IRC, don't forget to update the dependency on client_golang (and possibly make a release there too).

Adjusted the title to our actual goal.

+1 - I'm happy to take care of the Docker specific parts, but first we need to decide for a CI and build process for the binaries. Once that's done, I can add the docker stuff.

I think we can say this is done by now.

Massive shout-out to @sdurrheimer for that!


Get speech recognition and TTS support for V4 Emulator

At the moment, the new emulator does not support speech in/ out. V3 does. we need to add support for this.

Speech recognition and synthesis is currently working (I don't have a bot flighted to speech, so I forcibly put my subscription key there).
We need to verify if token exchange is done correctly.

Does the new emulator accepts speech now?


Clean layout and update curation team

There is nothing fancy in this update. I mostly cleaned up the layout and updated the curation team. I also made the curation team table responsive so that it can be viewed on mobile devices like other website tables.

Fantastic, thanks @hhandika and thanks @JelleZijlstra for approving the merge.  Cheers!


hello.py worked ... until it broke in Ch. 7

I'm typing code from the book and the app worked fine in Cloud9 IDE until chapter 7 when I split hello.py into the larger app structure; then the app broke.
When I go to run python manage.py shell from bash, I'm running into this error:
  File "manage.py", line 9, in <module>
     app = create_app(os.getenv('FLASK_CONFIG') or 'default')
  File "/home/ubuntu/workspace/app/__init__.py", line 32, in create_app
     from .main import main as main_blueprint
ImportError: No module named main

Cloud9 IDE requires setting port and host variables to run hello.py (code below).
Could the "manage.py" line 9 error above be a result of not setting those port & host variables?
if __name__ == "__main__":
  port = int(os.getenv('PORT', 8080))
  host = os.getenv('IP', '<IP_ADDRESS>')
  app.run(port=port, host=host)
  app.debug = True

The error claims that you don't have a module named main in your project. It's not related to how your start the project.

Thanks for the reply and I originally thought so too. I spent about an hour debugging before posting here and, e.g. I found the book's errata and fixed that line of code from error to be from main... to from .main  ...
However... I still get that error indicating no main module, and the fact is my file structure is exactly like you outlined for the large app structure: main is a folder under app. Here's code of the main 3 files:
app/main/init.py
# subpackage in app
from flask import Blueprint

main = Blueprint('main', __name__)

from . import views, errors

config.py
import os, time
basedir = os.path.abspath(os.path.dirname(__file__))

class Config:
  SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
  SQLALCHEMY_COMMIT_ON_TEARDOWN = True
  FLASKY_MAIL_SUBJECT_PREFIX = '[Flasky]'
  FLASKY_MAIL_SENDER = 'Flasky Admin<EMAIL_ADDRESS>  FLASKY_ADMIN = os.environ.get('FLASKY_ADMIN')

  @staticmethod
  def init_app(app):
    pass

class DevelopmentConfig(Config):
  DEBUG = True
  MAIL_SERVER = 'smtp.googlemail.com'
  MAIL_PORT = 587
  MAIL_USE_TLS = True
  MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
  MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')
  SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') or \
  'sqlite:///' + os.path.join(basedir, 'data-dev.sqlite')

class TestingConfig(Config):
  TESTING = True
  SQLALCHEMY_DATABASE_URI = os.environ.get('TEST_DATABASE_URL') or \
  'sqlite:///' + os.path.join(basedir, 'data-test.sqlite')

class ProductionConfig(Config):
  SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
  'sqlite:///' + os.path.join(basedir, 'data.sqlite')

config = {
  'development': DevelopmentConfig,
  'testing': TestingConfig,
  'production': ProductionConfig,
  'default': DevelopmentConfig
}

manage.py
#!/usr/bin/env python
import os
from app import create_app, db
from app.models import User, Role
from flask.ext.script import Manager, Shell
from flask.ext.migrate import Migrate, MigrateCommand
from flask.ext.sqlalchemy import SQLAlchemy

port = int(os.getenv('PORT', 8080))
host = os.getenv('IP', '<IP_ADDRESS>')
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
migrate = Migrate(app, db)

<EMAIL_ADDRESS>def make_shell_context():
  return dict(app=app, db=db, User=User, Role=Role)
manager.add_command("shell", Shell(make_context=make_shell_context))
manager.add_command('db', MigrateCommand)

@manager.command
def test():
  """Run the unit tests."""
  import unittest
  tests = unittest.TestLoader().discover('tests')
  unittest.TextTestRunner(verbosity=2).run(tests)

if __name__ == "__main__":
  manager.run(port=port, host=host)
#	app.run()
# port = int(os.getenv('PORT', 8080))
# host = os.getenv('IP', '<IP_ADDRESS>')
# app.run(port=port, host=host)
# app.debug = True

Where do you get the error about the main module? Can I see the complete stack trace?

Sure.  It's basically what I posted earlier b/c rest of stack trace just has messages regarding outdated modules that don't affect program execution (i.e. these outputted prior to ch7 when hello.py worked).
But here's the complete stack trace when I have from . import db commented out:

(venv)alwayslearnedstuff:~/workspace $ python manage.py shell
/home/ubuntu/workspace/app/__init__.py:3: ExtDeprecationWarning: Importing flask.ext.script is deprecated, use flask_script instead.
  from flask.ext.script import Manager
/home/ubuntu/workspace/app/__init__.py:5: ExtDeprecationWarning: Importing flask.ext.bootstrap is deprecated, use flask_bootstrap instead.
  from flask.ext.bootstrap import Bootstrap
/home/ubuntu/workspace/app/__init__.py:6: ExtDeprecationWarning: Importing flask.ext.moment is deprecated, use flask_moment instead.
  from flask.ext.moment import Moment
/home/ubuntu/workspace/app/__init__.py:7: ExtDeprecationWarning: Importing flask.ext.wtf is deprecated, use flask_wtf instead.
  from flask.ext.wtf import Form
/home/ubuntu/workspace/app/__init__.py:8: ExtDeprecationWarning: Importing flask.ext.sqlalchemy is deprecated, use flask_sqlalchemy instead.
  from flask.ext.sqlalchemy import SQLAlchemy
/home/ubuntu/workspace/app/__init__.py:9: ExtDeprecationWarning: Importing flask.ext.migrate is deprecated, use flask_migrate instead.
  from flask.ext.migrate import Migrate, MigrateCommand
/home/ubuntu/workspace/app/__init__.py:10: ExtDeprecationWarning: Importing flask.ext.mail is deprecated, use flask_mail instead.
  from flask.ext.mail import Mail, Message
Traceback (most recent call last):
  File "manage.py", line 4, in <module>
    from app.models import User, Role
  File "/home/ubuntu/workspace/app/models.py", line 5, in <module>
    class Role(db.Model):
NameError: name 'db' is not defined

And here's the stack trace with from . import db included:

(venv)alwayslearnedstuff:~/workspace $ python manage.py shell
/home/ubuntu/workspace/app/__init__.py:3: ExtDeprecationWarning: Importing flask.ext.script is deprecated, use flask_script instead.
  from flask.ext.script import Manager
/home/ubuntu/workspace/app/__init__.py:5: ExtDeprecationWarning: Importing flask.ext.bootstrap is deprecated, use flask_bootstrap instead.
  from flask.ext.bootstrap import Bootstrap
/home/ubuntu/workspace/app/__init__.py:6: ExtDeprecationWarning: Importing flask.ext.moment is deprecated, use flask_moment instead.
  from flask.ext.moment import Moment
/home/ubuntu/workspace/app/__init__.py:7: ExtDeprecationWarning: Importing flask.ext.wtf is deprecated, use flask_wtf instead.
  from flask.ext.wtf import Form
/home/ubuntu/workspace/app/__init__.py:8: ExtDeprecationWarning: Importing flask.ext.sqlalchemy is deprecated, use flask_sqlalchemy instead.
  from flask.ext.sqlalchemy import SQLAlchemy
/home/ubuntu/workspace/app/__init__.py:9: ExtDeprecationWarning: Importing flask.ext.migrate is deprecated, use flask_migrate instead.
  from flask.ext.migrate import Migrate, MigrateCommand
/home/ubuntu/workspace/app/__init__.py:10: ExtDeprecationWarning: Importing flask.ext.mail is deprecated, use flask_mail instead.
  from flask.ext.mail import Mail, Message
/home/ubuntu/workspace/venv/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:794: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.  Set it to True or False to suppress this warning.
  'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    app = create_app(os.getenv('FLASK_CONFIG') or 'default')
  File "/home/ubuntu/workspace/app/__init__.py", line 32, in create_app
    from .main import main as main_blueprint
ImportError: No module named main

And you are positive you have a file named /home/ubuntu/workspace/app/main/__init__.py? The error is pretty clear, you have some sort of problem with the way you have structured your files.

ok - thank you for looking ; I'll take another look at all the files.

Update: fixed and got these two commands to work (which completes Ch7)!
python manage.py test
python manage.py db upgrade
Here's what was wrong:

I misnamed app/main/init.py     as app/main/init.py     oops! Took awhile to see that one.

... but then I was getting a Form not recognized as a variable which led this issue:

forms.py is missing from Ch7. I went over Ch7 at least half dozen times to see if I had missed something--and even back to Ch4 to see if forms.py was there, similar to how models.py was introduced in Ch5--but it wasn't. No worries, no blame: all good and got me to think through it. I added this code to get it to work:

from . import main
from flask.ext.wtf import Form
from wtforms import StringField, SubmitField
from wtforms.validators import Required

class NameForm(Form):
  name = StringField('What is your name?', validators=[Required()])
  submit = SubmitField('Submit')

Stack trace was helpful - thanks again!
Resolved.

Closing this issue, as it does not apply to the second edition of the book.


Add ability to set test_dir using an environment variable

Prior to this commit, test_dir was extracted from the test file pattern using a regex. For example, using the default RSpec test file pattern of spec/**{,/*/**}/*_spec.rb, test_dir would be extracted in one of two ways:
"spec/**{,/*/**}/*_spec.rb".split('/').first # => "spec"
"spec/**{,/*/**}/*_spec.rb".gsub(/^(.*?)\//).first # => "spec/"

The end result is effectively the same and works great for this case. However, when using a more complex test file pattern this method of extraction fails to provide the desired result. For example, say we had multiple spec directories under different trees:
"{spec,engines/**/spec}/**{,/*/**}/*_spec.rb".split('/').first # => "{spec,engines"
"{spec,engines/**/spec}/**{,/*/**}/*_spec.rb".gsub(/^(.*?)\//).first # => "{spec,engines/"

In this case, the extracted test_dir is not usuable.
This commit modifies the code to use the value specified in ENV["KNAPSACK_DEFAULT_TEST_DIR"], otherwise to extract the test_dir in the normal way.
Note: We could attempt to make extraction more intelligent (and thereby more complex) but allowing one to specify it directly may be the simplest working solution for everyone.

Could you add example in readme in FAQ section. https://github.com/ArturT/knapsack#faq
When you provide KNAPSACK_DEFAULT_TEST_DIR then you will run tests only for this directory or you will have to specify twice rake knapsack:rspec with two different KNAPSACK_DEFAULT_TEST_DIR to run your whole test suite.
How are you using this in your case? Good example in read me would be great.

Certainly! We're trying to setup Knapsack for our app on BuildKite. We use RSpec and in addition to the normal spec/ directory, we also have several engine spec directories—e.g., engines/my_engine/spec. Prior to BuildKite and Knapsack, we ran our entire test suite using a single command:
$ bundle exec rspec spec engines/**/spec

This takes advantage of the default spec directory for RSpec—spec/—allowing require 'spec_helper' to work correctly because $: is modified to include spec/ while also running all specs from our engines.
Initially, I attempted to pass these same arguments to the Knapsack rake task, but the resulting command gave unexpected results (with good reason):
$ bundle exec rake "knapsack:rspec[spec engines/**/spec]"
# `Knapsack::Runner::RSpecRunner` executes:
$ bundle exec rspec spec engines/**/spec --default-path spec -- spec/models/account_spec.rb spec/models/user_spec.rb engines/my_engine/spec/models/invoice_spec.rb engines/my_other_engine/spec/models/document_spec.rb

This stops Knapsack from being able to control what specs are run in each node because we've told RSpec to run the directories directly.
Specifying a more complex test file pattern and omitting the arguments half-fixes the issue, giving control of which specs are run back to Knapsack, but results in an unusable test directory:
$ bundle exec rake "knapsack:rspec[spec engines/**/spec]"
# `Knapsack::Runner::RSpecRunner` executes:
$ bundle exec rspec --tag js --default-path {spec,engines/ -- spec/models/account_spec.rb spec/models/user_spec.rb engines/my_engine/spec/models/invoice_spec.rb engines/my_other_engine/spec/models/document_spec.rb

This is what led me to believe the ability to specify a test directory would be useful. Let me know if you have any other questions about this. I'll add an example to the FAQ.

Thinking about the environment variable further, I wonder if a better name is simply KNAPSACK_TEST_DIR. The "default" portion of the name seems superfluous.

@jnraine Thanks for explanation. Could you add example case with using KNAPSACK_TEST_DIR in .travis.yml. You can add engine_spec_examples directory for other specs or something like that. Thanks!

@ArturT done!

@jnraine Thanks for great work! I've just released knapsack v1.7.0.
BTW If your test suite is big then you may like to try http://knapsackpro.com and get free API key.

Nice. Thanks for the fast merge and release @ArturT!