Create chunks according to the capacity of pdev

if we have different devices withe different capacity, there might be an error when createing vdev.
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from VMetaBlkMgrTest
[ RUN      ] VMetaBlkMgrTest.CompressionBackoff
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [homestore_test_common.hpp:198:start_homestore] Taking input dev_list: /dev/data1,/dev/data2,/dev/data3,/dev/index
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [homestore_test_common.hpp:219:start_homestore] Successfully zeroed the 1st 4194304 of device /dev/data1
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [homestore_test_common.hpp:219:start_homestore] Successfully zeroed the 1st 4194304 of device /dev/data2
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [homestore_test_common.hpp:219:start_homestore] Successfully zeroed the 1st 4194304 of device /dev/data3
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [homestore_test_common.hpp:219:start_homestore] Successfully zeroed the 1st 4194304 of device /dev/index
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [homestore_test_common.hpp:246:start_homestore] Starting iomgr with 2 threads, spdk: false
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [iomgr_config.hpp:48:operator()] Default Pools is not initialized, possibly first boot - setting with defaults
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [iomgr.cpp:111:start] Starting IOManager version 11.3.2-35 with 2 threads [is_spdk=false] [mem_limit=512mb, hugepage=0]
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [12] [reactor.hpp:50:IOThreadMetrics] Registring metrics group name = IOThreadMetrics, thread_name = iomgr_thread_0
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [13] [reactor.hpp:50:IOThreadMetrics] Registring metrics group name = IOThreadMetrics, thread_name = iomgr_thread_1
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [12] [iomgr_timer.cpp:179:setup_timer_fd] Creating non-recurring per-thread timer fd 9 and adding it into fd poll list
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [13] [iomgr_timer.cpp:179:setup_timer_fd] Creating non-recurring per-thread timer fd 14 and adding it into fd poll list
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [12] [iomgr.cpp:347:reactor_started] All Worker reactors started, moving iomanager to sys_init state
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [iomgr_timer.cpp:179:setup_timer_fd] Creating non-recurring global timer fd 17 and adding it into fd poll list
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [iomgr_timer.cpp:179:setup_timer_fd] Creating non-recurring global timer fd 18 and adding it into fd poll list
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [iomgr.cpp:172:start] IOManager is ready and move to running state
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [homestore_test_common.hpp:69:set_fixed_http_port] http port = 5000
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [homestore_test_common.hpp:257:start_homestore] Initialize and start HomeStore with app_mem_size = 307.20mb
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [homestore_config.hpp:93:operator()] Free Blks Slab distribution is not initialized, possibly first boot - setting with defaults
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [homestore_config.hpp:105:init_settings_default] Some settings are defaultted or overridden explicitly in the code, saving the new settings
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [homestore.cpp:123:start] Homestore is loading with following services: meta,
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [cp_mgr.cpp:357:CPWatchdog] CP watchdog timer setting to : 10 seconds
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [iomgr_timer.cpp:179:setup_timer_fd] Creating recurring global timer fd 24 and adding it into fd poll list
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [52] [reactor.hpp:50:IOThreadMetrics] Registring metrics group name = IOThreadMetrics, thread_name = cp_io
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [52] [iomgr_timer.cpp:179:setup_timer_fd] Creating non-recurring per-thread timer fd 27 and adding it into fd poll list
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [drive_interface.cpp:220:get_drive_type] Drive=/dev/data1 is detected to be drive_type=block_hdd
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [device_manager.cpp:78:DeviceManager] Overridding HDD open flags from DIRECT_IO to BUFFERED_IO
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [drive_interface.cpp:220:get_drive_type] Drive=/dev/data2 is detected to be drive_type=block_hdd
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [drive_interface.cpp:220:get_drive_type] Drive=/dev/data3 is detected to be drive_type=block_hdd
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [drive_interface.cpp:220:get_drive_type] Drive=/dev/index is detected to be drive_type=block_nvme
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [physical_dev.cpp:87:PhysicalDev] Opening device /dev/data1 with BUFFERED_IO mode.
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [physical_dev.cpp:108:PhysicalDev] Device /dev/data1 opened with dev_id=30 size=5.46tb
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [device_manager.cpp:125:format_devices] Formatting Homestore on Device=/dev/data1 with first block as: [magic=0xceeddeeb, checksum=2706801898, first_blk_header=[gen_number=1, version=4, product_name=OmStore system_uuid=1e95d85c-f4cc-4571-aadf-73bdd831c056], this_pdev_info=[data_offset=183.19mb, size=5.46tb, pdev_id=0 max_pdev_chunks=357664 dev_attr=[phys_page_size=4kb, align_size=512, atomic_phys_page_size=4kb, num_streams=1] mirror_super_block?=true]] total_super_blk_size=183697408
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [physical_dev.cpp:87:PhysicalDev] Opening device /dev/data2 with BUFFERED_IO mode.
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [physical_dev.cpp:108:PhysicalDev] Device /dev/data2 opened with dev_id=31 size=5.46tb
[05/29/24 17:41:33-07:00] [info] [test_meta_blk_mgr] [9] [device_manager.cpp:125:format_devices] Formatting Homestore on Device=/dev/data2 with first block as: [magic=0xceeddeeb, checksum=3753274083, first_blk_header=[gen_number=1, version=4, product_name=OmStore system_uuid=1e95d85c-f4cc-4571-aadf-73bdd831c056], this_pdev_info=[data_offset=183.19mb, size=5.46tb, pdev_id=1 max_pdev_chunks=357664 dev_attr=[phys_page_size=4kb, align_size=512, atomic_phys_page_size=4kb, num_streams=1] mirror_super_block?=true]] total_super_blk_size=183697408
[05/29/24 17:41:34-07:00] [info] [test_meta_blk_mgr] [9] [physical_dev.cpp:87:PhysicalDev] Opening device /dev/data3 with BUFFERED_IO mode.
[05/29/24 17:41:34-07:00] [info] [test_meta_blk_mgr] [9] [physical_dev.cpp:108:PhysicalDev] Device /dev/data3 opened with dev_id=32 size=5.46tb
[05/29/24 17:41:34-07:00] [info] [test_meta_blk_mgr] [9] [device_manager.cpp:125:format_devices] Formatting Homestore on Device=/dev/data3 with first block as: [magic=0xceeddeeb, checksum=1553422584, first_blk_header=[gen_number=1, version=4, product_name=OmStore system_uuid=1e95d85c-f4cc-4571-aadf-73bdd831c056], this_pdev_info=[data_offset=183.19mb, size=5.46tb, pdev_id=2 max_pdev_chunks=357664 dev_attr=[phys_page_size=4kb, align_size=512, atomic_phys_page_size=4kb, num_streams=1] mirror_super_block?=true]] total_super_blk_size=183697408
[05/29/24 17:41:34-07:00] [info] [test_meta_blk_mgr] [9] [physical_dev.cpp:87:PhysicalDev] Opening device /dev/index with DIRECT_IO mode.
[05/29/24 17:41:34-07:00] [info] [test_meta_blk_mgr] [9] [physical_dev.cpp:108:PhysicalDev] Device /dev/index opened with dev_id=33 size=465.75gb
[05/29/24 17:41:34-07:00] [info] [test_meta_blk_mgr] [9] [device_manager.cpp:125:format_devices] Formatting Homestore on Device=/dev/index with first block as: [magic=0xceeddeeb, checksum=3683111033, first_blk_header=[gen_number=1, version=4, product_name=OmStore system_uuid=1e95d85c-f4cc-4571-aadf-73bdd831c056], this_pdev_info=[data_offset=23.06mb, size=465.73gb, pdev_id=3 max_pdev_chunks=29809 dev_attr=[phys_page_size=4kb, align_size=512, atomic_phys_page_size=4kb, num_streams=1] mirror_super_block?=false]] total_super_blk_size=15794688
[05/29/24 17:41:34-07:00] [info] [test_meta_blk_mgr] [9] [device_manager.cpp:227:create_vdev] meta Virtual device is attempted to be created with num_chunks=4, it needs to be adjust to new_num_chunks=3.58kb
[05/29/24 17:41:34-07:00] [info] [test_meta_blk_mgr] [9] [device_manager.cpp:235:create_vdev] meta Virtual device is attempted to be created with size=15725628325888, it needs to be rounded to new_size=15725620314112 to be the multiple of 14.30mb (num_chunks 3662 * blk_size 4kb).
[05/29/24 17:41:34-07:00] [info] [test_meta_blk_mgr] [9] [device_manager.cpp:290:create_vdev] New Virtal Dev=meta of size=14.30tb with id=0 is attempted to be created with multi_pdev_opts=ALL_PDEV_STRIPED. The params are adjusted as follows: VDev_Size=14.30tb Num_pdevs=4 Total_chunks_across_all_pdevs=3662 Each_Chunk_Size=4.00gb
[05/29/24 17:41:36-07:00] [error] [test_meta_blk_mgr] [9] [physical_dev.cpp:266:create_chunks] Creation of chunks failed because of space, removing 116 partially created chunks
unknown file: Failure
C++ exception with description "Physical dev has no room for additional chunk" thrown in SetUp().

the explanation is as flowing :
[05/29/24 17:41:34-07:00] [info] [test_meta_blk_mgr] [9] [device_manager.cpp:290:create_vdev] New Virtal Dev=meta of size=14.30tb with id=0 is attempted to be created with multi_pdev_opts=ALL_PDEV_STRIPED. The params are adjusted as follows: VDev_Size=14.30tb Num_pdevs=4 Total_chunks_across_all_pdevs=3662 Each_Chunk_Size=4.00gb

for this log, we can see meta vdev will have 3662 chunks in 4 physical dev. since chunks spread evenly across all the 4 drives, so each pdev will have 3662/4 = 915.5 = 915 chunks.
so at least , each pdev should have a space of 915 * 4gb = 3660 gb.
[05/29/24 17:41:34-07:00] [info] [test_meta_blk_mgr] [9] [physical_dev.cpp:108:PhysicalDev] Device /dev/index opened with dev_id=33 size=465.75gb

however, from this line we can see that /dev/index only have the space of 465.75.  so when homestore is trying to allocate 915 chunks(3660 gb) in /dev/index, this errror will happen "Physical dev has no room for additional chunk"

As we have vparam.chunk_size calculated and checked.
Do we want to use this ? just round_down (pdev->data_size()/ vparam.chunk_size) should be enough?

@xiaoxichen  sorry , I dont get your point clearly.  round_down (pdev->data_size()/ vparam.chunk_size)` means how many chunks  can we allocated on one pdev at most.
actually, what we want is that all the chunks of a vdev spread across all the pdevs of the same device type. if we useround_down (pdev->data_size()/ vparam.chunk_size) to determine how many chunks can we allocated on one pdev, all the chunks of this vdev will reside in only one pdev if this pdev have enough capacity.

As we have vparam.chunk_size calculated and checked.
Do we want to use this ? just round_down (pdev->data_size()/ vparam.chunk_size) should be enough?

@xiaoxichen sorry , I don`t get your point clearly.
round_down (pdev->data_size()/ vparam.chunk_size) means how many chunks can we allocated on one pdev at most.
actually, what we want is that all the chunks of a vdev spread across all the pdevs of the same device type. if we useround_down (pdev->data_size()/ vparam.chunk_size) to determine how many chunks can we allocated on one pdev, all the chunks of this vdev will reside in only one pdev if this pdev have enough capacity.

round down means  1.9 ->1 :)
Basically we have calculated chunk size, chunk_size is unique across all pdev,  so just use pdev size divided by chunk size should be # of chunks the pdev should have.   Round down is just to prevent  1.9  chunks be rounded to 2 (should be 1)

@xiaoxichen
1 why chunk_size is unique? they are the same for different pdevs when creating a vdev. for different vdevs , chunk_size could be different.
2 pdev size divided by chunk size is the most number of chunks , which can be created on this pdev, right? as i comments above, if we do this,  all the chunks of this vdev will reside in only one pdev if this pdev have enough capacity.


Upgrade PHP libraries to v1.0

... but we haven't tagged 1.0 yet! :wink:

Thanks so much! :)

For a guy who implemented RC2, RC3 and RC4 you are already there :wink:


VS2015 CE RTM crashes on startup with F# Power Tools installed

On a clean install of VS2015 Community Edition, when I install F# Power Tools and restart, VS2015 crashes on startup. Then it crashes every time I try to open an F# solution. Uninstalling F# Power Tools fixes the problem.
Obviously not everyone is having this issue, I'm not sure what information I could provide that would be relevant. I previously had VS2015 RC which I uninstalled before installing VS2015 CE. My locale is also French (Canada).
Update: after reinstalling the extension again, it now works without crashing. ...

Do you select Visual F# to be installed when setting up VS 2015 RTM? See a similar issue https://github.com/fsprojects/VisualFSharpPowerTools/issues/1048.
Our assumption is that VS 2015 should have F# installed before installing our extension. However, things suddenly changed in VS 2015 RTM when F# isn't included in a typical installation.

Yes I did. I could open an F# solution fine before installing the extension.

We released v2.0.0 with a few fixes for F# 4.0 and VS 2015. Please give it a try and let us know if there is any issue.


Add plugin/csharp template

This PR requires #342.
A part of #333.

Add new template for the dotnet plugin. It can be used with:
flutter-tizen create -tplugin --platforms=tizen --tizen-language=csharp my_plugin
flutter-tizen create -tplugin --platforms=tizen --tizen-language=cpp  my_plugin
flutter-tizen create -tplugin --platforms=tizen --tizen-language=cpp --example-language=cpp  my_plugin

Add template files to templates/plugin/csharp.
Override createTemplateContext() to provide tizen related context values.
Override generateApp() to change context values.
Use tizenIdentifier instead of androidIdentifier in existing templates.
Add example-language option to create command for the example project of the plugin. (default: csharp)
Fix commands in docs. Details of C# plugin will be updated in other PRs.

Breaking Changes

To create C++ tizen plugin, --tizen-language cpp option is required because the default value of --tizen-language is csharp.

flutter-tizen create -tplugin --platforms=tizen --tizen-language=cpp my_cpp_plugin

@swift-kim What do you think if the default value of --tizen-langauge option is variable?
For example,

csharp if template == app
cpp if template == plugin

I don't mind as long as the fact is clearly documented.

Ok, I changed this PR to use the variable default of --tizen-language option.


Custom message on capture window

Is it possible to show custom message on the camera window while capturing image?

Thanks a lot for your issue, however this channel is for bug and feature requests, not for support. 😊
You can try asking on StackOverflow or in our Slack community.


samples:drivers:led_sx1509b_intensity: New k_delayed_work API

Fix #34098 by switching to new k_delayed_work API.
Signed-off-by: Erik Robstad<EMAIL_ADDRESS>

@jfischer-no All three PRs do exactly the same trivial thing, but yes, #33390 has been sitting there for a month waiting for progress---so long I'd forgotten I'd provided it.
The lack of prompt reviews really wastes peoples time.

@jfischer-no All three PRs do exactly the same trivial thing, but yes, #33390 has been sitting there for a month waiting for progress---so long I'd forgotten I'd provided it.
The lack of prompt reviews really wastes peoples time.

@thebatfisk thanks for this PR but let us close it in favor of #33390. Can you please review/approve #33390?

#33390 is merged.


Drop more Katacoda

Mark Katacoda things unused everywhere, even in less maintained localizations.

/lgtm

Thank you for this
/approve


Feature: Separate Scroll for Headings Hierarchy (Web)

Description:
Add a distinct scroll control for the headings hierarchy displayed on the left side of a document in the web version. This would allow users to navigate through sections independently from the main content when the document has a big quantity of headings.

you mean to add a scroll on the left sidebar that shows the document outline?


Update Management - Missing link or '[' not required?

Supported Log Analytics Solutions is installed: Log Analytics solution should be configured and sending data into Log Analytics workspace - supported solutions are Performance counters for Windows & Linux, Heartbeat records for Agent Health, [Update management, and Event data.

Additional Info:
In Prerequisites for Metric Alert for Logs section, Link is missing for Update Management in Supported Log Analytics Solutions is installed(3)

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

ID: fb45c876-8b2a-5e69-3745-5ee47f2bb27d
Version Independent ID: 4ace419b-24da-a3ef-0839-78a2d815cfb8
Content: Creating Metric Alerts for Logs in Azure Monitor
Content Source: articles/azure-monitor/platform/alerts-metric-logs.md
Service: azure-monitor
Sub-service: alerts
GitHub Login: @msvijayn
Microsoft Alias: vinagara

@mkalkere, Thanks for bringing this to our attention. We have updated the doc accordingly.
The changes should be live EOD or tomorrow.

@mkalkere, The requested changes now reflects in the public document, so we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and will reopen the issue. Thanks for bringing this to our attention.


Remove AppArmor 'unconfined' profile directive from Vagrantfile

:arrow_up: Ensure you have put a meaningful title in the box up there. :arrow_up:
Setting aa_profile in lxc makes it fail if AppArmor is not installed on the host. Since the profile set here is "unconfined" I assume it's no big deal to totally remove this.

This PR is a : [Bugfix]

[x] Changelog was updated

+1

+1 On Ubuntu 18 it forbids the box to up.


While building the app Xcode 15 an error "ios/LottieReactNative/ContainerView.swift Could not build Objective-C module 'lottie_react_native'"

Hi everyone, I am experiencing an issue after upgrade to XCode 15, I have an error saying "LottieReactNative/ContainerView.swift Could not build Objective-C module 'lottie_react_native'"
I found a few issues but the solution provided did not work:
https://github.com/lottie-react-native/lottie-react-native/issues/734
https://github.com/lottie-react-native/lottie-react-native/issues/906
I tried:

pod deintegrate && rm -rf podfile.lock && pod update
Quit Xcode.
Delete project's temp files located at ~/Library/Developer/Xcode/DerivedData
Delete ProjectName.xcworkspace
Delete Podfile.lock file and Pods folder
Run pod install.
Open the newly created ProjectName.xcworkspace file and build.

None of these were working for me.

>
Which Version of Lottie are you using?
"lottie-ios": "^3.4.0",
"lottie-react-native": "^5.1.4"
Expected Behavior
The build should succeed.
Actual Behavior

Animation JSON
NA

Can you try v6?

Try updating your project template especially ios folder to the latest changes. Closing this for now as it's not reproducable.

Hello, I have same error.. with latest lottie version..

i am having same error.

@BogdanRad @neeteshraj Have you solved it? I also have this problem.

@BogdanRad @neeteshraj Have you solved it? I also have this problem.

Yes i updated the lottie-react-native and react-native to latest version and it was fixed

@BogdanRad @neeteshraj Have you solved it? I also have this problem.

Yes i updated the lottie-react-native and react-native to latest version and it was fixed

Could you please tell me about your lottie-react-native and react-native versions? Thank you very much. ♪(･ω･)ﾉ

i am having same error.
"Could not build Objective-C module 'lottie_react_native'"
I'm using
"lottie-ios": "^4.4.1",
"lottie-react-native": "^6.7.2",
"react-native": "0.69.1",

i am having same error.
"Could not build Objective-C module 'lottie_react_native'"
I'm using
"lottie-ios": "^4.4.1",
"lottie-react-native": "^6.7.2",
"react-native": "073.6",

The only temporary solution at the moment is to first remove the package and then install it again. But I would like a real solution to this problem
yarn remove lottie-react-native
pod install

yarn add lottie-react-native
pod install

The only temporary solution at the moment is to first remove the package and then install it again. But I would like a real solution to this problem
yarn remove lottie-react-native
pod install

yarn add lottie-react-native
pod install

What kind of solution is that bro

Any update on this?


Site Alias with Canonical setting seems to be replacing the domain name with canonical form also in querystring parameters

I just had an issue where a URL was inexplicably being rewritten.
The URL took the form of:
<EMAIL_ADDRESS>The site had one site alias of "www.host.com" and it was set as primary and the "Site Alias Mapping Mode" was set to "Canonical".
However, when my custom module code would read the value of the email parameter from the querystring of the above request I would get an email value of<EMAIL_ADDRESS>var email = Request.QueryString["email"];
As I understand, the site alias settings would typically rewrite requests for "host.com" to "www.host.com".
I update the "Site Alias Mapping Mode" to redirect and the problem went away.
My guess was that the code responsible for handling "Canonical" site alias mapping is just doing a simple replace which was replacing the "host.com" not just in the base URL but also  incorrectly in the querystring.
I tried to find the issue in the DNN source and I think I might have found at least one instance of the issue in Default.aspx.cs.

Just commenting to keep this bug active.

@ahawes-clarity since you appear to have found the problem, submitting a pull request would be much more efficient than keeping commenting on this stale issue.

@valadas, I understand your point however, I don't have the time and without knowledge of the whole platform I can't be sure my solution is correct.

I am assuming you found this by putting a breakpoint there and you are comfortable enough to see what is happening in there. My guess is that you could simply split the string on the querystring start character and make that replacement happen only on the first part of the URL. If you submit a PR with such change, reviewers will point out if anything is not right and we can get this moving.

Thanks for your feedback. I will see if I have time. I haven't contributed previously so we will see how it goes.

You do understand that contributors to fix such bugs also do it free and take some time off their real paid work to provide a free platform...

@ahawes-clarity I would highly recommend you consider billing your client for the fix they need in the platform.  This is what we do all the time.  And we are transparent about it to them.  :)

Oh, and you don't have the time, this is a perfect use case for GitHub Sponsors.  You could bill your client, use that to sponsor a community member that is willing to help, and then it is a win-win-win-win.


Data keep loading without stop during table data browsing in Hadoop Hive

System information:

Operating system (distribution) and version
Window 10 Enterprise 1709 build 16299.967
DBeaver version
5.3.0
Java version
Java 8 update 121
Additional extensions

Connection specification:

Database name and version
Hadoop
Driver name
JDBC driver
Do you use tunnels or proxies (SSH, SOCKS, etc)?
No. it is via VPN

Describe the problem you're observing:
Unlike in Oracle, only limited rows are loaded during table data browsing, when browsing table data in Hadoop Hive, the data kept loading and tried to load all data, unless manually stopped it. And got the following error message when stopped loading manually:
SQL Error: Error retrieving next row
Steps to reproduce, if exist:
Select the table and double click, then choose 'Data' tab.
Include any warning/errors/backtraces from the logs

SQL Error: Error retrieving next row
FetchResults failed: out of sequence response
Cancel error
Invalid use of BasicClientConnManager: connection still allocated.
Make sure to release the connection before allocating another one.
Invalid use of BasicClientConnManager: connection still allocated.
Make sure to release the connection before allocating another one.

is it still actual?

Thanks for following up.
I am still using version 6.2.4. It is there still. Not sure about the latest version. Will try next week and let you know.
Gary
From: uslss<EMAIL_ADDRESS>Sent: May 15, 2020 5:46 PM
To: dbeaver/dbeaver<EMAIL_ADDRESS>Cc: Gary Liu<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dbeaver/dbeaver] Data keep loading without stop during table data browsing in Hadoop Hive (#5427)
is it still actual?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dbeaver/dbeaver/issues/5427#issuecomment-629508469, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJMELHVLOVHYQ6B6LUTMCBDRRWZX3ANCNFSM4G4FQXXA.

@GaryLiuTelus is there any updates?
thanks in advance

It still exists in 7.1.0

Thanks for following up.

@GaryLiuTelus is it still actual against the recent(21.3.1) version? unfortunately, cannot reproduce it

Thanks for the following up. No, it has been resolved. Everything working perfectly!


Navbar

Documentation site has a really cool menu bar and side menu. Any chance of getting that as part of Turret?

Hi @Addvilz, I'm glad you like the side menu in the docs. This is far to opinionated to be included into the Turret source, however you can see the implementation of this side menu in the docs styles.

Hi, Scott! In different repo as optional extra? :)

Sorry @Addvilz, this isn't something that will be included in Turret, feel free to use the document styles to recreate this style of menu in your projects.

+1 for sidemenu like that on frontpage 😄


Weights

How can we incorporate weights in the models? I want to do bootstrap to calculate the standard errors. The weights will be drawn from the multinomial distribution.

Can you please provide more detail about the models you are talking about? Currently, your question bit vague.

For any model.
Suppose I have a data frame with 3 columns, X, Y and weights.
df = DataFrame(X = 1:10, Y = 20:29, weights = 1:10)

In GLM.jl, I can do:
glm(@formula(Y ~ X), df, Normal(), IdentityLink(), wts=df.weights)

However, in CRRao, there is no option for wts. We'll need to add keyword arguments in CRRao that will be passed to GLM. Not sure how weights are considered for bayesian regression.
With bootstrap, what I want to do is:
using Distributions
replicates = 1000
dist_coef = [coef(glm(@formula(Y ~ X), df, Normal(), IdentityLink(), wts=rand(Multinomial(10, 10))))[1] for i in 1:replicates]
SE = std(dist_coef)

Yes, this feature can be added. GLM can be added quickly. Not sure how to handle the Bayesian model at this stage.

@ShouvikGhosh2048 can you allow fit to accept keyword arguments and then pass them to glm?

Should we allow arbitrary GLM keyword arguments?
Like this:
function fit(formula::FormulaTerm, data::DataFrame, modelClass::LinearRegression; kwargs...)
    model = lm(formula, data; kwargs...)
    return FrequentistRegression(:LinearRegression, model, formula)
end

Or just weights?

I think all kwargs like you have shown.


[Operator] conv2d

Summary

conv2d kernel for flux + other models

Testing Done

tested for correctness with forward and backward test suite

Hardware Type: 4090
[x] run make test to ensure correctness
[x] run make checkstyle to ensure code style
[x] run make test-convergence to ensure convergence

great! can you share the visualized version of bench in the PR description? it is hard to read the csv


Unable to run a nodejs project as yarn is not present in path

What happened?
I have an application which requires yarn to start at run time but yarn is not present in the path in the run image.

What were you attempting to do?
Run application called backstage (backstage.io)

What did you expect to happen?
Expected it to run using the yarn start

What was the actual behavior? Please provide log output, if possible.
bash: yarn: command not found

Build Configuration

What platform (pack, kpack, tekton buildpacks plugin, etc.) are you
using? Please include a version.
pack build backstage-buildpack --path . --builder paketobuildpacks/builder:full

What buildpacks are you using? Please include versions.
Was using the packeto nodejs buildpack

What builder are you using? If custom, can you provide the output from pack inspect-builder <builder>?
paketobuildpacks/builder:full

Can you provide a sample app or relevant configuration (buildpack.yml,
nginx.conf, etc.)?
package copy.json.txt

Checklist

[x ] I have included log output.
[x ] The log output includes an error message.
[x ] I have included steps for reproduction.

Hi @anoop2811, thanks for the report. I have a couple of questions for you.
(1) Do you have a yarn.lock at the root of your application? This is how the nodejs composite buildpack determines if package manager to use is yarn or npm. npm is the default package manager for all node.js applications unless a yarn.lock is present at the root. See sample app https://github.com/paketo-buildpacks/samples/tree/main/nodejs/yarn
(2) Are you expecting to use yarn2? If yes, paketo does not have yarn2 support yet. Please see the discussion here (https://github.com/paketo-buildpacks/yarn/issues/19)

Hi @arjun024 , yes, I do have a yarn.lock file at the root of the application and I am not using yarn2.

Could you provide the build logs and a sample app if possible?

Hi @arjun024,
Please find the sample project here: https://github.com/anoop2811/backstage
Build logs attached:
build.log.txt
Run error: docker run -p 3000:3000 -it  backstage-buildpack bash: yarn: command not found

Thanks for the sample and logs. As of now, the yarn-start buildpack only makes yarn available to the build stage and not in the final built application image. I think it's reasonable for the nodejs buildpack to support a case where the start command is of the syntax yarn workspace <workspace_name> <command>. I'll work on a change to get yarn available at launch and try to get it released soon.
In the meantime, you can make use of the build-plan buildpack. You need a plan.toml at the root of the application asking yarn to be available at launch time i.e. the final application image. See e.g. here

Thanks @arjun024 .
I tried addind the following plan.toml
plan.toml.txt
and tried again using the following command:
pack  build backstage-buildpack --path . --builder paketobuildpacks/builder:full -b<EMAIL_ADDRESS>-b<EMAIL_ADDRESS>but I still get the same error

@anoop2811 With v0.9.0 of the nodejs buildpack, you should be able to have yarn available on the application image. See example app. Feel free to reopen the issue if the problem persists.


x/vuln: allow filtering for private modules

This TODO is copied from https://github.com/golang/vuln/blob/8957372cdf327922ff87e08e4ac22aabba60684d/client/client.go#L30:
Allow filtering private module, possibly at a database level. (e.g. I may want to use multiple databases, but only lookup a specific module in a subset of them)

Does not apply any more. govulncheck allows just a single database now (and the new client does not have this TODO anymore).


Wrong conference management

Application doing Service Discovery and joining ALL found rooms on the muc service.
We should drop it and use XMPP Bookmarks

Remove muc key from your configuration and it will stop doing that. We maybe will drop support of that key in future.


General project questions

I've been researching Reth AlphaNet a bit. Thanks for the effort so far!

My impression is that it is basically Reth with optimism flag enabled and three EIPs supported. Is that correct?
What about the sequencer? Is the alphanet command somehow planned to also spawn one? In this documentation paragraph it's marked with TODO:alphanet node
 --chain etc/alphanet-genesis.json \
 --rollup.sequencer-http <TODO> \
 ...

I'm curious if it can in any way be of use to non-EVM experimenting; or am I completely missing the point?

Sorry if this is not the right place to ask, I thought I'd get the quickest answer here.

My impression is that it is basically Reth with optimism flag enabled and three EIPs supported. Is that correct?

Yes!

What about the sequencer? Is the alphanet command somehow planned to also spawn one?

Eventually yes, we do not have one now but will in the future

I'm curious if it can in any way be of use to non-EVM experimenting; or am I completely missing the point?

Ultimately alphanet is still evm based, so that existing languages, smart contract tooling, and knowledge are applicable. Other VMs could be included as a precompile for example if there is any demand! What were you thinking of?

Thanks for the reply!

Other VMs could be included as a precompile for example if there is any demand! What were you thinking of?

Starknet (Cairo-based).

Starknet (Cairo-based).

cool! I think this would have to be implemented as a precompile as mentioned, since the alphanet evm is not intended to be replaced. But it seems possible, and even doable as a variant of alphanet


Added more robust argument parsing...

Added skeleton for search path support
Need trunk Piccolo backend support for search paths - probably some kind of engine state which gets read in piccolo_createPackage or piccolo_loadPackage?

Switched to draft since this is still technically incompltete

This looks pretty good. The only things I'd change is that the code uses snake_case in some places, and it doesn't look like it throws an error if the user does something like piccolo test1.pic test2.pic. Other than that it looks like a pretty nice extendable system. Thanks a ton!

I've fixed the merge issues- I think we can probably leave package support for later and just merge the new parsing for now

Looks good! Thanks a lot :)


feat(resolver): print detailed error messages for oxc_resolver (#4564)

Summary
I tied to fix  #4564
Require Documentation?

[x] No
[ ] Yes, the corresponding rspack-website PR is __

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

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

@msdlisper Thank you, can you sign the CLA so I can approve this PR?

@Boshen I signed it

Hi~ @IWANABETHATGUY  Could you help me? This change of mine caused EnvironmentPlugin to fail testing. I have looked carefully to see if my change affected the collection of errors, but I still don't know for a while. This error occurs in both the Test Linux/Test Node pipeline

In the end, I found out that EnvironmentPlugin's test case specifically matched the no_path_found error and reported a more specific error message, so I chose to leave the logic as it was, which like this:
       {
          message: 'Failed to resolve hhh in /Users/zhangpeng/my/rspack/webpack-test/configCases/plugins/environment-plugin/index.js',
          formatted: 'error[internal]: Resolve error\n' +
            '   ┌─ configCases/plugins/environment-plugin/index.js:27:50\n' +
            '   │  \n' +
            '23 │       if (process.env.HHH !== "hhh") if (never) require("hhh");\n' +
            '24 │   });\n' +
            '25 │   \n' +
            '26 │   it("should import process.env var with empty value", () => {\n' +
            '27 │       if (process.env.III !== "") if (never) require("iii");\n' +
            '   │ ╭─────────────────────────────────────────────────────^\n' +
            '28 │ │ });\n' +
            '29 │ │ \n' +
            '   │ ╰^ Failed to resolve hhh in /Users/zhangpeng/my/rspack/webpack-test/configCases/plugins/environment-plugin/index.js\n' +
            '\n',
          title: 'Resolve error',
          compilerPath: 'iii'
        }

Although this error indicates the location is slightly off, it is much better than the following indication:
     {
          message: 'Path not found : /Users/zhangpeng/my/rspack/webpack-test/configCases/plugins/environment-plugin',
          formatted: 'error[internal]: Path not found : /Users/zhangpeng/my/rspack/webpack-test/configCases/plugins/environment-plugin\n' +
            '\n',
          title: '',
          compilerPath: 'iii'
        }


Emulator: implement Not gate

Hey Dmitry, saw your post... Let me know if this is what you're expecting.

@gfosco, awesome; thanks!
Another implementation could be 1 - a, but I like the +!a too, since it uses actual ! operator.


Add .limit() to queries to bound them

Fixes #6304
Test Steps:

Query for a large amount of data (e.g. api/adm/listreceiversconnstatus?start_date=2020-01-01T00:00:00.000Z)
Verify only 9000 rows are returned. (Note most localhost devs don't have enough much data in them.)
Using UI
Log in as a Prime Admin
Go to admin/send-dash (menu: Admin-> Receiver Status Dashboard)
Select an earlier starting date (say 5 weeks back).
WARNING: HTML Render of this much data is slow in the browser. (separate client-side fix pending).
Check query only returns 9000 rows.

Changes

Added a .limit(9000) to two queries:

Checklist
Testing

[x] Tested locally?
[x] Ran ./prime test or ./gradlew testSmoke against local Docker ReportStream container?
[x] (For Changes to /frontend-react/...) Ran npm run lint:write?
[ ] ~Added tests?~ Not sure how to test a limit of 9000 rows?

Process

[x] Are there licensing issues with any new dependencies introduced?
[x] Includes a summary of what a code reviewer should test/verify?
[x] Updated the release notes?
[x] Database changes are submitted as a separate PR?
[x] DevOps team has been notified if PR requires ops support?

Linked Issues

Fixes #6304

To Be Done
Create GitHub issues to track the work remaining, if any

#6288 and #6303

Specific Security-related subjects a reviewer should pay specific attention to

(No to all)

Does this PR introduce new endpoints?

new endpoint A
new endpoint B

Does this PR include changes in authentication and/or authorization of existing endpoints?
Does this change introduce new dependencies that need vetting?
Does this change require changes to our infrastructure?
Does logging contain sensitive data?
Does this PR include or remove any sensitive information itself?

If you answered 'yes' to any of the questions above, conduct a detailed Review that addresses at least:

What are the potential security threats and mitigations? Please list the STRIDE threats and how they are mitigated

Spoofing (faking authenticity)

Threat T, which could be achieved by A, is mitigated by M

Tampering (influence or sabotage the integrity of information, data, or system)
Repudiation (the ability to dispute the origin or originator of an action)
Information disclosure (data made available to entities who should not have it)
Denial of service (make a resource unavailable)
Elevation of Privilege (reduce restrictions that apply or gain privileges one should not have)

Have you ensured logging does not contain sensitive data?
Have you received any additional approvals needed for this change?

@carlosfelix2

Pipeline team talked about this and we think it is better to enforce pagination on both the API and DB level instead of providing a max limit that does not report to a user when data is truncated.

So if the API request is too big, then return a 413 Payload Too Large https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413 ?

@carlosfelix2
tldr; I'd like to push back on getting this PR approved as is. It's not perfect, but it's an improvement on what's in production now and it's simple fix and it only impacts an API used by DHPrimeAdmins.
Longer:
Doing a more detailed sanity check is tricky. API level preflighting for api/adm/listreceiversconnstatus cannot determine the size of the resulting query reliability since that depends how often the CRON job is running AND the number of Receivers being checked in additions to the date range.
I have another PR (#6315) that enforced the # of days on the client and this API endpoint is ONLY for DHPrimeAdmins.


New Custom CSS Live Update checkbox

This PR makes the live update checkbox themed with new styles using its own classes instead of some of Discord's, now removed.
Before -> After

I appreciate the contribution. I think the checkbox as shown in your image is a bit large for that area. Additionally, I think we'll probably move to using a switch there instead of a checkbox to be consistent.


Fixing incorrect command for bash

Fixed typo in bash command

@aaronpowell

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


Lost token after login

Please help me!
I'd like to share post on facebook from my app. I'm logging in, but after I did it, I have to login it again to publish my fb post. Library encapsulate token in itself and I don't know where it loosing it(((

openFB.init({appId: 'YOUR_ID_APP', tokenStore: window.localStorage});
This line to store the Facebook token in localStorage instead of sessionStorage.
I hope this helps you.


Multi-GPU support?

Just a quick question. Does the waifu2x plugin support multiple GPU's or is it only able to utilize one GPU at a time?

There is a processor parameter to let user specify which GPU device to use.

I did not mean selecting which GPU to choose. I was wondering if I could let multiple GPU's work on the same image (or on two separate images from the video) to double the processing speed.

I guess you may let GPU1 process the even-numbered frames and GPU2 process the odd-numbered frames, and interleave them in the end.

Good idea. Thanks!

How to do this ? Do you have an example ?

even = core.std.SelectEvery(core.caffe.Waifu2x(clip, processor=gpu1id), cycle=2, offsets=0)
odd =  core.std.SelectEvery(core.caffe.Waifu2x(clip, processor=gpu2id), cycle=2, offsets=1)
clip = core.std.Interleave([even, odd])

@4re
Out of curiosity, did you try to compile this filter on linux by yourself? Did you encounter any problem? It depends on too many libraries so I really have no clue how to properly write the configure makefile.

Not really, I was subscribed to this repo because I was intending to, but it got really complicated and gave up. :/

No, you don't need to build https://github.com/lltcggie/waifu2x-caffe. I already copied the necessary files to this project and they can be compiled by g++ (at least in mingw64). What you need to build is the customized Caffe library, along with all the dependencies: CUDA Toolkit, cuDNN 6, OpenBLAS, Boost, protobuf, glog, gflags, HDF5, and OpenCV. Except CUDA Toolkit and cuDNN, the rest should not be a problem as linux platform is officially supported by the dev. I forked lltcggie's Caffe to my repo which I fixed a compilation error in g++. Do you have a NVIDIA GPU with compute capability >= 3.0 and want to try building it?

On my living-room computer it is proving difficult, because atlas requires throttling off on the CPU to be compiled and it looks like everything I try here is useless (most probably something related to the BIOS).
In the coming days I will give a try on another computer I got.

Um...why choose ATLAS instead of OpenBLAS?

Mmh... Because  openblas is not in my distro's main repo. I only got atlas and mkl there and mkl asks you to register at intel and obtain a license.
In the end I think I will go with mkl on this computer.

For the caffe on your repo to compile I had to make the following changes:
diff --git a/Makefile b/Makefile
index 24894062..1e82139f 100644
--- a/Makefile
+++ b/Makefile
@@ -304,15 +304,16 @@ ifdef CUSTOM_CXX
 	CXX := $(CUSTOM_CXX)
 endif

-# Static linking
-ifneq (,$(findstring clang++,$(CXX)))
-	STATIC_LINK_COMMAND := -Wl,-force_load $(STATIC_NAME)
-else ifneq (,$(findstring g++,$(CXX)))
-	STATIC_LINK_COMMAND := -Wl,--whole-archive $(STATIC_NAME) -Wl,--no-whole-archive
-else
-  # The following line must not be indented with a tab, since we are not inside a target
-  $(error Cannot static link with the $(CXX) compiler)
-endif
+# This is probably not needed as it looks it's only used for the matlab portion
+# # Static linking
+# ifneq (,$(findstring clang++,$(CXX)))
+# 	STATIC_LINK_COMMAND := -Wl,-force_load $(STATIC_NAME)
+# else ifneq (,$(findstring g++,$(CXX)))
+# 	STATIC_LINK_COMMAND := -Wl,--whole-archive $(STATIC_NAME) -Wl,--no-whole-archive
+# else
+#   # The following line must not be indented with a tab, since we are not inside a target
+#   $(error Cannot static link with the $(CXX) compiler)
+# endif

 # Debugging
 ifeq ($(DEBUG), 1)
@@ -370,6 +371,7 @@ ifeq ($(BLAS), mkl)
 else ifeq ($(BLAS), open)
 	# OpenBLAS
 	LIBRARIES += openblas
+	BLAS_INCLUDE += /usr/include/openblas
 else
 	# ATLAS
 	ifeq ($(LINUX), 1)
@@ -403,6 +405,9 @@ LIBRARY_DIRS += $(LIB_BUILD_DIR)
 # Automatic dependency generation (nvcc is handled separately)
 CXXFLAGS += -MMD -MP

+# Looks like we have some c++11 code there
+CXXFLAGS += -std=c++11
+
 # Complete build flags.
 COMMON_FLAGS += $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir))
 CXXFLAGS += -pthread -fPIC $(COMMON_FLAGS) $(WARNINGS)
diff --git a/Makefile.config b/Makefile.config
index f6958e60..33c17335 100644
--- a/Makefile.config
+++ b/Makefile.config
@@ -18,14 +18,14 @@ USE_LMDB := 0
 # ALLOW_LMDB_NOLOCK := 1

 # Uncomment if you're using OpenCV 3
-# OPENCV_VERSION := 3
+OPENCV_VERSION := 3

 # To customize your choice of compiler, uncomment and set the following.
 # N.B. the default for Linux is g++ and the default for OSX is clang++
 # CUSTOM_CXX := g++

 # CUDA directory contains bin/ and lib/ directories that we need.
-CUDA_DIR := /usr/local/cuda
+CUDA_DIR := /opt/cuda
 # On Ubuntu 14.04, if cuda tools are installed via
 # "sudo apt-get install nvidia-cuda-toolkit" then use this instead:
 # CUDA_DIR := /usr

I got it to compile with this changes:
diff --git a/Makefile b/Makefile
index 24894062..278277b0 100644
--- a/Makefile
+++ b/Makefile
@@ -304,15 +304,16 @@ ifdef CUSTOM_CXX
 	CXX := $(CUSTOM_CXX)
 endif

-# Static linking
-ifneq (,$(findstring clang++,$(CXX)))
-	STATIC_LINK_COMMAND := -Wl,-force_load $(STATIC_NAME)
-else ifneq (,$(findstring g++,$(CXX)))
-	STATIC_LINK_COMMAND := -Wl,--whole-archive $(STATIC_NAME) -Wl,--no-whole-archive
-else
-  # The following line must not be indented with a tab, since we are not inside a target
-  $(error Cannot static link with the $(CXX) compiler)
-endif
+# This is probably not needed as it looks it's only used for the matlab portion
+# # Static linking
+# ifneq (,$(findstring clang++,$(CXX)))
+# 	STATIC_LINK_COMMAND := -Wl,-force_load $(STATIC_NAME)
+# else ifneq (,$(findstring g++,$(CXX)))
+# 	STATIC_LINK_COMMAND := -Wl,--whole-archive $(STATIC_NAME) -Wl,--no-whole-archive
+# else
+#   # The following line must not be indented with a tab, since we are not inside a target
+#   $(error Cannot static link with the $(CXX) compiler)
+# endif

 # Debugging
 ifeq ($(DEBUG), 1)
@@ -369,7 +370,8 @@ ifeq ($(BLAS), mkl)
 	BLAS_LIB ?= $(MKLROOT)/lib $(MKLROOT)/lib/intel64
 else ifeq ($(BLAS), open)
 	# OpenBLAS
-	LIBRARIES += openblas
+	LIBRARIES += openblas_openmp
+	BLAS_INCLUDE += /usr/include/openblas
 else
 	# ATLAS
 	ifeq ($(LINUX), 1)
@@ -403,6 +405,9 @@ LIBRARY_DIRS += $(LIB_BUILD_DIR)
 # Automatic dependency generation (nvcc is handled separately)
 CXXFLAGS += -MMD -MP

+# Looks like we have some c++11 code there
+CXXFLAGS += -std=c++11
+
 # Complete build flags.
 COMMON_FLAGS += $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir))
 CXXFLAGS += -pthread -fPIC $(COMMON_FLAGS) $(WARNINGS)
diff --git a/Makefile.config b/Makefile.config
index f6958e60..33c17335 100644
--- a/Makefile.config
+++ b/Makefile.config
@@ -18,14 +18,14 @@ USE_LMDB := 0
 # ALLOW_LMDB_NOLOCK := 1

 # Uncomment if you're using OpenCV 3
-# OPENCV_VERSION := 3
+OPENCV_VERSION := 3

 # To customize your choice of compiler, uncomment and set the following.
 # N.B. the default for Linux is g++ and the default for OSX is clang++
 # CUSTOM_CXX := g++

 # CUDA directory contains bin/ and lib/ directories that we need.
-CUDA_DIR := /usr/local/cuda
+CUDA_DIR := /opt/cuda
 # On Ubuntu 14.04, if cuda tools are installed via
 # "sudo apt-get install nvidia-cuda-toolkit" then use this instead:
 # CUDA_DIR := /usr

Good. Did you build OpenBLAS with USE_OPENMP=1? I think that's not necessary as it has native multi-threading support (using pthread). Anyway, please try the configure script I just commit and see whether it works.

Yes, I have that flags set by default on my system, in case somebody does not have it built like that my line will not work for them ofc.
A better option here will be having the old line and a comment explaining the other options, or let pkg-config deal with it, but I don't know if this is too much for a Makefile file.
The configure script you committed here works good if you make the changes I suggested. Thank you for your efforts, I was not expecting to see this ported to non-windows systems.

Thank you too for cooperation. Do you actually load it in vsedit and preview it to make sure it works?

Yes, it works nicely.


TAJO-1813: Allow external catalog store for unit testing

This patch is only to test catalog.
I've added two more unit tests, i.e., TestCatalogAgainstCaseSensitivity and TestCatalogExceptions. As shown in those names, one of them is to test catalog functionalities against text case sensitivity and the other is to test if catalog throws exceptions properly.
I've verified every unit test of tajo-catalog-server with pgsql, mysql, mariadb, and derby.

I miss tests for some partition APIs and nested fields. I'll add them.

This patch is ready for review.

It's excellent! I leaved some comments.

@hyunsik thank you for your review. I updated the patch according to your comment except wrong URI tests. The problem is that we cannot test against wrong URI input because it doesn't cause any errors. I think we need to handle this problem at another issue.

+1
The patch looks good to me. Ship it!


Use early stopping in SCVI

@mxposed @adamgayoso I tried to implement early stopping in SCVI but I get the following error RuntimeError: Early stopping conditioned on metric elbo_validation which is not available. Pass in or modify your EarlyStopping callback to use any of the following: train_loss, train_loss_step, train_loss_epoch, elbo_train, reconstruction_loss_train, kl_local_train, kl_global_train
Submission type

[ ] This submission adds a new dataset
[ ] This submission adds a new method
[ ] This submission adds a new metric
[ ] This submission adds a new task
[ ] This submission adds a new Docker image
[X] This submission fixes a bug (link to related issue: https://github.com/openproblems-bio/openproblems/issues/407)
[ ] This submission adds a new feature not listed above

Testing

[X] This submission was written on a forked copy of SingleCellOpenProblems
[ ] GitHub Actions "Run Benchmark" tests are passing on this base branch of this pull request (include link to passed test: )
[X] If this pull request is not ready for review (including passing the "Run Benchmark" tests), I will open this PR as a draft (click on the down arrow next to the "Create Pull Request" button)

Submission guidelines

[X] This submission follows the guidelines in our Contributing document
[X] I have checked to ensure there aren't other open Pull Requests for the same update/change

PR review checklist
This PR will be evaluated on the basis of the following checks:

[X] The task addresses a valid open problem in single-cell analysis
[X] The latest version of master is merged and tested
[ ] The methods/metrics are imported to __init__.py and were tested in the pipeline
[ ] Method and metric decorators are annotated with paper title, year, author, code version, and date
[ ] The README gives an outline of the methods, metrics and datasets in the folder
[ ] The README provides a satisfactory task explanation (for new tasks)
[ ] The sample test data is appropriate to test implementation of all methods and metrics (for new tasks)

Should work to add early_stopping_monitor="elbo_train". The issue is because the train size is 1.0 there is no validation set.

Got it. Related question then, should we be using a validation set if this is supposed to be best practice?

Got it. Related question then, should we be using a validation set if this is supposed to be best practice?

Yes, probably makes sense to use the default train size (which I think is 0.9) and default early stopping metric

If the validation set is only used for early stopping, would it not potentially diminish performance?

I'm not familiar enough with these models to really comment, but if we're doing label projection with a train set and a test set, using a validation set for early stopping seems to be a good idea to prevent overfitting to the train set, no?

Ah, wait. I thought we were talking about dimensionality reduction here for some reason. Early stopping is only on the scANVI part here I think. There a validation set makes sense to me.

yes, sorry :).


Add Query max length

Wikipedia has a hard restriction on the title name of 255 characters

-The maximum length has been made to 100 characters with an alert shown when max length is reached


nixos/treewide: drop dependencies to keys.target

Motivation for this change
The keys.target is used to indicate whether all NixOps keys were
successfully uploaded on an unattended reboot. However this can cause
startup issues e.g. with NixOS containers (see #67265) and can block
boots even though this might not be needed (e.g. with a dovecot2
instance running that doesn't need any of the NixOps keys).
As described in the NixOps manual[1], dependencies to keys should be
defined like this now:
{
  systemd.services.myservice = {
    after = [ "secret-key.service" ];
    wants = [ "secret-key.service" ];
  };
}

However I'd leave the issue open until it's discussed whether or not to
keep keys.target in nixpkgs.
[1] https://nixos.org/nixops/manual/#idm140737322342384
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @

You should probably call in some nixops reviewers, and maybe @edolstra (if he still keeps up on nixops stuff at all?)


Fix Inkplate 6 Color touchpads

Expected behavior:
Examples/Inkplate6COLOR/touchpads.py should work on the Inkplate 6 Color out of the box
Actual behavior:
The following error occurs:
Traceback (most recent call last):
  File "<stdin>", line 24, in <module>
AttributeError: 'Inkplate' object has no attribute 'TOUCH1'

Problem:
The GPIO pins were not being correctly initialized for the Inkplate 6 Color
Solution:
Remove self.setPCALForLowPower() as this sets all GPIO pins to output. We want the touchpads to be input.
Initialize TOUCH1, TOUCH2, and TOUCH3 to use GPIO pins 10, 11, and 12 respectively (all in pull-up input mode).
Previously, SD_ENABLE was assigned pin 10, but that corresponds to touchpad 1. I moved SD_ENABLE to pin 13 as that is where it is on the Inkplate 6 Plus. I'm not sure if this is correct as I've been unable to find a circuit schematic for the Inkplate 6 Color.

This works for me


[Feature Request]

add feature for rename space

Yes I'd like to find an elegant way to implement this directly in simple-bar interface. In the mean time, you can add this function to you .bash_profile:
function rename_space() {
  yabai -m space $1 --label $2
  osascript -e 'tell application id "tracesOf.Uebersicht" to refresh widget id "simple-bar-spaces-jsx"'
}

# usage for renaming your third space
# yabai -m 3 --label "my custom space name"

I'll let you know when I come up with something. :)

Hi!
All spaces can now be renamed by clicking on label with alt/option key pressed. :)


fix: DEV-2266: Tasks ordered by file names on import

For better control of imported tasks, file reading has been changed to ascending order of filenames.
In other words, the task IDs are sorted by filename order.
Issue described in detail here.

@dvwright @mikbuch https://heartex.slack.com/archives/C03JQT7KD6E/p1655157358234299?thread_ts=1655151930.621739&cid=C03JQT7KD6E

Release Notes for Label Studio 1.5.0 (June 15, 2022)
New Functionality

-Sort task IDs by ascending order of filenames. This helps to easily handle the imported tasks.


Internal Server Error 6 sept.

Whenever I use https://netrunnerdb.com/en/decklists/search and search for a deck with a specific card, I get 500 Internal Server Error. Started today, about the time I posted this issue.

And just trying to go to https://netrunnerdb.com/en/search gives me internal server error too.

I get the same if I try to create a new deck, or edit and save an existing deck.

Same issue on Importing as well.

Seems to have been resolved now.

Thanks guys


Jenkins CI: PX4 ROS2: deploy required tools

This PR aims to implement auto deployment of the required tools for px4_ros_com to build the micro-RTPS bridge.

Successful deploy: https://github.com/PX4/px4_ros_com/commit/229ddbd76dec71fd55d54668fe5e43d04aba4d3b. This is now good to go!

Merging it since it works as expected.


Clean up static libs at build time

Cleaning up un-used .a files at build time.
@chef/client-core @lamont-granquist

:+1:
Has this passed Manhattan?

:+1:  Looking forward to you expanding that cleanup script for the entire embedded directory except for a few white-listed items (like the fips-canister objects).

Yeah ... given transient issues... enough of Manhattan passed that I'm comfortable merging now.


[COLIB-NGC] add govHydro4

I am not aware of the term “clattering”. It might be that we are saying the same thing in different words 😊
Nevertheless, to give a bit more of background, here is one reference talking about the backlash. https://ceeesa.es.anl.gov/projects/psh/ANL_DIS-13_05_Review_of_Existing_Hydro_and_PSH_Models.pdf
The model is a bit different compared to ours, but the governor part is largely the same.
<EMAIL_ADDRESS>There is a lot of information on backlash and how to model it here: https://www.diva-portal.org/smash/get/diva2:1050397/FULLTEXT01.pdf
From: Martin Franke @.>
Sent: Wednesday, 30 October 2024 14:30
To: CRESYM/colib0.github.io @.>
Cc: Lampros Papangelis @.>; Review requested @.>
Subject: Re: [CRESYM/colib0.github.io] [COLIB-NGC] add govHydro4 (PR #226)
@martinscripts commented on this pull request.

In pages/models/regulations/governor/GovHydro4/index.mdhttps://github.com/CRESYM/colib0.github.io/pull/226#discussion_r1822637179:

+position for controlling water flow results in an immediate but

+temporary change in turbine power output, known as transient droop. To
+address this, a mechanism called transient droop compensation is
+employed. This mechanism, which shown in the upper half of the
+Figure 2,
+involves rate feedback or transient gain reduction, which slows down or
+limits gate movement until water flow and power output have had time to
+adjust. As the system stabilizes, the governor returns to normal
+operation with permanent droop $$R_\mathrm{perm}$$, responding more
+sensitively to speed deviations to maintain steady-state operation. This
+compensation mechanism ensures stable control performance, crucial for
+maintaining consistent power output in hydroelectric power plants [1].

+Note: There is a difference between the intentional deadband and the
+unintentional deadband. The latter has a hysteris around the operating
+point.
we changed it to this:
There is a difference between the intentional deadband and the unintentional deadband. The former is intentionally added to the control to prevent continuous adjustment of the mechanical power in response to minor frequency deviations. The latter has a hysteresis around the operating point, representing clattering of the mechanical actuator. The intentional deadband has a fixed region with zero output.
afaik it is used to model clattering of the actuator, not backlash? If I am wrong, could you please elaborate a bit more how the hysteresis models the backlash?
—
Reply to this email directly, view it on GitHubhttps://github.com/CRESYM/colib0.github.io/pull/226#discussion_r1822637179, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BLBLTZOZOIVCWJRU557B4P3Z6DNL3AVCNFSM6AAAAABOLQZVB6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDIMBUHEYTKNRYGU.
You are receiving this because your review was requested.Message ID<EMAIL_ADDRESS>

Now that I read it maybe it is a mistranslation from German. I will think about it!

yes, actually. Backlash is exactly what I wanted to say. thanks


Cookies for current domain rejected

I tried to set a cookie programmatically and PhantomJSDriver rejects that cookie even if cookie belongs to the current domain. The error message is very generic not revealing much details:

Caused by: org.openqa.selenium.UnableToSetCookieException: {"errorMessage":"Unable to set Cookie",...

Same command works with FirefoxDriver and ChromeDriver (see test cases to reproduce below).

Is there some workaround or fix for that?
How can I troubleshoot the problem better, e.g., get more informations about rejection reason from PhantomJS?

I'm using PhantomJSDirver 1.2.1 with phantomjs 2.2.1

import org.openqa.selenium.Cookie;
import org.openqa.selenium.InvalidCookieDomainException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.phantomjs.PhantomJSDriver;
import org.testng.annotations.DataProvider;

import org.testng.annotations.Test;

import java.util.function.Supplier;

import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.startsWith;

public class CookiesTest {

    @Test(dataProvider = "webDrivers")
    public void shouldAcceptCookieForCurrentDomain(String type, Supplier<WebDriver> drivers) {
        WebDriver driver = drivers.get();

        driver.get("http://www.bbc.com");
        assertThat(driver.getCurrentUrl(), startsWith("http://www.bbc.com"));
        driver.manage().addCookie(
                new Cookie.Builder("MYCOOKIE", "value").domain("www.bbc.com").build());
        assertThat(driver.manage().getCookieNamed("MYCOOKIE").getValue(), equalTo("value"));

        driver.close();
    }

    @Test(dataProvider = "webDrivers", expectedExceptions = InvalidCookieDomainException.class)
    public void shouldRejectedCookieForDifferentDomain(String type, Supplier<WebDriver> drivers) {
        WebDriver driver = drivers.get();

        driver.get("http://www.bbc.com");
        assertThat(driver.getCurrentUrl(), startsWith("http://www.bbc.com"));
        driver.manage().addCookie(
                new Cookie.Builder("MYCOOKIE", "value").domain("different.domain.com").build());

        driver.close();
    }

    @DataProvider
    public Object[][] webDrivers() {
        System.setProperty("webdriver.chrome.driver", "/Users/mgawinec/dev-tools/chromedriver/chromedriver");

        Supplier<WebDriver> phantomJSDrivers = () -> new PhantomJSDriver();
        Supplier<WebDriver> firefoxDrivers = () -> new FirefoxDriver();
        Supplier<WebDriver> chromeDrivers = () -> new ChromeDriver();
        return new Object[][]{
                {"phantomJS", phantomJSDrivers},
                {"firefox", firefoxDrivers},
                {"chrome", chromeDrivers}};
    }

}

I tried to verify the case directly with PhantomJS and PhantomJS accepts the cookie. So it looks the problem is with Web driver integration.
var page = require('webpage').create();
page.open('http://www.bbc.com', function(status) {
  console.log("Status: " + status);
  if(status === "success") {
    console.log("Before adding a cookie");
    console.log(JSON.stringify(phantom.cookies, null, 2));
    phantom.addCookie({
      'name': 'MYCOOKIE',
      'value': 'value',
      'domain': 'www.bbc.com'
    });
   console.log("After adding a cookie");
   console.log(JSON.stringify(phantom.cookies, null, 2));
  }
  phantom.exit();
});

And the cookie is printed after adding:
{
   "domain": ".www.bbc.com",
   "httponly": false,
   "name": "MYCOOKIE",
   "path": "/",
   "secure": false,
   "value": "value"
 },

Please see email below from Andrei.  Can you try upgrading to 1.3.0?
---------- Forwarded message ----------
From: Andrei Solntsev<EMAIL_ADDRESS>Date: Thu, Apr 21, 2016 at 5:04 PM
Subject: Re: [detro/ghostdriver] upgrade to selenium-java 2.47.1 and Java 7
(#462)
To: detro/ghostdriver<EMAIL_ADDRESS>Cc: jerrywiltse<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>
@detro https://github.com/detro @jerrywiltse
https://github.com/jerrywiltse For your information, I have created a
fork: https://github.com/codeborne/ghostdriver
I updated it a little bit:

upgraded to Java 7 and Selenium 2.53.0.
upgraded to gradle 2.12
fixed few javadocs
ignored few failing tests

I have also set up a build server:
https://ci.selenide.org/view/libs/job/phantomjsdriver/
And now it have built a phantomjsdriver 1.3.0-SNAPSHOT:
https://oss.sonatype.org/content/repositories/snapshots/com/codeborne/phantomjsdriver/1.3.0-SNAPSHOT/
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/detro/ghostdriver/pull/462#issuecomment-213113852
Gerald R. Wiltse
<EMAIL_ADDRESS>On Fri, Apr 22, 2016 at 2:28 AM, dzieciou<EMAIL_ADDRESS>wrote:

I tried to verify the case directly with PhantomJS and PhantomJS accepts
the cookie. So it looks the problem is with Web driver integration.
var page = require('webpage').create();page.open('http://www.bbc.com', function(status) {
console.log("Status: " + status);
if(status === "success") {
console.log("Before adding a cookie");
console.log(JSON.stringify(phantom.cookies, null, 2));
phantom.addCookie({
'name': 'MYCOOKIE',
'value': 'value',
'domain': 'www.bbc.com'
});
console.log("After adding a cookie");
console.log(JSON.stringify(phantom.cookies, null, 2));
}
phantom.exit();
});
And the cookie is printed after adding:
{
"domain": ".www.bbc.com",
"httponly": false,
"name": "MYCOOKIE",
"path": "/",
"secure": false,
"value": "value"
},
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/detro/ghostdriver/issues/477#issuecomment-213283910

I have tried it with 1.3.0 release version of the binding and the problem persists.

@dzieciou Cookies related tests are failed while running latest ghost driver changes. It has been fixed in this phantomjs pull request 14068. To resolve your issue a new phantomjs version should be released. Here are the list of failed testcases related to cookies gist-testcases

Looking at release frequency I can expect things to get working for my tests in 2017 ;-) I better built things myself :-(


Config option to show whitespace

Whitespace was used extensively for layout issues in the legacy content.
As new content is added, the legacy whitespace makes the alignments inconsistent.
By showing whitespace in Author mode the author can be aware of the cause of alignment issues, when they are due to whitespace.
The user-guide should have an annex of config changes.  Include this, a link to linebreak , and the step for force format to be included for new file references.

Option here:


when iam trying to make my led display circuit like shematic this error appear TypeError: in method 'FOOTPRINT_SetPosition', argument 2 of type 'wxPoint const &'

Traceback (most recent call last):

File "/Users/fuad/Documents/KiCad/6.0/scripting/plugins/kicad-plugins-main/SchematicPositionsToLayout.py", line 177, in Run
self.DoRun()

File "/Users/fuad/Documents/KiCad/6.0/scripting/plugins/kicad-plugins-main/SchematicPositionsToLayout.py", line 239, in DoRun
move_modules(components, board, offsets)

File "/Users/fuad/Documents/KiCad/6.0/scripting/plugins/kicad-plugins-main/SchematicPositionsToLayout.py", line 160, in move_modules
module.SetPosition(new_pos)

File "/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pcbnew.py", line 17267, in SetPosition
return _pcbnew.FOOTPRINT_SetPosition(self, aPos)

TypeError: in method 'FOOTPRINT_SetPosition', argument 2 of type 'wxPoint const &'

my shematic is as follow:

I think you might be using the wrong version of the script there. There are two versions: SchematicPositionsToLayout.py is for KiCad v7, and SchematicPositionsToLayout_V5_V6.py is for KiCad v5 and v6. The line numbers in the stack trace make it look as though you're using the v7 script, but you're using it with KiCad v6. The pcbnew API changed between v6 and v7, so you need to use the right script for the KiCad version you're using.


Adding sample Test Case

it will be nice if we can add one simple test case as part of the project-setup vertx forge command

Fixed by #4


Regexp should be multi-line aware

Use  case: Microsoft/vscode-cpptools#2072
Steps to Reproduce:
Type the following text in a .cpp file
a = a
    * b;

Then hit enter at the end of the line to begin a new line. You'll get
a = a
    * b;
    *

This is not expected behavior in this context. This is perhaps expected when in the middle of a multiline decorated comment but not otherwise.
This does not happen in an unsaved file, a file with no extension, .txt extension etc. and does not happen if the cpptools extension is disabled and happens when it is re-enabled.

The CPP extension sets onEnterRules like TypeScript:
onEnterRules: [
		{
			// e.g. /** | */
			beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
			afterText: /^\s*\*\/$/,
			action: { indentAction: IndentAction.IndentOutdent, appendText: ' * ' }
		}, {
			// e.g. /** ...|
			beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
			action: { indentAction: IndentAction.None, appendText: ' * ' }
		}, {
			// e.g.  * ...|
			beforeText: /^(\t|[ ])*[ ]\*([ ]([^\*]|\*(?!\/))*)?$/,
			action: { indentAction: IndentAction.None, appendText: '* ' }
		},

The user wants to keep the last rule when inside a multiline comment, but from what I understand the beforeText can only match a single line, so it appears that there's no way for us to write a rule that can detect whether we're in a multiline comment or not (e.g. by looking at the previous line).


Custom Field Types

Hi,
is it currently possible to add custom field types?
Example:

Alternative WYSIWYG Editor (e.g. tinymce )

I have checked the code and (for me) it seems it's currently not possible to create custom field types.
Thanks & Greets

Hi @noxify,
there are multiple ways to add custom fields actually. I'll expand with more details in a dedicated section of Twill's docs when I get more time but in the meantime, here are some hints:

each module form view can welcome any custom html
form values are stored using Vuex (in window.STORE.form.fields as objects containing a name and a value)

As long as your custom field is saving its value to Twill's Vuex store, it will be available for you to process in your module's repository, before or after saving. If your custom field directly maps to a fillable field in your Eloquent model, no custom code is needed there. Vuex store will need to be initialized on form load too. You can take inspiration from existing Twill fields.
if you need to use your custom fields in multiple forms you can create a dedicated custom fields view folder and include it from your form views. You could also leverage Twill and Laravel existing infrastructure around views (by adding new fields or overriding existing fields in your application views/admin/partials/form directory if you'd like to keep using Twill's @formField directive).
You could also potentially add Vue components to Twill's build. It is not documented, but if you know your way around Webpack, npm scripts and Laravel Mix, you should be able to merge in anything you want.
Flexibility is key and we know there are all sorts of ways to extend Twill's capabilities, but we can also feel you and recognize that our documentation is not thorough yet! Working on it :)

Hi, I am trying to duplicate or just rewrite (whatever is easier) the "Browser" component. For example, I need to change the thumbnail URL (currently it has just a href="#", while the title has an edit URL) and change the delete button title.
Is there any way I can do it?
Thanks


Helm chart error when creating rollup with astria-cli 0.3.1

I face the following issue when I try creating a rollup with astria-cli 0.3.1:
./astria-cli rollup deployment create \
  --config $ROLLUP_CONF_FILE \
  --faucet-private-key $ROLLUP_FAUCET_PRIV_KEY \
--sequencer-private-key $SEQUENCER_PRIV_KEY --debug --dry-run
thread 'main' panicked at crates/astria-cli/src/commands/rollup.rs:231:13:
failed deploying config: `helm` returned error: install.go:172: [debug] Original chart version: ""
install.go:189: [debug] CHART PATH: /Users/<>/Library/Caches/helm/repository/astria-evm-rollup-0.8.6.tgz

Error: template: astria-evm-rollup/templates/configmap.yaml:9:87: executing "astria-evm-rollup/templates/configmap.yaml" at <index .Subcharts "celestia-node">: error calling index: index of untyped nil
helm.go:94: [debug] template: astria-evm-rollup/templates/configmap.yaml:9:87: executing "astria-evm-rollup/templates/configmap.yaml" at <index .Subcharts "celestia-node">: error calling index: index of untyped nil

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I think there is an issue with the configmap.yml helm chart. Also I think it could be cool if that helm chart repo was parameterized. We could try fixing it and pass our local version as a param :)

@bharath-123 fyi you can specify the chart path with --chart-path flag, and I believe it can take a path to a local chart as well as a url to a chart in a chart repo!
Closing this as it seems the issue was resolved when you updated your version of helm


Config changes to reflect the default branch from master to main. Please merge to complete the default branch renaming job.

Auto branch renaming content.

Docs Build status updates of commit fad0bb1:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Cannot detect react component if JSX is returned as variable

The following component will not trigger any eslint errors with this plugin installed:
const Foo = ({ bar }) => {
  const baz =
Hello World
;

  return baz;
};

Expected Result
react/prop-types error
Actual Result
No prop-type error
Its pretty low priority because a workaroud is to use a Fragment in your return statement
const Foo = ({ bar }) => {
  const baz =
Hello World
;

  return <>{baz}</>;
};

Version
eslint: 6.1.0
eslint-plugin-react: 7.14.3
react: 16.8.6

Indeed, there’s no way to reliably statically detect an SFC that doesn’t return jsx. Returning the fragment is a good workaround.


npm install mraa is not working

I got the following message
><EMAIL_ADDRESS>install /Users/xxx/node_modules/mraa
> node-gyp rebuild

  CC(target) Release/obj.target/mraa/src/x86/intel_gt_tuchuck.o
In file included from ../src/x86/intel_gt_tuchuck.c:32:
In file included from ../include/x86/intel_gt_tuchuck.h:31:
In file included from ../include/mraa_internal.h:35:
In file included from ../include/mraa_internal_types.h:31:
In file included from ../api/mraa/iio.h:28:
../api/mraa/iio_kernel_headers.h:113:10: fatal error: 'linux/ioctl.h' file not found
#include <linux/ioctl.h>
         ^
1 error generated.
make: *** [Release/obj.target/mraa/src/x86/intel_gt_tuchuck.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Darwin 16.1.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/changhyunlee/Desktop/Programming/JavaScript/iotapp-template-analog-read/node_modules/mraa
gyp ERR! node -v v6.0.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "mraa"
npm ERR! node v6.0.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mraa package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs mraa
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls mraa
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/xxx/iotapp-template-analog-read/npm-debug.log

I tried the downgraded version of node, and nothing worked.

You don't seem to have the linux kernel headers installed?
On 11 Dec 2016 18:09, "CH Lee"<EMAIL_ADDRESS>wrote:

I got the following message

<EMAIL_ADDRESS>install /Users/xxx/node_modules/mraa
node-gyp rebuild

CC(target) Release/obj.target/mraa/src/x86/intel_gt_tuchuck.o
In file included from ../src/x86/intel_gt_tuchuck.c:32:
In file included from ../include/x86/intel_gt_tuchuck.h:31:
In file included from ../include/mraa_internal.h:35:
In file included from ../include/mraa_internal_types.h:31:
In file included from ../api/mraa/iio.h:28:
../api/mraa/iio_kernel_headers.h:113:10: fatal error: 'linux/ioctl.h' file not found
#include <linux/ioctl.h>
^
1 error generated.
make: *** [Release/obj.target/mraa/src/x86/intel_gt_tuchuck.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Darwin 16.1.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/changhyunlee/Desktop/Programming/JavaScript/iotapp-template-analog-read/node_modules/mraa
gyp ERR! node -v v6.0.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "mraa"
npm ERR! node v6.0.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mraa package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs mraa
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls mraa
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/xxx/iotapp-template-analog-read/npm-debug.log
I tried the downgraded version of node, and nothing worked.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/intel-iot-devkit/mraa/issues/618, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAfZZuunbOgGC3CUKINTsdvzaLgzLvQ7ks5rHDxjgaJpZM4LJ_Sp
.

As @tingleby points out, this is on mac OS X gyp ERR! System Darwin 16.1.0. We don't support installing libmraa on non linux targets.

...and that's probably the build is run on Mac OS ("Darwin" is reported by npm in the error log). I don't think we support this yet - the mock mode could be built there, but there's no support for that on trunk (search the issues section for a discussion we had on that a while ago).


RPC row added to "such ports" table

The "RPC" row in the "Such Ports" table was missing. Row has been added to the "such ports" table.

First time submitting a PR, be gentle. :p

First time submitting a PR, be gentle.

The only thing I had to change was that you were requesting a pull against master and instead it needs to go against the dev branch. This is the "base" selector when you open a PR. Otherwise, great! Thanks!

it needs to go against the dev branch.

I was toying with the idea of sending that to dev.1.14.7 , but came to second guess myself because it was less a "development" and more of a "typo".
So i'll ask:  is it best practice to assume that all PRs should be directed at the next version that is still under development?

So i'll ask: is it best practice to assume that all PRs should be directed at the next version that is still under development?

Even better: no need to practice or assume, it's documented in the readme 😁
We'll simply not merge anything to master as long as we have this branching strategy. The strategy is subject to change after 1.21 becomes master, but until then, master is only mutable on release (so that we can fast-forward it when we do minor releases and keep things clean.) ❤

Even better: no need to practice or assume, it's documented in the readme 😁

LOL 😅


Argument 2 Exception\Handler::__construct() must be an instance of array, null given

what I done:
hhvm+laravel 5.1+nginx
installed with:  composer require dingo/api:0.10.*@dev
in config: 'prefix' => env('API_PREFIX', 'api'),
in routes:
$api = app('Dingo\Api\Routing\Router');

Route::get('/', function() {
    return 'hello world';
});

even if I dont set api routes at all I get the error just the app('Dingo\Api\Routing\Router'); make the error
error:
Fatal error: Uncaught exception 'ErrorException' with message 'Argument 2 passed to Dingo\\Api\\Exception\\Handler::__construct() must be an instance of array, null given' in /var/www/html/site/vendor/dingo/api/src/Exception/Handler.php:64

just deleted everything and reinstall somehow helped so its work now, anyway will be good to update to docs to say that you need to give full path to the conroller in routes like:
$api->version('v4', function ($api) {
    $api->get('posts', ['as' => 'posts', 'uses' => 'App\Http\Controllers\Api\V4\PostsController@index']);
});


Redirect issue

Expected behavior and actual behavior
Redirect example from the doc is not working:
redirect "/my/old/path.html", to: "/my/new/path.html"

but
redirect "my/old/path.html", to: "/my/new/path.html"

is working fine.
I dig a bit into the issue.
It seems to come from here https://github.com/middleman/middleman/blob/7c968b9572923fd0f7fb176ca8e52a91727adf84/middleman-core/lib/middleman-core/sitemap/store.rb#L155
request_path is my/old/path.html but the key in @ _lookup_by_destination_path is /my/old/path.html
Additional information

Ruby version: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin16]
Middleman version: 4.1.10

Is there any legal use case for storing a non-normalized URL in both the @_lookup_by_destination_path and @_lookup_by_path hashes?
I don't see any user of that hash but the store itself. If we normalize the paths both when storing and accessing, then this bug should get fixed.
The only drawback is if there's any extension/customization that is [ab]using this feature to distinguish between both paths (/my/path and my/path), but I don't think we want to care about that.
If you're OK with the change, I'll do it.

I can confirm that I'm still seeing this, on MM 4.2.1 on OSX 10.12 with Ruby 2.4.1.

@matiasgarciaisaia Seems like the @_ prefix is screaming at anyone looking that this is a "private" variable. Should be safe to normalize both. Mind putting a quick PR up and see if it passes the test suite?

Just ran into this. Thanks for reporting the issue!


Improve documentation to include JNA configuration capabilities

Hi all,
testcontainers appears to be using JNA to perform its magic. By default, JNA writes to /tmp/jna folder and tries to execute something from there.
On some environments, /tmp folder is mounted with noexec flag, which makes the whole process fail.
Could you please add a documentation section where you specify your usage of JNA (maybe it's coming from docker-java?) and adding a note that properties jna.tmpdir and java.io.tmpdir can be used to override the default value?
A sample error that might occur during build with wrong configuration is:
ERROR o.t.d.EnvironmentAndSystemPropertyClientProviderStrategy.test - ping failed with configuration Environment variables, system properties and defaults. Resolved:
[08:35:13][Step 2/5]     dockerHost=unix:///var/run/docker.sock
[08:35:13][Step 2/5]     apiVersion='{UNKNOWN_VERSION}'
[08:35:13][Step 2/5]     registryUrl='https://index.docker.io/v1/'
[08:35:13][Step 2/5]     registryUsername='xxx'
[08:35:13][Step 2/5]     registryPassword='null'
[08:35:13][Step 2/5]     registryEmail='null'
[08:35:13][Step 2/5]     dockerConfig='DefaultDockerClientConfig[dockerHost=unix:///var/run/docker.sock,registryUsername=xxx,registryPassword=<null>,registryEmail=<null>,registryUrl=https://index.docker.io/v1/,dockerConfigPath=/home/xxx/.docker,sslConfig=<null>,apiVersion={UNKNOWN_VERSION},dockerConfig=<null>]'
[08:35:13][Step 2/5]  due to java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: /tmp/jna-100295547/jna9104525941980512569.tmp: /tmp/jna-100295547/jna9104525941980512569.tmp: failed to map segment from shared object: Operation not permitted
[08:35:13][Step 2/5] 	at org.rnorth.ducttape.timeouts.Timeouts.callFuture(Timeouts.java:68)

And I understand it is not directly your issue, but having a documentation section about it would help others in the future
Thanks and cheers

Thanks @steghio, and sorry that you hit an issue. I think that a documentation update might be a good thing to do, but I think we should discuss exactly where this would fit into the docs first - we might need a new page, or it might be able to go into the system requirements section somewhere.

Hello,
sure thanks. I could create a PR but I would please ask for directions regarding where to place this information. It is simply a paragraph saying you use JNA and those two properties are available to configure it in the end.
Cheers


ProcessCPUUsage field values doesn't mean anything

Recently, I switched from the old version of this module to the new one and I noticed that the ProcessCPUUsage field was giving completely ununderstandable values and didn't seem to make sense compared to the others.
For example, here is the result I can get (it happens to me all the time and is not exceptional):
> PrintTable(serverstat.All())...
LogicalCPUs = 8
PhysicalCPUs = 8
ProcessCPUUsage = 40300 -- ???
ProcessMemoryUsage =<PHONE_NUMBER>5
SystemAvailableMemory = 19969.983398438
SystemCPUUsage = 41.920177459717
SystemMemoryUsage = 49319.202148438
SystemTotalMemory = 70362.319335938

The same thing happens with the asynchronous function (but sometimes it returns 0 without any reason).
> serverstat.async.All(function(data) PrintTable(data) end)...
LogicalCPUs = 8
PhysicalCPUs = 8
ProcessCPUUsage = 0 -- ???
ProcessMemoryUsage =<PHONE_NUMBER>
SystemAvailableMemory = 20000.5234375
SystemCPUUsage = 100 -- Why not
SystemMemoryUsage = 49288.662109375
SystemTotalMemory = 70362.319335938

For information, my server is on a dedicated machine hosted by a game provider (so I don't have control of the machine to check the stats). AFAIK, the server is running under Debian 10 64-bit.
] version
Protocol version 24
Exe version 2021.06.09 (garrysmod)
Exe build: 14:56:57 Jul 12 2021 (8283) (4000)
GMod version 2021.07.12, branch: unknown
Linux 32bit Dedicated Server

And here is the script I use to get the information from the module.
-- From : https://github.com/WilliamVenner/gmsv_serverstat/
if not file.Exists("bin/gmsv_serverstat_*.dll", "LUA") then return end

require("serverstat")

concommand.Add("server-stats", function(ply)

    local data = serverstat.All()
    local phrase = "CPU Usage : %s (%s/%s)\nMemory Usage : %s (%s)"

    phrase = string.format(phrase,

        math.Round(data.ProcessCPUUsage, 2) .. "%",

        data.LogicalCPUs, data.PhysicalCPUs,

        string.NiceSize(data.ProcessMemoryUsage * 10 ^ 6),

        string.NiceSize(data.SystemTotalMemory * 10 ^ 6)

    )

    Raven.Server.SendChatMessage(ply, color_red, phrase)

end)

Extract from the docs for the upstream function

Returns the total CPU usage (in %). Notice that it might be bigger than 100 if run on a multicore machine.
If you want a value between 0% and 100%, divide the returned value by the number of CPU processors.
Warning: If you want accurate CPU usage number, better leave a bit of time between two calls of this method (200 ms for example).

This is what I do:
https://github.com/WilliamVenner/gmsv_serverstat/blob/master/src/sysinfo.rs#L105
I believe this is sound. Can you check if you can reproduce this on Windows?

On Windows (and on Windows Server with a dedicated server), it seems these values are perfectly normal.
] lua_run PrintTable(serverstat.All())
> PrintTable(serverstat.All())...
LogicalCPUs	=	8
PhysicalCPUs	=	4
ProcessCPUUsage	=	6.8244895935059
ProcessMemoryUsage	=<PHONE_NUMBER>75
SystemAvailableMemory	=	7734.50390625
SystemCPUUsage	=	16.620286941528
SystemMemoryUsage	=	8981.4033203125
SystemTotalMemory	=	16715.907226563

] lua_run serverstat.async.All(function(data) PrintTable(data) end)
> serverstat.async.All(function(data) PrintTable(data) end)...
LogicalCPUs	=	8
PhysicalCPUs	=	4
ProcessCPUUsage	=	9.4401035308838
ProcessMemoryUsage	=<PHONE_NUMBER>125
SystemAvailableMemory	=	7742.8876953125
SystemCPUUsage	=	11.839296340942
SystemMemoryUsage	=	8973.01953125
SystemTotalMemory	=	16715.907226563

But sometimes the SystemCPUUsage field returns 0 even if it has been previously called. I also tested this on another dedicated server but this time if on CentOS 8 and I experience exactly the same problem described above.

If you want a value between 0% and 100%, divide the returned value by the number of CPU processors.

I did the calculation, the machine seems to have 8 CPU processors (PhysicalCPUs and LogicalCPUs fields) so 40300 (from the first example) / 8 ~= 5037.5.

@FlorianLeChat Can you test with v0.2.4?

lua_run serverstat.async.All(function(data) PrintTable(data) end)
> serverstat.async.All(function(data) PrintTable(data) end)...
LogicalCPUs     =       1
PhysicalCPUs    =       1
ProcessCPUUsage =       9100
ProcessMemoryUsage      =<PHONE_NUMBER>5
SystemAvailableMemory   =       1802.69921875
SystemCPUUsage  =       5.363748550415
SystemMemoryUsage       =       1448.689453125
SystemTotalMemory       =       3727.6279296875

I still get the problem unfortunately. The server is a VPS with 1 vCore and running CentOS 8. On Windows (and Windows Server), everything works perfectly.

@FlorianLeChat Looks like sysinfo may have made some fixes since, please give v0.2.5 a try.

The problem is still there, unfortunately.
lua_run serverstat.async.All(function(data) PrintTable(data) end)
> serverstat.async.All(function(data) PrintTable(data) end)...
LogicalCPUs     =       2
PhysicalCPUs    =       2
ProcessCPUUsage =       0
ProcessMemoryUsage      =<PHONE_NUMBER>
SystemAvailableMemory   =       1345.5234375
SystemCPUUsage  =       4.6325511932373
SystemMemoryUsage       =       2071.0537109375
SystemTotalMemory       =       3728.015625

lua_run serverstat.async.All(function(data) PrintTable(data) end)
> serverstat.async.All(function(data) PrintTable(data) end)...
LogicalCPUs     =       2
PhysicalCPUs    =       2
ProcessCPUUsage =       100
ProcessMemoryUsage      =       925.625
SystemAvailableMemory   =       1345.3671875
SystemCPUUsage  =       5.5462183952332
SystemMemoryUsage       =       2071.2099609375
SystemTotalMemory       =       3728.015625

Protocol version 24
Exe version 2021.06.09 (garrysmod)
Exe build: 14:56:57 Jul 12 2021 (8283) (4000)
GMod version 2021.07.12, branch: unknown
Linux 32bit Dedicated Server

(Always under CentOS 8)

Is the issue isolated to only CentOS? Do you know if it happens on other distros?

This is what I also said to myself when I wrote my answer just before, I have a feeling that CentOS might be the problem. I'm very tempted to install Debian and/or Ubuntu Server on a virtual machine tomorrow to test that.

If we can only reproduce this on CentOS, I can let the maintainer of sysinfo know and he can implement a fix.

I just did the test under Debian 11 and I get the same problem (even when switching to the 64 bits version of the dedicated server).

This is just weird. My Ubuntu 16 is fine:

This issue is really confusing 😕
For more information, the tests I did today were done under VMWare 16 with the latest OS images and I installed a fresh new Garry's Mod server using LinuxGSM.

Ok, mine's under WSL. I doubt LinuxGSM could be doing that.


globalName does not work

Version
v2.12.2
Reproduction link
https://pastebin.com/KTkTNTPD
Steps to reproduce
npx create-nuxt-app test-project
add globalName: 'alpha' in your nuxt.config.js
npm run dev
What is expected ?
changed _nuxt to _customname
What is actually happening?
Upon checking the rendered page source code, you can still find _nuxt instead of your assigned globalName

This bug report is available on Nuxt community (#c10732)

@psdon I think you're looking for the [publicPath] config option - see docs. globalName affects these global names.


How to track external link when each link has its own metadata?

Same as the topic. Does redux-beacon support this?

I have same/similar question, I put it here:
https://stackoverflow.com/questions/54807396/react-redux-beacon-track-link-clicks-analytics
🙏🏼

This was answered on StackOverflow: https://stackoverflow.com/questions/54807396/react-redux-beacon-track-link-clicks-analytics


CORS Issue

Hello,
despite I followed tutorial on setting signalR with Azure Function and set the CORS settings on Function App correctly:

When trying to run the website after login I am getting following CORS related error:
Access to XMLHttpRequest at 'https://signalrtestml.azurewebsites.net/api/negotiate' from origin 'https://signalrdemoml.z16.web.core.windows.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

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

ID: 92ea301b-6db8-83db-9bed-4e94969f26dd
Version Independent ID: b5c14f79-1eb4-3a6e-0c50-e61c1dadacfb
Content: Tutorial: Authentication with Azure Functions - Azure SignalR
Content Source: articles/azure-signalr/signalr-tutorial-authenticate-azure-functions.md
Service: signalr
GitHub Login: @vicancy
Microsoft Alias: lianwei

I figured out the problem, article is very outdated and is using unsupported Node version 10, please update local.settings file to use newer version of node.

@MarekLani
Thanks for your feedback! We will investigate and update as appropriate.

I have assigned the issue to the content author to investigate further and update the document as appropriate.

Hi @MarekLani, thanks again for the feedback. There is a pending PR to update the doc addressing this issue.

@MarekLani, this is the preview link of the doc if you need it: https://review.learn.microsoft.com/en-us/azure/azure-signalr/signalr-tutorial-authenticate-azure-functions?branch=pr-en-us-227560

thank you @RyanHill-MSFT and @Y-Sindo, I reviewed the preview, and it is missing the CORS part. Is it no longer needed to be set?

@MarekLani Yes. As now the web application is hosted by the function app, there is no CORS.