map indexed doesn't seem to work?

I'm not sure if this is how it is supposed to be, but in regular lodash the iteratee for map can take up to 3 args. On the latest bower install (0.10.2) of lodash-fp, map only seems happy with one argument -
_.map(function(x,i) { return i}, [1,2,3])
[undefined, undefined, undefined]

I traced this to a problem in the way that the iteratee is being called - the problem is on line 2077 where it says argCount = argCount > 2 ? (argCount - 2) : 1; - this is a problem because the original argCount was 3, and that is what it is supposed to be. This line shrinks it down to 1, i.e. only the element.
If I remove this line, everything seems to work as expected (map works properly and none of the other functions I've used seem broken) - is the 1-arg only behavior expected? If not, is this the correct fix?

Hi @vshesh! This is by design to aid functional composition. The index and array params have been known to cause unintended side effects to iteratees like:
['6', '08', '10'].map(parseInt)
// => [6, NaN, 2]


Best way to exclude tables from being pushed

Is your feature request related to a problem? Please describe.
I'am using the DatasyncClient with offline tables.
I would wish that only specifics tables be Pushed to the server.
Is there any best practice to achieve this, without keeping excluded tables on the client sides as pending operation?
Describe the solution you'd like
I would like to have on option to pass a collection of tables to excludes for push action to the SyncContext.
On PushItems if the table is part of the tables to excludes, we could assume that the operation are not pending anymore.

I get where you are coming from.
There are two issues here, and I'd like to keep them separate.
Can you please remove the PULL parts of this issue and file them as a separate issue
The PUSH operation is something that can be done on the client side.  You already have this ability.  First, the offline store has a method GetTablesAsync(), so you can get the list of tables easily.
var tables = await store.GetTablesAsync();
var tablesToExclude = new string[] { "table1", "table2" };
var tablesToPush = tables.Except(tablesToExclude).ToList();

Now you can do the push easily:
await client.PushTablesAsync(tablesToPush);

I can update the signature of PushOptions to include a "tablesToExclude" field, then thread this through the code, but it feels like overhead that isn't needed, especially since you can do everything in a very small piece of code.

I did something similar to this, by passing directly the names of the tables I want to be pushed.
But I end up with the tables which are not pushed, still having pending operations.

That would be expected.  You have made changes to those tables.  I'm not seeing what the issue is.

There's no issue, as this is the expected behavior.
With previous version of the sdk we did a litle modification/hack to prevent the tables excluded from being pushed to stay with pending operations.
We wanted our Api to have the main responsability of the work which as to be done when we push specifics tables, and then update the data that would be synced between every devices.
We did that by creating our custom MobileServiceSyncHandler
public class TableSyncHandler : IMobileServiceSyncHandler

and by defining our logic in the ExecuteTableOpearationAsync method as follow
public Task<JObject> ExecuteTableOperationAsync(IMobileServiceTableOperation operation)
{
     if (_excludedTables.Contains(operation.Table.TableName))
     {
          return Task.FromResult((JObject)null);
     }
     return operation.ExecuteAsync();
 }

This Handler was then passed to the SyncContext at the Initialization.
By doing this, we did get to dismiss the pending operations, on the tables that we didn't want to be pushed to the Api.
I was wondering if there was a way with the new version of the client, to achieve this.

Just for my understanding, you want a table where new data is pulled from the API, but local changes are allowed to persist without being pushed?

Yes, that's it.
Sorry if I wasn't clear in my explanation.

Sorry for the delay here.  I'm struggling to decide if this is something we want to take in this library.  My current thinking is that it is something we don't want to do, so you should fork the project and do the adjustments yourself.  If I see folks +1 this idea, then I'll reconsider.

After almost 2 months, no-one else has +1'ed this, so I am closing at this time.


NavigationRailItems does not appear on the further screen

Description of the Bug
I am using two NavigationRails in two different screens. The NavigationRailItems only appear on the first page.
Code
To change page:

Open drawer by clicking menu button
Click on the Item for the page of your choice
Click to the right of the drawer to close it

from kivy.lang import Builder
from kivymd.app import MDApp

KV = '''
<NavigationRailBase@MDNavigationRail>
    anchor: "top"

<MenuButton@MDNavigationRailMenuButton>
    on_release: app.open_menu(self)

<RailItemBase@MDNavigationRailItem>
    icon: "language-%s" % self.text

<PageBase@MDScreen>
    rail_item_1: ""
    rail_item_2: ""
    MDBoxLayout:
        orientation: "vertical"
        MDLabel:
            adaptive_height: True
            text: root.name
        MDBoxLayout:
            NavigationRailBase:
                MenuButton:
                RailItemBase:
                    text: root.rail_item_1
                RailItemBase:
                    text: root.rail_item_2

MDScreen:
    main_sm: main_screen_manager.__self__
    menu: menu.__self__
    MDNavigationLayout:
        ScreenManager:
            id: main_screen_manager
            PageBase:
                name: "First Page"
                rail_item_1: "python"
                rail_item_2: "javascript"
            PageBase:
                name: "Second Page"
                rail_item_1: "cpp"
                rail_item_2: "swift"
    MDNavigationDrawer:
        id: menu
        MDNavigationDrawerMenu:
            MDNavigationDrawerItem:
                text: "First Page"
                icon: "page-first"
                on_release: app.switch_page(self)
            MDNavigationDrawerItem:
                text: "Second Page"
                icon: "page-last"
                on_release: app.switch_page(self)
'''

class Example(MDApp):
    def build(self):
        return Builder.load_string(KV)

    def switch_page(self, drawer_item):
        self.root.main_sm.current = drawer_item.text

    def open_menu(self, *args):
        self.root.menu.set_state("open")

Example().run()

Screenshots

If I change the anchor property of the NavigationRail to "center" or "bottom" (line 6) the NavigationRailItems appear and everything works as expected.
"""
<NavigationRailBase@MDNavigationRail>
    anchor: "center"
"""

Versions

OS: Windows 10
Python: 3.10
Kivy: 2.1.0
KivyMD: 1.0.0.dev0

@j4ggr Your sample code does not demonstrate the problem.

How far are you with the analysis?

@j4ggr I haven't looked at this issue...

I investigated the problem further and found that the y-positions of the rail items on the second page are negative.
In the case described above (anchor == 'top' and menu button added), the positions of the RailItems in the method set_pos_panel_items of the MDNavigationRail class become dependent on the y-position of the menu button.
However, at the time this method is called, the y position of the menu button of second page is negative (-3.0).
Now if I update the RailItem positions by calling the set_pos_menu_fab_buttons of the MDNavigationRail class after I switch screens, the items appear on the second page as well. The method requires an interval parameter, although it is not used further within the method. This is probably because the method is called via Clock.schedule_once (an *args would actually suffice here). For this reason I give it a 0. I also adjusted the PageBase class a bit (an ID for the NavigationRail). The updated code looks like this:
from kivy.lang import Builder
from kivymd.app import MDApp

KV = '''
<NavigationRailBase@MDNavigationRail>
    anchor: "top"

<MenuButton@MDNavigationRailMenuButton>
    on_release: app.open_menu(self)

<RailItemBase@MDNavigationRailItem>
    icon: "language-%s" % self.text

<PageBase@MDScreen>
    rail_item_1: ""
    rail_item_2: ""
    MDBoxLayout:
        orientation: "vertical"
        MDLabel:
            adaptive_height: True
            text: root.name
        MDBoxLayout:
            NavigationRailBase:
                id: navigation_rail
                MenuButton:
                RailItemBase:
                    text: root.rail_item_1
                RailItemBase:
                    text: root.rail_item_2

MDScreen:
    main_sm: main_screen_manager.__self__
    menu: menu.__self__
    MDNavigationLayout:
        ScreenManager:
            id: main_screen_manager
            PageBase:
                name: "First Page"
                rail_item_1: "python"
                rail_item_2: "javascript"
            PageBase:
                name: "Second Page"
                rail_item_1: "cpp"
                rail_item_2: "swift"
    MDNavigationDrawer:
        id: menu
        MDNavigationDrawerMenu:
            MDNavigationDrawerItem:
                text: "First Page"
                icon: "page-first"
                on_release: app.switch_page(self)
            MDNavigationDrawerItem:
                text: "Second Page"
                icon: "page-last"
                on_release: app.switch_page(self)
'''

class Example(MDApp):
    def build(self):
        app = Builder.load_string(KV)
        return app

    def switch_page(self, drawer_item):
        self.root.main_sm.current = drawer_item.text
        screen = self.root.main_sm.current_screen
        screen.ids['navigation_rail'].set_pos_menu_fab_buttons(0)

    def open_menu(self, *args):
        self.root.menu.set_state("open")

Example().run()

Furthermore, the positions of the items are not updated when the window size changes. For example, if you reduce the height of the window, the items are pushed up outside the window.


Issue/document podman deployment 2 (#7080)

Pull request opened by the merge tool on behalf of #7080

Merged in 6fe2ae617804d04fd5402ba676ffc9b995084ca2


Using eye-js in the browser

Great library!! Could you please give an example of how to use eye-js in the browser, if possible?

For the moment have a look at https://github.com/smessie/SWIPL-WASM-Example
@jeswr could we have it briefly in README.md ?

Thanks @josd
Yes, it would be great if a bare-bones example could be given (i.e., using "vanilla" JS) to use eye-js in the browser.

There is now an example of browser usage via we pack in the examples folder.
I will also try and create a bundled version of this package that is hosted on GitHub pages so leave this open until I complete that task.

I now also have bundles being created in github pages - so we can now create a website using eyereasoner in 35 lines of html https://github.com/eyereasoner/eye-js/blob/main/examples/prebuilt/index.html :)

Thank you very much @jeswr and the example https://eyereasoner.github.io/eye-js/example/ runs nicely!

Just to point out that https://eyereasoner.github.io/eye-js/latest/index.js exposes the global eyereasoner variable for use within the browser, but https://eyereasoner.github.io/eye-js/2/3/8/index.js does not.

Good point - I indeed did a bug fix for that in 2.3.9; but I should not have been using the broken 2.3.8 in the docs because of that. I've made https://github.com/eyereasoner/eye-js/pull/58 to fix the docs.

Also, and just being difficult now - would it be possible to generate a separate dist file with an export statement in case people want to load eye-js dynamically (using import) within the browser? (It's easy enough to add this by oneself so not that important!)

Are the exports on unpkg (these are automatically generated from the NPM distribution) sufficient (e.g<EMAIL_ADDRESS>or did you want it all bundled in a single file that can be dynamically imported?

Happy to accept a PR if you know what you want added :)

@jeswr

Are the exports on unpkg (these are automatically generated from the NPM distribution) sufficient (e.g<EMAIL_ADDRESS>or did you want it all bundled in a single file that can be dynamically imported?

The latter (single bundle) would be quite useful - the same as the current bundles, with a simple "export" added at the start of the file, worked for me:
export var eyereasoner; ...

Re the PR, I'm unsure how to adapt your current build process :-)

@jeswr FYI, this code sample doesn't work in the browser since the eyereasoner variable is not being exported in https://eyereasoner.github.io/eye-js/2/latest/index.js - also it is relying on a typescript static type (str:String) in the print function.

Code example is now fixed - note that you want to be using the link https://eyereasoner.github.io/eye-js/2/latest/dynamic-import.js rather than https://eyereasoner.github.io/eye-js/2/latest/index.js

Great, thanks!


May I Use The CreateContainer in VulcanJS

I am using the following packages in VulcanJS
meteor npm install --save react-addons-pure-render-mixin
meteor add react-meteor-data
createContainer() is not calling.
export default createContainer(() => {

 return {
    user: 'Meteor.user()'
  };
}, HeadTags);

In HeadTags component  console.log(this.props.user) giving undefined

I'm not sure, sorry. But I would suggest staying away from any Meteor-specific packages like react-meteor-data.


Repetitively Update an extension after update it.

Steps to reproduce

Open Aniyomi
Browse
Anime Extension
Update the extension
Again showing to update the extension after refresh or restart the app

Expected behavior
The extension should update only one time and never ask to repetitively update after refresh of restart the app.
Actual behavior
Some extension e.g. Gogoanime request to update again and again. After updating the extension when I refresh the Anime Extension tab it will show the same extension repetitively update again.
Crash logs
aniyomi_crash_logs.txt
Aniyomi version
<IP_ADDRESS>-7809
Android version
Android 12
Device
POCO M2 Pro
Other details
I face this problem in the Aniyomi Beta app. The original app doesn't have this kind of problem. This will hamper my watch experience. Whenever I open the Aniyomi it notify me to update. Although I update the extension several times. But, I face the same problem. It notify me to update again and again after update one time.
I will provide a video below:
https://github.com/user-attachments/assets/7f716490-0fe8-4f33-a887-80a1ff5d4035
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is an issue with an extension, I should be opening an issue in the extension's repository.
[X] I have gone through the FAQ and troubleshooting guide.
[X] I have updated the app to version <IP_ADDRESS>.
[X] I have updated all installed extensions.
[X] I will fill out all of the requested information in this form.

Uninstall the extensions and download again .


APT whitelist request for libseccomp-dev

Make things more secure ;-)

Thank you travisbot. Relax, have a goodie, let a human check the log :stuck_out_tongue:
The setuid strings which were found are just the system call definitions. There is no actual setuid binary in there. The definition is just the syscall-number of those systems calls. Needed because with seccomp, a binary can lock itself down and disable those system calls (for the current process).
Can this thing be trusted? Well chrome and chromium report good success in locking down their processes to prevent exploits. Note: chrome/chromium uses seccomp directly, without the nice libseccomp library. But, "[r]ather than hand-coding seccomp filters [...], you may prefer to employ the libseccomp library, which provides a front-end for generating seccomp filters."

Duplicate of #1909.


AWS tutorial

Add AWS tutorial for the following :

Opening an AWS account
Creating an instance for VPN usage only
Managing billing and alerts
Removing instances, releasing resources and maybe shutting down instances for good

Ok I have commented out the tutorial for now.  Need to upload tutorial fast.

Done :D


support resend user confirm

closes #428

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 91.784%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
391

Relevant Lines:
426

💛  - Coveralls


0x611c74310a06B10593E073aFFe4Ea543b793f539.png

Fincrypchain (FCC)
https://img1.wsimg.com/blobby/go/d3484d1b-eef9-4528-8dac-faf31fe0acac/downloads/LOGO FCC.png?ver=1552633674869
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[x] Filename in the lowercase format
[x] Image format: png
[x] Image size: 256 by 256 px

Please, lowercase file name for next upload, for now, added lowercased image file name here: https://github.com/TrustWallet/tokens/commit/f7bb979e235ac12f7605af44ffa6b04c69c8f81c


Update campuses in readme.md

Added the campuses in 🇨🇭 🇨🇭

Hey samsara, thanks a lot for your contribution! Regarding 42 Zurich, I'd prefer to wait before adding campuses that haven't officially opened yet. I'd also ask you to move Lausanne to the right spot, respecting the chronological order of the rest of the list. Thanks again for your time!

Noted. I edited my commit.


How to add chat_id of private group or channel

I want to know on bot.sendmessage() defination we have to mention chatId but in private channel and group we can't send the message.

What? You need to have the bot inside the group and in the case of the channel need to be an admin of the channel.
You can use some events like the chat_member update or similar to know when the bot is added is to chat/group and you get the msg object with the chat_id of this chat/group

Let me try


rust-jobsteal results

There is rphmeier/skynet-jobsteal implementation of this kata, which is much better and faster than my own (~5× faster on my laptop).
It would be very cool to see those results in the repo's readme.

I'd rather not fully commit to promoting jobsteal for general use yet -- it's still under a lot of work and I haven't exactly decided where to go with it. That's why I didn't submit skynet-jobsteal as a PR in the beginning. Once jobsteal is more mature (1.0?), I'd be more amenable to having my version added to the main skynet repository.


Configure Azure Pipelines

This pipeline configuration builds the application and produces a build for the Release configuration.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: ArmandoGuerreroGonzalez sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

test


Feature Request: Modular Pages Ordering

Refering to this Forum thread https://getgrav.org/forum#!/getgrav/general:modular-page-ordering
I'd like to propose this feature request: Ordering Modular Pages in similar manner as Pages Ordering works. The parent page should have a drag and drop ordering list of its Modular Pages.
It would be very nice and usefull to have this feature in Grav.

It's something we know should be improved, in the plans for the future 👍

You can do this today with 01._modular/ folder names.

@rhukster I think the request is that it should be possible to be done in the UI? Right now it appears that you can re-order from each of the modules themselves, using the Advanced > Ordering section (if "Folder Numeric Prefix" is enabled), but it seems more logical that you could reorder the modules from the parent modular page itself, since that is the "container". Thoughts?

This is something we plan on tackling when we redo the modular page UI.


format module will trigger confirmation before closing the temp buffer

I'm on be3f6fb.
I enabled format module, and if I format the buffer, I'll see a confirmation asking
Buffer  *temp*-54891 modified; kill anyway? (y or n) y.
I understand that the format works by piping stuff to a temp buffer, run it with the formatter, in this case, rustfmt, and then kill the temp buffer.
I checked the recent change in format module and I doubt that's because of something with the format-all-mode? Maybe that changed the behavior of the temp buffer?

Got a feeling that is a bug with format-all

This is a regression caused by https://github.com/hlissner/doom-emacs/commit/13f5a7627858ba784b57864f137f8e086d8e83f3. A fix will be up shortly.

9bba39b should resolve this issue. Let me know if that isn't the case and I will reopen this thread. Thanks for bringing it to my attention!


feat: Added test coverage and new test cases

This PR adds coverage and includes test cases for improved functionality.
coverage command npm run coverage
fixes #2307

@shivamsouravjha , Around 45 %


AnimatedMapTile - Getter and Setter fot animationIntervals

to change the animation speed in runtime

Thanks

Nice! Thanks for merging. Will be very useful for me.

Whoops... Your change didn't compile, the new methods shouldn't have had override annotations. I've removed the annotations and started another build.

Oh.. yeah makes sense. Should have seen this.


Compile time parsing (Brush, RelativePoint)

What does the pull request do?
Adds compile-time parsing for brushes and other classes.
What is the current behavior?
Runtime parsing.
What is the updated/expected behavior with this PR?
Parsing during compilation.
Before
new BrushConverter().ConvertFrom((ITypeDescriptorContext)(object)context, CultureInfo.InvariantCulture, "Blue")

After
KnownColors.ToBrush(Avalonia.Media.KnownColor.Blue)

How was the solution implemented (if it's not obvious)?
Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/Avaloniaui.net with user documentation

Breaking changes

Fixed issues
Fixes #5392

I guess this is mostly a side-effect of how Brush.Parse works but now I'm wondering - what was the reasoning behind:

Brush.Parse("Red") returning an immutable brush
Brush.Parse("#FF0000") returning a mutable brush

Since one potential optimization in this case would be to refer to Brushes.Red which would save us a bunch of allocations.
@grokys


Localizing paths and links with i18n and directory_indexes (v4.1.1)

This is almost a duplicate of https://github.com/middleman/middleman/issues/1587, from when I was using v3.4.0.
Now I'm giving this another try in v4.1.1, but still can't get it to work properly ;(
The actual pages are translated correctly, but the link_to and url_for output is not.
I've created a new project to test this.
config.rb
activate :directory_indexes
activate :i18n, mount_at_root: :en, langs: [:en, :nl]

(also tried activating i18n first)
locales/nl.yml

---
nl:
  paths:
    welcome: welkom

  welcome: Welkom

localizable/index.html.erb
<%= link_to t("welcome"), "/welcome.html" %>
<%= url_for "/welcome.html" %>

output (http://localhost:4567/nl):
Welkom
/welcome/

expected:
Welkom
/nl/welkom/

Without directory_indexes paths are correctly translated unless they have hashes or params:
<%= url_for "/welcome.html" %>
<%= url_for "/welcome.html#foo" %>
<%= url_for "/welcome.html?foo=bar" %>

output (http://localhost:4567/nl):
/nl/welkom.html
/welcome.html#hash
/welcome.html?foo=bar

(Paths with hashes or params do work when I remove the paths translations)
All a bit confusing... Am I overlooking something or is this a bug?

This looks like a combo of bugs. Thank you for the fantastic test cases. I'll get this fixed up soon.

Thanks, looking forward to it!
For your information, this does work:
link_to t("menu.pricing"), extensions[:i18n].localized_path("/pricing.html", I18n.locale)
url_for extensions[:i18n].localized_path("/pricing.html", I18n.locale)

But breaks when using hashes or params.

Looks like still not fixed on v4.1.10.
Any news on this ?

Related to #1466

Not sure I'm late here, but why don't you use the paths: (for the i18n).
Simply add your locale language file, then something like this:
en.yml
_ paths:
___something: "name-of-your-local-page"
it.yml
_ paths:
___something: "il-nome-della-pagina"
Then get access to the page name as t(:paths)[:something]


Repackage Syslog

Change(s):
See guidance below
Reason for Change(s):
Data Connector text description changed.
See guidance below
Version Updated:
2.0.2
See guidance below
This is a 1P solution.

Hello @v-atulyadav Link for the Data Connector description is not reflecting in the description

Hello @v-atulyadav checking on the fix as description is not getting updated.


Remove all the RELAP-7 code deviations in the RAVEN source code

Issue Description
All the specialization of the samplers for the usage of the RELAP-7 interface should be removed.
There is not interest, by the RELAP-7 team, to let us maintain this coupling.
@idaholab/raven-team  see above
Please attach the input file(s) that generate this error.  The simpler the input, the faster we can find the issue.

For Change Control Board: Issue Review
This review should occur before any development is performed as a response to this issue.

[x] 1. Is it tagged with a type: defect or improvement?
[x] 2. Is it tagged with a priority: critical, normal or minor?
[ ] 3. If it will impact requirements or requirements tests, is it tagged with requirements?
[ ] 4. If it is a defect, can it cause wrong results for users? If so an email needs to be sent to the users.
[x] 5. Is a rationale provided? (Such as explaining why the improvement is needed or why current code is wrong.)

For Change Control Board: Issue Closure
This review should occur when the issue is imminently going to be closed.

[ ] 1. If the issue is a defect, is the defect fixed?
[ ] 2. If the issue is a defect, is the defect tested for in the regression test system?  (If not explain why not.)
[ ] 3. If the issue can impact users, has an email to the users group been written (the email should specify if the defect impacts stable or master)?
[ ] 4. If the issue is a defect, does it impact the latest stable branch? If yes, is there any issue tagged with stable (create if needed)?
[ ] 5. If the issue is being closed without a merge request, has an explanation of why it is being closed been provided?

archived.


Get version from brew info rather than brew list

Getting version provided by brew info is much more accessible by the user, since running brew list actually requires you to have that package installed. Additionally, if the user doesn't have brew, the version from brew info matches the one on the formula's website

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/membraneframework/elixir?version=dev:e1fb4f3f6c275d7b03ce19d341d6ed37ea742668


[RESOLVED] Interface eth0(): High error rate (>2 for 5m)

Problem started at 09:39:29 on 2023.06.02
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Operational data: errors in: 1, errors out: 0
Original problem ID: 23127
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23483&eventid=23127

Problem has been resolved in 3m 0s at 09:42:29 on 2023.06.02
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Original problem ID: 23127


Draft a blog post outlining the changes in GOV.UK Frontend v5.0

What
Draft a blog post that outlines the changes coming in GOV.UK Frontend v5.0.
The release notes describes the detail of the changes, so the blog post should provide a high level overview and focus on the context and rationale for why we've made the change, some of the interesting challenges, etc.
It might also be a good place to flag future upcoming changes (for example building out the JS API, dropping support for LibSass…)
Why
Writing a blog post about the v5 changes:

increases the visibility of the v5 release (especially for non-technical people for whom GitHub releases and Dependabot updates etc aren't going to be visible)
allows us to share the driving forces behind the changes, helping to take people on the journey with us and to understand why these changes (which require service teams to do work) are beneficial and necessary
promotes GDS as a great place to work, where we get to work on loads of interesting things 🤓

Who needs to work on this
Everyone! But probably mainly developers and designers.
Who needs to review this
Everyone! But mainly a content designer and the comms team.
Done when

[ ] We have a draft blog post for v5.0 outlining the main changes

Draft so far (only visible to GDS folks)
The lessons learned and results sections are just a sketch at the minute, but reasonably happy with the top bit.
If anyone does fancy picking it up and running with it, feel free. Not precious about it being edited, reworked, revised etc.

Looks good to me. I've added one comment but otherwise I think it hits all the right points.

Sadly, I think too much time has passed since v5 was released.
(Feel free to re-open if you disagree and want to do something with it!)


Change the root (working directory) used in the transfer method

Is there any way to change the local root directory that the transfer tries to find the files in it because my files is placed in a sub-directory.
.
├── Gruntfile.js
├── dist
├── flightplan.js
└── src

I need to upload the contents of the dist directory.

Just use something like
var files = local.exec('find ./dist -type f -print0', { silent: true });
local.transfer(files, '/tmp/flightplan');

Sorry for opening up this question again, but I think the issue I'm facing right now is pretty close to this one.
I'm trying to transfer() the content of a dist/ folder to a specific directory in the server. However, I could not make var filesToCopy point to the content whitin dist/. Everything I've tried so far ends up pushing the whole directory (dist/).
Following your answer, I searched for a shell parameter that would give me only the paths within the /dist but I could not make it work. The closest I got was this:
find ./dist -type f -exec basename {} \;

which return only files names w/o the sub-directory structure. I'm pretty new into this and shell scripting is certainly something I'm not used to.
Hope you can give me a hint.

As far as I know the only way to accomplish this with find is to cd into the folder first. e.g. local.exec('cd ./dist; find . -type f'). You could also use with if that's more convenient for you.

thanks for the quick answer, @pstadler.
Indeed the local.exec('cd ./dist; find . -type f') outputed the content within the /dist folder, however it didn't work as I expected. Maybe I should give you more details about what I'm trying to do:
I develop my project using gulp and it has the following folder structure:
myProject
   | /dev
   |__ /css
   |__ /js
   |__ index.html
   |__ ...
   | /dist
   |__ /css
   |__ /js
   |__ index.html
   | gulpfile.js
   | flightplan.js
   | ...

What I'm trying to do is to push only the /dist folder to the server and my configuration now looks like this:
plan.local(function(local) {
  local.log('Run build');
  local.exec('gulp build');

  local.log('Copy files to remote host');
  var filesToCopy = local.exec('cd ./dist; find * -type f', {silent: true});

  local.transfer(filesToCopy, '~/www/host_path');
});

Issues

Setting filesToCopy using

var filesToCopy = local.exec('find ./dist -type f', {silent: true});`

ends up pushing the whole /dist folder itself

Setting it using

var filesToCopy = local.exec('cd ./dist; find * -type f', {silent: true});

throw a error like this for each file/directory:

localhost > rsync: link_stat "Users/admin/Desktop/myProject/css/styles.min.css" failed: No such file or directory (2).

I can see that the path does not contain de dist/ folder between 'myProject/' and 'css/'. But I have no clue how to fix it using commands within exec().

I also follow your tip on the with() method, but I could not realize how to build the files listing using it.
I don't know why, but I'm starting to think I'm over complicating something that should be simple. Thanks again for the attention.

To not over complicate things, how about you'd simply upload your files to a tmp directory and then move these on the remote?

You can use transport.with (i.e. local.with) to change to a directory before executing commands. Something like this worked for me:
    local.with(`cd dist`, () => {
        const filesToCopy = local.exec('find . -type f', { silent: true })

        local.transfer(filesToCopy, '~/www/host_path');
    })


JSON5 configuration format

Adding support for JSON5 as a configuration format.

Refactored that code a bit to make error management easier, and updated bin/mage to pretty-print error objects in a nicer way.


[Parameter Request] codeunit 330 ReqJnlManagement publisher OnAfterGetDescriptionAndRcptName

We would like to request an additional Parameter LastReqLine in procedure OnAfterGetDescriptionAndRcptName of codeunit codeunit 330 ReqJnlManagement .
[IntegrationEvent(false, false)]
//local procedure OnAfterGetDescriptionAndRcptName(var ReqLine: Record "Requisition Line"; var Description: Text[100]; var BuyFromVendorName: Text[100])
local procedure OnAfterGetDescriptionAndRcptName(var ReqLine: Record "Requisition Line"; var LastReqLine: Record "Requisition Line"; var Description: Text[100]; var BuyFromVendorName: Text[100])
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Feature image and search

Could you please add featured images with the search option! Thanks :)

I really have no time to implement this. Feel free to submit a PR though!


Fix consensus bug from deleting account in same block that creates it

What was wrong?
Fix #1912
How was it fixed?
So far, just reproducing the bug, but it shouldn't be long now to get the fix...
To-Do

[ ] Clean up commit history
[x] more documentation
[x] Add entry to the release notes

Cute Animal Picture

@cburgdorf Seems worth double-checking that this fix also fixes the goerli test you ran. How did you set that up again and/or are you up for re-running it against this branch?

I'm on vacation without laptop but just running trinity --goerli --sync-mode full should be all you need. I don't know the exact block that
broke but if you get past 300k blocks it definitely fixed that bug. I'm
sure @veox can also assist.
On Sat, Feb 1, 2020, 08:22 Jason Carver<EMAIL_ADDRESS>wrote:

@cburgdorf https://github.com/cburgdorf Seems worth double-checking
that this fix also fixes the goerli test you ran. How did you set that up
again and/or are you up for re-running it against this branch?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ethereum/py-evm/pull/1913?email_source=notifications&email_token=AAD7HFNXGJUW4OKDYVLD5GDRATFGVA5CNFSM4KNKPGKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKQPQTQ#issuecomment-580974670,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAD7HFLTP7664SHRJAKUAMTRATFGVANCNFSM4KNKPGKA
.

Yup! I'll check this on main-net (from scratch), and then try to sync Goerli - that's where I started, after all.

Confirming that the issue is no longer present when using py-evm from PR https://github.com/ethereum/py-evm/pull/1913.
Main-net blocks #116525 and #336508 imported successfully (I ran it up to #347457).
So has Goerli block #226323 (still running, #472783 ATM).


Inventory - List now/Sell now buttons

It looks ugly (Chrome)

Moved to https://github.com/SteamDatabase/BrowserExtension/issues/24


go: errors parsing go.mod

Go version
go version go1.22.0 windows/amd64
Output of go env in your module/workspace:
module blueprint-example

go 1.22.0

replace geometry-lib => D:/DATA ALI/2 DOKUMEN\PELATIHAN/Enigma Camp/Golang/GOLANG DATABASE/geometry-lib

What did you do?
go: errors parsing go.mod:
go.mod:5: usage: replace module/path [v1.2.3] => other/module v1.4
or replace module/path [v1.2.3] => ../local/directory
What did you see happen?
Why?
What did you expect to see?
I want to replace module

I believe the file separator is \ on windows.
Is 2 DOKUMEN\PELATIHAN a literal string with a \ or 2 directories?

ouh thankyou, but when i change i have error to

the replace local path should start with ./ or ../.


Expose file type for FileChange

This allows incremental tasks to query the type of deleted files and do appropriate actions, like delete the file in the output or not.

Why not?


feature: set the appropriate token for the host kubeconfig in entry.sh

Feature Description
The code that gets the host kubeconfig in entry.sh does it this way:
kubectl --kubeconfig $host_kubeconfig config set-credentials sm-mgt --token="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)"
which is potentially dangerous.
Proposed Solution
This takes a snapshot of a bearer token that will be invalidated soon. This is a time bomb. A better approach has to be taken.
Can't we do something much simpler and ordinary? This script is specifically written to run in a Pod. When used inside a Pod, kubectl will, by default, use the credentials of that Pod.
Want to contribute?

[ ] I would like to work on this issue.

Additional Context
No response

pushing to sprint 9.  Token can expire after 1 year.  Should discuss this to be fixed, along with preserving tokens on re-install.
per @ezrasilvera @effi-ofer
/cc @francostellari


Document Headscale web ui

List different unofficial web ui that have been developed for headscale

[ ] have read the CONTRIBUTING.md file
[ ] raised a GitHub issue or discussed it on the projects chat beforehand
[ ] added unit tests
[ ] added integration tests
[ ] updated documentation if needed
[ ] updated CHANGELOG.md

This information is already included in the docs, so adding it here would be redundant and require ongoing synchronization.
Rather edit the already existing documentation.
I will close this PR.


feat(ui): upgrade sonner from 1.5.0 to 1.7.0

This fixes React 19 peer dependency warnings for sonner

This should probably be scoped as deps


RNG-91: Added a KempSmallMeanPoissonSampler

Add a benchmark to the JMH examples of various methods to compute a Poisson sample.
This sampler is suitable for use an alternative to the SmallMeanPoissonSampler when the generator is slow. Speed at mean <1 is comparable. At mean in the range 1-40 a slow generator would favour this method, a fast generator would favour the SmallMeanPoissonSampler.

Coverage decreased (-0.03%) to 98.44% when pulling b68f53cd3e85c309b69824d743a242898b4d5b79 on aherbert:feature-RNG-91 into 73e8065f5c6cf7db571d93d29f9d1d92bd02ab07 on apache:master.


Use linear interpolation rather than Fourier interpolation for scale-dependent derivative

The scale dependent derivative currently uses Fourier interpolation for fractional scale parameters. This introduces significant errors for nonperiodic topographies. We should switch this to linear interpolation.

We already have bicubic interpolator which should work here.


Window resize problem

Hi, I have a window of 1024 x 768
I have setup also MouseSystem so when window is created, the left side has X 0 coodinate.
If I narrow the window and put the mouse arrow on te left side, the X coordinate is no longer 0 but, for example 150. Is like if 0 cordinate, shifts left. But I need to have 0 always on left border side

Update:
I have implemented a listener for WindowResizeMessage
	engo.Mailbox.Listen("WindowResizeMessage", func(msg engo.Message) {

		winResMessage, ok := msg.(engo.WindowResizeMessage)
		if !ok {
			return
		}

		//difW = winResMessage.NewWidth - winResMessage.OldWidth
		//difH = winResMessage.NewHeight - winResMessage.OldHeight

		fmt.Println(winResMessage.NewWidth, winResMessage.OldWidth)

	})

I don't understand because winResMessage.NewWidth and winResMessage.OldWidth are always equals. It's normal?

I've actually been working on this in #449 and #428. The pull request is #451. What is happening is when the window is resized, the space coordinates are keeping their positions and the camera is expanding around it, thus creating an offset between the original coordinate system and the updated one.
The reason the window size is giving you that message is because it's updated in a callback on resize, so it changes when he window is resized to give you the same size both times. Due to this, things like the canvas scale also end up being 1 practically all the time.

Thanks @Noofbiz
how can I use your commit to fix the problem?

The new commit adds a variable engo.ResizeXOffset as well as a Y version. Subtract half that off the entity's space component if you want it to stay the same on resize. You can also use one of  the HUD shader to get the same effect.

The commit has been added to master, so you can use the offsets to adjust your positioning. Feel free to reopen this or ask something else if you need to.


Release Candidate 0.0.6

Compiling the recent dev changes into a new main release in preparation for a larger change to dev to support MEDS v0.3.2 in #173

Summary by CodeRabbit

New Features

Simplified installation instructions for the MEDS_transforms package, enhancing user experience.
Added various project badges to the README for improved visibility and status monitoring.
New comprehensive test suite for validating the aggregation logic of medical code metadata.

Bug Fixes

Improved error handling in data processing functions to prevent unnecessary operations when no metadata is found.

Documentation

Enhanced clarity and specificity in installation instructions across multiple README files.
Updates in test documentation to reflect parameter and functionality changes.

Style

Standardized parameter naming in tests for consistency and clarity.

Tests

Introduced a variety of new test cases and adjusted existing ones for better validation of data processing stages.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 96.15385% with 1 line in your changes missing coverage. Please review.

Project coverage is 93.40%. Comparing base (6636428) to head (775ba5e).
Report is 2 commits behind head on main.

:white_check_mark: All tests successful. No failed tests found.

Files
Patch %
Lines

src/MEDS_transforms/transforms/tensorization.py
88.88%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #175      +/-   ##
==========================================
+ Coverage   93.38%   93.40%   +0.02%
==========================================
  Files          25       25
  Lines        1859     1881      +22
==========================================
+ Hits         1736     1757      +21
- Misses        123      124       +1

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


MTRC configuration

Few days ago I started to use yours addon for react-storybook. It's great, but i found one thing that maybe can be improved. When I write some description for source, I also want to use my own markdown configuration in it. At the moment, the only way is to change files in markdown folder or change directly in Story.js (if there is another (better) way please tell how). In my PR I create additional prop: mtrcConf which allow to set own MTRC configuration. An example shows how to create own code syntax highlighter.

@rook91 Yes this could be very useful. Thanks much! I tried it locally and works perfectly!
Looks like the example you provided in the PR replaces the simple one we already had. And most of the code from the PR is concerning your example. Could you just include changes required for the new feature and remove the example story?
And a small nit :) Looks like you are using tabs for indentation in some places. Since the rest of the file uses spaces for indentation could you replace tabs in your code with spaces.
Thanks again for this!

According to last comment, original example was restored as well as tabs indentation are replaced by spaces. I think now will be ok (if I miss something - sorry). Some dependencies was also moved to dev section.

@rook91 Thanks! Its much clear now. Could you checkout my comments? I think there are some unintended changes in this PR. See here for an overview of all the changes you made. Just keep the ones you need to add to make this feature work.

 Package.json is clean new. Also index.js and Story.js should contains only that changes which are necessary.


(docs)(DOC-3458) Note that PE defaults may differ

Some puppet.conf settings are modified in a default PE installation. This leads to some customer confusion, such as assuming the open source configuration reference generated from Puppet code is incorrect (DOCUMENT-803).
This PR adds a bullet point to the top of the configuration reference noting that PE defaults might differ, provides examples, and reminds users to check puppet.conf to confirm PE defaults. An equivalent paragraph is also being added to the PE configuration overview.
CC @melamos

CLA signed by all contributors.

Thanks @gguillotte, if you squash or reword the second commit to have "(docs)" Travis should pass and we can merge

@jtappa Done, thanks


Extended crypted field syntax

New syntax for the customization of encrypted fields:

Choose encrypted fields for nested objects with .
Choose encryption fields for all objects in an array with []. (the values must be objects)
Choose encryption fields for all values of a map with .*. (the values must be objects)
Does not yet support encrypted fields like arrayOfArrays[][].value or arrayOfMaps[].*.. There must always be an object between an array/map and another array/map. This use case should not be needed with the current data model

Support for customization of Contact and Service encrypted fields. The encryption of the content of a Service is not customizable

This PR also considered the possibility of omitting the encryptedSelf field from decrypted entities, however since it has no clear benefit and it may be problematic for some users it is left as is.


Localstack container still running at start of new test

I'm getting the following error:
Caused by: java.lang.IllegalStateException: A docker instance is starting or already started.
This is because I have 3 service classes, each having their own test class, and when I run all the tests together in my project Localstack is started for the first (I think by @SpringBootTest) but does not close down at the end.
Is there some way to limit the run scope? or perhaps I need to configure my application/tests differently?
Any suggestions you can give would be appreciated.

Having struggled with this for a day I did find one solution - to add @DirtiesContext to each test class that loads the context. This throws it away at the end, but is the the best solution?

Hi Alex,
I am on holidays atm I am happy to help , but won't be until I return from
holidays though....if you are running spring boot tests you could add an
extra application-somename.yml, with your props and add the profile  to
your particular test and see how that works out.
Cheers Jesper
On Tue, Jul 16, 2019, 12:57 alexbourne<EMAIL_ADDRESS>wrote:

Having struggled with this for a day I did find one solution - to add
@DirtiesContext to each test class that loads the context. This throws
it away at the end, but is the the best solution?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/fabianoo/spring-localstack/issues/14?email_source=notifications&email_token=ABD64QLUEV72XWTOUIO6AELP7WSS7A5CNFSM4IDXEDCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2APQ5A#issuecomment-511768692,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABD64QLHDMPCX7D4OWHV7FDP7WSS7ANCNFSM4IDXEDCA
.

Cool, I’ll take a look. For now I have a solution, so please, enjoy your
holiday!
On Tue, 16 Jul 2019 at 13:55, soelvar<EMAIL_ADDRESS>wrote:

Hi Alex,
I am on holidays atm I am happy to help , but won't be until I return from
holidays though....if you are running spring boot tests you could add an
extra application-somename.yml, with your props and add the profile to
your particular test and see how that works out.
Cheers Jesper
On Tue, Jul 16, 2019, 12:57 alexbourne<EMAIL_ADDRESS>wrote:

Having struggled with this for a day I did find one solution - to add
@DirtiesContext to each test class that loads the context. This throws
it away at the end, but is the the best solution?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<
https://github.com/fabianoo/spring-localstack/issues/14?email_source=notifications&email_token=ABD64QLUEV72XWTOUIO6AELP7WSS7A5CNFSM4IDXEDCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2APQ5A#issuecomment-511768692
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/ABD64QLHDMPCX7D4OWHV7FDP7WSS7ANCNFSM4IDXEDCA
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/fabianoo/spring-localstack/issues/14?email_source=notifications&email_token=ABVIDA2HARVLGKH6VKQMEE3P7XAKTA5CNFSM4IDXEDCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2AYBKI#issuecomment-511803561,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABVIDA2D7U7XFZ7UJ2W7CALP7XAKTANCNFSM4IDXEDCA
.


Implement beginning-end ignore optimization

Improve efficiency by reducing problem set and therefore the C matrix.
This helps to significantly reduce cpu time and memory consumption for comparing big lists with matching items at the beginning and the end of them.
Includes test to check and debug such cases. Without the optimization it fails due to OutOfMemoryException.
Resolves #1

YES! Thank you! I've been wanting this forever!


"Deploy the container" button disabled when editing a container created via portainer

Before you start please confirm the following.

[X] Yes, I've searched similar issues on GitHub.
[X] Yes, I've checked whether this issue is covered in the Portainer documentation or knowledge base.

Problem Description

As seen in the image, the button is disabled. I have checked all configurations and nothing seems to be showing an error. All I am trying to do is edit the container and change the image to upgrade the version.
Expected Behavior
The button should not be disabled if no errors are showing up.
Actual Behavior
The button is disabled.
Steps to Reproduce

Create a container (not a stack) - I have used gitlab container
Deploy the container
Go back to "Duplicate/Edit" page
change the image or any config
"Deploy the container" button is disabled.

Portainer logs or screenshots

Portainer version
2.21.4
Portainer Edition
Community Edition (CE)
Platform and Version
Docker version 27.3.1, build ce12230
OS and Architecture
Ubuntu 22.04.5 LTS AMD64
Browser
No response
What command did you use to deploy Portainer?
No response
Additional Information
No response

Update: Also tried stopping the container and then editing. The button is still disabled.

Generally this happens when a required field hasn't been filled out in the form. Are you able to check if there are any fields that have inadvertently been left empty, or potentially have values that conflict with existing containers?
I haven't been able to reproduce this here following your instructions (and using the gitlab/gitlab-ce:16.8.2-ce.0 image you're using) - the Deploy button is active when I edit the container - but it's conceivable that I'm missing a setting that you've got.

@jamescarppe the main thing to note here is that this is a running container so not sure how is it missing values. I have also gone through all the tabs to make sure no values are missing.

It's hard for me to help any further here without a full look at your container configuration, especially since I'm unable to reproduce it out of the box here. Would you be able to provide this?

Please see the whole config

![6](https://github.com/user-attachments/assets/7ca1820c-a720-41e8-a15e-fa802be1b10e

Hmm, still not able to reproduce here while matching your settings as close as I can. The button being disabled is ringing a bell for me though - I can't quite recall why, so I'm asking internally if anyone has any thoughts.

Exactly same issue here. Trying to modify a frigate container by clicking on edit/dplicate and no matter what i can change in edit view the deploy button remain disabled.

@jamescarppe any update from internal team? Seems like a reoccurring issue with others too.

The problem seems to be related to having the machine virtualized.
I tested it on a raspeberry pi 5 with dietpi and it doesn't show the error and I also tested it on an optiplex 7010 mff with dietpi and it also doesn't present any problems, but if I virtualize a machine in the next one, be it the dietpi itself and install casaos on it and the portainer presents the related problem, if you go directly to the next one with lxc it also presents the reported problem.

Same issue here, has somebody found a workaround for this?

Same issue here, trying to add ports to Frigate but the button won't allow me to deploy it. This is a bare metal machine running ubuntu and portainer 2.21.4

Same, AlmaLinux 9 VM with Docker CE and Portainer BE. maaaad

@jamescarppe reaching out again to see if you have any update from the internal team?

Found the settings i had to set, so the "Deploy the Container" became executable.
Now Frigate 0.14.1-f4f3cfa is up and running.

Found the settings i had to set, so the "Deploy the Container" became executable.

@BinaryDismay that does not seem to be the issue in my case.


We should pin the version of all dependencies in CI

apt will install the latest version of everything and it can be very hard to track down why a CI build failed, if there is a dependency update that breaks compatibility. This was the case for #710 for instance

I will close this, as the versions are pinned for macos and windows. The ubuntu dependencies that get install via apt remain unpinned however...


Multiple string match despite the condition

We have the file:
kittencat
kittendog

cat cat cat

kitten kitten kitten

And rules:
rule kitten_cat_find{
	strings:
		$kitten = "kitten"
		$cat = "cat"
	condition:
		$cat at (@kitten+!kitten)
}

rule kitten_cat_find_2{
	strings:
		$kitten = "kitten"
		$cat = "cat"
	condition:
		for all of ($cat) : (@ - @kitten == !kitten)
}

And the output:
yara64.exe -s kitten_example.yar example.txt
kitten_cat_find example.txt
0x0:$kitten: kitten
0xb:$kitten: kitten
0x27:$kitten: kitten
0x2e:$kitten: kitten
0x35:$kitten: kitten
0x6:$cat: cat
0x18:$cat: cat
0x1c:$cat: cat
0x20:$cat: cat
kitten_cat_find_2 example.txt
0x0:$kitten: kitten
0xb:$kitten: kitten
0x27:$kitten: kitten
0x2e:$kitten: kitten
0x35:$kitten: kitten
0x6:$cat: cat
0x18:$cat: cat
0x1c:$cat: cat
0x20:$cat: cat

Are there any option to show only "$cat" offsets that goes right after "$kitten" string?

file example2.txt (extra space at the first line)
kitten cat
kittendog

cat cat cat

kitten kitten kitten

Output:
yara64.exe -s kitten_example.yar example2.txt
# nothing

That means restrictions in conditions work properly.

There is no option to only display certain strings. If you want this it is easily done in python.

There is no option to only display certain strings. If you want this it is easily done in python.

Yes, it can be done in python, however I expected this feature in yara to search more effectively.
Thanks for your answer.


Update classes.md, Spelling & Grammar Fixes

"methods who take no arguments"  =>  "methods which take no arguments"
"Remember that"  =>  "Remember that."   [ IS THIS CORRECT? ]
"and you could instantiate with"  =>  "and you could instantiate it with"
"In the above, that the"  =>  "In the above, the"
"duplicate keys to the constructor are not allowed"  =>  "providing duplicate keys to the constructor is not allowed"
"If you wish to provide an an alternate"  =>  "If you wish to provide an alternate"
"':common ' means"  =>  "':common' means"
"all methods have an immutable $class variable injected."  =>  "all methods have an immutable $class variable injected"
"must be passed to customer (:param)"  =>  "must be passed to constructor (:param)"
"(common, with hand-rolled reader method)"  =>  "(:common, with hand-rolled reader method)"
"but before returned to consumer (BUILD)"  =>  "but before returning to consumer (BUILD)"
"C3 mro"  =>  "C3 Method Resolution Order"
"Corinna allows roles to be consumed via does."  =>  "Corinna allows roles to be consumed via :does."
"moddifier"  =>  "modifier"
"only the :common attribute allowed on non-scalars"  =>  "only the :common attribute is allowed on non-scalars"
NOT ACTUALLY CHANGED...
Why are you using fat commas instead of normal commas in the following two lines?
{ push @numbers => $num    }
{ unshift @numbers => $num }

Thank you for that!

Yes sir, you are welcome.
Can you please tell me, why are you using fat commas instead of normal commas in the following two lines?
{ push https://github.com/numbers => $num }
{ unshift https://github.com/numbers => $num }


Partial Generation

I upgraded to JPA Modeler 3.3 and cant generate all my classes.  Clicking on the partial Generation Button generates the Source.  It no longer gives the option to select what to generate.

In the attached pic, With Red Highlighted option , you can manage entities.
And Blue highlighted option , you can skip base application (user management , util , etc), in case application already generated.

Sorry for inconvenience , documentation is not yet available.

Re-open it  In case of any clarification , Happy to help you :)


On Ubuntu 20 updating the GUI doesn't work. Keep getting an error about node-gyp

When trying to update the GUI, I keep getting the following error:
apt-get is /usr/bin/apt-get
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxss1 is already the newest version (1:1.2.3-1).
libxss1 set to manually installed.
nodejs is already the newest version (16.1.0-deb-1nodesource1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nodejs : Conflicts: npm
 npm : Depends: node-gyp (>= 3.6.2~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

or, this after trying to run electron:
 npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/USER/Chia/chia-blockchain/chia-blockchain-gui/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/USER/Chia/chia-blockchain/chia-blockchain-gui/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/USER/.npm/_logs/2021-05-21T15_18_51_767Z-debug.log
^C
[1]+  Exit 254                npm run electron

In the debug log it says:
0 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'electron' ]
1 info using<EMAIL_ADDRESS>2 info using<EMAIL_ADDRESS>3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 0ms
6 timing config:load:builtin Completed in 0ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:/home/USER/Chia/chia-blockchain/chia-blockchain-gui/.npmrc Completed in 0ms
10 timing config:load:project Completed in 0ms
11 timing config:load:file:/home/USER/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/usr/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 5ms
19 timing npm:load:configload Completed in 5ms
20 timing npm:load:setTitle Completed in 0ms
21 timing npm:load:setupLog Completed in 0ms
22 timing npm:load:cleanupLog Completed in 2ms
23 timing npm:load:configScope Completed in 0ms
24 timing npm:load:projectScope Completed in 0ms
25 timing npm:load Completed in 8ms
26 timing config:load:flatten Completed in 2ms
27 timing command:run-script Completed in 1ms
28 verbose stack Error: ENOENT: no such file or directory, open '/home/USER/Chia/chia-blockchain/chia-blockchain-gui/package.json'
29 verbose cwd /home/USER/Chia/chia-blockchain/chia-blockchain-gui
30 verbose Linux 5.8.0-53-generic
31 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "electron"
32 verbose node v16.1.0
33 verbose npm  v7.11.2
34 error code ENOENT
35 error syscall open
36 error path /home/USER/Chia/chia-blockchain/chia-blockchain-gui/package.json
37 error errno -2
38 error enoent ENOENT: no such file or directory, open '/home/USER/Chia/chia-blockchain/chia-blockchain-gui/package.json'
39 error enoent This is related to npm not being able to find a file.
40 verbose exit -2

In chia-blockchain-gui, there is indeed no package.json file. Only the package-lock.json file. In fact, there is nothing much at all in the chia-blockchain-gui directory.

Try to remove ./node_modules and package-lock.json inside chia-blockchain-gui.
Then run "npm install --legacy-peer-deps"


Video stuttering and pausing while loading.

At some point (somewhere towards the end of videos), the playback "catches up" and fast forwards through the video to the correct point.
Playback of the video without closing the video player produces the correct result.
Versions:
"cordova-ios": "^5.1.1",
"cordova-plugin-youtube-video-player": "^2.4.0",
"@ionic-native/youtube-video-player": "^5.22.0",
iOS version 13.3.1


How to know if Openblas be built multi-threaded?

I install openblas by apt install libopenblas-dev at ubuntu20.04, and when I run sgemm function, it seems that only one cpu is occupied, is this the default behavior, or how can we know if it is built with multi-threaded or not

It is the default for small matrix sizes. You could try running ldd on the libopenblas.so installed by the Ubuntu package, a multithreaded OpenBLAS will show a dependency on libpthread (and/or possibly libgomp or libomp for OpenMP support). Or call openblas_get_config() from your program, which returns a version string with key configuration options, including the maximum number of threads.

Thanks! So there is some dynamic mechanism for openblas parallelism. I have tried your advice and do find out libpthread dependency, also the maximum number of threads is 64.


must site error

I cannot visit must site : https://musl.libc.org/releases, anyone knows what happened?

sorry

works for me.

I just tried and it's ok now. Thanks for your answer.  Maybe something wrong with my network.....


Added Support for RHEL7

For Rhel7 yum installation we also need python-setuptools as dependency.
Have a look at: https://github.com/elastic/curator/issues/454
for more information.

Will this be merged soon?

Also tried to rebase, but there are no new commits.
Is this project dead?


Add Notifications to homepage

Our new notifications system is a pretty significant update from Luna and is something we should be proud to show off. Let's put a section on the homepage.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/11619408-add-notifications-to-homepage?utm_campaign=plugin&utm_content=tracker%2F10548672&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F10548672&utm_medium=issues&utm_source=github).

I'm going to attach this to the loki branch as we show off a notification when you are looking at terminal
#1157


[Question] Move all instances of application to a different desktop

Hello guys.
First of all, great job you're doing here with Yabai.
I have a simple question, let's say we have multiple instances of the same app (Chrome, VSCode, whatever), what is the easiest way to move all of them at once to another desktop?
Thanks!

The following command should do it.
Replace "kitty" with "Google Chrome" or whatever the name of the application is, and the 1 in --space 1 with the desktop number.
yabai -m query --windows | jq 'map(select(.app=="kitty") | .id) | sort | join(" ")' | tr -d '"' | xargs -n1 -I{} yabai -m window --space 1

@koekeishiya nice, thanks! 🙂


Move kapteyn_celestial.py to extern and fix coveragerc

This PR:

moves the bundled file pyregion/kapteyn_celestial.py -> pyregion/extern/kapteyn_celestial.py. Having bundled files separate in an extern sub-folder is the standard practice in astropy and affiliated packages.
exclude that extern file in coveragerc, to get a more accurate coverage report. Currently the coverage goes from 52% to 61%.

I'll merge this as soon as travis-ci passes, should be an uncontroversial cleanup change.

Coverage increased (+12.7%) to 63.243% when pulling 616617dd1ea6d4fc64fed6f5d858bbdc0747a51e on cdeil:extern into be364daf88addb5e36d161532a0d69ff706c6dcd on astropy:master.


Support - Add new performance section in debug settings, with app startup time

📝 Description
Support - Add new performance section in debug settings :

Add in it app startup time recorded with react-native-startup-time package
Track app startup time it in segment with the appRenderCompleteTimeMilliseconds extra property. This could be useful to analyse the impact of app startup time on user churn.

Also:

Add react-native-bundle-visualizer command, to know what takes up space in the bundle

❓ Context

Impacted projects: `` live-mobile
Linked resource(s): `` https://ledgerhq.atlassian.net/browse/LIVE-4964

✅ Checklist

[ ] Test coverage
[x] Atomic delivery
[x] No breaking changes

📸 Demo

🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.

@ofreyssinet-ledger changeset have been added !
Thanks for the small fixes  :pray:


Sample Recipe: Basic EDA Structures

There are a couple starters for this recipe, the most complete of which lives within the Snowfakery repository itself. That version is reasonably complete as a base line but is missing good directions for beginners. Once we settle where samples should live we may want to include a modified version of that outside the main Snowfakery project.

[x] Clone existing recipe from Snowfakery repo into expected destination for sample recipes.
[x] Write directions in a Markdown file.
[x] Review and edit directions and recipe as needed.

@acrosman @samanthashain
Aaron Winters will work on this issue.

We are watching this in EDA. Please try to make this community contributa

They made a great deal of progress on this during the sprint in #65. There is more refinement to be done and more extensions to be added.

Created pull request #75 to close out remaining items for this issue.

Thanks to the folks who contributed to getting this done!


Provide a parameter to update memory allocation

Is your feature request related to a problem? Please describe
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Provide a mechanism to Increase Memory Size for TWS. Default value does not support complex mosaic screens, with multiple charts.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Have an environment variable with the desired memory value, ex TWS_JAVA_HEAP=1024
a script should replace line starting by -Xmx with the provided value
# maximum Java heap size
-Xmx768m

replace by
# maximum Java heap size
-Xmx1024m

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

An option to set the memory allocatio is to

download the vmoptions file from the container

docker cp tws:/opt/ibkr/ibgateway/10.26.1h/ibgateway.vmoptions .

update manually

  # maximum Java heap size
  -Xmx1024m

map the file as a volume in docker-compose.yml

...
  volumes:
    - ./ibgateway.vmoptions:/opt/ibkr/ibgateway/10.26.1h/ibgateway.vmoptions

script POC
TWS_HEAP_SIZE=1024;export TWS_HEAP_SIZE
sed -i "s/-Xmx768m/-Xmx${TWS_HEAP_SIZE}m/g" tws.vmoptions


Update isFormRequest condition

Replaces #208

:+1:
I guess multipart/form-data would be considered later on once needed

:+1:

:+1:


Home page

👷 Deploy Preview for crpp-ai-oncology processing.

Name
Link

🔨 Latest commit
c93533865635e0e1f22a9e60480221d72f2e818f

🔍 Latest deploy log
https://app.netlify.com/sites/crpp-ai-oncology/deploys/636b91df6868ae00082d7440


iid trial inference with SNPE

Hi, does the current training loop allow us to vary the number of trials per sample (for the purpose of the summary network?). For example, in this example https://www.mackelab.org/sbi/tutorial/05_embedding_net/ could we instead of always feed 1 picture at a time through the summary net, feed a random number of pictures (given that the summary net can handle an arbitrary number of inputs and still returns a fixed dimensioned output). Thank you so much for your assistance!

hi @anvo2 and thanks for the great question. But unfortunately this is not (yet) possible. Such an embedding net would need to be permutation invariant and be able to handle varying number of input shapes. This is tricky because for every new number of observed trials the posterior is essentially a different one, so in all neural posterior approaches one would have to train again.
If you go for a likelihood-based approach there could be a solution: you could train a likelihood estimator (NLE) or a ratio-estimator on single-trial data. Then, when you use the learned estimator for inference with MCMC, you could just combine the estimates of any number of trials to a joint likelihood (ratio) and then run MCMC (see e.g., http://proceedings.mlr.press/v119/hermans20a section 5.3.2)
NLE does not allow for embeddings in x, so for images as in your case that's challenging again. But NRE does allow for embeddings.
None of this is implemented in sbi as of now, but we will provide a tutorial notebook on this early next year.

the tutorial notebook for trial-based inference will be available in main with #638. Feel free to re-open if questions remain.


[subset/CFF] FDSelect format improvements

FDSelect in CFF table has two formats: 0 and 3.  3 is the range encoding and more common.  Currently loading font and even rountripping through XML retains the format, whereas if format is unset, the most efficient format will be chosen.
Ideally this should always use most efficient format and not expose format whatsoever.
However, OTS had a bug that format 0 was rejected if the FDSelect entry in the TopDictIndex was before CharStrings.  As such, I changed the subsetter to never use FDSelect format 0.  This is inefficient.
Currently cffLib says FDSelect and FDArray should both occur before CharStrings in the XML.  We should fix that to not have such requirement on FDSelect, and even better, remove FDSelect from XML output.  And then change the order in the TopDictIndex converters to write FDSelect offset after CharStrings such that old OTS will not reject format 0 FDSelect.
Ideally I like to make sure the actual FDSelect array itself (not the offset) is serialized before the CharStrings.  I like CharStrings be last thing in the CFF table.  But that might just be my obsession.
Anyway, commit with relevant links: 3c4b5e0a09cdb3b36be06163104a8403fb8539fb

I think we can go ahead and remove the workaround from 2014 OTS.


Error removing ad unused stack, present also after changing docker base path

Question:
Hello, i have a little issue with Portainer. I have changed my docker base path from my microsd to my HD. I have no issue and i'm using my containers and portainer works as well. In fact i started over and reinstalled my containers from scratch.
The only issue is that i have a stack for the application "netdata" that i can't delete. I do not know why it's still there... If i try to delete it i receive the error "Failure
Error: No such network: netdata_default"
How can i remove this from Portainer?

Hi @steakhutzeee, sorry for the late answer.
Depends, did you deploy this stack via Portainer or via the Docker CLI ?

I'm sorry instead. What i did was use my old config dir for portainer. Starting from scratch on portainer fixed the issue.
Something in the portainer /config was pointing to the old netdata container i was using, but now the issue is gone. Sorry again.


segmentation fault on Windows 11

Running on Win 11 24H2 with Python 3.9.5 (inside the Git for Windows Bash), I'm running into segfaults, after it returns an answer
❯ llm -m gemini-2.0-flash-exp "Who is Noah Kagan? Answer in two sentences max"
Noah Kagan is an entrepreneur known for founding AppSumo and for his popular blog, OkDork. He's also an accomplished marketer and advisor, often sharing insights on growth strategies and productivity.

[1]    7155 segmentation fault  llm -m gemini-2.0-flash-exp "Who is Noah Kagan? Answer in two sentences max"

 ~ ······························································································· SEGV ✘  16:57:31
❯ llm -m gemini-1.5-flash-latest "Who is Noah Kagan? Answer in two sentences max"
Noah Kagan is a Silicon Valley entrepreneur and online marketer known for his work at Facebook and founding AppSumo.  He's also a popular content creator focusing on entrepreneurship and marketing strategies.

[1]    7158 segmentation fault  llm -m gemini-1.5-flash-latest

fixed itself after upgrading to the latest Python


Update pnpm lockfile

Pnpm changed the lockfile version.
Mr to update it so people can install the codebase again without lockfile changes
resolving: https://github.com/chartjs/Chart.js/issues/11627

hmmmm, not sure why the CI is unhappy

I think the compressed size fails because it needs to use 2 sepperate versions of pnpm and it does not like that. So it should work in following pr's again. But it is an assumption, couldn't find things about it.


ctrld feature requests

Hello,
I have some feature requests for ctrld:

Auto-update ctrld to the latest version.

Some days ago, you released version 1.1.4, and I installed on my computer.
However, I just checked the version and it showed this:
sudo ./ctrld --version
Password:
ctrld version v1.1.5-next-9c22701

Have you implemented an auto-update feature in ctrld?

Use macOS notifications to alert users of several ctrld service events:

status / started / stopped / restarted / uninstalled
DNS set / not set
interface used / changed
auto-updated binary / config.toml
etc.

Include ctrld in Homebrew, so it can be installed and updated through that package manager.

Utility for Asus-Merlin and Tomato routers as mentioned here.

Self DNS-resolving speedtest in ctrld, and choose other protocols (Do3, DoQ or DoT) if they are faster than DoH for the current network.

Automatically set up the DNS server if there's a new network interface active.

Thanks.

Have you implemented an auto-update feature in ctrld?

Nope, that probably a tagging problem of go releaser, we will check this.

Have you implemented an auto-update feature in ctrld?

Nope, that probably a tagging problem of go releaser, we will check this.

@pmcarrion We updated MacOS binaries to correct the tag!
PS: There's no different in term of features between old and new binary (both are built at commit 9c22701), just the version generated is different when building using goreleaser.

Have you implemented an auto-update feature in ctrld?

Nope, that probably a tagging problem of go releaser, we will check this.

@pmcarrion We updated MacOS binaries to correct the tag!
PS: There's no different in term of features between old and new binary (both are built at commit 9c22701), just the version generated is different when building using goreleaser.

Thanks, @cuonglm!
sudo ./ctrld --version
ctrld version v1.1.4-9c22701

Please don’t forget to check the other requests. I think they would be very useful.


Add support for geo_shape represented as Well-Known Text (WKT)

This PR adds support for Well-Known Text (WKT) representations
of geo_shape types. The extent of the implementation is only as far as is
required by the WKT support in Elasticsearch.

Move GeoShape Query tests into Tests project
Add support for Z values in GeoCoordinate
Deserialize from WKT to IGeoShape types. The format from which
the shape is deserialized is assigned to an internal format property
on the concrete implementations of GeoShape as the intention is
not to expose this as a property on the IGeoShape interface. The format
is assigned to the instance so that the IGeoShape instance is
serialized to the same format if indexed again.
GeoWKTReader is a simple tokenizer implementation
for the purposes of parsing only WKT concepts that are supported
by Elasticsearch.
GeoShapeConverter now implements WriteJson() because the
original format of IGeoShape now needs to be taken into account
when serializing.
Add tests for roundtrip serialization of WKT.

Closes #3256

Wicked!

I see what you did there @Mpdreamz 😄


admin_pass set in metadata with  NoCloud

What happened:
When I create a Windows VM,  The passwd parameter does not work for default user: Admin, the real password is random. From the cloudbase init document, I should set admin_pass in metadata, Whether to provide a way for users to set metadata ？
What you expected to happen:
userdata in vm:
#cloud-config
set_timezone: Asia/Shanghai
users:
  -
    name: Admin
    passwd: StrongPassw0rd

cloudbase-init version: 1.1.2
cloudbase-init.conf:
[DEFAULT]
username=Admin
groups=Administrators
inject_user_password=true
bsdtar_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe
mtools_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\
verbose=true
debug=true
log_dir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\
log_file=cloudbase-init.log
default_log_levels=comtypes=INFO,suds=INFO,iso8601=WARN,requests=WARN
logging_serial_port_settings=COM1,115200,N,8
mtu_use_dhcp_config=true
ntp_use_dhcp_config=true
local_scripts_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\
user_password_length=10
retry_count=1
retry_count_interval=3
netbios_host_name_compatibility=false
san_policy=OnlineAll
first_logon_behaviour=no
metadata_services=cloudbaseinit.metadata.services.nocloudservice.NoCloudConfigDriveService,cloudbaseinit.metadata.services.configdrive.ConfigDriveService
[config_drive]
raw_hdd=true
cdrom=true
vfat=true

How to reproduce it (as minimally and precisely as possible):
Steps to reproduce the behavior.
Additional context:
Add any other context about the problem here.
Environment:

KubeVirt version (use virtctl version): A
Kubernetes version (use kubectl version): A
VM or VMI specifications: A
Cloud provider or hardware configuration: A
OS (e.g. from /etc/os-release): A
Kernel (e.g. uname -a): A
Install tools: A
Others: A

I'm not sure that we have any cloud
ase-init expertise to assist here, however if I were to take a guess at best first steps I would make sure the VirtualMachine definition user-data is set to type cloudinitConfigDrive and attached as disk type cdrom so that the cloudbase-init process in your customized windows image will correctly detect the supplied config.
After that, it would be a matter of collecting logs to identify whether that config is correctly discovered and if it is still failing see if there are any logs indicating why.


Code quality, bundling, etc.

This one is a slightly more involved change. It aims to fix three things:

first, there were undesirable cross-algorithm dependencies... for instance, Hacl_Streaming_MD5.h used to contain #include "internal/Hacl_Streaming_SHA2.h" because they both rely on the same type definition for their internal state, and it so happened that krml would insert the monomorphized type in SHA2 first, then MD5 would depend on it -- this is bad for modularity!
second, code was scattered across various files, without a consistent naming convention... I know that @pnmadelaine and others are trying to fix this, so I fixed many of those little inconsistencies, while I was it... notably

md5 is now consolidated into a single file, Hacl_Hash_MD5, which contains the streaming API + the one-shot API, but hides the internal block API
same deal for sha1, sha3

third, and this is a drive-by change, but I got rid of Hacl_SHA2_Types.h (now there's only the internal header)

Note: sha2 remains split between Hacl_Hash_SHA2 (legacy, still used by EverCrypt_Hash, see #756), and Hacl_Streaming_SHA2 (modern, eventually will be renamed into Hacl_Hash_SHA2).
The streaming state types are now in their own file: https://github.com/hacl-star/hacl-star/pull/780/files#diff-ccb48f7ad898e93510fca542c058834a92fc421a92c66cc372d36a1e684716fa
Just to be clear: this changes file names and function names.
This is a somewhat more involved change, so in addition to the usual reviews, I would love some feedback from @pnmadelaine and @franziskuskiefer
Thanks!

This should be green once the krml fix is in. I'll wait until then to hit "update branch".


#24 Fixed increased speed during diagonal movement

Using the Pythagorus theorem, this problem can be resolved, but the background pixels act weird during diagonal motion. Maybe increasing quality might improve it?

https://github.com/Glowstick0017/Little-Plane-Project/issues/24#issuecomment-1749456893


xarray imshow and pcolormesh behave badly when the array does not contain values larger the BoundaryNorm vmax

What happened?
If cmap.set_over is specified, the array color mapping and the colorbar behave badly if the array does not contain values above the norm.vmax.
Let's take an array and apply a  colormap and norm (see code below)

Now, if in the array I change the array values larger than the norm.vmax (the 2 bottom right pixels) with other values inside the norm:

Using matplotlib I get the expected results

Using xarray I get this weird behavior.

What did you expect to happen?
The colorbar should not "shift" and the array should be colormapped correctly
This is possibily related also to https://github.com/pydata/xarray/issues/4061
Minimal Complete Verifiable Example
import matplotlib.colors
import numpy as np
import xarray as xr
import matplotlib as mpl

# Define DataArray
arr = np.array([[0, 10, 15, 20],
                [ np.nan, 40, 50, 100],
                [150, 158, 160, 161],
               ])
lon = np.arange(arr.shape[1])
lat = np.arange(arr.shape[0])[::-1]
lons, lats = np.meshgrid(lon, lat)
da = xr.DataArray(arr,
                  dims=["y", "x"],
                  coords={"lon": (("y","x"), lons),
                          "lat": (("y","x"), lats),
                          }
                  )
da

# Define colormap
color_list = ["#9c7e94", "#640064",   "#009696", "#C8FF00",  "#FF7D00"]
levels =  [0.05, 1, 10, 20, 150, 160]
cmap = mpl.colors.LinearSegmentedColormap.from_list("cmap", color_list, len(levels) - 1)
norm = mpl.colors.BoundaryNorm(levels, cmap.N)
cmap.set_over("darkred")   # color for above 160
cmap.set_under("none")     # color for below 0.05
cmap.set_bad("gray", 0.2)  # color for nan

# Define colorbar settings
ticks = levels
cbar_kwargs = {
    'extend': "max",

}

# Correct plot
p = da.plot.pcolormesh(x="lon", y="lat", cmap=cmap, norm=norm, cbar_kwargs=cbar_kwargs)
plt.show()

# Remove values larger than the norm.vmax level
da1 = da.copy()
da1.data[da1.data>=norm.vmax] = norm.vmax - 1 # could be replaced with any value inside the norm

# With matplotlib.pcolormesh [OK]
p = plt.pcolormesh(da1["lon"].data,
                   da1["lat"],
                   da1.data,
                   cmap=cmap, norm=norm)
plt.colorbar(p, **cbar_kwargs)
plt.show()

# With matplotlib.imshow [OK]
p = plt.imshow(da1.data,
               cmap=cmap, norm=norm)
plt.colorbar(p, **cbar_kwargs)
plt.show()

# With xarray.pcolormesh [BUG]
# --> The colorbar shift !!!
da1.plot.pcolormesh(x="lon", y="lat", cmap=cmap, norm=norm, cbar_kwargs=cbar_kwargs)
plt.show()

# With xarray.imshow [BUG]
# --> The colorbar shift !!!
da1.plot.imshow(cmap=cmap, norm=norm, cbar_kwargs=cbar_kwargs)

MVCE confirmation

[X] Minimal example — the example is as focused as reasonably possible to demonstrate the underlying issue in xarray.
[X] Complete example — the example is self-contained, including all data and the text of any traceback.
[X] Verifiable example — the example copy & pastes into an IPython prompt or Binder notebook, returning the result.
[x] New issue — a search of GitHub Issues suggests this is not a duplicate.

Relevant log output
No response
Anything else we need to know?

It seems that the cmap gets replaced by xarray in https://github.com/pydata/xarray/blob/c0011e13b1edabcd541610d7fbef084bcb387183/xarray/plot/plot.py#L1182
which calls
https://github.com/pydata/xarray/blob/c0011e13b1edabcd541610d7fbef084bcb387183/xarray/plot/utils.py#L854
which then calls
https://github.com/pydata/xarray/blob/c0011e13b1edabcd541610d7fbef084bcb387183/xarray/plot/utils.py#L154
and this method has some special casing of BoundaryNorm that will create a new cmap
Not sure what all this code is supposed to do, though...
But hopefully these findings can help someone with better understanding to debug this :)

Is there any update on this issue? I have been running into the same problem recently and am happy to see that this issue was already recognized by others.

I'm still struggling to understand that whole workflow and it looks like this is no easy way of getting to the bottom of this.
But adding kwarg extend="max" to the calls to pcolormesh/imshow fixes this.
The docstring gives a hint:
extend : {'neither', 'both', 'min', 'max'}, optional
    How to draw arrows extending the colorbar beyond its limits. If not
    provided, ``extend`` is inferred from ``vmin``, ``vmax`` and the data limits.

So in first case everything works nice since extend is derived from vmin/vmax and data limits. In the second case, extend is obviously not set to the expected value (as in cbar_kwargs) as we've tampered with the maximum data values.
Not sure if aligning extend and cbar_kwargs-extend is already the solution.

I just combined @Huite's suggestion with splitting the if-statement. This works for both solving the issue and keeping the testcases in test_plot.py green.
    if levels is not None:
        cmap, newnorm = _build_discrete_cmap(cmap, levels, extend, filled)
        norm = newnorm if norm is None else norm
    if isinstance(norm, mpl.colors.BoundaryNorm):
        cmap, norm = _build_discrete_cmap(cmap, levels, extend, filled)

I will make a branch+PR

The related issues https://github.com/pydata/xarray/issues/4061 and https://github.com/Deltares/xugrid/issues/49 are fixed by supplying levels=levels instead of norm=norm to ds.plot(). However, the example code from this issue is not fixed, but it might be a good start to fix also this issue.

Thanks all the people above to have starting digging into the problem !
@veenstrajelmer : Adding the levels=levels argument (together with norm, ... or dropping norm) does not correct/change the output figure.
Of course commenting #da1.data[da1.data>=norm.vmax] = norm.vmax - 1 "solves" the issue, but this line of code is what enables to show up the bug, which is occurring when the array does not contain any value equal to or higher than norm.vmax

@ghiggi: If I understand it correctly, your issue/examplecode covers multiple issues. Since one subissue might be using norm instead levels, I would recommend trimming down your example code do only show the remaining vmax issue.

@veenstrajelmer I am not sure I understand what you are saying. In the example I pass only norm  to the plotting function ...
As suggested by @kmuehlbauer the solution to this issue is to specify the extend argument in both the plotting call and cbar_kwargs.
In the example, extend was only defined in cbar_kwargs (since is an argument mpl.Figure.colorbar). Likely we should align the arguments  somewhere in the code with something like this:
if extend is None and cbar_kwargs.get("extend) is not None:
   extend = cbar_kwargs.get("extend)
if extend is not None and "extend" not in  cbar_kwargs
   cbar_kwargs["extend"] = extend

Thanks to @jklymak, there was an update in PR I created (https://github.com/pydata/xarray/pull/7553). With the code from this PR, your code shows identical plots (except for the first one, but that should be the case). Hopefully the PR can be merged somewhere soon.


Building issues

I have found a series of issues in the building of the package.
First of all, there is missing include statements in the file Settings.h, in particular the file misses the #include<string_view> to use the string_view data type.
Moreover, the compiler raise the following error after fixing the missing include statement:
$ make
Consolidate compiler generated dependencies of target ScsEigen
[  7%] Building CXX object src/ScsEigen/CMakeFiles/ScsEigen.dir/src/Settings.cpp.o
/home/docker-dev/ws/scs_eigen_test/scs-eigen/src/ScsEigen/src/Settings.cpp: In member function ‘bool ScsEigen::Settings::eps(double)’:
/home/docker-dev/ws/scs_eigen_test/scs-eigen/src/ScsEigen/src/Settings.cpp:87:23: error: ‘struct ScsSettings’ has no member named ‘eps’
   87 |     m_pimpl->settings.eps = eps;
      |                       ^~~
/home/docker-dev/ws/scs_eigen_test/scs-eigen/src/ScsEigen/src/Settings.cpp: In member function ‘double ScsEigen::Settings::eps() const’:
/home/docker-dev/ws/scs_eigen_test/scs-eigen/src/ScsEigen/src/Settings.cpp:93:30: error: ‘struct ScsSettings’ has no member named ‘eps’
   93 |     return m_pimpl->settings.eps;
      |                              ^~~
make[2]: *** [src/ScsEigen/CMakeFiles/ScsEigen.dir/build.make:90: src/ScsEigen/CMakeFiles/ScsEigen.dir/src/Settings.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:158: src/ScsEigen/CMakeFiles/ScsEigen.dir/all] Error 2
make: *** [Makefile:136: all] Error 2```

cc @GiulioRomualdi

Hi @biagio-trimarchi, Thank  you for reporting 😊 Let me check it better!


Issue with Cloud password gone, now problem with RTSP credentials

Description
Hi, update HA and plugins and lost camera video, check issue, probe to downgrade and reset and have some another error, wrong login and password to RTSP, check them into VLC, all be ok...

Reproduction Steps
tapo c210 hw.v1, fw 1.3.11 b2311117 rel.36789n(455)

reset camera
configure again credentials in tapo app
delete camera from tapo control
add new camera
enter login/pass from step 2
receive error
check in VLC my string for rtsp - all be ok

Expected behavior
may be some problem in tapo control..
If applicable, add error logs.
No response
Device Firmware
1.3.11 b2311117
Integration Version
5.4.13
Using stream component
Yes
Does camera work via official integrations?
Yes
Camera has all attributes filled out in developer tools
Yes
HASS Environment
docker
Search for similar issues
Yes
Additional information
may problem in auth method in tapo control

Follow steps in faq.

I think I find way with this issue, if make credentials in tapo app for rtsp like as login and password in tapo cloud all works,
login = email
pass = pass for cloud
after it use cloud pass for nex step and in my config all worked

I mean ❗❗❗Invalid cloud password on firmware build 230921 and higher topic
if in camera create login and password for RTSP like login (email) and password for cloud all works


Fix: OTLP translator now keeps multiple separators in metric names

Fixes #15362

To solve this, I've refactored the function that splits metric names into tokens and separators. Now, the separators are inferred from the position gaps between tokens.
~The fix looks easy, but I've hit a strange behavior with foreign characters. Foreign characters skip positions when looping over an array of runes (a string). As shown in this playground: https://go.dev/play/p/qYywzhbbXcf Notice how the positions of 字 and 符 do not follow the numeral order.~ Fixed in the second commit :)

Seems like this is a candidate for a 3.0.1 release? If so let target the release-3.0 branch.

Seems like this is a candidate for a 3.0.1 release? If so let target the release-3.0 branch.

When is 3.0.1 scheduled for? It looks like we're still discussing a bit about what we're trying to fix here, I wouldn't block the release for this fix since it's a rare scenario

Can this PR be closed, since it seems to be replaced by #15664?

Yes it can!


Fails to generate symbols

Red popup:
'C:\Users\a.nikitin.atom\packages\symbol-gen\vendor\ctags-win32' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

Console log:
events.js:141
Uncaught Error: spawn C:\Users\a.nikitin\.atom\packages\symbol-gen\vendor\ctags-win32 ENOENT

Windows 8.1
Atom 1.6.1
symbol-gen 1.0.0

I am having this issue as well


Doc

Exposes docstring documentation of the datapipeline APIs.
I've added a few docstring for uncommented operations.
While working on this, I came to the following questions:

why aren't zip and round_robin in the same namespace than map (DataPipeline vs DataPipelineBuilder) or in fairseq2.data ?
could we add an alias .collate(pad_idx=PAD) instead of .map(Collater(pad_idx=PAD)) this would make it easier to document and explain
if you want only one column StrSplitter is a bit awkward: read_text("tatoeba.tsv").map(StrSplitter(indices=[1])).map(lambda x: x[0]) could we simplify that to read_text("tatoeba.tsv").map(StrSplitter(indices=1)) ?
MemoryBlock should be moved to data.MemoryBlock
read_text could be promoted to data instead of data.text

Preview:

why aren't zip and round_robin in the same namespace than map (DataPipeline vs DataPipelineBuilder) or in fairseq2.data ?

Unlike map and other instance methods of DataPipelineBuilder, zip and round_robin are standalone build constructor functions similar to read_sequence and list_files. I exposed them as static instead of standalone functions mostly for cleaner syntax (although I agree that this is subjective). Instead of having a round_robin_data_pipelines(), I personally found DataPipeline.round_robin() a tad cleaner.

could we add an alias .collate(pad_idx=PAD) instead of .map(Collater(pad_idx=PAD)) this would make it easier to document and explain

Yeah, I was thinking the same, exposing a convenience alias function. I had to abruptly switch from data loader work to seq-gen and that one stayed in the backlog. Feel free to add one.

if you want only one column StrSplitter is a bit awkward: read_text("tatoeba.tsv").map(StrSplitter(indices=[1])).map(lambda x: x[0]) could we simplify that to read_text("tatoeba.tsv").map(StrSplitter(indices=1)) ?

Just to re-confirm, you say that if the specified indices argument is an integer instead of a list, we should ideally return the corresponding column value without wrapping it into a list, right? I think it makes sense, as you said it would simplify such use cases.

MemoryBlock should be moved to data.MemoryBlock

I deliberately kept it in fairseq2 since I intend to use it in other APIs in the future (e.g. gang) that won't be in data.

read_text could be promoted to data instead of data.text

My intention was to consolidate everything related to text handling under fairseq2.data.text, that is why it is under that package. Why do you think it would be cleaner under fairseq2.data?


Small typo

https://github.com/Agorist-Action/csharp-monero-rpc-client/blob/1f39c0bcccf67d61d29cf3547a9f9d1feac58add/Network/RpcCommunicator.cs#L187
Small typo, probably should be "null or whitespace".

56e42aa6188b4e12ddf3ee1e0b4636e869c975a8


Make Cloud Keys editable

Version: Master 2.2 (2/13/19)
What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):

Create one or more cloud keys
Notice on the Cloud Keys page you cannot edit but it is editable(updatable) in the API.

Result:
Use case: sometimes keys are created that expire. Users will need to be able to update their key so their node templates still work. Sometimes keys just need to be replaced such as if they need to be changed out for security reasons, etc.

Version: Master 2.2 (2/20/19)
Confirmed issue. You can edit cloud keys.
When I tested with DigitalOcean the key is validated as well and we get an appropriate error if it is incorrect.

Confirmed the same for Amazon. Azure is not capable of auth checks yet or is not working (but is unrelated to this issue).
I smoke tested this area and confirmed this is working as expected.


[BUG] odd failure in fh._coerce_to_period that occurs only on windows, in context of hierarchical forecast

When making hierarchical forecasts on default output of _make_hierarchical, fh.coerce_to_period fails, on a windows run:
https://github.com/alan-turing-institute/sktime/runs/5503723513
This is quite strange, and I cannot reproduce the behaviour locally on my windows machine (python 3.8 or 3.9).
It looks like freq is not correctly preserved in subsetting from a hierarchical multi-index ... but only under specific conditions on a windows system???
Expected behaviour: the test does not fail, just like on linux/max and as on my local system.

any good ideas from those who have recently looked at fh or freq?
@khrapovs, @eenticott-shell, @k1m190r?
I'd give this bug high priority due to the hierarchical functionality attached to it.

suspicion: get_cutoff(_make_hierarchical()), for some reason, results in a time stamp without the freq attribute. Why, and why specifically on windows? On my local system, the freq attribute is not lost.

Might be a data types issue, I'll look into it!


Update glossary.md

Changed wording
Category

[x] Content fix
[ ] New article

Wording change

Docs Build status updates of commit faaf214:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Community/glossary.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel