Update .dockerignore to exclude HJSON files from images

As part of PR #134, I neglected to update the .dockerignore file, which tells Docker which files to disregard when building images. While this isn't a huge risk, it is possible for developers who are using a mixed approach of virtualenv and Docker to include credential files in images that they build locally if they are keeping a copy of their env.hjson in config/secrets. To eliminate that risk, we should update the patterns in .dockerignore to cover the new HJSON file ending.
https://docs.docker.com/engine/reference/builder/#dockerignore-file

While looking into this, I also discovered that the .dockerignore syntax works a little differently than .gitignore syntax.  To find files with certain patterns recursively in all child directories, you need to use the special Docker **/ syntax.

To test:

comment out the :/app line under services->job -> volumns within docker-compose.yaml
docker-compose build; docker-compose up -d; docker exec course_inventory /bin/bash
verify those files are not in the docker image, e.g. no env.hjson inside config folder, etc.


Investigate integration with linch-pin

It might make sense to call out to linch-pin for provisioning. This would allow users to define more complex topologies than possible now, as well as have an easy way to add support for more types of provisioners.

FWIW I more meant as a backend, at least initially. At some point I think we're likely to want to run some of the load in EC2/GCE, and that wouldn't be exposed to the consumer.


Feature Request: Unity3d support

I'm still diagnosing the issue but Jurrasic from asset store and from github both crash Unity3d.
Somewhere in the IL code generation.
I'm using Unity 5.4.0b20 (64-bit).
It's a pain, but the -unsafe and mono .net 2.0 is very limiting in JS choices.
Thanks.

You could generate the DLL from js using the function SaveDLL, and then import it. The problem is that the dll generated depends on the jurassic.dll and it has emit. It may be possible to generate a jurassic dll without the unsupported functions so it can be imported by unity and run the dll generated js code.
Am I right?

I haven't tested on Mono.  I may do that at some point, but in the meantime, have you considered using Jint instead?

I'm using Untiy 5.3.5f1 (latest stable) and Jurassic compiled for .NET Framework 3.5 with no issues. My IDE is VS2010, but I'm pretty sure that Unity compiles all it's code via Mono anyway.
This may be an issue with Unity 5.4?

@paulbartrum thanks for your suggestion. I will try it.
The saved DLL depends on jurassic DLL, and jurassic uses emit which is unsupported on IL2CPP platforms such as iOS and WebGL. In order to use the saved DLL you must remove the jurassic dependency and/or stripe down all emit code from the jurassic.
This text describes the problem: https://developer.xamarin.com/guides/ios/advanced_topics/limitations/#No_Dynamic_Code_Generation

System.Reflection.Emit
The lack of System.Reflection. Emit means that no code that depends on runtime code generation will work. This includes things like:

The Dynamic Language Runtime.
Any languages built on top of the Dynamic Language Runtime.
Remoting's TransparentProxy or anything else that would cause the runtime to generate code dynamically.

Important: Do not confuse Reflection.Emit with Reflection. Reflection.Emit is about generating code dynamically and have that code JITed and compiled to native code. Due to the limitations on the iPhone (no JIT compilation) this is not supported.
But the entire Reflection API, including Type.GetType ("someClass"), listing methods, listing properties, fetching attributes and values works just fine.

@DAVco4 How do fix the compile issue when targeting .NET 3.5? I got an issue while the Jurassic using ConditionalWeakTable which was introduced in .NET 4.0

Unity announced that will support new mono compilers and new features -> http://forum.unity3d.com/threads/yes-unity-5-5-new-compiler-and-gc.408313/
But it targets only to 3.5. They need to modify lots of unity internal code to make 4.0 target working. You can check a almost stable build here: http://forum.unity3d.com/threads/upgraded-c-compiler-on-5-3-5p8.417363/
They have said the version 5.5 will address this compiler issue. I am waiting for it.

also for webplayer it throws "Cannot call a non-final virtual method from an objet diferent thant the this pointer" seems some unity bug

any update?

Any tips on building this for unity?

pokes


Add loose mode docs

Babel 5 has awesome loose mode. It is very important, because it can make your code faster.
But there is no docs how to set loose mode in Babel 6. I know that I need to set this option to plugins. But what plugins support it? For example, transform-es2015-for-of supports loose, but has no docs about it.

+1

+1

https://gist.github.com/rstacruz/52d2dc4addbfe4681eb8
Yeah we can add a section for it in /plugins and then for each plugin that supports it.

Some more follow on resources:

https://phabricator.babeljs.io/T6987
http://www.2ality.com/2015/12/babel6-loose-mode.html
https://github.com/bkonkle/babel-preset-es2015-loose
https://github.com/bkonkle/babel-preset-es2015-loose/blob/master/index.js

I added plugin options for each one now (if you click on the actual plugin link though, like http://localhost:4000/docs/plugins/transform-es2015-classes/)

Ok each plugin has an explanation from the previous docs now.
ex: http://babeljs.io/docs/plugins/transform-es2015-for-of/
Will close unless anyone thinks we need a special page for it or something else?


How add joined table's column to template.json

This is  a help request.

Prerequisites

[ ] Are you running the latest version?
[ ] Are you reporting to the correct repository?
[ ] Did you check the documentation?
[ ] Did you perform a cursory search?

Description

Is it possible form contain hasOne joined table's column and fill and save it by one click
Steps to Reproduce

Expected behavior

Actual behavior

This is not in the scope of the formbuilder package. After you submit a form you get the request object in you controller and from that on you can do whatever logic you want / need.


Release v2.1.2

closes #212
closes #171

I was trying to check the adapters work using the test gguf files from llama.cpp (generated by running test-lora-conversion-inference.sh, or you can find the gguf files directly here).
These models are overfitted to return the same sentence for the same initial word, but I am struggling to make them work in branch release/v2.1.2. I think it's because the prompt is in formatted as a  chat, so a user saying Hello sends
"<|user|>\nHello<|end|>\n<|assistant|>\n"

Instead of (as in llama.cpp tests)
"<bos>Hello"

Would it be helpful if I train similarly small overfitted models to test different adapters respond correctly in a chat?
Then they can be used to test the hot-swapping as well.

Yes, you can use Complete("<bos>Hello") instead that doesn't use template.

I tired this branch in Unity via github URL and it loads Llama3.1 and Gemma models fine, but only in CPU mode. Using cuda via numGPULayers variable crashes Unity/Editor for me right now, whereas the asset store version does not. Using latest Unity 6 preview 15f1, Win10.
Just wanted to let you know. Thanks for this llama.cpp Unity port, overall it works quite nice.

@ElevenGameStudios thanks for sending.
What GPU do you have?
Could you send me the Editor.log file when you run the scene and crashes?
It would be very helpful if you could join the Discord channel to send you some other build to try.

Yes, you can use Complete("Hello") instead that doesn't use template.

Nice, I tested the adapter is working correctly!
I am planning to test out what happens when multiple adapters are loaded, because in that case one probably should use the param --lora-init-without-apply when spinning up the server for the same base model, to be able to swap between adapters.

You can use multiple adapters at the same time, they are all initialised with scale 1.
Then you can use the SetLoraScale function to adjust the scale how you want.
I'm adapting the code to make it possible to set weights before the LLM starts

Not sure what happens now if two LLM use same base but different adapters. Do two different servers spin-up? Have you already looked into this?

Yes each different LLM object starts a new LLM server.

@ElevenGameStudios thanks for sending. What GPU do you have? Could you send me the Editor.log file when you run the scene and crashes?
I have a Nvidia 3070 RTX 8GB. It seems to crash before the point the "Using architecture: ..." log is sent. The 2.1.1. version runs cuda just fine.
I joined the discord, will send the Editor log file there.

closing in favor of #220 because it is not a minor release anymore :)


Sidebar resource parents sort order

Is it possible to force the sort order of sidebar resource parents? Other then with the order in which they are added?
I am using an autoloader to set the admin-bro resources automatically like this:
const adminBroResourceParents = {
    machines: {
        name: 'Machines',
        icon: 'Bot',
        sortOrder: 10 // <- something like this would be awesome
    },
    users: {
        name: 'Users',
        icon: 'User',
        sortOrder: 20 // <- something like this would be awesome
    },
    media: {
        name: 'Media',
        icon: 'Folders',
        sortOrder: 30 // <- something like this would be awesome
    }
}

adminbroResources = [ // filled via an autoloader
    {
        model: someSequelizeModel,
        options: {
            parent: adminBroResourceParents.media
        }
    }
]

new AdminBro({
    ...
    resources: adminbroResources
});

Couldn't you just sort the autoloader manually?

Sure something like that would be possible, but that would also kinda defeat the purpose of an autoloader.
But defining the resource parents in one place and setting the sort order there makes sense right?

I would say the general use case would prefer the order defined by the order in which they are added.
Parents aren't defined in one place, they are defined in each resource.
I think a better solution would be to have a top level grouping option that defines the structure, and the resource just references the group. So order can be inferred.

recently we added a feature which allows you to manually change the layout components of AdminBro. It can be done like this:
AdminBro.bundle('path-to-a-new-sidebar-component', 'SidebarResourceSection')
in this new component you can render whatever you like. This is the original implementation:
const SidebarResourceSectionOriginal: FC<SidebarResourceSectionProps> = ({ resources }) => {
  const groupedResources = groupResources(resources)

  return (
    <>
      {
        groupedResources
          .map(parent => (
            <SidebarParent parent={parent} key={parent.name} />
          ))
      }
    </>
  )
}

I don't think we will implement proposed sortOrder: 20 because you can pass resources in the correct order or use the way to modify the sidebar as I described above. That is why I am closing this one.


fix: poor Tekton controller performance impacted by redundant state calculation…

Tekton controller performance is impacted by redundant existing and desired resource state difference calculation.
The state comparison using kmp.SafeDiff(existing.Status, desired.Status) in the reconcilerImpl.updateStatus method is costly and performed for debug logging purposes.
Issue: https://github.com/tektoncd/pipeline/issues/6193
Related knative.dev/pkg issue: https://github.com/knative/pkg/issues/2677

/kind Bug
Changes

knative.dev/pkg module bumped to v0.0.0-20230215234751-2f55fe00c5a1
Reconcilers code regenerated to include poor performance fix

Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[X] Has Docs included if any changes are user facing
[X] Has Tests included if any functionality added or changed
[X] Follows the commit message standard
[X] Meets the Tekton contributor standards (including
functionality, content, code)
[X] Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
[X] Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
[X] Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes
NONE

CPU total usage and memory usage observed on the original code:

CPU total usage and memory usage observed after applying the fix:

Observed improvements:

CPU total usage reduction: 60%
Memory usage reduction: 44%

/ok-to-test

thank you @rafalbigaj for identifying such issue and proposing the fix for it.
This PR is essentially upgrading the knative/pkg like you mentioned in the PR description.
@vdemeester has a PR #6062 to upgrade knative/pkg which didnt make it in 0.45.
PR #6062 and this PR is upgrading the knative pkg which requires bumping kubernetes min version to 1.24. This knative pkg has fix for a significant performance bottleneck but with it changes kubernetes min version. With this, is it possible to cherrypick or backport this to any of our previous releases?
@vdemeester do you mind changing your PR #6062 to change knative.dev/pkg to v0.0.0-20230215234751-2f55fe00c5a1 instead of v0.0.0-20230117181655-247510c00e9d? PR #6062 has all the necessary doc. updates as well.
Or @rafalbigaj you want to bring in the doc updates from @vdemeester's PR which is easier for both of you. Thanks!

@vdemeester do you mind changing your PR #6062 to change knative.dev/pkg to v0.0.0-20230215234751-2f55fe00c5a1 instead of v0.0.0-20230117181655-247510c00e9d? PR #6062 has all the necessary doc. updates as well.

Ideally, we only track released version of knative/pkg, so we would need to wait for a 1.10 (or a backport?) — otherwise anyone running ./hack/upgrade-dependency.sh --upgrade would overwrite that dependency and go back to 1.9.

@vdemeester do you mind changing your PR #6062 to change knative.dev/pkg to v0.0.0-20230215234751-2f55fe00c5a1 instead of v0.0.0-20230117181655-247510c00e9d? PR #6062 has all the necessary doc. updates as well.

Ideally, we only track released version of knative/pkg, so we would need to wait for a 1.10 (or a backport?) — otherwise anyone running ./hack/upgrade-dependency.sh --upgrade would overwrite that dependency and go back to 1.9.

Thank you @vdemeester 👍 I am not aware of the knative release cycle and possibility of integrating to a commit level. Whom can we involve from the Knative community to understand if the backporting of this fix into 1.9 is possible?

@pritidesai no prob, just cherry picked it into v1.9

thanks a bunch @psschwei for responding back while you are on vacation, appreciate it 🙏
@rafalbigaj do you want to update this PR to bring the latest commit from knative 1.9? I have a list of changes here.
After chatting with @vdemeester offline, I have updated the controllers in 0.41 to bring in this fix (PR #6201). I will create similar PRs for the subsequent releases (0.42 through 0.45). We might create a patch for each of the releases.

I have PR to update main with the latest knative/pkg 1.9: https://github.com/tektoncd/pipeline/pull/6256
Closing this PR.
/close


Fixes 180: add name and url repo filters

To test:
Create a repository via UI or api such as:
curl -X POST http://localhost:8000/api/content-sources/v1/repositories/bulk_create/  -d '[{"name":"fooz", "url":"https://jlsherrill.fedorapeople.org/fake-repos/needed-errata/"}]'  -H "`./scripts/header.sh 1 1`"   -H "Content-Type: application/json"

and then:
curl http://localhost:8000/api/content-sources/v1/repositories/?name=fooz  -H "`./scripts/header.sh 1 1`"   -H "Content-Type: application/json"

or
curl http://localhost:8000/api/content-sources/v1/repositories/?url=https://jlsherrill.fedorapeople.org/fake-repos/needed-errata/  -H "`./scripts/header.sh 1 1`"   -H "Content-Type: application/json"

https://issues.redhat.com/browse/HMSCONTENT-180

updated!  just has to wait on https://github.com/content-services/content-sources-backend/pull/121 to go in


[Bug]: New CLI issue with PHP template

Please confirm that you have:

[X] Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
[X] Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?
App
Expected behavior
Need to install the Laravel vendor folder and other dependencies and start the APP.
Actual behavior
It interrupts the flow with errors.

Stack trace
No response
Reproduction steps

npm init @shopify/app@latest -- --template php
cd dirname
npm run dev

Operating System
Window 11
Shopify CLI version (check your project's package.json if you're not sure)
3.0.26
Shell
window CMD
Node version (run node -v if you're not sure)
v16.15.0
What language and version are you using in your application?
PHP 8.1.4

I've managed to reproduce it (it only happens on Windows).
As a workaround while we fix it, could you try editing your web\shopify.web.toml and replace your dev command with php artisan serve instead of composer serve?

@gonzaloriestra Thanks for response
Let me check it, update you with my inputs

@gonzaloriestra
Still not working properly and working as desired.

change the content to php artisan serve instead of  composer serve

but still not working, now my steps and errors

npm init @shopify/app@latest -- --template php
then change the content into web\shopify.web.toml file
run npm run dev

same vendor missing error like past.
Then into web folder run composer install it install the Laravel dependecies
Now run npm run dev
the following error on localhost and into console.

Thanks

That's an issue with your Laravel configuration. You have to run php artisan key:generate to create a new encryption key as explained here.

That's a fair question. For Node apps, we can install the dependencies because the CLI is also in Node and we are in control of everything. But for PHP or Ruby, it requires some configuration that is deeply rooted in the OS. So we decided to let the users do it and just document it.
You can find the configuration steps in the README.md file of your app or here. This is already documented at the end of the step 1 of the Getting started guide.
But I agree it can be a bit confusing, we'll try to improve it. Thanks for your feedback!

Thanks, @gonzaloriestra  for letting me know about the link.
Let me check and follow it, get back to you if anything is found buggy.
Anyway thanks for your time.


Rosy File Server 'File Server/Administration' button missing

The 'Rosy File Server/ Administration' button fails to appear on the file server views. It only appears in the admin views.
Default File server view

Admin view

This might be a regression as this seems to be working during the original commit
https://github.com/openwrt/luci/pull/2404#issue-241254643

@jow- @hnyman Any ideas how to resolve this regression?

Upvote, experiencing this issue presently

Maybe we should mark this unmaintained package as broken and remove the base package as well (move to packages-abandoned)?

@hnyman Could you please point me to where this package now resides in unmaintained packages? Thanks


Faster type selection with keyboard shortcuts

Instead of up/down arrows, it could allow one-click selection via keyboard:

m for major
n for minor
p for patch
backspace for ignore

That's not possible with inquirer, I think. But anyway, you can use the numbers 1-4 for that on your keyboard 😊


Update README to make API endpoint text smaller

When I was looking at the README, it was really annoying to scroll so much just to look at the endpoints. So I changed the size of the font of the API endpoints. Now it's really easy to take the information in.

Hi @ColdSauce thanks for the PR, I agree with the changes. The only thing is that those docs are automatically generated with documentation.js. Check https://github.com/zzarcon/microm/blob/master/package.json#L12
So I don't if we can configure the output, if we can I will be happy to change it :)


problems with the weakness effect

the crystal disappears on the client if the player cannot break it due to the effect of weakness, it simply disappears, but does not explode, such a phantom crystal does not take damage with a sword, but can be blown up with a shot from a crossbow
when removing a crystal, it is worth checking whether the player can blow it up

Will be fixed later, we need to release now.

Hruk 🐽


[QUERY] Check for case insensitive for parameter names in URL

We received in an issue in .NET where a customer attempted to use a URL with a version id. The versionid parameter name was formatted as versionId and the SDK was not able to find the parameter value because it was case sensitive and was looking for versionid in all lowercase.
The service is able to take parameter names with any cases.
Please check in Javascript if this issue also exists, if does please relabel the issue as a bug and triage the work accordingly. Otherwise please close the issue.
I've provided some sample tests here
https://github.com/Azure/azure-sdk-for-net/pull/27324/files#diff-98ad45c9950bf3a7b200a86d8f349eae43ef1ef9bac501bb2fe0c81b62c13a66L156

JS SDK can take URL with versionId in query parameter correctly and can get its properties successfully.  No fix required from JS.


OTA refactoring to use blockwise download module

NOTE: Compilation of OTA hil tests fail because the function golioth_ota_get_block_sync() is no longer available. Need to update the test to use golioth_blockwise_get() function instead.

Superseded by #551


Define user roles

Off the top of my head I'm thinking:
game server (control dice values, determine scores, log scores, generate games/dice)
game host (generate values for joining the game, auto join the host , host is subset of player)
player (select dice to roll / save, re-roll, chat?)
viewer? (can watch game but does not play, maybe chat function if we do that?)
For misuse -
cheater (alter dice, change score, change rules?)

correct, but game vs host user will largely be an internal distinction based on the game currently being played. i.e. does game creator id match player creator id. Does player id already have an associated game id, etc. Deletion will also be an important part of host options


Changing non-root user name from 'vscode' to something more general

Hello,
I was just curious if there were any plans to change the name of the non-root user in images from being 'vscode' to something more general given the move away from being part of vscode.
While I recognize it would probably be a fairly major breaking change, I feel like it would be the right move going forward.
Thanks!

Hi @natescherer 👋
Yes, we had a discussion about renaming the vscode user when we were in the process of migration. We intentionally didn't change then as migration itself was a big change, and we didn't want to confuse folks. However, I believe we could soon pick this up. // cc @Chuxel / @bamurtaugh  @devcontainers/maintainers
Unfortunately, I don't have an issue of hand for the discussion, we could now use this one for tracking the re-naming. Thanks!

While I recognize it would probably be a fairly major breaking change, I feel like it would be the right move going forward.

Yes, I agree 💯 . We had discussed some remedies to contain the problems associated with this change. ( eg. bumping major versions, adding back compatibility/ error handling with prominent messaging). We'd have a concrete plan once someone picks this up.

Yes, the only reason it hasn't been done is due to the breaking change for existing image users.

To summarize an offline discussion we had about this issue:

We do want to change the user for the images from vscode to something generic, like devcontainer
We need to plan how to do it carefully since it is a breaking change, and we want to minimize the impact to repos with existing devcontainer configurations that use the vscode user
It will be a major version bump on the images, but we also want to see if there's a way to more gracefully roll out this change
One thing that's related which we can do is to improve the error messaging if the specified remoteUser does not exist in the container image. Today users get hard-to-intepret error messages when there's a mismatch. If we change the user in the container and users still have "remoteUser":"vscode", we'd want to at least have a clear error message.

All sounds good to me.
Major version bump should insulate anyone who's using semver properly but I'll freely admit to lazily using the latest tag too often, ha.
Perhaps in advance of the change you could have the containers spit out warning messages similar to how Azure CLI does in advance of major breaking changes?

Hello, I wanted to ask if any progress has been made on this issue since last year? :) Thank you!

We do want to change the user for the images from vscode to something generic, like devcontainer

I think something like developer or devuser might be less confusing, since devcontainer refers to the actual container rather than the user within it.
But a huge thumbs up for this.
On the subject of breaking changes, it's honestly very common for changes here to break stuff downstream. We just have to deal with it as developers consuming this. The main problem is that quite a few features/scripts scattered around simply hard code the vscode or /home/vscode paths, but honestly where we've done that (yes, I'm one of them) it's our funeral.
To help mitigate, you could potentially add the new devuser alongside  a vscode user, shift all the documentation over, give it a while to percolate then deprecate the vscode user, at least people will have had time to adjust?


(NFS) Nitro unusable if not full sometimes

Pretty much what the title says. Sometimes I can't use nitro unless it's on 100%. MTA restart fixes but yeah...rip race. Idk if others have that problem too.

Restart mta or reconnect

I usually restart race_fix resource when it happens and it helps for all players.

Yea i know how to fix it by restarting ;p still better if you can perma fix it tho :)

There was an opinion that this bug happens after maps with coremarkers. Possibly fixed in f9fbdd5e48253e7694ff9ace513eeb54d3c06b58

Just had it again today  though :(

Still happens?

Markers still disabled :D so idk. Hasn't happened while they were off.

Let's hope it fixed. I noticed that the only thing which connects coremarkers and nitro is the same binds. Also wiki.mtasa.com say:  If you do not specify handler, any instances of key being bound will be unbound, whatever function they are bound to.


fix eslint setting

Codecov Report
Base: 70.26% // Head: 70.26% // No change to project coverage :thumbsup:

Coverage data is based on head (6fe6a39) compared to base (baf5b2d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #277   +/-   ##
=======================================
  Coverage   70.26%   70.26%
=======================================
  Files          60       60
  Lines       11589    11589
  Branches     1565     1565
=======================================
  Hits         8143     8143
  Misses       1902     1902
  Partials     1544     1544

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


sourcemaps have some minor bugs

Code sometimes does not stop on the correct line.
Like on the picture below it should have stopped on the debugger statement

@vegarringdal can you please confirm if the issue still occurs with<EMAIL_ADDRESS>Also see here for info on major changes

@charsleysa @nchanged
yes still an issue.
used the sandbox and updated fusebox only

cc @nchanged


pull request for e2e test at 11/16/2016 09:26:07

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


TypeError: Cannot read property 'ptype' of null

Hi All, I installed django-maploom 1.7 and every time I open my web browser it's always throw me these errors:

Can someone help me to fix these issues?
Many thanks.

Many thanks with your help.


Is it possible to run on a remote HiveRunner and Hadoop installation ?

I would like to have functional testing for my Hive scripts, so it possible to run the test code pointing to an remote Hive server and Hadoop instead of one running on a local JVM.
Thanks.

Please ask questions on the mailing list at https://groups.google.com/forum/#!forum/hive-runner-user rather than raising issues.


support new() in extension types

Extension types should support the __new__() special method and be able to return any kind of object. The proposed syntax is described in #793 (migrated from ticket http://trac.cython.org/ticket/232):
cdef TYPE __new__(self, foo, bar)

Migrated from http://trac.cython.org/ticket/238

I would like to upvote this request.
Attempting to build a subclass of numpy.ndarray object in Cython which implements __new__ method and __array_finilize__ method I encountered
__new__ method of extension type will change semantics in a future version of Pyrex and Cython. Use __cinit__ instead.

The message has been added about 10 years ago:
https://github.com/cython/cython/blob/fcfd16c7467c31f255287a73f36cf66b32bc096c/Cython/Compiler/Symtab.py#L2291

@scoder I could not figure out from referenced links whether this is considered as fixed, or is still an open issue.
Having Cython support __new__ would allow writing subclasses of numpy.ndarray in Cython.

It's an open issue. AFAIK, no-one has really worked on it during the last 11 years. Contributions are welcome.

Having Cython support __new__ would allow writing subclasses of numpy.ndarray in Cython.

@oleksandr-pavlyk You might be able to use two levels of inheritance - a cdef class and a regular class - with __new__ defined in the regular class:
from numpy cimport ndarray

cdef class _C(ndarray):
    # implementation goes here

class C(_C):
    def __new__(self, *args, **kwds):
         # etc...

Provided you don't need to change the arguments it's possible you might not even need to do that. __cinit__ ends up in the tp_new slot and automatically calls ndarray.__new__ just forwarding the arguments it was passed. That might do for a lot of cases.

Hey all, does anyone have any pointers on what is the blocker here? If just the check that errors out is removed will something reasonable happen?
Resolving this would really benefit me and I believe some other projects as well.

I don't think it's simple. We currently put __cinit__ in the tp_new slot, so it'd need careful thought about how to interact with that.
So it's not just a case of "implementing something" - it needs a bit of design too.

So it's not just a case of "implementing something" - it needs a bit of design too.

Yeah, I played with it a bit and noticed that too. There seem to be two core issues:

__cinit__ in the tp_new. Interplay between __cinit__ and __new__ would have to be defined somehow. What happens when both are defined, etc.?
There is also a mention of the new return type here: https://github.com/cython/cython/blob/746627fdca5e48db2b63c8bb4be82b33ea617549/Cython/Compiler/ExprNodes.py#L5953-L5958
With support for __new__ that can return an arbitrary subclass this would need to be resolved I guess.

We currently put __cinit__ in the tp_new slot

We don't. We put a function there that invokes the (tp_new) allocation function of the base class and then calls its own __cinit__ on the object when coming back. That can still be done with a custom __new__, but it would mean that if __new__ returns an object of a different class, there would be a different allocation chain with (possibly) their own entirely different __cinit__ functions to be called that would be part of the allocation chain invoked by __new__, not the chain that called __new__.
There are different use cases to be looked at here, mainly:
Return an unrelated object, e.g.
class C:
    def __new__(cls):
        return {}

There's nothing to do in this case, just invoke the user __new__ method from tp_new and return the resulting object.
We can also return a related object from the hierarchy, e.g.
class _Base:
    def __new__(cls):
        c = create_new_instance_of(cls)
        c.initialised = True
        return c

class Subclass(_Base):
    …

s = Subclass()

And this is where it becomes tricky. How do you do create_new_instance_of(cls)? Is that object.__new__(cls)? That can't be implemented as object.tp_new(cls) because that wouldn't be sufficient to initialise the object. It would still need to call Subclass.tp_new() and the entire call chain, but bypass Base.__new__(). So, __new__ is actually not tp_new, semantically. tp_new is what should be called in the very end, by object.__new__(cls), including the complete call chain of the class and all of its __cinit__ methods.
I think it becomes easier to understand if it we consider __new__ and tp_new unrelated features.


Set the Automate JVM heap size

Right now we're using the default JVM heap size, which is way too small.    We should automatically set this based on the instance size.

This was fixed in A2 on 2019/01/31, yay!


Enable retries on active job strategy

Added retries to the Userlist::Push::Strategies::ActiveJob::Worker to handle Timeout::Error exceptions.
The worker will now retry the job with polynomial backoff, up to 10 attempts.
This ensures more resilience during temporary network issues or API timeouts.

🎉 Thanks! Nice change!


API v2.0 Contact Endpoint not available in BC 17.3

I'm currently testing the API v2.0 on a BC 17.3 onprem environment and the contact endpoint is not available although it should be according to the documentation. https://docs.microsoft.com/en-us/dynamics-nav/api-reference/v2.0/resources/dynamics_contact.
Json Response when invoking the metadata of the API v2.0
APIv2_0_Response.txt
When trying to invoke the contact endpoint by companies(companyid)/contacts, I received the response that the resource contact is not available:

I also opened the table<PHONE_NUMBER> in the web client to check if the contact Api is published, but its not listed here as well.

I'm experiencing the same issue on a BC sandbox environment on version 17.5.
Is the Contact API not available in API v2.0 yet?
Thank you

Thank you for reaching out. Your request could be reporting a product bug not related to the AL application extensibility. Please reach out to the relevant support channels:
•	For collaboration in preview or beta versions of AL Language in Visual Studio Code (aka ModernDev), use GitHub (https://github.com/microsoft/al).
•	For Microsoft partners, for versions already in general availability and supported, file requests through Microsoft Partnersource (https://mbs.microsoft.com/partnersource/).
•	For ISVs/VARs who have discovered a bug in a in preview or beta version, use MS Collaborate (https://docs.microsoft.com/en-us/collaborate/).
•	For Business Central customers who have issues or found bugs, please contact your Microsoft partner.


Added ELECTRICITY_IMPORTED_TOTAL obis to access Luxembourg's CREOS Sm…

…arty meter.
Description:
Guys, I've just added an obis to make this component pull in total meter reading from Luxembourg's somewhat-smart CREOS meters. I have tested this locally successfully. I do not know what tox tests are.
obis has been added to dsmr_parser here: https://github.com/ndokter/dsmr_parser/commit/887dd3a2aa820ed4b33a776a3805c5d86dae9b86
First commit, first pull request ever. Please go gentle on me :)
Checklist:

[x] The code change is tested and works locally.
[ ] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.
[x] I have followed the [development checklist][dev-checklist]

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


added hapu (2.4)

Changes to a cask
Adding a new cask

[x] Checked there aren’t open pull requests for the same cask.
[x] Checked there aren’t closed issues where that cask was already refused.
[x] When naming the cask, followed the token reference.
[x] Commit message includes cask’s name.
[x] brew cask audit --download hapu is error-free.
[x] brew cask style --fix hapu left no offenses.
[x] brew cask install hapu worked successfully.
[x] brew cask uninstall hapu worked successfully.

Thank you.


Additional details for the "How do privacy settings work?" section

I think it would be helpful to have additional details in the "How do privacy settings work?" section, since there are several features that aren't documented here.  For example, DMs and follower-only toots are locked from being boosted, but others may be boosted.
I would have submitted this as a pull request instead of an issue, but there are still several areas related to privacy settings that confuse me.  For example, how do privacy settings work with replies?  My understanding is that replies aren't shown on the local timeline at all—does this mean that Public and Unlisted replies are exactly the same?  Or is there still some difference?

Good questions! I'll try to make sure I understand them myself and then update the guide.

Finally updated this to include this information.


How to upgrade an existing cluster?

Tectonic Version
1.5.6 / 1.5.7
What hardware/cloud provider/hypervisor is being used with Tectonic?
AWS
Expected Behavior
Be able to upgrade cluster without recreating
Actual Behavior
Had to destroy and rebuild cluster
Reproduction Steps

Set up cluster using tectonic installer for AWS
Deploy

Other Information
According to this page I should see a Browse Cluster page and be able to check for updates.  I don't have this page.  It does mention that the automatic update feature must be enabled during installation, but I don't see the option.  I also can't find any documentation for doing a manual update, and had to resort to deleting the cluster and recreating to upgrade to 1.5.7.  This will force downtime when upgrading in production.

@rhenretta Tectonic's automatic updates are still experimental, so the "enable experimental operators" checkbox needs to be selected during installation to enable them.

Where is the option?  I ran through the installation a couple times and never saw it.  Also, without it enabled, is there a suggested way to upgrade the cluster without fully replacing it?

You should see it on the Cluster Info page:

Using the operators is the recommended way to upgrade your cluster without replacing it.

gotcha, thanks.

@robszumski  Is it possible to enable this feature on a already running cluster?

I too am also interested in the documentation for doing a manual update?
I have experimental features installed, currently I'm on <IP_ADDRESS> but it does not detect any newer versions, is this because update is only on the channel 1.5?

@kersten No, it is not currently possible to install the operator on an existing cluster.
@reignblack If you are running 1.5.2-tectonic.2 you should be able to update to 1.5.7-tectonic.1, which is the latest in the 1.5.x series of updates.

@robszumski did I get the newsletter yesterday right that auto upgrade won't install 1.6 channel if I'm on 1.5?
That would be really annoying.

@kersten Yes, that is correct. We're tackling the issue methodically and working up to moving between major releases. For example, 1.5 to 1.6 changed from etcd v2 to v3 and the container execution to CRI. These types of drastic changes are difficult to get correct, but we're working on it.

@robszumski "we're working on it" sounds like that we get the update from 1.5 to 1.6 someday?

@kersten Not for 1.5 to 1.6, but possibly for 1.6 to 1.7.

ok, that is very sad ...

It doesn't need to be fully automated upgrade, manual instruction would be enough for most of the users.
"Start again from scratch" isn't really enterprise solution.

@Szpadel "Start again from scratch" --- aboslutly

There used to be instructions somewhere about the order in which we need to update the api-server, then kube-proxy, etc... where's that ? I'm looking to upgrade from 1.5.5 to 1.5.7

Oh got it: https://github.com/kubernetes-incubator/bootkube/blob/master/Documentation/upgrading.md

Hi @robszumski,
some news about manual upgrading cluster from 1.5.x to 1.6? I don't want to restart with a whole new cluster.

@kersten We are not pursuing 1.5 to 1.6 due to the complexity of swapping major API versions of etcd and major changes made to CNI.
We are still exploring how to do this for 1.6 to 1.7 based on how the 1.7 alpha/betas are progressing.

Update: upgrading from 1.6.x to 1.7.x (and soon 1.8.x) is now supported across all platforms!

I got an error upgrading from 1.7.1-tectonic.2 to 1.7.5-tectonic.1, any tips? Thanks!

@kubebc can you start a new issue? This will probably require some digging and it's best to keep this resolved issue tidy.

@robszumski : Can you provide some steps or documentation of upgrade (ex: 1.7 to 1.8)  using tectonic console. ?  to me i just need to see if one click upgrade is true or not ? or i need to update some files prior to using running cluster tectonic console upgrade button ?

Please make a new issue, but no, you don't have to do anything, it should work just fine.

Hi @robszumski : i think you need to give a fair answers.  For this request, you said "it should work just fine" but in real it doesnt work that simple as you said. Fist of all i need to check with you once thing. Have you tried in your LAB before answering to this question.
To me it doesn't work from Tectonic Console -->  Cluster Settings --> Check for Updates ? results "up to date" but nothing goes beyond .
I am really sorry to write that such statements but please provide some proactive answers rather given ping-pong answers.

Did  anyone tried doing the tectonic console method for upgrade to 1.8 ,  i did manual upgrade and it worked but not from tectonic console "Tectonic Console --> Cluster Settings --> Check for Updates ? results "up to date" but nothing goes beyond .
@robszumski : do you have any info on my question.

@rushins The 1.8 update will not be available until early next week. You can always check https://coreos.com/tectonic/releases/ for the available versions. Note that you'll need to be on 1.7.9-tectonic.3 before upgrading to 1.8.4-tectonic.1. Check back next week!


Clean up and address TODOs in snarky_js_bindings_lib

remove unused code
split lib apart into more digestible chunks, such as

tools for circuit creation (Field, Bool, Group, Circuit...)
protocol-related code (party hashing, mock transaction API, ...)

if needed, more robust conversion of JS arrays to OCaml Cvars
Think about how to address these TODOs and track in separate issues:

better handling of error messages
fix Field comparisons for small negative values (https://github.com/o1-labs/snarkyjs/issues/101)
add Group.endoScale
fix or remove async circuit##.runAndCheck

done


Update examples in docs

Describe your changes
Update examples after changes made in #356:

deploying account
calling contract: Fetching ETH balance
invoking contract: Transferring ETH
usages of StandardAccount

Linked issues

Closes #370
Breaking changes

[ ] This issue contains breaking changes

Is this reviewable?


Split ingest CloudWatch reporting into CloudWatchReporter classes

Setting up a version of the CloudWatch reporting that does not connect to AWS will help reduce the ingest build times

Closing, going with issues #311 and #312.


Provide values for sevenZipCompression

The possible values for the argument sevenZipCompression should be listed.
The stated default value is '5', which suggests that the reader should use a number between 1-9.
However, after reading this blog post I realized that the values that should be used are instead none, fastest, fast, normal, maximum or ultra.

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

ID: add63018-4f2c-f258-76ea-9f76aa43ff09
Version Independent ID: c71f17c9-9a78-396e-7a0f-ad8b52b01724
Content: Archive Files task - Azure Pipelines
Content Source: docs/pipelines/tasks/utility/archive-files.md
Product: devops
Technology: devops-cicd-tasks
GitHub Login: @vtbassmatt
Microsoft Alias: macoope

I'm no longer working on Azure DevOps.

Thanks for letting us know. This issue is fixed in our new task reference here:
https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/archive-files-v2?view=azure-pipelines
Please check it out and let us know what you think. Thank you.


fix(embed): escape dollar symbol of JSON string literal

With the original version, embed.dart cannot generate a compilable Dart code if the source JSON has a string literal containing a dollar symbol ($). For example, the following code will be generated from {"dollar": "$"}:
const _$variable = (dollar: "$");
// the string literal "$" is not valid, which is a beginning of string interpolation.

In the revised version, I fixed it to generate the following code from that JSON:
const _$variable = (dollar: "\$");
// $ is escaped!

I also added a test case.

Hi @Jumpaku,
Nice work, thank you!


Add local npm registry using verdaccio

Pull Request Checklist
Please ensure that you have completed the following tasks:

[x] Updated the changelog.
[x] Updated all relevant *.md files in docs.

After merging to the master branch, ensure that you update the gh-pages branch.

Closes #1


Adding the waiOpenMsg property on the aria:Dialog widget

The new waiOpenMsg property allows to specify a message to be read by screen readers when the dialog is opened.

@fbasso Thank you for your review!


HIVE-26304: Upgraded package pac4j-core to version 5.2.1 due to CVE-2…

…021-44878

What changes were proposed in this pull request?
Upgraded package pac4j-core to version 5.2.1 in the standalone metastore pom.

Why are the changes needed?
To avoid CVE-2021-44878

Does this PR introduce any user-facing change?
No

How was this patch tested?
Verified Dependency tree.

@saihemanth-cloudera is there a problem with this fix. I have a vague recollection that this caused a test failure or something. Can you please refresh my memory.

The newer versions of pac4j versions required java version > 8. So it was not possible to upgrade this dependency


Remove futures_[un]ordered functions

Closes #1477

Personally I'd go for @cramertj's proposal in the linked issue, remove the futures_unordered function and use FuturesUnordered::from_iter instead. Then the iterators can be namespaced away since they're going to be very rarely used types.
Probably good to wait and see if @cramertj's opinion has changed since then though.

I don't have a strong opinion either way. @Nemo157 feel free to review this and merge if it matches your expectations.

Thanks, this looks great.

I don't know if I'm missing something, but what should people be doing instead of futures_ordered now?

@Benjamin-L you can use the FromIterator implementation of FuturesOrdered. Either by using some_futures.into_iter().collect::<FuturesOrdered>() or use std::iter::FromIterator; FuturesOrdered::from_iter(some_futures); (I really wish that FromIterator made it into the prelude so that that could be the goto recommendation).

Needs to be mentioned in the alpha.14 changelog since it's a breaking change. (Took me a bunch of git-blame-ing to discover this.)


combine_datasets util function replaces some data with nan

See Issue #451 in openghg. (TODO: copy details here)

From issue #451:

Brendan: I'm not sure if this is related, but the combine_datasets function in inversions uses "ffill" and it tends to put nan's in the the values whose lat/lon have index = 0. So that might be another place where "nearest" makes more sense (or we need some extra code to replace that first value). (There is a similar combine_datasets function in the "scenario" module in OpenGHG.)

Rachel: The 'ffill' is needed for the time dimension and I'm guessing that the reindexing is currently being done across all coordinates at the same time (time, lat, lon) this will be why this is being used. This could be updated to split out the reindex to time and the reindex to lat, lon to do what you suggested but (a) we need to make sure that's not much less efficient and (b) we must used ffill for time.

Brendan: In the specific case I looked at (test data added to inversions), only the time dimension needed to be filled, and the other dimensions were already aligned. By the time fp_sensitivity was called, there were about 100k nan's in fp_data that didn't need to be there (for 1 week of observations).

I haven't profiled any very large inversions, but for the single site/species inversions I've profiled, the initial data processing time was a few minutes, and the sampling time was a few hours, so I think we can sacrifice a bit of speed in data processing to maintain the integrity of the data. (I can't really see splitting this operation into two operations being any worse than doubling the data processing time, which is still small compared to sampling time.)

Also, it seems like "nearest" filled the times the same as "ffill" when merging footprints and flux files in fp_sensitivity. Maybe it's a special case, since there is only one time in these fluxes. I guess if the fluxes changed monthly and the footprints were every 4H, then then time coordinates in the merged flux would change in the middle of a month.

we also have duplicate combine_datasets functions in OpenGHG and openghg_inversions. So maybe it's worth consolidating them at some point.

I think this is closed by PR #92, which changed the alignment method in combine_datasets from "ffill" to "nearest".


Can't reload recipes for HEI

#10 #11 are the same issues about compatibility with HEI with detailed information. Close this issue as well, since they are solved now.


Fixes #2225 : No __construct, only setUp() in tests

All checks have passed 🎉 @TomasVotruba it is ready for review.

Thanks


Restore previous version in ADF Production post deployment.

Hello,
If we encounter a issue post production deployment using Release pipeline, how can i revert to a previous version just in the production without restoring things in my ADF TEST and ADF DEV environment.
Assumption I have 3 environments - ADF DEV -> ADF TEST -> ADF PROD
Thank you!

@OneConsutlantsDemo YI will close this duplicate issue and track this with Duplicate of #48019


Rename Ops to Op

For consistency with ShareDB methods and json0 internals.
The atomit op is called an "op component", typically abbreviated as c.

e.g. emitOps will become emitOp.


Wrong parsed ID in .tmx maps

Hi!
Issue details
The tile ID set by the Tiled map editor does not correspond to the tile ID obtained with Libgdx. More precisely, they are mismatched by one. For instance, the tile with id 221 in Tiled becomes 222 in Libgdx.
 <tile id="221">
  <image width="128" height="128" source="tiles/ground.png"/>
 </tile>

Reproduction steps/code
Create a test.tmx map with a single tile (pay attention to its ID) and iterate over the tiles with the following code:
// Load the map
TiledMap map = new TmxMapLoader().load("test.tmx");
// Get the map size
int mapWidth = (Integer) this.map.getProperties().get("width");
int mapHeight = (Integer) this.map.getProperties().get("height");
// Iterate
for(int i=0; i<mapWidth; ++i) {
    for (int j = 0; j < mapHeight; ++j) {
        cell = layer.getCell(i, j);
        if (cell == null) continue;
        System.out.println(cell.getTile().getId());
    }
}

You should get a a single output, whose value is the ID incremented by 1.
Version of LibGDX
Libgdx 1.9.6
Tiled 1.0.2

Your tileset probably has firstgid=1, which means that tileset is starting at 1 for that particular map.
In Tiled, the tiles show their local tile ID, but Maps can consist of many tilesets (if you check in Tiled, they will all show their local ids, which would clash if used in one map), so there needs to be some global id system, which is what firstgid is for.

I got the same issue. Thx for this thread saving my life.


Data is returned as bytes

It seems that this library does not properly decode the data it gets from the API. I'm getting a UnicodeDecodeError ('ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)) when trying to render a FirstName which has the value "Sébastien".

The problem is https://github.com/Mangopay/mangopay2-python-sdk/blob/9e222e632b6828bfde1aeff3b936d6f9699f5bb9/mangopay/fields.py#L83-L85. The values are properly decoded, but then this code re-encodes them, which is a bad idea.

Hello @Changaco !
Thanks for bringing up this issue. I did some tests locally, with the following code sequence:
natural_user = NaturalUser(first_name='Sébastien',
                           last_name='Hugo',
                           address=Address(address_line_1='AddressLine1', address_line_2='AddressLine2',
                               city='City', region='Region',
                               postal_code='11222', country='FR'),
                           birthday=1300186358,
                           nationality='FR',
                           country_of_residence='FR',
                           occupation='Writer',
                           income_range='6',
                           proof_of_identity=None,
                           proof_of_address=None,
                           person_type='NATURAL',
<EMAIL_ADDRESS>                           tag='custom tag')
natural_user.save()
user = User.get(natural_user.get_pk())

import pdb; pdb.set_trace()

console output at breakpoint:
(Pdb) user.FirstName
'S\xc3\xa9bastien'

(Pdb) print user.FirstName
Sébastien

so the value of the FirstName is printed correctly. I have to mention that the header of the file contains # -*- coding: utf-8 -*-.  The test have been performed with Python 2.7.10.
Please provide me the version of Python and the script that is causing failure if possible.
Thanks!

Your pdb output demonstrates exactly what I said, which is that strings are re-encoded as utf8 under python2 (you get 'S\xc3\xa9bastien' instead of u'S\xe9bastien'), by the 3 lines of code I linked to in my previous comment. Solving this issue involves removing those 3 lines.

Hello @Changaco !
I will release very soon this new fix thanks to @gabriellupu commit 👍


WX - Issue "Functionality" #7: Hide Items After Splitting Bills

Now after splitting bills, the items are hidden rather than deleted. A new section at the bottom of the home screen includes all the hidden items.

The dropdown menu shows all the split items. LGTM after fixing the merge conflicts


electron-packager unexpectedly copies entire package.json into distribution

Preflight Checklist

[x] I have read the contribution documentation for this project.
[x] I agree to follow the code of conduct that this project follows, as appropriate.
[x] I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

Electron Packager Version: 15.1.0
Electron Version: v10.1.3
Operating System: darwin 19.6.0 (x64)

Expected Behavior
electron-packager creates a distribution with the minimal package.json required for Electron. As far as I know, it only needs to contain the main field. It should not leak private info about my development setup.
Actual Behavior
electron-packager seems to just copy-paste my entire package.json into the distribution. This contains all kind of unnecessary and private info, such as my devDependencies and scripts. These are never accessed at runtime and so should not be distributed.
To Reproduce
A minimal repo here on this branch, but it seems to happen under standard conditions.
Additional Information
Is there a standard way to work around this behavior?

So here is my awful hacky workaround. It creates a custom afterPrune callback, which modifies the package.json to only include fields necessary for distribution.
I'm going to leave this issue open, as I don't know whether this is the expected or best way to achieve this. It certainly feels like an ugly way to achieve the behavior that I expected.
#!/usr/bin/env node
const packager = require("electron-packager");
const {readFileSync, writeFileSync} = require('fs');
(async () => {
  const appPaths = await packager({
    dir: '.',
    name: 'MyElectronApp',
    overwrite: true,
    prune: true,
    afterPrune: [(buildPath, electronVersion, platform, arch, callback) => {
      const packageJsonPath = buildPath + '/package.json';
      const devPackageJson = JSON.parse(readFileSync(packageJsonPath));
      const prodPackageJson = Object.fromEntries(['name', 'version', 'main'].map(k => [k, devPackageJson[k]]));
      writeFileSync(packageJsonPath, JSON.stringify(prodPackageJson, null, 2));
      callback();
    }],
  });
  console.log(`Electron app bundles created: ${appPaths.join("\n")}`);
})();

So here is my awful hacky workaround. It creates a custom afterPrune callback, which modifies the package.json to only include fields necessary for distribution.
I'm going to leave this issue open, as I don't know whether this is the expected or best way to achieve this. It certainly feels like an ugly way to achieve the behavior that I expected.
#!/usr/bin/env node
const packager = require("electron-packager");
const {readFileSync, writeFileSync} = require('fs');
(async () => {
  const appPaths = await packager({
    dir: '.',
    name: 'MyElectronApp',
    overwrite: true,
    prune: true,
    afterPrune: [(buildPath, electronVersion, platform, arch, callback) => {
      const packageJsonPath = buildPath + '/package.json';
      const devPackageJson = JSON.parse(readFileSync(packageJsonPath));
      const prodPackageJson = Object.fromEntries(['name', 'version', 'main'].map(k => [k, devPackageJson[k]]));
      writeFileSync(packageJsonPath, JSON.stringify(prodPackageJson, null, 2));
      callback();
    }],
  });
  console.log(`Electron app bundles created: ${appPaths.join("\n")}`);
})();

Could you please provide more data on where did you add this?
And which command did you use for the build?


RFE: Rancher server in a federated model

Ability to run rancher servers in a distributed highly available manner. Running rancher servers local to the datacenter's they manage as a shard/part to a larger rancher deployment. Each shard could have it's own dedicated database.

With the release of Rancher 2.0, development on v1.6 is only limited to critical bug fixes and security patches.


Battery level in the "Vacuum Status" text

Description
As per the title, it would be awesome to have the battery level displayed along with the "Vacuum Status" text.
Solution
for example:
valetudo: docked (100%)
Alternatives
No response
Context
No response

@zecoj Thanks a lot for this proposal, it is a cool idea will do it on the next release. If you don't mind, would you star this project please, this helps a lot.

Thanks. Look forward to seeing this feature!

@zecoj so: the implementation of this function will show the battery state when the vacuum is cleaning, moving, idle or error when docked the battery state (that is anyhow available in the card) will be not display (it makes no sense and also it is in order to avoid updates of the image while docked).
Although there will be a battery_state attribute coming our from the camera.
Hope this will meet your requirements, I mean of course it possible to use also the battery state from the vacuum but this should in any cases give an idea of what is the state of the battery in case a snapshot during error condition is taken.

as preview of how it looks ;)

That's awesome! I think there's a good case to have it display the battery when charging: charging/docked in between longer clean for larger houses. I think if you can show the battery when docked if it is less than 100%, that would probably be a good compromise.

@zecoj v1.5.8 is now available, hope you will enjoy it at your disposal for any future requirements or ideas. I will try to improve it in the future release because actually I thought the same ;)

Thanks for this, just tested it out and working as expected!
I still think it's good to show the battery while docked. Like I mentioned, if the vacuum is recharging whilst cleaning, it'll be good to know the battery level to know when it'll start cleaning again.

Thanks for this, just tested it out and working as expected!
I still think it's good to show the battery while docked. Like I mentioned, if the vacuum is recharging whilst cleaning, it'll be good to know the battery level to know when it'll start cleaning again.

I got you point and as workaround for the time be, there is the possibility to use the tile in the card to see the battery level.
type: custom:xiaomi-vacuum-map-card
map_source:
  camera: camera.valetudo_v1_silenttepidstinkbug_camera
calibration_source:
  camera: true
entity: vacuum.valetudo_silenttepidstinkbug
vacuum_platform: Hypfer/Valetudo
internal_variables:
  topic: valetudo/SilentTepidStinkbug
....

tiles:
  - tile_id: battery_level
    entity: vacuum.valetudo_silenttepidstinkbug
    label: Battery
    attribute: battery_level
    icon_source: vacuum.valetudo_silenttepidstinkbug.attributes.battery_icon
    unit: '%'
....

But as mentioned above (as per the camera need to catch when the vacuum is connected to MQTT and change the label text to docked) it will be possible to to have the Docked/Charging -> Docked (Battery: 100%) transition. I'm confident on your kind understanding, technically the camera suspend the image creation when the vacuum is docked (so the status text become a little more complex).. I would need to move the text refresh in a new thread  to do not overload home assistant.. As well if I understand you want to charge the battery and then send the robot to another room for example? this can be done with the automations and the battery level in the camera attributes is updated.
As soon I'm done with it, I will get in contact with you here in GitHub.

@zecoj

does it looks better? ;) next version will have it

And I don't why but also improved the rendering..


Fix always showing scroll in sidebar in Chromium browsers

@HaGuesto @aerinsol FYI

@aerinsol @HaGuesto I'll go ahead and merge this since it's a single CSS change.


inference time's Comparison  : original vgg16 vs  cVGG-16_3C4x

Hi.
I try to finetuning about each imagenet pre-trained model(original vgg16 vs  VGG-16_3C4x) using my new data.
I was successful learning(finetuning) using the channel_pruning_VGG-16_3C4x model you provided.
When referring to only a single image, the inference time is not different from the original model.
"https://github.com/yihui-he/channel-pruning/wiki/inference-time-on-GPU"  is very different from here. Could you tell me why?
@yihui-he

I don’t know.


No easy way to re-trace steps from "Create service role", once the button has been clicked once.

If you click “create a new role” and then close that tab, without actually creating the role, then the “create a new role” button is gone and the user is stuck

Hi, we'll look at improving this, in the meantime you can follow the docs on creating a service role then click the refresh button and the role will appear.


Memory usage: This webpage is using up significant memory

A friend of mine is working on a big excalidraw drawing (1.1 Mb JSON file) and is getting this warning in Safari.

She also notices that sometimes, Excalidraw is stuck for a couple of seconds when zooming in and out and in other operations.
I recorder a performance profile on Firefox. And it's included here. Note that the buffer was full after less than a minute of the recording !
I don't know much about profiling but i guess it this recording would be useful for debugging.
profile.zip

Here is a snapshot of memory usage taken from firefox
snapshot.zip

Hmm, it’s only 22meg from this screenshot. That seems reasonable. I wonder if it’s hiding something

@haikyuu would it be possible for you to mangle the strings in the scene (to avoid any sensitive content from leaking) and uploading the scene so we can try to profile and understand what is going on?

Or if it's semi-private and can afford being seen by a few eyes, you can send it to<EMAIL_ADDRESS>

Even better. Here is the file.
I used a simple VIM macro to replace all texts.
debug.zip

Here is the file.

That's the biggest real life Excalidraw scene :) We should do something smart with the scroll to content.. because it leads to nothing in this case.. but that's another story.

using something like excel sheets might be a good idea 🤔

The idea is to only load the current sheet in memory.

In terms of User experience. It's good to have a way to organize my work. As it's not practical to have a huge file that contains everything. I do get lost !
And we would only load the current sheet in memory, which would make things fast.
That's of course regardless of the optimizations we could make

So for the memory aspect, it starts at 6meg of js heap, which is totally reasonable.
Where things get a bit out of hands is that any time we select something, we add a new entry to the history. This means that we serialize the entire state and keep one more giant string into memory. Each string saved is adding ~1meg of retained state.
For such a massive scene, we should invest in storing a delta in the history.

The server won't let us upload a file that big:
{"description":"Internal Server Error","error_class":"BadRequestError","error_code":500,"error_message":"Internal Server Error","error_name":"internal-server-error","status":"error"}

For exporting the png, the canvas crashes in a funny way in Chrome:

On the bright side, scrolling through the scene is silky smooth at normal zoom level on my macbook pro. On minimum zoom it's not 60fps but closer to 50, it's totally reasonable.

Excalidraw is stuck for a couple of seconds when zooming in and out

I only enabled zoom cache busting delay for continuous touch gestures. We could extend it to do the cache busting in a requestIdleCallback so we don't starve out other work while we're regenerating all the textures.

For those at home, this is how the scene looks like:

The idea is to only load the current sheet in memory.

What you could do is to use your file system in order to get organized. You can save/load a different file for each sheet you are interested in.
The nice part about infinite canvas is that there's less of a cognitive hurdle to start a new page, you can scroll to a different part and keep drawing :)

Thanks so much for you and your friend for helping out! It's great to have a real example of a large scene.
 All the optimizations we've done recently are bearing fruit. It looks like history management and cache busting are the two areas that are in need of more sophistication as well as improving error messages.

You're welcome. I'm glad we could help.
Excalidraw is by far the best and simplest doodling app out there.

The nice part about infinite canvas is that there's less of a cognitive hurdle to start a new page, you can scroll to a different part and keep drawing :)

That's true. And it's one of the best features of excalidraw.
What i was suggesting belongs to a new issue i guess, for further discussion. I'm using firefox containers for now. And it's good enough

Feel free to open new issues with whatever ideas you have!

@haikyuu we just merged big improvements related to memory usage. Could you try again and let us know if it helps?


[TASK]: Calibration Sampling, result file concat

It would be useful to have additional result files handy for the calibrate operation.
We can extrapolate on the current results and store these additional things into S3 along with the other "result_files".
There additions are:

[ ] A sampling of the dill file that produces a distribution histogram that we can use to get a sense of what were the calibrated parameter values.

This is meant to generate the histograms

param a
param  b
param ...

sample value
sample value
...

sample value
sample value
...

...
...
...

[ ] Errors outlining how far each sample as away from the ground truth, if applicable

This is meant to generate the error distribution and raincloud-plot

sample
state a
state  b
state ...

1
error
error
...

2
error
error
...

...
...
...
...

Note 1: Probably talk to @liunelson about point-1.
Note 2: The formats may be subject to change

The file lengths/column names are not the same - Check the mapping for this
The ground truth file aka input dataset is not 100% guaranteed to be accessible in the pyciemss-service when we have the simulated calibrated output file - need to check this
-If we cannot find this file in pyciemss-service we should just do this in the hmi-client

@jryu01 - please provide the output for this error file
@me to check out /vegalite for examples

-Per sample
-Compare on timestamp column


Activating Printer in MC 1.20.2 doesn't work (environment details provided)

Your main Github page has a link to a Modrinth page:
https://github.com/aria1th/litematica-printer leads to:
https://modrinth.com/mod/litematica-printer-easyplace-extension/versions
I am using (all of these are the latest for 1.20.2):
Fabric Loader 0.15.3
fabric-api-0.91.3+1.20.2
Litematica-Printer-Easyplace-Extension 7.1.0 (from Modrinth)
litematica-fabric-1.20.2-0.16.0
litematica-printer-mc1.20.2-7.1.0
In M+C it recognizes printer settings. However, when I press CAPS_LOCK with a loaded in schematic- nothing happens. I also tried pressing V (as instructed here, since your github page specified a lot of settings but did not specify the controls to activate as far as i could see. whereas this one did specify controls)
Feedback would be greatly appreciated,  thank you!
Please Note: I am not using multiMC I just loaded in the mods manually. Would this make any difference though in-game? I'd really prefer to not have yet another Minecraft loader on my PC.

To update I added it to MultiMC as a test. It still does not work.
MultiMC Log: https://hastebin.skyra.pw/difebogaqo.swift


Reduce Jenkins spam

Jenkins job istio-testing/pr-master passed

Jenkins job istio-testing/pr-master passed


Folder with a Space (e.g ..\Epic Games..)

it typically occurs in the root folder.


fix: don't rewrite Next.js server actions' requests

What/Why?
Behind the scenes, Next.js server actions are translated into POST requests that get handled by the framework. withRoutes middleware was intercepting and rewriting these requests as page renders.

@agurtovoy nice catch. should this PR perhaps be to main? I think this is relevant to all users of Catalyst.

@bookernath Good point, closing this one in favor of https://github.com/bigcommerce/catalyst/pull/1707


[BBC] Unable to extract playlist data

Checklist

[X] I'm reporting a broken site
[X] I've verified that I'm running yt-dlp version 2021.12.01. (update instructions)
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
United Kingdom
Description
yt-dlp https://www.bbc.co.uk/archive/tomorrows-world--first-edition/zrrpjhv
[bbc] zrrpjhv: Downloading webpage
ERROR: [bbc] zrrpjhv: Unable to extract playlist data; please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.; please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
Verbose log
[debug] Command-line config: ['-Uv', 'https://www.bbc.co.uk/archive/tomorrows-world--first-edition/zrrpjhv']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
[debug] yt-dlp version 2021.12.01 [91f071a] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19042-SP0
[debug] exe versions: ffmpeg 4.4-essentials_build-www.gyan.dev (setts), ffprobe 4.4-essentials_build-www.gyan.dev
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2021.12.01, Current version: 2021.12.01
yt-dlp is up to date (2021.12.01)
[debug] [bbc] Extracting URL: https://www.bbc.co.uk/archive/tomorrows-world--first-edition/zrrpjhv
[bbc] zrrpjhv: Downloading webpage
ERROR: [bbc] zrrpjhv: Unable to extract playlist data; please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.; please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "yt_dlp\extractor\common.py", line 597, in extract
  File "yt_dlp\extractor\bbc.py", line 1262, in _real_extract
  File "yt_dlp\extractor\common.py", line 1171, in _search_regex
yt_dlp.utils.RegexNotFoundError: Unable to extract playlist data; please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "yt_dlp\extractor\common.py", line 597, in extract
  File "yt_dlp\extractor\bbc.py", line 1262, in _real_extract
  File "yt_dlp\extractor\common.py", line 1171, in _search_regex
yt_dlp.utils.RegexNotFoundError: Unable to extract playlist data; please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 1329, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1398, in __extract_info
  File "yt_dlp\extractor\common.py", line 623, in extract
yt_dlp.utils.RegexNotFoundError: [bbc] zrrpjhv: Unable to extract playlist data; please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.; please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.

Duplicate of #1374

Ah sorry, I didn't think it was the same because it's on a different section of the website.


FHEM TFA Sensors

Please add Sensors for Instance TFA (866 MHz) temperature and/or humidity, which are connected via FHEM to iobroker.

Hi, thanks for your feature / adapter request. Please give me some more information. The best way is to post a screenshot with an example device where I can find important datapoints like connected/battery/RSSI/link quality etc.

Hi Christian,
First many thanks for your adapter and your excellent work. Very fast response.
I’m not so familiar with Github and to  posting there, so I send you the requested information directly via Mail . Should I publish this information also on Github itself? If you need additional information, please let me know.
I’m using FHEM installed native on a x86 device and in iobroker the FHEM adapter
I have checked  if I see differences in batteryState . The picture below shows only state false, but und FHEM itself I see
There are also other informations, but not in iobroker for instance RSSI
Here is a TFA sensor in FHEM with battery state low and in iobroker  it is  a “true “ state.
Wir können auch auf Deutsch schreiben 😊
Gruß Marcel
Von: Christian Behrends @.>
Gesendet: Dienstag, 14. Februar 2023 19:38
An: ciddi89/ioBroker.device-watcher @.>
Cc: hoehnem @.>; Author @.>
Betreff: Re: [ciddi89/ioBroker.device-watcher] FHEM TFA Sensors (Issue #137)
Hi, thanks for your feature / adapter request. Please give me some more information. The best way is to post a screenshot with an example device where I can find important datapoints like connected/battery/RSSI/link quality etc.
—
Reply to this email directly,  https://github.com/ciddi89/ioBroker.device-watcher/issues/137#issuecomment-1430203691 view it on GitHub, or  https://github.com/notifications/unsubscribe-auth/AS7REY65BCPA4VRLVDBX3ZTWXPGI5ANCNFSM6AAAAAAU3J3LHE unsubscribe.
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/AS7REY3TSYSAR5DAC6NWMT3WXPGI5A5CNFSM6AAAAAAU3J3LHGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSVH4WSW.gif Message ID: < @.> @.>

Der Batterystate wechselt zwischen "true" = low(FHEM) und "false" = ok(FHEM) Die Aktualisierung ist bei mir ca. 2,5 Minuten .Es ist ein Mindesteventintervall(FHEM)  bei den Sensoren von 5 Minuten eingestellt.


autoformatting with ocp-indent sometimes garbles text

I'm really unsure as to what is causing this, but I thought I would report the basic details. I've gotten my editor into a state where, when editing a particular file, every save causes the contents to be garbled. When I disable editor.formatOnSave, the garbling stops. I've attached some before-and-after pictures.
Before save:

After changing formatOnSave to true, and saving:

I believe this issue may have been caused by a problem synchronizing edits with the language server which has now been fixed upstream. I'm going to close this but let me know if it happens again.

I just saw this happen again, on my son's computer this time. Not sure what the reason is.

It's still happening, but only when edits (not file saves) are happening quickly. An easy way to trigger it is to hold down Cmd+z or Cmd+y for a few seconds and then save. I also have a few VS Code macros that edit multiple lines instantly and cause this desync. I hit this issue a few times a day on average.


how to use

How to implement a nonlinear MPC system? the code in examples implement a simple linear MPC system.

Just create either a nonlinear objective, dynamics, or constraint and you'll have a nonlinear MPC. See here for example (nonlinear dynamics).


Question: Why does the recursive call to schedule not overflow the stack?

The start of the go process will create some threads, which will trigger the go scheduling method. When the go process exits (goexit), the schedule method will be called again for the next round of scheduling. Why does the recursive call to schedule not overflow the stack?

What version of Go are you using (go version)?

$ go version

1.15

Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
go env Output
$ go env

What did you do?

What did you expect to see?
What did you see instead?

We don't use the issue tracker for questions.  Please use a forum.  Thanks.
When using a forum, please show code as plain text or as a link to the Go playground or the Go source code.  Please don't show a screenshot.  Those are very hard to read for many people.  Thanks.
As the comment for the schedule function says, the function never returns.  There is no recursive call.

Thank you for your reply. schedule does not call schedule  directly inside. There is no recursive call.


operator: rename OperatorConfig member to match flag name

We usually use the same name for the flag const and the option struct
member to make it easier to grep for option usage.
Fixes: edc1a0a0d268 ("operator: Add cilium node garbage collector")

Unit tests passed and reviews are in. Given this is a simple rename, full e2e tests aren't necessary. Marking as ready to merge.


added codeforces round #726 div 2 b cpp solution

codeforces div2

Thanks for feedback, I will do it.


Update city_of_welland.json

Updated data link.

@KHobbs3 Looks like the number/address fields need to be updated

@KHobbs3 something is wonky about the coordinates in this one. They all seem to be the same point. Have you tested opening it in QGIS to make sure it is valid?

@KHobbs3 something is wonky about the coordinates in this one. They all seem to be the same point. Have you tested opening it in QGIS to make sure it is valid?

The map looks okay for me in QGIS but the coordinates do look extremely similar in the table so I'll keep investigating to try to sort that out! Thanks


Add an otelcol.receiver.datadog

Request
Various folks have requested that we add the datadog receiver from OTel contrib to Alloy.
Use case
It's useful for folks to ingest traces in the Datadog APM format. I suppose there are still lots of applications which are Datadog-instrumented.

Hello @ptodev , I would like to pick this up, could you please assign it to me?

Hi, @kehindesalaam, of course! Thank you!

Hi @kehindesalaam - just to let you know, otelcol.exporter.logging is a simple OTel component which you could use as a example:
https://github.com/grafana/alloy/blob/main/internal/component/otelcol/exporter/logging/logging.go
https://github.com/grafana/alloy/blob/main/docs/sources/reference/components/otelcol.exporter.logging.md
https://grafana.com/docs/alloy/latest/reference/components/otelcol.exporter.logging/

Hi @kehindesalaam, apologies, but I think some other contributors seem to be interested in picking this up and so I have unassigned this for now. If you would like to contribute through porting an OTel component, I could let assign you another one?

Hello @ptodev sorry for the irresponsiveness. I took a long summer vacation and was not available during that time. I will find some other component to work on. If you already have one in mind, I would appreciate the pointers.

Hi, @kehindesalaam! I hope you had a good vacation. I am also back from a week-long PTO today :)
I think otelcol.processor.groupbyattrs would be a good candidate. There is already an issue open for it, the config is quite simple, and according to a recent survey, it seems to be frequently used.

Hello @ptodev , I'm still new to the project but I checked it out and think I understand it. I will reach out to you if I need an extra clarification. You can assign it to me please.

Thank you! Could you please comment on the other issue? I'm not able to assign it to you otherwise. There's a restriction in the GitHub settings, so I can't see you in the drop down for assignees if you haven't commented :)


inital POC w/ Runnable

fixes #53

I will merge as is and create follow-up issues to move us closer to completing demo B.
Followup issues include linked list support, as well as creating the GRPC interfaces and server/clients for this.
Once this is complete, the question we need to ask is how to integrate into the primary binary.


Update HeroSystem6e.html to improve the Combat tab

Allow set and brace to be used along with another maneuver (e.g., strike or haymaker) as per rules
Separate the various kinds of combat maneuvers for cleaner look
Bring Skill Levels to the top so that they are not overlooked
Separate the range modifiers and called shots from the refined hit location areas
Move "focus" to called shots

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[x] The pull request makes changes to files in only one sub-folder.
[x] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

Character Sheet Info Roll20 Internal Use only.


Broken Docs Pages

https://www.eidolonai.com/docs/howto/customize_builtins
https://www.eidolonai.com/docs/components/simple_agent#defining-actions

Need to set redirects:
customize_builtins --> configure_builtins
custom_agents --> build_custom_agents.md
docs/components/simple_agent --> /docs/components/agents/simpleagent

@jovanrlee thank you for submitting issues!


neato component fails to load when robot is offline

Home Assistant release with the issue:
0.77.3 and all previous
Last working Home Assistant release (if known):
None, this is a principal design issue.
Operating environment (Hass.io/Docker/Windows/etc.):
Hassbian/Linux
Component/platform:
neato
Description of problem:
If the robot is not connected when HA starts up, the component fails to load. Conversely, I think that the neato component should be able to load even when the robot is not available and later recover once it is.
The situation right now is that the component fails to load and a restart of the entire HA system is required. I would prefer that a softer error is emitted on start and that we can later try to recover. I would like my HA to actually report to me that the robot can't be reached and that it's probably not connected, thus battery=dead and no connectivity, so it can send a IOS notification or similar. I can't do that when the component doesn't even load.
There's been some previous discussions in #11968 but that issue seems to actually contain a lot of different causes that lead to similar symptoms, thus I created a new issue to discuss this particular cause.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
neato:
  username: SECRET
  password: YeahSECRETtoo

Traceback (if applicable):
2018-09-18 08:40:37 ERROR (MainThread) [homeassistant.setup] Error during setup of component neato
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/neato.py", line 109, in setup
    hass.data[NEATO_LOGIN] = NeatoHub(hass, config[DOMAIN], Account)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/neato.py", line 133, in __init__
    self._hass.data[NEATO_ROBOTS] = self.my_neato.robots
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/account.py", line 64, in robots
    self.refresh_robots()
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/account.py", line 109, in refresh_robots
    endpoint=robot['nucleo_url']))
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/robot.py", line 41, in __init__
    if self.service_version not in SUPPORTED_SERVICES:
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/robot.py", line 157, in service_version
    return self.available_services['houseCleaning']
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/robot.py", line 153, in available_services
    return self.state['availableServices']
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/robot.py", line 149, in state
    return self.get_robot_state().json()
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/robot.py", line 122, in get_robot_state
    return self._message({'reqId': "1", 'cmd': "getRobotState"})
  File "/srv/homeassistant/lib/python3.5/site-packages/pybotvac/robot.py", line 60, in _message
    response.raise_for_status()
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/models.py", line 939, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://nucleo.neatocloud.com/vendors/neato/robots/OPS14617-985DADCE2451/messages
2018-09-18 08:40:37 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service_data=title=Invalid config, notification_id=invalid_config, message=The following components and platforms could not be set up:

 - [neato](https://home-assistant.io/components/neato/)

Please check your config., service=create>
2018-09-18 08:40:37 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=persistent_notification.invalid_config, new_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:

 - [neato](https://home-assistant.io/components/neato/)

Please check your config. @ 2018-09-18T10:40:37.737148+02:00>>

Additional information:

@dshokouhi seeing how you have responded to some of the related issues I think your feedback would be very useful :)
Is this a HA system design issue? Is it problematic registering entities later on?

@plajjan this is as designed.  When you restart HA, devices are setup again.  You need your botvac online at all times in the app for this component to work.  The 404 error indicates there is no device present at all meaning the cloud does not recognize your device is even present.  When that happens you need to bring the botvac online inside the app.   The 404 error is also due to the cloud issues Neato had where botvacs were kicked offline and needed to be reset to be brought back online.  These errors that you see with a 404 can even show up while HA is up and running without error so the restart is just one symptom of the issue.

@dshokouhi right, I understand the neato component is behaving as per the current design. I guess I'm suggesting a new design for this component. Why let it fail on startup if we can let it continuously retry this until it succeeds?
Is it a home-assistant design rule that components are only allowed to register entities on startup or why artificially limit the component this way? I understand that it might be easier to code but I don't see why there would be a rule limiting us to this design. Is there anything really stopping one from rewriting the component to retry this continuously and not just during startup?

@plajjan try to see if you experience the same issue with the pybotvac library.  Looking at the code and even Neato's developer guide you need the robot online for any interaction to work.  There is nothing else to be done asides from bringing it online because once you sign in the URL will not be valid until the session is established.  You also don't want to hammer Neato's servers every few minutes looking for something that is not there.
HA is also designed to setup platforms once you boot up.  If you think things can change take a look at all the source code and submit a PR :)  However a github issue is not the place to file a suggestion if something is working as designed.  There is a feature request subforum in the forums for feature requests.

Seems like this is more a limitation of the neato API than a bug so I'm going to close this issue.


WSL2 guides yield "requested resource NotFound 404"

When following the KinD Guide,
I'm getting:
Error: ApiError: the server could not find the requested resource: NotFound (ErrorResponse { status: "Failure", message: "the server could not find the requested resource", reason: "NotFound", code: 404 })

Caused by:
    the server could not find the requested resource: NotFound

The same occurs when following the WSL2 Guide.
(Tested on different machines with Windows 10 & 11)
I used the following steps:

Get Krustlet (also tested with v1.0.0-alpha.1)
wget https://krustlet.blob.core.windows.net/releases/krustlet-v0.7.0-linux-amd64.tar.gz
tar -xzf krustlet-v0.7.0-linux-amd64.tar.gz

Create cluster
kind create # Or enable the Kubernetes cluster in docker-desktop on Windows

Run the bootstrap.sh script (seems to be working fine)
 bash <(curl https://raw.githubusercontent.com/krustlet/krustlet/main/scripts/bootstrap.sh)

Install and run Krustlet
export mainIP=$(ifconfig eth0 | grep "inet " | awk '{ print $2 }')

KUBECONFIG=~/.krustlet/config/kubeconfig \
./krustlet-wasi \
--node-ip $mainIP \
--node-name=krustlet \
--bootstrap-file=${HOME}/.krustlet/config/bootstrap.conf

I tried a bunch of other IP addresses in a combination of changing it in --node-ip and in ~/.krustlet/config/bootstrap.conf

127.0.01
host ip (<IP_ADDRESS>)
WSL ip of host
WSL ip
Any random ip such as <IP_ADDRESS>

All give this same error, meaning it just cannot find the API server it seems

Hey, did you resolve this issue? I'm encountering the same problem.

Hey, did you resolve this issue? I'm encountering the same problem. Probably the Kubernetes Api has changed since the release. Testing on Kubernetes 1.23 and Kubectl 1.25

Nope, I'm still having the same issue unfortunately, tried several things in the mean time, but nothing worked

The same thing happens to me, I wasn't sure if I was doing something wrong. But if there are more people then surely there is a problem in the documentation or in the versioning as they say.

Can you try canary-builds? I resolved by it.
krustlet - canary builds


Low readability for highlighted code

What's the issue:

Highlighted code has low readability under some circumstances, see screenshots.
Steps to reproduce:

No steps needed, just open some code while Github Dark is enabled.
Screenshots:
Mine own .vimrc:

Some Javascript

Hi, please update the latest version and see if the problem still exist.

The screenshots above look like you're on v1. *

I have the same issue, I'm running 2.0. Code is not readable :-(
Looks great otherwise!

Thanks for reporting. This will be fixed in the next update. May I also ask that you paste the file url that you were viewing here? So I can take a look?

Thanks, https://github.com/emoncms/emoncms/blob/master/Modules/feed/Views/feedlist_view.php

Thanks, please let me know when you have pushed update. Will I need to update manually?
This was the file, however most code I look at looks similar:
https://github.com/emoncms/emoncms/blob/master/Modules/feed/Views/feedlist_view.php

I don't know what version I was on - I have now updated to 2.0. The issues remain though.

@glynhudson Thanks. Will definitely fix this.

The new update is released, closing this.


(fiddler4) Unlist due to Telerik request

Telerik reached out and is asking that the Fiddler package be removed as it is giving direct access to a download location they no longer show on the site. Since they have an information gateway to receive information prior to download, they have asked that we remove the package so that folks obtain the downloads directly from them.
This is not up for discussion, please keep comments respectful.

@ferventcoder I have removed the fiddler4 package from the AU processing, so new versions shouldn't be pushed to chocolatey.org 😢

We could still produce the package on this repository internally and make it available in releases, without making any problem with Telerik request, as it will never get pushed to gallery.
What do you think ?

It could even be considered to get embedded so that their endpoint doesn't get involved.

@majkinetor given the request that was received, I think it would be best to leave this package as is (i.e. preserved in the unlisted folder), and do nothing else with it.

@gep13 Sure.
I was just thinking generally about this problem. Maybe we could make a document about what users who want to depend on unlisted packages do.
I don't use fiddler so I couldn't care less, but, I could, for example, move a package to my AU repository which isn't associated to Chocolatey as a company, and make embedded package there. This can't be distinguished from users who cached the package in the Nexus/Artifactory as unlisting doesn't affect them, its way better since only AU uses the link once.

Please remove references to the url - that includes from this repository.

@majkinetor thanks.

@majkinetor :+1:

Do you have any recommendations for another proxy that can be configured for automated integration tests?

@russcam sorry, not sure i follow your question? Can you elaborate?

Sure. I was using this package for integration tests, to verify that a Windows Installer is using the proxy specified by input parameters to the installer. With Fiddler, I could set up a custom rule to capture the request traffic and assert that it contains a request known to come from the installer.
I could check the fiddler executable into source (license permitting) but would prefer to install and configure one through chocolatey because it's part of a vagrant provisioning step. So I'm wondering if there is another proxy chocolatey package that you could recommend for this?

You can try https://github.com/mitmproxy/mitmproxy
If it works for you, I can create a choco package.

@russcam ah, I see what you mean now 😄
In addition to the above, you might want to give this a try: https://chocolatey.org/packages/Charles

@majkinetor Hey, this mitmproxy tool seems to be a good alternative to both Fiddler and Charles. I would like to try it! Can you please create a package for us? I can also create one if you don't want to maintain it yourself or here. Thank you!

I added the issue in my repository: https://github.com/majkinetor/au-packages/issues/68
I am not sure when tho.

March 2017ish may have been the change over to collecting info - https://github.com/chocolatey/chocolatey-coreteampackages/issues/632