[Doc] Threshold Shedder documentation - need to add documentation on the individual weights

What issue do you find in Pulsar docs?
In https://pulsar.apache.org/docs/next/administration-load-balance#thresholdshedder

LocalBrokerData#getMaxResourceUsageWithWeight should be a link or in different font. In addition so should
loadBalancerHistoryResourcePercentage and loadBalancerBrokerThresholdShedderPercentage

"The weights for each resource are configurable." - it would be great if the weights were listed or perhaps a link to the relevant section of the reference configuration here https://pulsar.apache.org/docs/reference-configuration/#broker

It would be nice to know when to prioritize one weight over another - just some general guidelines

"If a broker's usage is greater than the average usage per broker plus the loadBalancerBrokerThresholdShedderPercentage"
Is that percentage an absolute percentage?

e.g. say the % usage is 5% / 1% / 1% for three brokers - comparing 5 vs 1 is a 5x difference or 500% comparing on a relative basis but a 4% on an absolute basis. Can it be clarified which percentage loadBalancerBrokerThresholdShedderPercentage is? Perhaps an example would help?
What is your suggestion?
See above
Do you have any references?
No
Would you like to fix this issue?
Sorry - some of it requires more detailed clarification from someone who knows the load balancer algos in detail.
Note

[X] I have researched my question.

"The weights for each resource are configurable." - it would be great if the weights were listed or perhaps a link to the relevant section of the reference configuration here https://pulsar.apache.org/docs/reference-configuration/#broker

You can see these configurations.
# The BandWithIn usage weight when calculating new resource usage.
# It only takes effect in the ThresholdShedder strategy.
loadBalancerBandwithInResourceWeight=1.0

# The BandWithOut usage weight when calculating new resource usage.
# It only takes effect in the ThresholdShedder strategy.
loadBalancerBandwithOutResourceWeight=1.0

# The CPU usage weight when calculating new resource usage.
# It only takes effect in the ThresholdShedder strategy.
loadBalancerCPUResourceWeight=1.0

# The heap memory usage weight when calculating new resource usage.
# It only takes effect in the ThresholdShedder strategy.
loadBalancerMemoryResourceWeight=1.0

# The direct memory usage weight when calculating new resource usage.
# It only takes effect in the ThresholdShedder strategy.
loadBalancerDirectMemoryResourceWeight=1.0

"If a broker's usage is greater than the average usage per broker plus the loadBalancerBrokerThresholdShedderPercentage"
Is that percentage an absolute percentage?

It should be an absolute percentage.
Example:
Assume we have three brokers, the broker1 avg broker usage is 40%, the broker2 avg broker usage is 10%, the broker3 avg broker usage is 10%, then the cluster avg usage should be ((40% + 10% + 10%) / 3) = 20%.
If we set loadBalancerBrokerThresholdShedderPercentage=1, then the broker1's some bundles will get unloaded, because broker1 broker avg usage is greater than cluster avg usage plus loadBalancerBrokerThresholdShedderPercentage.

@Demogorgon314 thanks the example is super helpful and perhaps could be added to the documentation?
As regards the weights - isn't the purpose of the documentation so that I don't have to read the code / configuration files?
Also what are the range of values to set to weights? 0 to 1.0, 1.0 to 100.0?
I also realized another question - when I read the code I was surprised to see when the resource weighting is employed here
https://github.com/apache/pulsar/blob/a812f29bab93a5e841a9b3c3190fca343fab6e71/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/ThresholdShedder.java#L160-L164
The the max of the resource * resourceWeight is used to determine  overload
https://github.com/apache/pulsar/blob/a2559923877b005e4eec797214d1bcd9fb378df7/pulsar-common/src/main/java/org/apache/pulsar/policies/data/loadbalancer/LocalBrokerData.java#L253-L255
Usually when I see a "weight" it is not a winner-take-all approach but some scoring that takes each resource & weight into account. In addition the calculation results are not normalized on a scale of 0 to 1 or 0 to 100 - the problem without normalizing
For example I could set loadBalancerCPUResourceWeight to 1000.0 and then the threshold would have to be scaled appropriately.
I see a divide by 100 here https://github.com/apache/pulsar/blob/a2559923877b005e4eec797214d1bcd9fb378df7/pulsar-common/src/main/java/org/apache/pulsar/policies/data/loadbalancer/LocalBrokerData.java#L253-L255
but without bounds on the weights that's not going to normalize things.
So even when I look at the config files I still need to read the code to figure out how those weights will be used.
Anyway I am excited to use this feature and appreciate your insight and help.
Thanks!

Also what are the range of values to set to weights? 0 to 1.0, 1.0 to 100.0?

The range is 0 to 1.0. I agree with you, and it is a little confusing for users. We might need to explain in the doc.

I could set loadBalancerCPUResourceWeight to 1000.0 and then the threshold would have to be scaled appropriately.I see a divide by 100 here

That is a good catch! We should limit the max weight to 1.0.

Awesome - thanks so much @Anonymitaet !


reduce logging

Merge anyway?

@NKannan14 would you mind running these tests locally to see if they pass there please?


Ability to name Objective-C property differently than its JSON key

Say I'm interfacing with an API that has an img_url key. If I'm understanding everything correctly, plank would incorporate that as imgUrl. It'd be nice to be able to specify it as imageURL to be more inline with Objective-C convention (I don't have server-side control over this API, so I can't change it there).
Or is there a goal to keep it absolutely 1:1 with the server-side spec?

@christianselig - I'm assuming the convention you are trying to keep is the property suffix represented as URL vs Url. Is that correct?
Your understanding of how plank derives property names is almost correct.

img_url is split into it's components separated by _ ([img, url])
These components are compared against a Dictionary that has common reserved keywords that could be issues in generated code. Example - If the schema key was id we would produce code that wouldn't compile so we convert this to identifier.
The first character of each component besides the first is capitalized ([img, Url]). There is an exception to this logic for url that will capitalize the entire component to URL.
The components are concatenated back to a single name imgURL

Thanks for the suggestion and it's certainly come up internally at Pinterest before and we've had a goal of keeping it 1:1 with the server-side specification to enforce the creation of reasonable keys for our API JSON responses.
A workaround we've used internally is to declare a property getter on a category on your model class which would look something like the below code.
// Generated model interface
@interface MyModel
@property (nonatomic, strong, readonly) NSURL *imgURL;
@end

// Your category
@interface MyModel(Aliases)
@property (nonatomic, strong, readonly) NSURL *imageURL;
@end

@implementation MyModel(Aliases)
- (NSURL *)imageURL
{
  return self.imgURL;
}
@end

@rahul-malik Awesome, that's terrific and should suffice fine, thanks for the prompt response and appreciate the library. :)

Thanks @christianselig! Let me know if you run into any issues :)


aopWeave filter option is broken or misleading

In the README, the following way of limiting which aspects are weaved is given:
// This block is optional, but recommended. The "filter" will be used to limit the scope of classes
// that AspectJ will look at. For performance reasons, and to avoid accidentally picking up AspectJ
// annotations from other libraries, specify a filter which will target only your code.
aopWeave {
	filter = "com/example/myapp"
}

In the sample apps, this filter value is "com/ibotta/gradle/aop". Based on the README, I expected that changing this to some other random package, which is not specified in the project at all (such as "com/jdvp/fake") would ensure that no aspects are weaved at all, since the filter would never be matched.
However, when using any filter value, the output is always the same in the sample app. In other words, the weaved aspects as specified in aop.log always remains the same.
Internally, the filter flag is being used to generate a list of files for the -aspectpath option. I'm not sure if I am mis-reading the documentation, but this option seems to be used for specifying additional .jar or .zip files to use for declaring aspects outside of the regular source code:

In AspectJ tools, the aspectpath is where to find binary aspects. Like the classpath, it can include archives (.jar and .zip files) and directories containing .class files in a package layout (since binary aspects are in .class files). These aspects affect other classes in exactly the same way as source-level aspects, but are themselves not affected. When deploying programs, the original aspects must be included on the runtime classpath.

I took the above from here, please let me know if it isn't an appropriate resource.
Since I am unsure of the real intention for the filter option, I'm unsure of which option would be warranted (if any):

Rename the filter option to something like 'includeJarAspects' or something similar and also allow it to be a list in case you want to specify multiple additional jar files with extra aspects
Figure some way to filter which aspects are actually being used from the inpath sources. I think that any aspects that are included in the inpath sources (so basically everything in preWeaveJavaDir and preWeaveKotlinDir) would be weaved automatically, so they would have to be filtered out (This might get pretty complicated)

Please let me know if I have misunderstood the option! Thanks

@jdvp So sorry for the late reply. I must have missed the email notification from Github.
A little background on why this feature exists. We were finding that without the filter, AspectJ was hunting everywhere for Aspects. This wasn't really what we wanted, as it's unnecessary, and we wanted AspectJ to focus on a certain area of the codebase.
My understanding of -aspectpath is that is not additive to some other set of aspect paths, rather it's the only one. If that makes sense.
However, as I'm sure you've experienced, the parameters for AspectJ are kind of confusing. So it's very possible I'm wrong in my understanding.
I'd have to research this a little more. If you changed the value of the filter to something nonsensical, and it still picked up the sample app's aspects, it would certainly suggest it's not doing what I expected.

@jdvp So sorry for the late reply. I must have missed the email notification from Github.
A little background on why this feature exists. We were finding that without the filter, AspectJ was hunting everywhere for Aspects. This wasn't really what we wanted, as it's unnecessary, and we wanted AspectJ to focus on a certain area of the codebase.
My understanding of -aspectpath is that is not additive to some other set of aspect paths, rather it's the only one. If that makes sense.
However, as I'm sure you've experienced, the parameters for AspectJ are kind of confusing. So it's very possible I'm wrong in my understanding.
I'd have to research this a little more. If you changed the value of the filter to something nonsensical, and it still picked up the sample app's aspects, it would certainly suggest it's not doing what I expected.

@eschlenz No worries, thanks for getting back to me!
I was also confused on the parameters, because this quote

In AspectJ tools, the inpath is where to find binary input - aspects and classes that weave and may be woven. Like the classpath, it can include archives and class directories. Like the aspectpath, it can include aspects that affect other classes and aspects. However, unlike the aspectpath, an aspect on the inpath may itself be affected by aspects, as if the source were all compiled together.

from here mentions that inpath can have aspects but it doesn't really mention if there is a way to turn that on or off or whether aspects on the inpath will always be woven

@eschlenz No worries, thanks for getting back to me!
I was also confused on the parameters, because this quote

In AspectJ tools, the inpath is where to find binary input - aspects and classes that weave and may be woven. Like the classpath, it can include archives and class directories. Like the aspectpath, it can include aspects that affect other classes and aspects. However, unlike the aspectpath, an aspect on the inpath may itself be affected by aspects, as if the source were all compiled together.

from here mentions that inpath can have aspects but it doesn't really mention if there is a way to turn that on or off or whether aspects on the inpath will always be woven

@jdvp I did some more research on this to get some clarification, and also remembered something that is relevant here.
First of all, the difference between aspectpath and inpath is just whether the binaries found in either may be modified (woven) as part of the weave output. Binaries in the aspectpath are not modified, but are used as a source of weaving information for target classes. inpath may be modified (woven), and as such, you must make sure the woven versions of these binaries are available at runtime.
Things get interesting in a multi-module project. In the example code, the filter options is being set to essentially signal to the plugin that it should find aspects/advice either in the current module's source code which is being built, or in a neighboring (dependency) module. But nowhere else (not in 3rd party libraries for example).
Say you have two project modules A and B, and A depends on B. Now also say that B is the home for your aspects/advice. An in addition, B has classes that are targets for being woven. Also say that A has classes that are targets for being woven. Also assume we have a filter set to have aspectpath only look at files from our app's package structure.
When B is woven the inpath will only contain compiled classes from B's source code, and aspectpath will only have classes on from the classpath that belong to our project. In the case of B, I think aspectpath would be empty since it's the first module to be built. The output would contain compiled aspect/advice classes, and also woven classes that depended on those aspects/advice.
When A is woven the inpath will only contain compiled classes from A's source code. The aspectpath, however, will include the classes from B's output (including aspects/advice). But nothing else. Now when A is woven, only aspects/advice from B will be contributing to the weave process.
I'm remembering that we had some issues with aspects/advice getting picked up from the Butterknife library, affecting our weave output, and breaking things at runtime. I believe what was happening is that aspects/advice from Butterknife were in the aspectpath, and were affecting our classes during the weave process. And as a result, we needed to find a way to avoid that. Limiting the aspectpath so that it only focused on our own classes seemed to do the trick.
Butterknife still works since it performs its own weaving on classes at a different point in time. We just don't want its aspects/advice to be picked up during our plugin's weave process.
Hopefully this at least paint the picture of where filter came from, and possibly how it works. My assumption is that it works as described because we haven't had any more issues with Butterknife aspects/advice negatively affecting our output. It's always possible that it's not doing what we think it is though.

Not 100% sure what to do with this issue, but I do see the thumbs up in my last response. I'll close this out for now, but be on the lookout for any future issues that may have anything to do with this.

@eschlenz  That totally makes sense. Thanks again!


Perfect defender retreat behavior

As of the "Combat Part Two" set of changes in Carthage, defending units can retreat from combat. However they are limited to retreating onto the tile directly away from their attacker, whereas in the original game they can also retreat onto the tiles on the sides. Additionally the retreat movement needs to consider enemy zone of control. Issue split off from comment here: https://github.com/C7-Game/Prototype/pull/250#discussion_r893052596

Update: Many players' experiences and my own testing confirm that 1 HP units cannot retreat, so this is fine as is. But the function to compute the retreat chance does need to be changed to match the original game.


Javascript access from "outside"

First of all, this is really an amazing project and I really like it. Suppose there si a need for integration with external JavaScript files. What would be the best way to interact with the generated files?
An example: Let's say I take GranularApplication1.zip, go through the build process and then want to add my own JavaScripts to handle click on the button. Can I use something starting with global.Granular?
I know it seems academic, but let's assume for example I would like these scripts to be generated from FunScript.

Thanks :)
Saltarelle has an "InlineCode" attributes, similar to "JSEmit", so you can also call your script from C#, with something like this:
    private void OnButtonClick(object sender, RoutedEventArgs e)
    {
        HandleButtonClick(sender, e);
    }

    [System.Runtime.CompilerServices.InlineCode("global.???.handleButtonClick({sender}, {e})")]
    private static void HandleButtonClick(object sender, RoutedEventArgs e)
    {
        //
    }

(maybe you'll want to add an empty InlineCodeAttribute class to the WPF version of the application, so it won't break)
It's an interesting problem, I don't know if there is a best way do that, maybe involving some view models for the interop calls could be a bit cleaner, although it would require more code.
I'd be interested to hear if you'll have new insights on how it should be done.

Thank you for pointing me the right direction. Works, but definitely too much boiler plate code would be needed right now. I will try to elaborate it more.


Email templates not interpolating

Some of the values inside of templates are not properly interpolated. I've created a new license and assigned it to an item.

But the emails I've received are missing some info...
Download instructions for piwik
Remember, the file is distributed under specific license:
 {2}

New File Download Request
Extra MetaData Provided by user:
        {5}

works for me.

I can reproduce with license set to ask only once

The problem are few arguments provided because licenses are empty.
    		for(LicenseDefinition license : licenses) {
    			email2Admin.addArgument(license.getDefinition());
    		}


Add UIButton initializer

Hello and thanks for this project.
I've found the open issue #14  about adding some missing convenience methods for UIButton.
I've added the following two methods :
func systemButton(with symbol: SFSymbol, target: Any?, action: Selector?) -> Self
func setImage(with symbol: SFSymbol, for state: UIControl.State)
that leverage on the UIImage extension and UIButton native methods.
I've also inserted some tests for the new behaviors.
Greetings

Thank you very much, @posix88! 🚀


Different Icon for code style warning

Issue
Code Warnings and Style Warnings look the same.
Solution
Different Icon for Syle Warnings. Maybe a blue square with an 8 or an S.

Good idea! @rlaverde, how is this handled in VSCode?

I also like this, we could use a different icon for pycodestyle and pylint outputs

how is this handled in VSCode?

Sometimes a light bulb is shown for some warnings, I don't notice a difference between style  and code  warnings


Update otel JMX component

Based off of research completed by @cpheps https://github.com/GoogleCloudPlatform/ops-agent/issues/288#issuecomment-1011730111 we believe an updated jmx-metrics-jar should resolve issues with JMX metrics appearing as doubles when they should be integers.

Being updated in https://github.com/GoogleCloudPlatform/ops-agent/pull/315 already


Fix template guessing when CGLibrary is used fixes #83

When can we expect new version with update?

Any update?


Running lutris causes segfault

OS: Gentoo
Waybar version: 7b115913dea63aa5fd7deb68f1be2911d023a48d
wlroots version: 30bf8a4303bc5df3cb87b7e6555592dbf8d95cf1
Sometimes running lutris causes segfault, to get this bt i run it around 10 times. It started happening after enabling icon in sway/window module. Also sometimes waybar shows GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed
Starting program: /usr/bin/waybar
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff5649640 (LWP 4392)]
[New Thread 0x7ffff4978640 (LWP 4393)]
[New Thread 0x7fffeffff640 (LWP 4394)]
[New Thread 0x7fffef7fe640 (LWP 4395)]
[New Thread 0x7fffeeffd640 (LWP 4396)]
[New Thread 0x7fffee79a640 (LWP 4397)]
[New Thread 0x7fffedf99640 (LWP 4398)]
[New Thread 0x7fffed798640 (LWP 4399)]
[Detaching after fork from child process 4400]
[New Thread 0x7fffecf97640 (LWP 4401)]
[Detaching after fork from child process 4402]
[New Thread 0x7fffd7fff640 (LWP 4403)]
[New Thread 0x7fffd77fe640 (LWP 4404)]
[New Thread 0x7fffd6ffd640 (LWP 4405)]
[New Thread 0x7fffd67fc640 (LWP 4406)]
[Detaching after fork from child process 4409]
[New Thread 0x7fffd5ffb640 (LWP 4410)]
[New Thread 0x7fffd57fa640 (LWP 4412)]
[Thread 0x7fffd57fa640 (LWP 4412) exited]
[New Thread 0x7fffd57fa640 (LWP 4419)]
[New Thread 0x7fffd4ff9640 (LWP 4420)]
[Thread 0x7fffd57fa640 (LWP 4419) exited]
[Thread 0x7fffd4ff9640 (LWP 4420) exited]
[New Thread 0x7fffd4ff9640 (LWP 4421)]
[New Thread 0x7fffd57fa640 (LWP 4422)]
[New Thread 0x7fffc7fff640 (LWP 4423)]
[Detaching after fork from child process 4424]
[New Thread 0x7fffc77fe640 (LWP 4425)]
[Detaching after fork from child process 4426]
[New Thread 0x7fffc6ffd640 (LWP 4427)]
[New Thread 0x7fffc67fc640 (LWP 4430)]
[New Thread 0x7fffc5ffb640 (LWP 4431)]
[New Thread 0x7fffc57fa640 (LWP 4432)]
[Detaching after fork from child process 4433]
[New Thread 0x7fffc4ff9640 (LWP 4434)]
[New Thread 0x7fffbffff640 (LWP 4446)]
[New Thread 0x7fffbf7fe640 (LWP 4447)]
[Thread 0x7fffbffff640 (LWP 4446) exited]
[Thread 0x7fffbf7fe640 (LWP 4447) exited]
[New Thread 0x7fffbf7fe640 (LWP 4448)]
[New Thread 0x7fffbffff640 (LWP 4449)]
[Thread 0x7fffbf7fe640 (LWP 4448) exited]
[Thread 0x7fffbffff640 (LWP 4449) exited]
[Detaching after fork from child process 4459]
[Detaching after fork from child process 4470]
[Detaching after fork from child process 4560]
[Detaching after fork from child process 4565]
[Detaching after fork from child process 4653]
[Detaching after fork from child process 4658]
[Thread 0x7fffeffff640 (LWP 4394) exited]
[Detaching after fork from child process 4679]
[Detaching after fork from child process 4680]
[Detaching after fork from child process 4707]
[Detaching after fork from child process 4708]
[Detaching after fork from child process 4861]
[Detaching after fork from child process 4862]
[Detaching after fork from child process 4904]
[Detaching after fork from child process 4905]

Thread 20 "waybar" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd57fa640 (LWP 4422)]
0x0000000000000000 in ?? ()
#0  0x0000000000000000 in  ()
#1  0x00007ffff6b10f28 in g_hash_table_lookup () at /usr/lib64/libglib-2.0.so.0
#2  0x00007ffff720db31 in gtk_icon_theme_has_icon () at /usr/lib64/libgtk-3.so.0
#3  0x00007ffff7d05920 in Gtk::IconTheme::has_icon(Glib::ustring const&) const () at /usr/lib64/libgtkmm-3.0.so.1
#4  0x00005555555c0c84 in waybar::modules::sway::Window::onCmd(waybar::modules::sway::Ipc::ipc_response const&) ()
#5  0x00005555555b4ce6 in sigc::internal::signal_emit1<void, bool, sigc::nil>::emit(sigc::internal::signal_impl*, bool const&) ()
#6  0x00005555555b9018 in waybar::modules::sway::Ipc::sendCmd(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
#7  0x00005555555bee90 in waybar::modules::sway::Window::getTree() ()
#8  0x00005555555b4ce6 in sigc::internal::signal_emit1<void, bool, sigc::nil>::emit(sigc::internal::signal_impl*, bool const&) ()
#9  0x00005555555b9156 in waybar::modules::sway::Ipc::handleEvent() ()
#10 0x00005555555bdbc4 in std::_Function_handler<void (), waybar::modules::sway::Window::Window(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char
> > const&, waybar::Bar const&, Json::Value const&)::{lambda()#1}>::_M_invoke(std::_Any_data const&) ()
#11 0x0000555555592d51 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<waybar::util::SleeperThread::operator=(std::function<void ()>)::{lambda()#1}> > >::_M_ru
n() ()
#12 0x00007ffff6932290 in  () at /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6
#13 0x00007ffff65f9267 in  () at /lib64/libc.so.6
#14 0x00007ffff667bd4c in  () at /lib64/libc.so.6

Did you still have the error?


open Excel tutorial

Article URL

Issue

Hello,
Why can't I get into the Excel tutorial? Please explain, I am a Senior so bear with me.  Thanks
Barbara
On Wednesday, September 12, 2018 1:09 PM, Rick-Kirkham<EMAIL_ADDRESS>wrote:

Closed #364.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Release: Add dnadesign to vendor array in .cow.json

During the 4.12.0-beta1 release, there was an issue where dnadesign/silverstripe-elemental-userforms wasn't being added to the cowpat, and when added manually cow had a cow about it. Adding dnadesign to the local version of the .cow.json file resolved this and seems like a reasonable long-term resolution.
Acceptance criteria

[ ]  dnadesign/silverstripe-elemental-userforms gets automatically added to the cowpat when creating a cow release plan

PRs

https://github.com/silverstripe/recipe-kitchen-sink/pull/28

@GuySartorelli Is this actually an issue? I'm not sure if dnadesign/silverstripe-elemental-userforms` is even supposed to be released during the cow release? It's not part of the sink?
https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/ has it down as a "supported dependency" rather than a "supported module"

Huh. I hadn't noticed that. What's the difference between supported dependency and supported module!?

I'm not sure what the issue is, looking at previous release plans such as 4.11.0 dnadesign/silverstripe-elemental-userforms is being added to the .cow.pat.json.  It is upgrade-only, though it's there.

Which .cow.json?

recipe kitchen sink's one iirc

OK, noticed that in my testing that I'm replicating this issue, must have been a regression from some changes since 4.11.0 in cow
I'll add it to .cow.json

PR merged


Support WorkspaceVersions for aws-s3

Whether Workspace Version can be supported when using aws-s3 data storage

This is actually supported already, although there was nothing in the documentation (I've added a note) ... you just need to enable bucket versioning on your S3 bucket.


[Feature Request]: google-symbol.woff2 font is too large

Feature Description
is it already compressed to the smallest size? Currently,it takes 30 seconds for my website to request it.so what can i do to reduce its size
Why is this feature valuable?
No response
Suggested Implementation
No response
Additional Information
No response
No Duplicate of the Feature

[X] I have verified that there are no existing features requests similar to my request.

https://github.com/Stirling-Tools/Stirling-PDF/pull/1723

reduced by 80% in next update


Feature: Add Graph toolkit tab

Overview
Adds a graph toolkit iframe that gets the toolkits from the graph toolkit website.
Fixes #359
Demo
With toolkit

Without toolkit

Notes
Queries supported so far:

'/me/planner/tasks'
'/me'
'/me/people'
'/me/calendarview\?startdatetime=([^/?]+)&enddatetime=([^/?]+)'
'/me/photo/\$value'

Note the escaped special characters in the last two queries supported.
Testing Instructions

Select a query to run
Click the Graph toolkit tab
View the interactive toolkit and the code snippet associated

ping @beth-panx and @elisenyang

@bettirosengugi the iframe absorbs the width of the screen. And the contents of the iframe absorb the width of the iframe. Thus the code snippet is not actually short, it has responded to the width of the device that is holding it. Notice the horizontal scrollbar at the bottom
@nmetulev do you have any plans to roll out the toolkit iframe with theming to support @bettirosengugi 's insights?

I just created a PR to change the default theme to light theme: https://github.com/microsoftgraph/microsoft-graph-toolkit/pull/350
Re: theming, it's on the roadmap (https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/345), but not likely in the next few months

@elisenyang @nmetulev @thewahome
Laura also recommended that we change the name of the tab from "Graph Toolkit" to just "Toolkit component".

This will be put on hold till the graph toolkit team get the privacy review approvals.

Super excited for this to ship! 👏🏼


Update ember-cli to v4.8

Follow up to https://github.com/adopted-ember-addons/ember-cp-validations/pull/731

Updates ember-cli to v4.8
Updates the tests to work with ember-data v4.8

There will be a follow up PR that replaces the ember-data imports with @ember-data.
Beta and Canary are expected to fail. Current test coverage is 3.28 -> 4.8
https://github.com/adopted-ember-addons/ember-cp-validations/issues/716

@MelSumner Thanks!


[auto] onnx-pr-612

This is an auto PR managed by onnxbot for tracking
https://github.com/onnx/onnx/pull/612 Minor code quality improvements in optimizer/

@caffe2bot retest this please

@caffe2bot test this please


for importing csv recognize various titles of columns for latitude and longitude (lat, lon, long, ...) and / or leave the choice of titles for the latitude and longitude

At least, be as permissive as uMap
by example : i have a csv file ok for import in uMap but not in mapContrib ...


Unable to connect to Domain Controller

Operating System Version:
Deploying via (VirtualBox/VMWare/AWS/Azure/ESXi): AWS Terraform
Vagrant Version (if applicable):

Please verify that you are building from an updated Master branch before filing an issue. - Did git pull before i launched terraform
Description of the issue:
When logged in using windomain\vagrant, error message unable to contact domain.      : Yes
   Autoconfiguration Enabled . . . .    : Enabled

>gpupdate /force
Updating policy...

Computer policy could not be updated successfully. The following errors were encountered:

The processing of Group Policy failed because of lack of network connectivity to a domain controller. This may be a transient condition. A success message would be generated once the machine gets connected to the domain controller and Group Policy has successfully processed. If you do not see a success message for several hours, then contact your administrator.
User Policy update has completed successfully.

To diagnose the failure, review the event log or run GPRESULT /H GPReport.html from the command line to access information about Group Policy results.

     : Yes
   Autoconfiguration Enabled . . . .    : Enabled

C:\Users\vagrant>gpupdate /force
Updating policy...

Computer Policy update has completed successfully.
User Policy update has completed successfully.

Looking into this now

Interesting, it looks like an ipconfig /renew is actually enough to fix this. I'll try adding that to the remote-exec in Terraform and see if that solves the problem:

The DNS servers are correctly getting set in Terraform but for whatever reason it takes a renew to get the instances to pick it up: https://github.com/clong/DetectionLab/blob/master/AWS/Terraform/main.tf#L39

ipconfig /renew does work to get the dns settings updated but isn't the ipconfig /renew already in the remote-exec for each instance?

     : Yes
   Autoconfiguration Enabled . . . .         : Yes
   Autoconfiguration Enabled . . . .    : Enabled

C:\Users\vagrant>gpupdate /force
Updating policy...

Computer policy could not be updated successfully. The following errors were encountered:

The processing of Group Policy failed. Windows attempted to retrieve new Group Policy settings for this user or computer. Look in the details tab for error code and description. Windows will automatically retry this operation at the next refresh cycle. Computers joined to the domain must have proper name resolution and network connectivity to a domain controller for discovery of new Group Policy objects and settings. An event will be logged when Group Policy is successful.
User Policy update has completed successfully.

To diagnose the failure, review the event log or run GPRESULT /H GPReport.html from the command line to access information about Group Policy results.
```

#### After changing the DNS configuration manually via GUI, the same place we configured IP address (instead of advanced to add DNS)

```
>gpupdate /force
Updating policy...

Computer Policy update has completed successfully.
User Policy update has completed successfully.
```

Thanks for looking into this. It seems tricky


Update UrhoSharp ARKit docs

Update to reflect that ARKit is not on just iPhone but iPad as well.

Thanks @LuceCarter – appreciate the help!


Stack frames sometimes appear at the wrong nesting level

Given the following code:
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class LineNumberProblem {

    public static void main(String[] args) {

        LongThing seed = new LongThing(1);
        List<Thing> things = Stream.iterate(seed, LineNumberProblem::next).limit(100000).collect(Collectors.toList());

        while (true) {
            Thing previousThing = seed;
            long result = 0;
            for (Thing thing : things) {
                result += Long.compare(previousThing.getAsLong(), thing.getAsLong());
                previousThing = thing;
            }
            System.out.println(result);
        }
    }

    private static Thing next(Thing previous) {
        if (previous instanceof LongThing) {
            return new DoubleThing(1.0);
        } else if (previous instanceof DoubleThing) {
            return new BooleanThing(true);
        } else if (previous instanceof BooleanThing) {
            return new IntThing(2);
        } else {
            return new LongThing(1);
        }
    }

    public interface Thing {
        long getAsLong();
    }

    static class LongThing implements Thing {
        private final long data;

        public LongThing(long data) {
            this.data = data;
        }

        @Override
        public long getAsLong() {
            return data;
        }
    }

    static class IntThing implements Thing {
        private final int data;

        public IntThing(int data) {
            this.data = data;
        }

        @Override
        public long getAsLong() {
            return data;
        }
    }

    static class DoubleThing implements Thing {
        private final double data;

        public DoubleThing(double data) {
            this.data = data;
        }

        @Override
        public long getAsLong() {
            return (long) data;
        }
    }

    static class BooleanThing implements Thing {
        private final boolean data;

        public BooleanThing(boolean data) {
            this.data = data;
        }

        @Override
        public long getAsLong() {
            return data ? 1 : 0;
        }
    }

}

The flame graph shows getAsLong inside Long.compare. It should be directly under LineNumberProblem:15 instead.

Thanks for the test case. I can confirm the bug.
Sometimes JVM incorrectly attributes compiled machine to the original bytecode, but in this case it's async-profiler's fault.
How to check: add --safe-mode 255 option. If an invalid stack trace remains, this is a JVM bug. If invalid stack traces disappear (resulting in [unknown_Java] frames), this is an async-profiler problem.

I committed the fix that significantly reduces the chance of the issue.
There still can be rare situations when async-profiler reconstructs an impossible stack, but fixing those would be dangerous, as improper manipulation with addresses can lead to the JVM crash. I'll better stay safe for now, and investigate this deeper some time later. At least, I can probably mark the recovered stack traces somehow, so that the suspicious stacks are highlighted in the flame graph.

Thank you for the quick fix Andrei! Just tried it on the real app that I had trouble with and the top frames make a lot more sense now :)

Closing the issue, since the main problem is fixed.


Improvement for the tutorial

Hi,
First I would like to thank you for the initiative. I have few suggestoin for your project:

Add a section for FFMpeg compilation and/or links for Windows/Linux. For instance, add links to Zeranoe builds. Explain the limitation of codec/mux and licenses issues, the interest of the non-free flag for compilation.
A small guide/links explaining how to compile ffmpeg with specific options, how to add/remove a codec from a build.
Differenciate version of FFMpeg. There are many API changes, maintaining multiple version of the sample code can be great.
Add a small tutorial for synching audio & video when there is no constant FPS input (I already have some stuff for this one).

I can participate to some of these points. Let me know if you are interested by a contribution!
BR

Thank you @lp35 about your points:

We can do that, I think this fits into a extra chapter
The same situation as number 1, maybe both can be placed at the same chapter
This IS PRETTY HARD and I don't think we would have time and people to maintain that
This is pretty cool as well, maybe an addition to https://github.com/leandromoreira/ffmpeg-libav-tutorial#chapter-1---syncing-audio-and-video


AppMesh integration- Getting error deployment testapp.prod get query error: deployments.apps "testapp" not found

Thanks @stefanprodan for the exellent work as well as documentation on Flagger.  I am trying canary deployment for my application which is inside App Mesh and deployed in latest EKS cluster version.
I get this error when I restart the deployment. The apps and all the app mesh components are running fine.
Phase:                   Initialized
Tracked Configs:
Events:
Type     Reason  Age                From     Message

Warning  Synced  23m                flagger  testapp-primary.prod not ready: waiting for rollout to finish: observed deployment generation less then desired generation
Normal   Synced  22m (x2 over 23m)  flagger  all the metrics providers are available!
Normal   Synced  22m                flagger  Initialization done! testapp.prod
Warning  Synced  15m (x2 over 16m)  flagger  deployment testapp.prod get query error: deployments.apps "testapp" not found
And here is what flagger logs show.
{"level":"info","ts":"2020-12-17T17:43:37.331Z","caller":"controller/events.go:17","msg":"Initialization done! testapp.prod","canary":"testapp.prod"}
{"level":"info","ts":"2020-12-17T17:49:37.128Z","caller":"controller/events.go:29","msg":"deployment testapp.prod get query error: deployments.apps "testapp" not found","canary":"testapp.prod"}

The log is clear to me, you've deleted the deployment

Thanks for the quick response on this. I restarted the deployment and it went through this error. I have enabled the prometheus metrics in App Mesh but seems like its not able to find these metrics, I will look into this. But after Canary failed, it deleted my deployment pods and deployment shows as deployment.apps/testapp                0/0     0            0           103m Is this expected?
Events:
Type     Reason  Age                From     Message

Normal   Synced  24m                flagger  New revision detected! Scaling up testapp.prod
Normal   Synced  23m                flagger  Starting canary analysis for testapp.prod
Normal   Synced  23m                flagger  Advance testapp.prod canary weight 5
Warning  Synced  18m (x5 over 22m)  flagger  Halt advancement no values found for appmesh:v1beta2 metric request-success-rate probably testapp.prod is not receiving traffic: running query failed: no values found
Warning  Synced  17m                flagger  Rolling back testapp.prod failed checks threshold reached 5
Warning  Synced  17m                flagger  Canary failed! Scaling down testapp.prod

Here are the event logs where it is deleting the deployment pods after Canary Failed.
17m         Normal    Synced                         canary/testapp                            Starting canary analysis for testapp.prod
12m         Warning   Synced                         canary/testapp                            Halt advancement no values found for appmesh:v1beta2 metric request-success-rate probably testapp.prod is not receiving traffic: running query failed: no values found
11m         Normal    Killing                        pod/testapp-xxx-vbbbd              Stopping container envoy
11m         Normal    SuccessfulDelete               replicaset/testapp-59f89b66bd             Deleted pod: testapp-xxx-68kbx
11m         Normal    Killing                        pod/testapp-xxx-68kbx              Stopping container testapp
11m         Normal    Killing                        pod/testapp-xxx-vbbbd              Stopping container testapp
11m         Normal    Killing                        pod/testapp-xxx-68kbx              Stopping container envoy
11m         Normal    SuccessfulDelete               replicaset/testapp-59f89b66bd             Deleted pod: testapp-xxx-vbbbd
11m         Normal    ScalingReplicaSet              deployment/testapp                        Scaled down replica set testapp-59f89b66bd to 0

Please see https://github.com/stefanprodan/gitops-appmesh on how to deploy App Mesh with Prometheus.


Pickaxe enchantments and Lapis Ore

Some pickaxe enchantments still give Ink instead of lapis.

 Pickaxe enchantments and Lapis Ore


Store learners in MembershipConfig.

Store learners in MembershipConfig, so that even when leadership is transferred, the replication to Learners won't stop.

/assignme

/assignme

/assignme

@SGZW
This patch would affect a lot components in the code base.
Feel free opening a discussion sharing your idea and get help:DDD

@SGZW This patch would affect a lot components in the code base. Feel free opening a discussion sharing your idea and get help:DDD

ok, this issue has ddl? i will make a plan

@SGZW This patch would affect a lot components in the code base. Feel free opening a discussion sharing your idea and get help:DDD

ok, this issue has ddl? i will make a plan

No ddl for now 🤔...

@SGZW This patch would affect a lot components in the code base. Feel free opening a discussion sharing your idea and get help:DDD

ok, this issue has ddl? i will make a plan

No ddl for now 🤔...

thx, i will give a plan before Friday

sorry for delay this, I'm busy with other things recently


link to official docs

https://docs.microsoft.com/en-us/cli/azure/ext/vmware/vmware?view=azure-cli-latest

added to readme


Alt text gh330

@its-anirudh These look good. Can you update to include the how it works flow. ALT text is also in figma.

We still need to add the ones from the how it works flow, they dont appear in the changed files?

We still need to add the ones from the how it works flow, they dont appear in the changed files?

I will add them; did not see them in scope in the GH ticket


hubble-cli: Mount /var/run/cilium as a directory

I've been hitting an issue with mounting /var/run/cilium/hubble.sock as
the Socket type where sometimes /var/run/cilium/hubble.sock gets created
as a directory. To reproduce this behavior on minikube:

Deploy Cilium with the Hubble CLI enabled and wait for the hubble-cli
to become ready. Verify that hubble.sock is a UNIX domain socket.
Set enable-hubble to "false" in cilium-config configmap and restart
Cilium.
Now /var/run/cilium/hubble.sock is a directory. It seems like somehow
hubble-cli creates the directory when Cilium deletes hubble.sock.

Because of this directory Cilium fails to start Hubble server the next
time enable-hubble gets set to true. With this PR /var/run/cilium
directory gets mounted as a directory instead. I manually verified this
fixes the issue.
Signed-off-by: Michi Mutsuzaki<EMAIL_ADDRESS>

Coverage decreased (-0.003%) to 44.753% when pulling 44430435a1972216bb9af6d83e4ff08a34376799 on pr/michi/hubblecli into 0316bc205d213830eb3936ff234cb150ae5051aa on master.

test-me-please

@gandro try adding the hubble socket path as a volume mount for cilium with type socket.

test-me-please

test-with-kernel

Another good reason for mounting the directory is avoid issues with socket file actually getting deleted/re-created.

test-gke


otto update does not work with workflow ids.

Server -  b367bd454
Steps to reproduce the problem

Create workflow using otto create -f
Once workflow is created , try to update this workflow using otto update <workflow-id> <filename>
This fails with  error code 404 (Not Found) error.

%otto workflows
ID        NAME      DESCRIPTION            INVOKE
w1sn6p8                                    http://localhost:8080/invoke/w1sn6p8
w1gfv48   subflow                          http://localhost:8080/invoke/w1gfv48
w1bb7tq   Foo       Is a very cool agent   http://localhost:8080/invoke/w1bb7tq
w15sm2q   Foo       Is a very cool agent   http://localhost:8080/invoke/w15sm2q
w1hf2rk   Foo       Is a very cool agent   http://localhost:8080/invoke/w1hf2rk
w1cbwjr                                    http://localhost:8080/invoke/w1cbwjr
w19kzzd                                    http://localhost:8080/invoke/w19kzzd
w17xql7   wf1       Read and Write files   http://localhost:8080/invoke/w17xql7

% otto update w17xql7  wf1.yaml
2024/09/25 17:09:56 error code 404 (Not Found): agent w17xql7 not found

I am not able to reproduce this with the latest version of the Otto8 CLI. Moving to test for verification.

This issue is not seen anymore when testing with latest builds.


ESLint Hanging

Describe the bug
I've installed ts-safeql as per docs on Prisma and read through the official SafeQL docs which seem to provide the same instructions. After doing so, my ESLint seems to have broken, hanging when running eslint . and providing no output.
To Reproduce
My .eslint.cjs contents for my SvelteKit project utilising Prisma:
require('dotenv').config();

/** @type { import("eslint").Linter.FlatConfig } */

module.exports = {
	root: true,
	extends: [
		'eslint:recommended',
		'plugin:@typescript-eslint/recommended',
		'plugin:svelte/recommended',
		'prettier'
	],
	parser: '@typescript-eslint/parser',
	plugins: ['@typescript-eslint', '@ts-safeql/eslint-plugin'],
	parserOptions: {
		sourceType: 'module',
		ecmaVersion: 2020,
		extraFileExtensions: ['.svelte'],
		project: './tsconfig.json'
	},
	env: {
		browser: true,
		es2017: true,
		node: true
	},
	overrides: [
		{
			files: ['*.svelte'],
			parser: 'svelte-eslint-parser',
			parserOptions: {
				parser: '@typescript-eslint/parser'
			}
		}
	],
	rules: {
		'@ts-safeql/check-sql': [
			'error',
			{
				connections: [
					{
						// The migrations path:
						connectionUrl: process.env.DB_URL,
						migrationsDir: './prisma/migrations',
						targets: [
							// This makes `prisma.$queryRaw` and `prisma.$executeRaw` commands linted
							{ tag: 'prismaClient.+($queryRaw|$executeRaw)', transform: '{type}[]' }
						]
					}
				]
			}
		]
	}
};

Expected behavior
I'd expect ESLint to function as normal and complete when running, as I've only followed the official instructions and configured it as documented from what I can see.
Desktop (please complete the following information):

OS: MacOS Sonoma 14.2
PostgreSQL version: 16
Version of @ts-safeql/eslint-plugin: ^2.0.3

I've tried using the debug flag and can see it hangs on this file:
 eslint:linter Scope analysis successful: <MY_PROJECT_PATH>/src/lib/server/prisma.ts +0ms
That file itself contains code that matches the specified target:
prismaClient.+($queryRaw|$executeRaw)
Meaning it seems to be struggling at the point it reaches a file that contains the specified target.

I'm facing the same issue, however I'm using NestJS with Prisma.

I have the same issue

I decided to debug the library code and came to the conclusion that this is not a problem with this particular library, but with a specific version of the "synckit" library used in this library, the check freezes on line 275 when calling the generateSync function, I found it useful in the issues of this library and found the issue related to this problem, at the moment the issue is already closed, so I think the solution to this problem is that you just need to update the dependencies
https://github.com/un-ts/synckit/issues/128

Ok, I figured it out, I've just installed Postgres via brew on my laptop and it worked

To fix error with database name you should add string '/postgres' to your database url environment variable and make sure that your env variable value is not undefined

A reproduction would be helpful

Closing due to inactivity. If the issue still occurs, please open a new issue with a reproduction.


tour: [imports.go need newline character]

Context: https://tour.golang.org/basics/2
VERSION INFO:
at cmd window outside vagrant I'm running
go version go1.11 windows/amd64
using go install inside Vituralbox vagrant for Ubuntu, the go version command
vagrant@precise64:/vagrant/go/src/tour_imports$ go version
go version go1
vagrant@precise64:/etc$ go env
GOROOT="/usr/lib/go"
GOBIN=""
GOARCH="amd64"
GOCHAR="6"
GOOS="linux"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread"
CGO_ENABLED="1"
This is what I did:
I typed the imports.go example into nano tour_imports.go
then : go install
then executed on the command line: tour_imports
Very minor issue. As a suggestion:
The imports.go example, when run in a unix environment command line, does not have a newline character at the end of the Printf function, this causes the cursor string to appear to be part of the output.
fmt.Printf("Now you have %g problems.", math.Sqrt(7))
displays as:
vagrant@precise64:/vagrant/go/src/tour_imports$ tour_imports
Now you have 2.6457513110645907 problemsvagrant@precise64:/vagrant/go/src/tour_imports$
but
fmt.Printf("Now you have %g problems.\n", math.Sqrt(7))
displays as
vagrant@precise64:/vagrant/go/src/tour_imports$ tour_imports
Now you have 2.6457513110645907 problems.
vagrant@precise64:/vagrant/go/src/tour_imports$

Thanks for the report. I've sent a fix at CL 138615.


Add option to edit patch before staging

Hello! Thanks for this awesome plugin, I have been having a blast using it :)
I added a command to edit the patch before staging the file (shortcut e). This is equivalent to running git add --edit -- file in the command line. Do you guys have any interest in merging this?
In case this PR is missing something, I am willing to update it!

Cool stuff! I'm not sure I understand the use case of this instead of just editing the buffer, though. Care to enlighten me?

@CKolkey it is a niche use case indeed! Sometimes in my workflow, I do a bunch of changes at once and would only then create several commits from these changes. Editing the buffer directly would require me to (i) delete the changes I do not want to stage, (ii) stage the remaining changes, (iii) bring the deleted changes back, (iv) commit, (v) repeat. This is perfectly doable for simple changes but it gets clumsy when there are many files.
You might argue that I can stage individual hunks already, but more often than not it is useful to stage only part of a hunk, that's where the --edit flag comes in handy!

Ahh, ok! Try doing a visual selection of part of a hunk and staging that - I think that accomplishes what you want?

It does! I didn't know this was possible, I guess this PR is redundant after all.
Thanks for you attention and keep up the awesome work!

Glad to hear it!

Howdy folks! I'm a long time git CLI user but I'm experimenting with adopting a neogit workflow.
Re:

Try doing a linewise visual selection (V) of part of a hunk and staging that - I think that accomplishes what you want?

That's quite handy - thanks for the tip!
However, there are still some cases where I find git add -p's e (manually edit the current hunk) option useful that aren't solved this way. Basically, there are times when you really do want to change some part of a hunk before staging it, but leave the file as-is in your working directory.
For example: you've added a new call of a function foo, and then you've renamed the function (and all its usages) to bar. You might decide you want to stage the new invocation without the bar rename to be committed right now. With git add -p you can use e on that hunk and make a temporary change of bar back to foo and then commit. (And then later you can commit the bar rename once you're ready, which would still be there in the working directory.)
I admit this is more rare than just staging individual hunks or lines inside a hunk, but it is something I do often enough that I'd love to have an equivalent option in neogit.
That said, @leiteg it sounds like you were proposing something slightly different, which was an equivalent to git add --edit file rather than operating on individual hunks (like git add -p -> e), is that correct? Personally, I'd want the hunk granularity...

it sounds like you were proposing something slightly different, which was an equivalent to git add --edit file rather than operating on individual hunks (like git add -p -> e), is that correct?

Hey @rmacklin, yes, that's correct. I proposed the file-wise edit because it was simpler to implement, but I agree that hunk-wise editing would be a better feature to have. For my use cases, doing a visual select and then staging did the trick, as suggested by @CKolkey. If you wish, and the maintainers agree, you can pick up my patch and move it forward.

I thought I'd have time to try moving your patch forward, but I haven't been able to. Just wanted to follow up here to make it clear I'm not actively working on it.


Form Reset On Success

Once the submission is successful, I have a form that stays on the same page once the action is complete (account page in settings).
I need the form to reset (i.e. isDirty) to go back to false.
Is there a way to do this without using a useEffect? Totally happy to contribute to the docs

  const [formKey, clearForm] = useReducer((state) => state + 1, 0);

  <FormComponent key={formKey} onSuccess={() => clearForm()} />

@Roanmh Yes, I discovered that some methods were unstable in between renders and caused the issue but they were fixed. I would recommend just using the intended approach from the react-hook-form docs or what Chiptus wrote in his comment

still experiencing

Same, not sure if it used to happen before, but on latest version 5.1.1 it is happening: passing form to useEffect will enter render loop, but assigning form.reset works


Inconsistent behavior in CategoricalDomain

In CategoricalDomain, the method "+=" looks like:
def +=(x:C) : Unit = this.value(x)
and the method "++=" looks like:
def ++=(xs:Traversable[C]) : Unit = xs.foreach(this.index(_))
This means that, if gatherCounts = true and the user adds something to a CategoricalDomain using +=, the domain WON'T update the count (because value(x: C) never seems to update counts), but using ++=, the domain WILL update counts (since index(x: C) first updates counts, then calls value)
Here is a gist demonstrating this issue:  https://gist.github.com/k8si/8595b4460a3e11802dba
I propose that we make the changes:
def +=(x: C): Unit = this.index(x)
def ++=(xs: Traversable[C]): Unit = xs.foreach(this += _)
I am submitting this as an issue rather than a pull request because I believe it merits some discussion re: what the behaviour should be here.

I agree with your suggested change.

On Jul 7, 2015, at 8:19 PM, Kate Silverstein<EMAIL_ADDRESS>wrote:
In CategoricalDomain, the method "+=" looks like:
def +=(x:C) : Unit = this.value(x)
and the method "++=" looks like:
def ++=(xs:Traversable[C]) : Unit = xs.foreach(this.index(_))
This means that, if gatherCounts = true and the user adds something to a CategoricalDomain using +=, the domain WON'T update the count (because value(x: C) never seems to update counts), but using ++=, the domain WILL update counts (since index(x: C) first updates counts, then calls value)
Here is a gist demonstrating this issue: https://gist.github.com/k8si/8595b4460a3e11802dba
I propose that we make the changes:
def +=(x: C): Unit = this.index(x)
def ++=(xs: Traversable[C]): Unit = xs.foreach(this += _)
I am submitting this as an issue rather than a pull request because I believe it merits some discussion re: what the behaviour should be here.
—
Reply to this email directly or view it on GitHub.


Dynamically load the Kubernetes contexts so that if they get updated, then Wash will reload them.

Currently contexts are loaded from config in the Init function. Move that to the plugin root's List function (where they're used) so it can be cached and reloaded as needed.

@MikaelSmith @ekinanp I'm interested in contributing to wash. Is this a good issue to help with? If so can I get some pointers about where in the code I might the necessary some changes?

It is, sorry we didn't leave a more complete description!
Wash is structured around a set of plugins that implement its primitives for specific APIs. The Kubernetes plugin lives at https://github.com/puppetlabs/wash/tree/master/plugin/kubernetes. The plugin's Root implementation lives at https://github.com/puppetlabs/wash/blob/master/plugin/kubernetes/root.go.
Currently contexts are loaded only when Init is called, which is when Wash starts up; it reads the Kubernetes config and generates a list of k8context objects. This ticket is about moving that work to the List.
We don't have a unit testing framework setup for this section of code yet. One way we do test plugins is by calling wash validate <plugin>, which exercises all the unique types implemented by the plugin.
It would be possible to start adding some testing, particularly around this behavior. If you're interested I can work on what that would look like, but it's a bit more complicated.

Thanks @MikaelSmith. I'll take a look at this code and I'll let you know if I want to help with more than just implementing the feature for this issue. I'm definitely open to helping with tests, but my free ⌛ time is limited 😞.

Not a problem. https://github.com/puppetlabs/wash/issues/228 is another only slightly more involved one that would be a good next step.


STORM-2217: Make DRPC pure java

This sets up some things for using Jersey for the UI, logviewer, and DRPC.  It is not perfect and will probably need some clean up over time as we try to pull in UI and logviewer changes.
It divides up some of the functionality in DRPC so we could pull DRPC server and the webapp pieces into a separate module to separate out the classpaths.  I have not shaded Jersey because of this, but am happy to try if people want me to.
I rewrote a lot of the core DRPC functionality so that when we do go to a newer version of jetty that supports async we can make DRPC much more scaleable.
I would love feedback on what I have done

Will rebase soon.

Rebased the code

+1. Looks good.

Rebased again

@ptgoetz if this looks good as is I will look into shading Jersey.

Shading Jersey is becoming rather difficult (lots of dependencies including aop and dependency injection.  Splitting the DPRC server off into it's own location seems much simpler and less error prone, so I will spend some time on that instead.

So shading is not really an option for jersey.
I was able to split the DRPC server off into its own package with tests, but packaging it up with the assembly plugin is proving to be difficult.  If I upgrade to 3.0.0 of the assembly plugin I can use moduleSets and make it work, but I have to change {{storm-dist/binary}} to a multi-module build and move the code that actually packages the final release to a sub package under it.  Oh and we leak two empty/useless jar files into the release package that should be ignored.  moduleSets do not package pom modules.  They require an artifact that is a file.
I really dislike all of these options.  I see a few cleaner options, but they will require a lot more work.

Move to gradle
Change how we do shading so that the assembly subModule code works the way they intended it.
This would involve essentially having a separate package/build for what we want shaded (i.e. storm-shaded-deps.jar)

If someone has a cleaner solution I am happy to do it, but I think option 2 is the best so far, although I don't like it all that much.

One more option, still ugly, but with a lot less impact.  I can do something similar to Hadoop.  They use several different invocations of the maven assembly plugin into directories (predates moduleSets) and then have a separate script that produces the final release.

@ptgoetz I have updated the packaging to have a separate directory for the DRPC server dependencies.  I have run manual tests and everything works.  The big difference is that {{apache-storm-2.0.0-SNAPSHOT.tar.gz}} and {{apache-storm-2.0.0-SNAPSHOT.zip}} are now under {{./final-package/target/}} instead of {{./target}}  I will try and look to see if there are any docs that I need to update around this, but I wanted to give everyone a chance to look and give feedback on it.

@revans2 Okay. Let me review the packaging changes.

Okay, that last commit answered a lot of questions I had regarding packaging. ;)
+1 I was able to build a distribution, unpack it, and run the drpc service.

+1 from me. All manual tests are OK: build, dist packaging, unpacking, running drpc service.


Create Nat's Meetup Posts

Nice!  You're right about the character of events varying considerably.  I'd encourage you to check out hackathons, tech talks, and even tech conferences for a taste of other styles of event.  Then you can more easily pick which style you want.


⚠ Bofrost.at has degraded performance

In 51a3bb2, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1122 ms

Resolved: Bofrost.at performance has improved in 168e658 after 9 minutes.


Improve this page / Edit this page

Is there a possibility to add a button with a link to the corresponding GitHub file?  People could PR typos etc. This would make cooperation a lot easier!

This exists in the customized version of Academic which powers the documentation site.
If we move it into the core Academic, should it appear in the same place - next to the title?

Thank you for considering this enhancement! Yes, I have already seen the "Edit"-button in your customized version of Academic.
Where and how should the button appear? Hmmm, I would prefer that it would not so obtrusive. (In your page it looks not too obtrusive as you have still on the right sight the table of content.)
Maybe a small icon like in the bookdown/gitbook books e.g. here? Preferred places are top right or bottom right of the site (e.g. here or here). The last one (bottom) only if one could always see this button on the screen.
You are using in your customized version a link  in the menu to your GitHub repo. Would it be feasible to use this same link in the menu, but not to main page of the repo but to the specific page (whenever you are on a specific page)?
But concerning the design you are the expert! I would be happy to have this functionality wherever this button appears.
Another issue: Instead of 'Edit' I would prefer other text, e.g. "Improve this page". I am pretty new to this community of programmer and designer and 'Edit this page' was not really addressing me, as I thought I have to contribute with arguments and sophisticated content. "Improve this page" has a much smaller threshold as reporting typos is also included. Maybe you could make text and icon customizable?
But again: For me counts mainly the functionality. I am not an expert for UX.


Add support for configuration Modules

add support for configuration to be broken up into Modules and imported into other Modules, so that complex configuration doesn't have to be one big honking blob of JSON
thanks!

revoking Issue


bump @typescript-eslint/eslint-plugin and @typescript-eslint/parser 7.17.0 to 8.3.0

Type of Pull Request :

[x] New feature

Associated Issue :
N/A
Context :
bump @typescript-eslint/eslint-plugin and @typescript-eslint/parser 7.17.0 to 8.3.0
Checklist :

[x] I have verified that my changes work as expected
[x] I have updated the documentation if necessary
[x] I have thought to rebase my branch
[x] I have applied the correct label according to the type of PR (bug/feature/documentation)

Additional Information :
Currently there are some false positives with the react/prop-types rule since the typescript-eslint update to v8.
So this PR is on hold until eslint-plugin-react or typescript-eslint is updated.

Pending resolution of this issue https://github.com/jsx-eslint/eslint-plugin-react/issues/3796

Pending resolution of this issue jsx-eslint/eslint-plugin-react#3796

Fixed in v7.36.0 via https://github.com/jsx-eslint/eslint-plugin-react/pull/3629.


make apps errors about guppy

The error messages are as follows:
--- Building egg for guppy-0.1.10
running bdist_egg
running egg_info
writing guppy.egg-info/PKG-INFO
writing top-level names to guppy.egg-info/top_level.txt
writing dependency_links to guppy.egg-info/dependency_links.txt
reading manifest file 'guppy.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'guppy.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'guppy.sets.setsc' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/hue/hue-release-3.9.0/build/env/include/python2.7 -c src/sets/sets.c -o build/temp.linux-x86_64-2.7/src/sets/sets.o
gcc: ./specs: Is a directory
error: command 'gcc' failed with exit status 1
make[2]: *** [/soft/hue/hue-release-3.9.0/desktop/core/build/guppy-0.1.10/egg.stamp] Error 1
make[2]: Leaving directory /soft/hue/hue-release-3.9.0/desktop/core' make[1]: *** [.recursive-env-install/core] Error 2 make[1]: Leaving directory /soft/hue/hue-release-3.9.0/desktop'
make: *** [desktop] Error 2

hi!
on which system are you trying to build it? have you tried building master to see if you have the same problem?

I download the package from: https://github.com/cloudera/hue/releases/tag/release-3.9.0.
The working system is CentOS release 6.6.

try
yum install gcc

GCC had been installed, and the version is 4.4.7 20120313.

I met this problem before
error: command 'gcc' failed with exit status 1
I reinstall the development packages

Could you please show me more details about your steps?

you can try to reinstall the development packages

You means all of this listed in https://github.com/cloudera/hue#development-prerequisites:
Oracle's JDK (read more here)
ant
asciidoc
cyrus-sasl-devel
cyrus-sasl-gssapi
gcc
gcc-c++
krb5-devel
libtidy (for unit tests only)
libxml2-devel
libxslt-devel
make
mvn (from apache-maven package or maven3 tarball)
mysql
mysql-devel
openldap-devel
python-devel
sqlite-devel
openssl-devel (for version 7+)
gmp-devel

I have forgot which one
python 2.6
gcc 4.4.7
maven 3.0

Still not work!
Can anyone give some helps?
My system enviroments:
centos 6.6
python2.7.9
gcc4.4.7
maven 3.0.3
hue-3.9.0  https://github.com/cloudera/hue/releases/tag/release-3.9.0.

I'm not through compilation on centos6.5 before
Put the system into centos6.7 is useful

i tried on a freshly installed Centos 6.6 and it goes through without problems.
I think there's something wrong with your GCC actually, are you sure you don't have a specific GCC related configuration on your system? (ie. setting a GCC_EXEC_PREFIX in your env)

Finally solved with root privilege.


How to add/remove elements to a haphic plot?

Hello, @zengxiaofei
Thank you for developing this software.
I am new to Haphic and have some questions about the plot function.I ran the following command: haphic plot out_JBAT.assembly.agp HiC.filtered.bam --bin_size 500 --min_len 5 --normalization log10 --border_style outline &
The generated plot is attached.

I am wondering how to generate a plot with group information on the y-axis, similar to the example you provided.
Thank you for your help.

Hi @zhengyanstu,
You need to input out_JBAT.FINAL.agp instead of out_JBAT.assembly.agp. And I always recommend using KR normalization rather than log10.
Best regrads,
Xiaofei

Hi @zhengyanstu,
You need to input out_JBAT.FINAL.agp instead of out_JBAT.assembly.agp. And I always recommend using KR normalization rather than log10.
Best regrads, Xiaofei

Thanks for your reply.
I generated out_JBAT.hic and out_JBAT.assembly using 'bash juicebox.sh' in the 04_build directory. After export them to Juicebox, I found that the original assembly results were good, so I just chose the out_JBAT.assembly.agp. Do I need to modify the sequence names when using Juicebox to import a reviewed assembly file and then use Juicer to generate an agp file?(If I want to set the scaffold name)
I chose KR normalization at the beginning, but the background of the plot was too cluttered. Is there any way to solve this?

After export them to Juicebox, I found that the original assembly results were good, so I just chose the out_JBAT.assembly.agp.

If you want to visualize the original scaffolding result, you should choose scaffolds.raw.agp, not out_JBAT.assembly.agp.

Do I need to modify the sequence names when using Juicebox to import a reviewed assembly file and then use Juicer to generate an agp file.

You can modify the first column in scaffolds.raw.agp to change the scaffold names, or modify the texts in a PDF editor (e.g., Adobe Illustrator).

I chose KR normalization at the beginning, but the background of the plot was too cluttered.

It's a color range issue, which is controlled by two parameters, --vmax_coef and --manual_vmax. You can manually adjust them to achieve a better heatmap. Setting --manual_vmax 0.01 may be suitable for your case.


Does it support postgresql database backup?

Use this parameter.
DATABASE_URL: "postgresql://exampleuser:examplepasswd@db/postgres"

The vault can be stored to it. Using this approach you can create distributed vaultwarden.
So does this backup function support postgresql backup function?

@Seele0oO ,
I have researched and only need to modify a small amount of code to support PostgreSQL and MariaDB/MySQL .
But I'm not good with databases and don't know how to backup and restore PostgreSQL and MariaDB/MySQL data properly.
Another problem occurs in the restore phase, sqlite can be restored by just copying the db file to the folder, but other databases need to execute sql, this is also the aspect that bothers me.
If you can provide the shell command for PostgreSQL database backup and restore, I will finish the support for PostgreSQL as soon as possible. If you can also provide commands for MariaDB/MySQL, that would be great.

Thank you for your attention,I have done some shell scripts, but I am not very skilled, so I wrote some example, hope it is useful for you.
https://github.com/Seele0oO/vaultwarden-backup/commit/b9e1c2496522fb264497b9822d810b1649a8a2c9

by the way,It's not a good idea to use mysql, I think it's too heavy.
There is some example.
https://github.com/Seele0oO/vaultwarden-backup/commit/42272732db698716075e841ee96825d7b8f1f728
In my view,the MariaDB/MySQL is the same in commands.
So it's probably universal.

@Seele0oO ,
The PostgreSQL backend is now supported, try it on 1.16.0-beta.0.
Please let me know if you have any questions.
I will continue to add MySQL/MariaDB support.

thanks for your work.I will test it in few days later.Take care yourself and be well. It is the time to sleeping.Sent from my iPhoneOn 11 Dec 2022, at 23:34, ttionya @.***> wrote:
@Seele0oO ,
The PostgreSQL backend is now supported, try it on 1.16.0-beta.0.
Please let me know if you have any questions.
I will continue to add MySQL/MariaDB support.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

1.16.0-beta.1 is support Mysql(MariaDB) and PostgreSQL bankend.

1.16.0-beta.2 is support PostgreSQL 15. And earlier beta versions are no longer available.

I'm wondering if I'm missing some environment variables that specify the backup method? In my tests, the data in the datagrip-connected postgresql database changed as I made changes, but the backup program still just backed up those files.

After I added some attachments to my test account, these two folders remained empty.

Please provide environment variables.

vaultwarden:
  environment:
     SIGNUPS_ALLOWED: 'true'
     DATABASE_URL: 'postgresql://postgres:example@db/postgres'

backup:
    environment:
      CRON: '*/5 * * * *'

  db:
    image: postgres
    restart: always
    environment:
      POSTGRES_PASSWORD: example

Sorry, please check the document.

@Seele0oO ,
Hello, is the postgresql database backup working?

It works fine on Debain 11.
I can't test it with mysql because of the preformance of my password-server.

Released stable version v1.16.0.


Getting the accounts with the most friend followers (followers that I follow)

Hello, I'd like to get a list of the accounts that have the most followers I know. For example, if Barack Obama was followed by 100% of the people I follow, he'd rank first in such list.
How can I do that with tweepy?

I think this option can help you for a lot of your problem. The rest will be a mining operation according to your strategy.
https://github.com/ducu/twitter-most-followed

Thank you. Actually I already did it here:
Github.com/Mohamed3on/TwitterNetwork
The only problem is the API rate limit, which is unfortunate.


Ability to load ClioInfra datasets from Dataverse

Dependency on #3 and #4 as this is a special instance of both: clio data is paneled data expressed as Spreadsheets.

This was already implemented since a9f049c7175cd2f8c1e77f9121f035000a500634 now part of CLARIAH/wp4-requirements#7


ResNeSt Urls for Detectron Compatible Backbone File

Use this as a tracker for model urls, will release the Detectron experiments later:
https://hangzh.s3.amazonaws.com/encoding/models/resnest50_detectron-b22b3cfa.pth
https://hangzh.s3.amazonaws.com/encoding/models/resnest101_detectron-5667c874.pth
https://hangzh.s3.amazonaws.com/encoding/models/resnest200_detectron-b13b91ae.pth
https://hangzh.s3.amazonaws.com/encoding/models/resnest269_detectron-8e11ab71.pth

detectron2?  is it possible to train your detection models based on mmdetection?

detectron2? is it possible to train your detection models based on mmdetection?

@chongruo @Jerryzcn
It is possible by making some slightly changes to the mmdetection code. We are also planning to send a PR to mmdetection for training with ResNeSt backbone.

great, look forward to it

To be compatible with detectron2, the names of pre-trained weights will be changed accordingly.
new_name = 'backbone.bottom_up.' + old_name

To be compatible with detectron2, the names of pre-trained weights will be changed accordingly.
new_name = 'backbone.bottom_up.' + old_name

https://hangzh.s3-us-west-1.amazonaws.com/encoding/models/resnest50_detectron-255b5649.pth
https://hangzh.s3-us-west-1.amazonaws.com/encoding/models/resnest101_detectron-486f69a8.pth
https://hangzh.s3-us-west-1.amazonaws.com/encoding/models/resnest200_detectron-02644020.pth
https://hangzh.s3-us-west-1.amazonaws.com/encoding/models/resnest269_detectron-69df4066.pth

tible with detectron2, the names of pre-trained weights will be changed according
Is there a pre-trained model compatible with the maskrcnn-benchmark code base?

tible with detectron2, the names of pre-trained weights will be changed according
Is there a pre-trained model compatible with the maskrcnn-benchmark code base?

@chongruo is working very hard in cleaning the code. We are planning to release it early next week.

All the detectron models are released.


Add includeln argument which includes method line number to frame

Connected with: https://github.com/Granulate/gprofiler/issues/799

GetLineNumberTable return line_number that is the first line in a method block f.e.:
For fibonacci

it returns line number 9. Is this ok, or should we change it to line_number - 1?

GetLineNumberTable return line_number that is the first line in a method block f.e.: For fibonacci  it returns line number 9. Is this ok, or should we change it to line_number - 1?

Yes, that's good. The definittion is - the line of code that actually executes.


Directory name gets duplicated and combined

When trying to use the templates, it takes the directory of the project and appends it onto the directory of the project creating an invalid path.
For example lets say I have a project in the C:\ root. If I then try and use my template in the C:\ root, I will get this error:
Couldn't determine if the provided path is a directory: 'c:\c:\template'
So it like doubles the root directory. I attached a screenshot of the error I received:

@NeptuniusDexter Thank you for reporting. Can you please share your template configuration? I will take a look.

This is my cfft.config.json. It is the default one that gets generated. The templates I am using are also the default which get generated.
cfft.config.json
{   "defaultTemplateName": "component",   "templates": [     {       "name": "component",       "options": {         "templatePath": "/.cfft.templates/component",         "dirPath": "./{fileName}",         "fileNameTextToBeReplaced": "component",         "searchAndReplace": [           {             "search": "FileName",             "replace": "{fileName}"           }         ]       }     }   ] }
.cfft.templates
component
component.module.scss
.root {   display: block; }
component.tsx
import { FC } from "react";
import styles from "./FileName.module.scss";

const FileName: FC = () => {
  return
FileName
;
};

export default FileName;

It seems to be working now. How would I configure it not to generate a
folder each time? I made my own template and put it directly in the root of
.cfft.templates (not under a component file as with the default templates).
I also then changed the "templatePath" to be equal to:  "templatePath":
"./.cfft.templates", yet when I generate a file from the template it still
gets put inside of a folder.
On Wed, 11 Sept 2024 at 21:42, dus4nstojanovic @.***>
wrote:

@NeptuniusDexter https://github.com/NeptuniusDexter I identified the
issue.
The extension works, but the default .cfft.config.json file and
documentation are wrong for Windows users.
Please update the templatePath in .cfft.config.json to include the ./
before adding the rest of the path.
Here is the updated .cfft.config.json:
{
"defaultTemplateName": "component",
"templates": [
{
"name": "component",
"options": {
"templatePath": "./.cfft.templates/component",
"dirPath": "./{fileName}",
"fileNameTextToBeReplaced": "component",
"searchAndReplace": [
{
"search": "FileName",
"replace": "{fileName}"
}
]
}
}
]
}
The new, updated default configuration file and updated documentation will
be available soon, in the next version.
—
Reply to this email directly, view it on GitHub
https://github.com/dus4nstojanovic/create-files-from-template-vscode/issues/1#issuecomment-2344564224,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUT5VKKUA4I6KZUJSFWAR73ZWCMKNAVCNFSM6AAAAABN6M7BEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBUGU3DIMRSGQ
.
You are receiving this because you were mentioned.Message ID:
<dus4nstojanovic/create-files-from-template-vscode/issues/1/2344564224@
github.com>

Actually, it doesn't work correctly if you try to create files in any inner folder.
It turned out that the logic for generating paths is wrong for all Windows users.
I plan to invest some time to fix it this weekend.
I will let you know and help you with the configuration once I finish.
Thank you for understanding 🙂

Thanks, appreciate it
On Thu, 12 Sept 2024 at 16:14, dus4nstojanovic @.***>
wrote:

Actually, it doesn't work correctly if you try to create files in any
inner folder.
It turned out that the logic for generating paths is wrong for all Windows
users.
I plan to invest some time to fix it this weekend.
I will let you know and help you with the configuration once I finish.
Thank you for understanding 🙂
—
Reply to this email directly, view it on GitHub
https://github.com/dus4nstojanovic/create-files-from-template-vscode/issues/1#issuecomment-2346423678,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUT5VKKYVXH36F6W2YW7ME3ZWGOV3AVCNFSM6AAAAABN6M7BEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBWGQZDGNRXHA
.
You are receiving this because you were mentioned.Message ID:
<dus4nstojanovic/create-files-from-template-vscode/issues/1/2346423678@
github.com>

@NeptuniusDexter The issue has been fixed in the latest extension version: 1.6.6. Please update the extension and try it out.
Regarding your question on how to set it up to generate a file without a folder, check this link: https://marketplace.visualstudio.com/items?itemName=DusanStojanovic.cfft#creating-a-single-file
Example:

Create a single template file: /.cfft.templates/yourFile.ts.
Add the template configuration in the templates array in the .cfft.confing.json:

{
  "name": "your-template-name",
  "options": {
    "templatePath": "/.cfft.templates/yourFile.ts",
    "dirPath": ".",
    "fileNameTextToBeReplaced": "yourFile",
    "shouldReplaceFileContent": false
}

templatePath: "/.cfft.templates/yourFile.ts" leads to the template file
dirPath: "." tells the app that you want to create a file in the selected folder
fileNameTextToBeReplaced: "yourFile" - you want to replace the yourFile part of the template file name with the file name you provide,
shouldReplaceFileContent - means that the file content will stay unchanged.

However, if you want to also replace some parts of the file content, you can add the searchAndReplace  or textToBeReplaced and replaceTextWith fields.

Please let me know if everything worked as expected so that I can close the issue 🙂

Thank you,
It is working now. Appreciate the assistance.
On Sat, 14 Sept 2024 at 18:46, dus4nstojanovic @.***>
wrote:

@NeptuniusDexter https://github.com/NeptuniusDexter The issue has been
fixed in the latest extension version: 1.6.6. Please update the extension
and try it out.
Regarding your question on how to set it up to generate a file without a
folder, check this link:
https://marketplace.visualstudio.com/items?itemName=DusanStojanovic.cfft#creating-a-single-file
Example:

Create a single template file: /.cfft.templates/yourFile.ts.
Add the template configuration in the templates array in the
.cfft.confing.json:

{
"name": "your-template-name",
"options": {
"templatePath": "/.cfft.templates/yourFile.ts",
"dirPath": ".",
"fileNameTextToBeReplaced": "yourFile",
"shouldReplaceFileContent": false
}

templatePath: "/.cfft.templates/yourFile.ts" leads to the template
file
dirPath: "." tells the app that you want to create a file in the
selected folder
fileNameTextToBeReplaced: "yourFile" - you want to replace the
yourFile part of the template file name with the file name you provide,
shouldReplaceFileContent - means that the file content will stay
unchanged.

However, if you want to also replace some parts of the file content, you
can add the searchAndReplace or textToBeReplaced and replaceTextWith
fields.
Please let me know if everything worked as expected so that I can close
the issue 🙂
—
Reply to this email directly, view it on GitHub
https://github.com/dus4nstojanovic/create-files-from-template-vscode/issues/1#issuecomment-2351056510,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUT5VKMYQW3GNJB3MG6WC3DZWRR6TAVCNFSM6AAAAABN6M7BEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJRGA2TMNJRGA
.
You are receiving this because you were mentioned.Message ID:
<dus4nstojanovic/create-files-from-template-vscode/issues/1/2351056510@
github.com>


Refactored notification api design

This PR is depended by RackHD/on-http#410
Jenkins: depends on https://github.com/RackHD/on-tasks/pull/311

Jenkins: test this please

:+1:

Jenkins: test this please

:+1:


jltest: Consider removing option for setting fail fast from the JLTEST_FAIL_FAST environment variable.

Decided to remove support for JLTEST_FAIL_FAST environment variable because it adds unnecessary complexity to the usage of jltest.


Problems with "public_content" scope

Hi, I'm trying to use the users->find() method to look up a username. I have a sandbox app and a
access token with the public_content permission.
"Self" works, but no other usernames.
Expected Behavior
When I try to lookup "instagram" I expect to get a result.
Current Behavior
I get null back.
Steps to Reproduce (for bugs)
My testing code:
$instagram = new Client($config->get('instagram.key'), $config->get('instagram.secret'), $this->token, '');
$response = $instagram->users()->find($username);

Your Environment

Environment name and version: PHP 5.6 on Apache/2.2.31 (Unix)
Operating System and version: OS X El Capitan

Looks like you didn't set the correct scope when you requested the access token.
You'll have to reauthorize the user while setting the additional scopes (using getLoginUrl())

Thank you for your quick response.
I have tested the getLoginUrl() and revoked the application to authenticate again. And I'm still seeing the same problem. Under my account the app is listed with the correct permissions.
The app is still in Sandbox-mode if that can affect this somehow?

How did you request the extra scopes? Could you show me a code example? Thanks

I generated a link manually: https://api.instagram.com/oauth/authorize/?client_id=&redirect_uri=&response_type=code&scope=public_content
But I found on StackOverflow that while the app is in sandbox-mode you can only fetch data for approved users: http://stackoverflow.com/questions/33886881/instagram-api-returns-empty-data-for-sandbox-users-when-trying-to-access-liked-c
So when I added another user I could look it up.

Ahh right, good to close the issue then?

Yes, no problems with your library :)


Update cni-plugins to v1.5.0

What type of PR is this?
/kind dependency-change
What this PR does / why we need it:
Update CNI plugins to the latest release.
Which issue(s) this PR fixes:

None
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?

None

@cri-o/cri-o-maintainers PTAL

/lgtm


Unable to create a network server

I believe this bug is probably a misconfiguration I made somewhere, but I can't find a way to fix it.
On the network servers screen, I add a network-server name and a network-server server (localhost:8000). All the other fields are blank. When I click "submit", I receive the error "Error context deadline exceeded (code: 2)", as shown next:

I'm running lora-app-server version 0.17.1.
Everything else is working fine since I can connect an end device to my gateway and see its data on a TTN app server.
Regards.

The forum is a better place for support questions: https://forum.loraserver.io/t/can-not-register-network-server/407.

Thanks.
Sorry for posting on the wrong place.
On Thu, Feb 8, 2018 at 8:19 AM, Orne Brocaar<EMAIL_ADDRESS>wrote:

Closed #214 https://github.com/brocaar/lora-app-server/issues/214.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/brocaar/lora-app-server/issues/214#event-1464243365,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMHAVqx83694R6-ZVE93ajtsW98xQE9Sks5tSsozgaJpZM4R-Gs5
.


Detect USB-C Alt mode entry via USB Billboard device

The problem you're addressing (if any)
USB-C tests are hard, since so many signals and alt modes are supported.
USB Billboard device class is a simple USB 1.1 device that is created on Alt mode entry faliure. Use that to make testing easier and more reliable.
Describe the solution you'd like
Check the billboard device for any errors, if no errors are foumd then we probably are in the right alt mode, using the right cable, in the right port
Where is the value to a user, and who might that user be?
Testing is more reliable
Describe alternatives you've considered
No response
Additional context
https://community.infineon.com/t5/Knowledge-Base-Articles/Billboard-device-USB-Type-C-Need-and-implementation/ta-p/355713
https://www.usb.org/document-library/billboard-device-class-spec-revision-122-and-adopters-agreement
I guess it depends on the vendor actually implementing the billboard class correctly

@BeataZdunczyk I cannot comment on this much, need @mkopec to provide more context and next steps here.

I wanted to make use of USB billboard device for detecting usb-c errors, but the docks we test don't implement it correctly (they always return the same status, regardless if everything is working correctly or not). Closing as it doesn't really make sense to pursue this.


Fixing #85

Adding polyfill for Node 8/9
Adding Node 8 to Travis

@atomicpages some problems with node 10, also node 12 need to be tested too

Yep, got a little caught up. Fixing Node 10, 11, 12 now

Thanks, had published it.


Support for ContractResolver when Deserializing

I am trying to find a way to support contract first developer and Neo4j.  I was curious if anyone has given any thought to supporting the ContractResolver functionality that is part of Json.NET?

I haven’t done any thinking around this.
--
Tatham
From: Shawn<EMAIL_ADDRESS>Sent: Wednesday, 21 January 2015 14:22
To: Readify/Neo4jClient
Subject: [Neo4jClient] Support for ContractResolver when Deserializing (#82)
I am trying to find a way to support contract first developer and Neo4j. I was curious if anyone has given any thought to supporting the ContractResolver functionality that is part of Json.NET?
—
Reply to this email directly or view it on GitHubhttps://github.com/Readify/Neo4jClient/issues/82.

Closing this as it's way stale.
Closest to this would be something like Neo4jClient.Extension


Utils library updates DOC-211

Rewrite of the Utilities doc.
Add new page for Paymaster utilities.

Please check @AnastasiiaVashchuk. Thank you :)

General comment:

In all places  would be nice to have Inputs and Outputs (from the review only 1 function with Inputs was noticed)

Some of the outputs are described in the function description. Others, I will add.


Consider automatically hiding protocol methods when there is a convenience overload

The recommendation from .NET architects is to hide protocol methods via EBN if there is a corresponding convenience method. Ideally, this would be enforced by the generator so that devs don't have to remember to do this for each library.

Related docs issue - https://github.com/Azure/azure-sdk-for-net/issues/43627

Since we have different method patterns on non-azure libraries, does this also apply to non-azure libraries?
Non-azure libraries do not have cancellationToken in their convenience methods, and it is required to use the corresponding convenience method when they need cancellation context in their invocation, would it be appropriate to hide the protocol methods there?

@JoshLove-msft, as you mentioned this idea is coming from .NET architects, do you have any meeting notes that you could share?
I would like to know more context about this decision.
cc @m-nash

@JoshLove-msft, as you mentioned this idea is coming from .NET architects, do you have any meeting notes that you could share?
I would like to know more context about this decision.

This was from an informal discussion with @KrzysztofCwalina and @tg-msft regarding the new Event Grid library.

The context is that we keep seeing in UX studies that once convenience overloads are added, users have a hard time deciding which overload to use.


LLVMPasses: addjust for SVN r356783

SVN r356783 added a new parameter to modRefInfo for caching the results.
Update the API usage.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

CC: @bob-wilson

@swift-ci please test

Oh, thanks. I was just about to look into that one.

Build failed
Swift Test Linux Platform
Git Sha - 1c09e2479df94ea6a26de077744493f67a66f205

Build failed
Swift Test OS X Platform
Git Sha - 1c09e2479df94ea6a26de077744493f67a66f205


⚠ Bofrost.be has degraded performance

In 149af6d, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1251 ms

Resolved: Bofrost.be performance has improved in d1ab83a after 8 minutes.


test: create scripts for running light-push/filter and measuring ratio of messages sent and received

This is a bug report/feature request/support request/change request
Problem

Current efforts of testing long-term usage of js-waku required manually running an example and observing it. We should move towards a more automated solution.
Proposed Solutions

Script that once loaded in an html page (or headless browser) begins sending monotonically increasing messages over light push. It should clearly display/report which messages failed to send
a. parametrize period between messages
b. parameterize whether to use default bootstrapping or specific nodes/fleets
c. parameterize content topic/shard info
Script that once loaded in an html page (or headless browser) listens to message sent from 1. It should clearly display/report which message were missed.

Notes

Refer to browser testing package

Sounds good. I am guessing we should aim to use different nodes for filter and light push?
Caveat is if the node is offline, then it may not be straight forward to detect, I guess that light push would fail which will help detect it?
We need to be sure we cater for scenarios with total loss of connections and understand how we measure those effectively.

The scope of this work has changed since I started and discussed more with others, I've captured it here: https://github.com/waku-org/lab.waku.org/issues/69

For now our strategy is to:

run pre-release https://github.com/waku-org/js-waku/actions/workflows/pre-release.yml;
run lab.waku.org/dogfooding;
check browser logs for errors / misbehaviors;
see telemetry and derive any insight;
share within the team;

This is absolutely necessary and assumption is that it is part of any change we do now.
cc @waku-org/js-waku @waku-org/js-waku-developers

As for making it part of automated CI we have to investigate how it can be incorporated into PR gates as there is a risk of making it too flaky.


Update python packages to use sparkmagic 0.12.9

This change updates the version of sparkmagic used in our packages. There are two reasons for this: (1) there have been a number of fixes since 0.12.6 that allow us to use the official package now, and (2) this new version resolves the dependency conflict with prompt-toolkit we've been seeing when using the azdata packages.
Another important thing to know about sparkmagic 0.12.9 is that the PySpark3 kernel has been removed. This is because Livy requires the user to configure their desired python version via an environment variable, rather than by using separate session kinds. See the pyspark entry in the docs here: https://livy.incubator.apache.org/docs/latest/rest-api.html
Fixes https://github.com/microsoft/azuredatastudio/issues/7014

@kevcunnane We do already handle that. Apparently if we can't find a given kernel, we fall back to one that has a similar name. PySpark3 starts with PySpark, so we fallback to that for example. See the relevant code here: https://github.com/microsoft/azuredatastudio/blob/master/src/sql/workbench/parts/notebook/browser/models/notebookModel.ts#L763
@chlafreniere and I can't think of any issues that line would cause, especially since it only affects what kernel gets selected by default. If a user hits that startsWith condition, then they were trying to use a kernel we don't support anyway.

THANK YOU, this made my day