fix(modules/asg): make tags_dest customizable with additional resources when needed

Description
Fixing tags related bug while launching resources via ASG.
Addresses the issue https://github.com/PaloAltoNetworks/terraform-aws-swfw-modules/issues/29

/validate paths="modules/asg"

@srihas619 there is an error with flatten function:
  │ Error: Too many function arguments
  │
  │   on main.tf line 31, in locals:
  │   31:   tags_dest                = flatten(["instance", "volume", "network-interface"], var.tags_dest_additional_resources)
  │     ├────────────────
  │     │ while calling flatten(list)
  │     │ var.tags_dest_additional_resources is a list of string
  │
  │ Function "flatten" expects only 1 argument(s).
  ╵}

In my opinion function concat should be used, not flatten.
Could you fix it, please ?

@sebastianczech  Thanks for the pointer. I would prefer to use concat in this case since it will allow more resources to be added when needed via variable.

/validate paths="modules/asg"

/validate paths="modules/asg"

/plan paths="examples/combined_design_autoscale"

/sca

Now your changes work, but maybe we should keep it simpler?
For example - do not use concat or coalesce, just remove local.tags_dest and use variable directly:
  dynamic "tag_specifications" {
    for_each = toset(var.tags_dest)
    content {
      resource_type = tag_specifications.key
      tags          = local.tags_merged
    }
  }

Then variable will have default value - if somebody wants to define his/her custom list, it's dooable:
variable "tags_dest" {
  description = "List of resources that need to be tagged when launched via autoscaling group"
  type        = list(string)
  default     = ["instance", "volume", "network-interface"]
}

Thanks for validating changes.
Regarding your suggestion, I also gave a thought along these lines initially but then, I realized if we need to add more resources then we have to initialize this variable with defaults again and then append extra resources like ["instance", "volume", "network-interface", "<someother_resource1>","<someother_resource2>"]
But I agree, it makes the implementation simpler, I will push an update.

/validate paths="modules/asg"

/sca

/idempotence paths="examples/combined_design_autoscale"

@sebastianczech Thanks for the quick approval and all the suggestions. Now, we wait for the merge and the release cut from it so we can unpin the 2.0.4 version.

/validate paths="modules/asg"

/sca

/plan paths="examples/combined_design_autoscale"


Create API routes

description

Get /api/notes should read the db.json file and return all saved notes as JSON.

POST /api/notes should receive a new note to save on the request body, add it to the db.file file, and then return the new note to the client.

Look through npm packages for a way to give each note a unique id when saved.

I am new to open source, but I am eager to contribute. Could you please assign me a task?

Hey, I apologize for the confusion. I'm currently working on an individual project for a class, but it would be great if we could connect, follow each other, and potentially collaborate in the future. I'm curious to learn more about your skill set. What are your strengths and areas of expertise?


Introduce mpbuild api to be used by octoprobe (2)

This PR will supersede https://github.com/mattytrentini/mpbuild/pull/48
Summary
The functionality of mpbuild has not changed at all.
I added a API which allows to call mpbuild from octoprobe.
Notable internal change: stderr/stdout:
The existing code wrote to stderr/stdout and raised SystemExit: This is unwanted for a API as octoprobe uses python logging. Therefor I refactured the code to separate the CLI code (with stderr/stdout, SystemExit) and the code which justs works silent or raises an exception.
Notable internal change: physical_board:

The Board class got an attribute physical_board which allows to distinguish between 'stm32' and 'unix'.

The API (src/mpbuild/build_api.py)

NOTE: build_api.py was removed from this PR
Throws an MpbuildException on failure
Interface: def build_by_variant(variant: Variant, do_clean: bool) -> Firmware
Returns the firmware filename on success

This PR was tested on:

Linux
Python 3.12.2
Every port was tested with a few boards and variants

I find most of build_api.py fragile and am not convinced it should be in mpbuild.

What @hmaerki is trying to do here is define a Python-level API so that mpbuild can be imported and used as a Python package.  Eg:
import mpbuild

firmware = mpbuild.build_by_variant_normalized("log.txt", db, "RPI_PICO", do_clean=False)
print(firmware.filename, firmware.micropython_version_text)

In the README of this repo it says there is a WIP Python module API, but it seems this is very very WIP and doesn't exist yet?  At least doing import mpbuild the mpbuild.build function does not exist.  And the idea is that such a function would return a comprehensive object containing the firmware (filename at least) and other info about the build process.
In essence, this PR is trying to implement the fabled mpbuild.build() :joy:

What @hmaerki is trying to do here is define a Python-level API so that mpbuild can be imported and used as a Python package.

Yes, I'm keen to properly implement that API! But I want it to be simple, as described in the README ie, mpbuild(board, variant). Even db is even an implementation detail that I'm not sure I want to force on users. And I had envisioned logging to be performed via stream...
But the more significant change I need to mull over is the Firmware class and micropython_version_text in particular. I'm not convinced it should be in mpbuild; if anywhere, it should probably be a part of MicroPython somehow to record with the build. So if a build was performed with make/cmake you'd still produce the version number.
It's also fragile; for example a fork typically doesn't fetch the tags so developer builds will always have 1.x.y.hash versions and we'd need to at least ensure that's handled correctly.

@mattytrentini
Yes, I'm keen to properly implement that API! But I want it to be simple, as described in the README ie,
mpbuild(board, variant). Even db is even an implementation detail that I'm not sure I want to force on users.
And I had envisioned logging to be performed via stream...

Hi @mattytrentini, the stage is yours - I removed build_api.py to leave room for a better solution.
Thanks for reviewing this big PR and hope its now ready to be merged.

Looks good, tested with a handful of builds and all appears fine. Thanks for the contribution (and your patience!) @hmaerki!

Very good!


Bootstrap modal header accessability best practices: heading levels should only increase by one

All operating systems, all browsers.
https://getbootstrap.com/docs/4.1/components/modal/
With the Chrome extension Axe installed, analyzing the above page or just about any page that happens to use an
 tag to host the modal title, Axe reports an issue for every open modal dialog: "Heading Levels should only increase by one"
The rule documentation describes the issue with html <h#> tags having semantic meaning that could be interpreted by various screen readers: https://dequeuniversity.com/rules/axe/3.3/heading-order
Is there a semantic reason for using an
 tag or would it be reasonable to use
 in the documentation on this page?

skipping heading levels in itself isn't a failure, and the main reason an actual
 is used here is to provide some form of real-world markup example for the modal (as devs will tend to copy/paste this stuff...otherwise you'd end up with authors starting to litter
 constructs in their actual sites.
in an ideal world, the live examples would be completely isolated from the outer structure of the documentation page, but unfortunately it's not something that can be semantically expressed in html.

some of this was already discussed and debated over here. while the current approach isn't perfect, it's the least bad option i'd say.


An API endpoint to cancel running zipdeploys

It would very helpful if there was a way to cancel zip deployments for Web Apps or Function Apps.
We have users who either accidentally deploy to the wrong app, the wrong project, or if a deployment is taking a long time.
Sorry if there is already a way to do this.  I was looking through the documentation and didn't see an endpoint for it.

Restating that this option is critical for us, especially for the deployments that seem stale and can take up to 3 hours to resolve, and we have critical updates to deploy.

This is a crucial Functional requirement, i have been hung up for 3 hours trying to find a solution

Hey there if the Kudu team can please do this I would appreciate it, it would resolve so much issues and save everyone so much time. TYSM.

1

Another one permanently running.
+1 to a way to kill it 🙏

How is this even an issue? +1

We just moved a way from zipdeploy as it is not reliable and moved over to the good old FTP protocol, which is working very reliable.

Hi
Hi
Thanks for letting us know, it would be super useful for us if you could create an Azure support incident for us to better track and assist you in this case:
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
I understand you might be now happy using FTP instead but if there is any other Azure related incident, please contact us using an Azure support incident.
Thanks, and sorry for the inconvenience,
Joaquin


Hello, can you adapt the Activator plug-in for ios15?

It is inconvenient to use the snapper2 plug-in without gestures.

I'm not sure, it was already half broken on iOS 14. I can take a look at it later, but no promises.

OK... thx for your help.


Chronological timeline option?

https://twitter.com/waxpancake/status/1030530498303381504

It's a twitter option now
https://twitter.com/jack/status/1042038232647647232


Extensible Messaging and Presence Protocol - XMPP with NodeJs and Docker

Article checklist
Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes
This closes #4943

@Horlawhumy-dev, ensure that all code snippets are well explained!

I will review it ASAP. Thank you

@jumamiller kindly check it out.

Plagiarism check done ✅

@jumamiller sir!!!

Thank you @jumamiller
I have added some explanations in the introduction section.

Formatting done.

I have gone through them. Thank you, sir!

@jumamiller  I think you are doing too much during your reviews.
We need to be mindful of all our pull requests and all our students.


UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)

I have no idea why this is happening.
config.json is on default with username/pw
Python 2.7.12
Ban seems not plausible because its a fresh account with 1 starting pokemon catched.
danny@danny-VirtualBox:~/PokemonGo-Bot$ sudo bash run.sh
2016-08-12 14:49:15,104 [       cli] [INFO] PokemonGO Bot v1.0
2016-08-12 14:49:15,109 [       cli] [INFO] Configuration initialized
2016-08-12 14:49:15,110 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-08-12 14:49:15,110 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-12 14:49:15,123 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
2016-08-12 14:49:15,188 [PokemonGoBot] [INFO] [set_start_location] Setting start location.
Traceback (most recent call last):
File "pokecli.py", line 559, in
main()
File "pokecli.py", line 138, in main
report_summary(bot)
File "pokecli.py", line 147, in report_summary
metrics.capture_stats()
File "/home/danny/PokemonGo-Bot/pokemongo_bot/metrics.py", line 84, in capture_stats
response_dict = request.call()
File "/home/danny/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 90, in call
if not self.can_call():
File "/home/danny/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 54, in can_call
raise NoPlayerPositionSetException()
pgoapi.exceptions.NoPlayerPositionSetException
2016-08-12 14:49:15,306 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/usr/local/lib/python2.7/dist-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/usr/local/lib/python2.7/dist-packages/raven/utils/http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 494, in open
response = self._open(req, data)
File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 512, in _open
'_open', req)
File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/usr/local/lib/python2.7/dist-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python2.7/httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 895, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-12 14:49:15,311 [sentry.errors.uncaught] [ERROR] [u'NoPlayerPositionSetException', u'  File "pokecli.py", line 559, in ', u'  File "pokecli.py", line 138, in main', u'  File "pokecli.py", line 147, in report_summary', u'  File "pokemongo_bot/metrics.py", line 84, in capture_stats', u'  File "pokemongo_bot/api_wrapper.py", line 90, in call', u'  File "pokemongo_bot/api_wrapper.py", line 54, in can_call']
Fr 12. Aug 14:49:15 CEST 2016 Pokebot  Stopped.
Press any button or wait 20 seconds to continue.

simple search that you had to do before posting an issue.
https://github.com/PokemonGoF/PokemonGo-Bot/issues?utf8=✓&q=UnicodeDecodeError%3A 'ascii
also use the issue template (this is the second time telling you) @k4n30 please close this.

Please search first before posting an issue, and when you do use the template

well the problem is not solved there

Making a new issue isn't going to solve it for you


Error after Factory reset

Hello, I've had rooted my tv well over a year now. I factory reset my tv, cause of a problem and when i went to re-root it again, it comes with an error. I've attached a picture, so you can see what error it comes up with.

Your TV appears to have been updated to a patched firmware version

Means it wont work on my tv anymore?

Would like to fix this issue, cause i cant live without adfree youtube, aha


Please can I run this bot on Google colap

Please can I run this bot on Google colap

Unfortunately no. Just Download and Install: Python 3.10.9
Then synchronize the system time on your computer.
Obtaining API keys

Go to the website my.telegram.org and log in using your phone number.
Select "API development tools" and fill out the form to register a new application.
Record the API_ID and API_HASH in the .env file provided after registering your application.

Download the latest version of the bot HamsterKombatBot and unpack it.
Then run INSTALL.bat.
Then configure the .env config according to the documentation in README.md
After this, you need to create a session via START.bat by selecting option 1.
And only then launch the configured clicker through START.bat by selecting point 2.


Client configuration in README.md provides invalid example

Client Configuration
To configure a cvmfs client enable the module
class{cvmfs:
}

or
class{'cvmfs':
  cvmfs_quota      => 100
  cvmfs_server_url => 'http://web.example.org/cvmfs/cmfs.example.org'  # this line doesn't work
}

the second example reports no cvmfs_server_url option to init.pp

The overall answer is probably related to PR#24's resolution

Indeed. I guess we want document one manual way and a couple of examples of
enabling cvmfs-config.

And depending on how PR#24 plays out, some clear way of setting CVMFS_SERVER_URL in default.local


Add translation in french for the content

Content need also to be translated and there is a lot of stuff to do (election is monday arggg)
I've translated the content for the conservatives and just started the liberals.
Anyway, this PR is adding the mechanism to load the content in your language, fallback on english if missing and add the translation for the conservatives.

Seriously. Amazing.

More to come :)


Update autoscaling.md

PR o'clock
Description
Remove sslCertPath described in docs/autoscaling.md.
Refs:

helm/charts#17322

Checklist

[*] terraform fmt and terraform validate both work from the root and examples/* directories
[*] CI tests are passing
[*] I've added my change to CHANGELOG.md and highlighted any breaking changes
[*] README.md has been updated after any changes to variables and outputs. See https://github.com/terraform-aws-modules/terraform-aws-eks/#doc-generation

Did you test this? Because I get this error:
kubelet, ip-10-0-24-248.eu-west-1.compute.internal  Error: failed to start container "aws-cluster-autoscaler": Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/etc/ssl/certs/ca-certificates.crt\\\" to rootfs \\\"/var/lib/docker/overlay2/e85cfd8f6982612fd6c81a9335327cdb47232618f3106b73ca06ff94a3e8c513/merged\\\" at \\\"/var/lib/docker/overlay2/e85cfd8f6982612fd6c81a9335327cdb47232618f3106b73ca06ff94a3e8c513/merged/etc/ssl/certs/ca-certificates.crt\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

Did you test this? Because I get this error:
kubelet, ip-10-0-24-248.eu-west-1.compute.internal  Error: failed to start container "aws-cluster-autoscaler": Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/etc/ssl/certs/ca-certificates.crt\\\" to rootfs \\\"/var/lib/docker/overlay2/e85cfd8f6982612fd6c81a9335327cdb47232618f3106b73ca06ff94a3e8c513/merged\\\" at \\\"/var/lib/docker/overlay2/e85cfd8f6982612fd6c81a9335327cdb47232618f3106b73ca06ff94a3e8c513/merged/etc/ssl/certs/ca-certificates.crt\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

The error message indicates it trying to mount host path /etc/ssl/certs/ca-certificates.crt into containers.
The helm/charts#17322 PR I've mentioned above already removed mounting ca-certificate.crt. Actually that is exactly what this PR only did:
# Output from helm-diff
-           volumeMounts:
-             - name: ssl-certs
-               mountPath: /etc/ssl/certs/ca-bundle.crt
-               readOnly: true
        serviceAccountName: aws-cluster-autoscaler
        tolerations:
          []
-
-       volumes:
-         - name: ssl-certs
-           hostPath:
-             path: /etc/ssl/certs/ca-certificates.crt

In my opinion, you might need to upgrade your chart version to 4.0.0.

In my opinion, you might need to upgrade your chart version to 4.0.0.

True! Thanks


EXSWHTEC-24 - Fix issues and refactor code in Stream Management tests

Fix bug in calculation of normal priority in Unit_hipStreamGetPriority_StreamsWithCUMask tests
Delete duplicate test Unit_hipStreamGetPriority_InvalidPriorityPointer
Separate Unit_hipStreamAddCallback_ParamTst into positive and negative test
Remove Unit_hipStreamDestroy_Negative_DoubleDestroy test for Nvidia devices due to error

Marko Veniger, Mirza Halilcevic, please review.

OK to be moved to Open status, reviewed by Marko Veniger


cannot run with Nim 1.0

I've try your project with Nim 1.0 but it's cannot run. Error on import regex.
Maybe because now package name is re

Just know that I need to 'nimble install regex'


Bug: ng lint -fix

OS

Windows 7 Professional

Version

1.0.0-rc1

Repro steps

ng lint --fix

The log given by the failure

No error in logs, --fix is zealous for semicolons producing things like this: r;eturn; true;

🤖 ; 🤖 ; 🤖 ;  😱🌬

Similar problem here. ng lint --fix broke literally every file it "fixed".
For example it changed double quotes like this: key: ["some", "valeus"] => key: [" 'some value'
It deleted brackets, commas and added random spaces.

@mikeumus or @mikeeus, if you can give me a repo that reproduces this issue, I'll take a look at it this weekend and see what I can do to solve this issue.

I cannot reproduce this. On src/app/app.component.ts I added:
function func() {
  var str = "str";
  var obj = {
    tags: ["concert", "festival", "band", "live"],
    blurb: "Music festivals, live sets and cozy concerts."
  }
  return true;
}

And ng lint --fix changed it to:
function func() {
  const str = 'str';
  const obj = {
    tags: ['concert', 'festival', 'band', 'live'],
    blurb: 'Music festivals, live sets and cozy concerts.'
  };
  return true;
}

Cannot see any mangling of the return statement or strings. If I had to bet, it was a bug on a specific version of tslint.
If you can produce a simple repo we can look at it.

I can't share my project, @mikeeus can you share yours? Maybe Windows 7 is the culprit. @mikeeus which OS are you on?

I've seen this happen on macOS as well, but it was on a friends project and I thought it was related to TSLint rather than the CLI.
I don't need the entire project. If you can get it to happen on a new project while editing the app.component.ts, that should be plenty to go off of.

I tried my repro on win10.

Here's my package.json and .angular-cli.json as snippets in this Stack Overflow question:

http://stackoverflow.com/q/42846582/1762493

Can get my app.component.ts later.

Thanks to @intellix, we found a project that has this problem. There is a strange interaction between --fix and --type-check. There will be an issue filed with TSLint once we have a slimmed down project to find the exact issue.
That said, we agreed on a --type-check flag for ng lint (#5589). This should take care of the problem. The flag is going to be set to false by default so that this error doesn't happen again.
It will be in before the final release. Hope this helps!

Very cool. Good work @delasteve and @intellix ! :smile:

I still see this behavior when running ng lint --fix.
Here's my version:
@angular/cli: 1.0.3
node: 6.9.1
os: win32 x64
@angular/cli: 1.0.3


added notice about dependencies in README

We purposely do not list dependencies in the README, because these lists tend to get stale and outdated. If needed, you can find a list in our CI configuration: https://github.com/libratbag/libratbag/blob/master/circle.yml


Fill in some doc comments + tidy up some things

Looks good to me.

Thanks for the review, @ohanar  :)


Fix screenshots not being taken when used with xdist

@youtux thanks for the contribution!
would you mind adding a test for this issue so it's fixed forever?


Fixes rename for destructuring, named imports and default imports

Fixes #6312,  #7708 and #7024

Is there a way to open the scope of this for object assignment patterns?
interface I {
    x: number;
}

var a: I;
var x;

({ /*renameHere*/x: x } = a);

That eg. gets handled by ad916ab. I added the test case for it just now.

:+1:


Cannot increase staking amount

I setup CESS v0.5.3 okay, after setup, I see have many error on chain log:
docker logs -f chain
2024-01-31 14:32:08 Report 12D3KooWBAfrmibBjSosGKZvV8PKavTPQcZ2heUYEs1k5CPgBn3k: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting. 2024-01-31 14:32:08 💤 Idle (45 peers), best: #2049 (0xd0ba…0ac4), finalized #2046 (0xc042…592b), ⬇ 12.9kiB/s ⬆ 17.5kiB/s 2024-01-31 14:32:09 Report 12D3KooWMyVXx5S8zpZy2HNErDSEp2kmZswuv6HtLCmqbYxK2K9H: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting. 2024-01-31 14:32:09 Report 12D3KooWFvMy6z2CcNYmWYMFe5Hp1hyH4FxuhZCGk9iubtd2CwD3: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting. 2024-01-31 14:32:09 Report 12D3KooWDMEaCDzebaLKkbyc2whETN8GiVRsdhCaJByynpVp6ghf: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting. 2024-01-31 14:32:09 Report 12D3KooWQKS8KWFUAZxLaiBWW9MoPMJYupinE4DZkqixcPDntzAi: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting. 2024-01-31 14:32:09 Report 12D3KooWLjh3KJnD9xjeC8T6s95U4r5kegUH9fH9wGLsFpgbBMB5: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting. 2024-01-31 14:32:10 Report 12D3KooWKf1VxRmLJor1s3aTrLYd4Tife3Q3WLgaQBeKqhEWfuxf: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting. 2024-01-31 14:32:10 Report 12D3KooWQHFjt3fxTK2Z9qTBs2YbwiCUzHHnDvgNGUt34o4HsFaL: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting. 2024-01-31 14:32:11 Report 12D3KooWEUR8KxceqtHqoqhiWEQkyRiE5Tm45byApT2R2WxxYb7b: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting. 2024-01-31 14:32:12 ✨ Imported #2050 (0x15c6…5d36) 2024-01-31 14:32:12 ♻  Reorg on #2050,0x15c6…5d36 to #2050,0x933c…6623, common ancestor #2049,0xd0ba…0ac4 2024-01-31 14:32:12 ✨ Imported #2050 (0x933c…6623) 2024-01-31 14:32:12 Report 12D3KooWMwkt6NSxLrSoFnYENhzwm9q9nPXghVbFsngByHQv3eAK: -2147483648 to -2147483648. Reason: Genesis mismatch. Banned, disconnecting.
And bucket stat got frozen status:
cess bucket stat
XX 2024-01-31 14:32:52 your staking starting block is not found +-------------------+------------------------------------------------------+ | name              | storage miner                                        | | peer id           | 12D3KooWRHG6uBcmADD45FZTMZ5NBFXXD9vaeC3iU4usAjd9b9vA | | state             | frozen                                               | | staking amount    | 0 TCESS                                              | | staking start     | 0                                                    | | debt amount       | 0 TCESS                                              | | declaration space | 2.00 TiB                                             | | validated space   | 0 Bytes                                              | | used space        | 0 Bytes                                              | | locked space      | 0 Bytes                                              | | signature account | cXjshkdUTGasVhgBGRqdkRxxxxxxxxxxxxAt2frGSaXQrTnNUbb    | | staking account   | cXjshkdUTGasVhgBGRqdkRVWsGFxxxxxxxxxxxxxxxxxxxnNUbb    | | earnings account  | cXiupjLvU75QBLzNkqZjeS5Pzqxxxxxxxxxxx5opcBLNqvKYXEro    | +-------------------+------------------------------------------------------+
and I also cannot increment staking amount to avoid frozen state:
root@cess:~/cess-nodeadm# cess bucket increase staking 9000 XX 2024-01-31 14:34:32 Please enter the correct staking amount
Notice: I already faucet to staking account.
Please help me check,
Thank you

@toanbk This issue will be fixed in cess-nodeadm, now you can add staking in the block explorer:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Ftestnet-rpc2.cess.cloud%2Fws%2F#/extrinsics
Note that 18 zeros must be added after the staking amount，Refer to the picture below：


Fix meta-service for server integration tests

Updated CreateShardGroup to not return an error if it already exists so it's idempotent
Removed old test making sure you can't delete the default RP. You can delete it now, there was no reason to disallow it.
Wired up the UpdateRetentionPolicy functionality

cc @corylanou @dgnorton

+1


Could you provide more information in the API?

Hi Yelp,
I am using Yelp API in an Android App, it works great. The only problem is, it only provides few images and reviews of a business. I want to get all the images and reviews, can you provide these information? Just want to know, thank you!

Hey @KaiWangCanada! Could you email<EMAIL_ADDRESS>with this request? They may be able to help

Thank you, Tomelm.


Remove unused BigQuery snippet

Thanks @frankyn! It is not being used on cloudsite and there are no plans to include it in the future, so I am removing it across languages.


Replaces quality argument with options dict

This one's in response to @deepakprakash's request in #67.
It always slightly bugged me that JPEGs were "privileged citizens" and this gave me a good chance to rectify it.
Basically, I replace the JPEG-only "quality" argument in ImageSpec and ProcessedImageField with an "options" dictionary, which gets passed to PIL's Image.save() as kwargs. This opens up all of PIL's format-specific options.
Since it does remove "quality" this will break existing code so I figured I'd submit it in a pull request. (I added an exception in ProcessedImageField to help people recognize the issue). I don't know how you guys handle this kind of thing; if we agree on this direction, we may want to bump the minor version number.

I'm all for this, so +1 :)

I'm all for this as well. Love the fact that this will expose all the PIL options (I always wondered why it wasn't there in the first place).

We were probably going to bump to 1.1 anyway with the addition of the new processors, so that shouldn't be a problem.

Cool. If there's widespread agreement, maybe we should get this into develop soon. But we might want to hold off on 1.1 until the potentially backwards-incompatible changes in #66 are resolved. Not sure.

That's fine with me, we've done a great job keeping up with bugs and letting our users know that the project is alive and well. So there shouldn't be (too) much of a rush for 1.1.


Accept initializers for weights and biases in NStepLSTM

This PR is to allow arbitrary initializers in NStepLSTM.__init__ (See issue #1816).

Thank you, but @aonotas is currently working for refactoring n-step-lstm. It is better to merge this PR after @aonotas 's work will be finished.

OK, I got it.

Rebased to the current master.
Note that initializers.init_weight() defaults to the scaled normal distribution when the second argument (initial_bias) is None.

Merge the master. Many init method for Function are fixed.

Rebased to master.

Fixed to call _get_initializer for initialW. Also updated docstring.
I understand the only point of _get_initializer is to convert None to the "default" initializer, which is LeCunNormal. Is that correct?
I think it could be done in better way.
If this understanding is correct, I will make another PR to refactor.

Yes, and it is the same behavior as links.Linear.

LGTM

This PR was overwritten during the [rnn code refactor].
(https://github.com/chainer/chainer/commit/f8e99052b84375faf86bce88c2b86b57db1f6885#diff-38391e4f2027e281d76ad22b877bd019).

Runtime Info:
Chainer: 5.0.0a1
NumPy: 1.13.0
CuPy:
CuPy Version          : 5.0.0a1
CUDA Root             : /usr/local/cuda
CUDA Build Version    : 8000
CUDA Driver Version   : 9020
CUDA Runtime Version  : 8000
cuDNN Build Version   : 7102
cuDNN Version         : 7102
NCCL Build Version    : 2104

Thank you very much for your report. What you pointed out seems to be correct and should be considered as a bug.

I made an issue dealing with it (#4755). By the way, this PR was merged in v3.0.0rc1, but is not written in the release note of this version. I think we add this PR to it.


Eager percent decode

This pr solves the same problem as https://github.com/http-rs/tide/pull/757 but instead of percent-decoding lazilly (when a user queries a parameter) this does it eagerly, when a request comes in all parameters are decoded.
This has one downside, it's a bit slower. It iterates through all the Params in the request, decodes them and stores them in a new BTreeMap
But it has a couple of benefits;

It can return a 401 for a malformed request immediately without involving the users code.
The api stays the same, no need to return a param as a String instead of a &str

This pr also merges the Vec into a single BTreeMap<String, String> because it already has to iterate through and copy all the params. This makes other code a bit simpeler.

Merging the vector of parameter maps did not play well with the strip_prefix feature. The fix for that would probably have been uglier than just keeping the vec.


Pluggable permissions

Make a permission class that is easy to modify from the outside.
Sketch:
Suppose you have a documents plugin with two types of permissions pertaining to managing those documents
class DocumentPermissions extends AppSingleton {
  list =  new Permission<Document>();
  read = new Permission<Document>();
  create = new Permission<Document>();
  modify = new Permission<Document>();
}

type PermissionResult = 'allow' | 'deny' | 'pass'

getSingleton(DocumentPermissions).list
    .add({
        name: string,
        priority: number,
        check: (doc: Document, ctx: ServiceContext) => PermisisonResult
    })

Algorithm:

Sort by priority, the first check function that returns “Allow” or “Deny” instead of “Pass” wins.
If more than one has equal priority, check both; Deny wins over Allow

Desireables:

easy way to query all active rules in all active permissions with their priorities
easy recording of which rules were consulted and what their results were in the audit log
inheritance? newPermission = this.otherPermission.inherit()

Building a simple role based system on top of this
function makeRolePermission(actionName: string) {
  return {
    name: 'Role based check',
    priority: 10,
    check: async (_, ctx) =>  {
      let uid = this.getService(UserId).id;
      let roleCheck = await ctx.getService(Roles).checkRole(actionName, uid);
      return roleCheck ? 'allow' : 'deny'
    }
  }
}

Considerations:

It seems to be flexible enough for this
Do we need the check function to be able to return additional description (for audit log) ?

Building simple permissions like cancan and pundit:
permission.addRule({
  name: 'Superadmin can access everything'
  priority: 100,
  check: (_, ctx) => ctx.getService(UserAdminInfo).isSuperAdmin ? 'allow' : 'pass'
}

Pass means the rule will defer to other rules if the user is not super admin.
Considerations

Do we want to add the superadmin rule to everything?
Do we use inherits a lot to avoid adding the same rule to everything?
Will the permissions be hard to follow with inherits? (a system to query all relevant rules would be helpful)

To be able to keep track of all permissions, you could have a singleton:
app.getSingleton(Permissions).create(name: string)

You could also plug into this now
app.getSingleton(Permissions).onPermissionQueried((result, ctx) => {
  ctx.getService(AuditLogBuilder).record({permissionCheckResult: result.checkedRules})
})

More rule analysis: we can protect the check function from being directly assigned, instead create a checking object from a function with allowed return results
check: checkFn(['allow', 'deny'], fn)

That way you can detect anomalies like a high priority rule is "cutting off" an entire tree of low priority ones by never returning 'pass'

Rule ordering alternative: Instead of having numbers, create subrules as "slots" in other rules and export the slot only. Then the order is strictly determined.
export class ConfigurablePermissions extends AppSingleton {
  read = permission.create()
}

// not exported
class RealPermissions extends AppSingleton {
  private exported = app.getSingleton(ConfigurablePermissions);
  read = permission.create().add(allowAdmins, denyDeactivatedAccounts, exported.read, defaultDeny);
  write = permission.create().add(allowAdmins, denyDeactivatedAccounts, exported.write, defaultDeny);
}

// exported
export class ConfigurablePermissions extends AppSingleton {
  public read = permission.create();
  public write = permission.create();
}

Here is how a report tree might look like for a single permission
Action: document.read
"User is super admin" -> Allow
| (pass)
"Request coming from other app, not user" -> Allow
| (pass)
"Account has been deactivated" -> Deny
| (pass)
"User is member of library" -> Allow

Consideration about graying out buttons on the frontend...
Currently, our frontends are littered with code that performs the same checks that the backend does, in order to disable some input and prevent a request from happening.
For example:
if (!roles.user.includes(['editor']) { makeUploadButtonGray() }`

Instead, it would be nice if you can ask a backend service whether I can perform the action and receive a boolean answer.
myService.checkPermissions.then(perms => { if (!perms.read) makeUploadButtonGray() }`

Behind the scenes, the service would calculate the outcome of permission.create(ctx) for each method and return me the object full of boolean results.
Of course, this won't work if the answer depends on the params ("can I delete this particular set of documents?") but that's fine, since you'd get 403 as a response -- rarely enough not to annoy the users.

The role system can provide (in the rule) more details by returning
allowDescription: Promise<string>
denyDescription: Promise<string>

The results would probably look like
Allow for roles: X, Y, Z
Deny for roles: A, B

How to get a typesafe permission installation for RPC methods
class MyService {
...
}
setPermissions(MyService, {
method1: permission1
method2: permission2
});
Advantages to decorators:

typesafe params

Advantages to checking in method body

don't have to invoke the method to find permissions
can automatically build an asking service "svcName.method.askPermission`

Disadvantages

permissions a bit far away from method

Simplified "slot" design:
function basePermission(additionalRules) {
  return [startRules].concat(additionRules).concat(defaultDeny);
}

function check(ruleList) {
  return x;
}

function describe(ruleList) {
  return x;
}


Tabslet within a tabslet

Hey,
is it possible to have a tabslet within a tabslet?

Yes, you can... nested tabs at jsfiddle.

Nice! Thank you!


Mixcloud

Understand it was temperamental, but any fix for it?

@SimplicityGuy had a fork with a bunch of commits to SoundScrape, but it seems that he deleted/made private the repo?

I guess he addressed a lot of outstanding issues.

@isavcic the PR is still there


fix(reporter): Fix a version clash with YAML libraries

The recent update of kaml dragged in a version of snakeyaml that was incompatible with jRuby and thus caused the generation of AsciiDoc reports to fail. Fix this by excluding the kaml library for the Reporter worker.

Maybe also taking https://github.com/gradlex-org/jvm-dependency-conflict-resolution into use could have helped here...


F12 and Ctrl+Click inconsistency in navigating to markdown links

Type: Bug
I have created an internal VsCode extension that overrides the definitionProvider for markdown links and images  or
When I use F12, everything works as expected and my extension definiton provider is used correctly.
When I use CTRL+CLICK, it usually uses the default markdown functionality.
But sometimes it will use my extension.  If I CTRL+CLICK a file as soon as I open VsCode it uses my extension.  But if I want a second or two, then it will use the default provider.
I have all extensions disabled except for my custom extension.
I would expect F12 and CTRL+CLICK to do the same thing.
VS Code version: Code 1.89.0 (Universal) (b58957e67ee1e712cebf466b995adf4c5307b2bd, 2024-05-01T02:10:10.196Z)
OS version: Darwin arm64 22.4.0
Modes:

System Info

Item
Value

CPUs
Apple M1 Max (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
3, 3, 2

Memory (System)
32.00GB (1.44GB free)

Process Argv
--crash-reporter-id 27c775e7-f472-49da-955a-54caea22e649

Screen Reader
no

VM
0%

Extensions: none
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
tftest:31042121
vstes627:30244334
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
f3je6385:31013174
pythonprt:31039817
dwnewjupytercf:31039676

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.89.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

Yes same issue when I update. It has never worked correctly since I build my extension.

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


Adding Network security perimeter common types [v5]

ARM (Control Plane) API Specification Update Pull Request

[!TIP]
Overwhelmed by all this guidance? See the Getting help section at the bottom of this PR description.

PR review workflow diagram
Please understand this diagram before proceeding. It explains how to get your PR approved & merged.

Purpose of this PR
What's the purpose of this PR? Check the specific option that applies. This is mandatory!

[ ] New resource provider.
[ ] New API version for an existing resource provider. (If API spec is not defined in TypeSpec, the PR should have been created in adherence to OpenAPI specs PR creation guidance).
[ ] Update existing version for a new feature. (This is applicable only when you are revising a private preview API version.)
[ ] Update existing version to fix OpenAPI spec quality issues in S360.
[x] Other, please clarify:

Adding common types for Network Security Perimeters so that they may be more widely adopted or implemented in a consistent fashion

Due diligence checklist
To merge this PR, you must go through the following checklist and confirm you understood
and followed the instructions by checking all the boxes:

[x] I confirm this PR is modifying Azure Resource Manager (ARM) related specifications, and not data plane related specifications.
[x] I have reviewed following Resource Provider guidelines, including
ARM resource provider contract and
REST guidelines (estimated time: 4 hours).
I understand this is required before I can proceed to the diagram Step 2, "ARM API changes review", for this PR.

Additional information

 Viewing API changes
For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.

Suppressing failures
If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
suppressions guide to get approval.

Getting help

First, please carefully read through this PR description, from top to bottom. Please fill out the Purpose of this PR and Due diligence checklist.
To understand what you must do next to merge this PR, see the Next Steps to Merge comment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state.
For guidance on fixing this PR CI check failures, see the hyperlinks provided in given failure
and https://aka.ms/ci-fix.
For help with ARM review (PR workflow diagram Step 2), see https://aka.ms/azsdk/pr-arm-review.
If the PR CI checks appear to be stuck in queued state, please add a comment with contents /azp run.
This should result in a new comment denoting a PR validation pipeline has started and the checks should be updated after few minutes.
If the help provided by the previous points is not enough, post to https://aka.ms/azsdk/support/specreview-channel and link to this PR.

[0]     Tim Lovell-Smith reacted to your message:

From: Mike Kistler @.>
Sent: Friday, May 3, 2024 1:30:31 PM
To: Azure/azure-rest-api-specs @.>
Cc: Tim Lovell-Smith @.>; Author @.>
Subject: Re: [Azure/azure-rest-api-specs] Adding Network security perimeter common types [v5] (PR #28958)
@mikekistler requested changes on this pull request.
I ran the Spectral linter on this file and it flagged some structural an Azure style issues.

In specification/common-types/resource-management/v5/networksecurityperimeter.jsonhttps://github.com/Azure/azure-rest-api-specs/pull/28958#discussion_r1589168404:

@@ -0,0 +1,337 @@
+{

"swagger": "2.0",
"info": {
"version": "2023-09-15-preview",
"title": "Common types for network security perimeters based on a common API specification"
},

OpenAPI requests a paths element, but it can be empty.
⬇ Suggested change

},

},
"paths": {},

In specification/common-types/resource-management/v5/networksecurityperimeter.jsonhttps://github.com/Azure/azure-rest-api-specs/pull/28958#discussion_r1589173966:

 ],

 "x-ms-enum": {

   "name": "PublicNetworkAccess",

   "modelAsString": true

 }

},
"NetworkSecurityPerimeterConfigurationListResult": {

 "description": "Result of a list NSP (network security perimeter) configurations request.",

 "type": "object",

 "properties": {

   "value": {

     "description": "Array of network security perimeter results.",

     "readOnly": true,

     "type": "array",

     "items": {

       "$ref": "#/definitions/NetworkSecurityPerimeterConfiguration"

I think you need a close-curly here.
⬇ Suggested change

       "$ref": "#/definitions/NetworkSecurityPerimeterConfiguration"

       "$ref": "#/definitions/NetworkSecurityPerimeterConfiguration"

     }

In specification/common-types/resource-management/v5/networksecurityperimeter.jsonhttps://github.com/Azure/azure-rest-api-specs/pull/28958#discussion_r1589182643:

         "description": "An email address",

         "type": "string"

       }

     },

     "phoneNumbers": {

       "description": "Phone numbers for outbound rules",

       "type": "array",

       "readOnly": true,

       "items": {

         "description": "A phone number",

         "type": "string"

       }

     }

   }

 }

}

And I think this curly is extraneous.
⬇ Suggested change

}

In specification/common-types/resource-management/v5/networksecurityperimeter.jsonhttps://github.com/Azure/azure-rest-api-specs/pull/28958#discussion_r1589186617:

   "Enabled",

   "Disabled",

   "SecuredByPerimeter"

 ],

 "x-ms-enum": {

   "name": "PublicNetworkAccess",

   "modelAsString": true

 }

},
"NetworkSecurityPerimeterConfigurationListResult": {

 "description": "Result of a list NSP (network security perimeter) configurations request.",

 "type": "object",

 "properties": {

   "value": {

     "description": "Array of network security perimeter results.",

     "readOnly": true,

readOnly: true has no meaning / value in response-only schemas.

In specification/common-types/resource-management/v5/networksecurityperimeter.jsonhttps://github.com/Azure/azure-rest-api-specs/pull/28958#discussion_r1589188968:

       "description": "Severity of the issue.",

       "enum": [

         "Warning",

         "Error"

       ],

       "type": "string",

       "readOnly": true,

       "x-ms-enum": {

         "name": "Severity",

         "modelAsString": true

       }

     },

     "description": {

       "description": "Description of the issue",

       "type": "string",

       "readonly": true

Case matters.
⬇ Suggested change

       "readonly": true

       "readOnly": true

In specification/common-types/resource-management/v5/networksecurityperimeter.jsonhttps://github.com/Azure/azure-rest-api-specs/pull/28958#discussion_r1589190563:

       "description": "Direction of Access Rule",

       "enum": [

         "Inbound",

         "Outbound"

       ],

       "type": "string",

       "x-ms-enum": {

         "name": "NspAccessRuleDirection",

         "modelAsString": true

       }

     },

     "addressPrefixes": {

       "description": "Address prefixes in the CIDR format for inbound rules",

       "type": "array",

       "items": {

         "description": "An IP adress prefix (CIDR) for inbound rules",

⬇ Suggested change

         "description": "An IP adress prefix (CIDR) for inbound rules",

         "description": "An IP address prefix (CIDR) for inbound rules",

In specification/common-types/resource-management/v5/networksecurityperimeter.jsonhttps://github.com/Azure/azure-rest-api-specs/pull/28958#discussion_r1589191727:

       "$ref": "#/definitions/NetworkSecurityPerimeterConfiguration"

     },

     "nextLink": {

       "description": "The link used to get the next page of results.",

       "type": "string",

       "format": "uri",

       "readOnly": true

     }

   }

 },

 "NetworkSecurityPerimeterConfiguration": {

   "description": "Network security perimeter (NSP) configuration resource",

   "type": "object",

   "allOf": [

     {

       "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"

Relative links should be relative to the current file.
⬇ Suggested change

       "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"

       "$ref": "types.json#/definitions/ProxyResource"

In specification/common-types/resource-management/v5/networksecurityperimeter.jsonhttps://github.com/Azure/azure-rest-api-specs/pull/28958#discussion_r1589199724:

 "x-ms-enum": {

   "name": "PublicNetworkAccess",

   "modelAsString": true

 }

It would be nice to include "values" in the "x-ms-enum" with a description for each value -- these descriptions will then be shown in the generated REST API Docs. See the autorest documentationhttps://github.com/Azure/autorest/tree/main/docs/extensions#x-ms-enum for the syntax of the "values" field in "x-ms-enum".
There are other x-ms-enums in this file that would also benefit from added descriptions on the values.
—
Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-rest-api-specs/pull/28958#pullrequestreview-2038090626, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAUWB44NGC6VENDD4AWPN73ZAOGPPAVCNFSM6AAAAABHERY7KSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDAMZYGA4TANRSGY.
You are receiving this because you authored the thread.Message ID: @.***>

Big thanks for all the feedback @mikekistler

@markcowl

This looks good. I want to have this modeled in TypeSpec quickly.
(heart) this

Are there standard operations that should be implemented? Is there a specific resource type, or do services implement this resource under their own namespaces?
I can only recall it being standard REST verbs at the moment..., I'll try to point you towards the specs I have knowledge of offline.

Also, there is an ask for ARM to provide PATCH schema for these common types, probably too early to do this until Roopesh decides how / namign convention
My hope is that it won't need a separate PATCH schema, and can just use the mutability annotations. Do you foresee any issues?
In my reviewing so far, I don't recall RPs modeling separate PATCH schema for these resources. I could be forgetting.

/azp run


Lab 1,2,3 cleanup

@hashkrish sir the lab1 is outdated, it does not contain the question:
3.  ncal, date, etc
4. brace expansion

@hashkrish sir the lab1 is outdated, it does not contain the question: 3. ncal, date, etc 4. brace expansion

Added in https://github.com/hashkrish/cs1102-notes/pull/2/commits/e27e3a6e4138c57f7cff5ef16aec57f9f2152306


Pipeline resource output

Expected Behavior
I'm using image pipeline resource. The pipelineresource image url  was set to the gradle build output image after successful build in the task. Expecting the new image in the docker repository url (which is set in the  pipelineresource image url ).
Actual Behavior
No errors in the pipelinerun log. However, don't see the new image in the docker repository.
Steps to Reproduce the Problem

Set the resource in pipelinerun as shown below.

resources:
- name: docker-image
resourceSpec:
type: image
params:
- name: url
value: /:test `

Use resource as shown below  in the pipeline.
  resources:    outputs:      - name: docker-image        resource: docker-image
In the task script, set the built image to the resource image url.
script: |        gradle  myapp:docker -x test        docker tag myapp:latest  $(resources.outputs.docker-image.url)

4 Check the pipelinerun log for any errors. No errors found.

Goto the docker repository and check whether the image is available.

Additional Info

Kubernetes version: 1.17
Tekton Pipeline version: .11

Thanks!

Hey @2020testuser ! Unfortunately the image resource doesn't really do very much (https://github.com/tektoncd/pipeline/blob/master/docs/resources.md#image-resource) - i.e. it doesn't push the image
This is one reason we're not very happy with the current state of the image pipelineresource, you can see a bit more about it in https://github.com/tektoncd/pipeline/blob/master/docs/migrating-v1alpha1-to-v1beta1.md#replacing-an-image-resource and in this WIP doc https://github.com/tektoncd/pipeline/blob/16eea0e6dd6cb0920ac658bb493aa72fa8aa8e79/docs/migrating-v1alpha1-to-v1beta1.md#replacing-pipelineresources-with-tasks

@bobcatfish - Thanks for the links!
Could you please confirm on the below?
So currently we don't have an option to push the image to docker repository from a Tekton task if we use non-kaniko image (Ex: maven image, gradle image etc.) for build? I don't want to use docker push  command to push the image from my task script.
If yes for above, this would be a tekton limitation if I use non-kaniko (or non-buildah or other similar build components) for build. Is than any workaround or solution?
Thanks!

hey @2020testuser ! You can use anything that can push to a docker repo from a Tekton Task - kaniko is one option but you can use other tools as well.
Tekton doesn't provide anything to do the pushing for you.

@bobcatfish -  Thanks for the confirmation!
I'm using docker login in the task script b4 the docker push command. So, forced to pass the docker credentials in the script. If I have a service account with my docker credentials/secret and include in my task , the docker push command doesn't work. I'm forced to explicitly login using the docker login command b4 the docker push command.
Let me know if you have any options to resolve the above . I need to look for some other way to build and push the image then.
Thanks!


Update startup.md

Changed the link to use the correct hash @Rick-Anderson

Internal previews

📄 File
🔗 Preview link

aspnetcore/blazor/fundamentals/startup.md
ASP.NET Core Blazor startup

Thanks @sammychinedu2ky! 🚀 ... BTW, I handle the Blazor docs, so you can ping me for anything in the Blazor node.

Alright cool thanks

@guardrex you can ping @sammychinedu2ky  for any PR's he can do to help you.


Please add transparent spotlight mouse

Description of the new feature / enhancement
Ability to make the spotlight of find my mouse fully transparent.
Scenario when this would be used?
During screen recording or presentation, transparent spotlight ensures clear appearance of the spotted area.
Supporting information
No response

Can you give some more info here? Why not disable find my mouse instead of the invisible spotlight? /needinfo

@stefansjfw

Can you give some more info here? Why not disable find my mouse instead of the invisible spotlight? /needinfo

Actually, it is a good feature, useful when screen recording or remote presentation.
fully transparent spotlight helps clearly seen what is inside the spot area.

/dup #15512


UFuncTypeError: ufunc 'add' did not contain a loop with signature matching types (dtype('<U26'), dtype('int64')) -> None

thanks a lot for this package. It is very useful for me,
I am trying to follow a tutorial in hackernoon to select features from a dataset
When I execute the below code, I get an error like as shown below
from featurewiz import featurewiz
features, train = featurewiz(ord_train_t,y_train, corr_limit=0.7, verbose=2)

UFuncTypeError: ufunc 'add' did not contain a loop with signature
matching types (dtype('<U26'), dtype('int64')) -> None

However, I verified the dtypes for all my train data (ord_train_t) and target (y_train)
They all are of int64 and float64 types (as shown below) Don't understand why there is still an error. Even after converting float64 to int64, I get the same error. I also tried ord_train_t.isna().sum(), there are no NA's
[![enter image description here][5]][5]
Find below the full error
---------------------------------------------------------------------------
UFuncTypeError                            Traceback (most recent call last)
C:\Users\abcde1\AppData\Local\Temp/ipykernel_1888/1114387036.py in <module>
      1 from featurewiz import featurewiz
      2
----> 3 features, train = featurewiz(ord_train_t,y_train, corr_limit=0.7, verbose=2)

~\Anaconda3\lib\site-packages\featurewiz\featurewiz.py in featurewiz(dataname, target, corr_limit, verbose, sep, header, test_data, feature_engg, category_encoders, dask_xgboost_flag, nrows, **kwargs)
   1027     ##################    L O A D    T E S T   D A T A      ######################
   1028     dataname = remove_duplicate_cols_in_dataset(dataname)
-> 1029     dataname = remove_special_chars_in_names(dataname, target, verbose=1)
   1030     if dask_xgboost_flag:
   1031         train = remove_special_chars_in_names(train, target)

~\Anaconda3\lib\site-packages\featurewiz\featurewiz.py in remove_special_chars_in_names(df, target, verbose)
   3581     else:
   3582         sel_preds = [x for x in list(df) if x not in target]
-> 3583         df = df[sel_preds+target]
   3584     orig_preds = copy.deepcopy(sel_preds)
   3585     #####   column names must not have any special characters #####

~\Anaconda3\lib\site-packages\pandas\core\ops\common.py in new_method(self, other)
     67         other = item_from_zerodim(other)
     68
---> 69         return method(self, other)
     70
     71     return new_method

~\Anaconda3\lib\site-packages\pandas\core\arraylike.py in __radd__(self, other)
     94     @unpack_zerodim_and_defer("__radd__")
     95     def __radd__(self, other):
---> 96         return self._arith_method(other, roperator.radd)
     97
     98     @unpack_zerodim_and_defer("__sub__")

~\Anaconda3\lib\site-packages\pandas\core\series.py in _arith_method(self, other, op)
   5524
   5525         with np.errstate(all="ignore"):
-> 5526             result = ops.arithmetic_op(lvalues, rvalues, op)
   5527
   5528         return self._construct_result(result, name=res_name)

~\Anaconda3\lib\site-packages\pandas\core\ops\array_ops.py in arithmetic_op(left, right, op)
    222         _bool_arith_check(op, left, right)
    223
--> 224         res_values = _na_arithmetic_op(left, right, op)
    225
    226     return res_values

~\Anaconda3\lib\site-packages\pandas\core\ops\array_ops.py in _na_arithmetic_op(left, right, op, is_cmp)
    164
    165     try:
--> 166         result = func(left, right)
    167     except TypeError:
    168         if is_object_dtype(left) or is_object_dtype(right) and not is_cmp:

~\Anaconda3\lib\site-packages\pandas\core\computation\expressions.py in evaluate(op, a, b, use_numexpr)
    237         if use_numexpr:
    238             # error: "None" not callable
--> 239             return _evaluate(op, op_str, a, b)  # type: ignore[misc]
    240     return _evaluate_standard(op, op_str, a, b)
    241

~\Anaconda3\lib\site-packages\pandas\core\computation\expressions.py in _evaluate_standard(op, op_str, a, b)
     67     if _TEST_MODE:
     68         _store_test_result(False)
---> 69     return op(a, b)
     70
     71

~\Anaconda3\lib\site-packages\pandas\core\roperator.py in radd(left, right)
      7
      8 def radd(left, right):
----> 9     return right + left
     10
     11

UFuncTypeError: ufunc 'add' did not contain a loop with signature matching types (dtype('<U26'), dtype('int64')) -> None

You have made an error in your input: your code should be modified as follows:
from featurewiz import featurewiz
features, train = featurewiz(ord_train_t,target, corr_limit=0.7, verbose=2)

Please read the documentation right,
Ram

@AutoViML - Yes, I did send the entire dataframe as is...and sent target column seperately as well...Should I change it to 'trainm' instead of 'train'? Is this what you meant?

Your mistake was sending the target as a dataframe and not as the name of the column in the code snippet below:
features, trainm = featurewiz(train,target, corr_limit=0.7, verbose=2)

Hope you can see the examples in the examples folder here and use that notebook to form your own pipeline.
https://github.com/AutoViML/featurewiz/tree/main/examples
AutoViML


[IOS Related ] Receiving remote notifications stopped working after upgrading to "react-native: 0.71.1"

According to documentation these methods:
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
  [RNNotifications didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
}
- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error {
  [RNNotifications didFailToRegisterForRemoteNotificationsWithError:error];
}
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler {
  [RNNotifications didReceiveBackgroundNotification:userInfo withCompletionHandler:completionHandler];
}

being moved from AppDelegate.m to AppDelegate.mm file.
But unfortunately none of methods being called.
I've tried to disable new React architecture by calling:
USE_FABRIC=0 RCT_NEW_ARCH_ENABLED=0 pod install
It doesn't help.
If I downgrade to react-native: 0.67.2, it works.
Thanks for help in advance!

Same issue for me as well !1006  didn't help out

Maybe these discussions are relevant:
https://github.com/react-native-push-notification/ios/issues/388#issuecomment-1387194321
https://github.com/zo0r/react-native-push-notification/issues/2344
Currently I have no projects with enabled push notifications, so I'm not able to test the suggestions. Hope them helps.

@npopovicvega, Maybe these discussions are relevant: react-native-push-notification/ios#388 (comment) zo0r/react-native-push-notification#2344
Currently I have no projects with enabled push notifications, so I'm not able to test the suggestions. Hope them helps.

@passengerV  Thanks for suggestion :) , going to try these things and will let you know

@npopovicvega how did you go?


How to disable telemetry server at build time is not clear for someone not an experienced golang developer

I recently switched from a LAMP+Wordpress stack to Caddy+Hugo and am loving the experience. However, I'm annoyed by the telemetry warnings:
2018/11/17 20:01:48 [WARNING] Sending telemetry (attempt 1): telemetry server replied with unknown content-type: 'text/plain; charset=utf-8' and HTTP 502 Bad Gateway - backing off and retrying

I have no objection to sending telemetry data in principal. But since I'm experimenting with enabling a custom plugin to blacklist IP addresses I decided to try disabling the telemetry feature, to reduce that noise, without success. The documentation at https://caddyserver.com/docs/telemetry seems to presume a knowledge of how to build  Golang projects that may not be entirely reasonable. I resorted to editing caddy/caddymain/run.go:
diff --git a/caddy/caddymain/run.go b/caddy/caddymain/run.go
index e17fdde..ef84b70 100644
--- a/caddy/caddymain/run.go
+++ b/caddy/caddymain/run.go
@@ -525,4 +525,4 @@ var (
 )

 // This variable defines whether telemetry is enabled in Run.
-var EnableTelemetry = true
+var EnableTelemetry = false

Yeah, that is how to go about it. The other option is to disable telemetry when downloading from https://caddyserver.com/download.
Currently you cannot disable telemetry at startup/runtime, only in the source before building.

If building from source, you can set  enableTelemetry to false to turn it off.

I was confused by that sentence in part because it followed the paragraph that talked about the -disabled-metrics run-time flag. Coupled with the fact it can be disabled when downloading a custom build suggested to me that the enableTelemetry mention was a reference to doing the Go equivalent of cc -DenableTelemetry=0. It might be worth rewording that sentence along the following lines:

If building from source you can edit caddy/caddymain/run.go changing var EnableTelemetry = true to false.

Or not if this is just a case of my reading comprehension suffering due to being slightly inebriated at the time. :smile:


Add reference hashes

Adds reference images and a CSV file of reference hashes for those images.
Fixes https://github.com/woltapp/blurhash/issues/38
The hashes were generated from the C implementation of the BlurHash encoder, using the following bash commands:
TESTIMAGES="SomeDirectory/Images/*"

for f in $TESTIMAGES; do for j in {1..8}; do for i in {1..8}; do echo "\"$(basename -- $f)\",$j,$i,\"$(./blurhash $j $i $f)\""; done; done; done

I'm not sure the algorithm is specified quite tightly enough to warrant creating references at the moment. Colour space conversions will affect the result slightly, and there is no specification of what exactly it should be, nor have I checked thoroughly that all implementations are strict enough about it.
The whole algorithm is all about rough approximations anyway, and I am not sure if such strictness is even desirable.


Create dataset loader for NusaParagraph Topic

NusaCatalogue: https://indonlp.github.io/nusa-catalogue/card.html?nusa_paragraph_topic

Dataset
nusa_paragraph_topic

Description
NusaParagraph is a human-written paragraph datasets which covers 10 local languages in Indonesia. The dataset consists of around 50,000 paragraphs each with aroung 100 tokens resulting in a total of 6M tokens. The dataset is labelled with topic, emotion, and paragraph type.

License
CC-BY-NC-SA 4.0

Closed in https://github.com/IndoNLP/nusa-crowd/pull/359


use orc v1.7

Checklist before submitting

[x] Did you read the contributor guide?
[ ] Did you update any affected documentation?
[ ] Did you write any tests to validate this change?

Description
Update orc pin to 1.7. Requires - open-ce/orc-feedstock#1
Review process to land

All tests and other checks must succeed.
At least one maintainer must review and approve.
If any  maintainer requests changes, they must be addressed.

Force merging this one.


[WIP] Treelet Reorder Optimization

This PR is a work in progress for optimizing treelet reordering through multiple dispatches and a faster inner loop.

Do the samples still run with your changes on all IHVs?

I plan to remove your commits with a rebase before merging this PR, so the sample will not be included.
The samples still run on Intel and NVIDIA, still waiting on an AMD card.

Closing this PR for a cleaned up version that will go up tomorrow.


TypeError: Object # has no method 'resolve'

Otherwise, I would really like to use it!

@mightyiam try getting verb again by doing the following:

for global

$ npm uninstall -g verb
$ npm clear cache -g
$ npm i -g verb

for local

$ npm uninstall verb
$ npm clear cache
$ npm i verb

yeah, this should work. we got this fixed earlier. let us know if you have any more issues

Thank you!


W3D1T2 Fix a bug in a final demo

Inhibitory neurons were not simulated and not shown due to a typo

Fixed in #470 — thanks!


Error reading

Currently testing the tool but getting always the failure "ERRO[0028] Error reading progress: read |0: file already closed" independent of the source. Is there any way to get more log information ?

@cohl790 Can you try the latest image?  The latest images actually ship a full output of the command so would be useful if you can share that.

Great, thanks I can now see that it’s a blocked session on port 902 to the corresponding ESX server
Von: Mohammed Naser @.>
Antworten an: vexxhost/migratekit @.>
Datum: Dienstag, 9. Juli 2024 um 02:39
An: vexxhost/migratekit @.>
Cc: "Ohliger, Christoph" @.>, Mention @.***>
Betreff: Re: [vexxhost/migratekit] Error reading (Issue #4)
@cohl790 Can you try the latest image? The latest images actually ship a full output of the command so would be useful if you can share that.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Awesome.  Did it get unblocked afterwards?

I am on the way and will update this thread
Von: Mohammed Naser @.>
Antworten an: vexxhost/migratekit @.>
Datum: Dienstag, 9. Juli 2024 um 17:33
An: vexxhost/migratekit @.>
Cc: "Ohliger, Christoph" @.>, Mention @.***>
Betreff: Re: [vexxhost/migratekit] Error reading (Issue #4)
Awesome. Did it get unblocked afterwards?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Great tool ! it works
Von: Mohammed Naser @.>
Antworten an: vexxhost/migratekit @.>
Datum: Dienstag, 9. Juli 2024 um 17:33
An: vexxhost/migratekit @.>
Cc: "Ohliger, Christoph" @.>, Mention @.***>
Betreff: Re: [vexxhost/migratekit] Error reading (Issue #4)
Awesome. Did it get unblocked afterwards?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Awesome, so happy to hear.  I've closed it.  :)


BPF Recorder doesn't work on Rancher Desktop

What happened:
BPF Recorder container doesn't start
What you expected to happen:
BPF Recorder container is running
How to reproduce it (as minimally and precisely as possible):
I use Rancher Desktop for Mac OS v 1.16.0
Anything else we need to know?:
Environment:
Hardware OS: macOS Sonoma 14.5
Virtual Environment: Rancher Desktop v 1.16.0 - Kubernetes version 1.25, Container Engine dockerd (Moby)
$ rdctl shell
# uname -r
6.6.51-0-virt
$ kubectl logs spod-gpxnq -c bpf-recorder -n security-profiles-operator
libbpf: prog 'sys_enter': relo #0: patched insn #0 (LDX/ST/STX) off 8 -> 8
libbpf: prog 'sys_enter': relo #1: <byte_off> [316] struct task_struct.nsproxy (0:125 @ offset 2664)
libbpf: prog 'sys_enter': relo #1: matching candidate #0 <byte_off> [160] struct task_struct.nsproxy (0:124 @ offset 2584)
libbpf: prog 'sys_enter': relo #1: patched insn #5 (ALU/ALU64) imm 2664 -> 2584
libbpf: prog 'sys_enter': relo #2: <byte_off> [566] struct nsproxy.mnt_ns (0:3 @ offset 24)
libbpf: prog 'sys_enter': relo #2: matching candidate #0 <byte_off> [511] struct nsproxy.mnt_ns (0:3 @ offset 24)
libbpf: prog 'sys_enter': relo #2: patched insn #13 (ALU/ALU64) imm 24 -> 24
libbpf: prog 'sys_enter': relo #3: <byte_off> [573] struct mnt_namespace.ns.inum (0:0:2 @ offset 16)
libbpf: prog 'sys_enter': relo #3: matching candidate #0 <byte_off> [3664] struct mnt_namespace.ns.inum (0:0:2 @ offset 16)
libbpf: prog 'sys_enter': relo #3: patched insn #19 (ALU/ALU64) imm 16 -> 16
libbpf: map 'events': created successfully, fd=8
libbpf: map 'child_pids': created successfully, fd=9
libbpf: map 'active_pids': created successfully, fd=10
libbpf: map 'mntns_syscalls': created successfully, fd=11
libbpf: map 'recorder.rodata': created successfully, fd=12
libbpf: map 'recorder.bss': created successfully, fd=13
libbpf: prog 'file_open': failed to find kernel BTF type ID of 'file_open': -3
libbpf: prog 'file_open': failed to prepare load attributes: -3
libbpf: prog 'file_open': failed to load: -3
libbpf: failed to load object 'recorder.bpf.o'
E1005 07:18:18.487778   13933 main.go:238] "running security-profiles-operator" err="load self-test: load bpf object: failed to load BPF object: no such process" logger="setup"

It seems that eBPF is not supported. It supports only the following Linux distributions: Ubuntu/Debian/Fedora/Flatcar.


Update ai.ts

Updated the OpenAI's response handling to pick the right handler based on the streaming flag. This is done through an interface function which has 2 separate implementations: 1 for handling streaming responses and 1 for handling non-streaming responses. And the responseHandler which is in charge of assigning the appropriate function implmenetation based on the value of the streaming flag.
Fixes #227

@humphd Thanks for the feedback. Sorry I've been a bit busy with all the end of the semester work, I will address all the points you provided in your feedback once I am done with the school work.


Rename Order to Ordering for MsgRegisterInterchainAccount.

To align with name used in channel proto types w.r.t order.

Description
https://github.com/cosmos/ibc-go/pull/5671#discussion_r1461132185
closes: #XXXX
Commit Message / Changelog Entry
nit: rename order to ordering to align with naming used in channel proto types.

see the guidelines for commit messages. (view raw markdown for examples)

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Targeted PR against the correct branch (see CONTRIBUTING.md).
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards and Go style guide.
[ ] Wrote unit and integration tests.
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/).
[ ] Added relevant godoc comments.
[ ] Provide a commit message to be used for the changelog entry in the PR description for review.
[ ] Re-reviewed Files changed in the Github PR explorer.
[ ] Review Codecov Report in the comment section below once CI passes.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (59ac9b2) 81.16% compared to head (7459068) 81.16%.
Report is 5 commits behind head on main.

Additional details and impacted files

@@           Coverage Diff           @@
##             main    #5674   +/-   ##
=======================================
  Coverage   81.16%   81.16%
=======================================
  Files         199      199
  Lines       15278    15278
=======================================
  Hits        12401    12401
  Misses       2408     2408
  Partials      469      469

Files
Coverage Δ

...7-interchain-accounts/controller/keeper/account.go
81.25% <100.00%> (ø)

...nterchain-accounts/controller/keeper/msg_server.go
93.47% <100.00%> (ø)

...ps/27-interchain-accounts/controller/types/msgs.go
100.00% <100.00%> (ø)


Semantic UI dropdown with different input icon or without icon

I am rendering dropdown search input like this:

   Foo
   <select name="foo" class="ui search dropdown">
     <option value="">Choice</option>
   </select>

It creates standard SemanticUI dropdown input.
Is there possibility to tell Semantic to not render any icon or to render different icon in the input field?

If you are required to use a SELECT element, I don't think that would be possible without manually overriding the CSS. You can put an icon beside the SELECT element but not inside it. If you use a combination of a hidden INPUT and DIVs for the main element and options, you can add your own  icon to the main element.

There is solution as this same question is answered on Stackoverflow:
http://stackoverflow.com/a/40849515/5426743
By adding non-existing icon class to  within element. (using divs rather than select is required, I think)


Code for TTA

I sort of understand the concept written in the paper but I can't quite figured out how to make that into code.
Is there already the code somewhere and I just didn't look hard enough?
Or can someone provide the code for equation (3)?
Thank you

Hi, we have not provided the code for TTA. We may provide the code together with the checkpoint of the o365 pre-trained model in the future.


tessel logs

Current status: no such command
Spec: T2 CLI spec
tessel logs [-n ] [-t | --tail] [stdout | stderr]
Lists the recent activity and console.logs (100 lines default) from the running program
$ tessel logs --help
> Usage: tessel logs [-n <lines>] [-t | --tail] [-o <stdout | stderr>] [--help]
>  -n:			the number of lines of log to display
>  -m|--monitor:	continuously display the logs as they are updated
>  stdout|stderr:	display the logs from the specified output stream
$

$ tessel logs -n 2
> Bulbasaur is running index.js
> #[03/31/2015 18:10:28] This is my logggggg
> #[03/31/2015 18:10:29] Look at it!
$

$ tessel logs --tail
> Bulbasaur is running index.js
> #[03/31/2015 18:10:28] This is my logggggg
> #[03/31/2015 18:10:29] Look at it!
> #[03/31/2015 18:11:29] Look at it!
> #[03/31/2015 18:12:29] Look at it!
> #[03/31/2015 18:13:29] Look at it!
> #[03/31/2015 18:14:29] Look at it!
> #[03/31/2015 18:15:29] Look at it!
> #[03/31/2015 18:16:29] Look at it!
> #[03/31/2015 18:17:29] Look at it!
> #[03/31/2015 18:18:29] Look at it!
$

$ tessel logs -t stderr
> Bulbasaur is running index.js
> #[03/31/2015 18:10:28] Error: index.js:146 - index out of bounds yo
$

The -o in the usage message is old. Needs to be removed.

Removed.

@sidwarkd are you still working on this task?

I've removed @sidwarkd as the assignee because we haven't heard from him lately. I think this is a non-trivial feature to add: you'll have to somehow overwrite console.log to write to a file whose lifespan is the same as the Node process, then add a command to the CLI to read the contents of that file.

Id like to propose additional functionality.
Functionality: Log the boot process
Example interface: t2 logs --boot
The current method to log the boot process is cumbersome. This is due to fact that it happens really early and really fast:

know the /dev/serial/whatever location of your tessel

enter the command line for screen -L
connect the tessel via usb
hit enter as fast as you can

I wrote a tool that provided some relief* but implementing this in the CLI would be awesome. It can also help when providing support.
*I still had to switch between terminals :sweat_smile:

@johnnyman727 I'll look into overwriting console.log, any ideas on capping the size?

@dbuentello that idea seems reasonable to me – sounds like this is something you've needed in the past?
I don't think we need to worry overmuch about the size of the logs


Files not removed from temp on duplicate file check

https://github.com/bboud/buckette/commit/eace504cf75caba27115382dd5a0a2c237d445a3


Tutorial?

Im very new with this stuff and I was wondering if theres any chance of you dropping a tutorial on how this works and maybe the setup process?

Yeah sure! I'll make a guide tomorrow so people would know how to set it up. I'll also make binaries for easier setup.


(RVV-B0008) Suspicious assignment of range-loop vars detected

Description
Range variables in a loop are reused at each iteration. This rule warns when assigning the address of the variable, passing the address to append() or using it in a map. For example:
Occurrences
There are 2 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/Gaukas/seed2sdp/issue/RVV-B0008/occurrences/

The code seems to be working in the current version. But per guidelines, we may consider copying the range variable upon finding a match.


I encountered a problem in preprocessing.py

When I run gen_anchors.py or train.py, it occurs ：
Traceback (most recent call last):
File "gen_anchors.py", line 5, in
from preprocessing import parse_annotation
File "/home/liuweihuang/code/keras-yolo2/preprocessing.py", line 7, in
from keras.preprocessing import Sequence
ImportError: cannot import name 'Sequence‘
My version of keras is 2.1.5 and I change Sequence to sequence,
then it occurs :
Traceback (most recent call last):
File "gen_anchors.py", line 5, in
from preprocessing import parse_annotation
File "/home/liuweihuang/code/keras-yolo2/preprocessing.py", line 60, in
class BatchGenerator(sequence):
TypeError: module.init() takes at most 2 arguments (3 given)
How can I run it?

Try using the latest Keras.

I also encountered the same problem, how should I solve it?


about --infer_time.   How to get inference time?

I found this sentence in the train log file:   Generate lable finished(sec_per_example:0.0261 second).Does this mean inference time?I really hope you can help me answer this question,thank you.

Hi there,
I have the same doubts too. Have you find out the meaning of the Generate lable finished(sec_per_example:0.0261 second)?

你好， 我也有同样的疑问。你找出其中的含义了吗Generate lable finished(sec_per_example:0.0261 second)？

Sorry, I don't have a clear answer either. But I presume this is inference time.

Hi @strugglingguoguo and anyone who have the same concerns
I have checked the codebase
Based on: Line 94 to 95 of tools/eval_utils/eval_utils.py
sec_per_example = (time.time() - start_time) / len(dataloader.dataset)
logger.info('Generate label finished(sec_per_example: %.4f second).' % sec_per_example)

You can see that sec_per_example is the total time taken / total data
Hence, it is indeed the inference speed
Note that the inference speed does not include the visualization, just the model.forward() and label generation

Hi @strugglingguoguo and anyone who have the same concerns
I have checked the codebase Based on: Line 94 to 95 of tools/eval_utils/eval_utils.py
sec_per_example = (time.time() - start_time) / len(dataloader.dataset)
logger.info('Generate label finished(sec_per_example: %.4f second).' % sec_per_example)

You can see that sec_per_example is the total time taken / total data Hence, it is indeed the inference speed Note that the inference speed does not include the visualization, just the model.forward() and label generation

I‘m so thankful for your reply.


integrate poetry into nmdc-schema repo

Create initial pyproject.toml and poetry.lock files that intend to replace analogous files created for setuptools and pipenv.
Tasks to be completed before we fully eliminate setuptools, pipenv and tox:

[ ] Modify Makefile with poetry commands
[ ] Modify Github Actions with poetry commands
[ ] Automatic release management

But the above tasks are for separate issues and PRs, so this PR is good for now, I think.

@sujaypatil96 great! I'll check this out in a bit.


Add support for Gmail OAuth login (not password)

Please add support for logging into Gmail / Google hosted email accounts securely using the new OAuth method.
Right now this app only supports logging in with email address and password. To do this you have to login to your Google account and create an app specific password. This is not secure.
Google just announced that OAuth login will be the only login method supported for Google hosted accounts in 2020 and regular Gmail accounts will probably come after that.
https://gsuiteupdates.googleblog.com/2019/12/less-secure-apps-oauth-google-username-password-incorrect.html

Thanks for requesting this. Will investigate and see if I'd have time to start working on this.

Also related: #34.

Thanks! Been using this app for years by the way. Nice and simple way to keep track of new emails

The old deadlines don't apply anymore, but Google will still be making the change with a new deadline announced in the future. It is still best to add support for the new more secure login method.
https://workspaceupdates.googleblog.com/2020/03/less-secure-app-turn-off-suspended.html

The old deadlines don't apply anymore, but Google will still be making the change with a new deadline announced in the future. It is still best to add support for the new more secure login method.
https://workspaceupdates.googleblog.com/2020/03/less-secure-app-turn-off-suspended.html

@MattSuda I finally decided to work on this. To do that I'll also update the codebase to be using SwiftUI and target macOS 11 Big Sur and above.

@ashchan Thank you! Sounds good to me

Implemented. See #51.


Anomaly detection blog needs update for new group_left semantics

https://prometheus.io/blog/2015/06/18/practical-anomaly-detection/

Looks fine to me.


White space between each slice in Donut chart

Explanation
When using donut charts, there is some white space between each slice.
How to remove that.
See attached image.

options = {
  stroke: {
    width: 0
  }
}

What if i want to have transparent spaces between each slice ? I can't manage to achieve this, I tried using transparent stroke but it's not working because the fill colors always connect below the stroke. My background is a gradient pattern so I can't use any specific stroke color either. Any idea ?

i was trying the same, ,if you found a solution please share

Does anybody found a solution for this? I need the same , transparent spaces between slices

If you came here looking for a way to get rid of the gaps:
    elements: {
        arc: {
            borderWidth: 0
        }
    }


Failed to publish: missing config file '/deno.json'

When attempting to run deno publish on a simple small package I receive this error message:

Failed to publish @garretmh/nullish at 0.0.1: missing config file '/deno.json', is it perhaps excluded from publishing?

I can't figure out why it believes the deno.json file is missing. It's pulling the package name and version in the error message from the file and I am not using include or exclude.
The deno.json file content is this:
{
  "name": "@garretmh/nullish",
  "version": "0.0.1",
  "exports": {
    ".": "./mod.ts",
    "./fp": "./fp/mod.ts"
  }
}

Full package source is here: https://github.com/garretmh/nullish

Is deno.json listed in the files being uploaded (you can see this list with deno publish --dry-run

That question helped figure out what happened. No files were listed when I ran deno publish --dry-run. I realized there was a .gitignore file in my home directory setup in a way that the entire directory was being ignored. This has never been an issue in other projects or with other tools but deno publish seems to respect that file, so I altered it an am now able to publish. Thank you.

Great - there is a CLI issue to give an early warning when this happens: https://github.com/denoland/deno/issues/22657


#1412 ZWave Thermostat support

It's rough and ugly right now, but it's a start and it works. There are some places where I would like to improve it.

I tested this with a remotec zxt-120 thermostat. It does not retrieve the temperature, I cannot set the temperature, and it will always show -4,4C as current temp and 21.7C as set temp.

That looks like you using C instead of F, and the conversion is putting the
numbers out of range. Let me implement the config setting and then we can
give it another try.  It also seems that the zwave stack isn't totally
loaded yet. Did you get the "Node query processing complete" message in the
log by that time?
Thanks
Robert Cotey
(813) 421-4338
<EMAIL_ADDRESS>http://www.coteyr.net
On Sun, Feb 28, 2016 at 2:02 PM, John Arild Berentsen <
<EMAIL_ADDRESS>wrote:

I tested this with a remotec zxt-120 thermostat. It does not retrieve the
temperature, I cannot set the temperature, and it will always show -4,4C as
current temp and 21.7C as set temp.
[image: image]
https://cloud.githubusercontent.com/assets/16622752/13381199/2b611240-de56-11e5-9c6b-2d7ceaa2b375.png
—
Reply to this email directly or view it on GitHub
https://github.com/balloob/home-assistant/pull/1416#issuecomment-189923327
.

Yes, 2016-02-28 19:50:20.796 Detail, Node004, Notification: NodeQueriesComplete

That's not the same thing. It can take 10 mins or more before the message "Node query processing complete" is done, before that all nodes may not have full data, and the Z-Wave network will run really slow. The startup time is much longer in secure mode. In insecure mode the start up times are pretty fast.

Still the same Nearly 2 hours after Node query complete:

Ah, just saw you commited. That screen is not with that code :)

Just tried with your latest commit, and it's the same. Looking at the zwave log, there is nothing sent to the network when temp is set. Nothing happens to the setpoint in Ha either when changing with the slider.
The sensor reports temperature with 2016-02-29 18:56:29.539 Info, Node004, Received SensorMultiLevel report from node 4, instance 1, Temperature: value=25C

The latest commit wouldn't even load the thermostat module, still working
it out. That line is that from command class 0x43 or from 0x31?
Thanks
Robert Cotey
(813) 421-4338
<EMAIL_ADDRESS>http://www.coteyr.net
On Mon, Feb 29, 2016 at 1:10 PM, John Arild Berentsen <
<EMAIL_ADDRESS>wrote:

Just tried with your latest commit, and it's the same. Looking at the
zwave log, there is nothing sent to the network when temp is set. Nothing
happens to the setpoint in Ha either when changing with the slider.
The sensor reports temperature with 2016-02-29 18:56:29.539 Info,
Node004, Received SensorMultiLevel report from node 4, instance 1,
Temperature: value=25C
—
Reply to this email directly or view it on GitHub
https://github.com/balloob/home-assistant/pull/1416#issuecomment-190315495
.

Attach your zwcfg file please,
Thanks
Robert Cotey
(813) 421-4338
<EMAIL_ADDRESS>http://www.coteyr.net
On Mon, Feb 29, 2016 at 1:31 PM, Robert Cotey<EMAIL_ADDRESS>wrote:

The latest commit wouldn't even load the thermostat module, still working
it out. That line is that from command class 0x43 or from 0x31?
Thanks
Robert Cotey
(813) 421-4338
<EMAIL_ADDRESS>http://www.coteyr.net
On Mon, Feb 29, 2016 at 1:10 PM, John Arild Berentsen <
<EMAIL_ADDRESS>wrote:

Just tried with your latest commit, and it's the same. Looking at the
zwave log, there is nothing sent to the network when temp is set. Nothing
happens to the setpoint in Ha either when changing with the slider.
The sensor reports temperature with 2016-02-29 18:56:29.539 Info,
Node004, Received SensorMultiLevel report from node 4, instance 1,
Temperature: value=25C
—
Reply to this email directly or view it on GitHub
https://github.com/balloob/home-assistant/pull/1416#issuecomment-190315495
.

I beleive its 0x43
zwcfg_0xd5a2c6e5.txt

with some fixes from @coteyr it works now!

Now it shows the temperature recieved by the thermostat, but still, the setpoint is stuck at 71C no matter what I put it to with the slider. Nothing is sent to the network on service call either.

Thanks
Robert Cotey
(813) 421-4338
<EMAIL_ADDRESS>http://www.coteyr.net
On Mon, Feb 29, 2016 at 3:02 PM, John Arild Berentsen <
<EMAIL_ADDRESS>wrote:

Now it shows the temperature recieved by the thermostat, but still, the
setpoint is stuck at 71C no matter what I put it to with the slider.
Nothing is sent to the network on service call either.
Could this be the problem with my thermostat type:
2016-02-29 20:48:32.923 Detail, Node004, Queuing (Query) SwitchAllCmd_Get
(Node=4): 0x01, 0x09, 0x00, 0x13, 0x04, 0x02, 0x27, 0x02, 0x25, 0x15, 0xf6
2016-02-29 20:48:32.923 Info, Node004, ThermostatSetpointCmd_Get Not
Supported on this node
2016-02-29 20:48:33.710 Info, Node004, ThermostatSetpointCmd_Get Not
Supported on this node
2016-02-29 20:48:33.710 Info, Node004, ThermostatSetpointCmd_Get Not
Supported on this node
2016-02-29 20:48:33.710 Info, Node004, ThermostatSetpointCmd_Get Not
Supported on this node
2016-02-29 20:48:33.711 Info, Node004, ThermostatSetpointCmd_Get Not
Supported on this node
2016-02-29 20:48:33.711 Info, Node004, ThermostatSetpointCmd_Get Not
Supported on this node
2016-02-29 20:48:33.712 Info, Node004, ThermostatSetpointCmd_Get Not
Supported on this node
2016-02-29 20:48:33.712 Info, Node004, ThermostatSetpointCmd_Get Not
Supported on this node
2016-02-29 20:48:33.712 Info, Node004, ThermostatSetpointCmd_Get Not
Supported on this node
2016-02-29 20:48:33.713 Info, Node004, ThermostatSetpointCmd_Get Not
Supported on this node
2016-02-29 20:48:33.713 Info, Node004, ThermostatSetpointCmd_Get Not
Supported on this node
2016-02-29 20:48:33.714 Info, Node004, ThermostatSetpointCmd_Get Not
Supported on this node
2016-02-29 20:48:33.714 Info, Node004, ThermostatSetpointCmd_Get Not
Supported on this node
2016-02-29 20:48:33.714 Info, Node004, ThermostatSetpointCmd_Get Not
Supported on this node
2016-02-29 20:48:33.714 Detail, Node004, Queuing (Query) Query Stage
Complete (Session)
—
Reply to this email directly or view it on GitHub
https://github.com/balloob/home-assistant/pull/1416#issuecomment-190358730
.

This is from the manual:
The ZXT‐120 can work with any Z‐Wave compliant controller or
gateway supporting the following Z‐Wave commands.
- Configuration Command Class
- Multilevel Sensor Command Class
- Thermostat Command Class
 Thermostat Mode Command Class
 Thermostat Fan Mode Command Class
 Thermostat Set‐point Command Class

From openhab: https://github.com/openhab/openhab/blob/master/bundles/binding/org.openhab.binding.zwave/database/remotec/zxt120.xml

It's not someting we can fix on our end, try looking at openzwave or adding
the device to open zwave
Thanks
Robert Cotey
(813) 421-4338
<EMAIL_ADDRESS>http://www.coteyr.net
On Mon, Feb 29, 2016 at 4:06 PM, John Arild Berentsen <
<EMAIL_ADDRESS>wrote:

From openhab:
https://github.com/openhab/openhab/blob/master/bundles/binding/org.openhab.binding.zwave/database/remotec/zxt120.xml
—
Reply to this email directly or view it on GitHub
https://github.com/balloob/home-assistant/pull/1416#issuecomment-190393759
.

It's been inside openzwave for a year:
https://github.com/OpenZWave/open-zwave/blob/master/config/remotec/zxt-120.xml
29. feb. 2016 22:51 skrev "coteyr"<EMAIL_ADDRESS>
It's not someting we can fix on our end, try looking at openzwave or adding
the device to open zwave
Thanks
Robert Cotey
(813) 421-4338
<EMAIL_ADDRESS>http://www.coteyr.net
On Mon, Feb 29, 2016 at 4:06 PM, John Arild Berentsen <
<EMAIL_ADDRESS>wrote:

From openhab:

https://github.com/openhab/openhab/blob/master/bundles/binding/org.openhab.binding.zwave/database/remotec/zxt120.xml

—
Reply to this email directly or view it on GitHub
<
https://github.com/balloob/home-assistant/pull/1416#issuecomment-190393759
.

—
Reply to this email directly or view it on GitHub
https://github.com/balloob/home-assistant/pull/1416#issuecomment-190412674
.

The code looks good :dolphin: . Please fix the CI reported style violations and this should be good to go.
@turbokongen once it is discovered how your thermostat can be controlled we can add a device specific workaround, like we did for some of the sensors.

some error messages on start
16-03-01 18:32:35 ERROR (Thread-14) [homeassistant.components.thermostat] Error while setting up platform zwave
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 97, in _setup_platform
    discovery_info)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/thermostat/zwave.py", line 24, in setup_platform
    add_devices([ZWaveThermostat(value)])
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/thermostat/zwave.py", line 39, in __init__
    self.update_properties()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/thermostat/zwave.py", line 57, in update_properties
    for key, value in self._node.get_values_for_command_class(0x31).items(): # Current Temp
  File "/usr/local/lib/python3.4/dist-packages/openzwave-0.3.0b8-py3.4.egg/openzwave/node.py", line 378, in get_values_for_command_class
    return self.get_values(class_id=class_id)
  File "/usr/local/lib/python3.4/dist-packages/openzwave-0.3.0b8-py3.4.egg/openzwave/node.py", line 403, in get_values
    for value in self.values:
RuntimeError: dictionary changed size during iteration

don't get any errors anymore.. hopefully this got merged soon :D

Can you squash the commits?

these 2 issues can get closed https://github.com/balloob/home-assistant/issues/1345 https://github.com/balloob/home-assistant/issues/1412

i wish i could do the needed improvements :(
is @coteyr still around?

I am, I just have a product launch this week. I should be able to do these edits this weekend. There pretty simple.

@coteyr thanks for the heads up! looking forward to see this finally merged

@coteyr will you have time this weekend? i want to try the updated version.. i have some problems with my thermostats at the moment and my girlfriend is going crazy.. i would love to update to the newest version

@coteyr  @turbokongen and i pick up your work and it got merged :)