ArangoDB startup time increased tremendously

Hi
i created a collection with a hash index(unique & sparse) on a filed, imported 3.5 million documents. everything worked fine until i restart the os and ArangoDB service can't start after i wait for 10min. i killed the ArangoDB process and moved the index defenition file to another location, and this time ArangoDB service started.
i know next release would have the persistent indices, but is this normal that the ArangoDB service cant start even after 10 min?
os: windows 8 64bit
arangodb: 2.8.1
memory: 4gb (arangodb consume around 600mb at the startup)
cpu: cure 2 due 2.1 gh (arangodb consume around 60% at the startup)
i had the same collection and index on the ArangoDB 2.7, i had no problem with the startup time.(as long as i remember)

As you already pointed out, Indexes have to fit into RAM. Can you post the figures of the collections in question?
arangosh> db.theCollection.figures()

It may also be helpfull if you could send a memory dump of such an ArangoDB so we could have a look at what its actually doing.

i think the hash index fits in the RAM. when the collection is empty and first i create the index then import the data(importing takes about 5 min), index is created. but if i import the data then create the index, the index would not be created even after 15 min.
before creating hash index
{
  "alive" : {
    "count" : 3367913,
    "size" : 484979408
  },
  "dead" : {
    "count" : 0,
    "size" : 0,
    "deletion" : 0
  },
  "datafiles" : {
    "count" : 13,
    "fileSize" : 454901760
  },
  "journals" : {
    "count" : 1,
    "fileSize" : 33554432
  },
  "compactors" : {
    "count" : 0,
    "fileSize" : 0
  },
  "shapefiles" : {
    "count" : 0,
    "fileSize" : 0
  },
  "shapes" : {
    "count" : 2,
    "size" : 536
  },
  "attributes" : {
    "count" : 5,
    "size" : 0
  },
  "indexes" : {
    "count" : 2, // a skip-list index is also created on the collection
    "size" : 493395400
  },
  "lastTick" : "3138410850595",
  "uncollectedLogfileEntries" : 0,
  "documentReferences" : 0,
  "waitingFor" : "-",
  "compactionStatus" : {
    "message" : "compaction not yet started",
    "time" : "2016-03-15T06:11:11Z"
  }
}

core dump
this is the core dump of the process while creating hash index after 15 min
http://www.arangoclient.net/arangod.rar
the cpu/ram/io usage:

Thanks for the details. We've been able to reproduce & fix this issue.
The fix will be included in 2.7.8 and 2.8.6.


Update logging for ATB data extraction

Feature Request
From a user perspective, it is confusing to see the following logging if you only have (for example) 4hr battery selected as extendable
Using OCC for 2hr_battery_storage investment- no ATB CAPEX found.
Missing ATB data for 2hr_battery_storage: ['Variable O&M', 'Heat Rate', 'WACC Real']
Using OCC for 4hr_battery_storage investment- no ATB CAPEX found.
Missing ATB data for 4hr_battery_storage: ['Variable O&M', 'Heat Rate', 'WACC Real']
Using OCC for 6hr_battery_storage investment- no ATB CAPEX found.
Missing ATB data for 6hr_battery_storage: ['Variable O&M', 'Heat Rate', 'WACC Real']
Using OCC for 8hr_battery_storage investment- no ATB CAPEX found.
Missing ATB data for 8hr_battery_storage: ['Variable O&M', 'Heat Rate', 'WACC Real']
Using OCC for 10hr_battery_storage investment- no ATB CAPEX found.
Missing ATB data for 10hr_battery_storage: ['Variable O&M', 'Heat Rate', 'WACC Real

Suggested Solution
No response
Additional Info
No response

True... The issue here is that the ATB doesn't have data like heat-rates and VOM for resources where it doesn't make sense for that information to exist- but we are still searching for it regardless if it makes sense.
Options:

we just don't print logs for these specific items?
maybe logger has a method to print to the log file but not show the user in snakemake?

Totally makes sense for technologies we are implementing! However, it just seems odd we are searching for 10hr_battery_storage when in the config file I have only specified 4hr_battery_storage being extendable? So I would expect the logging statement to be:
Using OCC for 4hr_battery_storage investment- no ATB CAPEX found.
Missing ATB data for 4hr_battery_storage: ['Variable O&M', 'Heat Rate', 'WACC Real']

Unless we are using the other battery options for something else behind the scenes, then seeing all the logging makes sense!

Makes sense... we can hide logs for items not in the config

I guess my question would be why we are searching though the ATB at all for 10hr_battery_storage if I didnt specify it in the pypsa config?

There are plenty of technologies in build_cost_data that are read from the ATB regardless if they are specified in the config.... I think it's helpful to populate the costs_2030.csv of all the technologies listed in the constants.py regardless if they get read into the network. This way build_cost_data doesn't need to be rerun anytime someone changes a carrier in the config file and the user can reference all the technologies available for them to use.

Fair enough! Thanks for clarifying! :)


Shouldn't custom_policy be included in the main Azure OAuth URL - not just in the token URL?

Describe the bug
I have been testing the gem to login against an Azure AD B2C instance, with a custom policy. Even though I configure the custom policy in my initializer, the authorization URL does not include it. The generated authorization URL is "#{base_azure_url}/#{tenant_id}/oauth2/v2.0/authorize". But, according to Microsoft's docs, it seems that the URL should actually be "#{base_azure_url}/#{tenant_id}/#{custom_policy}/oauth2/v2.0/authorize".
To Reproduce
Just check the file lib/omniauth/strategies/azure_activedirectory_v2.rb, where the method OmniAuth::Strategies::AzureActivedirectoryV2#client is defined as:
def client
  # ... (other not relevant code here) ...
  options.custom_policy =
    provider.respond_to?(:custom_policy) ? provider.custom_policy : nil

  options.client_options.authorize_url = "#{options.base_azure_url}/#{options.tenant_id}/oauth2/v2.0/authorize"
  options.client_options.token_url =
    if options.custom_policy
      "#{options.base_azure_url}/#{options.tenant_id}/#{options.custom_policy}/oauth2/v2.0/token"
    else
      "#{options.base_azure_url}/#{options.tenant_id}/oauth2/v2.0/token"
    end

  super
end

As you can see in the previous code snippet, the custom_policy is being included in the token URL, but not included in the authorize URL.
Expected behavior
If I did not miss anything in Microsoft's docs, I think the authorize URL should also include the custom policy: "#{base_azure_url}/#{tenant_id}/#{custom_policy}/oauth2/v2.0/authorize".
What do you think? Might I be right? If so, if you need me, I can create a PR. I haven't reviewed all the gem's code, but it looks like the patch would be easy:
def client
  # ...

  options.client_options.authorize_url =
    if options.custom_policy
      "#{options.base_azure_url}/#{options.tenant_id}/#{options.custom_policy}/oauth2/v2.0/authorize"
    else
      "#{options.base_azure_url}/#{options.tenant_id}/oauth2/v2.0/authorize"
    end

  # ...
end

That documentation is for the B2C Azure, and while I don't understand the three hundred super confusing similar versions of Azure AD (now Entra), I can at least see that we're definitely not doing this:
https://{tenant}.b2clogin.com/{tenant}.onmicrosoft.com/...

...as per your reference at https://learn.microsoft.com/en-us/azure/active-directory-b2c/authorization-code-flow - we are as you point out using options.base_azure_url, which means by default we're doing this:
https://login.microsoftonline.com/...

...from what README.md links as https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow - a totally different doc, though it looks very similar! Here, you will see at https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow#request-an-authorization-code that there is no requirement for a policy nor is such a property documented.
What's interesting, though, is that no policy parameter is documented at the above reference at all. So we have:

One MS doc that has a totally different base URL with tenant in it twice, but which does have policy shown
One MS doc that has a base URL matching this gem, but with no mention of policies
An implementation which inserts a policy string in the path contrary to docs anyway, but only for one of the two endpoints

I'm really not sure what to make of that!
Are you able to confirm that if you make the suggested amendment, OAuth to Azure AD (Entra) does work as expected and does use the custom policy specified? Or is your suggestion entirely hypothetical at the moment?

@jrodrigosm Any thoughts about the above?

@pond
I had the same experience as @jrodrigosm . When changing the base_url to B2C and specifying a custom_policy, it did not work as Jordan mentioned. If possible, could we adjust the authorize_url to accommodate the custom_policy when specifying a b2c custom policy and changing the base_url?
If needed, I can test this and submit a PR.

@Jureamer For sure, a PR with tests would be really great, thanks - but it would be good if we could also actually get a URL for a Microsoft document explaining all this, so that we understand the basis of what we're doing, and that README.md can be updated with appropriately comprehensive instructions for users of the gem.

Believed fixed by http://rubygems.org/gems/omniauth-entra-id.
See UPGRADING.md for migration.


Bump firtool to 1.32.0

This seems to be failing for unrelated reasons. I can't quite figure out what is going on as it appears that the Queue tests are somehow returning a -1 from Gen.choose(0, 15) which seems impossible. E.g., test failure here which is showing a tap of -1 coming from here.

Yeah that is weird, I'm taking a look. We did just delete the stuff telling it not to shrink the input, but that shouldn't have affected the initial test.

Looks like we cannot use firtool 1.32.0. The basic issue is that chisel3.util.Queue has an option to use a SyncReadMem instead of a combinationally read Mem as it's underlying data store, but it requires WriteFirst read-under-write behavior when using a SyncReadMem. While firtool officially does not support read-under-write for CHIRRTL mems (https://github.com/llvm/circt/issues/4588), in practice it implements them as "write first", giving the correct behavior for Queue with a SyncReadMem. A recent change included in firtool 1.32.0 changed the lowering for SyncReadMems that only have a single entry, and now it no longer is implemented with write-first behavior. Considering that CIRCT change is replacing single-address memories with registers, I'm very surprised it's not maintaining "write first" behavior--perhaps there is simply a bug. Regardless, we're going to stick with firtool 1.31.0 for now.
There is a secondary issue that ScalaCheck just ignores the constraints on your inputs when shrinking inputs and thus the CI failures give very confusing (and incorrect) failing test cases. We used to disable input shrinking but the ScalaCheck API is weird on this in 2.13 and @chick and I were unable to come up with a way to fix it, so we just re-enabled shrinking leading to these terrible CI failure messages. Ideally we could just remove ScalaCheck because it's not really doing much for us (that wouldn't also be caught with targeted tests hitting the corner cases), but in lieu of figuring out what the targeted tests should be, it did catch a bug here.
Lots of credit to @seldridge for helping me debug this.


Status of this project?

Heya folks. I don't really maintain this anymore, haven't worked directly with native modules in well over 4 years.
This project doesn't appear to have any other active maintainers and isn't relevant for modern native module development.
Should we be looking for new maintainers? Should we deprecate this? Thoughts?

Hi @retrohacker ,
I don't have too much experience with native modules, but I would like to help if possible.
As far I can see in node docs, the recommended way to do addons now is to use N-API, but still is possible to use nan or internal v8 too. Also, there is node-addon-api that is the N-API headers-only
I think we should have exercises mainly with N-API, but having exercises using other options (nan, v8, node-addon-api) would be useful too.
At first step, I think we should evaluate if worth it update this workshop or start a new one.
nan version used is 2.2.0 and current version is 2.14.0, so I think shouldn't be too complicated update the exercises.
Some dependencies package are unmaintained now (like after and map-async)
So, I suggest to try to update the workshop.
What do you think?

Thanks for jumping in @ccarruitero!
I'd give you committer rights but I don't have admin rights on this repo. Unless an active maintainer w/ admin rights is around, I think your best bet is to start with a fork of this.
Maybe you can advertise your semi-official fork here on this thread and open a PR to show the improvements?

@retrohacker I fixed the current exercises in #84
Take a look and give any feedback.
I plan to add tests to the repository before start adding exercises with N-API, but could be in another PR so is more easy review changes.
I got commit access to the repository :tada:


Version 1.1.2 doesn't start

Hello, I installed the release version, which just white screens. Then I replaced it by the debug version, which tells me null check operator used on a null value

I'm on Android 12, an Oppo A94 5g.
If you need any more info, just ask me :)

Same, Android 12 OnePlus 7 Pro.  Can provide more info if needed.

When I installed over 1.1.1, it worked as expected. However, resetting the app data and reopening 1.1.2 just results in a grey screen. Also Android 12, Pixel 3a.

Same here, Android 7, Galaxy Tab

Stacktrace on init:
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _CastError was thrown building Builder:
Null check operator used on a null value

The relevant error-causing widget was:
  MaterialApp MaterialApp:file:///home/jpuerto/src/JellyBook/lib/main.dart:86:12

When the exception was thrown, this was the stack:
#0      _LoginScreenState.initState (package:jellybook/screens/loginScreen.dart:51:29)
#1      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5015:57)
#2      ComponentElement.mount (package:flutter/src/widgets/framework.dart:4853:5)
...     Normal element mounting (275 frames)
#277    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3863:16)
#278    MultiChildRenderObjectElement.inflateWidget (package:flutter/src/widgets/framework.dart:6435:36)
#279    MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6447:32)
...     Normal element mounting (407 frames)
#686    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3863:16)
#687    Element.updateChild (package:flutter/src/widgets/framework.dart:3592:18)
#688    RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1195:16)
#689    RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1164:5)
#690    RenderObjectToWidgetAdapter.attachToRenderTree.<anonymous closure> (package:flutter/src/widgets/binding.dart:1111:18)
#691    BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2605:19)
#692    RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1110:13)
#693    WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:945:7)
#694    WidgetsBinding.scheduleAttachRootWidget.<anonymous closure> (package:flutter/src/widgets/binding.dart:925:7)
(elided 4 frames from class _RawReceivePortImpl, class _Timer, and dart:async-patch)

════════════════════════════════════════════════════════════════════════════════════════════════════


Corrected the subresource of Microsoft.Web/sites

When I was testing private link with a Azure Web Service. The subresource "site" was not working. After analysing the web service it turns out "sites"is the correct subresource and its working.

@CraftyKoala : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


u-boot/u-boot-rpi3/armstub8.bin: No such file or directory

Building image fails w/above message after world compilation completes.
# uname -a
FreeBSD FreeBSD-11.virtual 11.1-STABLE FreeBSD 11.1-STABLE #0 r331742: Thu Mar 29 21:30:37 UTC 2018     root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
# /bin/sh crochet.sh -c config.sh
Starting at Sun Apr 15 16:08:36 UTC 2018
Loading configuration from config.sh
Board: RaspberryPi3
Option: ImageSize 3900mb

...
Mounting all file systems:
Mounting FAT partition 1 at /root/crochet/work/_.mount.boot
Mounting UFS partition 1 at /root/crochet/work/_.mount.freebsd
cp: /usr/local/share/u-boot/u-boot-rpi3/armstub8.bin: No such file or directory
# ls -alR /usr/local/share/u-boot/
total 12
drwxr-xr-x   3 root  wheel   512 Apr 15 11:26 .
drwxr-xr-x  51 root  wheel  1024 Apr 15 11:41 ..
drwxr-xr-x   2 root  wheel   512 Apr 15 11:26 u-boot-rpi3

/usr/local/share/u-boot/u-boot-rpi3:
total 492
drwxr-xr-x  2 root  wheel     512 Apr 15 11:26 .
drwxr-xr-x  3 root  wheel     512 Apr 15 11:26 ..
-rw-r--r--  1 root  wheel     123 Apr 15 11:26 README
-rw-r--r--  1 root  wheel  441992 Apr 15 11:26 u-boot.bin

Seems the missing piece is installed as part of another port.

Update your checkout of crochet, this has been fixed.

Checked, builds fine. Thanks a lot.


docs: revised the SDK integration steps in the getting started section

…n (#1514)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
Summary

revised the SDK integration steps in the getting started section

Implementation highlights
(describe how the merge request does for feature changes, share the RFC link if it has)
Test checklist

[ ] add new test cases
[ ] all code changes are covered by unit tests
[ ] end-to-end tests

[ ] deploy web console with CloudFront + S3 + API gateway
[ ] deploy web console within VPC
[ ] deploy ingestion server

[ ] with MSK sink
[ ] with KDS sink
[ ] with S3 sink

[ ] deploy data processing
[ ] deploy data modeling

[ ] new Redshift Serverless
[ ] provisioned Redshift
[ ] Athena

[ ] deploy with reporting
[ ] streaming ingestion

[ ] with Redshift Serverless
[ ] with provisioned Redshift

Is it a breaking change

[ ] add parameters without default value in stack
[ ] introduce new service permission in stack
[ ] introduce new top level stack module

Miscellaneous

[ ] introduce new symbol link source file(s) to be shared among infra code, web console frontend, and web console backend

SonarQube Quality Gate Result

Result: :white_check_mark: OK
Triggered by @zhu-xiaowei on pull_request

Metric
Status
Value
Error Threshold

Reliability rating
:white_check_mark: OK
1
> 1

Security rating
:white_check_mark: OK
1
> 1

Sqale rating
:white_check_mark: OK
1
> 1

Coverage
:white_check_mark: OK
83.50
< 80

Duplicated lines density
:white_check_mark: OK
5.60
> 30

Blocker violations
:white_check_mark: OK
0
> 0

Bugs
:white_check_mark: OK
0
> 0

Code smells
:white_check_mark: OK
2
> 40

Critical violations
:white_check_mark: OK
0
> 0

Major violations
:white_check_mark: OK
0
> 0

Vulnerabilities
:white_check_mark: OK
0
> 0

View on SonarQube
updated: 7/7/2024, 12:54:00 (UTC+0)

SonarQube Code Analytics
Quality Gate passed

Additional information
The following metrics might not affect the Quality Gate status but improving them will improve your project code quality.
Issues
 0 Bugs
 0 Vulnerabilities
 0 Code Smells
Coverage and Duplications
No data Coverage
No data Duplication


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add Hash#includes?(other : Hash) overload

This PR allows checking if a Hash includes given subset denoted by given other Hash.
Functionality asked for instance at SO - Ruby version.
Supersedes #7498 since it's a more versatile implementation, enhancing Hash API without a need for introducing special cases in ContainExpection matcher.

This doesn't closes #7497 ...
I'm not for or against this feature, at least I'm glad you understood https://github.com/crystal-lang/crystal/pull/7498/files#r261847933 – no need to have custom code related to Hash on the expectation anymore.

Ruby provides <, <=, > and >= for this (subset, subset or equals, superset, superset or equals). Let's do the same.

I don't think it's accurate to say that this closes #7497. That issue was about a totally different question.

@asterite Cool, these are way better! How about also delegating Hash#includes?(other : Hash) to other <= self to allow contain expectation to work smoothly with it?

#includes?(a) is defined as returning true when a is part of the collection. You're proposing an entirely different semantic, which is actually a subset predicate. This should be a different method and would be implemented by #7500.
I'd suggest to close this PR.

I've given this some thought and maybe we could consider adding an overload Enumerable(T).includes?(collection : Enumerable) which returns true if all elements in collection are included in self. So that's essentially other.all? { |elem| includes?(elem) }.
/cc https://github.com/crystal-lang/crystal/pull/7500#issuecomment-472214553

If we do that it should be named includes_all?


Update create-account.mdx

hi
Summary

Screenshots (optional)

Documentation checklist

[ ] The documentation style guide has been adhered to.
[ ] If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
[ ] Files which have changed name or location have been allocated redirects.

Hi @ry-lang ! I will be closing this PR now as we already have the guidance to create an account on the same section.


metrics: fix counter

Signed-off-by: lhy1024<EMAIL_ADDRESS>
What problem does this PR solve?
After #2066 , we can count metrics when operator added rather than operator created.
But there are some bugs, it only exec in addOperator and not in addOperatorLock.
What is changed and how it works
exec in addOperator and  addOperatorLock.
Check List
Tests

Unit test

Codecov Report

Merging #2076 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2076      +/-   ##
==========================================
+ Coverage   76.77%   76.81%   +0.03%
==========================================
  Files         191      191
  Lines       19332    19334       +2
==========================================
+ Hits        14842    14851       +9
+ Misses       3368     3358      -10
- Partials     1122     1125       +3

Impacted Files
Coverage Δ

server/schedule/operator_controller.go
82.44% <100%> (+0.24%)
:arrow_up:

pkg/metricutil/metricutil.go
90.62% <0%> (-9.38%)
:arrow_down:

server/tso/tso.go
77.37% <0%> (-2.92%)
:arrow_down:

pkg/etcdutil/etcdutil.go
88.4% <0%> (-2.9%)
:arrow_down:

server/region_syncer/client.go
81.92% <0%> (-2.41%)
:arrow_down:

server/server.go
81.95% <0%> (-0.57%)
:arrow_down:

server/handler.go
50.42% <0%> (-0.43%)
:arrow_down:

pkg/btree/btree.go
87.65% <0%> (+0.8%)
:arrow_up:

server/grpc_service.go
58.53% <0%> (+1.29%)
:arrow_up:

... and 3 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 ea974c9...650ea70. Read the comment docs.

/merge


Creating EC2 routes fail due to already existing when deploying.

Environment: Deploying using version v2023.1.0 of this repo in Visual Studio Code console using WSL ubuntu

I am under the impression that the deploy process is making concurrent requests to create the same or similar routes which is causing the deploy to fail.
Perhaps too many route tables are being created as appose to one with multiple routes.

Here is the error on the console.
omni-app-nucleus-dev: deploying... [1/1]
omni-app-nucleus-dev: creating CloudFormation changeset...
11:35:59 AM | CREATE_FAILED        | AWS::EC2::Route                           | VpcResourcesOmniVp...faultRouteB86AFBA2
Resource handler returned message: "AlreadyExists" (RequestToken: 080ab3df-22a7-5b69-db67-1cecf711a294, HandlerErrorCode: AlreadyExists)

11:35:59 AM | CREATE_FAILED        | AWS::EC2::Route                           | VpcResourcesOmniVp...faultRouteA291E5F8
Resource handler returned message: "AlreadyExists" (RequestToken: 269005d6-5bb1-ed5b-0e80-20e66be29dac, HandlerErrorCode: AlreadyExists)
Resource handler returned message: "AlreadyExists" (RequestToken: 269005d6-5bb1-ed5b-0e80-20e66be29dac, HandlerErrorCode: AlreadyExists)

Resource handler returned message: "AlreadyExists" (RequestToken: 269005d6-5bb1-ed5b-0e80-20e66be29dac, HandlerErrorCode: AlreadyExists)

11:35:59 AM | CREATE_FAILED        | AWS::EC2::Route                           | VpcResourcesOmniVp...faultRoute118D220B
Resource handler returned message: "AlreadyExists" (RequestToken: 8fd72df0-6e87-020a-5d61-52a01412c72e, HandlerErrorCode: AlreadyExists)

Thank you for informing us about this @MarcelSpaceform. I'll update once I'm able to reproduce this error. Please, feel free to share any additional information.

Thank you for informing us about this @MarcelSpaceform. I'll update once I'm able to reproduce this error. Please, feel free to share any additional information.

@kellan-cartledge Thank you for your reply and efforts in trying to replicate my issue. Is there any specific info that you need from me to help out?
I can run the deploy again and take a screenshot of all the route tables that are created before they are rolled back and deleted. Would that help?

Hey, @MarcelSpaceform, would it be possible to provide a step-by-step description of your deployment process?
As well, are you upgrading to v2023.1.0 from the previous version of this project? If this is the case you'll need to remove the previous version prior to deploying v2023.1.0.

Hi @kellan-cartledge I have tried to deploy the app on 2 different environments, and I get that same issue as mentioned in the issue I submitted above.
The first environment was running the deploy script using Windows Subsystem for Linux (WSL) and a console connected to it from Visual Studio code application.
The second environment was a ubuntu 22 running in a virtual machine and setup with all the Prerequisites as mentioned in the read me.
Both setups were run after a public hosted zone was created for my domain in route53 and the ALLOWED_CIDR_RANGE_01 is being set to: <IP_ADDRESS>/0
I hope you can assist as I really need to get the app up and running.

Based on the descriptions of your local environments, the setup of these should be good. My assumption is there are existing Elastic Network Interfaces (ENIs), Network Access Control Lists (NACLs), or Route Tables in the destination AWS account that conflict with what is being configured by this project.
If you are able to navigate to the CloudFormation service in the AWS web console, there should be a more detailed error description under the Stack/Events option -- you may have to scroll for awhile to get past the rolled back resources. If you are able to access this is it possible to share the details on this error from CloudFormation?
As well, please verify any unused resources are removed from the AWS account and Region you are deploying to. Or, are you able to test deploy to a clean/sandbox AWS account that has no resources in it?

@kellan-cartledge Thanks for your reply above. Your assumption was correct. The issue was conflicts with existing routes in the route tables for the CIDR range.
To get it working I just used my exact IP address of my machine in the meantime.
Thanks for your help

Glad you hear you got it working @MarcelSpaceform. For now, I'm going to close this ticket.


upstream: allow handling membership updates outside of HostSet

Allows configuring a subclass of ClusterImplBase to disable membership
updates triggered by changes in individual HostSets, relying instead of
runUpdateCallbacks being called manually. The intent here is to allow
batch updates of host memberships to be made across priorities, and to
allow the source of truth for what hosts are members of a cluster to
live outside of the HostSets (to facilitate #4280).
This PR should be a noop, as all cluster types still use the old behavior. EDS
will be updated in a follow-up to make use of the batch update
semantics, then later on named endpoints will be added (#4280).
Signed-off-by: Snow Pettersen<EMAIL_ADDRESS>Risk Level: Medium, should not affect current behavior
Testing: UTs verifying TLS behavior of membership update cb
Docs Changes: n/a
Release Notes: n/a

Closing in favor of #5818, which ended up being a better approach


Typo in release date for the Semi-Annual Enterprise Channel: Jan 2024, not 2023

The Semi-Annual Enterprise Channel should get it in January 2024, not 2023 (typo)

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

ID: 1d50c2e0-d6d3-ec3f-5e99-acaa2a6868d5
Version Independent ID: 1d50c2e0-d6d3-ec3f-5e99-acaa2a6868d5
Content: The new Microsoft Teams desktop client - Microsoft Teams
Content Source: Teams/new-teams-desktop-admin.md
Service: msteams
GitHub Login: @JoanneHendrickson
Microsoft Alias: jhendr

Hello, thanks for your feedback


Support custom headers and node URL

The PR contains two commits:

feat: support extra headers allowing to add extra headers to stellar requests. This allows us to work with non-public nodes requiring authentication. The authentication is usually done via the "Authorization" header or similar ("X-AUTH-KEY")
fix: support arbitrary node URL fixes an issue if the provided "host" URL is not a hostname like "stellar.org" but "https://my.node.provider.org/stellar/long/path". The original implementation would omit everything after ".org/".

Both commits contain unit tests covering the code changes.

Hey,
@fracek and @bjorn, I hope you folks are doing well.
Could you please review this PR?

Since I got no response on the second part of this change and the first part looked fine, I've cherry-picked it as 64d917c7840ca5df87fd75dc6114af355b4a94de.
To fix the second part my suggestion remains to remove the initial / from the paths passed to join and document that a trailing / should be present for the base URL, in case that is also a viable fix.


Add gender and form.

Form and gender. Useful for unown and whenever breeding comes out.
To update an existing database, do this query:
ALTER TABLE mystery_sightings ADD gender SMALLINT(6) NULL;
ALTER TABLE mystery_sightings ADD form SMALLINT(6) NULL;
ALTER TABLE sightings ADD gender SMALLINT(6) NULL;
ALTER TABLE sightings ADD form SMALLINT(6) NULL;

On my PokeAlarm notification I always get the follow result for Form: Grimer (Gender: ♂ - Form: )
I'm not a Python coder, but from looking at the code and the database values it appears that your code sets the value to 0 if a form doesn't exist.  If a form does exist, it is passed on to PokeAlarm.
Can your code be tweaked to pass the word Unavailable to PokeAlarm if the database value is 0?  I've tried doing this in several different manners, but was unsuccessful.


\ acting as escape character in strings

In a string, \ can escape certain characters, e.g. `\\` pushes \; `\`` pushes \`. Not sure if it's intentional, but it isn't documented anywhere.
Example: Try it Online!

Except for
`\``

The backslash is indeed supposed to be able to escape characters in strings much like in most practical languages. Also, backslahes allow you to include characters that would otherwise be used for dictionary compression.
Not sure what's happening with escaping the backtick though. I'll have to look into that when I'm next at my computer (which won't be for another 10 or so hours)


add converter for OnnxTransformer

Hi, what do you exactly mean by a converter? Convert from what to what?

I fixed this in a different project as I'm not sure to continue this one: https://github.com/sdpython/mlprodict/.


DSL for Continuous Aggregates and Hierarchical rollups

As an ORM user, several times we need to organize migrations and heavy sql repetitions.
Today, I was working on an example and I'd like to bring this to expose the use-case. Check the full example.
I was thinking about how to bring the migration creation for complex rolling up models to avoid such boilerplate on all examples.
Let's consider we want to track count of downloads in multiple timeframes, so we have the model:
class Download < ActiveRecord::Base
  acts_as_hypertable time_column: 'ts'

  scope :by_hour, -> (query) do
      select("time_bucket('1h', ts) as bucket, #{query}")
  end

  scope :all_by_hour, -> do
    by_hour("count(*) as downloads").group(1)
  end

  scope :all_gems_by_hour, -> do
    by_hour("gem_name, count(*) as downloads").group(1,2)
  end

  scope :versions_by_hour, -> do
    by_hour("gem_name, gem_version, count(*) as downloads").group(1,2,3)
  end
end

Then, we need to create the continuous aggregates and also rollup to another level. So, let's do the cagg anonymous class to allow us to rollup:
cagg = -> (view_name) do
  Class.new(ActiveRecord::Base) do
    self.table_name = "downloads_#{view_name}"
    SUM = "sum(downloads) as downloads"

    scope :rollup, -> (range='1d', query=SUM) do
      select("time_bucket('#{range}', ts) as ts, #{query}")
        .group(1)
    end

    scope :per_hour, -> (query=SUM) do
      rollup('1h', query)
    end

    scope :per_day, -> (query=SUM) do
      rollup('1d', query)
    end

    scope :per_week, -> (query=SUM) do
      rollup('1w', query)
    end

    scope :per_month, -> (query=SUM) do
      rollup('1mon', query)
    end

    scope :per_year, -> (query=SUM) do
      rollup('1y', query)
    end

    def readonly?
      true
    end

    def self.refresh!
      ActiveRecord::Base.connection.execute <<-SQL
      CALL refresh_continuous_aggregate('#{table_name}', null, null);
      SQL
    end
  end
end

Then we have the models to bind the sql properly:
PerMinute = cagg['per_minute']
PerHour= cagg['per_hour']
PerDay = cagg['per_day']
PerMonth = cagg['per_month']
GemsPerMinute = cagg['gems_per_minute']
GemsPerHour= cagg['gems_per_hour']
GemsPerDay = cagg['gems_per_day']
GemsPerMonth= cagg['gems_per_month']
VersionsPerMinute= cagg['versions_per_minute']
VersionsPerHour = cagg['versions_per_hour']
VersionsPerDay = cagg['versions_per_day']
VersionsPerMonth = cagg['versions_per_month']

And then we can  build a migration that creates the base continuous aggregate and rolls up the continuous aggregates with hierarchical references:
  hypertable_options = {
    time_column: 'ts',
    chunk_time_interval: '1 day',
    compress_segmentby: 'gem_name, gem_version',
    compress_orderby: 'ts DESC',
    compression_interval: '7 days'
  }

  create_table(:downloads, id: false, hypertable: hypertable_options) do |t|
    t.timestamptz :ts, null: false
    t.text :gem_name, :gem_version, null: false
    t.jsonb :payload
  end

  {
    "per_minute": Download.per_minute,
    "per_hour": PerMinute.per_hour,
    "per_day": PerHour.per_day,
    "per_month": PerDay.per_month,
    "gems_per_minute": Download.gems_per_minute,
    "gems_per_hour": GemsPerMinute.per_hour,
    "gems_per_day": GemsPerHour.per_day,
    "gems_per_month": GemsPerDay.per_month,
    "versions_per_minute": Download.versions_per_minute,
    "versions_per_hour": VersionsPerMinute.per_hour,
    "versions_per_day": VersionsPerHour.per_day,
    "versions_per_month": VersionsPerDay.per_month,
  }.each do |name, scope|
    create_continuous_aggregate(
      "downloads_#{name}",
      scope.to_sql,
      refresh_policies: {
        schedule_interval: "INTERVAL '1 hour'",
        start_offset: "INTERVAL '3 hour'",
        end_offset: "INTERVAL '1 minute'"
      })
  end

Ideas for DSL for cascading the hierarchical continuous aggregates
I was thinking about how to avoid the boiler place as we need a more dynamic settings for such case.  To generate the migrations, the minimal information would be something like:
{[:minutely, :hourly, :daily, :monthly] => "count() as total"]

or
{%w[1m 1h 1d 1w] => 'count(*) as total'}

This can be done in several ways like:

Embed the metadata into create_hypertable macro.

create_hypertable :name, ..., aggregates: ...

Pros: Very useful for POCs
Cons: hard to track on large projects.

Embed in the arguments of the acts_as_hypertable macro

acts_as_hypertable ..., aggregates:  ...

Make it a standalone macro info that can be used in the model

aggregates :hypertable_name, *timeframes => *measurements

Convention over configuration
How to make it part of the model, in a way that the query experience is very smooth and intuitive with the context.
Download.first # fetches data from hypertable
Download::PerMinute.first # fetches from downloads_all_per_minute continuous aggregates
Download::PerHour.first # fetches from downloads_all_per_hour hierarchical continuous aggregates

Also, for generating the continuous aggregates + hierarchical, the migration could be extracted from it.
Download::ContinuousAggregates.not_created.each do |cagg|
  create_continuous_aggregates cagg.name, cagg.sql
end

Any ideas or comments based on your usage and how would you like to use the library?

I updated the gist with my latest ideas from this script: https://gist.github.com/jonatas/418f360d45c890e1d86c30547a0cf6a4


Fix error when localStorage values are null or missing

I noticed an issue where the dggApi:hostInfo value was null in my localStorage, which threw an error from isHost and broke the script.
I changed the logic a bit to be a bit more robust in grabbing the dggApi:hostInfo and dggApi:streamInfo values, i.e. just returning false if the localStorage values are null or missing.
I'm not sure why the values were null in my browser. IDK if the localStorage keys changed, but I figured I'd throw up this PR to at least stop the error from being thrown, in case anyone else was experiencing it :)

Thank you for the fix! ❤


Document platform

Fixes #232
Instructions to review the pull request
Make sure docs render correctly by building docs site
pip install -e .[dev]
cd docs
make html
google-chrome _build/html/apidocs/howfairis.html#howfairis.Platform

Thanks for the fantastic review.


Add: Likecoin branch

Feature description

Create and update likecoin branch to support all messages
Implementation proposal

Done. Branch is chains/likecoin


[Key Vault - Certificates] can recover a deleted certificate (non existing) failing in nightly runs

Key Vault - Certificates nightly test runs are failing with:

Stack trace：
expected 'Forbidden' to equal 'CertificateNotFound'
+ expected - actual
-Forbidden
+CertificateNotFound
AssertionError: expected 'Forbidden' to equal 'CertificateNotFound'
at Context. (/Users/runner/work/1/s/sdk/keyvault/keyvault-certificates/test/public/recoverBackupRestore.spec.ts:2:35)
at processTicksAndRejections (node:internal/process/task_queues:95:5)

For more details check here:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4017153&view=results

Certificates tests have been fairly stable lately, closing for now


replace gopkg.in/yaml.v2 with sigs.k8s.io/yaml

Since sigs.k8s.io/yaml is widely-used in Kubernetes related projects, I think it's better to use it instead of gopkg.in/yaml.v2.
I also changed the version of k8s.io/kube-scheduler and k8s.io/kubectl.

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

Since sigs.k8s.io/yaml is widely-used in Kubernetes related projects, I think it's better to use it instead of gopkg.in/yaml.v2.
I also changed the version of k8s.io/kube-scheduler and k8s.io/kubectl.

👍🏻!! This PR was made in Starbucks, right?
@jamieliu1023


James/chat setup

Chat feature has been setup, text messages can be sent, conversations can filtered by the search bar. Conversation listeners are being cached in a useState inorder to keep a real time subscription for each conversation that a user opens which prevents having to setup a new listener every time the conversation is re-opened

Thanks! In terms of testing it, you simply need the env variables which I pasted in that chat and you're all set. Johnny and Aj merged in this branch and we did some testing by trying to chat with each other which worked well. I'll go ahead and add some documenting inorder to make it understandable for you guys to chime in some thoughts, since I'm sure there could be areas that can be refactored.


feat: expose highlighted/selectedValue in combobox root

Thanks for the PR @HuakunShen . We can merge this feature in, but will be deprecated in v2. 😁

@zernonia Thanks, I just need to use it now.

Yup. There will be @highlight event which has the value and html for the current highlighted value. Similar to https://www.radix-vue.com/components/listbox.html#root

@zernonia Done


SCRIPT1053: Const in ie11

Version
@nuxtjs/i18n: 7.2.2, I think all 7.x and 6.latest
nuxt: 2.15.8
Nuxt configuration

[x] Applies to a site deployed to a static server (site generated with nuxt generate)

@nuxtjs/i18n configuration
build: {
  transpile: ['@nuxtjs/i18n'],
  babel: {
    presets: [
      ['@nuxt/babel-preset-app',
        {
          targets: { client: { browsers: ['last 2versions'], ie: 11 } }
        }
      ]
    ]
  }
}

What is Expected?
generated page is working in IE11
<EMAIL_ADDRESS>I tested that fixed for IE11, it's working fine)
What is actually happening?
I think unsupported syntax in IE11 causes this issue that is in i18n dependency module, ufo.

See https://github.com/unjs/ufo/issues/50 and https://github.com/nuxt/nuxt.js/issues/10339

I got it. when do you expect that PR is merged?

temporarily solve it
  build: {
    // transpile: ["@nuxtjs/i18n"],
    extend(config, ctx) {
      config.resolve.extensions.push(".сjs");
      const orig = config.module.rules[2].exclude;
      config.module.rules[2].test = /\.(m|c)?jsx?$/i;
      config.module.rules[2].exclude = function (file) {
        var res = orig(file);
        if (res) return !/ufo/.test(file);
        return res;
      };
    },
  },

@bump44 Thank you for you to save me. It works well.


⚠ Bofrost.be has degraded performance

In 97d0c30, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2125 ms

Resolved: Bofrost.be performance has improved in 2055772.


Resources: Add filters and sortings queries and UI elements

Description
This PR is still work-in-progress 🚧
PREVIEW LINK
https://preview-cms.vercel.app/resources
TODOs

[ ] Mobile view for SortByDropDown and FilterCheckboxes (wrap all in another Dropdown again, Design is missing)
[ ] Mobile: Hide current Filter Checkbox SideBar on small screens
[ ] Fix: SortBy "publishedAt desc" and "publishedAt asc" are not working correctly, sorting is always chaotic
[ ] Search: If search term => filter and sort inside search results
[ ] Refactor: combine all queries into one (make queries understand undefined params)
[ ] Fix: better styles for Search Bar (make bigger on bigger screens)
[ ] Fix: better styles for SortByDropDown
[ ] Show Loading Spinner during requests
[ ] CrossBrowser Testing

Related Ticket
Closes https://github.com/KlimaDAO/klimadao/issues/534
Checklist

[ ] Building the site with npm run build-site works without errors
[ ] Building the app with npm run build-app works without errors
[ ] I formatted JS and TS files with running npm run format-all

[ ]  The designs had everything checked by default, and I think that makes sense. But it requires the UX to be flipped a little bit from what you have now. The buttons would actually have two behaviors.

I try to illustrate what I mean:
User journey 1: page load -> everything is selected by default -> click a label to select that category and unselect everything else
User journey 2: page load -> everything is selected by default -> click a checkbox to unselect that category and everything else stays selected

Let's move these kind of concept discussions to the ticket.
This needs more brain food then just talking about a code review.
Please see my comment here => https://github.com/KlimaDAO/klimadao/issues/534#issuecomment-1241620148


Labor int marg

Finished Moving the Labor model parameters into the ConsumerParameters.py file and deleted the ConsumerParametersTM.py file.
Took the Lifecycle example from ConsIndShockModel and put it into the ConsLaborModel. (Is this what you want or did I misunderstood it?)
Tried to rewrite the getControls and getPostStates functions for the ConsLaborModel for simulation. But I was not able to fully understand the getControls function and the consumption function in ConsLaborModel. What I did was trying to mimic the getControls function in the ConsIndShockModel and got something similar. Please review carefully on this.

@JackShiqiLi I'm not sure what Matt said but I definitely do NOT want to move the life cycle example from ConsIndShockModel to ConsLaborModel because some infrastructure has already been built expecting it to be in ConsIndShockModel.
The preferred way to approach this would be to have a single version of the tool in which the user could specify a set of parameters, and any parameter that was not explicitly set would take on a default value.  If the default value of the elasticity of labor supply were zero, then the model would be mathematically identical to the original version.  If the user deliberately sets a labor supply elasticity different from zero, the modified code could be used.
For the HARK 1.0 redesign, we need to think hard about how to generically handle this set of issues.  For the short run, though, I think having one function that solves both problems depending on labor supply elasticity is the way to go.

@JackShiqiLi I'm not sure what Matt said but I definitely do NOT want to move the life cycle example from ConsIndShockModel to ConsLaborModel because some infrastructure has already been built expecting it to be in ConsIndShockModel.
The preferred way to approach this would be to have a single version of the tool in which the user could specify a set of parameters, and any parameter that was not explicitly set would take on a default value. If the default value of the elasticity of labor supply were zero, then the model would be mathematically identical to the original version. If the user deliberately sets a labor supply elasticity different from zero, the modified code could be used.
For the HARK 1.0 redesign, we need to think hard about how to generically handle this set of issues. For the short run, though, I think having one function that solves both problems depending on labor supply elasticity is the way to go.

Thank you Carroll for the comment and guideline, I will look into this.

I didn't say to move the lifecycle model from ConsIndShock to
ConsLaborIntMarg, I said to make a lifecycle example like the
ConsIndShock one. Models of labor supply are usually in a lifecycle
framework, not infinite horizon. We just want a functional example of that.
On Thu, Sep 19, 2019, 9:07 AM SHIQI LI<EMAIL_ADDRESS>wrote:

@JackShiqiLi https://github.com/JackShiqiLi I'm not sure what Matt said
but I definitely do NOT want to move the life cycle example from
ConsIndShockModel to ConsLaborModel because some infrastructure has already
been built expecting it to be in ConsIndShockModel.
The preferred way to approach this would be to have a single version of
the tool in which the user could specify a set of parameters, and any
parameter that was not explicitly set would take on a default value. If the
default value of the elasticity of labor supply were zero, then the model
would be mathematically identical to the original version. If the user
deliberately sets a labor supply elasticity different from zero, the
modified code could be used.
For the HARK 1.0 redesign, we need to think hard about how to generically
handle this set of issues. For the short run, though, I think having one
function that solves both problems depending on labor supply elasticity is
the way to go.
Thank you Carroll for the comment and guideline, I will look into this.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/econ-ark/HARK/pull/388?email_source=notifications&email_token=ADKRAFMO76JBKXWMIS3EFPDQKN2QPA5CNFSM4IXJDJOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7DMYVA#issuecomment-533122132,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADKRAFMO3IBKS3W3ZUPGKTDQKN2QPANCNFSM4IXJDJOA
.

Sorry that I have misunderstood, I will finish it soon. Really sorry for that.

I have opened a new pull request to view it more clearly.


Align lengthChange option with search input

For now, the generated datatable doesn't have the length changing input control, so I adjust the default Dom (Bfrtip) a little bit. I added the length input control between the B and f, like this: Blfrtip,
but the input does not align with the search input. I also tried other positions, but it doesn't work.

So how can I add that show button, similar to the demo? Thanks in advance.

Found it, just not to style it with classes
"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>>" .
"<'row'<'col-sm-12'tr>>" .
"<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>"


Warn on unused

First commit makes the kernel no longer #![allow(unused)].
We still allow dead_code, unused_unsafe and unreachable_code.
All other commits fix all the warnings it generated.

Waaat

Oh it's ok. I think the merge commit did this.


Wanted to add radix and count sort algorithms in list of sorting algos

Hi,
The repo is missing codes for radix and count sort algos.
I would like to add these algos to list.
Please assign the issue to me.

Thank you for assigning,
I have opened PR for this issue...


Docker: Error response from daemon: Invalid Container Name ("streama")

Hello
I installed 2 times but I get same this error:
docker: Error response from daemon: Invalid container name (“streama”), only [a-zA-Z0-9][a-zA-Z0-9_.-] are allowed.
How I can fix?

You tried this one? https://hub.docker.com/r/gkiko/streama/
What command do you run?

Yes, right now I installed, thank you.
I made all the settings but I get this error at the end of the video upload

An internal Server error occured.

What could be the solution?

please put up the command that your running on terminal so we can try to understand this from all angles

Hi @sachgits
I tried two install methods.

Method (not working for me)

docker run -d --name=“streama” -p 8080:8080 -p 4000:4000 -v /data:/data -e “MYSQL_HOST=localhost -e “MYSQL_PORT=3306” -e “MYSQL_DB=myusername_db -e “MYSQL_USER=myusername_db -e “MYSQL_PASSWORD=myPassword whatever/streama

Method (@gkiko give to me)

This method is working.
docker run -it -p 8080:8080 gkiko/streama

@emresaracoglu
Container is attached to the bash session so you can see grails stack trace in your bash window.

i think your having problem with " since the error is indicating that docker did not parse them to get to the name streama. the reason why it not doing so cant tell or its a bug somewhere on docker's part since it should just try running without the double quotes ""

@sachgits Yes I tried but I can not go to the site this time

Screen: Page not found

If you want, you can close this issue..
we can not go solving.

no need to close this as the issue is not yet solved am working on a Dockerfile to build an image to run streama once am done ill pass it to you so you can try

@emresaracoglu What steps should I take to reproduce the bug?

Today I completely erased the Docker from server and I installed again.

See 'docker run --help'.
You have new mail in /var/spool/mail/root
[root@server ~]#

Screen

This site can’t be reached

My Server
Distro Name: CentOS Linux release 7.4.1708 (Core)
Kernel Version: 3.10

@emresaracoglu Do not use whatever/streama image! It's 2 years old. Instead use gkiko/streama and report the stack trace if there is one. You will see it in you bash session. Also explain all the steps that led to the bug

@gkiko I can close it now because it's resolved. I've done all the tests right now and it works fine with gkiko/streama
Thank you!


Update option directive naming

Bug/issue #, if applicable:
Summary
This updates the current option directives to follow the naming convention that's proposed in this forum post.
Dependencies
n/a
Testing
Use the AutomaticArticleSubheading, AutomaticSeeAlso, and AutomaticTitleHeading option directives in content.

The syntax for disabling the default behaviors should remain the same as before.
The syntax for redundantly enabling these features now use an explicit "enabled" value.

Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.

[x] ~Added~ Updated tests
[x] Ran the ./bin/test script and it succeeded
[x] Updated documentation if necessary

@swift-ci please test

@swift-ci please test

@swift-ci please test


I would expect at best it to tell me which stacks are using its outputs or at worst the fact that it can't be deleted because of that.
Looking at the output of list-stacks via the AWS CLI shows that this error is present and should be returned to the user:
            "StackStatus": "UPDATE_COMPLETE",
            "StackStatusReason": "Export vpc-demo:DemoVPCPublicSubnetIDs0C2D9BEE cannot be deleted as it is in use by cdk-vpc-to-cfn-elb-demo and elb-cfn-demo"
        },

Good call.


databricks_iam_account_user & databricks_iam_account_group Errors

Describe the bug
Databricks tables databricks_iam_account_user & databricks_iam_account_group generate errors as below:

Steampipe version (steampipe -v)
v0.20.10
Plugin version (steampipe plugin list)
hub.steampipe.io/plugins/turbot/databricks@latest    | 0.0.1
To reproduce
I did not do anything out of ordinary, I simply ran
select * from databricks_all.databricks_iam_account_user
and
select * from databricks_all.databricks_iam_account_group
Expected behavior
I would expect it to work the same way all other tables work. I do have Account Admin Privileges so I would expect privileges not to be the issue here.
Additional context
Add any other context about the problem here.

Thank you @oaulicino for reporting the issue. We have fixed it in https://github.com/turbot/steampipe-plugin-databricks/pull/4
The latest plugin version v0.1.0 includes the fix. Please give it a try and feel free to reopen this issue if you have more questions or feedback 👍.

Apologies, looks like what was working before with config_profile is no longer applicable, so I updated it to profile only in the spc file.


Added additional SNP checks on the host and guest via verification of SNP bit status from instruction set

Added check on the host for all host SEV features in CPU via cpuid 0x8000001f instruction set
Added additional check on the guest to see if guest sev, sev-es, and snp bits are active from  MSR 0xc0010131 (MSR_AMD64_SEV)

Hi @larrydewey, I made few changes and did shellcheck... Please let me know if any further changes are required.

Hi @larrydewey I addressed the changes as per the conversation above, please let me know if any additional changes are required


Option to display Icons in Backspace and Other Keys

Is there a way to make the backspace (and shift, caps lock etc.) keys render as icons or symbols, .e.g.,
http://blog.elliottcable.name/posts/useful_unicode.xhtml
The language translations are not optimal with English text. (backspace, shift, etc.)

Hello @CPC-Dison, you can use the display property for that, e.g:
display={{
  '{bksp}': '⌫',
  ...
}}
mergeDisplay

https://simple-keyboard.com/react/documentation/#display
I agree that the translations are not optimal. It's a current design limitation as simple-keyboard-layouts targets the layout option. Ideally it should output translations for special keys (display option) too..
I added this as a to-do here: https://github.com/hodgef/simple-keyboard/projects/3#card-33645905
Regards,
Francisco Hodge


Deploy timeout

Your environment
OS : Windows 10
Node.js version : v16.14.0
suitecloud-cli version : 1.4.0 (why is it different from the version exposed by npm, i.e. 1.5.0)?
Terminal/CMD tool :  Ubuntu WSL
Describe the bug
Even for small number of objects (forms, fields, templates), i.e. 40, the deploy operation takes more than 10 minutes and stops for timeout reasons. This is the content list of one of my simpler projects. As you can see it contains just 9 custom fields, 3 custom records, a few scripts and a few custom forms. Nevertheless the deploy cannot be carried out successfully. Take into account that if I restrict the number of files deployed by listing them one by one in deploy.xml everything works like a charm. The same happens if I remove some files (for example removing the forms).
cseg_mtr_event.xml
custbody_mtr_linked_journal_entry.xml
custbody_mtr_parent_transaction.xml
custbody_mtr_payment_split_completed.xml
custbody_mtr_payment_summary.xml
custcol_mtr_membership_end_date.xml
custcol_mtr_membership_start_date.xml
custcol_mtr_original_gross_amount.xml
custentity_mtr_eleinv_praddrcode.xml
custentity_mtr_pec.xml
custform_mtr_ff_std_cash_refund.xml
custform_mtr_ff_std_cash_sale.xml
custform_mtr_ff_std_credit_memo.xml
custform_mtr_ff_std_customer_payment.xml
custform_mtr_ff_std_customer_refund.xml
custform_mtr_ff_std_employee.xml
custform_mtr_ff_std_inventory.xml
custform_mtr_ff_std_invoice.xml
custform_mtr_ff_std_non_inventory.xml
custform_mtr_ff_std_purchase_order.xml
custform_mtr_ff_std_return_authorization.xml
custform_mtr_ff_std_return_authorization_cm.xml
custform_mtr_ff_std_return_authorization_cr.xml
custform_mtr_ff_std_sales_order.xml
custform_mtr_ff_std_sales_order_cs.xml
custform_mtr_ff_std_sales_order_inv.xml
custform_mtr_ff_std_vendor_bill.xml
custform_mtr_ff_std_vendor_credit.xml
custitem_mtr_event_end_date.xml
custitem_mtr_event_start_date.xml
customlist_mtr_event_status.xml
customlist_mtr_payment_fee.xml
customrecord_cseg_mtr_event.xml
customrecord_mtr_configuration.xml
customrecord_mtr_payment_split.xml
customrole_mtr_ff_em_controller.xml
customrole_mtr_tba.xml
customscript_aly_create_payment_je_ue.xml
customscript_aly_custom_obj_import_sched.xml
customscript_aly_custom_obj_import_suite.xml
customscript_aly_custom_obj_import_tab.xml
Thanks in advance for your help.

Hello!
It's possible to timeout even with smaller projects since although there's only 40 objects mentioned by the client, custom form and custom record are heavy objects.  For example, one custom record can have many custom fields inside and up to 1000 instance entries.  If you consider the time and operation for each instance entry alone, it would take some time.  Although it times out on the devtools side, kindly ask customer to check the stacktrace in their account.  If customer go to Customization > Suitecloud Development > Deployment Audit Trail, the deployment trail will be listed there once it finishes (either successful or failed deployment).

@manueltoniato Are you still facing this issue?

this is still an issue for our company

hi @tourajvaziri - my team is getting the same error as @manueltoniato. Mainly for Sandboxes. Is there a final solution for this? NS is pushing so hard to use the Suitecloud Development Framework and follow good Continuous Deployment, but this kind of error is a business stopper.

@jpdevrzmz are you behind any proxy? or do you have a normal internet connection?

I am seeing the same issue. I am behind a normal internet connection.

Hi all- after several debugging sessions we found out it was caused by custom segments checks, even if we do not deploy the segment instances. We ended up moving many things to the manifest.xml as dependencies to have a lighter deployment. Not ideal but it was the only thing we could do.

Hi @jpdevrzmz . Thanks for telling us the workaround.
I am going to close this issue since it's related to the checks that are performed server side. In this repository we only track the issues directly related to the CLI and extensions.
However, please create an issue via customer support for further investigation.
Thanks


how to add divider

There are not existing methods at present.
But you can add divider just like normal RecyclerView.
http://stackoverflow.com/questions/24618829/how-to-add-dividers-and-spaces-between-items-in-recyclerview


add grouping option to group a smaller chunk of files and output multiple files

Problem Statement
This project was very helpful in merging audio files locally. But it was merging all the files together(122 files in total). It would have better to have an option to merge smaller chunks of files with multiple outputs.
Solution
Modified the code to add the a grouping option. An integer input can be passed to mention as to how many files can be grouped together to form a single output file.
Example command - mp3cat -g 5 --dir {dir} --output {output-file}

Thanks for this, I'm glad you found the tool useful!
I'm not going to merge the PR as my plan is to keep mp3cat as simple as possible, but you're very welcome to create a fork with the extra functionality.
You might also want to check out mp3binder: https://github.com/crra/mp3binder. It's an existing fork with lots of extra features.


Select2 menu does not allow input into the search text field

I just added a select2 element in one new place on my site and it doesn't work correctly. The user can drop-down the menu and select an option, but the search text is disabled.
I've begun tracing out the code and I can't find any explanation yet. The only clue I can find in chrome inspector is one: normally a class is added to the text input on focus. I notice this class is oscillating--adding & removing itself.
Any clue what would cause? If you want to repro:
http://dev.tacktile.org/home
Search "grasshopper"
Click an image to view dialog
Click blue Download button
Click the Tack button that appears above Download
There is a select menu that appears beneath the photo. This is the broken menu.

same issue with me using metronic bootstrap 3 template. Looking into @ivaynberg link.

Go the solution. It is because of the select is on top of bootstrap modal.
It worked when tabindex="-1" was removed from bootstrap modal.
I found the solution from http://stackoverflow.com/a/18487440/375551

same issue with knockout js  , the search box not clickable

@imuneer Thanks

@imuneer thank you so much! It worked for me !

Awesome. Thanks! Worked for me too.

@imuneer Thanks! 🎉

@imuneer Thanks a lot! You saved my time. 👍

Checked with Firefox and Chrome, 4.0.3 still not fix this issue

Great this solved me 5 hours of tests

while removing tabindex="-1" does make the search box editable, its not a solution because it now breaks the accessibility of my page. The modal window is no longer active and accessible from keyboard. whats worse, the parent window can be tabbed into. is there an alternative solution here that doestn break accessiblity? thanks!

@imuneer Thank you, your solution fixed the issue for me.

@mazhisai  I have the same issue now my model is not closing on  Esc key. Have you found any alternate solution?

@ankitkumarsuthar  Sorry, I don't have a better solution. I ended up removing tabindex as a workaround.

@imuneer Thanks

a kind soul shared an alternative: https://github.com/select2/select2/issues/4871#issuecomment-306700381

Thanks, it help me.

https://select2.org/troubleshooting/common-problems#select2-does-not-function-properly-when-i-use-it-inside-a-bootst
If you use select2 in modal so resolve in this link,
you must config dropdownparent

Thank you so much


GitHub pages

Here is a link to the PR with the changes required for deploying my portfolio on GitHub pages
https://ssekpius.github.io/Portfolio/

Hi @SSEKPIUS,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Linux so version incorrect

When building on Linux, the output library is libSDL3_image.so.0.0.0 instead of 3.0.0. This happens for SDL_mixer and SDL_ttf as well, so the fix should be applied across all the satellite libraries.
I'm sure this affects Debian experimental, so this should be fixed ASAP.
Thanks!

SDL3 also creates libSDL3.so.0.0.0.
My understanding was the extension is: $SOVERSION_MAJOR.$SOVERSION_MINOR.$SOVERSION_PATCH.
So for SDL3, cmake creates:
libSDL3.so -> libSDL3.so.0
libSDL3.so.0 -> libSDL3.so.0.0.0
libSDL3.so.0.0.0

You're right, I forgot that we reset the major version to zero for SDL3.


Next steps (18.10.2024)

Macro on the fly - generate code first in a proper order - should ideally not depend on the way nodes are arranged in the GUI or direction of selection
Macro on the fly - rename nodes (somewhat like this)
Macro on the fly - remove macro buttons so that they don't show up on all nodes

I think some aspect of this should be handled inside pyiron_workflow and just linked here. E.g., I could imagine something like this belonging nicely in the backend module:
def to_macro(*nodes: StaticNode, class_name: str | None = None) -> type[Macro]:
    """
    Given a set of sibling node instances, creates a new macro class where all
    connections internal to the passed nodes are reformed in the graph creation
    method, and all current values for external inputs (i.e. those which do not
    have a connection to a sibling in `*nodes`) are used as defaults for the new
    macro IO.

    A class name can be provided explicitly, but otherwise will be constructed
    using data from `*nodes`.

    TODO: Maybe expose a kwarg for modifying the IO interface?
    """

That is pretty rough; I could alternatively imagine returning a string of the code defining the graph creation method (or both class and raw code). It is also incomplete as what you really want to be able to do is this and replacing *nodes in the graph with an instance of the new macro on-the-fly. (Then there is the corollary step of taking a macro instance and on-the-fly replacing it with all its individual parts, i.e. "unpacking" the macro onto its parent level.)
Anyway, my main point is that it seems fair to make the backend responsible for most of this functionality.

That's definitely an idea I can get behind! Then from the GUI side, we would just have to pass the selected nodes to def_macro.
By the way @liamhuber , is there a way for me to access information about other nodes from within a node before the workflow has run even once? For example, I want the label of a node that is connected to the current node to be used from within the current node.
Something like:

@as_function_node("something")
def CurrentNode(input1):

   if (input1.owner.label) == 'InterestingNode':
      variable1 = interesting_function()
   else:
      variable1 = boring

   return variable1

You could define helper methods on nodes that are aware of its graph state (eg the wf.get_master_dataclass()), that's not a problem at all -- but the actual node operation (.run()) should not lean on graph construction this way.
Function nodes hold and process data, the node instance itself should not be used as data; similarly macros are just a graph of other nodes and so ultimately behave the same way. I'm sure you can strong-arm a set of nodes to go in this direction, but I strongly recommend against it. Having function node innards depend on parent graph state is highly non-functional and I think it will only bring headaches in the long run.

@liamhuber Oh, I definitely do not want to run nodes from within other nodes. Nor do I want nodes to have access to generated input values from other nodes without being connected (that's what connections are there for lol). I would only like information about other nodes in the graph, and the user-defined inputs (like the number of repetitions of a unit cell that a user defined somewhere else in the workflow).
The thing is, openBIS can store datasets with a graph representation where stuff are linked together:

I would like workflows to be represented on openBIS as close to 1:1 as possible. And following up on @JNmpi of having openBIS directly in the nodes, I would need some way for each node to know where it sits in the graph.

Do you mean OpenBis directly in the node, as in its run functionality exploits graph location info and talks to OpenBis, or on the node, as in there is some custom method like send_to_OpenBis or locate in OpenBis or whatever? I am still very against the former, but the later sounds fine and should be quite easy.

Ok good 😂 Without being very well informed about OpenBis, I can't make an absolute promise, but it certainly seems to me like it should be easy to access all the data it might want by adding a method to nodes. Even better might just be to write a function that takes a node (or nodes) as inputs, so we don't add any OpenBis dependency to the core infrastructure.


PPL - support 'SQL DESCRIBE TABLES' like functionality in PPL

Is your feature request related to a problem? Please describe.
Data may contain nested fields, therefore the osd client has to flatten nested fields, costing more time and resources to render fields in sidebar and suggestion list for query bar in a flattened manner
Describe the solution you'd like
Add functionality in Opensearch existing endpoint '_plugins/_sql' to flatten any object like nested fields
e.g.
{
'a': {
'b': 'xx'
'c': 'yy'
}
}
will be flattened to
"schema":[
{
"name": "a.b",
"type": "keyword"
},
{
"name": "a.c",
"type": "keyword"
}]
datarows:[
xx,
yy
]

PPL describe is added in PR https://github.com/opensearch-project/sql/pull/646. Please reopen if anything else needed. Thanks!


Unable to synchronize wallet to chain when unlocking lnd wallet

I'm using MacOS 10.14.1
I've synced the Bitcoin blockchain, created a Lightning wallet recorded the seed phrase. Now when I try to Unlock the wallet I get the following in my terminal:
2018-12-14 10:35:08.661 [INF] LTND: Version: 0.5.1-beta commit=, build=production, logging=default
2018-12-14 10:35:08.661 [INF] LTND: Active chain: Bitcoin (network=mainnet)
2018-12-14 10:35:08.661 [INF] CHDB: Checking for schema update: latest_version=7, db_version=7
2018-12-14 10:35:08.670 [INF] RPCS: password RPC server listening on <IP_ADDRESS>:10011
2018-12-14 10:35:08.670 [INF] RPCS: password gRPC proxy started at <IP_ADDRESS>:8081
2018-12-14 10:35:08.671 [INF] LTND: Waiting for wallet encryption password. Use lncli create to create a wallet, lncli unlock to unlock an existing wallet, or lncli changepassword to change the password of an existing wallet and unlock it.
2018-12-14 10:35:33.099 [INF] LNWL: Opened wallet
2018-12-14 10:35:33.156 [INF] LTND: Primary chain is set to: bitcoin
2018-12-14 10:35:33.159 [INF] LTND: Initializing bitcoind backed fee estimator
2018-12-14 10:35:33.159 [INF] LNWL: Started listening for bitcoind block notifications via ZMQ on tcp://<IP_ADDRESS>:18502
2018-12-14 10:35:33.159 [INF] LNWL: Started listening for bitcoind transaction notifications via ZMQ on tcp://<IP_ADDRESS>:18503
2018-12-14 10:35:33.890 [INF] LNWL: The wallet has been unlocked without a time limit
2018-12-14 10:35:33.891 [INF] LTND: LightningWallet opened
2018-12-14 10:35:33.893 [INF] LNWL: Catching up block hashes to height 553764, this will take a while...
2018-12-14 10:35:33.899 [INF] HSWC: Restoring in-memory circuit state from disk
2018-12-14 10:35:33.900 [INF] LNWL: Caught up to height 0
2018-12-14 10:35:33.900 [INF] HSWC: Payment circuits loaded: num_pending=0, num_open=0
2018-12-14 10:35:33.901 [INF] RPCS: RPC server listening on <IP_ADDRESS>:10011
2018-12-14 10:35:33.901 [INF] RPCS: gRPC proxy started at <IP_ADDRESS>:8081
2018-12-14 10:35:33.902 [INF] LTND: Waiting for chain backend to finish sync, start_height=553764
2018-12-14 10:36:05.802 [WRN] LNWL: Unable to synchronize wallet to chain: Post http://<IP_ADDRESS>:8332: dial tcp <IP_ADDRESS>:8332: connect: operation timed out

Checked to make sure i'm using 5.1.1

Downloaded Zap and followed the Tutorial to Setup Bitcoin Lightning Node on Mac from Bitcoin Rabbi. Looks like that gets me to the next step.  I'll try to load the wallet, open a channel and buy something.
Fingers crossed.


doc how to use the supplied Postman configs

Thanks @mohawk2 for writing this! @Cameron-C-Chapman would you mind reviewing it?

@Cameron-C-Chapman Agreed, have force-pushed minus the sudo.


[Many ports] Add licenses to manifests of various ports

Describe the pull request

What does your PR fix?
This adds the license attribute to various manifests where it is currently missing. Only those ports are updated that could be linked to a GitHub repository where license information is recognized by GitHub.

Which triplets are supported/not supported? Have you updated the CI baseline?
No changes, Yes

Does your PR follow the maintainer guide?

Yes

Let me know if there is a better way to add this information. If it helps, I can also split this PR up into multiple smaller ones.

Although I like the idea I think that's a waste of CI time because it triggers at least a quarter world rebuild. Furthermore, this invalidates every binary cache that customers have. And all of this just to add license information?! If you would replace vcpkg_configure_cmake, this would at least make configure slightly faster and therefore actually a more useful reason to rebuild so many ports.
The current approach of adding license every time a port is modified is more CI/ cost effective, although it might be annoying.

Yeah I also think it is better to add the licenses on port update. Having a complete list of which port has which license would be great though. Makes it much easier to add the license on update.

@chausner Did you get the information programmatically? Maybe it would be a useful addition to the PR suggestions GH action.
In the end, it really needs to be reviewed carefully, per port.

Are there exceptions for some parts of the code?
Are there are alternative licenses?
Does LGPL-3.0 mean LGPL-3.0-only or LGPL-3.0-or-later?

Although I like the idea I think that's a waste of CI time because it triggers at least a quarter world rebuild. Furthermore, this invalidates every binary cache that customers have.

That's a fair point that I didn't consider.

@chausner Did you get the information programmatically? Maybe it would be a useful addition to the PR suggestions GH action.
In the end, it really needs to be reviewed carefully, per port.

Yes, I wrote a script that finds ports based on GitHub repos and uses the GitHub API to retrieve the SPDX identifier of the license. I am not sure how GitHub detects licenses but I assume it looks for common license files (LICENSE, COPYING, etc.) and checks if they match a template.
So the process is certainly not always 100% correct (as you say, there can be multiple licenses sometimes or exceptions) but the same is probably true when users search for and add this information. There can always be mistakes. I thought retrieving this information in an automatic way might be good enough and it saves people from having to gather this information manually.

If you would replace vcpkg_configure_cmake, this would at least make configure slightly faster and therefore actually a more useful reason to rebuild so many ports.

I have seen with some ports that switching from vcpkg_configure_cmake to vcpkg_cmake_configure is not always safe and they broke after updating. So blindly updating ports might be a bit risky.
However, another addition that we could safely make is setting the homepage attribute in the manifest to the GitHub URL, if not already present.

Discussed in the Thursday meeting:
I do not want to take a PR that changes 300 ports at once; we'd love it if we could integrate the license checker into CI, on the other hand. @chausner can you PR that, or at least updload your script so that we can do so?

I do not want to take a PR that changes 300 ports at once; we'd love it if we could integrate the license checker into CI, on the other hand. @chausner can you PR that, or at least upload your script so that we can do so?

Okay fine, I'll attach the script I used and will close this PR then. The parsing of the GitHub URL from CMakeLists.txt is a bit crude and works for the standard cases but fails if the CMake script does something special, so it probably would need to be made more robust before being added to CI.
LookupLicenses.zip

I tried to execute it locally, but there is no command Get-GitHubRepository. Do you know what I have to do to make it available?

vcpkg_licenses.json.txt
Is a summary of what vcpkg has and what github and the spdx online tool found.


Adjustable polling setting

Not so much a bug but a feature suggestion.
I notice Spotifree takes up about .6 to 1.4% CPU on my 2010 macbook pro. I'd be fine with hearing the start of an ad if it reduces the polling to let's say 1s or so.
Maybe add an option to set the polling in ms.

Just curious. Why does it need to poll? Don't you get the duration of the current track from Spotify or tell when you start a new song?

@simonbromberg We need the polling to know when an ad comes on. Spotify won't tell us that, unfortunately.

@ArtemGordinsky Could you get the track duration and then pause polling for the remainder of time the track is supposed to play (remaining - 2s)?
Like others, I'd be totally fine hearing the occasional ad (ex. if mid-way through a song I skipped to the end and Spotifree polling was still paused for another minute) or hearing the first second of an ad if it meant better battery life / less power consumption.

@jb510 I'm afraid this approach would break the moment you skip a song or put Spotify on pause. Then Spotifree would miss much more than an occasional ad.
Regarding the battery life concerns — how much does Spotifree affect yours? I don't think it should cause any major battery drain.

Artem - I'm not really sure what the energy impact is (haven't closely monitored it yet).  I do see CPU cycles at about 3% which is the same as Spotify.  It seems crazy that spotifree needs the same CPU cycles are Spotify, but I could be misinterpreting something.
As for breakage, I'm not suggesting you pause polling until the very last second.  Just that if upon polling a song had 3 minutes remaining, you could pausing polling for 30 seconds.  If the time remaining was less that 60 seconds then switch to .3 seconds to detect the end of the song. If someone manually skipped ahead a commercial might play, or might not. If not then when the poll occurred again you'd pickup the new song and new time remaining.
Maybe it's just way to complicated and wouldn't make a big difference in energy use. I don't know it was just an idea based on what seems like comparatively high CPU use.

Is this enhancement/feature actually implemented in the current release? I've changed the SFPollingRate to many different values (and read them back), and the functionality of Spotifree doesn't seem to change. I would expect that a 5 second polling rate would at some point play a few seconds of the ad, yet the ad still gets muted immediately when the ad starts. It seems like regardless of the SFPollingRate, Spotifree still polls at its 0.3 second default.

I wanted to wait until I had more than anecdotal data, but I don't see Spotifree using excessive power.  It looks like it would based on CPU usage (but that's never very accurate).   It's about 1/10th the energy use of Spotify.

What about file access? Spotify takes note when a track is over, gets skipped or whatever...
Try:
$ sudo

Which produces something like (after skip):
  501   8289 Spotify       69 /Users/simonmeusel/Library/Application Support/Spotify/Users/simonmeusel-user/ad-state-storage.bnk.tmp
  501   8289 Spotify       69 /Users/simonmeusel/Library/Application Support/Spotify/Users/simonmeusel-user/log-tracked.tmp
  501   8289 Spotify       69 /Users/simonmeusel/Library/Application Support/Spotify/Users/simonmeusel-user/log-tracked.tmp
  501   8289 Spotify       69 /Users/simonmeusel/Library/Caches/com.spotify.client/Data/b4/******************.file
  501   8289 Spotify       99 /Users/simonmeusel/Library/Application Support/Spotify/Users/simonmeusel-user/recently_played.bnk.tmp
  501   8289 Spotify       99 /Users/simonmeusel/Library/Application Support/Spotify/Users/simonmeusel-user/recently_played.bnk.tmp
  501   8289 Spotify       99 /Users/simonmeusel/Library/Application Support/Spotify/Users/simonmeusel-user/pending-messages.tmp
  501   8289 Spotify       99 /Users/simonmeusel/Library/Application Support/Spotify/Users/simonmeusel-user/pending-messages_seq_nr.tmp
  501   8289 Spotify      116 /dev/urandom
  501   8289 Spotify      116 /Users/simonmeusel/Library/Caches/com.spotify.client/Data/30/******************.file
  501   8289 Spotify      116 /Users/simonmeusel/Library/Application Support/Spotify/Users/simonmeusel-user/pending-messages.tmp
  501   8289 Spotify      116 /Users/simonmeusel/Library/Application Support/Spotify/Users/simonmeusel-user/pending-messages.tmp

We could just watch a file, for example /Users/simonmeusel/Library/Application Support/Spotify/Users/$SPOTIFY_USERNAME-user/recently_played.bnk.tmp
If the username is not known, just look into /Users/simonmeusel/Library/Application Support/Spotify/Users/

On how to watch a file: https://duckduckgo.com/?q=fsevents+swift&ia=web
https://github.com/Eonil/FileSystemEvents

@simonmeusel That's pretty cool! What's the CPU usage with your approach?

It's in the README.md:

Using those techniques, it uses only 0.4% CPU when the track changes (rate: 5 seconds), and 0% in idle. It has a energy impact of less than one tenth of spotify when the track changes, and a energy impact of 0.0 - 0.1 in idle.


Fix widget duplication in send back action

This PR fixes an issue where widgets are duplicated in the panel when multiple FLOATING_WIDGET_SEND_BACK actions are fired with the same home state.

@Mergifyio backport release/3.3.x

Fixes https://github.com/iTwin/itwinjs-backlog/issues/327


added false friends en de dataset to pair classification

Checklist for adding MMTEB dataset

Reason for dataset addition:

[x] I have tested that the dataset runs with the mteb package.
[x] I have run the following models on the task (adding the results to the pr). These can be run using the mteb run -m {model_name} -t {task_name} command.

[x] sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
[x] intfloat/multilingual-e5-small

[x] I have checked that the performance is neither trivial (both models gain close to perfect scores) nor random (both models gain close to random scores).
[x] I have considered the size of the dataset and reduced it if it is too big (2048 examples is typically large enough for most tasks)
[x] Run tests locally to make sure nothing is broken using make test.  (unfortunately not working on windows)
[x] Run the formatter to format the code using make lint. (unfortunately not working on windows)
[x] I have added points for my submission to the POINTS.md file.

Merging this over to another branch to fix the few remaining issues and merge it in


Add support for multiple text elements on canvas

Description
Currently, the canvas only supports a single text element. To enhance the functionality and versatility of our text editor, we should implement support for multiple text elements on the canvas.
Proposed Changes

Modify the data structure to store multiple text elements
Update the rendering logic to display all text elements
Add a new "Add Text" button to create additional text elements
Modify the existing "Save" button to update the currently selected text element
Implement a selection mechanism for choosing which text element to edit

Implementation Details

Create a new array textElements to store multiple text objects
Update addToSnapSorts() to handle multiple elements
Create new functions addTextElement() and renderAllElements()
Modify updateCanvas() to work with multiple elements
Add a new event listener for the "Add Text" button
Update the HTML to include the new "Add Text" button

kindly assign this issue to me

Sure! Assigning this issue to you.

Kindly check the Pull request for this issue.
Please comment with any suggestions or concerns about this proposed feature.


Ask for confirmation to delete an expense

Resolves #102

Right now I have created a separate component for the popup which is named "delete-popup". Let me know if I have to create a more generic component first (something like "popup"). Let me also know if I have to customize the popup further in any way.

I think this is a great addition!
I don't really have anything to say on the best practice use of components, so I'll let someone else have a say about those.
I did want to say that at least the formatting checks are going to fail, though, so you might want to run prettier before Sebastien has a look at anything (npx prettier -w .) in order to fix the formatting

I have run my files through prettier now (thanks for your comment!), and instead of just using <DialogClose> I will add a <Button> inside of it (I think it would make the close option look like a proper button and they would have same font size) and make a PR within today. Thanks for your input.

I have fixed the formatting issues and the cancel option is now a proper button now. Also, I have changed the title and description a little.

Hi @shynst, thanks for your input.

Great, thanks 👏


Add support for parsing URLs.

This fixes #15, using the URL parsing code from your tree-sitter-rst repository: https://github.com/stsewd/tree-sitter-rst/blob/master/src/tree_sitter_rst/parser.c#L1312
In Neovim, I can now add:
; extends

(url) @text.uri

In a after/queries/comment/highlights.scm file. This should be integrated into nvim-treesitter itself after merging.

Ping

Hi, thanks for the PR. I'll try to give it a review this weekend.

Hi again, sorry I won't be able to merge this PR, but I was able to add support for URIs in https://github.com/stsewd/tree-sitter-comment/pull/21 without the need of more C code.
Other differences:

Only http/s protocols are supported for now (supporting more protocols should be easy, but I think we can just start wih the basics, and see if anyone wants to highlight more protocols)
Use uri instead of url for the name of the token.

Thanks again for opening this PR, sorry I wasn't able to re-use it.

No problem - the feature is really is, no matter how we get there. I must have typo'd url instead of uri.
Will you be making a PR on nvim-treesitter to pull this in?
I assume comment/highlights.scm will need to be updated there as well?
Thanks!

Will you be making a PR on nvim-treesitter to pull this in?

Yeah, doing that now :)


Set Run.runId format as uuid, according to RFC4122

This PR sets theRun.runId format as uuid, according to RFC4122. A uuid is a valid Json schema resource identifier introduced in 2019-09, see section 7.3.5.
Note, please see #29 outlining the reasoning for using the uuid type for Run.runId.

Codecov Report

Merging #65 (7a6afa8) into main (f0eb447) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #65   +/-   ##
=======================================
  Coverage   90.18%   90.18%
=======================================
  Files           5        5
  Lines         163      163
=======================================
  Hits          147      147
  Misses         16       16

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 f0eb447...7a6afa8. Read the comment docs.


If the Teacher model is different from Student model, how can I use this framework？

Hi. Thanks a lot for the great framework. I want to know if the student model is different from the Teacher model. For example, the Teacher model is BERT and the Student model is RNN(small model) .How should I use this framework?
Could you please tell me how I can implement that? Thanks

Hi @topbookcc ,
Yes, you could use this framework for such a configuration.
Assuming the student model (RNN) is an instance of nn.Module (implemented with PyTorch), can you describe the interface of RNN? Specifically, what would you like to feed to the student model (and for which task)?
If it is just a list of tokens (produced by the teacher's tokenizer) for GLUE tasks (i.e., output = your_rnn_model(*tokens)), I guess it should be easy.

@topbookcc  Closing this issue as I don't see any follow-up for a while.
Open a new Discussion (not Issue) if you still have questions


x/website: Is the description of const type wrong?

There is an example at https://golang.org/ref/spec#Operators:
var a [1024]byte
var s uint = 33

// The results of the following examples are given for 64-bit ints.
var i = 1<<s                   // 1 has type int
var j int32 = 1<<s             // 1 has type int32; j == 0
var k = uint64(1<<s)           // 1 has type uint64; k == 1<<33
var m int = 1.0<<s             // 1.0 has type int; m == 1<<33
var n = 1.0<<s == j            // 1.0 has type int; n == true
var o = 1<<s == 2<<s           // 1 and 2 have type int; o == false
var p = 1<<s == 1<<33          // 1 has type int; p == true
var u = 1.0<<s                 // illegal: 1.0 has type float64, cannot shift
var u1 = 1.0<<s != 0           // illegal: 1.0 has type float64, cannot shift
var u2 = 1<<s != 1.0           // illegal: 1 has type float64, cannot shift
var v float32 = 1<<s           // illegal: 1 has type float32, cannot shift
var w int64 = 1.0<<33          // 1.0<<33 is a constant shift expression; w == 1<<33
var x = a[1.0<<s]              // panics: 1.0 has type int, but 1<<33 overflows array bounds
var b = make([]byte, 1.0<<s)   // 1.0 has type int; len(b) == 1<<33

// The results of the following examples are given for 32-bit ints,
// which means the shifts will overflow.
var mm int = 1.0<<s            // 1.0 has type int; mm == 0
var oo = 1<<s == 2<<s          // 1 and 2 have type int; oo == true
var pp = 1<<s == 1<<33         // illegal: 1 has type int, but 1<<33 overflows int
var xx = a[1.0<<s]             // 1.0 has type int; xx == a[0]
var bb = make([]byte, 1.0<<s)  // 1.0 has type int; len(bb) == 0

Is the comment 1.0 has type int; n == true at line 9 is wrong? Because j is an int32 variable, I think 1.0 should have type int32.

You are correct, and this is a dup of #48422, fixed on tip.


Update troubleshoot-not-getting-email.md

@icnocop : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


feat(curriculum): add shortest path algorithm to new Python curriculum

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

Suggestion: If dictionaries are introduced in this project for the first time, they should be explained in a bit more detail.

I'm going to add more steps to introduce them properly 👍


Blockingproxy: TypeError: Cannot read property 'toString' of null

I have been using some protractor scripts which have been running fine for a few months.
In the past week, I upgraded to:

Node Version: v8.4.0
Protractor Version: version 5.1.2
Browser(s): Chrome 61.0.3163.79
Chromedriver: 2.32
selenium standalone server: 3.5.3
Operating System and Version MacOS X and Windows

and suddenly I am getting this error in BlockingProxy:
BlockingProxy error: E/BlockingProxy - (node:26020) TypeError: Cannot read property 'toString' of null

I added the node --trace-warnings flag and got a stack trace:
 E/BlockingProxy - (node:26296) TypeError: Cannot read property 'toString' of null
    at replyWithError (/Users/c-craigr/work1/es-automation-test/ui-tests/node_modules/blocking-proxy/built/lib/webdriver_proxy.js:42:35)
    at WebDriverProxy.<anonymous> (/Users/c-craigr/work1/es-automation-test/ui-tests/node_modules/blocking-proxy/built/lib/webdriver_proxy.js:53:17)
    at Generator.throw (<anonymous>)
    at rejected (/Users/c-craigr/work1/es-automation-test/ui-tests/node_modules/blocking-proxy/built/lib/webdriver_proxy.js:5:62)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

I tracked the problem down to this code in BlockingProxy:
https://github.com/angular/blocking-proxy/blob/master/lib/webdriver_proxy.ts#L29
 let replyWithError = (err) => {
      response.writeHead(500);
      response.write(err.toString());
      response.end();
    };

In this case err is null, so that causes an exception to be thrown.
Does anybody have an idea why err is null?

@adelitofarias I cannot see your full config file.  The problem seems to be in BlockingProxy, which is available in Protractor 5.1.0 and higher.
Disabling BlockingProxy made things work for me.
I put this in my config:
useBlockingProxy: false

and removed webDriverLogDir.

Moved to this issue: https://github.com/angular/blocking-proxy/issues/38

While angular/blocking-proxy#38 was fixed in<EMAIL_ADDRESS>and<EMAIL_ADDRESS>the currently available released<EMAIL_ADDRESS>version is not using those. To reap the benefits of the fix (using<EMAIL_ADDRESS>+ logging + highlight) without having to update protractor to the unreleased version here's a hack that allows for running tests with blocking proxy (package.json):
	"scripts": {
		"postinstall": "rpm run blocking-proxy-hack",
		"postupdate": "rpm run blocking-proxy-hack",
		"blocking-proxy-hack": "rimraf node_modules/protractor/node_modules/blocking-proxy"
	},
	"dependencies": {
		"blocking-proxy": "^1.0.1",
		"protractor": "5.2.0",
		"selenium-webdriver": "^3.6.0"
	},
	"devDependencies": {
		"rimraf": "2.6.2"
	}

The way this works is that it installs the new blocking-proxy and it forces the old version to be moved inside protractor's node_modules. Using this information we can rm -rf that folder to in turn force protractor to use the version specified in dependencies.
There might be a better way, I'm open to suggestions.


Add support for VS2022

Added support for VS2022 following the guide from here:
https://docs.microsoft.com/en-us/visualstudio/extensibility/migration/samples?view=vs-2022

Thanks again for your effort, the vsix now avaiable on https://marketplace.visualstudio.com/items?itemName=Heku.EditProject2022

That's what I call for agile development!
сб, 30 окт. 2021 г., 14:13 Heku @.***>:

Thanks again for your effort, the vsix now avaiable on
https://marketplace.visualstudio.com/items?itemName=Heku.EditProject2022
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/heku/Kool.EditProject/pull/4#issuecomment-955199524,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADSJJ7PTCB4VN2G44VSNDYDUJPOOLANCNFSM5GZ6BJWQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


2.0.2 Padding bottom on labels and badges

Example: http://i.imgur.com/0k0Bq.png
There is more padding bottom than padding top in labels and badges which results in no space between them when using them below and above which could be common in text like the example above.  It oculd be fixed by increasing the line height of the label and badge but I dont just want to make a pull request that does that since it affects the whole text line height and typography of bootstrap.
Whats the reason there is more padding in the bottom than the top on the labels?

Helvetica Neue Bold moves the text down 1px in certain browsers. We use that uneven padding to try to offset that.

I see. I dont have any good ideas on how to solve it :/

Well not everybody uses Helvetica Neue.

Well, it's the default font of bootstrap and it would be wierd to not support the defaults.

It may be the default Bootstrap font but it's not a web-safe font. As far as I know, it is indeed present on all Mac systems, but not Windows nor Linux-based systems/

I think its a separate discussion, whatever the default font of bootstrap should be.
But as an effect of the current default font stacked labels melt together which is what this issue is about.

No no I'm not discussing the default bootstrap font, I mean that's what fallbacks are for. I'm just saying, if the padding of a block needs to be set according to a font, better be a font that is actually present on 75% of the computers.

Resolved in 2.0.2-wip.
I removed 2px of padding from the badges and labels; previous padding was computing to 20px tall components, but given we have an 18px line-height, they were bleeding into each other.
The font and uneven padding on top/bottom is another issue that we'll monitor moving forward.