text:
MM-15635 - Making markdown tables more responsive

Summary
Adds more responsiveness to markdown tables
Ticket Link
Fixes https://github.com/mattermost/mattermost-server/issues/11949
Checklist

[x] Has UI changes

Device Information
This PR was tested on:

Google Pixel 3 Emulator (Android 9)

Screenshots

Channel view:

Full table view:

As flexbox

Fixed cell width (pannable)

Landscape

@avasconcelos114 thanks for the PR! @enahum can we build this for PR testing?

Build Apps for PR label detected. Will generate the app if build succeeds (checks pass and no conflicts with base branch).

Android build App: https://releases.mattermost.com/mattermost-mobile-pr/PR-3249/Mattermost_Beta.apk)
iOS build App: itms-services://?action=download-manifest&url=https://releases.mattermost.com/mattermost-mobile-pr/PR-3249/Mattermost_Beta.plist

Queued for QA review to test different table sizes, screen sizes and device orientations

Made a few more changes regarding variable names and adding new styles to the StyleSheet
Though in cases where we get the width value from the getTableWidth function I still had to keep it as {width: this.getTableWidth()}. If there are any better ways to handle these cases let me know :)

Thank you Andre for your contribution!

Header should have background color

1-column span should take up max column width

3-column span should not show fade on right side

On full screen view, Height should be based on cell height

On full screen view, should respect safe area view on landscape

Thank you for the feedback!
I'm working on those but I can't help but feel like there is a bit of conflict from between what's in the design specs and what you mentioned on item 2, as the specs say a 1 column table should only expand up to the maximum width of 192dp
Should I just have 1 column tables display as a flexbox anyway? (not a hard fix at all but I just want to be sure it conforms to UX specifications)

Patched up all the other items first and tables should be looking a bit better than before now

Thank you for testing things out on iOS and finding those issues :)
Let me know how to handle the 1-column tables

Thanks Andre.  For item 1, that's good point.  I'll defer to @andrewbrown00 on what is the max column with for 1-column span table.

@avasconcelos114 thanks for the contribution here 😄. Here are the specs for a single column:
Min: 96pd
Max: 192dp

At first I thought it was only the horizontal padding that needed to be changed to 8, but then I realized it was both, and replaced those two to a single padding: 8 value
Sorry about the commit mess

Resolved conflicts with https://github.com/mattermost/mattermost-mobile/pull/3280 and made sure both functionalities worked properly together (more testing needed to be sure)

Hello Andre, sorry for the delay as I was out last week.  Looking into this now.

No worries!
Let me know if anything needs to be fixed :+1:

Hello Andre, please see reviews.
Portrait view:

4-column table in fullscreen view - not enough space on right side nor scrollable

5 or more columns don't have expand button

Landscape view (not specified in the design but may be improved)
3. Does not fill available space in center view

Issues on Android:

Expand button is not per design.  And when pressed/tapped, the button's ripple effect is observed across the width of center view

Cells with different width caused to render unaligned column in fullscreen table view.

Added a new commit that should have done the following things:

Fixed issue where a 4-column table renders beyond device width in full table view
Fixed issue where the expand button isn't rendered correctly in tables with 5+ columns
Changed rules for how to render tables in landscape view (Would be good to have some insight from UI/UX designers on what's the preferred behavior)
Separated table views between android/iOS to allow for platform specific styling
Fixed expand buttons not rendering correctly on android
Changed display type of expand button, so that the icon can be centrally positioned instead of relying on fixed padding values

Great catches on all these issues btw! :)
I'll be sure to start testing on both iOS and Android before pushing anything new

Build Apps for PR label detected. Will generate the app if build succeeds (checks pass and no conflicts with base branch).

Build the App failed. See the logs for more information.

Build the App failed. See the logs for more information.

Build Apps for PR label detected. Will generate the app if build succeeds (checks pass and no conflicts with base branch).

Android build App: https://releases.mattermost.com/mattermost-mobile-pr/PR-3249/Mattermost_Beta.apk)
iOS build App: itms-services://?action=download-manifest&url=https://releases.mattermost.com/mattermost-mobile-pr/PR-3249/Mattermost_Beta.plist

Merged back the full table view into a single file, using the method suggested by Elias to use separate styles depending on which platform is being used

Rebased and resolved a small conflict with package-lock.json

Btw, @esethna is out this week. He should be back to review this next week.

@esethna please review

@enahum when you have a chance can you rebuild with the new signing changes?

Ran another rebase to make sure there won't be conflicts or issues building

Oddly only the iOS app is failing to build, issues seem unrelated to this particular PR but if there's anything I can do to fix this let me know! :)

I’m looking into it

Alright, I was able to build it https://community.mattermost.com/core/pl/gwku9f359pdxmqy9zrpktj4y1h
for some reason the only way to build it successfully was to ssh into the box, will look into this further to fix it properly

@avasconcelos114 this is being cut from the release sadly we did not have the time to properly tested and should be included for 1.28.
Regardless of that can you please merge master so we can merge this as soon as it gets tested

Ah yep, no worries!
Right now I'm merging back and resolving conflicts that happened with the other changes to the markdown table

Looks good overall, a couple comments:

It would be nice to have dynamic sizing on columns if there are 5 or more, since at a fixed width if the columns have very little data there is significant blank space
I would expect to be able to scroll a table by dragging anywhere on the full screen table view (even if it's the blank space below the table), right now I can only drag on the table itself. Is there a technical restriction here or is there something we can do to make that a better experience.

@andrewbrown00 can you please re-review this as you worked on the designs.

Thanks for the feedback!

There's a bit of a limitation here because the tables don't really know how much content each cell has, and every single cell has to be fixed at the same width values to make it look table-like. But I could switch to using the minimum cell width (96) instead of maximum cell width (192) value if necessary

That's a good point, I'm pretty sure I can fix it to make it scrollable through the entire area instead

Made some changes with the latest commit:

Made the full table view scrollable through any part of the screen, as opposed to only the table area
Resolved conflicts with PR that limits tables to 5 columns visible on channel view

Things that will need to be reviewed/discussed are:

I did manage to make the full table view scrollable through the entire area on iOS, but the same method does not apply for Android (some complications happen due to the fact that Android requires two stacked ScrollView elements to allow for vertical and horizontal scrolling.
I took the liberty to add some logic that renders the moreRight element when columns of a table get cut off, as a sign that if a user taps that table they'll be able to see the remaining columns.

In the picture here you see a table with 5 columns (above) and one with 6 columns (below)

Let me know what you guys think!

Thanks Andre, your points above make sense!
@enahum can you fire another build when you have a chance?

Hey @avasconcelos114 can you please help resolve the conflicts so we can finally have this beauty merged ? Thanks

authors: andrewbrown00 avasconcelos114 enahum esethna hmhealey mattermod saturninoabril

repo: mattermost/mattermost-mobile


text:
Fix new message indicator not showing for webhook messages to webhook owner

Summary
The new message indicator has a special case for messages posted by the
current user. Currently, webhook messages are attributed to its creator,
which breaks the new message indicator.
Ticket Link
Fixes https://github.com/mattermost/mattermost-server/issues/14612

This issue has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!
/cc @jasonblais @hanzei

@hmhealey @devinbinnie please help review when you have the chance?
@WGH- deep apologies for this long review time..

@WGH- To get this tested by QA and in-use in the web app, we'll need a PR submitted against https://github.com/mattermost/mattermost-webapp to update the version of mattermost-redux in the package.json. Would you be available to submit that? If not, one of us can do it easily enough.

@hmhealey I'll be able to do that not earlier than Monday. I'll only have to update the commit hash in the mattermost-redux line, correct?

By the way, when your webhook mentions someone who is not in the channel, you'll see "were mentioned but they are not in the channel. Would you like to add them to the channel?" message (which I think was intended when you mention someone yourself, not your webhook). This's a similar problem caused by webhook messages being attributed to its owner. Maybe in the long run it would be better to break this attribution. Just saying.

@hmhealey I'll be able to do that not earlier than Monday. I'll only have to update the commit hash in the mattermost-redux line, correct?

Yeah, that's correct. For now, you can point it the latest commit in this branch, and then once this PR is tested and merged, we can point it to the merged commit.

By the way, when your webhook mentions someone who is not in the channel, you'll see "were mentioned but they are not in the channel. Would you like to add them to the channel?" message (which I think was intended when you mention someone yourself, not your webhook). This's a similar problem caused by webhook messages being attributed to its owner. Maybe in the long run it would be better to break this attribution. Just saying.

Unfortunately, having webhooks owned by users is a key part of our Slack-compatibility that we try for, although it obviously causes a lot of problems like these 😛. I didn't know that it was causing the out-of-channel-mention message though. I don't think any of us noticed since most of our webhooks are owned by bots or by dedicated accounts. I'll file another ticket for that.

@jgilliam17 This PR can be tested here: https://github.com/mattermost/mattermost-webapp/pull/6116

source: gharchive/pull-request

authors: WGH- hmhealey jasonblais mattermod

repo: mattermost/mattermost-redux

license_type: permissive

license_source: github-api


text:
Add support for Dictionary (and for all other data)

Add examples for Dictionary and JsonExtensionDataAttribute

Discussion here: https://github.com/mattfrear/Swashbuckle.AspNetCore.Examples/issues/39

Thank you for your PR. You can ignore that AppVeyor build failure, I haven't spent any time setting that up correctly.
Can you add unit tests for any new features? I admit the test coverage isn't that great on this project, that is because I created the test infrastructure and wrote the first tests after the code had already been written. But any new code should have tests.

I have added a unit test to your PR and merged it in. The code has been released https://www.nuget.org/packages/Swashbuckle.AspNetCore.Examples/2.9.0
Thanks for the PR!

authors: antonGritsenko mattfrear

license: mit

license_source: bigquery


text:
A server-side implementation of window.fetch

https://github.com/bitinn/node-fetch
To me the idea of running browser polyfill on node seems weird, so I decide to make a server-side only version, I would be glad if it turns out to be useful at all.

Nice!

I'll switch to it asap.  I still think there's value in the isomorphic-ness of this library but it would so good to drop the XMLHttpRequest polyfill—we've found loads of issues with it and it doesn't seem actively maintained anymore :disappointed:.

Yeah, I was thinking along the same line: not even browser vendors managed to have a consistent XMLHttpRequest implementation across the board, let's not tackle that burning mountain.

released in v2.0.0

source: gharchive/issue

authors: bitinn matthew-andrews

repo: matthew-andrews/isomorphic-fetch


text:
What is a "Region"?

https://feincms3.readthedocs.io/en/latest/ref/regions.html
Please start with the bird-eye-perspective on this page: What is a Region?

Do you think the first paragraph on https://feincms3.readthedocs.io/en/latest/guides/templates-and-regions.html is clearer? If yes I should at least add links referencing the "guides" part of the documentation from the autogenerated API docs.

Sorry, your link talks about Regions, but it does not explain what a Region is.

A region is a concept which allows to structure a single web page (or: the template for a single web page) into parts which then can be filled with arbitrary 'plugins'. As a second aspect regions have additional configuration options, e.g. you can restrict which plugins are avaible in the backend per region.
We also used regions to implement filtering of plugins or other kinds of preparations. E.g. a special case for a "references" region:exclude any plugins of type "footnote", also make a virtual region named "footnotes".

What @sha-red said is absolutely correct.
The Region class is described a here https://django-content-editor.readthedocs.io/en/latest/#parts but unfortunately this document doesn't explain what a Region should be either, just what its attributes are.

authors: guettli matthiask sha-red


text:
Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

I rewrite Scala Syntax from https://www.scala-lang.org/files/archive/spec/2.12/13-syntax-summary.html, When i run it by ebnf2railroad a.ebnf a.html,it give me the error as follow:
<--- Last few GCs --->

[5896:0000023FA41A0230]    92478 ms: Scavenge 1384.6 (1430.1) -> 1376.9 (1431.1) MB, 3.3 / 0.0 ms  (average mu = 0.194, current mu = 0.162) allocation failure
[5896:0000023FA41A0230]    92496 ms: Scavenge 1384.8 (1431.1) -> 1377.1 (1432.1) MB, 3.6 / 0.0 ms  (average mu = 0.194, current mu = 0.162) allocation failure
[5896:0000023FA41A0230]    92512 ms: Scavenge 1385.0 (1432.1) -> 1377.4 (1434.1) MB, 3.4 / 0.0 ms  (average mu = 0.194, current mu = 0.162) allocation failure

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x01abe869e6e9 <JSObject>
    0: builtin exit frame: concat(this=0x00c4875194b9 <JSArray[35]>,0x02dccdfe4a79 <String[6]: letter>,0x00c4875194b9 <JSArray[35]>)

    1: /* anonymous */ [000000C487519591] [C:\Users\Administrator\AppData\Roaming\npm\node_modules\ebnf2railroad\src\toc.js:~26] [pc=000003686F5F0EA4](this=0x038159a8d5e1 <JSGlobal Object>,child=0x02dccdfe7219 <String[6]: letter>)
    2: arguments adaptor frame: 3...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 00007FF7CE04F04A v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+5114
 2: 00007FF7CE02A0C6 node::MakeCallback+4518
 3: 00007FF7CE02AA30 node_module_register+2032
 4: 00007FF7CE2B20EE v8::internal::FatalProcessOutOfMemory+846
 5: 00007FF7CE2B201F v8::internal::FatalProcessOutOfMemory+639
 6: 00007FF7CE7D2BC4 v8::internal::Heap::MaxHeapGrowingFactor+9556
 7: 00007FF7CE7C9C46 v8::internal::ScavengeJob::operator=+24310
 8: 00007FF7CE7C829C v8::internal::ScavengeJob::operator=+17740
 9: 00007FF7CE7D0F87 v8::internal::Heap::MaxHeapGrowingFactor+2327
10: 00007FF7CE7D1006 v8::internal::Heap::MaxHeapGrowingFactor+2454
11: 00007FF7CE38CBE8 v8::internal::Factory::AllocateRawArray+56
12: 00007FF7CE38D562 v8::internal::Factory::NewFixedArrayWithFiller+66
13: 00007FF7CE4733BB v8::internal::CodeStubAssembler::ConstexprBoolNot+18955
14: 00007FF7CE473EFE v8::internal::CodeStubAssembler::ConstexprBoolNot+21838
15: 00007FF7CE473CEB v8::internal::CodeStubAssembler::ConstexprBoolNot+21307
16: 000003686F35C721

So,i think whether it's better to change loop.
The a.ebnf as  follow:
unicode escape = "\", "u", { "u" }, hex digit, hex digit, hex digit, hex digit;
hex digit      = "0" | "1" | "2" | "3" | "4" | "5" | "6"| "7" | "8" | "9" | "A" | "B" | "C" | "D" | "E" | "F" |  "a" | "b" | "c" | "d" | "e" | "f" ;
(*
  Lexical Syntax
  ================================
*)
white space       =  "\u0020" | "\u0009" | "\u000D" | "\u000A" ;
upper            =  "A" | "B" | "C" | "D" | "E" | "F" | "G"
  | "H" | "I" | "J" | "K" | "L" | "M" | "N"
  | "O" | "P" | "Q" | "R" | "S" | "T" | "U"
  | "V" | "W" | "X" | "Y" | "Z" | "$" | "_" ;
(*
>upper 也包含 Unicode category Lu
*)
lower            =  "a" | "b"
  | "c" | "d" | "e" | "f" | "g" | "h" | "i"
  | "j" | "k" | "l" | "m" | "n" | "o" | "p"
  | "q" | "r" | "s" | "t" | "u" | "v" | "w"
  | "x" | "y" | "z" ;
(*
>lower 也包含 Unicode category Ll
*)
letter           =  upper | lower;
(*
>letter 包含 Unicode categories Lo, Lt, Nl ;
*)
paren            =  "(" | ")" | "[" | "]" | "{" | "}" ;
delim            =  "`" | "'" | '"' | "." | ";" | "," ;
opchar           = white space | upper | lower | letter | digit | paren | delim | opchar | "Unicode_Sm" | "Unicode_So";
printable char    =  "all characters in [\u0020, \u007F] inclusive";
char escape seq    = "\", ("b" | "t" | "n" | "f" | "r" | '"' | "'" | "\") ;
op              =  opchar, {opchar} ;
varid            =  lower, idrest ;
plainid          =  upper, idrest |  varid |  op ;
id               =  plainid  |  "`" , { "char no back quote or newline" | unicode escape | char escape seq } ,"`" ;
idrest           =  {letter | digit} ,["_" , op] ;
integer literal   =  (decimal numeral | hex numeral) ,["L" | "l"] ;
decimal numeral   =  "0" | non zero digit ,{digit} ;
hex numeral       =  "0" ,("x" | "X"), hex digit ,{hex digit} ;
digit            =  "0" | non zero digit ;
non zero digit     =   "1" | "2" | "3" | "4" | "5" | "6"| "7" | "8" | "9" ;

floating point literal =  digit ,{digit} ,"." ,digit ,{digit} ,[exponent part], [float type]
                  |  "." ,digit, {digit}, [exponent part], [float type]
                  |  digit, {digit} ,exponent part, [float type]
                 |  digit ,{digit}, [exponent part], float type ;
exponent part     =  ("E" | "e") ,["+" | "-"], digit, {digit} ;
float type        =  "F" | "f" | "D" | "d" ;
boolean literal   =  "true" | "false" ;
character literal =  "'", ("char no quote or newline" | unicode escape | char escape seq) ,"'" ;
string literal    =  '"', {string element} ,'"'
                 |  '"""' ,multi line chars, '"""' ;
string element    =  "char no double quote or newline"
                 |  unicode escape
                 |  char escape seq ;
multi line chars   =  {['"'], ['"'], "char no double quote"}, {'"'} ;
symbol literal    =  "'", plainid ;
comment          =  "/*", "any sequence of characters; nested comments are allowed", "*/"
                 |  "//" ,"any sequence of characters up to end of line" ;
nl               =  "newlinecharacter" ;
semi             =  ";" |  nl, {nl} ;
(*
  Context-free Syntax
  ================================
*)
literal           =  ['-'], integer literal
                    |  ['-'], floating point literal
                    |  boolean literal
                    |  character literal
                    |  string literal
                    |  symbol literal
                    |  "null" ;
qual id            =  id ,{'.', id} ;
ids               =  id ,{',', id} ;
path              =  stable id
                    |  [id ,'.'] ,'this' ;
stable id          =  id
                    |  path ,'.', id
                    |  [id, '.'] ,'super', [class qualifier], '.', id ;
class qualifier    =  '[', id ,']' ;
type              =  function arg types ,"=>", type
                    |  infix type ,[existential clause] ;
function arg types  = infix type
                    | "(", [ param type, {"," ,param type } ] ,")" ;
existential clause =  "forSome", "{", existential dcl, {semi ,existential dcl} ,"}" ;
existential dcl    =  "type", type dcl
                    |  "val" ,val dcl ;
infix type         =  compound type ,{id ,[nl], compound type} ;
compound type      =  annot type ,{"with" ,annot type}, [refinement]
                    |  refinement ;
annot type         =  simple type, {annotation} ;
simple type        =  simple type, type args
                    |  simple type, "#", id
                    |  stable id
                    |  path ,"." ,"type"
                    |  "(", types ,")" ;
type args          =  "[", types ,"]" ;
types             =  type, {"," ,type} ;
refinement        =  [nl], "{", refine stat, {semi ,refine stat} ,"}" ;
refine stat        =  dcl  |  "type" ,type def ;
type pat           =  type ;
ascription        =  ":", infix type
                    |  ":", annotation, {annotation}
                    |  ":", "_", "*" ;
expr              =  (bindings | ["implicit"], id | "_") ,"=>", expr
                    |  expr1 ;
expr1             =  "if", "(", expr ,")" ,{nl} ,expr ,[[semi] ,"else", expr]
                    |  "while", "(" ,expr ,")", {nl}, expr
                    |  "try" ,("{", block, "}" | expr), ["catch", "{", case clauses ,"}"] ,["finally" ,expr]
                    |  "do", expr ,[semi] ,"while", "(", expr ,")"
                    |  "for", ("(", enumerators ,")" | "{", enumerators ,"}") ,{nl} ,["yield"] ,expr
                    |  "throw", expr
                    |  "return" ,[expr]
                    |  [simple expr, "."] ,id ,"=" ,expr
                    |  simple expr1, argument exprs, "=", expr
                    |  postfix expr
                    |  postfix expr ,ascription
                    |  postfix expr ,"match" ,"{" ,case clauses ,"}" ;
postfix expr       =  infix expr ,[id ,[nl]] ;
infix expr         =  prefix expr
                    |  infix expr ,id ,[nl] ,infix expr ;
prefix expr        =  ["-" | "+" | "~" | "!"] ,simple expr ;
simple expr        =  "new" ,(class template | template body)
                    |  block expr
                    |  simple expr1 ,["_"] ;
simple expr1       =  literal
                    |  path
                    |  "_"
                    |  "(" ,[exprs] ,")"
                    |  simple expr ,"." ,id
                    |  simple expr ,type args
                    |  simple expr1 ,argument exprs
                    |  "xml expr" ;
exprs             =  expr ,{"," ,expr} ;
argument exprs     =  "(" ,[exprs] ,")"
                    |  "(" ,[exprs ,","] ,postfix expr ,":" ,"_" ,"*" ,")"
                    |  [nl] ,block expr ;
block expr         =  "{" ,case clauses ,"}"
                    |  "{" ,block ,"}" ;
block             =  block stat ,{semi ,block stat}, [result expr] ;
block stat         =  import
                    |  {annotation} ,["implicit" | "lazy"] ,def
                    |  {annotation} ,{local modifier} ,tmpl def
                    |  expr1 ;
result expr        =  expr1
                    |  (bindings | (["implicit"], id | "_"), ":", compound type) ,"=>", block ;
enumerators       =  generator ,{semi ,generator} ;
generator         =  pattern1 ,"<-", expr ,{[semi] ,guard | semi ,pattern1 ,"=" ,expr} ;
case clauses       =  case clause ,{ case clause } ;
case clause        =  "case" ,pattern ,[guard] ,"=>" ,block ;
guard             =  "if", postfix expr ;
pattern           =  pattern1 ,{ "|", pattern1 } ;
pattern1          =  varid ,":", type pat
                    |  "_" ,":" ,type pat
                    |  pattern2 ;
pattern2          =  varid ,["@", pattern3]
                    |  pattern3 ;
pattern3          =  simple pattern
                    |  simple pattern ,{ id ,[nl] ,simple pattern } ;
simple pattern     =  "_"
                    |  varid
                    |  literal
                    |  stable id
                    |  stable id ,"(" ,[patterns] ,")"
                    |  stable id ,"(" ,[patterns ,","], [varid ,"@"] ,"_" ,"*" ,")"
                    |  "(" ,[patterns] ,")"
                    |  "xml pattern" ;
patterns          =  pattern ,["," ,patterns]
                    |  "_" ,"*" ;
type param clause   =  "[", variant type param ,{",", variant type param} ,"]" ;
funtype param clause=  "[" ,type param ,{"," ,type param} ,"]" ;
variant type param  =  {annotation} ,["+" | "-"] ,type param ;
type param         =  (id | "_"), [type param clause] ,[">:", type], ["<:" ,type] ,{"<%" ,type}, {":", type} ;
param clauses      =  {param clause} ,[[nl] ,"(", "implicit", params ,")"] ;
param clause       =  [nl], "(" ,[params] ,")" ;
params            =  param ,{",", param} ;
param             =  {annotation} ,id ,[":", param type] ,["=" ,expr] ;
param type         =  type
                    |  "=>", type
                    |  type ,"*" ;
class param clauses =  {class param clause} , [[nl] ,"(" ,"implicit" ,class params ,")"] ;
class param clause  =  [nl] ,"(", [class params] ,")" ;
class params       =  class param ,{"," ,class param} ;
class param        =  {annotation} ,{modifier} , [("val" | "var")] , id ,":" ,param type ,["=" ,expr];
bindings          =  "(" ,binding ,{"," ,binding} ,")" ;
binding           =  (id | "_") ,[":" ,type] ;
modifier          =  local modifier
                    |  access modifier
                    |  "override" ;
local modifier     =  "abstract"
                    |  "final"
                    |  "sealed"
                    |  "implicit"
                    |  "lazy" ;
access modifier    =  ("private" | "protected") ,[access qualifier] ;
access qualifier   =  "[" ,(id | "this") ,"]" ;
annotation        =  "@" ,simple type ,{argument exprs} ;
constrannotation  =  "@" ,simple type ,argument exprs ;
template body      =  [nl] ,"{" ,[self type] ,template stat, {semi ,template stat} ,"}" ;
template stat      =  import
                    |  {annotation ,[nl]} ,{modifier} ,def
                    |  {annotation ,[nl]} ,{modifier} ,dcl
                    |  expr ;
self type          =  id ,[":" ,type] ,"=>"
                    |  "this" ,":" ,type ,"=>" ;
import            =  "import", import expr ,{"," ,import expr} ;
import expr        =  stable id ,"." ,(id | "_" | import selectors) ;
import selectors   =  "{" ,{import selector ,","} ,(import selector | "_") ,"}" ;
import selector    =  id ,["=>" ,id | "=>" ,"_"] ;
dcl               =  "val" ,val dcl
                    |  "var" ,var dcl
                    |  "def" ,fun dcl
                    |  "type" ,{nl} ,type dcl ;
val dcl            =  ids ,":" ,type ;
var dcl            =  ids ,":" ,type ;
fun dcl            =  fun sig ,[":" ,type] ;
fun sig            =  id ,[funtype param clause] ,param clauses ;
type dcl           =  id ,[type param clause] ,[">:" ,type] ,["<:" ,type] ;
pat var def         =  "val" ,pat def
                    |  "var" ,var def ;
def               =  pat var def
                    |  "def" ,fun def
                    |  "type" ,{nl} ,type def
                    |  tmpl def ;
pat def            =  pattern2 ,{"," ,pattern2} ,[":" ,type] ,"=" ,expr ;
var def            =  pat def
                    |  ids ,":" ,type ,"=" ,"_" ;
fun def            =  fun sig ,[":" ,type] ,"=" ,expr
                    |  fun sig ,[nl] ,"{" ,block ,"}"
                    |  "this" ,param clause ,param clauses ,("=" ,constr expr | [nl] ,constr block) ;
type def           =  id ,[type param clause] ,"=" ,type ;
tmpl def           =  ["case"] ,"class" ,class def
                    |  ["case"] ,"object" ,object def
                    |  "trait" ,trait def ;
class def          =  id ,[type param clause] ,{constrannotation}, [access modifier] ,class param clauses ,class template opt ;
trait def          =  id ,[type param clause] ,trait template opt ;
object def         =  id ,class template opt ;
class template opt  =  "extends" ,class template | [["extends"] ,template body] ;
trait template opt  =  "extends" ,trait template | [["extends"] ,template body] ;
class template     =  [early defs], class parents, [template body] ;
trait template     =  [early defs], trait parents ,[template body] ;
class parents      =  constr ,{"with" ,annot type} ;
trait parents      =  annot type ,{"with" ,annot type} ;
constr            =  annot type ,{argument exprs} ;
early defs         = "{" ,[early def ,{semi ,early def}] ,"}" ,"with" ;
early def          =  {annotation ,[nl]} ,{modifier} ,pat var def ;
constr expr        =  self invocation
                    |  constr block ;
constr block       =  "{" ,self invocation ,{semi ,block stat} ,"}" ;
self invocation    =  "this" ,argument exprs ,{argument exprs} ;
top stat seq        =  top stat, {semi ,top stat} ;
top stat           =  {annotation ,[nl]} ,{modifier} ,tmpl def
                    |  import
                    |  packaging
                    |  package object ;
packaging         =  "package" ,qual id ,[nl] ,"{" ,top stat seq ,"}" ;
package object     =  "package" ,"object" ,object def ;
compilation unit   =  {"package" ,qual id ,semi} ,top stat seq ;

Thanks for the use-case, I will investigate

authors: blaspheme matthijsgroen

license: MIT


text:
fix: handle translate3d transforms on resizable elements

Hi there! First of all thanks for the directive! Its been very useful.
I Checked the pull requests and saw that there was a pull request rejected for exacly the problem i was facing using the resizable with angular cdk drag-drop. So i made the fix in a slightly different way so it doesn't break the test with the regular "translate" and made a test case for the "translate3d".
Hope it helps!

Released as 3.3.1, thanks for your contribution! 😄


text:
xml element not included in encoded response sent to server

I noticed that this library isn't including the standard <?xml [...]?> element, which is required by many xmlrpc servers/other parsers. The xmlrpc spec doesn't define this as optional.
I've submitted PR https://github.com/mattn/go-xmlrpc/pull/6 which fixes this, as well as adds additional minor http improvements for those using this for highly concurrent environments.

also example, of how another library does it:
github.com/kolo/xmlrpc:
<?xml version="1.0" encoding="UTF-8"?><methodCall><methodName>your.method</methodName><params><param><value><string>somevalue</string></value></param><param><value><string>somevalue</string></value></param></params></methodCall>

github.com/mattn/go-xmlrpc:
<methodCall><methodName>your.method</methodName><params><param><value><string>somevalue</string></value></param><param><value><string>somevalue</string></value></param></params></methodCall>

PR https://github.com/mattn/go-xmlrpc/pull/6 has been merged, however I'll leave this open just in case there is anything else you'd like to get to in regards to your comments on the PR.

closed by https://github.com/mattn/go-xmlrpc/pull/6

authors: lrstanley mattn

repo: mattn/go-xmlrpc


text:
Not working anymore for our Rails 4 app

It seems this gem has stopped working for our Rails app at some point. Assets are not compressed, I only see uncompressed load times with chrome:

Here is the top part of our middleware stack:
use UTF8Cleaner::Middleware
use Rack::Sendfile
use ActionDispatch::Static
use Rack::Cache
use Rack::Deflater
use HerokuRailsDeflate::ServeZippedAssets
use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x007f520e8b62a0>
use Rack::Runtime
use Rack::MethodOverride
use ActionDispatch::RequestId
use Rails::Rack::Logger
use ActionDispatch::ShowExceptions

We have setup the config like in your readme.
Any idea what is going wrong? We use Rails 4.1.1.

@ncri, I agree with laertiades: HerokuRailsDeflate::ServeZippedAssets must appear before ActionDispatch::Static in the middleware stack.  And for my Rails 4 apps, it does -- works out of the box.

Wel, you might be right, I haven't looked into this anymore, as we have another working solution now, as I wrote.
If your idea works, that should be mentioned in the readme. Because out of the box it doesn't work for me.

I can report that I am using this gem on Heroku with Rails 4.2.1 and seems to work OK. I made a quick test using http://www.webpagetest.org/

authors: AlexEscalante mcary ncri


text:
Failing to parse the compile commands DB

Hello!
Thanks for a fantastic tool! However, I tried to integrate ctcache into my project and experienced the following issue. _load_compile_command_db fails silently when trying to parse the JSON. The problem seems so be that the backslashes are not escaped properly: Expecting ',' delimiter: line 1094 column 151 (char 232775). The compile_commands.json file causing the error is attached.
Getting rid of replace in _load_compile_command_db seems to work as a temporary workaround for me:
def _load_compile_command_db(self, filename):
    try:
        f = open(filename)
        self._compile_commands_db = json.loads(f.read())
        f.close()
    except Exception:
        return False

Also, I think that it would probably be better to explicitly signal about JSON parsing errors instead of silently suppressing them.
compile_commands.json.txt

Hi, thanks for the report! I've pushed some small changes to main. Please test and let me know if it helps.

Unfortunately, now it fails with [build] Loading compile command DB failed: NameError("name 'j' is not defined")
compile_commands.json.txt

Ugh, bad copy-pasta, should be fixed now

Now it works, thanks!

authors: ZeronSix matus-chochlik

repo: matus-chochlik/ctcache


text:
🛑 API announcement - PROD is down

In a609268, API announcement - PROD (https://announcement.prod.api.eflow.com.ar/swagger) was down:

HTTP code: 0
Response time: 0 ms

Resolved: API announcement - PROD is back up in fecb7fe.

repo: mauribesson/upptime


text:
The ImgurAlbum plugin is totally broken; the Imgur API v2 is gone. ImgurPage is unaffected.

The new version uses oauth and looks like it requires API keys even for basic things.
https://api.imgur.com/

Should be fixed now.

authors: mauricesvay zpmorgan

repo: mauricesvay/ImageResolver


text:
Resizing Handles are not displayed when using a custom scoped style

Hi
Using the component in a vue application with scoped style tag, resizing handles are not displayed. If I choose a class-name-handle style, they are not displayed as well.
<template>

      <vue-draggable-resizable :w="400" :h="400" :parent="true" :debug="false" :min-width="200" :min-height="200" class-name-handle="my-handle-class">

vue-draggable-resizable

      </vue-draggable-resizable>

</template>

The issue can be reproduced using attached App.vue (derivated from source App.vue)
App.vue.txt
Jeremie

Of course. scoped adds the class to the component only when the style declaration matches the class attribute. In this case you are passing a prop to the component so Vue is unaware of your intentions.
You can solve this problem by using deep selectors, so you can apply scoped classes to child elements.
<template>

      <vue-draggable-resizable class="custom-handles" :w="400" :h="400" :parent="true" :min-width="200" :min-height="200" class-name-handle="my-handle-class">

vue-draggable-resizable

      </vue-draggable-resizable>

</template>

This way .custom-handles >>> .my-handle-class will compile to something like .custom-handles[data-v-7ba5bd90] .my-handle-class allowing you to apply the style to the child element.

Hi
Yes you're right.
I have forgotten this feature. It's working this way.
Thank you.
I close this issue

authors: jeremco mauricius

repo: mauricius/vue-draggable-resizable


text:
Guide/example for creating plugins

Dronecore is the officially supported layer for providing access to PX4, via MAVLink (of course there are other integration points, like the RTSP bridge). We're expecting others to extend the API via plugins, for example, to add support for peripherals that interact with the system via custom MAVLink messages.
We need a simple but realistic example of a plugin and an associated guide that shows how it works/what you need to do to write one.

More than 3 years later this will be covered by mavlink/MAVSDK-docs#219.

authors: hamishwillee julianoes

repo: mavlink/MAVSDK


text:
RGB value don't correspond to official sheet

Hey there !
I am doing an app to calculate euclidian distance between two colors in order to find witch bead color is closest to a given color (chances are this is exactly what you're doing with your beadifier but it's a school project and i found out about yours way too late ahah)
So I needed beads references and values and ended up on your beadcolors online page (which is really great 👌).
I gathered all values and made a json but i need the RGB values.
I converted the hex values to RGB and added them to my objects smoothly.
But then i compared the RGB values i got to the actual values given by the brand Artkal and they don't match.
For example :
your S01 - White - #EAEEF3 - r:234 g:238 b:243 while artkal gives r:255 g:255 b:255
your S02 - Burning Sand - #EE927C - r:238 g:146 b:124 while artkal gives r:255 g:263 b:139 (I realize as i write that 263 makes absolutly no sense)
your S03 - Tangerine - #FFA630 - r:255 g:166 b:48 while artkal gives r:246 g:176 b:76
Every color I checked at random was different
Do you have any idea where these differences could come from ? I don't how who to trust ahah (given that artkal sheet feels sketchy with its 263)
Hopping we can get to the bottom of this :)
Have a nice one !

just realized you could have got thr rgb values from your raw files 🤦♂ (but the problem is still the same)

@Oznerologos Extremely late reply here, apologies.
All the data from this repository are crunched and compiled based on several GSheets and references I could find on the internet (Reddit most likely). Some people out there use a color muse to gather this data. You can find more information by looking at the contributor name (last column from the website) in reddit (most likely in /r/beadsprites).
I'm not sure exactly when Artkal started providing their own value, but I'm pretty there weren't available at the time and the community came up with their own list.

authors: Oznerologos maxcleme

repo: maxcleme/beadcolors


text:
Solve “500 Internal Server Error”

Solve
I tried to post articles via python but there are errors why
Can help me, thank you
Error message:
Traceback (most recent call last):
File "/Users/apple/PycharmProjects/爬虫学习/wordpress.py", line 17, in
client.call(NewPost(post))
File "/Users/apple/anaconda3/lib/python3.6/site-packages/wordpress_xmlrpc/base.py", line 37, in call
raw_result = server_method(*args)
File "/Users/apple/anaconda3/lib/python3.6/xmlrpc/client.py", line 1112, in call
return self.__send(self.__name, args)
File "/Users/apple/anaconda3/lib/python3.6/xmlrpc/client.py", line 1452, in __request
verbose=self.__verbose
File "/Users/apple/anaconda3/lib/python3.6/xmlrpc/client.py", line 1154, in request
return self.single_request(host, handler, request_body, verbose)
File "/Users/apple/anaconda3/lib/python3.6/xmlrpc/client.py", line 1187, in single_request
dict(resp.getheaders())
xmlrpc.client.ProtocolError: <ProtocolError for www.地址.com/xmlrpc.php: 500 Internal Server Error>

A 500 error is being returned from your server. You'll have to check your server logs to understand what the issue is, it's impossible to diagnose from the client library.

authors: maxcutler xiaoxixiaoxi

repo: maxcutler/python-wordpress-xmlrpc


text:
Simple meshing functionality - 1-sided, 2-sided hyperbolic

I'm interesting in adding the following functionality to nekPy. I've already written a very simple meshing script for a two-sided hyperbolic function. I'm curious what would be needed to get it and the other functions into nekPy.

Calculation of non-equal sized elements in genbox
a. One-Sided Hyperbolic
b. Two-Sided Hyperbolic
bi. Two-Sided Hyperbolic with each end being a difference spacing
c. Potentially other functions

Simple meshing (e.g. global tensor product meshes, affine transformations) should be easy to incorporate.
What exactly are one and two-sided hyperbolic meshes?  Can you share your script?

That's what I'm hoping for.
The following link provides some discussion of one and two sided hyperbolic meshes.
The two python scripts are below. Still very early development and any suggestions for improvements are welcome.
GenboxPy.zip
https://pritamashutosh.wordpress.com/2014/03/28/grid-generation/

We should be able to support any mesh that can be analytically generated.  To start, let's go with 1D profiles that are combined via global tensor product.

I extracted the 1D uniform profile in this function.
Can you add a hyperbolic profile with a similar signature (plus the stretching parameter).  Then, we can make a selector for the input json file.

authors: lcarasik maxhutch

repo: maxhutch/nekpy


text:
Product Flavors | Value null for applicationId in defaultConfig (works without flavors implementation)

Describe the bug
When using product flavors implementation, applicationId project.config.get("APP_ID") in defaultConfig is null.
Steps to Reproduce

Follow product flavors installation instructions
configure app/build.gradle like this:

project.ext.flavorEnvMapping = [
  dev: "../.env.staging.yaml",
  ...
]

...

defaultConfig {
  ...
  applicationId project.config.get("APP_ID")
}

buildTypes {
  ...
  debug { ... }
}

flavorDimensions "default"

    productFlavors {

      dev {
        dimension "default"
        ...
       }
    }

Run react-native run-android --variant devDebug (or cd android; ./gradlew assembleDevDebug)  to see build fail with

* What went wrong:
Execution failed for task ':app:processDevDebugGoogleServices'.
> No matching client found for package name <my_package_name> // because applicationId is 'null'

If I change to applicationId String.format("%s", project.config.get("APP_ID")) then it trows an error about how applicationId is null

If I remove project.ext.flavorEnvMapping, run yarn rnuc env.staging.yaml, then run react-native run-android --variant devDebug (or cd android; ./gradlew assembleDevDebug), everything works perfectly without any other changes.

Expected behavior
I expect product flavors to work just the same as using the yarn rnuc cli
Integration option

[ ] I am using rnuc CLI to inject environment (default integration option
from quickstart guide)
[x] I am using scheme/flavor based integration (experimental integration
option from cookbook:
scheme,
flavors)
[ ] I am using react-native-ultimate-config within monorepo managed with
Lerna or Yarn Workspaces Monorepo support

Env file

[ ] I am using dotenv file as a source for variables
[x] I am using YAML file as a source for variables

Example of env file that is causing problems
APP_ID: "com.my.application"

OS

[ ] ios
[x] android

Packages

version of react-native: 0.64.2
version of react-native-ultimate-config: 3.4.1

Run react-native info and post below:
System:
    OS: macOS 11.5.2
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
    Memory: 490.96 MB / 32.00 GB
    Shell: 5.8 - /usr/local/bin/zsh
  Binaries:
    Node: 14.15.4 - ~/.nvm/versions/node/v14.15.4/bin/node
    Yarn: 3.0.2 - ~/.nvm/versions/node/v14.15.4/bin/yarn
    npm: 7.21.1 - ~/.nvm/versions/node/v14.15.4/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.2 - /Users/wkoutre/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0
    Android SDK:
      API Levels: 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
      Build Tools: 19.1.0, 20.0.0, 21.1.2, 22.0.1, 23.0.1, 23.0.2, 23.0.3, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3
      System Images: android-23 | Google APIs Intel x86 Atom, android-24 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom_64, android-30 | Google Play Intel x86 Atom, android-30 | Google Play Intel x86 Atom_64
      Android NDK: 22.1.7171670
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7678000
    Xcode: 13.0/13A233 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.10 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.64.2 => 0.64.2
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

@wkoutre any update?

I had a similar issue, but for me I needed to adjust the android versionCode dynamically based on the flavor (dev / prod).
I have two yaml files, which are setup in the following way:
project.ext.flavorEnvMapping = [
        prod: "../.env.prod.yaml",
        staging: "../.env.staging.yaml",
]

and I attempted to do something like the following:
defaultConfig {
        applicationId <MY_APP_ID>
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode project.config.get("APP_BUILD_NUMBER")
        versionName project.config.get("APP_VERSION")
    }

This however, failed when created an app bundle, with the error: "Version code not found in manifest".
Apparently, project.config.get is null, and both APP_BUILD_NUMBER and APP_VERSION came back as null as well (Obviously).
I traced the code back to "../../node_modules/react-native-ultimate-config/android/rnuc.gradle".
There, you can see that at the end of the script, the following is being done:  project.ext.set("config", rootConfig).
rootConfig is a map containing all the flavors with all their keys.
I went on to print it, inside defaultConfig like so:
defaultConfig {
       println "MY CONFIG ${project.config}"
        applicationId <MY_APP_ID>
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode project.config.get("APP_BUILD_NUMBER")
        versionName project.config.get("APP_VERSION")
    }

The result looked like so:
MY CONFIG [prod:[BASE_URL:<OMITTED>, IS_PROD:true, ENVIRONMENT:production, TARGET_NAME:<OMITTED>, APP_NAME:<OMITTED>, APP_BUILD_NUMBER:36, APP_VERSION:1.1.3], staging:[BASE_URL:<OMITTED> IS_PROD:false, ENVIRONMENT:staging, TARGET_NAME:<OMITTED>, APP_NAME:<OMITTED>, APP_BUILD_NUMBER:40, APP_VERSION:1.2.0]]

so the project.config is just a dictionary containing the values per flavor.
My end working solution now looks like this:
productFlavors {
        prod {
            applicationId <PROD_BUNDLE_ID>
            versionName project.config.prod.APP_VERION
            versionCode project.config.prod.APP_BUILD_NUMBER
        }
        staging {
            applicationId <STAGING_BUNDLE_ID>
            versionName project.config.staging.APP_VERION
            versionCode project.config.staging.APP_BUILD_NUMBER
        }
    }

Granted, this is not Ideal, but it works, and achieves the needed result.
I hope this helps someone.
Although it is kind of a bug to be honest, I would've expected the lib to deliver these values automatically

I had the same issue when trying to set applicationId with flavors. This is what I ended up doing:
  productFlavors {
    dev {

    }
    production {

    }
    all { flavor ->
      applicationId project.ext.config.get(flavor.name).get("APP_ID")
    }
  }

authors: gtfunes pcaro10 samermurad wkoutre


text:
Number of cores ?

Hi,
How can I control the number of cores/thread used ?
Thanks

Hi @divyanshusrivastava,
Consider using Summit, an ultralight and fast version of GoPeaks that uses 1/5 the memory and 1/3 the time to process your samples. While Summit is limited to using one core, I think its efficiency can benefit every user.  Please let me know if this is helpful for your analysis!

authors: divyanshusrivastava gartician

repo: maxsonBraunLab/gopeaks


text:
[Feature Request] 希望添加数字货币支持

希望添加数字货币支持

ezbookkeeping不会增加数字货币支持。

authors: mayswind shaoyingrui

repo: mayswind/ezbookkeeping


text:
Implement framecapture for Blackmagic Design devices

We were using AVFoundation to capture images from video feeds into Blackmagic Designs hardware. That doesn't work anymore. Blackmagic is pushing everyone to use their C++ SDK. VARS needs a framecapture implementation for their SDK. This is only to support real-time and tape annotations. For video annotations, framecapture is implemented in Sharktopoda and jsharktopoda.

Requested additional resources (another coder) to work on this.

Created:

https://bitbucket.org/mbari/libbmagic
https://bitbucket.org/mbari/vars-blackmagic

When using blackmagics external boxes (rather than PCI card) we may run into the same VCR control/image capture API issue where the image capture sees the device as already in use. So it won't work with it.

So, the lowest hanging fruit for now is to get the blackmagic API working with real-time annotations.

In the latest version of the BlackMagic designs SDK they provide a sample app called CaptureStills that might solve this issue. I built it and called it from python and java and it works great, grabs images without issues. You might want to try this again this demo did not exist before.

Blackmagic support has been implemented in a separate MBARI internal project (libbmagic). Support for it has been added to VARS.

authors: hohonuuli lonnylundsten

repo: mbari-media-management/vars-annotation


text:
Fixes and trivial performance improvements for v4

I wasted a whole day...

Hi @hex11, thanks a lot of your code. I was not a waste time, it's a great community helps :)
I have a question about your code:

Why convert BsonReader/Writer into struct as better than a class? I always make me this same question when I create any data structure..... all docs about this tells me that I must use struct only in some cases, like immutable data and small size (to avoid copy data structure as parameters)

I'm happy to see your reply :)
I noticed new (Bson/Byte)(Reader/Writer) instances will be created in some kinds of (de)serializing,
so I converted class to struct to make them be allocated on the thread stack instead of the GC heap, and pass them as argument by ref (it passes the pointer of the struct on stack, just like passing a class object, but the pointer points to stack. So there's no struct copying. Actually, it won't work without ref, because they have some states to be changed (e.g. ByteReader._pos)).
But I'm not sure if I should do that, because there are so many appearances of ref in the code and the performance improvement is minor.

Close it for now because v5 is on the way and there are maybe too many hacks in this PR.
But is there any plan to release new v4 for bug fixes? If there is, you can pick the first 3 commits here. They are the actual fixes.
By the way, new features in v5 are awesome. Please keep developing it. 👍

repo: mbdavid/LiteDB


text:
Turn on bootloader updates

Turn on bootloader updates for supported devices.

/morph test

/morph test

Closing since this was never intended for merging.

repo: mbedmicro/DAPLink


text:
[STM32F3]: fix for uart baudrate.

With ARM compiler (i.e) uart is initialized after bss, and sdata and before the call to mbed_sdk_init
For correct uart behaviour, SystemCoreClock must be updated.

Integrated on master (removed tabs)

repo: mbedmicro/mbed


text:
Compact Style

Hi,
Is there any way to make the DatePicker smaller and have a compact one for smaller devices?

Hi @shayegh
I'll work on it ASAP.
Duplicate of https://github.com/mberneti/react-datepicker2/issues/56

authors: mberneti shayegh


text:
Add vim-test support

I want to be able to run Lua tests using luatest in neovim with my vim-test plugin.

This will need #9 to work since Vim will need to execute the process.

Not perfect, but good enough for my purposes. https://github.com/mblayman/dotfiles/blob/main/nvim/autoload/test/lua/luatest.vim

repo: mblayman/luatest


text:
Alternator does not work with AWS skd version 1.11.*

Hi team,
I tried Alternator (version 0.12.0) as described in README file, but seems it's incompatible with AWS sdk version 1.11.* (I use version 1.11.205).
While creating AlternatorDBClientV2 instance: new AlternatorDBClientV2();
I got the following exception:
NoSuchMethodError: com.amazonaws.transform.JsonErrorUnmarshaller: method ()V not found
at com.michelboudreau.alternatorv2.AlternatorDBClientV2.init(AlternatorDBClientV2.java:106)
at com.michelboudreau.alternatorv2.AlternatorDBClientV2.(AlternatorDBClientV2.java:100)
at com.michelboudreau.alternatorv2.AlternatorDBClientV2.(AlternatorDBClientV2.java:95)

This exception occurs due to non existing JsonErrorUnmarshaller constructor without parameters in AWS skd 1.11.*.

Hi @vasiliy-sarzhynskyi,
this project has been deprecated in favor of Amazon's own solution, DynamoDB Local or this docker image.
No more work will be done on this project as it is now grossly outdated.  Cheers.

Hi @mboudreau, thanks for your reply.

authors: mboudreau vasiliy-sarzhynskyi

repo: mboudreau/Alternator


text:
Animation widget in Web API test page.

#1559 Added animation widget preset buttons in Web API test page

Merged but you put the example under "High rate APIs" instead of "Virtual Console Widget APIs"
I'll fix it myself

repo: mcallegari/qlcplus


text:
Create dependabot.yaml

Keeps your github actions up-to-date

Hi @tschm . Thanks for the PR. Please can you pull latest changes to your branch. I found the test failed and that has nothing to do with your change but simply that dependencies are outdated. I've updated build system to Hatch, use ruff for linting and added pre-commit to bring things up to date.

Please try again? Thanks for the update

Pull Request Test Coverage Report for Build 8340052762
Details

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

Totals

Change from base Build 8333174067:
0.0%

Covered Lines:
5

Relevant Lines:
7

💛  - Coveralls

Thank you for the PR @tschm !

authors: coveralls mcarans tschm

repo: mcarans/pytest-loguru


text:
Online demo works badly with Chrome on iPhone

Multiple problems on iOS 9.0.2 and Chrome v 45.0.2452.89:

Menu is reopened after a menu item is clicked
Navigation doesn't work
Scrolling doesn't work

I'm sure there's a lot more. However, it works fine on safari.

Same problem occurs in Safari but this needs an additional easy step to reproduce. You need to add the website to your home screen (like bookmark but on home screen). After that, the menu is not usable anymore with exactly the same problem as depicted in this ticket.

Same here. Website opened from home screen in safari shows exactly same behaviour.
Too bad.

@HerrHansen @xperseguers The issue is with Safari and not with MobileAngularUI.  See section 10.3 of this spec https://w3c-webmob.github.io/installable-webapps/
You need to override the default a href behavior with
document.addEventListener("click", function (e) {
var elem = e.target;
if (elem.tagName && elem.tagName === "A") {
e.preventDefault();
location.href = elem.href;
}
});

Ah I see. Sorry, my fault. I forgot to add this proper code to YOUR online demo.  ;-P
Thank you.

@HerrHansen I am in no way affiliated with Mobile Angular UI, but I'll make a PR for this.  If you actually make web apps and want to add this to your app then you should only register this event handler when the app starts if it meets the following conditions:
if (((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) && window.navigator.standalone)
This will make sure the user is actually on an apple device and they have launched from the home screen.

You are welcome，my friend.
At 2015-10-27 00:38:22, "HerrHansen" notifications@github.com wrote:
Ah I see. Sorry, my fault. I forgot to add this proper code to YOUR online demo. ;-P
Thank you.
—
Reply to this email directly or view it on GitHub.

authors: ElleryW HerrHansen Jason7Le samedii xperseguers

repo: mcasimir/mobile-angular-ui


text:
feat: plugin structure, hook, basic flow

Initial version.

Adds a pre-fetch step to yarn add such that the user is prompted to confirm that they want to bring however many direct & transitive dependencies are involved;

Todo

[ ] Add documentation;
[x] Add basic coverage;
[x] Add CI (\w lint + test steps)

Outstanding problem: the tests require a network call due to Project.resolveEverything and the usage of a sample package for installs (i.e. ansicolor, picked randomly). Ideally, the tests would install a prebuilt tarball of the package itself to avoid the need for network, but the resolution step is still a problem.


text:
Find Details page's text is too big

The text on the Find Details page is slightly bigger than the Hunt Details which makes it look off.

Also, the "overview" icons do not match

Fixed!


text:
🛑 ChatGenie Client API is down

In 205b952, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 80f43b4.


text:
🛑 ChatGenie Client API is down

In 8e3aa84, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in a7dea35.


text:
🛑 ChatGenie Client API is down

In f37f31b, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in bb838b4.


text:
🛑 ChatGenie Client API is down

In 7390a07, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 7ac0f52.


text:
🛑 ChatGenie Client API is down

In f0caa88, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 5370088.


text:
🛑 ChatGenie MiniApp API is down

In 7c5f66c, ChatGenie MiniApp API ($CHATGENIE_BOT_API) was down:

HTTP code: 502
Response time: 242 ms

Resolved: ChatGenie MiniApp API is back up in a1d6898.


text:
🛑 ChatGenie MiniApp API is down

In 0b39ec7, ChatGenie MiniApp API ($CHATGENIE_BOT_API) was down:

HTTP code: 404
Response time: 234 ms

Resolved: ChatGenie MiniApp API is back up in d30d1d1.


text:
🛑 ChatGenie Client API is down

In 5708ec1, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in bb0a287.


text:
🛑 ChatGenie Client API is down

In 46417be, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 92e0694.


text:
🛑 ChatGenie Client API is down

In 87d3617, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in a03497e.


text:
🛑 ChatGenie Client API is down

In 2951c6f, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 96f406c.


text:
🛑 ChatGenie Client API is down

In 1b0d7e6, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in f81ed11.


text:
🛑 ChatGenie Client API is down

In fc411c5, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 7b6dfa8 after 1 hour, 1 minute.


text:
🛑 ChatGenie Client API is down

In 5151c48, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in d0cd79c after 9 minutes.


text:
🛑 ChatGenie Client API is down

In 2118f41, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in b1abc9c.


text:
🛑 ChatGenie Client API is down

In 9a73d5c, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 892ca70.


text:
🛑 ChatGenie Client API is down

In cde2d3d, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 5dd84ad.


text:
🛑 ChatGenie Client API is down

In ceeee37, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 707203b.


text:
🛑 ChatGenie Client API is down

In a46ee05, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 3a5ef8a.


text:
🛑 GitHub Mirror is down

In 884bfed, GitHub Mirror (https://gh.chapro.xyz) was down:

HTTP code: 500
Response time: 41 ms

Resolved: GitHub Mirror is back up in 355f0b8 after 17 minutes.

repo: mchaNetwork/status


text:
🛑 GitHub Mirror is down

In f0d8c17, GitHub Mirror (https://gh.chapro.xyz) was down:

HTTP code: 500
Response time: 85 ms

Resolved: GitHub Mirror is back up in 13a83ed after 5 minutes.


text:
🛑 Twitter Mirror (Nitter) is down

In 003fa72, Twitter Mirror (Nitter) (https://tui-te.eu.org/Jack/status/20) was down:

HTTP code: 429
Response time: 722 ms

Resolved: Twitter Mirror (Nitter) is back up in a86d798 after 10 minutes.


text:
🛑 Twitter Mirror (Nitter) is down

In f555806, Twitter Mirror (Nitter) (https://tui-te.eu.org/Jack/status/20) was down:

HTTP code: 429
Response time: 1180 ms

Resolved: Twitter Mirror (Nitter) is back up in 38e7b11 after 5 minutes.


text:
Pull requests get deployed to NuGet

Pull requests immediately get pushed to NuGet.org by AppVeyor.  Here as a reminder.

Fixed


text:
Repeated Image Optimization Causing Unhandled Expense in Vercel

Hey guys, first of fall, amazing job in this UI. I hosted the project in Vercel. After a few minutes of playing around with it, I found I was being charged $15+ in Image Optimization spend. I quickly disabled the image optimization for the whole project to stop the bleeding.
This is a screenshot of the logs in the Vercel console.

And the amout of image optimizations done within that day.

Do you guys know what could be causing the issue and how could it be addressed?  The only thing I changed from the original repo is increasing the serverless function execution time.
Thanks.

Update
Actually, disabling image optimization did not solve the issue. What did it was removing the profile picture I set in the app. I did it because I noticed all the image optimization calls where from a resource in .supabase.co/storage/v1/object/public/profile_images/.

This was a really great callout! I almost got hit with the same thing, this issue saved me some $.

@luighifeodrippe, I did it as seen here but it did not address the issue
After the change, the UI was still triggering calls to the image optimization endpoint. I bring the issue mainly because this can happen to anyone using the default project, and it seems it should be straightforward to address without disabling image optimization, as Vercel is "optimizing" the same resource over and over because the application is fetching it with a unique ID at the end as shown here:

I'll take a look at the source code in the following weeks.

I hit this issue too. It happens because in the profile setting page, they fetch the image URL with this line:
src={profile.image_url + "?" + new Date().getTime()}

The new Date().getTime() is a cachebusting technique to get the latest image URL. While nice, I don't think it's really needed, since the image_url would change if the image changes anyway.
Thus if a user accidentally leaves the profile-settings page open, it will cause a repeated sequence of fetches to the image endpoint which cannot be cached by the browser

relevant commit
https://github.com/mckaywrigley/chatbot-ui/commit/10e666b0ed8d43b699e3d47a7d0388e02318b26f

authors: AdiRishi quezadaesteban thomastay

repo: mckaywrigley/chatbot-ui


text:
Rearrange and rename main page containers

Description

Split up _make_page_layout  into 2 sub-functions for simplified layout overwrite:

_get_page_divs: Creates all the relevant containers that we might want to re-arrange
_arrange_page_divs: Arranges all 8 containers

Change TypedDict classes that store html.Divs to alternative syntax such that we can use dashes inside the keys instead of underscores (required for CSS IDs)
Refactor hideable container behaviour into check _is_hidden
Remove className and use id only for unique containers, includes renaming:

nav_panel_outer -> nav-panel
nav_bar_outer -> nav-bar
component_container -> components
control_panel_outer -> control-panel

Remove underscores from CSS IDs and replace with dashes for main containers only as usage of dashes are better practice for CSS names (a separate PR will be created to apply the same for the rest of the code basis)

Screenshot
This graphic helps understand the current layout arrangements - please take a look:
In general, there are theoretically 8 main containers that we can re-arrange across the page:

dashboard-title
page-title
settings (currently only includes theme switch)
nav-panel
nav-bar
control-panel
components
(logo) (not available yet)

These 8 containers are allocated to these outer containers currently and these outer containers make up our page layout:
Left Side

left-header
left-sidebar
left-main

Right Side

right-header
right-main

Notice

[x] I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.
I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorized to submit this contribution on behalf of the original creator(s) or their licensees.
I certify that the use of this contribution as authorized by the Apache 2.0 license does not violate the intellectual property rights of anyone else.
I have not referenced individuals, products or companies in any commits, directly or indirectly
I have not added data or restricted code in any commits, directly or indirectly

@l0uden - could you help me figure out why the tests are failing? Locally I've just checked and it seems to work fine :) On CircleCI I see a couple of timeout exceptions? I've changed some of the CSS IDs, so if you use them in your tests they might have to get updated. If there are visual changes which are differing, then let me know! I should then fix it on my side.

Somewhat related to this PR so let me ask it here... Is there a reason we have this in Dashboard.build?
dbc.Container(
        id="dashboard_container_outer",

It's the only example of the dbc.Container we have - everything else is done with html.Div. Is it for the fluid=True or just historical accident?

Details

Very good question! I've seen this for years now, so I didn't every question it 😅 I think it's historical left-over. I've just replaced it with an html.Div given that the fluid argument has no effect. The fluid argument adds 15px padding to the screen (which we don't want). However, this was never visible because we overwrite it in our global CSS settings.
See this for reference: https://stackoverflow.com/questions/68823379/dash-dbc-container-fluid-true-does-not-cover-all-available-space

also possible from Github UI if you press the little arrow next to the Update button

Very good question! I think historical accident 😅
The two behave pretty much the same. The fluid=True in theory adds 15px padding to the view, but this actually never worked as we globally overwrite it with our CSS. So there is no advantage in using the dbc.Container compared to a simple html.Div as far as I know. I've replaced it everywhere now.
Read the answer on this one for reference: https://stackoverflow.com/questions/68823379/dash-dbc-container-fluid-true-does-not-cover-all-available-space

Very good question! I think historical accident 😅
The two behave pretty much the same. The fluid=True in theory adds 15px padding to the view, but this actually never worked as we globally overwrite it with our CSS. So there is no advantage in using the dbc.Container compared to a simple html.Div as far as I know. I've replaced it everywhere now.
Read the answer on this one for reference: https://stackoverflow.com/questions/68823379/dash-dbc-container-fluid-true-does-not-cover-all-available-space

Thanks for checking this. It's always bugged me that we had this inconsistency 😀 Everything looks so much cleaner than it used to now 💯
Some time next time I think we should discuss again the different options for how to handle the layout, e.g. the grid-template-area vs. using dbc.Grid vs. our current approach. @AnnMarieW had some good points here about performance on small screens here so would be good to talk it through with her I think. Also Ottis knows lots about this sort of thing so would be worth brainstorming with.
But for now I love the approach! ⭐

Very good question! I think historical accident 😅
The two behave pretty much the same. The fluid=True in theory adds 15px padding to the view, but this actually never worked as we globally overwrite it with our CSS. So there is no advantage in using the dbc.Container compared to a simple html.Div as far as I know. I've replaced it everywhere now.
Read the answer on this one for reference: https://stackoverflow.com/questions/68823379/dash-dbc-container-fluid-true-does-not-cover-all-available-space

Thanks for checking this. It's always bugged me that we had this inconsistency 😀 Everything looks so much cleaner than it used to now 💯
Some time next time I think we should discuss again the different options for how to handle the layout, e.g. the grid-template-area vs. using dbc.Grid vs. our current approach. @AnnMarieW had some good points here about performance on small screens here so would be good to talk it through with her I think. Also Ottis knows lots about this sort of thing so would be worth brainstorming with.
But for now I love the approach! ⭐

Yes, I agree! I that these topics on top of my list and to also discuss w/ @AnnMarieW ! 🚀

It's the only example of the dbc.Container we have - everything else is done with html.Div. Is it for the fluid=True or just historical accident?

I think the bigger question is:  Why are you using Dash Bootstrap Components at all?  You aren't loading a stylesheet, correct?  This is a big problem since it's not uncommon to have a Bootstrap stylesheet in a user's assets folder.   Here's what the example app app looks like if someone has the Spacelab theme in /assets

It's the only example of the dbc.Container we have - everything else is done with html.Div. Is it for the fluid=True or just historical accident?

I think the bigger question is: Why are you using Dash Bootstrap Components at all? You aren't loading a stylesheet, correct? This is a big problem since it's not uncommon to have a Bootstrap stylesheet in a user's assets folder. Here's what the example app app looks like if someone has the Spacelab theme in /assets

Hey @AnnMarieW, that's a very good point!
We have yet to figure out how to make templating as easy as possible. So far, we create our templates here and users can configure them in dashboard.theme. Currently, it only supports vizro_dark and vizro_light, but the future idea is to add more templates and facilitate the process for users to create their own.
We generally prefer dbc components over dcc components when dcc becomes challenging to style (some dash properties were tricky to overwrite) or when the dbc components enable additional functionality. Let me create another issue on this one so we can discuss it. :)

authors: AnnMarieW antonymilne huong-li-nguyen

repo: mckinsey/vizro


text:
NPC health : error flooding console

Hello,
Seems like line 1838 of SentinelTrait Class (runUpdate fonction) creates an error with numerous NPCs upon respawning.
Error with paperspigot (last build), Citizens (build 1494 and some versions) and Sentinel (build 140 - 149).
12.09 22:03:50 [Server] INFO [Citizens] Exception while updating 4,953: Health must be between 0 and 20.0, but was 21.0. (attribute base value: 20.0, player: Garde).
12.09 22:03:50 [Server] WARN java.lang.IllegalArgumentException: Health must be between 0 and 20.0, but was 21.0. (attribute base value: 20.0, player: Garde)
12.09 22:03:50 [Server] WARN at org.bukkit.craftbukkit.v1_12_R1.entity.CraftLivingEntity.setHealth(CraftLivingEntity.java:104)
12.09 22:03:50 [Server] WARN at org.mcmonkey.sentinel.SentinelTrait.runUpdate(SentinelTrait.java:1838)
12.09 22:03:50 [Server] WARN at org.mcmonkey.sentinel.SentinelTrait.run(SentinelTrait.java:1993)
12.09 22:03:50 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.update(AbstractNPC.java:430)
12.09 22:03:50 [Server] WARN at net.citizensnpcs.npc.CitizensNPC.update(CitizensNPC.java:268)
12.09 22:03:50 [Server] WARN at net.citizensnpcs.nms.v1_12_R1.entity.EntityHumanNPC.B_(EntityHumanNPC.java:158)
12.09 22:03:50 [Server] WARN at net.minecraft.server.v1_12_R1.World.entityJoinedWorld(World.java:1755)
12.09 22:03:50 [Server] WARN at net.citizensnpcs.nms.v1_12_R1.util.NMSImpl.tick(NMSImpl.java:1018)
12.09 22:03:50 [Server] WARN at net.citizensnpcs.util.NMS.tick(NMS.java:289)

The first thing Sentinel does on spawn is fix the health of the entity...
That looks like health value wasn't fixed appropriately for an NPC you have?
Do you have any plugins that might corrupt the max-health set for an NPC?

It was a conflict with one of our plugin indeed. We will fix that on our end. Thank you.


text:
Guard against activation crashes

In Theia-based applications some extension checks and activations can throw errors which stop this extension from working.
This PR adds some try..catch guards around the extension activations to prevent errors from interfering with the operation.

@haneefdm

repo: mcu-debug/peripheral-viewer


text:
A fix for python3 string compatibility within hdf5 files

I believe this should fix all three of these issues:
https://github.com/mczwier/westpa_py3/issues/3
https://github.com/mczwier/westpa_py3/issues/5
https://github.com/mczwier/westpa_py3/issues/7

I can't make any commits to this repo, but this certainly looks like solid work from here.  I can try and test some of these in the upcoming day, as well.

Looks good to me.

authors: astatide dnlebard mczwier


text:
Is there a WebAssembly version?

I'm not aware of the specifics of viz.js, but it seems that Emscripten allows compiling to WebAssembly just by passing the -s WASM=1 flag to emcc.
Is that something doable with this library?

ping (@mdaines)?

@broofa I plan to look at this in the next few days.

Emscripten can produce a WebAssembly binary for Viz.js using just the -s WASM=1 flag, but this doesn't fit with the way the main Viz() function is called currently, since the binary needs to be loaded asynchronously. The API could be changed to return a promise rather than a string, however.
While investigating this I built the "lite" version as WASM. The total size (binary + Emscripten loading code + wrapper) is just under 900 KB rather than 1.62 MB, which is a nice savings.

I'm fine with an async API.  That's very clearly the future (and present) of JS.
That is a nice space savings.  Any idea if there's a perf improvement with that as well?

Normally there so many perf improvements between asm.js and WASM versions it's almost unbelievable.

@mdaines were you able to get this working? I'm really excited for this

@amilajack I was able to get it to work, but the API for Viz.js needs to change to support asynchronous loading and indicating the location of the binary. Maybe something like this:
Viz("digraph { ... }", { wasmModule: "viz-module.wasm" }).then(function(result) {
  // ...
});

I'm planning to change the Viz.js API so that it returns promises and supports web workers more directly, and this would fit with that. I'll post an issue detailing those changes soon.

I don't know WebAssembly so I don't know if this is useful to you, but here's how I solved asynchronous loading and indicating the location of viz.js in d3-graphviz
        var scripts = d3.selectAll('script');
        var vizScript = scripts.filter(function() {
            return d3.select(this).attr('type') == 'javascript/worker';
        });
...
            this._vizURL = vizScript.attr('src');
...
        }
    }
...
        var js = `
            onmessage = function(event) {
                if (event.data.vizURL) {
                    importScripts(event.data.vizURL);
                }
                try {
                    var svg = Viz(event.data.dot, event.data.options);
                }
...
        var blob = new Blob([js]);
        var blobURL = window.URL.createObjectURL(blob);
        this._worker = new Worker(blobURL);
...
    // force JIT compilation of Viz.js
...
        var vizURL = this._vizURL;
        var graphvizInstance = this;
...
        if (!vizURL.match(/^https?:\/\/|^\/\//i)) {
            // Local URL. Prepend with local domain to be usable in web worker
            vizURL = document.location.protocol + '//' + document.location.host + '/' + vizURL;
        }
        this._worker.postMessage({dot: "", vizURL: vizURL});
...

Details:
https://github.com/magjac/d3-graphviz/blob/master/src/graphviz.js#L26
https://github.com/magjac/d3-graphviz/blob/master/src/dot.js#L10

@mdaines As I understand post-v2.0 API has potential to support WASM.
What are the next steps and how we could help?

I was thinking it looks something like this:

Add a target to build a WebAssembly binary.
Implement a wrapper like ModuleWrapper or WorkerWrapper so that Viz instances can be constructed by specifying the WebAssembly binary.

any updates on this ? Is there some guide how to compile this lib to web assembly ?

This would allow running Viz in a CloudFlare worker for free, which would be pretty neat.

https://github.com/CyberhavenInc/graphviz-wasm
Here is wasm version of this lib
api is the same as this viz.js

Closing because v3 uses WebAssembly.

Oh wow, didn't notice that this project was un-archived. Good to hear! :)

authors: IvanGoncharov amilajack broofa fiatjaf iameli magjac mdaines nikeee zhDmitry zmitry

repo: mdaines/viz-js


text:
lightbox package fails to build with yarn install

After unzipping the source, building with yarn install fails with following error:

lerna ERR! yarn run prepare exited 1 in '@maker-ui/lightbox'
lerna ERR! yarn run prepare stdout:
yarn run v1.22.4
$ microbundle --no-compress --jsx React.createElement
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run prepare stderr:
node-resolve: setting options.module is deprecated, please override options.mainFields instead
node-resolve: setting options.jsnext is deprecated, please override options.mainFields instead
node-resolve: setting options.module is deprecated, please override options.mainFields instead
node-resolve: setting options.jsnext is deprecated, please override options.mainFields instead
node-resolve: setting options.module is deprecated, please override options.mainFields instead
node-resolve: setting options.jsnext is deprecated, please override options.mainFields instead
Error: 'default' is not exported by src\play.svg
at xxxxxxxxxx\maker-ui\packages\lightbox\src\Preview.js:4:7
2: import { Box } from 'theme-ui'
3:
4: import playIcon from './play.svg'
^
5:
6: const Preview = ({ index, set, urls, show }) => {
error Command failed with exit code 1.
lerna ERR! yarn run prepare exited 1 in '@maker-ui/lightbox'

Hey! Thank you very much for your interest in the project.
I'm currently rebuilding everything in Typescript and implementing my own Box component that should resolve this bug and a few others in @maker-ui/components (see the typescript branch for progress updates).
Closing this for now as the API will be a little different in the next 2 weeks.

authors: mdarche nagarajanchinnasamy

repo: mdarche/maker-ui


text:
Feature ✨: Add scroll to top button

Describe the feature
Hey @mdazfar2,
I have noticed a small issue that I believe could enhance the user experience. Currently, there is no scroll to top button present on the website, which makes navigation a bit cumbersome, especially when users need to return to the top of a lengthy page.
Though it may seem minor, the absence of this feature can impact the overall usability and performance of the website.
Screenshot(Mandatory):

@mdazfar2 ,Could you please assign me this issue under gssoc'24 ?
Are you contributing under any open-source program ?
GSSOC'24
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[x] I'm a VSoC'24 contributor
[X] I want to work on this issue

@TheNikhilRaj You are assigned

Hope you read the CONTRIBUTING Guidelines.
Please try to add comments about where and what type of changes you made.
Please don't add unnecessary code if there is no need! Thanks :)

@TheNikhilRaj You are assigned

Hope you read the CONTRIBUTING Guidelines.
Please try to add comments about where and what type of changes you made.
Please don't add unnecessary code if there is no need! Thanks :)

yes, i have raise the PR now you can check it!
@mdazfar2

@mdazfar2  My points not added yet of this PR?

@TheNikhilRaj I'm just closing your issue, not your PR. If I merge your pull request, you will get points on GSSOC. Hope you understand and have read the GSSOC guidelines.

@mdazfar2 Why? but i have done my work.


text:
A11Y: Undefined causes JS error

If a11y is undefined it causes and error because its falling through to the default case in the switch statement.

Ah good catch! thank you :)
I will merge your pull request.

authors: mdbassit melloware

repo: mdbassit/Coloris


text:
Implement the MD5 Algorithm

Implement the MD5 Algorithm inside components folder

Task Completed

repo: mdmarufsarker/crypto-toolkit-app


text:
Broken Link in What will your website look like? page

Request type

[ ] Please close this issue, I accidentally submitted it without adding any details
[ ] New documentation
[x] Correction or update

Details

Within the Getting started with the Web tutorial series, under the page What will your website look like? a link to Firefox OS Guidelines page is broken and gives Error Not Found on following the link.

Page with broken link:

Error displayed on following the link:

Thanks for reporting this! I've updated it to link to the new Firefox browser design guidelines instead.

authors: FriedFries chrisdavidmills

repo: mdn/sprints


text:
Bad links in Note

Request type

[x] Correction or update

Details

In the first note on the page, the link to OSG.js goes to an adult site and the link to O3D seems outdated or broken.

https://developer.mozilla.org/en-US/docs/Games/Techniques/3D_on_the_web/Building_up_a_basic_demo_with_Three.js

Thanks for pointing out these problems. I've removed these links, and inserted a link to PlayCanvas, which is game-specific, but WebGL-based nevertheless.

authors: chrisdavidmills ekpletto


text:
Is this project still alive?

Mantainer still around? Let me know if you need some help :) 👍

Max is a busy guy. If you'd like to help, I would be happy to help you pick a topic to work on. Keep in mind that the intention of this project is NOT to be an "everything out of the box" slider. This is a minimalist slider.

Also, i'm closing this. :P

authors: davidspiess nstanard

repo: meandmax/lory


text:
How to figure out which audio track is marked as default?

Hi, the problem is getting the audio track id, which is marked as default in the container inside the dart code. E.g. mkv container with audio 1-eng and audio 2-jap, where the second track is marked as default. MPV works perfectly as expected - playing the second (default) track. But there is no way to catch this behavior in player.state.tracks.audio, neither in player.state.track. What is the correct way to get the default audio track id?

@Prince-of-death Nothing special actually - I ended up monkey patching all the corresponding Track classes in media-kit sources, manually adding the missing track properties (https://mpv.io/manual/master/#command-interface-track-list) and then assigning values in lib/src/player/native/player/real.dart. Somehow it worked, but this is not the correct way I guess.

repo: media-kit/media-kit


text:
Number of search results

Nice to have: Show the number of search hits when the entire dataset is restricted by search terms and/or other filter criteria.
Compare Mediathekviewweb.

Yes, this is a nice suggestion!

Filmlist date and number of results will be displayed in the upcoming version 6.1.0

The display returns a zero value.
I also find the placement unfortunate. The display is only visible when the filter options are called up.

Compare #278.

authors: WebworkrNet cemrich

repo: mediathekview/zapp


text:
Enable etcd healthcheck

As part of ECOPROJECT-1073 adding etcd health check as part of control-plane node diagnostics.
Tested on local cluster.

/override ci/prow/4.13-openshift-e2e

/override ci/prow/4.13-openshift-e2e

/override ci/prow/4.13-openshift-e2e

/run 4.13-test

/override ci/prow/4.13-openshift-e2e

/lgtm


text:
Added a copy button to copy the resource ID on the resource page

This PR adds a copy button to the resource ID on the resource page - https://github.com/medplum/medplum/issues/2606

Hi @Abi-Liu , it seems like you're re-using the same branch from your previous PR: https://github.com/medplum/medplum/pull/2614
Best practice would be to create a new branch for this PR, with only the 1 commit 0a5b2b934ea5d7af87965687f76cf0d8fd8a5bc4

Oh oops, I forgot to change the branch. Should I submit another PR in a newly created branch?

coverage: 94.301% (-0.02%) from 94.317% when pulling 0a5b2b934ea5d7af87965687f76cf0d8fd8a5bc4 on Abi-Liu:abi-batch-upload-tool into c132b0c465c1630a00fc64461186b9d3e98b10e0 on medplum:main.

Oh oops, I forgot to change the branch. Should I submit another PR in a newly created branch? @rahul1

Hi @Abi-Liu
If you're comfortable using git rebase, that's the "right" way to do it.  Using git rebase can be frustrating though, so proceed with caution.  See here: https://stackoverflow.com/questions/7929369/how-to-rebase-local-branch-onto-remote-master
You can also do the simple / "brute force" strategy where you create a new branch, and manually copy the files over.
It's up to you.  No worries if you create a new PR and discard this one.
Thanks!

Sounds good! Just fixed it. Gonna submit another PR now.

authors: Abi-Liu codyebberson coveralls rahul1

repo: medplum/medplum


text:
Minor repo cleanup

Added packages readme to override the Github behavior of using the docs directory
Fixes #578
Deleted docs/build.zip
Deleted old authors file

Coverage remained the same at 95.216% when pulling c60f1fcba734d3c2eab3084be04877f3088f2859 on cody-repo-cleanup into ab785dc98cf3aed407e2470c01ec69964e783fdf on main.

authors: codyebberson coveralls


text:
ignore_index=250

Hello in the loss.py file I check it and find this line.
loss = F.nll_loss(log_p, target, ignore_index=250,weight=weight, size_average=False)
why you use 250?, and what does it means?

@herleeyandi I feel the same confusion. I just replaced it with 255. In my experiment, I set the background to 255. And 250, there is no pixel corresponding to the number.

@zhoufengbuaa Yes me too. I am doing the same thing :smile:  .

Hi, @herleeyandi @zhoufengbuaa     I am training with Segnet. In my trainset, most of the pixel are background with labeled 0. So if I want to train a good model, should I set the loss like this:  loss = F.nll_loss(log_p, target, ignore_index=0,weight=weight, size_average=True)?
Thank you for your help.

@ChangliangSun ignore_index in the segmentation means that the loss on these pixels are not counting in the training procedure. So please consider you problem.

authors: ChangliangSun herleeyandi zhoufengbuaa


text:
fix(format): skip avio_open when format has AVFMT_NOFILE

Avoids creating empty files for parameterized output paths and similar. (e.g. output_%v.m3u8 for HLS)

Good catch, thanks for the PR :)

Adjusted to resolve the dictionary leaks, thanks! I'm going to submit a follow-up PR to clean up the Dictionary disown/own uses further.

authors: encounter tilpner

repo: meh/rust-ffmpeg

license: WTFPL


text:
Clippy error on struct size introduced by new rust version

Since the last release of rust, a new clippy error is introduced checking the size of the structures.
See this issue: https://github.com/rust-lang/rust-clippy/issues/9538
These are expected to be less than 200bytes
For example:
251 |     pub fn try_make_index(self, client: &Client) -> Result<Index, Self> {
    |                                                     ^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 200 bytes

We should find a way to fix this error by boxing the correct structures/fields.

After discussing with @irevoire , we are going to add an attribute to silence the error whenever it shows up. See example:
https://github.com/meilisearch/meilisearch-rust/blob/d6ee78cc38d6ee24605fe7ddc17755ed6575050d/src/tasks.rs#L251

Fixed with clippy update

repo: meilisearch/meilisearch-rust


text:
Enhance Japanese language detection

Pull Request
Context
Some Languages are harder to detect than others, this miss-detection leads to bad tokenization making some words or even documents completely unsearchable. Japanese is the main Language affected and can be detected as Chinese which has a completely different way of tokenization.
A first iteration has been implemented for v1.1.0 but is an insufficient enhancement to make Japanese work. This first implementation was detecting the Language during the indexing to avoid bad detections during the search.
Unfortunately, some documents (shorter ones) can be wrongly detected as Chinese running bad tokenization for these documents and making possible the detection of Chinese during the search because it has been detected during the indexing.
For instance, a Japanese document {"id": 1, "name": "東京スカパラダイスオーケストラ"} is detected as Japanese during indexing, during the search the query 東京 will be detected as Japanese because only Japanese documents have been detected during indexing despite the fact that v1.0.2 would detect it as Chinese.
However if in the dataset there is at least one document containing a field with only Kanjis like:
A document with only 1 field containing only Kanjis:
{
 "id":4,
 "name": "東京特許許可局"
}

A document with 1 field containing only Kanjis and 1 field containing several Japanese characters:
{
 "id":105,
 "name": "東京特許許可局",
 "desc": "日経平均株価は26日 に約8カ月ぶりに2万4000円の心理的な節目を上回った。株高を支える材料のひとつは、自民党総裁選で3選を決めた安倍晋三首相の経済政策への期待だ。恩恵が見込まれるとされる人材サービスや建設株の一角が買われている。ただ思惑が先行して資金が集まっている面 は否めない。実際に政策効果を取り込む企業はどこか、なお未知数だ。"
}

Then, in both cases, the field name will be detected as Chinese during indexing allowing the search to detect Chinese in queries. Therefore,  the query 東京 will be detected as Chinese and only the two last documents will be retrieved by Meilisearch.
Technical Approach
The current PR partially fixes these issues by:

Adding a check over potential miss-detections and rerunning the extraction of the document forcing the tokenization over the main Languages detected in it.
Adding a filtering threshold during the search over Languages that have been marginally detected in documents

Limits
This PR introduces 2 arbitrary thresholds:

during the indexing, a Language is considered miss-detected if the number of detected tokens of this Language is under 10% of the tokens detected in the same Script (Japanese and Chinese are 2 different Languages sharing the "same" script "CJK").
during the search, a Language is considered marginal if less than 5% of documents are detected as this Language.

This PR only partially fixes these issues:

✅ the query 東京 now find Japanese documents if less than 5% of documents are detected as Chinese.
✅ the document with the id 105 containing the Japanese field desc but the miss-detected field name is now completely detected and tokenized as Japanese and is found with the query 東京.
❌ the document with the id 4 no longer breaks the search Language detection but continues to be detected as a Chinese document and can't be found during the search.

Related issue
Fixes #3565

Hey @dureuill,
I'd like your POV on this PR, thank you if you have the time to look at it

Hello @ManyTheFish, thanks for thinking of me to review your PR!
Before I dive into the code, a question: did we consider the option of having some documents left as "language-ambiguous" and tokenized as many time as necessary in each of the candidate languages? Similarly, for search queries that could match several languages, tokenize them in all of these languages and return results for all the resulting queries?
Such a change could cause structural change and so be a large undertaking. Still, if it has been discussed somewhere, I'd love to be pointed to that discussion.
Meanwhile, the change proposed here appears like a nice heuristic to prevent the misdetection of languages using frequency.
I'm not 100% sure of what the scope of this sentence is:

rerunning the extraction of the document forcing the tokenization over the main Languages detected

can you maybe rephrase a bit?

Hello @dureuill, I added a section in Technical Approach detailing the indexing process and giving an example at the end. Let me know if you need more! 😄

Thank you Many it is indeed clearer with the added explanation!

bors merge

authors: ManyTheFish dureuill

repo: meilisearch/meilisearch


text:
Improve SDK CI to choose the Docker image

The point is to have the following "form" when running the SDK CI manually
nightly is the default value if running the CI manually.

bors merge

bors merge


text:
XUbuntu - No Video Playing when play pressed.

Clean installed on 2 separate Intel NUC's. All packages have installed as per instructions. Dicaffeine Player can see the streams, detects single/multiple display outputs but when play is pressed message "Player is Running Stop it first" appears then nothing happens. Not sure what I am missing. Is there a min hardware spec? Any help would be appreciated.

hi !
i am facing the same issue on Debian Bullseye

authors: cmitchell-fredon martialgallorini

repo: melnijir/Dicaffeine


text:
🛑 Siege Green Auth is down

In 8caf541, Siege Green Auth (https://auth.siege-green.com) was down:

HTTP code: 525
Response time: 1416 ms

Resolved: Siege Green Auth is back up in fa85295 after 46 minutes.

repo: meloncafe/status-sggrn-upptime


text:
Exploratory Sprint: Bundle Postgres with Meltano

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/1193
Originally created by @dmor on 2019-10-24 18:11:07

Notes from @kressaty dogfooding session

TODO Write issue: What about installing Postgres and configuring it for you?

[ ]  @bencodezen fill in the opportunity assessment questions below

Opportunity Assessment

Exactly what problem will this solve? (value proposition)

For whom do we solve that problem? (target market)

How big is the opportunity? (market size)

What alternatives are out there? (competitive landscape)

Why are we best suited to pursue this? (our differentiator)

Why now? (market window)

How will we get this product to market? (go-to-market strategy)

How will we measure success/make money from this product? (metrics/revenue strategy)

What factors are critical to success? (solution requirements)

Given the above, what’s the recommendation? (go or no-go)

View 5 previous comments from the original issue on GitLab

repo: meltano/meltano


text:
Document GitLab's container registry as an option for pulling images

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2938
Originally created by @tayloramurphy on 2021-09-15 20:55:12

Based on a comment from https://gitlab.com/meltano/meltano/-/issues/2934#note_678349501

View 5 previous comments from the original issue on GitLab


text:
Add 'test' option for extractors into the meltano config --interactive workflow

As noted in

#6866

it would be very helpful to run meltano test PLUGIN_NAME for extractors during the interactive config process.
When targets get a 'test' option, we could add for them also, per: #6855.
Perhaps something in the API like 'has_tests()' could be used instead of hard-coding this to the plugin type, since utilities also can have tests and (if they do) the test option during config would likely make sense for those as well.

Still relevant

authors: WillDaSilva aaronsteers


text:
🛑 Kérwá is down

In 557a326, Kérwá (https://kerwa.ucr.ac.cr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kérwá is back up in 36e619d after 7 minutes.

repo: memoemg/howyoudoing


text:
Add asm calls for refmvs

Add asm logic corresponding to refmvs.h in the original C project.

LGTM (did a quick skim).
Looks like there are some superfluous casts in there (e.g. as libc::c_int as libc::c_uint). IDK if you left those so we can do a sweep later of if it was accidental. No big deal.

@thedataking Extra casts have been cleaned up.

authors: randomPoison thedataking


text:
Fix typo in golden image generation

fix: typo in command that dumps golden image from target
Signed-off-by: Luis Ramirez luis.ramirez@northern.tech
Changelog: None
External Contributor Checklist

🚨 Please review the guidelines for contributing to this repository.

[ ] Make sure that all commits follow the conventional commit specification for the Mender project.

The majority of our contributions are fixes, which means your commit should have
the form below:
fix: <SHORT DESCRIPTION OF FIX>

<OPTIONAL LONGER DESCRIPTION>

Changelog: <USER-FRIENDLY-CHANGE-DESCRIPTION> or <None>
Ticket: <TICKET NUMBER> or <None>

[ ] Make sure that all commits are signed with git --signoff. Also note that the signoff author must match the author of the commit.

Description
Please describe your pull request.
Thank you!

@MuchoLucho FYI, the commit check failed because the "Author" on your commits is not the exact same as the "Signed-off by". See:
commit 35267be5035397043c2874a977fac731e6ec89f7
Author: Luis Ramírez <luis.ramirez@northern.tech>
Date:   Wed May 25 16:56:02 2022 -0600
    Fix typo in golden image generation

    Fix typo in command that dumps golden image from target

    Signed-off-by: Luis Ramirez <luis.ramirez@northern.tech>

    Changelog: None
Commit 35267be5035397043c2874a977fac731e6ec89f7 is not signed off! Use --signoff with your commit.

I corrected the Signed-off by to use Ramírez. Please fix this locally on your setup when you have the time for future PRs :)

authors: MuchoLucho lluiscampos

repo: mendersoftware/mender-docs