fix: Sidebar z-index not reset correctly in Search and Graph scripts

This PR fixes an issue where z-index override is not removed correctly in Search and Graph's scripts.
Take search for example, the current script would set the containing sidebar's z-index to 1 when the search container is invoked:

Then reset it to unset after dismissing the container. Issue is unset makes the sidebar element inherit z-index from its parent quartz-body instead of its original z-index (MDN doc). This causes styling issues in a number of places, such as what's shown below, <hr> tag becoming above the sidebar:

The right way to reset is to delete the z-index override from the inline style:

TIL learned z-index is not inherited

TIL learned z-index is not inherited

Oh thanks for the correction! Also learnt that today, by default z-index doesn't inherit 😄 Let me correct my explanation for future reference:
In this case unset is behaving like z-index: initial instead, my explanation is wrong. But the outcome is the same, because parent div quartz-body doesn't have z-index set, left sidebar's z-index got set to auto regardless, which is 0, same as other article elements.
Not setting z-index allows left sidebar to use its original z-index setting, which is 1.

element.style.zIndex = ""

This one :)


x1251 As a user (Hon Man), I want strip labels to be printed in the reverse of their current order, so that they appear in the correct order on the roll.

linked x1206
RT#812183

Hi @khelwood are we applying this to all operations with the print functionality, or is it specific to certain ones? I checked the RT ticket, but it doesn't provide many details.


Score persists in new games

Hey peoples,
I played multiple games, and it appears that the score from the previous game persisted into my new game.
🚀

Hey @dpogni ! This should be all patched up with #40 . Thanks for logging such a critical P0!


Invoke-WebRequest: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..

🧐 Have you read the FAQ and viewed similar issues?

[x] I have read the FAQ
[X] I have checked older issues, open and closed
[X] I did a clean install of SpotX as described in the FAQ

Сountry of your account
India
What is your Spotify Plan?
Free
Do you have Spicetify installed?
No
ℹ Computer information
- Spotify: <IP_ADDRESS>3.ge7902f05
- Windows: Windows 11, version 10.0.22621 Build 22621
- PowerShell: 7.3.3

📝 Description
I tried to do the Automatic Full Installation and got this error message
Invoke-WebRequest: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..

I used this command to install SpotX
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex "& { $((iwr -useb 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content) } -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -cache_off -block_update_on -start_spoti -new_theme -adsections_off -lyrics_stat spotify"

📸 Screenshots

#233

I tried using a VPN but still no change

Hi, sorry to bug you so much
But I was just curious why is it that I have to use VPN for this now?
It worked fine earlier

Also, sorry for going offtopic but is there a way to bring the lyrics interface back in the new theme in the playback bar in bottom right?

Hi, sorry to bug you so much But I was just curious why is it that I have to use VPN for this now? It worked fine earlier

In some countries, such as India, ISPs have started blocking github resources, I don’t know why, you can look into this issue more carefully if you are interested, I’m just stating a fact.

Also, sorry for going offtopic but is there a way to bring the lyrics interface back in the new theme in the playback bar in bottom right?

Use the input parameter -old_lyrics

Ok thanks a lot


Method-chaining via this to allow (new MyWidget(...))->op1()->op2()

At least the existing void methods could do it for free already.
Still not much use until #27 though... (to spare the creation of a temp. local Widget* if the callback would actually use the widget...).

The ones used in the demo (and some more) have been changed.

Widget::add() should also be like this (but templated):
W* Widget::add(W* w) { ...; return w; }

In Layout.hpp, this works now:
template  W* add(W* widget) { return (W*) ((Widget*)add((Widget*)widget)); }

But why couldn't this also stop the recursion?!
template <typename W = std::enable_if<!std::is_same<W, Widget>::value, Widget>::type>
W* add(W* widget) { return add((Widget*)widget)); }

NOTE: 1. didn't work until I also did cast the retval back to Widget*!

Label has also joined the club now.


Failed to start Redis

After installing a fresh js8 on an Ubuntu 16.04, redis_main service was not up and running. I found the following on the logs
Nov 29 15:59:45 vm-3918 redis-server[23714]: *** FATAL CONFIG FILE ERROR ***
Nov 29 15:59:45 vm-3918 redis-server[23714]: Reading the configuration file, at line 78
Nov 29 15:59:45 vm-3918 redis-server[23714]: >>> 'protected-mode yes'
Nov 29 15:59:45 vm-3918 redis-server[23714]: Bad directive or wrong number of arguments
Nov 29 15:59:45 vm-3918 systemd[1]: redis_main.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 15:59:45 vm-3918 systemd[1]: redis_main.service: Unit entered failed state.
Nov 29 15:59:45 vm-3918 systemd[1]: redis_main.service: Failed with result 'exit-code'.
Nov 29 15:59:45 vm-3918 systemd[1]: redis_main.service: Service hold-off time over, scheduling restart.
Nov 29 15:59:45 vm-3918 systemd[1]: Stopped redis_main.
Nov 29 15:59:45 vm-3918 systemd[1]: redis_main.service: Start request repeated too quickly.
Nov 29 15:59:45 vm-3918 systemd[1]: Failed to start redis_main.

the current redis server version that gets installed is
Redis server v=3.0.5 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=5b64d127fd934a65
I checked the redis manual and the 3.0 version configurations do not have the attribute "protected-mode" check https://raw.githubusercontent.com/antirez/redis/3.0/redis.conf
The module CuisineRedis gets the latest stable version of the redis server while the RdisInstaller SAL has a hardcoded configurations for the server which probably is outdated.

@ahussein did this occur on branch 8.1.0 or master?

master branch

Please from now test all on 810 branch
On Nov 29, 2016 20:20, "Abdelrahman Hussein"<EMAIL_ADDRESS>wrote:

After installing a fresh js8 on an Ubuntu 16.04, redis_main service was
not up and running. I found the following on the logs
Nov 29 15:59:45 vm-3918 redis-server[23714]: *** FATAL CONFIG FILE ERROR ***
Nov 29 15:59:45 vm-3918 redis-server[23714]: Reading the configuration file, at line 78
Nov 29 15:59:45 vm-3918 redis-server[23714]: >>> 'protected-mode yes'
Nov 29 15:59:45 vm-3918 redis-server[23714]: Bad directive or wrong number of arguments
Nov 29 15:59:45 vm-3918 systemd[1]: redis_main.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 15:59:45 vm-3918 systemd[1]: redis_main.service: Unit entered failed state.
Nov 29 15:59:45 vm-3918 systemd[1]: redis_main.service: Failed with result 'exit-code'.
Nov 29 15:59:45 vm-3918 systemd[1]: redis_main.service: Service hold-off time over, scheduling restart.
Nov 29 15:59:45 vm-3918 systemd[1]: Stopped redis_main.
Nov 29 15:59:45 vm-3918 systemd[1]: redis_main.service: Start request repeated too quickly.
Nov 29 15:59:45 vm-3918 systemd[1]: Failed to start redis_main.
the current redis server version that gets installed is
Redis server v=3.0.5 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64
build=5b64d127fd934a65
I checked the redis manual and the 3.0 version configurations do not have
the attribute "protected-mode" check https://raw.githubusercontent.
com/antirez/redis/3.0/redis.conf
The module CuisineRedis gets the latest stable version of the redis server
while the RdisInstaller SAL has a hardcoded configurations for the server
which probably is outdated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Jumpscale/jumpscale_core8/issues/598, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AFvi1MgoMge3p17BQx_82RZs52kh-U1Wks5rDFDWgaJpZM4K_K6-
.


AWS dynamodb.DescribeContinuousBackups => 400 (UnknownOperationException)

`resource "aws_dynamodb_table" "terraform_locks" {
count        = length(var.stages)
depends_on   = [aws_s3_bucket.terraform_state]
name         = format("terraform_locks_%s", var.stages[count.index])
billing_mode = "PAY_PER_REQUEST"
hash_key     = "LockID"
attribute {
name = "LockID"
type = "S"
}
}
`
Terraform v1.2.8
provider registry.terraform.io/hashicorp/aws v4.29.0
i user this tf file to create dynamodb table.
'tflocal apply -auto-approve' command executes normally, but this is an error in localstack log 'AWS dynamodb.DescribeContinuousBackups => 400 (UnknownOperationException)'.
and when i use 'awslocal dynamodb list-tables' command, and I did not find any tables.

Thanks for reporting @futugyou - looks like this particular API functionality is not yet implemented in DynamoDB LocalStack. Do you mind re-creating this issue in our issue tracker in the main repo here: https://github.com/localstack/localstack/issues . This will help us better prioritize it in our backlog.. Thanks for your help!

I think this issues I created in the wrong repo, you can close it and re-creating an isssue in main repo.

Ok thanks @futugyou - will close the issue. Just to confirm - you will create the ticket in the main repo, right? Thanks


Add backend code for pod network options

This adds network-related options to the pod in the database. We are going to add the CLI frontend in further patches.
In short, this should greatly improve the ability of pods to configure networking, once the CLI parsing is added.

@baude @haircommander PTAL

LGTM once you get past the tests

CI should go green now

@mheon Looks rather red.

Looks like a registry went down... going to restart tests

Finally green

/lgtm


even more typos. get rid of static namespace. get rid of static secre…

…t. parametrize kubelet version correctly for master

if the flag is --service-account-private-key-file perhaps we should make the file service-account-key.pem instead of account-secret.pem ?


typo: 05a pytorch

https://github.com/MicrosoftDocs/ml-basics/blob/master/05a - Deep Neural Networks (PyTorch).ipynb
Take a look at the first 25 training features and corresponding labels
Should be
Take a look at the first 25 training samples and corresponding labels

No. The code shows the first 25 features (x) and their corresponding labels (y)


Enable Sentry Caches and Queries pages

[x] Double-check the spelling and grammar of all strings, code comments, etc.
[x] Double-check that all code is deterministic that needs to be
[x] Add tests to cover any new or revised logic
[x] Ensure that the test suite passes
[x] Update the project release notes
[x] Update the project documentation, as appropriate, with a corresponding Pull Request in the Documentation repository

Need to be tested after the Aug 24th.

Can we also add a Sentry tag for mainnet/testnet?

What's the status of this?

moved here https://github.com/CounterpartyXCP/counterparty-core/pull/2318


Fix bugs about kubeadm upgrading.

It will lead to the following error if using yum upgrade -y kubeadm --disableexcludes=kubernetes command:
https://serverfault.com/questions/943696/fatal-unexpected-error-when-reading-kubeadm-config-configmap-clusterconfigurat
Running yum upgrade -y kubeadm --disableexcludes=kubernetes command will upgrade the kubeadm to v1.13, but kubeadm v1.13 could not upgrade the v1.11 kubeadm cluster.

ping @xiangpeng
for kubeadm reviewing

Checked the updates on : https://deploy-preview-12809--kubernetes-io-master-staging.netlify.com/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-12/
/approve


Prevent NPE if connection is closed before result set is initialized

Edge case was causing a NPE to be thrown when initializing BQForwardOnlyResultSet. The underlying issue seems to be a race condition where a connection is closed after the job has been completed but before the driver has an opportunity to get the query results. Specifically, calling close() on a BQConnection sets its bigquery attribute to null so efforts to getQueryResultsDivided would fail.
This just adds an additional check to see if bigquery is null and throws a more informative exception.

Yep hunting that down, although it only occurs during Load Runner test runs where >300 virtual users are running queries simultaneously. Might be hitting a limit client side that is causing some connections to be killed but can't say for sure yet.


Error when rendering no indicator after having shown the indicator (flexible mode)

@letsar Congratulations on the package, it is really great!
I have found a possible bug, which I have a failing test for it.
If I have the OverflowView widget showing the indicator because items don't fit, if I setState or rebuild the UI with a set of children that fits, it throws an error.
This is a failing test with the latest version of the repo. It only seems to happen with the flexible mode.
It looks like the issue is in the layout logic, but I have low experience with it to make a PR.
If I add a different key based on the children it doesn't throw.
testWidgets(
    'failing test',
    (tester) async {
      print("Building first with indicator...");
      await tester.pumpWidget(
        Center(
          child: SizedBox(
            width: 100,
            child: OverflowView.flexible(
              builder: (context, count) {
                return const SizedBox(width: 30);
              },
              children: [
                const SizedBox(width: 50),
                const SizedBox(width: 20),
                const SizedBox(width: 50),
                const SizedBox(width: 50),
              ],
            ),
          ),
        ),
      );

      print("Building second without indicator...");
      await tester.pumpWidget(
        Center(
          child: SizedBox(
            width: 100,
            child: OverflowView.flexible(
              builder: (context, count) {
                return const SizedBox(width: 30);
              },
              children: [
                const SizedBox(width: 50),
              ],
            ),
          ),
        ),
      );
    },
  );

And this is the stacktrace
Output for failing test
Building first with indicator...
Building second without indicator...
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following assertion was thrown while finalizing the widget tree:
'package:flutter/src/rendering/object.dart': Failed assertion: line 1532 pos 14:
'_debugSubtreeRelayoutRootAlreadyMarkedNeedsLayout()': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md

When the exception was thrown, this was the stack:
#2      RenderObject.markNeedsLayout (package:flutter/src/rendering/object.dart:1532:14)
#3      RenderBox.markNeedsLayout (package:flutter/src/rendering/box.dart:2147:11)
#4      RenderConstrainedLayoutBuilder.updateCallback (package:flutter/src/widgets/layout_builder.dart:192:5)
#5      _LayoutBuilderElement.unmount (package:flutter/src/widgets/layout_builder.dart:115:18)
#6      _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1998:13)
#7      _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1996:7)
#8      MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6218:16)
#9      _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1994:13)
#10     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1996:7)
#11     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6105:14)
#12     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1994:13)
#13     _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1996:7)
#14     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6105:14)
#15     _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1994:13)
#16     ListIterable.forEach (dart:_internal/iterable.dart:39:13)
#17     _InactiveElements._unmountAll (package:flutter/src/widgets/framework.dart:2007:25)
#18     BuildOwner.finalizeTree.<anonymous closure> (package:flutter/src/widgets/framework.dart:2821:27)
#19     BuildOwner.lockState (package:flutter/src/widgets/framework.dart:2621:15)
#20     BuildOwner.finalizeTree (package:flutter/src/widgets/framework.dart:2820:7)
#21     AutomatedTestWidgetsFlutterBinding.drawFrame (package:flutter_test/src/binding.dart:1108:18)
#22     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:302:5)
#23     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1117:15)
#24     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1055:9)
#25     AutomatedTestWidgetsFlutterBinding.scheduleWarmUpFrame (package:flutter_test/src/binding.dart:1036:5)
#26     runApp (package:flutter/src/widgets/binding.dart:1063:7)
#27     TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:791:7)
<asynchronous suspension>
#30     TestWidgetsFlutterBinding._runTest (package:flutter_test/src/binding.dart:764:14)
#31     AutomatedTestWidgetsFlutterBinding.runTest.<anonymous closure> (package:flutter_test/src/binding.dart:1173:24)
#32     FakeAsync.run.<anonymous closure>.<anonymous closure> (package:fake_async/fake_async.dart:178:54)
#37     withClock (package:clock/src/default.dart:48:10)
#38     FakeAsync.run.<anonymous closure> (package:fake_async/fake_async.dart:178:22)
#43     FakeAsync.run (package:fake_async/fake_async.dart:178:7)
#44     AutomatedTestWidgetsFlutterBinding.runTest (package:flutter_test/src/binding.dart:1170:15)
#45     testWidgets.<anonymous closure> (package:flutter_test/src/widget_tester.dart:138:24)
#46     Declarer.test.<anonymous closure>.<anonymous closure> (package:test_api/src/backend/declarer.dart:175:19)
<asynchronous suspension>
#47     Declarer.test.<anonymous closure>.<anonymous closure> (package:test_api/src/backend/declarer.dart)
#52     Declarer.test.<anonymous closure> (package:test_api/src/backend/declarer.dart:173:13)
#53     Invoker.waitForOutstandingCallbacks.<anonymous closure> (package:test_api/src/backend/invoker.dart:231:15)
#58     Invoker.waitForOutstandingCallbacks (package:test_api/src/backend/invoker.dart:228:5)
#59     Invoker._onRun.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test_api/src/backend/invoker.dart:383:17)
<asynchronous suspension>
#60     Invoker._onRun.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test_api/src/backend/invoker.dart)
#65     Invoker._onRun.<anonymous closure>.<anonymous closure> (package:test_api/src/backend/invoker.dart:370:9)
#66     Invoker._guardIfGuarded (package:test_api/src/backend/invoker.dart:415:15)
#67     Invoker._onRun.<anonymous closure> (package:test_api/src/backend/invoker.dart:369:7)
#74     Invoker._onRun (package:test_api/src/backend/invoker.dart:368:11)
#75     LiveTestController.run (package:test_api/src/backend/live_test_controller.dart:153:11)
#76     RemoteListener._runLiveTest.<anonymous closure> (package:test_api/src/remote_listener.dart:256:16)
#81     RemoteListener._runLiveTest (package:test_api/src/remote_listener.dart:255:5)
#82     RemoteListener._serializeTest.<anonymous closure> (package:test_api/src/remote_listener.dart:208:7)
#100    _GuaranteeSink.add (package:stream_channel/src/guarantee_channel.dart:125:12)
#101    new _MultiChannel.<anonymous closure> (package:stream_channel/src/multi_channel.dart:159:31)
#105    CastStreamSubscription._onData (dart:_internal/async_cast.dart:85:11)
#139    new _WebSocketImpl._fromSocket.<anonymous closure> (dart:_http/websocket_impl.dart:1145:21)
#147    _WebSocketProtocolTransformer._messageFrameEnd (dart:_http/websocket_impl.dart:338:23)
#148    _WebSocketProtocolTransformer.add (dart:_http/websocket_impl.dart:232:46)
#158    _Socket._onData (dart:io-patch/socket_patch.dart:2044:41)
#167    new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1580:33)
#168    _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1076:14)
(elided 113 frames from class _AssertionError, dart:async, and package:stack_trace)
════════════════════════════════════════════════════════════════════════════════════════════════════
Test failed. See exception logs above.
The test description was: failing test

Thank you for this issue and especially for your widget test, it's so helpful and it will save me a lot of time!
I will look at it this week.

I fixed it in v0.2.2

@letsar Great! Thanks again! 😄


Adds link to comparison of SPA technologies

This project is one of many things people can use to get started building an app.  To help people make informed decisions about which one to use, this commit adds a link to a comprehensive comparison of the alternatives.

Hi Dan,
sorry I will not include it as I want to keep boilerplate clean and as simple as possible. Thanks anyway. Closing.

I don't think I understand.  A link to the alternatives will have no effect on the cleanliness or simplicity of your boilerplate, but it will serve those who your boilerplate is there to help by informing them of options which they could easily be unaware of at this important and consequential architecture decision time.  Do you want to help people?


Open manual downloads URLs automatically

It is rather annoying and slow to click on all the manual downloads. Instead the script could write the downloads a text file which can be open by a browser all at once.
With this PR, one can use
firefox-browser $(cat manual_downloads.txt)

which will open up all the URLs that were not able to download automatically. This works with any browser that can open URLs from terminal.

This is a really good idea. Let me know when it's ready to merge.

@cdbbnnyCode Ready to be merged from my side.

xdg-open could be used to open urls in the default browser, or even better:
import webbrowser

browser = webbrowser.get()
browser.open_new(link)

Ah yes very true. Don't know why I made it so complicated haha. Will update it.

I didn't test the new commit. Do you guys know of a way to run a dummy modpack or something? Don't want to run 5 minute downloads just for tests.

I think you can skip creating the txt-file and just do for url, _ in actual_manual_dls: instead of for url in urls:.

Hey thanks for the updates. I was going to suggest at least not using the shell (as that adds a lot of variables in terms of complexity), but this looks much better.

Traceback (most recent call last):
  File "/home/aidan/Documents/projects/modpack-installer/install.py", line 275, in <module>
    main(args.zipfile, args.mcdir, args.forge_disable, args.open_browser)
  File "/home/aidan/Documents/projects/modpack-installer/install.py", line 171, in main
    browser.open_new(url)
  File "/usr/lib/python3.10/webbrowser.py", line 152, in open_new
    return self.open(url, 1)
  File "/usr/lib/python3.10/webbrowser.py", line 272, in open
    args = [arg.replace("%s", url).replace("%action", action)
  File "/usr/lib/python3.10/webbrowser.py", line 272, in <listcomp>
    args = [arg.replace("%s", url).replace("%action", action)
TypeError: replace() argument 2 must be str, not tuple

Looks like it crashes because each entry of actual_manual_dls is a tuple of (url, outfile).

Also, I created a test modpack for further verification
TestModpack-1.0.0.zip


Update pyproject.toml

Description by Korbit AI
What change is being made?
Update the Python version compatibility to ">=3.10,<3.14" and the SciPy version to ">=1.14.0" in the pyproject.toml.
Why are these changes being made?
These changes ensure compatibility with newer features and improvements available in Python 3.10 and SciPy 1.14.0, while maintaining the dependency upper bound constraint for Python. Updating these dependencies is necessary to leverage performance enhancements and bug fixes from newer releases.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

Pull Request Test Coverage Report for Build<PHONE_NUMBER>3
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 93.204%

Totals

Change from base Build<PHONE_NUMBER>3:
0.0%

Covered Lines:
96

Relevant Lines:
103

💛  - Coveralls


Support recvfrom() getting a peer/sender address

It would be nice to use recvfrom() with a UDP socket to fill in a peer address of the sender that set the packet.

zig-aio mainly targets io_uring supported operations. With io_uring you are supposed to use recvmsg instead of recvfrom.
See list of io_uring operations here: https://unixism.net/loti/ref-iouring/io_uring_enter.html

How would I obtain the peer address with recvmsg?On Dec 30, 2024, at 2:15 AM, Jari Vetoniemi @.***> wrote:
zig-aio mainly targets io_uring supported operations. With io_uring you are supposed to use recvmsg instead of recvfrom.
See list of io_uring operations here: https://unixism.net/loti/ref-iouring/io_uring_enter.html
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

Okay, so I would need to provide space in the msghdr for that:
https://stackoverflow.com/a/42090305/8031


Install Docker for aws server

Problem description

Problem location

I saw a problem on the following URL:

I couldn't find the information I wanted. I expected to find it near the following URL:

Other:

Project version(s) affected

Suggestions for a fix

@bitcoinfan99 There's isn't any information on the ticket for us to take action on. Could you add more details?


Add int64 axis support for reduction ops.

This fix is a follow up to PR #13863. In PR #13863 the program crash is fixed if int64 axis is passed to reduction ops,e.g. reduce_sum, reduce_max, etc. However, it does not process the case of int64 axis support, it merely fixes the crash.
This fix adds the support for int64 axis of reduction ops: reduce_sum, reduce_prod, reduce_mean, reduce_max, reduce_min, reduce_all reduce_any.
Test cases have been added as well.
Signed-off-by: Yong Tang<EMAIL_ADDRESS>

Can one of the admins verify this patch?

@tensorflow-jenkins test this please

Unrelated failures (that are fixed at HEAD, I'm not sure why they are showing up here again).


Proxy Usage for lambda install

How to correctly use Proxy settings for install.js file?
I can see when trying to download the newest version in the install.js it uses the process.env.HTTPS_PROXYenvironment:
async function download(url, dest) {
  const agent = {};
  agent.https = process.env.HTTPS_PROXY ? new HttpsProxyAgent({proxy: process.env.HTTPS_PROXY}): undefined;
  agent.http = process.env.HTTP_PROXY ? new HttpProxyAgent({proxy: process.env.HTTP_PROXY}): undefined;
  console.log(`download ${url}`);
  await pipeline(
    got.stream(url, { agent }),
    fs.createWriteStream(dest)
  );
}

but actually when running the install.js in the index.ts when instantiating the ECRDeployment child_process.execSync is used and no environment variables are passed to the properties.
Actual:
const installScript = path.join(__dirname, '../lambda/install.js');
const prebuiltPath = path.join(__dirname, '../lambda/out');
child_process.execSync(`${process.argv0} ${installScript} ${prebuiltPath}`);

I debugged it locally and a solution would be to simply either pass the own environment variable to execSync or the environment variables passed to the constructor of the ECRDeployment. But the second choice could be confusing, because they are meant to be for the lambda and not for the cdk code.
So I would suggest sth like:
const installScript = path.join(__dirname, '../lambda/install.js');
const prebuiltPath = path.join(__dirname, '../lambda/out');
child_process.execSync(`${process.argv0} ${installScript} ${prebuiltPath}`, {
   env: process.env
});

Or is there any other way I don't see and there is a reason why it is like it is? Then please let me know.
Thanks in advance! :)

Added a pull-request #181 with the possible solution I mentioned in the issue description.

I checked the doc of child_process.execSync(command[, options]). env's default value is process.env.
env <Object> Environment key-value pairs. Default: process.env.

@wchaws Okay, didn't saw that in the documentation tbh. But that is actually quite weird. When I debug threw the process locally the process.env is definitely a different one when being in getCode as when being in the download function in install.js.
I would write a test for it, but it seems that unit testing child processes isn't straight forward.

Which cdk-ecr-deployment version do u use?

In my project when I noticed the issue first time I used the newest version 2.4.1. But when debugging it locally I cloned your repository and wrote a simple test without any expectations which is calling getCode:
test('child process should use correct environment', () => {
  process.env.HTTPS_PROXY = 'SOME_INVALID_URL';

  getCode('SOME_IMAGE_NAME');
})

I was just checking the logs when running the test because of the problem I mentioned above about mocking in child processes.
When running the test with my changes in getCode:
child_process.execSync(`${process.argv0} ${installScript} ${prebuiltPath}`, {
    env: process.env,
});

It is producing the following logs:

console.warn
Can not get prebuilt lambda: Error: Command failed: node .../cdk-ecr-deployment/lambda/install.js .../cdk-ecr-deployment/lambda/out
TypeError [ERR_INVALID_URL]: Invalid URL

Because it is trying to pass the the invalid url in the HTTPS_PROXY environment variable to the HttpsProxyAgent.
When running the same test with the original code:
child_process.execSync(`${process.argv0} ${installScript} ${prebuiltPath}`);

It is producing the following logs:

console.warn
Can not get prebuilt lambda: Error: Command failed: node .../cdk-ecr-deployment/lambda/install.js .../cdk-ecr-deployment/lambda/out
HTTPError: Response code 404 (Not Found)

Because it is not trying to pass anything to an HttpsProxyAgent, since the HTTPS_PROXY env variable is not set and trying to execute the download without any proxy.
It's weird. As you said - the env argument should have the process.env as a default value.
Is there anything obvious I'm missing?

Is the pre-built lambda url correct?
https://github.com/cdklabs/cdk-ecr-deployment/blob/aa92eebe25594fdfae50ececc33631483ab5dd21/lambda/install.js#L35

I think you misunderstood. The problem isn't that it is not downloading. The problem it should fail in both cases with the error message:

TypeError [ERR_INVALID_URL]: Invalid URL
Should fail here:
https://github.com/cdklabs/cdk-ecr-deployment/blob/aa92eebe25594fdfae50ececc33631483ab5dd21/lambda/install.js#L33

Because in both cases it should have the HTTPS_PROXY field in the environment variables set and it should try to pass it to the HttpsProxyAgent class and throw the above error.
But actually it doesn't throw the error in your current implementation of the getCode function. Means the HTTPS_PROXY field is not set in the environment variables.


View strategy shows binary sensors for sync state

What happened?
The binary sensors were switched to sensors but the sensors still show up on my view strategy. Is this the expected behavior because of how the switch happened? Should I just redo the configuration?
Steps to reproduce the issue

Install pre 0.4.0
Add view using the strategy
Upgrade to 0.4.1

Home Assistant Version
2024.3.3
What version of Lock Code Manager are you running?
0.4.1
Lock make and model
Yale qssure
Relevant log output
No response
Screenshots
No response
Anything else?
No response

go to the config entry for your configuration and then click on entities. You will see some listed there that can be deleted (the old sensor ones). They will be removed from the UI. Good feedback though, I should make it so that doesn't break the UI


how to use FaceDetection？

i want use FaceDetection，
because RtmpCamera2 get face Data is null。（id=-1，leftEyePosition: null, rightEyePosition: null, mouthPosition: null ）
i code：
mRtmpCamera.enableFaceDetection(new Camera2ApiManager.FaceDetectorCallback() {
@Override
public void onGetFaces(Face[] faces) {
//                FaceDetectorUtil faceDetectorUtil = new FaceDetectorUtil();
for (Face face : faces) {
//                    faceDetectorUtil.camera2Parse(face, openGlView, new PointF()
//                            , CameraHelper.getCameraOrientation(getAttachActivity())
//                            , mRtmpCamera.isFrontCamera());
LogUtils.eTag(RTMP_TAG, "face Data" + face);
}
}
});
Data obtained in the log：
{ bounds: Rect(742, 709 - 1448, 1423), score: 90, id: -1, leftEyePosition: null, rightEyePosition: null, mouthPosition: null }
otherwise，FaceDetectorUtil how use？

Hello,
This is a bug I will check it.
About FaceDetectorUtil it is a bit confuse for now. I will refactor it too.

Hello,
I modified this feature to work properly and added a page on wiki to explain the use:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/wiki/Face-detection
My last commit is necessary for it:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/commit/1873bae5b7a1744bd4a8b0e93e0f3557a922a343
About mouth and eyes position it is null because you device don't support it. I explained it in my wiki page. To support it you device must support this face detection mode:
https://developer.android.com/reference/android/hardware/camera2/CameraMetadata#STATISTICS_FACE_DETECT_MODE_FULL
I do this check and select it if supported in this line:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.java#L551
In your case this collection should only contains 1 and 0 values:
https://developer.android.com/reference/android/hardware/camera2/CameraMetadata#STATISTICS_FACE_DETECT_MODE_SIMPLE
https://developer.android.com/reference/android/hardware/camera2/CameraMetadata#STATISTICS_FACE_DETECT_MODE_OFF


How to start a fragment with request code?

I'm assuming this refers to startActivityForResult, which is not currently supported, but has been requested as a feature. You can follow the feature request here


Need Help With Storage Explorer

Preflight Checklist

[X] I have installed the latest version of Storage Explorer.
[X] I have checked existing resources, including the troubleshooting guide and the release notes.
[X] I have searched for similar issues.

Storage Explorer Version
1.32.1
Regression From
1.18.0
Architecture
i86
Storage Explorer Build Number
20231114.10
Platform
All
OS Version
Windows 2019
Bug Description
Unable to retrieve child resources
ProducerError:{
"name": "RestError",
"message": "This request is not authorized to perform this operation.\nRequestId:23690f13-601a-009d-7189-3205c9000000\nTime:2023-12-19T14:44:50.2091946Z",
"stack": "RestError: This request is not authorized to perform this operation.\nRequestId:23690f13-601a-009d-7189-3205c9000000\nTime:2023-12-19T14:44:50.2091946Z\n    at handleErrorResponse (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\file-extension\dist\src\index.js:2:171145)\n    at C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\file-extension\dist\src\index.js:2:171829\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async StorageRetryPolicy.attemptSendRequest (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\file-extension\dist\src\index.js:2:393697)\n    at async StorageClientContext.sendOperationRequest (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\file-extension\dist\src\index.js:2:209878)\n    at async ShareServiceClient.listSharesSegment (C:\Program Files\Microsoft Azure Storage Explorer\resources\app\node_modules\@storage-explorer\file-extension\dist\src\index.js:2:464098)",
"code": "AuthorizationFailure",
"statusCode": 403,
"request": {
"streamResponseStatusCodes": {},
"url": "https://metranet.file.core.windows.net/?comp=list",
"method": "GET",
"headers": {
"_headersMap": {
"x-ms-version": {
"name": "x-ms-version",
"value": "2023-01-03"
},
"accept": {
"name": "Accept",
"value": "application/xml"
},
"user-agent": {
"name": "User-Agent",
"value": "Microsoft Azure Storage Explorer/1.32.1 (win32) azsdk-js-storagefile/12.15.0 (NODE-VERSION v18.16.1; Windows_NT 10.0.14393)"
},
"x-ms-client-request-id": {
"name": "x-ms-client-request-id",
"value": "bc490f8c-71a5-43e5-9a57-64c31ed74348"
},
Steps to Reproduce
Launch storage explorer
authenticate with Azure
Navigate to the FileShare Storage
Node not populating and error pops up
Actual Experience
Error pops up whenever I go to specific File Share storage.
Expected Experience
File Share Storage should display
Additional Context
none

@AmazingPete The error indicates that your user credential is missing some permissions. Does your azure account has the permission to list your storage account keys? You can check that by going to Azure Portal, navigate to your storage account, go to the Access Control blade, click "View my Access" and check what roles you have.

Closing due to lack of response. This issue will no longer be monitored. If you need further help, we recommend opening a support ticket via the Azure portal. Alternatively you can open a new issue here.


Nested fields not readable by python lib polars

I want to read/write parquet files in go to read/write them in python/polars.
It seems that the nested fields ([]int in my example) written by one lib cannot be read by the other. Then instead it returns empty lists.
I placed an issue with polars, but it concerns segmentio/parquet-go symmetrically.
See https://github.com/pola-rs/polars/issues/6428
I am surprised that parquet compability can be partial.
So I am looking for a way, if possible, to create the nested field in such a way it is understood by polars.

Here is the parquet file creation
Is there some other way to create the nested field that would increase compatility with other libs like polars ?
Where in the source code is the nested field creation performed ?

Hello @oscar6echo, thanks for reporting!
I looked at the issue you opened at https://github.com/pola-rs/polars/issues/6428, it appears that this is due to the underlying pyarrow library not supporting the DELTA_LENGTH_BYTE_ARRAY encoding, which is used by default in parquet-go.
...
  File "pyarrow/_dataset.pyx", line 332, in pyarrow._dataset.Dataset.to_table
  File "pyarrow/_dataset.pyx", line 2661, in pyarrow._dataset.Scanner.to_table
  File "pyarrow/error.pxi", line 144, in pyarrow.lib.pyarrow_internal_check_status
  File "pyarrow/error.pxi", line 115, in pyarrow.lib.check_status
OSError: Not yet implemented: DecodeArrow for DeltaLengthByteArrayDecoder.

I am surprised that parquet compability can be partial.

This is somewhat a double-edge sword with parquet, each column can have a different encoding, and clients can choose to support a subset of the parquet spec, which eventually can result in incompatibilities like the one you describe. parquet-go actually follows the spec which says that DELTA_LENGTH_BYTE_ARRAY should be the default encoding for byte array columns.

Is there some other way to create the nested field that would increase compatility with other libs like polars ?

All parquet clients must support the PLAIN encoding, which is less efficient but simpler to implement, so I would recommend in your case that you force the encoding in your schema, for example by adding the plain marker to the parquet tag of Go struct fields:
type Row struct {
	Idx    int       `parquet:"idx,plain"`
	Name   string    `parquet:"name,plain"`
	...
}

With this approach, you will be trading off storage space for greater chance of compatibility between parquet clients.

Where in the source code is the nested field creation performed ?

This is a broad question as it depends on how the schema is constructed, but here are a few entry points:

https://github.com/segmentio/parquet-go/blob/main/row.go#L402-L406
https://github.com/segmentio/parquet-go/blob/main/column_buffer.go

I hope these answers are useful to you, let me know if you have any other question!

@achille-roussel thx for the fast and comprehensive reply !
I tried to use the plain option to see if it would achieve compatibility. But then I realised that I in fact got mixed up in my latest comment.
The files produced by parquet-go and polars in this example are indeed incompatible - due to the nested field. But you gave me tips that helped me maybe pintpoint the difference.
1/ schema produced/read by parquet-go:

code

type Row struct {
	Idx    int       `parquet:"idx"`
	Name   string    `parquet:"name"`
	Age    int       `parquet:"age"`
	Sex    bool      `parquet:"sex"`
	Weight float64   `parquet:"weight"`
	Time   time.Time `parquet:"time"`
	Arr    []int     `parquet:"array"`
}
schema := parquet.SchemaOf(new(Row))
fmt.Println(schema)

result:

message Row {
	required int64 idx (INT(64,true));
	required binary name (STRING);
	required int64 age (INT(64,true));
	required boolean sex;
	required double weight;
	required int64 time (TIMESTAMP(isAdjustedToUTC=true,unit=NANOS));
	repeated int64 array (INT(64,true));
}

2/ schema produced/read by polars:

code

import datetime as dt
from pathlib import Path
import polars as pl
import pyarrow.parquet as pq

now = dt.datetime.now()

s1 = pl.Series("idx", [0, 1], dtype=pl.Int64)
s1 = pl.Series("name", ["Masterfog", "Armspice"], dtype=pl.Utf8)
s2 = pl.Series("age", [22, 23], dtype=pl.Int64)
s3 = pl.Series("sex", [True, False], dtype=pl.Boolean)
s4 = pl.Series("weight", [51.2, 65.3], dtype=pl.Float64)
s5 = pl.Series("time", [now, now], dtype=pl.Datetime)
s6 = pl.Series("array", [[10, 20], [11, 22]], dtype=pl.List(pl.Int64))
df = pl.DataFrame([s1, s2, s3, s4, s5, s6])
path = Path("sample3.pqt")
df.write_parquet(path)

h = pq.ParquetFile(path)
print(h.schema)

result:

<pyarrow._parquet.ParquetSchema object at 0x7fd8fb70d540>
required group field_id=-1 schema {
  optional binary field_id=-1 name (String);
  optional int64 field_id=-1 age;
  optional boolean field_id=-1 sex;
  optional double field_id=-1 weight;
  optional int64 field_id=-1 time (Timestamp(isAdjustedToUTC=false, timeUnit=microseconds, is_from_converted_type=false, force_set_converted_type=false));
  optional group field_id=-1 array (List) {
    repeated group field_id=-1 list {
      optional int64 field_id=-1 item;
    }
  }
}

The inspection of the schemas produced by each lib show the difference in parquet format. There is a group notion in the polars generated parquet that does not exist in parquet-go.:
// parquet-go
repeated int64 array (INT(64,true));

vs.

// polars
optional group field_id=-1 array (List) {
    repeated group field_id=-1 list {
      optional int64 field_id=-1 item;
    }

So if I could create the polars format with parquet-go (possibly using intermediate structs ?) then it should achieve compatibility.
Does it make sense ?
I made an attempt to mirror the parquet structure of polars. But it does not seem to work immediately. See trial.go.
Is that possible ?
I recognize polars struct nested structure seem a bit convoluted but probably makes sense in their context.
Else I should probably try a lower level lib. In this case, any recommendation ?
I would be grateful for any hint as I think the ability to interact with a polars dataframe from outside its ecosystem is quite interesting - particularly from "Goland" as Go is quite complementary with Python.


Add code for code for Security System for Housing Societies using Deep Learning and IoT

https://github.com/NehaKoppikar/Security-System-for-Housing-Societies-using-Deep-Learning-and-IoT

please fork and add code


JWT Decoder show timestamp as a DateTime tooltip

I tried looking into this but I could not get the hover to show on the Monaco editor.  I see we have this: https://github.com/veler/DevToys/blob/main/src/dev/impl/DevToys.MonacoEditor/ts-helpermethods/otherScriptsToBeOrganized.ts#L11 and just as a preliminary test I hardcoded a call in CodeEditorCore.html:
monaco.languages.registerHoverProvider("json", {
    provideHover: function (model, position) {
        Debug.log("5555555555");
        return {
            range: new monaco.Range(
                1,
                1,
                2,
                5
                // model.getLineCount(),
                // model.getLineMaxColumn(model.getLineCount())
            ),
            contents: [
                { value: "**SOURCE**" },
                { value: "test test 1234"},
            ],
        };
    },
});

I also added "json" as the language type explicitly via
opt["language"] = 'json';

and then checked if monaco.languages.registerHoverProvider exists via
Debug.log(typeof monaco.languages.registerHoverProvider);
Debug.log(monaco.languages.registerHoverProvider.toString());

and indeed it is there.  However, nothing I do will produce a hover state.  The example they provide is straightforward enough.
I am much less familiar with UWP so I might be missing something obvious.  Not sure if you have got this working before, @veler?

+1000 to this idea. Decoding tokens to look at the dates is such a common operation, and reading the raw timestamp is nearly impossible. This is something jwt.io does, for example.
P.S. It might not be as "pure", but even putting the human-readable date inline in the JSON (maybe a comment?) would help! Could be behind a toggle if most people don't want it.

I tried looking into this but I could not get the hover to show on the Monaco editor. I see we have this: https://github.com/veler/DevToys/blob/main/src/dev/impl/DevToys.MonacoEditor/ts-helpermethods/otherScriptsToBeOrganized.ts#L11 and just as a preliminary test I hardcoded a call in CodeEditorCore.html:
monaco.languages.registerHoverProvider("json", {
    provideHover: function (model, position) {
        Debug.log("5555555555");
        return {
            range: new monaco.Range(
                1,
                1,
                2,
                5
                // model.getLineCount(),
                // model.getLineMaxColumn(model.getLineCount())
            ),
            contents: [
                { value: "**SOURCE**" },
                { value: "test test 1234"},
            ],
        };
    },
});

I also added "json" as the language type explicitly via
opt["language"] = 'json';

and then checked if monaco.languages.registerHoverProvider exists via
Debug.log(typeof monaco.languages.registerHoverProvider);
Debug.log(monaco.languages.registerHoverProvider.toString());

and indeed it is there. However, nothing I do will produce a hover state. The example they provide is straightforward enough.
I am much less familiar with UWP so I might be missing something obvious. Not sure if you have got this working before, @veler?

This will likely be easier with DevToys 2.0 because:

We're using a more recent version of Monaco (although, not the last one for now).
The whole app runs locally in a web-browser, so we have less limitation than in UWP.

Let's wait for DevToys 2.0 to do this?

Yes, I think that makes sense and was hoping is the case! Thank you - will revisit.

It might not be as "pure", but even putting the human-readable date inline in the JSON (maybe a comment?) would help!

In the short-term, would a PR that does this be accepted? It's very hacky -- I'm crudely "parsing" the JSON after it's been formatted (since I couldn't find a nice way to insert comments through the standard libraries). But it works and is formatted nicely by Monaco! 😊
https://github.com/micahmo/DevToys/compare/main...feature/jwt-datetimes

@btiteux , what do you think of the above?

Hey all, quick update (and hopeful improvement) over my previous hacky solution. I did find how to enable hovers, and it came down to these lines (which currently disable it).
https://github.com/veler/DevToys/blob/e9528b1193bda1e3f44365e50d2a0c473a5d45dc/src/dev/impl/DevToys/UI/Controls/CodeEditor.xaml.cs#L252-L255
I put together a solution that "works". However, my understanding of the architecture (especially when it gets into Monaco/WebView/JavaScript) is pretty bad. Would @veler or @jlevier be willing to peek at my branch before I formally open a PR?
https://github.com/micahmo/DevToys/compare/main...feature/jwt-datetimes2


Add _transaction_sender_like argument to get_explorer_home function

Added _transaction_sender_like argument in the get_explorer_home function for filtering by transaction_sender

Looks good to me.


MS libc Function signatures

We currently have MSVC Runtime function signatures but not for the libc

Unfortunately this isn't happening in this release. Next release we're going to focus on improving type libraries and so this will hopefully happen early in the next release.

The initial rev of these are in. They could probably be greatly improved but theres not enough time to get them improved prior to the current releease.


WslRegisterDistribution failed

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007019e
Error: 0x8007019e ??????? Linux ? Windows ????
Press any key to continue...

Do you have this enabled?

To open the window
Win + R
OptionalFeatures.exe
After that is installed and rebooted.
I would recommend to run this command once wsl --set-default-version 2
To set the WSL environment to WSL2.
Then go to the Microsoft store, search for the package and press open.

sorry, i didn't enable subsystem feature.

sorry, i didn't enable subsystem feature.

No problem.
I had the same issue yesterday.
I then ran into another problem when using git to clone a repo.
Then I came to the issues looking for the problem/solution.
I saw your issue and would like to help.
The other issue was me trying to clone a git repo using ssh, without installing ssh.
It then used windows ssh.exe and gave a weird error that said CMD.exe could not do something about UNC paths.
I did not understand the issue at first.
I kept running which whereis command for git, and could not understand it. It is all on the Linux system, why is it using CMD.exe when I am using git?
Then I released I maybe did not have ssh installed on WSL.


tflite Assertion Error  utils.same_input_image_sizes(interpreters)

Hi,
I have created tflite model through colab demo : Retrain EfficientDet-Lite detector for the Edge TPU (TF2)
So far, .tflite model works very well. Before Compile for the Edge TPU.
Here the log file of compile :
Edge TPU Compiler version 15.0.340273435
Input: /content/drive/MyDrive/aidata/besas/models/besas-lite-model.tflite
Output: /content/drive/MyDrive/aidata/besas/models/besas-lite-model_edgetpu.tflite
Operator                           Count      Status

CONCATENATION               2          Mapped to Edge TPU
CUSTOM                              1          Operation is working on an unsupported data type
ADD                                   58         Mapped to Edge TPU
MAX_POOL_2D                 18         Mapped to Edge TPU
DEQUANTIZE                      2          Operation is working on an unsupported data type
QUANTIZE                          1          Mapped to Edge TPU
DEPTHWISE_CONV_2D   93         Mapped to Edge TPU
CONV_2D                        120        Mapped to Edge TPU
LOGISTIC                            1          Mapped to Edge TPU
RESIZE_NEAREST_NEIGHBOR        16         Mapped to Edge TPU
RESHAPE                        10         Mapped to Edge TPU

And in order to make quick test of Edgetpu , I deployed and replaced names of model, label and mp4 files in the folder /usr/share/edgetpdemo
gives assert error for interpreters : assert utils.same_input_image_sizes(interpreters)
When I debug, at utils.py file (as above error) original models gives 2 interpreter and both (300,300) input image size
but at my model gives (300,300) and (384,384) input image size. ( I do not know how happened this)
I used as spec file  - EfficientDet-Lite1
and
spec.config.tflite_max_detections = 50 (instead 25object from one class)
I search around, maybe its simple problem but no one any iformation about. this.
Coral Dev Board - 1 GB
computer : Linux aura 5.11.0-25-generic #27-Ubuntu SMP Fri Jul 9 23:06:29 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Thanks in advance

can you share your uncompiled tflite model and command executed that raises the assert error.

Hi, @hjonnala
Thanks for quick reply. here the file : https://drive.google.com/drive/folders/1mz0X0E5bDsQUY3k-UCjAkI26iGvRE7WP?usp=sharing
I executed exactly the same file in edgetpu_demo --stream file (just changed the name of model, label, and mp4 video file.  (The demo comes with Coral Dev Board, which is car detection at highway )

Sorry, I have shared wrong link. Here is the link which you can access : https://drive.google.com/drive/folders/1mz0X0E5bDsQUY3k-UCjAkI26iGvRE7WP?usp=sharing

hello @hjonnala I updated the link which was wrong. Now no need autorisation.

Hi, I am able to get the files. Will get back you soon.

Hi, I am not able to reproduce the issue. Are you trying to do image detection?
I have used the model, images and labels in the shared drive and run with pycoral detect_image.py.
python3 examples/detect_image.py
--model /home/mendel/models/besas-lite-model_edgetpu.tflite
--labels /home/mendel/models/besas-labels.txt
--input /home/mendel/models/test.jpg
--output /home/mendel/models/result.jpg
Here are the results:

Hi @hjonnala,
Thanks for your effors,  yes model works enouh good. My question was different, as above.  My question lite model should be the same input image size with copiled version or not as edgetpu_demo cheking that? I also uploaded a video for the test. But unable to run at  Coral board yet. However, I will find another way to test. Closing the issue.
Thanks again.

Hi, I have added sample script to test the video. please check detect.py and recorder.MP4 files.
https://drive.google.com/drive/folders/170BsALyM9gnSBE7DSgnPUSf029ej19TD?usp=sharing
Thanks.

Thanks @hjonnala
As per many testing on coral dev board, I do not want to use external library like opencv. (It takes too long building time and cunsuming almost %92 or root momery) because of I tried to use installed libraries like gsreamer instead opencv. I have to ask that its working very nice at own installed video. But at my uploaded video; object detecting is working but video is black (as attached :)) ) this may couse from gstreamer pipline setups. I just wanted to know do you know why?

Hi, I am not sure why  the background is black.
I am able to run the video demo using USB accelerator and dev board connected to monitor using gstreamer.
The script I have used: https://github.com/google-coral/examples-camera/blob/master/gstreamer/detect.py
changed this line: https://github.com/google-coral/examples-camera/blob/master/gstreamer/detect.py#L114
to src_size=(640, 380)
Here are the commands I have used:
WIth  USB accelerator: python3 detect.py --model /home/hemanthreddyj/Downloads/models/besas-lite-model_edgetpu.tflite --labels /home/hemanthreddyj/Downloads/models/besas-labels.txt --videosrc /home/hemanthreddyj/Downloads/models/faracaliB.mp4 --top_k 50
On Dev Board: python3 detect.py --model /home/mendel/models/besas-lite-model_edgetpu.tflite --labels /home/mendel/models/besas-labels.txt --videosrc /home/mendel/models/faracaliB.mp4 --top_k 50

Thanks @hjonnala, I have changed the video size with web whatsapp sending utility. Its working good. Also when I run $ edgetpu_demo --device   on device with orginal video size (not on local .html server) its working also quite good too. Now need to implements another things. (like object trackings) So far, really I appretiated your honest effort and help. Thanks again.


add port NRF52832

hi, please also upload your project to github repo, and write the repo link in "Step/Project"  section

Added project link


change print("|") to printf("|")  in AbstractClient

Original:

After changing:

Excellent. Though I wonder why there is such a huge difference.

In AbstractClient print, printf and println are redefined:
  protected static void printf(String format, Object ... args) {
    SCREEN_PRINTER.printf(format, args);
  }

 protected static void print(String msg) {
    SCREEN_PRINTER.println(msg);
  }

  protected static void println() {
    SCREEN_PRINTER.println();
  }

  protected static void println(String msg) {
    SCREEN_PRINTER.println(msg);
  }

  protected static void println(Object obj) {
    SCREEN_PRINTER.println(obj);
  }

And print will change the line.


Oops; flutter has exited unexpectedly: "type 'Null' is not a subtype of type 'String' in type cast".

After updating to version 3.7.11, I get the following error when I run "flutter pub get" on my project.
Command
flutter run --machine --start-paused -d 09221FDD4006KN --devtools-server-address http://<IP_ADDRESS>:9100/ --target lib\main.dart --dart-define WATTS_API_BASE_URL=http://<IP_ADDRESS>:8000

Steps to Reproduce

Update to version 3.7.11;
Go to the project folder;
run "flutter pub get";

Logs
_CastError: (#0      new WebPlugin.fromYaml (package:flutter_tools/src/platform_plugins.dart:548:34))
#0      new WebPlugin.fromYaml (package:flutter_tools/src/platform_plugins.dart:548:34)
#1      new Plugin._fromMultiPlatformYaml (package:flutter_tools/src/plugins.dart:142:21)
#2      new Plugin.fromYaml (package:flutter_tools/src/plugins.dart:78:21)
#3      _pluginFromPackage (package:flutter_tools/src/flutter_plugins.dart:63:17)
#4      findPlugins (package:flutter_tools/src/flutter_plugins.dart:88:28)
<asynchronous suspension>
#5      refreshPluginsList (package:flutter_tools/src/flutter_plugins.dart:1080:32)
<asynchronous suspension>
#6      FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:357:5)
<asynchronous suspension>
#7      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1412:7)
<asynchronous suspension>
#8      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1257:27)
<asynchronous suspension>
#9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#11     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:283:9)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#13     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
<asynchronous suspension>
#14     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)

[✓] Flutter (Channel stable, 3.7.11, on Microsoft Windows [Version 10.0.19043.1288], locale en-US)
    • Flutter version 3.7.11 on channel stable at C:\repos\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f72efea43c (8 days ago), 2023-04-11 11:57:21 -0700
    • Engine revision 1a65d409c7
    • Dart version 2.19.6
    • DevTools version 2.20.1

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Users\AOliveira\AppData\Local\Android\sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Professional 2022 17.5.3)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Professional
    • Visual Studio Professional 2022 version 17.5.33516.290
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 2021.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)

[✓] VS Code (version 1.77.3)
    • VS Code at C:\Users\AOliveira\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.60.0

[✓] Connected device (4 available)
    • Pixel 5 (mobile)  • 09221FDD4006KN • android-arm64  • Android 13 (API 33)
    • Windows (desktop) • windows        • windows-x64    • Microsoft Windows [Version 10.0.19043.1288]
    • Chrome (web)      • chrome         • web-javascript • Google Chrome 109.0.5414.120
    • Edge (web)        • edge           • web-javascript • Microsoft Edge 112.0.1722.48

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Flutter Application Metadata
Type: app
Version: 2.0.17+81
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 4d7946a68d26794349189cf21b3f68cc6fe61dcb

Closing as duplicate of https://github.com/flutter/flutter/issues/115738. Please upvote original issue so that it'll help the team to prioritize the issue.


misc: Make random gen portable across compilers.

Replace std::uniform_*_distribution by custom code to make random number generation in gem5 portable across compilers.

The current issue with the random number generation method is that it uses std::uniform_int_distribution or std::uniform_real_distribution  which are implementation dependent. The STL of clang and gcc do not implement it the same way, so simulation results of the same gem5 commit are different if compiled differently (see https://github.com/orgs/gem5/discussions/1517). The mersenne twister used to provide random numbers is not implementation dependent.
The PR replaces the distributions with custom code. I ran an experiment with the old code and the new code to see what the distributions looked like.
This PR breaks a lot of tests which match some stats against an existing JSON file, because behavior will change slightly.
10M uint16_t random number distribution
Perfect uniform distribution would be for each number to have frequency 1.52.10-5 (each number should appear 152.6 times in the 10M).
Before (avg value: 32766.31, stdev: 18918)

Now (avg value: 32763.37, stdev: 18918.71)

10M uint16_t between 256 and 10000
Perfect uniform distribution would be for each number to have frequency 1.02.10e-4 (each number should appear 1026 times).
Before (avg value: 5128.78, stdev: 2813.04)

After (avg value: 5127.80, stdev: 5127.80) I should probably add +1

10M float
I'm not too well versed in FP arithmetic, so I won't pretend I can compute the expected frequency, however before and after give exactly the same result, suggesting gcc implements std::uniform_real_distribution the way I did it. In any case, even the current code seems to have trouble staying uniformly distributed as it will not produce values between 0 and 0.1 very often compared to other values.
If someone has a solution to make it "more uniform", feel free to chime in.
Before (avg value: 0.50, stdev: 0.289)

After (Exact same with "Before")

Code to generate the numbers is attached randomtest.zip  : g++ -o randomtest randomtest.cpp -O3 --std=c++17 && ./randomtest && python plot.py (takes a couple minutes).

@powerjg gentle reminder since this PR should get in before the last PR on RNG #1534


escape the GrapeSwaggerRails.options hash properly in the template

The <%= erb syntax escapes strings for html purposes, which means that the data attribute was receiving a string filled with "s and such. Instead we should use <%==. The produced json will contain double-quotes, so the attribute should be set in single quotes.

Please also update CHANGELOG.

No bug after all, I'm going to close this.

👍
Is the test useful though? Or do we already have something similar? If not do PR it please.

You were already testing that various specific options has correct impacts,
which would have caught any such problem.
On Apr 27, 2016 3:38 PM, "Daniel Doubrovkine (dB.) @dblockdotorg" <
<EMAIL_ADDRESS>wrote:

👍
Is the test useful though? Or do we already have something similar? If not
do PR it please.
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/ruby-grape/grape-swagger-rails/pull/51#issuecomment-215204698

It would, but this is a more specific test. I think it's useful.


Reflection of xor-in when reflect_out is set

The xor-in value must be reflected whenever the reflect-out parameter
is set not the reflect-in: reflect-in only applies to individual
bytes in the input, reflect-out applies to the reflection of the
register. The reflection of xor-in was missing for strings (and
hex-strings) and was wrongly applied when reflect-in was set (not
reflect-out) for files.

Hi Ralf, this patch breaks the regression tests, I have to turn the request down for now. I'm not rejecting it outright, but a pull request would have to pass the tests (or fix them if they have a bug). I'm still thinking about your comments in #32; I think I need to go over the algorithm in detail before reaching a conclusion.
$ python test/test.py -av
[...]
/tmp/pycrc.9YWuJu/crc_tbl_idx2 --width 8 --poly 0x5 --reflect-in 0 --reflect-out 1 --xor-in 0x0 --xor-out 0x0
/tmp/pycrc.9YWuJu/crc_tbl_idx4 --width 8 --poly 0x5 --reflect-in 0 --reflect-out 1 --xor-in 0x0 --xor-out 0x0
python pycrc.py --width 8 --poly 0x5 --reflect-in 0 --reflect-out 1 --xor-in 0x1 --xor-out 0x0
/tmp/pycrc.9YWuJu/crc_bbb_c89 --width 8 --poly 0x5 --reflect-in 0 --reflect-out 1 --xor-in 0x1 --xor-out 0x0
error: different checksums!
/tmp/pycrc.9YWuJu/crc_bbb_c89 --width 8 --poly 0x5 --reflect-in 0 --reflect-out 1 --xor-in 0x1 --xor-out 0x0: expected 0x91, got 0x8a

Error was in the file handling not in check-string


Provider local scenario cannot start with calico 3.27.2

/area testing
/kind bug
What happened:
make kind-up timeouts with
Error: FelixConfiguration 'default' not found or patch failed after 600 attempts.

The root cause is that calico-node cannot start with following error
calico-node: error while loading shared libraries: libpcap.so.0.8: cannot open shared object file: No such file or directory
There is an issue reported in the upstream project
https://github.com/projectcalico/calico/issues/8541
Environment:
arm64 Darwin

Gardener version:
v1.90.0-dev

We could revert this change https://github.com/gardener/gardener/pull/9241 and potentially only update calico to 3.27.0 or 3.27.1 (if the problem does not appear there as well)

/assign


internal/osutil: staticcheck

Closing this, see my comment here:

https://github.com/perkeep/perkeep/pull/1405#issuecomment-894727096


fix: update AnnualProvisions once per year

Closes https://github.com/celestiaorg/celestia-app/issues/1870
Note: this wasn't caught by the existing TestAnnualProvisions unit test because the test app used stake as its bond denomination but the mint module uses utia as the default bond denomination. So this PR also updates the test app to use utia as the default bond denomination. After this change, new tokens that get emitted due to inflation increase the total supply of utia which will impact the annual provisions calculation.

Codecov Report

Merging #1871 (676ee94) into main (348f795) will increase coverage by 21.85%.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##           main    #1871       +/-   ##
=========================================
+ Coverage      0   21.85%   +21.85%
=========================================
  Files         0      117      +117
  Lines         0    13308    +13308
=========================================
+ Hits          0     2909     +2909
- Misses        0    10109    +10109
- Partials      0      290      +290

Impacted Files
Coverage Δ

x/mint/abci.go
93.65% <100.00%> (ø)

... and 116 files with indirect coverage changes

@rootulp while we're fixing this, can we also only call SetMinter only once here? I don't think there is any benefit to calling this more than once, if anything only weirdness could occur
https://github.com/celestiaorg/celestia-app/blob/348f795d8635324db4cca0367b599b5edc5c2fdb/x/mint/abci.go#L44-L49

can we also only call SetMinter only once here?

Sure done in https://github.com/celestiaorg/celestia-app/pull/1871/commits/2d7dab5037f45c63e8095bcf9ec1c461eab9a794


[travis] Add go 1.8 and 1.9 to travis tests

This PR adds Go 1.8 and 1.9 to the versions of Go we test against in Travis.
In addition, it seems the unparam linter has been updated and caught some new cases, so this PR also addresses the two instances of an error not being used that it found.

Changes Unknown when pulling 6eb292fa88ed5c80dbb3372304c5308c97ffcf42 on jeromefroe/add-go-18-and-19-to-travis into ** on master**.

Changes Unknown when pulling 6eb292fa88ed5c80dbb3372304c5308c97ffcf42 on jeromefroe/add-go-18-and-19-to-travis into ** on master**.

Changes Unknown when pulling c1e381112fd86629631184cad066698039a4d379 on jeromefroe/add-go-18-and-19-to-travis into ** on master**.


added support for clangd #4

I figured out compatibility with clangd, I've added instructions to the main README.
Also I found the useful build_all.cmd, which now has siblings for linux, one of which will generate all the necessary compile_commands.yaml files so any project can be opened.
Through gitignore, no compile_commands.yaml will be committed (except if you wish), they are generated fine locally.
Intentionally didn't add compile_commands.yaml to makefile clean as its use is during writing.
Blink.bin is a remnant, probably from before the .gitignore was used.

moved the build_scripts

this time with clangd in the makefile, like suggested

had an adventure with git restoring the blink.bin
in case anyone ever needs to perform similar surgery on a branch
travel back one commit, keeping file changes intact
do as often as needed
git reset --soft HEAD~

remove changed file from staging (pending for commit)
git reset -- <path>

restore file to state before current commit
git restore <path>

create new divergent head
git commit --amend -m "message"

push (unsafe (only ever do on own branch!!!!))
git push --force

always check with git status between each step!!!

Excellent!


Added fallback fonts

Summary of Changes and Rationale
Added Fallback Fonts
You probably remember from the discussion on your post on DEV that when DEV.to generates a png when this tool is used as an embed there, that the fonts are incorrect. Although Verdana that you are using is an excellent choice due to wide availability, it isn't available on all systems. In particular, it isn't available on Linux. I'm guessing that DEV probably does the conversion on Linux. Without any fallback font specified, it ends up using whatever the default system font is. And in the case of the DEV site, looks like the default is a serif font, when Verdana is a sans serif font.
I changed the font-family to provide a couple of fall-backs. Specifically, changed it to: font-family="Verdana,DejaVu Sans,sans-serif". The reason for this combination is that DejaVu Sans is available on most Linux systems, and looks very similar to Verdana. It is meant to be an open source equivalent to Verdana. One additional nice thing about using it as a fall-back is that it is metrically compatible with Verdana. So any given string will have the same length in Verdana as it does with DejaVu Sans. So the combination of Verdana and DejaVu Sans should cover most systems. Verdana is widely available on Windows, and I think also on Mac (not sure of that though), and DejaVu Sans is available on most Linux systems.
And then I put sans-serif in there at the end to cover the cases where neither of the first two are available. This way, if someone's web browser is forced to fall-back to whatever the default system font is, it will at least be a sans-serif, rather than a serif font.
Removed Unnecessary Attribute
The xmlns="http://www.w3.org/2000/svg" attribute is only needed on the outermost <svg> element. There were a couple unnecessary instances of it as attributes on <text> and <g> tags. They're mostly harmless, but not needed anywhere other than the outermost <svg>. It would just be ignored on those other tags.

Perfect :ok_hand:!
Thanks for the contribution!!! :tada:


WIP: #88 2.11 fill in profile before application

@hefowe

Coverage remained the same at 100.0% when pulling 24b544e13b8048977dd0a1581ba9c5c2641766f1 on 88_2.11_Fill_in_Profile_before_application into 436d21bb059be017bd97addec3371250f51d36a6 on dev.

Coverage remained the same at 100.0% when pulling 13f2ad46dc78c3cb41060382f2f46c1e678580df on 88_2.11_Fill_in_Profile_before_application into 436d21bb059be017bd97addec3371250f51d36a6 on dev.

Coverage remained the same at 100.0% when pulling 91015f5a59d60a365e9f1181f916875b0148680d on 88_2.11_Fill_in_Profile_before_application into 1c0b1939bc82cabda31c55f1662642abe572c513 on dev.

Coverage remained the same at 100.0% when pulling 91015f5a59d60a365e9f1181f916875b0148680d on 88_2.11_Fill_in_Profile_before_application into 1c0b1939bc82cabda31c55f1662642abe572c513 on dev.

Maybe someone from team-hendrik could add their review as well

Maybe someone from team-hendrik could add their review as well

Whoops, forgot about this. Thank you @MasterCarl, sorry @hefowe. @nilsthamm should take a look.

Coverage remained the same at 100.0% when pulling 12dbd86095b31e9f9647ef96c5944b30494c1f0a on 88_2.11_Fill_in_Profile_before_application into efce71eb2d50a1fe714a20e22e38dd1cbd5656a3 on dev.

Coverage remained the same at 100.0% when pulling 24334c56ac74bfd371e54c4e755945e6ee55f866 on 88_2.11_Fill_in_Profile_before_application into 793a75a56c2ab778e9b20d4721a2b7001e7dc0cc on dev.


Missing icon in Windows Terminal profile

Dear developers,
I installed Julia via Microsoft Store (Windows 11), and the package installed a profile for Windows Terminal. However, the Terminal profile is missing the Julia icon:

I checked the URI in the profile and apparently it's ok:
ms-appx://JuliaComputingInc.Julia/Public/Fragments/julia.ico

However, I read the Windows App Development docs and found that the The package name in the ms-appx URI scheme must be the name of one of the packages in the current running app's package dependency graph (i.e., Terminal dependencies).
According to that, it seems that it's not possible for Terminal to access the Julia icon through URI schemes. I have been thinking of another way that doesn't require the user to input a custom path, but nothing comes to my mind.

Yes, unfortunately that is an upstream problem, see here.

This is still an issue.


Translate tasks/administer-cluster/extended-resource-node/ into Japanese

This is a Feature Request
What would you like to be added
Translate tasks/administer-cluster/extended-resource-node/ into Japanese.
Why is this needed
This page has not been translated.
Comments
/language ja
/assign

/close


Assassin's Mark working incorrectly

Assassin's Mark doesn't calculate the added Critchance correctly.
I made a minimum example where it is obvious that the effective critical strike chance is supposed to increase by +2.5%, but instead it is multiplied by 2.5 .
https://pastebin.com/k1Dr7qRf
In 3.6 it was changed that the added basechance scales with your increased critical strike chance, but I guess instead your code takes this value and adds it to the increased critical strike chance.

Fixed now thanls

When Shaper/Guardian option is selected, Assassin's Mark effect shows 0% DPS effect.  The implementation in [1.4.150][2019/09/09] might be rounding down too aggressively with boss curse effect.
Tested with 1.4.152

This is not the the issue I reported. I reported the bug, that added critchance was used as increased critchance, it was fixed a few weeks ago. After a small amount of time...

The problems are related, so I would consider this a reopen.  My guess is that the added base crit chance from assassin's mark was added without enough sigfig precision, hence causing the boss curse rounding error.


Fix WAGMI config [SBK-377]

When the ApePay package is used from another repo, a WAGMI config issue arises when fetching the token balance and the native token. This makes the CreateStream component less useful than it could be as we set a default value when we cannot fetch the data.

Moving away from using React


Introduce alfred-gyazo-workflow

Repository: https://github.com/nukosuke/alfred-gyazo-workflow
Behavior: https://youtu.be/BL2majkI-YE

I merged

THX ❤


Update 10-improve-performance-with-hybrid-tables.md/Set up the Azure SQL Database/Step 6

Module: 10
Lab/Demo: 10-improve-performance-with-hybrid-tables
Exercise: Get started
Task: Set up the Azure SQL Database
Step: 6
Fixes # .
Changes proposed in this pull request:

Thanks for this Anthony - I updated separate from this PR - incorporating your updates and replacing the screenshot.


Sort refs in get_inherited_ref_layout

This makes deriving from a type with computed pointers work on
purpose, instead of by accident. (Previously it would work if it
happened to process them in the right order, which it usually would,
since it seems the database produced them in creation order
typically.)
Fixes #3775.

Cherry picked


Update git:// github.com submodule URL to use https://

Pull Request (PR) description
github.com permanently disabled unencrypted git on 15/3/22: https://github.blog/2021-09-01-improving-git-protocol-security-github/, which means that updating this repository's submodules currently fails.
This PR changes the submodule URL in question to an equivalent HTTPS URL that works.
This Pull Request (PR) fixes the following issues
n/a

@jamespwilliams Thanks!


[DO NOT MERGE] 438: Merge Web-UI Back

Closes #438
⚠ do not merge
This is a first attempt to merge https://github.com/zalando-incubator/zally-web-ui back to this repo keeping the whole history.
TODO:

[x] Move web-ui related files from src folder to web-ui
[ ] Try to launch project
[ ] Setup CI back

@rbarilani @EduardoAC could you please check if the project is still looking good?

@netme there are still some files in src/ directory which are not moved to web-ui.

@maxim-tschumak thanks for checking. Could you please give few examples?

Ah, now I see that :-) Will fix that

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@06d5c04). Click here to learn what that means.
The diff coverage is 86.39%.

@@            Coverage Diff            @@
##             master     #447   +/-   ##
=========================================
  Coverage          ?   86.39%
=========================================
  Files             ?       29
  Lines             ?      272
  Branches          ?       26
=========================================
  Hits              ?      235
  Misses            ?       32
  Partials          ?        5

Flag
Coverage Δ

#webui
86.39% <86.39%> (?)

Impacted Files
Coverage Δ

web-ui/src/client/app/components/url.jsx
0% <0%> (ø)

web-ui/src/client/app/components/editor.jsx
0% <0%> (ø)

web-ui/src/client/app/containers/login.jsx
100% <100%> (ø)

web-ui/src/client/app/services/oauth-firewall.js
100% <100%> (ø)

web-ui/src/server/handlers/index.js
100% <100%> (ø)

web-ui/src/client/app/components/util.jsx
100% <100%> (ø)

web-ui/src/client/app/containers/url.jsx
100% <100%> (ø)

web-ui/src/client/app/containers/app.jsx
100% <100%> (ø)

web-ui/src/client/app/index.jsx
100% <100%> (ø)

web-ui/src/server/handlers/window-env.js
100% <100%> (ø)

... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 06d5c04...435bec6. Read the comment docs.

Seems to be everything is back to normal.

CI is updated
Paths are now correct

@maxim-tschumak, @rbarilani could you please check?

Looks good to me!
:+1:

👍

👍

👍

@EduardoAC I will open another PR fixing links, it's becoming tricky to keep this one up to date

👍


unable to install - rocksdb/db.h file not found

When I do
npm i rocksdb-node --save
on OSX with Node 6.10.1
I get the error below. Do I need to install anything else?
Thanks!
><EMAIL_ADDRESS>install /Users/conoroneill/gitwork/rocksdb-node-test/node_modules/rocksdb-node
> node-gyp rebuild

  CXX(target) Release/obj.target/rocksdb/rocksdb.o
In file included from ../rocksdb.cc:3:
../RocksDBNode.h:5:10: fatal error: 'rocksdb/db.h' file not found
#include "rocksdb/db.h"
         ^
1 error generated.
make: *** [Release/obj.target/rocksdb/rocksdb.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:215:12)
gyp ERR! System Darwin 16.5.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/conoroneill/gitwork/rocksdb-node-test/node_modules/rocksdb-node
gyp ERR! node -v v6.10.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN<EMAIL_ADDRESS>No description
npm WARN<EMAIL_ADDRESS>No repository field.
npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "rocksdb-node" "--save"
npm ERR! node v6.10.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

Doh. Just needs
brew install rocksdb

Thanks Conor, I should have that in the readme!
On 4 May 2017 23:06, "conoro"<EMAIL_ADDRESS>wrote:
Closed #1 https://github.com/dberesford/rocksdb-node/issues/1.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dberesford/rocksdb-node/issues/1#event-1069758963, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAkxTYw0dM2ta3msOcoWzL_UBTbuUNMTks5r2kv3gaJpZM4NRRpf
.


Aks deploy apply qa

Context
Create QA environment in AKS
Changes proposed in this pull request
Create qa global_config file
Add to Makefile
Add qa workspace variable files
Add ability to override resource settings (cpu, memory, replicas, db and redis sizing)
Fix apply-qa front door origin for aks cluster domain
Alongside these changes
-postgres db restores from PaaS QA database (17/02)
-domains added to test DFE sign-in
-added secrets in AKS with modified settings
i.e. sentry disabled, skylight disabled, qa2 routes
-DFE sign-in updated (test)
AKS QA has been manually deployed
-webapp running with 2 replicas
-worker running with 1 replica
-secondary-worker disabled (replicas set to 0)
-clock-worker disabled (replicas set to 0)
-no assets domains i.e. qa2-assets
Guidance to review
make qa_aks deploy-plan
check deployed app
Link to Trello card
https://trello.com/c/HEmjgo8q/96-include-aks-in-apply-cd-pipeline-qa-staging
Things to check

[ ] If the code removes any existing feature flags, a data migration has also been added to delete the entry from the database
[ ] This code does not rely on migrations in the same Pull Request
[ ] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[ ] If this code adds a column to the DB, decide whether it needs to be in analytics yml file or analytics blocklist
[ ] API release notes have been updated if necessary
[ ] Required environment variables have been updated added to the Azure KeyVault

 Include AKS in Apply CD Pipeline - QA/Staging


Update README.md

Fixing a minor typo

Thanks @ffmike ! I always try and double check everything but typos can happen!


GEOMESA-1402 Kafka DS secondary indexing via CQEngine

This PR creates a new module called geomesa-memory which provides
the basis of a new implementation of LiveFeatureCache (the
interface of which is split out as a trait). The original implementation
of this cache is now renamed LiveFeatureCacheGuava and is still
used by default; the new cache may be enabled via a KDS parameter.
The geomesa-memory cache is based on CQEngine, which provides the
ability to fulfill queries via a set of configurable attribute indexes,
falling back to iteration when indexes are not available. The
BucketIndex used in LiveFeatureCacheGuava has been added as a
new CQEngine geo-index; other geographic operators are (for now) handled
by iteration. CQEngine is also configured to logically deduplicate
results from queries with overlapping OR clauses.
Jim Hughes<EMAIL_ADDRESS>Matthew Zimmerman<EMAIL_ADDRESS>with some help from John Armstrong<EMAIL_ADDRESS>

@mdzimmerman Looks good.  Mainly tiny stuff.  I imagine others will have more substantial questions, etc.

@mmatz-ccri @ddseapy are either of you free to read through things and/or chat about these changes?
The two things to note are:

The new in-memory database is optional and is not used by default.
I do believe it is faster for even existing use cases.

@jnh5y I'm out of the loop on the KDS but if you think it will be helpful I could squeeze in some time.

@mmatz-ccri that's fine; I was mainly offering.  Perhaps @ddseapy could do some testing with the new index configured?

@jnh5y I've got something that is high priority atm, after that I should be able to look at it.  Probably by tomorrow or Thursday.

@ddseapy sounds good.  Can you ping me when are free to test?  I'd like to have a chance to explain in person to discuss options and give context.

looks good to me

bumped to m2

If we would like to include the Kafka secondary indexing functionality on the 1.2 branch, this branch can be used for that. Otherwise this can be closed, in favor of the other PR (https://github.com/locationtech/geomesa/pull/1096) that has this code rebased on master.

@mdzimmerman this was replaced with a rebase PR that got merged right? Going to close - let me know if that's wrong.


Added cname file for proper configuation with custom domain

This is necessary for having a custom domain point to sodium-dtr.github.io
See https://help.github.com/articles/adding-a-cname-file-to-your-repository/

Blindly following Charles' advice and merging pull request.


Smash Em' All

Describe the project you want to add with tech stack
Smash Em' All Game  - HTML CSS JS
Expected behavior
Smash Em' All Game
Screenshots (optional)

Additional context (optional )

@RAHULBAWA777 Can u pls assign me this issue. I would like to work on this project.


Can you add an 'Un do closed tab' and a 'bookmark' icon on the top tool bar?

Like this, it's very useful

Sure. Both seem possible.

The picture in OP is from a 360EE (Chinese Chromium) variant :wink: ; for a "bookmarks button" alternative, I currently use:
https://chrome.google.com/webstore/detail/tidy-bookmarks-tree/mmamcliopoldnjhobmflbocmblapjhhn/
(can be configured to look like a "star", much like in 360EE) while for the "Undo closed tab" button I use the excellent:
https://chrome.google.com/webstore/detail/simpleundorecents/kaiblbjjcealhldhdnjhpjmckgclnbca/
(up to 10 recently closed tabs can be restored; other extensions with similar functionality do exist...)


tweaks for iPad, login page stuff, misc todos

Coverage decreased (-0.01%) to 33.15% when pulling 8f9efc82d8852cf3632dd16e71c44c85f5c28599 on MrChristofferson:master into 215c579b28489b56b2f7c5bdd4c146313c8b96f3 on FarmBot:master.


Error with keras tensorboard; help

Please make sure that the boxes below are checked before you submit your issue.
If your issue is an implementation question, please ask your question on StackOverflow or on the Keras Slack channel instead of opening a GitHub issue.
Thank you!

[ ] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/keras-team/keras.git --upgrade --no-deps

[ ] Check that your version of TensorFlow is up-to-date. The installation instructions can be found here.

[ ] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

model1 = Sequential()
model1.add(Conv2D(32, kernel_size=(3,3), activation='relu', input_shape = X.shape[1:]))
model1.add(MaxPooling2D(pool_size = (2,2)))
model1.add(Conv2D(32, (3,3), activation = 'relu'))
model1.add(MaxPooling2D(pool_size = (2,2)))
model1.add(Flatten())
model1.add(Dense(64))
model1.add(Activation('relu'))
model1.add(Dense(1))
model1.add(Activation('sigmoid'))
model1.compile(loss='binary_crossentropy',
optimizer='adam',
metrics=['accuracy'])
model1.fit(X, y, batch_size = 32, validation_split = 0.1, epochs = 5, callbacks = [tensorboard])
FailedPreconditionError                   Traceback (most recent call last)
 in
17               metrics=['accuracy'])
18
---> 19 model1.fit(X, y, batch_size = 32, validation_split = 0.1, epochs = 5, callbacks = [tensorboard])
20
21
~\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\keras\engine\training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, **kwargs)
1603           initial_epoch=initial_epoch,
1604           steps_per_epoch=steps_per_epoch,
-> 1605           validation_steps=validation_steps)
1606
1607   def evaluate(self,
~\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\keras\engine\training_arrays.py in fit_loop(model, inputs, targets, sample_weights, batch_size, epochs, verbose, callbacks, val_inputs, val_targets, val_sample_weights, shuffle, initial_epoch, steps_per_epoch, validation_steps)
212           ins_batch[i] = ins_batch[i].toarray()
213
--> 214         outs = f(ins_batch)
215         if not isinstance(outs, list):
216           outs = [outs]
~\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\keras\backend.py in call(self, inputs)
2976
2977     fetched = self._callable_fn(*array_vals,
-> 2978                                 run_metadata=self.run_metadata)
2979     self._call_fetch_callbacks(fetched[-len(self._fetches):])
2980     return fetched[:len(self.outputs)]
~\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\client\session.py in call(self, *args, **kwargs)
1397           ret = tf_session.TF_SessionRunCallable(
1398               self._session._session, self._handle, args, status,
-> 1399               run_metadata_ptr)
1400         if run_metadata:
1401           proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)
~\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\errors_impl.py in exit(self, type_arg, value_arg, traceback_arg)
524             None, None,
525             compat.as_text(c_api.TF_Message(self.status.status)),
--> 526             c_api.TF_GetCode(self.status.status))
527     # Delete the underlying status object from memory otherwise it stays alive
528     # as there is a reference to status from this from the traceback due to
FailedPreconditionError: Error while reading resource variable training/Adam/Variable_2 from Container: localhost. This could mean that the variable was uninitialized. Not found: Container localhost does not exist. (Could not find resource: localhost/training/Adam/Variable_2)
[[{{node training/Adam/mul_11/ReadVariableOp}} = ReadVariableOpdtype=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"]]

@radu941208  -  Hi, could you please look into 3 checkboxes and check whichever is applicable(pls let us know the reason if you haven't checked them willingly). Also, request you to give a brief and clear explanation of your issue which really help us to look into the issue. Thanks !


fix(release): fix the semantic release and set the base version and fix lint

:tada: This PR is included in version 0.25.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


How can I get current page index?

I checked the code and found that CirclePageIndicator has mCurrentPage variable.
We can use it but it's private.
Can we make a public function to get it?

@sayyam Please let me know if it's possible.

Do I have to use OnPageChangeListener?

Best solution is to use OnPageChangeListener for now.

Fixed in 0.0.10. Exposed getCurrentItem().


Unable to send correct timestamp to ES

Having times like those in the logs: 02/Dec/2019:12:59:56 +0100
I am not able to turn it into a proper elastic search format.
According to the docs, time_format is the input format and types with the declaration below is the paramter which fluentd converts to (output).
# Apache log DateTime
time_format %d/%b/%Y:%H:%M:%S %z

# ES DateTime
types @timestamp:time:%Y-%m-%dT%H:%M:%S.%L%z

Which produces wrong results in ES:
@timestamp | Jan 19, 1970 @ 06:34:24.410

Whereas this works:
index_name fluentd.${tag}.%Y%m%d

The index are in the past (time from the logs), which is as expected.
Full config, using fluentd 1.7, ES7.x, elastic plugin and kibana in Docker
<source>
  @type tail
  path /logs/error.log
  pos_file /logs/error.log.pos
  tag apache.error
  <parse>
    @type regexp
    # IPv4 only!
    expression ^\[(?<@timestamp>.*?)\] \[(?<level>.*?)\] \[pid (?<pid>\d*?)\](?: \[client (?<client>.*?)\:.*?\])? (?<message>.*)$
    time_key @timestamp
    keep_time_key true
    time_format %a %b %d %H:%M:%S.%N %Y
    types message:string, pid:integer, @timestamp:time:%Y-%m-%dT%H:%M:%S.%L%z
  </parse>
</source>

<match apache.**>
  @type elasticsearch
  host elasticsearch
  port 9200
  user elastic
  password changeme

  # This works:
  index_name fluentd.${tag}.%Y%m%d

  include_tag_key true
  tag_key @log_name

   <buffer tag, time>
     @type memory
     timekey 3600
   </buffer>
</match>

starting fluentd-1.7.4 pid=6 ruby="2.6.5"
spawn command to main:  cmdline=["/usr/local/bin/ruby", "-Eascii-8bit:ascii-8bit", "/usr/local/bundle/bin/fluentd", "-c", "/fluentd/etc/fluent.conf", "-p", "/fluentd/plugins", "--under-supervisor"]
gem 'fluent-plugin-elasticsearch' version '3.7.1'
gem 'fluent-plugin-multi-format-parser' version '1.0.0'
gem 'fluentd' version '1.7.4'

I must say, there are several functions that don't work.
Example:
Feed a log line with the DateTime 08/Dec/2019:11:00:00 +0100.
This config
<match apache.**>
  @type stdout
  <format>
    @type json
    time_type string
    time_format %Y-%m-%dT%H:%M:%S.%L%z
  </format>
</match>

Has a JSON output of
... "@timestamp":"08/Dec/2019:11:00:00 +0100" ...
Which apparently is different from what I have declared in the formatter section.
Then, the types thing is not working either and the docs have different syntax regarding time:
https://docs.fluentd.org/configuration/parse-section
date:time:%d/%b/%Y:%H:%M:%S %z # for string with time format

https://docs.fluentd.org/configuration/config-file#supported-data-types-for-values
time type: the field is parsed as a time **duration**.    # (A number with a single letter appended?!)

When setting time_type to float, the output is still "08/Dec/2019:11:00:00 +0100.
It is totally unclear which configuration is for reading/input and which configuration is for writing/output.
I have setup really complex mail servers with hundreds of virtual domains and thousands of mailboxes, which was fun, but formatting a simple timestamp with fluentd is a pain in the ....
Please guide me how to format the output date...

First, Please follow the contribution guide. please do not delete the template https://github.com/fluent/fluentd/blob/bfc39b5dd847253efeb849bf5e67836eaf3ef428/CONTRIBUTING.md

Which produces wrong results in ES:
@timestamp | Jan 19, 1970 @ 06:34:24.410

it happens when time is null. can you check the regex in types is correct?

Has a JSON output of
... "@timestamp":"08/Dec/2019:11:00:00 +0100" ...

This is what we expected.
time_format in format section only affects time which is used in fluentd internally not field value(in this example @timestamp).

@ganmacs Thank you for your reply.
Can you tell me how to format the output datetime, or the datetime getting sent to ES?
I could prepare a full docker composed environment if it helps.

Tried the following from https://groups.google.com/forum/#!topic/fluentd/kkLLYkeCfTI with the following error, maybe that helps:
<filter apache.**>
  @type record_transformer
  enable_ruby
  <record>
    formatted_time ${ require 'date'; DateTime.parse(@timestamp).iso8601(3) }
  </record>
</filter>

[warn]: #0 dump an error event: error_class=RuntimeError error="failed to expand  require 'date'; DateTime.parse(@timestamp).iso8601(3) : error = no implicit conversion of nil into String" location="/usr/local/lib/ruby/gems/2.6.0/gems/fluentd-1.7.4/lib/fluent/plugin/filter_record_transformer.rb:310:inrescue in expand'" tag="apache.access" time=2019-12-08 10:00:00.000000000 +0000 record={"serveraddress"=>"xxx", "clientaddress"=>"xxx", "user"=>"-", "@timestamp"=>"08/Dec/2019:11:00:00 +0100", "method"=>"GET", "url"=>"/TEST", "status"=>401, "bytes"=>2375, "referrer"=>"-", "agent"=>"TEST"}`

The error message above also lead me to try the variable time instead of @timestamp.
I got it working with this.
<filter apache.**>
  @type record_transformer
  enable_ruby
  <record>
    @timestamp ${time.strftime('%Y-%m-%dT%H:%M:%S%z')}
  </record>
</filter>

It is unclear why to use the variable time when in my record it's called @timestamp.

Doesn't this work? https://github.com/uken/fluent-plugin-elasticsearch/tree/db5d0d3b376865608b8fba3d77b11d90a01036ba#time_key_format
And elasticsearch plugin adds @timestamp field dynamically(https://github.com/uken/fluent-plugin-elasticsearch/tree/db5d0d3b376865608b8fba3d77b11d90a01036ba#time_key). so it seems that you don't need to handle it by yourself.

@ganmacs
time_key_format ... This parameter only has an effect when logstash_format is true.
I am not using logstash format.
I don't want the ingest time added to @timestamp, I want the timestamp from the logs themselves.

I was able to solve (kind of) similar issue with fluentd-plugin-elasticsearch and it's option to include_timestamp: https://github.com/uken/fluent-plugin-elasticsearch#include_timestamp.