layer active when only one selected

Description
This PR forces the layer controls on the left hand side to only directly modify the layer to which they belong. This will make removing the viewer easier from an individual layer as now there is no way for a layer to go in and modify many layers when those elements are changed. If multiple layers are now selected the control panel on the left disappears, even if those layers are all of the same type. This PR also removes the functionality that allowed multiple clims to be simultaneously adjusted when multiple layers were selected. In practice I have found this functionality confusing and not very helpful. If others (@royerloic) feel strongly that we should support this in some way we can discuss how best to, but the current solution of allowing one layer direct access to all the other layers runs very much against the refactoring that we were trying to achieve.
I may still need to edit / improve some doc strings, but otherwise this is good to go.
Type of change

[x] Bug-fix (non-breaking change which fixes an issue)

How has this been tested?

[x] run example/layers.py now when multiple layers selected the control panel goes away and it is no longer possible to simultaneously adjust the clims of multiple layers

Final checklist:

[x] My PR is the minimum possible work for the desired functionality
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works

Hello @sofroniewn! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file napari/components/_viewer/model.py:

Line 263:25: E711 comparison to None should be 'if cond is None:'

In the file napari/components/_viewer/view/controls.py:

Line 26:1: W293 blank line contains whitespace

fixed pep issues, i will wait for @royerloic or @jni to review before merging


AdonisWindow maximise/restore button icon self-update

Hi, first of all thank you for this fantastic resource, it's an absolute time-and-eye-saver... dark themes are a necessity for survival!
It appears, however, that the maximise/restore button in the window control box of an AdonisWindow doesn't update when the WindowState changes, and I think it would be really nice to see the "restore down" icon when the window is maximised, and of course the "maximise" icon otherwise. Currently I only see the "maximise" icon.

Thanks for reporting this!
It used to work just fine, so it seems to got broken somehow.
I will take a look at this.


Show error when trying to run a .NET 5 app

.NET 5 debugging doesn't work due to #15.  Let's warn users about this explicitly.

DONE for v1.1


.translate(source=/target=) vs .init(source=/target=)

type: informational
priority: low
severity: none
deep_translator version: 1.4.3
Python version: 2.7 / 3.8
Operating System: Linux

So, I'm currently integrating some deep-translator backends with PageTranslate (a LibreOffice plugin). There's some overlap, and generally the API fits well. There's a few things I stumbled across however:

The "DEEPL_FREE" url in constants.py is missing a trailing slash. Probably also the /v2/ according to the API docs. (Albeit my API key isn't working, haven't tested any of this.)

Between Pons/Linguee and Qcri/Yandex there's a bit of inconsistency to initializing things. Namely the source=/target= parameter, which either goes along with the .translate() call, or with the class __init__(). I feel like that should be on the class constructor in any case (like the DeepL translator does). Else, you end up with currying if you want to switch between backends.
For example translationbackends.py:
    elif re.search("pons", backend, re.I):
        self.translate = self.from_words(
            deep_translator.PonsTranslator(source=source, target=target).translate
        )
    elif re.search("QCRI", backend, re.I):
        self.translate = functools.partial(
            deep_translator.QCRI(params["api_key"]).translate, source=source, target=target
        )

The dictionary .translate() function might also be worth renaming/splitting up. Perhaps a general convenience wrapper to simulate text translations through the word-by-word interface might be worthwhile.

Now for my use case, I probably need to bundle deep-translator. Which comes with a hefty price tag, since beatifulsoup pulls in lxml - thus bloating a LibreOffice extension from a few KB to 20MB. (And that's not even cross-platform).
Obviously there's some convenience in BS4. Though if feasible, it would be nice if that could be optionalized/omitted for some translation backends. If it's really just grepping from some HTML tags, and only concerns the dictionary translators, there are leaner options.
Again, might not be feasible or worth the time. And after all that's just a downstream concern. And I'm still contemplating if importing just a singular class from deep_translator import Yandex avoids pulling in the other dependencies. (Also doesn't really matter for OpenOffice, since D-L won't run in that Python environment regardless. Only a worry for the LibreOffice bundle.).

Another more practical concern: source="auto" should be implicitly supported by D-L, regardless of the translation service. If there's no provider support then deep-translator should run an implicit language detection. (Btw, langdetect is still a functional alternative to the proprietary online service.)

@prof-milki Thank you for these hints ;) Indeed there are inconsistencies in the code as you said! I didn't notice this until now. It's great that you noticed this. I will check it out asap.
You are also right about deepl I guess. The deepl docs are really bad (IMO), I couldn't figure out how to talk to their API. I couldn't test it too since I don't have an API. I guess I hoped that a user will eventually test it and give me some feedback.
Now for your hint about Bs4, like you said I'm also not sure if it is feasible, worth investigating or how much time consuming would it be. If it seems to be a concern for many users then maybe we should investigate more. I will let this issue open for further discussions about the topic.

@nidhaloff Thanks for the feedback!
As for the API, that's probably more of a long-term consideration. You might have/want to introduce **kwargs or optional parameters, so either invocation works / it doesn't break existing users. (I've just been contemplating how I would get my project to match up. Or at least have matching source/target= parameters.)

You are also right about deepl I guess. The deepl docs are really bad (IMO), I couldn't figure out how to talk to their API. I couldn't test it too since I don't have an API. I guess I hoped that a user will eventually test it and give me some feedback.

Well, I can quickly confirm that it's indeed working. But it really does require self._DeepL__base_url = 'https://api-free.deepl.com/v2/' with the /v2/ suffix. Haven't tested the Pro API of course. But I wouldn't believe there's a reason for it to behave any differently.

Now for your hint about Bs4, like you said I'm also not sure if it is feasible, worth investigating or how much time consuming would it be.

I think this might be redundant. Not entirely sure how, but it was BS4 that somehow pulled in lxml for me. But since this is not a dependency of D-T itself (only requires Pythons builtin html.parser), it also ceases to be relevant. A manual wheel cleanup should fix this for my packaging process.

@prof-milki Actually I'm already using optional parameters. Where do you suggest adding them exactly?
I will fix the deepl free URL asap ;)


WebMap Plugin: Instantiation and Projection

DotSpatial version: 2.0
So I am trying to integrate a web service into my map and I know the WebMap plugin has the functionality. So I have a couple questions:

Is there a way to add a web service to my map without using the AppManager? From the looks of it I think I have to let the AppManager add the extensions. But then it creates default controls. That is fine but I use a heavily customized GUI with customized Map, Legend, buttons , tools, etc. I end up having to go through hoops and ladders to hide the default controls so I can use my own controls. Then some hacks to tap into the Service Provider selector. It works but very hacky. Wanted to make sure there is no other way to do this without the overhead of the AppManager.

Looking at the source code it appears that when the web service is consumed it automatically sets the map projection to Mercator. It also reprojects all layers to that projection. Seems to work but now some of my other code gets hosed. Specifically the DynamicVisibility gets broken because the width should now be in meters instead of degrees. Some other issues too due to the reprojection. Is there any hope of reprojecting the images to the current map projection instead of the conforming to the projection of the images?

~AGP

Using the specific plugin functionality as "not a plugin" is definitely possible but, of course, it is going to take some refactoring, i.e. reconstructing the project to only isolate the objects of interest.
Furthermore, if adapting your tools to the Mercator (Web Mercator actually) projection is totally out of the question, it is going to take some more effort to have it the other way around (i.e. project everything to the map projection).

I will take a look at some of the code this weekend.

So I am experimenting with adding geo images (gid +gfw) and then reprojecting the map. It looks like images can be reprojected. So with this in mind the web maps end up being rendered as images but cant quite understand why they cant be reprojected. I will do some more testing.

Images can certainly be reprojected but it is not as simple as for points. It is also not as simple as it is for images as well... Because map projections always affect the underlying geometry, reprojecting pixels as points typically ends up creating an image with blanks in-between. Due to that fact, image reprojection is implemented in a "lightweight" manner in DotSpatial (if I don't miss my guess, that is).
From what I have seen, the standard raster DataSet implementation in DotSpatial is based on the RasterBoundDataSet abstract base class and MapImageLayers can be built on top implementations thereof. Out of what I have seen, no class derived from RasterBoundDataSet actually overrides the Reproject() method. Checking the methodology, I find that the base class reprojects the image data using an Affine Transformation.
The thing is, affine transformations are far too simple to serve as approximations of geodetic map projections. So, are you adding the images as MapImageLayers?  Did you try overlaying images with other loaded shapes to see if they are OK? Did you check this on a relatively larger scale (i.e. zoomed out)?

Yes, after looking at the code yesterday the only thing I saw was AffineTransformation attached to image reprojection, just as you have stated.
In my test I added a raster of terrain, then a polygon layer for the US states, then a gif image of weather radar.

I then change projection of the map from WGS84 to North Pole Stereographic. It appears from this simple test that the only layer not reprojected is the terrain raster.  The gif image seems to be reprojected quite a bit off from where it should be according to the baseline polygon layer. It looks like only the corners of the image are reprojected.
Rasters not reprojecting is something I posted about before and was looking into experimenting with GDAL but it fell lower in my to-do list.

Here is how that looks in ArcGIS Pro for comparison

Yes, ArcGIS most likely performs a full warping of the raster, instead of simply reprojecting the corners (which is more like what the current implementation of the MapImageLayer does). The current implementation uses the RasterBoundDataset's method to reproject, which ends up transforming the four corners of the image and adjusting it on these coordinates. This is not correct, of course, as your test result shows.


Add heathcheck support

We should add health checking support to the host to know if a service is running properly.

There are livenessProbe and readinessProbe supported in K8s.
livenessProbe would ping on an interval reporting status, readinessProbe is used to check the start-up phase of a container (typically 10s after).
Are we looking to support both here?

Example of configuring a livenessProbe for health checks, could follow the same semantics in the m8s.yaml
livenessProbe:
  initialDelaySeconds: 2
  periodSeconds: 5
  httpGet:
    path: /health
    port: 9876

See https://github.com/dotnet/tye for the future of this project

BTW I 100% agree


Generate Generic and GitHub webhooks for builds

cc @ncameronbritt @rhamilto

@jeff-phillips-18 PTAL

Thanks @jeff-phillips-18


Broken again

Seems to be broken on Google Image search again, as of the past week or so, Tampermonkey script version <IP_ADDRESS>. The update link actually links to an even older version, <IP_ADDRESS>.

I've updated the script.
Force-update it.

I'm now on <IP_ADDRESS>, but still no resolution.

Can you take a screenshot so I can see what it looks like ?
Anyway, I'll continue testing until I encounter the same problem.

Hmm. Seems to be working now.


[Linux:mono:net451] System.InvalidOperationException: Can not find reference assembly 'Microsoft.CSharp.dll' file for package Microsoft.CSharp

I am getting the following error since moving from RC2 to 1.0.0
System.InvalidOperationException: Can not find reference assembly 'Microsoft.CSharp.dll' file for package Microsoft.CSharp
  at Microsoft.Extensions.DependencyModel.Resolution.ReferenceAssemblyPathResolver.TryResolveAssemblyPaths (Microsoft.Extensions.DependencyModel.CompilationLibrary library, System.Collections.Generic.List`1 assemblies) <0x41df48f0 + 0x000f7> in <filename unknown>:0
  at Microsoft.Extensions.DependencyModel.Resolution.CompositeCompilationAssemblyResolver.TryResolveAssemblyPaths (Microsoft.Extensions.DependencyModel.CompilationLibrary library, System.Collections.Generic.List`1 assemblies) <0x41deea60 + 0x00059> in <filename unknown>:0
  at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths () <0x41dee970 + 0x00091> in <filename unknown>:0
  at Microsoft.AspNetCore.Mvc.ApplicationParts.AssemblyPart+<>c.<GetReferencePaths>b__8_0 (Microsoft.Extensions.DependencyModel.CompilationLibrary library) <0x41dee940 + 0x00017> in <filename unknown>:0
  at System.Linq.Enumerable+<SelectManyIterator>c__Iterator2`2[TSource,TResult].MoveNext () <0x41ba1710 + 0x00193> in <filename unknown>:0
  at Microsoft.AspNetCore.Mvc.Razor.Compilation.MetadataReferenceFeatureProvider.PopulateFeature (IEnumerable`1 parts, Microsoft.AspNetCore.Mvc.Razor.Compilation.MetadataReferenceFeature feature) <0x41dee0c0 + 0x00173> in <filename unknown>:0
  at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature[TFeature] (Microsoft.AspNetCore.Mvc.ApplicationParts.TFeature feature) <0x41c8fd60 + 0x000d6> in <filename unknown>:0
  at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRoslynCompilationService.GetCompilationReferences () <0x41deddc0 + 0x000f7> in <filename unknown>:0
  at System.Threading.LazyInitializer.EnsureInitializedCore[T] (System.Threading.T& target, System.Boolean& initialized, System.Object& syncLock, System.Func`1 valueFactory) <0x7f61475c49c0 + 0x000d4> in <filename unknown>:0
  at System.Threading.LazyInitializer.EnsureInitialized[T] (System.Threading.T& target, System.Boolean& initialized, System.Object& syncLock, System.Func`1 valueFactory) <0x7f61475c4960 + 0x00055> in <filename unknown>:0
  at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRoslynCompilationService.get_CompilationReferences () <0x41dedc90 + 0x000e0> in <filename unknown>:0
  at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRoslynCompilationService.Compile (Microsoft.AspNetCore.Mvc.Razor.Compilation.RelativeFileInfo fileInfo, System.String compilationContent) <0x41db80d0 + 0x00193> in <filename unknown>:0
  at Microsoft.AspNetCore.Mvc.Razor.Internal.RazorCompilationService.Compile (Microsoft.AspNetCore.Mvc.Razor.Compilation.RelativeFileInfo file) <0x41d6c280 + 0x001c8> in <filename unknown>:0
  at (wrapper delegate-invoke) System.Func`2[Microsoft.AspNetCore.Mvc.Razor.Compilation.RelativeFileInfo,Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationResult]:invoke_TResult_T (Microsoft.AspNetCore.Mvc.Razor.Compilation.RelativeFileInfo)
  at Microsoft.AspNetCore.Mvc.Razor.Internal.CompilerCache.CreateCacheEntry (System.String relativePath, System.String normalizedPath, System.Func`2 compile) <0x41d67b40 + 0x003f0> in <filename unknown>:0

Is this running on mono?

Oh my goodness my mistake, I forgot that Mono is not supported and there is no intent to support mvc on multi platform.
Except on the marketing material off coarse. There mvc runs on everything ranging from toasters to dishwashers.

Found a workaround for now.
Copy everything in /usr/lib/mono/4.5 into /usr/lib/mono/xbuild-frameworks.
This commit was not thought through properly:
dc7bab9e28b44d08bf6136f1c5114bc06584cd47

Good job men!
It seems that 11908 and 4818 has been resolved. Our Asp.Net Core 1.0.0 app is running further than it did in RC2. Yay!
Looks like all that is left is this;

We've been using a zipped copy of Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1 to compile net451 on xplat and that's worked well for all of our repos. @pakrym might know if it knows to look for the Facades dir as part of the lookup.

@pranavkm https://github.com/dotnet/cli/blob/dc7bab9e28b44d08bf6136f1c5114bc06584cd47/src/Microsoft.DotNet.ProjectModel/Resolution/FrameworkReferenceResolver.cs#L330 yes, we are.
@pompomJuice you can set reference assemblies location using DOTNET_REFERENCE_ASSEMBLIES_PATH environment variable.

@pranavkm I have tried setting DOTNET_REFERENCE_ASSEMBLIES_PATH but for some reason it is ignored and does not work.
I also cannot find the code that breaks because on vs2015 where I debug the code it ends in kernel32. No idea where the code goes when running on linux. I don't really see any abstraction either.

@pompomJuice - this is what we do in our build scripts - https://github.com/aspnet/KoreBuild/blob/dev/build/KoreBuild.sh#L84-L93 and here's the package we point to http://www.myget.org/F/dnxtools/api/v2/package/NETFrameworkReferenceAssemblies/4.5.1 in case it helps.

@pranavkm Ok I checked those deployment scripts and what I am trying to say is there is a mechanism that tries to return a environment variable in dotnet core that fails on mono/net451:

Microsoft.Extensions.DependencyModel.Resolution.Resolve

The exactl line in question is this one
The code then reverts to this line which in turn results in this path.
Therefor I reiterate that the error is a dotnet core error not a ketrel one and I currently work around the issue with:
ln -s /usr/lib/mono/xbuild-frameworks/.NetFramework /usr/lib/mono/4.5
mv /usr/lib/mono/xbuild-frameworks /usr/lib/mono/xbuild-frameworks.bak
ln -s /usr/lib/mono/4.5 /usr/lib/mono/xbuild-frameworks`
cp /usr/lib/mono/4.5/Facades/*.dll /usr/lib/mono/4.5

@pakrym mentioned that the Facades folder is included, but it does not look like that functionality kicks in either. Therefor the last cp of those dlls.
After I did this workaround aspnet.core runs perfectly on linux/docker/mono/net451.

This issue appears to be back for me... .net core 1.0, mono <IP_ADDRESS> or whatever... the symbolic linking stuff doesnt resolve it. Fails to load microsoft csharp. The new mono xbuild-frameworks dont appear to ever have any dlls installed, but rather relatively reference the 4.5 folder in /usr/lib/mono.
I dont know how to troubleshoot further, but I suspect until .net standard 2.0 or whatever the version thats actually supposed to include more libraries on linux is around, this will continue to be a problem. Any pointers?

.Net Core 1.0 does not need mono. What is the error?

.Net Core 1.0 does not need mono, but many libraries still do. So many developers still forced to use mono.

There's actually this neat package that does some hacking to work around this problem https://www.nuget.org/packages/Microsoft.AspNetCore.Mono/ (which is more of an MVC.Razor problem)


Build integration-test: FAILURE

Cloud Build encountered an error:

Project: avocano-admin
Trigger:integration-test
Commit: b81c2f5 on branch main

View Logs
I'm an automation.  Googlers: go/avocano-admin-notifiers

Billing failure. Escalating internally.


vagrant up provisioning Fails

When I run vagrant up --provider virtualbox
It fails with the following:
==> default: /tmp/vagrant-shell: line 43: cd: /vagrant/: No such file or directory
==> default: bash: opencv2_4_9.sh: No such file or directory
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
Any suggestions?

further up the output:
==> default: Reading state information...
==> default: E
==> default: :
==> default: Unable to locate package libtiff
==> default: gpg:
==> default: keyring /tmp/tmpcnw2p7_q/secring.gpg' created ==> default: gpg: ==> default: keyring /tmp/tmpcnw2p7_q/pubring.gpg' created
==> default: gpg:
==> default: requesting key DB82666C from hkp server keyserver.ubuntu.com
==> default: gpg:
==> default: /tmp/tmpcnw2p7_q/trustdb.gpg: trustdb created
==> default: gpg:
==> default: key DB82666C: public key "Launchpad Old Python Versions" imported
==> default: gpg:
==> default: Total number processed: 1
==> default: gpg:
==> default:               imported: 1
==> default:   (RSA: 1)
==> default: OK


Update emergency route to find the nearest hospital and return appointment details

Added a emergency route which when provided with patient details and their pincode searches for the hospital which is nearest to them in terms of time that is we have included traffic and road blockages also. On the basis of that a appointment is created with the hospital and the user too.
Please add a OPENCAGE_APIKEY in your .env file . It is free for 2500 requests/day . It converts the pincode into lat and long and osrm has been used to find the time taken

there are some merge conflicts, and can you please comment out the pincode to lat thing for now, so that it can be implemented later

We are solving it.


QUESTION: required lines in init.vim

Hi there,
This is probably a dumb question... but is there a reason ncm2 or nvim-yarp can't include setting:
" enable ncm2 for all buffers
autocmd BufEnter * call ncm2#enable_for_buffer()

" IMPORTANT: :help Ncm2PopupOpen for more information
set completeopt=noinsert,menuone,noselect

with a global setting to overwrite/turn off the behavior?

completeopt is builtin vim option, It is an important option for completion. I do not want to modify it implicitly. A user familiar with vim should also know what it  does. It cannot be the default for all users. Some may prefer  set completeopt=noinsert,menuone. This is what I use in my vimrc:
set completeopt=noinsert,menuone,noselect
autocmd User Ncm2PopupOpen set completeopt=noinsert,menuone,noselect
autocmd User Ncm2PopupClose set completeopt=menuone

ncm2#enable_for_buffer is much more easier to understand. If you don't require customization, it's just a single line of config and you know what it does. Why bother keeping it?
I do not use that. This is what I use for better startup time:
func s:ncm2_start(...)
    if v:vim_did_enter
        call ncm2#enable_for_buffer()
    endif
    autocmd BufEnter * call ncm2#enable_for_buffer()
endfunc

autocmd VimEnter * call timer_start(1000, function('s:ncm2_start'))

Some may prefer this version:
    autocmd InsertEnter * call ncm2#enable_for_buffer()


Port/fwdport 6.2.5 6.3

@ironman-machine try

Hello @rahulreddy
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "SCALITY_S3_BRANCH": "port/fwdport-6.2.5-6.3", "DEFAULT_BRANCH": "rel/6.3"}
Please follow http://ci.ironmann.io/gh/scality/Integration/8631 for CI status.

@ironman-machine try

Hello @rahulreddy
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "SCALITY_S3_BRANCH": "port/fwdport-6.2.5-6.3", "DEFAULT_BRANCH": "rel/6.3"}
Please follow http://ci.ironmann.io/gh/scality/Integration/8637 for CI status.

End to end got retried and passed here http://ci.ironmann.io/gh/scality/Integration/8638#build-parameters


Mindmap does not load correctly in Safari browser

Hi Ondras
When I load your simple mindmap or want load mindmap from JSON in Safari(version 14.0.1), there is a bad positioning of items.
When I tryed load mindmap in Chrome,Firefox,Edge and Opera, there is no problem.
Have you any idea what should by wrong?

Hmm, this looks really bad. Probaby related to the recent SVG-based refactoring.
@Majkl45, what happens when you collapse/expand some parts of the map? Does the layout get fixed?
Unfortunately, I do not have access to any reasonable Safari (no Mac) to debug & solve this efficiently :-(

When I collapse/expand some parts of the map, boxes and texts are still getting stuck on the left top corner.
I came accros on this problem so I wanted to let you know about this bug.
Does not matter, I will propably use some other browser.

Okay, thanks for reporting and clarification. I will try to reproduce (and fix) on some Safari myself.

Same problem here with Safari, Firefox or Chrome on iPhone.

I had same kind of problem, I don't know if it will help, I just changed one line in the map.css: I removed the relative position of the item content :
.item .content {
/* position:relative; */
display : inline-flex;
align-items : center;
white-space : no-wrap;
cursor:pointer;
}
and now it works perfectly on all browsers.


applyDerivedChangesToCache index out of bounds

We have seen this issue in a smaller percentage of our user base. Any idea where to start on debugging it?

How do you handle write transactions in the app? Are they all performed on a serial background queue?

It's on the main thread.

Ok that rules out threading issues since main is serial. What version of FRC are you using and which version of Realm?

Hmm we pulled RBQ into our project so we weren't tracking it using CocoaPods or Carthage. (We're using it inside a swift framework, so we didn't want to do CocoaPods inside a framework.) Is there an easy way to check the version?
I'm on 0.94.1 for Realm.

If it is a submodule you can type:
git submodule status

to get the commit ID

We didn't submodule it. We literally just pulled in the code.

Hmm do you know roughly when you pulled the code?

Looks like 5/28/15

So maybe we do need to track the source somehow. CocoaPods still won't work for us. I noticed in another thread that you are working on Carthage support. Is that working now?

Did some more digging. And I have no idea if this is relevant. I am writing on the main thread, but it looks like there are multiple background listeners. This is from Crashlytics:

No that is normal. Every Realm instance creates a notification listener on background thread to handle automatically refreshing data changes from one realm instance to the next. I was traveling yesterday, will look into it a bit more. Would say though that given how old your pull of the code is, you should update to the latest. However, the latest (2.0) requires Realm 0.95.

K I'll try to update. Thanks.

Can you check if the error is occurring due to a section insert or a row insert? (i.e. in applyDerivedChangesToCache:state: is the error in the loop over derived section changes or derived object changes)

Looking at the stack trace we are updating an object. We section by date. So if an object gets it's date updated, that could certainly result in a section being created and another section being created or updated.
Another interesting anomaly is we have seen this crash 5741 and we have had 5741 users see the crash. So each user that does have it happen, sees it happen exactly once. And then is good.

Can you tell me what is the code at line 915 for you?

Did the code update fix the issue?

Hey sorry, things got a little crazy here. If the database got deleted while the FRC was tracking could that cause this issue?

Sorry for my delay in responding. I was traveling in Europe. If the database got deleted while the FRC was tracking that would probably be the cause. The FRC creates a cache representation of the table state (including the sections) in a second Realm (either in-memory or persisted), and then when changes occur in the main Realm, this cache is used to find the differences. If you delete the main Realm file and create a new one, the cache might not have been rebuilt, so it would throw an index out of bounds error potentially when trying to figure out the changes applied to the new main Realm.
Does this make sense?
To fix, you should call reset on the FRC after the main Realm is deleted/recreated. This will delete the cache and rebuild it, so that it matches the new Realm.

I believe I have fixed the bug in the latest release.


fix(tracer): add warm start annotation (ColdStart=False)

Issue #, if available: #850
Description of changes:

Before this feature, you'd only filter traces for cold start invocations.
Checklist

[ ] Meet tenets criteria
[ ] Update tests
[ ] Update docs
[ ] PR title follows conventional commit semantics

Breaking change checklist

RFC issue #:

[ ] Migration process documented
[ ] Implement warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

cc @pankajagrawal16 @t1agob

Changing to bugfix as Java and C# has it


⚠ Bofrost.lu has degraded performance

In 2b3a962, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1853 ms

Resolved: Bofrost.lu performance has improved in d58751b after 6 minutes.


Sync on fragments

Hide specific notes until a fragment is shown

Perhaps https://github.com/hakimel/reveal.js/issues/1275 looks like a good idea - I had the whole thing reversed, so I could not come to think of a proper interface... Mixing notes into fragment spans makes much more sense (or looks easier at least)


Cannot use node-api-dotnet with Microsoft.KernelMemory.Core

I'm trying to create a .NET Node Module with Microsoft.KernelMemory.Core , following this Quickstart guide
Besides of adding Microsoft.JavaScript.NodeApi and Microsoft.JavaScript.NodeApi.Generator, I added Microsoft.KernelMemory.Core  into the project
dotnet add package Microsoft.KernelMemory.Core --version 0.8.231108.2-preview
Then I got this build error.
.nuget\packages\microsoft.javascript.nodeapi.generator\0.4.20\build\Microsoft.JavaScript.NodeApi.Generator.targets(34,5): error MSB3073: The command "dotnet "C:\Users\happiness\.nuget\packages\microsoft.  javascript.nodeapi.generator\0.4.20\build\../analyzers/dotnet/cs/Microsoft.JavaScript.NodeApi.Generator.dll" -- assembly [a-lot-of-assembly] --module commonjs  --framework net6.0" exited with code 9020
I'm using Node 16 with .net 6.0. Any help will be much appreciated 😄

[a-lot-of-assembly]

That is indeed a lot of referenced assemblies. I reproduced this error, and confirmed the assembly list is too long to pass on the command-line. So this is a duplicate of #148
Since it is a blocking issue and you are not the only person to encounter it, I will raise the priority of that task. Hopefully we can resolve it soon.

Fixed and published to nuget as version 0.4.22.

Thank you @jasongin , I can confirmed it works with new version 0.4.22


Consistent GitHub action names, debug, and versions

Updates the GitHub actions so they have consistent names and debug output when running. Also fixes an inconsistent version for "setup-go@v5", all the actions have been updated to use go-version "stable".
Fixes #203
Updates GitHub actions for consistent action names, debug, and versions.

kind/documentation

DCO (Developer Certificate Origin) is failing as part of the CI of this PR. I believe the commit need to be signed to fix that.


Mumps: refactor coin-or-mumps related code while keeping compatible.

Motivation
nixpkgs#mumps is mainly used by ipopt and casadi, which use a coin-or-mumps compatible varient.
However those coin-or-mumps related code makes nixpkgs#mumps hard to maintain and contribute by other users.
This pr keep nixpkgs#mumps in parrallel with mumps-seq in Debian while keeping the minimal coinmumps compatible file
"mumps_mpi.h". Fix to upstream casadi should work with the new nixpkgs#mumps.
@nim65s
@abbradar
Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[x] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

After this pr is merged, there will be another update for mumps-par built with mpi support, many downstream packages urgently want this (mumps-par) such as pastix or petsc.

cc @MatthewCroughan

Result of nixpkgs-review pr 350824 run on aarch64-darwin 1

45 packages failed to build:

aligator
aligator.doc
casadi
crocoddyl
crocoddyl.doc
pinocchio
pinocchio.doc
proxsuite-nlp
proxsuite-nlp.doc
python311Packages.aerosandbox
python311Packages.aerosandbox.dist
python311Packages.aligator
python311Packages.aligator.doc
python311Packages.casadi
python311Packages.crocoddyl
python311Packages.crocoddyl.doc
python311Packages.example-robot-data
python311Packages.example-robot-data.doc
python311Packages.neuralfoil
python311Packages.neuralfoil.dist
python311Packages.pinocchio
python311Packages.pinocchio.doc
python311Packages.proxsuite-nlp
python311Packages.proxsuite-nlp.doc
python311Packages.tsid
python311Packages.tsid.doc
python312Packages.aerosandbox
python312Packages.aerosandbox.dist
python312Packages.aligator
python312Packages.aligator.doc
python312Packages.casadi
python312Packages.crocoddyl
python312Packages.crocoddyl.doc
python312Packages.example-robot-data
python312Packages.example-robot-data.doc
python312Packages.neuralfoil
python312Packages.neuralfoil.dist
python312Packages.pinocchio
python312Packages.pinocchio.doc
python312Packages.proxsuite-nlp
python312Packages.proxsuite-nlp.doc
python312Packages.tsid
python312Packages.tsid.doc
tsid
tsid.doc

8 packages built:

bonmin
ipopt
mumps
openturns
python311Packages.openturns
python311Packages.pygmo
python312Packages.openturns
python312Packages.pygmo

Result of nixpkgs-review pr 350824 run on aarch64-darwin 1

50 packages built:

aligator
aligator.doc
bonmin
casadi
crocoddyl
crocoddyl.doc
ipopt
openturns
pinocchio
pinocchio.doc
proxsuite-nlp
proxsuite-nlp.doc
python311Packages.aerosandbox
python311Packages.aerosandbox.dist
python311Packages.aligator
python311Packages.aligator.doc
python311Packages.casadi
python311Packages.crocoddyl
python311Packages.crocoddyl.doc
python311Packages.example-robot-data
python311Packages.example-robot-data.doc
python311Packages.neuralfoil
python311Packages.neuralfoil.dist
python311Packages.openturns
python311Packages.pinocchio
python311Packages.pinocchio.doc
python311Packages.proxsuite-nlp
python311Packages.proxsuite-nlp.doc
python311Packages.tsid
python311Packages.tsid.doc
python312Packages.aerosandbox
python312Packages.aerosandbox.dist
python312Packages.aligator
python312Packages.aligator.doc
python312Packages.casadi
python312Packages.crocoddyl
python312Packages.crocoddyl.doc
python312Packages.example-robot-data
python312Packages.example-robot-data.doc
python312Packages.neuralfoil
python312Packages.neuralfoil.dist
python312Packages.openturns
python312Packages.pinocchio
python312Packages.pinocchio.doc
python312Packages.proxsuite-nlp
python312Packages.proxsuite-nlp.doc
python312Packages.tsid
python312Packages.tsid.doc
tsid
tsid.doc

Result of nixpkgs-review pr 350824 run on x86_64-linux 1

54 packages built:

aligator
aligator.doc
bonmin
casadi
crocoddyl
crocoddyl.doc
ipopt
mumps
openturns
pagmo2
pinocchio
pinocchio.doc
proxsuite-nlp
proxsuite-nlp.doc
python311Packages.aerosandbox
python311Packages.aerosandbox.dist
python311Packages.aligator
python311Packages.aligator.doc
python311Packages.casadi
python311Packages.crocoddyl
python311Packages.crocoddyl.doc
python311Packages.example-robot-data
python311Packages.example-robot-data.doc
python311Packages.neuralfoil
python311Packages.neuralfoil.dist
python311Packages.openturns
python311Packages.pinocchio
python311Packages.pinocchio.doc
python311Packages.proxsuite-nlp
python311Packages.proxsuite-nlp.doc
python311Packages.pygmo
python311Packages.tsid
python311Packages.tsid.doc
python312Packages.aerosandbox
python312Packages.aerosandbox.dist
python312Packages.aligator
python312Packages.aligator.doc
python312Packages.casadi
python312Packages.crocoddyl
python312Packages.crocoddyl.doc
python312Packages.example-robot-data
python312Packages.example-robot-data.doc
python312Packages.neuralfoil
python312Packages.neuralfoil.dist
python312Packages.openturns
python312Packages.pinocchio
python312Packages.pinocchio.doc
python312Packages.proxsuite-nlp
python312Packages.proxsuite-nlp.doc
python312Packages.pygmo
python312Packages.tsid
python312Packages.tsid.doc
tsid
tsid.doc

I am going to create a separate mumps-par built with mpi and scalapack, the dependecy scalapack is broken on darwin,  mumps-par is a library and i would like to put it under pkgs/development/library

Are you currently at nixcon ? It would be way easier to discuss this in person

No, i am new to nix/nixpkgs/nixos. Maybe we can discuss this in matrix channel or telegram.


python310Packages.bthome-ble: 2.5.0 -> 2.5.1

Diff: https://github.com/Bluetooth-Devices/bthome-ble/compare/refs/tags/v2.5.0...v2.5.1
Changelog: https://github.com/bluetooth-devices/bthome-ble/blob/v2.5.1/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 212559 run on x86_64-linux 1

3 packages built:

home-assistant-component-tests.bthome
python310Packages.bthome-ble
python311Packages.bthome-ble


Anti join not working as intended for joins on multiple keys?

This may be some confusion due to my inexperience with database style joins, but it appears that the anti join is not working as advertised.  The doc says that

Anti: The output contains rows for values of the key that exist in the first (left) but not the second (right) argument to join. As with semi joins, output is restricted to columns from the first (left) argument.

And it works as expected for single key joins:
df1 = DataFrame(A = [1,2,3,4,5], B = ["a", "b", "c", "d", "e"])
df2 = DataFrame(A = [1,3,4], B = ["a", "b", "y"])
join(df1, df2, on=[:A], kind=:anti)

Row
A
B

1
2
"b"

2
5
"e"

For joins on multiple keys I would expect it would act as if I was joining on a single key which is every possible linear combination of component keys.  For the example here I would expect this to return a single row, but that's not the case:
df1 = DataFrame(A = [1,2,3,4,5], B = ["a", "b", "c", "d", "e"])
df2 = DataFrame(A = [1,3,4], B = ["a", "b", "y"])
println(join(df1, df2, on=[:A,:B], kind=:anti))

Row
A
B

1
2
"b"

2
3
"c"

3
4
"d"

4
5
"e"

Is this a bug or is there something I'm missing?

I kind of suspect every join on multiple keys is broken in some circumstances. Would be good to know if the problem is specific to anti-join or not.

The current behavior seems right to me.
Let's look at the matching semi-join:
join(df1, df2, on=[:A,:B], kind=:semi)
1x2 DataFrame
| Row | A | B   |
|-----|---|-----|
| 1   | 1 | "a" |

That's the only match between the the dfs on columns A & B, so so far so good, and I'm not familiar with relational algebra, so there may be better terms, but the results of corresponding semi- and anti- joins are disjoint and the union of the two result sets is identical (w/o row order) to the original table.
Does that make sense, or am I missing something in the example?

@garborg -- Sorry, I screwed up and confused semi and anti -- I just realized that my example is showing the expected behavior, but my actual data set appears to not be working.  Let me take another look and see if I can reproduce or if I'm just misunderstanding the data.

Excellent, please post your findings.
Be on the lookout for this pretty bad bug (maybe the same underlying machinery) if your data set has many unique keys: https://github.com/JuliaStats/DataFrames.jl/pull/815#issuecomment-112977331. (It would be great to merge a fix for the linked bug as soon as fixes are in place to get CI passing. Unfortunately I'm rather busy with unrelated work, and don't have cycles for the context switch now, so I can't drive the fix.)

To follow up, this whole thing was based on my misunderstanding of the data set I was using -- the duplicates I was trying to work on were already being filtered by a flag that wasn't working as advertised.  I'll keep an eye out for that bug.  One thing I have noticed is sometimes my kernel dies when I run complex by's.  It's only happened three times so far and I assumed it was related to the absurdly-large size of this data set, but I'll keep an eye out and see if I can figure out anything more specific.  Thanks -A

Thanks for the followup, @amellnik.


cant downlload anything

it says someting like that and I tryed some code else it give a AssertionError

me too, can anybody solve this issue

The same stuff, but it seems like no one will help here (

The same stuff, but it seems like no one will help here ( I recommend icrawler

yeah ı think so

The same stuff, but it seems like no one will help here ( I recommend icrawler

Have you found a working icrawler version?
I have had no success so far

it says someting like that and I tryed some code else it give a AssertionError

google changed their search result format, Im working on a workaround.

google-images-download.zip
here is an updated version with workaround.  couldnt do a pull request.

Вы нашли рабочую версию icrawler? Я пока не добился успеха.

I apologize for the late reply. I just downloaded the latest version of icrawler and it works fine for me.

google-images-download.zip — это обновленная версия с обходным решением. не смог сделать запрос на включение.

Thanks, for the reply and the development. I will test your implementation later.

google-images-download.zip here is an updated version with workaround. couldnt do a pull request.

I validated, this version works fine.  Thank you.

you can use Bing Image Downloader instead.
Github link - repo link

google-images-download.zip这是一个带有解决方法的更新版本。无法发出拉取请求。

我验证过了，这个版本运行良好。谢谢。
I still encountered this problem：

Unfortunately all 1500 could not be downloaded because some images were not downloadable. 0 is all we got for this search filter!
Errors: 1
({'ocean oil and gas leakage': []}, 1)


not able to install requirements.txt file for getmusic on windows

hello there ,thanks alot for this awesome tool , im experiencing some problem installing requirements.txt file , i tried to do it using anaconda but i get this error
(venv) C:\Users\ma\anaconda3\muzic\getmusic>pip install -r requirements.txt
ERROR: Invalid requirement: '_libgcc_mutex=0.1=main' (from line 4 of requirements.txt)
Hint: = is not a valid operator. Did you mean == ?
even after fixing it and making == it still throws an error
ERROR: Invalid requirement: '_libgcc_mutex==0.1=main' (from line 4 of requirements.txt)

it

How did fix it?
I run 'pip install -r requirements.txt' in ubuntu terminal, it shows ERROR: Invalid requirement: '_libgcc_mutex=0.1=main' (from line 4 of requirements.txt).
I install anaconda3, it still not work


Gene name link missing for PR:000044799 on cdc15 page

This is in the multi-allele phenotype section.  It should be "affecting cdc42 (GTP+)"
The term details in the mini-ontology file look OK.
Follow up: pombase/website#1710

I've fixed the problem.  My changes for #1710 weren't right.
It will require a nightly load so the change will be visible on Thursday.


Make 'account' for the slurm_header an input option

It would be nice to be able to choose the account name in the default section of the config file (basically removing the hard-coded e3sm value in zppy/templates/slurm_header.sh).

@forsyth2, I'm happy to implement this sometime if you don't get a chance.  Seems pretty simple.

I think this has been implemented, could you confirm? @forsyth2

Yes, #244 closed #238, which is a duplicate of this issue.


docs: update markdown-features/aseets docs to include an example of adding a video file

Pre-flight checklist

[x] I have read the Contributing Guidelines on pull requests.
[ ] If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
[ ] If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation
Hoping to help other folks looking to add video content have an easier time doing so than I did!
Test Plan
n/a
Test links
Deploy preview: https://deploy-preview-9997--docusaurus-2.netlify.app/docs/markdown-features/assets/#video-example
Related issues/PRs
n/a

A video is a file, and we already cover files here:
https://deploy-preview-9997--docusaurus-2.netlify.app/docs/markdown-features/assets/#files

The logic is the same for all files, and we can't document uselessly usage of all file types.
If you still think our doc is unclear, please improve the file section instead, but keep in mind I only merge carefully crafted docs PRs that consider the whole reading experience.


Use the graphs library

The built-in graph type can be used instead of our own version.

But then we would be diverging from the blog post. So first it would be good to create a release that matches what is in the blog post.

Isn't it also the case that multigraphs are needed but the graphs library only supports graphs.


feat: add loading indicator

Before the first character responses by API, a gap in UX shows that the app is running.
Closes: https://github.com/run-llama/LlamaIndexTS/issues/200
Related: https://twitter.com/jerryjliu0/status/1724956092340613281
Related: https://twitter.com/jerryjliu0/status/1725567003501670526
https://github.com/run-llama/LlamaIndexTS/assets/14026360/62f946f4-96be-4397-aca1-2f000f70babc

/cc @marcusschiesser

Just a question: How do you test the templates? I have to copy/paste from my existing project, and there's no type check (and seems no lint check) for templates in llamaindexts

Just a question: How do you test the templates? I have to copy/paste from my existing project, and there's no type check (and seems no lint check) for templates in llamaindexts. Feels dangerous

current approach is to use https://github.com/run-llama/LlamaIndexTS/tree/main/packages/create-llama/templates/types/streaming and copy the UI folder

Btw, I found that pnpm has a different install logic than others.
For example: typescript: ^5 will be 5.0.2 in pnpm but 5.3.2 in other package managers. This might cause some bugs in the runtime.

Good catch! I had precisely the same problem yesterday. For that reason, pnpm did not work, but npm did... Would you like to look at this in one of your next PRs and fixate the version numbers?

Btw, I found that pnpm has a different install logic than others.
For example: typescript: ^5 will be 5.0.2 in pnpm but 5.3.2 in other package managers. This might cause some bugs in the runtime.

Good catch! I had precisely the same problem yesterday. For that reason, pnpm did not work, but npm did... Would you like to look at this in one of your next PRs and fixate the version numbers?

Yes, I will check that


String without setting font gives "?"

Im attempting to set a "title" property of a view controller which does not give me access to the font and it returns a "?" symbol.
is there anyway to make this work? like it does with unicode characters?
self.title = String.fontAwesomeIconWithName(.Ambulance)

You have to change the font of the view controlle title.


Azkaban job configuration per environment

Hi guys,
is it possible to configure Azkaban to use different property files for job configuration on each environment like dev, stage, prod and so on? Like described here https://stackoverflow.com/questions/46939571/azkaban-job-configuration-per-environment

Hey @vladislav-sidorovich,
Looking at your stackoverflow example, I'm not sure how well the nested ${${}} will be handled. Could you set the db configuration in the system.properties file itself?
For example:
system.properties
myFlow/
   foo.job

#system.properties in dev environment
db=localhost:2181

#system.properties in prod environment
db=aws:port

#foo.job
some command --db ${db}

That's how we handle stuff here - alternating the configs themselves for the dev/staging/prod environments so individual flow/job doesn't have to worry about it.
Does that make sense?
Thanks!
Charlie

Hi @reallocf  thank you for answer!
The example on stackoverflow works :). And your example works as well.  And your example works as well.
But the  idea is to provide few property files (local, test, stage, prod) from developer's side because all these files will keep in Git. And it's more useful to have few files with different values of properties than keep one file and change the value of properties each time.

Well if your solution is working for you then feel free to go with that!
Another option would be to label each environment in a common.properties file in the plugins/jobtypes/ directory in your executor or solo-server. Properties defined there will be picked up by all jobtypes on that Azkaban instance (like global variables affecting the scope of every job) and you could differ the label for each environment.
After doing that you could define in code using a hadoopJava job or something else that executes arbitrary code.
Small example:
# In built instance
azkaban-exec-server/ (or azkaban-solo-server)
   bin/
   conf/
   lib/
   executions/
   plugins/
      jobtypes/
         commonprivate.properties
         common.properties:
            env.LOCATION=prod

# In your zip file
system.properties
myFlow/
   flow.job:
      type=command (hadoopJava jobtype is preferable, but command works for a small demo)
      command=python test.py
   test.py:
      from os import environ
      if environ["LOCATION"] == prod:
         print("This is prod!")

In this way, users only have to think about defining things in code which may or may not be easier depending on the complexity of your files and who will end up using your Azkaban installation.
There are probably another 4 or 5 ways to get your desired outcome. I'd use whatever works best for you and your team :smile:

Thank you very much.

@reallocf please consider this: it's common that users want to set environment-specific configurations in their own projects (zips) – so being able to set environment variables like env.LOCATION doesn't help there. How would you give an env-specific arg to your test.py? I don't see a way. The global config can't be changed by the users, and it's painful to add new properties in there.

We have implemented support for different environments in our custom job types.
It works like this.
Environment is set globally on the azkaban installation;
azkaban-exec-server/
   plugins/
      jobtypes/
         commonprivate.properties
         common.properties:
            environment=dev

When using our custom job types, the zip can be for example:
myFlow/
  myFlow.properties
  foo.job

# myFlow.properties
database=localhost:2181
dev.database=dev-db:2181
stage.database=some-host:2181
prod.database=another-host:2181

# foo.job
type=custom_type
some_arg=test value
prod.some_arg=real value
command=some_command --db ${database} "${some_arg}"

After resolving by env prefixes the result becomes =>
command=some_command --db dev-db:2181 "test value"

When our custom job types resolve props, they look for ${environment}.* ie. dev.* in this case, and insert its value as the flat property, in this case dev.database -> database. This overrides a possibly existing non-prefixed value.

I'd be really interested to hear if anyone has better ideas.
I wonder if it would make sense for azkaban itself to support this pattern. But I also feel that it's a bit "magical" and maybe not so beautiful in that sense, but it seems to work well for us.
I know that in many cases the environment specific configurations have been chosen to live in separate files. But it's always a bore having to edit 3 different files when you want to tweak some special property.
To me "our way" seems more like "package by feature" (which is good) while having env-specific files reminds me of "package by layer" (a mess).
IMHO, having separate files like myFlow-dev.properties, myFlow-stage.properties, myFlow-prod.properties is not so natural many times, especially when you just have a simple job that needs some value to be different in each env. See that prod.some_arg "override" in foo.job – if the property is specific to this job (and you have many such jobs that all need different values per environment), how would you accomplish that? You could maybe put the job file into a separate sub-folder and create something like foo/foo-prod.properties just to set that value.. It doesn't seem too appealing to me.

If we would be using the "out-of-the-box" solution ${${environment}.database} it would more or less mean that we would need to prefix every property name with ${environment}.. Too much hassle. And if you want to set a property that is implemented by a job type directly, for example Azkaban's own java job types' classpath, you have to always go via a reference. You can't just do dev.classpath=something but have to define separately dev.classpath=something + classpath=${${environment}.classpath} – so much more verbose and hard to follow.

By the way, one thing that can't be done in any way at the moment is setting env-specific number of retries= for a job. Or dependencies=.


Allow to specify a fpm_service_provider,

to allow using non-default service provider for fpm.
I'm on ubuntu 14.04, where the fpm service provider
picks init as default, but it should use upstart.
The default for the service_provider are all set to
undef, so it picks whatever is default, as it currently
is, only allows the user to override to whatever provider
he wants to use.

merged, danke @buzzdeee!


We help you build even better products: Binarys.it

New Pull Request Checklist

[ ] I have read the Documentation
[ ] I have searched for a similar pull request in the project and found none
[ ] I have updated this branch with the latest main branch to avoid conflicts (via merge from master or rebase)
[ ] I have added the required tests to prove the fix/feature I'm adding
[ ] I have updated the documentation (if necessary)
[ ] I have run the tests without failures
[ ] I have updated the CHANGELOG.md in the corresponding package

Additional context and info (if any)

What an annoying spam


Functionality Request: Take commandline argument and automatic compression

I think you can probably just include argparse and add 2 positional argument, one required for the input file and one optional for the output with default value the same as the input except for the extension name.

Em…… I also notice a problem with the audio extraction. My input mp4 is roughly 60MB while the output wav is over 350MB. I tried to compress it into flac but the flac version is still as large as nearly 100MB. I don't know much about ffmpeg  but I wonder if it is possible to select the compression method according to the quality of the input file since it makes no sense to ask for an uncompressed audio out of a random video.

Em…… I also notice a problem with the audio extraction. My input mp4 is roughly 60MB while the output wav is over 350MB. I tried to compress it into flac but the flac version is still as large as nearly 100MB. I don't know much about ffmpeg but I wonder if it is possible to select the compression method according to the quality of the input file since it makes no sense to ask for an uncompressed audio out of a random video.

Hi Tianrong, I would like to suggest you set the output audio format as '.mp3' instead of '.wav' in the Python code. '.mp3' is a compressed audio format that will let you have a small audio file.

I think you can probably just include argparse and add 2 positional argument, one required for the input file and one optional for the output with default value the same as the input except for the extension name.

Hi Tianrong, This is a really good suggestion. I include everything in the Python code/script (for easier checking). If you would like to use FFmpeg in the Terminal, you can just

Em…… I also notice a problem with the audio extraction. My input mp4 is roughly 60MB while the output wav is over 350MB. I tried to compress it into flac but the flac version is still as large as nearly 100MB. I don't know much about ffmpeg but I wonder if it is possible to select the compression method according to the quality of the input file since it makes no sense to ask for an uncompressed audio out of a random video.

Hi Tianrong, I would like to suggest you set the output audio format as 'output.mp3' instead of 'output.wav' in the Python code. '.mp3' is a compressed audio format that will let you have a small audio file.

Thanks  for that. However, I just find out the -acodec copy option which seem to be able to preserve the original format. You could possibly include that in your code.

Em…… I also notice a problem with the audio extraction. My input mp4 is roughly 60MB while the output wav is over 350MB. I tried to compress it into flac but the flac version is still as large as nearly 100MB. I don't know much about ffmpeg but I wonder if it is possible to select the compression method according to the quality of the input file since it makes no sense to ask for an uncompressed audio out of a random video.

Hi Tianrong, I would like to suggest you set the output audio format as 'output.mp3' instead of 'output.wav' in the Python code. '.mp3' is a compressed audio format that will let you have a small audio file.

Thanks for that. However, I just find out the -acodec copy option which seem to be able to preserve the original format. For example in my case it is Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 190 kb/s. You could possibly include that in your code.

Hi, it is a really good idea to add -acodec copy into the command, which will preserve the quality of the original audio/video. However, in the case of processing video, this command will lead to a short period of black frames at the beginning of the output video.
Cheers!


[WIP] Strip KeyPair authentication

@ashanaakh You are missing a lot of things. Websocket API must be refactored to use JWT. You should not rewrite existing code (example: auth middleware). Also don't forget to cleanup helpers everywhere. Be VERY attentive.

@yivo, It is not finished, I just want you to check if I doing it in right way. Sorry, what do you mean

should not rewrite existing code (example: auth middleware).

Should I completely remove keypairs and from peatio?
Old auth miidleware was:
class Middleware < Grape::Middleware::Base
  def before
    if auth_by_keypair?
      auth = KeypairAuthenticator.new(request, params)
      env['api_v2.keypair_token']       = auth.authenticate!
      env['api_v2.authentic_member_id'] = env['api_v2.keypair_token'].member_id
    elsif auth_by_jwt?
      env['api_v2.authentic_member_email'] = \
        JWTAuthenticator.new(headers['Authorization']).authenticate!
    end
  end
end

@yivo Fixed

@yivo Fixed


Static adapter build --> I can't refresh pages without adding ".html" to the URL.

Describe the bug
I uploaded my SveltKit build to my DigitalOcean droplet.
https://schalk.net loads fine. I can click links to get to https://schalk.net/Functions/monads but I get a "file not found" message when I try to refresh the page. After appending ".html" to the URL, the page refreshes normally. Again, I can refresh https://schalk.net/Functions/monads.html but without the ".html", I get the "file not found" message.
When I enter "yarn run preview" on the same build I uploaded to schalk.net, this does not occur. localhost:3000/Functions/monads refreshes without the ".html".  In Build on my desktop, I opened Functions and saw monads.html. "Functions/monad.html" is also in my DigitalOcean droplet. All would be well If only the ".html" would stay on the files.
I work in Debian 11.2 on my desktop and in the server. A Debian adapter would be nice, but I like the static adapter idea. It almost works.
Reproduction
https://github.com/dschalk/site5
Logs
No response
System Info
Debian 11.2 on the desktop and in the DigitalOcean droplet
Chrome and Firefox
SvelteKit

Severity
blocking all usage of SvelteKit
Additional Information
I can't publicize my work without abandoning my beloved SvelteKit. I love what you are doing

See https://github.com/sveltejs/kit/tree/master/packages/adapter-static#usage - in particular the part about the trailingSlash setting.
Running "preview" serves your app without any adapters, so you're not actually testing the same build as you are deploying.


Solve erorr

error: This revision of snap "dotnet-sdk" was published using classic
confinement and thus may perform arbitrary system changes outside of the
security sandbox that snaps are usually confined to, which may put your
system at risk.
   If you understand and want to proceed repeat the command including
   --classic.

cc @rbhanda @vivmishra


Binary single file interface for the Criteo Terabyte dataset

We have already added this support in an earlier comment. Thank you.


[Mitaka] RLM-327 Removes rpc_support role

Backports:
https://github.com/rcbops/rpc-openstack/pull/2513
Issue: RLM-327

recheck_cit_trusty_swift_deploy


Register TA via bot

Make TA role no longer Mentionable. Instead, moderator can give TA role via bot.
!ta add User#0000 cop0000_asdf

Similar functionality for remove. Either remove all or remove for one class. When we delete the class channels we can reset the TA registrations too.
A student can use
!ta ask <some question>

And the bot will automatically tag the right people with the question.

This way, if you're a TA in one class and a student in the other, you won't get tagged in both classes.

In the meantime, we can have a handler that lets people know about the feature. If they mention the TA role, we can remind them that it's soon to be deprecated.

Make migration script to add to each class channel's topic that !ta exists.

can either persist the relationship of class channel => TA via mongo or if u wanna be hacky have every class channel have a serializable channel topic TA: ta1 | !ask ta

probably want something in the topic for sure.

That's kinda what I was thinking, because I don't know how to use the DB and that seems scary. Storing the TA's in the topic would be easy

We can talk about the DB stuff if you'd like.

Only if you'd prefer it

Class channels do not have a ChannelType how should the user be able to use the command in the channel?

We would use the class service to see if the channel is in its list

Class channels do not have a ChannelType how should the user be able to use the command in the channel?

class channels are considered private (ChannelType.Private)

Class channels do not have a ChannelType how should the user be able to use the command in the channel?

class channels are considered private (ChannelType.Private)

I added a test class through !addclasschans and when I used the command with ChannelType.Private perms inside the new channel, it said
Please use this command in a Private channel

https://github.com/joey-colon/lion/blob/46e0f51ab44f39c2fe0acc230360b622c3639574/src/services/channel.service.ts#L38-L39
Here we default to ChannelType.Private
https://github.com/joey-colon/lion/blob/46e0f51ab44f39c2fe0acc230360b622c3639574/src/services/channel.service.ts#L55-L58
But when we check perms, we dont check for the channel being private.
Should the last line be return channelType === ChannelType.Private;? That allows me to call the plugin in a Private Channel

i see what you mean. @joey-colon  thoughts?


Recursive JiJ unpacking and scanning

Hello! Mods with 0 classes listed will not scan, I suggest maybe labeling them as could not be scanned or something similar. I don’t know if this issue is solvable and  I am unsure if the creator is aware.
Thank you for building this amazing detector so quickly!

Hi, thanks for the report. I was not aware of this issue before as I had no mod with zero classes. Could you provide a sample?

Hi, I am not sure these mods actually have 0 classes, that is just what the website lists them as, here is one sample, feel free to ask if you need more https://www.mediafire.com/file/c2qjr3q9kj8jh0a/fabric-api-0.83.0%252B1.19.4.jar/file

I think it see the issue. In Fabric API all the classes are contained within Jar-in-Jar'ed archives and the tool doesn't recurse into these. I'm not sure if there are any malware samples where the malicious code is within a JiJ archive but it is conceivable. I'll keep this issue open to track recursive JiJ unpacking.

Thank you!

The scanner has issues scanning Cardinal Components API.  Unpacking the individual jar files and scanning them works (scanner reports them as clean).
https://www.curseforge.com/minecraft/mc-mods/cardinal-components-api


Exports can be confusing for beginner-level exercises

From a comment on this two-fer solution:

I had to add export to my code in order to get it to work. I understand how modules and webpack work, but doesn't it seem weird to include advanced knowledge like this in beginner exercises?

We changed all exercises from default to named exports, but in either case it can be confusing for beginners who are not aware of how modules & exports work.
One solution I see is adding stub files for all core exercises. Thoughts?
Edit: Another instance today:
Mentee had not exported the function and just had:
let twoFer = () ...

My comment on two-fer exercise:

You will have to export your function so that tests can use it.

Reply from mentee:

Hi, thanks for the review. What do you mean by exporting my function?

This was my bad in assuming (s)he would be aware of exports but is still relevant to this issue.

One solution I see is adding stub files for all core exercises. Thoughts?

Yes. This is the solution and I don't think we should do anything else. Other tracks have gone the same route.

There are 18 core exercises. Should we add stubs for all or first few ones and then let it loose by adding a note in the README? We can take a call based on difficulty level.

There are 2 approaches I've seen:

Either all core exercises
Exercises with a difficulty lower than 6, the ones of 6 and higher do have a note that there is no stub.

Exercises with a difficulty lower than 6, the ones of 6 and higher do have a note that there is no stub.

This option looks good for now. Creating a separate issue for this. Thanks!

Closing in favor of #679


How can I use local docker image for creating pod in k8s

Hi,
I want to create a pod from my local image with kubectl in my k3s cluster. I set imagePullPolicy  to never but after that my pod will be going to ErrImageNeverPull state. what can I do for this issue?

I encounter the same problem too. Would love to get an answer to this question.

After switch to docker version, it work.

If you use container runtime with containerd you can't use local image (docker image) to start pods, so switch to docker, it work. @photoszzt

Tools to do this with the default containerd backend are coming. For the moment, it's easiest to do this by switching to the docker backend.

After switch to docker version, it work.

Can you please share the commands used to make this work?  What do you mean "switch to docker version"?

@cickes https://rancher.com/docs/k3s/latest/en/advanced/#using-docker-as-the-container-runtime

KIND create cluster ...
kind create cluster --name test
when i
kubectl load docker-image YOU-LOCAL-DOCKER_IMAGE --name test
then
docker exec it <cluster-node-name> crictl images, you will find your local image had loaded in one node of kind cluster
then
imagePullPolicy: IfNotPresent
kubectl create -f YOU-CONFIG.YAML -n test
suc

kind is not k3s.


Move HA services from entity level to platform level

Made it so that the entity is no longer needed if there is only 1 OPNsense Router
Added UI details to all services
Improved descriptions
Stops using the deprecated hass.helpers.service
For the OPNsense service actions (fka. services), will accept service_id or service_name (but not both in a single call). No matter which one is used, it will actually work if the item is a Service ID or a Service Name. service_id is now shown as the default, but service_name will continue to work so previous automations, etc. should continue to work.

Should be released with #206

Should be released with #206

Do we want to releas a beta first, with #204 and #206?
I see a check failing.

I believe the failing check is an issue with hassfest: https://github.com/home-assistant/core/issues/126467
Beta would probably be good for at least a couple of others to try it out before a broad release.


No exception when publishing to not existing channels

By default no exception is thrown. If an exception should be thrown (as it was the default earlier), the command line switch --fail-publish-non-existing-channels has to be used.

I think its better to ensure that when a new option/parameter is added, if not set, will maintain the original expected logic instead of the other way around. Why not set to --ignore-publish-non-existing-channels instead of  --fail-publish-non-existing-channels ?

True story. I have changed the particular commit f136e8f7eb382c9b40e88ed9a61632360d79003e accordingly.

Saw your commit 4614334a4878d528f1c6697996d0ef5a968fe461 , not sure what would be the effect when -p is both used for "-p", "--port", and '-p', '--ignore-publish-non-existing-channels' . Will it be better to change -p, I can not think of a suggested one letter parameter, any suggestions/ideas ?

Let's use -x for that. Later today I will change the commit accordingly. I think that's safe as nobody besides hookbox/hookbx would possibly use it right now.


Re-fix isObservable() and add test - fixes #29

Moved isListr and isObservable into a separate util.js and added a unit test for the util.js. Verifies that isObservable() works with both rxjs/Observable and zen-observable.
isObservable() checks for obj.constructor.name === 'Observable' now. Still somewhat hacky, but at least a plausible way to go as long as there's no official solution.
Btw: Maybe propose this to sindresorhus/is-observable#1?

Fixed the code 👍

Can you rename util to utils? Filenames and variables.

Sweet! Thanks for looking into this @andywer :beers: !

@SamVerschueren No problem 🙌

This actually breaks the stuff that I'm working on because of the changes to isObservable. The stream library I'm using is most.js and it's constructor.name is Stream and not Observable. However it does implement Observable interfaces.

@TylorS I'm not interested to actually support all the possible observable-like implementations out there. The reason I use duck-typing currently is because of an issue with is-observable which uses Symbol to detect if it is an Observable. If that issue gets fixed someday, I will start using that one and most.js will break again. So currently I'm trying my best to support RxJs and zen-observable. The only thing I can say about your issue is that maybe you can wrap it in a real Observable?

@TylorS @SamVerschueren I can understand both your standpoints. I had a quick look and is-observable would indeed work with most.js.
So how about that: We check with the current custom logic and fallback to is-observable or vice versa. If one of both is true we can be almost certain it is an Observable.
PS: I can also open an issue on zen-observable to use the symbol-observable so is-observable will work with the zen-observable as well.

Let's discuss this further in #31


New Function: Get-VesterTest

This "current" vs. "expected" info is valid as of release 1.1.0.
Current Behavior
Want to run just VM tests, instead of all included tests?
Want to run all DNS tests included with the module?
Get-ChildItem "$((Get-Module Vester).ModuleBase)\Tests\VM\" | Invoke-Vester
Get-ChildItem "$((Get-Module Vester).ModuleBase)\Tests\" -Filter *dns* -File -Recurse | Invoke-Vester

Want to know what a test file does in plain English? Open the test file in an editor to view the $Description.
Expected Behavior
# Run all VM tests included with the module
Get-VesterTest -Scope VM | Invoke-Vester

# Run all tests matching *dns*.Vester.ps1 included with the module
Get-VesterTest -Name dns | Invoke-Vester

Get-VesterTest should return info about a file's contents, so that you could do something like this to figure out what a test does:
Get-VesterTest -Name NTP-Service-Policy
# Would return: FullName (Path) and all variable definitions within (like $Description)
# Probably subject to a format xml to modify default displayed returns

Possible Solution
New public function Get-VesterTest

Wraps Get-ChildItem and always includes:

-File
-Recurse
-Filter '*.vester.ps1'

Defaults to -Path "$((Get-Module Vester).ModuleBase)\Tests\"

Parameters:

-Name: Wildcard searches the Vester test filenames

Would modify -Filter '*.vester.ps1' --> -Filter "*$Name*.vester.ps1"

-Scope: A [ValidateSet()] param for all scopes Vester ships

Context
Piping Get-VesterTest with basic info is a lot easier than expecting every single user to know how to perform the Get-ChildItem examples shown above.
Users should not have to dig into .ps1 files to view basic info (like $Description) about an included Vester test file.

Tackling this in branch 157test of my fork.
https://github.com/WahlNetwork/Vester/compare/WahlNetwork:dd2f179...brianbunke:26c6244
PR requirements:

[x] Get-VesterTest works as described above, standalone
[x] Write cmdlet-based help
[ ] Update Invoke-Vester flow to accommodate the Get-VesterTest changes

To avoid future tech debt, the would-be-nice list:

[ ] Add unit tests for Get-VesterTest
[ ] Add unit tests for new private functions

https://github.com/WahlNetwork/Vester/compare/WahlNetwork:dd2f179...brianbunke:54fa82e
I implemented Get-VesterTest -Simple, which returns just the full file path. Vester currently expects to just pass a path string down to the private template, and the test extraction happens within the private template. This feels re-writable now, but not as part of this issue/PR.
I also can't pipe them in right now (Get-VesterTest | Invoke-Vester) because config files take precedence. Bleh.
Submitting the PR now.


danger pr command results in Faraday error

Report
What did you do?

Ran bundle exec danger pr against my GitHub-hosted private repository.

i.e., DANGER_GITHUB_API_TOKEN=token danger pr https://github.com/clpsplug/foobar/pull/12345

The PR number can be arbitrary; it can even be the one that does not exist!

What did you expect to happen?
The check occurs normally; in case the PR does not exist, Danger should fail accordingly.
What happened instead?
Danger blew up with an exception within the Faraday library 💥  The PAT and the repo URL are redacted.
> DANGER_GITHUB_API_TOKEN=MYTOKEN bundle exec danger pr --dangerfile=Dangerfile PRIVATE_REPO_PR_URL
bundler: failed to load command: danger (/Users/cplug/.rbenv/versions/2.7.2/bin/danger)
Traceback (most recent call last):
        45: from /Users/cplug/.rbenv/versions/2.7.6/bin/bundle:23:in `<main>'
        44: from /Users/cplug/.rbenv/versions/2.7.6/bin/bundle:23:in `load'
        43: from /Users/cplug/.gem/ruby/2.7.0/gems/bundler-2.2.2/exe/bundle:37:in `<top (required)>'
        42: from /Users/cplug/.gem/ruby/2.7.0/gems/bundler-2.2.2/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
        41: from /Users/cplug/.gem/ruby/2.7.0/gems/bundler-2.2.2/exe/bundle:49:in `block in <top (required)>'
        40: from /Users/cplug/.gem/ruby/2.7.0/gems/bundler-2.2.2/lib/bundler/cli.rb:24:in `start'
        39: from /Users/cplug/.gem/ruby/2.7.0/gems/bundler-2.2.2/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
        38: from /Users/cplug/.gem/ruby/2.7.0/gems/bundler-2.2.2/lib/bundler/cli.rb:30:in `dispatch'
        37: from /Users/cplug/.gem/ruby/2.7.0/gems/bundler-2.2.2/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
        36: from /Users/cplug/.gem/ruby/2.7.0/gems/bundler-2.2.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        35: from /Users/cplug/.gem/ruby/2.7.0/gems/bundler-2.2.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
        34: from /Users/cplug/.gem/ruby/2.7.0/gems/bundler-2.2.2/lib/bundler/cli.rb:497:in `exec'
        33: from /Users/cplug/.gem/ruby/2.7.0/gems/bundler-2.2.2/lib/bundler/cli/exec.rb:28:in `run'
        32: from /Users/cplug/.gem/ruby/2.7.0/gems/bundler-2.2.2/lib/bundler/cli/exec.rb:63:in `kernel_load'
        31: from /Users/cplug/.gem/ruby/2.7.0/gems/bundler-2.2.2/lib/bundler/cli/exec.rb:63:in `load'
        30: from /Users/cplug/.rbenv/versions/2.7.6/bin/danger:23:in `<top (required)>'
        29: from /Users/cplug/.rbenv/versions/2.7.6/bin/danger:23:in `load'
        28: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/danger-8.6.1/bin/danger:5:in `<top (required)>'
        27: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
        26: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/danger-8.6.1/lib/danger/commands/pr.rb:60:in `run'
        25: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/danger-8.6.1/lib/danger/commands/pr.rb:60:in `new'
        24: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/danger-8.6.1/lib/danger/danger_core/environment_manager.rb:30:in `initialize'
        23: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/danger-8.6.1/lib/danger/danger_core/environment_manager.rb:30:in `new'
        22: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/danger-8.6.1/lib/danger/ci_source/local_git_repo.rb:42:in `initialize'
        21: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/danger-8.6.1/lib/danger/ci_source/local_git_repo.rb:88:in `find_pull_request'
        20: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/danger-8.6.1/lib/danger/ci_source/support/pull_request_finder.rb:18:in `call'
        19: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/danger-8.6.1/lib/danger/ci_source/support/pull_request_finder.rb:50:in `find_pull_request'
        18: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/danger-8.6.1/lib/danger/ci_source/support/pull_request_finder.rb:90:in `find_remote_pull_request'
        17: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/octokit-4.25.0/lib/octokit/client/pull_requests.rb:33:in `pull_request'
        16: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/octokit-4.25.0/lib/octokit/connection.rb:19:in `get'
        15: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/octokit-4.25.0/lib/octokit/connection.rb:156:in `request'
        14: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/sawyer-0.9.2/lib/sawyer/agent.rb:99:in `call'
        13: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/faraday-1.10.0/lib/faraday/connection.rb:200:in `get'
        12: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/faraday-1.10.0/lib/faraday/connection.rb:516:in `run_request'
        11: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/faraday-1.10.0/lib/faraday/rack_builder.rb:154:in `build_response'
        10: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/faraday-1.10.0/lib/faraday/rack_builder.rb:167:in `app'
         9: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/faraday-1.10.0/lib/faraday/rack_builder.rb:174:in `to_app'
         8: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/faraday-1.10.0/lib/faraday/rack_builder.rb:174:in `inject'
         7: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/faraday-1.10.0/lib/faraday/rack_builder.rb:174:in `each'
         6: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/faraday-1.10.0/lib/faraday/rack_builder.rb:175:in `block in to_app'
         5: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/faraday-1.10.0/lib/faraday/rack_builder.rb:57:in `build'
         4: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/faraday-1.10.0/lib/faraday/dependency_loader.rb:21:in `new'
         3: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/faraday-1.10.0/lib/faraday/dependency_loader.rb:21:in `new'
         2: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/faraday-http-cache-2.4.0/lib/faraday/http_cache.rb:115:in `initialize'
         1: from /Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/faraday-http-cache-2.4.0/lib/faraday/http_cache.rb:115:in `new'
/Users/cplug/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/faraday-http-cache-2.4.0/lib/faraday/http_cache/strategies/base_strategy.rb:36:in `initialize': uninitialized constant Faraday::HttpCache::Strategies::BaseStrategy::Logger (NameError)

Your Environment

Which CI are you running on?

N/A, this is an attempt to run danger locally using an existing PR.
macOS 12.4 M1 chip, but running on Rosetta 2
Ruby 2.7.6 from rbenv from Homebrew

Are you running the latest version of Danger?

I think so, my IDE reports 8.6.1 and I write gem "danger" (without version spec) in my Gemfile.

What is your Dangerfile?
It is a Jekyll post checker. Actual checks require peeking into the file, so it is put into a shell script.

# We'd like to check if the post submitted are correctly annotated.
if git.modified_files.include? "_posts/**/*"
  message "I see you are trying to add or modify a post. I'll check your post for common mistakes!"
  failed = false
  posts = git.modified_files.each { |path|
  # must check if it is even the correct way to check via shell script
    if ! system(".danger/check_post_parity.sh " + path)
      warn "Post parity is not satisfied for %<path>! Visitors will see a warning when switching the language from the post page. Is this expected?" % {path: path}
      failed = true
    end
    if ! system("./danger/check_excerpt.sh " + path)
      warn "Post does not have an excerpt tag, i.e., \`<!--more-->\`!"
      failed = true
    end
  }
end

Notes

As the error occur regardless of the ID of the PR I pass to Danger, it is quite possible that the error is occurring before even attempting to fetch something from GitHub.
Completely mangling the URL (so that it is not even a GitHub PR URL) produces different error, so Danger seems to detect that I'm trying to simulate a GitHub PR.

I have the same issue. Only thing I can add is that it is not a M1 Mac issue, as I can reproduce it on an Intel Mac as well.

I fixed this issue here as I ran into the same issue myself:
https://github.com/sourcelevel/faraday-http-cache/pull/131

It looks like danger 9.1.0 seems to have resolved this issue; the local lib on my end has faraday-http-cache 2.4.0 and 2.4.1 and danger 9.1.0. Can somebody else confirm?

the local lib on my end has faraday-http-cache 2.4.0 and 2.4.1 and danger 9.1.0.

Same here.
Let me close this issue as it's resolved.


compare fix

Sorry xboston, I did a fixed on local before git pull this pr, and then result in something wrong.
After try to merge it, this pr lost. This is not what I want, sorry again.

:+1:

@xboston thank you and welcome more pr or throw me the issue.


[交互] 图例和 pieLabel 如何联动

[ ] I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?
点击图例的时候，选中对应的图表块并显示出它的pieLabel
What does the proposed API look like?
chart.legend('gender', {
  onClick:(val)=>{
    chart.getInterval()['a'].isSelect = true;
    chart.getPieLabel()['a'].isShow = true;
  }
});

参考官网很多代码，封装了一个方法 https://github.com/alitajs/f2/blob/master/src/Chart/plugins/selectShapeByLegendName.ts


Windows support (i.e. directly via cmd.exe or powershell, not WSL)

Having a tsconfig.json results in:
...\build.js: ReferenceError: prog is not defined
    at ...\node_modules\estrella\dist\estrella.js:2:12202
    at new Promise (<anonymous>)
    at V (...\node_modules\estrella\dist\estrella.js:2:11825)
    at n (...\node_modules\estrella\dist\estrella.js:2:6134)
    at Aa (...\node_modules\estrella\dist\estrella.js:25:4614)
    at ...\node_modules\estrella\dist\estrella.js:25:1271
    at new Promise (<anonymous>)
    at da (...\node_modules\estrella\dist\estrella.js:25:1228)
    at build (...\node_modules\estrella\dist\estrella.js:26:801)
    at Object.<anonymous> (...\build.js:3:1)

Which I assume might actually be a bug in esbuilds minification. The distributed estrella.js does not define prog (I'm thinking the name was minified but this reference was not).
Edit: it is actually never defined in the source
The actual error it was trying to print refers to "tsc" not being found in path. I actually see a windows check here but it's not used further down in the function. As a note, I installed typescript through yarn locally which actually creates a ./node_modules/.bin/tsc.cmd file (not exe).
https://github.com/rsms/estrella/blob/6d54414c235a22b1b5a710b73cc63aca07d8708c/src/util.js#L18
Messing around to see the message also led me to find this (a + was forgotten here since we get a runtime TypeError: "." is not a function):
https://github.com/rsms/estrella/blob/6d54414c235a22b1b5a710b73cc63aca07d8708c/src/tslint.js#L89-L90

One more Windows issue: X_OK flag will not be available. Here's what works for me:
https://github.com/benmerckx/estrella/commit/6f62e60ebd3de880f55ba9c6103ed22e292ce034
Not sure if I can PR this since: prog probably came from the estrella module before a refactor but importing would create circular imports so I just removed it. And I'm very unsure what should happen in a PATH lookup on Windows regarding extensions.

Thanks! Windows is not currently supported but I'd like to add support for it.
Estrella works in WLS though, so you could use that or Cygwin.
For Windows support there is also the src/exec and src/run modules which may need adjustments.

I've tested Estrella on Windows 10 (2004) and everything works except for -run which somehow doesn't manage to forward stdout and stderr.
For Windows, please use release 1.2.6 or later. (1.2.6 was just released when I posted this comment.)

Okay, 1.2.7 includes a fix for -run on Windows. Now everything works. Thanks!

A few notes on trying the latest version. Building a project results in:
Unhandled exception: Error: spawn ...\node_modules\.bin\tsc ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

Pulling in the latest git changes proved a little difficult. Apparently windows does not allow files named aux regardless the extension (https://stackoverflow.com/a/61616948).
Building estrella gave me the same error as above. Fiddling in the minified code a little gave me this insight:
https://github.com/rsms/estrella/blob/4ead3b90b6ad5747819cf813a29280ce3432d6e4/src/tslint.js#L88
tsprog here is the string: "C:\projects\estrella\node_modules.bin\tsc"
Seems that path came from here: https://github.com/rsms/estrella/blob/4ead3b90b6ad5747819cf813a29280ce3432d6e4/src/tsutil.ts#L34
When I add the (.cmd) extension there as well all works as expected.


Follow HTTP 302 redirects automatically

zfetch is a great library, just what I was looking for.
However, it doesn't seem to automatically follow 302 redirects (cannot download a GitHub release asset directly with link because GitHub does a 302 redirect first).
It would be nice if zfetch exposed an option to follow redirects (like cURL's FOLLOWLOCATION) or just did it by default so that manual implementation is not required.

This was not feasible to do since zfetch only barely understood how connections worked.


Issue while integrating with QnA

Not able to fetch reponse form QnA.
Instead I'm getting "Object reference not set to an instance of an object."

Please check and let me know ASAP.

It seems like you didn't fill some field, could you scroll down the form editor to see whether there is any properties need to be filled?

These are the values I have given in properties panel.

let me know if there is anything needed to be updated.

@VijayaReddipalli , I just found a bug in our schema file, which I already have a PR(https://github.com/microsoft/botbuilder-dotnet/pull/3704) to fix this. One mitigation could be, you just go to your dialog file and check whether the "cardNoMatchResponse " property have an extra blank there, you can remove that blank and try again.

@luhan2017  , I have checked but there is no extra space.I'm still facing the same issue.

Please let me know once the bug has been fixed.

@VijayaReddipalli which version of composer are you using? I tried in latest master, it works fine for me. I just clone the QnAMastakerLuisSample, fill in the QnA settings and start in emulator. here is what I got:

I have cloned master branch on 7th April.
Now, I have cloned Latest Master Branch.It is working fine.Thank you for the response.


AttributeError happened when invoking subplots in plotly >= 3.8.0

When I used iplot() to draw subplots in offline like this, following AttributeError happened.
import cufflinks as cf
cf.go_offline()

some_pandas_data.iplot(
  subplots=True,
  shape=(len(some_pandas_data.columns), 1),
  shared_xaxes=True
)

~/envs/liu/lib/python3.7/site-packages/cufflinks/tools.py in get_subplots(rows, cols, shared_xaxes, shared_yaxes, start_cell, theme, base_layout, **kwargs)
    892
    893         layout= base_layout if base_layout else getLayout(theme,**check_kwargs(kwargs,__LAYOUT_AXIS))
--> 894 	sp=py.plotly.tools.make_subplots(rows=rows,cols=cols,shared_xaxes=shared_xaxes,
    895                                                                                shared_yaxes=shared_yaxes,print_grid=False,
    896 											start_cell=start_cell,**kwargs)

AttributeError: module 'chart_studio.tools' has no attribute 'make_subplots'

Error only happened in case of plotly >= 3.8.0.
I think it maybe caused by this change, but I'm not sure.
Could anyone provide any information on this? Thanks!
https://github.com/plotly/plotly.py/commit/3678aa925489b9ed429dc28863040dbb391dadb1

Have exactly the same issue.

Fixed by https://github.com/santosjorge/cufflinks/pull/178

Excellent, hope it is pushed to PyPi soon.

Hi there,
I was wondering whether the fix is released yet? At least I still got the bug, running the latest distro installed with pip install --upgrade cufflinks.
Thanks!!

I am also getting the same issue though I have latest versions of
plotly-3.10.0
cufflinks-0.15

Typical Plotly behavior ... leaving the user community high and dry for more than two year !!
Closing the issue acting like nothing happened or it doesn't matter if you are not a paying customer is not the right approach for a commercial vendor like Plotly.
Plotly... Either embrace and support your open source and keep it up to date, or be courteous enough to tell people you are not going to do it so they can move on to another plotting package.    Be courteous and responsible to your user base and they will respect you.  Or be irresponsible and users have a powerful right to COMPLAIN you when you waste their time with bad source code.
THIS IS STILL AN OPEN ISSUE:
plyo.iplot(
df.iplot(kind='hist',
subplots=True,
bins=15,
asFigure=True),
image='png',
filename='ply_03'
)

AttributeError                            Traceback (most recent call last)
 in
3              subplots=True,
4              bins=15,
----> 5              asFigure=True),
6     image='png',
7     filename='ply_03'
c:\ProgramData\Anaconda3\lib\site-packages\cufflinks\plotlytools.py in _iplot(self, kind, data, layout, filename, sharing, title, xTitle, yTitle, zTitle, theme, colors, colorscale, fill, width, dash, mode, interpolation, symbol, size, barmode, sortbars, bargap, bargroupgap, bins, histnorm, histfunc, orientation, boxpoints, annotations, keys, bestfit, bestfit_colors, mean, mean_colors, categories, x, y, z, text, gridcolor, zerolinecolor, margin, labels, values, secondary_y, secondary_y_title, subplots, shape, error_x, error_y, error_type, locations, lon, lat, asFrame, asDates, asFigure, asImage, dimensions, asPlot, asUrl, online, **kwargs)
1187                         else:
1188                                 kw['subplot_titles']=kwargs['subplot_titles']
-> 1189                 figure=tools.subplots(fig,shape,base_layout=layout,theme=theme,**kw)
1190
1191
c:\ProgramData\Anaconda3\lib\site-packages\cufflinks\tools.py in subplots(figures, shape, shared_xaxes, shared_yaxes, start_cell, theme, base_layout, **kwargs)
756                                              shared_xaxes=shared_xaxes, shared_yaxes=shared_yaxes,
757                                              start_cell=start_cell, theme=theme,base_layout=base_layout,
--> 758 				             **kwargs)
759         list_ref=(col for row in grid_ref for col in row)
760         for i in range(len(figures)):
c:\ProgramData\Anaconda3\lib\site-packages\cufflinks\tools.py in get_subplots(rows, cols, shared_xaxes, shared_yaxes, start_cell, theme, base_layout, **kwargs)
885
886         layout= base_layout if base_layout else getLayout(theme,**check_kwargs(kwargs,__LAYOUT_AXIS))
--> 887 	sp=py.plotly.tools.make_subplots(rows=rows,cols=cols,shared_xaxes=shared_xaxes,
888                                                                                shared_yaxes=shared_yaxes,print_grid=False,
889 											start_cell=start_cell,**kwargs)
AttributeError: module 'chart_studio.tools' has no attribute 'make_subplots'

Just to make it clear - this is an independent library, it is not supported by Plotly.

Hi  Jorge,
Thank you for responding so fast.
Which is the right support forum to report this cufflinks / plotly issue?
Plotly has leveraged this library for several years and embedded it in
their open source library and their commercial product library.   I want to
report this issue so that they adequately support and fix issues like this
in a timely manner.    I have the experience that they don't regularly scan
public forums like github to fix problems with older releases of their
Plotly and Dash software.
Where would you suggest I report this issue so that Plotly corporation
addresses it and fixes it?
Thank you.
Best Regards,
Rich Lysakowski, Ph.D.
Data Scientist, Analytics Engineer,
and Senior Business Analyst
781-640-2048 mobile
On Sat, Jun 19, 2021 at 7:51 PM Jorge Santos @.***>
wrote:

Just to make it clear - this is an independent library, it is not
supported by Plotly.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/santosjorge/cufflinks/issues/175#issuecomment-864477143,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHJVL67ER2PFWMPUUHZGMTTTUUPZANCNFSM4HHJXY3Q
.

It looks like plotly/chart-studio removed the make-subplots method on their latest chart studio update. I’ll look into it.


v1.7.2 is not being published

@angular-ui/ui Hi! I've pushed a new version of the ui-scroll lib to the angular-ui-scroll repo more than 1 day ago. This includes v1.7.2 github release and previously that was enough to have a new version available via npm. But v1.7.2 is still unpublished (v1.7.1 is the latest npm package version) and I don't understand how to force it. I tried to publish it be myself but I have no permission:

npm whoami
dhilt
npm publish
npm ERR! publish Failed PUT 403
npm ERR! You do not have permission to publish "angular-ui-scroll". Are you logged in as the correct user? : angular-ui-scroll

How the process of publishing to npm works in angular-ui? Is there a chance to get appropriate permission to publish new versions by myself?

Oh, the npm revoke of all tokens might be the thing behind this... We should probably update all our npm tokens on the CIs that where configured for auto-publishing.

@dhilt do you have an npm account? I can add you to the registry for this package and you should be able to make the necessary changes yourself.

@dhilt I added you as maintainer for this package on npm. That should let you fix it by yourselves.
I don't really remember where the token came from or why it stopped working, but feel free to replace my name with yours if need be.

@PowerKiKi @ProLoser Thanks! I was able to publish new version with npm publish. Regarding tokens and auto-publishing I would follow the official guide https://docs.travis-ci.com/user/deployment/releases/, but I will try to transfer secure token to Travis environment variables