[website] Fix code block on showcase sections

[x] I have followed (at least) the PR section of the contributing guide.

I'm not fully sure yet what caused this, but all of the code block components within these showcase sections got broken. I wonder if it has anything to do with the HighlightedCode component migration to the @mui/docs package, but I couldn't find anything obvious regarding that... In any case, this PR fixes that, plus adds a few other improvements.

Before
After

this PR fixes that, plus adds a few other improvements.

Can we scope the PRs to do one thing? Especially if they are regressions. We should also link which PR caused the regression

Can we scope the PRs to do one thing? Especially if they are regressions. We should also link which PR caused the regression

Sure, happy to narrow it down! Thing is, I'm not fully sure which PR or change is the exact culprit for what I'm trying to solve here. As I mentioned in the description, the most obvious candidate would be https://github.com/mui/material-ui/pull/41859, as it was the latest PR that tackled the related files, but I'm not seeing any functional changes aside from moving the components to a new location...

You are right about the PR in question. We had two different versions of the MarkdownElement component, one in docs/src/modules/components/MarkdownElement and one in docs/src/components/markdown/MarkdownElement, and they were both replaced by the same version. I think we just need to fix the imports. Let me know if this helps.

I would advise scoping the changes to only fix the regression, I know it's small adjustments, but if we have another regression it would be hard to track it back.

@mnajdova I could remove some tiny little tangential style adjustments, but they were all ultimately fixing broken stuff on these showcase-related sections, so they seem to make sense? Ultimately, this PR is mostly about fixing everything related to the code block on them.

I wasn't careful enough when renaming the imports. I'm also in favor of correcting the regression first and then improve the implementation. It does seem to be fixed in production, right? Or did we roll back docs deploy? As it was caused by me, is there anything I can do to help?
🙂 Have also a minor comment about the implementation. It feels strange to me to see the padding on the scroll container and not on the content. May be preference thing though, but correcting what was scroll container vs content was most of the fix in https://github.com/mui/mui-toolpad/pull/3451
https://github.com/mui/material-ui/assets/2109932/0ad1d54a-8030-4cce-b177-afb7ff7e4946
I also wish the border radius cut clipped the scrollbar.

I would advise scoping the changes to only fix the regression
I'm also in favor of correcting the regression first and then improve the implementation.

@mnajdova + @Janpot just so we're all on the same page before moving any longer forward — if I were to just fix the bug, I'd only change the import from @mui/docs/MarkdownElement to docs/src/components/markdown/MarkdownElement on the showcase-focused components within the marketing pages scope. That would solve the designs that got messed up.
So, is it preferable to have a PR focused on only that first and then carry this one on with enhancements on top of the fix, or would it be cool to carry on here? I can do both, but if we were with the first option, just for the sake of cleanliness—as this PR has a lot of convo going on already— I'd open a new one with the simple fix, and then continue onwards here (take the fix to a better implementation + tackle smaller additional details).

Yes, absolutely, two PRs allow us to progress at different speeds 👍


Unicode problem

When I run "\u2200" on ipython over TerminalView, I got

There is no issue on ipython over regular terminal nor Julia console over TerminalView.

There is also an issue that the unicode ×. When it is paste in the terminal, it shows

There is a workaround for the first issue: setting the LANG variable before launching ipython LANG=en_US.UTF-8 ipython
(randyimac)-commands$  LANG=en_US.UTF-8 ipython                                                                     (open_file)
Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 13:14:59)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.0.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: "\u2200"
Out[1]: '∀'

The second issue is still a problem.


1.24 SDK Feature Explorer

The current SDK feature explorer does not allow to filter for new component 1.24.
I think there are some metadata missing.
Also the explorer is not useable under ipad with IOS 8 (or very slow on changes)
Any news on this?
Cheers Holger

Hi Holger,
I am labeling this as enhancement to add a "since" or maybe "min. version" column to the explored samples tab. Maybe @akudev can give his opinion, but this sounds useful to me.
Best regards,
Matthais


Issue #130

Remove unused HttpClient code & resources

Hi @jnioche - sorry, but I realized there was still some cruft left around associated with HttpClient support, so this pull request finished what I started in issue #96.

thanks @kkrugler


Reference settings not saved

Subject: Reference settings not saved
Description:
I was writing a reference. I completed the first two steps about safety and community standing. While writing a text in the third step, I closed the tab by accident. I re-opened the tab.
Results:
When I re-opened the tab, I could continue the third step. However, on reviewing the reference, I found that the first two steps were not saved and defaulted to a negative reference.
Either the first two steps should have been saved, or the reference should have started from step 1 again, or unideally the first two steps should have defaulted to a neutral reference.
Backend version: develop-d7782a98
Frontend version: develop-d7782a98
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
Page: https://couchers.org/
User: stijn (4966)

At least we should check the first two step's state is present if the user has somehow skipped steps


TITLE token is broken when using umpv

Hi. I finally figured out how to integrate the umpv script into pipe-viewer. However, I ran into a problem: The special token *TITLE* is broken. I suspect that it is the arg syntax because in --force-media-title= there must be a container: '' however this already exists in env MPV='...' So there could be a conflict between the two. I forgot to mention that you need to set split_videos to 0 to get audio.
  video_player_selected       => "mpv",
  video_players               => {
                                   mpv => {
                                            arg   => "*VIDEO*",
                                            audio => "--audio-file=*AUDIO*",
                                            cmd   => "env MPV='mpv --really-quiet --force-media-title=*TITLE* --no-ytdl' umpv",
                                            fs    => "--fullscreen",
                                            srt   => "--sub-file=*SUB*",
                                          },

Try to use double quotes:
cmd   => "env MPV=\"mpv --really-quiet --force-media-title=*TITLE* --no-ytdl\" umpv",

After looking at the source code of umpv, we can see where the issue is:
opts = (os.getenv("MPV") or "mpv").split()

umpv simply splits the value of $MPV by whitespace, without taking into account any quotation marks, which is wrong.
A workaround would be to replace whitespace characters in the *TITLE*, with some other character, like -:
cmd   => "TITLE=\$(perl -E 'say\$ARGV[0]=~s/\\\s/-/gr' *TITLE*); env MPV=\"mpv --really-quiet --force-media-title=\$TITLE --no-ytdl\" umpv",

I can reproduce the issue outside of pipe-viewer as well:
env MPV="mpv --force-media-title=name1" umpv 1.mp4
env MPV="mpv --force-media-title=name2" umpv 2.mp4

The title will keep the name name1 while playing 2.mp4 as well.
That's because the $MPV option is read by umpv only when creating the socket when it doesn't already exist.


Broken code.

I gotta tell you, delete this code, rewerite the whole thing. I tried this thing. (Yes, I installed requests, etc.) But it just keeps erroring and it will just take a while to fix the code and it's syntax errors.  N0 did you actuaslly show any errors you have? NO .. what do you think he is here to serve you and do everything you beg for when its<PHONE_NUMBER>0% Free

First of all, I am telling the dev to fix the code.
Second of all, I am learning JS and Node myself, aswell making Discord bots.
And you don't need to be so harsh in your comments! @XxHailHydraxX

still dosent matter you started it by this stupid first sentence it was disrespectful as fuck .......  but till you know how to make it amd code it never disrespect someone that worked hard on it ..... just becasue it didnt work for you doesnt mean its not working for anyone else . so people find the repo and see issue  saying broken code and they may leave due to an error on you or your computer ................................
that's what your not getting i guess you never spent hours coding it and testing it ..............
so please till you learn how to code never tell someone to delete there code and rebuild it

But it's not disrespectful!
It's dev's job, not user's to fix the code, make it cleaner and better!
Rather than saying the dev's jobs as a programmer, you need to watch your sentences, because what you said is also disrespectful and rude, especially with the swear words.
Now, to top this conversation off, do you even know how it is to actually develop a program and fix the bugs, etc.?
@XxHailHydraxX

Yes! Python & Ruby and a little of RUST
you do realize what OPEN SOURCE means??
so if there is issues or problems you CAN fix without having  to decompile or unpack or crack ....
So its not the devs job to fix errors they crated the code and posted
He is making $0.00 ...... now if you bought it off him than yes ITS HIS JOB
i get it your new to all this and in time youll learn the lingo and how GITHUB works .... SO good luck  wish you the best when you learn it

this is basically a template to add or change or code or fix to your own preferences and needs
like i said your new and you dont understand it ..and im done so good luck With learning how to code

You have to learn more about the development, it's responsibilities, Github, and not to use swear words in comments.
As you ruined the whole issue, and this isn't an issue, but drama, created by you, I shall close the issue.
Hope you not have a good day.

I gotta tell you, delete this code, rewerite the whole thing. I tried this thing. (Yes, I installed requests, etc.) But it just keeps erroring and it will just take a while to fix the code and it's syntax errors. I recommend rewriting the script in JS/Node.js.
@Fl3t

Javascript is garbage for anything unless it's web development. And who are you telling someone to rewrite their code, you do it yourself. He doesn't have to comply.

First of all, I am telling the dev to fix the code. Second of all, I am learning JS and Node myself, aswell making Discord bots. And you don't need to be so harsh in your comments!  Learn manners and stop trying to boss someone around.

But it's not disrespectful!
It's dev's job, not user's to fix the code, make it cleaner and better! Rather than saying the dev's jobs as a programmer, you need to watch your sentences, because what you said is also disrespectful and rude, especially with the swear words.
Now, to top this conversation off, do you even know how it is to actually develop a program and fix the bugs, etc.?
 If the developer isn't being paid, they don't have to do jack sh*t. This is Github, both developers and community fix code together. You are disrespectful for trying to force the developer to do work for you.

You have to learn more about the development, it's responsibilities, Github, and not to use swear words in comments.
As you ruined the whole issue, and this isn't an issue, but drama, created by you, I shall close the issue.
Hope you not have a good day.

 GITHUB IS MADE FOR THE COMMUNITY, NOT JUST FOR BIG GAMING STUDIOS TO POST CODE TO PUBLIC DOMAIN.
This issue was never relevant. That's your fault.
Get off and learn what the term "FOSS" means and what "Git" was made for.

You have to learn more about the development, it's responsibilities, Github, and not to use swear words in comments.
As you ruined the whole issue, and this isn't an issue, but drama, created by you, I shall close the issue.
Hope you not have a good day.

 GITHUB IS MADE FOR THE COMMUNITY, NOT JUST FOR BIG GAMING STUDIOS TO POST CODE TO PUBLIC DOMAIN. This issue was never relevant. That's your fault. Get off and learn what the term "FOSS" means and what "Git" was made for.

i even forgot what this was about, this is over a 2 year old thread now 😭


Add class "quantity" #1510

Summary of the discussion
As described in #1510 and #1752 we want to restructure quantity values. Therefore we need a class "quantity", which I added in this pull request. The definition has been derived from the International vocabulary of metrology — Basic and general concepts and associated terms (VIM).
Based on this implementation some existing entities have to be reclassified in following PRs.
Add

Added a new class "quantity": A quantity is a quality of a material entity where the quality has a quantifiably magnitude (i.e. quantity value) that can be expressed as a number and a unit.

Workflow checklist
PR-Assignee

[ ] 🐙 Follow the Pull Request Workflow
[ ] 📝 Update the CHANGELOG.md
[ ] 📙 Add #'s to term tracker item

Reviewer

[ ] 🐙 Follow the Reviewer Guide
[ ] 🐙 Provided feedback and show sufficient appreciation for the work done

Looks good. We might add the axiom quantity 'has quantity value' some 'quantity value'.

Looks good. We might add the axiom quantity 'has quantity value' some 'quantity value'.

Are there quantities which cannot have quantity values? I don't think so. Thus I suggest to make it an equivalent class: quantity EquivalentTo: quality and 'has quantity value' some 'quantity value'.


Brainer Bees undoes Bumblezone's Bee wandering goal changes for its dimension

I am the developer of Bumblezone and I had to make a change to the wander goal of bees. What I found was the vanilla bee wander goal is both very inefficient (can cause lag with excessive bees) and can cause bees to get stuck on the ceiling of rooms.
I mixin into the Bee wander goal to both make it less laggy and more importantly, make the bees fly evenly through a space in midair instead of hugging the ground or getting stuck in the ceiling.
https://github.com/TelepathicGrunt/Bumblezone/blob/latest-released-Quilt/src/main/java/com/telepathicgrunt/the_bumblezone/mixin/entities/BeePathfindingMixin.java
https://github.com/TelepathicGrunt/Bumblezone/blob/bbf1566f7404707de1b9f5e9e68dd49948426a79/src/main/java/com/telepathicgrunt/the_bumblezone/entities/BeeAI.java#L11
However, Brainer Bees nukes all the bee goals and reimplements them as brains exactly with seemingly no changes. This is a problem because this is the behavior your mod has kept from vanilla bees:

Now this is a problem for Bumblezone while this is a picture of what I desired to do in Bumblezone's dimension (Brainer Bees is not on in pic):

This is what Brainer Bees makes bee do again in my dimension:

This bad for my dimension because now bees will hug the floor of the dimension until the reach a wall, then fly up the wall all the way to the ceiling and get stuck. Thus making my dimension look barebones with seemingly no bees around because they all are stuck and no longer evenly spread out through the big open space of my dimension.
Could you please add dedicated compat with my mod by calling my mod's BeeAI.smartBeesTM method if my mod is present and the bee is in my dimension? Thank you. Otherwise, I have no way of bringing back my bee wander changes and have to either mixin into Brainer Bees to add the check or mark Brainer Bees as incompatible with my mod.

I'll look into it

so the reason for their ai looking so similar to vanilla is because I wanted it to be as close to the real thing as possible. but trust me, it isn't the same. the bees will never forget where their home is unless it is obstructed or otherwise destroyed. this is by design. I think instead of adding dedicated compatibility for Bumblezone I'm just going to fix the issue itself, which really shouldn't be too hard


Wanting an account removed from a stream link

i changed my username on osrs but its showing someone else twitch channel on the OSRS Streamers plug in on runelite i would like the twitch link which is t.tv/un00000b be removed from my account  X M E because its incorrect i dont want it because its not mine thanks
RSN USER: R 8 X
the link i want removed t.tv/un00000b

Hey there, I just became a maintainer of this plugin. Just to confirm, you'd like "X M E" to be removed from your list, and add "R 8 X" added?

hi how u doing no id like for u to remove anything associated with those username please the link t.ttv/un00000b i want it off from the names please thanks

Sure thing! For verification purposes, can you make a quick video on your twitch stating that you'd like to be removed from the OSRS Streamers plugin? Link that here and make sure that it's available for non-subscribers and I can remove you from the plugin. Thanks!

hello i cant make a vid cuse thats not my twitch channel the reason i needed it off was because the person that had that ttv plugin changed theyre name in game and i took the name so now it showed his link for twitch but this isnt my twitch account

was it taken care of ?

Yes, "X M E" is no longer linked to that streamer.


parsl-visualize can show more workers in use than exist

Describe the bug
This plot shows more workers in use than are shown to exist. This should not occur and suggests that one or both of the plotted values is being counted incorrectly.

To Reproduce
Run parsl test suite with config htex_local_alternate.py. Look at worker efficiency plot.
Expected behavior
At the most superficial level, this plot shouldn't be showing more than 100% utilisation. At a deeper level, the two metrics being plotted should be calculated more accurately.
Environment
my laptop. fork from parsl master 34fe75fd27f7f0989e944c12930500bf90351733

I think what is happening here is that time is divided into 1 second buckets, and for every task, each bucket that it was running for part of, that bucket's count is incremented by 1.
So when a task ends and another task subsequently starts in the same 1 second bucket, that counts as 2 workers in use for the entire bucket. It should count as one worker in use.

While looking in this code, it also looks like the code uses task_try_time_returned, which does not count the sometimes significant delays in task ending handling. The running event used as the start time on a worker should probably be paired with the running_ended event, introduced in PR #2289, which is much more closely wrapped around actual worker work.

The total worker line looks like it is a constant horizontal line showing the total number of workers which existed during a run, without varying as the number of workers varies. That makes it not so useful for runs where there are multiple blocks of workers at different times.


New version: blaadje.Todolist version 0.43.18

Pull request has been created with WinGet Automation :rocket:
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:


If Collection fails, hide progress bar loading

If the collection fails with error, with error message loading progress displaying. needs to be removed if it fails.

Closed via pull #49.


Unable to install more than one instance with same package version

Cookbook version
5.4.0 (with the fix https://github.com/chef-cookbooks/sql_server/pull/114)
Chef-client version
13.0.118
Platform Details
Windows Server 2012 R2
Scenario:
I'm trying to use custom ressource to install two or more instance on the same server.
Steps to Reproduce:
Create a wrapper cookbook with the following content in the recipe:
sql_server_install `Install SQL Server 2016 =>  instance1` do
  source_url 'c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe'
  version '2016'
  package_checksum '0a9a202671068ddd160f9d535f0ab8523048805dba852c4b9f79193227a6cc64'
  accept_eula true
  instance_name 'INSTANCE1'
  feature %w(SQLENGINE, CONN)
end

sql_server_install `Install SQL Server 2016 =>  instance2` do
  source_url 'c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe'
  version '2016'
  package_checksum '0a9a202671068ddd160f9d535f0ab8523048805dba852c4b9f79193227a6cc64'
  accept_eula true
  instance_name 'INSTANCE2'
  feature %w(SQLENGINE, CONN)
end

Expected Result:
I expect that the two instances are installed at the end of the chef-client
Actual Result:
Only the first instance is installed. The second instance show this message:
[2018-01-10T14:28:10+01:00] DEBUG: windows_package[Microsoft SQL Server 2016 (64-bit)] checking package version
[2018-01-10T14:28:10+01:00] INFO: Processing remote_file[c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe] action create (dynamically defined)
[2018-01-10T14:28:10+01:00] DEBUG: remote_file[c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe] checksumming file at c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe.
[2018-01-10T14:28:10+01:00] DEBUG: remote_file[c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe] checking for changes
[2018-01-10T14:28:10+01:00] DEBUG: remote_file[c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe] checksum matches target checksum (0a9a202671068ddd160f9d535f0ab8523048805dba852c4b9f79193227a6cc64) - not updating
[2018-01-10T14:28:10+01:00] DEBUG: windows_package[Microsoft SQL Server 2016 (64-bit)] fetched source file to c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe
[2018-01-10T14:28:10+01:00] DEBUG: windows_package[Microsoft SQL Server 2016 (64-bit)] checking package version
[2018-01-10T14:28:10+01:00] DEBUG: windows_package[Microsoft SQL Server 2016 (64-bit)] Microsoft SQL Server 2016 (64-bit) [nil] already installed
[2018-01-10T14:28:10+01:00] DEBUG: windows_package[Microsoft SQL Server 2016 (64-bit)] is already installed - nothing to do

This problem seems to be due to package ressource that is idempotent with the package name /display name from Windows Registry. I have no idea to bypass this :(
Best Regards,

Hi,
Do you know if there is a road map for this feature or not ?
Regards

@F-Fab There is not currently a road map for this feature. My best recommendation is to look at this blog post https://www.habitat.sh/blog/2018/01/a-plan-for-sql-server/ as it may be a better option to accomplish this. To get multiple instances to work would require another re-write of the custom resources.

We also need support for this.


Why use InternVL2 as the caption model？

great work！
Why use InternVL2 as the caption model？
Does InternVL2 work best in the experimental phase?

Thanks for your attention to our work!
At the start of this project, InternVLM was one of the top-ranked models in multi-modal understanding benchmark at the time, so we chose it.


I wish for code completion to give me options from a const Map

Flutter has some big const maps (e.g. Color) that we've seen all of our UX study participants use. They get this far: Colors.blue and then try to code complete. Nothing happens :(
blue is a big const map. Could the analyzer provide code completion options for const maps? Or at least give me map operators when I'm trying to code complete a variable that is a map. And, then if I code complete again, shows me all keys for the map. (because it's a const map)
or, maybe it does and we just need to wire it up more?
Thanks!

Yes, it's quite possible for server to provide these suggestions. Not sure how much work is involved, but we have the information we need.

I suspect that this issue has been addressed in other ways now. Please re-open if not.

Hi. Just tested, doesn't appear to be working in DartPad at least:

I'm not sure what else is expected when typing map.. These are the properties and methods on a Map.

I don't think there's anything more we can suggest for map.^, but it might be interesting to suggest the known keys for map[^].

blue is a big const map.

It's not a Map. It does defines operator [], but that operation cannot be used in a const context.
It might still be worth implementing support for const Map instances and map[^], however I do not believe that will satisfy the original request.

I'm guessing that this feature would no longer be useful, so I'm going to close the issue.


Optimising node to node communication by serializing node attribute in DiscoveryNode only in scenarioes where it is required

Backport https://github.com/opensearch-project/OpenSearch/pull/15341
Signed-off-by: RS146BIJAY<EMAIL_ADDRESS>(cherry picked from commit ca25f5810a892dbcb2b378ee2a5c5cc4632cabe1)

Description
[Describe what this change achieves]
Related Issues
Resolves #[Issue number to be closed when this PR is merged]

Check List

[x] Functionality includes testing.
[x] API changes companion pull request created, if applicable.
[x] Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Lets raise a commit to make 2.17 as the version on main

Lets raise a commit to make 2.17 as the version on main

Ack.


Added myself to contributors #1 and #6

I have successfully added my details to contributorData, added Home Button and styled the Home button. This is my first pull request hope you would accept it.🙂

Hi! SoundaryKhanapur,
I have added my information to contributors.js.
I have also created the code for home button but as the contributors file had contributor.jsx file (Sorry! I don't know about React), therefore I have created a JavaScript file(Contributors-HomeButton.js) which contains the code for home button.
hash commit for the file(Contributors-HomeButton.js) is 7a8f6a41da262935a98ab149e14f0b4b7a10df83 .
I have also designed the button and added the code to Contributor.css, hash commit for the same is 23853e27a5cab7ddfc65aedb3c1327c09af5835b.
Please look into the code and if you feel that the code will work for you please accept the pull request.😊

Hey, please could you create separate pull requests for the two tasks?

Use this branch for latest changes


Closes #767 - Fix Broken documentation links.

Addressing comments and issues raised in #767

Fix broken API documentation links.
Unify SDKs and Mentat under same version number.
Reorganize API documentation under version number.
Add latest symlink to point to the latest API documentation version.
Update .gitignore to ignore documentation related directories and files.
Add README to /docs to include local build instructions.
Update API documentation.

So it turns out that you have to create the symlink inside the directory where the link it so be created in order for git to understand the link, so ln -s docs/0.7 docs/latest won't work but cd docs && ln -s 0.7 latest will.
Also, I stupidly didn't check in the correct editing of the link in index.md. Sorry.


shape: set z-order of shape in slide

@scanny Any pointers as to where to look in the code for something like this ?

The z-order of shapes on a slide is determined solely by their document order in the slide part (e.g. slide1.xml). So the general gist would be to re-order that sequence of elements. The shapes in a slide are contained in the slide's "shape tree", a <p:spTree> element with the same syntax as the group shape, just the different name. The object I expect you'll want to look at first is pptx.shapes.shapetree.SlideShapeTree and its parent BaseShapeTree, which is what you get from slide.shapes. The _spTree attribute on that object gives you the lxml object for the <p:spTree> element, which would allow you to reorder shapes.
If you see how far you can get with that, feel free to ask more questions about the finer points, as needed :)

Thanks @scanny
We ended up using shapes._spTree.remove and shapes._spTree.insert to swap elements, like you said!

If you can post the operative bit of the code you developed, that would be a help to others who arrive here on search :)

An example with a picture:
picture = slide.shapes.add_picture(
    image, Cm(left), Cm(top), height=Cm(height)
)
# move picture to background
slide.shapes._spTree.remove(picture._element)
slide.shapes._spTree.insert(2, picture._element)  # use the number that does the appropriate job

Awesome, thanks @NotSqrt :)

+1 for this feature request. I tried the example above but it seems to create a slide that crashes powerpoint when opened.

when I try to do this :
shape = shapes.add_shape(MSO_SHAPE.RECTANGLE,left,top,width,height)
slide.shapes._spTree.remove(shape._element)
an error says:
shape object has no attribute ’_Element'
did I make a mistake here?

Looks like a typo. All shapes have the attribute ._element, not ._Element.

It is not a typo actually, I typed shape._element or shape._Element , Error always says:
shape object has no attribute '_Element'

Not a typo

What is the type of the object you get back?
shape = shapes.add_shape(MSO_SHAPE.RECTANGLE, left, top, width, height)
print(shape.__class__)  # or perhaps print(shape.__class__.__name__)

And what available attributes to you find when you introspect into shape?
print(dir(shape))

Is there a workaround other than using _spTree.remove and _spTree.insert? It creates corrupted pptx files which generate an alert when opening in MS Powerpoint. Thanks

I don't believe you have to actually remove and insert to change the order. Perhaps counterintuitive to the naming, I believe the .addprevious() and .addnext() lxml methods actually move the XML element in question.
So you could do something like this to move a shape from ninth position to fourth:
# shape will be positioned relative to this one, hence the name "cursor"
cursor_sp = shapes[3]._element

cursor_sp.addprevious(shapes[8]._element)

thanks @scanny! I used the following to move a picture I added using add_picture to the background:
cursor_sp = shapes[0]._element cursor_sp.addprevious(pic._element)

@chrismcmc Glad to hear you got it working :)


Kubernetes HA - Test automation (automatic HA cluster deployment + serverspec scripts)

Is your feature request related to a problem? Please describe.
We don't have Kubernetes HA cluster test automation.
Describe the solution you'd like
We want to have Kubernetes HA cluster test automation and serverspecs.

We want to prepare the pipeline in Azure DevOps for testing the K8s HA installation.

Configuration that should be included in the yaml file:
---
kind: configuration/shared-config
title: Shared configuration that will be visible to all roles
name: default
specification:
  use_ha_control_plane: true
provider: aws

We want to have serverspec test scripts for testing HA functionality (in particular to check ETCD, multi-master communication, reverse proxy, node-master communication) should be written to make sure everything works as it should.

Describe alternatives you've considered
No alternatives.
Additional context
No additional context.

@przemyslavic can you write if things mentioned by @toszo are tested?

@przemyslavic please review this one.

The pipeline for testing Kubernetes HA deployments was created some time ago and is available in Azure DevOps.
Closing this task.


REPL clobbers Python prompts

Not a new issue, but I'm writing it down so I don't forget to address it. I knew this was going to happen when I wrote the REPL code, but couldn't see a good way to avoid it at the time. Python's REPL prompts are stored in sys.ps1 and sys.ps2. Lissp's REPL is based on code.InteractiveConsole and overwrites these to be the Lissp prompts, because the superclass reads them from there. An unfortunate design flaw.
That means that if you start a code.interact() session from within the Lissp REPL, you keep getting the Lissp prompts, which is confusing. It's nice to be able to drop into Python from the same environment, so it could come up. The resulting Python console is perfectly functional, so perhaps this is a minor issue.
The methods are also too large to override easily, short of copy/pasting library code. The best available approach may be monkeypatching with unittest.mock.patch as briefly and as close to use as possible. It's times like this when I wish Python had dynamic variables like Lisp. Contextvars come close, but they're not a drop-in replacement for a global, since you still have to call the .get() method to dereference. Monkeypatching like this is somewhat brittle, but using the prompts from sys is documented behavior in the code module, so this case should work.

From the Python docs on sys.ps1 and ps2:

Their initial values in this case are '>>> ' and '... '. If a non-string object is assigned to either variable, its str() is re-evaluated each time the interpreter prepares to read a new interactive command; this can be used to implement a dynamic prompt.

Looks like input() calls str() on its prompt object, so this is more dynamic than I thought. An class with a __str__ override could call .get() on a contextvar. Still doesn't cooperate that well if some other code tries to assign that though.
I also found a better place to override the prompt: the raw_input() method. I initially glossed over this because I thought it was only for getting input, but it also outputs the prompts. Monkeypatching will not be required.


The only difference in them is one empty line in a Rust source file.

I'm going to close this, please open another issue with the cause of the failure in run #1369 (or at least the error from that run).

That's the panic that ended up terminating the test, but is not the cause of the failure.
The cause will be somewhere above that, prior to sosreports being collected.

It looks like the cause was this
12:46:12  Jul 21 09:46:12.175 DEBUG iml_system_test_utils::ssh: Running command iml filesystem detect on <IP_ADDRESS>
12:46:12  Jul 21 09:46:12.175 DEBUG iml_cmd: Running cmd: Command { std: "ssh" "-o" "StrictHostKeyChecking=no" "-o" "UserKnownHostsFile=/dev/null" "-i" "id_rsa" "<IP_ADDRESS>" "iml filesystem detect", kill_on_drop: false }
12:46:12  Warning: Permanently added '<IP_ADDRESS>' (ECDSA) to the list of known hosts.
12:47:48  ✗ The following commands have failed:
12:47:48  Detecting filesystems

iml-rpm-system-test seems ok

for iml-docker-system-test you need to look at the logs within the adm sosreport and find any tracebacks, that will point at the underlying cause.

iml-rpm-system-test seems ok
I though it wouldn't create diagnostics in that case

for iml-docker-system-test you need to look at the logs within the adm sosreport and find any tracebacks, that will point at the underlying cause.

Will do

I thought it wouldn't create diagnostics in that case

Diagnostics are created for every run regardless of pass / fail state.

Tracebacks from adm from failing run:
plugin_runner.log:302:[2020-07-21 09:24:44,420: ERROR/rpc] RunOneRpc: exception calling setup_host: Traceback (most recent call last):
plugin_runner.log:347:[2020-07-21 09:24:44,711: ERROR/rpc] RunOneRpc: exception calling setup_host: Traceback (most recent call last):
plugin_runner.log:363:[2020-07-21 09:24:44,713: ERROR/rpc] RunOneRpc: exception calling setup_host: Traceback (most recent call last):
job_scheduler.log:817:[2020-07-21 09:24:44,448: DEBUG/rpc] Completed rpc: setup_host, id: 57330de0-ffe5-4f7f-8ab0-aac21e876630, result: {u'exception_type': u'AssertionError', u'exception': u'', u'traceback': u'Traceback (most recent call last):\n\n  File "/usr/share/chroma-manager/chroma_core/services/rpc.py", line 107, in run\n    "result": self.rpc._local_call(self.body["method"], *self.body["args"], **self.body["kwargs"]),\n\n  File "/usr/share/chroma-manager/chroma_core/services/rpc.py", line 622, in _local_call\n    return fn(*args, **kwargs)\n\n  File "/usr/share/chroma-manager/chroma_core/services/plugin_runner/__init__.py", line 24, in setup_host\n    self.handlers[plugin_name].setup_host(host_id, data)\n\n  File "/usr/share/chroma-manager/chroma_core/services/plugin_runner/agent_daemon.py", line 91, in setup_host\n    assert session is not None\n\nAssertionError\n', u'result': None, u'request_id': u'57330de0-ffe5-4f7f-8ab0-aac21e876630'}
job_scheduler.log:887:[2020-07-21 09:24:44,720: DEBUG/rpc] Completed rpc: setup_host, id: c9ae7d6c-7e26-4928-a404-c49cf01fc966, result: {u'exception_type': u'AssertionError', u'exception': u'', u'traceback': u'Traceback (most recent call last):\n\n  File "/usr/share/chroma-manager/chroma_core/services/rpc.py", line 107, in run\n    "result": self.rpc._local_call(self.body["method"], *self.body["args"], **self.body["kwargs"]),\n\n  File "/usr/share/chroma-manager/chroma_core/services/rpc.py", line 622, in _local_call\n    return fn(*args, **kwargs)\n\n  File "/usr/share/chroma-manager/chroma_core/services/plugin_runner/__init__.py", line 24, in setup_host\n    self.handlers[plugin_name].setup_host(host_id, data)\n\n  File "/usr/share/chroma-manager/chroma_core/services/plugin_runner/agent_daemon.py", line 91, in setup_host\n    assert session is not None\n\nAssertionError\n', u'result': None, u'request_id': u'c9ae7d6c-7e26-4928-a404-c49cf01fc966'}
job_scheduler.log:899:[2020-07-21 09:24:44,750: DEBUG/rpc] Completed rpc: setup_host, id: 9d9ff33d-50dd-4291-b1f7-226994fd54de, result: {u'exception_type': u'AssertionError', u'exception': u'', u'traceback': u'Traceback (most recent call last):\n\n  File "/usr/share/chroma-manager/chroma_core/services/rpc.py", line 107, in run\n    "result": self.rpc._local_call(self.body["method"], *self.body["args"], **self.body["kwargs"]),\n\n  File "/usr/share/chroma-manager/chroma_core/services/rpc.py", line 622, in _local_call\n    return fn(*args, **kwargs)\n\n  File "/usr/share/chroma-manager/chroma_core/services/plugin_runner/__init__.py", line 24, in setup_host\n    self.handlers[plugin_name].setup_host(host_id, data)\n\n  File "/usr/share/chroma-manager/chroma_core/services/plugin_runner/agent_daemon.py", line 91, in setup_host\n    assert session is not None\n\nAssertionError\n', u'result': None, u'request_id': u'9d9ff33d-50dd-4291-b1f7-226994fd54de'}

Details:
[2020-07-21 09:24:44,420: ERROR/rpc] RunOneRpc: exception calling setup_host: Traceback (most recent call last):

  File "/usr/share/chroma-manager/chroma_core/services/rpc.py", line 107, in run
    "result": self.rpc._local_call(self.body["method"], *self.body["args"], **self.body["kwargs"]),

  File "/usr/share/chroma-manager/chroma_core/services/rpc.py", line 622, in _local_call
    return fn(*args, **kwargs)

  File "/usr/share/chroma-manager/chroma_core/services/plugin_runner/__init__.py", line 24, in setup_host
    self.handlers[plugin_name].setup_host(host_id, data)

  File "/usr/share/chroma-manager/chroma_core/services/plugin_runner/agent_daemon.py", line 91, in setup_host
    assert session is not None

AssertionError

[2020-07-21 09:24:44,448: DEBUG/rpc] Completed rpc: setup_host, id: 57330de0-ffe5-4f7f-8ab0-aac21e876630, result: {u'exception_type': u'AssertionError', u'exception': u'', u'traceback': u'Traceback (most recent call last):\n\n  File "/usr/share/chroma-manager/chroma_core/services/rpc.py", line 107, in run\n    "result": self.rpc._local_call(self.body["method"], *self.body["args"], **self.body["kwargs"]),\n\n  File "/usr/share/chroma-manager/chroma_core/services/rpc.py", line 622, in _local_call\n    return fn(*args, **kwargs)\n\n  File "/usr/share/chroma-manager/chroma_core/services/plugin_runner/__init__.py", line 24, in setup_host\n    self.handlers[plugin_name].setup_host(host_id, data)\n\n  File "/usr/share/chroma-manager/chroma_core/services/plugin_runner/agent_daemon.py", line 91, in setup_host\n    assert session is not None\n\nAssertionError\n', u'result': None, u'request_id': u'57330de0-ffe5-4f7f-8ab0-aac21e876630'}

Looks like the actual error is this
2020-07-21T09:47:42.069550166Z [2020-07-21 09:47:42,069: ERROR/job_scheduler] Job 34 step 1 encountered an agent error: Could not contact server oss2.local no session after 30 seconds


fix: version to contain all fields for tests

incl. additional fields for rust-ipfs-api.

The test failure seems similar to the one you fixed against Windows... Did you get to the bottom of why this happens? With the failing test my idea was to create inmemory instance and I didn't remember the default does IO.

Fixing the flaky tests in #113 even though these now look green. It's quite a wait for the windows.


Menu cache is flush not working as expected

Expected Behaviour
Changing a category name in Magento should be reflected in the AEM Menu after TTL has expired.
Actual Behaviour
TTL is set to venia/components/commerce/navigation:true:5:300.
After changing the name in magento it changed in AEM, but it took about an hour.
Steps to Reproduce

Use Venia OOTB
Change category name in Magento
Wait for TLL (eg. 5 min) as set in config
Check in AEM if menu item name has changed.

Platform and Version

CIF 2.0
AEM as a cloud service
Tested only on author instance

@frappierer , the CIF navigation cache (or menu cache) is working as expected, including cache expiration on timeout.
You can check this by configuring POST requests in the GraphQL client OSGi configuration to not have Graphql caching for your requests on the Magento side.
It's very likely that you have GraphQL caching enabled for Magento, which has a longer expiration time than what you configured for navigation.


Robotino config fails validation after import

Describe the bug

The ports "BN" and "BU" of the optical sensors are recognized as already taken after importing

To Reproduce
Steps to reproduce the behavior:

Go to robotino
export any program
import it
try starting the program or opening the simulation
see error

Expected behavior

The ports BN and BU should not be checked whether or not they are taken

Additional context

The AbstractRobotinoValidatorAndCollectorVisitor already includes "BN" and "BU" as NON_BLOCKING_PROPERTIES but the ports change after imports from BN/BU to +/-
This means there is likely a difference between the set default configuration and the blockly implementation of the configuration component.
changing the NON_BLOCKING_PROPERTIES to this:
    private static final List<String> NON_BLOCKING_PROPERTIES = Collections.unmodifiableList(Arrays.asList("BN", "BU", "M1", "M2", "M3", "+" , "-"));
fixes the issue but it should rather be fixed that the ports do not change after import

This seems to be a general issue with fixed ports. After exporting any fixed port they change from something like ['VCC', '5V'], to ['5V', '5V'] in the XML.
This is only caught by the robotino because of an automated checker for every port name, which needs to exclude ports if they are not supposed to be checked. In this case, the ports BN/BU are excluded, but after importing, the name is changed to +/-.
A workaround would be to add +/- to the excluded ports. This is a very simple fix that is done in this PR.

The issue has been resolved in this Blockly commit and the Workaround is not longer needed. Instead only the tests of the robotino should be adjusted to include the fixed ports. This way the Integration tests would catch an error like this one.

tested


Add configmap_storage util to configuration storage library

Coverage increased (+0.2%) to 74.622% when pulling 0ef5b3142de1e9e1e9729e9c7b177bbfaa401606 on yuye/s into 5f613ef105e8234f736142cce357128143814cf5 on master.

Coverage increased (+0.2%) to 74.622% when pulling 0ef5b3142de1e9e1e9729e9c7b177bbfaa401606 on yuye/s into 5f613ef105e8234f736142cce357128143814cf5 on master.

Coverage increased (+0.2%) to 74.622% when pulling 0ef5b3142de1e9e1e9729e9c7b177bbfaa401606 on yuye/s into 5f613ef105e8234f736142cce357128143814cf5 on master.


Method didDiscoverDevice returns Bluetooth MAC address instead of name

Steps to reproduce
In method didDiscoverDevice,  bluetoothPeripherial.name contains instead of string value with device name only MAC address of that given device.
Expected
I/BlueFalcon: Discovered device : DeviceNameXY
Actual
I/BlueFalcon: Discovered device : 46:95:8F:86:74:A0
Additional info
Device - Samsung XCover Pro
OS version - Android 10
Library version - "dev.bluefalcon:library:0.7.2"
Anyone else experienced similar issue before?
Note:
This could be also an Android issue, because sometimes when I am trying to pair a new device in a place where are too many of advertising Bluetooth devices at the same time, even default system settings app couldn't read device names, and shows just MAC addresses.

Now I see what causes this behaviour, if device name is null, device address is returned instead,
From class BluetoothPeripheral:
 actual val name: String?         get() = bluetoothDevice.name ?: bluetoothDevice.address

Yep its intentional to ensure something is returned, as apposed to nothing.


make polymer's build.dart smarter about entrypoints

 Issue by sigmundch
Originally opened as dart-lang/sdk#20396

Now that the information is also in the pubspec.yaml, let's read it from there and not specify it twice.
This should make it very easy to write a build.dart as a single line Dart script:
  export 'package:polymer/builder.dart'

 Comment by sigmundch

Agree - that's my long term goal too. This bug is to get one step closer and make build.dart as small as it can be, and get rid of the redundancy we have with the pubspec file until we reach that point.

 Comment by justinfagnani

I'd rather get rid of build.dart altogether. Transformers should have a better contract with the analyzer.

 Comment by zoechi

Why is build dart needed anyway. Shouldn't this all be done by the analyzer?

 Comment by sigmundch

The analyzer is not aware of most of the polymer logic, so we use build.dart to show nice error messages in the DartEditor that we discover in our linter. One day we hope the analyzer will allow to have plugins so we can include polymer-specific logic that way.

 Comment by jakemac53

Fixed in dart-lang/sdk@eb1c71078a4e5f327e1c244a355a601802f3d79d

Added Fixed label.

 Comment by jakemac53

Set owner to @jakemac53.


Localization and support for white background

Hi
As requested the pull request.

Localization support as noted in my other request
Clean handling of white (or other) background color

Please be lenient regarding pull etiquette, I am not very experienced with this Pull / Fork etc stuff ;-)
Let me know if it works for you.
Thanks
Graham

@glancashire It is super helpful for us! Your pull etiquette is everything ok. Thanks a lot!


Fix no terraform and no vagrant setup

This PR already has https://github.com/wcm-io/wcm-io-maven-archetype-aem-confmgmt/pull/6 included.
Major changes:

only create swap file when target system has not already a swap (otherwise this may collide with LXC virtualized environments)
Do not use proxy during dispatcher flush and dispatcher smoke test
Add host file creation for dev and prod when not running in ec2 (added not_ec2 group for this purpose)
Update dev and prod environment with required conga variables
Update roles wcm_io_devops.conga_aem_dispatcher_smoke_test and wcm_io_devops.conga_host_facts
Changed localhost connection to localhost ansible_connection=local to avoid issues with not existing ANSIBLE_VAULT_PASSWORD_FILE when running wcm_io_devops.conga_maven

thanks!
bq. Do not use proxy during dispatcher flush and dispatcher smoke test
does this makes sense in general, not only if EC2 is not used?
should any of this optimizations should be done conditional only when optionTerraform is not activated?

@stefanseifert the noproxy option makes absolutely sense in general, this is not specific to the variant.
None of the new added options are specific to the optionTerraform=no variant.


xen 4.8: add xsa security patches 252-256

Motivation for this change
Apply latest upstream security patches up to XSA-256.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

/cc @oxij : in addition, we could bump 4.8.2->4.8.3 but I'm not sure this is worth it. What do you think?

I think any bugfix update is worth it :)

ok, I'll start working on it

Huge thanks!


Support for custom metric

This adds support for custom metrics, allows dropcol to work without OOB score and adds support for sample_weights to all scoring functions.

@parrt If the above makes sense, I think the next thing I would like to address would be allowing metrics to be a dict of name => callable.

Looks great, thanks!

Can you respond with a comment that you agree to release this under the MIT license of this repository?

I agree to release it under MIT license.
Does it push to pip automatically? Would be nice not to use my git version locally. Thanks!

I saw one typo that I need to reverse quickly.

oh. i'll wait to push


Searching large projects is too slow

Ubuntu 12.04, vscode 0.10.1
I have found Go to file's indexing against a full Chromium workspace to be very slow. It took ~40 seconds to find "Tab.java" whereas a simple find command took less than a second:
$ time find . -name "Tab.java"
./chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java

real    0m0.559s
user    0m0.268s
sys 0m0.284s

Note that the workspace is on an SSD.

I can confirm that this issue also exists on windows in the newest february 2016 release. This is a usability break for large projects

@bpasero could a find for (term)* be run in parallel and those result(s) shown while the fuzzy search is happening to speed up an ideal search?

@Tyriar in my experiments using find or any other external process did not yield significant speed improvement over what we do now. the reason is that we do quite some heavy pattern matching and other things with the result before it even reaches the user. The better fix is to keep the list of paths in memory once you ran the search once and reuse that information.

Check this post on reddit by author of sublime text on how they totally nail it https://www.reddit.com/r/programming/comments/4cfz8r/reverse_engineering_sublime_texts_fuzzy_match/

@haisum thanks so much for sharing, what a coincidence that I am currently looking into improving our scoring algorithm.
Note however that this is not really talking about how to make find in files fast, rather how to score the results for the quick open box.

@bpasero  yup I checked, it's not in much depth but I thought it may help in getting some perspective.

Let me know if I am link spamming here but I think this also seems relevant example. https://github.com/wincent/command-t/blob/master/doc/command-t.txt. It's open source and super fast vim plugin for file searching.

No worries, keep 'em coming :+1:

You guys thought about using something like lucene to do that sort of
pattern matching? Just index all the source in the background. Pretty quick
and portable (but we don't use it for source indexing)
On Wed, Mar 30, 2016 at 9:55 PM, Benjamin Pasero<EMAIL_ADDRESS>wrote:

No worries, keep 'em coming [image: :+1:]
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/vscode/issues/55#issuecomment-203329911

--
Justin Romaine
Senior Systems Architect
Spark Dental Technology
<EMAIL_ADDRESS>ph 021 764 506
hm 09 445 9166

The fact that we need to search source code might make Lucene a less ideal candidate. We also need to support regular expression searches.

true.
On Thu, Mar 31, 2016 at 6:05 PM, Benjamin Pasero<EMAIL_ADDRESS>wrote:

The fact that we need to search source code might make Lucene a less ideal
candidate. We also need to support regular expression searches.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/vscode/issues/55#issuecomment-203754273

--
Justin Romaine
Senior Systems Architect
Spark Dental Technology
<EMAIL_ADDRESS>ph 021 764 506
hm 09 445 9166

Please also look into how fzf is implemented. It has a simpler scoring system (just plain subsequence search I believe) but it's extremely fast. It doesn't even build an index AFAIK.
FWIW this would be the killer feature that would most certainly get me to switch to VS Code. But in any case thanks for your hard work.

@bpasero would it be interesting to have something like: https://github.com/ggreer/the_silver_searcher as a dependency and use it? Seems powerful for file searches.
#justMy2Cents

If fuzzy search can be brought to parity with other editors it would make VS Code the hands-down choice for me. I still prefer it for smaller projects, but for larger ones I really have no choice but to use Sublime or Atom.
Not sure what the timeline looks like on this.

The fact that we need to search source code might make Lucene a less ideal candidate. We also need to support regular expression searches.

Would it be reasonable to layer in different kinds of results at different times (with some sort of indicator that a search is still progressing)?  Even fuzzy matching file names has a fair bit of delay for medium sized projects (with, say, node_modules/ excluded)

I have added a unit test for measuring file search performance with a large workspace, instructions and results from the optimization with #9380 are in #9545.

I'm using "insider build" and using vscode to browse Linux kernel over sshfs.
Even when entering full path like 'mm/slab.c', file search (using Ctrl + P) takes a long time. Also, it seems there is no caching of file paths, so repeated searches in same sub-paths remain slow.
In comparison, sublime text over sshfs is able to fuzzy find files almost instantaneously. It must be caching FS tree. Hitting sshfs (or any network mount) for every find request is not feasible.

＋1

Please don't comment "+1". Use the reaction button on the comment to show
your approval/appreciation.
On Aug 8, 2016 4:28 PM, "Acai"<EMAIL_ADDRESS>wrote:

＋1
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/55#issuecomment-238254831,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA9KSJ-l3mTnqiPvafgosqzsBZdo9Qinks5qdz0cgaJpZM4Gk1Ax
.

Moving to Christoph who is making great progress on tuning this (already for last milestone, continuing in this milestone) 👍

For the fuzzy finding, over in Nuclide, we use fuzzy-native, which are Node bindings for wincent/command-t with multithreading support. It's crazy fast.

Thanks for sharing @zertosh!

Our fuzzy sorting is reasonably fast at this point. It might still be an overall improvement if we can make it faster (time permitting).
Most of the time is currently spent in the file traversal. I've just switched over to use native commands (find/dir) to do that, yet it remains the main part where time is spent.
My measurements using Pythons os.walk() indicate that it would be faster to use a native module that uses Posix readdir (and a similar API on Windows, like Python does). Implementing this ourselves is out of scope at this time, it would likely benefit the wider node community.

I find this post very interesting: https://lists.freebsd.org/pipermail/freebsd-current/2010-August/019310.html

There is an npm package implementing a simplified version of Boyer-Moore mentioned in the above article: https://www.npmjs.com/package/streamsearch

Our full text search matching actually uses RegExp matching on a full line (see https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/services/search/node/textSearch.ts#L121) and part of the reason is that we allow for searches with regular expressions.
I wonder how much faster BM would be in this case given that RegEx matching is highly optimized. We should just start an experiment and measure this 👍
One possible optimization is to not split the file into lines but only do it if a match is found.

Late in the game but how about https://github.com/monochromegane/the_platinum_searcher ?

Is a project's directory tree currently being cached in memory? I suspect that a lot of the slowness I'm experiencing with fuzzy search when I use sshfs is that VSCode is remaking requests to build the directory structure unnecessarily. I could be wrong about that though.

It is cached for quick open (= the file picker with fuzzy matching) but currently not when doing full text searches (planned next).

I'm seeing the same problem, and as others have reported, this drastically slows down development time, and so I'm regrettably switching back to ST3 until this is fixed. This is a real shame because I'm really liking the other features of vscode - particularly the node debugger.
Is there any way to see where the fuzzy matcher is taking the most time? In ST there is a console you can open which outputs useful debug information.

@fiznool That's unexpected at this point, could you open a bug report with the output from time (find -L . -type f | wc -l); echo $? when run in your project folder?

@chrmarti this initially takes a very long time, but this is because I have (amongst other things) a node_modules folder with tens of thousands of files. Am I right in thinking that the Quick Find should not search in folders which are excluded from the settings.json configuration?

@fiznool A change I included was to use 'find' to retrieve all files and then apply the exclusion filter on top. 'find' seemed to be fast enough to make up for the additional load, that's not always the case as we now discover. I'm tracking this as #11874.

@chrmarti as per #11874 has this now been fixed?
I updated vscode this morning to v1.5.3 and the problem still appears to persist.

@fiznool That fix will be in 1.6.

I have a relatively large project, that is on a remote drive (mounted in windows) and the file search (ctrl+e) does not find many of the files. Is there maybe a way to increase some timeouts on indexing or something like that, that might be causing this? Or is there a limit on number of indexed files?

@PunchyRascal Opened #14913 to track your issue.

Though everything has gotten significantly more snappy in recent releases, my experience with VS Code is that it still doesn't:

Crawl the directory tree of a project in the background to cache for fuzzy search
Cache files as they're revealed in the Explorer pane tree

I think adding one or both of these would greatly improve the overall fuzzy search experience. :)

I mount filesystem via Fuse and it's slow to retrieve all file names via the network. I love Sublime Text because it caches file names and creates search index (in background) that allows me to jump to any file blazing fast. Can you please do the same here, in the VS Code? If you will do it - it will help me switch to the VS Code, because I like autocompletion and other things in it. But super slow (2+ minutes waiting time) for Just To File - it's what stops me from using VS Code right now in our big project.
Do you have plans to deliver this improvement with caching the file tree?
P.S. I use Python extension. Maybe it somehow slows done Jump To File functionality?

Can't believe something as important as this is still an issue.
I'm using Windows 64-bit insider builds, working on a project mounted on a network share.
Sublime text finds files instantly, project consists of only a few thousand files.
VSCode takes minutes :(

node_modules typically inflates the number of files in a project. Its a sane optimization to give an option to opt-out from search or only opt-in if the file path entered has node_modules in it

I observed a significant improvement in speed of search and quick open when we switched from samba share to NFS share. Now it takes at about 5 - 7 seconds as opposed to ~30 with samba.

Could be my imagination, but did this receive some TLC in the November VS Code update? Doesn't seem to be anything about fuzzy search in the release notes, but my network-mounted drive seems to be indexed in the background and actually fuzzy-searchable now.

I thought it was my new machine, but I too have experienced lightning fast searching in the last weeks, even on samba share.

I can reproduce the performance improvement too. This is on the chromium "src" repository with third_party folder excluded. Search across files seems faster too.

For me it was also very slow, but when going through my settings I found I had set "search.quickOpen.includeSymbols" to true. After setting it to false it becamse a fast as I was used to. Performance becamse slow when opening a project of ~18k files with that setting set to true.

"Go to file" is ridiculously slow for too.
I have a Windows 7 machine with SSD and my workspace has 38,426 Files, 11,228 Folders. Searching in VSCode regularly takes 10+ seconds to find a file where Eclipse search is instant!
Please fix this, it's one of my most frequently used functions!!!

Closing this because quite a lot has happened since 2015 (search has been rewritten entirely twice since then).
Anything else that's slower than it should be, please file new issues.

@roblourens The "Go to file" function still has terrible performance for large projects with 30,000 files. I don't understand how is that possible because even "Find in Files" is a lot faster and that one has to check the entire file contents, not only the file name

I just published a wiki page for troubleshooting search issues which might also be helpful: https://github.com/Microsoft/vscode/wiki/Search-Issues
For anything else, please open a new issue.


+0100]' doesn't match specifier '%h'

Dear Friends,
I did a research through all the issues, but nothing solved my problem.
I'm using goaccess 1.1.1 with apache 2.4,  and I only can make it work when I use the --log-format=COMBINED  option. But I really need the --log-format=VCOMBINED because I need the information for the virtualhosts.
That's the command I'm using:
goaccess -f /var/log/apache2/access.log  --log-format=VCOMBINED --no-global-config
That is an entry of my Apache access log file:
www.xxxxxx.com:80 <IP_ADDRESS> - - [31/Jan/2017:09:44:00 +0100] "GET /showthread.php?s=ff10fb2cebe47ec51e598eb4c6eb0b8f&t=14607 HTTP/1.1" 301 738 "-" "Mozilla/5.0 (compatible; SemrushBot/1.2~bl; +http://www.semrush.com/bot.html)"
And I receive following error message:
+0100]' doesn't match specifier '%h'
I request apologizes again If the solution is to obvious, but I'm missed.
Thank you in advance,

goaccess -f /var/log/apache2/access.log --log-format=VCOMBINED --no-global-config

Works for me. Do you have a config file under ~/goaccessrc, that's the second place goaccess will check for a config file?

Dear allinurl,
I double checked all my configurations, and it was a mistake in my side. I was using a wrong configuration in my /sites-available/conf files for the log format.
It seems it is working now. I request apologizes.
Thankyou

No worries. Glad that worked :)


Documentation update

Seems like the new version of the cita has
    '0x00000000000000000000000000000000013241a2': {'file': 'system/node_manager.sol',
                                                   'name': 'NodeManager'},
    '0x00000000000000000000000000000000013241a3': {'file': 'system/quota_manager.sol',
                                                   'name': 'QuotaManager'},
    '0x00000000000000000000000000000000013241a4': {'file': 'system/permission_manager.sol',
                                                   'name': 'PermissionManager'},
    '0x00000000000000000000000000000000013241a5': {'file': 'permission/permission_system.sol',
                                                   'name': 'PermissionSystem'},
    '0x0000000000000000000000000000000031415926': {'file': 'system/param_constant.sol', 'name': 'ParamConstant'},
    '0x00000000000000000000000000000000013241b2': {'file': 'permission_management/permission_management.sol','name': 'PermissionManagement'},
    '0x00000000000000000000000000000000013241b3': {'file': 'permission_management/permission_creator.sol',  'name': 'PermissionCreator'},
    '0x00000000000000000000000000000000013241b4': {'file': 'permission_management/authorization.sol',  'name': 'Authorization'},
    '0x00000000000000000000000000000000013241b5': {'file': 'permission_management/permission.sol', 'name': 'Permission'},

9 system smart contracts,
while https://cryptape.github.io/cita/usage-guide/admintool/
only show 5 available contracts. Can you update the documentation?

Thank you. We are considering to close permission as default.The other 4 system contracts are not workable now.

Also, there are many missing details, for example:
permission_manager
uint8 permission: 1 = send only 2 = create only?  not sure how it is setup, need a lot of testing to figure out.

Yes. The permission 1 means send, '2' means creating.
Here is the doc: https://cryptape.github.io/cita/usage-guide/admintool/


Add specific UI for the sandbox permissions

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox

Completed.


sap.m.RadioButton: Memory leak for first radio button in a group

OpenUI5 version: latest
Browser/version (+device/version): N/A
Any other tested browsers/devices(OK/FAIL):
URL (minimal example if possible): https://github.com/SAP/openui5/blob/master/src/sap.m/src/sap/m/RadioButton.js
User/password (if required and possible - do not post any confidential information here):
Steps to reproduce the problem:
What is the expected result? Expect no memory leaks when the RadioButton is destroyed
What happens instead? In the RadioButton's exit function (around line 482) is this code:
if (iGroupNameIndex && iGroupNameIndex !== -1) {
aControlsInGroup.splice(iGroupNameIndex, 1);
}
for the first radio button in a group, iGroupNameIndex will be 0, and yet it will never be removed since the if (iGroupNameIndex) condition will evaluate to false when it's 0. This causes the radio button to be retained, and in turn can cause larger containers to be retained, leading to larger memory leaks. Fix is to allow for iGroupNameIndex >= 0.
Any other information? (attach screenshot if possible)

Hi, thank you for the issue.
An internal incident has been created (incident id:<PHONE_NUMBER>)

Hello @cmastrandrea
Thanks for reporting!
The issue is fixed via this commit
Best Regards,
Martin


import zio.spark.sql.TryAnalysis.syntax.throwAnalysisException => import zio.spark.syntax.throwAnalysisException ?

Maybe it would be better to create an object zio.spark.syntax  to group all the imports you need to include with coding.

The issue, here, is that we don't want to implicitly add throwAnalysisException in user code. By default, a user should not use it and handle errors by himself or throw them explicitly on purpose.

It's not ideal, indeed, even if most spark usage are not handling errors.
The import need to be moved to be easily discoverable.
Maybe there is something to be done with a Scalafix set of rules on zio-spark, that among other things detect suspicious getOrThrows, and force the user to deactivate the rule on those sections.


how to get "output_detections" in facedetection?

I add  below code in mainactivity,java
processor.getGraph().addPacketCallback("output_detections", new PacketCallback() {
@Override
public void process(Packet packet) {
PacketGetter.getBytes(packet);
}
});

the process is called if I commit  PacketGetter.getBytes(packet);
and the app crash if I add  PacketGetter.getBytes(packet);
so how to get the output_detections?  it a vector of Detection

there is no any getDectionVector for PacketGetter.  so I would change DetectionLetterboxRemovalCalculator to return a float vector?
that would be work,  but stupid...

close it , since I thick a float vector also works:) thx!


[WIP] packages needed by solarus

PSP builds for several package needed by the solarus engine.

libmodplug
physfs
lua51
mojoal
glm

Do let me know if you need me to review this again. The WIP in the title is throwing me off a little bit on what to do with this PR. These are all great libraries to have, though.

Yes sorry about the WIP status. There are still bugs in at least mojoal and physfs that I would like to fix before. I will try to make it quick.

@stdgregwar you probably won't need MojoAL. We managed to make OpenAL compile and added it. We'll need people testing it, though, to make sure it works like expected.

For clarification to @stdgregwar, we merged everything from this PR except for physfs and mojoal.


ERROR : base : Job "Interval container update for unix://var/run/docker.sock (trigger: interval[0:05:00]

I'm unsure if this is a dupe of #225 , but on the off chance it isn't, here it is. I got this on it's first run after using the docker-compose template in the wiki.
2019-06-14 13:06:19 : ERROR : base : Job "Interval container update for unix://var/run/docker.sock (trigger: interval[0:05:00], next run at: 2019-06-14 13:10:51 CDT)" raised an exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/docker/api/client.py", line 261, in _raise_for_status
    response.raise_for_status()
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 409 Client Error: Conflict for url: http+docker://localhost/v1.35/containers/f0b4d8b9a644378e8ad260149c648ac79899fb84ae3c67e056a4712af93dec3a?v=False&link=False&force=False

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/apscheduler/executors/base.py", line 125, in run_job
    retval = job.func(*job.args, **job.kwargs)
  File "/usr/local/lib/python3.7/site-packages/pyouroboros/dockerclient.py", line 326, in update
    self.recreate(container, latest_image)
  File "/usr/local/lib/python3.7/site-packages/pyouroboros/dockerclient.py", line 137, in recreate
    self.remove(container)
  File "/usr/local/lib/python3.7/site-packages/pyouroboros/dockerclient.py", line 128, in remove
    container.remove()
  File "/usr/local/lib/python3.7/site-packages/docker/models/containers.py", line 347, in remove
    return self.client.api.remove_container(self.id, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/docker/utils/decorators.py", line 19, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/docker/api/container.py", line 994, in remove_container
    self._raise_for_status(res)
  File "/usr/local/lib/python3.7/site-packages/docker/api/client.py", line 263, in _raise_for_status
    raise create_api_error_from_http_exception(e)
  File "/usr/local/lib/python3.7/site-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
    raise cls(e, response=response, explanation=explanation)
docker.errors.APIError: 409 Client Error: Conflict ("removal of container f0b4d8b9a644378e8ad260149c648ac79899fb84ae3c67e056a4712af93dec3a is already in progress")

Similar problem, been using Ouroboros for awhile and noticed it hasn't updated anything for a month.
config:
 ouroboros:     image: pyouroboros/ouroboros:latest     container_name: ouroboros     environment:       - TZ=America/Toronto     volumes:       - /var/run/docker.sock:/var/run/docker.sock     command: --self-update --interval 300 --log-level info --cleanup -N 'slack:///***/#ouroboros'
ouroboros    | 2019-06-16 12:19:55 : ERROR : base : Job "Initial run interval container update for unix://var/run/docker.sock (trigger: date[2019-06-16 12:19:47 EDT], next run at: 2019-06-16 12:19:47 EDT)" raised an exception ouroboros    | Traceback (most recent call last): ouroboros    |   File "/usr/local/lib/python3.7/site-packages/docker/api/client.py", line 261, in _raise_for_status ouroboros    |     response.raise_for_status() ouroboros    |   File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 940, in raise_for_status ouroboros    |     raise HTTPError(http_error_msg, response=self) ouroboros    | requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http+docker://localhost/v1.35/images/aec5e024cc9df5dee0b08a171f59e210e84cf400fc0686f5a5e43cf00440f278/json ouroboros    | ouroboros    | During handling of the above exception, another exception occurred: ouroboros    | ouroboros    | Traceback (most recent call last): ouroboros    |   File "/usr/local/lib/python3.7/site-packages/apscheduler/executors/base.py", line 125, in run_job ouroboros    |     retval = job.func(*job.args, **job.kwargs) ouroboros    |   File "/usr/local/lib/python3.7/site-packages/pyouroboros/dockerclient.py", line 301, in update ouroboros    |     updateable, depends_on_containers, hard_depends_on_containers = self.socket_check() ouroboros    |   File "/usr/local/lib/python3.7/site-packages/pyouroboros/dockerclient.py", line 253, in socket_check ouroboros    |     current_image = container.image ouroboros    |   File "/usr/local/lib/python3.7/site-packages/docker/models/containers.py", line 40, in image ouroboros    |     return self.client.images.get(image_id.split(':')[1]) ouroboros    |   File "/usr/local/lib/python3.7/site-packages/docker/models/images.py", line 316, in get ouroboros    |     return self.prepare_model(self.client.api.inspect_image(name)) ouroboros    |   File "/usr/local/lib/python3.7/site-packages/docker/utils/decorators.py", line 19, in wrapped ouroboros    |     return f(self, resource_id, *args, **kwargs) ouroboros    |   File "/usr/local/lib/python3.7/site-packages/docker/api/image.py", line 245, in inspect_image ouroboros    |     self._get(self._url("/images/{0}/json", image)), True ouroboros    |   File "/usr/local/lib/python3.7/site-packages/docker/api/client.py", line 267, in _result ouroboros    |     self._raise_for_status(response) ouroboros    |   File "/usr/local/lib/python3.7/site-packages/docker/api/client.py", line 263, in _raise_for_status ouroboros    |     raise create_api_error_from_http_exception(e) ouroboros    |   File "/usr/local/lib/python3.7/site-packages/docker/errors.py", line 31, in create_api_error_from_http_exception ouroboros    |     raise cls(e, response=response, explanation=explanation) ouroboros    | docker.errors.ImageNotFound: 404 Client Error: Not Found ("no such image: aec5e024cc9df5dee0b08a171f59e210e84cf400fc0686f5a5e43cf00440f278: No such image: sha256:aec5e024cc9df5dee0b08a171f59e210e84cf400fc0686f5a5e43cf00440f278")

I've a similar issue:
2019-07-03 10:00:59 : ERROR : base : Job "Initial run interval container update for unix://var/run/docker.sock (trigger: date[2019-07-03 10:00:37 CEST], next run at: 2019-07-03 10:00:37 CEST)" raised an exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/apscheduler/executors/base.py", line 125, in run_job
    retval = job.func(*job.args, **job.kwargs)
  File "/usr/local/lib/python3.7/site-packages/pyouroboros/dockerclient.py", line 326, in update
    self.recreate(container, latest_image)
  File "/usr/local/lib/python3.7/site-packages/pyouroboros/dockerclient.py", line 162, in recreate
    network.connect(**new_network_config)
  File "/usr/local/lib/python3.7/site-packages/docker/models/networks.py", line 57, in connect
    container, self.id, *args, **kwargs
  File "/usr/local/lib/python3.7/site-packages/docker/utils/decorators.py", line 19, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/docker/api/network.py", line 242, in connect_container_to_network
    ipv6_address=ipv6_address, link_local_ips=link_local_ips
  File "/usr/local/lib/python3.7/site-packages/docker/api/container.py", line 650, in create_endpoint_config
    return EndpointConfig(self._version, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/docker/types/networks.py", line 17, in __init__
    self["Links"] = normalize_links(links)
  File "/usr/local/lib/python3.7/site-packages/docker/utils/utils.py", line 445, in normalize_links
    return ['{0}:{1}'.format(k, v) if v else k for k, v in sorted(links)]
  File "/usr/local/lib/python3.7/site-packages/docker/utils/utils.py", line 445, in <listcomp>
    return ['{0}:{1}'.format(k, v) if v else k for k, v in sorted(links)]
ValueError: too many values to unpack (expected 2)

These are all totally separate problems that are completely dissimilar.
@EdwinGarcia
that issue is a hung removal for whatever reason. Look into changing the sigterm in labels
@tedrock

Use env vars for those commands, the commands are legacy
That looks like an image was deleted outside of ouro and it got confused. Ouro is designed to maintain on its own.

@brightdroid
Looks like you are either using an old version or have something that ouro doesnt support (e.g. shared networking)


[BANDWIDTH_THROTTLING] Rename QuotaTestUtils::createDummyQuotaChargeEventListener to QuotaUtils::createDummyQuotaChargeCallback.

Codecov Report

Merging #2063 (8cb4a71) into master (52e204a) will increase coverage by 7.60%.
The diff coverage is n/a.

:exclamation: Current head 8cb4a71 differs from pull request most recent head 2ec92c1. Consider uploading reports for the commit 2ec92c1 to get more accurate results

@@             Coverage Diff              @@
##             master    #2063      +/-   ##
============================================
+ Coverage     61.81%   69.42%   +7.60%
- Complexity     8291     9566    +1275
============================================
  Files           728      728
  Lines         55106    55106
  Branches       6817     6817
============================================
+ Hits          34066    38255    +4189
+ Misses        18862    14725    -4137
+ Partials       2178     2126      -52

Impacted Files
Coverage Δ

...in/java/com/github/ambry/quota/QuotaTestUtils.java
54.05% <ø> (ø)

.../java/com/github/ambry/utils/AccountTestUtils.java
87.01% <0.00%> (-3.90%)
:arrow_down:

...java/com/github/ambry/clustermap/CloudReplica.java
73.07% <0.00%> (-3.85%)
:arrow_down:

...github/ambry/rest/AsyncRequestResponseHandler.java
87.87% <0.00%> (-2.36%)
:arrow_down:

.../com/github/ambry/cloud/CloudStorageCompactor.java
73.03% <0.00%> (-2.25%)
:arrow_down:

...ava/com/github/ambry/clustermap/CloudDataNode.java
77.41% <0.00%> (-1.62%)
:arrow_down:

.../ambry/clustermap/DynamicClusterChangeHandler.java
91.05% <0.00%> (-0.39%)
:arrow_down:

...bry/server/storagestats/ContainerStorageStats.java
61.66% <0.00%> (ø)

...rc/main/java/com/github/ambry/utils/TestUtils.java
78.01% <0.00%> (+0.35%)
:arrow_up:

...java/com/github/ambry/router/GetBlobOperation.java
87.40% <0.00%> (+0.88%)
:arrow_up:

... and 53 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 52e204a...2ec92c1. Read the comment docs.


Add more channels

At the moment we only have numbered channels, like 1 and 1.6. We could add additional channels latest, lts and nightly (maybe).

We now also have release and lts. We still should add beta and rc.


Enconding error on Ruby 2.7

I have an application running on Ruby 2.6.6. I'm using the CSV lib like this, and it works fine:
CSV.read(@params[:csv_file].tempfile, headers: true, col_sep: ';', encoding: 'ISO8859-1:utf-8')

Since I upgraded to Ruby 2.7.1 I got this error

NoMethodError:
  undefined method `close' for #<String:0x0000558b5db78160>
  Did you mean?  clone
# ./app/services/admin/batch_search_service.rb:15:in `batch_search'
# ./app/services/admin/batch_search_service.rb:9:in `search'
# ./spec/services/admin/batch_search_service_spec.rb:7:in `block (3 levels) in <top (required)>'
# ./spec/services/admin/batch_search_service_spec.rb:140:in `block (4 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# ArgumentError:
#   unknown encoding name - ISO8859-1:utf-8
#   ./app/services/admin/batch_search_service.rb:15:in `batch_search'

However, If I use the explicit params it works:
CSV.read(@params[:csv_file].tempfile, headers: true, col_sep: ';', external_encoding: 'ISO8859-1', internal_encoding: 'utf-8')

I saw no breaking change on the changelog so I'm assuming that this is not expected.
Ruby version:
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux-musl]

Could you show a Ruby script that can run on my machine?

Same problem here, seems to be fixed by https://github.com/ruby/csv/pull/111 (merged but not yet released try to install gems from git).

Released.


Merge pull request #11 from andela-ekupara/develop

Merge develop after adding doc tests

Coverage decreased (-50.4%) to 36.328% when pulling 8c6cdee268104367c25bbce0201fc6f331f605cf on master into ec73a0d1e783bd91770bb90519ddd16398c65f6e on develop.


Ability to see course description/information

It would be nice if we could also access information about the course (e.g. description, prereqs, etc.) on this as well, similar to how it is on ninjacourses.

That would be an awesome feature! I am currently trying to address any problems that are not solved by existing systems like Berkeleytime. So, I am putting this on the back-burner.

UPDATE: Descriptions have been added.


[3.x] Crash in GodotNavigationServer::map_get_path

Godot version
3.x (3ba980379dfb72f5d238640835d8e77c76cf3c99)
System information
manjaro linux
Issue description
This is a regression introduced in c52d842435325f0f244177053c3c6c84d69dcf72 via https://github.com/godotengine/godot/pull/60242 (reverting resolves the issue)
I get such a crash on one of my demos:
Program terminated with signal SIGABRT, Aborted.
#0  0x00007fcd4c53ed22 in raise () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7fcd4c3d07c0 (LWP 15219))]
(gdb) bt
#0  0x00007fcd4c53ed22 in raise () from /usr/lib/libc.so.6
#1  0x00007fcd4c528862 in abort () from /usr/lib/libc.so.6
#2  0x00000000008059ce in handle_crash (sig=<optimized out>) at platform/x11/crash_handler_x11.cpp:51
#3  <signal handler called>
#4  NavMap::get_path (this=0x160a3260, p_origin=..., p_destination=..., p_optimize=<optimized out>) at modules/navigation/nav_map.cpp:164
#5  0x0000000000dc6f52 in GodotNavigationServer::map_get_path (this=<optimized out>, p_map=..., p_origin=..., p_destination=..., p_optimize=<optimized out>) at modules/navigation/godot_navigation_server.cpp:222
#6  0x0000000002c935f3 in Navigation2DServer::map_get_path (this=<optimized out>, p_map=..., p_origin=..., p_destination=..., p_optimize=<optimized out>) at servers/navigation_2d_server.cpp:186
#7  0x0000000002753297 in Navigation2D::get_simple_path (this=this@entry=0x160a2dd0, p_start=..., p_end=..., p_optimize=p_optimize@entry=false) at scene/2d/navigation_2d.cpp:74
#8  0x000000000275660a in MethodBind3RC<Vector<Vector2>, Vector2 const&, Vector2 const&, bool>::call (this=0x8860b60, p_object=<optimized out>, p_args=0x7ffcd0cd4440, p_arg_count=-791853952, r_error=...) at ./core/method_bind.gen.inc:2849
#9  0x000000000328052a in Object::call (this=0x160a2dd0, p_method=..., p_args=0x16024a48, p_argcount=3, r_error=...) at core/object.cpp:918
#10 0x00000000033272c1 in Variant::call_ptr (this=this@entry=0x16024988, p_method=..., p_args=p_args@entry=0x16024a48, p_argcount=p_argcount@entry=3, r_ret=0x16024a00, r_error=...) at core/variant_call.cpp:1185
#11 0x000000000093b659 in GDScriptFunction::call (this=0x1607fc00, p_instance=0x8ff2160, p_args=<optimized out>, p_argcount=<optimized out>, r_err=..., p_state=<optimized out>) at modules/gdscript/gdscript_function.cpp:1050
#12 0x00000000009543bf in GDScriptFunctionState::resume (this=0x16073a30, p_arg=...) at modules/gdscript/gdscript_function.cpp:1814
#13 0x0000000000955395 in GDScriptFunctionState::_signal_callback (this=0x16073a30, p_args=0x16787380, p_argcount=1, r_error=...) at modules/gdscript/gdscript_function.cpp:1762
#14 0x0000000000957314 in MethodBindVarArg<GDScriptFunctionState>::call (this=<optimized out>, p_object=<optimized out>, p_args=<optimized out>, p_arg_count=<optimized out>, r_error=...) at ./core/method_bind.h:320
#15 0x000000000328052a in Object::call (this=0x16073a30, p_method=..., p_args=0x16787380, p_argcount=1, r_error=...) at core/object.cpp:918
#16 0x000000000328b6d9 in Object::emit_signal (this=0x8a9ed30, p_name=..., p_args=<optimized out>, p_argcount=<optimized out>) at core/object.cpp:1231
#17 0x000000000328c923 in Object::emit_signal (this=this@entry=0x8a9ed30, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=..., p_arg6=..., p_arg7=..., p_arg8=...) at core/object.cpp:1286
#18 0x000000000220be2e in SceneTree::idle (this=0x8a9ed30, p_time=0.0166666675) at scene/main/scene_tree.cpp:589
#19 0x0000000000833984 in Main::iteration () at main/main.cpp:2271
#20 0x0000000000816b21 in OS_X11::run (this=this@entry=0x7ffcd0cd52e0) at platform/x11/os_x11.cpp:3842
#21 0x00000000007fdd1f in main (argc=11, argv=0x7ffcd0cd5bf8) at platform/x11/godot_x11.cpp:55

CC @kleonc
Steps to reproduce
Run 2d/GetSimplePathTests.tscn demo from MRP
Minimal reproduction project
godot-navigation-demos.zip

@Scony Can't reproduce, it's not crashing for me on Windows ("platform=windows", "target=debug", "bits=64", "tools=yes"). I looked at it again and I don't see anything incorrect/wrong in #60242. The crash at line 164. is unexpected to me:
https://github.com/godotengine/godot/blob/3ba980379dfb72f5d238640835d8e77c76cf3c99/modules/navigation/nav_map.cpp#L163-L165
Really not sure what's the issue here.
The only suspicious thing I noticed is that across the navigation code NULL is used instead of nullptr but I somehow doubt it has anything to do with this crash.
Or maybe I'm just blind and there's indeed something wrong with my fix. :smile:
Also does #60241 results in the similar crash for you in master?

I'll investigate it then

@kleonc you can see crash explanation in https://github.com/godotengine/godot/pull/60435


Infinite message sending

Flask-Mailman version: 0.3.0
Python version: 3.9.9
Operating System: Linux

Description
I'm trying to send a message, but the email.send() call hangs forever
What I Did
Configuration of my Flask app
MAIL_BACKEND = "smtp"
MAIL_SERVER = smtp.google.com
MAIL_PORT = 465
MAIL_USERNAME =<EMAIL_ADDRESS>MAIL_PASSWORD = password
MAIL_USE_SSL = True
MAIL_TIMEOUT = 30

Example of calling email.send()
msg = EmailMessage(title, "Body", from_, [to,])
return msg.send()

This issue is caused by google smtp server, so there is no point in leaving this issue open
Closing due to my fault


Oracle ServiceInfoCreator for localconfig

Added OracleServiceInfoCreator and unit test for localconfig connector.

@jwoodrich Apologies for the delay in getting to this. Have you signed a CLA for contributions to Spring projects?

Sorry, missed the notification on this.  I have signed the CLA.


[HUDI-4265] Remove useless targetTableName parameter in HoodieMultiTableDeltaStreamer

What is the purpose of the pull request
Remove useless targetTableName parameter in HoodieMultiTableDeltaStreamer
In HoodieMultiTableDeltaStreamer, multiple target table names are configured by the parameter hoodie.deltastreamer.ingestion.tablesToBeIngested, and the parameter --target-table is not actually used, but it is a required item, which is very confusing, so I think it is reasonable to remove this parameter
Brief change log
(for example:)

Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@hudi-bot run azure


Error: Module version mismatch. Expected 48, got 46.

I have installed Zenbot using the instructions here, but when I try to launch ./run I am having this error:
/home/tox/Scrivania/zenbot/node_modules/bindings/bindings.js:83
    throw e
    ^

Error: Module version mismatch. Expected 48, got 46.
at Error (native)
at Object.Module._extensions..node (module.js:568:18)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at bindings (/home/tox/Scrivania/zenbot/node_modules/bindings/bindings.js:76:44)
at Object.<anonymous> (/home/tox/Scrivania/zenbot/node_modules/microtime/index.js:1:96)
at Module._compile (module.js:541:32)

MongoDB is at version 3.2.8
Node.JS is 6.3.1

Your currently using old modules,
Update them trough:
npm install
npm install zenbrain

Otherwise use:
sh update.sh

Wow fast! Thanks :)
I did it, but nothing has changed:
tox@portatilone:~/Scrivania/zenbot$ npm install
npm WARN<EMAIL_ADDRESS>No repository field.
npm WARN<EMAIL_ADDRESS>No license field.

tox@portatilone:~/Scrivania/zenbot$ npm install zenbrain
<EMAIL_ADDRESS>/home/tox/Scrivania/zenbot
└─┬<EMAIL_ADDRESS>    (git+https://github.com/carlos8f/zenbrain.git#e3d5b6430da645f44a420007fb90d34753ee67cf)
  └──<EMAIL_ADDRESS>    (git+https://github.com/carlos8f/numbro.git#e6e9a0d5f4c32939a7c19cf1546c7766b38cd31f)

npm WARN<EMAIL_ADDRESS>No repository field.
npm WARN<EMAIL_ADDRESS>No license field.
tox@portatilone:~/Scrivania/zenbot$ ./run.sh
/home/tox/Scrivania/zenbot/node_modules/bindings/bindings.js:83
    throw e
    ^

Error: Module version mismatch. Expected 48, got 46.
at Error (native)
at Object.Module._extensions..node (module.js:568:18)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at bindings (/home/tox/Scrivania/zenbot/node_modules/bindings/bindings.js:76:44)
at Object.<anonymous> (/home/tox/Scrivania/zenbot/node_modules/microtime/index.js:1:96)
at Module._compile (module.js:541:32)

I have tried with ./update.sh too, but the local repository is Already up-to-date

Coukd you re create your config.json? (Since it updated a several times :) )

Error: Module version mismatch. Expected 48, got 46.
Means you compiled microtime module on a different version of node than you're running now.
cd /home/tox/Scrivania/zenbot
rm -Rf node_modules
npm install

should fix it

Reinstalled node modules, now the error is
tox@portatilone:~/Scrivania/zenbot$ ./run.sh
/home/tox/Scrivania/zenbot/node_modules/mongodb/lib/mongo_client.js:210
      throw err
      ^

ReferenceError: cb is not defined
at /home/tox/Scrivania/zenbot/node_modules/zenbrain/core/launcher/launcher.js:17:18
at /home/tox/Scrivania/zenbot/node_modules/motley/hooks/runMount.js:5:25
at /home/tox/Scrivania/zenbot/node_modules/motley/hooks/runBoot.js:4:23
at /home/tox/Scrivania/zenbot/node_modules/motley/hooks/runHook.js:5:23
at end (/home/tox/Scrivania/zenbot/node_modules/run-series/index.js:8:15)
at done (/home/tox/Scrivania/zenbot/node_modules/run-series/index.js:11:10)
at each (/home/tox/Scrivania/zenbot/node_modules/run-series/index.js:16:43)
at /home/tox/Scrivania/zenbot/node_modules/motley-mongo/db/connectMongo.js:7:23
at connectCallback (/home/tox/Scrivania/zenbot/node_modules/mongodb/lib/mongo_client.js:300:5)
at /home/tox/Scrivania/zenbot/node_modules/mongodb/lib/mongo_client.js:207:11

:(

@ToX82 now it's mongodb unavailable @ localhost:27017 see config.js

@grigio you were right, I was actually missing something in my mongodb installation... thank you all!

Maybe it's worth to catch this exception in zenbrain/core/launcher/launcher.js:17:18 and print some more informative output

should be throw err, fixed in zenbrain/zenbot master

Zenbot 4 is out, so I'm cleaning up 3.x issues. Please use and test 4, thanks!


Disable all sound

Hello :) Before you create an issue please read the following message:
My name is Roman and I'm the only developer of this app.
I will NOT contribute any more code to this repository ever again.
This repository is mostly for sharing the knowledge I gained during development.
At the moment I dedicate all my time to a startup and working on a new and very modern update to eqMac.
This new update will be completely rewritten from scratch and have many more new features and will be massively more stable (at least that't the plan).
I plan to release the new version in Q3 of 2018.
Thank you for your patience and giving eqMac a go :)
If you need help with eqMac please join our Slack Group:
https://join.slack.com/t/eqmac/shared_invite/enQtMjk4NDkwNzEzOTA4LTg4OWFlYWFjNGQzZTJiM2RmMDI4MTUzMjk5ZTk1ZTkwYzk5NTk1ZDMwNTc1ZmU2MDdmNzRhNjc4ZTBhOWM2MzA
That's your best bet at getting some help from me or the community.
GitHub is only for source-code related issues.
Still would like to report a bug or suggest a feature I can implement in the next version?
Please make sure you search through the Open and Closed Issues people have already submitted:
https://github.com/nodeful/eqMac2/issues?utf8=✓&q=is%3Aissue+
This eliviates the posibility of people creating duplicate issues.

Thanks for the feature request, I would suggest investing in some earplugs. If that solution is too costly I would alternatively recommend piercing your eardrums :)

Hey everyone. Excuse me for the lack of updates. I have been really busy on the new version of eqMac. I am happy to announce an open beta release.
You can download it here: https://eqmac.app
There are a lot of known bugs that I could not fix just yet:

Driver not installing from the first try. Sometimes need to restart eqMac a couple times.
Complex Device switching logic is not perfect (for example when switching off the device that's currently playing, plugging in new device etc.)
UI takes long to load (a lot can be done to improve that)
UI dimensions are not synching properly
There's a noticeable audio delay in the playback, so not suitable for video yet (I know where the problem lies just haven't had the time to fix yet)
Sometimes the playback doesn't start, in that case please try to switch the output to the device you want and eqMac should try and build the audio pipeline again.

So as you can see there's still some work to be done but at least it's a completely modern tech stack that I am fully willing to work on: 100% Swift, User Space driver and a Web UI, instead of C++, Kernel Drivers. As I said, should work on Catalina and should not have any pesky ear drum blasting volume bugs (at least I didn't come across any).
I'm open to feedback and issue reports here: https://github.com/bitgapp/eqmac
That repo will become the main repo for eqMac and this repo will be archived eventually.
And yes it's called just eqMac, not eqMac3 :) And it will stay that way forever.

Hey everyone 👋
I will be open sourcing the new version of eqMac, therefore, I am closing this issue and repository as I will be transfering nodeful/eqMac2 repo to bitgapp/eqMac
Please bear with me for the next couple of days as I setup that new repo. The eqMac2 code will be living in the old-eqMac2 branch if anyone is interested in referencing it for whatever reason.
Please try out the new version and report bugs to the new repo.
Thanks for using eqMac.


Population Based Training of Neural Networks

Hello, is it possible to include following technique in the repository as well?
Population Based Training of Neural Networks https://arxiv.org/abs/1711.09846

Hello! I don't know the answer right now because I didn't read this paper.
I will study it and if it's interesting enough I will implement it.

Great, thank you!!!

Here is a repository related to that, I am sharing in case it would be useful for you:
https://github.com/bkj/pbt

Thank you!


Filesystem (remote share)  not mounting folder.

What version of Music Assistant has the issue?
2.1.0b10
What version of the Home Assistant Integration have you got installed?
2024.6.2
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

[X] Yes

The problem
Filesystem (remote share) in in Music Provider  section no longer mounting share.  An exclamation mark now appears.
How to reproduce
Add  a remote SMB share.
Music Providers
Filesystem (remote share)
Player Providers
N/A
Full log output
No response
Additional information
Reverting to version 2.1.0b8 clears the issue.
What version of Home Assistant Core are your running
2024.7.0
What type of installation are you running?
Home Assistant Core
On what type of hardware are you running?
Linux

I also have this problem at 2.10b10. Log shows permission denied...
2024-07-05 16:42:53.729 INFO (MainThread) [music_assistant.providers.filesystem_smb] Mounting //<IP_ADDRESS>/music/Top 40 Singles/2009/Top 40 Singles 2009-07-05 (New Entries) to /tmp/filesystem_smb--N9YA2muk
2024-07-05 16:42:53.842 ERROR (MainThread) [music_assistant] Error loading provider(instance) Filesystem (remote share): Connection failed for the given details: SMB mount failed with error: mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

Known issue - fixed today - resolved in beta 11

Confirmed working again in 2.1.0b13


[FR]: Indices for the lineshape functions

R(sigma) looks the same for all amplitude.
Adding indices _{lL}^{resonance} would make equations more accurate.

I see, you are right: the symbol at this place already defines the model for the lineshape.

Then, just _{l,L}.