[lapresse] new extractor

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

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

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
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[ ] Improvement
[x] New extractor
[ ] New feature

Description of your pull request and other information
Here is a new extractor for what was originally the biggest french language print media in America, La Presse from Montreal, Quebec, Canada. Video detail pages only for now.

all requested fixes are in

I've already pointed out numerous of times: check code with flake8.

 You're not doing me a favour. I am. And it's the last time.

I don't either.

I'm not worried. You will, eventually.

When at Rome, do as the Romans do.


fix: unresponsive button at the tools/generator page linked issue

Description
Fix the issue Non-Responsive button at tools/generator page at the url specified below linked issue #2463
Earlier

Now

Related issue(s)
#2463

@sambhavgupta0705 @derberg @akshatnema Please Review this pull request linked to issue #2463

@AbhishekCS3459 also, pls check the PR description. It is not written correctly while specifying the issue. That's why the Issue is not connected with the PR. Kindly change it according.
@sambhavgupta0705 Kindly help him to get the things correct on the PR.

@akshatnema @AbhishekCS3459
I think we just need to remove one css element from Line 39
If we replace line 39 with this code  <Button text="View Docs" href="/docs/tools/generator" className="ml-2 mt-2 md:mt-0 md:inline-block w-full sm:w-auto"/> then it is working fine

@akshatnema @AbhishekCS3459
I think we just need to remove one css element from Line 39 If we replace line 39 with this code  <Button text="View Docs" href="/docs/tools/generator" className="ml-2 mt-2 md:mt-0 md:inline-block w-full sm:w-auto"/> then it is working fine for both web and mobile view

Ok @sambhavgupta0705 @akshatnema Let me fix it.

any update @AbhishekCS3459

@sambhavgupta0705  Yes in a day.

@AbhishekCS3459 ??

@sambhavgupta0705

@AbhishekCS3459 ??

Here is the linked PR: #2715 .

Closing as completed with ref: https://github.com/asyncapi/website/pull/2715, https://github.com/asyncapi/website/pull/2718


ReactCSS 1.0.0

With the release of React 0.14.0 and heavy usage of ReactCSS over the past few months I would like to propose some change for 1.0.0 and would love your feedback:

Dropping the inheritance of ReactCSS.Component this was never meant to be long-term. 0.14.0 now throws warnings if you are not extending the original React.Component.

Add support for attaching multiple classes to elements. We can bake react-map-styles into ReactCSS and add a more robust string replace to allow for multiple classes + eval in the html.

Add in helper functions that can be used in loops for applying sudo-type classes re: first, last, nth-child, even, odd

Heavy integration and support around using ReactCSS in React Native.

Possibly remove the classes method and move everything unto the styles method with a function wrapping the return:

styles = () => {
  return {
    'default': {
      title: {
        color: '#333',
      },
    },
  };
}

And then you would pass the activations as a second parameter of the function:
styles = () => {
    return css({
      'default': {
        title: {
          color: '#333',
        },
      },
    }, {
      'foo-bar': 2 + 2 === 4,
    });
  }

Or stick to the old methods with the caveat being the styles method will always have to be included even if you aren't passing custom activations in:
classes() {
    return {
      'default': {
        title: {
          color: '#333',
        },
      },
    };
  }

styles = () => css();

@9o @mhahn @seekshiva @liady @henriquea @shaunstanislaus @vladikoff @hharnisc

react-map-styles: :+1:
React Native Support :+1:
I also like the idea of removing the classes method in favor or using styles. I think it's more clear, though be good to think about a transitional period to allow people to migrate over to the new styles
What's the repercussions to dropping support for ReactCSS.Component inheritance?

@hharnisc Definitely not doing to drop support completely, however throw warnings to help people migrate.
Only change with removing inheritance is that you will have to bind the styles method as with the fat arrow:
styles = () => css();

or in the constructor:
constructor() {
  super();
  this.styles = this.styles.bind(this);
}

styles() {
  return css();
}

Hello @casesandberg, first off, i'd like to thank you for all the work you've put in for ReactCSS + Bounds.  I'm using both in my main project.  This is the first time i've enjoyed styling and don't think I can go back to the old way.   That said, I'm trying as hard as I can to stay with it, but it appears without .14 compatibility, I will need to migrate, at least in the short term.
All your proposed changes seem like fantastic ideas and I was already thinking similar things.  Any idea when the updates might be available?  Thanks in advance and I look forward to supporting your work!

@e-karma Are you having problems with it in 0.14.0 ? The only issue I am aware of is it throws a console warning, but other than that is should work just fine.

@casesandberg I like the proposal. Considering in  0.14 the pure components/functions are a big deal, removing the old class method make sense for me.

@casesandberg yea, every component that utilizes GetInitialState, it locks the page up.  Seeing many of these errors =>
-uncaught Error: Invariant Violation: findComponentRoot(..., .<IP_ADDRESS>.0)
-uncaught TypeError: Cannot read property '_currentElement' of null
-Warning: getInitialState was defined on CreateEvent, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?
i'm rather new to React so some of this may be my implementation, but after many hours wrestling with it, undoubtedly things break when using ReactCSS + Bounds and then clear up when removed. (doesnt' seem to like extending ReactCSS.component)
How long until you look to release an update?   Thanks again!

+1 to the proposed changes, let me know if i can help!

fyi: I'm getting these same errors "uncaught Error: Invariant Violation: findComponentRoot(..., .<IP_ADDRESS>.0)" when trying to use React 0.14. Initial load seems to work, but still publishes warnings, re-rendering seems to be failing at certain times.

re:
styles = () => {
    return css({
      'default': {
        title: {
          color: '#333',
        },
      },
    }, {
      'foo-bar': 2 + 2 === 4,
    });
  }

i'd be for simplifying to something like this. we don't use activations very often, but whenever we do i forget the syntax.
one comment is that i would prefer to limit the import boilerplate to setup a new component. if there was a way styles could look something like:
styles = () => {
    classes: {
         default: {
              ...
         }
    },
    activations: {
         ...
    },
}

where whatever was referencing styles in reactcss would do:
const { classes, activations } = Component.styles()
return css(classes, activations)

or something, then i wouldn't have to import css everywhere which would be nice.

I know youre busy @casesandberg and definitley appreciate all the work you've done, but a timeline for 1.0 update would help immensely.

The plan is to have it done before the 18th of this month. Is there anything in particular you need in the mean time? I am working on a 1.0.0 branch and can build whatever you need next

Hey, thanks!  Could you possibly swap out ReactCSS.Component for React.Component?  I had to remove the lib until fixed because that did more than generate a console warning.   What would the new implementation be?  ES7 Decorator for me is best-case as I have concerns with using mixins (they can only be used in React.createClass but not in React.Component ES6 class).
-I'm eager for same update within react-bounds/context/color as Bounds became unusable since the update for the same reasons I think.
-Does ReactCSS enable :hover styling?
Thanks in advance; big fan of your work!!

Hey @casesandberg, still on track for an update by tomorrow?

Sorry @e-karma, I have the week off and will be finished it up in the next few days

@casesandberg lmk if there is anything i can help with, our team is focused on getting server side rendering released this week.

Sounds good @casesandberg!  Happy thanksgiving and let me know if theres anything I can do to help

Hi @casesandberg, is this project still being maintained?

Yes @igorpreston, I have just been super busy the past couple of weeks. I will get something out as soon as I can!

Just got server-side rendering working (https://github.com/casesandberg/reactcss/commit/ca7cf3352b32fe74cc512643e2233381207ba02e), going to be upgrading the repo to work with 0.14.0 tonight!

Excellent!  Thanks @casesandberg!
I'm still curious, how are you going to include reactcss features into a react component? Inherit direcly from ReactCSS.Component, mixin or ES7 decorator?
Also when do you expect the 1.0.0 release w/ doc updates?

@casesandberg hello, may I know when 1.0.0 version will be released on npm with docs? Really looking forward to it.

Hi @casesandberg, very confused at this point.  It seems it is still unfinished but you're last comment 2 weeks ago makes me unsure and unfortunately my project is stuck in limbo.  What is the status of the project?   Thanks

@e-karma Check https://github.com/casesandberg/reactcss/tree/1.0.0

Thanks @9o and Thanks @casesandberg .   I spent some time with the new branch and have run into an unfortunate bug.  It appears as though ReactCSS cannot be used alongside other wrappers or ES7 decorators that are applied to the same class.
@Decorator
export class Klass extends Component { ... }
export default ReactCSS(Klass);
In that example, ReactCSS never works because it wraps the wrapper from Decorator and not the actual class.
If this isn't error on my part, it seems like the only viable solution would be to rewrite reactcss wrapper either as decorator or as ES6 wrapper (ReactCSS(ClassName)).  Anyone else have insight or experience with this?

Hey @casesandberg, any input on this?  Not sure which way to move forward. Thanks

Sorry. I am going to be releasing 0.5.0 with all of these changes this
weekend!
On Friday, January 15, 2016, e-karma<EMAIL_ADDRESS>wrote:

Hey @casesandberg https://github.com/casesandberg, any input on this?
Not sure which way to move forward. Thanks
—
Reply to this email directly or view it on GitHub
https://github.com/casesandberg/reactcss/issues/23#issuecomment-172120433
.

Ah @e-karma, I see what you are saying. I am going to do some digging to see if there is a way for this to work alongside decerators.

@casesandberg Great! Let me know what you find out.

Hey @casesandberg, did you have any luck?  If a fix has to wait at least until next week, thats no problem, just let me know so I can swap out the ES7 Decorators in the short-term.  As always, let me know if theres anything I can do to help!

Been looking into it but its really tricky. Wont have a fix in until mid-next-week at a minimum

Launched!


🐛 Bug Report: Apple SDK - 2nd Realtime subscription does not work

👟 Reproduction steps
Subscribe to a channel, then subscribe to another channel using 2 separate subscribe statements.
👍 Expected behavior
Both subscriptions should receive events.
👎 Actual Behavior
Only the first subscription works. The second one does not receive any events.
🎲 Appwrite version
Different version (specify in environment)
💻 Operating system
Linux
🧱 Your Environment
My server is 1.5 self-hosted on a Hostinger VPS and the latest Apple SDK (version 5.0.0)
Here is a link to the Discord discussion on this bug:
https://discord.com/channels/564160730845151244/1237123794028466296/1238513814882881616
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

@tenly2000, thanks for raising this issue! 🙏🏼 It looks like when the second subscribe is made, it goes into this if block:
https://github.com/appwrite/sdk-for-apple/blob/c39030db9af1e2dd7b36f8df45f838c5f7dfb0da/Sources/Appwrite/Services/Realtime.swift#L37-L42
As such, the socketClient isn't updated with the new URL (with the new channels).
This code was added as part of https://github.com/appwrite/sdk-generator/pull/284/commits/8a3221699821698a01e321739dda74ca35f3dfa5 to fix a syncShutdown error like:
NIOCore/EventLoop.swift:1168: Fatal error: BUG DETECTED: syncShutdownGracefully() must not be called when on an EventLoop.
Calling syncShutdownGracefully() on any EventLoop can lead to deadlocks.
Current eventLoop: SelectableEventLoop { selector = Selector { descriptor = 5 }, thread = NIOThread(name = NIO-ELT-0-#0) }

but it looks like it caused a problem. We'll look into how to fix the subscribe problem while not re-introducing the syncShutdown error.


CloudSeed simply not working

Tried installing the plugin on SoundBridge and LMMS, but both cannot open it. Weirdly cropped window (like 75%) will pop out and UI is responding, but it does nothing to the sound and outputs the input. The only problem I run while installing is that I have latest .NET and latest C++ tools, not 2017 like it comes bundled with, so the installation of these tools will prompt error that newer version is already installed. So yeah, seems like it's not working on latest versions...

not recognized by Bitwig either

Same. Worked great on previous version, but reinstalled OS due to malware and I can't for the life of me get it to work now. Shame, Love this plugin,


fix  UserInputError being handled incorrectly.

UserInputError has been made part of the if-elif block.
This should fix issue #76.
Additionally, MissingRequiredArgument now shows a different message.
old:

now:

Thanks. Could you also capitalize the description, so it doesn’t start with a lowercase letter?

Thanks. Could you also capitalize the description, so it doesn’t start with a lowercase letter?

Thanks. Could you also capitalize the description, so it doesn’t start with a lowercase letter?

Yeah, I thought of that. I think rather than capitalizing,  formatting the parameter (language in this case) with backticks is more appropriate. So the description would be "language is a missing required argument which is missing."
Or, we could alter the entire sentence structure.
There are two ways this can be carried out.

Get the error in str and format the first word (This is assuming the first word will be the parameter)
I believe MissingRequriedArgument can provide you with the missing argument and we should construct a message accordingly.

Both are easy to implement.

Thanks. Could you also capitalize the description, so it doesn’t start with a lowercase letter?

Yeah, I thought of that. I think rather than capitalizing,  formatting the parameter (language in this case) with backticks is more appropriate. So the description would be "language is a missing required argument which is missing."
Or, we could alter the entire sentence structure.
There are two ways this can be carried out.

Get the error in str and format the first word (This is assuming the first word will be the parameter)
I believe MissingRequriedArgument can provide you with the missing argument and we should construct a message accordingly.

Both are easy to implement.

Rather than capitalising, I decided to format the missing argument with a single line code-block.
Feel free to suggest changes.

Rather than capitalising, I decided to format the missing argument with a single line code-block.
Feel free to suggest changes.

Rather than capitalising, I decided to format the missing argument with a single line code-block.
Feel free to suggest changes.

Rather than capitalising, I decided to format the missing argument with a single line code-block.
Feel free to suggest changes.

Yeah that looks better.

Yeah that looks better.

Can we merge this as it is a high priority feature?

Can we merge this as it is a high priority feature?

it is a high priority feature?

@Shivansh-007 Well, yeah, it's currently one of the most important features on gurkbot, but it's not per say a high priority feature. We have a label for that, and this one does not warrant it.

it is a high priority feature?

@Shivansh-007 Well, yeah, it's currently one of the most important features on gurkbot, but it's not per say a high priority feature. We have a label for that, and this one does not warrant it.


fix RUSTSEC-2023-0034 by updating h2

Fixes https://rustsec.org/advisories/RUSTSEC-2023-0034 by updating h2

This isn't required. You can run cargo update in your own project.


Move metric types to new module

Those strings are not pysnmp types, just SNMP constants, and used in one
place, let's move them where they are used.

Merging, thanks!


STORM-2877: Backport for 1.0.x-branch

Backporting this Storm UI change which has already been merged in master.
JIRA ticket: https://issues.apache.org/jira/browse/STORM-2877
Merged PR in master branch: https://github.com/apache/storm/pull/2505

@srishtyagrawal
Could you also raise pull request against 1.1.x branch?

Definitely @HeartSaVioR! Thanks for merging this one.

@HeartSaVioR I see STORM-2877 in the commit history for 1.1.x branch. Did you cherry-pick the changes already? I don't need to create a backport PR now, right?

@srishtyagrawal Yes right, the cherry-picking was hopefully easy one. :)

Thanks for confirming that @HeartSaVioR. We have  the changes forSTROM-2877-Introduce an option to configure pagination in Storm UI in all the development branches which are 1+


Add context aware logmessages to the socketio client

The log messages in the socket io client do not reflect the host / port combo being connected to. Add host /port aware logging.

Thanks!


Download pdb file

If possible, would be great to be able to download a .pdb file for the dms-viz-produced visualization because sometimes it's useful to add in additional features to the structure that are outside what the dms-viz tool is used for.

Thinking about this more, I'm not sure if the visualization tool is the best place to implement this. The best I could do is return a PDB structure with the b-factors replaced with the value of a summary statistic for a single condition. I'd have to implement this in the configuration tool if I did it.
Also, I think that polyclonal already has a method for this?
I'm going to close this for now, but I'll re-open it if I think of a better solution.


bug #2369 [LiveComponent] (Dynamic Form) Do not clear missing values on submit

Q
A

Bug fix?
yes

New feature?
no

Issues
Fix #2369  / https://github.com/SymfonyCasts/dynamic-forms/issues/26

License
MIT

If you have a LiveComponent for a form with dependent fields which have been implemented with the dynamic-forms bundle, it can happen that the pre-defined value disappears for fields that are displayed later. This is due to the $clearMissing parameter of the Symfony\Component\Form::submit function. This parameter is true by default and therefore I now set it to “false” so that the values are not cleared.
I can't assess whether this would have unwanted side effects. Please check it out and if you think it fits, you can merge it.

Thank you for this PR @momocode-de!
I took time to look at it and one question arises: does this only change solves your DynamicFormBundle problem ? Or is this only a step ?
Right now i'm a bit hesitant here...  if i(m not reading this badly, it would be a strong behaviour change:

When the second parameter $clearMissing is false, like with the "PATCH" method, the validation will only apply to the submitted fields. If you need to validate all the underlying data, add the required fields manually so that they are validated:

When submitting a form via a "PATCH" request, you may want to update only a few submitted fields. To achieve this, you may pass an optional second boolean argument to submit(). Passing false will remove any missing fields within the form object. Otherwise, the missing fields will be set to null.

https://symfony.com/doc/current/form/direct_submit.html
At least we would need some tests here, and a clear explanation of what would happen in the different scenario with some honest before/after.
Right now (and i'm very open to change my position)... i don't know... maybe you should first try to change this on your side? Because i'm not sure we should take this risk.. What do you think ?

Hi @momocode-de, does this really resolve the issue? I've come across this problem myself and tried locally your changes and unfortunately this solve didn't work for me. I understand we both have different environments, but this simple code snippet is still affected. Could you please provide an example of code that was fixed by your change? Maybe there were more steps to resolve the issue which I don't see.
$builder
  ->addDependent(
      name: 'value',
      dependencies: ['amount'],
      callback: function (DependentField $field, ?float $amount) {
          $field->add(
              type: NumberType::class,
              options: [
                  'required' => true,
                  'scale' => 2,
                  'disabled' => !$amount,
                  'data' => $amount ?? 0,
              ],
          );
      }
  )


Rework invalidation rules to avoid unnecessary computations

This change stops propagating down layout / autosize invalidations if DrawSize hasn't been changed and the child does not have RelativeSizeAxes. Results in huge speedups in certain cases such as TestCaseSpriteText where I observe up to 5x.

Thoroughly tested. There's a few scenarios where this improves performance, and there doesn't seem to be any reduction in other areas.
👍


Parameter Units for calculate_mean_radiant_temperature, return value of calc cza integrated

The example code calc_utci.py and utci_wbgt.py deaccumulate ssrd, ssr, fdir, strd, and strr, which leads me to believe the units for these arguments should be fluxes (W/m^2 or J/sm^2) rather than accumulated radiation as stated in the docstring (J/m^2 or Jm^-2). From what I can tell, the Di Napoli paper says the MRT calculation is done with surface fluxes, not accumulated radiation.
Additionally, the docstring for calculate_cos_solar_zenith_angle_integrated says: returns average of cosine of the solar zenith angle during interval [degrees], but the example code in calc_utci.py and utci_wbgt.py "deaccumulate" the value returned by this function as well, which leads me to believe that calculate_cos_solar_zenith_angle_integrated returns the integral of the cos solar zenith angle over a period over time, rather than the average cza during the interval. I'm not familiar enough with the math used to answer this for myself.
To summarize:

Are the units for ssrd, ssr, fdir, strd, strr in calculate_mean_radian_temperature supposed to be W/m^2, and incorrectly labelled as J/m^2?
Does calculate_cos_solar_zenith_angle_integrated return the integral of cza over a period or the average cza over a period?

I am new to this so please correct me if I am wrong. Thank you for your help!!

This should have now been fixed in the development branch and will be present in version 1.3.0


Make Parsers Incremental and Consistent

We should make the parsers incremental (so we don't have to buffer) and make the APIs consistent (instead of Reading multiple but writing a single one, etc.). We'll still keep them stateless. cc @davidfowl

This should include #1618


Typo in 1.intro.pdf page 66

In the first line, ‘Wherefore’ should be ‘Whence’ or ‘Whenceforth’.

Whence/Whenceforth questions (geographical or temporal) provenance
Wherefore questions the purpose or reason
Can you elaborate on why you suggest a change here?

Well I would say that value comes from somewhere, not because of something. 🤔


ARR: Submission previous_url validation

The pre process validation that checks if the previous_url is valid doesn't fail when the user pass the forum id + plus comment id:
id=[forum_id]&noteId=[note_id]
To fix this we should check the note that we get has an invitation that correspond to a submission and it is forum note (id == forum).
I would also request the users to enter the full url, the UI knows how to render the link to the previous forum.

The submission form should have a regex validation:
'regex': 'https:\/\/openreview\.net\/forum\?id=.*'

and check the id is an ARR submission.

Fixed!


Opening PyRPL in Vivado 2015.4

Hello,
(this is all using branch pyrpl-developer-0.9.3)
I am currently trying to open PyRPL in Vivado 2015.4 in order to view the block diagrams and eventually make FPGA changes for what I am working on. However, I am running into some difficulty when doing this. The steps I have taken are:

Download Vivado 2015.4 and generate licences
2)At the start screen, open tools --> run TCL script --> select red_pitaya_vivado_project.tcl

a project is generated but no block diagrams are shown (Open block design button is grayed out)

I then navigated to the proper directory in the Tcl console  (.../pyrpl/fpga) and and ran red_pitaya_vivado_project.tcl (running red_pitaya_vivado.tcl appears to do the same thing) which opened up a block diagram that looked like attached(see attached picture) in another window. I am wondering if this is the entire project, or what I need to do to view the entire project (block diagrams etc.).

Lastly, if I wanted to begin to edit the FPGA code, can you give advice on what is the top level module file from where I should begin.
Thank you for your help.

Everything is explained here and the links therein: https://pyrpl.readthedocs.io/en/latest/developer_guide/fpga_compilation.html
I only use the command-line mode, never open the Vivado GUI. But I think that is possle too, just cannot support you with this.
The top-level fpga module is contained in pyrpl/fpga/rtl/red_pitaya_top.v.

@anyone who uses the Vivado GUI, anything to help getting that up would be appreciated here.


Add codes for generic case of trajectory

This PR Handles allowing for undersampling with a given trajectory.
An extension to this, which can be worked on but isnt done here, is to have a large number of such trajectories and later choose randomly for different data

Also (sorry to ask I will verify how to do it automatically), can you increase the version number?

Yes

Why is travis still waiting? Did you not disable it @zaccharieramzi ?

I did disable it but to no avail on this repo ... don't know why


Ability to use editor instead command palette to write commit messages

I write long commits (description) and it would be very convenient to be able to use a text editor of vscode (because it's supports commits messages editing and it works great) instead of the command palette when I run the Git Commit All command (Amend).
Thanks!

#30562


Added hover effect to Book Now button

Related Issue
Fixes #80
Description
I have added the hover effect
Type of PR

[x] Feature enhancement

Screenshots / videos (if applicable)
Without Hover:

With Hover:

Checklist:

[x] I have made this change from my own.
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] My changes generate no new warnings.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers and screenshots after making the changes.
Please assign the GSSOC Extended and Hacktoberfest labels along with the level label to this PR.

@PriyaGhosal I have resolved the conflicts now


Add docs for composite primary_key

Ecto.Schema was missing documentation for composite primary keys. I only found out about this feature because I searched google and eventually ended up on the PR.

:heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart:


GH-37947:[Docs] Keep header size default (small) on smaller screens

Rationale for this change
The Sphinx theme we have been using (PyData Sphinx Theme) has been pinned to an older version for a while now and with the https://github.com/apache/arrow/pull/36591 we have updated the code and are now using version 0.14.0 for the dev docs.
This PR fixes bugs we have encountered after the PR updating the theme has been merged.
What changes are included in this PR?

Have default header size for smaller screens and keep it increased for bigger screens.

Closes: #37947

@jorisvandenbossche I changed "Specifications and Protocol" to just "Specifications" and "Language implementations" to just "Implementations". Then the double header comes up at approx 1170px and that is when we default back to the smaller header size.
I would still change the logo to Chevron-only in the smaller header case as the current one is not readable on smaller screens.

I would still change the logo to Chevron-only in the smaller header case as the current one is not readable on smaller screens.

It's only the "Apache" part that is not readable, right? I agree it doesn't look great with the Apache not being readable, but on the other hand  I think it is nice you still see "Arrow" .. (but I suppose having a logo with just Arrow without Apache will violate the rules of how the name should be used)

It's only the "Apache" part that is not readable, right?

Yes, correct.

I agree it doesn't look great with the Apache not being readable, but on the other hand I think it is nice you still see "Arrow" .. (but I suppose having a logo with just Arrow without Apache will violate the rules of how the name should be used)

I do not think it is violating, Apache is still there, it is just very small and I think in that case using only chevron without Apache Arrow would be better. But I understand, Arrow will then not be there, which is a bummer.
No rush to change though. We can decide for 15.0.0 and have the header change included in 14.0.0.


callbacks not being triggered

i am currently playing with the settings for a colorbox popup that i am adding to my website that is based on the elgg framework (www.elgg.org). elgg uses colorbox by default, so it has some built-in support for calling colorbox and most of the features work fine. however, i am finding that when i have added callout functions to the events that colorbox generates, the functions are never called. for example, i assigned a 'console.log' command to the 'onOpen' event and when i open colorbox, nothing is logged to the browser's console (firefox / linux):
'onOpen' => "function() {alert('test'); console.log('open'); }",

does anyone know why? or have any tips on how to debug this? thanks

'onOpen' => "function() {alert('test'); console.log('open'); }",

I don't know what I'm looking at here, what language is this?  It looks like you are assigning a string to onOpen instead of a function.  Colorbox takes a settings object, and the callback properties expect a value that is a function.

oh ok, yes. this is PHP - it's just an assignment of the callback function to a value that gets output as a JSON attached to an HTML element. to make it clearer, the callback function would be written in javascript as:
onOpen: function() {alert('test'); console.log('open'); }

the full PHP call within elgg is:
$img = elgg_view_entity_icon($image, 'large', array(
	'link_class' => 'elgg-lightbox',
	'href' => 'ajax/view/ureka/image_popup?guid=' . $image->guid,
	'data-colorbox-opts' => json_encode([
		'height' => '96%',
		'width' => '96%',
		'fixed' => true,
		'className' => 'imagebox' . $image->guid,
	  'onOpen' => "function() {alert('test'); console.log('open'); };",
	]),
));

oh it appears i have some useful advice via the elgg core team here: https://elgg.org/discussion/view/2518007/colorbox-callback-functions-are-not-being-triggered-here-anyone-know-why

👍 Sounds like they pointed you in the right direction.


The MessageStoreSender.java class defines unwanted XML elements MessageStoreSenderErrorStorage and MessageStoreSenderMessageLog

Java class MessageStoreSender.java should define XML elements MessageStoreErrorSender and MessageStoreSender, but in addition the elements MessageStoreSenderErrorStorage and MessageStoreSenderMessageLog are defined. These extra elements should not be used by Frank developers and hence they should not appear in the Frank!Doc.
These elements appear because Java class MessageStoreSender inherits class JdbcTransactionalStorage for technical reasons. The existence of error stores and message logs is expressed by element roles (ITransactionalStorage, "errorStorage") and (ITransactionalStorage, "messageLog"). There is a FrankElement for Java class MessageStoreSender. The XML tags are calculated from all the ElementRoles to which MessageStoreSender belongs. Because of the inheritence, these ElementRole-s include (ITransactionalStorage, "errorStorage") and (ITransactionalStorage, "messageLog"). This is why the unwanted XML elements appear.
One way to solve this is to introduce a new annotation in the Frank!Doc that says that an inheritance relation is only technical. Then the logic that defines ElementType-s should exclude members based on this annotation. As a consequence the ElementRole-s that include these ElementType-s do not include the unwanted members and hence the unwanted XML elements are not defined.

Initially I thought about this issue as a feature request - we need to exclude MessageStoreSender from a type. However, the @FrankDocGroup annotation has logic not only to add ElementType-s to groups but also to restrict FrankElement-s to groups. This logic is used to restrict MessageStoreSender to the group of Senders and exclude it from the group of TransactionalStorages.
There are two ways that syntax 2 names of FrankElement-s are calculated. First, the JSON lists for each group the element types and for each element type the members. The members of the element type are calculated here taking into account the @FrankDocGroup annotations. However, at the page of a FrankElement the syntax 2 names are calculated another way. Here, the ElementRole-s are considered which depend on the ElementType-s. @FrankDocGroup annotations do not remove FrankElement-s from ElementType-s so here the @FrankDocGroup restrictions are ignored.
I propose that we simplify the behavior of the @FrankDocGroup annotation to only add members to groups - no restriction. Only the members of ElementRole-s and ElementType-s should determine the syntax 2 names. We need an annotation to remove FrankElement-s from ElementTypes.
That new annotation could be placed on a FrankElement, something like @ExcludeFromType(ITransactionalStorage.class). Or we could have an annotation on the Java interface, for example on ITransactionalStorage: @ExcludeMembers({MessageStoreSender.class}).


[WIP] T2 experiment with Hahn echoes

Summary
A class for T2 experiment.
Details and comments
Two class will be added:

T2Hahn - T2 Experiment handler
T2Analysis - Analysis for the experiment

Attaching relevant documents for Hahn Echo (And echo in general)
A Quantum Engineer’s Guide to Superconducting Qubits - CPMG.pdf
Breakdown of Carr-Purcell Meiboom-Gill spin echoes in inhomogeneous fields.pdf
Echoes -How to Generate, Recognize, Use or Avoid Then in MR Imaging.pdf
hahn_spin_echo_paper_1950.pdf
Modified Spin-Echo Method for Measuring Nuclear Relaxation Times.pdf


List of all ports

As mentioned here and here, it could be a good point to have a page listing all active and inactive ports.
Such information are in my opinion relevant:

Device name
Device model
Latest SailfishOS Version
Repositories
Maintainer
Active

Possibility is to add some more details about the port, such what is not working if help is needed, etc. Let's use this issue to discuss about it :)

I'm all for this (as you can see from the linked posts!). As soon as I get the chance I'll propose a PR, unless someone else gets there first.

Mmh, actually IMHO it should be better to rename this page: https://docs.sailfishos.org/Develop/HW_Adaptation/Devices/ to https://docs.sailfishos.org/Develop/HW_Adaptation/OfficialDevices/ (or something similar)
And add another page called CommunityDevice.

Mmh, actually IMHO it should be better to rename this page: https://docs.sailfishos.org/Develop/HW_Adaptation/Devices/ to https://docs.sailfishos.org/Develop/HW_Adaptation/OfficialDevices/ (or something similar)
And add another page called CommunityDevice.

Separate pages seem unnecessary in my opinion. Section for each porter would better I think. First ports done by Jolla and then each community porter.

In bigger picture I'd not add all information under hardware adaptation simply as there are two kind of information seekers; to which device I could buy Sailfish X license & how do I contribute to the HW adaptation xyz. I started drafting structure for the SupportedDevices. Let's see how that turnout to be. More detailed information can certainly be kept under HW adaptation.

In bigger picture I'd not add all information under hardware adaptation simply as there are two kind of information seekers; to

A list of devices with brief information similar as in  and then a page for each device would be useful. Something like this but less technical for the first page:
https://wiki.merproject.org/wiki/Adaptations/libhybris


[CIVP-24102] upgrade pyyaml to 5.2

Updating pyyaml since a client needs a more recent version
console pr to update default tag:
https://github.com/civisanalytics/console/pull/15808

Hi Jackson, when I tried to build off of pyyaml 5.4.1 I got nasty errors before the build failed. Here's a snippet of the error:
Examining conflict for notebook scikit-learn scipy pip pycrypto s3fs boto3 jinja2 patsy beautifulsoup4 jsonschema pycparser idna numpy psycopg2 brotlipy glmnet bqplot nose certifi tqdm dask seaborn setuptools cryptography ipython joblib pysocks jupyter conda cffi six pyarrow ruamel_yaml matplotlib click pyopenssl ipywidgets cloudpickle wheel pytest urllib3 requests conda-package-handling chardet numexpr p


definition for 'Result' and no accessible extension method 'Result' accepting a first argument of type 'Response<<anonymous type:

Hi !
I'm trying to make a simple graphql query, supposed to return an array of integers. I've replaced my query and the value in the example. Nevertheless i'm getting the following error when trying to access response.Result :
Response<<anonymous type: <anonymous type: string tokenId>[] tokens>>' does not contain a definition for 'Result' and no accessible extension method 'Result' accepting a first argument of type 'Response<<anonymous type: <anonymous type: string tokenId>[] tokens>>' could be found (are you missing a using directive or an assembly reference?)
The return from the query is { owner: { tokens: Array<{ tokenID }> } }

The query is supposed to return an array of integers, is it giving me that error because of the return type?
Thanks a lot <3

Actually if I just copy paste the example I do get the same error:

(I saw your email, but I'll respond here to keep everything in one place.)
So the documentation is slightly wrong here, since await client.Send() will automatically unwrap the Task object for you. So you don't actually need Result if you do await. If you remove the await, the Result object will appear.
However, I recommend simply doing response.Data.continent.name.
I've gone ahead and updated the documentation as well.

Thanks a lot! I've removed Result from the path and it worked.
If the return from the query is supposed to be
{ owner: { tokens: Array<{ tokenID }> } }
, is the responseType supposed to be
var responseType = new { owner = new { tokens = new { tokenID = "" } } }; ?
It's returning null with my current query setup:

Tokens should be an array in your responseType if that's what you expect.
Something like (Sorry, I didn't test the following code out, but you get the gist):
var responseType = new { owner = new { tokens = new[] { tokenID = "" } } };

If you'd prefer, you can also make a class that contains the exact data structure you want and pass that in as a generic type parameter instead.
[Serializable]
public class GetTokensForOwnerResponse
{
    public Owner owner;

    [Serializable]
    public class Owner
    {
        public Token[] tokens;

        [Serialiable]
        public class Token
        {
            public string tokenID;
        }
    }
}

...
var response = await client.Send<GetTokensForOwnerResponse>(request);
Debug.Log(response.Data);

Awesome, used the class instead !
I've tested and everything works fine with your default example, but unfortunately i'm still getting null returned when making the query.. Hence the last culprit is the query that I might have formatted wrongly. The query I was given is
query GetTokensForOwner {     owner(id: "${wallet.toLowerCase()}") {       tokens(         where: {contract: "000000000000000000"}         first: 1000       ) {         tokenID       }     }   }
Which I formatted in unity like so:
Query = "query GetTokensForOwner { owner(id: $id) { tokens( where: { contract:<PHONE_NUMBER>00000000 } first: 1000 ) { tokenID }}}",         Variables = new         {             id = walletString         }
Does that look correct to you? Been going crazy
Thanks so much <3

No problem! Closing as solved.


Decrease Time it Takes to Reconnect After Network Change

The interface remains up on both ends (only tested with desktop and laptop) with no change, but any attempts to ping either device fail.

Interesting! Is this with a full network change (moving from one public IP address to another) or switching internal IP addresses within a local network (for example going from WiFi to an Ethernet connection)? I haven't had the opportunity to test moving between public IP addresses yet (a.k.a I haven't taken my laptop down to a coffee shop) . But switching between WiFi and an Ethernet connection on my laptop I'm seeing the connection being reconnected to my other machine after about 30s of packets being lost. If you wait a minute or two is the connection eventually reconnected or nothing at all?

It does take a painful amount of time though

Hmm let's see if we can't work on making this a bit quicker! It might be a limitation of the Libp2p underlying network stack but I know the guys over there were looking to make AutoNAT (the system for finding and connecting to devices behind NATs/Firewalls) quicker and more robust.

Also, is there any way to see logs for the interfaces?

Not at the moment but this is a great idea! Were you thinking the interfaces should write their logs to a file? If so, how much information would you like? Peer connects/disconnects?

Made a separate issue for logging.

I'm not sure this is a complete fix but reconnecting should be much improved after #37 is merged in.

@mrbluecoat How are your connectivity/reconnection times?

@alecbcs Not great. I just tried a connection test and it's going on 11 minutes and counting without a connection.
# systemctl status hyprspace@utun1 | tail
      Tasks: 12 (limit: 28713)
     Memory: 80.6M
     CGroup<EMAIL_ADDRESS>             └─7238 /usr/local/bin/hyprspace up utun1 --foreground

Jan 28 04:08:37 systemd[1]: Started hyprspace daemon for utun1.
Jan 28 04:08:37 hyprspace[7238]: [+] Creating TUN Device
Jan 28 04:08:38 hyprspace[7238]: [+] Creating LibP2P Node
Jan 28 04:08:38 hyprspace[7238]: [+] Setting Up Node Discovery via DHT
Jan 28 04:08:38 hyprspace[7238]: [+] Network Setup Complete...Waiting on Node Discovery

Did the recent crypto crash perhaps have an effect on the DHT network?

P.S. I also tried with EdgeVPN and got a similar result so I think it's DHT
# edgevpn --address <IP_ADDRESS>/24
 INFO           edgevpn  Copyright (C) 2021-2022 Ettore Di Giacinto
       This program comes with ABSOLUTELY NO WARRANTY.
       This is free software, and you are welcome to redistribute it
       under certain conditions.
 INFO  Version: v0.8.5 commit: 605278afad3e4aa5cc67842097c9ce68b555661e
 INFO   Starting EdgeVPN network
 INFO   Node ID: 12D3KooWCRikZ1wYU....
 INFO   Node Addresses: [/ip4/<IP_ADDRESS>/tcp/41223 /ip4/<IP_ADDRESS>/tcp/41223 /ip6/::1/tcp/37571]
 INFO   Bootstrapping DHT

@alecbcs Not great. I just tried a connection test and it's going on 11 minutes and counting without a connection.
# systemctl status hyprspace@utun1 | tail
      Tasks: 12 (limit: 28713)
     Memory: 80.6M
     CGroup<EMAIL_ADDRESS>             └─7238 /usr/local/bin/hyprspace up utun1 --foreground

Jan 28 04:08:37 systemd[1]: Started hyprspace daemon for utun1.
Jan 28 04:08:37 hyprspace[7238]: [+] Creating TUN Device
Jan 28 04:08:38 hyprspace[7238]: [+] Creating LibP2P Node
Jan 28 04:08:38 hyprspace[7238]: [+] Setting Up Node Discovery via DHT
Jan 28 04:08:38 hyprspace[7238]: [+] Network Setup Complete...Waiting on Node Discovery

Did the recent crypto crash perhaps have an effect on the DHT network?

I think this might just be that libp2p takes a while to start announcing a new public IP address. I just released v0.2.0, let me know if that changes anything otherwise it's probably worth implementing some logic to check for a new network and manually rebuild the peers. If you restart the interface does it connect quickly?

Version 0.2.1 connected quickly on my first attempt.  What is your internet's upload speed through speedtest.net?

Good point, upload speed was 10.28 Mbps. What Linux-based bandwidth test do you recommend for hyprspace?

Nice! That's still lower performance than I'm seeing between two of my systems on a local 1G connection.

I'm guessing that your results could possibly be lower because of two things. 1) Are your VMs of a shared CPU or dedicated CPU class? Many cloud providers over schedule shared nodes and so you might be hitting up against the CPU rate limit of your instance. 2) If you're getting a QUIC buffer warning at the start of Hyprspace have you increased your QUIC buffer size by running,
sudo sysctl -w net.core.rmem_max=2500000

QUIC buffer was set. Using virtual CPUs with the Oracle Cloud arm instances.


How to use multiple e-mail accounts?

How does one set up multiple e-mail accounts, for example, personal gmail account, work account on outlook and family account on gmx? I know how to set up smtp, etc.

Do you plan to use mbsync for fetching and msmtp for sending or other tools?

I typically use fetchmail and procmail to populate my local mail folders. I use smtp. However, for O365, neither of this work so I use python-o365. So, I guess the answer is a combination, not the same for each mail account.

There are several parts to configure.
Fetchers

Open the Lierre settings
"Fetchers" tab
click the "+" to load a fetcher plugin
choose the "command" plugin
name it (for example "fetchmail")
type the command you'd like to run (e.g. "fetchmail -v")

If you want to run procmail too or run fetchmail with different options, you can repeat steps 3-6, multiple times if desired, just choose a different name each time. The "command" plugin type can be used several times.
If you want to, you can wrap it all in a unique script, for example fetch.sh, but that can be less flexible.
These commands will be run when you click the big "refresh" tool button. Or periodically if you load some "periodic refresh" plugin. Or when necessary if the "imapidle" plugin is loaded (I should write a "fetchmail --idle" plugin).
Identities
Identities are basically sender info. You don't need to configure them to receive emails on different mailboxes, but you need to configure them if you want to send from multiple addresses. An "identity" is basically associated one of your sender addresses.
The configuration UI is not ready yet. You'll have to edit ~/.config/lierre/config YAML file.
Here's an example:
identities:
  personal:
    email<EMAIL_ADDRESS>    name: maitra
    sender_plugin: sender_personal
  work:
    email<EMAIL_ADDRESS>    name: 'John Doe'
    sender_plugin: sender_work

The values to put for sender_plugin keys will be used in the next section.
Senders

Open the Lierre settings
"Senders" tab
click the "+" to load a sender plugin
choose the plugin type you want (more on that later)
name it, choosing a name you will refer to in the identities config (for example, use "sender_personal" as in our previous identities config)
configure the plugin for sending using<EMAIL_ADDRESS>for example

Repeat steps 3-6 for each of your sender addresses/identities, naming the plugin instance each time like the associated identity.
Regarding the plugin type to choose, right now, Lierre only supports sending emails using commands msmtp and sendmail. But I can add more plugins. I've never used O365, I will look into python-o365 though I don't have any account to test it.

However, for O365, neither of this work

After searching very quickly on it, doesn't smtp.office365.com work?

Thanks for the details. python-o365 like interface is needed when we have to access our outlook accounts using two-factor authentication but that provided by a third party such as OKTA or Duo.


Running flutter clean results in Target of URI doesn't exist everywhere

Steps to Reproduce

Run flutter clean
Then my entire project has this issue:
Target of URI doesn't exist,
even 'Target of URI doesn't exist: 'package:flutter/material.dart'.`
I can sometimes get it to work by running flutter pub get and then restarting vscode. But what changed that could be causing this?

flutter doctor -v output:

[✓] Flutter (Channel dev, 1.26.0-8.0.pre, on macOS 11.1 20C69 darwin-x64, locale en-CA)
• Flutter version 1.26.0-8.0.pre at /Users/katzheng/Development/flutter
• Framework revision b9d06fffb2 (11 days ago), 2021-01-07 18:36:48 -0800
• Engine revision 42a8d4c681
• Dart version 2.12.0 (build 2.12.0-179.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/katzheng/Library/Android/sdk
• Platform android-29, build-tools 29.0.3
• ANDROID_HOME = /Users/katzheng/Library/Android/sdk
• ANDROID_SDK_ROOT = /Users/katzheng/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.10.1
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.52.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.18.1

Hi @hanabon
Every time you run flutter clean Flutter will delete some temporary files/directories which are required by the IDE to compile your project so it is required to run flutter pub get so that Flutter will re-create then again.
I'm closing this for now since there is no sign of Flutter issue here.
Thank you

Hi @hanabon
Every time you run flutter clean Flutter will delete some temporary files/directories which are required by the IDE to compile your project so it is required to run flutter pub get so that Flutter will re-create then again.
I'm closing this for now since there is no sign of Flutter issue here.
Thank you


Selecting item in curriculum map should close modal

Selecting item in curriculum map should close map modal. Currently it updates the page but the modal stays open.

Definitely  fixed this in #50.
Please try a hard refresh and attempt it again 👍

Not fixed. Am I testing the correct site?
https://deploy-preview-45--freecodecamp-learn.netlify.com/

Fixed now that I'm testing on the correct url!


Script tags not listed in any shaping engine documentation

The "Script Tags" register includes a number of script tags which are not listed in any shaping engine documentation. Here's an initial subset of them: 'hluw', 'avst', 'bamu', 'bass', 'bopo', 'brai', 'byzm', 'cans', 'cari', 'aghb', 'cher', 'hani', 'copt', 'cprt', DFLT, 'dsrt', 'elba', 'ethi', 'glag'.
As far as I know, every script has to be supported by some shaping engine – the documentation should make clear which one. Now that there are two different shaping engines that handle large numbers of scripts, there's no clear default anymore.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 194a6d3c-4137-46e9-3a4b-44b990200986
Version Independent ID: a0c8e788-5228-aa28-670e-3ba1ac3faecd
Content: Creating and supporting OpenType fonts for the Universal Shaping Engine - Typography
Content Source: typographydocs/script-development/use.md
Product: typography

This doesn't appear to be feedback on the OpenType spec, per se, but rather about other specs on shaping engine implementations. Since there's no change in the OT spec required, I'm closing this issue. If you think it's needed, you can open a separate issue on some other content in the Typography site.

So where do you suggest I file this bug? And how should it be fixed? It’s clear that there is a bug. Implementers of OpenType rendering systems, tool developers, and font developers all need to know which shaping engine handles which script. And the only reasonable way to manage this is by having a single document that maps script tags to shaping engines.

Please reopen this bug.

The only potential action that could be taken on this page to make sure there aren't script tags listed here that aren't covered in some shaping engine spec would be to remove tags from this page. Obviously that's not the right answer.
I suggest you open an issue on this page: that will put the issue into the right set of content within the Typography site.

I don’t think the USE page is any more appropriate than this page, and it’s still within the same repository and therefore the same set of issues anyway. Please leave this bug open until we’ve figured out what the right fix is.

USE is more appropriate because it's in a section of the site and repo for script implementation specs. This page is part of the OpenType font format spec, which is different. There would not be any changes to the OT spec for this.
Re-opening, but changing page links.


Improve design on mobile and tablet for Shoppy (Part 2)

Fixes https://github.com/metabase/shoppy/issues/62
See this Notion doc for more information.
Changes

[x]  remove max-w-[320px] on Shell.tsx
[x]  header font size: 36 on mobile, same for all shops
[x]  mobile: full width product image, no padding (mobile only)
[x]  site switcher: full width on mobile (mobile only)
[x]  sidenav mobile: reduce padding to be the same as mobile
[x]  pug & play mobile: all blue background, no wavey lines
[x]  hide create question and dashboard on mobile
[x]  reduce padding for analytics overview, all sites
[x]  shop 3 > dashboard pages — put a rounded border (similar to Analytics Overview card)

[x]  16px px padding - base+
[x]  24px px padding - xs+

[x]  remove orders and campaigns link — we don’t have this
[x]  bug

[x]  z-index of the "new dashboard" modal is less than the side navigation (shop 3), shows up on Tablet view
[x]  New Question on mobile should not close the sidenav on mobile

Thanks for reviewing @WiNloSt! I addressed all of the review feedback above 🙏🏻


configure orm cache

@kuanfandevops this doesn't generate a migration, so the management command below will need to be run in an openshift deploy script it seems.
Creating the cache table
Before using the database cache, you must create the cache table with this command:
python manage.py createcachetable

Yes, will add to the django-q deployment template


Improving grammar

[x] Have you followed the contributing guidelines?
[x] Have you explained what your changes do, and why they add value to the Guides?

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

Corrected duplicate words from one quote and fixed case usage

기여 기여지칭

Yes


Button tooltips do not dissapear after pressing the button

For example after pressing the Thebe button on https://sqla-tutorials-nb.readthedocs.io, the dropdown disappears but the tooltip remains:

Try it on Firefox


return 500 error for failed SecurityPolicies to avoid unauthorized access to xRoutes

The current implementation of SecurityPolicy translation is in a best-effort manner, which means even if the translation of SecurityPolicy fails, the targeted xRoute will still be translated to xDS. This would result in unauthorized access to the xRoute.
This PR adds a 500 error direct response to the targeted xRoute when the SecurityPolicy translation fails.
fix https://github.com/envoyproxy/gateway/issues/2837
A FailOpen knob can be added to the SecurityPolicy API later if needed.

/retest

Is this approach reasonable? Since this is a SecurityPolicy, should we accpet the best-effort logic to Security related features?

It's reasonable because the current best-effort logic allows unauthorized access to the protected resources, which is a security risk.  A FailOpen knob can be added to the SecurityPolicy API later if needed.

@zhaohuabing make senses, thanks for clarifying

hey @zhaohuabing should we create a seperate issue for BackendTrafficPolicy ?

hey @zhaohuabing can we also add a e2e for this ?


2d array from multiple input files

Is it possible with the kram command line tool to generate a ktx2 texture 2d array from multiple input files?
How would the command look like?

No, it's not currently supported.  The code is setup to build 1d array, 2darray, 3d, and cube, and cube array off strips.   So the mip system is all built off being able to pull from that.   Ideally these should be vertical strips since that's how KTX/KTX2 store chunks and the rowBytes are simple then.  But it can also copy out rows of a horizontal strip or grid.  There are some samples of that in the example test files.  There is a command to define the layout of images if using a grid, and kram can determine the other dimension of simple vertical or horizontal strips.
It gets more complex when editing these kinds of files, since Photoshop and other tools really don't understand GPU textures.  There a strip can be easier to view/edit.    It wouldn't be hard to concatenate these into a strip in the command processor, and then the rest of the code is blissfully unaware.   The "Show All" feature is also handy once you have a 2d array, since artists want to see all the icons/images in  sheet instead of 1 image at a time.
cuttlefish is a another good tool, and here's how it handles that on its command line.  Usually these are specified in a given order for cube maps and arrays, etc.  The command line can get long and hard to read in these cases.
Input files: at least one required, cannot mix different types
-i, --input file               the input image for a standard texture
-a, --array [n] file           the input image for an array or 3D texture:
n: the index of the image
file: the path to the image
-c, --cube face file           the input image for a cube map:
face: the face, which is one of:
+x, -x, +y, -y, +z, -z
file: the path to the image
-C, --cube-array n face file   the input image for a cube map:
n: the index of the image
face: the face, which is one of:
+x, -x, +y, -y, +z, -z
file: the path to the image
-I, --input-list type file     specify a file with a list of image paths:
type: type of texture, which is one of the
following: image, array, cube, cube-array;
cube faces are in the order:
+x, -x, +y, -y, +z, -z
file: path to a file containing a list of
image paths, one per line

Thanks a lot for your detailed and helpful answer.
With your hints I figured it out how to create arrays based on strips.
This is a great tool, thank you for creating it!

I'm glad you are enjoying it.  It doesn't have many stars, and for some reason, the comments don't show up in my email feed, so I sometimes am late to answer.    I also have only ported libkram and kram to Windows, but the viewer, thumbnailer, and PS plugin would be nice there too
Nice thing about KTX and KTX2 files is that they can be concatenated pretty easily.  The mips all live in one set of chunks.  KTX2 is even better since the mips are compressed.  See the sample scripts, but they do an uncompressed zip archive of the KTX2 files.   Then can pull those and use them directly from the data, decompress from staging, and then twiddle that to the GPU textures.
Also note there's a KTX/KTX2 loader in ObjC in kramv.  That pulls the texture directly from the zip archive.  That zip archive can be wrapped in an Asset Catalog or whatever AAP Android used.  Then can keep the backing store for textures in read-only mmap pages.  These don't count towards jetsam.   Tying this to sparse texturing is still an exercise for the reader.
I'm not a big fan of Apple Preview or the MTLTextureLoader.  These are very limited tools when working with KTX and KTX2 files.  So kramv fills that gap.  Also Apple's thumbnails don't support ETC2 or many of the explict and non-2D KTX types.  So kram's thumbnailer will handle all that.  I'll be checking that support in soon.

Just installed the kram viewer on macOS and this is another really useful app to work with ktx files.
I think this repo will get more users and stars when ktx2 becomes more known and popular.
We chose KTX2 as texture format for our custom game engine and tried various ktx conversion tools ... kram seems to be the only tool that handles everything we want.
Btw if you'd like to receive messages about issues etc, you'd probably need to "watch" your own repo with custom notification settings (issues on).


Requirement
How to give prometheus credentials on jaeger query deployment.
Problem
I want to read metrics from a prometheus url which has the authentication enabled. How to pass the username and password in the jaeger query. i tried setting up the env: PROMETHEUS_USERNAME and PROMETHEUS_PASSWORD but no use.
Proposal
No response
Open questions
No response

I need to provide a bearer to get access on prometheus. Any hint?
Bearer is available at /var/run/secrets/kubernetes.io/serviceaccount/token

It's currently not supported, but I think we'd need to do something similar to this example when the an HTTP RoundTripper is created for the MetricsReader.
For bearer tokens, we could follow a similar pattern to how our ES storage is configured with a bearer token.

@albertteoh shall I create a separate feature request?

@albertteoh shall I create a separate feature request?

Yes, I think that would be better. Thanks.

So would it not possible for configuring the auth of remote prometheus server in jaeger UI/jaeger query for now ?


A macro to build a mp3 tag naturally

Since this library opens the mp3 file each time performing a ID3 tag I/O, it is better to create a complete Tag struct first, and then write that to the mp3 file.
tag = ID3.read_tag!("path/to/file.mp3")
new_tag = %{tag | year: 2019, artist: "Queen"}
ID3.write_tag!("path/to/file.mp3", new_tag)

But, it is more natural for us to use functions in a pipe:
"path/to/file.mp3"
|> ID3.open_file()
|> put_year(2019)
|> put_artist("Todoroki")
|> ID3.write_tag!()

So, maybe creating at least some macro to convert the pipe-ish things to a Tag generator may be good for both.
"path/to/file.mp3"
|> ID3.open_file()
|> ID3.edit_tag do
  => put_year(2019)
  => put_artist("Todoroki")
end
|> ID3.write_tag!()

Maybe this is better?
"path/to/file.mp3"
|> ID3.edit_tags do
  put_year(2019)
  put_artist("Todoroki")
  put_picture(File.read!("pic.jpg"), picture_type: :Other)
end

So there's no need to care about opening/closing files

I've changed my mind... It's better to edit structs than creating macros.


Setup new models

Hello together,
how can i train a new model based on images?

I have the same question, have you resolved?

@bjarnege That means using a different dataset?

For the new dataset, you should write your own dataloader.  Make sure the new dataset can use the Inception score as the evaluation metric.


WIP: Optimizing performance

@DanielGarc please review this and take over :)

@RamirezAlex I will review it this afternoon. Thank you.

@Darking360 I made a bunch of comments of what should be updated, there is also some (maybe half) translation needed, I can do this but, this is one of my firsts contributions and I'm not sure what's the best way to go about it. Should I create a new branch for this page and make the updates or is there a way to keep working on @RamirezAlex branch. Thank you!

@DanielGarc Good morning. Ok I see, so let's do this, create a new branch and merge the changes from this one into the new branch and you can continue the work there, I'll close this PR and wait for yours with all the final work, that way merging this branch the changes from @RamirezAlex won't get lost or anything 💪 and both contributions will be added to the final version.
Let me know if you have any question, if you don't I'll close it now, reopen it. Please tag me as soon as you open the PR for your new branch 🚀

@DanielGarc Good morning. Ok I see, so let's do this, create a new branch and merge the changes from this one into the new branch and you can continue the work there, I'll close this PR and wait for yours with all the final work, that way merging this branch the changes from @RamirezAlex won't get lost or anything 💪 and both contributions will be added to the final version.
Let me know if you have any question, if you don't I'll close it now. Please tag me as soon as you open the PR for your new branch 🚀