BugFix: RoundedRectSliderTrack rendering

Use case
Better in rendering RoundedRectSliderTrack which is the default Track

Proposal

before: if the slider is high enough there were some bugs:

the left arc was always coloured even if the slider is zero.
the right arc was always not coloured even if the slider is full.
some space between the track and the thumb in the middle,
this happened when the thumb was a circle (default) or
any shape that does not have a flat right and left sides.

after: fixed the stated above bugs

the above images are at 100%, 0%, 55% respectively

the code is
    final Rect leftTrackArcRect = Rect.fromLTWH(
      trackRect.left - trackRect.height / 2,
      trackRect.top,
      trackRect.height,
      trackRect.height,
    );

    final Rect rightTrackArcRect = Rect.fromLTWH(
      trackRect.right - trackRect.height / 2,
      trackRect.top,
      trackRect.height,
      trackRect.height,
    );

    final Rect leftTrackSegment = Rect.fromLTRB(
      trackRect.left,
      trackRect.top,
      thumbCenter.dx,
      trackRect.bottom,
    );

    final Rect rightTrackSegment = Rect.fromLTRB(
      thumbCenter.dx,
      trackRect.top,
      trackRect.right,
      trackRect.bottom,
    );

    // draw
    if (!leftTrackArcRect.isEmpty)
      context.canvas.drawArc(leftTrackArcRect, math.pi / 2, math.pi, false,
          leftTrackSegment.isEmpty ? rightTrackPaint : leftTrackPaint);

    if (!rightTrackArcRect.isEmpty)
      context.canvas.drawArc(rightTrackArcRect, -math.pi / 2, math.pi, false,
          rightTrackSegment.isEmpty ? leftTrackPaint : rightTrackPaint);

    if (!leftTrackSegment.isEmpty)
      context.canvas.drawRect(leftTrackSegment, leftTrackPaint);

    if (!rightTrackSegment.isEmpty)
      context.canvas.drawRect(rightTrackSegment, rightTrackPaint);

in the bottom of paint function

CC @clocksmith

This looks great! Can you open a PR with the fix (and a test) ?

OK, thanks :)

Sorry, I wasn't done yet


Design layout and template

The current homepage design, as of ticket filing, is this:

It's pretty bad. We could really use a better aesthetic and overall template for the app, that any page can fit safely and snugly into.

Exploring some color palette options

The top one looks more coherent to me, but I'm mildly concerned that it would look too much like the US Web Design Standards. Let's go with the bottom one for now and iterate from there?

Sketches/wireframes from earlier discussions — just leaving them here as reference for now:

Element board
Starting to define look and feel via an element board, where we can start to visualize UI components and their different states. This is useful for conveying how a component like navigation would adapt to varying screen sizes, and what hover or active states of nav items would look like. We can also see how typography might get applied across different components.

Homepage design mockup
Piecing together some components of the element board allow us to composite a mockup of the homepage. This is a first pass at what it might look like.

@heyitsolivia This is fantastic! Thank you for making these. I'll start integrating the overall styles and colors into the layout.


additional eye tracking setup docs

Overview
Follow on to #7615 based on feedback from @sostel.
Changes

add back the note about checking MRTK prerequisites if you don't see a GazeInput capability
doc that capability was added in Unity 2019
clarify "should stay untouched"

As a reviewer, it is possible to check out this change locally by using the following
commands (substituting {PR_ID} with the ID of this pull request):
git fetch origin pull/{PR_ID}/head:name_of_local_branch
git checkout name_of_local_branch

/azp run

Looks good! Thanks for updating, @ForrestTrepte!


Volume conversion doesn't work between imperial and metric

Microsoft PowerToys version
0.80.1
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
PowerToys Run
Steps to reproduce
I attempted to convert from (fluid) ounces to milliliters, but was unable to do so. I tried several combinations like:

oz to ml
floz to ml
fl oz to ml
ounces to milliliters
fluid ounces to milliliters

It does not work with or without the activation command:

It seems as though "ounces" and related abbreviations are reserved for weight, but they should be used for fluid volume as well.
I have confirmed that the plug-in is enabled:

And I have also confirmed that other conversions work fine:

✔ Expected Behavior
A conversion from (fluid) ounces to another unit. To minimize confusion, the output should expand an input of oz to fluid ounces, e.g.

%% 32 ml to oz
1.126243 fluid ounces
copy volume to clipboard

Additionally, it might be helpful to reserve the oz abbreviation for weight, and require volume to be floz or fl oz.
❌ Actual Behavior
it is currently not possible to convert to or from fluid ounces.
Other Software
No response

Hello and thanks for your message. Just to check: is the plug-in activated and available in global search? Aside from that: what happens if you directly search via the "activation character"? (default %%)
@htcfreek time to update the nuget

Hey @Jay-o-Way! My bad, I totally should have clarified that the plug-in is activated and otherwise works.
I updated my original post to include this info!

Hi guys, this is my first time commenting here. I looked into the issue. And it seems like an issue with the underlying package - UnitsNet. Not an issue but the specified unit does not exist in the package. A simple fix could be to write a custom unit, let's say "fluid ounce" represented by "floz". In addition to that, we would also need to add conversions between different units. Upgrading would not help, since even in the latest version (5.50.0), there are no units associated with fluids. Please correct me if I'm wrong since it's my first time here.
References -

https://github.com/angularsen/UnitsNet/blob/UnitsNet/4.145.0/Common/UnitEnumValues.g.json
https://github.com/angularsen/UnitsNet/blob/master/Common/UnitEnumValues.g.json

Hi guys, this is my first time commenting here. I looked into the issue. And it seems like an issue with the underlying package - UnitsNet. Not an issue but the specified unit does not exist in the package. A simple fix could be to write a custom unit, let's say "fluid ounce" represented by "floz". In addition to that, we would also need to add conversions between different units. Upgrading would not help, since even in the latest version (5.50.0), there are no units associated with fluids. Please correct me if I'm wrong since it's my first time here.
References -
1. https://github.com/angularsen/UnitsNet/blob/UnitsNet/4.145.0/Common/UnitEnumValues.g.json

2. https://github.com/angularsen/UnitsNet/blob/master/Common/UnitEnumValues.g.json

3. https://github.com/angularsen/UnitsNet/tree/UnitsNet/4.145.0?tab=readme-ov-file#custom-units

Hey, thanks for investigating this! I didn't even realize that this may be from an external package (but even if I did I still wouldn't know how to fix it lol)
Actually, it looks like the package does have it, in the Volume section:
"Volume": {
...
    "UsOunce": 48,
...
  },

And in fact, if I do something like 38 usounce to ml it works as expected:

What's funny is I've never heard it specifically referred to as a "US ounce" but... That probably makes sense since I live in the US lol. I would have never thought to try this.
@Jay-o-Way Is it possible to have multiple units with the same name? For instance, could we override/alias the package's "usounce" to "ounce" and "oz" and then check if we're doing volume or weight conversion? If we can't do "ounce" and "oz" because of a collision, then maybe we could add "fluid ounce" and "floz" instead. This could present a potential issue if a user is trying to go from weight in ounces to volume, but the onus should be on the user to understand that you can't directly translate from weight to volume with a simple converter like this.
Alternatively, I didn't look too closely at the package that this comes from. It's possible that they already have something built that will handle this, or make it easier for us to implement. WDYT?

Hi @UltraKeelan, thanks for responding. I think that we could have a custom check in the GetUnitEnum function, which is basically like a converter for converting the string values to their enum counterparts. I wrote a simple if block for the same and it works!

And below is the result -

It will now work for all kinds of input like 32oz, 32 floz, 32ounce, etc.
References -

https://github.com/microsoft/PowerToys/blob/59f978529666f9a0b22f574fc2949ce27c0898dc/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.UnitConverter/UnitHandler.cs#L36

Hi guys, this is my first time commenting here. I looked into the issue. And it seems like an issue with the underlying package - UnitsNet. Not an issue but the specified unit does not exist in the package. A simple fix could be to write a custom unit, let's say "fluid ounce" represented by "floz". In addition to that, we would also need to add conversions between different units. Upgrading would not help, since even in the latest version (5.50.0), there are no units associated with fluids. Please correct me if I'm wrong since it's my first time here.
References -
1. https://github.com/angularsen/UnitsNet/blob/UnitsNet/4.145.0/Common/UnitEnumValues.g.json

2. https://github.com/angularsen/UnitsNet/blob/master/Common/UnitEnumValues.g.json

3. https://github.com/angularsen/UnitsNet/tree/UnitsNet/4.145.0?tab=readme-ov-file#custom-units

Hey, thanks for investigating this! I didn't even realize that this may be from an external package (but even if I did I still wouldn't know how to fix it lol)
Actually, it looks like the package does have it, in the Volume section:
"Volume": {
...
    "UsOunce": 48,
...
  },

And in fact, if I do something like 38 usounce to ml it works as expected:

What's funny is I've never heard it specifically referred to as a "US ounce" but... That probably makes sense since I live in the US lol. I would have never thought to try this.
@Jay-o-Way Is it possible to have multiple units with the same name? For instance, could we override/alias the package's "usounce" to "ounce" and "oz" and then check if we're doing volume or weight conversion? If we can't do "ounce" and "oz" because of a collision, then maybe we could add "fluid ounce" and "floz" instead. This could present a potential issue if a user is trying to go from weight in ounces to volume, but the onus should be on the user to understand that you can't directly translate from weight to volume with a simple converter like this.
Alternatively, I didn't look too closely at the package that this comes from. It's possible that they already have something built that will handle this, or make it easier for us to implement. WDYT?

Hi @UltraKeelan, thanks for responding. I think that we could have a custom check in the GetUnitEnum function, which is basically like a converter for converting the string values to their enum counterparts. I wrote a simple if block for the same and it works!
 And below is the result -

It will now work for all kinds of input like 32oz, 32 floz, 32ounce, etc.
References -
1. https://github.com/microsoft/PowerToys/blob/59f978529666f9a0b22f574fc2949ce27c0898dc/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.UnitConverter/UnitHandler.cs#L36

Oh nice! My only concern here is that oz and ounce won't always be fluid ounce. With your example, what happens if you try to do a valid weight conversion like 32 oz to g? I'm also curious about what happens when you convert to ounces.

Wonder if this issue here should wait on #32572 and if there are new possibilities and units coming with the new version.

Hi @UltraKeelan and @htcfreek, thanks for your interest in the issue. I've done some more investigation and here are my findings.

For @UltraKeelan's doubt, regarding the conversion between oz to g. It currently doesn't work. A nice solution could be to use units like floz and fl oz for fluid ounce and oz and ounce for the regular ounce (representing mass) [Screenshots attached]. Also, for the conversion to ounces, it won't matter, since we're doing parsing way before this step. And, I'm only overwriting the unit's name that is already parsed.
For @htcfreek's doubt, no this issue should not wait on #32572, since, even if we upgrade the UnitsNet version from 4.145.0 to 5.50.0, there are no additions of any other units relating to ounces. If you're talking about any other core functionality changes then I can't comment.

Some screenshots for reference -

The code change

Fluid ounces to other volume changes

Ounces to other mass changes

Other mass changes to ounces (mass)

References -

https://github.com/angularsen/UnitsNet/blob/UnitsNet/4.145.0/Common/UnitEnumValues.g.json
https://github.com/angularsen/UnitsNet/blob/master/Common/UnitEnumValues.g.json

@angularsen sounds like this should be an issue in your repo?

@Jay-o-Way Hi, it could be, but since there is some integration on PowerToys side parsing human input and calling into UnitsNet, it would be helpful to get a short summary of the feature request for UnitsNet specifically.
Input parsing in UnitsNet is very basic and can pretty much just parse its own ToString() representations, such as 5.5 oz.
It has some lookups of unit abbreviations, that could be used to determine that oz refers to both Volume and Mass ounces, but it offers no functionality to parse "5.5 oz to g" or similar inputs, which I assume PowerToys is handling.
A couple of problems:

There are 3 ounce units in UnitsNet, Mass.Ounce oz, Volume.UsOunce oz (U.S.) and Volume.ImperialOunce oz (imp.).
Mass.Parse("5 oz") works, because there is only one mass unit with this abbreviation. But, Volume.Parse("5 oz") would fail due to ambiguity between Volume.UsOunce and Volume.ImperialOunce, so we used different abbreviations oz (U.S.) and oz (imp.)for these.
Trying to parse 5 oz to g requires figuring out the context, that Mass is the common quantity and that oz then refers Mass.Ounce. It is possible to build such a mapping and resolve this in a parser, but we have not made any efforts in this direction. If anyone is interested in trying to build this feature into UnitsNet, I'm happy to assist.

Here are the relevant unit definitions.
Volume.UsOunce
    {
      "SingularName": "UsOunce",
      "PluralName": "UsOunces",
      "FromUnitToBaseFunc": "{x} * 2.957352956253760505068307980135e-5",
      "FromBaseToUnitFunc": "{x} / 2.957352956253760505068307980135e-5",
      "Localization": [
        {
          "Culture": "en-US",
          "Abbreviations": [ "oz (U.S.)" ]
        },
        {
          "Culture": "ru-RU",
          "Abbreviations": [ "Американская унция" ]
        }
      ]
    },

Volume.ImperialOunce
      "SingularName": "ImperialOunce",
      "PluralName": "ImperialOunces",
      "FromUnitToBaseFunc": "{x} * 2.8413062499962901241875439064617e-5",
      "FromBaseToUnitFunc": "{x} / 2.8413062499962901241875439064617e-5",
      "Localization": [
        {
          "Culture": "en-US",
          "Abbreviations": [ "oz (imp.)" ]
        },
        {
          "Culture": "ru-RU",
          "Abbreviations": [ "Английская унция" ]
        }
      ]
    },

Mass.Ounce
    {
      "SingularName": "Ounce",
      "PluralName": "Ounces",
      "BaseUnits": {
        "M": "Ounce"
      },
      "FromUnitToBaseFunc": "{x} * 0.028349523125",
      "FromBaseToUnitFunc": "{x} / 0.028349523125",
      "XmlDocSummary": "The international avoirdupois ounce (abbreviated oz) is defined as exactly 28.349523125 g under the international yard and pound agreement of 1959, signed by the United States and countries of the Commonwealth of Nations. 16 oz make up an avoirdupois pound.",
      "XmlDocRemarks": "https://en.wikipedia.org/wiki/Ounce",
      "Localization": [
        {
          "Culture": "en-US",
          "Abbreviations": [ "oz" ]
        },
        {
          "Culture": "zh-CN",
          "Abbreviations": [ "盎司" ]
        }
      ]
    },

Huh, well that's great, today I learned the absolutely cursed knowledge that there are two "common" volume measurements called an ounce, it didn't even occur to me that the US ounce might differ from the Imperial ounce. So this may be much more complicated after all :(
@Jay-o-Way perhaps the solution here is to make a call about choosing which one (US or Imperial) to treat as an "oz" for volume measurements, and then implement a solution to check whether the user is trying to do volume or weight measurements, and convert appropriately? This might be a bit too biased of a call for @angularsen to make, but perhaps we can do it in PowerToys. That's a big ask, but the payoff would be super convenient for a lot of folks and foster more usage of the plugin (probably 😉).
I also realize that this could introduce some ambiguity, since the output of the conversion uses the same string that the user puts in. For instance, something like 38 l to ml will give 38000 ml. I think it could be useful to always state the full PluralName (or SingularName when the output is 1 exactly) regardless of user input. What do you think of that? If it sounds good, I can open a separate feature request (and perhaps look into opening a merge request if the solution is simple enough).

So this may be much more complicated after all

Oh it sure is! The words "ounce" and "pound" are super ambiguous.

An imperial fluid ounce is defined in British law as 28.4130625 millilitres, a US customary fluid ounce is 29.57353 mL, and a US food labelling fluid ounce is 30 mL.
Besides the currency (ַ£ Pound Sterling), there are/were about six (!) different definitions of the weight pound: https://upload.wikimedia.org/wikipedia/commons/0/0a/Comparison_of_pounds.svg

As for this issue, I defer to @htcfreek (for the plug-in) c.q. @angularsen (for the units)

Hi @Jay-o-Way, I still don't understand how the parsing will work? Like, if a user types 32oz to ml. How will we determine which unit to use (British, US customary, or US food labeling)? Is it covered for @angularsen or us?
On a side note, the above discussions about the units have been super informative.

UnitsNet offers no capability for complex parsing or disambiguating, this would be up to each application as it stands today.
I would take a look at how others solve this:
Google search: 32oz to ml

Wolfram alpha: https://www.wolframalpha.com/input?i=32oz+to+ml

UnitsNet offers no capability for complex parsing or disambiguating, this would be up to each application as it stands today.
I would take a look at how others solve this:
Google search: 32oz to ml

Wolfram alpha: https://www.wolframalpha.com/input?i=32oz+to+ml

For such cases we can generate two results. One for each type of ounces.

For such cases we can generate two results. One for each type of ounces.

Sounds like a great plan! Just to make sure, this would cover both input and output, right?

For such cases we can generate two results. One for each type of ounces.

Sounds like a great plan! Just to make sure, this would cover both input and output, right?

Generally yes. But the results are based on the user input. For example if you convert from ounces to an other unit you would get one result per ounces type (2 types = 2 results).

@htcfreek Can I work on this?


fatal: not a git repository (or any parent up to mount point /)

After run:
lm_eval --model hf
--model_args pretrained=./models/opt-6.7b
--tasks arc_easy
--batch_size auto:1
--output_path ./eval_out/opt-6.7
--use_cache ./eval_cache
it raises an error:
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
and also get a result:
hf (pretrained=./models/opt-6.7b), gen_kwargs: (None), limit: None, num_fewshot: None, batch_size: auto:1

Tasks
Version
Filter
n-shot
Metric
Value

Stderr

arc_easy
1
none
0
acc
0.6561
±
0.0097

none
0
acc_norm
0.6006
±
0.0101

what's the matter with it?

I am also having this issue. Did you come up with any solution?

Hi!
This should not affect results, just whether the git repo's hash gets correctly logged to saved results json files! We'll see about making this confusing error not get logged though.


Artifact not currently displayable in the UI, use the client to access it.

I'm currently using metaflow with local development settings.
I set up metaflow-service and metaflow-ui from this document.
After I ran my metaflow flows, the ui shows all flows and other things except for the artifact with the following message:

Artifact not currently displayable in the UI, use the client to access it.

What should I do to get artifact displayed in the ui with local development settings?

@sangwoo-joh can you help me with a screenshot of where are you seeing this message?


{Network} az network list-usages: Migrate azure-stack commands to aaz

Related command

az network list-usages
az network vnet list-endpoint-services
az network vnet subnet list-available-delegations
Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

Network


son-monitor and son-profile updates

use updated son-monitor REST api from son-emu
automated son-profile functionality from ped and msd files

merging updates regarding son-monitor, son-profile and the their dependencies in the ansible install script


timestamptz and json should work for WIT

Bug report
timestamptz and json aren't implemented, even though exposed via the TypeOid and Cell enums.
Describe the bug
No matter the implementation, upon matching column.type_oid() in a match block, it will throw without fail on two needed
column types for us:
timestamptz and json
To Reproduce
Create a foreign table with a json or timestamptz column defined and accept input from an API that should match those types, postgres will spit out these errors:
2024-11-30 21:36:54.885 EST [16441] STATEMENT:  select * from users;
2024-11-30 21:40:20.688 EST [16923] ERROR:  not implemented

Expected behavior
The implementation should match and parse the content with the interfaces provided with the Wasm Interface.
System information

OS: macOS
Postgres: 16 (with wrappers built and installed locally)
Rust: 1.83.0

Thanks for reporting this issue.
This issue is caused by timestamptz type missing in the type_oid() function. We will fix it soon.
For the json type, we're actually using jsonb internally because it is recommended by Postgres team to as json replacement. So for the json type in WIT we should use corresponding jsonb column type as Postgres table column type.

thank you @akacase for the suggestion. Yes the Wasm wrappers are working for JSON-related APIs only, which we think could cover most of our external data sources. And jiff is a great datetime tool and we'd like to use it, but somehow we already used chrono in many native wrappers, so we probably won't introduce another similar datetime lib, but thanks again for the great ideas.


Cancelling ChangeBlockEvent.Break still performs block drops

Using latest stable-7.

maybe related to https://github.com/SpongePowered/SpongeCommon/issues/2066

Is this still relevant with my fixes?


Does it support  tag ? #question

Hello,
Does it support  tag ?
Thank you,

Hi, not at the moment.
This is a good subject of pull request. We would have to add a table render to HTMLRenderers.js.
I think it shouldn't be too hard to have something working, even if it's not perfect.

I can have an initial go at this @Exilz if you'd be happy to review and tidy up my code?

@wayferer Yes, I'd be happy to review and improve it. However, I don't have much time right now, but I'll definitely look into it once I can.

No worries. I'm jumping around a bit so it might take a while :(

just found that renderers cannot find table in simple example:
123

111

345

added debug output to renderRNElements <- cannot find table also
D/ReactNativeJS( 5058): TEST: rawtext [123
D/ReactNativeJS( 5058): TEST: p [no_data
D/ReactNativeJS( 5058): TEST: p [no_data
D/ReactNativeJS( 5058): TEST: rawtext [345
D/ReactNativeJS( 5058): TEST: p [no_data

@inv2004 remove table from the ignored tags array in here

@Exilz I removed the table related tags in ignored tags array.Now it's displaying like text not like the table, for Example, see below code.
const htmlContentLink =
`

Firstname
Lastname
Age

Jill
Smith
50

Eve
Jackson
94

`
output
Firstname
Lastname
age
Jill
smith50
What should i do for rendering the table

@GopiKrishna10 that's the point of the issue, it has no default renderer that handles
.
I told inv2004 to remove it from the ignored array so he can start working on making a renderer.

Ok Thanks @Exilz  for your response

Does anyone know if any progress has been made regarding the table tag?

Not on my end, however, I'm still open to review a PR regarding this feature.

@Exilz PR?

@Reier360 Pull request 😄

Oh wow, my bad. Sorry I have never contributed to GitHub so I am not really sure how these things work. I will go read up on the process and see if I can maybe have a swing at it.  Thanks.

I don’t want to discourage anyone, but the table layout algorithm in HTML and CSS is extremely complex. And since Yoga only uses the Flexbox layout algorithm which lays out content in one direction (vs tables which auto-layout in 2 directions), mimicking a tiny subset of it will be quite hard.
Basically you would need to make all cells equal-width so that you can mimick columns.
// equal-width cells, yay!
const defaultCellStyle = {
  flexBasis: 0,
  flexGrow: 1
}

Optionally you could look for a width attribute with a percentage value (old-school, I know) on the top cells and use that as the width for all cells in the corresponding column. That might be doable.
But be careful if your use case is showing tables made for displaying on the Web (especially on larger screens) and edited with a JS WYSIWYG editor: your chances of porting that to React Native elements are roughly zero. ;)

Just want to say thanks so much for this library....
I currently use this in my app on production, "bSteem" - see here for more details (https://busy.org/@janicehung/bsteem-for-ios-and-android-newest-mobile-steemit-app)
Would be really helpful to have tables support, I understand its complex to parse out tables so I might try to fork this and submit when I have time

@jm90m Hi, I also needed the table functionality, I never tried to get tables worked and It would be fantastic if someone can get it working but in my case I just used react natives webview. It has fantastic html render functionalities, and it was pretty decent when it came to rendering.

I've managed to get something working quickly. Unfortunately, it's not a custom renderer, and it's not optimal. I'd prefer a version with nodes alteration, but if you want a quick solution here it is.
I've used a regex that matches all
, then replaces the
 with an  before they're parsed by react-native-render-html.
render() {
  const { html, ...props } = this.props;

  let content = html;
  const tables = html.match(/(<table(?:.|\n)*?<\/table>)/g);

  tables.map((table) => {
    content = content.replace(table, `<iframe srcdoc="${tableStyle + table}"></iframe>`);
  });

  return (

  );
}

@charpeni Thanks for this. I'm working on a similar workaround. What does your 'tableStyle' variable look like?

@charpeni awesome, workaround, I'll have to try this!

Anyone knows the way to override the IGNORED_TAGS https://github.com/archriss/react-native-render-html/blob/master/src/HTMLUtils.js#L44 and allow
 rendering without a need to fork the library?
Don't like the WebView approach, but looking to implement the custom table rendered using "react-native-table-component"

@charpeni  this regex is not working for me. :(
/(<table(?:.|\n)*?<\/table>)/g

Has anyone got a solution for this:

@tclarke-scottlogic by looking at the source code, it looks like we don't have a DOM at this point and all children are already pre-rendered React components. Doubtfully anything could be done here with existing renderers implementation.
I had a __ very simple __ tables, and managed to render as on exampe above
https://github.com/archriss/react-native-render-html/issues/43#issuecomment-414986278
So in my case each
 was a <View> styled as flexbox row ( flexDirection: 'row',)
and  was rendered as just a regular <View></View>

I'll give this a go, thanks. Problem is our table has about 8 columns, most of which are wide.
So I was thinking of just passing the table HTML. Not a problem, I'll just need to find a good solution for pulling out the table elements, before rendering, so I can pass them into a separate WebView or other component.

The problem with tables that has a lot of columns is that those are not responsive and look ugly on mobile in portrait orientation. In that case maybe it worth to just show the cells as a stack of blocks.
For example, render each  and
 as a regular <View> element, making the content responsive. In that case, there will be no table but just a flat list of content.

@webdevbyjoss Can't see that being accepted by the client. It'll be impossible to actually comprehend the content.
Throwing the table into a webview makes the most sense for their needs.

For others to use, this produces a reasonably good quality table, with rows/columns aligned, and that you don't have to give a fixed height to get it to display.
Obviously you may need to adjust to taste, and it's very limited.
renderers={{
              table: (htmlAttribs, children, style, passProps) => {
                return (
                  <ScrollView key={`table${++x}`} horizontal={true}>
                    {children}
                  </ScrollView>
                );
              },
              tr: (html, children, style, passProps) => {
                return (
                  <View
                    key={`tr${++x}`}
                    style={{
                      flex: 1,
                      flexDirection: "row"
                    }}
                  >
                    {children}
                  </View>
                );
              },
              th: (html, children, style, passProps) => {
                return (
                  <View
                    key={`th${++x}`}
                    style={{
                      width: 200,
                      backgroundColor: productColor(item.product).darker,
                      borderColor: colors.grey6,
                      borderWidth: 1
                    }}
                  >
                    <Text style={{ color: colors.white, fontWeight: "bold" }}>
                      {children}
                    </Text>
                  </View>
                );
              },
              td: (html, children, style, passProps) => {
                return (
                  <View
                    key={`td${++x}`}
                    style={{
                      width: 200,
                      borderColor: colors.grey6,
                      borderWidth: 1
                    }}
                  >
                    <Text>{children}</Text>
                  </View>
                );
              }
            }}

Looking into borders, is there a good way to tell if my  or  is the last element in its parent node? I want to apply borders selectively to prevent double borders between cells.

@tclarke-scottlogic the way I managed to prevent double borders is to add top and left borders for  &  elements and then bottom and right border to
 elements.

@webdevbyjoss Surely the top of the  will still double up with the bottom of the  above it?
I ended up using "passProps.nodeIndex === 0" to support, but your way might be cleaner code...

@webdevbyjoss Any suggestion for how to resolve a "rowspan" tag? Crossing the  DOM boundary seems very unlikely to be stable.

yeah, rowspan is unlikely to be doable universally

Thanks, at least I've updated my snippet above to support colspan.

This is a way to use onParsed help with handling row spans. Basically, it detects rowspans and injects additional cells that match the spanning row.
function rowspanParser(dom, elements) {
  const tables = elements.filter(n => n.tagName === "table");
  if (!tables.length) return elements;
  tables.forEach(table => {
    const tbody = table.children.find(n => n.tagName === "tbody");
    if (!tbody) return;

    const rowspanColumns = {};
    for (let i = 0; i

        Object.keys(n.attribs).includes("rowspan")
      );

      const rowspanKeys = Object.keys(rowspanColumns);

      for (let k = 0; k < rowspanKeys.length; ++k) {
        const key = rowspanKeys[k];
        rowspanColumns[key].count = rowspanColumns[key].count - 1;
        if (rowspanColumns[key].count > 0) {
          const column = rowspanColumns[key].column;
          const index = rowspanColumns[key].index;
          tr.children.splice(index, 0, { ...column });
        } else {
          delete rowspanColumns[key];
        }
      }

      if (rowspanners.length > 0) {
        rowspanners.forEach(n => {
          rowspanColumns["val" + n.nodeIndex] = {
            column: n,
            index: n.nodeIndex,
            count: parseInt(n.attribs.rowspan, 10)
          };
        });
      }
    }
  });

  return elements;
}

Remove all tables tags from IGNORED_TAGS in HTMLUtils.js and
table:{
          flex:1,
          flexDirection:'row',
          borderLeftWidth:1,
          borderTopWidth:1,
          alignItems:'center',
          justifyContent:'center',
          borderColor:'#ccc',
          borderRightWidth:0.5,
        },
        tbody:{
        },
        tr:{
          flex:1,
          borderBottomWidth:1,
          flexDirection:'row',
          borderBottomColor:'#ccc'
        },
        td:{
          justifyContent:'flex-start',
          width:'50%',
          paddingHorizontal:12,
          paddingVertical:5,
          borderRightWidth:0.5,
          borderRightColor:'#ccc',
          alignItems:'flex-start'
        },

only for 2 colums tables.

@kartavyaparekh96 the example listed few messages earlier is more general, and works in all cases, including the 2 columns. It is because with flexbox style rule flex: 1 you don't need to set width:'50%' as all cells will be evenly distributed, and it will automatically set 50% width for tables with 2 columns.

I managed to create a bridge with react-native-webview It's not optimal, since inner nodes are not natives.
But at least it's fully compliant with HTML table layout algorithm. Video extract.

@jsamr Can you provide an example of that solution being used? I'm trying to implement it myself and having issues with implementing it in my  .

@nvonbenken I'll work on an example repo next week and share it here.

@jsamr
Any update on this? I'd really like to see how you accomplished this in an example.

I was able to use @jsamr stuff:
!!!! Download his files (link above) !!!!
Imports:
import HTML from 'react-native-render-html';
import { renderers } from './renderers';
import { alterNode } from './alter-node';
import { IGNORED_TAGS } from 'react-native-render-html/src/HTMLUtils';

Constants
const tags = _.without(IGNORED_TAGS, 'table', 'caption', 'col', 'colgroup', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr');
render()

I don´t know why but everything I put AFTER (BELLOW) the HTML tag just don´t render...

@zehgreven I embedded the table in a modal so I didn't see this bug comming. I guess you're experiencing react-native-community/react-native-webview#101!
@nvonbenken OK I'll work on something before the end of the week!

@zehgreven I embedded the table in a modal so I didn't see this bug comming. I guess you're experiencing react-native-community/react-native-webview#101!
@nvonbenken OK I'll work on something before the end of the week!

@zehgreven I embedded the table in a modal so I didn't see this bug comming. I guess you're experiencing react-native-community/react-native-webview#101!
@nvonbenken OK I'll work on something before the end of the week!

@zehgreven I embedded the table in a modal so I didn't see this bug comming. I guess you're experiencing react-native-community/react-native-webview#101!
@nvonbenken OK I'll work on something before the end of the week!

@zehgreven I embedded the table in a modal so I didn't see this bug comming. I guess you're experiencing react-native-community/react-native-webview#101!

I actly found that my  is not growing as much as it should :X
If i find a work arround I let you guys know.

@zehgreven I embedded the table in a modal so I didn't see this bug comming. I guess you're experiencing react-native-community/react-native-webview#101!

Yep! You´re totally correct... That´s what happened... But once I fixed it this "glitch" the table just don´t show anymore, I think that I still need to find a way to grow up the screen height so it´ll have extra space to show up the table...
I let you know if I fix it.

@jsamr  @zehgreven
Is this working with Expo for you? In setting it up as above I'm getting this:
Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager

I actly wasn´t able to make it work properly, still deciding if i´ll try another soluction...

@zehgreven Writing the bridge-library right now ; to circumvent the issue and avoid native dependency, I'll make WebView component an argument to the main function.

:tada: Good news everyone ; I've been working on this all this day through. react-native-render-html-table-bridge released to npm, with support for onPressLink and autoheight! :tada:

@nvonbenken How is the released library working for you with Expo ?
@zehgreven would be happy if you could test

@jsamr  Same issue as above, Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager

@nvonbenken Did you follow the steps in the readme ? If you are using Expo SDK ≤ 32, you must provide WebView component from react-native.
import { WebView } from 'react-native'

@jsamr  Ahh good call, missed that piece. Had referenced WebView from react-native-webview by mistake. Looks good now!
Thanks a lot for making this!

@nvonbenken I'll try to make the readme more Expo-friendly!

@zehgreven would be happy if you could test

Tested and looks like it works.
I´ll try some more weird test cases as soon as I can.
Here is my code working just fine using your bridge.
``js
/* eslint-disable no-undef */
import React, { PureComponent } from 'react';
import { Linking, Dimensions, View } from 'react-native';
import HTML from 'react-native-render-html';
import WebView from 'react-native-webview';
import { IGNORED_TAGS, alterNode, makeTableRenderer } from 'react-native-render-html-table-bridge';
import MJax from './MJax';
import { Fonts, Colors } from '../../Themes';
export default class HtmlView extends PureComponent {
render() {
const { html, baseFontStyle = {}, containerStyle = {} } = this.props;
const config = {
  WebViewComponent: WebView,
  tableStyleSpecs: {
    trOddBackground: '#FFFFFF',
    trEvenBackground: '#FFFFFF',
  },
};

const renderers = {
  table: makeTableRenderer(config),
  mathjax: (attribs, _children, _css, { key }) => (<MJax key={key} rawHtml={attribs.rawHtml} />),
};

const htmlConfig = {
  alterNode,
  renderers,
  ignoredTags: IGNORED_TAGS,
};

return (
  <View style={{ flex: 1, opacity: 0.99 }}>
     {
        Linking.openURL(href);
      }}
      {...htmlConfig}
    />
  </View>
);

}
}
``

Did any one get any way  to support tag

@ashu777 https://github.com/archriss/react-native-render-html/issues/43#issuecomment-487731497

@charpeni this regex is not working for me. :(
/(<table(?:.|\n)*?<\/table>)/g

I had to change the \n to \r\n to get it work.
I am trying to figure out the tablestyle part that he added now. Anyone know what goes here?


TF_OUT_ pipeline variables cant be assigned to a variable?

I'm trying to pass out the TF_OUT_ variable to other steps/jobs.
So I tried assigning its value to a $test variable but the value of the output wasn't passed.
- task: charleszipp.azure-pipelines-tasks-terraform.azure-pipelines-tasks-terraform-cli.TerraformCLI@0
  displayName: 'terraform apply'
  inputs:
    command: apply
    workingDirectory: '$(Pipeline.Workspace)/${{parameters.artifact}}'
    commandOptions: main.tfplan
  enabled: true

- task: charleszipp.azure-pipelines-tasks-terraform.azure-pipelines-tasks-terraform-cli.TerraformCLI@0
  displayName: 'terraform output'
  inputs:
    command: output
    workingDirectory: '$(Pipeline.Workspace)/${{parameters.artifact}}'
  enabled: true

- powershell: |
    Write-Host "$(TF_OUT_agentpublic_ip)" ##this prints the correct IP
    $test = $TF_OUT_agentpublic_ip
    Write-Host "$test" ##this does not print anything at all
    Write-Host "##vso[task.setvariable variable=AGENT_PIP;isOutput=true]$(TF_OUT_agentpublic_ip)" ## other jobs are getting blank
  name: outputVar

I tried getting the type of the $test variable and it was a null.
Agent Used: Microsoft Hosted (windows2019)
Terraform Version: 0.14.7

Have you tried including the parenthesis in the line that assigns $test? Right now you have  $test = $TF_OUT_agentpublic_ip. Azure Pipelines wont evaluate that as a pipeline var due to the lack of parenthesis. Try  $test = "$(TF_OUT_agentpublic_ip)".
FYI if there was an issue with the this extension, the first line that prints the output value would not work. This appears to be more of an azure pipelines yaml usage question/issue.

I tried it out and this was the result.

Yaml
 - task: charleszipp.azure-pipelines-tasks-terraform.azure-pipelines-tasks-terraform-cli.TerraformCLI@0
    displayName: 'terraform output'
    inputs:
      command: output
      workingDirectory: '$(Pipeline.Workspace)/${{parameters.artifact}}'
    enabled: true

  - powershell: |
      Write-Host "$(TF_OUT_agentpublic_ip)"
      $test = $(TF_OUT_agentpublic_ip)
      Write-Host "$test"

Disclaimer im not a powershell expert by any means but, you may need to wrap the variable in quotes like you did with the Write-Host operation. Either way this is not an issue with this task, its likely something to do with the powershell task. You may also try using a different pipeline variable such as $(Pipeline.Workspace) to see what it does.
  - powershell: |
      Write-Host "$(TF_OUT_agentpublic_ip)"
      $test = "$(TF_OUT_agentpublic_ip)"
      Write-Host "$test"

Alright noted thanks. Got it working after looking for a workaround. Which was running a Powershell script in the local-exec provisioner. Gonna use this further down the development.
Thanks for the support. 😄


Use != instead of is not  for literal

See this commit for the same fix at another line https://github.com/cupy/cupy/commit/c3f11da8405440a563b86f828b689cc0a49b73bd

Thank you for the PR!
Jenkins, test this please

Jenkins CI test (for commit b386cada08f1af97b4fe7ef32e8d44bdc0bbc439, target branch master) succeeded!


vendor update

https://keboola.atlassian.net/browse/PS-213

that was made as part of https://github.com/keboola/input-mapping/releases/tag/8.0.4 before it always inserted limit:10 if there wasn't any limit


Serialize QuerySet, not SearchQuerySet?

May be is not drf-haystack issue, but i want to ask.
I want just to filter QuerySet with "?q=bla bla bla"  params (using elastixsearch via haystack anyway).
I see in code https://github.com/inonit/drf-haystack/blob/master/drf_haystack/serializers.py#L37 and
    # NOTE: Make sure you don't confuse these with model attributes. These
    # fields belong to the search index!

that we have mapping haystack_fields in serializer and etc. May be it is good for something, but redundancy in my case.
I just need - search by query q param and return filtered QuerySet.
More over, i use django-filter backend to filter queryset http://www.django-rest-framework.org/api-guide/filtering/#djangofilterbackend and i want to combine filter result with haystack results (for one Model).
May me i must use somthing like this (not tested!):
http://django-haystack.readthedocs.org/en/latest/searchqueryset_api.html#load-all-queryset
drf view:
def queryset_gen(search_qs):
    for item in search_qs:
        yield item.object

def get(self, request, format=None):
        # foo from GET q
        sqs = RelatedSearchQuerySet().filter(content='foo').load_all()
        # For the Entry model, we want to include related models directly associated
        # with the Entry to save on DB queries.
        sqs = sqs.load_all_queryset(Entry, self.queryset.select_related(depth=1))
        self.queryset = queryset_gen(sqs)

       return self.list(request, *args, **kwargs)

or it is wrong way and i can make it better with drf-haystack ?

Hi,
Sorry for late response, I've been a bit busy lately.
I'm not quite sure that I understand the question completely? If you want to perform search and filtering on a normal django QuerySet, you should not be using drf_haystack for this. django-filter is a better choice for doing custom filters on regular django querysets.
If you want to filter on a haystack SearchQuerySet , drf_haystack is a good choice. You can set up field aliases in order to perform ?q=bla bla bla queries (see the Autocomplete example in the docs).
If you need to merge results from a regular QuerySet and a SearchQuerySet, you need to sort it out manually, there's no included functionality for such use cases. Seems like you're already on the right track ;)
Hope this made sense?

Thanks, @rhblind , i just need "normal django QuerySet" with Full Text Search.
Finally, i've been start to use posgtres FTS.


[wip] Benchmarking new arecibo memory pipeline

!gpu-benchmark

Benchmarks shouldn't take so long. Let me try again
!gpu-benchmark

Closing for clarity: this forms a good historical asset. OK with this being reopened if there's something new to test upstream.


Don't stringify buffers

Ref: https://segment.atlassian.net/browse/LIB-399
I'm implementing the gzip part on analytics.js-core so this is needed to send raw compressed data.
We could also directly implement gzip here, happy to hear some thoughts!

Codecov Report

Merging #6 into master will increase coverage by 0.46%.
The diff coverage is 80%.

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
+ Coverage   70.27%   70.73%   +0.46%
==========================================
  Files           1        1
  Lines          37       41       +4
==========================================
+ Hits           26       29       +3
- Misses         11       12       +1

Impacted Files
Coverage Δ

lib/index.js
70.73% <80%> (+0.46%)
:arrow_up:

Continue to review full report at Codecov.

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


test: add e2e test case for route batch deletion

Please answer these questions before submitting a pull request, or your PR will get closed.
Why submit this pull request?

[ ] Bugfix
[ ] New feature provided
[ ] Improve performance
[ ] Backport patches

What changes will this PR take into?
Please update this section with detailed description.
Related issues
fix/resolve #0001
Checklist:

[ ] Did you explain what problem does this PR solve? Or what new features have been added?
[ ] Have you added corresponding test cases?
[ ] Have you modified the corresponding document?
[ ] Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@zfkube0x1 Thank you very much for these works, but they seem to have some minor problems in format or workflow.


import Promise doesn't resolve when loading cached script in IE10

Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
Related to #2189.
It appears that the Promise created by import to inject the dependent script never resolves in IE10 for scripts that are loaded from the cache.
If the current behavior is a bug, please provide the steps to reproduce.
I was able to reproduce this consistently in browserstack.  If I navigate to a different page, the scripts aren't loaded, but if I clear the browser cache, navigating to the next page works again.
We are loading a few other scripts on page load through similar mechanisms (injecting <script> tags into the <head>), but there aren't so many injected that way (6-10 maybe?).
What is the expected behavior?
Promise resolves so execution continues.
If this is a feature request, what is motivation or use case for changing the behavior?
N/A.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
WebPack 2.2.1

I guess script.src need to be set after the callbacks are registered. IE is weird here.
Do you want to send a PR?

I'd be happy to, with a little guidance. I believe should be looking here. Is that correct?

I hate to say it, but I'm still experiencing this. I cannot for the life of me figure out why...

I'll mention I'm using the core-js promise polyfill. Don't know if that's related.

I experience a similar behavior with IE10 and Webpack 3.3.0. I use babel-polyfill but tried two other and it also doenst work. Anybody an idea what to do?

@MethodenMann we switched to es6-promise and that seemed to resolve the issue, at least until we can drop IE10 support completely.

@mAAdhaTTah and how did you integrate it? I tried to just load the dist/es6-promise.auto.js file and to load it directly with webpack:

new webpack.ProvidePlugin({
Promise: 'es6-promise-promise'
})
]

both approaches dont work for me.

import 'es6-promise/auto' at the top of our entry file.


Installing bochs on Ubuntu 20.04 LTS doesn't install vgabios on WSL2 whereas it does on real Ubuntu 20.04 LTS.

Environment
Windows build number: Microsoft Windows [Version 10.0.19041.685]
Your Distribution version: Release:        20.04
Whether the issue is on WSL 2 and/or WSL 1: Linux version 4.19.104-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Feb 19 06:37:35 UTC 2020 -- WSL2

Steps to reproduce
I install bochs on WSL2.  When I run it bochs fails with
Message: ROM: couldn't open ROM image file '/usr/share/bochs/BIOS-bochs-latest'

.  /usr/share/bochs doesn't have the required files.   When I install bochs in the same way on a freshly installed Ubuntu 20.04 LTS under VirtualBox bochs runs fine.  /usr/share/bochs does have the required files.
sudo apt-get install bochs*

installs vgabios under Virtualbox but it doesn't install vgabios under WSL2.
Ubuntu under VirtualBox:
$ uname -a
Linux igor-VirtualBox 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

WSL logs:
Expected behavior
sudo apt-get install bochs*

results in
$ ls /usr/share/bochs/
BIOS-bochs-latest  BIOS-bochs-legacy  BIOS-qemu-latest  VGABIOS-lgpl-latest  keymaps

Actual behavior
sudo apt-get install bochs*

results in
$ ls /usr/share/bochs/
VGABIOS-lgpl-latest  keymaps

Installation logs that show the difference in vgabios:

Ubuntu 20.04 under WSL2

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'bochs-gui' for glob 'bochs*'
Note, selecting 'bochs-sdl' for glob 'bochs*'
Note, selecting 'bochs-term' for glob 'bochs*'
Note, selecting 'bochs-curses' for glob 'bochs*'
Note, selecting 'bochs' for glob 'bochs*'
Note, selecting 'bochsbios' for glob 'bochs*'
Note, selecting 'bochs-x' for glob 'bochs*'
Note, selecting 'bochs-wx' for glob 'bochs*'
Note, selecting 'bochs-doc' for glob 'bochs*'
The following additional packages will be installed:
  bximage libsdl2-2.0-0 libwxbase3.0-0v5 libwxgtk3.0-gtk3-0v5
Suggested packages:
  debootstrap grub-rescue-pc
The following NEW packages will be installed:
  bochs bochs-doc bochs-sdl bochs-term bochs-wx bochs-x bochsbios bximage libsdl2-2.0-0 libwxbase3.0-0v5
  libwxgtk3.0-gtk3-0v5
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 42.1 kB/7730 kB of archives.
After this operation, 32.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 bochsbios all 2.6.11+dfsg-1build1 [42.1 kB]
Fetched 42.1 kB in 1s (63.0 kB/s)
Selecting previously unselected package libsdl2-2.0-0:amd64.
(Reading database ... 75551 files and directories currently installed.)
Preparing to unpack .../00-libsdl2-2.0-0_2.0.10+dfsg1-3_amd64.deb ...
Unpacking libsdl2-2.0-0:amd64 (2.0.10+dfsg1-3) ...
Selecting previously unselected package libwxbase3.0-0v5:amd64.
Preparing to unpack .../01-libwxbase3.0-0v5_3.0.4+dfsg-15build1_amd64.deb ...
Unpacking libwxbase3.0-0v5:amd64 (3.0.4+dfsg-15build1) ...
Selecting previously unselected package libwxgtk3.0-gtk3-0v5:amd64.
Preparing to unpack .../02-libwxgtk3.0-gtk3-0v5_3.0.4+dfsg-15build1_amd64.deb ...
Unpacking libwxgtk3.0-gtk3-0v5:amd64 (3.0.4+dfsg-15build1) ...
Selecting previously unselected package bochs-wx.
Preparing to unpack .../03-bochs-wx_2.6.11+dfsg-1build1_amd64.deb ...
Unpacking bochs-wx (2.6.11+dfsg-1build1) ...
Selecting previously unselected package bochs-x.
Preparing to unpack .../04-bochs-x_2.6.11+dfsg-1build1_amd64.deb ...
Unpacking bochs-x (2.6.11+dfsg-1build1) ...
Selecting previously unselected package bochs-term.
Preparing to unpack .../05-bochs-term_2.6.11+dfsg-1build1_amd64.deb ...
Unpacking bochs-term (2.6.11+dfsg-1build1) ...
Selecting previously unselected package bochs-sdl.
Preparing to unpack .../06-bochs-sdl_2.6.11+dfsg-1build1_amd64.deb ...
Unpacking bochs-sdl (2.6.11+dfsg-1build1) ...
Selecting previously unselected package bochsbios.
Preparing to unpack .../07-bochsbios_2.6.11+dfsg-1build1_all.deb ...
Unpacking bochsbios (2.6.11+dfsg-1build1) ...
Selecting previously unselected package bochs.
Preparing to unpack .../08-bochs_2.6.11+dfsg-1build1_amd64.deb ...
Unpacking bochs (2.6.11+dfsg-1build1) ...
Selecting previously unselected package bochs-doc.
Preparing to unpack .../09-bochs-doc_2.6.11+dfsg-1build1_all.deb ...
Unpacking bochs-doc (2.6.11+dfsg-1build1) ...
Selecting previously unselected package bximage.
Preparing to unpack .../10-bximage_2.6.11+dfsg-1build1_amd64.deb ...
Unpacking bximage (2.6.11+dfsg-1build1) ...
Setting up bximage (2.6.11+dfsg-1build1) ...
Setting up libwxbase3.0-0v5:amd64 (3.0.4+dfsg-15build1) ...
Setting up libsdl2-2.0-0:amd64 (2.0.10+dfsg1-3) ...
Setting up bochsbios (2.6.11+dfsg-1build1) ...
Setting up bochs-doc (2.6.11+dfsg-1build1) ...
Setting up libwxgtk3.0-gtk3-0v5:amd64 (3.0.4+dfsg-15build1) ...
Setting up bochs-wx (2.6.11+dfsg-1build1) ...
Setting up bochs-x (2.6.11+dfsg-1build1) ...
Setting up bochs (2.6.11+dfsg-1build1) ...
Setting up bochs-term (2.6.11+dfsg-1build1) ...
Setting up bochs-sdl (2.6.11+dfsg-1build1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Processing triggers for man-db (2.9.1-1) ...

Ubuntu 20.04 under VirtualBox

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'bochs-gui' for glob 'bochs*'
Note, selecting 'bochs-sdl' for glob 'bochs*'
Note, selecting 'bochs-term' for glob 'bochs*'
Note, selecting 'bochs-curses' for glob 'bochs*'
Note, selecting 'bochs' for glob 'bochs*'
Note, selecting 'bochsbios' for glob 'bochs*'
Note, selecting 'bochs-x' for glob 'bochs*'
Note, selecting 'bochs-wx' for glob 'bochs*'
Note, selecting 'bochs-doc' for glob 'bochs*'
The following additional packages will be installed:
  bximage libsdl2-2.0-0 libwxbase3.0-0v5 libwxgtk3.0-gtk3-0v5 vgabios
Suggested packages:
  debootstrap gcc | c-compiler grub-rescue-pc libc-dev
The following NEW packages will be installed:
  bochs bochs-doc bochs-sdl bochs-term bochs-wx bochs-x bochsbios bximage libsdl2-2.0-0 libwxbase3.0-0v5 libwxgtk3.0-gtk3-0v5
  vgabios
0 upgraded, 12 newly installed, 0 to remove and 293 not upgraded.
Need to get 7,527 kB/7,759 kB of archives.
After this operation, 33.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 libsdl2-2.0-0 amd64 2.0.10+dfsg1-3 [407 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 libwxbase3.0-0v5 amd64 3.0.4+dfsg-15build1 [982 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 libwxgtk3.0-gtk3-0v5 amd64 3.0.4+dfsg-15build1 [4,359 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 bochs-wx amd64 2.6.11+dfsg-1build1 [132 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 bochsbios all 2.6.11+dfsg-1build1 [42.1 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 vgabios all 0.7b+ds-1 [29.4 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 bochs amd64 2.6.11+dfsg-1build1 [1,536 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 bximage amd64 2.6.11+dfsg-1build1 [39.8 kB]
Fetched 7,527 kB in 11s (696 kB/s)
Selecting previously unselected package libsdl2-2.0-0:amd64.
(Reading database ... 180336 files and directories currently installed.)
Preparing to unpack .../00-libsdl2-2.0-0_2.0.10+dfsg1-3_amd64.deb ...
Unpacking libsdl2-2.0-0:amd64 (2.0.10+dfsg1-3) ...
Selecting previously unselected package libwxbase3.0-0v5:amd64.
Preparing to unpack .../01-libwxbase3.0-0v5_3.0.4+dfsg-15build1_amd64.deb ...
Unpacking libwxbase3.0-0v5:amd64 (3.0.4+dfsg-15build1) ...
Selecting previously unselected package libwxgtk3.0-gtk3-0v5:amd64.
Preparing to unpack .../02-libwxgtk3.0-gtk3-0v5_3.0.4+dfsg-15build1_amd64.deb ...
Unpacking libwxgtk3.0-gtk3-0v5:amd64 (3.0.4+dfsg-15build1) ...
Selecting previously unselected package bochs-wx.
Preparing to unpack .../03-bochs-wx_2.6.11+dfsg-1build1_amd64.deb ...
Unpacking bochs-wx (2.6.11+dfsg-1build1) ...
Selecting previously unselected package bochs-x.
Preparing to unpack .../04-bochs-x_2.6.11+dfsg-1build1_amd64.deb ...
Unpacking bochs-x (2.6.11+dfsg-1build1) ...
Selecting previously unselected package bochs-term.
Preparing to unpack .../05-bochs-term_2.6.11+dfsg-1build1_amd64.deb ...
Unpacking bochs-term (2.6.11+dfsg-1build1) ...
Selecting previously unselected package bochs-sdl.
Preparing to unpack .../06-bochs-sdl_2.6.11+dfsg-1build1_amd64.deb ...
Unpacking bochs-sdl (2.6.11+dfsg-1build1) ...
Selecting previously unselected package bochsbios.
Preparing to unpack .../07-bochsbios_2.6.11+dfsg-1build1_all.deb ...
Unpacking bochsbios (2.6.11+dfsg-1build1) ...
Selecting previously unselected package vgabios.
Preparing to unpack .../08-vgabios_0.7b+ds-1_all.deb ...
Unpacking vgabios (0.7b+ds-1) ...
Selecting previously unselected package bochs.
Preparing to unpack .../09-bochs_2.6.11+dfsg-1build1_amd64.deb ...
Unpacking bochs (2.6.11+dfsg-1build1) ...
Selecting previously unselected package bochs-doc.
Preparing to unpack .../10-bochs-doc_2.6.11+dfsg-1build1_all.deb ...
Unpacking bochs-doc (2.6.11+dfsg-1build1) ...
Selecting previously unselected package bximage.
Preparing to unpack .../11-bximage_2.6.11+dfsg-1build1_amd64.deb ...
Unpacking bximage (2.6.11+dfsg-1build1) ...
Setting up bximage (2.6.11+dfsg-1build1) ...
Setting up vgabios (0.7b+ds-1) ...
Setting up libwxbase3.0-0v5:amd64 (3.0.4+dfsg-15build1) ...
Setting up libsdl2-2.0-0:amd64 (2.0.10+dfsg1-3) ...
Setting up bochsbios (2.6.11+dfsg-1build1) ...
Setting up bochs-doc (2.6.11+dfsg-1build1) ...
Setting up libwxgtk3.0-gtk3-0v5:amd64 (3.0.4+dfsg-15build1) ...
Setting up bochs-wx (2.6.11+dfsg-1build1) ...
Setting up bochs-x (2.6.11+dfsg-1build1) ...
Setting up bochs (2.6.11+dfsg-1build1) ...
Setting up bochs-term (2.6.11+dfsg-1build1) ...
Setting up bochs-sdl (2.6.11+dfsg-1build1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for man-db (2.9.1-1) ...

Here is what it's like to run bochs without those files:

$ bochs
========================================================================
                       Bochs x86 Emulator 2.6.11
              Built from SVN snapshot on January 5, 2020
                Timestamp: Sun Jan  5 08:36:00 CET 2020
========================================================================
00000000000i[      ] LTDL_LIBRARY_PATH not set. using compile time default '/usr/lib/bochs/plugins'
00000000000i[      ] BXSHARE not set. using compile time default '/usr/share/bochs'
00000000000i[      ] lt_dlhandle is 0x558ef3769600
00000000000i[PLUGIN] loaded plugin libbx_unmapped.so
00000000000i[      ] lt_dlhandle is 0x558ef376a620
00000000000i[PLUGIN] loaded plugin libbx_biosdev.so
00000000000i[      ] lt_dlhandle is 0x558ef376afc0
00000000000i[PLUGIN] loaded plugin libbx_speaker.so
00000000000i[      ] lt_dlhandle is 0x558ef376cd40
00000000000i[PLUGIN] loaded plugin libbx_extfpuirq.so
00000000000i[      ] lt_dlhandle is 0x558ef376d510
00000000000i[PLUGIN] loaded plugin libbx_parallel.so
00000000000i[      ] lt_dlhandle is 0x558ef376f170
00000000000i[PLUGIN] loaded plugin libbx_serial.so
00000000000i[      ] lt_dlhandle is 0x558ef3773570
00000000000i[PLUGIN] loaded plugin libbx_gameport.so
00000000000i[      ] lt_dlhandle is 0x558ef3773da0
00000000000i[PLUGIN] loaded plugin libbx_iodebug.so
00000000000e[      ] Switching off quick start, because no configuration file was found.
------------------------------
Bochs Configuration: Main Menu
------------------------------

This is the Bochs Configuration Interface, where you can describe the
machine that you want to simulate.  Bochs has already searched for a
configuration file (typically called bochsrc.txt) and loaded it if it
could be found.  When you are satisfied with the configuration, go
ahead and start the simulation.

You can also start bochs with the -q option to skip these menus.

1. Restore factory default configuration
2. Read options from...
3. Edit options
4. Save options to...
5. Restore the Bochs state from...
6. Begin simulation
7. Quit now

Please choose one: [2] 6
00000000000i[      ] lt_dlhandle is 0x558ef3774cc0
00000000000i[PLUGIN] loaded plugin libbx_x.so
00000000000i[      ] installing x module as the Bochs GUI
00000000000i[      ] Bochs x86 Emulator 2.6.11
00000000000i[      ]   Built from SVN snapshot on January 5, 2020
00000000000i[      ]   Timestamp: Sun Jan  5 08:36:00 CET 2020
00000000000i[      ] System configuration
00000000000i[      ]   processors: 1 (cores=1, HT threads=1)
00000000000i[      ]   A20 line support: yes
00000000000i[      ] IPS is set to 4000000
00000000000i[      ] CPU configuration
00000000000i[      ]   SMP support: yes, quantum=16
00000000000i[      ]   level: 6
00000000000i[      ]   APIC support: xapic
00000000000i[      ]   FPU support: yes
00000000000i[      ]   MMX support: yes
00000000000i[      ]   3dnow! support: no
00000000000i[      ]   SEP support: yes
00000000000i[      ]   SIMD support: sse2
00000000000i[      ]   XSAVE support: no
00000000000i[      ]   AES support: no
00000000000i[      ]   SHA support: no
00000000000i[      ]   MOVBE support: no
00000000000i[      ]   ADX support: no
00000000000i[      ]   x86-64 support: yes
00000000000i[      ]   1G paging support: no
00000000000i[      ]   MWAIT support: yes
00000000000i[      ]   VMX support: 1
00000000000i[      ]   SVM support: no
00000000000i[      ] Optimization configuration
00000000000i[      ]   RepeatSpeedups support: yes
00000000000i[      ]   Fast function calls: yes
00000000000i[      ]   Handlers Chaining speedups: no
00000000000i[      ] Devices configuration
00000000000i[      ]   PCI support: i440FX i430FX i440BX
00000000000i[      ]   Networking support: NE2000 E1000
00000000000i[      ]   Sound support: SB16 ES1370
00000000000i[      ]   USB support: UHCI OHCI EHCI xHCI
00000000000i[      ]   VGA extension support: vbe cirrus voodoo
00000000000i[MEM0  ] allocated memory at 0x7fdac6434010. after alignment, vector=0x7fdac6435000
00000000000i[MEM0  ] 32.00MB
00000000000i[MEM0  ] mem block size = 0x00020000, blocks=256
00000000000i[MEM0  ] rom at 0xfffe0000/131072 ('/usr/share/bochs/BIOS-bochs-latest')
00000000000i[      ] lt_dlhandle is 0x558ef3775a50
00000000000i[PLUGIN] loaded plugin libbx_hdimage.so
00000000000i[      ] lt_dlhandle is 0x558ef3db5490
00000000000i[PLUGIN] loaded plugin libbx_soundalsa.so
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4732:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5220:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
00000000000i[      ] lt_dlhandle is 0x558ef3dcf5f0
00000000000i[PLUGIN] loaded plugin libbx_pci.so
00000000000i[      ] lt_dlhandle is 0x558ef3dcf540
00000000000i[PLUGIN] loaded plugin libbx_pci2isa.so
00000000000i[      ] lt_dlhandle is 0x558ef3db6030
00000000000i[PLUGIN] loaded plugin libbx_usb_uhci.so
00000000000i[      ] lt_dlhandle is 0x558ef3ddafd0
00000000000i[PLUGIN] loaded plugin libbx_acpi.so
00000000000i[      ] lt_dlhandle is 0x558ef3ddb7b0
00000000000i[PLUGIN] loaded plugin libbx_hpet.so
00000000000i[      ] lt_dlhandle is 0x558ef3ddc620
00000000000i[PLUGIN] loaded plugin libbx_cmos.so
00000000000i[      ] lt_dlhandle is 0x558ef3ddce10
00000000000i[PLUGIN] loaded plugin libbx_dma.so
00000000000i[      ] lt_dlhandle is 0x558ef3ddd860
00000000000i[PLUGIN] loaded plugin libbx_pic.so
00000000000i[      ] lt_dlhandle is 0x558ef3dde0c0
00000000000i[PLUGIN] loaded plugin libbx_pit.so
00000000000i[      ] lt_dlhandle is 0x558ef3ddeac0
00000000000i[PLUGIN] loaded plugin libbx_vga.so
00000000000i[      ] lt_dlhandle is 0x558ef3ddf320
00000000000i[PLUGIN] loaded plugin libbx_floppy.so
00000000000i[      ] lt_dlhandle is 0x558ef3ddfed0
00000000000i[PLUGIN] loaded plugin libbx_ioapic.so
00000000000i[      ] lt_dlhandle is 0x558ef3de07f0
00000000000i[PLUGIN] loaded plugin libbx_keyboard.so
00000000000i[      ] lt_dlhandle is 0x558ef3de0fc0
00000000000i[PLUGIN] loaded plugin libbx_harddrv.so
00000000000i[      ] lt_dlhandle is 0x558ef3de3220
00000000000i[PLUGIN] loaded plugin libbx_pci_ide.so
00000000000i[PLUGIN] init_dev of 'pci' plugin device by virtual method
00000000000i[DEV   ] i440FX PMC present at device 0, function 0
00000000000i[PLUGIN] init_dev of 'pci2isa' plugin device by virtual method
00000000000i[DEV   ] PIIX3 PCI-to-ISA bridge present at device 1, function 0
00000000000i[PLUGIN] init_dev of 'cmos' plugin device by virtual method
00000000000i[CMOS  ] Using local time for initial clock
00000000000i[CMOS  ] Setting initial clock to: Thu Dec 31 13:26:09 2020 (time0=1609449969)
00000000000i[PLUGIN] init_dev of 'dma' plugin device by virtual method
00000000000i[DMA   ] channel 4 used by cascade
00000000000i[PLUGIN] init_dev of 'pic' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'pit' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'vga' plugin device by virtual method
00000000000i[MEM0  ] Register memory access handlers: 0x0000000a0000 - 0x0000000bffff
00000000000i[VGA   ] interval=200000, mode=realtime
00000000000i[VGA   ] VSYNC using standard mode
00000000000i[MEM0  ] Register memory access handlers: 0x0000e0000000 - 0x0000e0ffffff
00000000000i[BXVGA ] VBE Bochs Display Extension Enabled
00000000000i[XGUI  ] test_alloc_colors: 16 colors available out of 16 colors tried
00000000000i[XGUI  ] font 8 wide x 16 high, display depth = 24
00000000000p[MEM0  ] >>PANIC<< ROM: couldn't open ROM image file '/usr/share/bochs/VGABIOS-lgpl-latest'.
========================================================================
Bochs is exiting with the following message:
[MEM0  ] ROM: couldn't open ROM image file '/usr/share/bochs/VGABIOS-lgpl-latest'.
========================================================================
00000000000i[CPU0  ] CPU is in real mode (active)
00000000000i[CPU0  ] CS.mode = 16 bit
00000000000i[CPU0  ] SS.mode = 16 bit
00000000000i[CPU0  ] EFER   = 0x00000000
00000000000i[CPU0  ] | EAX=00000000  EBX=00000000  ECX=00000000  EDX=00000000
00000000000i[CPU0  ] | ESP=00000000  EBP=00000000  ESI=00000000  EDI=00000000
00000000000i[CPU0  ] | IOPL=0 id vip vif ac vm rf nt of df if tf sf ZF af PF cf
00000000000i[CPU0  ] | SEG sltr(index|ti|rpl)     base    limit G D
00000000000i[CPU0  ] |  CS:0000( 0000| 0|  0) 00000000 00000000 0 0
00000000000i[CPU0  ] |  DS:0000( 0000| 0|  0) 00000000 00000000 0 0
00000000000i[CPU0  ] |  SS:0000( 0000| 0|  0) 00000000 00000000 0 0
00000000000i[CPU0  ] |  ES:0000( 0000| 0|  0) 00000000 00000000 0 0
00000000000i[CPU0  ] |  FS:0000( 0000| 0|  0) 00000000 00000000 0 0
00000000000i[CPU0  ] |  GS:0000( 0000| 0|  0) 00000000 00000000 0 0
00000000000i[CPU0  ] | EIP=00000000 (00000000)
00000000000i[CPU0  ] | CR0=0x00000000 CR2=0x00000000
00000000000i[CPU0  ] | CR3=0x00000000 CR4=0x00000000
(0).[0] [0x000000000000] 0000:0000 (unk. ctxt): add byte ptr ds:[bx+si], al ; 0000
00000000000i[SIM   ] quit_sim called with exit code 1

This seems like a user-space configuration difference with the WSL2 image Canonical uses.

Also confirmed on Debian 11 (bullseye). Any workaround? wget from somewhere?

try
sudo apt-get install -y bochsbios
and
sudo apt-get install -y vgabios
might help


Custom order of models

Is there a way to change the order of the returned results ?
I would like to see Device, Prefix, VLAN, Aggregate, all others and even leave out some models

One way would be to make SEARCH_TYPES user-configurable.
It's not the most user-friendly, but the easiest to implement. Would that solve it for you?


Client Allocation Request for: xiaomdong

Client Allocation Questions
Core Information

Name: xiaomdong
Website / Social Media: https://www.zhihu.com/people/163361
Region: Greater China
DataCap Requested: 10TiB
Addresses to be Notarized: f1tvey4q3fpabfoq26bqmkw5dkux2jmlew4o4x5na
Notary Requested: Fenbushi-Filecoin

Please make sure to check out the guidelines and criteria to accept Datacap request for Fenbushi Capital
@xiaomdong Please subscribe to notifications for this Issue to be aware of updates. Notaries may request additional information on the Issue.

No people reply me

Sir:
I am a freelancer, You can call me xd, and you can find me in https://www.zhihu.com/people/163361.
I have known about Filecoin since last February and do some technical support work about Filecoin. I think the CC storage waste to much, Filecoin needs do some real data storage.
There is no legal risk.
Filecoin is suitable for cold storage. I want to make a related application, which is currently being conceived, so I need some datacap to test.
Amount of data: about 10T
Data sources: data stored by customers
Planning: 1 to 2 months for testing
Data format: Unstructured data
All data is publicly available.
Miner: no restrictions on storage areas and I hope to find more than three miners, require miners to ensure full data security.
I agree.

Sir:
I am a freelancer, You can call me xd, and you can find me in https://www.zhihu.com/people/163361.
I have known about Filecoin since last February and do some technical support work about Filecoin. I think the CC storage waste to much, Filecoin needs do some real data storage.
There is no legal risk.
Filecoin is suitable for cold storage. I want to make a related application, which is currently being conceived, so I need some datacap to test.
Amount of data: about 10T
Data sources: data stored by customers
Planning: 1 to 2 months for testing
Data format: Unstructured data
All data is publicly available.
Miner: no restrictions on storage areas and I hope to find more than three miners, require miners to ensure full data security.
I agree.


Feat/ape in

Resolves #341

done

refactor DepositShare to extract APR component
added a dropdown component following ubiquity theme with token icons in menu Items (not used yet)
added a TokenAmountInput component inspired by crv.to that takes in the token icon/ decimal/ balance

added a  DepositStables parent component to display the different TokenAmountInput needed to ape In 🐵 + Max button to ape like a chad

todo

plug ApeIn to trigger /packages/contracts/src/dollar/DirectGovernanceFarmer.sol deposit I guess

I guess the plan is to wait until we fix the UI #354 to verify that this PR works?

Instead of adding a WIP label @zgorizzo69 I suggest you leave this as a draft pull request until it is no longer a "work in progress"

I wish I could see this rendered in my browser and push a few small CSS fixes. Perhaps you have some advice on how to set it up on my local so I can contribute while we wait for the UI fix?

I wish I could see this rendered in my browser and push a few small CSS fixes.
Perhaps you have some advice on how to set it up on my local so I can contribute while we wait for #354 fix?
I just tried deploying locally and realize that we don't have clear instructions in the readme on how to set up Anvil, and how to deploy everything.
I will add that script as part of the issue https://github.com/ubiquity/ubiquity-dollar/issues/371 which I am currently working on
To test right now We have to run a dork with anvil and get some token with cast

@zgorizzo69 https://etherscan.io/tx/0x566884b38af8be1818497824a2dbb84a57bc0074dcf7a9069a242661387f32a8

@zgorizzo69 https://etherscan.io/tx/0x566884b38af8be1818497824a2dbb84a57bc0074dcf7a9069a242661387f32a8

Same as our other discussion. The linked PR is not merged so this bounty is not complete.

Hey I tried fixing the merge conflicts but I changed a couple things I want to make sure they are good by you:

I changed your require to imports which also means those functions must be async.
I changed the function names Deposit -> DepositSingle and DepositMulti -> DepositMultiple in packages/contracts/src/dollar/DirectGovernanceFarmer.sol to make the naming clearer.

looks like there is no test for depositMultiple?

Hey I tried fixing the merge conflicts but I changed a couple things I want to make sure they are good by you:
1. I changed your `require` to `imports` which also means those functions must be async.

fine by me !

2. I changed the function names `Deposit` -> `DepositSingle` and `DepositMulti` -> `DepositMultiple` in `packages/contracts/src/dollar/DirectGovernanceFarmer.sol` to make the naming clearer.

   * looks like there are no tests for depositMultiple?

check test named testDeposit_Multiple_Tokens***

Would you mind looking into this regex issue? https://github.com/ubiquity/ubiquity-dollar/pull/367/checks?check_run_id=10682296782

yep

check test named testDeposit_Multiple_Tokens***

I officially screwed up this PR then because I somehow deleted these. Should I just revert? Lol


'No data' shown when scrolling down a resource list in the 'Admin' view

Behaviour observed when scrolling down a resource list (e.g. the Default Query one shown by default when clicking on the 'Admin' view in a project): At first, loading of additional resources works fine but when scrolling too far, 'No data' will be shown. See attached gif:

Replace infinite scroll with pagination

solves https://github.com/BlueBrain/nexus/issues/802


Persistent event deprecation notice if the debug toolbar is enabled

https://github.com/mmikkel/CacheFlag-Craft3/blob/5d941c8289694bca0a31ab6d6f801f69272e2e37/src/services/CacheFlagService.php#L320-L327
Ran into a weird scenario:

We have the deprecator component throw exceptions in dev mode
I have the debug toolbar enabled in the control panel
Anytime I save/edit any element in the control panel, an exception is thrown and the save fails

I grep'd the entire vendor folder and found no event handlers for any of the deprecated CacheFlag events and was stumped for a while. After debugging a little further I realised that the yii2-debug toolbar registers a wildcard event handler '*' which leads to $this->hasEventHandlers(self::EVENT_BEFORE_DELETE_FLAGGED_CACHES) returning true, which leads to this deprecated event being triggered on save …
I have been able to get around this for now by disabling the debug toolbar in the control panel, but that does not seem ideal.

Thanks for reporting! This issue is resolved in Cache Flag 1.2.4.


Parallelize template searching

Proposal to parallelize search_and_wait template waiting using futures.

Given the fact that this is CPU bound workload do you have any metrics behind this change? My concern is that we'll have spikes in CPU consumption by botty while it's already mostly run in a constrained environment with many VMs fighting for resources. I may be wrong so some metrics would be nice

I don't have any concrete benchmarks on hand, but when I developed this I noticed that the initial A5_... searching took >1s for multiple searches (until found). With the current implementation in main, this also will run into scalability issues if you ever wanted to match against larger sets.
From my testing, those calls were reduced from >1s to ~0.2s (if memory serves).
The PR includes debug lines for printing the elapsed time for image grabbing as well as searching; I'd encourage pulling down the branch and messing around with the before vs after.

I completely understand that you'd decrease the search latency as you'll utilize more CPU cores. My concern is about how it would affect setups with VMs and whether you won't overcommit your CPU or create more issues in constrained environments. Ideally the amount of threads you create should be capped somehow based on the amount of cores. I'm not sure if ThreadPoolExecutor would do it natively, let me know if it does
Also I don't think Futures is the right abstraction for the problem and I'd rather go for a solution with "Parallel-For" semantics that gives an ability to limit concurrency and has a much cleaner syntax with exactly the same outcome. That would allow to limit your concurrency to 1 by a setting a parameter in config as well
But I'd ask @aeon0 to review this anyway as those are just my thoughts

That's fair. I don't use a VM for my setup so I'm unable to test the solution against it.
From the Python docs:
If max_workers is None or not given, it will default to the number of processors on the machine, multiplied by 5, assuming that [ThreadPoolExecutor](https://docs.python.org/dev/library/concurrent.futures.html#concurrent.futures.ThreadPoolExecutor) is often used to overlap I/O instead of CPU work and the number of workers should be higher than the number of workers for [ProcessPoolExecutor](https://docs.python.org/dev/library/concurrent.futures.html#concurrent.futures.ProcessPoolExecutor).
We could manually set the max_workers, but I'm not convinced that the default behavior would be detrimental to a VM.
re: Futures vs Parallel-For (multiprocessing?), I think this is more of a subjective thing; imo, futures should be the go-to for the majority of parallelized tasks since it has a simpler API and my understanding is that it was designed specifically as an easier-to-use replacement for existing concurrent libs (like multiprocessing).

It doesn't look bad based on the benchmark data. Thanks for getting this. Main folks who probably wouldn't like this are the ones running 3 VMs but if the bottleneck is GPU rather than CPU it can work out just fine.

@Ezro if you're still interested in this PR, see if you can rebase/merge given recent template_finder changes. Will review again at that point. Thanks!

Imagine what we could do with our mob detection if this thing here was working :)

Closing for now, can revisit in the future if need arises


KIC 2.0: status field parity with 1.x

Includes --publish-service

These are not the CRD status fields (which just exist in 1.x and aren't used AFAIK), but are handled as part of the general status update job in 1.x, which does add information to Ingresses (their address status):
https://github.com/Kong/kubernetes-ingress-controller/issues/1305
https://github.com/Kong/kubernetes-ingress-controller/issues/1304


Register button integrated in login overlay

Would be cool to have that too, since a login overlay without the possibility of registering kind off doesn't make sense.

LoginOverlay has a slot for custom content. So there you can place Captach, Register button or what ever -> https://hilla.dev/docs/react/components/login#custom-form-area

Alright can we have that in this example?

Maybe unrelated but can you help me with this:
I am using the default hilla example with auth. Modified it at some places to work with my own custom orm (see below).

How do you implement user registration in this case?
How do you register anonymous users automatically?

@Service
public class UserDetailsServiceImpl implements UserDetailsService {

    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
        List<User> users = User.whereEmail().is(username).get();
        if (users.isEmpty()) {
            throw new UsernameNotFoundException("No user present with username: " + username);
        } else {
            User user = users.get(0);
            System.out.println("loadUserByUsername: "+user.toPrintString());
            return new org.springframework.security.core.userdetails.User(user.email, user.hashedPassword,
                    getAuthorities(user));
        }
    }

    private static List<GrantedAuthority> getAuthorities(User user) {
        List<GrantedAuthority> list = new ArrayList<>();
        list.add(new SimpleGrantedAuthority("ROLE_" + user.role));
        return list;

    }

}

@Component
public class AuthenticatedUser {

    private final AuthenticationContext authenticationContext;

    public AuthenticatedUser(AuthenticationContext authenticationContext) {
        this.authenticationContext = authenticationContext;
    }

    public Optional<User> get() {
        return authenticationContext.getAuthenticatedUser(Jwt.class)
                .map(userDetails -> {
                    List<User> users = User.whereEmail().is(userDetails.getSubject()).get();
                    return users.isEmpty() ? null : users.get(0);
                });
    }

    public void logout() {
        authenticationContext.logout();
    }

}


Add a nice "Usage" response when starting cantara without arguments

To improve user experience cantara should print a nice help/usage section to the terminal.
instead of:
cantara Error: You must specify an action, e.g.: cantara e2e     at Object.<anonymous> (/usr/local/lib/node_modules/cantara/dist/cli/cli-tools/index.js:104:31)     at step (/usr/local/lib/node_modules/cantara/dist/cli/cli-tools/index.js:44:23)     at Object.next (/usr/local/lib/node_modules/cantara/dist/cli/cli-tools/index.js:25:53)
something like this:
Usage: node [options] [ -e script | script.js | - ] [arguments]        node inspect script.js [arguments]

Will be fixed with #5
When using something like CommanderJS this will work out of the box. Will close this issue in favor of that one


table name with underline

Your issue may already be reported! Please search on the issue track before creating one.
What version of Go are you using (go version)?
1.13.1
Which database and its version are you using?
postgres
I hava a struct like this
type AssetBrid struct {
ID               int    json:"id"
AssetID          int    json:"asset_id"
BridCode       string json:"brid_code"'
BridName       string json:"brid_name"
}
and I have a table  'asset_bird' in my database
I use find to query all the record from this table:
var brids []AssetBridge
err = db.Where(maps).Offset(pageNum).Limit(pageSize).Find(&brids).Error
I found that this stuct name(AssetBird) works fine. But I think the struct name should be Asset_Bird?
Then I changed the strcut name to Asset_Bird. I found it works too.
So I am confused. Can anyone tell me why?

Default naming strategy append _ before upper case character.
https://github.com/jinzhu/gorm/blob/79a77d771dee4e4b60e9c543e8663bbc80466670/naming.go#L71-L124

Default naming strategy append _ before upper case character.
https://github.com/jinzhu/gorm/blob/79a77d771dee4e4b60e9c543e8663bbc80466670/naming.go#L71-L124

thanks


[no-jira]: Updated schema.json

📲 What
A description of the change.
🤔 Why
Some background context on why the change is needed.
🛠 How
More in-depth discussion of the change or implementation.
👀 See
Trello, screenshots, external resources?

Before 🐛
After 🦋

📋 QA
Instructions for anyone to be able to QA this work.
Story 📖
[Name of Trello Story](Trello link)

Changes were forked to https://github.com/kickstarter/android-oss/pull/2035


it is better to judge block is nil before dispatch

New Pull Request Checklist

[x] I have read and understood the CONTRIBUTING guide

[x] I have read the Documentation

[x] I have searched for a similar pull request in the project and found none

[x] I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

[x] I have added the required tests to prove the fix/feature I am adding

[x] I have updated the documentation (if necesarry)

[ ] I have run the tests and they pass

[ ] I have run the lint and it passes (pod lib lint)

This merge request fixes / reffers to the following issues: ...
Pull Request Description
it is better to judge block is nil before dispatch
...

I agree with what you say (check if nil before dispatch), but those completion blocks will be altered in the 4.0.0 version i'm currently working on. Stay tuned

I've made some changes for version 4.0 regarding the completion blocks. I will leave them as they are for now and lets see how it goes.


Task 11 Doesn't Actually Require Macro Recursion

I'll be thinking about a different task 11 that forces using macro recursion (or making it clearer why it requires using braces... maybe adding in a "curry_log" function or something so people can see  the currying working.

Fixed by #39


Testing Interactivity on a Dev kit

We are trying to test interactivity on a xbox one dev kit but it looks like the interactivity is never enabled. We are calling MixerInteractive.GoInteractive() in code and on the browser we see a "Loading Interactive controls" thing popup when viewing the channel but the controls never load in completely. Is there some setup that is required before we can test on the dev kits ?

Have you checked out this page: https://github.com/mixer/interactive-unity-plugin/wiki/Troubleshooting-guide
Take a look at the section: Troubleshooting Xbox One
There are steps you want to take that are a bit different than testing interactive from either the editor or desktop. Does it work for you in the editor?

Hello,
Yes. Interactivity on the PC is fine its just the devkit that is giving us issues. Could be a bigger issue because when we are broadcasting from the devkit we cant view the stream in the browser. It always says the user is offline. We confirmed that the title id and server configuration are fine.

The most common issue is the Xbox test account on the Xbox doesn't have access to the interactive project. A share code is usually the solution in this case. You can get more info about how to do that here: https://github.com/mixer/interactive-unity-plugin/wiki/Using-Share-Codes
Let me know if that doesn't solve your broadcasting issue.
Note: We have also seen another issue where if you broadcast from the guide there is an error, that is different. If you are hitting that also let us know.

So our interactive app is already published and being used by the PC version so i am guessing we don't need shared codes.  We confirmed that mixer status in the code goes to InteractivityEnabled so i think everything is good on the game end but we still only see "Connecting to Interactive" when we are in the streamers channel.

I take it that since you've published, you have my email. Could you email me at my Microsoft email & we could coordinate me debugging it. I'll quite good at Xbox One debugging :)

We debugged. For others who run into this issue, you need to be logged into mixer.com with the same account as you as broadcasting with on your devkit. There's more info for how to do this here:
https://github.com/mixer/interactive-unity-plugin/wiki/Mixer-and-Xbox-Live


Managed client, retained message

Hello, I'm checking if the retained message system used by the managed client, can work in any situations. If the serialized file contains only few messages, it definitely works well. But it could happen that the serialized file grows indefinitely, till many Mbytes. In that case I noticed some problems, also due to the OS or write and read file speed.
I'm wondering if it could be better to create as many files as the messages are and not one file containing the whole messages. In the former case, we need to select the file (unique id, unique file name), to delete when it is sent. But now the retained message list does not expose any of.
What you think?
JJ

Hi,
the managed client is only a simple implementation for most cases. If there are special conditions I recommend creating a custom one which uses the regular client. I will also move this client to an extension lib like RPC in the near future.
But is is already possible to pass in a different storage implementation via the options. There you can decide how to store the messages. Per file or a single file etc. Probably some more methods in the interface for adding or removing a single file are a suitable way.
Best regards
Christian

I do not agree.  It should be maintained: standard client, following Mqtt rules, managed client as a full standard client with customizable options, very powerful and uncommon in the Mqtt clients world.
What I asked for, is the possibility to have a unique identifier in the MqttApplicationMessage class, if it is possible of course.

It'a good idea but MqttApplicationMessage  is sealed. This means that I cannot use neither the new MqttApplicationMessageBuilder.
Create a new MqttApplicationMessageWithId class and a new builder from zero, does not seem to be  a good idea. Suggestions?

With 2 very small changes this can be done very easy.

MqttApplicationMessage is no longer sealed.
The builder gets a constructor which accepts a pre build message. There you pass your MessageWithId and the builder will modify this instance. There is still an empty constructor which creates a new one.

I assume this should work.

Just published a very early, but working, solution to manage message with id serialized on disk.
Take a look.

Hi,
I released version 2.8.0-alpha5 which now contains the new type of message. Please let me know if this works for you. Please keep in mind that the managed client is also in a new nuget now. But beside of namespaces it should also work.

Version 2.8.1 works as expected.
Great work!

Hey @JTrotta. I'm wondering if you could share your implementation of IMqttClientStorage which uses the MessageWithId?
Thanks in advance!


[BUG] Dots in slugged index

Package version, Laravel version
Laravel 5.4
Package version 2.1.15 (bug since https://github.com/Maatwebsite/Laravel-Excel/commit/01a649bcc48d549a3ac0a0a2f86a53d33f548826 / 2.1.13)
Expected behaviour
The slugged index should not have dots in it
Actual behaviour
The slugged index does not filter out dots anymore
Screenshot of Excel file

Steps to reproduce the behaviour

Create excel file with dots in it's first row
Load the file with ->load(file) and get the rows with ->get().
dd the results. You should see the indexes containing dots.

01a649b reverted in 2.1.16


Feature Request: PatternFly

I realize Pode.Web is a new project just starting, so I thought I would mention PatternFly instead of/in addition to Bootstrap as a possible candidate to build the frontend. PatternFly is under the MIT license and could offer a more consistent way to build a frontend with Pode.Web. I know this may be a long shot, but I just thought I'd mentioned it if this is something that could be useful and may offer an easier and more stable upgrade path. I've started using it with Pode and have found it to be pretty nice.
"PatternFly is an open source design system created to enable consistency and usability across a wide range of applications and use cases. PatternFly provides clear standards, guidance, and tools that help designers and developers work together more efficiently and build better user experiences."
PatternFly is what www.cockpit-project.org and www.freeipa.org uses as well as many other open source projects and I think it would work here as well. Many of the components are already built for you and can be extended. For example, a login page with the design guidelines, charts, tables, etc. They have examples in both React and HTML/CSS.
More info can be found below or get started here.
Website: https://www.patternfly.org
GitHub: https://github.com/patternfly

I actually had a look at using PatternFly, and Metro as well. I was looking more closely at PatternFly as it is built on top of Bootstrap, the only thing that let in down a bit was that some of its components only worked with React - such as charts. (And to get this out of the way, I'm not a fan of React, or Angular 😂).
I've done quite a lot of web dev at work/personal, and I'm very familiar with using raw Bootstrap/jQuery - which is why I went for them in the end, for ease.
On charts, I was looking at using charts.js, so I could use that and PatternFly.
If there's a push from others for wanting to use PatternFly, or something else, over Bootstrap, I'll happily look at it more 😄

PatternFly my be interesting if/when they implement https://github.com/patternfly/patternfly-react/issues/4711 for better inputs that are consistent and not really on browser compatibility https://github.com/Badgerati/Pode.Web/issues/9
PS I'm new to JavaScript/Web front, started learning some React last month 😄

PatternFly my be interesting if/when they implement https://github.com/patternfly/patternfly-react/issues/4711 for better inputs that are consistent and not really on browser compatibility https://github.com/Badgerati/Pode.Web/issues/9
PS I'm new to JavaScript/Web front, started learning some React last month 😄

I only really mostly know HTML/CSS and JS, as well as a handful of libraries from when I've had to make some sites at work.
I need to spend some time learning React myself, which is why I'm thinking it might be best, for now, to stick to just HTML/CSS/JS, get a stable version running and released. Then, we can look at React/PatternFly-React.
PatternFly's HTML/CSS library though, we might be able to get away with. It's on top of Bootstrap and just CSS classes - so that could be possible! React is a whole other ball game 😂

I only really mostly know HTML/CSS and JS, as well as a handful of libraries from when I've had to make some sites at work.
I need to spend some time learning React myself, which is why I'm thinking it might be best, for now, to stick to just HTML/CSS/JS, get a stable version running and released. Then, we can look at React/PatternFly-React.
PatternFly's HTML/CSS library though, we might be able to get away with. It's on top of Bootstrap and just CSS classes - so that could be possible! React is a whole other ball game 😂


support reserved cpus

What type of PR is this?
enhancements
What this PR does / why we need it:
Fixes # 680
Which issue(s) this PR fixes:

Fixes # 680
Special notes for your reviewer:

@xieydd @Garrybest PTAL.

Good job👍.
/lgtm


Using '%%' in redis password will convert into per mille '‰' Unicode …

What does this PR do?
In case the Redis configuration contains a password with double consecutive percentage signs "%%", it will be transformed into the Unicode character "‰" which represents per mille.
Motivation
It can be challenging to change the Redis password in production, particularly in a company where the DevOps team has many other high-priority tasks to attend to, rather than fixing the Redis monitoring system 😸
https://github.com/DataDog/integrations-core/issues/13938
Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached
[ ] If the PR doesn't need to be tested during QA, please add a qa/skip-qa label.

Hello @afshin-deriv sorry for the long wait. I was initially investigating this issue and it turned out to be not completely isolated to the redis check. I wanted to address this issue at the upstream source rather then a check specific approach. I don't have any news on this at the moment, but we're currently still looking into it.

@afshin-deriv Hello again! I discussed this internally with my team and we decided that it would be best to have this addressed upstream by the team that owns the code that does the conversion of %% to ‰. As such we've created a card in their backlog. Can I kindly ask that you create a support ticket in regards to this issue so that we can better triage and keep track of this internally? Thanks in advance!

The root cause of the issue described here should be addressed by DataDog/datadog-agent#18036.


1.5.2?

Can we cut a new release of this? I'd like to see tui-calendar use a version of this library that includes the fix in #27, and that hasn't yet made it to a released version.

Sorry for the late update. We released v1.5.2 just now!
https://github.com/nhn/tui.code-snippet/releases/tag/v1.5.2