Use LightTransaction

With https://github.com/iov-one/iov-core/pull/975 merged, we should do the following BlockchainConnection changes:

[ ] Create
getTransaction: (id: TransactionId) => Promise<ConfirmedTransaction | FailedTransaction>;.
This can later be used when clicking on transaction details from a transactions list. With the result of that, it should be possible to verify the signature locally.
[ ] Change interface to
searchTx(query: TransactionQuery): Promise<ReadonlyArray<LightTransaction | FailedTransaction>>
[ ] Change interface to
listenTx(query: TransactionQuery): Stream<LightTransaction | FailedTransaction>
[ ] Change interface to
liveTx(query: TransactionQuery): Stream<LightTransaction | FailedTransaction>

@webmaster128 Definitely LightTransaction in these cases rather than ConfirmedTransaction<LightTransaction>? What should be done with all the (now superfluous) information?

Definitely LightTransaction in these cases rather than ConfirmedTransaction?

Nope, my fault. ConfirmedTransaction<LightTransaction> is most likely the way to go. Feel free to do a plausibility check and error correction on the description above. It was more a sketch of the direction than a careful API design.

Does the scope of this issue also cover changing TxCodec.parseBytes? I.e. should it return a signed LightTransaction without a creator? (And therefore not require the chainId parameter.)

Does the scope of this issue also cover changing TxCodec.parseBytes? I.e. should it return a signed LightTransaction without a creator? (And therefore not require the chainId parameter.)

Looking at the description
  /** parseBytes will recover bytes from the blockchain into a format we can use */
  readonly parseBytes: (bytes: PostableBytes, chainId: ChainId) => SignedTransaction;

I tend to say that parseBytes should be unchanged and be used as-is in the new getTransaction. However, if we need something similar for LightTransaction, it should be created at some proper place.

Does this also apply to depencies of these methods such as watchSwaps? (Relies on liveTx in at lease one case.)

watchSwaps

As a quick and dirty solution, I'd call getTransaction for every liveTx event. This can easily be done as long as we do not have long lists of atomic swaps. This way, we can postpone the question.


Question: Circular references in Waterline's toObject()

Since updating to Sails 0.11, I've had an issue where my app crashes saying "There was an error turning the model into an object" whenever I pull a single model (/api/user/:someid) but (/api/users/) works. I'm just using the built-in blueprints for this.
In Waterline's toObject() function:
try {

  // *** new line added below: ***
  // this.object._locals contains circular references and therefore breaks JSON.stringify()
  // if I add this line, my app works correctly
  delete this.object._locals;

  // Stringify/parse the object
  var _obj = JSON.parse(JSON.stringify(this.object));

  return _obj;
}

Is there something that I'm doing wrong with my app's configuration, or is there a snippet of code that I can post to help further diagnose the issue?

Can you share any more info? I don't think this is a very common problem.


Problem to update a pack

Describe the bug
I can't update my pack.
To Reproduce
cpackget --version
cpackget version 0.8.5 (C) 2022 Linaro
cpackget update-index
I: Using pack root: "C:\ctools_pack"
I: Updating public index
I: Downloading index.pidx 100% |███████████████████████████████████████████████████| (103/103 kB, 198.981 kB/s)
I: Updating PDSC files of installed packs referenced in index.pidx
I: ARM::V2M_MPS3_SSE_310_BSP can be upgraded from "1.0.0" to "1.1.0"
cpackget add<EMAIL_ADDRESS>I: Using pack root: "C:\ctools_pack"
I: Adding pack<EMAIL_ADDRESS>E: pack version not found in the pdsc file
E: pack version not found in the pdsc file
Expected behavior
I was expecting the new pack to be downloaded and installed.
Environment (please complete the following information):
Windows 10 Enterprise 21H2
Additional context
My packs are installed in C:\ctools_pack

More info: I also have a pack installation at the default location:
C:\Users\<user>\AppData\Local\Arm\Packs

@christophe0606 this is odd. Could you please share the output if you run the command line adding -v (verbose).

@christophe0606 in the last  cpackget-init you did, was the CMSIS_PACK_ROOT environment variable pointing to the default location by any chance?

@lud0v1c CMSIS_PACK_ROOT was still pointing to C:\ctools_pack

I can reproduce it with the following approach:
$ cpackget --version
cpackget version 0.8.5 (C) 2022 Linaro

$ export CMSIS_PACK_ROOT=/c/Temp/PacksTest

$ cpackget init https://keil.com/pack/index.pidx
I: Using pack root: "C:\Temp\PacksTest"
I: Downloading index.pidx...

$ cpackget add<EMAIL_ADDRESS>I: Using pack root: "C:\Temp\PacksTest"
I: Downloading ARM.V2M_MPS3_SSE_310_BSP.pdsc...
I: Adding pack<EMAIL_ADDRESS>I: Downloading ARM.V2M_MPS3_SSE_310_BSP.1.0.0.pack...
I: Extracting files to C:\Temp\PacksTest\ARM\V2M_MPS3_SSE_310_BSP\1.0.0...

Manually remove the section <release version="1.1.0" ... </release> from the file
C:\Temp\PacksTest\.Web\ARM.V2M_MPS3_SSE_310_BSP.pdsc
$ cpackget update-index -v
I: Using pack root: "C:\Temp\PacksTest"
[...]
D: Copying file from "C:\Temp\PacksTest\.Download\index.pidx" to "C:\Temp\PacksTest\.Web\index.pidx"
I: Updating PDSC files of installed packs referenced in index.pidx
D: Listing files and directories in "C:\Temp\PacksTest\.Web" that match ".pdsc$"
D: Checking if "C:\Temp\PacksTest\.Web\ARM.V2M_MPS3_SSE_310_BSP.pdsc" needs updating
D: Initializing PdscXML object for "C:\Temp\PacksTest\.Web\ARM.V2M_MPS3_SSE_310_BSP.pdsc"
D: Reading pdsc from file "C:\Temp\PacksTest\.Web\ARM.V2M_MPS3_SSE_310_BSP.pdsc"
D: Searching for pdsc "ARM.V2M_MPS3_SSE_310_BSP."
D: "C:\Temp\PacksTest\.Download\index.pidx" contains 1 pdsc tag(s) for "ARM.V2M_MPS3_SSE_310_BSP."
I: ARM::V2M_MPS3_SSE_310_BSP can be upgraded from "1.0.0" to "1.1.0"
D: Downloading ARM.V2M_MPS3_SSE_310_BSP.pdsc from "http://www.keil.com/pack/"
D: Downloading http://www.keil.com/pack/ARM.V2M_MPS3_SSE_310_BSP.pdsc to C:\Temp\PacksTest\.Download\ARM.V2M_MPS3_SSE_310_BSP.pdsc

$ cpackget add<EMAIL_ADDRESS>I: Using pack root: "C:\Temp\PacksTest"
I: Adding pack<EMAIL_ADDRESS>E: pack version not found in the pdsc file
E: pack version not found in the pdsc file

As you can see for the command cpackget update-index -v the last message is:
D: Downloading http://www.keil.com/pack/ARM.V2M_MPS3_SSE_310_BSP.pdsc to C:\Temp\PacksTest\.Download\ARM.V2M_MPS3_SSE_310_BSP.pdsc

However in my environment the .Download directory is still empty, did the download silently failed?
I would expect the .Web\ARM.V2M_MPS3_SSE_310_BSP.pdsc to be updated.


Add Koan AboutLinq

This koan could demostrate basic LINQ functionality.
Things to cover:

Where

OrderBy

Take

Any

This was added.


Docs: Document how to programmatically invoke jscs

Addresses #1509

looks good

Looks great, could also add example of the explainError invocation? Like here.

@markelog done

Awesome balls!


[kops] add autoscaler support

what

add additional cluster policy
add cloudLabels

why
#242

@osterman if necessary to have cluster autoscaler optional?


Remove SVG element?

What's the purpose of this SVG element? Can we remove it?
https://github.com/Make-IT-TR/TechRadar/blob/master/tr-app/src/radar/radar.html#L2

Removed without any problem (it seems)


[BUG] Optimized SVG is different than source Ajofrín.svg

Using the (wip) integration test tool we identified an issue while optimizing the file Ajofrín.svg with the default settings.
SVGO version
2.1.0
Differences
The resulting image has a much thicker crown
Sources
Original:

source.svg.txt
Optimized:

optimized.svg.txt
Renders
Here are the two rendered images for comparison:
Original:

Optimized:

Diff:

Duplicate of https://github.com/svg/svgo/issues/1385


When should we use preload?

I noticed on your own sites (for example, line 40 here: https://github.com/rishi-raj-jain/suplovers-astro/blob/main/src/layouts/Layout.astro) you are setting preload: false when serving a local font.
When should we use preload: true and preload: false? Can you give some examples?
Thank you!

Hey @149203,
Great question.
Just wanted to clear that the website is an Astro port of https://github.com/AlejandroMar/suplovers and not my own. I must have forked it to showcase the usage, because I've done ~100 PRs highlighting integration of astro-font in all possible scenarios.
But anyways, I appreciate your question, and here's the answer:

Using preload is not affected with the origin of font, whether local or over CDN.
Using preload is specific to the nature of your website font loads and their priority:

Case 1: If I have say a designer website with fonts of very specific kind and I'm okay with users seeing a fallback font (generated to match the font of your choice) I do not need to use preload. Having a fallback font allows me to get rid of layout shifts.
Case 2: If I have say a designer website with fonts of very specific kind BUT I'm NOT okay with users seeing a fallback font, I do need to use preload to make sure that the fonts receive higher priority on the network waterfall.
Case 3: If I do not have a designer website but still I want the font of my choice to be visible to users as soon as they open up the page, I'd need to use preload.
Case 4: If I do not have a designer website and I'm okay with users seeing a fallback font I do not need to use preload. Having a fallback font allows me to get rid of layout shifts.

Hope this makes sense.

@rishi-raj-jain thank you!
Can we specify multiple fallback fonts with astro-font? How? The examples show a single string.
Thanks again!

In my Tailwind config, I can do the following:
fontFamily: {
      heading: ["var(--font-spline-sans)", ...defaultTheme.fontFamily.sans],
    },

where ...defaultTheme.fontFamily.sans extracts all the fallbacks from the default sans-serifs set by Tailwind. These are:
ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

as described here: https://tailwindcss.com/docs/font-family
So it will look for the custom font, then the next best sans-serif fonts.

Oh I see, what would you propose?

Perhaps fallback being able to handle an array or string?
Frankly, it's not a critical issue. I was just wondering if astro-font had support for it. It could make fallback fonts look nicer when preload is false.

Perhaps fallback being able to handle an array or string?

How may I generate the fallbacks for each of them? Currently, serif, sans-serif and monospace are supported.

Oh I think yes, I can do both:

allow people to mention fallback but improve the utils to not set the serif/sans-serif/monospace by itself.
allow people to add restFallbackFonts that'll just be just passed on.

https://www.launchfa.st/blog/when-to-preload-fonts


ShareOperation.ReportError: Docs say error is shown to the user but I don't see it

Relevant doc page: Windows.ApplicationModel.DataTransfer.ShareTarget.ShareOperation.ReportError
The documentation says "The system displays this message to the user.". Is this true? If so, where is the error message shown to the user? My team has experimented with the API and we haven't seen the error message displayed anywhere.
Adam Comella
Microsoft Corp.

Thanks for taking the time to let us know about this and I sincerely apologize for the delayed response. This GitHub repo is specifically for reporting documentation bugs. For product questions like this, please see the community of experts and Microsoft Engineers over at Microsoft Q&A.
I'm marking this issue as closed now, but please feel free to reopen it if you have more information that indicates a real doc bug here. Thanks again!


PywavefrontException: Unimplemented OBJ format statement

I can read this OBJ file with Windows 3D viewer, yet, I am having this error:
PywavefrontException: Unimplemented OBJ format statement 'g' on line 'g Tshirt'
Python 3.7
pywavefront.version
Out[12]: '1.3.2'
Any ideas?

It's just a warning. I need to hide those mesages by default. We don't support groups, but your object should load just fine.

I am not able to parse:

obj_3D.parse()
Traceback (most recent call last):
File "", line 1, in
obj_3D.parse()
File "C:\ProgramData\Anaconda3\lib\site-packages\pywavefront\wavefront.py", line 84, in parse
self.parser.parse()
File "C:\ProgramData\Anaconda3\lib\site-packages\pywavefront\obj.py", line 90, in parse
super(ObjParser, self).parse()
File "C:\ProgramData\Anaconda3\lib\site-packages\pywavefront\parser.py", line 129, in parse
self.dispatcher.get(self.values[0], self.parse_fallback)()
File "C:\ProgramData\Anaconda3\lib\site-packages\pywavefront\parser.py", line 47, in inner
func(*args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\pywavefront\parser.py", line 145, in parse_fallback
% (self.values[0], self.line.rstrip()))
PywavefrontException: Unimplemented OBJ format statement 'g' on line 'g Tshirt'

Don't use strict mode when loading the object
https://github.com/pywavefront/PyWavefront/blob/caa2013d7026dd484ac8c5ca8273f2d680196130/pywavefront/parser.py#L143-L148

Closing this for now. Please reopen or create new issue if you have any more questions or issues.


Composite State Machine

When the composite state in the state machine contains concurrency, the concurrent state machines are not drawn correctly, this issue happens when the composite state has completion transition (transition without any event.
Give the minimum Steps to Reproduce
1- Copy and paste the following Umple code to Umple online
class A
{
  Sm {
    s1_S {
       -> FINs1;
        s4_r6 {
          e10 -> s5_r1;
        }
        final s5_r1 {        }
    ||
        s6_r2 {
          e11 -> s7_r5;
        }
        final s7_r5 {        }
    }
    FINs1 {
      do { r2.fm1(); } -> PRELs2;
    }
    PRELs2 {
      fm0 -> s2_S;
    }
    s2_S {        s7_r1 {
          e12 -> s8_r8;
        }
        final s8_r8 {        }
    ||
        s9_r2 {
          e13 -> s10_r5;
        }
        final s10_r5 {        }
    }
  }
}

Actual Result
The composite state s1_s was not drawn correctly
Also the transition fm0 between PRELs2 and s2_s was not in the right location

@mheng86  I think what you are trying to achieve is that when both s4_r6  and s6_r2 are reached, then go to FINs1
This is essentially a duplicate of #1033 and is related to the earlier closed #140. So I will mark it as duplicate and close it. I give a workaround at the end of this comment.
Currently Umple's semantics are that 'final' means 'end the state machine as a whole'.
Current Umple semantics are that autotransitions (as in line 5) have priority.
The problem with the example above is that there is s1_s has an immediate auto-transition to FINs1 on line 5. So as the warnings (reproduced below) state, the transitions to sr_r1 and s7_r5 are ignored, as they cannot ever be invoked.
Warning on line 7 : Transition e10 will be ignored due to an unguarded duplicate event. More information (54)
Warning on line 12 : Transition e11 will be ignored due to an unguarded duplicate event. More information (54)
Warning on line 9 : State 's5_r1' from StateMachine 's4_r6' is non-reachable.. More information (67)
Warning on line 14 : State 's7_r5' from StateMachine 's6_r2' is non-reachable.. More information (67)

The 'final' keyword in states does not mean in the Umple context, when this is reached, do the autotransition. I think that was what you were expecting. It means 'delete' the object. There has been a lengthy trail of discussion about this. There was the idea to create a 'done' keyword that would do a transition when all state machines reach and end state.
The issue of the fm0 transition is a separate one; it is lacking a 'tail' but it seems in the right position.
Here is the workaround for the main part of this issue:
class A
{
  Boolean s5r1done = false;
  Boolean s7r5done = false;
  Boolean s1sdone = {s5r1done && s7r5done}
  Sm {
    s1_S {
        s4_r6 {
          e10 -> s5_r1;
        }
        s5_r1 {
          entry / {s5r1done = true;}
          [s1sdone]  -> FINs1;
        }
    ||
        s6_r2 {
          e11 -> s7_r5;
        }
        s7_r5 {
          entry / {s5r1done = true;}
          [s1sdone]  -> FINs1;
        }
    }
    FINs1 {
      do { r2.fm1(); } -> PRELs2;
    }
    PRELs2 {
      fm0 -> s2_S;
    }
    s2_S {        s7_r1 {
          e12 -> s8_r8;
        }
        final s8_r8 {        }
    ||
        s9_r2 {
          e13 -> s10_r5;
        }
        final s10_r5 {        }
    }
  }
}


ci: Update github-actions to also run for next branch

Since we will be developing monaco v2 on the next branch until is ready,
the github-actions needed to be extended to also run for it.

you now also add the commits from latest master, but we wanted that anyway :+1:


Feat fmt image

This PR adds basic support for the .fmt_image() method. Addresses #156
Note that it adds the following:

metro dataset images in great_tables/data/metro_images
a FmtImage dataclass, with a .to_html() method. I'm not sure whether this is a good or bad idea, but it was helpful for thinking about how formatters could be approached (enclosed functions, vs partials, vs classes)!

Here's the example code, run in VS Code:
from great_tables import GT
from great_tables.data import metro
from importlib_resources import files

img_paths = files("great_tables")  / "data/metro_images"
GT(metro).fmt_image("lines", path = img_paths, file_pattern="metro_{}.svg")

Fixes: https://github.com/posit-dev/great-tables/issues/156

Alright, I've put the images under a single span (to match the R package). In VS Code it cuts off the width, but I wonder whether that is specific to some css rule being set in VS Code?


GO:0042744 - hydrogen peroxide catabolic process, parentage (reasoning over roles from chebi)

GO:0042744 - hydrogen peroxide catabolic process is_a cofactor catabolic process why is that?

ChEBI puts it as a drug and a co-factor. Can you ask them to revisit this ?

Presumably for CHEBI  is_a needs to always be true?
@ukemi  (so hydrogen peroxide would be neither?)

I think it has to do with the roles. We really need to stop reasoning over them. @cmungall

Unfortunately the roles are not true in all contexts. For example:
[Term]
id: GO:0046085 ! adenosine metabolic process
+is_a: GO:0017144 {is_inferred="true"} ! drug metabolic process
is_a: GO:0046128 {is_inferred="true"} ! purine ribonucleoside metabolic process

Between removing grouping terms for cofactor metabolism:
obsoletion of grouping terms for "cofactor" & "coenzyme" roles #19243
and ceasing to reason over ChEBI roles:
cessation of reasoning over ChEBI roles, i.e. stop inferring relationships like "ATP binding" is_a "drug binding" #19479
this is fixed.


Problems running test.py

Hello Dr.Chen,
When I try install HEAAN-Python on my server, I did not meet any error in the installing phase. And the HEAAN-2.1.0.egg-info  file was generated in the dictory /usr/local/lib/python3.6/dist-packages/. Everything seems fine.
But when I try to run the test.py, an error occured:

Traceback (most recent call last):
File "test.py", line 1, in
from HEAAN import *
ImportError: libntl.so.43: cannot open shared object file: No such file or directory

Please Help!

Besides the HEAAN-2.1.0.egg-info, the file HEAAN.cpython-36m-x86_64-linux-gnu.so was also generated and palced in the dictory /usr/local/lib/python3.6/dist-packages/

FAQ
It may help you.

It works! Thanks very much!
I love this repository!


[GH Issue Template] Create new GitHub issue template for mesheryctl

Current Behavior
See other templates as examples.
Desired Behavior

Prominent reference - link to command spreadsheet.
Resources - Include links to contributor guide, tutorial on contributing to mesheryctl.
label with "component/mesheryctl"

🚀 On it!


[WIP] Road to production

Reflections on Fe's path to production
Fe is still under rapid development and all our releases are marked as alpha and we strongly discourage usage beyond just tinkering with the language.
This document is meant to reflect on minimal requirements that Fe needs to meet to enter the next stage where we would say: It may not be the most pretty language, nor the most efficient language but you are encouraged to give it a try nonetheless.
That stage of development can be summarized has having shipped a minimal valuable product (MVP).
Non goals
Let's first reflect on all the things that are NOT needed to hit our MVP target.
Language stability
For the MVP, we do not have to care about breaking changes at all. Our MPV release will still be a 0.x.x release and to cite semver.org on that:

major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable.

To give a concrete example, we do currently only support fixed size string types that syntactically are written as stringN where N can take any u32 value such as string100, string4711 etc. We aren't dead set on this and I believe that in the future, when we have something like Rust's const generic these types may become entirely obsolete. We shouldn't care about these breaking changes (or any other breaking changes) for the MVP at all.
Feature completeness
Language development is a marathon, not a sprint. It is reasonable to assume we will still be lacking many wanted features long before we reach a point where the language can be used anyway. Missing features shouldn't keep us from shipping our first non-alpha version.
Gas efficiency
Although it is a stated goal of Fe to produce efficient byte code, we shouldn't care too much about gas efficiency for our first MVP release. We do get some efficiency improvements for free via the YUL optimizer that we are using. We can tackle gas efficiency at later stages in development and just make it very explicit that this would not be a goal for the MVP release.
Actual goals
Let's get to the list of things that we do have to care about for our first MVP.
Best effort to not produce unsound code
One of the most important things that we do need to get right for our MVP is to ensure the compiler doesn't produce unsound bytecode. In other words, the analyzer should reject any code that violates certain conditions such as calling a function with parameters that have the wrong type. Not rejecting code that should be rejected can lead to tragic errors especially in an environment that is all about securing billions of money.
Reasonable testing effort
It goes hand in hand with the previous point that we need to make a reasonable testing effort to achieve a high level of confidence in the compiler. This includes:

Unit tests
Integration Tests
Fuzzing

General compiler fuzzing
Differential contract fuzzing

Since we are also implementing all the Uniswap V2 contracts in Fe we could also go as far as running the Uniswap test suite against the Fe implementation of the contracts.
Basic Developer UX
I'm not entirely sure what this would include but we should make an effort to actually use Fe to deploy code and make sure there aren't any dev UX show stopper left that make it impractical to develop and deploy in Fe.
Pre-audit

I haven't made up my mind on this part. Would we need to trigger a pre-audit or at least work together with some auditing firm before we release our MVP release? While it would certainly be a win, I'm not sure if it should be a hard requirement. For one, we already gain some trust simply through the fact that our last stage of compilation is YUL -> bytecode which is the same for solidity. And second, other languages also had their first official releases before getting an audit. Anyway, I feel indifferent about this part and think it needs more discussion.

Add specifictation

Here's a link to all mvp-required issues for convenience.

This landed as a blog post: https://snakecharmers.ethereum.org/fes-path-to-production/


Closing a duplicate view of an unsaved file closes both views

VSCode Version: Code 1.3.0 (e724f269ded347b49fcf1657fc576399354e6703, 2016-07-07T16:52:42.674Z)
OS Version: Darwin x64 15.5.0

Steps to Reproduce:

Create a new file and type some character into it
Go to another editor and open the new file with Command + P
Close either of the editors
You are asked if you want to save the file, and both views are closed when an action is selected

Lets move to https://github.com/Microsoft/vscode/issues/8983


Check / X glyphs don't render in Windows TrueType fonts

Both Powershell and Command Prompt with font set to Consolas or Lucida Console exhibit the same behavior: the check and x glyphs appear as boxes with a question mark inside. Changing the font to Raster Fonts fixes the problem, but now you have the problem that your console is in an ugly font. :)

Consolas and Lucida Console don't support the U+2713 or U+2A2F glyphs unfortunately. What you can do is run PowerShell or CMD through ConEmu and use Comic Sans or whatever font floats your boat and supports the glyphs.
@substack the issue could be fixed by using the U+221A √ and U+0078 x instead, which I believe is how the Mocha spec reporter does it. Don't know if these are more common glyphs but that would be a solution.

I switched the console to 'DejaVu Sans Mono' font (which looks like Consolas) and Codepage 65001 (UTF-8 via CHCP 65001) and it works for me now


chore: Make object references point at names only

Currently in the README there's an ambiguous sentence referring to some of the object references, namely: targetRef, conditionRef (Alert Policy) and alertPolicyRef (SLO), which states:

this is the name or path]

The question that arises is: "path to what?".
Unfortunately digging in some history behind this I found no explicit mentions or discussions around the ref path.
I believe this might be some legacy which furthermore is not well specified, that's why I propose to remove it from the v1 version as it's not clear what it even means (file path? url path? yaml path?).

For v2, this depends on the outcome of https://github.com/OpenSLO/OpenSLO/issues/308.
For v1, let's merge this :)


shutdown method missing from UDS

My protocol requires a unix domain socket to issue a shutdown event
to half-close the send-side
However this function is missing from the unix domain socket implementation
shutdown(self, how :net::Shutdown)
Would it be possible to add it to uds.rs , in the same way as it's present in the sys/unix/tcp.rs file?

Should we close this or leave it open until we cut a release?

I'll close it since it was merged... hopefully we can get to a release soon :)


Thoughts on [nearing] feature-parity with TeX acronym?

Description
Mainly, I was looking for [TeX's] acronym's acl – which is easy enough to with the following, but I think it'd be nice to have a fairly thorough replication of TeX's acronym as well.
#let acrl(acr: str) = {display-def(acr, plural: false)}

For reference, acronym's docs: https://mirrors.mit.edu/CTAN/macros/latex/contrib/acronym/acronym.pdf
I'd be happy to find some time to integrate some [or perhaps many] of these – but wanted to check before spending the time. 🙂

Indeed, some of the commands from acronyms could be useful. There are much more than I ever used.
Feel free to implement the ones you find useful. Try to reuse the piece of code already present as much as possible to keep the result consistent and easy to debug.

Just for anyone ending up here....
With v0.4 it is:
#let acrs = display-short
#let acrl = display-def

I will look into the parity next, but for now if you are looking for shortcuts you can build them easily by calling existing functions with arguments if required as @bbenno mentioned.
As of 0.4.1, these easy shortcuts works:
#let acresetall = reset-all-acronyms
#let ac = acr
#let acf(acro) = acrf(acro)
#let acfp(acro) = acrfpl(acro)
#let acs(acro) = display-short(acro,plural:false)
#let acsp(acro) = display-short(acro,plural:true)

I added some relevant functions in the latest release 0.5.0 so I will consider this issue closed. Fell free to open another if specific functions are required.


Spell fixes in the README

Addresses spelling errors in the readme
Makes the use of "Redbooth" with a capital "R" consistent through the doc

Added a commit to bump the tested versions of Ruby to currently supported versions. The ones in .travis.yml (2.0, 2.1) are EOL. Bumping to 2.3 and 2.4 to see if tests will pass. The error on the previous test was as follows:
rack-2.0.1 requires ruby version >= 2.2.2, which is incompatible with the current version, ruby 2.0.0p648

The newest failure is due to a change in how code climate now works. I implemented this fix locally, docs are here:
https://docs.codeclimate.com/docs/test-coverage-ruby
However this lead to 185 failures
Finished in 4.41 seconds (files took 0.61539 seconds to load)
327 examples, 185 failures

Most failures are around this since it looks like there isn't a step to :
Failed to open TCP connection to localhost:3000 (Connection refused - connect(2) for "localhost" port 3000)

It looks like there are some other errors in the client that may be related to how newer versions of Ruby and various gems work. For example
  44) RedboothRuby::File.create makes a new POST request using the correct API endpoint to create a specific file
      Failure/Error:
        http.start do |inner_http|
          inner_http.request(req)
        end

      NoMethodError:
        undefined method `close' for #<StubSocket:0x007fcc5a292790>
        Did you mean?  closed?
                       clone
      # ./lib/redbooth-ruby/request/connection.rb:127:in `block in multipart_request'
      # ./lib/redbooth-ruby/request/connection.rb:103:in `open'
      # ./lib/redbooth-ruby/request/connection.rb:103:in `multipart_request'
      # ./lib/redbooth-ruby/request/connection.rb:20:in `request'
      # ./lib/redbooth-ruby/request/base.rb:29:in `send_request'
      # ./lib/redbooth-ruby/request/base.rb:14:in `perform'
      # ./lib/redbooth-ruby.rb:114:in `request'
      # ./lib/redbooth-ruby/operations/create.rb:10:in `create'
      # ./lib/redbooth-ruby/file.rb:42:in `create'
      # ./lib/redbooth-ruby/client_operations/perform.rb:22:in `perform!'
      # ./lib/redbooth-ruby/client.rb:56:in `perform!'
      # (eval):3:in `file'
      # ./spec/redbooth-ruby/file_spec.rb:11:in `block (2 levels) in <top (required)>'
      # ./spec/redbooth-ruby/file_spec.rb:53:in `block (3 levels) in <top (required)>'
      # ./spec/redbooth-ruby/file_spec.rb:60:in `block (3 levels) in <top (required)>'


German characters like Ö, ö, Ü, ü, Ä, ä, ß.

Hallo Shenghao,
Thanks for the good work! I'm currently using pylcddc in a project. However I find that I cannot send German characters like Ö, ö, Ü, ü, Ä, ä, and ß. Currently I use "unidecode()" as a workaround, which replace Ö with O, ö with o etc. I don't like it very much, as for example "G.F. Händel" becomes "G.F. Handel". (On Kodi/Libreelec I do get those characters on my display, so it must be possible somehow.)
Error msg:
pi@LCD-Raspberry:~ $ ./test-logging-test-rotating-spieldauer.py
Traceback (most recent call last):
File "/home/pi/./test-logging-test-rotating-spieldauer.py", line 161, in
main()
File "/home/pi/./test-logging-test-rotating-spieldauer.py", line 98, in main
LCD_UNTEN.text = werk
File "/home/pi/.local/lib/python3.9/site-packages/pylcddc/widgets.py", line 789, in text
self._validate_input(self.x, self.y, self.width, self.height,
File "/home/pi/.local/lib/python3.9/site-packages/pylcddc/widgets.py", line 674, in _validate_input
raise ValueError(f'invalid character in text: {ch!r}')
ValueError: invalid character in text: 'ü'
Could you please have a look?
Regards,
Hans

Hello,
There is a validation step that rejects characters that are not contained within ACCEPTABLE_CHARACTERS: https://github.com/shenghaoyang/pylcddc/blob/5aac5434cf660a02d0b4d8573cc1637f22f0accf/pylcddc/widgets.py#L36
This was added because some LCDs multiplex command and display data over the same channel - a user could inadvertently send command sequences and mutate the (non display) state of their LCD because most LCDd drivers pass data directly to the display.
The umlauts are likely rendered by Kodi sending them using the ISO/IEC 8859-1 character set. Unfortunately, pylcddc only accepts strings at the moment and does not allow changing character encodings (the default is UTF-8), so expanding ACCEPTABLE_CHARACTERS won't really fix the issue.
I'll likely make all the text regions accept both raw bytes and str instead of only str so that users can choose their encodings, so long as a newline character / sequence doesn't appear (newlines terminate a LCDd command).
Does that sound like it'll fix your issue?
Shenghao

Hallo Shenghao,
I was thinking of editing Line 36 in widgets.py, but I get your point, that will not fix the issue.
I hope you find the time to make it possible to send raw bytes. Thanks in advance!
Cheers,
Hans


Kraken order book stream - subscribe to multiple currency pairs by one messge

Current implementation supports only one currency pair subscribe per one sent message via websocket. In case of subscribing to many currency pairs, Kraken ws soon hits rate limits.
Kraken ws supports subscribe to multiple channels by one message https://docs.kraken.com/websockets/#message-subscribe
It would be nice to be able to use this ability. I guess info.bitrich.xchangestream.core.StreamingExchange#connect with ProductSubscription argument is good place to implement this.

We currently have some outstanding work to rate limit message passing for subscription to currency pairs.

We currently have some outstanding work to rate limit message passing for subscription to currency pairs.

I've actually implemented my own rate limiting. I've wrapped websocket sendMessage() by aspectj and Guava rate limiter. Not nice but working :) Problem is it takes a long time to be able to send all subscription messages I need.
Sending just one message to subscribe all required channels would be ultimate solution.

I've actually implemented my own rate limiting. I've wrapped websocket sendMessage() by aspectj and Guava rate limiter. Not nice but working :) Problem is it takes a long time to be able to send all subscription messages I need.
Sending just one message to subscribe all required channels would be ultimate solution.

We can copy CoinbasePro's pattern for this as it handles this, feel free to open a PR for this

We can copy CoinbasePro's pattern for this as it handles this, feel free to open a PR for this


reference type clear selected value

#515
this version's reference type is just search and select only.
so add isClearable to the react-select Select in reference's edit component.
then developer want setting up null using this solution

Thanks for this PR @hvasc. I was looking at it but I think that it should be a more systematic approach for removing reference which will clear the reference also in the database when the user clears the select.
It will be quite complicated to achieve because we don't know which elements are cleared and which simply doesn't appear in the UI (isVisible set to false) - that is why this task is laying there for a while :)


Basics/Camera example building issue

Hello,
I am facing an issue building Basics/Camera example.
C:\Users\user\AppData\Local\Temp\.arduinoIDE-unsaved2023426-33536-thpr5h.d7lcs\Camera\Camera.ino:4:10: fatal error: CoreS3_GC0308.hpp: No such file or directory
 #include <CoreS3_GC0308.hpp>
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: CoreS3_GC0308.hpp: No such file or directory

Do you know how to fix this issue?
Setup

Arduino IDE 2.1.0
W11

Screenshot

@lboue
in the INO File change
#include <CoreS3_GC0308.hpp>
to
#include "CoreS3_GC0308.hpp"
should now include from the sketch folder, not from a library and should compile

Thank you, this solved my compilation issue.
Do you know why I have this warning?


DEBUG-level logs are not being sent to DataDog

Thanks for taking the time for reporting an issue!
Describe what happened
debug log messages are not being sent through to DataDog
Steps to reproduce the issue:

Initialize SDK
Call the debug method:

DatadogSdk.instance.logs?.debug("A debug message.")

Observe that the log is not coming through to DataDog:

Describe what you expected:
debug-level logs should be sent to datadog
Additional context

Dart/Flutter version: 2.17.6/3.0.5
Android/iOS OS version:
Device Model:
Datadog SDK version: 1.0.0-rc3
Versions of any other relevant dependencies:

Hi @mbtodorov,
I'm not able to reproduce this immediately. Is there anything else weird about your setup? Are you seeing this for both iOS and Android? Is there anything unusual about your setup / initialization?

Also, please check what you set in your configuration for your LoggingConfiguration.datadogReportingThreshold.  This defaults to Verbosity.verbose, but if you set it to Verbosity.info, by design it will not send debug or verbose logs to Datadog.

Hello.
@fuzzybinary thanks for looking into my issue so swiftly. I thought perhaps it might be something well known or I am missing something. Let me go into more detail. Here is the setup:
Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // we have firebase initialisation
  await Firebase.initializeApp(
    options: DefaultFirebaseOptions.currentPlatform
  );

  // we have timezone initialisation
  tz.initializeTimeZones();

  // the logging bloc observer has a lot of `DatadogSdk.instance.logs?.debug` none of which are coming through
  Bloc.observer = LoggingBlocObserver();

  DatadogSdk.runApp(
    DdSdkConfiguration(
      clientToken: '<token>',
      env: '<env>',
      site: DatadogSite.us1,
      trackingConsent: TrackingConsent.pending, // updated after user is prompted with tracking consent
      nativeCrashReportEnabled: true,
      loggingConfiguration: LoggingConfiguration(
        sendNetworkInfo: true,
        printLogsToConsole: true,
      ),
      tracingConfiguration: TracingConfiguration(
        sendNetworkInfo: true,
      ),
      rumConfiguration: RumConfiguration(
        applicationId: '<rum-id>',
      ),
      firstPartyHosts: '...',
    )..enableHttpTracking(),
   () => runApp(
     MultiRepositoryProvider(
       providers: [] // a bunch of DI
       child: const App()
   ),
  );
}

Come to think of it, it might be the case that the logs are not coming through because LoggingBlocObserver is instantiated before calling DatadogSdk.runApp 🤔. Although not sure since it calls static methods. Will give it a try and post an update!

Hi @mbtodorov, indeed you need to make sure the global SDK is initialize before trying to instantiate a logger/send a log. If the Logger is instantiate before, it won't know what your configuration is, and will default to a no-op implementation.

Ah, can confirm that the logs are coming through. I feel silly now, apologies for wasting your time. Feel free to close this!

That's okay, it's an easy thing to overlook. Glad to know the logs are coming properly.


No overload matches this call.

Hi All trying to use Big Calendar in my project and created a yearly view, however receiving error while mention views in
Version : 0.20.4
`
import BigCalendar from 'react-big-calendar';
import 'react-big-calendar/lib/css/react-big-calendar.css';
<BigCalendar
views={{ week: true, day: true, year: Year }}// Error on this line
localizer={localizer}
selectable
events={this.state.eventData}
startAccessor="EventDate"
endAccessor="EndDate"
eventPropGetter={this.eventStyleGetter}
onSelectSlot={this.onSelectSlot}
components={{
event: this.renderEvent
}}
onSelectEvent={this.onSelectEvent}
defaultDate={moment().startOf('day').toDate()}
messages={
{
'today': strings.todayLabel,
'previous': strings.previousLabel,
'next': strings.nextLabel,
'month': strings.monthLabel,
'week': strings.weekLabel,
'day': strings.dayLable,
'showMore': total => +${total} ${strings.showMore}
}
}
/>`
Error is
(JSX attribute) views?: Views
No overload matches this call.
Overload 1 of 2, '(props: Readonly<BigCalendarProps<any, object>>): BigCalendar<any, object>', gave the following error.
Type '{ week: true; day: true; month: true; }' is not assignable to type 'Views'.
Type '{ week: true; day: true; month: true; }' is missing the following properties from type '{ day: boolean | SFC<{}> | Component<{}, {}, any>; agenda: boolean | SFC<{}> | Component<{}, {}, any>; month: boolean | SFC<{}> | Component<{}, {}, any>; week: boolean | ... 1 more ... | Component<...>; work_week: boolean | ... 1 more ... | Component<...>; }': agenda, work_week
Overload 2 of 2, '(props: BigCalendarProps<any, object>, context?: any): BigCalendar<any, object>', gave the following error.
Type '{ week: true; day: true; month: true; }' is not assignable to type 'Views'.
Type '{ week: true; day: true; month: true; }' is missing the following properties from type '{ day: boolean | SFC<{}> | Component<{}, {}, any>; agenda: boolean | SFC<{}> | Component<{}, {}, any>; month: boolean | SFC<{}> | Component<{}, {}, any>; week: boolean | ... 1 more ... | Component<...>; work_week: boolean | ... 1 more ... | Component<...>; }': agenda, work_weekts(2769)
index.d.ts(258, 5): The expected type comes from property 'views' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<BigCalendar<any, object>> & Readonly<{ children?: ReactNode; }> & Readonly<...>'

index.d.ts(258, 5): The expected type comes from property 'views' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<BigCalendar<any, object>> & Readonly<{ children?: ReactNode; }> & Readonly<...>'

Follow the instructions in the error, your views object is missing keys


feat: add additional incremental blocks dbt

https://techallies.atlassian.net/browse/DE-533
Alright yall this one spiraled  into a whole other thing. The blocks sync for onearizona started working but its a chonky one so i did some work to create a new version of the dbt to make the streams incremental. Not all of them were able to be made incremental since not every table has a PK but the majority did.
So now we have a new dag and dbt folder called blocks_incremental. I've created a story to update the existing TOT blocks sync to be incremental in the near future.
Dev runs here
Paired with Airbyte Configs PR here - https://github.com/community-tech-alliance/airbyte-configs/pull/83/files
And DMDF PR - https://github.com/community-tech-alliance/airflow-dags/pull/552
Add new blocks dbt to make more models incremental for the One Arizona chomnky sync.
I had to remove some models for streams that it doesnt seem like we are syncing anymore and make a few changes to some tests and models to get them working that we must have not been getting data for with tot sync

:ohno: @jitoquinto it looks like some of the hashid uniqueness tests are failing on the most recent run in dev, any idea what that's about? Do we need to add ctes with window functions to dedupe hashids? 🤔

:ohno: @jitoquinto it looks like some of the hashid uniqueness tests are failing on the most recent run in dev, any idea what that's about? Do we need to add ctes with window functions to dedupe hashids? 🤔

ugh, i actually think its just the partition thing 🙃


Bad error with global variable access : accessing undefined variable

With version : Luacheck: 0.17.1
With the following snippet:
function do_something() -- luacheck: ignore do_something
	print('hello')
end

local function do_it()
	do_something()
	-- => bad luacheck error: accessing undefined variable 'do_something'
end

do_it()

I get an incorrect error:
Checking luacheck_fail.lua                        1 warning

    luacheck_fail.lua:6:2: accessing undefined variable do_something

Total: 1 warning / 0 errors in 1 file

It does the same error if do_something is a variable set without local

If I change do_something to:
local function do_something() -- notice the `local`
    print('hello')
end

There is no error

This is correct behaviour, inline options on the same line as some code only affect warnings for that line. If you move it one line above it will work as you want, ignoring all warnings related to do_something in the rest of the scope:
-- luacheck: ignore do_something
function do_something()
	print('hello')
end

local function do_it()
	do_something()
	-- => bad luacheck error: accessing undefined variable 'do_something'
end

do_it()

Not exactly what I want, I clarify:
The first ignore was intended to be for that line only.
I don't want to ignore the last warning, because I think there shouldn't be a a warning on that line at all.
The last warning is accessing undefined variable but the variable is defined, yes it's defined as a global, but it is defined!
And I don't think that just because the do_something has a warning, the definition should be canceled..
Is it fully intentional?

Yes, a global must be explicitly defined using --globals option or something equivalent. If you want to allow defining globals simply by assigning try --allow-defined or --allow-defined-top options, see https://luacheck.readthedocs.io/en/stable/warnings.html#implicitly-defined-globals.

I understand, thanks for your reply


Add html elements as tree nodes?

Is it possible to add html elements as tree nodes (like buttons)?

Sadly no


Use a unitialized buffer to store hash keys and values.

Use placement new and explicit destructor calls to not take the cost before necessary.
This removes the need for a default constructor and unnecessary initialization.

@havardpe PR

@havardpe PTAL

13:04:57 The following tests FAILED:
13:04:57 	369 - searchlib_attributemanager_test_app (Failed)
13:04:57 	390 - searchlib_attribute_searchable_adapter_test_app (Child aborted)
13:04:57 	391 - searchlib_attribute_weighted_set_blueprint_test_app (Child aborted)
13:04:57 	392 - searchlib_attribute_blueprint_test_app (Child aborted)
13:04:57 	590 - staging_vespalib_lrucache_test_app (Failed)
13:04:57 	736 - vespalib_hash_test_app (Failed)

Should if (!can_skip_destruction<V>::value) be constexpr to not depend on dead code elimination to remove any fluff?

@vekterli As far as I can tell this resolves to
template<typename _Tp, _Tp __v>
constexpr _Tp integral_constant<_Tp, __v>::value;
in type_traits in stl which I think resolves your concern.

I was thinking in terms of replacing it with if constexpr (!can_skip_destruction<V>::value) to avoid even instantiating any destructors in the cases where they're not needed

Point taken, done


Why Latte Model can‘t support PipeFusion

Open-Sora-v1.1’s Transformer module come from Latte,   I see PipeFusion doesn't support Latte in README.
How does xDit support Open-Sora-v1.1/1.2  module, any  suggestions ?
Thank you~

We just have no time to support pipefuson one Latte.
Currently, we are focusing on CogVideoX.
I found ColossalAI, the Open-Sora's hoster, has already used pipefusion.
https://github.com/hpcaitech/ColossalAI/blob/7cf9df07bcb267c0839d8880b109c4c7d55e80fa/colossalai/inference/modeling/layers/distrifusion.py#L3
Would like to help us on supporting PipeFusion for Latte-based models?

We just have no time to support pipefuson on Latte. Currently, we are focusing on CogVideoX, which seems more popular right now. I found ColossalAI, the framework developed by the company behind Open-Sora, has already used pipefusion.
https://github.com/hpcaitech/ColossalAI/blob/7cf9df07bcb267c0839d8880b109c4c7d55e80fa/colossalai/inference/modeling/layers/distrifusion.py#L3
Would like to help us on supporting PipeFusion for Latte-based models?

Sorry for my mistake, I want to support for open-sora-plan v1.2 which has same struction with CogVideoX. Open-Sora may be slightly worse video quality， but ColossalAI's PipeFusion  is a good example. I will try to keep following up.

We just have no time to support pipefuson on Latte. Currently, we are focusing on CogVideoX, which seems more popular right now. I found ColossalAI, the framework developed by the company behind Open-Sora, has already used pipefusion.
https://github.com/hpcaitech/ColossalAI/blob/7cf9df07bcb267c0839d8880b109c4c7d55e80fa/colossalai/inference/modeling/layers/distrifusion.py#L3
Would like to help us on supporting PipeFusion for Latte-based models?

Sorry for my mistake, I want to support for open-sora-plan v1.2 which has same struction with CogVideoX. Open-Sora may be slightly worse video quality， but ColossalAI's PipeFusion is a good example. I will try to keep following up.

We can work together on open-sora-plan v1.2.

close because it is out of date.


Three RC2 suggestions

Nothing but these found from multiple attempts to clean install. Thanks!
1: After receiving blockchain from another RaspiBlitz, and receiving the "welcome new node operator!" messgae, recipient machine reported:
***********************************************************
RaspiBlitz going to reboot
***********************************************************
SSH again into system with:
ssh<EMAIL_ADDRESS>***********************************************************
admin@raspberrypi:~ $

uptime(1) revealed no reboot occurred as of ten hours after.
I suggest message be removed and process changed to return user to 00raspblitz.sh
2: Copy menu item says
COPY      Copy from Computer/RaspiBlitz over LAN (±6h)

I saw it take 2.5 hrs through a 1Gbps switch, and 10 hrs through a 100Mbps switch, so that "±" is doing alot of work.
I suggest "±6h" be changed to "3-10h"
3: There is an alert on shutdown that reads
LCD turns white when shutdown complete.

I suggest EITHER it would be better to read
Green activity light stays dark and LCD turns white when shutdown complete

OR leave it the same and add a FAQ entry "How can I tell when my RaspiBlitz is off?"

The reboot is needed to finish the setup ... if it didnt went into reboot thats a bug. On my test machines its rebooting - so I cannot reproduce - but I put a enforcement of the reboot into the script. Will be part of RC3 that will be released within the next days. Please let us know if this this still happening of your machine with the RC3.

updated

updated


create a Job class

Job objects should be returned from SystemContext.__call__, and should contain (at least) the complete job markdown, and the workflow uuid that gets stored as part of that jobs provenance. That workflow uuid can then be used, for example, in naming the markdown files that q2d3 is creating, which would provide a link from the Artifact objects that get created when the job is run to the actual code that was run, if the interface wants to track that (note that the created artifact's provenance does already have a reference to the workflow template that generated it).

:+1: It could also hold the expected filepaths of the completed artifacts.

+1
Sent from my phone, please excuse typos and brevity.
On Mar 9, 2016 6:59 PM, "Evan Bolyen"<EMAIL_ADDRESS>wrote:

[image: :+1:] It could also hold the expected filepaths of the completed
artifacts.
—
Reply to this email directly or view it on GitHub
https://github.com/biocore/qiime2/issues/23#issuecomment-194617546.

Parent or child relationships?
On Mar 9, 2016 7:14 PM, "Greg Caporaso"<EMAIL_ADDRESS>wrote:

+1
Sent from my phone, please excuse typos and brevity.
On Mar 9, 2016 6:59 PM, "Evan Bolyen"<EMAIL_ADDRESS>wrote:

[image: :+1:] It could also hold the expected filepaths of the completed
artifacts.
—
Reply to this email directly or view it on GitHub
https://github.com/biocore/qiime2/issues/23#issuecomment-194617546.

—
Reply to this email directly or view it on GitHub
https://github.com/biocore/qiime2/issues/23#issuecomment-194640733.

@wasade, not sure I understand your question. This would likely just be a simple struct-like object. If you are talking about workflows calling other workflows (and tracking it), the execution model isn't that sophisticated. We leave those decisions to super-systems (like Qiita).

Ah, okay. Just wondering if a job knew it's relationships. For instance, I
imagine a workflow might trigger a series of serial jobs, or a map/reduce
pattern.
On Mar 9, 2016 7:31 PM, "Evan Bolyen"<EMAIL_ADDRESS>wrote:

@wasade https://github.com/wasade, not sure I understand your question.
This would likely just be a simple struct-like object. If you are talking
about workflows calling other workflows (and tracking it), the execution
model isn't that sophisticated. We leave those decisions to super-systems
(like Qiita).
—
Reply to this email directly or view it on GitHub
https://github.com/biocore/qiime2/issues/23#issuecomment-194643729.


Serialization of enhancement spots, ENHS, ENHC

A delivery from my collegue will merge soon :)

:+1: cool

see comment in https://github.com/larshp/abapGit/pull/270

closed with above commit


Why are all the ages in the "montreal" health_region "Not Reported"?

There seem to be very little age data in the table:
> data=rbind(
  read.table(url("https://github.com/ccodwg/Covid19Canada/raw/master/individual_level/cases_2020.csv"),sep=",",header = T),
  read.table(url("https://github.com/ccodwg/Covid19Canada/raw/master/individual_level/cases_2021.csv"),sep=",",header = T))

> subset(data,province=="Quebec")$age%>%table
.
       40-49        70-79 Not Reported
           1            1       293858

also in other Provinces, where there's more age data, the vast majority is "Not Reported":
> subset(data,province=="Ontario")$age%>%table
.
          <1          <10          <18          <19          <20          >60          >80          >90
           1           39            6           37           32            1          138            1
        0-17         0-19          0-9        10-19      100-109        18-24        18-34        20-29
         736            8            6           59            1            1         2018          343
       20-39        30-39        35-44        40-49        40-59        45-64        45-65        50-59
          60          287          906          278           44         1630            8          346
       60-69        60-79        65-69        65-74        65-79        70-79        80-89          80+
         285           25            1            3          559          161           83          165
       90-99          90+ Not Reported
          51            1       307905

How are age-level reports such as in https://www.inspq.qc.ca/covid-19/donnees/age-sexe generated?

In Quebec specifically, the age data given are cumulative, meaning there is no simple way to assign a particular case (e.g., case in a male aged 60-69 in Montreal) to a particular date.

I am sure that you would love, as much as I, to have the full individual level data....but I guess my confusion arose from the fact that it seems that there's more age-data in inspq site (in their plots....but I've been unable to get hold of the raw data....)
Thanks!

Getting the data from the INSPQ plots is no trouble: they're just CSVs.
You can get some approximation of a time series from my daily snapshots of the files:

@yfarjoun Getting the data from the INSPQ plots is no trouble: they're just CSVs.
You can get some limited approximation of a time series from my daily snapshots of the files: https://github.com/ccodwg/Covid19CanadaArchive#quebec
Montreal also has some of its own data: https://santemontreal.qc.ca/population/coronavirus-covid-19/situation-du-coronavirus-covid-19-a-montreal/
I've captured snapshots of these files too: https://github.com/ccodwg/Covid19CanadaArchive#montreal

That's a great pointer! thanks @jeanpaulrsoucy! 🥳


clinfo segfaults on Raven Ridge

Please advise... OS is Peppermint Linux 10. User is in the "video" group, not sure what that one line is about.
stefan@ryzen5 ~ $ /opt/rocm/bin/rocminfo
ROCk module is loaded
Failed to get user name to check for video group membership
=====================
HSA System Attributes
=====================
Runtime Version:         1.1
System Timestamp Freq.:  1000.000000MHz
Sig. Max Wait Duration:<PHONE_NUMBER>3709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
Machine Model:           LARGE
System Endianness:       LITTLE

==========
HSA Agents
==========
*******
Agent 1
*******
  Name:                    AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx
  Marketing Name:          AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx
  Vendor Name:             CPU
  Feature:                 None specified
  Profile:                 FULL_PROFILE
  Float Round Mode:        NEAR
  Max Queue Number:        0(0x0)
  Queue Min Size:          0(0x0)
  Queue Max Size:          0(0x0)
  Queue Type:              MULTI
  Node:                    0
  Device Type:             CPU
  Cache Info:
    L1:                      32(0x20) KB
  Chip ID:                 5597(0x15dd)
  Cacheline Size:          64(0x40)
  Max Clock Freq. (MHz):   2000
  BDFID:                   1024
  Internal Node ID:        0
  Compute Unit:            8
  SIMDs per CU:            4
  Shader Engines:          1
  Shader Arrs. per Eng.:   1
  WatchPts on Addr. Ranges:4
  Features:                None
  Pool Info:
    Pool 1
      Segment:                 GLOBAL; FLAGS: KERNARG, FINE GRAINED
      Size:                    8388224(0x7ffe80) KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Alignment:         4KB
      Acessible by all:        TRUE
  ISA Info:
    N/A
*******
Agent 2
*******
  Name:                    gfx902
  Marketing Name:          AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx
  Vendor Name:             AMD
  Feature:                 KERNEL_DISPATCH
  Profile:                 FULL_PROFILE
  Float Round Mode:        NEAR
  Max Queue Number:        128(0x80)
  Queue Min Size:          4096(0x1000)
  Queue Max Size:          131072(0x20000)
  Queue Type:              MULTI
  Node:                    0
  Device Type:             GPU
  Cache Info:
    L1:                      16(0x10) KB
  Chip ID:                 5597(0x15dd)
  Cacheline Size:          64(0x40)
  Max Clock Freq. (MHz):   1100
  BDFID:                   1024
  Internal Node ID:        0
  Compute Unit:            11
  SIMDs per CU:            4
  Shader Engines:          1
  Shader Arrs. per Eng.:   1
  WatchPts on Addr. Ranges:4
  Features:                KERNEL_DISPATCH
  Fast F16 Operation:      FALSE
  Wavefront Size:          64(0x40)
  Workgroup Max Size:      1024(0x400)
  Workgroup Max Size per Dimension:
    x                        1024(0x400)
    y                        1024(0x400)
    z                        1024(0x400)
  Max Waves Per CU:        160(0xa0)
  Max Work-item Per CU:    10240(0x2800)
  Grid Max Size:<PHONE_NUMBER>(0xffffffff)
  Grid Max Size per Dimension:
    x<PHONE_NUMBER>(0xffffffff)
    y<PHONE_NUMBER>(0xffffffff)
    z<PHONE_NUMBER>(0xffffffff)
  Max fbarriers/Workgrp:   32
  Pool Info:
    Pool 1
      Segment:                 GROUP
      Size:                    64(0x40) KB
      Allocatable:             FALSE
      Alloc Granule:           0KB
      Alloc Alignment:         0KB
      Acessible by all:        FALSE
  ISA Info:
    ISA 1
      Name:                    amdgcn-amd-amdhsa--gfx902+xnack
      Machine Models:          HSA_MACHINE_MODEL_LARGE
      Profiles:                HSA_PROFILE_BASE
      Default Rounding Mode:   NEAR
      Default Rounding Mode:   NEAR
      Fast f16:                TRUE
      Workgroup Max Size:      1024(0x400)
      Workgroup Max Size per Dimension:
        x                        1024(0x400)
        y                        1024(0x400)
        z                        1024(0x400)
      Grid Max Size:<PHONE_NUMBER>(0xffffffff)
      Grid Max Size per Dimension:
        x<PHONE_NUMBER>(0xffffffff)
        y<PHONE_NUMBER>(0xffffffff)
        z<PHONE_NUMBER>(0xffffffff)
      FBarrier Max Size:       32
*** Done ***
stefan@ryzen5 ~ $ /opt/rocm/opencl/bin/x86_64/clinfo
Segmentation fault

That error unfortunately could be any number of things. Some people have had OpenCL failing since v2.10. Additionally, you may be running into a firmware issue depending on the motherboard you are using. For the latter you can read more about it [here](#1013 1013).

This issue is fixed and no more observed with the latest ROCm 4.1.
Recommend to try with the same.
More over Raven is not a supported config with ROCm.
Thank you.


The Loadpoint's minimum effective current should not be regulated below the value of the vehicle

Describe the bug
The "new" loadpoint effective minimum current calculation in core/loadpoint_effective.go after commit https://github.com/evcc-io/evcc/commit/d63dec9511166c35b59ee5f539062977580226b3 does no longer take into account the minCurrent value of the vehicle.
The effective minimum charging current is now reduced to the standard 6A in PV mode, although a minimum of 8A is required on the vehicle due to the minCurrent configuration there.
This new behavior now means that in some Renault vehicles, where the on-board charging management requires a minimum charging current of 8A, no electricity reaches the battery.
This has already been fixed in the past with #7563 .
Steps to reproduce

Use an EEBUS wallbox and a Renault Zoe or Twingo.
Configure a vehicle with a minCurrent != what the charger reports for the current connection (6A for IEC61851)

For Renault Zoe or Twingo vehicle set the minCurrent to 8A.
Configuration details
See #12770  and #7241
Log details
See #12770 and #7241
What type of operating system are you running?
Linux
Version
0.124.7

Gibts ein Log für den konkreten Fehler?

Ich denke auch. Weiter in #11636.


Send requests to Traffic ops to report Traffic Server configuration states

Along with having the API in Traffic Ops, we must modify the ort script to send this information to the new API to report the configuration differences.  This will probably happen after making the API for the most part, but will be developed partially along the way to test the API.

it would be good to test that this reports all differences properly by modifying the local files and the remote database entries


Illustrations for object and attribute predictions

Hello @peteanderson80
I was wondering how to generate the figure showing the object and attribute predictions for salient image regions with bounding boxes and labels (like the figure in this repo).

Asking for the visualization code. +1

There is some code in our caption model repo for this: https://github.com/peteanderson80/Up-Down-Captioner/blob/master/scripts/demo.ipynb

There is some code in our caption model repo for this: https://github.com/peteanderson80/Up-Down-Captioner/blob/master/scripts/demo.ipynb

Did you give the 'objects' and 'attrs' in your tsv file? I try to get the image tag in your tsv file, but got 'None'

Hi, can you share the tsv file with object and attribute tags! Thank you very much for your contribution!


why the capture view is not clear,has some sawtooth

i'm test the SCRecorder, no this problem

did your fix this @CGWatson

did your fix this @CGWatson


Ldap server on Db

Sorry for writing this request as an issue but I don't know were to write it.
I would want to have the same ldap server but not an in memory one but with the default db (which I think is BerkleyDB)
Thank you
Arvit

I'm sorry, this project is aimed to simple in-memory instance. If you need your data persisted use directly ApacheDS or some other LDAP server (OpenDS/OpenDJ, ...).


PCDM-session crashes when pressing Select Driver  button on the logon screen

Describe the bug
As soon as Trident booted to the logon screen and when the Select Driver button in the upper right corner was pressed the following crash of occurred PCDM-session process.
The core dump was generated and in general it indicates at the issue of deallocating memory source via free() hook to jemalloc
To Reproduce
Steps to reproduce the behavior:

Boot Trident
Press Select Driver button in the upper right corner of the logon screen
Observe the crash and check core dump generated if core dump generation is enabled

Expected behavior
Daemon does not crash
Screenshots
N/A
OS Version:
Trident RC 1
Additional context
Please see core dump below
Core was generated by /usr/local/bin/PCDM-session -once vt9'.
Program terminated with signal SIGABRT, Aborted.
#0  thr_kill () at thr_kill.S:3
3       thr_kill.S: No such file or directory.
[Current thread is 1 (LWP 100492)]
(gdb) bt
#0  thr_kill () at thr_kill.S:3
#1  0x0000000801b00f04 in __raise (s=6) at /usr/src_tmp/lib/libc/gen/raise.c:54
#2  0x0000000801b00e79 in abort () at /usr/src_tmp/lib/libc/stdlib/abort.c:67
#3  0x0000000801ab26f6 in __je_rtree_leaf_elm_lookup_hard (tsdn=, rtree=,
rtree_ctx=0x80052a0b8, key=140737488349128, dependent=, init_missing=)
at jemalloc_rtree.c:239
#4  0x0000000801afd696 in rtree_leaf_elm_lookup (rtree=0x6, init_missing=false, tsdn=,
rtree_ctx=, key=, dependent=)
at /usr/src_tmp/contrib/jemalloc/include/jemalloc/internal/rtree.h:381
#5  rtree_read (tsdn=, rtree=, rtree_ctx=, key=,
dependent=) at /usr/src_tmp/contrib/jemalloc/include/jemalloc/internal/rtree.h:406
#6  0x0000000801af635a in rtree_szind_slab_read (dependent=255, tsdn=, rtree=,
rtree_ctx=, key=, r_szind=, r_slab=)
at /usr/src_tmp/contrib/jemalloc/include/jemalloc/internal/rtree.h:458
#7  ifree (tsd=0x80052a090, ptr=0x7fffffffe7c8, tcache=0x80052a250, slow_path=true) at jemalloc_jemalloc.c:2210
#8  0x0000000801af6b82 in __free (ptr=0x7fffffffe7c8) at jemalloc_jemalloc.c:2404
#9  0x00000000004aa301 in ?? ()
#10 0x00000000004ab530 in ?? ()
#11 0x00000000004a8095 in ?? ()
#12 0x0000000800511000 in ?? ()
#13 0x0000000000000000 in ?? ()
`

Crash by segmentation fault was fixed and smoke tested , please see pull request: https://github.com/project-trident/pcdm/pull/14


Reduce Testnet Ban Time

The ban time is reduced to 10 minutes to facilitate testing of misbehaving nodes - without having to wait 24 hours if the node gets banned.

Hi, could the testnet ban time become a switch rather then hard coded to 10 mins - so the dev can choose the time window themselves ?

It is already a switch. This PR is to enforce testnet bantime consistency because the node being tested is really dependent on the setting on the other nodes.

I am not sure I agree with this change because we can simulate less banning with specific nodes to achieve the same result.

Or even connect to a whitelisted node will do the job

Shorter banning duration is good for testnet because we might have forks (like we already did 3 times before) and avoid waiting for 24h before banning time is done and we can restart node that is on a wrong chain and was banned for violating max reorg rule

@noescape00 good point, while we don't expect forks often on testnet  either we may try to simulate them more often, so that's a good reason to do this.


request headers usage in frameworks

What version of uws are you using?

master

What features of µWS are involved in the issue?

Server support (HTTP)

How does the issue reproduce?

All the time

Can you show me some short code that triggers your issue or any other important information?

const http = require('uws').http
const Koa = require('koa')
const conditional = require('koa-conditional-get')

const app = new Koa()

app.use(conditional())

app.use(ctx => {
    ctx.body = 'Hello World!'
})

http.createServer(app.callback()).listen(8000)

this triggers
Warning: req.headers usage past request handler is not supported! because of koa-conditional-get module
koa (among others) is a framework that bundles middlewares with a downstream/upstream flow where you have code that does processing before response and after
so request headers do get used in responses as it doesn't make sense to allocate all variables for potential usage in response before downstream code is actually called
there is probably bunch of other modules with the same "issue"
https://github.com/koajs/conditional-get/issues/9

I don't know what you mean by upstream and downstream but that warning is not a bug. It simply warns about invalid usage of uws. Web libraries should run their chain of middleware inside the request handler of uws, and then either respond within that function (fast) or respond outside it (potentially slow). But you know it is almost pointless to run Koa or Express on uws as these libraries bottleneck any advantage. There are other libs like Aero.js which operate 50x faster but that project is stalled and has no contact available.

well koa seems fastest of the other frameworks when using uws.http judging from https://github.com/hbakhtiyor/node-frameworks-benchmark
at least three times faster than when using node's http so I would want to try it

Maybe you'll have a better try with this zeit/micro thing. I get 16k req/sec with it and 72k with uws as the http server. zeit/micro is however just a silly rebranding of Node.js's own vanilla http module since it doesn't really do anything.

I get 100k without any zeit/micro so it is not a zero-cost wrapper.

interesting, plain uws.http without abstractions interests me the most of course
for now I would like to migrate our current koa stack from node http to uws but I've hit this issue with few modules so decided to report and see where we get from there

Well the uws.http thing is not further developed at this point. It has more of a gimmick status right now. If anyone wants things done with it we are talking cash for code here. Otherwise I don't have any plan to finish it up.

Care to elaborate on what makes it gimmicky and not ready for production use?

Streaming is broken, no SSL, "Connection: close" ignored, somewhat broken out of order response, and finally tons and tons of Node.js balancing between compatibility and perf


chore(main): release 0.0.5

:robot: I have created a release beep boop
0.0.5 (2024-09-25)
Bug Fixes

handle missing binaryen versions on linux/arm (9a9fedf)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/mhdawson/wasm-builder/releases/tag/v0.0.5 :sunflower:


Issue with Updating Client Application via DCR Endpoint

To update an application via the DCR endpoint in the documentation the following request format and a sample curl command is mentioned [1]. However, executing this command results in a 'ClientErrorException'.
curl -X PUT -H "Authorization: Basic <Base64_encoded_username:password>" -H
"Content-Type: application/json" -d '{
"redirect_uris":["<callback_url>"],
"client_name": "<application_name>",
"grant_types": ["<grant_types>"] }'
"https://<IS_HOST>:<IS_PORT>/api/identity/oauth2/dcr/v1.1/register"

curl -X PUT -H "Authorization: Basic YWRtaW46YWRtaW4=" -H
"Content-Type: application/json" -d '{
"redirect_uris":["https://client.example.org/callback"],
"client_name": "application1",
"grant_types": ["password"] }'
"https://localhost:9443/api/identity/oauth2/dcr/v1.1/register"

Issue 1:
When updating the application It should call https://<IS_HOST>:<IS_PORT>/api/identity/oauth2/dcr/v1.1/<client_id> not https://localhost:9443/api/identity/oauth2/dcr/v1.1/register endpoint
Issue 2:
In the sample DCR update request we're trying to add redirect URL even though the authorization code or implicit grant is not enabled.
[1] https://is.docs.wso2.com/en/latest/guides/access-delegation/oauth-dynamic-client-registration/#update-an-oauth-application

Fixed with https://github.com/wso2/docs-is/pull/4471#pullrequestreview-1884495508


Standalone tsconfigs for client/server

Closes #93
There may be options that can be trimmed down. For example, I'm not sure experimentalDecorators is necessary in the client tsconfig

FYI I think leaving experimentalDecorators on the client is fine. AFAIK there is not a downside to having it turned on, and I have in the past written decorators in client code and might do so in the future.


[Release Radar Request] soketi - Just another simple, fast, and resilient open-source WebSockets server. 📣

Open Source Project name
soketi
What is your project?
Just another simple, fast, and resilient open-source WebSockets server. 📣
soketi implements the Pusher Protocol v7 (and soon, more!) so that any Pusher-maintained client can connect to it, bringing a just-change-the-pusher-client-credentials experience for the already-built frontend apps.
Version
0.17.0
Date
November 27, 2021
Description of changes

Dropped Node.js 14.x build for Docker (there was no reason for 14.x if it ran in 16.x which is LTS)
@stayallive pointed out in #124 that exposing the /metrics and /usage endpoints to 6001 (which is public) was a bad idea in terms of security. Starting with this version, the server will run the metrics to a different port (9601) which may not be exposed to the internet. This way, you can run the Prometheus Scrape service within your server or in your private network.

Notable milestone achieved before this update: AWS Lambda invocations for Webhooks (https://github.com/soketi/soketi/pull/147)
GitHub Repo
https://github.com/soketi/soketi
Website
https://renoki.org
Link to changelog
https://github.com/soketi/soketi/releases/tag/0.17.0
Social media

Anything else to add?

Sorry we couldn't include this in the November Release Radar as that had already shipped. Please definitely submit again for your next version and we'd love to consider your project 😄


CBuild --context command should have more flexiblity

The CBuild command should get more flexiblity (examplified on https://github.com/Open-CMSIS-Pack/csolution-examples):
I suggest to combine --configuration and --context into the same command (only --context is implemented).
The build command for *.csolution.yml files should allow the syntax described here
[project-name][.build-type][+target-type]

All elements of a context are optional, but at least one must be present.

When project-name is omitted, all projects in a csolution.yml are build.
When .build-type is omitted, it matches with any possible .build-type.
When +target-type is omitted, it matches with any possible +target-type.

When using /c/w/csolution-examples/DualCore (main) the following commands are effectively identical (as the solution only contains one project and one build type:
$ cbuild HelloWorld.csolution.yml --context HelloWorld_cm4.Release+FRDM-K32L3A6
$ cbuild HelloWorld.csolution.yml --context .Release+FRDM-K32L3A6
$ cbuild HelloWorld.csolution.yml --context .Release

I would be also create to allow multiple --context options as exemplified here with the example /c/w/csolution-examples/dualcore
cbuild HelloWorld.csolution.yml --context HelloWorld_cm0plus.Debug --context HelloWorld_cm4.Release

This should build the project

HelloWorld_cm0plus using build-type .Debug
HelloWorld_cm4 using build-type .Release

Relates to #823

After the discussion, the below decisions are made

cbuild should provide flexibility to specify multiple --context options (supporting [project-name][.build-type][+target-type])
cbuild HelloWorld.csolution.yml --context HelloWorld_cm0plus.Debug --context HelloWorld_cm4.Release
Order of execution should be the same as the order of projects specified in the csolution file

see CMSIS-Toolbox 2.0.0-dev2


增加表单复选框全选组件

General

✏ Mark the necessary items without changing the structure of the PR template.

[ ] Pull request template structure not broken

Type

ℹ What types of changes does your code introduce?

👉 Put an x in the boxes that apply

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist

ℹ Check all checkboxes - this will indicate that you have done everything in accordance with the rules in CONTRIBUTING.

👉 Put an x in the boxes that apply.

[ ] My code follows the style guidelines of this project
[ ] Is the code format correct
[ ] Is the git submission information standard?
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

提PR之前从main创建一个新的分支，然后从分支进行PR
现在这个PR包含了上次的合并过的内容。
另外，功能PR在提交之前最好是创建一个issue讨论下，万一功能不被接受就白花时间了。

提PR之前从main创建一个新的分支，然后从分支进行PR 现在这个PR包含了上次的合并过的内容。
另外，功能PR在提交之前最好是创建一个issue讨论下，万一功能不被接受就白花时间了。
@zwtvip

好的，第一次提，没啥经验，感谢大佬指点

@zwtvip 那这个PR先关了哦


Feedback from Insert Method

In comparison to the other methods, e.g. update, insert does not deliver any result:
result = runtime.require('db').collections().Person.insert({
'_id': 'luke',
'firstName': 'Luke',
'lastName': 'Skywalker'
});
Here, result is always Array(0) [], whether an element was added or not. The only hint is a message:
runtime: unknown property 'XXX' for the definition of 'Person'
runtime: invalid document  ....
Which I cannot catch (any hint how I can do it will be appreciated), since it is not an error.
Would it be possible to update the method, so it returns, e.g.

1, when an element was successfully inserted,
0, otherwise?

Thank you for your suggestion!
ìnsert API returns an array with the _id of created document/component, empty array otherwise. I will update the documentation about that.
In your case example, if the model is valid, the result should returns ['luke'].
It was a design choice not to raise an error during call to runtime APIs. The goal was to avoid script break and to have all the informations about errors in the log.
What I can do is to add some logs inside update, create and remove APIs, so you will get more informations when you call these APIs. I will probably put these logs at debug level, so to see them you will have juste to do:
runtime.require('logger').level('debug')
By the way, you can add this line in your current script to have more information about the model generation.

Thanks for a quick reply.
I think it is a good idea not to raise an error during call to runtime APIs. However, it should be a feedback with information.  Therefore it would be great to see some documentation about debug log levels. Right now runtime.require('logger').level('debug') returns undefinded.
As for insert method, it returns Array(0) [], whether an element was added or not. When I check the model for example, I see an element was inserted, however the return value is an empty array. Exactly like the case, when an element was not added for this or that reason.

I will have a look on update, create and remove APIs to check if there are no issues, because the behavior you have is not correct one. I will also complete the online documentation about that.
runtime.require('logger').level('debug') returns nothing but it enables level of log to a specific level (debug / info /  warn /  error). If you had it at the beginning of your script (i.e. before metamodel.create()), you will get logs like these:
runtime: starting model creation...
runtime: generating model 'Jedi'...
runtime: analyzing model 'Jedi'...
runtime: 'Jedi' database collection created
runtime: 'Jedi' class created
runtime: model creation ended

I have updated the library in order to fix an issue I have found with the insert API: the returned array does not contain id of document that already exist in collection. It may fix the behavior you had.
I have also update the online documentation.

Thanks for extending the documentation! I would add the case, with creation of references. It is clear how it is done, while creating components. However, it seems like it is not functioning the same way after a model was loaded:
// add reference
luke.father(anakin);
BTW insert was functioning properly. I was confused by documentation. I thought I have to create an instance firstly and then call the insert method. Therefore insert returned nothing back.

 And I will try to make the documentation clearer.
About the creation of references, you mean like in this example ?  What differences have you between adding a reference in the object like:
new Jedi({
  '_id': 'luke',
  'firstName': 'Luke',
  'lastName': 'Skywalker',
  'father': 'anakin'
});

and by code like this:
const anakin = this.require('anakin');
luke.father(anakin);

Yes, this example is not functioning in my case for different types of models. I get the same error type each time. Here, how the error will look like for this example:
runtime: invalid value for property 'father' on component 'a7aaad61-f679-41a5-a61a-e0c94d63eb08' (class ''): expected type 'number' instead of type ''

Can you give me a sample of the code that gives you that error ? So that I can fix the issue.

I think mixed up collections with links. So I tried to add an element to a collection with the method ment for adding links.
luke.father(anakin) -> add a link or reference
padme.children([luke, leia]); -> this method is not functioning. when there are already elements in the collection. No error comes. So I use : padme.children().push[luke) , which is functioning.

Hi,
I try this scripts (taken from the documentation), and it seems to work:
const system = runtime.system('example10');

const metamodel = runtime.require('metamodel');

metamodel.schema('Jedi', {
  'firstName': 'property',
  'lastName': 'property',
  'children': 'collection'
});

metamodel.create();

const Jedi = runtime.require('Jedi');

new Jedi({
  '_id': 'leia',
  'firstName': 'Leia Amidala',
  'lastName': 'Skywalker'
});

new Jedi({
  '_id': 'luke',
  'firstName': 'Luke',
  'lastName': 'Skywalker'
});

new Jedi({
  '_id': 'padme',
  'firstName': 'Padme',
  'lastName': 'Amidala',
  'children': ['luke', 'leia']
});

system.on('start', () => {
  const padme = this.require('padme');
  const luke = this.require('luke');

  padme.children([luke]);

  console.log(padme.children(0).firstName());
});

system.start();

Maybe something is different in your script.


Fixes issue Bricklou#6

I fixed the issue with the audio files not playing correctly. Also, you might want to use try {} catch (e) {} when doing something that could pose risky, or even for debugging when the whole application just closes out. You can see I used it in my /thakyz/powercord-pindms/formatting

Btw, I was just about to add another change and that was to change line 180 of Settings.jsx from console.log(..., ..., e); to just this.log(e); But it's your choice on the matter :3

I don't really want to spam the console, there are already so many log without the plugin xD


fix: always show charge energy for current and last session

Fixes #295 and #413
Based on the information here, I realized that the logic to set the energy added to 0 when not charging was breaking energy calculations.
The actual energy added value is reset by tesla on it's own, so when we manually set 0, and then revert back to the tesla's value if charging starts again for the same charge session, it will cause the energy dashboard to incorrectly sum the deltas.
It appears that TOTAL_INCREASING is the right state class to use, as we don't expect the value to decrease substantially (a 10% allowance is built in). So if we just rely on the car's own charging state to reset appropriately, the energy dashboard should reflect usage correctly.
What this changes for users:

The energy added sensor will continue to report the last energy added value from the most recent charging session
The energy dashboard will no longer double/triple the energy usage for single charging sessions which pause/resume
The energy added sensor will show unknown instead of 0 when the data is not available (if the vehicle is offline/asleep when the integration is loaded)

in draft while I test that the unknown behavior doesn't cause any problems in the energy dashboard

I was about to give a try implementing this change but many thanks you've done it!  :)

Unfortunately @carleeno, it still doesn't work with 3.7.0. The car was charged last a few days ago. Since then it counted energy added 5 times.


Images are not placed in the "notes/assets/" directory for compatibility with publishing

When pasting images, the dendron-paste-image extension places the image in "notes/" directory. However, these need to be placed in "notes/assets/" in order for them to publish correctly. Though the images appear correctly in the VSCodium/VSCode dendron preview pane, when published, the images are broken, presumably because they're not placed in the "notes/assets/" directory.
Replicating the problem: (Assuming you have Dendron and the Dendron Paste Image extension installed:)

Create a new Dendron workspace
Copy and image to the clipboard, then use the "Paste Image" feature from the command pallet to insert an image into an dendron note.
Look at the file structure, note that the image is stored in the notes/ directory.

To test the publishing result: (assuming you have the dendron-cli installed)

At the command line, in the worspace directory initialize for publishing: npx dendron publish init
preview the site: npx dendron publish dev
View it in a browser at "localhost:3000"
View the site. In my case, the images are broken. The links refer to "/image.png", but no images appear.

Tested with:

VSCodium: 1.68.0
Dendron v0.105.0
dendron-cli 0.105.1
Dendron Paste Image: v1.1.0
Linux Mint 20.2

Can reproduce. Images go into notes/*.png instead of notes/assets/*.png in self-contained vaults. Haven't tested legacy vaults.

VSCode: 1.69.2
Dendron v0.105.1
dendron-cli 0.105.1
Dendron Paste Image: v1.1.0
OS: Pop!_OS 22.04 (Linux / Ubuntu deriv)

@sirkus7 For you and others in the meantime, looks like you can change this in the extension settings:

Go to the Dendron Paste Image extension in your editor
Click on the gear icon -> Extension Settings
Go down to Paste Image: Path and change the value

Current value: ${currentFileDir}
New value: ${currentFileDir}/assets

This should ensure it goes to the proper assets directory
In case you want an extra prompt, can also enable the Paste Image: Show File Path Confirm Input Box option

The fix for this repo would be to probably update the default value used in Paste Image: Path to be ${currentFileDir}/assets so that others don't run into the same problem.


🔧 collection floor

maybe something like this could work

close #164

need to change after #168

IMO it's better to use orm instead of raw sql

IMO it's better to use orm instead of raw sql

If you can write it effective, feel free.
The implementation introduced in 2a60224c682fe535dee9ca43be530b730a2f5977 is ineffective and would never resolve.

The implementation introduced in 2a60224 is ineffective and would never resolve.

hmmmmmm.. will always be 0n when not listed if I understand correctly

Merge?

If you user it works

If you are sure that it works i would merge

can we do a smoll release to test it without affecting v8 stick and v9 speck?

We can do a new release, pleas top up stick version :) and do a pr


Ensure DataplaneServices gets the expected image

recheck

/test install-yamls-deploy

recheck

/override rdoproject.org/github-check


IE11 shadydom null reference

When running in ShadyDOM (in Internet Explorer 11) there's an error:
Unable to get property 'appendChild' of undefined or null reference
Problem doesn't appear to be browser specific, other than ShadyDOM vs ShadowDOM
I've traced this to:
https://github.com/vaadin/vaadin-overlay/blob/v3.2.12/src/vaadin-overlay.html#L796
Here the shadowRoot is attached
and:
https://github.com/vaadin/vaadin-overlay/blob/v3.2.12/src/vaadin-overlay.html#L827
Here the content property is overwritten by a node without shadowRoot

@srijken I can't reproduce this issue with current master branch or version v3.2.12. Overlay demos seem to work fine on IE11 in Win 10 when running with polymer serve.
Can you post a code example on how to reproduce this and more details about your environment (Windows version, more specific IE version)?

Repro: https://github.com/srijken/vaadin-select-repro
The problem is triggered by the dom-if around the element that contains vaadin-select

@srijken Thanks. I didn't have time to take a look at your repo yet and I'm heading for 3 week vacation right now, but someone else from the team will probably take a look.

I'm back from vacation. Will take a new look probably tomorrow.

Thanks for the repro repo! I can also reproduce it now. I also just noticed the discussion and progress in the PR #157. I'll comment there.


Update go modules

/x/net is vulnerable and is brought to other projects as this project dependency because of that.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
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 96.289%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
467

Relevant Lines:
485

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
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 96.289%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
467

Relevant Lines:
485

💛  - Coveralls


Adding cell below clears any existing cell directly below

Bug: Notebook Editor, Interactive Window, Python Editor cells
Steps to cause the bug to occur

Adding a cell above or below the current cell in the notebook editor
Moving cells up or down in notebook

Actual & Expected behavior

Adding a cell above or below current cell should not cause loss of code in any existing cells
Moving cells should not cause loss of code

Your Jupyter and/or Python environment

Jupyter server running:                       Local
Extension version:                               2019.10.44104
VS Code version:                                1.39.2
Setting python.jediEnabled:            false
Python and/or Anaconda version:    3.7.3
OS:                                                     Windows
Virtual environment:                          conda

This should be fixed in our insider's build


docs: Improve docstring for Runnable bind method

Added example to the docstring of the "bind" method of Runnable. This makes it easier to understand the purpose of the method when reviewing in code editors. E.g. VS Code below.

Looks great!

^ Linter was upset by a trailing whitespace. Running make format from the package root can fix.

Ok. Thanks for the pointer on make format @ccurme!


Distinguish free functions class names

A scenario can arise where a translation unit has inside it a class with the same name as the unit file, as well as free functions under a namespace. The CLI generator will generate a class for the free functions, with the same name as the translation unit. This causes a conflict because there is already a class with the same name. Make the generated free functions class name unique by appending the word "Helpers".
Not an issue for C# as it generates partial classes.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: IIFE sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

The CI broke, there's some problem. Also, I'm not sure this is the way we would like this solved. I'll discuss it with @tritao .

@ddobrev No problem. Let me know what you feel is better.

@ddobrev The CI error has this line:
CLI.Tests.cs(24,44): error CS0234: The type or namespace name 'FreeFunctions' does not exist in the namespace 'CLI' (are you missing an assembly reference?) [C:\projects\cppsharp\tests\CLI\CLI.Tests.CLI.csproj]

Do new generated files get included automatically in in the gen projects, or do I need to do something special? I think the error is because the free functions generated file is not getting compiled.

@IIFE might be the case. However, if @tritao agrees with the solution I'm going to propose, there won't be extra files.

@IIFE we might be able to come up with an even better solution than before, even for C#. However, we want to discuss in in more detail tomorrow. Meanwhile there's something you can do to help us: generate C++/CLI classes partial too and let us know if and how it works with your test but without your fix.

@IIFE I've just tried it myself, don't bother. It's only supported in windows rt. So let me tell you what the problem is. We have logic which moves free functions to classes as static methods in such cases. However, our searching for a matching class is apparently inadequate and fails when a name-space stands in the way. So our real fix is to improve the pass which you can find here.

@IIFE there are some other complications as well, unfortunately. So please leave this for now and we'll talk more about it tomorrow.

@ddobrev That's fine. I'll continue posting the other PRs in the meantime. Thanks.

Me and @ddobrev have discussed this a bit, but have not yet had time to come up with a solution we're both happy with. I would ask you to continue sending other PRs in the meantime and we'll try to figure something out.

@tritao Thanks for the update. I can temporarily work around the issue, but it would be good to have a proper fix.
Any idea when it's possible to get a release with the merged fixes please, as I'm unable to find NuGet or binaries with the latest changed?
Thanks.

@IIFE https://www.nuget.org/packages/CppSharp/0.10.3. Thank you for your contribution for this release. It hasn't been indexed at the moment but will be in a few minutes.

@tritao @ddobrev I had more thought about this, and I'm starting to think we may not need a fix on CppSharp side.
The issue is pretty much an edge case, and can be fixed in the CppSharp consumer by simply wrapping the free functions in a namespace so that they don't conflict with existing types that match the file name.
I'm happy to close this PR.

@IIFE it actually can and should be fixed, it's just that we haven't agreed on the approach. So please leave the PR open to serve as a reminder.


Mutate context.route

When subscriptions were removed, so was mutating an object that was used for the context. The problem is that if a component is stuck behind shouldComponentUpdate and it uses a subscription to respond to navigation changes, then when it updates, it will still have the old context. This is fine for context.history because it is always the same object, but it is an issue for context.route because it will have the previous match and location objects.
The solution that this PR takes is to have the <Router> and <Route> keep internal route components that they mutate upon re-render. (This is actually one place where having <Router> render a <Route> at its base instead of adding its own context.route would make implementation slightly easier).

Subscriptions + mutating context is the wrong approach, I think. People who are using shouldComponentUpdate need to pass the new location as a prop to their "pure" components so they can get updates deep into the tree.

Just to clarify, you mean that they should pass a location prop so that sCU returns true, correct? I don't love this PR (or every really like it, I just wanted to put something together that worked to pass a), so I'd be happy to avoid this.

Thinking about this a little bit more, it is a reasonable expectation that if someone is stopping all updates (i.e. shouldComponentUpdate() { return false }, then React Router shouldn't have to make an effort to keep any route aware code trapped in there up to date. In all other situations, a location prop should work to get around sCU.
I saw that there was a "guides" section on the new website, so it probably wouldn't hurt to document passing a location prop to get around sCU in there, but this PR shouldn't be necessary.

Just to clarify, you mean that they should pass a location prop so that sCU returns true, correct?

Yes, exactly.
For a long time now we've been worried about people returning false from sCU and how to get around that. When we removed subscriptions, we made the decision that anyone using sCU should be knowledgeable enough to know how it works; namely that they need to use the location prop to return true if they have descendant components (like <Route> and <Link>) who need to update when the location changes.