Expose TextPainter's preferredLineHeight in RenderParagraph

Use case
I am repositioning a ScrollController to snap to the current line (making sure it's visible in its entirety).
To do this, I must know what is the actual size of a line of text, or at least the closest approximation possible.
Proposal
Reconsider exposing TextPainter's preferredLineHeight on RenderParagraph as described in #65150. At the time the implementation for that particular getter was described as "sketchy", but I do not know if that is still the case (code has changed since).
For now, I am using renderParagraph.getFullHeightForCaret(const TextPosition(offset: 0)) ?? 0, but that is of course limited to the first character. This is the best solution I've got as of now, and would welcome any more precise way of getting this info.

I'm planning to expose a new TextLayout interface on some TextPainter and some render objects. Does this cover your proposal?
preferredLineHeight has not changed much it's still a bit sketchy. IIRC uses a whitespace character as a template to estimate how tall the lines in the paragraph are, which may not work well when there's rich text, or the first line or the last line needs different leading than other lines.

I just sent an access request to that google doc.
But from what you're describing about TextPainter's preferredLineHeight, it's no better that what I'm already doing so I'll close this issue and keep an eye out for what you're planning with TextLayout.
Thanks !


Figma Guide plan & standard

Align with Ivan/Paul about the Guide update Plan,
Work with Delme & Ben P. to update the Guide Creation Standard.
Ben P confirming and reviewing the works (1 Guide per branch - starting from Avatar & Accordion).

Process in the future:

When the designer has done the guide -> send it to Ben P. Ben P Update and merge

Mocca Goal: Align the guides on how to use the components with the component names

Ben P and Delme to review and Yun to document the standards that we apply to all new guides (for new library).

Thu 5 Dec - First version is done, to be reviewed with @bhoppers2008,
(examples/screenshots to be added after the updated guides are done after new library)

Does any remaining work return to the backlog in the form of new tickets ?
Can we close this one as part of Mocha ? @yunjungyeh  @bhoppers2008

Reviewed with @yunjungyeh and some updates made. Further updates are out of scope until new Figma libraries are released. Can be addressed in separate ticket.


Fix setup.py

Allows installation of Python extension from the command line after setup.py is configured.
Once this PR is merged, users will be able to run the install command from the build folder even if they do not install HELICS.
If users want to build the Python extension from source, and have already installed HELICS, all they have to do is create a new CMakeLists.txt file in the swig/python folder with the following lines:
configure_file(setup.py.in setup.py)
configure_file(helics_wrap.c helics_wrap.c COPYONLY)
configure_file(helics.py helics.py COPYONLY)

and run the following:
cmake .
HELICS_INCLUDE=/path/to/helics-installation-v1.1.1/include/ HELICS_LIB=/path/to/helics-installation-v1.1.1/lib/ pip install -e .

e.g. on my Mac, I was able to run this.
HELICS_INCLUDE=/usr/local/Cellar/helics/1.1.1/include/ HELICS_LIB=/usr/local/Cellar/helics/1.1.1/lib/ pip install -e .

and use the HELICS Python extension.

@nightlark does this conflict with anything you were doing?

It changes some of the same lines, but I only altered the default values used when no environment variable exists, so it should be easy to add any that are still relevant.

looks like there are few issues with the non-swig build of python that should be resolved before we can merge


Sync ongoing for 24 hours

Hi,
I have setup on a QNAP nas using the joplin only compose.
All seems ok but the sync doesn't seem to be working.
There was an initial update which then stopped to prompt for the master encryption key (added with the docker exec command on the server), but since I am not sure anything is working.
The service repeats these messages every few seconds:
{"info": "2023-05-24T07:15:06.925Z", "output": "Synchronisation target:  (6)\nStarting synchronisation...\nCompleted: 24/05/2023 07:15 (5s)\nDownloading resources...\n", "error": ""}
Is this an error or a complete step ?

Hi.
I tried to handle e2ee in a branch, but I finally gave up... (you are speaking about e2ee, aren't you?).
My dev was almost working, but I encountered issues when I tried to disable, then enable again... I don't know if Joplin is more robust now than when I did...
I unfortunately cannot spend time at this moment... Maybe this discussion may help you ?


Msal-Node Patch Release

Patch release for msal-node including success template fix

Codecov Report

Merging #6667 (81f8e3d) into dev (81d34b4) will decrease coverage by 4.33%.
Report is 384 commits behind head on dev.
The diff coverage is n/a.

Flag
Coverage Δ

msal-angular
?

msal-browser
?

msal-common
?

msal-core
?

msal-node
80.66% <ø> (-2.73%)
:arrow_down:

msal-node-extensions
?

msal-react
?

node-token-validation
?

see 234 files with indirect coverage changes


Serious Performance Issue With Pipeline

I've been banging my head against this for the past few days after we got some pretty bad performance results following a recent load test. At first I thought it was a memory leak in our code but on further investigation I think the increase in memory usage was because pipeline was causing the CPU to max out so much that the garbage collector was fighting for CPU cycles. A stripped down test case showed the CPU hitting 99-100% for some pretty trivial stream processing with the memory staying constant.
Here's the test case:
var _ = require('highland');

var bigArray = []
for(var i = 0; i < 100000; i++) {
    bigArray[i] = i;
}
var s = _(bigArray);

function addOne(a) {
    return a + 1;
}

function bigAdd(a) {
    for(var i = 0; i < 500; i++) {
        a++;
    }
    return a;
}

function bigSubtract(a) {
    for(var i = 0; i < 100; i++) {
        a--;
    }
    return a;
}

console.time('timer');
s.through(_.pipeline(_.map(addOne), _.map(bigAdd), _.map(bigSubtract))).toArray(function () {
    console.timeEnd('timer');
});

This takes nearly 40 seconds to run my machine whereas this only takes 142ms:
console.time('timer');
s.through(_.map(addOne)).through(_.map(bigAdd)).through(_.map(bigSubtract)).toArray(function () {
    console.timeEnd('timer');
});

If I increase the size of bigArray to 1000000 then the first version takes so long that I have to kill it (compared to 1.3 seconds for the other version).
The problem seems to in the wrapper part of the pipeline function:
var wrapper = _(function (push, next) {
        end.pull(function (err, x) {
            if (err) {
                wrapper._send(err);
                next();
            }
            else if (x === nil) {
                wrapper._send(null, nil);
            }
            else {
                wrapper._send(null, x);
                next();
            }
        });
    });
    wrapper.write = function (x) {
        start.write(x);
    };

The thing that's stumping me is that both pull and send really don't seem to do very much so I'm not sure how they can be leading to such a massive jump in CPU use. I want to take a stab at fixing this but I'll need a couple of pointers to get me started.

 I always suspected this (but never got around to verifying), and it was one of the reasons why I wanted to rewrite the engine.
I ran your code against 3.0.0 and got
pipeline: 342ms
direct: 182ms

I suspect it's because pull is implemented using consume, which creates a new stream object. This happens per element pushed, so it could be causing the GC to freak out. Maybe you could try to re-implement pipeline using consume somehow? You'd have to be careful to preserve laziness somehow.
Ideally, we'd move to 3.0.0 sooner rather than later.

Yeah, I'd seen that new stream being created; I didn't expect it to have that big an impact but thinking about it, making 1m objects that are basically discarded is obviously going to have a huge effect. I'll take a look into refactoring consume. Agreed about 3.0 but we've to get 2.5 out first! :laughing:


Try rawfilepath instead of Filepath

for cross os usege
https://hackage.haskell.org/package/rawfilepath-1.0.1/docs/RawFilePath.html
or
https://hackage.haskell.org/package/filepath-bytestring

path based on filepath now. The last one is rather good now.


Can ONNX Whisper "larger V3 or any model" be used as a real-time streaming

Can we turn this model to be used in real time streaming like what has been done in the Zipformer Model.
I saw some implementations for making the streamed Whisper https://github.com/ufal/whisper_streaming/tree/main

Sorry, there is no plan to support it.
please see our two-pass Android APK demo with Whisper for streaming ASR.


Build rocket crash

Version of Advanced Rocketry
1.16.5-1.7.1-5
Version of LibVulpes
1.16.5-1-0-1-8
Version of Minecraft
1.16.5
Crash report
https://paste.ee/p/WkLj9
Description of the problem
Build a rocket, click on build, crash

Can you replicate this crash without other mods installed or can you narrow it down to a few?
If it doesn't crash with just AR and libvulpes, I assume it could be whatever mod is developed by somebody named chocolate given the stack trace print, that might help narrow things down.

I got kinda the same problem except for me it doesnt crash my game it crashes the server im playing on

@dotada Is that with only Advanced rocketry and libvulpes?

@dotada Is that with only Advanced rocketry and libvulpes?

Yep

@dotada Is that with only Advanced rocketry and libvulpes?

Yep

Can you get me a crash log with only AR and libvulpes loaded?  The log you sent here has a bunch of mods in there and the crash explicitly refers to chocolate-1.2.0-1.16.4 so that kinda muddies things a bit.

Crash after rocket build.
---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.
Time: 11.04.21 17:17
Description: Exception while updating neighbours
java.lang.NullPointerException: Exception while updating neighbours
at net.minecraft.block.RedstoneDiodeBlock.func_176398_g(RedstoneDiodeBlock.java:83) ~[?:?] {re:classloading}
at net.minecraft.block.RedstoneDiodeBlock.func_220069_a(RedstoneDiodeBlock.java:66) ~[?:?] {re:classloading}
at net.minecraft.block.AbstractBlock$AbstractBlockState.func_215697_a(AbstractBlock.java:583) ~[?:?] {re:classloading}
at net.minecraft.world.World.func_190524_a(World.java:339) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:fml:advancedrocketry:coremodmethod}
at net.minecraft.world.World.func_195593_d(World.java:299) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:fml:advancedrocketry:coremodmethod}
at net.minecraft.block.RedstoneWireBlock.func_235547_a_(RedstoneWireBlock.java:224) ~[?:?] {re:classloading}
at net.minecraft.block.RedstoneWireBlock.func_220069_a(RedstoneWireBlock.java:312) ~[?:?] {re:classloading}
at net.minecraft.block.AbstractBlock$AbstractBlockState.func_215697_a(AbstractBlock.java:583) ~[?:?] {re:classloading}
at net.minecraft.world.World.func_190524_a(World.java:339) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:fml:advancedrocketry:coremodmethod}
at net.minecraft.block.RedstoneDiodeBlock.func_176400_h(RedstoneDiodeBlock.java:168) ~[?:?] {re:classloading}
at net.minecraft.block.RedstoneDiodeBlock.func_220082_b(RedstoneDiodeBlock.java:153) ~[?:?] {re:classloading}
at net.minecraft.block.AbstractBlock$AbstractBlockState.func_215705_a(AbstractBlock.java:612) ~[?:?] {re:classloading}
at net.minecraft.world.chunk.Chunk.func_177436_a(Chunk.java:283) ~[?:?] {re:classloading}
at zmaster587.advancedRocketry.util.StorageChunk.setBlockState(StorageChunk.java:216) ~[advancedrocketry:unspecified] {re:classloading}
at zmaster587.advancedRocketry.util.StorageChunk.copyWorldBB(StorageChunk.java:603) ~[advancedrocketry:unspecified] {re:classloading}
at zmaster587.advancedRocketry.util.StorageChunk.cutWorldBB(StorageChunk.java:710) ~[advancedrocketry:unspecified] {re:classloading}
at zmaster587.advancedRocketry.tile.TileRocketBuilder.assembleRocket(TileRocketBuilder.java:443) ~[advancedrocketry:unspecified] {re:classloading}
at zmaster587.advancedRocketry.tile.TileRocketBuilder.performFunction(TileRocketBuilder.java:209) ~[advancedrocketry:unspecified] {re:classloading}
at zmaster587.libVulpes.tile.TileEntityRFConsumer.func_73660_a(TileEntityRFConsumer.java:101) ~[libvulpes:unspecified] {re:classloading}
at net.minecraft.world.World.func_217391_K(World.java:491) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:fml:advancedrocketry:coremodmethod}
at net.minecraft.world.server.ServerWorld.func_72835_b(ServerWorld.java:371) ~[?:?] {re:classloading}
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:851) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:787) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:78) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:642) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) ~[?:?] {re:classloading,pl:accesstransformer:B}
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202] {}
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Thread: Server thread
Stacktrace:
at net.minecraft.block.RedstoneDiodeBlock.func_176398_g(RedstoneDiodeBlock.java:83) ~[?:?] {re:classloading}
at net.minecraft.block.RedstoneDiodeBlock.func_220069_a(RedstoneDiodeBlock.java:66) ~[?:?] {re:classloading}
at net.minecraft.block.AbstractBlock$AbstractBlockState.func_215697_a(AbstractBlock.java:583) ~[?:?] {re:classloading}
-- Block being updated --
Details:
Source block type: ID #minecraft:redstone_wire (block.minecraft.redstone_wire // net.minecraft.block.RedstoneWireBlock)
Block: Block{minecraft:repeater}[delay=4,facing=south,locked=false,powered=true]
Block location: World: (3,14,8), Chunk: (at 3,0,8 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Stacktrace:
at net.minecraft.world.World.func_190524_a(World.java:339) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:fml:advancedrocketry:coremodmethod}
at net.minecraft.world.World.func_195593_d(World.java:299) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:fml:advancedrocketry:coremodmethod}
at net.minecraft.block.RedstoneWireBlock.func_235547_a_(RedstoneWireBlock.java:224) ~[?:?] {re:classloading}
at net.minecraft.block.RedstoneWireBlock.func_220069_a(RedstoneWireBlock.java:312) ~[?:?] {re:classloading}
at net.minecraft.block.AbstractBlock$AbstractBlockState.func_215697_a(AbstractBlock.java:583) ~[?:?] {re:classloading}
-- Block being updated --
Details:
Source block type: ID #minecraft:repeater (block.minecraft.repeater // net.minecraft.block.RepeaterBlock)
Block: Block{minecraft:redstone_wire}[east=side,north=none,power=0,south=side,west=none]
Block location: World: (3,14,7), Chunk: (at 3,0,7 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Stacktrace:
at net.minecraft.world.World.func_190524_a(World.java:339) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:fml:advancedrocketry:coremodmethod}
at net.minecraft.block.RedstoneDiodeBlock.func_176400_h(RedstoneDiodeBlock.java:168) ~[?:?] {re:classloading}
at net.minecraft.block.RedstoneDiodeBlock.func_220082_b(RedstoneDiodeBlock.java:153) ~[?:?] {re:classloading}
at net.minecraft.block.AbstractBlock$AbstractBlockState.func_215705_a(AbstractBlock.java:612) ~[?:?] {re:classloading}
at net.minecraft.world.chunk.Chunk.func_177436_a(Chunk.java:283) ~[?:?] {re:classloading}
at zmaster587.advancedRocketry.util.StorageChunk.setBlockState(StorageChunk.java:216) ~[advancedrocketry:unspecified] {re:classloading}
at zmaster587.advancedRocketry.util.StorageChunk.copyWorldBB(StorageChunk.java:603) ~[advancedrocketry:unspecified] {re:classloading}
at zmaster587.advancedRocketry.util.StorageChunk.cutWorldBB(StorageChunk.java:710) ~[advancedrocketry:unspecified] {re:classloading}
at zmaster587.advancedRocketry.tile.TileRocketBuilder.assembleRocket(TileRocketBuilder.java:443) ~[advancedrocketry:unspecified] {re:classloading}
at zmaster587.advancedRocketry.tile.TileRocketBuilder.performFunction(TileRocketBuilder.java:209) ~[advancedrocketry:unspecified] {re:classloading}
at zmaster587.libVulpes.tile.TileEntityRFConsumer.func_73660_a(TileEntityRFConsumer.java:101) ~[libvulpes:unspecified] {re:classloading}
-- Block entity being ticked --
Details:
Name: advancedrocketry:rocket_builder // zmaster587.advancedRocketry.tile.TileRocketBuilder
Block: Block{advancedrocketry:rocketassembler}[facing=west,state=false]
Block location: World: (-176,65,-153), Chunk: (at 0,4,7 in -11,-10; contains blocks -176,0,-160 to -161,255,-145), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
Block: Block{advancedrocketry:rocketassembler}[facing=west,state=false]
Block location: World: (-176,65,-153), Chunk: (at 0,4,7 in -11,-10; contains blocks -176,0,-160 to -161,255,-145), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
Stacktrace:
at net.minecraft.world.World.func_217391_K(World.java:491) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:fml:advancedrocketry:coremodmethod}
at net.minecraft.world.server.ServerWorld.func_72835_b(ServerWorld.java:371) ~[?:?] {re:classloading}
-- Affected level --
Details:
All players: 1 total; [ServerPlayerEntity['DIO_CAMELOT'/10559, l='ServerLevel[Новый мир]', x=-178.40, y=64.00, z=-152.44]]
Chunk stats: ServerChunkCache: 2518
Level dimension: minecraft:overworld
Level spawn location: World: (-224,66,-48), Chunk: (at 0,4,0 in -14,-3; contains blocks -224,0,-48 to -209,255,-33), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
Level time: 242938 game time, 183266 day time
Level name: Новый мир
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Level weather: Rain time: 140101 (now: false), thunder time: 11010 (now: false)
Known server brands: forge
Level was modded: true
Level storage version: 0x04ABD - Anvil
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:851) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:787) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:78) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:642) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) ~[?:?] {re:classloading,pl:accesstransformer:B}
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202] {}
-- System Details --
Details:
Minecraft Version: 1.16.5
Minecraft Version ID: 1.16.5
Operating System: Linux (amd64) version 5.4.0-70-generic
Java Version: 1.8.0_202, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory:<PHONE_NUMBER> bytes (2651 MB) /<PHONE_NUMBER> bytes (5120 MB) up to<PHONE_NUMBER> bytes (6144 MB)
CPUs: 4
JVM Flags: 8 total; -Xss1M -Xmx6G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
ModLauncher: 8.0.9+86+master.3cf110c
ModLauncher launch target: fmlclient
ModLauncher naming: srg
ModLauncher services:
/mixin-0.8.2.jar mixin PLUGINSERVICE
/eventbus-4.0.0.jar eventbus PLUGINSERVICE
/forge-1.16.5-36.1.1.jar object_holder_definalize PLUGINSERVICE
/forge-1.16.5-36.1.1.jar runtime_enum_extender PLUGINSERVICE
/accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE
/forge-1.16.5-36.1.1.jar capability_inject_definalize PLUGINSERVICE
/forge-1.16.5-36.1.1.jar runtimedistcleaner PLUGINSERVICE
/mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE
/forge-1.16.5-36.1.1.jar fml TRANSFORMATIONSERVICE
FML: 36.1
Forge: net.minecraftforge:36.1.1
FML Language Providers:
<EMAIL_ADDRESS>minecraft@1
Mod List:
forge-1.16.5-36.1.1-client.jar                    |Minecraft                     |minecraft                     |1.16.5              |DONE      |NOSIGNATURE
forge-1.16.5-36.1.1-universal.jar                 |Forge                         |forge                         |36.1.1              |DONE      |22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90
AdvancedRocketry-1.16.5-1.7.1-8-universal.jar     |Advanced Rocketry             |advancedrocketry              |1.16.5-1.7.1-8      |DONE      |NOSIGNATURE
LibVulpes-1.16.5-1.0.1-14-universal.jar           |Lib Vulpes                    |libvulpes                     |1.16.5-1.0.1-14     |DONE      |NOSIGNATURE
jei-1.16.4-<IP_ADDRESS>.jar                           |Just Enough Items             |jei                           |<IP_ADDRESS>            |DONE      |NOSIGNATURE
Crash Report UUID: 899b60a5-d677-4d75-bf91-8f7275318fe1
Player Count: 1 / 8; [ServerPlayerEntity['DIO_CAMELOT'/10559, l='ServerLevel[New world]', x=-178.40, y=64.00, z=-152.44]]
Data Packs: vanilla, mod:forge, mod:advancedrocketry, mod:libvulpes, mod:jei
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'forge'

@DIO-CAMELOT Can you send a pic of the rocket you were trying to build?  It looks like it's related to redstone somehow and simply building a rocket with a redstone circuit isn't causing a crash for me

crash-2021-04-13_19.05.15-server.txt
Still crashs with click on "build"

crash-2021-04-13_19.05.15-server.txt
Still crashs with click on "build"

@agentwolf88 that particular issue is fixed for next build. (was reported in #2046), it also appears unrelated to the original crash.  Until the next build comes out, you can avoid the issue you reported in your last comment by using single player.

crash-2021-04-14_11.54.26-client.txt
Still crashs in AdvancedRocketry-1.16.5-2.0.0-10-universal.jar :(

crash-2021-04-14_11.54.26-client.txt
Still crashs in AdvancedRocketry-1.16.5-2.0.0-10-universal.jar :(

AR 20.0.0-10 requires 1.16.5-1.0.2-17

Ok, my bad.

Advanced rocketry build 11 should hopefully resolve this issue.


support Wireshark extcap interface instead of current GUI

Wireshark has a feature called extcap. There is an extcap dir in Wireshark dir. In this dir binaries reside. These binaries have the same command line interface. Wireshark introspects their capabilities and configures and calls them via CLI. They output a pcap stream into the pipe they get as a CLI arg.
It may make sense to have a mode of mitmproxy, which doesn't start a web interface, but works like an extcap, but Wireshark is used as a visualizing and analysing app.
Here is an example of extcap: https://github.com/wireshark/wireshark/blob/master/doc/extcap_example.py

It look like you need mitmproxy export a PCAP file, so it can view with Wireshark?

It look like you need mitmproxy export a PCAP file, so it can view with Wireshark?

I don't really strongly need it, it is just nice feature to have.
extcap is not just exporting into a pcap file, but it is an interface allowing to configure live capture in Wireshark GUI and then pass pcap frames to Wireshark as theybare captured.

We don't and won't support PCAP export in the forseeable future as we are simply a few layers too high on the protocol stack for this. Sorry!


Request for iQ.com

Checklist

[x] I'm reporting a new site support request
[x] I've verified that I'm running youtube-dl version 2020.09.20
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that none of provided URLs violate any copyrights
[x] I've searched the bugtracker for similar site support requests including closed ones

Example URLs
https://www.iq.com/play/19rx9bo2z8
https://www.iq.com/play/19rxab5w00]
https://www.iq.com/play/19rrhm35it

Single video: https://www.youtube.com/watch?v=BaW_jenozKc
Single video: https://youtu.be/BaW_jenozKc
Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

Description
Hello! I would like to make a request for iq.com to be added to the supported sites. It is the international version of iQiyi so it is very similar. Also, I would love it if you guys could allow users to download subtitles since the videos are raw with soft subtitles. :)

This site does not require an account to watch the video, but I would appreciate it if you guys could get a VIP account so users can download 1080p videos. Only 720p videos and below are allowed for those without VIP subscriptions.
LOGS:
C:\bin\youtube-dl-2020.09.06\youtube_dl>python main.py -v -F https://www.iq.com/play/19rrhm35it
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-F', 'https://www.iq.com/play/19rrhm35it']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2020.09.06
[debug] Python version 3.8.2 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg 4.2.2
[debug] Proxy map: {}
[generic] 19rrhm35it: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 19rrhm35it: Downloading webpage
[generic] 19rrhm35it: Extracting information
[info] Available formats for 19rrhm35it:
format code extension resolution note
0 mp4 unknown

I'm about to post this request also. The current extractor only support the url http://www.iqiyi.com

Can you include this logs to your post?
C:\bin\youtube-dl-2020.09.06\youtube_dl>python main.py -v -F https://www.iq.com/play/19rrhm35it
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-F', 'https://www.iq.com/play/19rrhm35it']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2020.09.06
[debug] Python version 3.8.2 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg 4.2.2
[debug] Proxy map: {}
[generic] 19rrhm35it: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 19rrhm35it: Downloading webpage
[generic] 19rrhm35it: Extracting information
[info] Available formats for 19rrhm35it:
format code  extension  resolution note
0            mp4        unknown

Can you include this logs to your post?
C:\bin\youtube-dl-2020.09.06\youtube_dl>python main.py -v -F https://www.iq.com/play/19rrhm35it
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-F', 'https://www.iq.com/play/19rrhm35it']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2020.09.06
[debug] Python version 3.8.2 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg 4.2.2
[debug] Proxy map: {}
[generic] 19rrhm35it: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 19rrhm35it: Downloading webpage
[generic] 19rrhm35it: Extracting information
[info] Available formats for 19rrhm35it:
format code extension resolution note
0 mp4 unknown

No problem! I just added it. 👍

Hopefully they can add it for the next release. It's just the same with the current iqiyi extractor. But different name only

Hey any update on this issue? It's been almost 2 months lol

Related issue: https://github.com/ytdl-org/youtube-dl/pull/26799
If the dev need a VIP account for extracting 1080p, I wouldn't mind purchasing a month for you guys.

hi. any update on this issue?

hi. any update on this issue?

hi. any update on this issue?

haha no one will update this I think because they are busy with other request.
I just made my own iq.com tool =D  But I can't publish since it's my personal use only

hi. any update on this issue?

haha no one will update this I think because they are busy with other request.
I just made my own tool instead =D But I can't publish since it's my personal use only

Please share.

hi. any update on this issue?

haha no one will update this I think because they are busy with other request.
I just made my own tool instead =D But I can't publish since it's my personal use only

Please share.

No I can't sorry. I spent days to fully fixed this :) Just wait maybe they will update it


Have Python-Flask-Chat-App work in Python 3

I would like to run this Flask-Chat-App in Python 3 as Python 2 has reached end of support and most linux distributions are removing Python 2 packages. The only change required would be is to replace print  with print().

I would like to run this Flask-Chat-App in Python 3 as Python 2 has reached end of support and most linux distributions are removing Python 2 packages. The only change required would be is to replace print with print().

changed...Thanks :)


remote-externalities: threading refactor, logs overhaul and performance improvement

[ ] Use OverlayedChanges

Insert keys from a node or snapshot straight into the externalities OverlayedChanges. Skips the computationally expensive trie derivation, allows "instant" starts from a snapshot and generally faster.

[x] Removes threading

Much simpler code
Keeps parallel requests but using async/await futures (improves performance especially when connected to a remote node)
Should close https://github.com/paritytech/substrate/issues/14006

[x] Improves terminal output

Spinner for operations where the eta cannot be estimated
Progress bar for operations where the eta can be estimated
Partial https://github.com/paritytech/substrate/issues/13975

New logs (ignore the momentary screensaver 😅 )
https://user-images.githubusercontent.com/16665596/235460518-e8daf598-90b1-4eb1-834a-86fc8ca5e957.mov
TODO before merge: check pulling data from these sources works:

[ ] wss://polkadot-try-runtime-node.parity-chains.parity.io:443
[ ] wss://kusama-try-runtime-node.parity-chains.parity.io:443
[ ] wss://westend-try-runtime-node.parity-chains.parity.io:443

TODO: benchmark performance improvement from using OverlayedChanges
todo

Converting this to a draft, I'd like to include a switch to inserting keys directly into OverlayedChanges into this PR.

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-each-crate-macos
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2760527

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-each-crate-macos
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2761944

Tested it for all four parity nodes and it works with this patch, thanks!

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2767754

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2767753

I got quite far through refactoring the code to use OverlayedChanges, however it turned into quite a large, non-trivial change due to many areas in the codepath where overlay changes were flushed.
I opted instead to save/restore the raw trie directly at the TrieBackend layer, providing a similar performance improvement without the issue of needing to be really careful to not accidentally flush the overlay somewhere, which causes a blockage of the main thread for many seconds.

With the end goal of making this usable (in a stable and fast way ) in our CI, it would make a lot of sense to have snapshots ready in our infra, and have the CI use those. With this fast loading time, it would be a smooth process.

It is pretty fast now. Takes about 3 minutes locally and 15 in CI.
I think we should rather focus on stability and add tests instead of optimizing more.

@ggwpez utils/frame/remote-externalities/test_data/proxy_test is a snapshot file used in a test. I needed to update it to use the new snapshot format.

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2782101


org.eclipse.rdf4j.http.server.repository.RepositoryListController is reporting all repositories as writeable

org.eclipse.rdf4j.http.server.repository.RepositoryListController is always reporting all repositories as writeable, instead of asking the underlying SAIL. See line RepositoryListController, line 80:
72:				repositoryManager.getAllRepositoryInfos(false).forEach(info -> {
73:					QueryBindingSet bindings = new QueryBindingSet();
74:					bindings.addBinding("uri", vf.createIRI(namespace, info.getId()));
75:					bindings.addBinding("id", vf.createLiteral(info.getId()));
76:					if (info.getDescription() != null) {
77:						bindings.addBinding("title", vf.createLiteral(info.getDescription()));
78:					}
79:					bindings.addBinding("readable", vf.createLiteral(true));
80:					bindings.addBinding("writable", vf.createLiteral(true));
81:					bindingSets.add(bindings);
82:				});

Somewhat related is that the LocalRepositoryManager object also just hardcodes this value to true when creating the RepositoryInfo.

This looks like something we could include in a patch release. I'll reschedule and cherrypick to the correct branch.

@barthanssens I'm sorry, I may be jumping the gun here a bit. Do I understand correctly that the fix you did for this is only part of the solution and to fully address the problem we'll need a fix for #1194 as well? If that's so, perhaps it's pointless to add this to the patch release (at least not until we've also fixed the followup issue).

@jeenbroekstra I'll have to double check, I was under the impression that it would be fixed for remote repositories, but not for local repositories


Car detection performance of checkpoint on nuscenes mini is poor

I use this checkpoint file to test on the nuscenes mini verification set

The evaluation indicators are as follows:

It seems that the car detection is much worse than the pedestrian detection. Is this a normal phenomenon and what may be the cause.
In the visualized figure, blue indicates that the confidence level in the prediction is greater than 0.2, and green indicates the ground truth. Please ignore the red Chinese mark in the figure~

请问你是怎么下载数据集的呢

抱歉，之前已经找到了原因，没有及时关闭issue
是因为我把多相机改成了只使用1个相机的原因，参数对应存在问题，非常感谢您的帮助。


sync subcommand mangles directory upen song removal when file name contains list-index

System OS
Linux - NixOS Vicuna
Python Version
3.12.5 (CPython)
Install Source
nixpkgs
Install version / commit hash
4.2.7
Expected Behavior vs Actual Behavior
When the sync subcommand is used with an --output argument containing the {list-position} template after a song has been removed from the playlist, old songs after the one removed (which now have a new list position) will be re-downloaded and have duplicate files.
Steps to reproduce

Let's imagine a playlist containing 3 songs, A, B, and C. Let's start a synced directory where the file name contains the list index:

$ spotdl sync https://open.spotify.com/playlist/XXX --output "{list-position} - {title}" --save-file .playlist.spotdl
...
$ ls -l
001 - A
002 - B
003 - C

This works so far

Remove B from the playlist
Synchronize the directory

$ spotdl sync .playlist.spotdl --output "{list-position} - {title}"
Processing query: https://open.spotify.com/playlist/XXX
Found 2 songs in XXX (Playlist)
1 old songs were deleted.
Skipping "A" (file already exists) (duplicate)
Downloaded "C": ...
$ ls
001 - A
002 - C
003 - C

As we can see here, not only is C re-downloaded despite already being present (with a now incorrect file name), but the old C song at now non-existant index 3 is kept.

Should be fixed on dev. Can you verify?

I can confirm that this works as intended on dev. Thanks for the quick fix!


Parsing of underscores slow

Pegdown needs too long (hours) for parsing the simple string A
B_C_D_E_F_G_H_I_J_K_L_M_N.

You could also replace
 with any other html tag to get a too slow result.
If I remove the underscores, everything is fast.
If I remove the beginning A-text, everything is fast.
If I remove the tag
 everything is fast.
If I add an empty line between A and
 everything is fast.

Thanks for the report, I'll take a look at the issue...


Add ASSET_MANAGER_BEARER_TOKEN env var to Whitehall

In preparation for us being able to save Whitehall assets to Asset
Manager.
I've tested this change in the Dev VM and confirmed that the environment
variable is written as expected.
We'll also need to ask someone to:

Add an application token for Asset Manager to the Whitehall API user
in signon.

Store the token generated in step 1 in the govuk-secrets repository.

Thanks for reviewing, @floehopper. I've addressed your feedback and rebased on master in preparation for merging.

Good work! 👍


feat: impl go package to kcl files

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[ ] N
[x] Y

re https://github.com/kcl-lang/kcl-go/issues/332

feat: impl go package to kcl files

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

226 of 326 (69.33%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.8%) to 64.192%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/tools/gen/genkcl_gostruct.go
220
320
68.75%

Totals

Change from base Build<PHONE_NUMBER>:
0.8%

Covered Lines:
3917

Relevant Lines:
6102

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

226 of 326 (69.33%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.8%) to 64.192%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/tools/gen/genkcl_gostruct.go
220
320
68.75%

Totals

Change from base Build<PHONE_NUMBER>:
0.8%

Covered Lines:
3917

Relevant Lines:
6102

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

226 of 326 (69.33%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.8%) to 64.192%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/tools/gen/genkcl_gostruct.go
220
320
68.75%

Totals

Change from base Build<PHONE_NUMBER>:
0.8%

Covered Lines:
3917

Relevant Lines:
6102

💛  - Coveralls


Update eslint and eslint-config-liferay to latest

See the individual commit messages for details, but in essence this is just updating the dependencies, adding a .prettierrc.json (because the new eslint wants to reformat everything), fixing lints that popped up, and turning off suppressions (and fixing the lints that popped up as a result).
Related: https://github.com/liferay/eslint-config-liferay/issues/21

Just started reviewing :)


Fix build error on Android u

Fix build error on Android u
The mesa24.0.1 build has issue on adnroid u.
Tracked-On: OAM-117252

Improper Commit Message
Proper Tracked on value is not present in
commit message,make sure Tracked-on: jira-ticket is present

Improper Commit Message
Proper Tracked on value is not present in
commit message,make sure Tracked-on: jira-ticket is present

Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web  for more details.

Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web  for more details.

Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web  for more details.

FAILURE: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web  for more details.

FAILURE: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web  for more details.

FAILURE: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web  for more details.


Plugin googlesheets: branch for writing connection

The target is to provide a write connector to Google Spreadsheets.
Work is in progress. Not ready to be merged.

@cstenac Do you want to have a look?
Two things I'm not totally happy with:

The "slugification": creates incompatible schemas when writing. Should I deactivate that?
For now, hard limit at 2,000 rows when writing. Too buggy when more. I could implement a flush system but not sure it would help a lot. Maybe I could use the Google Sheets API v4 instead (gspread relies on v3).

Current built: dss-plugin-github-0.0.1.zip

Current work:
dss-plugin-googlesheets-0.1.0.zip

@cstenac? I think we should release a version, at least to fix #20.

? :)

🎉


adds filter pills

This will be ready for review when the PR has these:

[x] set up general filterset flow
[x] create filter set components
[x] set up flip motion for moving filter pills
[x] query existing Redux API to add / remove filters
[x] menu implementation
[x] rough-in overflow concerns
[x] determine optimal spacing of filter set items in pill
[x] add a chip dev route
[x] rename and organize container components

Really appreciating this feature it is so much clearer which filters are being applied to the dashboard.  A few experience notes:

it took me a minute to figure out how to clear all of the filters in one click.  I was missing that feature.  Is there any way we could make that a little bit more clear without having to hover over the filter icon?  The tool tip says I need to press shift and then click the icon, but it also works without holding shift.
if I deselect some of the selected values the filter chip and values stay, however if I deselect all of them the whole thing disappears without me clicking outside of it or closing it.  My preferred experience would keep the chip there with the prior selections until I click outside of the menu.


Update Twitter/OpenGraph cards to be .png

Twitter no longer supports .svg cards, updated them to be .pngs
Changes
Updated the files in v1/generate/og directory using the files in https://github.com/ElianCodes/ElianCodes-frontend
Updated the BaseHead.astro directory to reflect the use .png instead of .svg
Docs

Seems that something went wrong here:
error   [vite]: Rollup failed to resolve import "@resvg/resvg-js" from "/vercel/path0/src/pages/v1/generate/og/[slug].png.ts".
--
02:22:11.437 | This is most likely unintended because it can break your application at runtime.
02:22:11.438 | If you do want to externalize this module explicitly add it to
02:22:11.439 | `build.rollupOptions.external`
02:22:11.441 | Error: [vite]: Rollup failed to resolve import "@resvg/resvg-js" from "/vercel/path0/src/pages/v1/generate/og/[slug].png.ts"

Seems when I copied files over, I might not have done so correctly. Just tested w/ npm run dev and the files generate properly. Should work now.

@gwisk, no problemo! Take it easy! You're doing great.
I'll check in the morning if I can debug anything and let you know what went wrong ❤

Seems like you solved it, but just forgot to install re-svg!


Why not "See code" instead of "Run locally"?

As a reader of the README,
I felt the link "Run locally" isn't named as it actually is:
When I was reading the README for the first time on my tablet,
I guessed it was to some URL like localhost:8000/***, which would never work on a tablet.
So I always used links in examples, then wondered
:confused: "Why dosen't it have links to view the source directly?"
So, I suggest to change the link text of "Run locally" into "See code".
This sounds more naturally and show what actually it is.
Tell me your opinion.
If you approve, I'm going to fix.

I agree, I always choose the wrong link, not very natural :) :+1:

Can you do a PR? I don't know exactly what you are referring to, but it seems like a relatively quick change that'll make things better.

This issue was resolved right? It says click here to preview now.

I just made a PR https://github.com/evancz/elm-architecture-tutorial/pull/53

Great, thank you!

@PBRT Thank you very much! :heart_eyes:


Open Vino 2019 not giving any results

[Required] Device : CPU i5
[Required] Your device's CPU architecture (armv7l, x86_64, or other architecture name):  x86_64
[Required] Your OS (Raspbian, Ubuntu1604, or other os name):  Windows
[Required] Details of the work you did before the problem occurred:
I tried to run the openvino_tiny-yolov3_test.py file with OpenVINO 2018 and my trained Yolo  v3 tiny network. The inference works well with CPU but when I try with NCS2 (using -d MYRIAD), the result gives a lot of false positives. As is visible in the image attached.
Later I found on this forum, https://software.intel.com/en-us/node/804818#comment-form that the issue is with OpenVino version with has a bug for in MYRIAD plugin.
So, I installed OpenVINO 2019 on the same machine, configured the inference engine, checked its installation by running sample code, then transformed the network into IR model by using mo_tf.py of openVINO 2019.
When I re-ran openvino_tiny-yolov3_test.py with this openVINO 2019, it gave no results. Only one frame appears on the screen after running the code and then the code shuts down without any error message. Did I miss something?

Update: I also tried the sample code object_detection_demo_yolov3_async.py and the result is same. I believe there must be an issue with openVINO installation.

Update:  I also checked the sample code provided with openVINO 2019 installation,  object_detection_demo_yolov3_async.py
The result was the same Only one frame appears on the screen after running the code and then the code shuts down without any error message.

Thank you for pointing out.
The problem you pointed out has been happening for quite some time.
No solution has yet been found in the official forums.


Module tf_nndct not found in vitis-ai-tensorflow2-cpu

Hello,
I am trying to follow the tutorial TF2-Vitis-AI-Optimizer for Vitis AI 3.5. My current development machine does not have a GPU, so I use the CPU-only Docker image. I have tried with the image I built myself according to the tutorial and with the one on Docker Hub.
In step 4 (section 3.4) Pruning and Fine-Tuning I get an error:
(vitis-ai-tensorflow2) vitis-ai-user@fpgadev:/workspace/tutorials/TF2-Vitis-AI-Optimizer/files/dogs-vs-cats_mobilenetv2$ python -u implement.py --mode prune --build_dir ${BUILD} 2>&1 | tee ${LOG}/prune.log
tf_nndct               not found

-----------------------------------------
Keras version      :  2.12.0
TensorFlow version :  2.12.0
3.8.6 | packaged by conda-forge | (default, Oct  7 2020, 19:08:05)
[GCC 7.5.0]
-----------------------------------------
Please install GPU version of TF2

[DB INFO] IMPLEMENT PRUNING ...

Loading weights from ./build_pr/float_model/f_model.h5

[DB INFO] Original model accuracy: 93.4200 %
-----------------------------------------
Pruning iteration  1  of 6  Pruning ratio:  0.1
Target accuracy for this iteration:  0.9061739891767502
Traceback (most recent call last):
  File "implement.py", line 342, in <module>
    run_main()
  File "implement.py", line 339, in run_main
    implement(args.build_dir, args.mode, args.target)
  File "implement.py", line 219, in implement
    pruned_model = prune(model,prune_ratio,test_dataset)
  File "implement.py", line 151, in prune
    runner = IterativePruningRunner(model, input_spec)
NameError: name 'IterativePruningRunner' is not defined

Indeed, there is no Python module "tf_nndct" installed anywhere in the Docker image. If I look inside the image for ROCm it is in:
/opt/vitis_ai/conda/envs/vitis-ai-tensorflow2/lib/python3.8/site-packages/tf_nndct
It appears that there has been a similar issue #1283 with this module in the past, but the offered solution does not change anything for me.
I could not find any indication that the iterative pruning is a GPU-only feature, so is this a bug during creation of the CPU-only Docker image?
Thank you and best regards!

Hi @dguenzel,
Thanks for trying with VitisAI. this maybe some mis-leading information in the documentation.
optimizer is only a feature in GPU docker(ROCM and Nivida GPU), for CPU, the feature is not supported.

Hi @dguenzel , it is general requirement. if you want to use optimizer, have to use GPU docker instead.:)

Thanks for the clarification. I am a bit surprised as I don't recall this being mentioned on either github.io or in UG1414.
I used the ROCm TF2 Docker image now and was able to proceed with the tutorial even without a GPU. I will close this issue, perhaps the documentation can be updated to mention that the GPU containers have to be used if optimization is desired.

Thanks @dguenzel , I will inform our Document team to update accordingly in the github.io

Hi @janifer112x, I'm working on the same tutorial of the post but using GPU, however, I cannot generate the .h5 file in the first step when running implement.py --mode training. It kept stopping in the middle of the program without error logging anything. Please help me, the setup is pretty much the same.

I faced the same issue. You are probably running out of memory (the default batch size is 150). You should open the config.py and modify it, I tried batchsize=64 and it works for me (I`m using NVIDIA GeForce RTX 3060)


FAB menu problem with smaller screens

On small screens (S10E) the menu button is squished and dissappear. For example only faq, stats and then a squished settings is shown. The other buttons are not visible.

The problem is that the FAB is inside the same "layout" as the buttons for period, symptoms and ovulation. We need to place it "standalone" and be overlay on the layout.
I have tried moving around the NestedFAB code, but it always seems to break something else. But the solution should be moving the code somewhere so it isn't in the same column/row/whatever as the buttons.

Moved the FAB one } below and added some padding. Now it works!


Integer overflow in VmaAllocator_T::AllocateMemoryOfType()

Stepped through VmaAllocator_T::AllocateMemoryOfType() and happened to notice what I think is an integer overflow at:
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/blob/936bc4b57e7ffa5906a786735537c5493224e7d6/include/vk_mem_alloc.h#L14513
When at that line in gdb:
(gdb) p m_PhysicalDeviceProperties.limits.maxMemoryAllocationCount
$23 =<PHONE_NUMBER>
(gdb) p m_PhysicalDeviceProperties.limits.maxMemoryAllocationCount * 3 / 4
$24 =<PHONE_NUMBER>
(gdb) p static_cast<uint64_t>(m_PhysicalDeviceProperties.limits.maxMemoryAllocationCount) * 3 / 4
$25 =<PHONE_NUMBER>
(gdb)

Thank you very much for spotting this issue. I pushed a fix.


feat: Add PriceAreaCode to grid areas.

Codecov Report

Merging #861 (6bc41f3) into main (cef963b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #861   +/-   ##
=======================================
  Coverage   60.94%   60.94%
=======================================
  Files          15       15
  Lines         233      233
  Branches       20       20
=======================================
  Hits          142      142
  Misses         86       86
  Partials        5        5

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Unable to send alerts to Slack (hooks.slack.com)

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Expected behavior
Unable to send alerts to Slack (hooks.slack.com)
Screenshots
10-31-2023 15:12:16.534 +0000 ERROR sendmodalert [7101 AlertNotifierWorker-0] - action=slack_webhook_alert STDERR -  requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1106)
Splunk Environment:

Splunk Version: [9.1.1]
OS: [RHEL 7]
Additional context
We are using slack-webhook-alert 2.0.1 version and when I am changing the slack endpoint from slack proxy endpoint to hooks.slack.com, receiving “slack_webhook_alert STDERR -  requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1106).”. I don’t see any certs configured with in the slack-webhook-alert 2.0.1 app. I downloaded slack_alerts 2.3.0 and observe there is a difference in the attributes of the alert configuration. For an example: in slack-webhook-alertm we have
action.slack_webhook_alert.param.slack_webhook but in slack_alerts it is action.slack.param.webhook_url.

slack-webhook-alert 2.0.1 app : (DEPRECATED) Slack Webhook Alert | Splunkbase
slack_alerts 2.3.0: Slack Notification Alert | Splunkbase

We have thousands of alert jobs using slack-webhook-alert 2.0.1 and need to update to hooks.slack.com. Any suggestions on SSL issue?
How can we migrate from slack-webhook-alert 2.0.1 to slack_alerts 2.3.0 ?

I really appreciate your help.

Similar error when running from Splunk Cloud as well: --sslclientsession=\x00\x00\x00 died on exception (exit_code=111): Error in 'sendalert' command: Alert script returned error code 3. (This is from using the command)


Check modtime of message file after edits

Fixes #1428.
This change would affect the behavior of the editor for issues, releases, and pull requests by setting the modified time of the message file 5 seconds back before it is edited, then verifying that the time-stamp changed.
Some existing tests had to be modified to reflect that the editor must at least touch the message file.

Yes, I see in that case a non-edited message is the same as a blank message, and we should treat it the same as a blank message.

It seems it still needs a white-space touch-up, but it looks correct in my editor.

@mislav This is ready for review.
I took "template" to mean any default message, as opposed to a only GitHub template. Does that match your meaning? I check whether a default message exists by parsing the message pre-edits with readTitleAndBody.

@mislav friendly ping

@mislav Do you mind looking at this? 😄


extend vesting contract capabilities.

vesting 50/50:
at a date t1, Rachel can withdraw 1/3 of the funds.
at a date t2, Rachel can withdraw all the funds.


Publish fails

Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Running publish throws npm error
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
This is using an angularjs app.
ng build --prod or amplify publish
ERROR in node_modules/ionicons/dist/types/generated.d.ts(7,10): error TS2305: Module '"/Users/thejj/work/angular/projects/admin/node_modules/@stencil/core/dist/index"' has no exported member 'JSXElements'.
node_modules/@ionic/core/dist/types/utils/overlays.d.ts(9,82): error TS2344: Type 'keyof B' does not satisfy the constraint 'string'.
  Type 'string | number | symbol' is not assignable to type 'string'.
    Type 'number' is not assignable to type 'string'.

What is the expected behavior?
It should build successfully and publish to aws.
Which versions of Amplify CLI, and which  OS are affected by this issue? Did this work in previous versions?
0.1.14

@jarrettj Does ng build —prod throw the same error?

Yes. Correct. I've tried that.

the ng build command is an angular command which the CLI just uses to just build your frontend app code. If that errors out I believe there's some issue with your app frontend code. (Seems like an issue with the Ionic code).

@jarrettj Let me know if this issue is resolved around the ng build command.

Hi
Good day.
Yes it is. You can close this issue. Turned out to be a stencil, ionic and ionicons related issue. Had to downgrade ionicons.
Thanks.
Regards.

On 29 Aug 2018, at 18:45, Kaustav Ghosh<EMAIL_ADDRESS>wrote:
@jarrettj Let me know if this issue is resolved around the ng build command.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


AV-1212 Fix some translation issues pointed out by content team

This includes a rather ugly fix for translating the licenses correctly. (5a59a7d).
tl;dr: switched to use license_id instead of license_desc as translation keys and re-translated all in transifex.
More info at: https://jira.dvv.fi/browse/AV-1212


Meson editable install: pytest --pyargs does not collect any tests

To reproduce
mkdir -p ~/venvs
rm -rf ~/venvs/test-env
python -m venv ~/venvs/test-env
pip install scipy joblib threadpoolctl cython meson-python ninja pytest
git clone https://github.com/scikit-learn/scikit-learn --depth 1
cd scikit-learn
make dev-meson
# go outside of repo root (with pytest 8 it fails also in the repo root)
cd
pytest --pyargs sklearn --collect-only

Output shows "no tests collected in 0.10s". Without --pyargs, this works fine, pytest sklearn --collect-only shows ~33k tests.
I checked that numpy has the same issue, so this is not specific to scikit-learn
Could this be related to https://github.com/mesonbuild/meson-python/issues/557? ~I have to check I haven't taken the time to confirm it yet.~ Actually I checked with @ogrisel branch from https://github.com/mesonbuild/meson-python/pull/562 and it seems to collect tests fine, so this seems related.
Full disclosure: with pytest<8, tests are collected if you stay in the repo root. I believe this is kind of by chance, since pytest 8 has introduced collection behaviour changes/fixes see https://docs.pytest.org/en/stable/changelog.html#collection-changes for more details.

Thanks for the report @lesteve. Hmm, that looks a little annoying. pytest 8.0 was only released 4 days ago, so I didn't notice this yet. And I probably wouldn't have anyway, since pytest numpy is more typical usage. It'd be nice to fix though, since this is the type of little paper cut that makes editable installs less pleasant to use.

Yep agreed, I may try to look at #562 and understand a bit more the subtle things behind Python import mechanisms.

I wonder if this is the same reason we had to do this (pytest's assertion rewriting didn't work in editable installs unless using import-mode=importlib)?

@QuLogic interesting. I'm not sure if that's indeed due to the same reason, but it'd be interesting to know if the improvement to editable installs that was just merged makes a difference.


Add dark mode to docs

Hopefully I didn't miss anything :sweat_smile:
The colors are close to the original ones but lighter enough to pass wcag

Light
Dark

Does this look any better?


Curriculum Review: Day 4 Discrimination in software

Content:
About the slides:
In general I think the topics covered are very interesting. I would put less text on the slides and more images.
To make it more interactive with the participants I would suggest to start with a game/survey or something like that to test their discrimination. It is always good to expose how discrimination is deeply inside us even if we think we question it.

Thanks for the comments! I tried to make the slides a bit less text heavy by adding some diagrams.
Maybe we can ask everyone to take one of the implicit bias tests (https://implicit.harvard.edu/implicit/selectatest.html), and poll for results? What do you think?

Slides looks good :) and at least I like a test like those and then poll the results, but it should be a short one, have you already take one of them? (I did some time ago but it was way too long). And how will we get the results from the participants?

Yes, I took the Science-Gender IAT test and it only took me about 6 minutes to complete. I've blocked 10 minutes at the start to do this to get people thinking about implicit bias. We'll do an anonymous poll where everyone can mark what they got (one of 7 possible results). Here is the result from their study:


meta fix

@rowanmiller  please review

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

aspnetcore/client-side/angular.md
:white_check_mark:Succeeded

Details

aspnetcore/client-side/bootstrap.md
:white_check_mark:Succeeded

Details

aspnetcore/client-side/bower.md
:white_check_mark:Succeeded

Details

aspnetcore/client-side/bundling-and-minification.md
:white_check_mark:Succeeded

Details

aspnetcore/client-side/cdn.md
:white_check_mark:Succeeded

Details

aspnetcore/client-side/index.md
:white_check_mark:Succeeded

Details

aspnetcore/client-side/knockout.md
:white_check_mark:Succeeded

Details

aspnetcore/client-side/less-sass-fa.md
:white_check_mark:Succeeded

Details

aspnetcore/client-side/using-grunt.md
:white_check_mark:Succeeded

Details

aspnetcore/client-side/using-gulp.md
:white_check_mark:Succeeded

Details

aspnetcore/client-side/yeoman.md
:white_check_mark:Succeeded

Details

aspnetcore/data/azure-storage/index.md
:white_check_mark:Succeeded

Details

aspnetcore/data/ef-mvc/advanced.md
:white_check_mark:Succeeded

Details

aspnetcore/data/ef-mvc/complex-data-model.md
:white_check_mark:Succeeded

Details

aspnetcore/data/ef-mvc/concurrency.md
:white_check_mark:Succeeded

Details

aspnetcore/data/ef-mvc/crud.md
:white_check_mark:Succeeded

Details

aspnetcore/data/ef-mvc/index.md
:white_check_mark:Succeeded

Details

aspnetcore/data/ef-mvc/inheritance.md
:white_check_mark:Succeeded

Details

aspnetcore/data/ef-mvc/intro.md
:white_check_mark:Succeeded

Details

aspnetcore/data/ef-mvc/intro/samples/cu-final/readme.md
:white_check_mark:Succeeded

Details

aspnetcore/data/ef-mvc/intro/samples/cu/readme.md
:white_check_mark:Succeeded

Details

aspnetcore/data/ef-mvc/migrations.md
:white_check_mark:Succeeded

Details

aspnetcore/data/ef-mvc/read-related-data.md
:white_check_mark:Succeeded

Details

aspnetcore/data/ef-mvc/sort-filter-page.md
:white_check_mark:Succeeded

Details

aspnetcore/data/ef-mvc/update-related-data.md
:white_check_mark:Succeeded

Details

aspnetcore/data/entity-framework-6.md
:white_check_mark:Succeeded

Details

aspnetcore/data/index.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/app-state.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/choosing-the-right-dotnet.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/configuration.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/dependency-injection.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/environments.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/error-handling.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/file-providers.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/hosting.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/index.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/localization.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/logging.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/middleware.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/owin.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/request-features.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/routing.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/servers.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/startup.md
:white_check_mark:Succeeded

Details

aspnetcore/fundamentals/static-files.md
:white_check_mark:Succeeded

Details

aspnetcore/getting-started.md
:white_check_mark:Succeeded

Details

aspnetcore/hosting/apppool.md
:white_check_mark:Succeeded

Details

aspnetcore/hosting/aspnet-core-module.md
:white_check_mark:Succeeded

Details

aspnetcore/hosting/dataprotection.md
:white_check_mark:Succeeded

Details

aspnetcore/hosting/directory-structure.md
:white_check_mark:Succeeded

Details

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@rowanmiller closed this and replaced with #2195 which I'll merge, doesn't need review.


Maven failsafe plugin reports parsing fails: [Error: Cannot read properties of undefined (reading 'testsuite')]

Configuration:
    - name: Publish Failsafe Test Report
      if: success() || failure()
      uses<EMAIL_ADDRESS>      with:
        report_paths: "**/failsafe-reports/*.xml"

Maven plugin version:
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <version>3.1.2</version>
                    </plugin>

Github Actions workflow error:
Run<EMAIL_ADDRESS>  with:
    report_paths: **/failsafe-reports/*.xml
    github_token: ***
    create_check: true
    check_name: Test Report
    fail_on_test_failures: false
    fail_if_no_tests: true
    skip_publishing: false
    file_name_in_stack_trace: false
  env:
    ECR_AWS: *************
    JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.8-1/x64
    JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.8-1/x64
Going to parse results form **/failsafe-reports/*.xml
Error: Cannot read properties of undefined (reading 'testsuite')

Note: can't share code, repository is private.

Also encountering the same issue:
        steps:
    - uses: actions/checkout@v3
    - name: Set up JDK 21
      uses: actions/setup-java@v3
      with:
        java-version: '21'
        distribution: 'temurin'
        cache: maven
    - name: Server Integration Tests
      run: mvn --errors --debug verify <REDACTED>
    - name: Report Test Results
      if: success() || failure()
      uses: scacap/action-surefire-report@v1
      with:
        report_paths: cronometer-server/target/failsafe-reports/*.xml

Maven Plugin version:
<maven.plugins.version>3.0.0</maven.plugins.version>
Same error as previous

Ah, this is due to it picking up the summary file (failsafe-summary.xml) which appears in the failsafe-reports directory!
report_paths: **/failsafe-reports/*.xml
Changing to **/failsafe-reports/TEST-*.xml should fix this.
While this is a misconfiguration, I do feel like it's a bit of a footgun and should probably be addressed more gracefully in the code, at the very least report the file that caused the error in the output.

@dejan-stojadinovic @robbie-cronometer thank you for reporting the issue. Unfortunately we don't have the capacity to look into this at the moment, but I'll try to find a fix next month.
If you already have an idea on how to fix or improve the error visibility, feel free to raise a pull request.

is there any workaround for now for this ?

I too facing this issue while parsing the testng-results.xml , it says Cannot read properties of undefined (reading 'testsuite'), @ghaiszaher any workaround for now ?

@dejan-stojadinovic @robbie-cronometer @rahulshrivastava-eaton this should be fixed with v1.7.3. Please reopen if you still face the issue.


colab error

I encountered the error below when running through your google colab.
fused_multi_tensor is not installed corrected
fused_rounding is not installed corrected
fused_softmax is not installed corrected
ModuleNotFoundError                       Traceback (most recent call last)
 in <cell line: 8>()
6 import numpy as np
7 from pathlib import Path
----> 8 from unifold.colab.data import validate_input
9 from unifold.msa.utils import divide_multi_chains
10
5 frames
/usr/local/lib/python3.9/dist-packages/unifold/symmetry/utils/msym_utils.py in
1 from functools import reduce
2 import string
----> 3 from libmsym import libmsym as m
4 import numpy as np
5 from typing import *
ModuleNotFoundError: No module named 'libmsym'

NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.

this should be fixed in #116.
before merging, you may refer to notebook on branch Ziyao-patch-2.

thanks.  Not sure exactly what you mean here but I tried the following:
https://colab.research.google.com/github/googlecolab/colabtools/blob/master
from there I put in: https://github.com/dptech-corp/Uni-Fold/tree/ZiyaoLi-patch-2
then I clicked unifold notebook.   It loaded, I tried again, and it failed.
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
[<ipython-input-6-380200f791ad>](https://localhost:8080/#) in <cell line: 8>()
      6 import numpy as np
      7 from pathlib import Path
----> 8 from unifold.colab.data import validate_input
      9 from unifold.msa.utils import divide_multi_chains
     10

5 frames
[/usr/local/lib/python3.9/dist-packages/unifold/symmetry/utils/msym_utils.py](https://localhost:8080/#) in <module>
      1 from functools import reduce
      2 import string
----> 3 from libmsym import libmsym as m
      4 import numpy as np
      5 from typing import *

ModuleNotFoundError: No module named 'libmsym'

---------------------------------------------------------------------------

therefore I added a cell above "generate MSAs" with the following command.
pip install libmsym
Then it runs now.  thanks.

thanks.  I ran my multimer job (6 copies) an the output showed no interaction at all.   Like it's just 6 copies of my protein very spread out in a 6fold positions.   Yet I know that my protein SHOULD interact as 6 copies.  Is there any way to push the oligomerization a bit harder?  thanks.

When trying to run the colab notebook I get the error at the bottom of this message.
This happens using the two different branches available:

https://colab.research.google.com/github/dptech-corp/Uni-Fold/blob/main/notebooks/unifold.ipynb
https://colab.research.google.com/github/dptech-corp/Uni-Fold/blob/ZiyaoLi-patch-2/notebooks/unifold.ipynb#

It seems there is a compatibility issue with the pytorch (currently torch 2.0.0 in Google colab).
I tried within colab to uninstall torch 2.0.0 and install 1.13.1 (which should be compatible with Uni-Core) but there are
I also tried to install the newest Uni-Core library
!wget https://github.com/dptech-corp/Uni-Core/releases/download/0.0.2/unicore-0.0.1+cu118torch2.0.0-cp39-cp39-linux_x86_64.whl
!pip3 -q install "unicore-0.0.1+cu118torch2.0.0-cp39-cp39-linux_x86_64.whl"
but still it does not work.
Could you please suggest a workaround?

ModuleNotFoundError                       Traceback (most recent call last)
 in <cell line: 8>()
6 import numpy as np
7 from pathlib import Path
----> 8 from unifold.colab.data import validate_input
9 from unifold.msa.utils import divide_multi_chains
10
4 frames
/usr/local/lib/python3.10/dist-packages/unifold/init.py in
3 import argparse
4
----> 5 from . import task, model, loss
/usr/local/lib/python3.10/dist-packages/unifold/task.py in
7 import numpy as np
8
----> 9 from unifold.dataset import UnifoldDataset, UnifoldMultimerDataset
10 from unicore.data import data_utils
11 from unicore.tasks import UnicoreTask, register_task
/usr/local/lib/python3.10/dist-packages/unifold/dataset.py in
6 import torch
7 from typing import *
----> 8 from unifold.data import utils
9 from unifold.data.data_ops import NumpyDict, TorchDict
10 from unifold.data.process import process_features, process_labels
/usr/local/lib/python3.10/dist-packages/unifold/data/utils.py in
8 from typing import *
9
---> 10 from . import residue_constants as rc
11 from .data_ops import NumpyDict
12
/usr/local/lib/python3.10/dist-packages/unifold/data/residue_constants.py in
21
22 import numpy as np
---> 23 from unicore.utils import tree_map
24
25 # Distance from one CA to next CA [trans configuration: omega = 180].
ModuleNotFoundError: No module named 'unicore'

I have the same problem:
ModuleNotFoundError: No module named 'unicore'

All problems including
ModuleNotFoundError: No module named 'unicore'

are due to inconsistent versions of unicore wheel and colab environments.
I notice that colab starts to update their python and torch versions much more frequent than before. The latest fix is in #118 which update the target wheel to cp310+torch2.0.0.
If this error raises again, users can either

select proper wheel version from [https://github.com/dptech-corp/Uni-Core/releases] (will be updated occasionally), and change the UNICORE_URL path in the 2nd block in the notebook, as well as the downloaded file path.

or

git clone and pip install Uni-Core from https://github.com/dptech-corp/Uni-Core . This takes longer.

Thank you @ZiyaoLi for the update!
Best
V


Display the text layer before running the a11y stuff (follow-up of #15845)

/botio integrationtest


docs for new website

Ok, so you want to just replace jmd files with qmd without touching any other files!
One thing I would like to mention that each file will be renamed to index.qmd!

For now, they all will execute without any error because I put "eval=false" on the code blocks where I was getting errors and these are only a few documents from only tutorials section!

Warnings in Using Turing Section:

Using Turing: External Samplers - Preview and Code Block
I do not know if this progress log is meant to be visible or not - Preview and Code Block

Warnings in the Tutorials

[ ] 00-introduction: this code block is giving error - Code Block, it was echoed false so there is not preview for it!

[ ] 01-gaussian-mixture-model: Warning - Preview and Code Block, cc @JasonPekos

[ ] 02-logistic-regression: Warning - Preview and Code Block

[ ] 03-bayesian-neural-network: Almost all code blocks are giving warning - Preview and Code

[ ] 07-poisson-regression

[ ] Link in Line 1 is not valid
[ ] Warning - Preview and Code Block

[ ] 08-multinomial-logistic-regression: Warning -  Preview and Code Block

[ ] 11-probabilistic-pca: Warning - Preview and Code Block

[ ] 15-gaussian-processes: Warning - Preview(Scroll to last 2nd code block) and Code Block

Errors in Tutorials:

[ ] 05-linear-regression: These Code Blocks from line 65 are failing to execute.

[ ] 08-multinomial-logistic-regression: These Code Blocks are not executing successfully: Code Blocks

Reason: in the current .jmd version, there is a parameter - fig_ext=".png" passed along with code block but there no feature like this in Quarto as far as I know!

[ ] 09-variational-inference: This Code Block failing to execute! for now, I put the eval: false on it!

[ ] 10-bayesian-differential-equations: I do not know if this is an issue or not because here after this Code Block, its like never-ending execution, I waited for more than an hour but the execution is not ending after this code block, for now, I put an eval: false on all code blocks after this!

Can you find an alternative way to visualise the result?
Ok, I will search for it!

10-bayesian-differential-equations: I do not know if this is an issue or not because here after this Code Block, its like never-ending execution, I waited for more than an hour but the execution is not ending after this code block, for now, I put an eval: false on all code blocks after this!

@devmotion, is this a known issue?

I checked again, there is no error in that notebook, it just takes much time but it have many warnings

@yebai can you please have a look at

https://turinglang.org/turing-test-website/docs/tutorials/10-bayesian-differential-equations/#inference-of-a-stochastic-differential-equation
(scroll a bit) https://turinglang.org/turing-test-website/docs/tutorials/08-multinomial-logistic-regression/#model-declaration

@yebai can you please have a look at

https://turinglang.org/turing-test-website/docs/tutorials/10-bayesian-differential-equations/#inference-of-a-stochastic-differential-equation
(scroll a bit) https://turinglang.org/turing-test-website/docs/tutorials/08-multinomial-logistic-regression/#model-declaration

Ok, for Bayesian differential equations, I think this may not be a super simple fix. Here is an unresolved issue with the same problem: https://github.com/TuringLang/Turing.jl/issues/1722 (actually this same broken tutorial is mentioned here). I think the first thing I'd try would be to swap out some of the truncated Normals to LogNormals, and maybe we won't get the same issues.
I don't actually know the logic behind the pretty tight truncation because I haven't done much SDEs  — surely this isn't ideal? It's not surprising to me that there's weird gradient stuff happening here.
I will try fiddling around with the model to see if I can get something working 🧐 .


Update canvaskit.version

Update canvaskit.version to match the hash in flutter/engine DEPS - https://github.com/flutter/engine/blob/master/DEPS#L34

https://github.com/flutter/flutter/pull/90545


setapicreds fails with "key has no attributes"

$ go run openbazaard.go setapicreds -d /var/lib/openbazaar/
Enter username: asdf
Enter a veerrrry strong password:
Confirm your password:
 key has no attributes
exit status 1

Fails on this line in cmd/setapicreds.go
 err = r.SetConfigKey("JSON-API", apiCfg)

Contents of apiCfg looks like this:
(dlv) p apiCfg
*github.com/OpenBazaar/openbazaar-go/schema.APIConfig {
        Authenticated: true,
        AllowedIPs: []string len: 0, cap: 0, [],
        Username: "",
        Password: "15e2b0d3c33891ebb0f1ef609ec419420c20e320ce94c65fbc8c3312448eb225",
        CORS: *string nil,
        Enabled: true,
        HTTPHeaders: map[string]interface {} nil,
        SSL: false,
        SSLCert: "",
        SSLKey: "",}

Thanks. Was this on master?


[QUESTION] Setting SameSite flag manually when using response.set_cookie()

Since as of now starlette's response.set_cookie() does not support (starlette==0.13.2 and fastapi==0.52.0) 'samesite flag' so i did it manually as following -
@app.middleware("http")
async def cookie_set(request: Request, call_next):
    response = await call_next(request)
    if request.user and request.user.set_response_cookie:
        token = request.user.set_response_cookie
        response.set_cookie(
            key="Authorization",
            value=token["jwt"].decode("utf-8"),
            expires=token["expires"],
            httponly=True,
            path="/",
            secure=True
        )
    else:
        response.delete_cookie(
            key="Authorization",
            path="/"
        )
    # just adding samesite flag to set-cookie headers
    for idx, header in enumerate(response.raw_headers):
        if header[0].decode("utf-8") == "set-cookie":
            cookie = header[1].decode("utf-8")
            if "SameSite=None" not in cookie:
                cookie = cookie + "; SameSite=None"
                response.raw_headers[idx] = (header[0], cookie.encode())

    return response

is this okay?

Is it actually fixed?
    response.set_cookie(
        key="access_token",
        value=access_token,
        expires=int(access_token_expires.total_seconds()),
        httponly=True,
        secure=True,
        samesite=None,
    )
    print(response.__dict__)
    return {"msg": "successful"}

# output of print(response__dict__)
{'status_code': None, 'background': None, 'body': b'', 'raw_headers': [(b'set-cookie', b'access_token=blabla; expires=Sat, 29 May 2021 08:46:06 GMT; HttpOnly; Path=/; Secure')]}

The sameSite flag is missing again. I am using FastAPI 0.65.1.
Any hints?

This has been added https://www.starlette.io/responses/#set-cookie


Incorrect versioning in README

I noticed that on some runners (e.g. ubuntu-latest) the package cannot be resolved via the version suggested in the README (goit/setup-resharper@v2). The problem is with the tag: there is no such tag as v2, only v2.0.0 and higher.
I created a test that tries to setup the package by an absolute reference rather then from local files. Here is how it behaves with v2. And here with v2.0.0. I also made a change to the README to ensure it provides the correct way to reference your package.

holy shit! thank you!! (@Delt06)  you are the MVP!
Someone please merge this MR.

I have fixed the tags for the setup-resharper. The v1, v2 and v3 are now valid action tags.

I can validate that v3 is working. Also, those who are already on v2.0.0 doesn't have to change it if they are not ready for v3.
Thanks!


[Add]

Site URL
https://www.flowbite-react.com/
Description of the above provided site
Flowbite React is an open-source UI component library built on top of Tailwind CSS with React components and based on the Flowbite Design System.
Category
Frontend
Sub Category
UI Library
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (optional)
[X] I am participating in Hacktoberfest 2023

You're assigned @Alvis07


Remove printing debug information to System.out

This PR removes the printing of width and height of the LcdClockSkin and LcdSkin at each resize.

Fixed it already for the next release :)


combine overrides logs

Some works followed by the PR adds overrides log#48.
Add functions that find all of matsim_overrides.log from various simulations submitted via the bitsim batch file and merge all of the logs at 0 iterations into a matsim_overrides_summary. The summary override log is saved in the simulation root directory.
Examples should like:
----------------------------------------------------------------------------------------------------
log_path:/mnt/efs/simulation_name1/0/matsim_overrides.log
flowCapacityFactor: 1 -> 0.01
modeParams:car/constant: 0.0 -> -50
modeParams:car/constant: 0.0 -> -50
----------------------------------------------------------------------------------------------------
log_path:/mnt/efs/simulation_name2/0/matsim_overrides.log
flowCapacityFactor: 1 -> 0.02
modeParams:car/constant: 0.0 -> -50
modeParams:car/constant: 0.0 -> -50

Will test it in bitsim.

Before looking at the actual content of this PR, i'd make the same comment about squashing the commit history :) if you haven't worked with rebase before or don't feel comfortable doing that i'd be happy to go through it with you. That's also still just my preference, and not something that's a hard requirement.
It also looks like there's some conflicts in the tests - I don't think you've got Fred's latest changes in your branch, which should be merged/resolved before this PR.

Before looking at the actual content of this PR, i'd make the same comment about squashing the commit history :) if you haven't worked with rebase before or don't feel comfortable doing that i'd be happy to go through it with you. That's also still just my preference, and not something that's a hard requirement.

Thanks for the comments. I have googled the rebase since you mentioned it in the previous PR and will try to merge all the commits together when I pushed the next commit.

It also looks like there's some conflicts in the tests - I don't think you've got Fred's latest changes in your branch, which should be merged/resolved before this PR.

Yeah. I will pull the latest changes and make some modifications based on that.

Thanks for the comments! @fredshone
I have changed the sim_root to the simulation_root_directory and only called summarise_overrides_log in the first iteration.
I have tested on bitsim and the combined overrides log did write the file in the right simulation root directory.
The combined log looks like:
----------------------------------------------------------------------------------------------------
log_path:/efs/Londinium/simulations_output/20220329_log_test/baseline_1pct/0/matsim_overrides.log
flowCapacityFactor: 1 -> 0.01
modeParams:car/constant: 0.0 -> -50
modeParams:car/constant: 0.0 -> -50
modeParams:car/constant: 0.0 -> -50
modeParams:car/constant: 0.0 -> -50
modeParams:car/constant: 0.0 -> -50
modeParams:car/monetaryDistanceRate: -0.0005 -> -0.000289
modeParams:car/monetaryDistanceRate: -0.0005 -> -0.000289
modeParams:car/monetaryDistanceRate: -0.0005 -> -0.000289
modeParams:car/monetaryDistanceRate: -0.0005 -> -0.000289
modeParams:car/monetaryDistanceRate: -0.0005 -> -0.000289
----------------------------------------------------------------------------------------------------
log_path:/efs/Londinium/simulations_output/20220329_log_test/baseline_2pct/0/matsim_overrides.log
flowCapacityFactor: 1 -> 0.02
modeParams:car/constant: 0.0 -> -50
modeParams:car/constant: 0.0 -> -50
modeParams:car/constant: 0.0 -> -50
modeParams:car/constant: 0.0 -> -50
modeParams:car/constant: 0.0 -> -50
modeParams:car/monetaryDistanceRate: -0.0005 -> -0.000289
modeParams:car/monetaryDistanceRate: -0.0005 -> -0.000289
modeParams:car/monetaryDistanceRate: -0.0005 -> -0.000289
modeParams:car/monetaryDistanceRate: -0.0005 -> -0.000289
modeParams:car/monetaryDistanceRate: -0.0005 -> -0.000289

In your example output you show a combined summary from two different "runs":

log_path:/efs/Londinium/simulations_output/20220329_log_test/baseline_1pct/0/matsim_overrides.log
log_path:/efs/Londinium/simulations_output/20220329_log_test/baseline_2pct/0/matsim_overrides.log
...is this correct? My reading of the code is that it would only find a single simulation run when accessing root.

In your example output you show a combined summary from two different "runs":

log_path:/efs/Londinium/simulations_output/20220329_log_test/baseline_1pct/0/matsim_overrides.log
log_path:/efs/Londinium/simulations_output/20220329_log_test/baseline_2pct/0/matsim_overrides.log

...is this correct? My reading of the code is that it would only find a single simulation run when accessing root.

I think yes since we are aiming to combine the different logs from various "runs". I have changed the root to each "run" the parent simulation root directory.
    simulation_root_dir = sim_root.parent
    if first_iteration:
        summarise_overrides_log(file_name, simulation_root_dir)

And it will go through each simulation folder to find the overrides log.
def find_log_files(file_name, root_dir):
    """
    Find the path for log files for the jobs from different simulation jobs
    """
    file_directory = []
    for root, dirs, files in os.walk(root_dir):
        for file in files:
            if file.startswith(file_name):
                if str(root)[-2:] == '/0':  # find the file in zero iteration only in the simulation folder
                    file_directory.append(os.path.join(root, file))
    return file_directory

thanks, I didn't spot that, however, if this is run as a regular bitsim run without the swarm (ie without a "batch" config) - it will summarise everything it find in root.
I think remove this requirement to combine multiple runs until there is an obvious place to put it.
I will suggest changes.

thanks, I didn't spot that, however, if this is run as a regular bitsim run without the swarm (ie without a "batch" config) - it will summarise everything it find in root.
I think remove this requirement to combine multiple runs until there is an obvious place to put it.
I will suggest changes

Thanks. You are right. It will combine all of the overrides logs from every folder in the root in the 0 iteration. It could still be useful as a lookup log when we submitted several experimental simulations from various batch jobs or without job config at different time.
I have some experience running several different swarm simulations based on getting the feedback from previous experimental simulations for calibration purpose. Since all of these simulations are saved into the same root directory, I believed these simulations should belong to similar experimental jobs that we would like to compare.
Happy to hold this combined override log and implement it when we have a "conductor" job.

As it is the override log writes to sim_root/0/, but you might prefer it to write to sim_root/? Feel free to change

sim_root/0/ is good for me to keep the single override log for each simulation.

I have some experience running several different swarm simulations based on getting the feedback from previous experimental simulations for calibration purpose. Since all of these simulations are saved into the same root directory, I believed these simulations should belong to similar experimental jobs that we would like to compare.

makes sense - if useful to you then keep it in 👍🏻

I reverted the previous commit and merged them together. I will keep the combined log for now and I am happy to shift it to the bitsim when the swarm conductor is ready in the bitsim step function😃 . @fredshone


Remove limitation to have port 8081 available

it is delegating the choice of the port to Quarkus framework.
fixes #60
TODO:

find a way to tell Kaoto UI to use this port
remove hardcoded port in webpack.config.js
provide test occupying port 8081

requires https://github.com/KaotoIO/kaoto-ui/pull/1687
but currently not working. it sound like the file KaotoEditorEnveloppeApp.js is sent inside a request. I do not have debug capapbilities from the IDe then and do not know what is happening exactly. I'm suspecting that the way to access the field of our VS Code extension class needs to be done in a specific way.

outdated, next version planned will be based on Kaoto 2 which won't require a backend and so no more port issue


Using SQLite extensions

SQLite does support runtime-loadable extensions. The can add functions (like JSON support) or change the behavior of the engine.
Many of them are per-session, i.e. are unloaded when the connection is closed.
Loading extensions is supported by the sqlite3 client: https://github.com/mapbox/node-sqlite3/wiki/Extensions
Would it be possible to make knex support them?
I could use sqlite3 directly but here's my use-case where I'm not sure how to proceed:

I'm running lots of operations inside of single transaction that fetch the data and put it into the DB
then I'd like to drop and recreate the search index table which relies on FTS5 extension and the custom Snowball stemmer
and then I need to populate the search index by inserting the records from the table filled in step 1

Because the per-session nature of the extensions it looks the only way for me now is to commit the transaction and then run the index-related stuff separately by using the sqlite3 client directly. This is kinda OK but can leave the DB in inconsistent state due to transaction being committed in the middle of the process.
Or am I missing something?
More info about the extensions: https://sqlite.org/loadext.html

Can you setup loading extensions in afterCreate callback http://knexjs.org/#Installation-pooling ?
That is called to every DB connection just after connection has been created. Usually all the per-session related stuff is done there.

Oh, didn't find it in the docs, thanks, will try and let you know how it goes. There's a slight downside of tit being called on each connection when I really only need it for the final phase, but that sounds like not that big deal, at least before I really see it slowing the things down.

Yeah it would be nice to be able to get dedicated connections from knex without need to fake them with transactions. I hope I get time to implement that at some point next year...

Hm, interesting enough I get segfault when using this method + transaction around the "INSERT SELECT" statement (raw query), but not when doing the same query directly on the sqlite driver myself.
It depends on the number of records being transferred, the total number of records I have is 300K+ and it doesn't fail if I limit the number of them to something like 10K.

I think we cannot help more with this issue, closing. Feel free to keep on discussion though.


Alpha channel

The Problem:
Users are unable to modify the alpha channel / opacity of colors.
The Solution:
Add alpha channel / opacity slider.
Additional Context:
Awesome work. Just wondering if you plan to implement an alpha channel slider or anything similar.

Hello, thank you for your feedback, yes, I plan to add it, but the fact is that I do not have enough time at the moment, so I would be very grateful if you could make a pull request.

I took a stab at implementing it, if you want to look it over / build on it:
https://github.com/Wondermarin/react-color-palette/pull/15


Jump to another slide through a link

Hi,
Is there a way to create a link in a slide to jump to another slide?
Thanks,
Ky

Hi.  I figured it out.  Use slideshow.gotoSlide('')

@kyp0717, you don't need to use JavaScript for that.


Snapshot testing

Snapshot framework to compare the model's current output to outputs that it's had in the past. Also added a method to easily update the snapshots.
Ran the tests and everything passes.

Do we need to be checking in the test data? This is PR is 225 files large ;).

All those files being deleted were from the old snapshot framework, which depended on them. I removed them because the new framework uses a different format (with a single file). I would argue that removing them simultaneous to the snapshot testing refactor is appropriate.

This is definitely something I'd like to land as part of supporting the new modeling work.

@tsebens Can we revisit this PR in the context of the changes being proposed here? https://docs.google.com/document/d/1VhQqMxtVYHQMIj9zFeb1DUQZ1aq1k4xIc_bYoTIqUb4/edit?ts=5e8a3a1e#

Closing as this branch is no longer relevant


assessment

1.75 of 6 (-0.5 on Q1, Q2, Q5; -0.75 on Q6; -1 on Q3, Q4)
I think you need to review this material. Go back through the documentation, sit on it for a day, and give this assessment another go.


Validator details

mockups: https://www.figma.com/file/8dwSyYOOm3vlgbvxPGT29p/Block-Explorer-(Post-Launch)?type=design&node-id=6092-212988&mode=design&t=y5RJp5Wyw0HndnoP-0
current UI: not available until we switch query param, but it is mostly done
API endpoint: https://nexus.oasis.io/v1/consensus/validators/9sAhd+Wi6tG5nAr3LwXD0y9mUKLYqfAbS2+7SZdNHB4=

Many items relate to #859
use address instead of entity_id as parameter (done in #685)
data for balance distribution chart (done in #686)
data to render "Voting Power" snapshot box (done in #686)
uptime (TODO: warren's #646) adds tracking block signers which can be used as a proxy for uptime. Once it's merged we'll need a follow-up PR to expose this on the validator endpoint)
media is empty in most cases #859

(done in #707)

Missing data for details section:

"Rank" (done in #686)
"Delegators" (done in #686)
"Status" in terms that mockups include waiting status
"Start date" timestamp (wip in #686
"Voting power" (done in #686)
"Total share" (done in #686)
"Participation rate" -- same as uptime, see above

API endpoint for Staking Trend chart (done in #703)
API endpoint for Signed Blocks, something like https://www.oasisscan.com/mainnet/validator/stats?address=oasis1qqekv2ymgzmd8j2s2u7g0hhc7e77e654kvwqtjwm (done in #760)
API endpoint for Proposed Blocks (wip in #764)

Undelegations https://nexus.oasis.io/v1/consensus/accounts/oasis1qpqz2ut6a6prfcjm64xnpnjhsnqny6jqfyav829v/debonding_delegations_to

debond_end is always 0 , should we have something like epochLeft. How can I correctly show a date of debonding end?
^ this is a bug, @ptrus fixes it in #712
How should we show shares. Oasis scan style:"76" or Wallet style (Gigashares) 76.060790809

I believe this was resolved by frontend

Subtasks:

[x] #703
[x] #764

Update:
@Andrew7234 wrote:

Updated the task list with the current state! There are 3 remaining todos, which can likely all be completed in a follow-up PR once #646 (which tracks block signers/proposers) is merged.
There is some more work to be done on validator status, which is currently impl as a true/false  but needs to be updated since there are 3 possible states of (active/inactive/waiting). Need some clarification on the difference between inactive/waiting. This will likely be impl in #686

This was completed.


stringify object to pass as functions option

maybe this is an issue I should put on loader-utils but for the life of me I can't figure out how to stringify an object to pass as the functions option to node-sass.  Seems like it would be easier for things like this if you would do something like check this.options.sass:
let functions = {
  'image-url($filename)': function(filename) {
    var imageUrl = process.env.NODE_ENV === 'development' ?
      '' :
      '';//enter CDN path here
    var fileName = filename.getValue();

    var imagePath = 'url("' + imageUrl + '/' + fileName + '")';
    /*eslint-disable */
    return new sass.types.String(imagePath);
    /*eslint-enable */
  }
}

`sass-loader?functions=${somehowStringify(functions))}`

PR #152 would help in your case I think.

Yep, #152 solves it. I just merged the PR, but we need tests :grinning:.

#152 shipped with 3.1.0. New preferred way for passing options is now via a property on your webpack config. See https://github.com/jtangelder/sass-loader#sass-options

@jhnns awesome...much appreciated


Need to be responsive

hey @Mennapika i have already created a issue regarding footer part. u can comment there i will assign u


Bug:[TypeError: Cannot read property 'focus' of null]

Do you want to request a feature or report a bug?
bug
What is the current behavior?
after clicking getting
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/gmertk/e61z7nfa/.
Uncaught TypeError: Cannot read property 'focus' of null
at focusEditor (MyEditor.js:15)
at HTMLUnknownElement.callCallback (react-dom.development.js:3945)
at Object.invokeGuardedCallbackDev (react-dom.development.js:3994)
at invokeGuardedCallback (react-dom.development.js:4056)
at invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:4070)
at executeDispatch (react-dom.development.js:8243)
at processDispatchQueueItemsInOrder (react-dom.development.js:8275)
at processDispatchQueue (react-dom.development.js:8288)
at dispatchEventsForPlugins (react-dom.development.js:8299)
at react-dom.development.js:8508
at batchedEventUpdates$1 (react-dom.development.js:22396)
at batchedEventUpdates (react-dom.development.js:3745)
at dispatchEventForPluginEventSystem (react-dom.development.js:8507)
at attemptToDispatchEvent (react-dom.development.js:6005)
at dispatchEvent (react-dom.development.js:5924)
at unstable_runWithPriority (scheduler.development.js:468)
at runWithPriority$1 (react-dom.development.js:11276)
at discreteUpdates$1 (react-dom.development.js:22413)
at discreteUpdates (react-dom.development.js:3756)
at dispatchDiscreteEvent (react-dom.development.js:5889)
What is the expected behavior?
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?

it could be the fix
  React.useEffect(() => {
    focusEditor();
  }, []);