feat(mat-selection-list): add slide toggle as alternative for checkbox

Bug, feature request, or proposal:
feature request
What is the expected behavior?
Option lists can have slide toggles instead of checkboxes, as you can see on Android OS.
What is the current behavior?
Option lists are only for checkboxes and if you want to create something that has the same look but has a slide toggle instead, you will have to implement by yourself.
What is the use-case or motivation for changing an existing behavior?
Its a very common option list format, very used on Android 5~6.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Material 5.1
Is there anything else we should know?
You can find it in Material's guidelines:

(switches are very cute btw)
Cute sidebar example:

(inspired by Twitter's PWA, achieved with slide-toggle, mat-list and ::ng-deep, that's a lot more than I expect to write)

I agree. That would be really nice to have.

As long as switches are most used for options, what about create a mat-options-list that uses slide toggles by default and leave mat-selection-list as is?

cc. @jelbourn
This would be actually pretty easy to implement. We could have something like a [indicatorType] input binding that allows deciding which indicator to use (e.g. checkbox, slide-toggle).
It just feels a bit unfortunate, that we would need to have a dependency on the MatSlideToggleModule. We could fix that by either letting the user project the indicator manually, or by having a separate module for the selection list.

The list-option currently uses a pseudo-checkbox in order to avoid the cost of a full checkbox (since they are SVG-based), and because they shouldn't be real checkboxes for a11y. We may want to do something similar for slide-toggle.

Yeah I noticed that while playing with that issue. Although, I think having something like a pseudo slide-toggle kind of might be difficult. Especially with the dragging functionality.
Letting the user project the indicator component itself, feels like the best solution, but unfortunately will involve so much boilerplate.
<mat-list-option>
  <mat-slide-toggle matOptionIndicator></mat-slide-toggle>
</mat-list-option>

I noticed that the mat-list-..'s checkbox has a little different visual behavior than the checkbox component itself, should it be that way?
@DevVersion I noticed that as developers in Angular Material we can't customize as much as we can in Bootstrap, because you always try to make things as simpler as possible. That's good and that's bad too. I already had difficults with other components because of that. I don't know what you wanna do at this point, but you could build the components in layers, exposing the base and the abstracted version, so devs can mix components. I know that this could allow some people to mess things up, bug it's worse when we do that mess in SCSS with shadow piercing. Another advantage of letting devs customize things is that some of new (and not already implemented) components in Material would be covered up with some component mixin. It's a hard decision btw.
For now, I think that the easiest to stay in the project standards/guidelines,  would be create a new component called mat-option-list which would have a different purpose than mat-selection-list and could share the same logic behind the hood (could have a lower level component, where Material team would create the boilerplate).
Just some ideas, thanks for taking this issue forward. 😊

In our app we had the lists with the slide toggle, but because it is not possible now, we had to change them to the checkboxes. and that's really not good, because our users were used to something else....😥

any updates on if this will be implemented?

I need the same thing but for star icon and star_bordred icon


Remove version: Jackett.Jackett version 0.21.361

404 - release deleted
Microsoft Reviewers: Open in CodeFlow

URL: https://github.com/Jackett/Jackett/releases/download/v0.21.361/Jackett.Installer.Windows.exe
Response Error: The remote server returned an error: (404) Not Found.
(Automated message - build 918)


Unexpected token 'null' on web

Because fake_cloud_firestore is using this package, it will although not work on web atm.
This might be a naming problem for one of the files and might be happening while compiling dart code into JS code.
Reproduce:

Create new flutter project (v. 3.7.3 stable)
Add fake_firebase_security_rules: to dependencies
Call FakeFirebaseSecurityRules(''); somewhere, e.g. build method.

FYI: This error will only occure in debug mode, not in profile or release.

What are you trying to do? In theory, fake_firebase_security_rules is only used indirectly when using fake_cloud_firestore. Also it is used for running unit tests, so it should be added to dev dependencies instead of dependencies. Finally, you probably want to give it actual rules instead of empty string or the project will deny any request.

Oh I misread your message. You are experiencing this when using fake_cloud_firestore. Does it occur when passing a non-empty string, like actual rules?

Thanks for the quick answer.
I am using FakeFirebaseFirestore() and never inject securityRules.
It is although already a dev-dependency.

Your tip was spot on. I had a file called null.dart. After renaming it, it worked like a charm. I applied the fix to cel, whgich fake_firebase_security_rules depends on. If you run flutter pub upgrade, it should transitively upgrade cel to the latest version, and it should fix it. Feel free to reopen the ticket if you still encounter the issue.


🌐 [WIP] Update German translation

Marking this as WIP until my questions are dealt with.
I've split this PR into two commits - the first one is the result of scripts/update-po.sh -l de, the other one is the actual translation. This makes it easier to see the actual changes to translated strings ;)
What do you think? I don't really know how to translate the transition effects, though...

Looks great! I think I wouldn't have translated "Tooltip" though :smile:. The transition effects I would not translate as they are quite commonly used "Denglish" words.
Thank you so much for this fast contribution!

I contribute translations to the GNOME Project for some time now and I've used our dictionary - that's where the "Tooltip" translation comes from.
But if you are not happy with it, I'll change it of course - you are in charge here ;)

No, it's totally fine :D. I know that you have much more experience here - I didn't even know about this dictionary. That's a handy thing to have!

Hi all,
could you tell me where is the new string to translate?
I'm ready to translate.
Thanks.
Albano

Hi Albano,
Please follow the instructions in docs/translating.md.
You can update it.po by running the command scripts/update-po.sh -l it.
When you are done translating, file a PR against the release/v5 branch.
Thanks!

Ready now!


NewPlaylistButton now hidden again.

Can you provide a screenshot of the change you've made in the application interface?

From the code, it is clear that it was intended that the New Playlist Button is meant to be removed as part of the theme. For whatever reason, that specific code element's name has since changed.

That line is present in a lot of different themes, nonetheless in almost all screenshots the button is visible (look for example at Pop-Dark or at Elementary). So probably they did not care about it

@rien333 what is your idea?

@morpheusthewhite In the comments of the file, the author specifically writes

/Hide some annoying elements like profile name and pic, upgrade button and device connect bar at bottom, new playlist button/
which clearly shows that they intended to remove it. Furthermore, there is no element within the Spotify default theme named 'NewPlaylistButton' but only 'NewPlayListButton__button' hence the PR.

Personally, I like it without the button (too big for how often I guess anyone wants to make a new playlist), but I'm not a hardcore spotify user.
As you already said, the line question is indeed just a line that is/was present by default in the spicetify user.css file - hence why it's present in virtually all other themes. @doubletruth  If you think the spicetify author made a mistake, you should open an issue there.
That said, I've been trying to remove a lot of stuff from the spotify UI as well, given that I really don't use it for anything other  than to the search for and listen to albums I've found elsewhere. I've been hesitant to upload it though, because my use case is quite limited. Nevertheless, it might be nice to have an example heavily modified user.css file to showcase what's possible. Users can still easily copy over a user.css file from another theme. Or I could upload it as a new theme nord-minimal.
I forgot what else I changed, but I did remove the sidebar in full:

Hide some annoying elements like profile name and pic, upgrade button and device connect bar at bottom, new playlist button

which clearly shows that they intended to remove it. Furthermore, there is no element within the Spotify default theme named 'NewPlaylistButton' but only 'NewPlaylistButton__button' hence the PR.

Again, this is part of lot of themes. As was said, this is probably because they were all created starting from the default theme.
Nonetheless I'll merge this PR, following @rien333's suggestion

That said, I've been trying to remove a lot of stuff from the spotify UI as well, given that I really don't use it for anything other than to the search for and listen to albums I've found elsewhere. I've been hesitant to upload it though, because my use case is quite limited. Nevertheless, it might be nice to have an example heavily modified user.css file to showcase what's possible. Users can still easily copy over a user.css file from another theme. Or I could upload it as a new theme nord-minimal.

Yes, if you think there are interesting differences you can open a PR as NordMinimal or whatever you want to call it

@khanhas I think you should fix it in the default theme


Support Omni Lock in addition to PW-Lock.

I'm submitting a ...
[ ] bug report
[X] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

Summary
Add support for Omni Lock in addition to PW-Lock, and make Omni Lock the default.

Added.


Visual for ciclying windows

This is an  enhancement suggestion to Add something more visual for ciclying through windows (alt + tab), as a box in the middle of the screen with window icons, for example, as almost all WMs do.

Hmm, this might be a useful option to have in menus.  Then it could be brought up by opening a menu with only that included... It would be cool to have in the main start menu too.

For the beginning it would be enough to have a standalone menu showing up in the screen center (for multiscreen setups either on screens where at least one of available mouse cursors is on all screens).
Actually for this to work, it might make sense to add position properties (pixels, "current cursor position", percentage, whatever units or constants) to each menu section in the config file as I would like the menus invoked by pressing a keyboard combination to appear so, that their center of gravity is 30% from the top (70% from the bottom) and 50% from left (50% from right).
Making menus appear at an arbitrary position on the screen would probably require the hack which FVWM uses to visually select an item in the list. Namely warping the cursor to the first (or middle [1] [2] or whatever) item in the list and after closing the menu with keyboard (by pressing Esc or selecting an item with Space/Enter), warping the cursor back to it's original position unless the mouse cursor was moved by mouse (not by keyboard presses).

With regards to warping one of mouse cursors to the window list menu, actually only selecting the first or the second item makes sense (not the middle one nor the last one).

any updates on this? would be super cool! i think the openbox style is the best if it clickable also :)

@gitlerat first step would be implementing https://github.com/joewing/jwm/issues/391 - would you make a PR?

Hi @dumblob sadly i dont know what PR means. I am no programmer, so it is only a suggestion from me :)


Updated broken path

Updated path to reflect current location of manage-access-with-collections.md

Proposed changes

Existing link was broken. Found the correct file located in another directory, and edited the link as appropriate.
Related issues (optional)

Thanks, @quadespresso !


Fix demangle core

What problem does this PR solve?
Issue Number: #2025
Problem Summary: Segfault in demangle
What is changed and the side effects?
Changed: verify pointer before calling free()
Side effects:

Performance effects(性能影响): No

Breaking backward compatibility(向后兼容性): No

Check List:

Please make sure your changes are compilable(请确保你的更改可以通过编译).
When providing us with a new feature, it is best to add related tests(如果你向我们增加一个新的功能, 请添加相关测试).
Please follow Contributor Covenant Code of Conduct.(请遵循贡献者准则).

LGTM


support gptQ on Polyglot branch

I am testing a model in Korean and would like to validate the performance when applying gptq.
The Korean evaluation set exists in the polyglot branch, so I merged the gptq functionality in that code. (https://github.com/EleutherAI/lm-evaluation-harness/pull/519)
Also, when entering device_map="auto" on a parallel GPU, I had to use use_accelerate=True to avoid errors.
Fixed the README.md, adding some guide.

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

@StellaAthena @jon-tow  plz check!

@YooSungHyun if this is working for you I'll merge it, but I want to flag that we also want to work to upstream the Korean evaluation task to main.

@StellaAthena  thx for chk!
Many Koreans are currently using the polyglot branch. In the long run, I think it would be appropriate to move it upstream, but I don't have the time at the moment.
I've released it to the Korean AI community (arca.live), so I'm sure it will be useful to many people, not just me.
https://arca.live/b/alpaca/93776367?p=3
I would be grateful if you could merge the branch.


Replacing this.setState()?

Is it possible to use react-copy-write to read/write local component state rather than from the Provider context?
A possible API might look like this?
import { createLocalState } = from "react-copy-write";

const { LocalState, localMutate } = createLocalState({
  user: {
    avatar: {
      src: 'my-avatar.png'
    }
  },
  theme: {
    avatar: {
      background: 'blue'
    }
  }
});

const Avatar = ({ size }) => (
  <LocalState consume={{size}} select={[
    state => state.user.avatar.src,
    state => state.theme.avatar,
  ]}>
    {(src, avatarTheme) => (
      <img
        onClick={() => localMutate(draft => {
          // Mutate state! You dont have to worry about it!
          draft.avatarClickCount++;
        })}
        className={`avatar-${size}`}
        src={src}
        style={avatarTheme} />
    )}
  </LocalState>
)

Hey @davej! Thanks for bringing this up. In general I don't think react-copy-write should replace regular React state. One of the best things about it is that you can use it alongside other stateful React components when necessary.
If you'd like to use the mutate method to update local state, try just importing immer directly. This is what RCW uses internally, and mutate is just a small wrapper around it.
Hope that helps!


Proposal logo/Icon

Hi,
I have read your work so I decided to creat a logo for you.I hope you like it and you want to use it.I can give you all the formats of the design free.If you want to make changes please specify.
Greetings

Thanks!.
I cannot open the link.
Current logo came out of openclipart. Any improvement is welcome.
Any colaboration to the project should be to be provided free of charge for
everyone forever.
This app will never ever be monetized in any way at least by me. If anyone
wants to monetize can copy rebrand and publish on their own with no link to
me.
On Mon, May 21, 2018, 1:19 AM amirdesaingrafis<EMAIL_ADDRESS>wrote:

Hi,
I have read your work so I decided to creat a logo for you.I hope you like
it and you want to use it.I can give you all the formats of the design
free.If you want to make changes please specify.
Greetings
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/soynerdito/BlueSound/issues/12, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFaDqy_VaBkZuiJIaj_Zf0WFsvLHzvxks5t0k5-gaJpZM4UGcbp
.


Prevent minichlink from hanging with some CH32V003 revisions and WCH-LinkE

This is a fix for issue #371. Some CH32V003 revisions will get minichlink stuck in an infinite loop when writing to DMCFGR twice in a row.
If anyone has chips with revisions different from what is listed in the issue (i.e. 02D13 and 12E22) and different from the SOP-8 variant with revision D26, please confirm that this does not break minichlink.

I just can't find a situation where this fails so I'll just merge.


cfr calculation problem in the implementation for deep cfr

    else:       other_player = state.current_player()       _, strategy = self._sample_action_from_advantage(state, other_player)       # Recompute distribution for numerical errors.       probs = np.array(strategy)       probs /= probs.sum()       sampled_action = np.random.choice(range(self._num_actions), p=probs)       self._strategy_memories.add(           StrategyMemory(               state.information_state_tensor(other_player), self._iteration,               strategy))       return self._traverse_game_tree(state.child(sampled_action), player)
In the code line314-325, when the current player is not the updating player, the function _tarverse_game_tree will return the child node's utility directly which is not coincided with the original definition for CFR.
To be more specific, these code's defintion for CFV and CFR are:

But the original definition for these are:

We can see that these equations differ one factor which is:

I cannot find any modification in the origin paper . So these modifications are okay? Will it changes the boundary for the accumulative regret?

Hi @dvstter, yeah that's because Deep CFR uses external sampling, so that term cancels with the denominator when you do the importance sampling. For example, see the C++ update here: https://github.com/deepmind/open_spiel/blob/47492034bc4124464d8258da63ee8a90ccf6edf2/open_spiel/algorithms/external_sampling_mccfr.cc#L169
Super happy to explain why in more detail, but I guess that should also be the case in the Deep CFR pseudo-code from the original paper. If you want to dig more into why, I'd say my thesis chapter 4 is a great place. :)


Can't build from cargo

I install rust from homebrew, went into a empty directory and tried to install with cargo:
~/temp ❯❯❯ cargo install --git https://github.com/mmstick/parallel
    Updating git repository `https://github.com/mmstick/parallel`
error: multiple packages with binaries found: generate-files, libc-test, parallel

Not sure what I'm doing wrong?

Try cargo install parallel

That seems to work, or just cloning the git repository.

The proper command for installing from git is:
cargo install --git https://github.com/mmstick/parallel parallel


[LOGGING-190] Add OSGi metadata to enable Service Loader Mediator

This fixes https://issues.apache.org/jira/browse/LOGGING-190.
In contrast to the initial proposal at the mention issue I also added the directives resolution:=optional;cardinality:=multiple to allow the bundle to resolve without any and to wire to multiple providers if available.
@jcompagner please verify that this works for your case. You can simply build the jar running maven from the project root:
mvn --show-version --batch-mode --no-transfer-progress -Ddoclint=none

Ping @jcompagner 😉

yes that seems to be working fine, now the registration of log4j.jcl is picked up


Slip ring design for RMD-X7 motor board

@Jtayama54 Make some digging about these questions:
What is the dimension of the slip ring? How big it is? How many current do we need to deliver?

I don't understand the title of this issue. It is very confusing.

https://files.slack.com/files-pri/T01A4MDQLNN-F01EG34N62F/image.png

Slip ring dimensions based on trace widths/spacings for CANL, CANH, VCC, & GND.

A Few Additional Requests
Add HOME Pad
A discovery about the encoding scheme for the RMD-X7 motors shows that the encoder is not reading from the output of the motor shaft, but from the internal input motor. Meaning that 360 degrees of rotation of the encoder accounts for only 60 deg rotation on the output. But after 360 degrees of rotation, the count resets. During normal operation, the motor's software can track when it crosses between 360 degrees and back to 0 degrees, but when the motors are turned off, it loses track of that data.
In order for the drive controller to know where the motor is, we need to give the motor some sort of feedback signal indicating that it is at a predetermined position, a HOME position.
I request that a HOME pad is added to the slip ring on the outer race position. Just a small square or circular pad. On the opposite side, a pogo pin for the 5th race should be connected to GND. This way, the drive board can pull up the HOME pin and when it sees it fall to GND, it knows it hit the home position.
See this presentation for more details:

https://docs.google.com/presentation/d/1f3TRtCSIvBHE58bGw5FQUc8k5HU7_gxTPD1gcxIJRI8/

Mounting holes
This design doesn't yet have a concept of mounting holes. I'd imagine that there would be 3 or 4 mounting holes on the PCB that allows for someone to screw one of the boards into the servo chair and the other into the drive fork. This is now even more important as the HOME pad needs to be aligned to the same position for each assembly and disassembly. If there aren't any mounting holes to keep the pad properly aligned

I have managed to create a circular trace in Easyeda. However, I think that we can definitely increase the trace width of the signal to increase connection with POGO pins as long as they all are spacing correctly

Maximum height: 3mm
Outer diameter: 100mm

Updated dimensions
Inner Diameter = 93 mm
traces = 53 mil
spaces = 15 mil
Outer Diameter = 111.034 mm (redundant dimension)
Note that the inner-most trace will be divided into 8 equal segments.

the innermost trace should be divided into 6 segments. Where is the mounting hole going to be?

@HaadiElahi I don't think you need to worry about designing the actual PCB in CAD. Also the traces are way way too small for anything the team will be doing. It may be best to simply have a simple placeholder in your CAD and let @QuanLe8191 do the CADing of the cirucular traces + HOME pad.

I make some change to the trace width:

GND: 2mm
VCC: 2mm
CANH: 1mm
CANL: 1mm

Here is the 3D view of the top layer:

Why are they so thin? Its better that we make them larger so that we don't have to be super precise about the pogo pin locations. and about vibrations kicking the pogo pins out of place.

@QuanLe8191 Your easyeda link is giving me permission denied when I try to go to it.

Gold Plating The Exposed Traces
It is very important that we use gold plating for the exposed traces (or something close enough but cheaper). Tin plating is the standard and it is pretty useful more almost all uses to prevent oxidation and damage to exposed traces. But for the slip ring that will have have to endure continuous dragging of the pogo pin, using a gold plated (or strong plating) for the traces is something we should definitely do. Also the pogo pins should also be gold plated as well to make sure that they do not rub away as well.
For some context RAM slots and slotted devices in general use gold plating to prevent them from chipping.

Im thinking it will be quite difficult to do the tracing for the 6 fragment circle home

Im thinking it will be quite difficult to do the tracing for the 6 fragment circle home
Add ADC schematic for the 6 fragment trace

I'm not sure if I understand what you mean here. Does this mean that you are going to revert to the single PAD home rather than the 6 sector analog pads.

Im thinking it will be quite difficult to do the tracing for the 6 fragment circle home
Add ADC schematic for the 6 fragment trace

I'm not sure if I understand what you mean here. Does this mean that you are going to revert to the single PAD home rather than the 6 sector analog

Gerber view and price:

Fix the slipring dimension: currently the radius is 110mm

Fix the slipring dimension: currently the radius is 110mm

Key Elements of the Slip Ring Design

Contains 4 Conductive Circular Tracks:

VCC
GND
CANH
CANL

Contains 1 Conductive Pad For Homing:

Shape: Square
When pogo pins on lower side of the device makes contact, should short homing pin to GND

PCB should be KEYED

Only 1 way to put assemble this part.

Thick Ring Traces

Helps to reduce tolerance issues
Reduces contact misses
Reduces chance of shorting against other contacts

Multiple pogo per track

Contact redundancy
Current throughput (not that big an issue)

Use Easy to Interface Connector

Phoenix connector

KEY and Connector Position Concept
See CAD Here

Key Elements of the Slip Ring Design

Contains 4 Conductive Circular Tracks:

VCC
GND
CANH
CANL

Contains 1 Conductive Pad For Homing:

Shape: Square
When pogo pins on lower side of the device makes contact, should short homing pin to GND

PCB should be KEYED

Only 1 way to put assemble this part.

Thick Ring Traces

Helps to reduce tolerance issues
Reduces contact misses
Reduces chance of shorting against other contacts

Multiple pogo per track

Contact redundancy
Current throughput (not that big an issue)

Use Easy to Interface Connector

Phoenix connector

KEY and Connector Position Concept
See CAD Here

Slip ring redesign with the dimension fix. I have to increase the outer diameter to 112mm to fix all the traces; also some of the traces widths was changed to fix everything in:

GND and VCC traces changed from 3mm to 2mm.
CANH and CANL changed from 2mm to 1.5mm

Slip ring redesign with the dimension fix. I have to increase the outer diameter to 112mm to fix all the traces; also some of the traces widths was changed to fix everything in:

GND and VCC traces changed from 3mm to 2mm.
CANH and CANL changed from 2mm to 1.5mm

3D file of the slip ring (pogo side):
OBJ_Drive slip ring design_home pad(pogo)_2021-01-17.zip
3D file of the slip ring (trace side):
OBJ_Drive slip ring design_home pad(trace)_2021-01-17.zip

3D file of the slip ring (pogo side):
OBJ_Drive slip ring design_home pad(pogo)_2021-01-17.zip
3D file of the slip ring (trace side):
OBJ_Drive slip ring design_home pad(trace)_2021-01-17.zip

DXF file:
slip_ring.zip

DXF file:
slip_ring.zip

These traces look way too close to each other. I'll take a look at the
The connector for the "Trace" and "pogo" PCBS are on the wrong way. It should be facing away from the traces not towards it as indicated by the silk screen.

These traces look way too close to each other. I'll take a look at the
The connector for the "Trace" and "pogo" PCBS are on the wrong way. It should be facing away from the traces not towards it as indicated by the silk screen.

Make some changes to the circuit based on Khalil suggestion:

The board have some clearance error:
I8QuotationReport_2hq2ygfp_DFM.pdf

Make some changes to the circuit based on Khalil suggestion:

The board have some clearance error:
I8QuotationReport_2hq2ygfp_DFM.pdf

Pogo side:

DRC check:
I8QuotationReport_e1rxdqqw_DFM.pdf
DXF file for both:
slip_ring.zip
@HaadiElahi

Pogo side:

DRC check:
I8QuotationReport_e1rxdqqw_DFM.pdf
DXF file for both:
slip_ring.zip
@HaadiElahi

This is looking great @QuanLe8191 ! Can you make sure that the hole dimensions are correct and make sure we have enough space between the holes and edge of the board. These could break if they are too thin.

This is looking great @QuanLe8191 ! Can you make sure that the hole dimensions are correct and make sure we have enough space between the holes and edge of the board. These could break if they are too thin.

Oh!

Also I noticed that the pogo board still have the incorrect orientation of the connector.
It would look nice if we had a vertical line that acted as a divider between the PCB traces/pogo pin square area and the connector area.

Oh!

Also I noticed that the pogo board still have the incorrect orientation of the connector.
It would look nice if we had a vertical line that acted as a divider between the PCB traces/pogo pin square area and the connector area.

This is looking great @QuanLe8191 ! Can you make sure that the hole dimensions are correct and make sure we have enough space between the holes and edge of the board. These could break if they are too thin.

You mean the drill hole at the 4 corners?

This is looking great @QuanLe8191 ! Can you make sure that the hole dimensions are correct and make sure we have enough space between the holes and edge of the board. These could break if they are too thin.

You mean the drill hole at the 4 corners?

One last thing. This may not matter that much, but each ring is a loop. Loops can allow current to flow through them, generated by EMF waves  or by magnetic waves, generating spikes and distortions in the signals. It may make sense to break the loop for all connections just as you have done with the GND loop segment. @QuanLe8191

One last thing. This may not matter that much, but each ring is a loop. Loops can allow current to flow through them, generated by EMF waves  or by magnetic waves, generating spikes and distortions in the signals. It may make sense to break the loop for all connections just as you have done with the GND loop segment. @QuanLe8191

@QuanLe8191 I modeled the slip ring in CAD and it looks like the connector needs to be moved out so it doesn't interfere with the plate. You can reference the dimensions in the last picture. Basically the connector or trapezoid portion of the ring needs to be extended 4 mm (I changed it from 11.5 to 15.5 mm)

@QuanLe8191 I modeled the slip ring in CAD and it looks like the connector needs to be moved out so it doesn't interfere with the plate. You can reference the dimensions in the last picture. Basically the connector or trapezoid portion of the ring needs to be extended 4 mm (I changed it from 11.5 to 15.5 mm)

Thanks @HaadiElahi for putting those dimensions together. Makes it very clear what is needed the EE team. This change shouldn't cost too much with regards to the PCB manufacturing.

Thanks @HaadiElahi for putting those dimensions together. Makes it very clear what is needed the EE team. This change shouldn't cost too much with regards to the PCB manufacturing.

The inner hole is not cut out. Need to follow SJSURobotic naming standard for PCB

@QuanLe8191 there are lot more things that need to be changed with the design as I mentioned in slack. Can you list them out in a comment using the check box syntax like this:

[ ] task 1
[ ] task 2
[ ] task 3

Things to improve for the slip ring:
[ ] Change inner hole to board cut out
[ ] Board naming convention should follow the standard: team name, designer, date, rev
[ ] Open traces to reduce EMI
[ ] Larger Via for more current flow on trace board

@davidbdias96 Object file of the slip ring:
OBJ_Trace vA.2_2021-02-23.zip
OBJ_Pogo Side_2021-02-23.zip


Why imwrite's result is different from the original Mat object?

Hey, guys.
I get a problem. I try to use imwrite to save a Mat object as an image file, then, I use imread to read the file into another Mat object. It is surprising that the two Mat objects are not totally the same, some pixels are not equal!
How can I solve this problem? I need to ensure that the two Mat objects are the same.
Thanks!

Do you want something like cv::FileStorage to serialize Mat data?
What type is used in Mat (CV_8UC3 or other)?
What format is used for image (JPEG is not lossless)?

The type I used in Mat is default(may be CV_8UC3 ?)
The format I used for image is jpg.
I want to save a Mat object as a jpg file and if I read the jpg file as a Mat object, the pixles need to be the same as the original one.That 's all I want.
Thanks.

Hey, I think I have got the answer.
The jpg format will compress the original Mat object which causes the result  file be different from the original Mat object.
Thanks, again!

You can adjust jpeg compression quality by using CV_IMWRITE_JPEG_QUALITY parameter while calling imwrite. By default it's 95.
If quality parameter is kept at 100, quantization loss can be avoided.There will be some loss in fixed point DCT, but imread output image should be very close to the corresponding input image of imwrite.
In case you want exact match, try .png or .bmp filename extension while using imwrite.
Please check imread documentation for more information.

That's very helpful, thank you!


Add new signing service at http://<IP_ADDRESS>/eve/v1/tpm/signer

Three commits:

Export function for AddAuthentication
Add the service to zedrouter
A new /opt/zededa/bin/pbuf command for testing

Ignoring the yetus warning for
golangcilint: SA1019: package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead. (staticcheck)
and will explore that in a separate PR.


Added Dijkstra Algorithm [Python]

Fixes #289
By submitting this pull request I confirm I've read and complied with the below declarations.

[x] I have read the Contribution guidelines and I am confident that my PR reflects them.
[x] I have followed the coding guidelines for this project.
[x] My code follows the skeleton code structure.
[x] This pull request has a descriptive title. For example, Added {Algorithm/DS name} [{Language}], not Update README.md or Added new code.
[x] This pull request will be closed if I fail to update it even once in a continuous time span of 7 days.

update with base branch


Create project the extension project

Implement the project skeleton which includes:

project files structure
project build/compile
linters
tests support
etc

Implemented in https://github.com/pyrsia/pyrsia-vscode-extension/pull/19


No way to remove a double entry

Would love a way to remove a double entry, remove the RatingHistoryEvent, along with the result, and put the ELO back to the right place.

I'm going to try to get to this sometime this week. I'm thinking of only allowing it if the entry is the last game for both players.


Rust 1.65

This Project is nice, but Sadly i cannot work with it, is it maybe possible to update the image to 1.65?

Upgraded to 1.66.0 in 2e6d29fc17b27c53616f9848d11c24346e20878f 😉
I'll do a release shortly but you can use the latest image for now.

Released https://github.com/qdm12/rustdevcontainer/releases/tag/v0.7.0 with corresponding image qmcgaw/rustdevcontainer:v0.7.0, qmcgaw/rustdevcontainer:v0.7.0-alpine and qmcgaw/rustdevcontainer:v0.7.0-debian

Also FYI you can build it yourself as long as you have git installed, specifying the rust version.

For Alpine:
docker build -t qmcgaw/rustdevcontainer -f alpine.Dockerfile --build-arg RUST_VERSION=1.66.0 https://github.com/qdm12/rustdevcontainer.git

For Debian
docker build -t qmcgaw/rustdevcontainer -f debian.Dockerfile --build-arg RUST_VERSION=1.66.0 https://github.com/qdm12/rustdevcontainer.git

You can also specify other build arguments, see the Dockerfile, for example RUST_ANALYZER_VERSION


Fix id.toml Typo and update USERS.md

Invalid translation to Indonesian language for [reading_time].
Add another website that use this theme.

Thank you.


Code of Conduct

There is a code of conduct in the repository, but it is not mentioned in the Readme or the Contributing instructions. I think this should be fixed to meet the requirements of openjournals/joss-reviews#1738.

Fixed in https://github.com/nnadeau/pybotics/commit/bcb62d974a14327af7eaaa48fe4033adc1fb52da


Compiler crashes after repeated allocation of very large block

Reproducing code:
alias Item = {foo: Int32}

def bar?(item)
  true
end

min = 0
[{foo: 1}, {foo: 2}].each do |item|
  if bar?(item)
    min = [min, item[:foo]]
  end
end

pp min

This is actually a mistake, because I meant to type min = [min, item[:foo]].min? But it still surprised me when I realized this causes a compiler crash.
The output of crystal build looks like
GC Warning: Repeated allocation of very large block (appr. size 67112960):
	May lead to memory leak and poor performance

repeated several times followed by an OverflowError.
This looks pretty similar to https://github.com/crystal-lang/crystal/issues/2257, but that issue is old and closed.
This is on Arch Linux.
$ crystal -v
Crystal 0.35.1 (2020-10-17)

LLVM: 10.0.1
Default target: x86_64-pc-linux-gnu

The compiler issue here is that the "generic type too nested" error is not raised and the OOM happens during compile time.
Compiling the above program should behave the same as the following one.
min = 0

2.times do
  min = [min, 1]
end

$ crystal build foo.cr
Showing last frame. Use --error-trace for full trace.

In foo.cr:126:9

 126 | min = [min, 1]
             ^
Error: generic type too nested: Array(Array(Array(Array(Array( ... stripped ... | Int32) | Int32) | Int32)


Merge pull request #1 from dropbox/master

pull from dropbox/djinni master

Automated message from Dropbox CLA bot
@ringyee, thanks for the pull request! It looks like you haven't yet signed the Dropbox CLA. Please sign it here.

Automated message from Dropbox CLA bot
@ringyee, thanks for signing the CLA!


feat(weave): Add tracking for openai moderation and embeddings api

Adds tracking for openai's embeddings and moderation apis

Testing done via UI inspection

/approve b76c0772c1dc87948c5a28ea6611383f549b501d


Reinstante old connectivity code

I've been waiting for too long for ICE. I shouldn't have removed the old connectivity code until it was really DONE.
Reinstate the code and remove all ICE code until it's released in the main client. Even if that's tomorrow.
See #413

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Done. Branch is not meant to be merged but should continuously be rebased on top of develop until we can finally delete the branch.


compile error /dct.asm error:instruction expected

nasm -v 2.07

NASM needed to be installed  version 2.10.06 or above,
For Mac OSX 64-bit NASM needed to be below version 2.11.08 as nasm 2.11.08 will introduce error when using RIP-relative addresses in Mac OSX 64-bit

oh,ok


Add CONAN_ALIAS flag which sets an alias if all builds are successful

We have a need to constantly and automatically keep the latest version alias set to the latest version number based, as built by the CI.  We'll add logic to CPT to do this automatically, and would contribute it back as a PR if it seems like a useful feature for others.  Any ideas?

Our CI script does this (after running CPT) so we'd like it.


Installation on Raspbian using script

What type of installation are you running?
Desktop
Which Linux OS are you using?
Raspbian Bullseye
Which version of LNXLink has the issue?
2024.03.0
The problem
From a remote terminal, I run the bash script on the GitBook documentation and the installation does not complete.  There is no systemd service started or setup and any lnxlink commands result in command not found.  Using the installation instructions on the Github readme, pipx install, I get a metadata failure and same result, installation fails.  I just upgraded the system from Buster thinking that might be the issue.
Logs
Reading state information... Done
portaudio19-dev is already the newest version (19.6.0-1.1).
python3-pyaudio is already the newest version (0.2.11-1.3+b1).
upower is already the newest version (0.99.11-2).
xdg-utils is already the newest version (1.1.3-4.1).
xdotool is already the newest version (1:3.20160805.1-4).
libasound2-dev is already the newest version (1.2.4-1.1+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
Upgrading LNXlink...
Traceback (most recent call last):
  File "/usr/bin/pipx", line 11, in <module>
    load_entry_point('pipx==<IP_ADDRESS>', 'console_scripts', 'pipx')()
  File "/usr/lib/python3/dist-packages/pipx/main.py", line 496, in cli
    exit(run_pipx_command(parsed_pipx_args, binary_args))
  File "/usr/lib/python3/dist-packages/pipx/main.py", line 177, in run_pipx_command
    commands.upgrade(
  File "/usr/lib/python3/dist-packages/pipx/commands.py", line 211, in upgrade
    old_version = venv.get_venv_metadata_for_package(package).package_version
  File "/usr/lib/python3/dist-packages/pipx/Venv.py", line 65, in get_venv_metadata_for_package
    data = json.loads(
  File "/usr/lib/python3.9/json/__init__.py", line 359, in loads
    return cls(**kw).decode(s)
TypeError: __init__() got an unexpected keyword argument 'encoding'

You could try running this command before running the installation script:
pip install -U pipx

It seemed the error for me was perhaps due to the latest version of pip (20.3.4)? From the docs here, I had to run:
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py pip==20.1.1

and then reinstall from the script resulted in:
libdbus-glib-1-dev is already the newest version (0.110-6).
libgirepository1.0-dev is already the newest version (1.66.1-1+b1).
libglib2.0-dev is already the newest version (2.66.8-1+deb11u1).
patchelf is already the newest version (0.12-1).
libcairo2-dev is already the newest version (1.16.0-5+rpt1).
meson is already the newest version (1.0.0-1.1~bpo11+1~rpt1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
portaudio19-dev is already the newest version (19.6.0-1.1).
python3-pyaudio is already the newest version (0.2.11-1.3+b1).
upower is already the newest version (0.99.11-2).
xdg-utils is already the newest version (1.1.3-4.1).
xdotool is already the newest version (1:3.20160805.1-4).
libasound2-dev is already the newest version (1.2.4-1.1+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: --force-yes is deprecated, use one of the options starting with --allow instead.
Installing LNXlink...
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: pipx in ./.local/lib/python3.9/site-packages (1.4.3)
Requirement already satisfied, skipping upgrade: tomli; python_version < "3.11" in ./.local/lib/python3.9/site-packages (from pipx) (2.0.1)
Requirement already satisfied, skipping upgrade: argcomplete>=1.9.4 in ./.local/lib/python3.9/site-packages (from pipx) (3.2.3)
Requirement already satisfied, skipping upgrade: userpath!=1.9.0,>=1.6 in ./.local/lib/python3.9/site-packages (from pipx) (1.9.2)
Requirement already satisfied, skipping upgrade: packaging>=20 in ./.local/lib/python3.9/site-packages (from pipx) (23.2)
Requirement already satisfied, skipping upgrade: platformdirs>=2.1 in ./.local/lib/python3.9/site-packages (from pipx) (4.2.0)
Requirement already satisfied, skipping upgrade: click in /usr/lib/python3/dist-packages (from userpath!=1.9.0,>=1.6->pipx) (7.1.2)
WARNING: You are using pip version 20.1.1; however, version 20.3.4 is available.
You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
  installed package lnxlink 2024.3.0, installed using Python 3.9.2
  These apps are now globally available
    - lnxlink
done! ✨ 🌟 ✨
INFO:lnxlink:Config file not found.
INFO:lnxlink:Created new template: /home/pi/config.yaml
INFO:lnxlink:
Leave empty for default
 Enable MQTT automatic discovery (True/False) [True]:  MQTT server [<IP_ADDRESS>]:  MQTT port [1883]: Traceback (most recent call last):
  File "/home/pi/.local/bin/lnxlink", line 8, in <module>
    sys.exit(main())
  File "/home/pi/.local/pipx/venvs/lnxlink/lib/python3.9/site-packages/lnxlink/__main__.py", line 514, in main
    config_setup.setup_config(config_file)
  File "/home/pi/.local/pipx/venvs/lnxlink/lib/python3.9/site-packages/lnxlink/config_setup.py", line 29, in setup_config
    userprompt_config(config_path)
  File "/home/pi/.local/pipx/venvs/lnxlink/lib/python3.9/site-packages/lnxlink/config_setup.py", line 136, in userprompt_config
    config["mqtt"]["port"] = int(config["mqtt"]["port"])
ValueError: invalid literal for int() with base 10: 'echo -e "\\e[35m\\n\\n\\nAll done!\\e[0m"'

I then ran lnxlink -c linxlink.yaml and that got things running!  Hope this helps somebody! 🍻

With the change I've made on the install script the issue should be fixed.


Remove some badges

Remove some badges

Thanks for submitting a pull request!
We will review it as soon as possible.

Hey @0xWDG,
Thanks for your contribution.
Your PR has been merged!
Your name will appear on https://auroraeditor.com/#contributors in a few moments, if you have contributed to the editor.
Thanks again for your contribution!
Kind Regards,
Aurora Editor Team.


draft boardings on home page - no drafts

If there are no draft boardings - the home page should look like this: https://mongodb.invisionapp.com/share/M6YN2Y77B8E#/screens/430515871 and when they click on draft boardings they get a screen that looks like this: https://mongodb.invisionapp.com/share/M6YN2Y77B8E#/screens/430523463

The second view should be implemented under https://github.com/WildAid/o-fish-ios/issues/296


In search results at admin/users, link observations number to Explore, not Edit Observations

This pull request is for issue 3444.

Thanks, @grfeller!


Tracker for cartography issues

Right now I know of these cartography issues:

[x] Fix highway sprites (like interstate icons in the US) not showing up on the map
[ ] Fix the missing pedestrian_polygon sprite (see: https://github.com/ellenhp/headway/pull/45#issuecomment-1144710951)
[ ] Identify which openmaptiles layer contains park information and change the style to point to the correct layer (see: https://github.com/ellenhp/headway/pull/45#issuecomment-1144710951)

But there may be others.

Fixed the cartography issues in #104, it ended up being a sprite set that was incomplete.


Update nightly wheel index for pandas/numpy/scipy

pandas, numpy and scipy recently changed their nightly location to https://anaconda.org/scientific-python-nightly-wheels so updating the index here

Okay, looks like we're getting past the install step and actually able to run upstream tests. Some tests are failing, but that's unrelated to the changes here.


[WIP] upgrades theme to v5

following migration guide

completes https://github.com/simpixelated/simpixelated.com/issues/95


Virtualization is not supported on your system

How i fix this issue
Iphone 13 pro max
iOS 16 beta

See https://getutm.app/install/

See https://getutm.app/install/

I can’t understand
I use it to install UTM but problem still


feat: support SVGPath

🔗 Linked issue
#241
❓ Type of change

[ ] 📖 Documentation (updates to the documentation, readme or JSDoc annotations)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[x] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
SVGPath related properties are not processed originally

MotionProperties is defined includes SVGPathProperties, but does not process
style supports process pathLength, pathSpacing, pathOffset
pathLength always normalize to 1
pathLength and pathSpacing to stroke-dasharray. stroke-dasharray = pathLength pathSpacing
4.1 stroke-dasharray = pathLength pathSpacing. this support process dashes and gaps are two or same size, can't process that dashes and gaps of various sizes with an odd number of values, like 4,1,2 which is equivalent to [4,1,2,4,1,2]
pathOffset to stroke-dashoffset
tests and demo added

📝 Checklist

[x] I have linked an issue or discussion.
[x] I have added tests (if possible).
[ ] I have updated the documentation accordingly.

hi @BobbieGoede can you pre-review this, and give me some advice?

Sorry again for the delays in reviewing this PR is a bit more involved and I'm contributing on several projects at the same time😅
My initial thoughts:

I see some opportunities for perf improvements such as caching/saving the result of isSVGElement rather than checking multiple times in the same block.
This handles 3 SVG path attributes, is there a (complete) list of SVG properties we would ideally have support for?
The handling of the SVG attributes seems to be quite specific, from what I recall the style attributes we currently support are handled in a more generalized manner, is there a reason why SVG attributes cannot be handled in the same way as normal attributes?

Please let me know if more clarification is needed 🙏 Contributions are always appreciated, just making sure we preserve maintainability when adding more functionality 💪

thanks a lot 🙏
i think i was wrong 😅
i saw the code SVGPathProperties so i tried to use pathOffset pathSpacing to control the svg animation like Framer, and it didn't work, but i forgot to use strokeDasharray strokeDashoffset 😅
now i use strokeDasharray strokeDashoffset, it work well.
export interface SVGPathProperties {
  pathLength?: number
  pathOffset?: number
  pathSpacing?: number
}


Setup scheduler:update_blockouts cron in staging/production

This job needs to run daily or volunteer blockouts will not be projected.
https://github.com/OfficeMomsandDads/scheduler/blob/854eddee893453cf8c4e2b19b108a7a649421701/lib/tasks/scheduler.rake#L3-L14
I think we can use heroku scheduler for this.

Done 👍

Nice!


XIVY-14823 refactor newCmsString-Action to a function

I would like to remove the refresh button from the CMS browser so that whenever a new CMS string is added via the SWT dialog, the data is refreshed automatically. I am using the same architecture as in the combine function in the data class editor for this.

Unfortunately, I still have a problem at the moment. If you add several strings directly, only the first string is refreshed with onSuccess. I assume that the core does not wait until all new CMS strings have been entered. Don't quiet now how to solve this. Maybe @ivy-rew has an idea.

I will also try to change the design (so that it is the same as the Role Browser --> Plus top right) in a later PR. It's a bit more difficult, though, because you can't currently select the folders in the CMS browser, because it makes no sense to add a folder via the browser. But a possible solution would be to deactivate Apply if a folder is selected. @ivy-lli What do you think?

It looks now like this:


Fetch data for /_api/cluster/agency-dump always from leader.

Add option "redirectToLeader" to /_api/agency/state. This is a
strictly internal API which is currently not documented. Without
the option, it does not change in behaviour. The actual change in
/_api/cluster/agency-dump only repairs a bug which can happen in rare
cases when the request to the agency leader times out. In that case,
stale agency data can be reported in the .agency component (which our
debug scripts look at).

http://jenkins.arangodb.biz:8080/view/PR/job/arangodb-matrix-pr/11298/

This is good to go. Tests were green.


Unable to use Laravel Mix with custom node_modules location

Laravel Mix Version: 2.1.14 (npm list --depth=0)
Node Version (node -v): v10.12.0
NPM Version (npm -v): 6.4.1
OS: Alpine Linux 3.8

Description:
I'm unable to use Laravel Mix with customized node_modules location. I'm preparing a demo Laravel app with Docker where Laravel 5.7 and Laravel Mix are running in two separate containers. For convenience, I'd like to place node_modules to filesystem root within container to avoid problems with volumes.
Steps To Reproduce:
These are most useful to be run inside a Docker container. For detail here's my Dockerfile:
FROM node:10.12-alpine

ENV NODE_ENV=development

RUN npm install -g yarn

WORKDIR /app

COPY package.json webpack.mix.js *yarn* ./
COPY resources/js/ ./resources/js/
COPY resources/sass/ ./resources/sass/

RUN yarn install

COPY . .

CMD ["yarn", "run", "watch"]

And the docker-compose.yml:
  webpack:
    build:
      context: '.'
      dockerfile: 'Dockerfile.webpack'
    command: 'yarn run watch'
    volumes:
      - '.:/app'

The .yarnrc that is copied to container contains one line:
--modules-folder /node_modules

In package.json I have modified the default Laravel Mix configuration to point to /node_modules:
"scripts": {
        "dev": "yarn run development",
        "development": "NODE_ENV=development /node_modules/webpack/bin/webpack.js --progress --hide-modules --config=/node_modules/laravel-mix/setup/webpack.config.js",
        "watch": "yarn run development -- --watch --watch-poll",
        "hot": "NODE_ENV=development /node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=/node_modules/laravel-mix/setup/webpack.config.js",
        "prod": "yarn run production",
        "production": "NODE_ENV=production /node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=/node_modules/laravel-mix/setup/webpack.config.js"
    }

When the container runs yarn run watch upon start I'll get following error:
$ NODE_ENV=development /node_modules/webpack/bin/webpack.js --progress --hide-modules --config=/node_modules/laravel-mix/setup/webpack.config.js --watch --watch-poll
internal/modules/cjs/loader.js:582
    throw err;
    ^

Error: Cannot find module '/webpack.mix'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
    at Function.Module._load (internal/modules/cjs/loader.js:506:25)
    at Module.require (internal/modules/cjs/loader.js:636:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/node_modules/laravel-mix/setup/webpack.config.js:12:1)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)

Is there a way to resolve this by merging my own Webpack configuration with Mix or should I replace the entire configuration with my own? For reference I can produce a working Webpack watch & build with custom node_modules location with other apps but Laravel Mix doesn't work so well in this manner.

resolve: {
    modules: [
      path.resolve(__dirname, 'node_modules'),
    ],
}

https://webpack.js.org/configuration/resolve/#resolve-modules

Hi @ankurk91. Your solution does not work as it results in the same error. Looks like the Yarn process dies before even entering the webpack.mix.js file.
Browsing the issues I came across #1719 and tried to reimplement this fix by modifying the Paths.js. Now everything works fine without touching the Mix or Webpack configuration at all. 🎉
Of course, modifying Mix source code is not optimal solution so let's wait for @JeffreyWay to merge the pull request above and then this issue can probably be closed. :shipit:

Merged. Sorry for the wait. :)


Sensors not being created

Issue
Followed the instruction manual, however the sensor is not being created.
Double checked everything. Configuration.yaml:
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
frontend:
  themes: !include_dir_merge_named themes
  javascript_version: latest
homeassistant:
  customize: !include customize.yaml
light:
  - platform: group
    name: “Ganglampen Beneden”
    entities:
      - light.ganglamp_achter
      - light.ganglamp_voor
  - platform: afvalwijzer
    provider: mijnafvalwijzer
    postal_code: 1223AL
    street_number:  23
    suffix: ''
    include_date_today: true
    default_label: Geen
    id: ''
    exclude_list: ''

### Which version has the issue?

2021.11.02

### What was the last working version?

_No response_

### Anything in the logs that might be useful?

```txt
Nothing in the logs
```

### Additional information

_No response_

Hi, it seems your waste provider isn't mijnafvalwijzer but gad instead. This module isn't suitable to use with GAD.
Maybe one of the following modules suits your needs:

https://github.com/heyajohnny/afvalinfo
https://github.com/pippyn/Home-Assistant-Sensor-Afvalbeheer

The first line in the README could have helped you out 😄
Component to integrate with mijnafvalwijzer, afvalstoffendienstkalender and rova.


decimate warnings and segfault

Hi! I'm trying to construct a vedo.Mesh from a list of vertices + triangle faces to then apply a decimate. But get (a) weird warnings and (b) segfaults with some meshes.
I have attached a mesh that causes warnings + segfaults.
>>> import vedo
>>> import trimesh as tm
>>> m = tm.load('example_mesh.ply')
>>> vm = vedo.Mesh([m.vertices, m.faces])
>>> dm = vm.decimate(.5)
/Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Common/Core/vtkMath.cxx, line 507
Unable to factor linear system

[lots more of these warnings]

Segmentation fault: 11

This is with vedo 2020.4.2. Any thoughts?
Many thanks,
Philipp
example_mesh.ply.zip

It seems to me that there's something wrong in the polygonal data.. playing with pymeshfix:
import vedo
import trimesh as tm

m = tm.load('data/example_mesh.ply')

vm = vedo.Mesh(m).triangulate().smoothLaplacian().computeNormals()

from pymeshfix import MeshFix
meshfix = MeshFix(vm.points(), vm.faces())
meshfix.repair()
repaired = vedo.Mesh(meshfix.mesh)

dm = repaired.decimate(method='pro')
vedo.show(vm, dm, N=2, axes=dict(digits=3))

the mesh is chopped in at least on point.

It seems to me that there's something wrong in the polygonal data.. playing with pymeshfix:
import vedo
import trimesh as tm

m = tm.load('data/example_mesh.ply')

vm = vedo.Mesh(m).triangulate().smoothLaplacian().computeNormals()

from pymeshfix import MeshFix
meshfix = MeshFix(vm.points(), vm.faces())
meshfix.repair()
repaired = vedo.Mesh(meshfix.mesh)

dm = repaired.decimate(method='pro')
vedo.show(vm, dm, N=2, axes=dict(digits=3))

the mesh is chopped in at least on point.

Ah, that's quite possible! This mesh is made from segmentation data (voxels) and is anything but perfect. Thanks for the quick response!

Ah, that's quite possible! This mesh is made from segmentation data (voxels) and is anything but perfect. Thanks for the quick response!


The MATLAB Online "Featured App" links to a Group page

The MATLAB Online featured app on the home page links to a Hydroshare Group page.  It seems as though users will not understand why they're being linked to a Group page, instead of the app itself.  Instructions on how to get to the app itself and how the HS Group is relevant would be ideal.
https://user-images.githubusercontent.com/43424907/147899873-37243b39-0ca4-4508-bc77-a561c728b484.mov

I can easily enough go in and change the voiceover to indicate that if they are launching for the first time, they will be asked to join the group. I am confused by the context of this issue, is he referring to the open with video and that is where it is not clear?


How to update to Latest releases?

Newbi here. Im using sgpt on termux and it's working fine. But, how to upgrade to latest release without ruining my installed sgpt.

You can update it using pip:
pip install shell-gpt --user --upgrade


Add Turtle.Bytes.{compress,decompress}

Fixes https://github.com/Gabriel439/Haskell-Turtle-Library/issues/353

This will fail with gzip archives as the window bits are "15 is for zlib compression, and 31 for gzip compression", and a lower value (15) than the archive value (31 for gzip) may result in ZlibException (-3) or Z_DATA_ERROR. The solution would be to change decompress and compress functions from Shell ByteString -> Shell ByteString to WindowBits -> Shell ByteString -> ShellByteString, i.e. allow the user to specify the WindowBits.

This seems to work well now!

@GregorySchwartz: Great!  Then I'll go ahead and merge


bug: Ionic tab stuck with first showed view

Type: bug
Ionic Version: 1.x
Platform: all
0
down vote
favorite
I found an undesired behaviour with the ionic tabs.
Basically i have some tabs, in the first tab i have 3 views, one leading to another with the tab1Initial giving access to the tab1internal1 view, and this one giving access to the tab1internal2 view in the same tab, no problem there.
But i have other tab (let's call it second tab) that leads to tab1internal2 in the first tab, which works as expected, except for one detail:
If i haven't visited the first tab, and access tab1internal2 view from the second tab to the first tab, this tab1internal2 view remains as the default view of the first tab, which should show the tab1Initial view when touched but instead shows tab1internal2, as if the first view shown by a tab is the one that tab sticks with, and that is exactly my problem.
I have a codepen showing this behaviour, https://codepen.io/Orion390/pen/yajLKa , the InternalPages tab is the first tab i'm talking about, the About tab access the internal2 view in the InternalPages tab with that button, it's easy to replicate the behaviour i explained.
Btw, i am not worried by the navigation, my issue is only the tab not showing the view i need when i touch it.

I have a simple workaround, consists in putting ng-click="onTabSelected()" in the tab, and in the controller assigned to the tabs:
$scope.onTabSelected = function () {
$state.go("tab.home");
}
That way, always the tab is touched it will lead to the state i want, not the first shown or whatever, i hope it's useful for someone, the behaviour that gave the problem really looks like a bug in ionic.

This issue was moved to driftyco/ionic-v1#83


GRANT IMPORTED PRIVILEGES TO ROLE introduced permadiff

Terraform CLI and Provider Versions
Terraform v1.6.6
on darwin_arm64
+ provider registry.terraform.io/snowflake-labs/snowflake v0.73.0

Terraform Configuration
resource "snowflake_database_grant" "staff_imported_priviliges_on_snowflake_database" {
  # `GRANT IMPORTED PRIVILEGES ON DATABASE SNOWFLAKE TO ROLE STAFF_READ_WRITE`
  # This allows staff to query billing metrics in the snowflake database.
  # https://docs.snowflake.com/en/sql-reference/account-usage#enabling-the-snowflake-database-usage-for-other-roles
  database_name = "SNOWFLAKE"
  privilege     = "IMPORTED PRIVILEGES"
  roles = [
    snowflake_role.staff_read_write.name,
    snowflake_role.staff_read_only.name,
  ]
  with_grant_option = false
}

### Expected Behavior

I expect to be able to apply this with the usual terraform workflow:
1. `terraform apply` # This should apply cleanly, which it does
2. `terraform plan`  # This should report no diffs, because I already applied the grants

### Actual Behavior

Results in a permadiff:
1. `terraform apply` # This should apply cleanly, which it does
2. `terraform plan`  # This reports a permadiff

### Steps to Reproduce

Use the above HCL code, and then:

1. `terraform apply`
2. `terraform plan` # permadiff seen here

### How much impact is this issue causing?

Low

### Logs

_No response_

### Additional Information

_No response_

Hey @jrobison-sb
The fix for that should be introduced soon. We are aware of the issue with IMPORTED PRIVILEGES. We have to handle it differently than other privileges as this privilege is a "pseudo-role" and it cannot be read from Snowflake.

Hey 👋, the fix for imported privileges has been merged in https://github.com/Snowflake-Labs/terraform-provider-snowflake/pull/2471 and will be available in the next release. As soon as the latest version appears (next week), please let us know if it fixes your bug and the issue can be closed.

@sfc-gh-jcieslak I'm running v0.86.0 but I'm still seeing a permadiff for IMPORTED PRIVILEGES.  Is it working properly now for you @jrobison-sb ?

@chrisweis That's strange, I did a minimal test (very similar to your configuration) with 0.86.0 right now and it worked. Did you manually query grants on the database to see if USAGE is there or not? (reference why USAGE and not IMPORTED PRIVILEGES) Could you try and produce a minimal configuration that would mimic this behavior, so I could debug why is it happening? My take produced no errors (no permadiff) :/

@sfc-gh-jcieslak  Hi Jan, not the original poster but I'm seeing the same issue with 0.86 and 0.87
My config is as follows
resource "snowflake_grant_privileges_to_account_role" "GRANT_IMPORTED_PRIVILEGES-DATA_DEVELOPER_PRD" {
  depends_on = [snowflake_role.FUNCTIONAL_ROLES["DATA_DEVELOPER_PRD"]]

  privileges        = ["IMPORTED PRIVILEGES"]
  account_role_name = "DATA_DEVELOPER_PRD"
  on_account_object {
    object_type = "DATABASE"
    object_name = "SNOWFLAKE"
  }
}

And when i query the state file things look good.
 .\terraform.exe state show snowflake_grant_privileges_to_account_role.GRANT_IMPORTED_PRIVILEGES-DATA_DEVELOPER_PRD
# snowflake_grant_privileges_to_account_role.GRANT_IMPORTED_PRIVILEGES-DATA_DEVELOPER_PRD:
resource "snowflake_grant_privileges_to_account_role" "GRANT_IMPORTED_PRIVILEGES-DATA_DEVELOPER_PRD" {
    account_role_name = "DATA_DEVELOPER_PRD"
    all_privileges    = false
    always_apply      = false
    id                = "\"DATA_DEVELOPER_PRD\"|false|false|IMPORTED PRIVILEGES|OnAccountObject|DATABASE|\"SNOWFLAKE\""
    on_account        = false
    privileges        = [
        "IMPORTED PRIVILEGES",
    ]
    with_grant_option = false

    on_account_object {
        object_name = "SNOWFLAKE"
        object_type = "DATABASE"
    }
}

But on every plan/ apply I see
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # snowflake_grant_privileges_to_account_role.GRANT_IMPORTED_PRIVILEGES-DATA_DEVELOPER_PRD will be updated in-place
  ~ resource "snowflake_grant_privileges_to_account_role" "GRANT_IMPORTED_PRIVILEGES-DATA_DEVELOPER_PRD" {
        id                = "\"DATA_DEVELOPER_PRD\"|false|false|IMPORTED PRIVILEGES|OnAccountObject|DATABASE|\"SNOWFLAKE\""
      ~ privileges        = [
          + "IMPORTED PRIVILEGES",
        ]
        # (5 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

When I query the snowflake database share in snowsight
Show Grants on Database SNOWFLAKE;
created_on	privilege	granted_on	name	granted_to	grantee_name	grant_option	granted_by	granted_by_role_type
2024-01-26 08:53:16.553 -0800	USAGE	APPLICATION	SNOWFLAKE	APPLICATION_ROLE	BUDGET_ADMIN	false
2024-01-26 08:53:16.425 -0800	USAGE	APPLICATION	SNOWFLAKE	APPLICATION_ROLE	BUDGET_VIEWER	false
2024-02-27 07:22:37.647 -0800	USAGE	APPLICATION	SNOWFLAKE	ROLE	DATA_DEVELOPER_PRD	false

Let me know if this helps or if I can do some other testing to help clarify the issue.

Thanks for the answer @gdelia-pm. The issue was/still is connected to bad Read operation. I solved it for shared databases, but It looks like the SNOWFLAKE database is actually of type APPLICATION (as you can see in the posted output granted_on column). It's connected to how closely related applications are to databases. We'll need additional check/convertion for this to work. I'll try to fix it case for the next release. Thanks again for the data :)

Hi again @jrobison-sb @chrisweis @gdelia-pm 👋
Today we released a bugfix version 0.87.1. Please give it a go and see if the issue persists.

Confirmed that this is now working for me.  Thanks y'all!

Hi again @sfc-gh-jcieslak, thanks for your attention on this.
I was finally able to upgrade my provider version to the latest version and give this a try, but unfortunately I'm running into the same situation mentioned by @gdelia-pm, though with an additional wrinkle that I'm using terraform import for part of it.
Version:
$ terraform version
Terraform v1.6.6
on darwin_arm64
+ provider registry.terraform.io/snowflake-labs/snowflake v0.87.2

Old HCL which uses a deprecated snowflake_database_grant resource type:
resource "snowflake_database_grant" "staff_imported_priviliges_on_snowflake_database" {
  # `GRANT IMPORTED PRIVILEGES ON DATABASE SNOWFLAKE TO ROLE STAFF_READ_WRITE`
  # This allows staff to query billing metrics in the snowflake database.
  # https://docs.snowflake.com/en/sql-reference/account-usage#enabling-the-snowflake-database-usage-for-other-roles
  database_name = "SNOWFLAKE"
  privilege     = "IMPORTED PRIVILEGES"
  roles = [
    snowflake_role.role.name,
    snowflake_role.staff_read_write.name,
    snowflake_role.staff_read_only.name,
  ]
  with_grant_option = false

  lifecycle {
    # ignore_changes is needed as a temporary workaround for this bug:
    # https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2366
    ignore_changes = [roles]
  }
}

New HCL which uses the new snowflake_grant_privileges_to_account_role resource type, with this HCL mostly copy/pasted from the docs:
resource "snowflake_grant_privileges_to_account_role" "staff_imported_priviliges_on_snowflake_database" {
  for_each = toset([
    snowflake_role.role.name,
    snowflake_role.staff_read_write.name,
    snowflake_role.staff_read_only.name,
  ])
  account_role_name = jsonencode(each.key)
  privileges        = ["IMPORTED PRIVILEGES"]
  on_account_object {
    object_type = "DATABASE"
    object_name = jsonencode("SNOWFLAKE")
  }
}

Steps to reproduce:
# Save the Terraform state because I'll need to later
terraform state pull > terraform_state_before_migration.json

# Import the three new snowflake_grant_privileges_to_account_role resources
for role_name in staging_role STAGING_STAFF_READ_WRITE STAGING_STAFF_READ_ONLY
do
terraform import \
  module.staging_application.snowflake_grant_privileges_to_account_role.staff_imported_priviliges_on_snowflake_database[\"$role_name\"] \
  "\"$role_name\"|false|false|\"IMPORTED PRIVILEGES\"|OnAccountObject|DATABASE|SNOWFLAKE"
done

<snip>

Import successful!

The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.

# Okay, it supposedly imported correctly, run a plan
terraform plan

<snip>

  # module.staging_application.snowflake_grant_privileges_to_account_role.staff_imported_priviliges_on_snowflake_database["STAGING_STAFF_READ_ONLY"] will be updated in-place
  ~ resource "snowflake_grant_privileges_to_account_role" "staff_imported_priviliges_on_snowflake_database" {
        id                = "\"STAGING_STAFF_READ_ONLY\"|false|false|\"IMPORTED PRIVILEGES\"|OnAccountObject|DATABASE|SNOWFLAKE"
      ~ privileges        = [
          + "IMPORTED PRIVILEGES",
        ]
        # (5 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

<with a similar change being shown for all three, but I'll only paste one for brevity>

# Welp, that didn't work, restore the old state
terraform state push -force terraform_state_before_migration.json

Am I doing the import wrong, perhaps? Is it possible that the bug described by @gdelia-pm still exists but it now only exists in the import code path? Anything else I should know for this one?
Thanks.

Thanks for the response @jrobison-sb I'll try to reproduce it today.

@jrobison-sb Could you try to import it without quotes around privileges, so IMPORTED PRIVILEGES instead of \"IMPORTED PRIVILEGES\"

@sfc-gh-jcieslak that worked, thank you.
I don't see that anyone else has any outstanding requests in this issue so I'll go ahead and close this now.
Thanks again for your efforts.
Resolved by https://github.com/Snowflake-Labs/terraform-provider-snowflake/pull/2596

@sfc-gh-jcieslak Thanks for all the awesome help and improvements lately!  You're restoring my faith in this Terraform provider! 😊


[BUG]: Cannot see Advocate Clerk pending registrations

Login as nyay mitra after raising registration request as advocate clerk, go to view pending registrations:

same as #2439 . hence closing this.


Clojure code highlighting

Describe the feature you'd like
I'd like syntax highlighting for clojure code.
https://github.com/BookStackApp/BookStack/issues/3847#issuecomment-1312191477

Appears to be a built-in language so should be an easy add, have assigned for the next feature release.Clojure is in codemirror.
https://codemirror.net/5/mode/clojure/index.html

Describe the benefits this would bring to existing BookStack users
You have lots of other languages but not clojure. I tried them all and the best are ruby and julia which change the color of keywords and strings. It's not very exciting though.
Can the goal of this request already be achieved via other means?
no
Have you searched for an existing open/closed issue?

[X] I have searched for existing issues and none cover my fundemental request

How long have you been using BookStack?
0 to 6 months
Additional context
No response

The clojure language is also part of the legacy modes package and therefore should not be an issue for CM6 adoption.
Have assigned to the next feature release.
Related to #3617.

Added in fa6fcc1c1c9dd2888bacee084d31c2f482c53e10, to be part of the next release.


Add a Subpage for Governance Process

A subpage for governance process and details.

does this page also need to be linked in the docs somewhere?

does this page also need to be linked in the docs somewhere?

Yes, will update the "gov" with the content linking to this page.


Exporting @formula so that users don't have to import StatsModels.

@formula as input from the user. We should export it so that the users don't need to import StatsModels.

Not required after adding the macro


Images propagate up to parent when child is updated

Description
When updating anything about a child term and saving those changes, if the child term has an image and the parent does not, the child term's image gets applied to the parent.
To Reproduce
Steps to reproduce the behavior, e.g.:

Create a term "parent"
Create a child term "child" with "parent" as it's parent.
Add an image to the child term (this will get applied to both terms when saved, which is arguably not the wrong thing to do here).
Navigate to the "parent" and delete the image.
Navigate to the "child" term from there click on the link to "parent" (which will cause child to be saved before navigating away).
Parent now has the child term's image reapplied.

Screenshots
If it will be helpful, add screenshots.
Extra software info, if not already included in the Description:

OS (e.g., iOS, windows): Arch Linux under WSL2 (Windows 11)
Browser (e.g., chrome, safari): Brave
How you've installed Lute (Docker, python, source): Source
Version: 3.5.6

Thanks @bwkimmel -- I'm assuming that this issue is for exactly the scenario above; i.e. when changing an existing child, the existing parent shouldn't get the image or translation.
If creating a new child term, the parent will continue to get the image and translation if needed, because the user (me) has likely just been lazy when creating that parent at some point in the past.

Change made in develop branch, in commit d045ad26207c81.  With this, editing an existing child doesn't also propagate the translation and image data to the parent, even if that data is missing in the parent.

Launched in 3.5.8.


make the --board flag actually do something

Using attributes are great if they're available, but if they're not,
then I certainly expect the --board flag to set things up correctly
for me.

Also, do you want this to work for setting the correct arch on the serial connection too?

@ppannuto you ok with my changes? I think you still get everything you want, but we don't run in to any situations where we might penalize someone for making a custom board.

Yeah, I'm still afraid that we're inviting confusion when people with custom boards don't set enough stuff and things don't work, but this is definitely a step in the right direction and we can cross the other bridge when we come to it.


custom 404 page transition

BeamerRouterDelegate should accept BeamPage() for not found page parameter instead Widget(), because its not possible to use custom page transition.

Indeed. I will fix this as soon as possible


[gedi] Add new extractor

Before submitting a pull request make sure you have:

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense

What is the purpose of your pull request?

[x] New extractor

Description of your pull request and other information
A new extractor for the various Gedi group italian newspaper websites like repubblica.it and lastampa.it among the biggest.
It closes #7347 (and #20835)

@remitamine remember the looong conversation ;-) we had last month about the vvvvid extractor "season" title? ;-)
In the end I think the solution was to set the playlist_title tag as the more appropriate tag for the value.
When you have time can you give a look at it here #27618 so we can close the vvvvid extractor for good.


esp_wifi_scan_start failure after upgrade to 3.0.4 (IDFGH-24)

Environment

Development Kit:      none
Core (if using chip or module): ESP-WROOM32
IDF version: Problem exists in 3.0.4 and 3.1 (but not in 3.0.3)
Development Env:		Make
Operating System:		MacOS
Power Supply:         Tested on USB and external 5V (both with 3.3v voltage reg)

Problem Description
I'm doing a "captive portal"-style setup procedure where it:

First attempts to connect to a previously-configured wifi network as a STA
If it fails, it starts an AP
A client (phone or computer) can connect to this AP and use a web interface to configure the device
The device performs a wifi scan to populate the web interface, so that a new wifi configuration can be set

Expected Behavior
The esp_wifi_scan_start() should succeed and return a list of networks
Actual Behavior
An error is produced:
wifi: Now is connecting, user scan invalid now!
ESP_ERROR_CHECK failed: esp_err_t 0x300c at 0x401337a1
0x401337a1: wifi_manager at /[...]/wifi_manager.c:522 (discriminator 1)

Debug Logs
wifi: wifi firmware version: bd20748
I wifi: config NVS flash: enabled
I wifi: config nano formating: disabled
I system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I wifi: Init dynamic tx buffer num: 32
I wifi: Init data frame dynamic rx buffer num: 32
I wifi: Init management frame dynamic rx buffer num: 32
I wifi: wifi driver task: 3ffc3368, prio:23, stack:3584
I wifi: Init static rx buffer num: 10
I wifi: Init dynamic rx buffer num: 32
I wifi: wifi power manager task: 0x3ffc8078 prio: 21 stack: 2560
I phy: phy_version: 3663, 1d88daa, Aug  6 2018, 10:31:06, 0, 0
I wifi: mode : sta (24:0a:c4:9b:59:b8)
I CM03: Waiting for wifi
I BUTTON: 34 LONG
I CM03: Wifi disconnected
I CM03: Wifi disconnected
I CM03: EV: 36 1
I wifi: mode : sta (24:0a:c4:9b:59:b8) + softAP (24:0a:c4:9b:59:b9)
I wifi: sleep enable
I wifi: type: 1
HTTP Server listening...
I DNSSRV: DNS Server listening on 53/udp
I WIFIMGR: Reconnecting to VanHack.ca
I wifi: n:6 0, o:6 0, ap:6 0, sta:0 0, prof:6
I wifi: station: b4:8b:19:d5:3f:de join, AID=1, g, 20
I DNSSRV: Replying to DNS request (len=35) from <IP_ADDRESS>
W wifi: Now is connecting, user scan invalid now!
ESP_ERROR_CHECK failed: esp_err_t 0x300c at 0x401337a1
0x401337a1: wifi_manager at /[...]/components/esp32-wifi-manager/./wifi_manager.c:522 (discriminator 1)

file: "/[...]/components/esp32-wifi-manager/./wifi_manager.c" line 522
func: wifi_manager
expression: esp_wifi_scan_start(&scan_config, true)

Backtrace: 0x4008a028:0x3ffca0b0 0x4008a395:0x3ffca0d0 0x401337a1:0x3ffca0f0
0x4008a028: invoke_abort at /[...]/esp-idf-3.0.4/components/esp32/./panic.c:572

0x4008a395: _esp_error_check_failed at /[...]/esp-idf-3.0.4/components/esp32/./panic.c:584

0x401337a1: wifi_manager at /[...]/components/esp32-wifi-manager/./wifi_manager.c:522 (discriminator 1)

Rebooting...
ets Jun  8 2016 00:22:57

hi@lukecyca, because connect need start a default scan itself, we call it connecting scan, if a scan command invoked when connecting scan is running, it will interrupt the connect scan and it can not send disconnect event instead of scan done event before 3.0.4, after our discussion, we deceide to change this behavior, user scan shouldn't interrput connect scan when connecting, so suggestion you invoke a disconnect before start scan so that it can scan

HI @snahmad, as you said, you need to call esp_wifi_disconnect() before calling esp_wifi_scan_start() if the ESP32 STA fails to connect the AP.  We will fix it in IDF master, but the change is big, we need time to do it.

@lukecyca Thanks for reporting the issue, feel free to reopen the issue if it still exists. Thanks.


Eclipse 4.7 oxygen: cpp & modeling

Things done

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

[x] NixOS
[ ] macOS
[ ] Linux

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

I've tested that the 64-bit versions build and launch.  I've only tested that the 32-bit versions build -- launching causes errors because the surrounding GTK etc. are 64-bit.

Looks very good. I think it would be nice to keep the 4.6 expressions for a little while, but I might be alone in this opinion.

I wasn't sure what the convention was -- the expressions were much more haphazard back when 4.6 came out, so it was hard to tell.  Personally, I'd guess that anyone who's tracking unstable/master rather than stable is willing to have their eclipse updated pretty quickly after upstream releases.  But, I'm happy to keep the 4.6 expressions if that's what you prefer.  :)

I think it is OK to remove the old ones, if anybody feels strongly about keeping them they are easy to resurrect. Many thanks for the contribution! Rebased into master in c3d036df717c44570cec0c3f1d8dbeeff2618fca.


The specific parameter settings in the compressor for reproduce NQ

Very nice work! I am trying to replicate the results of longllmlingua on a Natural Questions dataset, but there may be some discrepancies between the results and those in the paper due to unclear values that should be set for each parameter of the compressor. So I would like to inquire the specific parameter settings in the compressor?

Hi @ignorejjj, thank you for your support for our work.
No problem, I will post the parameters we used in the experiment below for reference. We will also release the relevant code after the review,
The 2x compression ratio uses,
    res = []
    with xopen(path) as f:
        for ii, jj in tqdm(enumerate(f), total=2655):
            if ii < len(res):
                continue
            input_example = json.loads(jj)
            question = input_example["question"]
            documents = []
            for ctx in deepcopy(input_example["ctxs"]):
                documents.append(Document.from_dict(ctx))

            prompt = get_qa_prompt(
                question,
                documents,
                mention_random_ordering=False,
                query_aware_contextualization=False,
            )

            c = prompt.split("\n\n")
            instruction, question = c[0], c[-1]
            demonstration = "\n".join(c[1:-1])

            compressed_prompt = llm_lingua.compress_prompt(demonstration.split("\n"), instruction, question, 0.55, use_sentence_level_filter=False, condition_in_question="after_condition", reorder_context="sort", dynamic_context_compression_ratio=0.3, condition_compare=True, context_budget="+100", token_budget_ratio=1.05, rank_method="longllmlingua")
            res.append({"id": ii, "prompt": compressed_prompt, "answer": input_example["answers"]})

    json.dump(res, open(f"prompt/loss_in_middle/ours_{doc_num}_{idx}_2x_dem_after_add_prompt1_dy03dem_sort.json", "w"))

The 4x compression ratio uses,
compressed_prompt = llm_lingua.compress_prompt(demonstration.split("\n"), instruction, question, 0.75, use_sentence_level_filter=False, condition_in_question="after_condition", reorder_context="sort", dynamic_context_compression_ratio=0.4, condition_compare=True, context_budget="*1.2", token_budget_ratio=1.05, rank_method="longllmlingua")

If you have more questions, feel free to reply and discuss.

thank for your quick reply!

Very appreciate your awesome work. Could you please provide the code for evaluation, including batched inference?

Very appreciate your awesome work. Could you please provide the code for evaluation, including batched inference?

Hi @zhyunlong, thank you for your support with LLMLingua.
We utilize the same script as 'lost in the middle'. You can access the script at this link.


AzureCP PR: API Version Update

retest this please

@amarzavery
Why tests start to fail now?
1 failing
  1) Azure Swagger Schema Validation "before all" hook:
     Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.

sounds like a github or network related issue. Seems like it's trying to pull down schema and failing to do so in the 2 second max.

Thanks @devigned. Reopening it solves the problem~

Then should this be merged ?

@amarzavery Yes, please. Thank you!


⚠ Bofrost.lu has degraded performance

In 7a8e66e, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1261 ms

Resolved: Bofrost.lu performance has improved in 46997a3.


Read log level from an environment variable

This is so that we can log more information when running it locally, and maybe reduce the logging output when building the production app.

this is implemented by reading the global variable kReleaseMode, according to this article:
https://stackoverflow.com/questions/49707028/check-if-running-app-is-in-debug-mode/49707787#answer-55612795


filter out filters with no items

Signed-off-by: James Talton<EMAIL_ADDRESS>

/hold

/unhold

/cc @RobDolares
James has added a flag to allow preservation of empty options.

/lgtm


Forwarder returns servfail on upstream response noerror no data

Describe the bug
unbound 1.18.0 configured as forwarder : when upstream server replies with rcode NOERROR and zero answers, the forwarder replies to the client with rcode SERVFAIL.
To reproduce

an unbound server configured as recursive resolver on interface <IP_ADDRESS>@8053, configured with
local-zone: "example.com" always_nodata
an unbound server configured as forwarder on interface <IP_ADDRESS>@7053, config:

server:
    username: ""
    chroot: ""
    directory: "/var/lib"
    do-daemonize: no
    do-not-query-localhost: no
    module-config: "iterator"
    interface: <IP_ADDRESS>@7053
    interface-action: <IP_ADDRESS>@7053 allow
    use-syslog: no

forward-zone:
    name: "."

System:

OS: Debian 11
unbound -V output:

Version 1.18.0

Configure line:
Linked libs: mini-event internal (it uses select), OpenSSL 1.1.1n  15 Mar 2022
Linked modules: dns64 respip validator iterator

Additional information
log for unbound forwarder 1.18.0
[1696431803] unbound[112655:0] info: iterator operate: query example.com. A IN
[1696431803] unbound[112655:0] info: response for example.com. A IN
[1696431803] unbound[112655:0] info: reply from <.> <IP_ADDRESS>#8053
[1696431803] unbound[112655:0] info: query response was THROWAWAY

log for unbound forwarder 1.17.1
[1696431738] unbound[112637:0] info: iterator operate: query example.com. A IN
[1696431738] unbound[112637:0] info: response for example.com. A IN
[1696431738] unbound[112637:0] info: reply from <.> <IP_ADDRESS>#8053
[1696431738] unbound[112637:0] info: query response was nodata ANSWER

Yes, this is true. It would be nice to both be able to do this, but also the item that changes it for 1.18.0, that notes: Fix to ignore entirely empty responses, and try at another authority. This turns completely empty responses, a type of noerror/nodata into a servfail, but they do not conform to RFC2308, and the retry can fetch improved content.
So it would be nice to be able to tell one case from the other.

There is a fix committed. Thanks for the detailed report.
The fix notices the event and classifies the first nodata answer to be retried. It then probes for another server. But since it is always_nodata, that also returns nodata, or it notices no better server selection and tries again. The second time it notices the event of an empty answer, it accepts the answer. This makes the setup from the issue work, but also tries again at another server like in the issue ticket that was solved for 1.18.0, and so works for both cases.

Thanks for the fix.
Now the reply is correct with rcode noerror. As only one upstream server is configured, it gets queried twice, would it be possible to directly accept the first answer in this case ?

I do not have sufficient information about the 1.18.0 fix case to know if that would be helpful for it. But it might be possible to implement by tracking the number of servers, right now it just attempts once again. It more certainly works with the current approach.

Hi,
I think I am currently running into this issue in my setup. Can you recommend any workaround that I (and maybe also others :-) ) can implement/configure until this fix has made its way into the next release?
Thanks a lot!
Matthias

Hi @wcawijngaards, this isn't an ongoing issue, but could you help me to better understand the issue for my future reference? 🙇
I'd like to make sure I understand your comment right, as you previously mentioned:

Adding a SOA record would also solve the issue, eg. for the upstream server to include a SOA record into the answer.

Basically, we started seeing some issues with Let's Encrypt cert issuance, as they switched to Unbound 1.18 last month:
https://community.letsencrypt.org/t/dns-resolver-upgraded-to-unbound-1-18-empty-responses-require-soa-sections/210417
They started failing to resolve some domains that were fine with the prior version, otherwise.
An example condition is below:

example.com zone is hosted on Route53
acme-delegated subdomain is delegated to ACME DNS via NS records on the above Route53 zone
example.com zone also exists in ACME DNS
there's no RR on this acme-delegated label in ACME DNS
I trigger new cert issuance for foo.acme-delegated.example.com
Let’s Encrypt (Unbound) checks CAA on foo.acme-delegated.example.com
we have a default system wildcard RR * that’s on the root of the zone (Apex) in ACME DNS,  and it's applied/expanded to any subdomains, unless there’s an explicit RR set (correct me if I'm wrong on this). This means querying CAA for foo.acme-delegated.example.com returns NOERROR empty answer instead of NXDOMAIN. This NOERROR response does contain SOA record in AUTHORITY section, but its domain name is example.com
Unbound ignores and remove this SOA RR from the response, because example.com is not a children of the originating zone - code (I'm not 100% sure about my understanding here)
therefore, Unbound 1.18 started exhibiting the issue due to this change
Unbound changed the retry logic in 1.19 - code, so it doesn't throw SERVFAIL even with no SOA

Am I understanding this right?


flac2all: init at version 5.1

Added initial version of https://github.com/ZivaVatra/flac2all
Description of changes
Added https://github.com/ZivaVatra/flac2all, a useful tool for converting from flac to various other audio formats.
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

I didn't add anything to the release notes since I'm not sure where to put it.  Does this count as a new service that should go under #sec-release-23.05-new-services?

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/1725

@SuperSandro2000 not sure what the etiquette is for re-requesting review.  I'm happy to post on discourse again if that's better.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/1766

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/1808


[13.0.x] ISPN-13263 & ISPN-13624

https://issues.redhat.com/browse/ISPN-13623
https://issues.redhat.com/browse/ISPN-13624

Merged, thanks


Add json-api-document-viewer to implementations

https://github.com/tadast/json-api-document-viewer is a React.js based tool that aims to visualise relationships in large json:api documents with a lot of "included" objects. It visually nests the relationships under their parents but does it one level at a time, thus avoiding infinite loops ... unless the user is infinitely patient in expanding them :)

Neat, thanks!