fix: extra closing parenthesis in treeview component - issue-1292

Description

Removed extra closing parenthesis.
How and where has this been tested?

How this was tested:
Browser(s) and OS(s) this was tested with:

Screenshots

To-do list

[x] If my change impacts other components, I have tested to make sure they don't break.
[x] If my change impacts documentation, I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.

[x] This pull request is ready to merge.

Looks good. Thanks for the fix.

Happy to help!
Keith Buchanan | Senior Software Developer, Customer Success & Enablement | Adobe, Digital Experience Business | p.<PHONE_NUMBER> c.<PHONE_NUMBER> |<EMAIL_ADDRESS>[signature_622238963]http://experienceleague.adobe.com/
From: Garth Braithwaite @.>
Date: Sunday, October 17, 2021 at 1:09 PM
To: adobe/spectrum-css @.>
Cc: Keith Buchanan @.>, Author @.>
Subject: Re: [adobe/spectrum-css] fix: extra closing parenthesis in treeview component - issue-1292 (PR #1295)
Looks good. Thanks for the fix.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadobe%2Fspectrum-css%2Fpull%2F1295%23issuecomment-945160648&data=04|01|kbuchana%40adobe.com|66ce22090be74eb5489408d99190d3d8|fa7b1b5a7b34438794aed2c178decee1|0|0|637700873514085213|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=Gf6Nfh6rstNMhDnoKyW52wVY78ae6yM8bh6tFHuW19o%3D&reserved=0, or unsubscribehttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAANO42CZFWLTCEQN3Y3R7S3UHL7LDANCNFSM5GFAXFMQ&data=04|01|kbuchana%40adobe.com|66ce22090be74eb5489408d99190d3d8|fa7b1b5a7b34438794aed2c178decee1|0|0|637700873514095207|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=SsiJC88ITGhvKFxZDdyyqcltkjevGvxZn8dnf0y3FX8%3D&reserved=0.
Triage notifications on the go with GitHub Mobile for iOShttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04|01|kbuchana%40adobe.com|66ce22090be74eb5489408d99190d3d8|fa7b1b5a7b34438794aed2c178decee1|0|0|637700873514095207|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=xBMRFDVt8e8BfNN4ou4QDVNIxSo9S1sNX6p0DMBUXeA%3D&reserved=0 or Androidhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04|01|kbuchana%40adobe.com|66ce22090be74eb5489408d99190d3d8|fa7b1b5a7b34438794aed2c178decee1|0|0|637700873514105200|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=q%2FUic%2F4Bp%2Bm8DfL1qy1sEjdyQiD4cWpFqr5ouUhmuMU%3D&reserved=0.


Did you have used TF1.x or TF2.x ??. This isn't mentioned inside requirements.txt

Did you have used TF1.x or TF2.x ??.
This isn't mentioned inside requirements.txt

Likely 1.8.0. From the readme:
# Install tensorflow1.8+,

Last version of tensorflow 1.x is 1.15. I'll also appreciate the correct version of tensorflow to install.

If you have trouble getting it running, you could use my docker environment: https://github.com/tom-doerr/TecoGAN

If you have trouble getting it running, you could use my docker environment: https://github.com/tom-doerr/TecoGAN

Thanks Tom. Got your docker file working. As a newbie, I couldn't have TecoGAN working with Tensorflow 2.3. Hope TecoGAN will work with latest lib/packages.


Run onnxruntime-directml in windows service

Hello, I'm try to integrate onnxruntime-directml C/C++ API with Windows service and it failed when CreateSession, I always get failed return:

It worked normally when I integrate it in application level, do you have any ideas on that?
I'm very appreciate with any comment on this.

Hmm, running inside a service a scenario we've tried, but I wouldn't be surprised if there were different permissions or different expectations running outside a user context. I don't believe DirectML has any user-specific logic that would cause issues, but possibly Direct3D or even the video driver might. Do you have a more complete call stack? (especially if you built ORT from master)


The position of the character in Graphics.DrawString is shifted

Environment
.NET Core 2.2 and
Libgdiplus built from source
Ubuntu 18.04 LTS
If the string "DrawString" is Linux, it goes down a little.
Source code for reproduction
            using (var fs = new FileStream("bitmap.png", FileMode.OpenOrCreate))
            using (var bmp = new Bitmap(120, 120))
            using (var g = Graphics.FromImage(bmp))
            {
                g.CompositingQuality = CompositingQuality.HighQuality;
                g.InterpolationMode = InterpolationMode.HighQualityBicubic;

                g.FillRectangle(Brushes.Salmon, 0, 0, 120, 120);

                var font = new Font("Noto Sans CJK JP", 12);

                g.DrawString("Draw String1", font, Brushes.Black, new PointF(0, 0));
                g.DrawString("Draw String2", font, Brushes.Black, new PointF(40, 40));
                g.DrawString("Draw String3", font, Brushes.Black, new PointF(80, 80));

                bmp.Save(fs, ImageFormat.Png);
            }

Results on Windows on the left and Linux on the right.

Is this issue fixed?
Btw, with your example code, this is what I see in macOS:

I have Noto Sans CJK JP font installed from https://github.com/Homebrew/homebrew-cask-fonts:
brew tap homebrew/cask-fonts # run this once

brew cask install font-noto-sans-cjk-jp

I'm sorry, I closed it by mistake.
Looks like it ’s a little off

@am11 Is the japanese text intentional or are you hitting https://github.com/dotnet/corefx/pull/42016?


Support binding to expandoObject

See issue #23 for context

Supported in next release as well as DynamicObject returning Keys as result of GetDynamicMemberNames


Site area  consumption chart aggregation should average at connector level before summing up at charging station level

Site area consumption chart was aggregating data on average value of charging station across multiple connectors instead of average value of connectors summed to charging station level per minute.

@RohanAntony Thanks for the fix but how can we test this?

@RohanAntony Thanks for the fix but how can we test this?

We need the output of one connector to be 0 and other to be value X over a given time period. Previously, we would average it to X/2 per minute at charger level but now its sums up the averages of each connector per minute. I tested it by running the simulator and seeing the values close to as expected. Alternate could be to replace existing values in the database with 0 for a consistent period of time and see if the connectors are summed to each charger instead of averaged.


$container must not be accessed

Hello,
First of all, thanks a lot for this awesome package which I was waiting for it a longtime :)
I've installed it and setup translatable trait only in Resource class and remove it from edit & create page,
Bu I'm getting this error when I try to enter other languages values :
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization

Hey,
I think i need a little bit more context. Can you provide some code?
Are you getting the error while typing or when you try to save.
Your resource looks like this?
https://gist.github.com/mvenghaus/5378b99212c44322e08dc333512dbd49

When typing,
And it doesn't save

@aeq-dev i could reproduce this and released a new version, i hope it will work for you like expected now

Hi,
It works now thanks, but there's a small issue regarding live and afterStateUpdated :/
Check code :
 TranslatableContainer::make(
      TextInput::make('name')
          ->required()
          ->unique(ignoreRecord: true)
          ->label(__('Name'))
          ->live(onBlur: true)
          ->afterStateUpdated(fn(Set $set, ?string $state) => $set('slug', Str::slug($state))),
  ),
  TextInput::make('slug'),

Slug doesn't changed.

Also if can show error message if we don't set other language values when the field is required :)

@aeq-dev
Since you are no longer on the same state path level and the path is build relative you have these options.
relative:
->afterStateUpdated(fn(Set $set, ?string $state) => $set('../slug', Str::slug($state))),

absolute:
->afterStateUpdated(fn(Set $set, ?string $state) => $set('data.slug', Str::slug($state), true)),

I will look into the error message issue as soon as possible.

@aeq-dev the additional languages are also triggering the field .. i've released a new version 3.0.2 where this is fixed

@aeq-dev
Since you are no longer on the same state path level and the path is build relative you have these options.
relative:
->afterStateUpdated(fn(Set $set, ?string $state) => $set('../slug', Str::slug($state))),

absolute:
->afterStateUpdated(fn(Set $set, ?string $state) => $set('data.slug', Str::slug($state), true)),

I will look into the error message issue as soon as possible.

I tried it but doesn't change the slug :/

strange .. i used your example and it works!?
                TranslatableContainer::make(
                    TextInput::make('title')
                        ->required()
                        ->unique(ignoreRecord: true)
                        ->label(__('Name'))
                        ->live(onBlur: true)
                        ->afterStateUpdated(fn(Set $set, ?string $state) => $set('../slug', Str::slug($state))),
                ),
                TextInput::make('slug'),

Oops ! my bad :D I didn't see the points here  '../slug'
It's my first time to see this strange field code :)))
Thanks

@aeq-dev
Hey,
thanks for your valuable feedback!
I released a new version again, with a big update on validation. Would appreciate your feedback!

Thanks for enhancement :)

Validation error still doesn't appear
See attached, I cannot hide languages list

the standard validation, e.g. for required is handled by the browser. So it should look like this

i build this behavior on purpose because without filling these fields you are not able to save.
I added this also to the documention: https://github.com/mvenghaus/filament-plugin-translatable-inline

I mean I cannot hide the languages inputs again
For validation error, you may just show the languages inputs if it's not open yet

you can hide the inputs .. but only if the values are valid


Allow native repl to use wrapped vscode command

Native REPL currently directly calls VS Code API such as window.showNotebookDocument.
We should put wrap these methods such as in src/client/common/vscodeApis/windowApis.ts
so that more tests can be easily created.

From feedback https://github.com/microsoft/vscode-python/pull/24148#discussion_r1847739813
also many instances where I can refactor and avoid using workspace directly from VS Code.


Graphics display incorrectly after power cycle

After power cycling the board, numerous artifacts are visible on screen.
I don't see these when using SW4STM32, so something is different in the way Atollic initializes the hardware.
You won't see this behavior if your board was previously running a working program (i.e. the sw4stm32 project) and was not power cycled in between.

It's really strange. I have a few question:

What if you reset the board with the Reset button?
What if you add some delay at the beginning to be sure the display has woken up?
Will the artifacts disappear later as you use the UI?
Can you send a screenshot?

What if you reset the board with the Reset button?

It will still work. It requires a complete power cycle (unplugging and plugging the board back in) to break.

Will the artifacts disappear later as you use the UI?

No, they are persistent.

What if you add some delay at the beginning to be sure the display has woken up?

It doesn't solve the issue.
I found that replacing the SystemClock_Config function with the one from the SW4STM32 project seemed to prevent the issue, which means it must be related to the clocking in the Atollic version.

Can you send a screenshot?

It's a bit difficult for me to get one. Can you try running the Atollic project (master branch should have the issue)?

I found that replacing the SystemClock_Config function with the one from the SW4STM32 project seemed to prevent the issue, which means it must be related to the clocking in the Atollic version.

Maybe the MCU is overclocked?

It's a bit difficult for me to get one. Can you try running the Atollic project (master branch should have the issue)?

Unfortunately, I don't have that board...

Maybe the MCU is overclocked?

Quite possible. I'll investigate it soon.

I compared the two SystemClock_Config functions and didn't see a major difference between them.
Since both projects are targetting exactly the same configuration and board I just replaced the Atollic clock configuration with the SW4STM32 one.
That seems to have solved the problem.

It should be fine for now, however, if someone uses CubeMX and re-generates   the project, the modification will be overwritten.


Add support for dependsOn parameter

I added support for the dependsOn parameter. It seems to be relatively new.

@pydo please rebase

I addressed the comments.

FYI: Unfortunately, Terraform 0.12 has declared depends_on a reserved variable when used on a module, so this change prevents usage in 0.12. I may soon have a pull to address this as I am working to use this in 0.12 now.

Maybe we can camelCase depends_on ? The variable name formatting won't be consistent but at leave it'll work.


Update README.md with deprecation alert

Added deprecation alert in an attempt to avoid new advertisers to use this SDK (see GOS-8499)

It could be worth also archiving this repo


Update to golang 1.12.8

Signed-off-by: Justin Terry (VM<EMAIL_ADDRESS>

Related: https://github.com/containerd/containerd/pull/3531

Let me see if AppVeyor supports it.


Light2D rendering inconsistent with multiple objects in GLES3 in Godot 3.3

I did not see this issue specifically listed elsewhere.
Godot version:
3.3
OS/device including version:
Windows 10, GLES3, NVIDIA GEFORCE GTX 1660 ti, driver 442.3
Issue description:
When using GLES3 rendering, objects interacting with light2d start to behave differently when multiple objects on screen are also interacting with the light. When you add objects, others get dim. Moving the objects around can sometimes change what dims. Overlapping objects will cause some dim ones to light up.
This does not appear to happen in GLES2.
Steps to reproduce:

Create a 2D scene with GLES3
Add light2d
Add a sprite with normal map
Duplicate the sprite node several times
Move the objects around, overlapping them at times, and watch how the light changes on the objects.

Minimal reproduction project:
2D_Light_Problem.zip
https://user-images.githubusercontent.com/229208/116967145-aab8e480-ac7f-11eb-90c9-c174683bfdc3.mp4

This appears already fixed since 3.3 stable. It occurs in 3.3 stable for me but not in the latest build. Not sure which PR fixed it.
We could leave this open for reference possibly.

Not sure which PR fixed it.

@lawnjelly Probably #48151?

Yup could be, I made 2 or 3 fixes since stable, no need to spend time tracking it down as long as it is fixed I think. :+1:

3.3.1 RC 1 is published and includes a fix for this issue, so closing.


Added Recoil DevTools setup working

This solves issue https://github.com/ulises-jeremias/recoil-devtools/issues/5.

Added RecoilDevtools component to have everything in one place.
Added Log Monitor and Dock to have the possibility to hide the devtools.
Added logger to have pretty logs on each transaction.

NOTE: This is a really good project! I'll love to contribute in the POC you are creating, so let me know if you have any feature request for the DevTools or anything I can do @Vadorequest ! I'll being adding new interesting features and creating new PRs adding those to your project, so you don't have to worry about it 👌🏻
Quick Demo

This is a quick demo running locally

@Vadorequest  You can see the example running at https://poc-nextjs-rea-git-fork-ulises-jeremias-main-ambroise-5619da.vercel.app
in which you can use

ctrl+h to toggle visibility of the dock monitor
ctrl-q to change position of the dock
ctrl-m to change active monitor in the dock (not useful for now since there is only on Log Monitor in the Dock Monitor)

@Vadorequest I did some changes to fix the syntax issue of export * from "..." that you noticed. Regarding the window issue you mentioned, the only thing I did different maybe is using your component DisplayOnBrowserMount to wrap the devtools, so then it works on SSR.


Monitoring: adds podmonitor and prometheusrule for prometheus-operator enabled clusters

Hi,
I added a podmonitor for prometheus to scrape the metrics port of the postgresql pods.
Also adds an prometheusrule example to enable alerts with prometheus/alertmanager.
Regards, Daniel

Hello CrunchyData @benjaminjb  - why is there no reaction on such an PR ?
This is really usefull PR.
(Myself i do not like the values.yaml structure but @dgo19 just follow the structure that already exists.)


Provide pydocstyle convention setting through the CLI

Hi,
I would like to set the pydocstyle convention to "google", but I struggle to pass this setting to the CLI.
Is it only possible to change this setting in the toml config?
Thanks

Yeah, it's only possible to set via the TOML file right now. We've avoided exposing every parameter to the CLI to keep the interface lean. In the future, we'll likely implement a generic mechanism for setting any argument (it's discussed a bit here: https://github.com/astral-sh/ruff/issues/5102). Sorry for the inconvenience.


feat: Add support of on premise Sentry

Example query results

Results
Add example SQL query results here (please include the input queries as well)

Welcome to Steampipe @beudbeud and thank you so much for the contribution 👍.
A few questions before we merge this PR:

Do all the tables work with the base_url argument set in the config file?
Is base_url an optional argument? What happens when all the config arguments are defined?

Welcome to Steampipe @beudbeud and thank you so much for the contribution 👍.
A few questions before we merge this PR:

Do all the tables work with the base_url argument set in the config file?
Is base_url an optional argument? What happens when all the config arguments are defined?

Yes every table works with baseurl, before push my MR i tried baseurl and auth_token and is still works

@beudbeud Thanks for making the changes so quickly!
I think the error message is a little out of place, I've added a suggestion.
Also, can you please verify that the plugin works OK if base_url is not set, e.g., # base_url = "https://sentry.io" in your sentry.spc file? Thanks!

I tried to set nothing and the url is setting automatically to sentry.io/api

Thanks @beudbeud for the new feature!


docs: more documentation

Write a more comprehensive documentation on:

how to use them
what they can do
what they can't do

Added a wiki here.


tracetools_analysis: 2.0.3-3 in 'rolling/distribution.yaml' [bloom]

Increasing version of package(s) in repository tracetools_analysis to 2.0.3-3:

upstream repository: https://gitlab.com/ros-tracing/tracetools_analysis.git
release repository: https://gitlab.com/ros-tracing/tracetools_analysis-release.git
distro file: rolling/distribution.yaml
bloom version: 0.10.6
previous version for package: 2.0.1-1

See https://github.com/ros/rosdistro/pull/29155#issuecomment-820630919


Street Sign Downloads to the Root Directory

For some reason the Street Sign downloads to the Root Directory. Probably should fix this.

[x] Change the download location of the Street Sign back to phase_4/maps

Issue should be fixed again.


hope nuxt3 support webpack loader

Describe the feature
hope nuxt3 support webpack loader
Additional information

[ ] Would you be willing to help implement this feature?
[ ] Could this feature be implemented as a module?

Final checks

[X] Read the contribution guide.
[X] Check existing discussions and issues.

Yes, there's a webpack builder. Install it (@nuxt/webpack-builder) and enable it by setting builder: 'webpack' in your Nuxt config.


just made a new animation called stop-rain

Awesome, thanks @aditya1rawat! I'll take a look at this soon :)

Awesome Thanks!

Hey @aditya1rawat, did you build this in HTML5 Canvas or something called Sketch?
All of our animations use HTML5 Canvas so it's easier to integrate into certain containers, making it easier to copy-paste code and let each animations stay within it's own container.

Yeah I used Sketch. If you need me to change it lmk.

Yeah, if you could try to change it to HTML5 Canvas, just because that's what's most compatible with Ano.js. Thanks!


TypeError: unhashable type: 'JaxprTracer'

Hi,
I'm trying to build a fast Metropolis-Hastings sampler using JAX (see #575). I've made some small changes since #575, namely moving random number generations out of the loops, and pre-allocating arrays; this reduced compilation times. However, when I tried to make the generated number of samples a parameter that is passed to the sampling function, I got the following error:
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-36-c5be84a137ef> in <module>()
      1 key = random.PRNGKey(1)
      2 n_samps = 10
----> 3 sample(key,n_samps,N)

~/jax/jax/api.py in f_jitted(*args, **kwargs)
    105     _check_args(jaxtupletree_args)
    106     jaxtree_fun, out_tree = pytree_fun_to_jaxtupletree_fun(f, in_trees)
--> 107     jaxtupletree_out = xla.xla_call(jaxtree_fun, *jaxtupletree_args)
    108     return build_tree(out_tree(), jaxtupletree_out)
    109

~/jax/jax/core.py in call_bind(primitive, f, *args, **kwargs)
    543   if top_trace is None:
    544     with new_sublevel():
--> 545       ans = primitive.impl(f, *args, **kwargs)
    546   else:
    547     tracers = map(top_trace.full_raise, args)

~/jax/jax/interpreters/xla.py in xla_call_impl(fun, *args)
    445   fun, out_tree = flatten_fun(fun, in_trees)
    446
--> 447   compiled_fun = xla_callable(fun, *map(abstractify, flat_args))
    448   try:
    449     flat_ans = compiled_fun(*flat_args)

~/jax/jax/linear_util.py in memoized_fun(f, *args)
    206       if len(cache) > max_size:
    207         cache.popitem(last=False)
--> 208       ans = call(f, *args)
    209       cache[key] = (ans, f)
    210     return ans

~/jax/jax/interpreters/xla.py in xla_callable(fun, *abstract_args)
    464   pvals = [pe.PartialVal((aval, core.unit)) for aval in abstract_args]
    465   with core.new_master(pe.JaxprTrace, True) as master:
--> 466     jaxpr, (pval, consts, env) = pe.trace_to_subjaxpr(fun, master).call_wrapped(pvals)
    467     assert not env  # no subtraces here (though cond might eventually need them)
    468     compiled, result_shape = compile_jaxpr(jaxpr, consts, *abstract_args)

~/jax/jax/linear_util.py in call_wrapped(self, *args)
    145
    146     del gen
--> 147     ans = self.f(*args, **self.kwargs)
    148     del args
    149     while stack:

<ipython-input-35-c0fcf528e830> in sample(key, n_samps, N)
     23 @jit
     24 def sample(key,n_samps,N):
---> 25     state = random.randint(key,minval=0,maxval=2, shape=(N,))
     26     unifs = random.uniform(key, shape=(n_samps*N,))
     27

~/jax/jax/api.py in f_jitted(*args, **kwargs)
    105     _check_args(jaxtupletree_args)
    106     jaxtree_fun, out_tree = pytree_fun_to_jaxtupletree_fun(f, in_trees)
--> 107     jaxtupletree_out = xla.xla_call(jaxtree_fun, *jaxtupletree_args)
    108     return build_tree(out_tree(), jaxtupletree_out)
    109

~/jax/jax/core.py in call_bind(primitive, f, *args, **kwargs)
    546   else:
    547     tracers = map(top_trace.full_raise, args)
--> 548     ans = full_lower(top_trace.process_call(primitive, f, tracers, kwargs))
    549   return apply_todos(env_trace_todo(), ans)
    550

~/jax/jax/interpreters/partial_eval.py in process_call(self, call_primitive, f, tracers, params)
     83     in_pvs, in_consts = unzip2([t.pval for t in tracers])
     84     fun, aux = partial_eval(f, self, in_pvs)
---> 85     out_pv_const, consts = call_primitive.bind(fun, *in_consts, **params)
     86     out_pv, jaxpr, env = aux()
     87     const_tracers = map(self.new_instantiated_const, consts)

~/jax/jax/core.py in call_bind(primitive, f, *args, **kwargs)
    543   if top_trace is None:
    544     with new_sublevel():
--> 545       ans = primitive.impl(f, *args, **kwargs)
    546   else:
    547     tracers = map(top_trace.full_raise, args)

~/jax/jax/interpreters/xla.py in xla_call_impl(fun, *args)
    445   fun, out_tree = flatten_fun(fun, in_trees)
    446
--> 447   compiled_fun = xla_callable(fun, *map(abstractify, flat_args))
    448   try:
    449     flat_ans = compiled_fun(*flat_args)

~/jax/jax/linear_util.py in memoized_fun(f, *args)
    199   def memoized_fun(f, *args):
    200     key = (f, args)
--> 201     if key in cache:
    202       ans, f_prev = cache[key]
    203       cache.move_to_end(key)

~/jax/jax/linear_util.py in __hash__(self)
    169
    170   def __hash__(self):
--> 171     return hash(self.hashable_payload())
    172
    173   def __eq__(self, other):

TypeError: unhashable type: 'JaxprTracer'

The code itself:
N = 5

marg_1 = lambda i,x:x[i]
marg_2 = lambda i,j,x:x[i]*x[j]

marg_1s = [jit(partial(marg_1,i)) for i in range(N)]
marg_2s = [jit(partial(marg_2,i,j)) for i,j in list(it.combinations(range(N),r=2))]
funcs = marg_1s+marg_2s

def calc_e(factors,word):
    return np.sum([factor*func(word) for factor,func in zip(factors,funcs)])

factors = np.array(onp.random.randn(len(funcs))*0.01)

@jit
def sample(key,n_samps,N):
    state = random.randint(key,minval=0,maxval=2, shape=(N,))
    unifs = random.uniform(key, shape=(n_samps*N,))

    all_states = np.zeros((n_samps,N))
    for j in range(n_samps):
        all_states = index_update(all_states,j,state)
        for i in range(state.size):
            #flip sign
            state_flipped = index_update(state,i,1-state[i])
            #calc energy difference
            dE = calc_e(factors,state_flipped)-calc_e(factors,state)
            accept = ((dE < 0) | (unifs[j*N+i] < np.exp(-dE)))
            state = np.where(accept, state_flipped, state)
    return all_states

key = random.PRNGKey(1)
n_samps = 10
sample(key,n_samps,N)

Is this related to the fact that the number of iterations (and the size of the pre-allocated samples array) depend on a parameter of the function? Is there any way to implement such a behaviour in JAX?

Yes, that's basically right. Shapes within in jit block must be fully determined by the the static arguments to the jitted function.
See the documentation for jit for a description of static_argnums.
https://jax.readthedocs.io/en/latest/jax.html#jax.jit
The error message here points to that, since you are passing a non-static value for N where a function expects a static argument (random.randint's shape). Static arguments must be hashable since they form a compilation cache key.
One way you could fix this would be to make the N argument to sample a static argument. This would most likely fix the problem, but sample would be recompiled for each N. This may or may not be a problem.
Does this answer your question?

Sure, that helps - thanks!
The reason I want to pass the number of samples as a parameter is that when it was fixed, I got extremely long compilation time that scaled supra-linearly with the number of samples (maybe related to #653?) . Is there any way to profile the compilation process "by line" - to see if any specific part of the code is responsible for the long compilation times?

I'm going to close this issue because it's super old. Please open new ones if there are follow-up questions!

I'm going to close this issue because it's super old. Please open new ones if there are follow-up questions!


Document xsel and xclip as dependencies on Linux

I could not find a reference about them in the docs.
Is a cut buffer provider critical? Couldn't we just skip the feature when these deps are not present?
https://github.com/kivy/kivy/blob/54444952ba0422c183eb8c711b82c46658be6070/kivy/core/clipboard/__init__.py#L146

What's more, kivy/init.py/kivy_options doesn't have a "cutbuffer" section, so you can't override it with an environment variable.

I am working on Kivy==1.10.1 and python==3.6. Same problem. Can it be solved???

Kivy==1.11.1, Python 3.7, and I am also experiencing this issue. Odd, doesn't seem to affect my app, but it is concerning to see these errors.

Same here on a fresh Ubuntu without the xsel/xclip apt-get packages.

[DEBUG  ] [ProbeSysfs  ] found device: SynPS/2 Synaptics TouchPad at /dev/input/event8
[INFO   ] [ProbeSysfs  ] device match: /dev/input/event8
[INFO   ] [MTD         ] Read event from </dev/input/event8>
[INFO   ] [Base        ] Start application main loop
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [MTD         ] </dev/input/event8> range position X is 1268 - 5674
[INFO   ] [MTD         ] </dev/input/event8> range position Y is 1098 - 4754
[INFO   ] [MTD         ] </dev/input/event8> range touch major is 0 - 0
[INFO   ] [MTD         ] </dev/input/event8> range touch minor is 0 - 0
[INFO   ] [MTD         ] </dev/input/event8> range pressure is 0 - 255
[INFO   ] [MTD         ] </dev/input/event8> axes invertion: X is 0, Y is 0
[INFO   ] [MTD         ] </dev/input/event8> rotation set to 0
[INFO   ] [Clipboard   ] Provider: sdl2(['clipboard_xclip', 'clipboard_xsel', 'clipboard_dbusklipper', 'clipboard_gtk3'] ignored)
[CRITICAL] [Cutbuffer   ] Unable to find any valuable Cutbuffer provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
xclip - FileNotFoundError: [Errno 2] No such file or directory: 'xclip': 'xclip'
File "/home/andi/.pyenv/versions/kivy_env/lib/python3.6/site-packages/kivy/core/init.py", line 63, in core_select_lib
fromlist=[modulename], level=0)
File "/home/andi/.pyenv/versions/kivy_env/lib/python3.6/site-packages/kivy/core/clipboard/clipboard_xclip.py", line 17, in
p = subprocess.Popen(['xclip', '-version'], stdout=subprocess.PIPE)
File "/home/andi/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 729, in init
restore_signals, start_new_session)
File "/home/andi/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
xsel - FileNotFoundError: [Errno 2] No such file or directory: 'xsel': 'xsel'
File "/home/andi/.pyenv/versions/kivy_env/lib/python3.6/site-packages/kivy/core/init.py", line 63, in core_select_lib
fromlist=[modulename], level=0)
File "/home/andi/.pyenv/versions/kivy_env/lib/python3.6/site-packages/kivy/core/clipboard/clipboard_xsel.py", line 16, in
p = subprocess.Popen(['xsel'], stdout=subprocess.PIPE)
File "/home/andi/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 729, in init
restore_signals, start_new_session)
File "/home/andi/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
`

Same exact message for me as well

same thing. python 3.7 on kubuntu 19.10
also affects 2.0.0rc3

[INFO   ] [Clipboard   ] Provider: sdl2(['clipboard_xclip', 'clipboard_xsel', 'clipboard_dbusklipper', 'clipboard_gtk3'] ignored)
[CRITICAL] [Cutbuffer   ] Unable to find any valuable Cutbuffer provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
xclip - FileNotFoundError: [Errno 2] No such file or directory: 'xclip': 'xclip'
File "/home/eli/Desktop/guess/venv/lib/python3.7/site-packages/kivy/core/init.py", line 63, in core_select_lib
fromlist=[modulename], level=0)
File "/home/eli/Desktop/guess/venv/lib/python3.7/site-packages/kivy/core/clipboard/clipboard_xclip.py", line 17, in
p = subprocess.Popen(['xclip', '-version'], stdout=subprocess.PIPE)
File "/usr/lib/python3.7/subprocess.py", line 800, in init
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
xsel - FileNotFoundError: [Errno 2] No such file or directory: 'xsel': 'xsel'
File "/home/eli/Desktop/guess/venv/lib/python3.7/site-packages/kivy/core/init.py", line 63, in core_select_lib
fromlist=[modulename], level=0)
File "/home/eli/Desktop/guess/venv/lib/python3.7/site-packages/kivy/core/clipboard/clipboard_xsel.py", line 16, in
p = subprocess.Popen(['xsel'], stdout=subprocess.PIPE)
File "/usr/lib/python3.7/subprocess.py", line 800, in init
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
same for me

fixed with  apt -get install xclip
https://github.com/jgirardet/mydevoirs/blob/4bfb9bbaf547e06ccffd524effa3eab02a50109c/.github/workflows/test_and_build.yml#L39

sudo apt-get install -y xclip
will fix it

Well this still happens on
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy

This is still an issue.
If kivy depends on xsel and xclip, that installation should happen automatically when someone does pip install kivy

Hi @beauxq !
Cutbuffer is not essential, neither are xclip or xsel:
https://github.com/kivy/kivy/blob/cd4cb0f649c1d34503aba631e405f0c532aef48a/kivy/core/clipboard/__init__.py#L156-L157
Can you confirm that even if the critical error (which I agree is not great) is shown, the app works just fine?

Yes, I see now. I had an app crash and I saw the xsel and xclip messages, and I thought they were related to the crash.
I see now that those messages are not related to the crash that I had.

Workaround for pure wayland installations where xsel and xclip are not available at all, like Yocto/Poky on imx8mm:
# Create fake xsel to make Kivy error message go away
# Run as root, and make sure you don't already have xsel installed, as it will be overwritten
echo "#!/bin/bash" > /usr/bin/xsel
chmod +x /usr/bin/xsel

This creates an empty, executable script that gets rid of the error message. It doesn't solve the copy/paste Cutbuffer issue. But my embedded device has no need for cut and paste.
The point is that Kivy is looking for anything executable named xsel, and will be very happy as long as it is in the path.
For simplicity in Yocto I put this script in the /etc/rc.local but it is enough to create it once.


[Audit report] Vulnerable npm version

Hi guys and thanks a lot for making this library available!
Just wanted to play with it today and noticed this! I guess the fix should be fairly easy?

I think we need to escalate to @cardano-js-sdk if this is serious.


Focus mode hides output of Path Title plugin only halfway

Is the bug present when using the default Obsidian theme?
Yes
Is the bug present when snippets and plugins are disabled?
No
Minimal theme version
5.3.2
Describe the bug
In Focus mode, the folder path by the Path Title plugin is only partially hidden.
Take f.ex. this note. We see the path in the title.

Minimal theme Focus Mode hides the title as expected, and tries to hide the folder too. The latter is only halfway hidden, and peeks down from the top. One would expect it to be completely hidden, like the rest of the title.

Debug info
Here's the relevant piece of the DOM if it is useful.

Thanks for your report. I am no longer supporting versions of Minimal below 6.0 (requires Obsidian 0.16x). Furthermore Obsidian 0.16 now displays the path in the note title.

Got it, thanks!


Update MD file on new branch 2017-31-04_05-12-57

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

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


Getting errors when trying to generate prompt

I'm using the directml version of A1111 for AMD 7900XT GPU so I don't know if that has anything to do with it, but I am getting this error when attempting to generate a prompt:
new(): expected key in DispatchKeySet(CPU, CUDA, HIP, XLA, MPS, IPU, XPU, HPU, Lazy, Meta) but got: PrivateUse1

can confirm getting this error on directml with amd rx 6600 gpu. I believe its an amd issue and I hope this gets the attention


Add Possibility to return larger comment threads

Recently I reverse-engeneered the API used by TikTok to download comment threads, and it is actually pretty simple. You just need the video ID and a "cursor" to paginate the results. I could try a PR if you think it might be a fit for this module, maybe with an optional param to try and save the entire thread?
Example:
def video_comments(video_url, video_id):
        """Retrieve and store Tiktok Comments for a video"""
        import requests
        hasmore = True
        cursor = 0
        headers["referer"] = video_url
        while hasmore:
            params = {
                'aid': '1988',
                'app_language': 'ja-JP',
                'app_name': 'tiktok_web',
                'aweme_id': video_id,
                'browser_language': 'de-DE',
                'browser_name': 'Mozilla',
                'browser_online': 'true',
                'browser_platform': 'MacIntel',
                'browser_version': userAgent,
                'channel': 'tiktok_web',
                'cookie_enabled': 'true',
                'count': '20',
                'current_region': 'JP',
                'cursor': str(cursor),
                'device_id': xxxx,
                #....need more experiments to see what of these params is necessary here.
            }

            try:
                response = requests.get(
                    'https://www.tiktok.com/api/comment/list/',
                    headers=headers,
                    params=params,
                    cookies=cookies
                )
                data = response.json()
                print(data["has_more"])
                cursor = cursor + 20
                if (data["has_more"] != 1) or (len(data["comments"]) < 20):
                    hasmore = False
                for comment in data["comments"]:
                    savecomment_to_file(comment)
                time.sleep(random.randint(1, 4))
            except Exception as e:
                print(e)
                hasmore = False

Hi, thanks! I added an edited version of your function to Pyktok as save_video_comments. I credited you in the README but happy to offer additional credit elsewhere if you like, just let me know.


Any alternative of Infura IPFS?

Infura is currently limiting IPFS services to customers that already have an active IPFS key. New IPFS key creation is disabled for new and existing customers.

Aware of this issue. You'll have to change the whole IPFS integration with NFT.Storage. Pinata Cloud or Arwave. Many changes on the frontend will be required.


shading messes up test in assembly

I just tried the new shading functionality.  Very promising!  Unfortunately, it causes test in assembly to fail with ClassNotFoundExceptions.   For example, see my commits in this PR:
https://github.com/spark-jobserver/spark-jobserver/pull/275
If you roll back the last commit to disable test in assembly, and run "job-server/test", you will find something like this:
java.lang.NoClassDefFoundError: sjs/shapeless/PrependAux$

I'm seeing similar symptoms.  I am trying to use keep rules to minimize the size of my code for use in AWS Lambda.  I think what is happening in my case is that the Shading is not including for superclasses for Java classes that my code depends on.  I've had to add the following rules so far (and something tells me there will be many more):
ShadeRule.keep("com.typesafe.scalalogging.").inAll,
ShadeRule.keep("org.slf4j.").inAll,
ShadeRule.keep("scala.collection.**").inAll,
ShadeRule.keep("org.apache.commons.configuration.AbstractConfiguration").inAll

@velvia Could you confirm if that solved the issue for you? (The newest sbt-assembly 0.14.1 includes updated version of jarjar)

@kretes I tried it just now, but unfortunately no luck, still need to disable tests in assembly.  However, the regular tests pass.   For now we might just need to disable the tests.  :(

So I should reopen this issue?

I would think so  :)

I think this is going to be fixed by #197

Thanks, looking forward to the next release.

On Feb 14, 2016, at 3:55 PM, eugene yokota<EMAIL_ADDRESS>wrote:
I think this is going to be fixed by #197 https://github.com/sbt/sbt-assembly/pull/197
—
Reply to this email directly or view it on GitHub https://github.com/sbt/sbt-assembly/issues/172#issuecomment-184008527.

I released sbt-assembly 0.14.2 a few hours ago if you want to give it a shot - http://notes.implicit.ly/post/139334060734/sbt-assembly-0142

For anyone wondering, this does fix the issue!
Thanks alot!

Shading now works and testing compiles fine when assembling the JAR. Problem seems to be is when I add a simple shading rule like this:
assemblyShadeRules in assembly ++= Seq(
  ShadeRule.rename("com.typesafe.config.**" -> "my_config.@1")
    .inLibrary("com.typesafe" % "config" % "1.3.0")
    .inProject
)

It ends up deleting my entire project code in the assembled JAR.
Is anyone else experiencing this?

Petit update: the issue only happens on Windows. I also see error output like this one:
Fully-qualified classname does not match jar entry:
  jar entry: com\typesafe\config\impl\SimpleIncluder.class
  class name: com/typesafe/config/impl/SimpleIncluder.class
Omitting com\typesafe\config\impl\SimpleIncluder.class.
Fully-qualified classname does not match jar entry:
  jar entry: com\typesafe\config\impl\SubstitutionExpression.class
  class name: com/typesafe/config/impl/SubstitutionExpression.class
Omitting com\typesafe\config\impl\SubstitutionExpression.class.

So a complete summary of the problem:
System: Windows 8.1, sbt 0.3.11, sbt-assembly 0.14.2
Adding any shading rules causes SBT to completely remove project code from the uber JAR.
Reproduce: Take https://github.com/dragos/SimpleBugReproduce and build it on a Windows machine.
Run jar -tf on the assembly and see there's no shading of "com.typesafe.config", it's completely removed.  In my case (a bit more complex), the entire project code goes missing too.

Fixed with PR. I think we can close this.


early updateOptions makes it missbehave (react and i18next backend)

First wrote #3281
But I don't know, I think this is the same, but keeping the old one for history in case I'm wrong
Attached project to reproduce it
tolgee-updateOptions.zip
Import language_export
into a Tolgee project
(has one namespace: 'keys')
populate .env.local with your project setting
VITE_TOLGEE_KEY=tgpak_
VITE_TOLGEE_API=https://
VITE_TOLGEE_PROJECT=1

run
pnpm install
pnpm run dev

observe how AltLeft isn't translated, but you can Alt + Click it and it has the correct values
it all comes down to a very early updateOptions.
This example code doesn't make so much sense. But it's a condensed version of something that makes more sense :P
language-provider.tsx
useEffect(() => {
      tolgee.updateOptions({
        apiKey: import.meta.env.VITE_TOLGEE_KEY,
      });
  }, []);

Hey, unfortunately this is not so easy issue. The problem comes from friction between i18next and Tolgee. As Tolgee serves as simple backend, it loads data when i18next requests them. The issue is that the change in options causes tolgee to cancel the pending request, but i18next won't request data again.
What would be an ideal solution is to postpone i18next initialization until the tolgee is fully initialized. Something like this:
const tolgee = Tolgee()
  .use(DevTools())
  .use(I18nextPlugin())
  .use(BackendFetch())
  .init({
    apiUrl: process.env.REACT_APP_TOLGEE_API_URL,
    apiKey: process.env.REACT_APP_TOLGEE_API_KEY,
  });

export const App = () => {
  const currentRoute = window.location.pathname;

  const [ready, setReady] = useState(false);

  useEffect(() => {
    tolgee.updateOptions({
      apiKey: process.env.REACT_APP_TOLGEE_API_KEY,
    });
    withTolgee(i18n, tolgee)
      .use(ICU)
      .use(initReactI18next)
      .init({
        lng: 'en',
        supportedLngs: ['cs', 'en', 'fr', 'de'],
      });
    setReady(true);
  }, []);

  return ready ? (
    <Suspense fallback={
Loading...
}>
      {currentRoute === '/translation-methods' ? (
        <TranslationMethods />
      ) : (
        <Todos />
      )}
    </Suspense>
  ) : (

Loading...

  );
};

I know it's a bit ugly, but I don't see a better solution now.

How do you know that tolgee is fully initialized in your case?
Is it just because of the "delay" between importing the file and the execution of the component?

It's not about Tolgee initialization, but about i18next initialization. Because you ask i18next to load translations, which will use TolgeeBackend to load them - Tolgee starts, but then in the middle of it, you update Tolgee config. Tolgee itself is ready for this as it will cancel the previous requests (or ignore their outcome) and starts new requests to load for data.
However in this case it is dependant on i18next flow and you'd need to force i18next to refetch the data. Other issue is however, that even if you call i18next.refetch (or how it's called). It won't trigger anything as long there is existing ongoing fetch pending, so it won't help unless you artifically wait for some time and then refresh.
Could you maybe explain what is your usecase for this, I might be able to improve Tolgee behavior, to cover your case.


What would be the best way to reference JSOM from a SPO site where our web part is going to deploy to

Category

[X ] Question
[ ] Typo
[ ] Bug
[ ] Enhancement / Suggestion
[ ] Additional article idea

As a section "Loading SharePoint JSOM" in Add an external library to your SharePoint client-side web part mentioned, SPFx can use JSOM library by adding reference in config.json when we connect to SPO. Based on the code sample list in that document, the "path" points to a absolute URL. "path": "https://CONTOSO.sharepoint.com/_layouts/15/SP.js", . When we deploy our web part, we definitely don't know what the final URL is going to be. So my question is what would be the best approach to reference JSOM library from a SPO site where we are going to deploy a web part? do we have token string which allows SPFx to reference JSOM library from target SPO site?

Have you tried using a server-relative URL rather than an absolute one?

@waldekmastykarz. I tried to use relative URL like  "path": "/sites/dev/_layouts/15/SP.js" and  "path": "_layouts/15/SP.js". But unfortunately, both didn't work.

What was the error that you got when trying to do this?

My experience getting that section of the docs and JSOM to work was very problematic. Basically everything after the point to install SharePoint Typings didn't work at all. What I ended up doing was using this SP.SOD.executeFunc to ensure JSOM was available. There was no need to include any additional external scripts or require statements.
Mind you, my web part is running in a classic page not a modern page so it's probable that the required scripts are already loaded.
SP.SOD.executeFunc('sp.js', 'SP.ClientContext', () => {
  //  JSOM is available
});

please look at my screenshot for error message, I think when I change to server relative URL, SPFx will load from script's host which is my localhost.

If you're using a server-relative URL to reference SharePoint-hosted scripts, but are testing your web part in a locally-hosted workbench than these URLs won't work: as you're seeing in the screenshot the server-relative URLs point to your local dev machine which doesn't have these scripts. Have you tried testing your web part in the hosted workbench available at https://yourtenant.sharepoint.com/_layouts/15/workbench.aspx?

I was testing on my SPO workbench. I think when I used gulp serve to start my webpart, the webpart related code should be reference by localhost:4321(see my previous screenshot) no matter you test on local workbench or SPO workbench. It seems like SPFx loaded relative URL from webpart host which is localhost:4321 instead of SPO.

One workaround that you could try is to use SPModuleLoader to load the scripts in code rather than defining them as external resources in the config.
In the config.json file to the externals section you would add:
"@microsoft/sp-module-loader": <EMAIL_ADDRESS>
Then, in code you would import the SPModuleLoader class:
import SPModuleLoader from '@microsoft/sp-module-loader';

Finally, in code you would call:
ModuleLoader.loadScript('/_layouts/15/SP.js', 'SP').then((SP: any): void => {
    // the rest of the code that depends on SP.js
});

Any idea why using the SPModuleLoader as described above throws this error? Don't pay too much attention on the GUIDs as I parsed this error from two error messages to get it in English.
Can it be related to the fact that tenant and site collection was made in non-english locale?
[SPWebPartErrorCode.ScriptLoadError]:: Unable to load web part WebPart.ItemListWebPart.2f07d505-b453-4c79-9137-65ac99d043ae,Error: ***Failed to load component "6d3567ef-a711-49f9-83f0-3b83fccca741" (ItemListWebPart). Original error: ***Failed to load path dependency "@microsoft/sp-module-loader" from component "6d3567ef-a711-49f9-83f0-3b83fccca741" (ItemListWebPart). script resources due to: {1}. CALLSTACK:: Error at t [as constructor] (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-03-03.007/sp-loader_fi-fi_64d7a0f1f3c7b997dccbc7fa5337153d.js:88:23976) at new t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-03-03.007/sp-webpart-base_fi-fi_2775b02c45dd8e838ee74f316c7988a1.js:146:34992) at Function.t.create (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-03-03.007/sp-webpart-base_fi-fi_2775b02c45dd8e838ee74f316c7988a1.js:146:35433) at e._handleModulePromiseRejection (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-03-03.007/sp-webpart-base_fi-fi_2775b02c45dd8e838ee74f316c7988a1.js:146:54328) at https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-03-03.007/sp-webpart-base_fi-fi_2775b02c45dd8e838ee74f316c7988a1.js:146:44910

In order to use JSOM, follow the instructions in https://dev.office.com/sharepoint/docs/spfx/web-parts/guidance/connect-to-sharepoint-using-jsom
Following those steps will get JSOM working on your web part successfully. We are working on improving this scenario with a simpler, more efficient way to load JSOM. In that case the article will be updated with the latest guidance for using JSOM.


Robert Longson: Watch kolkatacallgirlservices.com

Robert Longson requests the watch of the watch_keyword kolkatacallgirlservices\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

kolkatacallgirlservices\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ


add information and references around device code phishing to consent phishing

This could possibly be a subtechnique if we add those in future but probably better to flesh out the consent phishing example for now

Upon refreshing my memory on device code phishing against Azure, I'm thinking it should actually be a separate technique since you don't really "consent" in the same way and it should arguably be in defense evasion as well as initial access.


Center z=0 plane in plot_state_city with consistent border

Fixes #3162
Summary
Uses the axes ranges (via get_xlim(), get_ylim()) to determine the size of the z=0 plane instead of constant values/offsets which led to an asymmetric plane with shrinking border as the number of qubits increased (see #3162).
Details and comments
Result looks like this:

looks good! there's a merge conflict though that needs to be resolved.


HACS Install

Getting the following error when trying to add repo:
<Integration TECH7Fox/sip-hass-card> Repository structure for v2.5.0 is not compliant
Side Note: Was able to add asterisk-hass-integration without issue.

Bump

When you import the repo select Dashboard and everything works!

When you import the repo select Dashboard and everything works!

Didn't think of that! Thanks I'll give that a shot. 👍


include/csp/arch: add random functions header, use where possible

libc rand functions will not always be available, in a lot of cases embedded OS will have their own API for random number generation, so instead of using the rand functions, this PR proposes adding a csp_rand.h to be implemented by the different architectures.
I'm currently working with libCSP in RIOT, but I have not tested this PR for zephyr.

Actually both uses of rand can be avoided. So I will consider that instead.

I suggest the block og code for adding random packet loss inside the can driver should simply be completely commented out.
And for random iss on RDP connect. This is really not needed since all RDP connections are running over UDP with ephemeral source ports. So only in the rare case of a source port wrapped and there is a connection clash, would the RDP random iss make a difference.
I suggest either setting it to 0. Or keeping a static variable and setting to the previously given value minus some large offset. But this is a waste of memory.
Generally getting rid on the reliance on random numbers is a good thing.


Report Parameters not rendering on page

Hello,
I've tried deploying the report, but when I try to view the report I just get a blank page displayed instead of the two parameters and 'View Report' button.
I've looked through the rendered HTML and noticed there's a lot of stuff missing in the ParametersRowReportViewer element compared to my development machine.

*** This is blank, lots of stuff missing ***

I've set the ShowErrorPage to true, but no errors appear.
Couple of things:

The report works fine going through the report manager.
This is over a remote connection. Not sure if this is a problem, but it must be able to work over a remote connection.
All files and dll's are present.

Any help very much appreciated!

Hello,
First of all, set MvcReportViewer.ShowErrorPage to be false. It will show you an ASP.NET exception if there is any.
For SSRS reports:

Check firewall rules on your web-server and SSRS server.
Check that you've specified user account in your web.config/razor file (MvcReportViewer.Username, MvcReportViewer.Password).
Check MvcReportViewer.ReportServerUrl that you can access it from your web-server.

For Local Reports:

Check that your ASP.NET user has access to the report files on the server.

If none of those recommendations works then create simple ASP.NET Web Forms page which renders your report and run it on the server. It will be easier to debug it since Report Viewer is an ASP.NET Web Control.
Please let me know if you will find an issue in MvcReportViewer code.

Please also check you browser's console to see if there are JavaScript error on the page, e.g.
jQuery is not loaded or you have a ScriptManager error.

Hello ilich,
I have just discovered it is a problem with the Report Server configuration, so no problems with MvcReportViewer.
Apologies for not responding sooner, only worked this out in the last hour myself. Thanks for your help, and thanks for the software.


Removing caller_pid from log entries break some integrations

In this commit: https://github.com/elixir-ecto/ecto/commit/8d09248c357d98e4096af449f6d0c20bc415fb92#diff-152ab0727a1d450c0fe74d178e80d1f0
LogEntry had its caller_pid field removed. However, spandex_ecto (which has its own problems but we're going to resolve those), relies on that field being set to tie parent process trace data with the metrics in the log entry. It also seems like this information is not present in the telemetry information. Any suggestions on how we might go about getting query data into traces in a similar format? We don't want to have to wrap all calls to a repo in traces/spans.

The caller_pid is going to be self() in the majority of the cases, except on multi-preloads, which use separate queries. So you can just use self(). For the remaining cases, then https://github.com/elixir-lang/elixir/issues/7995 will be the way to go, which should work generally and not only within Ecto.

Thanks, I look forward to seeing that make it in. That would be useful for our tracing library in many different ways.

@josevalim what would be a recommended way of having log metadata in the multi-preload queries now that Elixir 1.8 is out? Would you saw developers should handle this themselves or?
So far, this is what I arrived at to extra metadata from the caller process – would you say this is normal approach to have request_id during parallel-preloading:
require Logger

Logger.metadata(request_id: "03872725-6411-4746-acb8-047f10aa0072")

telemetry_fn = fn a,b,c,d ->
  case Process.info(self())[:dictionary][:"$callers"] do
    [caller_process] ->
      {:dictionary, stuff} = Process.info(caller_process, :dictionary)
      {true, log_metadata} = stuff[:logger_metadata]
      Logger.info("We're in a task process, preloading some assoc, request_id is #{log_metadata[:request_id]}")

    _ ->
      Logger.info("We've in a caller process itself")
  end
end

:telemetry.attach("my-handler", [:my_app, :repo, :query], telemetry_fn, nil)

post = Repo.insert!(%Post{author_id: 1})

Repo.insert!(%Comment{post_id: post.id, state: "approved"})
Repo.insert!(%Comment{post_id: post.id, state: "disapproved"})
Repo.insert!(%Comment{post_id: post.id, state: "pending"})

Repo.preload(post, [:comments, :author])

Exactly. Just replace  [caller_process] -> by  [caller_process | _] ->.


seq: cannot specify -s argument without a space

In GNU seq, the -s option accepts an argument and that argument can be provided with or without whitespace between the "-s" and the argument:
$ seq -s , 2
1,2
$ seq -s, 2
1,2

However, our version requires a space between the option and its argument:
$ ./target/debug/coreutils seq -s , 2
1,2
$ ./target/debug/coreutils seq -s, 2
seq: invalid floating point argument: '-s,'
Try './target/debug/coreutils seq --help' for more information.

Is there a way to configure the clap argument parsing library to allow argument without spaces?

I would like to work on this. The clap parser does allow short options to receive arguments like shown, however this style clashes with its implementation of AllowHyphenValues, which overrides this. The sequences goes then like shown:

 `Parser::get_matches_with: After parse_short_arg MaybeHyphenValue`
$ ./target/release/seq -s, 2
[            clap::build::app] 	App::_do_parse
[            clap::build::app] 	App::_build
[            clap::build::app] 	App::_propagate:./target/release/seq
[            clap::build::app] 	App::_check_help_and_version
[            clap::build::app] 	App::_propagate_global_args:./target/release/seq
[            clap::build::app] 	App::_derive_display_order:./target/release/seq
[         clap::parse::parser] 	Parser::get_matches_with
[         clap::parse::parser] 	Parser::_build
[         clap::parse::parser] 	Parser::get_matches_with: Begin parsing 'RawOsStr("-s,")' ([45, 115, 44])
[         clap::parse::parser] 	Parser::get_matches_with: Positional counter...1
[         clap::parse::parser] 	Parser::get_matches_with: Low index multiples...false
[         clap::parse::parser] 	Parser::possible_subcommand: arg=RawOsStr("-s,")
[         clap::parse::parser] 	Parser::get_matches_with: sc=None
[         clap::parse::parser] 	Parser::parse_short_arg: short_arg=RawOsStr("s,")
[         clap::parse::parser] 	Parser::parse_short_args: contains non-short flag
[         clap::parse::parser] 	Parser::get_matches_with: After parse_short_arg MaybeHyphenValue

In any case, the GNU implementation for seq to determine whether an argument is 'a number' and thus interpreted as the start of values instead of an option is very specific in that it merely looks at the first two characters. Therefore I plan to customize the argument parsing such as to emulate this first, and get rid of the AllowHyphenValue use in AppSetting in the process. This shouuld then align the parser to GNU's usage more closely.

I think the solution is much simpler than that. The Arg::number_of_values(1) call implicitly sets Arg::multiple_values to true, even though it only accepts 1 argument. This disables the possibility to have a space between the flag and the argument. So the  solution would just be to remove the number_of_values(1) call(s).

I'm afraid not. These three tests are hard to fulfill at the same time:
#[test]
fn test_accepts_option_argument_directly() {
    new_ucmd!()
        .arg("-s,")
        .arg("2")
        .succeeds()
        .stdout_is("1,2\n");
}

#[test]
fn test_option_with_detected_negative_argument() {
    new_ucmd!()
        .arg("-s,")
        .args(&["-1", "2"])
        .succeeds()
        .stdout_is("-1,0,1,2\n");
}

#[test]
fn test_negative_number_as_separator() {
    new_ucmd!()
        .arg("-s")
        .args(&["-1", "2"])
        .succeeds()
        .stdout_is("1-12\n");
}

Ah sorry, I got this all wrong indeed. Forget everything I said :)


Windows Chef Client version should be consistent with version for non-Windows bootstrap

@btm, this doesn't seem to have been merged -- did it get pushed? If you can merge this soon we can release this and work around #133.

pushed 0-stable.

I've merged 0-stable back into master. There was one test failing on master and one additional on my merge branch. I'm going to track that as separate work so we don't continue diverging from Clogeny's work on master where there area few subtle differences that make the merge complicated with every commit.
0-stable has been deleted and we won't use it anymore, we will be shipping directly from master.


add upgrade controller

story: https://github.com/stolostron/backlog/issues/20393
Signed-off-by: Zhiwei Yin<EMAIL_ADDRESS>

LGTM for the managed cluster controller part

/lgtm


Longer Term Deployment Options

Not sure if what I want to do is even possible but let's say you have successfully completed the guide (following all of the instructions) and deployed the cluster with Hyper-V nested virtualisation. You will end up with 4 VMs,

1 Domain Controller
1 Workstation Windows 10 VM
2 HCI Node VMs

They are connected to the NAT switch. You deploy your first VM on the Stack HCI cluster and you want to join it to the Domain (let's assume it is a secondary domain controller you are trying to deploy). As the only domain controller existing outside of the Stack Cluster I don't think it will be able to see the existing Domain controller.
This might be impossible or it might a simple nested virtualisation/networking question but my mind is drawing a blank. The VMs are connected to an 'external' compute switch on the Stack HCI nodes but I don't think they will be able to see the Domain controller on the Nat switch on my top level hypervisor host
How do I extend the existing domain into the cluster network where the VMs will be located?

Hi Liam,
Based on the nested config you've deployed in the guide, I actually think that any VMs running on your nested AzSHCI nodes, attached to the AzSHCI nodes "External" network vSwitch (which in turn is bound to the InternalNAT switch) should be able to reach anything on your sandbox <IP_ADDRESS>/24 network, including the AzSHCI nodes themselves (on the mgmt network) and the DC/WAC VMs. There's no reason why that shouldn't work from a network communication perspective.
The challenge however, is that you're then at multiple layers of nesting, so performance may be pretty bad at that point, but should still work, assuming you can throw enough horsepower at the nested VM running on the AzSHCI cluster.
This is primarily the reason i just walked people through deploying an "empty" VM rather than one with an OS, but networking should work fine.
Let me know! :)

Thanks I will have another poke around later on. I'm not too concerned with performance as I just intend to have a few VMs running for demoing etc... at least this will give my 16-core 5950x something to actually do :)

Cool - screenshots please, or it didn't happen! :)

I definitely happened and my poor bank statement backs it up!


State link and subscriptions?

Hey,
any chance this link will work with subscriptions?
Current use case:
I would like to make a subscription that will receive the currently discovered bluetooth device... something like:
subscription discoveredDevice {
  bluetoothDevice @client {
    name
  }
}

then I would publish the device via pubSub from a local bluetooth manager to that client subscription.
Any plans for something like that in the future?

I asked the same thing yesterday and found out that subscriptions were not necessary for my case:
https://github.com/apollographql/apollo-link-state/issues/137

@blissi thanks for the tip, didn't thought of that... and it works very well.
So this issue can be closed

You're welcome. Just one question:
Do you also experience the same issue as I do => https://github.com/apollographql/apollo-link-state/issues/139 ?

@blissi did you manage to find a solution for #139?

@snajahi I haven't tried it any further and removed apollo link state from my project.

@peggyrayzis Hey, any update for this issue now?

@peggyrayzis bump. Any news on this? What is the state of things now?

Subscriptions for this would be amazing. Light-years away from Redux or Mobx.


[deliver] shows team name in the error message

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context
Shows team name in the error message when the wrong team_id is provided in the Appfile.
Fixes: https://github.com/fastlane/fastlane/issues/10134
Tested locally by setting up fastlane in a test project. Entered right username and wrong values for team_id in the Appfile.

Hey @RishabhTayal, is there any chance you may be able to add a test or two for this? I just want to make sure that we can edit this code moving forward and are not missing any problems like the one mentioned above 😄  🚀

Sure. Could you help me with some pointer? Not very familiar with ruby unit tests. I am adding in spaceship/spec/client_spec.rb file.

That is definitely the right place to start 🚀

@ohayon I am not able to come up with a unit test for this. Not sure how to go about it. Will appreciate if can get some help.

+1 would love to see this merged. This fix would have saved me a ton of time today.

Thank you too for the PR, @RishabhTayal.


Main comment lifecycle on gossip api

[ ] support UA identity
[ ] add rate limit
[ ] add spam check
[x] auto create article
[x] auto insert comment data
[ ] auto author indexes

Closed for breaking this epic info pieces of small task and moving to Github project.


Common AddTooltip component

Closes https://github.com/konveyor/virt-ui/issues/46

@gildub Please spell out the word "one". Numbers should only be used in text if two digits or more.

@vconzola, you probably meant the opposite, numbers should be spelled in numbers if two digits or more.
Please re-review. Thanks


scrape kafka 2.6.0 error occurred

My guess from the log is that current Exporter does not support the new version of Kafka

kafka version：2.6.0

key to log:
kafka.errors.UnsupportedCodecError: UnsupportedCodecError: Libraries for lz4 compression codec not found

exporter logs：
[2022-06-16 03:05:16,311] root.INFO MainThread Requesting topics and partition assignments
[2022-06-16 03:05:16,312] root.INFO MainThread Requesting high-water marks
[2022-06-16 03:05:16,312] root.INFO MainThread Requesting low-water marks
[2022-06-16 03:05:16,710] root.INFO MainThread Received topics and partition assignments
[2022-06-16 03:05:25,832] root.INFO MainThread Requesting low-water marks
[2022-06-16 03:05:26,219] root.INFO MainThread Received high-water marks from node 1
[2022-06-16 03:05:26,228] root.INFO MainThread Received high-water marks from node 3
[2022-06-16 03:05:26,331] root.INFO MainThread Received high-water marks from node 2
[2022-06-16 03:05:30,856] root.INFO MainThread Requesting topics and partition assignments
[2022-06-16 03:05:30,857] root.INFO MainThread Requesting high-water marks
[2022-06-16 03:05:31,271] root.INFO MainThread Received high-water marks from node 2
[2022-06-16 03:05:31,337] root.INFO MainThread Received topics and partition assignments
[2022-06-16 03:05:31,341] root.INFO MainThread Received high-water marks from node 3
[2022-06-16 03:05:31,342] root.INFO MainThread Received high-water marks from node 1
Traceback (most recent call last):
  File "/usr/bin/prometheus-kafka-consumer-group-exporter", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python3.6/site-packages/prometheus_kafka_consumer_group_exporter/__init__.py", line 143, in main
    for message in consumer:
  File "/usr/lib/python3.6/site-packages/kafka/consumer/group.py", line 1126, in __next__
    return next(self._iterator)
  File "/usr/lib/python3.6/site-packages/kafka/consumer/group.py", line 1096, in _message_generator
    for msg in self._fetcher:
  File "/usr/lib/python3.6/site-packages/kafka/consumer/fetcher.py", line 482, in __next__
    return next(self._iterator)
  File "/usr/lib/python3.6/site-packages/kafka/consumer/fetcher.py", line 396, in _message_generator
    self._next_partition_records = self._parse_fetched_data(completion)
  File "/usr/lib/python3.6/site-packages/kafka/consumer/fetcher.py", line 788, in _parse_fetched_data
    unpacked = list(self._unpack_message_set(tp, records))
  File "/usr/lib/python3.6/site-packages/kafka/consumer/fetcher.py", line 450, in _unpack_message_set
    for record in batch:
  File "/usr/lib/python3.6/site-packages/kafka/record/default_records.py", line 262, in __iter__
    self._maybe_uncompress()
  File "/usr/lib/python3.6/site-packages/kafka/record/default_records.py", line 171, in _maybe_uncompress
    self._assert_has_codec(compression_type)
  File "/usr/lib/python3.6/site-packages/kafka/record/default_records.py", line 114, in _assert_has_codec
    "Libraries for {} compression codec not found".format(name))
kafka.errors.UnsupportedCodecError: UnsupportedCodecError: Libraries for lz4 compression codec not found
[2022-06-16 03:05:59,913] kafka.client.INFO MainThread Bootstrapping cluster metadata from [('<IP_ADDRESS>', 9092, <AddressFamily.AF_INET: 2>)]
[2022-06-16 03:05:59,917] kafka.conn.INFO MainThread <BrokerConnection node_id=bootstrap host=<IP_ADDRESS>:9092 <connecting> [IPv4 ('<IP_ADDRESS>', 9092)]>: connecting to <IP_ADDRESS>:9092 [('<IP_ADDRESS>', 9092) IPv4]
[2022-06-16 03:05:59,918] kafka.conn.INFO MainThread <BrokerConnection

@ChaoHsupin You probably just need to install the lz4 python library. See the kafka-python docs: https://kafka-python.readthedocs.io/en/master/install.html#optional-lz4-install
If you can confirm that adding the lz4 package fixes your issue, I'll look at updating the Docker image to install the various optional packages.

@ChaoHsupin You probably just need to install the lz4 python library. See the kafka-python docs: https://kafka-python.readthedocs.io/en/master/install.html#optional-lz4-install
If you can confirm that adding the lz4 package fixes your issue, I'll look at updating the Docker image to install the various optional packages.

@braedon Thanks，i had solved it !


[FEATURE] different priorityClass in driver and executor

When driver pod is preempted，whole sparkapplication will fail. So we want to set high priorityClass to all drivers，and low priorityClasses to executors

@liujin1993 Thanks for raising this feature request. The priorityClass field of driver/executor pod has already been added by PR #2146. This issued can be closed then.

Close this issue by #2146.


Allow HTTP defined methods only

HTTP defined methods are GET, HEAD, POST, PATCH, DELETE, TRACE, OPTIONS, CONNECT. hyper CLI doesn't validate the user inputted methods.
krace@Kracekumars-MacBook-Pro ~/c/hyper-h2> (hyper-h2) hyper --h2 GET23 http://http2bin.org/get
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>405 Method Not Allowed</title>

Method Not Allowed

The method is not allowed for the requested URL.

Argument parser add_argument takes an argument choices. The choices can hold the list of allowed HTTP defined methods. As of now, using lower case HTTP methods cause unexpected behaviour.
krace@Kracekumars-MacBook-Pro ~/c/hyper-h2> (hyper-h2) hyper --h2 get http://http2bin.org/get

    <title>Bad Request</title>

Bad Request

    Invalid Method 'Invalid HTTP method: 'get''

I am happy to send a PR.

So I'd like to allow arbitrary methods: there are many extensions to HTTP that use custom HTTP methods. However, we should absolutely just uppercase the method we're given.


remix spa mode cannot with<EMAIL_ADDRESS>, when run npm run preivew, it's a empty page

Reproduction
https://stackblitz.com/edit/remix-run-remix-vuafvw?file=vite.config.ts,app%2Froot.tsx,app%2Froutes%2F_index.tsx,app%2Fentry.client.tsx,app%2Fentry.server.tsx,package.json,README.md
pnpm add rollup -D

pnpm run build

pnpm run preivew

System Info
System:
    OS: macOS 14.1.2
    CPU: (8) arm64 Apple M1
    Memory: 74.91 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.21 - ~/.nvm/versions/node/v20.10.0/bin/yarn
    npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
    pnpm: 9.0.4 - ~/Library/pnpm/pnpm
    bun: 1.0.0 - ~/.bun/bin/bun
  Browsers:
    Chrome: 124.0.6367.61
    Safari: 17.1.2
  npmPackages:
    @remix-run/dev: ^2.8.1 => 2.8.1
    @remix-run/node: ^2.8.1 => 2.8.1
    @remix-run/react: ^2.8.1 => 2.8.1
    vite: ^5.1.0 => 5.2.10

Used Package Manager
npm
Expected Behavior
run npm run preivew, it's not a empty page
Actual Behavior
run npm run preivew, it's  a emty page

override rollup to 4.15.0, this is rollup issue.

yeah this seems to be a bug in rollup 4.16 when it comes to function parameters with default values.
Our flattenRoutes function is defined as:
function flattenRoutes<
  RouteObjectType extends AgnosticRouteObject = AgnosticRouteObject
>(
  routes: RouteObjectType[],
  branches: RouteBranch<RouteObjectType>[] = [],
  parentsMeta: RouteMeta<RouteObjectType>[] = [],
  parentPath = ""
): RouteBranch<RouteObjectType>[] {
  ...
}

And it gets transpiled down differently in rollup 4.15 versus 4.16, with 4.16 incorrectly blowing away the branches parameter value on every invocation:
// rollup 4.15
function flattenRoutes(routes, branches, parentsMeta, parentPath) {
  if (branches === void 0) {
    branches = [];  // ✅ Only sets the default if no value is passed
  }
  if (parentsMeta === void 0) {
    parentsMeta = [];
  }
  if (parentPath === void 0) {
    parentPath = "";
  }
  // ...
}

// rollup 4.16
function flattenRoutes(routes, branches, parentsMeta, parentPath) {
  {
    branches = []; // ❌ Lost the if statement, so it sets the default every time
  }
  if (parentsMeta === void 0) {
    parentsMeta = [];
  }
  if (parentPath === void 0) {
    parentPath = "";
  }
  // ...
}

For now the proper workaround is to install<EMAIL_ADDRESS>or set it in the overrides section of your package.json:
"overrides": {
    "rollup": "4.15.0"
}

This should be resolved in rollup 4.16.2: https://github.com/rollup/rollup/releases/tag/v4.16.2


[#960] fix(dashboard): simplify dependency and correct the startup script

What changes were proposed in this pull request?
simplify dependency and correct the startup script.
Why are the changes needed?
(Please clarify why the changes are needed. For instance,
Fix: #960
Does this PR introduce any user-facing change?
(Please list the user-facing changes introduced by your change, including
No.
How was this patch tested?
Needn't.

What's this pr the relationship of #1326

Same PR. I'm changing it after the merger.

#1326

Some fixes based on PR #1326.I'm making changes after the merger.

@zuston @xianjingfeng @jerqi  Modify the dashboard pom dependencies, modify the startup script to be independent of Hadoop, and separate the dashboard configuration file from the Coordinator configuration file so that it can be deployed independently.

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

Comparison is base (ecbf2e7) 53.22% compared to head (0eb1ac8) 53.37%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1347      +/-   ##
============================================
+ Coverage     53.22%   53.37%   +0.14%
+ Complexity     2715     2182     -533
============================================
  Files           418      341      -77
  Lines         23932    15379    -8553
  Branches       2043     1426     -617
============================================
- Hits          12738     8208    -4530
+ Misses        10408     6705    -3703
+ Partials        786      466     -320

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Could you fix these two problems in the pr? @yl09099
https://github.com/apache/incubator-uniffle/pull/1339#issuecomment-1831538825

Could you fix these two problems in this pr? @yl09099 #1339 (comment)

This has been modified.

Could you fix these two problems in this pr? @yl09099 #1339 (comment)

This has been modified.

It seems that one of them was be fixed. But we still must set the env HADOOP_HOME, right?

Could you fix these two problems in this pr? @yl09099 #1339 (comment)

This has been modified.

It seems that one of them was fixed. But we still must set the env HADOOP_HOME, right?

I have deleted the configurations related to start-dashboard and HDFS, and do not need to set HADOOP_HOME on the dashboard.

Could you fix these two problems in this pr? @yl09099 #1339 (comment)

This has been modified.

It seems that one of them was fixed. But we still must set the env HADOOP_HOME, right?

I have deleted the HDFS configuration in start-dashboard and do not need to set HADOOP_HOME on dashboard.

Could you fix these two problems in this pr? @yl09099 #1339 (comment)

This has been modified.

It seems that one of them was fixed. But we still must set the env HADOOP_HOME, right?

I have deleted the HDFS configuration in start-dashboard and do not need to set HADOOP_HOME on dashboard.

Is there anything problems with the following code?
https://github.com/apache/incubator-uniffle/blob/ecbf2e79423505dd44bf54c612572c5c9da71175/bin/utils.sh#L175-L178

Could you fix these two problems in this pr? @yl09099 #1339 (comment)

This has been modified.

It seems that one of them was fixed. But we still must set the env HADOOP_HOME, right?

I have deleted the HDFS configuration in start-dashboard and do not need to set HADOOP_HOME on dashboard.

Is there anything problems with the following code?
https://github.com/apache/incubator-uniffle/blob/ecbf2e79423505dd44bf54c612572c5c9da71175/bin/utils.sh#L175-L178

Learned, changed

Thanks @yl09099 @xianjingfeng


JFYI: reported git bug that's relevant to build agents

Version of my agent

2.104.1

OS of the machine running the agent? OSX/Windows/Linux...

Linux, Ubuntu 14.04

VisualStudio.com or On-Prem TFS?

VisualStudio.com

If VisualStudio.com, what is your account name? http://account.visualstudio.com

elbarzil
What's not working?
I have the token thing turned on in the build definition ("Allow Scripts to Access OAuth Token"), which makes the agent do a little dance of setting it and then unsetting it, which leaves the repo in the worker's source directory with many [http "https://..."] lines.
I've tracked this to a git bug which I reported: here (Sorry about the weird url, gmane.org looks dead ATM.)  But just letting you know in case you'll want to hack around it, or in case there are other complaints.

@elibarzilay Thanks for report this, i noticed this problem while i am testing, I can fix the config file by call git config --remove-section, however, since we allow customer scripting git in build agent, they might add extra config value to that section. I understand having thousands of build per day will add lots of junk into the config file. I will think of finding a safe way to clean your config file.

@TingluoHuang -- well, see the replies I got in that thread...  The main problem happens when adding a config variable to a file that already has an empty section -- git will miss it, and blindly add a new section header.  (This is combined with the fact that removing a variable and leaving a section header leaves the header in -- looks like they want to remove such headers too, which is more tricky.)
So a quick and not-too-dirty way to fix it would be to add a second setting that never changes:
URL="https://foo.visualstudio.com/_git/bar"
git config http.$URL.autoset true
git config http.$URL.extraheader "AUTHORIZATION: bearer ********"
...
git config --unset-all http.$URL.extraheader

And that will resolve it.  Of course, the bogus-but-looks-meaningful variable can be set to something that can actually be useful -- a quick look at the man page shows a number of potential candidates:
git config http.$URL.sslVerify true
git config http.$URL.maxRequests 1
git config http.$URL.userAgent "git/$(git --version)/$(Agent.Listener --version)"

The last one is nice in that you get more version logging which can be useful.


Email for the distribution list returns error

Which Cloudflare product does this pertain to?
Time Services
Existing documentation URL(s)

https://developers.cloudflare.com/time-services/nts/

Section that requires update
Section: Next steps

If you would like to hear about the development of additional clients or updates on our service or would like to announce that your client supports NTS, email<EMAIL_ADDRESS>to be added to our distribution list.

What needs to change?
When I email<EMAIL_ADDRESS>I get the following reply:

Hello xx@xx,
We're writing to let you know that the group you tried to contact (time-services) may not exist, or you may not have permission to post messages to the group. A few more details on why you weren't able to post:

You might have spelled or formatted the group name incorrectly.
The owner of the group may have removed this group.
You may need to join the group before receiving permission to post.
This group may not be open to posting.

If you have questions related to this or any other Google Group, visit the Help Center at https://support.google.com/a/cloudflare.com/bin/topic.py?topic=25838.
Thanks,
cloudflare.com admins

The documentation should likely be changed to reflect that this group doesn't exist or there's a different procedure to subscribe to the distribution list.
How should it change?
The documentation should be updated with the correct procedure to subscribe to the distribution list.
Additional information
No response

Howdy @hanskuhn, should work if you email to<EMAIL_ADDRESS>


Xcode 8.3.2 Build success, but plugin non-functional, popup allowing Xvim not shown

Description
I can install Xvim successfully by using develop branch, but no VIM feature in Xcode when I open projects. I cant see the notice for: "allow xcode load Xvim from bundles".
Operation

/XVim  ➦ fa5224b  sudo make
xcodebuild -configuration Release
2017-04-21 21:00:23.704 xcodebuild[19159:92286] [MT] PluginLoading: Required plug-in compatibility UUID DFFB3951-EB0A-4C09-9DAC-5F2D28CC839C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XVim.xcplugin' not present in DVTPlugInCompatibilityUUIDs
=== BUILD TARGET XVim OF PROJECT XVim WITH CONFIGURATION Release ==
....
** BUILD SUCCEEDED **

Expected behaviour
XVim working in Xcode. At least show the popup that allows load Xvim.
Environments

Xcode Version [ 8.3.2 ]
XVim branch and revision [ develop / fa5224b ]
Keyboard Language [ English US ]
Input source language [ English US ]

Crash log (if any)
 [ Paste the log here ]

Have you followed the Install XVim for Xcode 8 instructions (re-signed Xcode)?

@tidbeck, sure I signed succesfully:  sudo codesign -f -s XcodeSigner /Applications/Xcode.app

oh sorry I found that I **didnot select "login" in the left pane **, let me redo.

Build failed if I use master branch.
The following build commands failed: 	Ld build/Release/XVim.xcplugin/Contents/MacOS/XVim normal x86_64

Build success and work well in Xcode 8.3.1

Xvim branch     develop
Xcode version  8.3.1

me too

Try to update compatibility UUIDs with the following command and restart Xcode:
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`

Followed @podkovyrin's command, re-signed Xcode and re-make works for me on 8.3.2

Has anyone else found another solution? I can't seem to get it to work using the command from podkovyrin

@rqueue Not sure what command did the trick, but I ran the following commands a couple of times:
$ defaults delete  com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-8.3.2
$ find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`
$ sudo codesign -f -s XcodeSigner /Applications/Xcode.app
$ make

Eventually XVim started to work in Xcode again. I'm also running Xcode 8.3.2 and I'm on the develop branch of XVim.

you should create an other sign and Re-signing Xcode again

It now works well on Xcode 8.3.2 with develop branch. Thank you all for your reply!

What did it in the end for me was opening the xvime project in xcode and building it there + all the other steps people mentioned

To clarify, if we want the latest plugin code, we need to use "develop" branch and NOT master?  Master fails to build for me (Undefined symbols for architecture x86_64:
"OBJC_CLASS$IDEPlaygroundEditor", referenced from:
anon in IDEPlaygroundEditor+XVim.o
l_OBJC$CATEGORY_IDEPlaygroundEditor$_XVim in IDEPlaygroundEditor+XVim.o
objc-class-ref in XVimHookManager.o
ld: symbol(s) not found for architecture x86_64)
But, https://github.com/pebble8888/XVim.git works.  I had no trouble with the codesign part.

I have the same problem, but my xcode version is 8.3.3. Any ideas, please.

@wellerqu have you tried opening the xvim project itself in Xcode and running it in addition to all the other steps people mentioned?

@WellerQu Have you tried develop branch of XVim? Master branch failed with make. But develop branch works for me on Xcode8.3.3.

@rqueue Yes, I have tried all the other steps in this issue. But can't get the expected result. And I get some warns:

@hidez Yeah, I have tried develop branch.

Thanks all. And I resolve it with @bduhbya 's solution.


corrected syntax error in 008 bash-arrays.md file

What type of PR is this? (check all applicable)

[ ] ♻ Refactor
[ ] ✨ Feature
[x] 🐛 Bug Fix
[ ] 👷 Optimization
[x] 📝 Documentation Update
[ ] 🚩 Other

Description
bug #66 has been corrected in .md file
please mark it hacktoberfest2022 if you can  : )
thanks You ❤

My git bash version is older ... I think this might be due to older version
I used to run the same command on online shell and results are same as yours .

My git bash version is older ... I think this might be due to older version
I used to run the same command on online shell and results are same as yours .

Thank you for confirming that you are using an older version, I'll close this PR in this case, but also marked it as HF accepted as it was a valid suggestion.

Thanks you @bobbyiliev for label 😁


KEDA chart for 2.9.0 is broken when podAnnotations are provided

When providing podAnnotations.keda in Helm values, Helm fails with an error Error: YAML parse error on keda/templates/12-keda-deployment.yaml: error converting YAML to JSON: yaml: line 37: did not find expected key.
After digging into Helm chart code, it's evident that when .Values.podAnnotations.keda is not empty AND .Values.additionalAnnotations is empty, invalid YAML will be produced by this snippet in 12-keda-deployment.yaml:
      {{- if .Values.podAnnotations.keda }}
      annotations:
      {{- toYaml .Values.podAnnotations.keda | nindent 8 }}
      {{- toYaml .Values.additionalAnnotations | nindent 8 }}
      {{- end }}

Since those values are not linked in any way, the presence of each should be checked separately.
Similar issue is present in 22-metrics-deployment.yaml:
      annotations:
      {{- toYaml .Values.additionalAnnotations | nindent 8 }}
      {{- if and .Values.prometheus.metricServer.enabled ( not .Values.prometheus.metricServer.podMonitor.enabled ) }}
        prometheus.io/scrape: "true"
        prometheus.io/port: {{ .Values.prometheus.metricServer.port | quote }}
        prometheus.io/path: {{ .Values.prometheus.metricServer.path }}
      {{- end }}
      {{- if .Values.podAnnotations.metricsAdapter }}
      {{- toYaml .Values.podAnnotations.metricsAdapter | nindent 8}}
      {{- end }}

Here .Values.additionalAnnotations is not checked for being non-null which caused invalid YAML to be rendered:
      annotations:
        {}  # <---- This is the rendered value of {{- toYaml .Values.additionalAnnotations | nindent 8 }}
        co.elastic.logs/enabled: "true"

Expected Behavior
Rendered YAML is:
      annotations:
        co.elastic.logs/enabled: "true"

Actual Behavior
Rendered YAML is:
      annotations:
        {}
        co.elastic.logs/enabled: "true"

Which causes Helm to fail
Steps to Reproduce the Problem

Provide podAnnotations.keda in values.yaml:

podAnnotations:
  keda:
    co.elastic.logs/enabled: "true"

Install Helm chart
Helm fails with YAML parse error

Specifications

KEDA Version: 2.9.0
Helm Chart Version: 2.9.0

Thanks for the report! Are you willing to open a PR for this?

Opened #346


optimized code

Hi, When will you release the full optimized code (with tensorRT)?

We plan to release the onnx+tensorRT inference code. Please stay tuned. Unfortunately, we don't have an exact ETA yet.

@jieli352  That would be a great chance to make it optimized fully with tensorrt support as well as more faster postprocess method.

Hi @jinfagang , Have you been able to optimize it further and @jieli352 can you give us an approximate time of release? because I'm finding difficulty in conversion into onnx graph!

@pushkar-khetrapal  Converting to onnx graph is not a big deal, but you need make sure it worth to do it (considerate computation cost mostly)

@pushkar-khetrapal Sure, the big issue here is very slow visualization and postprocessing in this demo code. If you can further accelerate postprocess and visualization in python, I think it could be more promising convert to tensorrt.
What's your error when converting to onnx? this repo it's also a 2 stage like model, so, it could be a little tough when combinging all into a single model.

@jinfagang Thank you so much for asking and yes, you are right. The model is made up of two stages. Yesterday, I converted pytorch model into onnx successfully. But now I'm getting this. 'NoneType' object has no attribute 'serialize' (The object here is engine which I created with onnx).

@pushkar-khetrapal You'd better visualize your onnx model with netron, check the model correctness, see what's it's input and what's it's output visualized.
Can u show some onnx graph let me see how's your onnx model exported?

Here is the onnx architecture, I excluded post processing step (class PanopticFromDenseBox) before converting into onnx. And I'm also using google colab. Is this a problem?

@pushkar-khetrapal in this case, you are going to forward model in postprocess, which seems you simple accelerate a detector in tensorrt not the whole model.

@jinfagang Yes, is this approach fine?
And how do I proceed for tensorRT now?

@pushkar-khetrapal you can try trace the whole model first

@jinfagang Hi, I traced whole but got alot of warnings (This might not work for another inputs) because of dynamic variables. I also try to build tensorRT engine but not able to do it. (Error while parsing the onnx model : constructor not defined). And also please check this , This is half model only backbone + panoptic head. (Exclude post processing). Please let me know where I'm doing wrong.


Video Uploads are extremely slow

Prerequisites

[X] I have written a descriptive issue title
[X] I have searched existing issues to ensure the issue has not already been raised

Issue
I am not sure what may be the issue but when uploading short length videos of less than 2MB the video upload is blazing fast.
However, the moment I tried to upload a 20MB video, the time it takes before busboy starts to process the video is so so long.
Here is my code snippet:

busboy.on('file', async function (fieldname, file, filename, encoding, mimetype) {

             console.log("Video Reached Busboy"); //This happened very fast

            if (!unProcessedFilePaths.includes(filename)) {

                let fileType = await FileService.getFileType(filename);
                let transferredBytes = 0;

                console.log(`On Data about to be called`);

                file.on('data', async (data) => {
                    console.log(`On Data is been called`);   //This is called only after about 2mins for a 20MB video. Weird

Please advise.
Thank you.

as a quick thought, you may want to experiment with highWaterMark size

@kibertoad Thanks for that insight. However, I'm not sure what the optimal sizes maybe.
Do you mind recommending sizes that will make my videos upload faster?
Thank you

Never had to do this kind of tweaking myself. Try increasing them significantly from defaults and measure whether it makes any perf difference for your use-cases.

limits.fileSize is limitting the allowed uploadable filesize. That wont help your case.
You have to take care of the highWateMarks of the streams. i think the default value is 16 kb. So imagine chunking 20 mb into 16 kb blocks, results in a big overhead.
Maybe increase it to 512 kb. Would be then 40 chunks for 20 mb.

Thank you so much for the detailed breakdown.
However for the 6e+8 I think it's just 600MB because I actually crossed checked with Google early on before setting it unless maybe I'm wrong.
Here is what the busboy documentation says about the file size:
fileSize - integer - For multipart forms, the max file size (in bytes) (Default: Infinity).
But here is the result I got from Google

Or am I wrong?
Thank you once again

Alright. Thank you


archive_url vs snapshot_url, what's the difference?

archive_url is described as "The public URL where to download the full historical tezos blockchain for quicker sync of the private node".
Using TezosShots, is this URL (mainnet full mode) ok?
https://tezosshots.com/download/461/
And what about snapshot_url ("The public URL where to download the tezos blockchain snapshot for quicker sync of the public nodes")? Rolling mode?

This is what I used:
archive_url="http://quicksync.chainlayer.io/tezos/tezos.mainnet.20190921.2324.archive.tar.lz4"
Please let me know if the tezosshots url worked.
The snapshot_url should point to a full snapshot, but you may swap this line with the comment https://github.com/hodl-dot-farm/tezos-on-gke/blob/master/tezos-baker/tezos-public-node-stateful-set.yaml#L53-L54
and then it may work with a rolling snaphsot. When I tried, it didn't work, but you may have better luck.


Add support for multidimensional univariate splines to scipy.interpolate.UnivariateSpline and subclasses

The scipy.interpolate.UnivariateSpline class and its subclasses only support one-dimensional univariate spline-curves like scipy.interpolate.splrep does, but not multidimensional univariate splines like scipy.interpolate.splprep.
I would be nice to have an object-oriented model for multidimensional univariate splines, even if not all features of the scipy.interpolate.UnivariateSpline class might be available. As far as I can see, at least evaluation and derivation should be available.

I would be nice to have an object-oriented model for multidimensional univariate splines, even if not all features of the scipy.interpolate.UnivariateSpline class might be available. As far as I can see, at least evaluation and derivation should be available.

And indeed, http://scipy.github.io/devdocs/generated/scipy.interpolate.BSpline.html#scipy.interpolate.BSpline
supports evaluation of differentiation of multidimensional splines.
Closing this one.


⚠ Syncthing-HEL has degraded performance

In d49090f, Syncthing-HEL ($URL_SYNCTHING_HETZNER_CLOUDSERVER_FI) experienced degraded performance:

HTTP code: 200
Response time: 4227 ms

Resolved: Syncthing-HEL performance has improved in 13dbb31 after 21 minutes.


Another fix for HEX string parsing from snmpwalk

Now this strings incorrectly parsed (with translated string inside):
.<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS> = Hex-STRING: 00 C0 FF 43 CE 45   [...C.E]

Good Lord, that's a silly bug! Thank you!


[FEAT] Add to_pylist on DataFrame

resolves #2578

Added to_pylist function in Dataframe to convert the dataframe into python list.
Added testcases for the feature.

Tested the memory usage of using iter_rows() and using result.to_pylist().  With the first approach, the memory usage was ~660MB and with the second approach, the memory usage was ~800MB.  Added a screenshot on both the approaches.
Using iter_row():

Using result.to_pylist()


Create LICENSE

From the list at https://github.com/substack/node-browserify#compatibility, the original repo for this is at https://github.com/devongovett/browserify-zlib, which has the license - https://github.com/devongovett/browserify-zlib/blob/master/LICENSE.

Updated


How to combine shap with the autoencoder

Dear author,
I am the naive one to the explanation of deep learning models, and am curious about how to give the feature importance of autoencoder or variational autoencoder, maybe here, I am interested in the relationship between the input features and the learned suppressed latent code. Could you please give me some ideas about how to handle this problem?
Thanks so much for your kind help!
zuo

any news on this issue?

I was just doing some literature review on this topic.  I see that there is an Arxiv paper and some code related to this question.
https://arxiv.org/pdf/1903.02407.pdf
https://github.com/ronniemi/explainAnomaliesUsingSHAP

@burgersmoke the single paper and github library which I also could find