How to change VM sizes of agents in Azure

Is this a request for help?:
yes
Is this an ISSUE or FEATURE REQUEST? (choose one):
issue
What version of acs-engine?:
v0.11

Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm)
Kubernetes 1.7.2
What happened:
Nothing yet.  I want to replace the Azure VM sizes of my k8s agent nodes from basic D-series to larger Dv3-series on a k8s cluster running production workloads.  How can I accomplish this task without completely rebuilding the cluster?
What you expected to happen:
I want to change the Azure VM size of my k8s agent nodes with a simple command and perhaps some manual config file changes.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:

I think this is a duplicate of #1370

This ticket is a partial duplicate of #1370.  The workaround described in #1370 is limited.  With this approach, I cannot use my desired VM size.  I am limited to which VM sizes I can use based on the VM size that is currently running in the agent pool.
The approach described here in #2076 should enables me to create an entirely new agent pool so I can use any size VM I desire.  The problem with this approach is that I cannot decommission the original (now containing undesirable VM size) agent pool.  I opened #2278 to address this problem.

This issue is covered by #1370 and #2278.


Binance - getOpenOrders without currency pair is supported by API but unsupported by XChange

Currently BinanceTradeService.java for getOpenOrders() throws an ExchangeException stating CurrencyPair is needed; however this is supported by their API at https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md under /api/v3/openOrders
(it assesses a larger rate limit penalty but should still be accessible)

completed


TypeError: init() got an unexpected keyword argument 'prefix'

Hi there,
I tried to create a sample code from the documentation. However it throws a type error.
Please find my code and other details below.
Code:
from pydantic import BaseModel
from fastapi import FastAPI
from fastapi_crudrouter import MemoryCRUDRouter as CRUDRouter

class Car(BaseModel):

    name: str
    year: int
    make: str

app = FastAPI()
app.include_router(CRUDRouter(schema=Car))

When I try to execute this, I get the following error.
Traceback (most recent call last):
  File "/home/dineshkumarkb/MyGitHub/MyPractice/Python/fastapi/autogenerate.py", line 13, in <module>
    app.include_router(CRUDRouter(Car))
  File "/home/dineshkumarkb/.local/lib/python3.8/site-packages/fastapi_crudrouter/core/mem.py", line 11, in __init__
    super(MemoryCRUDRouter, self).__init__(schema, *args, **kwargs)
  File "/home/dineshkumarkb/.local/lib/python3.8/site-packages/fastapi_crudrouter/core/_base.py", line 35, in __init__
    super().__init__(prefix=prefix, tags=[prefix.strip('/').capitalize()], *args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'prefix'

Am I missing something?
Python version : 3.8.5
OS : Ubuntu 20.04

Hi there thanks for the feedback! I tested this with fastapi version 0.62.0+ and it worked. It seems prefix was a new feature in v.0.62 so that likely your issue. What version were you using?
Release notes: https://fastapi.tiangolo.com/release-notes/#0620
I am looking a workarounds for older versions of fastapi.

Thanks @dineshkumarkb!


Introduce a managed installation of Nix

Issue description
curl https://nixos.org/nix/install | sh is not ready for general usage.
A user tried to run this script on his MBP and it locked up his machine. After a reboot running it again, results in the user being required to do manual work (looking at /etc/profile for example) with a message that an issue could be opened on GitHub.
Another usability problem is that no remaining time is displayed.
This provides damage to the Nix brand, particularly, because there is no inverse operation available. In the words of the user "It created a mess". Whether this is true or not is not relevant. Fact is, that it did cost time and thus money.
curl https://nixos.org/nix/uninstall | sh.
To summarize, we need two API calls. One to install Nix, one to remove Nix. Reinstalling Nix by calling the install Nix API should always result in installation if a user hasn't modified their file in between the two attempts to install Nix. Any other solution cannot be used as a management solution.
Just having one script which also takes an uninstall option would also be an option. Not requiring sudo access would be even better, if that's at all possible.
Technical details
MacOS Sierra 10.13.1

Thanks for the reporting, but this is the wrong issue tracker. Please have a look at https://github.com/NixOS/nix.


Open Wordnet Documentation website redesign

Change the existing design

Old Design

New Design

I would need your comment on the designs before I commence work.

I would prefer a clear separation between relations. Maybe put each one in
a box with borders?
On Thu, 5 Nov 2020 at 20:31 Glory Agatevure<EMAIL_ADDRESS>wrote:

I would need your comment on the designs before I commence work.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/globalwordnet/gwadoc/issues/62#issuecomment-722704905,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAVDAZDZERB6VF3SWCJCO3SOMYVZANCNFSM4TL7Z37Q
.

--
Alexandre Rademaker
http://arademaker.github.com/
http://researcher.ibm.com/person/br-alexrad

I like the second design better.
For the current design, if the fontsize is too big, it starts to
dissappear off the screen.  Could you please do a little testing to make
sure the interface still works at large and small sizes?
On Fri, Nov 6, 2020 at 7:46 AM Glory Agatevure<EMAIL_ADDRESS>wrote:

I would need your comment on the designs before I commence work.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/globalwordnet/gwadoc/issues/62#issuecomment-722704905,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIPZRWEGK6QV2EZVL3J2MDSOMYVZANCNFSM4TL7Z37Q
.

--
Francis Bond http://www3.ntu.edu.sg/home/fcbond/
Division of Linguistics and Multilingual Studies
Nanyang Technological University


“flutter doctor“ output shows unreadable codes

on Windows7:

on secureCRT terminal connecting to macOS:

however, everything is OK in macOS GUI terminal:

I'm using windows 7 chinese edition:

macOS version:

I've found the reason：

if I select truetype font, the output is normal, but if I select bitmap font, then the output has unreadable codes.

@heroqin
Can you confirm if this is still an issue using latest stable version of the framework. The framework has added considerable support for windows platform since this issue was filed.


Update to point at new Invoke-Mimikatz

ONLY after the cme-powershell-scripts submodule is updated!!
edit:  should have linked to what im talking about
The PR https://github.com/byt3bl33d3r/CME-PowerShell-Scripts/pull/2, needs to be accepted first, then this PR will update the submodule pointing there and call invoke-mimikatz from that repo.
this will make cme great again

Nice catch, whats the easiest way to do this?

@bucky67gto maybe just cloning my fork for now.
Its not to difficult If you wanted to fix this version though, you need to first put a new invoke-mimikatz into the cme-powershell-scripts folder, then modify the line I changed in this commit to point to that invoke-mimikatz, and then rerun ./setup install to build it again.

Thanks.....will give it a try.

OK...Still noobing out here.  How can I update the cme-powershell-scripts submodule?  I would assume that is where there is no cme-powershell-scripts folder..
thanks

@bucky67gto the cme_powershell_scripts (sorry its underscores not dashes if you were looking) is in data, probably something like this on your machine  /cme/data/cme_powershell_scripts
So you will put an Invoke-Mimikatz.ps1 in there, then modify  /cme/modules/mimikatz.py (line 28)
from
self.ps_script = obfs_ps_script('powersploit/Exfiltration/Invoke-Mimikatz.ps1')
to
self.ps_script = obfs_ps_script('cme_powershell_scripts/Invoke-Mimikatz.ps1')
You can verify it worked by doing a ./setup install again from the root cme folder. Then look in the build directory to see if the mimikatz file showed up.
It depends on the arch for exactly what it's called, but mine for instance is located at
/CrackMapExec/build/lib.linux-x86_64-2.7/cme/data/cme_powershell_scripts/ [invoke-mimikatz is in here now ]

Thanks...I appreciate all the help.  I have the Kali installed, so it is a bit different.  Things seem to be in the right place, but still just waiting on host.....

.....any thoughts on how to rerun the setup for the one installed in Kali? - yep....still noobing on ya,


[WIP] Add resources API

Awaiting image of the Resources API container to be added to DockerHub. Other than that, ready for review. Fixes #68

I'm not sure the application has things configured for nginx yet. Need to look into that.

@ohaiwalt Do you happen to know if the application needs any specific configuration for nginx, or do you think that the config change would probably need to happen within nginx itself?

@ohaiwalt Do you happen to know if the application needs any specific configuration for nginx, or do you think that the config change would probably need to happen within nginx itself?

Not sure I understand the question fully.
If you're running an nginx instance in your pod, the configuration of that nginx will need to be able to a) accept HTTP connections and b) know how to serve your code. That may involve a wsgi server or somesuch, but would have to dig into that further.
How is that related to this diff in your mind?

Also, could you rebase from master?

Rebased from master. We should be good to go 😄 👍

Not sure I understand the question fully.
If you're running an nginx instance in your pod, the configuration of that nginx will need to be able to a) accept HTTP connections and b) know how to serve your code. That may involve a wsgi server or somesuch, but would have to dig into that further.
How is that related to this diff in your mind?

I don't think we even need nginx per se, but I was asking based on @wimo7083's comment about not having things configured for nginx. I think Rails uses nginx by default, so there's no additional configuration that needs to be done. When Will made his comment, I googled to find out, and I came across this article. After reading through it, it seemed that if you want to use Flask+Nginx you just need to configure nginx, not flask.
I'm not really sure how all of it works, so if you don't think it's something we need to worry about, I'm not going to worry about it at this stage

Ignore my question about nginx, I was conflating some docker things in the pybot/ pyback repos and how he uses them.

Went ahead and created a secrets store for both staging and prod in the namespace operationcode and operationcode-staging with the metadata name of resources-api-secrets
put in three generic values for postgres_password, postgres_user, postgrest_db encoded as base64.
Used the methods described here : https://kubernetes.io/docs/concepts/configuration/secret/
The values are from:
C:\Users\wimo7\Desktop> echo 'EMPTY' | openssl base64
RU1QVFkNCg==

apiVersion: v1
data:
postgres_password: RU1QVFkNCg==
postgres_user: RU1QVFkNCg==
postgres_db: RU1QVFkNCg==
kind: Secret
metadata:
name: resources-api-secrets
namespace: operationcode-staging
selfLink: /api/v1/namespaces/operationcode-staging/secrets/resources-api-secrets
type: Opaque

Going to look into creating an RDS instance for both prod and staging.


Can´t add it to a Multiple Action button on Stream Deck

Hi!
I can´t add a multiple action button which change scene and apply an effect on my cam :(

Can someone help me? Thankyou!

Had the same problem and figured out you can simply edit C:\Users\<user>\AppData\Roaming\Elgato\StreamDeck\Plugins\com.zaphop.nvidiabroadcast.sdPlugin\manifest.json and set SupportedInMultiActions to true and restart Stream Deck. Then it just works. Maybe there is a specific reason why the dev disabled it, or it's just an oversight.


Replace fabsf with ABS macro to avoid warnings

There's currently 3 warnings in this library. 2 are because of the use of fabsf which is only correct when CGFloat is an alias for floats. Because this isn't always the case (64bit/32bit) it's giving 2 warnings.
If you replace the fabsf with the ABS macro, 2 warnings go away:
BOOL hasContentSize = fabsf(self.originalSize.width) > 0 && fabsf(self.originalSize.height) > 0;

BOOL hasContentSize = ABS(self.originalSize.width) > 0 && ABS(self.originalSize.height) > 0;

Makes sense, please PR!

I've made a pull request here https://github.com/neilang/NAMapKit/pull/50


add switch.mqtt_template

Description:
My usecase is simple: I want to be able to send a custom/templated on/off payload to a MQTT switch, based on another sensor.
The swtich.mqtt_template platform in this PR, similar to light.mqtt_template allows just that.
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#5139
Example entry for configuration.yaml (if applicable):
switch:
  - platform: mqtt_template
    command_topic: "home/bedroom/switch1/set"
    payload_on_template: "on,{{ states.sensor.duration_1.state }}"
    payload_off_template: "off"

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.github.io#5139

If the code communicates with devices, web services, or third-party tools:

[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[x] Tests have been added to verify that the new code works.

Hi @natiz,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

A switch can only be on or off and doesn't have various states it can be in. Sending a payload "on,{{ states.sensor.duration_1.state }}" will assume that the switch was programmed with additional logic and that you move the automation from Home Assistant to the device.
I don't think that we should add this platform because you can send any kind of weird MQTT message with the mqtt notification platform already (no feedback though, like in this PR which doesn't implement state_template or state_value_template) and it looks pretty much like a corner case. If there is a specific device available (after a quick search I haven't found one, no mentioning in the Docs PR or an implementation for Arduino and ESP8266/ESP32) then the platform should focus on that device and named accordingly.

Thanks for looking into this, @fabaff.
While this might be a corner case, I don't see the harm in allowing some extensibility to the mqtt switch platform. In my personal opinion - every 'payload' should be allowed to be templated.
As for my use case, I'm using an ESP8266/NodeMCU to set up irrigation sprinklers, in which to keep things simple and minimal only has on/off and a state topic. All I need is to give the 'on' payload some flow volume, or whether or not to ignore moisture sensor). While these can be set using another topic, its much easier just providing them in the 'on' payload, based on another state/configuration.
In anyway, feel free to close this one if you don't feel its suitable for the platform, I'll be more than happy to use it as a custom component on my HASS :)

I'm with @fabaff, too much of a corner case. Let's close it.


MINIFICPP-1978 - Flush MergeContent bundles when its size would grow beyond max group size

Thank you for submitting a contribution to Apache NiFi - MiNiFi C++.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[ ] Does your PR title start with MINIFICPP-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[ ] Has your PR been rebased against the latest commit within the target branch (typically main)?

[ ] Is your initial contribution a single, squashed commit?

For code changes:

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file?
[ ] If applicable, have you updated the NOTICE file?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check GitHub Actions CI results for build issues and submit an update to your PR as soon as possible.

Could you please update BinFiles documentation in PROCESSORS.md? To me it is not clear what this Processor is doing, and it could also be confusing for end users. Currently description is: "Bins flow files into buckets based on the number of entries or size of entries". I don't understand the following verbs and nouns in this context : "bins", "buckets", "entries". Please add some more explanation. Property description should also be updated, for example format is missing for Max Bin Age.

Could you please update BinFiles documentation in PROCESSORS.md? To me it is not clear what this Processor is doing, and it could also be confusing for end users. Currently description is: "Bins flow files into buckets based on the number of entries or size of entries". I don't understand the following verbs and nouns in this context : "bins", "buckets", "entries". Please add some more explanation. Property description should also be updated, for example format is missing for Max Bin Age.

definitely something we should address, created a ticket for it: https://issues.apache.org/jira/browse/MINIFICPP-1982


Ability to remove a trustline

Remove the trustline: 065770a5c95665d68a397bb677a904771d63359c [065770a]
TODO: remove the asset from the asset list of the account without restarting the app


Use correct padding for all responsive SLC

Update main to use correct item types

https://github.com/google/horologist/pull/2340


Comment and Reaction Notifications

Issue: I did not receive notifications on comments and reactions on my posts.
Steps to Reproduce:

Post content on the Joyboy application.
Have someone comment and react on the post.
Observe the absence of notifications for the comment.

Hi, notification is not going to implemented yet unfortunately.


Update bootstrap to 4.5.0

Updates org.webjars:bootstrap from 4.3.1 to 4.5.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.webjars", artifactId = "bootstrap" } ]

labels: library-update, semver-minor

Superseded by #207.

Superseded by #207.


qt5.11.1 is broken on macOS with 10.10 SDK

Issue description
It looks like Qt has broken support for SDK 10.10 in their latest release. Here is the log:
https://hydra.nixos.org/build/77013683
Any ideas on how we can fix this?

#43290 fixes this.

We should probably keep this open tho, we can't keep using https://github.com/NixOS/nixpkgs/commit/4ed62d6b881241c3d0ed6ad62b0c0514734661bf.


Continuous repairing over the same sqaure

What
The current state of the lib does not take into account a use case where the user executes RepairExtendedSqaure multiple times over the same data square slice. In such case, rsmt2d fills with zeroes all the nill shares/chunks that are hashed on the subsequent repair preventing sanity check to pass.
Why
This is useful for repairing retries as new data comes from the network without doing additional copies of the square.
How
As per @adlerjohn, the original intent to fill nil shares/chunks with zeroes was to match the library interface of the underlying codec implementations. However, we have codec wrappers/facades for each codec implementation that should independently adapt to the library interface without forcing the higher-level abstracted rsmt2d logic to match low-level APIs.
TODO

[ ] Change Codec interface contract to always accept nil shares instead of zeroed shares
[ ] Investigate codec implementation libraries and their API codec; Find the difference and define which are different from the contract above
[ ] Update local Codec implementation facades to match the contract above by adapting it to the underlying libraries API.

Decision:

use nils in RepairExtendedDataSquare and move the usage of zeroes to the specific codec impl when needed
this essentially makes the BitMask implementation and its usage obsolete


PyPi: Keras Description

Hi @fchollet , I think the recent PyPi redesign has nuked the description of Keras, you might want to re-add that:
https://pypi.org/project/Keras/

Indeed, noticed this last week when I uploaded Keras 2.1.6. I will take care of it.

Specifically, we will fix it with the next release.


Dependent modules are not automatically getting installed

WIth v1.3 when I was using RequiredModules.RequiredModules if a user did Install-Module F7History the dependent module Microsoft.PowerTools.ConsoleGuiTools was installed. PS Gallery showed:

Now, with v1.4.x this is not working.  Users get:
> install-module f7history -Repository PSGallery
WARNING: The externally managed, dependent module 'Microsoft.PowerShell.ConsoleGuiTools' is not installed on this computer. To use the current module 'F7History', ensure that its dependent module 'Microsoft.PowerShell.ConsoleGuiTools' is installed.

PS Gallery shows:

@RH-TLagrone, is there some way to make RequiredModules both not require a specific version AND auto-install dependent modules?
# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(@{ModuleName = 'PSReadline'; ModuleVersion = '2.1'; },
               @{ModuleName = 'Microsoft.PowerShell.ConsoleGuiTools'; ModuleVersion = '<IP_ADDRESS>'; })

Yes. Basically:
Change this...
RequiredModules = @(
  @{ModuleName='PSReadLine'; ModuleVerison='2.1'}
  @{ModuleName='Microsoft.PowerShell.ConsoleGuiTools'; ModuleVersion='<IP_ADDRESS>'}
)

...into this:
RequiredModules = @(
  'PSReadLine'
  'Microsoft.PowerShell.ConsoleGuiTools'
)

...also, you probably want to wholly remove the PrivateData.PSData.ExternalModuleDependencies field since it has incompatible semantics with the RequiredModules field. (I'm not sure if actually affects publication/installation, but better safe than sorry. Besides, it's not what you want to use for F7History anyway.)

...for the details of my gruesome troubleshooting that led me to this solution, see my commit message body for https://github.com/gui-cs/F7History/pull/20/commits/3b6b0fd2f63e68c2620093d2fe5e574761279f7a

P.S. You should also wholly remove the PrivateData.PSData.ExternalModuleDependencies field since it has incompatible semantics with the RequiredModules field. (I'm not sure if actually affects publication/installation behavior in PowerShellGet, but better safe than sorry. Besides, it's not the appropriate field to use given how you've defined F7History's dependencies anyway.)

Hmmm... Removing that makes Publish-Module -Path $ModulePath -Repository 'local' -ErrorAction Stop fail in my build script.
Publish-PSArtifactUtility: PowerShellGet cannot resolve the module dependency 'PSReadline' of the module 'F7History' on the repository 'local'. Verify that
the dependent module 'PSReadline' is available in the repository 'local'. If this dependent module 'PSReadline' is managed
externally, add it to the ExternalModuleDependencies entry in the PSData section of the module manifest.

Either you need to pre-download the dependencies from PSGallery and include them in your "Local" repository when publishing F7History to it... or you need a different testing environment architecture that isn't dependent on Local vs. PSGallery repo differences.


Bump node-sass to fix build dependency error

Upgrades node-sass to fix a c++ compiler error
OS: OSX 10.14.5
npm: 6.11.3
node: v12.11.1
In file included from ../src/binding.cpp:1:
In file included from ../../nan/nan.h:223:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:356:37: error: too few arguments to function call, expected 2, have 1
  return v8::StringObject::New(value).As<v8::StringObject>();
         ~~~~~~~~~~~~~~~~~~~~~      ^
/Users/sundbry/.node-gyp/12.11.1/include/node/v8.h:5426:3: note: 'New' declared here
  static Local<Value> New(Isolate* isolate, Local<String> value);
  ^
In file included from ../src/binding.cpp:1:
In file included from ../../nan/nan.h:223:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:356:58: error: expected '(' for function-style cast or type construction
  return v8::StringObject::New(value).As<v8::StringObject>();
                                         ~~~~~~~~~~~~~~~~^
../../nan/nan_implementation_12_inl.h:356:60: error: expected expression
  return v8::StringObject::New(value).As<v8::StringObject>();
                                                           ^
In file included from ../src/binding.cpp:1:
In file included from ../../nan/nan.h:2722:
../../nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    assert(persistent().IsNearDeath());
           ~~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
In file included from ../src/binding.cpp:1:
In file included from ../../nan/nan.h:2722:
../../nan/nan_object_wrap.h:127:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    assert(wrap->handle_.IsNearDeath());
           ~~~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
2 warnings and 5 errors generated.
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/sundbry/projects/shins/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/Cellar/node/12.11.1/bin/node" "/Users/sundbry/projects/shins/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/sundbry/projects/shins/node_modules/node-sass
gyp ERR! node -v v12.11.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Thanks for the PR. I generally don't merge outside changes to package-lock.json simply because they are very hard to review from a security perspective. I've updated the dependency locally and will shortly cut a new release.


[HUDI-1453]Fix NPE using HoodieFlinkStreamer to etl data from kafka t…

…o hudi
Tips

Thank you very much for contributing to Apache Hudi.
Please review https://hudi.apache.org/contributing.html before opening a pull request.

What is the purpose of the pull request
Fix NPE when no new data in kafka using HoodieDeltaStreamer
java.lang.NullPointerException: Keyed state can only be used on a 'keyed stream', i.e., after a 'keyBy()' operation.
    at org.apache.flink.util.Preconditions.checkNotNull(Preconditions.java:75)
    at org.apache.flink.streaming.api.operators.StreamingRuntimeContext.checkPreconditionsAndGetKeyedStateStore(StreamingRuntimeContext.java:223)
    at org.apache.flink.streaming.api.operators.StreamingRuntimeContext.getMapState(StreamingRuntimeContext.java:216)
    at org.apache.hudi.index.state.FlinkInMemoryStateIndex.<init>(FlinkInMemoryStateIndex.java:58)
    at org.apache.hudi.index.FlinkHoodieIndex.createIndex(FlinkHoodieIndex.java:61)
    at org.apache.hudi.client.HoodieFlinkWriteClient.createIndex(HoodieFlinkWriteClient.java:75)
    at org.apache.hudi.client.AbstractHoodieWriteClient.<init>(AbstractHoodieWriteClient.java:136)
    at org.apache.hudi.client.AbstractHoodieWriteClient.<init>(AbstractHoodieWriteClient.java:120)
    at org.apache.hudi.client.HoodieFlinkWriteClient.<init>(HoodieFlinkWriteClient.java:62)
    at org.apache.hudi.operator.InstantGenerateOperator.open(InstantGenerateOperator.java:115)
    at org.apache.flink.streaming.runtime.tasks.OperatorChain.initializeStateAndOpenOperators(OperatorChain.java:291)
    at org.apache.flink.streaming.runtime.tasks.StreamTask.lambda$beforeInvoke$0(StreamTask.java:479)
    at org.apache.flink.streaming.runtime.tasks.StreamTaskActionExecutor$1.runThrowing(StreamTaskActionExecutor.java:47)
    at org.apache.flink.streaming.runtime.tasks.StreamTask.beforeInvoke(StreamTask.java:475)
    at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:528)
    at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:721)
    at org.apache.flink.runtime.taskmanager.Task.run(Task.java:546)
    at java.lang.Thread.run(Thread.java:748)

Brief change log
(for example:)

Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@yanghua please take a look when free

@yanghua please take a look when free

Codecov Report

Merging #2474 (aaa1201) into master (048633d) will increase coverage by 19.25%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master    #2474       +/-   ##
=============================================
+ Coverage     50.17%   69.43%   +19.25%
+ Complexity     3050      357     -2693
=============================================
  Files           419       53      -366
  Lines         18931     1930    -17001
  Branches       1948      230     -1718
=============================================
- Hits           9498     1340     -8158
+ Misses         8657      456     -8201
+ Partials        776      134      -642

Flag
Coverage Δ
Complexity Δ

hudicli
?
?

hudiclient
?
?

hudicommon
?
?

hudiflink
?
?

hudihadoopmr
?
?

hudisparkdatasource
?
?

hudisync
?
?

huditimelineservice
?
?

hudiutilities
69.43% <ø> (ø)
0.00 <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ
Complexity Δ

...ache/hudi/common/util/collection/DiskBasedMap.java

.../hudi/internal/HoodieDataSourceInternalWriter.java

...e/hudi/common/table/timeline/dto/FileSliceDTO.java

.../hadoop/utils/HoodieRealtimeRecordReaderUtils.java

...rg/apache/hudi/hadoop/HoodieROTablePathFilter.java

.../common/util/queue/FunctionBasedQueueProducer.java

...n/java/org/apache/hudi/cli/HoodieSplashScreen.java

...he/hudi/metadata/HoodieMetadataFileSystemView.java

...rg/apache/hudi/common/model/HoodieAvroPayload.java

.../main/scala/org/apache/hudi/HoodieSparkUtils.scala

... and 355 more

Codecov Report

Merging #2474 (aaa1201) into master (048633d) will increase coverage by 19.25%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master    #2474       +/-   ##
=============================================
+ Coverage     50.17%   69.43%   +19.25%
+ Complexity     3050      357     -2693
=============================================
  Files           419       53      -366
  Lines         18931     1930    -17001
  Branches       1948      230     -1718
=============================================
- Hits           9498     1340     -8158
+ Misses         8657      456     -8201
+ Partials        776      134      -642

Flag
Coverage Δ
Complexity Δ

hudicli
?
?

hudiclient
?
?

hudicommon
?
?

hudiflink
?
?

hudihadoopmr
?
?

hudisparkdatasource
?
?

hudisync
?
?

huditimelineservice
?
?

hudiutilities
69.43% <ø> (ø)
0.00 <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ
Complexity Δ

...ache/hudi/common/util/collection/DiskBasedMap.java

.../hudi/internal/HoodieDataSourceInternalWriter.java

...e/hudi/common/table/timeline/dto/FileSliceDTO.java

.../hadoop/utils/HoodieRealtimeRecordReaderUtils.java

...rg/apache/hudi/hadoop/HoodieROTablePathFilter.java

.../common/util/queue/FunctionBasedQueueProducer.java

...n/java/org/apache/hudi/cli/HoodieSplashScreen.java

...he/hudi/metadata/HoodieMetadataFileSystemView.java

...rg/apache/hudi/common/model/HoodieAvroPayload.java

.../main/scala/org/apache/hudi/HoodieSparkUtils.scala

... and 355 more

@wangxianghu looks like the JIRA ticket number of this commit is inaccurate

@wangxianghu looks like the JIRA ticket number of this commit is inaccurate

yes, should be 1543


VFS

LiteFS should work as a SQLite VFS so that non-Linux users and users who don't like FUSE can also run it.

I would really love for this to work with Deno. Is a vfs pretty much going to have to be rust?

That's a good point, the performance overhead calling Go to C is high, and C to Go is incredibly high.

I would really love for this to work with Deno. Is a vfs pretty much going to have to be rust?

@mrkurt I was thinking that the WASM version would have more limited functionality since a lot of those runtimes don't have a persistent disk so they'll probably just act as a thin client to a separate storage service. If that's the case, then we're stripping out a lot so I'm actually leaning towards making that client in TypeScript instead of Rust.

What's the current status of VFS support?


Dots output during Smith-Waterman alignments

Expected Behavior
The align command behaves as expected, I would just like to know the quantitative meaning of the dots which are output during the alignment phase, ie is it one dot per 10k queries or something like this, so that I can get an idea of how much longer this phase will require (or if I should kill the job and re-run with lower number of alignments)
Current Behavior
Dots are output at an unkown rate...
Steps to Reproduce (for bugs)
mmseqs search [...] -a true
MMseqs Output (for bugs)
[...]
No preload                      false
Early exit                      false
Threads                         12
Verbosity                       3

Init data structures...
Using 12 threads.
Compute score, coverage and sequence id.
Calculation of Smith-Waterman alignments.
.............

Many thanks!

Every 10000 it prints one dot. Every 1000000 a new line.
Also please do not add a true/false after switch parameters like -a. It switches the behavior from the default around and does not take parameters.

Perfect, it means I'm nearly there :)
Thanks for the switch correction too!

Glad to help!


Docs review

Review of docs from marketing perspective.

Thank you! Changes are now merged into the development branch. I had to split the changes up into the different subtrees though, to merge it in the relevant version dev-branches. This is why I close this PR now 🙂


[Question - Guide]How to develop an extension for VOID ?

Is there any known guide on how to develop an extension for VOID ?
I'd like to add an AI model into the model selection (MISTRAL)
Allowing to the Mistral API Guide, I should be able to use OpenAPI AI spec
But there is also a lot more things I might be able to do.
How to implement a new AI model and its own specificity ?

Great question - is there more you'd like to configure in the openaiCompatible setting than the options we currently offer?

We'd like to eventually add an extensions API for models and for UI (e.g. the streaming UI we built with accept|reject sections). Adding Mistral should be possible with Void as-is, though.

Would you leverage the new AI extension apis that VS Code supports for AI models?

@andrewpareles :
Actually, void is a vscode fork, so allowing an extension to change things, inside the code, is like the same problem you had :  you had to allow code changes from ai.
The main void goal is to develop an opensource marketplace for AI builder, This is really an ambitious problematic, because for each extension loaded, it is like building a new void fork for each person. Void Startup problem solved.
All the languages models actually in the void editor are actually American, and you are advertising theses models by naming them.
I want to be able to add an extension for mistral.
I actually to build the Mistral - Codestral implementation - extension for void - this is a French startup who is trying to be as French as possible, so no compromise will be possible.
Mistral is fighting against Google, OpenAI, and other LLMs companies.
This is actually possible to duplicate the openAPI spec, and add Mistral like the gemini implementations was done.
But the model is also capable of doing a lot more stuff.
But we all know that every person in the world, will want to build is own fined tuned language model in a nearby future.
So let's build the editor who can support it ;)

Would you leverage the new AI extension apis that VS Code supports for AI models?

I don't think so, at least for now. We've been building our own UI and didn't love the feel of vscode's api when we played around with it. Are there specific pieces of UI you think we should look into?

Would you leverage the new AI extension apis that VS Code supports for AI models?

Thanks for asking, @eamodio - big fan of GitLens. Vscode's extension api felt a little foreign when we played around with it, so I'm not sure if we'll use it in the near term. Are there specific pieces of UI you think we should look into?

Great question - is there more you'd like to configure in the openaiCompatible setting than the options we currently offer?

@andrewpareles : let me try to build the Mistral extension. I donc like to have an "openAI" compatible settings, because we might have multiple openAi compatibles "providers". That we might want to switch regarding the complexity of the question, the API Cost, an even more.
Some settings should be persistent, and duplicable.

It's important to have an openai-compatible provider, but we might just add it under openai by adding a baseUrl option. Happy to review Mistral when you're done!


Alternative formula constructions

Sometimes %{cf_id} construction don't works because we don't have
control over the field contents. A custom field can be empty or
even a value that lead us to invalid Ruby syntax.
The solution here just make available a local cfs array with custom
fields values. So, instead of %{cf_1} we can use cfs[1], it is very
useful when we have things like "%{cf_1} * %{cf_2}" that can be
translated to " * %{cf_2}" and trow a Ruby systax error, now we can
just user "cfs[1] * cfs[2]" or even "cfs[1].to_f * cfs[2].to_f"
without worry about empty values.
Note that old behavior still works and is used by default when we
double-click on an item in the list of available fields.

Don't know really if that pull request will be accepted but it fixed a lot of problems I had with my formulas. Looks at this example:
"%{cf_12}".to_f != 0 && "%{cf_13}".to_f != 0 ? "%{cf_12}".to_f * "%{cf_13}".to_f : 0

What I really need was just:
%{cf_12} * %{cf_13}

But if I have an empty value for fields 12 or 13 it just causes a syntax error in Ruby because formula can be translate to things like " * 34", "23 *" or even " * " only. Now we can just use:
cfs[12] * cfs[13]

We really reduced complexity of our formulas using this alternative syntax.

Another good example of how useful is this alternative syntax is string length:
"%cf_24".length

I need to use quotes (") to prevent error when field is empty because it gets translated to " .length" after substitution. Theres also problems when filed contains quotes (") because they close previous quote and lead us (again) to syntax error. Now we can just use:
cfs[24].to_s.length

Even if field is empty, cfs[24] just return nil that is been converted to "" by to_s and returns 0 (zero) by length method. Zero is the correct return value for this formula.
Anyway, theres a lot of cases (I can give you more examples if you want) where this alternative syntax is much better, I could say that it can be even the default syntax but I am not sure that you will accept it as a default syntax (produced by js script on double-click and showed on documentation).

Hi. Thank you for your interest. Your position is reasonable. There are some problems in the default syntax. Later I will be refactor my code and I will try your solution.
I'll let you know.
Thanks.

Hi. I have released a new version of the plugin. Check out the README.md for more information. You can find more details about changes between versions in CHANGELOG.md
I've decided to use new formula constructions cfs[cf_id]. Thank you for the idea.

Thank you. I think we can close this.


PlainEditor: make relayout lazy

Rather than eagerly rebuilding the layout when some change invalidates it we should consider setting a dirty flag and relayout lazily when we require an accurate layout.
This would allow multiple changes to be applied without rebuilding the layout multiple times.

Sure, this is sort of happening right now, but it's not rigorous so there might be some unnecessary layout. Layout is dirty for Selection construction (both index and point) when the buffer contents or width change.

Implemented in https://github.com/linebender/parley/pull/192


Failed: Update autorest version to prerelease 3.0.0-alpha.20241120.2

Generated by Autorest Regen Preview build 20241120.2Triggered from pull request: https://github.com/Azure/autorest.csharp/pull/5107

API change check
API changes are not detected in this pull request.


Request for training logs and detailed settings

Dear authors,
Recently I have been studying your paper and code, however, even with your proceesed dataset, I can not repeat your reported results in your paper. Take the HAR dataset as example, there comes the following issues.

When I choose the random_init training, the results(77.9) is much better than the scores you reported in Table 2(57.89±5.13).  I don't know what random seed you used in your paper, but for 5 seed i tested, they all higher than your report.

When I use only 5% of trainining data for supervised trainining, the accuracy  and macro F1(>0.89) is much higher than the reported scores Fig.2(MF1<0.55).  Below are the results for training with 5% training dataset (with batch size of 8).

All thereported results are hard to reproduce.

Hope you could share me your experiment setting and training logs to remove doubts.

logs_10_12_2024_07_00_53.log
run1_random_init_seed_0_classification_report.xlsx
logs_10_12_2024_07_07_03(supervised with 1% HAR dataset).log
logs_10_12_2024_07_21_37(supervised with 5% HAR dataset).log
run1_supervised_seed_0_classification_report(supervised with 1% HAR dataset).xlsx
run1_supervised_seed_0_classification_report(supervised with 5% HAR dataset).xlsx

Add this in dataloader/dataloder.py/Load_Dataset() function to obtain certain ratio of tainining samples.

Hi,
thanks for experimenting with our code. Unfortunately, I don't have the logs anymore.
But I recall using the same parameters as yours, maybe the dropout was 0.5, but everything is the same. I'm not sure why you can not reproduce the results.

Hi,
Thanks for your response. As the authors, reproducing your own code should not be difficult, I hope you take a little time to recall your parameter configuration, etc., and run the code again, which is crucial for the reliability of your work.

If needed, I can update my projects with logs to github, and i didn't make any changes to the core codes. It seems that even the Random Initialization and supervised results are not reliable, not to say other baselines.

logs_10_12_2024_07_00_53.log run1_random_init_seed_0_classification_report.xlsx logs_10_12_2024_07_07_03（1% HAR 数据集监督）.log logs_10_12_2024_07_21_37（5% HAR 数据集监督）.log run1_supervised_seed_0_classification_report（1% HAR 数据集监督）.xlsx run1_supervised_seed_0_classification_report（5% HAR 监督）数据集）.xlsx

hello BotMan-Sz, I mentioned that in your log you use 5% data to do supervised training. Now I'm confuse where I can adjust the persentage of data to do self-supervised training. Looking forward your reply!


code of Getting_Started does not compile

1.::exitApplication does not exist
2.signature of rememberWindowState(width = 300.dp, height = 300.dp) is wrong

works, had a wrong version

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


[E][BLEDevice.cpp:356] init(): esp_bt_controller_init: rc=259 on esp-idf with arduino core as component.

Hello,
I got this error when I try to run the arduino ble spp example.
I already was able to port an ESP32 Arduino project in esp-idf project with arduino core as component.
But the ble example fail with :
[E][BLEDevice.cpp:356] init(): esp_bt_controller_init: rc=259 Unknown ESP_ERR error.
All the story is here : https://github.com/espressif/arduino-esp32/issues/3436
Do you have an idea ?
Cause I relay dont know where to search.
Regards

[E][BLEDevice.cpp:356] init(): esp_bt_controller_init: rc=259 Unknown ESP_ERR error
Have you tried setting the ARDUINO_ARCH_ESP32?
Following suggestion from @h2zero I set the ARDUINO_ARCH_ESP32 and it worked for me.


Authentication and authorization implementation

Dear all,
what is the fast way to implement authentication and authorization (giving write access only to specific users) in stac-fastapi? Any suggestion?
Thank you very much.

We have a draft pr too in stac-fastapi-elasticsearch-opensearch for OAuth 2


how to use this tool?

you can make your own build by using igtools.cli.IGTools.java as main class.
Or, you can download a precompiled jar file (igtools.jar) here igtools.jar


esbuild: 0.13.10 -> 0.13.11

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/evanw/esbuild/releases.
meta.description for esbuild is: "An extremely fast JavaScript bundler"
meta.homepage for esbuild is: "https://esbuild.github.io"
meta.changelog for esbuild is: ""
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
/nix/store/w7ppq5ql52mfv2a3mk60cbn3a919z0y6-esbuild-0.13.11/bin/esbuild passed the binary check.
1 of 1 passed binary check by having a zero exit code.
1 of 1 passed binary check by having the new version present in output.
found 0.13.11 with grep in /nix/store/w7ppq5ql52mfv2a3mk60cbn3a919z0y6-esbuild-0.13.11
found 0.13.11 in filename of file in /nix/store/w7ppq5ql52mfv2a3mk60cbn3a919z0y6-esbuild-0.13.11

Rebuild report (if merged into master) (click to expand)

13 total rebuild path(s)

4 package rebuild(s)

4 x86_64-linux rebuild(s)
3 i686-linux rebuild(s)
3 x86_64-darwin rebuild(s)
3 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
deltachat-desktop
esbuild
peertube
vscode-extensions.matklad.rust-analyzer

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/w7ppq5ql52mfv2a3mk60cbn3a919z0y6-esbuild-0.13.11 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A esbuild https://github.com/r-ryantm/nixpkgs/archive/07f4d8f59ce7af1b726db03db5f88bae35eff88a.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/w7ppq5ql52mfv2a3mk60cbn3a919z0y6-esbuild-0.13.11
ls -la /nix/store/w7ppq5ql52mfv2a3mk60cbn3a919z0y6-esbuild-0.13.11/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package failed to build:

vscode-extensions.matklad.rust-analyzer

3 packages built:

deltachat-desktop
esbuild
peertube

Maintainer pings
cc @Lucus16 @kalbasit for testing.

Result of nixpkgs-review pr 143879 run on x86_64-darwin 1

1 package failed to build:

vscode-extensions.matklad.rust-analyzer

2 packages built:

deltachat-desktop
esbuild

The rust analyzer failure is unrelated. nothing of note in the release notes


Job status incorrect

It seems that tracking the status of jobs doesn't seem to be working for me. I've written the following to check the status every second:
Resque::enqueue('processqueue', 'ProcessMessage', $args);
$parsehost_token = Resque::enqueue('hostqueue', 'parseHost', $args, true);
while(!$done){
$status = new Resque_Job_Status($parsehost_token);
var_dump($status);
switch($status->get()){
case Resque_Job_Status::STATUS_WAITING:
echo "WAITING\n";
break;
case Resque_Job_Status::STATUS_RUNNING:
echo "RUNNING\n";
break;
case Resque_Job_Status::STATUS_FAILED:
$done = true;
break;
case Resque_Job_Status::STATUS_COMPLETE:
$done = true;
break;
}
sleep(1);
}
It keeps "RUNNING" forever, even when the script in the job exits with exit(0).
var_dump gives me the following:
object(Resque_Job_Status)#18 (2) {
["id":"Resque_Job_Status":private]=>
string(32) "a6289a79d5059f7e53f5a6a7e3a895d1"
["isTracking":"Resque_Job_Status":private]=>
NULL
}
So 'isTracking' is set to "false", even if i have enqueued the job with the 4th parameter set to "true"?
What am I not seeing here?

I've been having this same problem and resolved it by switching to the master release. After a lot of stabbing in the dark I noticed how outdated the v1.2 tag was so figured it was worth trying an update.
So, in composer.json:
"require": {
    "chrisboulton/php-resque": "dev-master"
}

I see this is old issue but perhaps that will help someone else who comes across the same problem.

I've been having this same problem and resolved it by switching to the master release. After a lot of stabbing in the dark I noticed how outdated the v1.2 tag was so figured it was worth trying an update.
So, in composer.json:
"require": {
    "chrisboulton/php-resque": "dev-master"
}

I see this is old issue but perhaps that will help someone else who comes across the same problem.

这个答案真的给我感动了  爱你哟


Copy signature when invoking copy line on a signature

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: latest
OS Version: all OS

Steps to Reproduce:

Open the qemu project using vscode
Randomly open a file and copy the function signature using outline (I want to copy multiple function signatures without this feature)
For a single function signature outline can be copied perfectly, for multi-line function signature copy can only copy the first line of function signature, for example

4.This is obviously a bug, and you should judge the part before the brace, not the first line.
5.Just now found a small bug, when copying the function signature, if there are Spaces in the header of the signature, we can delete the space before it, so this is also a bug

function signature using outline

I am unaware of a feature like this. How are you doing this? Please provide detail

Ctrl+c is copy line, nothing like copy signature is implemented but it sounds like a valid feature-request

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


[BUG] UNIX Time-Zone

Is the time-zone on OpenBullet locked? My timezone was like 12 for instance, and OpenBullet said the UNIX time was 5 hours ahead, is there anyway to set the timezone on OpenBullet? Thanks!

I believe OpenBullet uses DateTime instead of DateTimeOffset, which would lead the program to use your computer time. By quickly searching, I've found no way of modifying this else than editing the code itself, which you should be able to easily do in this case.


Tree-based approach for partial storage nodes network sharding and peer discovery

Partial storage nodes are nodes that only store some of the blocks in the blockchain, and can be queried by any other nodes (including light clients and other partial nodes) to download data from parts of the chain.
There's two main questions:

Granularity: How should the chain be sharded (e.g. per 1 block, 10 blocks, etc)?
Peer discovery: How peers associated with the shards be discovered?

I propose a method of answering the above, with a scalable "tree-based" approach.
Granularity
Let's assume a network-wide constant MIN_GRANULARITY = 1000 blocks where MIN_GRANULARITY is the minimum number of consecutive blocks you can advertise that you are storing to the network (which we call a "blockset"), and constant BASE = 10. We call a range of blocksets a "blockrange" (e.g. blockrange 0-10K consists of blocksets 0-1K, 0-2K, ..., 9K-10K). We can organise the blocksets into a directory structure, where each directory has BASE number of subdirectories (blockranges) or files (blocksets). Let's say there's 10 million blocks in the chain, the directory would look as follows:
0-10M/
├─ 0-1M/
│  ├─ 0-100K/
│  │  ├─ 0-10K/
│  │  │  ├─ 0-1K
│  │  │  ├─ 1K-2K
│  │  │  ├─ ...
│  │  │  ├─ 9K-10K
│  ├─ 100K-200K/
│  ├─ .../
│  ├─ 900K-1M/
├─ 1M-2M/
├─ .../
├─ 9M-10M/

Peer discovery
Subnet-based
Each subdirectories (blockranges) or files (blocksets) would be its own network topic. For example, a topic could be 0-10K (blockrange) or 0-1K (blockset). The network has the following interfaces:

GetPeers(topic) returns some IP addresses for peers that have advertised that they are serving the blockrange/set for topic.
Advertise(topic, ip) advertises that a node with IP address ip is serving the blockrange/set for topic.

The above operations might be expensive or time-consuming. Therefore, depending on how many blocks and blockranges there are in the network, partial storage nodes may only advertise up to a certain height of blockranges, and likewise clients querying the nodes might only try to get peers from a certain height of blockranges. Let's assume a client-side variable GRANULARITY, where GRANULARITY >= MIN_GRANULARITY, on both partial storage nodes and client nodes.
When a partial storage node wants to call Advertise() on blockranges that it's serving, it will only do so on blockranges that have a greater granularity than GRANULARITY. For example, if a partial storage node is serving blocks 0-1M, and GRANULARITY = 100,000, the it will call Advertise() on 0-1M, 0-100K, ..., 900K-1M, but not 0-10K, ..., 9K-10K, etc.
Similarly, if a client wants to download data in block 1500 for example, the deepest blockrange it would try to GetPeers() for is 0-100K. One can also construct different algorithms to find peers, using a top-to-bottom approach. For example, the client can first call GetPeers() on blocks 0-10M, but if no node is storing 10M blocks, it could then try calling GetPeers() on blocks 0-1M, and so on.
This would allow the network to self-adjust the acceptable data in each shard, depending on how big blocks are or how much storage resources partial nodes have.
Note: GRANULARITY is a client-side variable that can be adjusted automatically by the client itself based on its success on downloading blocks at different granularities. On the other hand, MIN_GRANULARITY and BASE are network-wide variables that have to be agreed network-wide as part of the p2p protocol.
Status message-based
An alternative to a subnet-based peer discovery approach is an approach where there's only one network of partial storage nodes, that have status messages that represent which blocks they have. Partial storage nodes would have the following interface:

GetStatus(GRANULARITY) where GRANULARITY >= MIN_GRANULARITY returns a bit field where the index of each bit in the field is a blockrange corresponding to GRANULARITY, and on-bit means that the node has the blocks in that blockrange.

For example, if a GetStatus(1M) is called in a chain with 10M blocks, and the partial storage node is only storing blocks 1M-2M, the bit field would be as follows:
0100000000
 ^
 |
blockrange 1M-2M

Grooming 01/11/2022:
Reopen discussion Post-mainnet


Size is missing from HotColdRegions when started with Visual Studio Debugger

If the target process was started by the Visual Studio Debugger, HotColdRegions.HotSize will be 0. Additionally, ClrMethod.CompilationType will be None.
This is occurring with .NET Core 3.1 as well as .NET 5 on Windows 10 20H2 with Visual Studio 2019 16.8.1
This does not occur if attaching to a process that was started without debugging. It also doesn't occur if you start the process without debugging and then attach the Visual Studio Debugger after it starts. (Enable the loop at the beginning of Main)
Here's a reduced repro:
using Microsoft.Diagnostics.Runtime;
using System;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;

public static class Program
{
    public static int Add(int a, int b)
    {
        return a + b;
    }

    public static void Main()
    {
#if false
        Console.WriteLine("Waiting for debugger...");
        while (!Debugger.IsAttached)
        { }
#endif

        // Get the method and make sure it's JITted
        RuntimeMethodHandle methodHandle = typeof(Program).GetMethod(nameof(Add)).MethodHandle;
        RuntimeHelpers.PrepareMethod(methodHandle);

        // Attach ClrMd
        using DataTarget dt = DataTarget.CreateSnapshotAndAttach(Process.GetCurrentProcess().Id);

        ClrInfo runtimeInfo = dt.ClrVersions.First();
        ClrRuntime runtime = runtimeInfo.CreateRuntime();
        ClrMethod method = runtime.GetMethodByHandle((ulong)methodHandle.Value);

        Console.WriteLine($"Method: {method.Signature}");
        Console.WriteLine($"Compilation type: {method.CompilationType}");
        Console.WriteLine($"Method start: 0x{method.NativeCode:X16}");
        HotColdRegions hotCold = method.HotColdInfo;
        Console.WriteLine($"Cold region: 0x{hotCold.ColdStart:X16} for {hotCold.ColdSize}");
        Console.WriteLine($"Hot region: 0x{hotCold.HotStart:X16} for {hotCold.HotSize}");

        Console.WriteLine("Done.");
    }
}

Here is the output of this program in various scenarios:

With debugging (F5)Without debugging (Ctrl+F5)

Method: Program.Add(Int32, Int32)
Compilation type: None
Method start: 0x00007FFCCC798700
Cold region: 0x0000000000000000 for 0
Hot region: 0x00007FFCCC798700 for 0
Done.

Method: Program.Add(Int32, Int32)
Compilation type: Jit
Method start: 0x00007FFCCCA94CA0
Cold region: 0x0000000000000000 for 0
Hot region: 0x00007FFCCCA94CA0 for 57
Done.

.NET Framework 4.8 is a similar situation, but not quite the size is 6 instead of 0:

With debugging (F5)Without debugging (Ctrl+F5)

Method: Program.Add(Int32, Int32)
Compilation type: None
Method start: 0x00007FFCF7AC0DD0
Cold region: 0x0000000000000000 for 0
Hot region: 0x00007FFCF7AC0DD0 for 6
Done.

Method: Program.Add(Int32, Int32)
Compilation type: Jit
Method start: 0x00007FFCF7AE0DD0
Cold region: 0x0000000000000000 for 0
Hot region: 0x00007FFCF7AE0DD0 for 57
Done.

Perhaps related, .NET 5 actually isn't working at all regardless of Visual Studio attachment:

With debugging (F5)Without debugging (Ctrl+F5)

Method: Program.Add(Int32, Int32)
Compilation type: None
Method start: 0x00007FF9CFBAA320
Cold region: 0x0000000000000000 for 0
Hot region: 0x00007FF9CFBAA320 for 0
Done.

Method: Program.Add(Int32, Int32)
Compilation type: None
Method start: 0x00007FF9CFE2A2E0
Cold region: 0x0000000000000000 for 0
Hot region: 0x00007FF9CFE2A2E0 for 0
Done.

@PathogenDavid I can take a look next time I do a sprint of clrmd work, but this is likely either:

A real change within the CLR Runtime, where VS puts the process into a unique state when debugging/not debugging/etc.
A bug within the dac (the underlying diagnostic library that ClrMD calls into).

You could confirm that second case by checking the SOS output of !dumpmt -md [ClrType.MethodTable] and checking the compilation type it reports.  I'll take a look next time I'm doing some ClrMD related work.  I'm mostly on vacation this week (due to thanksgiving).

Thanks for the info! And no worries, hope you enjoy your time off!
Here's the output from the program and from WinDbg. This is .NET 5 launched from WinDbg.
Method: Program.Add(Int32, Int32)
Compilation type: None
Method start: 0x00007FF9A066A2E0
Cold region: 0x0000000000000000 for 0
Hot region: 0x00007FF9A066A2E0 for 0
Done.

0:009> !dumpmt -md 00007ff9a0704958
EEClass:         00007ff9a071a940
Module:          00007ff9a07027e0
Name:            Program
mdToken:<PHONE_NUMBER>000002
File:            C:\Development\Playground\ClrMdDumpJit\PrintMethodInfo\bin\Debug\net5.0\PrintMethodInfo.dll
BaseSize:        0x18
ComponentSize:   0x0
Slots in VTable: 6
Number of IFaces in IFaceMap: 0
--------------------------------------
MethodDesc Table
           Entry       MethodDesc    JIT Name
00007FF9A0650090 00007ff9a0620bf8   NONE System.Object.Finalize()
00007FF9A0650098 00007ff9a0620c08   NONE System.Object.ToString()
00007FF9A06500A0 00007ff9a0620c18   NONE System.Object.Equals(System.Object)
00007FF9A06500B8 00007ff9a0620c58   NONE System.Object.GetHashCode()
00007FF9A065C758 00007ff9a0704928    JIT Program.Add(Int32, Int32)
00007FF9A065C760 00007ff9a0704940    JIT Program.Main()

(I'm not super experience with WinDbg so I stumbled my way to that 00007ff9a0704958 argument using !name2ee *!Program. If that wasn't what you meant let me know.)

I realized I never checked if it happened with .NET Core 3.1 launched from WinDbg, so here's that too (Click to expand)
Method: Program.Add(Int32, Int32)
Compilation type: Jit
Method start: 0x00007FF99A094CB0
Cold region: 0x0000000000000000 for 0
Hot region: 0x00007FF99A094CB0 for 57
Done.

0:010> !dumpmt -md 00007ff99a131b80
EEClass:         00007ff99a146e60
Module:          00007ff99a12f808
Name:            Program
mdToken:<PHONE_NUMBER>000002
File:            C:\Development\Playground\ClrMdDumpJit\PrintMethodInfo\bin\Debug\netcoreapp3.1\PrintMethodInfo.dll
BaseSize:        0x18
ComponentSize:   0x0
Slots in VTable: 6
Number of IFaces in IFaceMap: 0
--------------------------------------
MethodDesc Table
           Entry       MethodDesc    JIT Name
00007FF99A080090 00007ff99a050a80   NONE System.Object.Finalize()
00007FF99A080098 00007ff99a050a90   NONE System.Object.ToString()
00007FF99A0800A0 00007ff99a050aa0   NONE System.Object.Equals(System.Object)
00007FF99A0800B8 00007ff99a050ae0   NONE System.Object.GetHashCode()
00007FF99A094CB0 00007ff99a131b50    JIT Program.Add(Int32, Int32)
00007FF99A092FC0 00007ff99a131b68    JIT Program.Main()

So it does seem that for .NET Core 3.1 it's something exclusive to being launched from Visual Studio.

Not sure how helpful this is, but I went spelunking in the runtime code a bit this morning to do some investigation. (I'm mostly leaving this comment for my own reference.)
ClrMd gets the HotColdRegions and the CompilationType from ISOSDac::GetCodeHeaderData. If I'm not horribly mistaken, this is eventually implemented by ClrDataAccess::GetCodeHeaderData. This method has basically two branches that result in success. One in particular is seemingly only supposed to happen when the method hasn't ben jitted. In this branch, everything will be 0 except for the MethodDescPtr (which as far as I can tell is the same thing as a method handle.)
ClrMd doesn't do anything with that field, but I made a modified version of my test program to query ISOSDac directly (thanks for leaving that accessible 🙏) and it does appear at a surface level that's the branch it's hitting:
.NET Core 3.1.9
Method handle: 0x00007FF9B49D1B50
Method: Program.Add(Int32, Int32)
Compilation type: None
Method start: 0x00007FF9B493A2B0
Cold region: 0x0000000000000000 for 0
Hot region: 0x00007FF9B493A2B0 for 0

Getting the CodeHeaderData directly:
======= Code header Data =======
GCInfo: 0x0000000000000000
JITType: 0
MethodDesc: 0x00007FF9B49D1B50
MethodStart: 0x0000000000000000
MethodSize: 0
ColdRegionStart: 0x0000000000000000
ColdRegionSize: 0
HotRegionSize: 0
Done.

Unfortunately my local runtime fork is hosed for some reason so I can't be entirely sure it's taking that branch. May have to investigate more later.

This should be fixed in 3.1, sorry it took so long.  :)


Remove tippyjs from MenuBar and Action Center

Currently, MenuBar, to show menus, uses TippyJS and lots of state management with Jotai. But that is quite slow.
Goal:
Remove TippyJS from the equation entirely.
Rely on CSS as much as possible, though using Jotai to show stuff actually seems like the best scenario here, as :hover will not work unidirectionally, that is, it will show as well as hide on hover and removed-hover, which we do not want.
Same goes for ActionCenter. Use same methods for it too

I'm going to work on this issue, thanks.

The files to look at: MenuBar.tsx and Menu.tsx, both in TopBar folder


Harmonize top margin in settings

What

[ ] Harmonize top margin in settings

Screenshot

That would mean just add a padding on top of the whole ListView, as there are no different paddings for the titles.

Can I work on this?


Version 3.9 release causes web ui to render blank due to Semver check failing

Expected behaviour:
Version check shouldn't cause the page to crash. The web UI should either use loose checking or flexget proper should use the full x.x.x versioning.

Actual behaviour:
Web UI v2 doesn't load. The latest flexget 3.9 version is causing the Semver check to fail since 3.9 isn't fully semver compliant. You can coerce it in the UI to get things working and prevent it from happening in the future. Something like this inside Version.tsx
const coercedLatestVersion = coerce(latestVersion).format();
...
gt(coercedLatestVersion, normalizedVersion)

Or, enforcing full semver versions on flexget proper would accomplish the same.
 And we'll have to refrain from dropping the patch version on next release.
I think probably the parser on webui side should also be looser and assume a missing version component is 0, but I'm not familiar with the webui codebase or how we even do releases on this side. Someone fixing that up in a PR would be welcome.

@gazpachoking I updated the original bug to include a rough example of how to coerce x.x into x.x.x on the frontend. I don't have the codebase locally right now but I can try to get it up and running.

but I'm not familiar with the webui codebase or how we even do releases on this side

This issue is related to the flexget proper versioning, not the webui. It's pulling the version from the server and trying to see if the user should update their server or not.


Create UI for sending DIDCommV2 messages

With local KMS

@jasonhealy pls detail scope (re phase 3)

Support in Agent explorer

Setup public messaging application to live under inbox.veramo.dev
Authenticate with MetaMask
View my messages
Compose messages

Additional:

Add custom messaging endpoint
Update DID doc
Attach VerifiableCredentials
Attach SelectiveDisclosureRequests (Request)
Attach VerifiablePresentation (Response)

redundant issue

redundant issue


How can I login the dashboard?

I registered app account (steemeditor) on https://v2.steemconnect.com/. And I don't have steemeditor's private key.
So how can I login  steemeditor on Beta version?

@ety001 The app account active and posting keys are the same as the account you used to create the app on the steemconnect v2 which is "@ety001"

@ety001 The app account active and posting keys are the same as the account you used to create the app on the steemconnect v2 which is "@ety001"

OK, thank you. That's a weird design.


Update CONTRIBUTING.md examples.

The CONTRIBUTING.md file has "Apache Licensing" at the top.  I'm not sure if this is because you were previously using Apache's license, or if you had copied and pasted it from somewhere.  But it's a bit misleading.

I can make a PR, give me a sec.

Also, wasn't it ruled that you weren't going to use minimal interfaces? So the interfaces example is kinda redundant.  They could just follow the same style based on the class example.

The contributors file is missing a lot of information. I will work on updating it.

Added some changes to the Contributors file. This will probably be moved to the documentation later on.


fix_data() for position_lat and position_long looks terrible

Hey I was just looking at this as well.  Each gap in the attached chart represents a fixed lat long value.  By the way I really appreciate the work you are doing and I'm testing it very heavily! If you need want and help testing or what now let me know.

Thanks @RyanfCooper - is that a chart of speed vs distance? 260+km? nice!
Hopefully I'll make some progress this weekend - thanks for the offer of help testing, if you have spotted any bugs or have any ideas for enhancements then please share :)
I'm planning on setting up some PHPUnit tests, which should take care of a lot of the regression testing when I make changes in the future, but I'm sure there are still bugs lurking in my code already. What device(s) are you using? Cheers

Mostly garmin files (500/10/20, 800/10, fenix3, 910xt) but have access to wahoo, power tap etc.
That file was actually only 100km but I was calculating distance based on lat long so everytime there was a gap it was adding a lot of distance. Was trying to do power over distance with some special auto segmentation code I'm working on.
Ryan
Sent from my iPhone

On Aug 14, 2015, at 9:17 PM, Adrian Gibbons<EMAIL_ADDRESS>wrote:
Thanks @RyanfCooper - is that a chart of speed vs distance? 260+km? nice!
Hopefully I'll make some progress this weekend - thanks for the offer of help testing, if you have spotted any bugs or have any ideas for enhancements then please share :)
I'm planning on setting up some PHPUnit tests, which should take care of a lot of the regression testing when I make changes in the future, but I'm sure there are still bugs lurking in my code already. What device(s) are you using? Cheers
—
Reply to this email directly or view it on GitHub.

Squashed the bug. SIlly mistake:
} else if ($missing_keys[$i] < $max_key) {

Should be:
} else if ($missing_keys[$i] < $min_key) {

Resolved in this interpolate_missing_data() typo within #14 pull request.
All looks good now:

Awesome.  Will keep testing.  Loving what you are doing!
Sent from my iPhone

On Aug 14, 2015, at 11:57 PM, Adrian Gibbons<EMAIL_ADDRESS>wrote:
Squashed the bug. SIlly mistake:
} else if ($missing_keys[$i] < $max_key) {
Should be:
} else if ($missing_keys[$i] < $min_key) {
Resolved in this interpolate_missing_data() typo within #14 pull request.
All looks good now:
—
Reply to this email directly or view it on GitHub.

Would be cool to make significant digits an option.  For distance or lay long I'm going in and updating the rounding to more sig digits.  (For elevation correction later)
Sent from my iPhone

On Aug 14, 2015, at 11:57 PM, Adrian Gibbons<EMAIL_ADDRESS>wrote:
Squashed the bug. SIlly mistake:
} else if ($missing_keys[$i] < $max_key) {
Should be:
} else if ($missing_keys[$i] < $min_key) {
Resolved in this interpolate_missing_data() typo within #14 pull request.
All looks good now:
—
Reply to this email directly or view it on GitHub.

Hey @RyanfCooper, ['record']['position_lat'] and ['record']['position_long'] are rounded to 5 decimal places, which is accurate to somewhere between ~0.5m and ~1m. Given the accuracy of the GPS device itself, I'm not sure more significant digits for these makes sense - unless you're talking about the rounding of ['record']['distance'], which is currently to only 2dp?
Wikipedia decimal degrees article

Hey sorry for some reason I was thinking 5 was ~10 meters.  Thanks!
On Sun, Aug 16, 2015 at 2:16 AM, Adrian Gibbons<EMAIL_ADDRESS>wrote:

Hey @RyanfCooper https://github.com/RyanfCooper,
['record']['position_lat'] and ['record']['position_long'] are rounded to
5 decimal places, which is accurate to somewhere between ~0.5m and ~1m.
Given the accuracy of the GPS device itself, I'm not sure more significant
digits for these makes sense - unless you're talking about the rounding of
['record']['distance'], which is currently to only 2dp?
Wikipedia decimal degrees article
https://en.wikipedia.org/wiki/Decimal_degrees
—
Reply to this email directly or view it on GitHub
https://github.com/adriangibbons/php-FIT-File-Analysis/issues/12#issuecomment-131496305
.


Search should be debounced

Currently, searching triggers an API call for (almost?) each keystroke, which pollutes the (google account) search history on top of being wasteful of resources. The local results maybe could still be matched on each keystroke given that there is no search history nor real performance issues.
A debounce of 150-200ms is usually a good bet?
(I'm writing this issue as I come across it, I will take time to answer the other issue I've opened. :) )

Yep I can add a debounce 200ms will probably be imperceptible. (It does trigger for each keystroke but if you type fast the previous request gets cancelled before reaching the host)

I'm not sure that counting on winning a race condition is the most robust way of going about this? Or maybe I misunderstood what you mean.

I didn't say the current system is good and I should definitely change it. (It's really easy to fix furthermore)

77bdf2a7e9eb3bbdfd411f35e076810b91c38b5c FIXED


Parameters typed as unknown even when the function type has the correct types

🔎 Search Terms
mapped types, function types
🕗 Version & Regression Information

This is the behavior that starts in version 4.9, and I reviewed the FAQ for entries about function types
All the versions prior to 4.9 have both scenarios with the params typed to unknown

⏯ Playground Link
Playground Link
💻 Code
No response
🙁 Actual behavior
The function with no default shows the proper function type but the parameters are typed as unknown
🙂 Expected behavior
The parameters should have the types of the function params
Additional information about the issue
There is also a smaller reproduction that was made by mkantor on discord.

This is the behavior that starts in version 4.9, and I reviewed the FAQ for entries about function types
All the versions prior to 4.9 have both scenarios with the params typed to unknown

I'm pretty sure that the observed behavior change is related to https://github.com/microsoft/TypeScript/pull/50994

(Speaking only to the reduced repro; the longer one is way too long)
These functions as written are sort of bad beyond salvaging through inference. There aren't any "good" inference sites for T so end up having observable differences between falling back to the default vs the constraint.
I guess I'd argue that unknown is the correct behavior here, since a body of these functions could call it with non-"wtf" values:
function noDefaultTypeParameter<T extends Callback>(f: Listener<T>) {
  f(423);
}

But there's really no reason to write Listener this way; it's already distributive and null and undefined will not match the infer. Writing it this way:
type Listener<T> =
  T extends (arg: infer U) => unknown
    ? (arg: U) => unknown
    : never

causes both function's behavior to align, and correctly makes it an error to invoke f(423) in the bodies.
Barring a more realistic repro I don't have a well-justified behavior change.

I have reduced the big example as much as i could to reflect what im really using it for, i also added some more examples (one of the examples just left me speachless because i really dont understand whats going on)
Here is the link

Well, typescript reports the type of the function ready so i expected the arguments to be typed as well, but what really left me speachless and with no more ideas was the last one where the function is typed to (arg: string) => unknown yet the argument is typed as something completely different, not even unknown

It seems a problem with optional properties of objects.
You're iterating all keys in Transformers [K in keyof T], and Transformers has the optional property "ready".
When you do T[K], it find that optional property and read it as <type of that property> | undefined, and this makes the conditional type T[K] extends { handler: ... fail, because it doesn't handle the "undefined" type.
Adding & {} as you did entirely remove the "undefined" from the type, and this explains why it works.
Changing the conditional type to T[K] extends undefined | { handler: ... also works, because we're including the possibility for undefined.


Add Apple M1/osx-arm64?

Comment:
Hello! Thanks for adding this feed. This issue is just to ask if the osx-arm64 platform can be added to the list.

Yes, I think we can do that.
https://conda-forge.org/blog/posts/2020-10-29-macos-arm64/

Thanks!


logger old structure caused typescript error!

This is not a bug but more than fixing annoying Typescript error
The error is:

error 'Logger' only refers to a type, but is being used as a value here.

According to the documentation of winston package, those steps should work fine Tested.
import winston from "winston";
import { Logger } from "winston";
import { ENVIRONMENT } from "./secrets";

const logger: Logger = winston.createLogger({
    transports: [
      new winston.transports.Console({ level: process.env.NODE_ENV === "production" ? "error" : "debug" }),
      new winston.transports.File({ filename: "debug.log", level: "debug"})
    ]
  });
  if (process.env.NODE_ENV !== "production") {
    logger.debug("Logging initialized at debug level");
  }

export default logger;

Please correct me if something wrong.

How do you maek this error go away?

@sebastiangug Have tried my solution up ? Try to take the same code, it should fix your issue too.

@AhmedBHameed  Ah, sorry ,forgot to update! I have used your updated code without any issues, works like a charm, thank you!


How to setup custom  metrics

What did you do?
now, does custom metrics files been removed? i do not know how to config this .  Should I generate these files with jsonnet? because I find the custom.metrics with jsonnet format 。
Did you expect to see some different?

Hey @yangvipguang,
yes you need to setup jsonnet https://github.com/coreos/kube-prometheus/blob/master/README.md#compiling
Once that is done you can uncomment https://github.com/coreos/kube-prometheus/blob/master/example.jsonnet#L9 this line and you get the extra manifests needed for custom metrics.
Cheers,
Johannes

thanks a lot 。but I  have switched to  branch of release-0.4。 I found the cutom metrics in the experimental files 。 but I have some error with permissions。Could you give me a favor

I have to generate some other files like  ca etcs

This sounds like you didn't follow https://github.com/coreos/kube-prometheus#prerequisites, did you?

i have figured 。may be i changed incrrectly when config custom metrics。  i have deploy the custom yaml files I have found the api versions ：custom api versions  but i returned some errors 。

Maybe the video from last years FOSDEM might help too: https://www.youtube.com/watch?v=paO2kwHWOLw :)

Hi Guys,
I am trying to build release-0.5 with custom-metrics, I uncomment the line in example.jsonnet and it looks like the following:
local kp =
  (import 'kube-prometheus/kube-prometheus.libsonnet') +
  (import 'kube-prometheus/kube-prometheus-custom-metrics.libsonnet') +

when I build with ./build.sh example.jsonnet command, it failed with the follow error message:
RUNTIME ERROR: couldn't open import "kube-prometheus/kube-prometheus-custom-metrics.libsonnet": no match locally or in the Jsonnet library paths

When I build without custom-metrics, it works fine. Kindly advise how to fix it. Thanks a lot.

@evgao   you should  run ： jb install  first  and then  ./build.sh

@yangvipguang Thanks Guang, It works now.

hi guys,
Also want open customer metrics with this:
 (import 'kube-prometheus/kube-prometheus-custom-metrics.libsonnet')
But meet this error:
RUNTIME ERROR: couldn't open import "kube-prometheus/kube-prometheus-custom-metrics.libsonnet": no match locally or in the Jsonnet library paths
Indeed there is file
kube-prometheus/kube-prometheus-custom-metrics.libsonnet
How can I get this file or is there a sample file for this?


Error in differentialExpression

When trying to run the differentialExpression command in celda I get the following error:
Error in assayNames(x) : could not find function "assayNames"

The following code is enough to generate the error (I will send you files separately):
library(celda)

## counts matrix
cts = readRDS("filtered_counts.rds")

## celda object
celda.20 = readRDS("celda.20.rds")

differentialExpression(counts = cts, celda.mod = celda.20, c1 = 3 )

I'm using campbio/celda@20190409_master as my version of celda.

 I think this error is somewhere within MAST's package dependency.

That fixed it. Thank you!


test-electron Custom setup not working as documented

Does this issue occur when all extensions are disabled?: Not Applicable

VS Code Version: Not Applicable
OS Version: MacOS 13.0 (Ventura)
@vscode/test-electron Version: 2.2.1

Following the instructions for Custom setup of VS Code extension integration tests here: https://code.visualstudio.com/api/working-with-extensions/testing-extension#custom-setup-with-vscodetestelectron
It does not work as advertised. At least not when using it to download and run latest Insiders. There are several problems:
resolveCliPathFromVSCodeExecutablePath resolves to the wrong path.

It resolves to <workspace-root>/.vscode-test/vscode-darwin-arm64-insiders/Visual Studio Code - Insiders.app/Contents/MacOS/bin/code
There is no such file. There is, however a code executable in <wokspace-root>/.vscode-test/vscode-darwin-arm64-insiders/Visual Studio Code - Insiders.app/Contents/Resources/app/bin/code
The path returned when downloading the executable reports is: <workspace-root>/.vscode-test/vscode-darwin-arm64-insiders/Visual Studio Code - Insiders.app/Contents/MacOS/Electron

This causes the call to cp.spawnSync to fail silently. Giving it the path to the code executable in Resources ”works” as far as I can tell. I say ”works”, because even though it is spawned, it is not used for running tests. Instead runTests() spawns a new VS Code instance, with some other executable (I don't know which one).

Now found the repository where this issue fits better:

https://github.com/microsoft/vscode-test/issues/183


Vuejs Support

Which platform(s) does your issue occur on?
IOS
11.3
Please, provide the following version numbers that your issue occurs with:

CLI: (run tns --version to fetch it)
tns|master⚡ ⇒ tns --version
4.0.0

Cross-platform modules: (check the 'version' attribute in the
node_modules/tns-core-modules/package.json file in your project)

Runtime(s): (look for the "tns-android" and "tns-ios" properties in the package.json file of your project)
"version": "4.0.1"

Plugin(s): (look for the version numbers in the package.json file of your
project and paste your dependencies and devDependencies here)
"dependencies": {
"nativescript-push-notifications": "^1.1.3",
"nativescript-theme-core": "^1.0.4",
"nativescript-vue": "^1.3.1",
"tns-core-modules": "~3.4.1"
},
"devDependencies": {
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0",
"lazy": "1.0.11"
}

Please, tell us how to recreate the issue in as much detail as possible.
Follow the docs :
Make sure the app's id is the same as registered
tns buid ios
Go to XCode, enable push :

Make sure *. entitlements exist with

Add :
var pushPlugin = require("nativescript-push-notifications");
Is there any code involved?
I am using the https://github.com/nativescript-vue/nativescript-vue template and just this plugin, nothing else has been added.

import Vue from 'nativescript-vue';

// This fails horribly
var pushPlugin = require("nativescript-push-notifications");

import router from './router';

import store from './store';

import './styles.scss';

// Uncommment the following to see NativeScript-Vue output logs
Vue.config.silent = false;

new Vue({

  router,

  store,

}).$start();

Hi @lukepolo, as the support for Vue in NativeScript is in experimental stage we haven't implemented such compatibility in this plugin and that is why you may get this error. If you or anyone else can help solving this one, we will be happy to receive PRs.

+1 Would love to have this. I don't know enough about the iOS side to properly submit a PR.

Hello, @lukepolo , to go one step further you should change your require to import:
import * as pushPlugin from "nativescript-push-notifications";

I'm using the vue template as well and I succeed in registering the app and receiving notifications.


Download CSV

Describe the bug
I tried to upload a dataset, and wanted to see what the csv template should look like. I pressed the download button and nothing happened.
Expected behavior
I expected a csv to be downloaded.
Desktop (please complete the following information):

OS: 13.2 (22D49)
Browser: Chrome
Version 110.0.5481.100 (Official Build) (x86_64)

Missed that this issue was already here.


dev: KISS and YAGNI for rpc/lib

Apply the KISS and YAGNI principles to the file located in client/rpc/src/lib.rs. Multiple sections of the file include duplicated code which can be extracted into separated functions. Below is an example of such an occurrence:
self.pool.submit_one(&SPBlockId::hash(self.client.info().best_hash), TX_SOURCE, extrinsic).await.map_err(
|e|  {
          error!("Failed to submit extrinsic: {:?}", e);
          StarknetRpcApiError::ContractError
     },
)?;

The above code is present at three different locations and could be replaced by one implementation of a method for the Starknet structure.
Additionally, after applying these principles to the file, unit tests are required.

Please assign this to me

Please assign this to me

Assigned to you

If this goes stale, I'm interested in taking it on

If this goes stale, I'm interested in taking it on

Please take it, assigned to you


readme: fix heading and spacing

Just fixes a silly nit in the heading. The Markdown h2 wasn't being rendered correctly:

markdownlint also fixed some of the spacing automatically.

/cc @jagobagascon @glerchundi


create transaction functions doc

This PR is welcome. But i thought we were supposed to add documentation to the functions in /lib/tx.ts itself, no? https://github.com/scale-it/algo-builder/blob/master/packages/algob/src/lib/tx.ts#L68

@robert-zaremba Could you shed some light on this??


Support key management APIs

The host is releasing an API for managing keys in the next update. After it's out, we want the Portal to start consuming that API so we can begin encryption of keys shortly there after.

The portal should detect host version and utilize the API for all interactions with keys.
The portal should detect host version and utilize file based access for older hosts.

@fabiocav - will provide API format. Testing this may be complicated before we release new host version with the APIs running live.

@ahmelsayed - is this done?

This is shipped in the portal now.


Asset generation stops functioning after a different output directory is specified in "Export As..."

Update by @joelrbrandt : It seems that this bug is arising when the output directory has been changed in "Export as...". However, we're not 100% clear on that. The original bug is below, along with a long discussion that suggests how we arrived at this "conclusion"

Since the Photoshop CC 2015 update, the Generator (File -> Generate -> Image Assets) is entirely non-functional. I have just this moment tried uninstalling Photoshop entirely (including trashing preferences) and reinstalling to no avail.
Pressing Image Assets displays a check mark, but doesn't output anything. Turning it off and on doesn't have any effect either (which you sometimes had to do in the past).
This is the case for all file types that I've tried so far - jpg, svg, png, png8 - and in every Photoshop document I've tried - so it doesn't seem limited to one misbehaving file.
For now, I'm having to use the Export As feature - but what's worse is that this doesn't take into account the layer name when setting the export settings (I'm sure it used to), for example a layer named logo.svg takes the default settings, and doesn't choose SVG as the filetype - guild.png8 also chooses the default settings (generally PNG), and doesn't set PNG8 as the format.
I've heard from one friend who is having the same issue, but I don't know if it's a widespread thing.

@lewishowles thanks for the bug report. What operating system are you on?

Hi Joel, OSX Mavericks. I'll do a quick test at home too once I get there (same OS but who knows).

@lewishowles I realize this is no consolation, but the feature does work for me on OS X Yosemite. We're investigating further.
One thing that would be helpful would be to have access to your Generator logs. They should be present in this directory on the mac: /Users/[your username]/Library/Logs/Adobe/Adobe Photoshop CC 2015/Generator
If you have a moment, could you please zip up that directory and mail it to<EMAIL_ADDRESS>(My @adobe.com email sometimes blocks zip files.) Or, if that directory doesn't exist, well, that'll be helpful info too.
(If others are joining this thread, log locations on mac and win are documented here: https://github.com/adobe-photoshop/generator-core/wiki/Generator-Log-Locations )

Apologies, I did mean Yosemite on the office machine. I've just tried at home (also Yosemite), and it works here, so that's strange. I've sent the logs from the office machine as requested.
It is logging, and the latest file shows the file I was working on most recently (obviously). I do still have the preferences file set up that enabled SVG (which I assume is no longer necessary) but I don't know if that would cause any issues.

@lewishowles Thanks for the logs! It's unlikely that enabling SVG is the culprit, since it's enabled by default using the same code path that your settings file would trigger. But, you could try removing the settings file just to be sure.
Looking through the logs, it definitely looks like there's something strange in the document info that Photoshop is sending Generator for one of your documents. Specifically, I'm seeing errors like this:
[error:generator-assets 15:32:43.829 document.js:845:34] Error updating property layers [ { id: 142, changed: true },
  { id: 143, changed: true },
  { id: 144, changed: true } ] [Error: Unknown change]
[warning:generator-assets 15:32:43.830 documentmanager.js:272:26] Unable to apply change to document

Might you be willing to privately share the PSD that is causing problems? I'll send you an email about this. We'll keep the PSD completely confidential inside Adobe.
Thanks for being so responsive in helping us track this down!

Hi Joel,
I have sent across the PSD. I was trying to think if there was anything strange about the document, but not to my knowledge. It does use an Artboard, but I have just tried that with a new, blank document on my home machine and the generator still worked as expected.
What's even more odd is that I have just tried the PSD on my home machine (which is all but identical, except hardware - same OS version, same Photoshop, broadly the same software) and it worked.

@lewishowles Do you have the Generator Config extension installed? Generator stopped working for me all together when I installed it. Removing it and the generator.js got things working again.

Unfortunately not - but that looks like an interesting extension that I missed!

@joelrbrandt Well, now I'm confused.
I removed the generator.json preferences file from my home directory, and restarted Photoshop. It didn't appear to do anything, so I carried on with my day. I have just come back to it some time later (within the last 15 minutes or so) and have been exporting some other assets from the same PSD using the 'export as' as a temporary measure. This usually sets the Desktop as the directory in which it wants to export, but I noticed this time it had chosen a different directory (the assets one usually created by the generator) and that the folder already had some items in it.
I deleted the folder and modified one of the named layers (with the generator active) and it re-created the folder and output the file as expected.

The only thing that I can remember changing was removing the generator.json file, so I'll have to chalk it up to that, but I can provide the logs folder again.

@lewishowles curious! I had noticed in your failing logs that you had a different output directory specified. My gut says that there's a bug in our code around handling different output directories that are set up via "Export as..." and then attempted to be used through image asset generation.
For now, I'm going to change this bug to reflect that (because I'm not sure what else to do). But, if you happen to get more information, please reply to this bug. I'll also (internally) keep all of the logs and test document you sent. Thanks for working so hard to investigate this.

@JimCollinson Tracking this as adobe-photoshop/generator-panels#18

I have the same issues as "lewishowles". My generator logs can be found here: http://cl.ly/1h303b0M3X0f
I really hope a solution can be found. Having the ability to set output interpolation is a must have feature.
Thanks

Could be the custom directory. I remember installing and tinkering with this plugin in an effort to direct project files directly to my web images folder. I hadn't used it since, so deleting my generator.js from my home folder and restarting Photoshop solved my issue.

Had the same issue. Deleted generator.json and restarted Photoshop - and it started working...

As per the discussion in adobe-photoshop/generator-panels#18 this will be fixed in the next release of PS (whatever is after 16.0.1). Closing this issue.
The workaround for 16.0.1 is to not use a config file generated using the generator-panels configuration panel.

I WAS having this same issue. The contents of Plug-ins\Generator in both my 2014 and 2015 installs of Photoshop are empty. However I asked a co-worker who's "Generate Image Assets" command IS working to check his install. and HIS folder is empty too.
To get it working again I went into PS prefs, Looked at "Plug-ins" -- Enable Generator was checked, I toggled it on and off, I checked the box that says "Show Filter Gallery groups and names" (I also changed my scratch disk from using the Internal drive to using an external). I saved the prefs and suddenly the app was once again correctly generating PNGs and JPGs. Makes no sense, but it worked.


fix issues link in contributing

added a missing / to the generated issues link.

Thank you @fluktuid


ISPN-10208 Don't disable surefire xml report generation for junit tes…

https://issues.jboss.org/browse/ISPN-10208

This doesn't include the hibernate 2lc modules as those are handled in https://github.com/infinispan/infinispan/pull/6939

@tristantarrant Seems to be working as it's uncovered that .DeployedCacheStoreMetadataTest.testImportingMetadataWithLoaderWriterClassOnly is failing. I'll look into that


Counterpart example notebooks for bequests with portfolio choice

Pull request is nearly complete. Some small discrepancies need to be sorted. Lastly, Something regarding the optimal shares in the model should be added.

@dedwar65 is this done? can you resolve conflicts?

If you recall, in the HARK meeting before last you told me to make a pull request with the changes to the example notebooks. The notebooks ran, but there is a final discrepancy that needs to be resolved. It shouldn’t be causing anything to break though.
I am not too sure how to resolve the conflict on my end but I will look into it.
From: Alan Lujan @.>
Date: Friday, April 5, 2024 at 2:44 PM
To: econ-ark/HARK @.>
Cc: Decory Edwards @.>, Mention @.>
Subject: Re: [econ-ark/HARK] Counterpart example notebooks for bequests with portfolio choice (PR #1398)
  External Email - Use Caution

@dedwar65https://github.com/dedwar65 is this done? can you resolve conflicts?
—
Reply to this email directly, view it on GitHubhttps://github.com/econ-ark/HARK/pull/1398#issuecomment-2040428276, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR3YDSM5UJZGPZN2NINKHBLY33WIDAVCNFSM6AAAAABEXBN5U6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBQGQZDQMRXGY.
You are receiving this because you were mentioned.Message ID: @.***>

hoping this works now and that I didn't break anything else
@dedwar65 if this passes all tests, can you review the notebooks and add some descriptive narrative to the examples?