Cannot migrate after creating migration schema

edgedb error: InternalServerError: functions in index predicate must be marked IMMUTABLE
  Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md
  Server traceback:
      edb.errors.InternalServerError: functions in index predicate must be marked IMMUTABLE

EdgeDB Version: 2.7+5b16920
EdgeDB CLI Version: 2.2.1+36acd58
OS Version: official edgedb docker image

Steps to Reproduce:

run edgedb migration create
run edgedb migrate

Schema:
# using future nonrecursive_access_policies;

module default {
  global current_user_id -> uuid;
  global current_user := (
    select User filter .id = global current_user_id
  );

  abstract type Auditable {
    required property created_at -> datetime {
      readonly := true;
      default := datetime_current();
    };
    required property modified_at -> datetime {
      default := datetime_current();
    };
    link last_modified_by -> User;
  }

  abstract type Stateful {
    required property is_active -> bool {
      default := true;
    };
    required property is_deleted -> bool {
      default := false;
    };
    property deleted_at -> datetime;
    link deleted_by -> User;

    constraint expression on (
      not exists .deleted_at if .is_deleted else true
    ) {
      errmessage := 'deleted_at must be set if is_deleted is true';
    };
  }

  type User extending Auditable, Stateful, subscription::SubscriptionTarget {
    required property username -> str {
      # constraint exclusive {
      #   errmessage := 'User with this username already exists';
      # };
      constraint max_len_value(255) {
        errmessage := 'Username must be less than 255 characters';
      };
    };
    required property password_hash -> str;
    required property email -> str {
      constraint max_len_value(255) {
        errmessage := 'Email must be less than 255 characters';
      };
    };
    required property is_verified -> bool {
      default := false;
    };
    required property is_superuser -> bool {
      default := false;
    };
    link profile := .<user[is Profile];
    link dndy_account := .<user[is account::DndyAccount];
    multi link oauth_accounts := .<user[is account::OAuthAccount];
    multi link calendar_events := .<user[is event::CalendarEvent];
    multi link subscriptions := .<subscriber[is subscription::Subscription];
    multi link subscriptions_of := .<target[is subscription::Subscription];

    constraint exclusive on (.email) except (.is_deleted) {
      errmessage := 'User with this email already exists';
    };

    access policy other_users_cannot_change
      deny update, delete
      using ((global current_user_id ?!= .id) or (global current_user.is_superuser ?!= true));
  }

  type Profile extending Auditable, Stateful {
    required property first_name -> str {
      constraint max_len_value(255) {
        errmessage := 'First name must be less than 255 characters';
      };
    };
    required property last_name -> str {
      constraint max_len_value(255) {
        errmessage := 'Last name must be less than 255 characters';
      };
    };
    property full_name := .first_name ++ ' ' ++ .last_name;
    property phone_number -> str {
      constraint max_len_value(20) {
        errmessage := 'Phone number must be less than 20 characters';
      };
    };
    link image -> Image;
    required link user -> User {
        constraint exclusive {
            errmessage := 'User can only have one profile';
        };
    };

    access policy other_users_cannot_change
      deny update, delete
      using ((global current_user_id ?!= .user.id) or (global current_user.is_superuser ?!= true));
  }

  type Image {
    required property url -> str {
      constraint regexp(r'%^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\x{00a1}-\x{ffff}][a-z0-9\x{00a1}-\x{ffff}_-]{0,62})?[a-z0-9\x{00a1}-\x{ffff}]\.)+(?:[a-z\x{00a1}-\x{ffff}]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$%iuS');
    }
  }
}

module account {
  scalar type AccountType extending enum<Dndy, OAuth>;

  abstract type Account extending default::Auditable, default::Stateful {
    required link user -> default::User;
    required property type -> AccountType;
  }

  scalar type DndyStatus extending enum<`On`, Off>;

  type DndyAccount extending Account {
    annotation title := 'Dndy Account';
    required property status -> DndyStatus {
      default := DndyStatus.Off;
    };

    constraint expression on (
      .type = AccountType.Dndy
    ) {
      errmessage := 'Account type must be Dndy';
    };
    constraint exclusive on ((.user, .type)) except (.is_deleted) {
      errmessage := 'User can only have one Dndy account';
    };
  }

  type OAuthAccount extending Account {
    annotation title := 'OAuth Account';
    required property provider -> str {
      constraint max_len_value(255) {
        errmessage := 'Provider must be less than 255 characters';
      };
    };
    required property external_id -> str {
      constraint max_len_value(255) {
        errmessage := 'Provider ID must be less than 255 characters';
      };
    };
    required property access_token -> str;
    required property refresh_token -> str;
    property id_token -> str;
    property expires_at -> datetime;
    property cache -> str;
    property scopes -> array<str>;

    constraint expression on (
      .type = AccountType.OAuth
    ) {
      errmessage := 'Account type must be OAuth';
    };
    constraint exclusive on ((.user, .type, .provider, .external_id)) except (.is_deleted) {
      errmessage := 'User can only have one OAuth account per provider';
    };
  }

}

module event {
  type Event extending default::Auditable, default::Stateful, subscription::SubscriptionTarget {
    required link user -> default::User;
    required property source -> str {
      default := 'internal';
    };
    required property title -> str {
      constraint max_len_value(255) {
        errmessage := 'Event title must be less than 255 characters';
      };
    };
    property description -> str;
    property start_date -> cal::local_date;
    property start_datetime -> cal::local_datetime;
    property start_timezone -> str;
    property end_date -> cal::local_date;
    property end_datetime -> cal::local_datetime;
    property end_timezone -> str;
    property location -> str;

    multi link subscriptions_of := .<target[is subscription::Subscription];

    constraint expression on (
      (exists .start_date or exists .start_datetime)
      and not (exists .start_date and exists .start_datetime)
    ) {
      errmessage := 'Either start_date or start_datetime must be set';
    };

    constraint expression on (
      (exists .end_date or exists .end_datetime)
      and not (exists .end_date and exists .end_datetime)
    ) {
      errmessage := 'Either end_date or end_datetime must be set';
    };
  }

  scalar type CalendarEventType extending enum<`Single`, Recurring, RecurringInstance>;

  type CalendarEvent extending Event {
    required property type -> CalendarEventType {
      default := CalendarEventType.`Single`;
    };
    property show_as -> str;
    property external_id -> str;
    required property is_cancelled -> bool {
      default := false;
    };
    required property is_public -> bool {
      default := false;
    };
    required property is_all_day -> bool {
      default := false;
    };
    property is_recurring := .type = CalendarEventType.Recurring;
    property rrule -> str;

    constraint expression on (
      not exists .rrule if .type = CalendarEventType.Recurring else true
    ) {
      errmessage := 'rrule must be set if is_recurring is true';
    };

    # only apply the constraint if the event is recurring instance
    constraint exclusive on (
      (.user, .source, .external_id)
    ) except (
      .is_deleted or .type != CalendarEventType.RecurringInstance or .type != CalendarEventType.Recurring
    ) {
      errmessage := 'User already has an event with this external_id';
    };
  }
}

module notification {
  scalar type NotificationLevel extending enum<Low, Medium, High>;
  scalar type NotificationType extending enum<App, Push, Email, SMS>;

  type Notification extending default::Auditable, default::Stateful {
    required link user -> default::User;
    required property type -> NotificationType {
      default := NotificationType.App;
    };
    required property is_seen -> bool {
      default := false;
    };
    required property initiator -> str {
      default := 'internal';
      constraint max_len_value(255) {
        errmessage := 'Initiator must be less than 255 characters';
      };
    };
    required property title -> str {
      constraint max_len_value(255) {
        errmessage := 'Notification title must be less than 255 characters';
      };
    };
    required property body -> str;
    required property level -> NotificationLevel {
      default := NotificationLevel.Medium;
    };
  }
}

module subscription {
  abstract type SubscriptionTarget {
  }

  scalar type SubscriptionType extending enum<OneTime, Recurring>;

  type Subscription extending default::Auditable, default::Stateful {
    required link subscriber -> default::User;
    link target -> SubscriptionTarget;
    required property type -> SubscriptionType;
    required property is_expired -> bool {
      default := false;
    };
    multi link notifications -> notification::Notification;

    constraint exclusive on ((.subscriber, .target, .type)) except (.is_deleted) {
      errmessage := 'User already has a subscription to this target';
    };
  }
}

Thanks for the bug report. The issue is in referencing enum literals from indexes/constraints.
You should be able to work around this issue by instead casting the enum value to a string and comparing that.
I'm not sure if we'll fix this properly in 2.x, though we should make it produce an error message that explains where the problem is. I think fixing it requires introducing a new function in the database for each enum, and we don't have the mechanisms to modify the representation of the user's schema as part of minor version upgrades. We could probably detect whether the user has an out-of-date enum that needs to be fixed and give remediation instructions, but I'm not sure if that is worth it.
Closing because this is a duplicate of  #4592.

can you show me where to cast?

Thanks for the bug report. The issue is in referencing enum literals from indexes/constraints. You should be able to work around this issue by instead casting the enum value to a string and comparing that.
I'm not sure if we'll fix this properly in 2.x, though we should make it produce an error message that explains where the problem is. I think fixing it requires introducing a new function in the database for each enum, and we don't have the mechanisms to modify the representation of the user's schema as part of minor version upgrades. We could probably detect whether the user has an out-of-date enum that needs to be fixed and give remediation instructions, but I'm not sure if that is worth it.
Closing because this is a duplicate of #4592.

Can you show me how can I do that? I tried casting the field and the Enum literal but didn't work.


Determine if gist:numericValue with owl:someValuesFrom of xsd:double on the gist:Magnitude is Expected

I may not have a solid understanding of owl:someValuesFrom, so I may not be interpreting what I see in gist correctly.
I know the definition of gist:numericValue has an rdfs:range which is an owl:unionOf of several (all?) standard number datatypes.
So, is it correct/expected that owl:someValuesFrom is set to xsd:double for gist:numericValue on a gist:Magnitude?

That restriction on gist:Magnitude means that there is at least one numericValue for Magnitude that is an xsd:double.  As stated, it allows for numericValues on the same Magnitude that are in the range of numericValue that are not xsd:double.
It also says nothing about what must be true for numericValues on instances of other classes besides gist:Magnitude.
There are two questions here:

should there be an exactly 1 restriction so that there can only be one numericValue triple for the same Magnitude.
should there be an additional allValuesFrom restriction on Magnitude saying that the type for  the numericValue can ONLY be of xsd:double.

The xsd:double restriction has been there for a long time, I don't know that it really matters much. If a client wanted to use say xsd:float, is that ok?
Here is what I think makes the most sense.

have an exactly 1 restriction
do not say anything about the datatype, let the user decide and put it in SHACL if they wish.

For a gist:Magnitude, I think restricting to only one gist:numericValue makes sense. It is my understanding that the numeric value is supposed correspond one-to-one with the unit of measure. What would it mean having another gist:numericValue on the same gist:Magnitude instance? So, I'm in favor of adding an "exactly 1" restriction.
I'm not a fan of xsd:double, especially for magnitudes representing currency values. I guess you'd use gist:Monetary or some other gist:Magnitude subclass which is restricted to some gist:CurrencyUnit.
After looking at the class hierarchy under gist:Magnitude, seems in most cases you wouldn't use gist:Magnitude directly but one of its subclasses. Many (maybe most) don't override the restriction on gist:numericValue but inherit it from gist:Magnitude. (Note: I am only assuming that a subclass with a restriction on some property overrides the restriction on the same property in one of its ancestors. Is that assumption correct?)
So the xsd:double restriction on gist:numericValue from gist:Magnitude appears to act as a default datatype for its subclasses. Would you agree?

Many (maybe most) don't override the restriction on gist:numericValue but inherit it from gist:Magnitude. (Note: I am only assuming that a subclass with a restriction on some property overrides the restriction on the same property in one of its ancestors. Is that assumption correct?)

It is not correct. Every instance of a subclass of Magnitude is also a Magnitude, so everything that is true about Magnitude is also true of those instances. You can further narrow the value type, but you cannot override it.

So the xsd:double restriction on gist:numericValue from gist:Magnitude appears to act as a default datatype for its subclasses. Would you agree?

OWL and all standard logics to not have any way to express overridable defaults. Things stated are universally true.

SUMMARY of issues raised, questions to be resolved

Do we set the cardinality of numericValue on a Magnitude to be exactly 1?

It's hard to imagine a use for two values, one a float and the other a double, but we may not want to constrain that in the ontology. People think up novel things all the time. It can be a SHACL check.

What is the local range on the numericValue restriction on Magnitude

it could be rdfs:Literal using a someValuesFrom restriction. This is under-constrained in the restriction, but that's ok because the value is constrained by the range of numericValue
It could be the union of numeric datatypes that repeats the range of numericValue (a union of a bunch of datatypes)
It could be the union of a limited number of numeric datatypes that make sense for magnitudes, e.g. float, decimal and double, but not byte or negativeInteger

PROPOSAL:
Principles:

don't over constrain
let users decide what they want to do adding SHACL checks as they see fit
keep it simple

Solution:

do not limit the cardinality
use rdfs:Literal as local range in a someValuesFrom restriction

Replace:
			[
				a owl:Restriction ;
				owl:onProperty gist:numericValue ;
				owl:someValuesFrom xsd:double ;
			]

with
			[
				a owl:Restriction ;
				owl:onProperty gist:numericValue ;
				owl:someValuesFrom rdfs:Literal ;
			]

Add a scope note that suggests using xsd:double or xsd:decimal and to be consistent.


Implements unimplemented warnings for vars

Closes #368
Trying to access or override a var flagged as unimplemented will throw a compiler warning.
Ex: var/test as opendream_unimplemented

Done


Wrong formatting when generating Markdown

VS Code Version:
1.86.0
05047486b6df5eb8d44b2ecd70ea3bdf775fd937
x64

OS Version: Ubuntu 20.04

Logs:

Steps to Reproduce:
When generating markdown code that contains  snippets of code  around three inverted commas "```"  the box of code of the chat breaks and treats the generated  markdown as part of the chat, not as source code

Duplicate of #760


Updated README

What

Updated README

Why

Added sectiom Help

This should looks like:
| `security_group_ids` | List of IDs of AWS Security Groups associated with creating instance |

Build fails because of fmt issues in external modules


Symlink support

Just noticed while I wanted to symlink a logfile into droppy, that these are apparently not detected as files at all, being invisible to the frontend.

Turns out it was just a permission problem and the stat() call failed. This pointed out another uncaught exception, which I'll fix.

What kind of permission problem was this, please? I'm getting also a stat error with symlink files but I haven't figured a way around it. And this issue, although almost 2 years old, is the only one that sounds like it might be the same problem, which would suggest it's me doing something wrong.
Steps to reproduce:
(Note: the following is executed as a user with UID/GID 1000/1000)
mkdir ~/droppytest &&
echo "hello" > ~/hello.txt &&
cd ~/droppytest &&
ln -s ~/hello.txt ~/droppytest/hello.txt
docker run --name droppy -p 8080:8989 --env UID=1000 --env GID=1000 -v ~/droppytest:/files  silverwind/droppy
`
.:.
:::  .:::::.   droppy 6.8.11 running on node 9.1.0
..:::..  :::     config at /config
':::'   :::     files at /files
'
2017-11-22 09:43:35 [INFO] Loading resources ...
2017-11-22 09:43:35 [INFO] Loading resources done
2017-11-22 09:43:35 [INFO] Listening on http://<IP_ADDRESS>:8989
2017-11-22 09:43:35 [INFO] Listening on http://<IP_ADDRESS>:8989
2017-11-22 09:43:35 [INFO] Listening on http://[::1]:8989
2017-11-22 09:43:35 [INFO] Listening on http://[fe80::42:acff:fe11:1]:8989
2017-11-22 09:43:35 [INFO] Caching files ...
2017-11-22 09:43:35 [ERROR] ENOENT: no such file or directory, stat '/files/hello.txt'
at Object.fs.statSync (fs.js:968:11)
at Object.walker.walkSync (/droppy/server/walker.js:63:27)
at /droppy/server/filetree.js:100:24
at /droppy/node_modules/graceful-fs/polyfills.js:287:18
at FSReqWrap.oncomplete (fs.js:167:5)
2017-11-22 09:43:35 [INFO] Caching files done
2017-11-22 09:43:35 [INFO] Ready for requests!
`

This is more or less a limitation of Docker. Check out the symlink inside the container:
$ docker exec -it droppy sh
/ # ls /files/ -la
total 4
drwxr-xr-x    3 droppy   droppy          96 Nov 22 17:33 .
drwxr-xr-x    1 root     root          4096 Nov 22 17:35 ..
lrwxr-xr-x    1 root     root            27 Nov 22 17:33 hello.txt -> /Users/silverwind/hello.txt

As a symlink is basically just a text file containing a path, it is pointing to the path on the host machine which isn't valid inside the container. You could attempt to workaround by re-creating the host machine's paths inside the container, also see https://stackoverflow.com/questions/38485607/mount-host-directory-with-a-symbolic-link-inside-in-docker-container.

I see, of course. Thank you!


List index out of range: version 84

I get the following error when trying to disassemble an android bundle using hermes bytecode version 84:
[*] Disassemble 'index.android.bundle' to 'out' path
[*] Hermes Bytecode [ Source Hash: d47dd92ea0ad2ab0ad46438a7f6f4a2ee383dbf5, HBC Version: 84 ]
Traceback (most recent call last):
  File "hbctool\.venv\Scripts\\hbctool", line 6, in <module>
    sys.exit(main())
             ^^^^^^
  File "hbctool\hbctool\__init__.py", line 61, in main
    disasm(args['<HBC_FILE>'], args['<HASM_PATH>'])
  File "hbctool\hbctool\__init__.py", line 41, in disasm
    hasm.dump(hbco, hasmpath)
  File "hbctool\hbctool\hasm.py", line 67, in dump
    write_func(f, hbc.getFunction(i), i, hbc)
                  ^^^^^^^^^^^^^^^^^^
  File "hbctool\hbctool\hbc\hbc84\__init__.py", line 59, in getFunction
    insts = disassemble(bc)
            ^^^^^^^^^^^^^^^
  File "hbctool\hbctool\hbc\hbc84\translator.py", line 33, in disassemble
    opcode = opcode_mapper[bc[i]]
             ~~~~~~~~~~~~~^^^^^^^
IndexError: list index out of range

Same problem here - To add a bit of debugging info:
IndexError: list index out of range form line 33 in hbc/hbc84/translator.py.
with:
bc[i]  -> 271  and len(opcode_mapper) -> 201
I'm not sure if the opcode integer is parsed wrong when being read from the binary, or if the 84'er version has many more opcodes, that als are missing.

related to #31, thank to @hexpwn. this issue have closed.


Compress the index for persistence

Add feature to compress the index to reduce storage space (e.g. localStorage)

Before:
{
  "national": {
    "1": {
      "frequency": 7,
      "postings": [9,32,1039,1078,1189,1276,1310]
    },
    "2": {
      "frequency": 7,
      "postings": [9,23,530,574,611,761,830]
    },
    "3": {
      "frequency": 9,
      "postings": [15,42,426,492,659,717,813,855,1008]
    }
  },

  "other": {}
}

After:
{
  "national": {
    "1": "7/9,32,1039,1078,1189,1276,1310",
    "2": "7/9,23,530,574,611,761,830",
    "3": "9/15,42,426,492,659,717,813,855,1008",
  },

  "other": {}
}

Decreased the index size and memory allocation by about 50%. See scripts/check-index.js
Additional compression can be left to users.

Before: { size: '117 kB', memory: '162 kB' }
After: { size: '54 kB', memory: '63.8 kB' }

Perform difference encoding.

Added delta encoding

Added base36 encoding on top of delta encoding, which further reduces byte and memory size.

Original: '19,42,157,472,685,709,1025,1051,1477,1571,1670,1837,1922,2038,2063,2084,2168' –> 76 bytes
Delta encoded: '19,23,115,315,213,24,316,26,426,94,99,167,85,116,25,21,84' –> 57 bytes
Base36 encoded: 'j,n,37,8r,5x,o,8s,q,bu,2m,2r,4n,2d,38,p,l,2c' –> 44 bytes


Move symbolic font glyphs to private use area if they don't have unicode mappings (issue 2594)

This is a tentative patch, which builds upon PR #7482 (that commit is included here with the correct author), that attempts to address issue #2594.
According to https://github.com/mozilla/pdf.js/issues/2594#issuecomment-247970930 and https://github.com/mozilla/pdf.js/issues/2594#issuecomment-253557318 it seems like this kind of simple hack might actually work, and I'm opening the PR to be able to run tests on (especially) the Linux bot.

/botio test

/botio-linux preview

/botio test

I checked most of the test failures (not all of them), but those looked like improvements to me. It has been reported that this patch fixes the original issue.
/cc @yurydelendik or @brendandahl for review

It looks like we're moving a lot of glyphs to the private use area, even ones that probably shouldn't be.
Some random pdf's I looked at:
issue5501.pdf
before patch
fonts.js:920 originalCharCode=65 (A)
fonts.js:931 unicode=         65 (A)
fonts.js:920 originalCharCode=69 (E)
fonts.js:931 unicode=         69 (E)

after patch
fonts.js:920 originalCharCode=65 (A)
fonts.js:932 unicode=         65 (A)
fonts.js:958 remapping to=    57380 ()
fonts.js:920 originalCharCode=69 (E)
fonts.js:932 unicode=         69 (E)
fonts.js:958 remapping to=    57381 ()

artofwar.pdf
originalCharCode=65 (A)
fonts.js:933 unicode=         65 (A)
fonts.js:921 originalCharCode=66 (B)
fonts.js:933 unicode=         66 (B)

after
originalCharCode=65 (A)
fonts.js:933 unicode=         65 (A)
fonts.js:959 remapping to=    57359 ()
fonts.js:921 originalCharCode=66 (B)
fonts.js:933 unicode=         66 (B)
fonts.js:959 remapping to=    57360 ()

Also, see my comment in https://github.com/mozilla/pdf.js/issues/2594#issuecomment-254289210

/botio test

/botio test

/botio test

my 2¢: we don't have complete charCode->glyphNames mapping (based on encoding and differences). I'm thinking we shall address this first and after that adjustMapping will use glyphNames/unicode to determine if char code is at right location and will build FreeType2 autofit-friendly toFontChar?

/botio test

The last version of this PR is in all likelihood my last attempt at fixing #2594, since it's an issue that I'm personally not affected by.
Now, besides the original patch by @brendandahl which already fixes the majority of the problem, I'm also amending src/core/glyphlist.js with the (common) names used in AMSmath Type1 (La)TeX fonts.
This is based on lists of TeX glyph names, and reasonable Unicode values, that I found while searching the web. Hopefully this should be enough to avoid mapping these math symbols to regular characters, thus preventing FreeType from using the wrong glyphs when computing hint values, and should also improve text-selection at the same time.
If this is a reasonable approach, we probably need a couple of Linux users (currently affected by the issue) to test this to ensure that it's in fact a sufficient solution.

r+ pending confirmation of fix

The fix has been confirmed, so I'll take care of landing this.

/botio-linux preview

/botio test

/botio makeref

Thank you for the patch!


build: merge dev to stage

:tada: This PR is included in version 0.22.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


from data_load.data_loader import Dataset_Custom ModuleNotFoundError: No module named 'data_load'

Hi Thanks for developing this masterpiece.
When im executing the code, getting an error  from data_load.data_loader import Dataset_Custom
ModuleNotFoundError: No module named 'data_load'
Can you help me with this error please?

Hi Oublal,
One more issue i'm facing an issue in the code while importing functions "from model.model import diffusion_generate, denoise_net, pred_net" model.py doesnot have diffusion_generate and denoise_net function.
Could you please upload complete working code if it is not confidential?
Thankyou


Add an information button to the Settings>Analytics field

E.g.:
"Use the Analytics field to measure the number of users of your Mapcontrib instance, using a JavaScript snippet or an image code."

There is already an information icon next to the field. Your issue is about changing the text in it?

I must have missed that (or it's new?).
Sorry!

I must have missed that (or it's new?).

No it's not ^^


Update copy-environment.md

Added a "Next Steps" note for flows.

Taking to live via working branch.


Change background color of application page

Hello. Thanks for the amazing work.
Is there any way to change the background of the application page, but not the RM screen in the page? Just the part outside of it.
I mostly use a black board instead of a white board, but the huge white borders in the application page hurt my eyes and look somewhat strange when presenting. I tried some CSS style modifications, but I am only able to change the color of the whole window (including the RM mirror).
Example of how it looks now:

Oh, I managed to solve it. If anyone wants to modify it just use a userstyle (like stylus) to modify the "RM_IP_ADDRESS:2021" style and then paste the following:
#container {
    background-color: #2e3440 !important;
    /* This will change the color of the container outside the canvas, so, of the application page */
}

#canvas {
    background-color: #FFFFFF !important;
    /* This will keep the Background color of the Remarkable mirror canvas white */
}


implement assist invert_if

fix issue 2219 invert if condition
I put the assist cursor range to if of the if expression, because both condition and body will be replaced. Is there any way to replace them without cover the cursor position?
@matklad

LGTM!
bors r+


GPG failure

I recently noticed a few of our builds failing with the following GPG error:
[error] java.lang.RuntimeException: Failure running 'gpg --batch --pinentry-mode loopback --passphrase *** --detach-sign --armor --use-agent --output /home/runner/work/zio/zio/concurrent/native/target/scala-2.11/zio-concurrent_native0.4_2.11-2.0.0-RC2.pom.asc /home/runner/work/zio/zio/concurrent/native/target/scala-2.11/zio-concurrent_native0.4_2.11-2.0.0-RC2.pom'.  Exit code: 2
[error] 	at scala.sys.package$.error(package.scala:30)
[error] 	at com.jsuereth.sbtpgp.CommandLineGpgSigner.sign(PgpSigner.scala:74)
[error] 	at com.jsuereth.sbtpgp.PgpSettings$.$anonfun$signingSettings$2(PgpSettings.scala:151)
[error] 	at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:293)
[error] 	at scala.collection.immutable.Map$Map4.foreach(Map.scala:493)
[error] 	at scala.collection.TraversableLike.flatMap(TraversableLike.scala:293)
[error] 	at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:290)
[error] 	at scala.collection.AbstractTraversable.flatMap(Traversable.scala:108)
[error] 	at com.jsuereth.sbtpgp.PgpSettings$.$anonfun$signingSettings$1(PgpSettings.scala:146)
[error] 	at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] 	at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error] 	at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error] 	at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error] 	at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error] 	at sbt.Execute.work(Execute.scala:291)
[error] 	at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error] 	at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error] 	at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] 	at java.lang.Thread.run(Thread.java:748)

You can find the complete failure log in the following builds:

https://github.com/zio/zio/runs/4945462531?check_suite_focus=true
https://github.com/zio/interop-twitter/runs/4969202691?check_suite_focus=true

We're running the sbt-ci-release 1.5.10 and GPG 2.2.19. I can confirm that we didn't change the keys since our last successful build and that they're still valid.
While trying to mitigate the issue, I found this article by @eed3si9n  and tried the approach with a helper script, but later on, I realized it's already a part of the plugin and doesn't fix the problem.
I'd appreciate it if you could give me some advice on how to solve the problem :pray: .

**Update: ** I suspected that the expired key was causing this issue, so I created a new one and replaced the environment variables accordingly. Unfortunately, the problem is still present.

Getting the same error

Not sure what the root cause is but the key observation is that the log says:
[info] gpg: no default secret key: No secret key
[info] gpg: signing failed: No secret key

Also is the key registered to https://keyserver.ubuntu.com/?

Also is the key registered to https://keyserver.ubuntu.com/?

That's the odd part, both old key, and the one I replaced it with are registered.

I just published sbt-pgp 2.2.0-M2 using sbt-ci-release 1.5.10 as a test - https://github.com/sbt/sbt-pgp/runs/4993903219
There was a hick-up of sbt-sonatype not picking up the staging repo status after it was released, but the GPG signing part worked fine for me:
[info] 	published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2.jar
[info] 	published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2-javadoc.jar
[info] 	published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2.jar.asc
[info] 	published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2-javadoc.jar.asc
[info] 	published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2.pom.asc
[info] 	published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2-sources.jar
[info] 	published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2-sources.jar.asc
[info] 	published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2.pom

afaict the same version of gpg:
Running ci-release.
  branch=refs/tags/v2.2.0-M2
gpg (GnuPG) 2.2.19

After your message, I decided to restart the process using the second key, and it turns out I made a mistake when setting the PGP_SECRET value. Once I fixed that, we got a successful build!
Thank you very much for checking out, and sorry for the disturbance!


Correct check for undefined variable

The code was comparing the result of typeof with a variable named undefined.
As typeof returns a string it should compare to 'undefined'

This change is

Thanks !


Consolidate the 2 frontends (Mac and Windows)

This PR is a bit big but this is mainly because it unifies things slowly, until at the end it deletes the Windows-specific frontend completely as the Mac frontend now works for both platforms.
This PR guarantees that both Windows and Mac versions support the same command-line arguments and roughly the same features -- previously the Windows frontend was beginning to diverge from the Mac one.
Most platform specific behaviour is triggered by command-line arguments e.g. on Windows we will request the use of Hyper-V sockets, while on Mac we will request the use of Unix domain sockets.
Note that com.docker.slirp frontend now does a little bit of branching depending on whether Sys.os_type = "Win32" for things like receiving privileged sockets on the Mac. Perhaps this could be moved into a command-line argument too?

Thanks very much for doing the unification work on this; it's much nicer not to have so much almost-duplicated code.  I stuck a few comments inline but generally I'm very happy to see this PR. :)


adding sercomm fg1000b-11

Hi, first of all thank you for your contribution, I warn you right away that this PR might be a bit long, as we are trying to standardise the webpage a bit.
First question: we wanted to know if the images are yours, from the link you sent it seems so, but we need confirmation if someone makes a complaint.
Second question, we are making a new contribution code that requires censorship of any qr code, production code, barcode. also censorship cannot be done with blurring.
Third question, you can try to fix the page according to this template (https://raw.githubusercontent.com/hack-gpon/hack-gpon.github.io/refactor-ont/_ont/ont-template.md) in particular put also the CPU and CPU clock fields by taking them from the chipset, then as soon as you can format the table, which is ugly like this.
Fourth question: can we translate the French text (inside the pic) into English?

Thanks for your message and taking time to review this first submission. I
was unsure what level of scrutiny this group wanted. I’m Withdraw this pull
request and integrates you comment. Enjoy your day
Le mar. 11 avr. 2023 à 10:12, Simone @.***> a écrit :

Hi, first of all thank you for your contribution, I warn you right away
that this PR might be a bit long, as we are trying to standardise the
webpage a bit.
First question: we wanted to know if the images are yours, from the link
you sent it seems so, but we need confirmation if someone makes a complaint.
Second question, we are making a new contribution code that requires
censorship of any qr code, production code, barcode. also censorship cannot
be done with blurring.
Third question, you can try to fix the page according to this template (
https://raw.githubusercontent.com/hack-gpon/hack-gpon.github.io/refactor-ont/_ont/ont-template.md)
in particular put also the CPU and CPU clock fields by taking them from the
chipset, then as soon as you can format the table, which is ugly like this.
Fourth question: can we translate the French text (inside the pic) into
English?
—
Reply to this email directly, view it on GitHub
https://github.com/hack-gpon/hack-gpon.github.io/pull/175#issuecomment-1502882959,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIWETOYUB3MGFRLU56RATTXAUG5ZANCNFSM6AAAAAAWZQAJH4
.
You are receiving this because you authored the thread.Message ID:
@.***>

You can simple add commit to this pr without having to make another one, if you wish you can put it as a draft.

@benoitm974 I've marked the PR as draft, feel free to mark it as done once you're ready

Ok so changed includes:

new picture fully owned
English text on picture
Removes blur serial and numbers
used template for the table and making table prettier
used template for section name and order
include link name change as suggested

Thanks.

The PR is mergable, I will leave you a few more days to think about 2 things

if it is possible to test the two curl scripts I proposed
if it is possible to implement the js script I am writing

@benoitm974 this a simple JS script:

    <form id="sercomm-ploam" novalidate>

            <input type="text" class="form-control" placeholder="IP Address" name="ip" id="ip" required pattern="^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$
" value="<IP_ADDRESS>">
            ONT IP Address

                Please provide a valid ONT IP Address.

            <input type="text" class="form-control" placeholder="PLOAM password" name="ploam_password" id="ploam_password" required>
            ONT Ploam Password

                Please provide a Ploam Password.

            <input type="submit" class="btn btn-primary" value="Generate!" id="submit">
            Warning: this script send a POST message to your ONT.

            <input readonly class="form-control" type="text" id="result" placeholder="Result">
            Result

    </form>

if you can simplify the CURL, use this tool to simplify the fetch https://curlconverter.com/javascript/

@benoitm974 this a simple JS script:

    <form id="sercomm-ploam" novalidate>

            <input type="text" class="form-control" placeholder="IP Address" name="ip" id="ip" required pattern="^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$
" value="<IP_ADDRESS>">
            ONT IP Address

                Please provide a valid ONT IP Address.

            <input type="text" class="form-control" placeholder="PLOAM password" name="ploam_password" id="ploam_password" required>
            ONT Ploam Password

                Please provide a Ploam Password.

            <input type="submit" class="btn btn-primary" value="Generate!" id="submit">
            Warning: this script send a POST message to your ONT.

            <input readonly class="form-control" type="text" id="result" placeholder="Result">
            Result

    </form>

if you can simplify the CURL, use this tool to simplify the fetch https://curlconverter.com/javascript/

This JS script won't work due to the website being HTTPS and the ONT admin page HTTP.

All closed thanks for your follow-up and support!

Work completed and finished. Merge executed.
Thanks again for the pr. We hope for your future contribution @benoitm974

Thanks @simonebortolin and the contributors of this projects!


Default value wrong check?

The following simple code:
#pythran export aa(str)
def aa(value):
    def get_header(name, type=float):
        return name
    return get_header(value)

Gives the following error:
CRITICAL: I am in trouble. Your input file does not seem to match Pythran's constraints...
bb.py:3:4 error: Pythran does not support mutable default values. Use a `None' default and set the value at runtime instead.
----
    def get_header(name, type=float):
    ^~~~ (o_0)
----

Does this mean that with the PR, we no longer need to specify "None" then handle that inside the function?

@jeanlaroche only if the default parameter is a constant or a function


Protobuf needs to be updated from <IP_ADDRESS> to 3.6.1

This is a heads up regarding this protobuff issue:
global std::once_flag variables don't work with Visual Studio
https://github.com/google/protobuf/issues/4773
There is a workaround in 3.6.1 which came out yesterday, but for now, any programs linked against vcpkg's protobuf crash when calling google::protobuf::ShutdownProtobufLibrary() as I descrived on this other issue:
Calling google::protobuf::ShutdownProtobufLibrary() against a DLL build throws an Access violation reading location 0xFFFFFFFFFFFFFFFF exception
https://github.com/google/protobuf/issues/4950

Have fun :)
https://github.com/Microsoft/vcpkg/pull/4000

@kiwixz its already merged by other pull request: https://github.com/Microsoft/vcpkg/pull/3995

Fixed by #3995.


(SD) Fix tokenizers imports in pyinstaller builds.

Also disables vae tuning for RDNA3.

why does it not matter that we get rid of gcs and opencv?

see https://github.com/nod-ai/SHARK/actions/runs/6142135995/job/16663459666#step:6:1042
2498 WARNING: collect_data_files - skipping data collection for module 'opencv_python' as it is not a package.
2737 WARNING: collect_data_files - skipping data collection for module 'google_cloud_storage' as it is not a package.

meaning we can remove them as they've always been skipped

meaning we can remove them as they've always been skipped (at least the shark_downloader doesn't seem to need gcs. I'm not sure about opencv but hasn't posed issues yet.)

Not sure why exe is skipping opencv, iirc,
OpenCV is imported for one of the stencil modes


Persist globals across front-end page changes

app.use(sharedContext({
  globals: {
    staticPath: 'https://...',
    user: null
  }
}));

After loading up either staticPath or user with a value, it will persist across front-end page changes as well as from the back to front end on the first page load.  Adds a key of __$globalVars to the context, but cleans up after itself.

@djake1 For some reason I cannot add you as a reviewer. :(


Update device-watcher to 2.11.0

Please update my adapter ioBroker.device-watcher to version 2.11.0.
This pull request was created by https://www.iobroker.dev c0726ff.

RE-CHECK!


Fail decompression when the gzip trailer is missing

Fix #20889

And note the error in ObjC build.

Issue : #22019

Thanks for reviewing!


Missing Icons in ActionColumn with Bootstrap 4.3.x

With the Version 4 of Bootstrap, the icons were removed from the default library.
https://getbootstrap.com/docs/4.0/extend/icons/
What steps will reproduce the problem?
AppAsset:
            'yii\bootstrap4\BootstrapAsset',
            'yii\bootstrap4\BootstrapPluginAsset',

GridView:

   <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'id',
            'name',
            'description:ntext',
            'image',

            [
                'class' => 'yii\grid\ActionColumn',
            ]
        ],
    ]); ?>

What's expected?
Seeing the icons in the last column of the gridview.
What do you get instead?
The css classes are not present in boostrap, so the icon's as not visible.
Additional info

Q
A

Yii version
2

PHP version
7.2

Operating system
Linux Debian Stretch

For the Moment I use the awesome font library and a function which creates the Buttons:
        function createActionButtons($buttons=['view','update','delete']){
                $actionButtons = [];
                $actionButtons['update']= function($url,$model) {
                         return Html::a('', $url, [
                                 'title' => Yii::t('app', 'edit')
                         ]);
                };
                $actionButtons['delete'] = function($url,$model) {
                         return Html::a('', $url, [
                                 'title' => Yii::t('app', 'delete')
                         ]);
                };
                $actionButtons['view'] = function($url,$model) {
                         return Html::a('', $url, [
                                 'title' => Yii::t('app', 'view')
                         ]);
                };
                return array_intersect_key($actionButtons,array_flip($buttons));
        }

Moved.

Related: https://github.com/yiisoft/yii-dataview/issues/10

The easiest way is add the glyphicon to the Yii2. There is already yii2-bootstrap4-glyphicons by xtetis.
You can the see sort icon in the GridView as well.

.glyphicon {
    font-family: "Font Awesome 5 Free";
}
.glyphicon-eye-open:before {
    content: "\f06e";
    color: var(--success);
}
.glyphicon-pencil:before {
    content: "\f044";
    color: var(--primary);
}
.glyphicon-trash:before {
    content: "\f2ed";
    color: var(--danger);
}

if remove button with content: "\f2ed";  doesn't work, then you can use content: "\f1f8";

Hi guys.  What's the file that should I update with this? :
.glyphicon {
font-family: "Font Awesome 5 Free";
}
.glyphicon-eye-open:before {
content: "\f06e";
color: var(--success);
}
.glyphicon-pencil:before {
content: "\f044";
color: var(--primary);
}
.glyphicon-trash:before {
content: "\f2ed";
color: var(--danger);
}

@cadedduste  web/css/site.css

@cadedduste web/css/site.css

Unlikely I can't make it work. I'm using yiiframework.com/extension/hail812/yii2-adminlte3 in my yii2 project.  I've added that snippet in  'web/css/site.css' but icons are not showing. Did I miss something?

@cadedduste web/css/site.css

Unlikely I can't make it work. I'm using yiiframework.com/extension/hail812/yii2-adminlte3 in my yii2 project. I've added that snippet in 'web/css/site.css' but icons are not showing. Did I miss something?

You need to link the CSS file / code with your template. See AssetBundle for Yii2.

@cadedduste do you install https://github.com/rmrevin/yii2-fontawesome ?

@cadedduste web/css/site.css

Unluckily I can't make it work. I'm using yiiframework.com/extension/hail812/yii2-adminlte3 in my yii2 project. I've added that snippet in 'web/css/site.css' but icons are not showing. Did I miss something?

I'm also using this theme and my [webvimark] user-management module display is not working well, especially the permissions page.

Same problem here.


extraScrollHeight cause bottom empty space

I have bottom empty space, it cause extraScrollHeight
"react-native-keyboard-aware-scroll-view": "^0.8.0",
"react-native": "0.55.4",

My code
<KeyboardAwareScrollView
    style={ { flex: 1 } }
    extraScrollHeight={ this.props.extraScrollHeight }
    keyboardShouldPersistTaps='handled'
    contentContainerStyle={ { width: responsiveWidth(100) } }
    enableOnAndroid
>
// CONTENT
</KeyboardAwareScrollView>

any update on this?

I don't think it's related to extraScrollHeight I've got this problem without the extraScrollHeight property.

same problem here

Any solution for this problem? Here, the same problem :(

The library adds padding. I just edit that lines in render method(KeyboardAwareHOC.js), it solved my problem. But this is not the best way.
 if (Platform.OS === 'android' && enableOnAndroid) {
        newContentContainerStyle = [].concat(contentContainerStyle).concat({
          paddingBottom:
            ((contentContainerStyle || {}).paddingBottom || 0) +
            this.state.keyboardSpace
        })
      }

to
 if (Platform.OS === 'android' && enableOnAndroid) {
        newContentContainerStyle = [].concat(contentContainerStyle).concat({
          paddingBottom:
            ((contentContainerStyle || {}).paddingBottom || 0)
        })
      }

You don't need change in Lib, you can add this line to KeyboardAwareFlatList
contentContainerStyle={{ paddingBottom: -this.state.keyboardHeight }}

Any solution found yet?
I've been experiencing this issue on android. Nothing to do with scrollHeight but it only happens when i add enableOnAndroid={true}

I've found the solution for this problem (at least for my case).
I added style = {{ flex: 1, minHeight: Dimensions.get('window').height }} to KeyboardAwareScrollView.

I've the same issue. Both iOS & Android are affected.

@dkoprowski try using native-base instead
import { Content } from 'native-base';

<Content extraScrollHeight={heightofkeyboard}  enableOnAndroid>
// children
</Content>

In ScrollView, flex properties will be applied by contentContainerStyle.
<KeyboardAwareScrollView
        contentContainerStyle={{justifyContent: 'space-between', flex: 1}}
>

It will help you.

In ScrollView, flex properties will be applied by contentContainerStyle.
<KeyboardAwareScrollView
        contentContainerStyle={{justifyContent: 'space-between', flex: 1}}
>

It will help you.

Maybe this will help: https://github.com/APSL/react-native-keyboard-aware-scroll-view/issues/289#issuecomment-777094398

In ScrollView, flex properties will be applied by contentContainerStyle.
<KeyboardAwareScrollView
        contentContainerStyle={{flex: 1}}
>

It will help you.

Worked perfectly for me. Not sure why it got two thumbs down...

Found a fix, use:
<KeyboardAwareScrollView
            contentInset={{ top: 0, bottom: 0 }}
>

  const [contentBottom, setContentBottom] = useState(0);

<KeyboardAwareScrollView
          style={{
            flex: 1,
            backgroundColor: Color.white,
          }}
          keyboardOpeningTime={0}
          extraScrollHeight={150}
          enableResetScrollToCoords
          onKeyboardWillHide={() => setContentBottom(0)}
          onKeyboardWillShow={() => setContentBottom(200)}
          contentInset={{ bottom: contentBottom }}
        >

This solution might help.

I got a solution on this.. Tested on iPhone 13, iPhone 13 Pro Max, iPhone 6s, iPhone SE (3rd generation) and android.
try:
  const [contentBottom, setContentBottom] = useState(0);
  const [keyboardActive, setKeyboardActive] = useState(false)

  const {height} = useWindowDimensions()
  const keyHeight = useKeyboardHeight()

  useEffect(()=>{
    if (keyboardActive){
      const diff = (parseFloat((height - keyHeight)/2))
      setContentBottom(diff)
    } else{
      setContentBottom(0)
    }
  },[keyHeight, keyboardActive]

<KeyboardAwareScrollView
            keyboardOpeningTime={0}
            enableResetScrollToCoords
            onKeyboardWillHide={() => setKeyboardActive(false)}
            onKeyboardWillShow={()=>setKeyboardActive(true)}
            contentInset={{ bottom: contentBottom }}
            automaticallyAdjustKeyboardInsets={true}
            automaticallyAdjustContentInsets={false}
          >

Previous
with extra white space at the bottom of the background image and before the keyboard for iPhone 13

Changes
no extra white space anymore

goodnight everyone!

I got a solution on this.. Tested on iPhone 13, iPhone 13 Pro Max, iPhone 6s, iPhone SE (3rd generation) and android.
try:
import React, {useEffect, useState} from 'react';
import { useWindowDimensions} from 'react-native';
import useKeyboardHeight from 'react-native-use-keyboard-height'

  const [contentBottom, setContentBottom] = useState(0);
  const [keyboardActive, setKeyboardActive] = useState(false)

  const {height} = useWindowDimensions()
  const keyHeight = useKeyboardHeight()

  useEffect(()=>{
    if (keyboardActive){
      const diff = (parseFloat((height - keyHeight)/2))
      setContentBottom(diff)
    } else{
      setContentBottom(0)
    }
  },[keyHeight, keyboardActive]

<KeyboardAwareScrollView
            keyboardOpeningTime={0}
            enableResetScrollToCoords
            onKeyboardWillHide={() => setKeyboardActive(false)}
            onKeyboardWillShow={()=>setKeyboardActive(true)}
            contentInset={{ bottom: contentBottom }}
            automaticallyAdjustKeyboardInsets={true}
            automaticallyAdjustContentInsets={false}
          >

Previous
with extra white space at the bottom of the background image and before the keyboard for iPhone 13
Changes
no extra white space anymore
goodnight everyone!

I got a solution on this.. Tested on iPhone 13, iPhone 13 Pro Max, iPhone 6s, iPhone SE (3rd generation) and android.
try:
import React, {useEffect, useState} from 'react';
import { useWindowDimensions} from 'react-native';
import useKeyboardHeight from 'react-native-use-keyboard-height'

  const [contentBottom, setContentBottom] = useState(0);
  const [keyboardActive, setKeyboardActive] = useState(false)

  const {height} = useWindowDimensions()
  const keyHeight = useKeyboardHeight()

  useEffect(()=>{
    if (keyboardActive){
      const diff = (parseFloat((height - keyHeight)/2))
      setContentBottom(diff)
    } else{
      setContentBottom(0)
    }
  },[keyHeight, keyboardActive]

<KeyboardAwareScrollView
            keyboardOpeningTime={0}
            enableResetScrollToCoords
            onKeyboardWillHide={() => setKeyboardActive(false)}
            onKeyboardWillShow={()=>setKeyboardActive(true)}
            contentInset={{ bottom: contentBottom }}
            automaticallyAdjustKeyboardInsets={true}
            automaticallyAdjustContentInsets={false}
          >

Previous
with extra white space at the bottom of the background image and before the keyboard for iPhone 13
Changes
no extra white space anymore
goodnight everyone!

Nice!. It works for me too😊


Navigation Bug on Commit 9a41591

Description of Navigation Bug on Commit 9a41591. Hopefully a trivial issue. I would like to see it resolved, and to learn what caused it.
Bug's Backstory
Origin: Bug is on Commit 9a41591, and was introduced by changing the file server.js.
EDIT: This bug is on Commit 307dee6. My goal is to either fix 307dee6 or 9a41591 so that the refresh button refreshes the current view, or an empty Change Video view if no view is selected.
Suspicions: It likely stems from an incorrect use of pagejs, or involves the initial values for the three flags in youtube-notes.html.
More About Three Flags
Three flag values are used to determine the current view shown. By default, the flags enabled are the same flags enabled by the function change2ViewChoose(). Thus, http://localhost:8080/ has the same Choose Video view as http://localhost:8080/choose-video, but with a shorter URL.
Bug's Behavior

Fixs self when the user navigates forward with the arrow button into the URL http://localhost:8080/.
Breaks self when the user refreshes any URL other than http://localhost:8080/.
Every time a navigation arrow is pressed, the video restarts autoplay from the beginning, even while hidden. I could tell because of the video's audio.
If the user navigates with the back navigation arrow to http://localhost:8080/, then the video continues to play without pause. However, if the user then refreshes it, the view becomes the beginning Choose Video view.
While broken, navigating with the forward and back arrows does not update the error message. That is, as long as the user does not navigate to before http://localhost:8080/.

Example Error Messages
Cannot GET /watch-video
Cannot GET /save-notes
Cannot GET /choose-video

Does it still give you 404s if you remove the if regex test here: https://github.com/NBumgardner/YouTube-Notes/blob/master/server.js#L23

Oops, the Bug's Behavior above actually describes the behavior of the current master branch commit, 307dee6, which is one commit before Commit 9a41591.
Commit 9a41591 has a less severe bug, where refreshing the tab resets the view to be the default Choose Video view, instead of the current view according to the URL. Arrow navigation and click navigation works fine on this commit, its just the refresh button which causes the (often wrong) view to show up.

@ChadKillingsworth, if the regex test is removed as you asked, then bug in Commit 307dee6 is replaced with the bug in Commit 9a41591.

After further revisions, bug 2 remains and is less severe, so future commits will include that refresh bug until it can be fixed.

Your script that runs your routes executes BEFORE your nodes are added to the dom. Easiest solution is to move your pagejs routing script to be the last node in the body. That way everything will exist.

Your clue is this error in the console:
watch-video:44 Uncaught TypeError: Cannot read property 'change2ViewWatch' of undefined

Thanks @ChadKillingsworth. I moved the script in branch handle-refresh-2, Commit 29a1beb. It removed the errors, but not the full bug. Refreshing still creates the Choose Video view.


Create count_of_Smaller_Numbers_After_Self.py

This code takes an array of integers as input and returns an array of the number of elements in the array that are smaller than each element from the input array, using a binary search algorithm to maintain a sorted list.

you are file should structure like this. @Swish78

DATA-STRUCTURE-AND-ALGORITHM-IN-PY

LinkedList

Doubly
Singly
ReversedSingly     <----------- This will be your newly created folder

solution.py       <----------- Write the code for the implementation here
test_solution.py <----------- Write a test for it here to make sure it's working

@Swish78  what is other files you have pushed ?


Handle computed property in ClassTransformer & ES6ClassTransformer

see https://github.com/google/traceur-compiler/pull/1791/files#r25849714

This is easy too... change this.x into this['x']. Maybe extract the code to convert the property name into an expression from the existing code.... this can all be done in a follow up PR of course.

May be the MemberVariableTransformer would also need to be updated


The Site setup… page is not responsive for small screen devices

The Site setup… page is not responsive for mobile devices,
see video
https://user-images.githubusercontent.com/97228857/223721261-55f2bc25-9557-407c-b811-ca997a805b93.mp4
Expected behavior
See the Site setup page of  Plone classic ui
https://user-images.githubusercontent.com/97228857/223721650-96efd065-f8a5-4e2b-85e0-9c4aca8d0548.mp4

Does Volto have breakpoint classes like Classic UI?
I notice that the HTML markup in Classic UI uses

 with Twitter Bootstrap breakpoint classes compared to Volto's
.
Is there a design guide for Volto markup? That might help identify a good solution.

sir i raised a PR please have a look , https://github.com/plone/volto/pull/4487#issue-1615437800

Thanks. GitHub user tip: in the PR, add the text "Closes #4484". Then when that PR is merged, it will automatically close this issue. You can edit your original comment, instead of adding a new comment, and it will work.


Merge Error changes into Master

Coverage remained the same at 100.0% when pulling 2690a087ce9c37d2d87ab75cfe4c49127d3a962f on develop into a77e5fefa0276fca76ae2d1e6b834e1244aa547c on master.


Extracted method from RemoteFileChooser.java

This method replaces code where a simple button is created.

Thanks for the PR!


Apply_permutation

Hello.
I found very useful FMPOV algorithm (https://blogs.msdn.microsoft.com/oldnewthing/20170104-00/?p=95115) .
What do you think about it?

What is missing in this PR? Do you have any suggestions?


A part of a PDF's content was removed after copy/paste options.

Attach (recommended) or Link to PDF file here:
Some things I want to improve. . ..pdf
Configuration:

Web browser and its version: Chrome 125.0.6422.78
Operating system and its version: macOS Sonoma 14.5
PDF.js version: 4.4.4 [4d9c25a41]
Is a browser extension: no

Steps to reproduce the problem:

Open the attached PDF at https://mozilla.github.io/pdf.js/web/viewer.html
Copy the “Canva Sans - a little bit different.“ PDF’s native content.
Paste the text from the previous step within the PDF.

What is the expected behavior?
Any content has not to be deleted.
(add screenshot)

What went wrong?
Two “f“ letters were removed from the "different" word.
(add screenshot)

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

Duplicate of #12237

@Snuffleupagus thanks for the quick response. Could you let me know, please, when you're going to fix the issue #12237?  I wondered because you've lived with that for more than 4 years.

@sergey-goryushko if you want to help us and all pdf.js users by stopping the counter at 4 years instead of letting it go to 5 or 6, you're welcome to contribute a fix!
Jokes aside, there are no immediate plans to fix that issue, we are working on other things at the moment. So, we can't let you know when we're going to fix it. We do, however, happily accept contributions!

@marco-c got it)
Thanks for the comprehensive feedback)


error deploying KubeFed: error enabling namespaces in federation

Deploying broker with subctl with a merged config and context fails at following step:
✗ Deploying Service Discovery controller
Error setting up service discovery: error deploying KubeFed: error enabling namespaces in federation: exit status 255
F0313 14:47:29.809826    5164 enable.go:110] Error: KubeFed system namespace "kubefed-operator" does not exist: namespaces "kubefed-operator" not found
This is because we're passing the context but not using it when enabling namespaces in kubefed. This normally works if broker context happens to be first one in merged config, but if you were to reverse the order, it fails.

Workaround: Before merging kubeconfigs, make sure that broker cluster config is first. Can be done by making sure first config in export KUBECONFIG is of broker cluster


docs: LineChart

:tada: This issue has been resolved in version 7.26.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Add HyperNeRF

HyperNeRF: A Higher-Dimensional Representation for Topologically Varying Neural Radiance Fields
by Keunhong Park, Utkarsh Sinha, Peter Hedman, Jonathan T. Barron, Sofien Bouaziz, Dan B Goldman, Ricardo Martin-Brualla, Steven M. Seitz

HyperNeRF represents changes in scene topology by providing a NeRF with a higher-dimensional input.

Thank you!!!


[move] Rename compiler crate move-ir-compiler

There was once a time where the only compiled language in the project was Move IR, and there was only a single compiler for it, so the name "compiler" was unambiguous. However, now that the Move source language exists, it's clearer to rename the compiler crate to move-ir-compiler.
I feel now is a good time to do this, because I'd like to add a transactional test runner crate for the Move IR compiler, and that involves giving it a name. I could name it compiler-transactional-tests, but that would create yet another ambiguously named crate in the repository. I figure it's better to rename the compiler crate first, then add the test runner.

LEC dependency change summary:
target packages:
  M bytecode-source-map 0.1.0 (workspace, path 'language/move-ir-compiler/bytecode-source-map')
    * source changed from path 'language/compiler/bytecode-source-map'
    * (unchanged features: default)
  M ir-to-bytecode 0.1.0 (workspace, path 'language/move-ir-compiler/ir-to-bytecode')
    * source changed from path 'language/compiler/ir-to-bytecode'
    * (unchanged features: default)
  M ir-to-bytecode-syntax 0.1.0 (workspace, path 'language/move-ir-compiler/ir-to-bytecode/syntax')
    * source changed from path 'language/compiler/ir-to-bytecode/syntax'
    * (unchanged features: default)

release binaries dependency change summary:
target packages:
  M bytecode-source-map 0.1.0 (workspace, path 'language/move-ir-compiler/bytecode-source-map')
    * source changed from path 'language/compiler/bytecode-source-map'
    * (unchanged features: default)
  M ir-to-bytecode 0.1.0 (workspace, path 'language/move-ir-compiler/ir-to-bytecode')
    * source changed from path 'language/compiler/ir-to-bytecode'
    * (unchanged features: default)
  M ir-to-bytecode-syntax 0.1.0 (workspace, path 'language/move-ir-compiler/ir-to-bytecode/syntax')
    * source changed from path 'language/compiler/ir-to-bytecode/syntax'
    * (unchanged features: default)

LEC dependency change summary:
target packages:
  M bytecode-source-map 0.1.0 (workspace, path 'language/move-ir-compiler/bytecode-source-map')
    * source changed from path 'language/compiler/bytecode-source-map'
    * (unchanged features: default)
  M ir-to-bytecode 0.1.0 (workspace, path 'language/move-ir-compiler/ir-to-bytecode')
    * source changed from path 'language/compiler/ir-to-bytecode'
    * (unchanged features: default)
  M ir-to-bytecode-syntax 0.1.0 (workspace, path 'language/move-ir-compiler/ir-to-bytecode/syntax')
    * source changed from path 'language/compiler/ir-to-bytecode/syntax'
    * (unchanged features: default)

release binaries dependency change summary:
target packages:
  M bytecode-source-map 0.1.0 (workspace, path 'language/move-ir-compiler/bytecode-source-map')
    * source changed from path 'language/compiler/bytecode-source-map'
    * (unchanged features: default)
  M ir-to-bytecode 0.1.0 (workspace, path 'language/move-ir-compiler/ir-to-bytecode')
    * source changed from path 'language/compiler/ir-to-bytecode'
    * (unchanged features: default)
  M ir-to-bytecode-syntax 0.1.0 (workspace, path 'language/move-ir-compiler/ir-to-bytecode/syntax')
    * source changed from path 'language/compiler/ir-to-bytecode/syntax'
    * (unchanged features: default)

LEC dependency change summary:
target packages:
  M bytecode-source-map 0.1.0 (workspace, path 'language/move-ir-compiler/bytecode-source-map')
    * source changed from path 'language/compiler/bytecode-source-map'
    * (unchanged features: default)
  M ir-to-bytecode 0.1.0 (workspace, path 'language/move-ir-compiler/ir-to-bytecode')
    * source changed from path 'language/compiler/ir-to-bytecode'
    * (unchanged features: default)
  M ir-to-bytecode-syntax 0.1.0 (workspace, path 'language/move-ir-compiler/ir-to-bytecode/syntax')
    * source changed from path 'language/compiler/ir-to-bytecode/syntax'
    * (unchanged features: default)

release binaries dependency change summary:
target packages:
  M bytecode-source-map 0.1.0 (workspace, path 'language/move-ir-compiler/bytecode-source-map')
    * source changed from path 'language/compiler/bytecode-source-map'
    * (unchanged features: default)
  M ir-to-bytecode 0.1.0 (workspace, path 'language/move-ir-compiler/ir-to-bytecode')
    * source changed from path 'language/compiler/ir-to-bytecode'
    * (unchanged features: default)
  M ir-to-bytecode-syntax 0.1.0 (workspace, path 'language/move-ir-compiler/ir-to-bytecode/syntax')
    * source changed from path 'language/compiler/ir-to-bytecode/syntax'
    * (unchanged features: default)

/land

/land

@modocache :bulb: This PR is already queued for landing

Oh, thank you so much for doing this!!


Removes uses of deprecated 'HostAndPort.getHostText' method.

Instead use HostandPort.getHost()

Codecov Report

Merging #1208 into master will increase coverage by 0.02%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master    #1208      +/-   ##
============================================
+ Coverage     52.59%   52.61%   +0.02%
  Complexity     1615     1615
============================================
  Files           268      268
  Lines         13025    13025
  Branches       1504     1504
============================================
+ Hits           6850     6853       +3
+ Misses         5657     5655       -2
+ Partials        518      517       -1

Currently Helios declares that it uses Guava 20. In practice, people that depend on helios libraries might be able to use newer versions than this, provided that those newer versions haven't removed methods that Helios depends on, like HostAndPort.getHostText() mentioned in the PR summary. They might also be able to use older versions of the library, provided that that version has all the classes and methods on those classes that Helios needs to call.
HostAndPort.getHostText() was removed in Guava 22.
HostAndPort.getHost() was introduced in Guava 20.
So effectively I think this change will make the requirement on Guava be >= 20 (which it may have already been, if we are using other methods introduced specifically in 20). Given that the pom already states 20, that sounds good to me.
👍


Use SYSTEM in target_include_directories()

This allows one to use/compile this library in a project where stricter compiler settings
(like -pedantic and -Werror) are in use. gcc and clang ignores such issues in all
system includes and as a consequence of adding SYSTEM to
target_include_directories(), the headers of this library are treated as system includes
as well.
Thanks for considering! :-)

@CodeFinder2 , mqtt_cpp satisfies the following warning flags.
https://github.com/redboltz/mqtt_cpp/blob/1eaadab575f15d7e645c9cb699e7e3eeba7587c6/.github/workflows/gha.yml#L69
-pedantic -Werror are satisfied.
The compiler version on the CI is not up to date. So some of warnings would be reported as error on some envronment. But it this case, the warning should be fixed. If you find such warnings, then please report issue and create a pull request to solve it.
(Sometimes we need to use warning suppression pragma)
I'm not an expert of cmake but SYSTEM seems to be too much relaxed mqtt_cpp's checking.

One more comment.
Why do you remove the following line?
https://github.com/redboltz/mqtt_cpp/pull/832/files#diff-f15f7409d37485ed889fc8730c1f63d6570e55cfb27a4ee9dc7760014a79a739L39

Hi @redboltz , thanks for your quick reply and sorry for answering this late!
We're using an older version of your library as a Git submodule, included as part of a CMake build system and that creates warnings/errors with -pedantic -Werror. Due to issues with Boost, we cannot simply use your latest version and that's why I suggested these changes. However, regardless of our setup, I think it would be a good choice to be able to declare your library includes as SYSTEM includes since as a user of this library, one does not have control over the code and newer compiler versions may output warnings in the future that are currently not fixed.
But finally, it is of course up to you and I also understand that it makes your own includes (as a library dev) too relaxed. I don't know how to avoid this in CMake (except for creating a "dummy target" or something like that).
Removing the 2nd line was by accident, sorry! I would undo this change if you agree to merge this. ;-)

I recommend against making this change as its currently done.

As redboltz points out, warnings should be fixed, not covered up.
Cmake's support for SYSTEM is done very poorly.

The way SYSTEM works in cmake is that it essentially embodies the concept of a header file / directory controlled by the operating system. There are hints in the documentation that it also surpresses some of the various configuration-time dependency logic that cmake uses to ensure generated headers are present, but I didn't find any evidence of that in my use of cmake so far.
However, because cmake requires that you designate the include directory as SYSTEM in the place where it's initially linked to a target, and provides no mechanism to say target A depends on target B, but target B should treat it's includes as normal, and target A should treat target B's public / interface includes as SYSTEM (or for MSVC, as 3rdparty includes), you're left forcing projects to have an all or nothing approach to header management.
For example, many projects, such as the one that i was working on (and no longer am anymore due to job reasons) that initially brought me into working on mqtt_cpp, do not use SYSTEM includes specifically so that underlying warnings in 3rd party libraries could be identified and repaired. Many of the improvements i made to mqtt_cpp and other unrelated libraries came directly from not using SYSTEM. It's in mqtt_cpp's best interest to ensure that any warnings are very annoying to consumers of the project to get pull requests.
So my recommendation is that instead of making the include directories SYSTEM for all consuming projects, you should define a new interface library mqtt_cpp_system or similar that is exactly the same as mqtt_cpp, but with the include directories marked as SYSTEM.
In this way, only projects that want the includes marked as SYSTEM will be forced to accept that.
I would argue that realistically this should be fixed directly by CMake, as the current support for this is woefully under-achieving. But that's like arguing with a tree. Sometimes the squirrels give you an acorn, and sometimes they laugh at you, and sometimes there are no squirrels.

@CodeFinder2
I don't agree to merge the PR. mqtt_cpp is NOT a SYSTEM library. And SYSTEM approach is not an essential fix the issue.
But I can tell you how to treat the problem well on your environment.
mqtt_cpp is a header-only library, so you don't need to build the library. Just adding include path.
You can set the following parameters to OFF, then the build step is disabled.
(I updated the wiki https://github.com/redboltz/mqtt_cpp/wiki/Config#build-control-cmake-options)
https://github.com/redboltz/mqtt_cpp/blob/07c70974c481809e8f1aff0725a77a83c62c8101/CMakeLists.txt#L10-L11
So mqtt_cpp building process doesn't report warnings any more (because it doesn't run).
I guess that in your application code is built using relax options. If mqtt_cpp header files reports warnings in your build project, you can add pragma as follows:
your_application.cpp
#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif // defined(__GNUC__)

#include <mqtt_client_cpp.hpp>
#include <mqtt/setup_log.hpp> // if you want to use typical logging setup

#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif // defined(__GNUC__)

This is implicit-fallthrough warning suppression example.

Thanks for all your efforts (also @jonesmz ). I completely agree to not merge this PR, sorry for the noise!
I am not building your library anyways (since I didn't need the examples and tests). I took this conversation as a kick-off for porting our project to the newest version and it seems to work fine. And it also compile flawlessly with -pedantic and -Werror, so this PR is needless anyway. :-)
I have another question regarding capturing std::shared_ptr in a lambda function: do you want me to open a new issue for this (since it is not related to this in any way) or may I ask here? In short: isn't this a problem here, for instance, in your examples here and there?
Thanks again for your quick support!

You should open new issues for new questions.
That being said, the article you linked seems to be mostly about FUD. mqtt_cpp does not inherently have the described problem, and the examples from mqtt_cpp that you li led are unrelated to the article because the examples use references in the lambda capture.


New parameters in stripe-app

We need 2 new parameters that will be available in ExtensionContextValue:

The current app version number
Parameter that indicates if the current version of the application is published or not

@omerfranco Can you expand on the use-cases for 2)? What is the scenario where this would be useful for your app? Also do you mean public distribution in the marketplace?

We want to be able to exclude traffic from our reports that comes from testing application.
Yes, it will be great to have an indicator for the public distribution in the marketplace.


#10 Login component done

Issue #10 📐
Guidelines 🔐
I agree that before requesting a review :

[x] I have performed a self-review of my code
[x] Tested on web-browser
[x] Tested on mobile

Issue to be closed 🛅

My pull request closes #10

Screenshots 📷
Here are the screenshots of changes that I have made 🔽
MOBILE

desktop

it is done and ready, if you got any question feel free to ask otherwise merge this PR
thanks

Congratulations ! ㊗  Your Pull Request has been merged. Keep coding, keep supporting community. Thanks for your contribution.
Regards,
Avinash Dubey
Repository Owner

@avinasdube thanks, there is some other problems in your code base for example
layout is not globaly served for all routes ( needs refactore routing and global layout)
is it ok with you if i create new issue and assign to my self ? otherwise create this issue #refactor routing / layout and assign to me, i'll fix it, thanks

Hi @Sky-De ! Can you please specify more ? Or raise a new issue with your suggested changes. If it helps and enhances UX, you'll be definitely approved and assigned for that issue. We'd definitely accept legit contribution. Thanks


All water animals just fly down at lightspeed

Timings link
https://timings.pl3x.net/?id=7a27777e13604bd580494b17db45351e
Expected behavior
Randomly water mobs just fly down while swimming and die
Observed/Actual behavior
https://user-images.githubusercontent.com/47983188/133835981-efcfb4cf-1c6d-447e-8ca6-081fd9984c88.mp4
Steps/models to reproduce
Wait in water and it should happen
Purpur version
This server is running Purpur version git-Purpur-1391 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 8096340 on ver/1.17.1)
You are running the latest version
Previous version: git-Purpur-1385 (MC: 1.17.1)
Agreements

[X] I am running the latest version of Purpur available from https://purpur.pl3x.net/downloads.
[X] I have searched for and ensured there isn't already an open issue regarding this.
[X] My version of Minecraft is supported by Purpur.

Other
No response

Could you attempt to reproduce this issue on Airplane? They recently made some changes relating to entities and water

This is absolutely hilarious, but should be fixed with https://github.com/TECHNOVE/Airplane/commit/a74424ab0212a924c7ef921bfb7ec143c874cba4


Expandable objects support

Currently the models are wired to handle objects that are expandable. However there is no way to actually request them to be expanded.

For the object models that contain expandable properties add an Expandable property as an List to the corresponding argument models. Next add a set of constant strings to hold the values that can be expanded. On serialization concatenate the Expandable with a '.' character as a separator.

Done


"Test a component with an external template" is not necessary

Following the testing docs, I found that the Test a component with an external template section is not necessary.
Omitting that using "moduleId: module.id" is not necessary anymore, I run and tested a basic component with external template and stylesheet as described in the Test a component section. Using the same approach, the tests were successfully accomplished.
Am I wrong or it can be removed from the docs?
ps: I use angular 2.2.3

what were you using? Webpack?

My bad, I created a new project with the CLI that switched to Webpack as told here. As is clearly explained in the testing's docs, "WebPack developers need not call compileComponents because it inlines templates and css as part of the automated build process that precedes running the test.". I think that the same logic apply to the use of the moduleId property.
Thank you for the quick hint!


convert_hf_to_module（pipeline_parallel>1）

hi，
I see that we support to convert a HuggingFace transformers to  a NeoX model with pipeline parallelism without pipeline parallelism  by 'convert_hf_to_sequential.py'.
Can we support to convert a HuggingFace transformers to  a NeoX model with pipeline parallelism without pipeline parallelism greater than 1, or how to do  now?

Thank you for the issue. The language you're using is a little confusing to me. Am I correct in thinking you want to go HF -> NeoX w/ PP = 1? That is, you can do PP > 1 and no PP but not PP = 1?

@liuxinxin123 Hey, I wanted to follow up on this. Can you elaborate on what your issue is?


Проверить, что статистика доходит до CBO в dqrun (dq pipeline)

Intermediate results:
Logs dqrun с tpc ds 10 q4:
https://gist.github.com/yumkam/69dc2b27727127836df2002b104f9dcd
with https://github.com/yumkam/ydb/commits/spilling-experiment-51
It looks like CBO called several times, one with statistic present (All statistics for join in place), other without statistics (Didn't find statistics for scope c)
Not sure if this correct.


[BEAM-3326] Abstract away closing the inbound receiver, waiting for the bundle to finish, waiting for outbound to complete within the ActiveBundle.

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue.
[ ] Write a pull request description that is detailed enough to understand:

[ ] What the pull request does
[ ] Why it does it
[ ] How it does it
[ ] Why this approach

[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Run mvn clean verify to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

CC: @bsidhom


show translatable fields based on App::locale

how i can show the translated fields on server side datatables using laravel-datatables
note:: if i use edit_Column
that will not help me in case of searching ..because if the client for in the translated version it will return nothing because there is nothing match in the database
"yajra/laravel-datatables-oracle": "v6.11.3"
DataTables 1.10.12
PHP 5.6.15
windows 8.1

@macnux, it will not work because it's not part of the database and the package uses the database engine for querying the results. This might work if you can store the translations on a table and by doing some join statements.


[feature request] Delta table API method to rollback/revert latest committed changes

Thank you for great work !
I would like to have a api method ,to rollback /revert latest changes simply like DeltaTable.rolleback(), currently I am handling this scenario just removing latest version of log file and checkpoint file if any with same latest version . just to avoid rewriting/remove data files, vacuum will take care .
In my scenario , ETL pipeline has some steps after delta table merge, if any failure after this step, I need to revert the changes from delta table .
I am using below code snippet  -
val deltaTable = DeltaTable.forPath(spark, path)
  val lastOperationDF = deltaTable.history(1)
  var currentVersion:Long=0
  var readVersion:Long=0
  lastOperationDF.select("version", "readVersion")
    .collect()
    .foreach( r => {
      currentVersion = r.getLong(0)
      readVersion = r.getLong(1)
    })

  val revertVersionFileName = appContext.deltaLogFileNameFormat.get.format(currentVersion).concat(".json")
  val readVersionFileName = appContext.deltaLogFileNameFormat.get.format(readVersion).concat(".json")
  revertPath = newPath.stripSuffix("/").concat("/_delta_log/").concat(revertVersionFileName)
  currentPath = newPath.stripSuffix("/").concat("/_delta_log/").concat(readVersionFileName)

//Delete code to delete latest version log file and and corresponding checkpoint file if any exist for same version.
In my case as of now I am having this case with non partitioned tables so not sure how to handle checkpoint files with partitioned tables.
Thanks

Delta Lake rollback command now exists: https://delta.io/blog/2022-10-03-rollback-delta-lake-restore/
Hope you find the command useful!


Pin rubocop to 0.30.0

The most recent sweetness build just picked up a bug in the Performance/Sample cop (https://github.com/bbatsov/rubocop/issues/1816) from 0.30.1, which fails the sweetness build. Let's pin rubocop to a known good version so that we're not continually picking up new cops and changes from patch versions without explicit updates to aptible-tasks.

Sounds good! This should be an improvement all-around. Merge at will.


update packages

:white_check_mark: Build TheIdServer 8.0.0-fix-dependencies1-0272 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/bacebae649 by @invalid-email-address)


[keymgr] Advance to D2

Advance keymgr to D2.
Pending on #7562

@tjaychen
last time we discussed that we may want to remove the HMAC sideload interface, is it still the case?
we have some planned counter measurements for keymgr defined here. When will we implement those?

o i forgot about the hmac, thanks for the reminder.
It's not super clear at the moment when the security countermeasures have
to land (D2 or D3), but I can add them to D2 also if you prefer.
On Mon, Aug 2, 2021 at 4:37 PM weicaiyang @.***> wrote:

@tjaychen https://github.com/tjaychen
last time we discussed that we may want to remove the HMAC sideload
interface, is it still the case?
we have some planned counter measurements for keymgr defined here
https://docs.google.com/spreadsheets/d/1SWjFstWxDtBt-taKqIyxDIzdtaIeHYe3hjXoMLlf0sU/edit#gid=0.
When will we implement those?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/pull/7564#issuecomment-891402233,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2RSX5ZTKMAMR3WNXHAC3T24T2XANCNFSM5BNSBK7A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

o i forgot about the hmac, thanks for the reminder. It's not super clear at the moment when the security countermeasures have to land (D2 or D3), but I can add them to D2 also if you prefer.

If we have finalized those countermeasures and know how to implement them, I would prefer to have them for D2, since D2 has an item FEATURE_FROZEN

sounds good.
then let me work on that.
On Mon, Aug 2, 2021 at 5:18 PM weicaiyang @.***> wrote:

o i forgot about the hmac, thanks for the reminder. It's not super clear
at the moment when the security countermeasures have to land (D2 or D3),
but I can add them to D2 also if you prefer.
If we have finalized those countermeasures and know how to implement them,
I would prefer to have them for D2, since D2 has an item FEATURE_FROZEN
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/pull/7564#issuecomment-891416200,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2RSSEPXZKRTAY5ZESQ63T24YVNANCNFSM5BNSBK7A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

@weicaiyang all known keymgr features are in. Including countermeasures that have been discussed.
I'll do one more passover, but i think we can advance to D2 now.

looks like there is still
#7149
#1920
i'll quickly get those resolved and we can push this to D2.

looks like there is still
#7149
#1920
i'll quickly get those resolved and we can push this to D2.

Thanks Tim. SGTM

don't forget to fix #5922, otherwise LGTM, thanks

i'm going to treat that one as a bug since it's not a new feature :)


New "moderator" role

created a new moderator role: moderator can add/delete resources, add/delete descriptors, CSV upload (update only) (ideally would have moderator only can edit resources that it created, will be a future task)
edited the routes to restrict the routes that the moderator can access
edited the nav bar
i think we need to do a DB migration or something before we can merge this in

@HanaPearlman should we merge this in with everything else?

This code looks good, although I'm wondering about the functionality where a Moderator can only edit the resources that they uploaded to the site?

merging in!


/github/workflow/status/:user/:repo/:workflow is not able to find the workflow

Are you experiencing an issue with...

[x] shields.io
[ ] My own instance
[ ] badge-maker NPM package

:beetle: Description
I want to add a workflow badge, so from shields.io I took this url

/github/workflow/status/:user/:repo/:workflow

and wanted to test it with any public repository, I'm using this for testing purposes
https://github.com/thenativeweb/wolkenkit/blob/main/.github/workflows/qa.yml
Unfortunately the badge is not able to find the workflow.
:link: Link to the badge
https://img.shields.io/github/workflow/status/thenativeweb/wolkenkit/qa
:bulb: Possible Solution

Thanks for reaching out but going to close. As noted in various previous issues, our badges utilize the user-specified workflow name (defined within the yaml file) which is case sensitive; not the yaml filename of the workflow definition.
You've defined QA (note the upper case) as your workflow name here therefore you need to use the identical QA for the route parameter.
Try this instead:
https://img.shields.io/github/workflow/status/thenativeweb/wolkenkit/QA


Editor visualization warning modal

Closes #9978

Please @josecruz review the design :)
Texts should be reviewed just in case, @brittanymicek could you help us with that?
CR @nobuti cc @xavijam @javitonino

@nobuti tests are not complete yet! There are a few ones left to test the behaviour of the actions after opening the map with the builder and duplicating it.

Lovelyyyy @MariaCheca!
Just one thing, should we make the "Duplicate this Map" option as a primary option so we can avoid the user misclick the "Go to Builder" button and lost some part of the map?
cc @saleiva

There will be no problem with that @josecruz, lets wait for @saleiva to give us his opinion.

We want them to go to the Builder! But... one thing... we had a way of show "warning" modals, right?

Copy changes: (You can disregard the "Whoooooaaaaa there!" if you want to
get straight to the point).
Whoooooaaaa there! You are opening an Editor map in the new Builder.
Builder offers an easy to use and intuitive drag and drop functionality to
analyze and visualize your data. However, some of the old Editor features,
such as overlays, are not currently available in Builder.
Opening your map in Builder may cause the loss of any feature not supported
yet. Are you sure you want to continue?
[NO, GO BACK TO THE DASHBOARD] [YES, OPEN WITH BUILDER]
On Mon, Oct 10, 2016 at 11:09 AM, Sergio Álvarez Leiva <
<EMAIL_ADDRESS>wrote:

We want them to go to the Builder! But... one thing... we had a way of
show "warning" modals, right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/CartoDB/cartodb/pull/10112#issuecomment-252651642,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJboLkvxlswIdV2YZlShNyTVgrd-kqJ5ks5qylVFgaJpZM4KSksi
.

--
Brittany Micek
Content Writer
CARTO - Predict through Location
201 Moore Street, Brooklyn, NY 11206
T: + <%2B34695497365>19174633232
W: www.carto.com

I though the same @saleiva, with yellowish title. Why have we changed that?

BTW, please, this is quite important and we need it to have in production today.

Two graphical bugs:
Duplicating map undefined

The onboarding shows on top of this modal

Well spotted @javitonino, @MariaCheca, please.

Yep, if this is a warning then we should tint the icon in the yellowish color

@josecruz @saleiva @xavijam with warning styles it looks like:

Like it?

👏


adding mol name labels from ofe-name to mapping vis

This pull request adds one nice small features to gufe mapping visualization:

labeling mapped molecules with their ofe-name

Hello @RiesBen! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file gufe/visualization/mapping_visualization.py:

Line 151:80: E501 line too long (84 > 79 characters)

@mikemhenry I think there's also some magic where Mol.GetProp('_Name') (the semi canonical way of labelling a name in rdkit) is converted to ofe-name (and vice versa)


Conversion successuf in glb only

Hello,
i'm trying to convert a obj file with texture in .mtl but I can't do it in gltf format, the converter works only for the glb format.
Is there some limitation or something ? my obj weight 1.3 Go
BR

1.3 GB?
You might be running into this bug: https://github.com/AnalyticalGraphicsInc/obj2gltf/issues/59
The workarounds are

save as a glb as you mentioned
pass in --separate so that external resources and not embedded in the gltf


Paymaster Redesign

This is the PR to redesign Paymaster.
Main topics:

Paymaster to support several Entry Points
Paymaster doesn't need nonces after Entry Points control nonces, not SCW

Details:
Paymaster to support several Entry Points
Problem statement:
Now, EP is immutable in the BasePaymaster.
That means, when the new EP is deployed, we have to switch to a new Paymaster.
However, not all the smart contract wallet users will immediately upgrade to a new implementation with a new EntryPoint (if it is immutable for the SCW as well) or just update EP if it is changeable
So DApps will have to support deposits in two paymasters at the same time that is I believe not a good developer experience.
Solution:
Allow paymaster to support several EPs at the same time and protect from replay attacks with hashing Entry Point address in the getHash().
Dror Tirosh:

re: paymaster to support multiple entrypoints.
interesting idea, though the solution is not modify the entryPoint member (which is currently immutable, for efficiency) but instead replace _requireFromEntryPoint, but is virtual.
This way, you can hash multiple entrypoints.

@leekt :

Since your paymaster will need stake on entrypoint anyway it’s totally fine to use storage on paymaster
ya i see no reason why you shouldn’t use mapping for this
yup yup since getHash() has entrypoint’s address and chain id, it is totally fine

Paymaster doesn't need nonces after Entry Points control nonces, not SCW
Problem statement:
Why we introduced nonces: https://github.com/code-423n4/2023-01-biconomy-findings/issues/360
Why paymaster nonces are not needed anymore:
Dror Tirosh:

I don't think a nonce is really needed in paymayster.
The reason for adding a nonce to the paymaster was to handle cases where the nonce was not unique: a wallet could support static nonce, and it could re-use the VerifyingPaymaster validation multiple times.
But now nonces uniqueness is validated by entrypoint. So a paymaster no longer need to check for uniqueness by itself.

NOTE: we 're currently in the process of updating the entryPoint, which will enforce uniqueness of nonce and userOpHash.
This way, paymaster will no longer need to maintain its own sender/nonce/entrypoint mapping, since all those fields are hashed into the userOpHash

I added a very quick prototype of how several EPs support can look like.
Hashing is TODO yet.

If we keep active entry points, that will allow paymaster to accept validatePaymasterUserop() from one of the supported entry points. for that aspect this change is good so far.
I have concern on immutable entryPoint and another state is mapping of entry point that we are managing...
can we discuss about what would be impact on this?
 function depositFor(address paymasterId) external payable nonReentrant {
        if (paymasterId == address(0)) revert PaymasterIdCannotBeZero();
        if (msg.value == 0) revert DepositCanNotBeZero();
        paymasterIdBalances[paymasterId] =
            paymasterIdBalances[paymasterId] +
            msg.value;
        entryPoint.depositTo{value: msg.value}(address(this));
        emit GasDeposited(paymasterId, msg.value);
    }

When a dapp deposits, our paymaster deposits to fixed immutable entrypoint. and when they want to withdraw it's only going to withdraw (our paymaster needs to be deposited there only) from fixed entry point
function withdrawTo(
        address payable withdrawAddress,
        uint256 amount
    ) public override nonReentrant {
        if (withdrawAddress == address(0)) revert CanNotWithdrawToZeroAddress();
        uint256 currentBalance = paymasterIdBalances[msg.sender];
        if (amount > currentBalance)
            revert InsufficientBalance(amount, currentBalance);
        paymasterIdBalances[msg.sender] =
            paymasterIdBalances[msg.sender] -
            amount;
        entryPoint.withdrawTo(withdrawAddress, amount);
        emit GasWithdrawn(msg.sender, withdrawAddress, amount);
    }

Now let's take this case by case.
if there is new entry point, we set it as one of the active entry points in paymaster

Transaction request comes from a wallet that hasn't upgraded the entry point. (request could be to upgrade implementation itself or any transaction intended to go via gasless flow)

entry point calls validateUserOp on wallet (wallet already trusts EP) then calls validatePaymasterUserOp (our singleton PM with EP mapping already trusts EP) and it's deposited on EP immutable so validatePaymasterPrepayment would work.

now let's say upgrade has happened (say above tx was Impl upgrade). our wallet has new implementation that has new EP. now in sdk to bundler we send transaction on this new EP.
new EP calls validateUserOp on wallet (wallet already trusts EP) [ works because paymasterAndData != '0x' (if it was wallet deposit flow wallets would need to deposit on new EP)  ], but thats not important, next thing new EP will call validatePaymasterUserOp (our singleton PM with EP mapping already trusts EP) but validatePaymasterPrepayment would fail because we haven't shifted our deposit from immutable EP to next one we support or next to next one.
Trying to point gas accounting problem on EP and what would be impact on these functions deposit and withdraw.

from Fillip :
We can just make a handy way for a dapp to manage balances between two paymasters along with the stats of what % of users have upgraded to new EP=New Paymaster and what % have not.
it's not a big deal if not upgraded wallets will have limited functionality.
However, how do we manage the upgrade itself, as it should go through paymaster as well. If we switch the EP in the Paymaster, they won't be able to upgrade via sponsored txn
if we just keep EP mutable, and change it, that will make the wallets that has not upgraded yet not capable to be used with the Paymaster


C\task\MergeList.c

Complete the task and attach a screenshot of your code and output. You may take the input yourself according to the task.

can you assign me this issue?


add the gdk_set_allowed_backends function

Add the gdk_set_allowed_backends function.

you're missing a cast (see travis error report)


Updated link to elevation enum in README.md

Small change, just fixing a dead link.

Awesome thank you @micflan!