Systematic Literature Review & Grey Literature Review

Related to smart contract dependencies.

Analyzing Ethereum Smart Contract Vulnerabilities at Scale Based on Inter-Contract Dependency
https://www.techscience.com/CMES/v135n2/50148

Towards Automated Security Analysis of Smart Contracts based on Execution Property Graph
https://arxiv.org/abs/2305.14046

HoRStify: Sound Security Analysis of Smart Contracts
https://ieeexplore.ieee.org/abstract/document/10221883

https://dl.acm.org/doi/full/10.1145/3488245 Why Do Smart Contracts Self-Destruct? Investigating the Selfdestruct Function on Ethereum

The Sword of Damocles: Upgradeable Smart Contract in Ethereum
The paper examines the prevalence of upgradeable smart contracts on Ethereum, focusing on two upgrade techniques: the proxy pattern and metamorphic contracts.
It seeks to answer 4 RQs on this topic:
RQ1: Do developers care about upgradeable contracts?
A review of Ethereum StackExchange posts from 2016 to 2022 found 355 posts related to upgradeable contracts, with the proportion increasing from 20% to 70% over the years. These posts focus on requirements (49%), code issues (39%), and security concerns (5%), with security concerns becoming more prominent in recent years.
RQ2: How to detect upgradeable contracts?
For metamorphic contracts, they analyzed transaction histories involving SELFDESTRUCT and CREATE2 opcodes, along with changes in contract code, to identify upgrades.
For proxy pattern upgradeable contracts, they design a bytecode-based classifier. For feature extraction, the bytecode was disassembled into opcodes.
The classifier was benchmarked using 4,352 upgradeable and 4,352 non-upgradeable contracts. These contracts were taken from the XBlock dataset and manually labeled.
The Random Forest algorithm achieved the best results out of the 5 ML algorithms tested, with a 99.37% F1 score in a 10-fold cross-validation.
RQ3: What's the frequency of upgradeable contracts?
From the 12M blocks, a subset of contracts with TXs containing DELEGATECALL, CREATE2, and SELFDESTRUCT was collected. After running the classifier on this subset of contracts 126,500 were identified as proxy upgradeable and 28 were metamorphically upgraded. 7 of these 28 contracts were flagged as MV bots by Etherscan.
RQ4: Why do developers use upgradeable contracts?
The study manually reviewed a random sample of 300 upgraded contracts to determine the reasons for upgrades. The findings revealed that developers primarily used upgradeable contracts for functionality changes (46%), vulnerability repairs (24%), code optimizations (25%), and other factors (5%).
thanks @Mokita-J

Some literature on smart contract supply chain (off-chain, i.e. npm packages, open-zeppeling):
Demystifying the Composition and Code Reuse in Solidity Smart Contracts ESEC/FSE 2023
Code cloning in smart contracts: a case study on verified contracts from the Ethereum blockchain platform ESE journal 2020
Analysis of Source Code Duplication in Ethreum Smart Contracts SANER 2021

Self-Destruct related:
Why Do Smart Contracts Self-Destruct? Investigating the Selfdestruct Function on Ethereum
https://dl.acm.org/doi/pdf/10.1145/3488245
Dynamic Analysis for Detection of Self-Destructive Smart Contracts
https://ieeexplore.ieee.org/abstract/document/10197106

In Code We Trust? DPM 2017

Instrumenting Transaction Trace Properties in Smart Contracts: Extending the EVM for Real-Time Security
Main Idea:
This work proposes a modified EVM that enables real-time attack detection and prevention.
Existing work for smart contract security can be described as one of these approaches:

Use detectors that analyze transaction traces after execution and identify, but these can't stop attacks in real-time.
Adding runtime guards to contract code to revert transactions that violate certain properties. This increases gas costs and still fails to prevent all attack types.

The proposed solution combines key aspects of both approaches.
It allows smart contracts to access prior transaction traces before execution.
Contracts can read these traces from other contracts and revert the current transaction if a property is violated.
Implementation of the Idea:
To implement this, the paper introduces a new EVM opcode, "HOOK", which developers integrate into contracts alongside a specification file detailing properties to be checked.
Past-Time Linear Temporal Logic (PTLTL) is used to express these properties.
These hooks incur no additional gas costs.
Evaluation:
The evaluation shows that 186 of 188 Forta attack detectors can be specified using PTLTL.
The remaining two require external resources such as offchain oracles which are beyond the scope of this work.
System Overhead:
According to the authors, the proposed EVM modification does not affect consensus or exacerbate storage demands.
Because the safety checks do not alter the blockchain state.
Additionally, property validation can run in parallel with EVM execution, ensuring no impact on performance.
Tools/Code/Dataset: Not found.
How it differs from what we want to do?
SCSC does not revert transactions, nor changes the EVM.
We map out dependencies over time between contracts through transaction traces.
But we don't act upon transaction execution in real time.
Implementing the solution in this paper would require updating all Ethereum nodes, whereas SCSC achieves its goals without needing any changes from the community.
Is that useful for us?
The real attack presented as a motivational example can also be used in our work.
dForce attack happened to a dForce contracts that relied on a Curve.Fi contract which had a read-only reentrancy vulnerability.
The dForce contracts were exploited (they lost ETH), even though the vulnerability was in the Curve.Fi contract.
This is a case that supports the importance of smart contract supply chain.
For modern protocols implemented on the blockchain, looking at a singular contract is not enough to assess its security.
A contract without vulnerabilities can be exploited if it depends on a vulnerable contract.

Proxion: Uncovering Hidden Proxy Smart Contracts for Finding Collision Vulnerabilities in Ethereum.
Proxion is a tool with these features:

Detects proxy contracts and their logic contracts.
Identifies storage/function collisions between proxy and logic contracts.

Novelty: It can work solely on bytecode, unlike previous tools that require source code or transaction history.
Scope: Focuses on proxy contracts with delegate calls in the fallback function.
Methodology:
Proxy Detection: Dynamic analysis with a customized emulator in Octopus.
Collision Detection:

With source code: Uses Slither.
Without source code: Uses CRUSH for storage collision. Performs static analysis (assisted by Panoramix decompiler) for function collisions.

Evaluation:
Compared to USCHunt & CRUSH
Datasets: Smart Contract Sanctuary (329k contracts) & CRUSH (53.5M contracts)
Found 7k and 1.7M more proxies than competitors for the respective datasets.
Improved collision detection: 24% (storage), 46% (functions) --> manual analysis of the results.
[No accuracy analysis on proxy detection. The datasets don't include the ground truth for the proxy contracts that Proxion detects.]
Tool repo.
Notes on some of the tools:
Octopus is not maintained anymore so it does not have some recent opcodes.
Panoramix is the decompiler used by Etherscan.


Implement Data.Task

Implement a new Data.Task library based on Siren's cancellable tasks (https://github.com/siren-lang/siren/blob/master/runtime/src/Concurrency.siren).
See https://github.com/folktale/data.task/issues/35#issuecomment-220382518 for details

@robotlolita does it mean the Task part is same as current implementation? If, so it just need Future and Task Execution, right?

@syaiful6 it's very similar, but the resource handling and cancellation brings in some differences.
The effort to explain turned out to be more than the effort to implement it, so I just started a new branch and implemented it (https://github.com/origamitower/folktale/blob/patch/data.task/src/data/task/core.js). I should finish the rest of the operations later this week.


[FeatureRequest] Add additional diagram types

Hi gmunguia,
it would be great, if your plugin would support also addtional diagram types like JSON Data (@startjson) and YAML Data (@startyaml) or Word Breakdown (@startwbs).
Sadly they have an addional syntax and i would have to copy your branch to support it.
The best place would be your plugin supporting the addtional syntaxes as well, if this would be easily possible for you.
Thanks for creating this heavily used plugin.
Best Regards
Holger

It already supports this. You'll have to use the plugin once for each of the diagram types you want to support.
md.use(require('markdown-it-plantuml'), {
  openMarker: '```plantuml',
  closeMarker: '```',
  diagramName: 'uml',
  imageFormat: 'svg',
});
Work Breakdown Structure https://plantuml.com/wbs-diagram
md.use(require('markdown-it-plantuml'), {
  openMarker: '```wbs',
  closeMarker: '```',
  diagramName: 'wbs',
  imageFormat: 'svg',
});
// JSON https://plantuml.com/json
md.use(require('markdown-it-plantuml'), {
  openMarker: '```jsondiagrom',
  closeMarker: '```',
  diagramName: 'json',
  imageFormat: 'svg',
});
// YAML https://plantuml.com/yaml
md.use(require('markdown-it-plantuml'), {
  openMarker: '```yamldiagram',
  closeMarker: '```',
  diagramName: 'yaml',
  imageFormat: 'svg',
});

Hi Carlo,
sorry, that i forgot to say thank you for the tip!
Just tried it with ditaa and ran into issues, but figured out, that svg is not supported (just rendering images).
md.use(require('markdown-it-plantuml'), {
  openMarker: '```ditaa',
  closeMarker: '```',
  diagramName: 'ditaa',
  imageFormat: 'png',
});

Thanks for the great plugin!
I am heavily using it at
btp.udina.de
Best Regards
Holger


Fix rerun in Grinder with failed test link

Sign-off: Yee Lin
Close: #3449

Tests will be updated shortly.


Aggregation compatibility

I've been using aggregation with version 3.6.1 of the MongoDB Driver and it seems to work fine, although the docs say it's only compatible with 2.2. Could you clarify this?
Also, I've not been able to reverence JongoNative on version 1.4.0. When will this be included?
Thanks.

Hello,
1.4.1 has just been released.
It  has been tested with the following mongodb-java-driver versions : [3.8.0, 3.12.2]
Note that JongoNative is not included into this release.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
...
    <dependencies>
        <dependency>
            <groupId>org.jongo</groupId>
            <artifactId>jongo</artifactId>
            <version>1.4.1</version>
        </dependency>
    </dependencies>
...
</project>


fix(helm): Disable schema validation for manifests

Signed-off-by: Morten Torkildsen<EMAIL_ADDRESS>
What this PR does / why we need it:
The change in #5576 and #5643 added schema validation for new manifests. This seems to cause problems for existing Helm setups, so this change removes schema validation of charts in all situations.
Ref discussion in #5750
Special notes for your reviewer:
If applicable:

[ ] this PR contains documentation
[ ] this PR contains unit tests
[ ] this PR has been tested for backwards compatibility

How painful would it be to have the functionality here (debug) log validation issues instead of disabling it completely?  With the discussion of moving this feature to helm 3, and it being near-ish on the horizon, I could see the value in knowing which of my manifests are going to be problematic in the new version.  This doesn't necessarily have to be part of this PR as I'd rather have a working helm ecosystem sooner than later but wanted to pose the question.


It's been a fun ride

With https://github.com/loopuleasa/Dota2-TheCore-Config-Engine/issues/159 update coming along, it seems that the bulk of the Dota2 Core Engine won't work any longer and it saddens me to see it go.
I want to thank everyone that contributed to this project. This scripting engine was a very fun learning experienced that thought me many concepts along the way of my programming career. It even helped me get a job working as a C developer, since it was such a good lightsource on my portfolio. Learning how to use git, how to collaborate on code works, how to delegate work, how to manage my time and meet deadlines when patches arrive, how to handle marketing aspects, how to develop systems on top of available systems, how to design architectures for those systems. All of these, I've learned while pursuing a need that shot through my mind on a sunny day when I was butthurt over the options Valve gave us through the in-game menu, and through the fascinating possibilities a simple console provided.
This engine, together with the people developing it, was always against macros/hacks/cheats and thus we were careful to make every single keystroke available within to only launch one in-game action. You perform one or more actions, only one action comes out the pipe at the other end in the Dota2 client. That was the concept, and we stuck to that. The only difference was how the layout of the available commands should be spread, in a smart manner, an efficient one that was user friendly for all the players out there. Maximizing the space you have on the keyboard while providing you as much control was our end goal and I am proud to say that everyone that contributed to this project, together, we managed to achieve that.
I am saddened to see so many people being forced to switch to other layouts, limited to the in-game menu, after becoming so familiarized with my super compact keyboard layout. I am not sure how I will play dota now. It's like drinking the best beer in the world for two years straight, then having to go and drink piss-water just to maintain my alcoholism.
I'd rather just quit drinking. Or playing the game, in this metaphor.
I will try to see if there are any workarounds once the patch hits ( if it didn't already ) but I am sad to see that there will be limitations and that Valve decided to strip us of the beautiful control we've been given up until now, just because some people found ways to abuse the autoexec.
Thanks for everything, everyone.
Loop.

I'm pretty sure we have to either re-learn everything (fuck youj valve) or use autohotkey/etc, which feels like cheating.

I have a concept that may work but will require a lot of testing to make it work. It also might not be able to fulfill all the old stuff, but it might work for key modifiers at a bare minimum

Thread is up
https://www.reddit.com/r/DotA2/comments/4kzld1/a_plea_to_valve_please_dont_kill_the_honest/

@loopuleasa I think you should add a small section about the possible solution, which is to prevent multiple item/ability uses per autoexec-tick.

Thanks Loop. Much love.

@AetherV Could you detail your workaround?

@thth Wrong thread but way I did it
Only tested it in a demo game so far (sv_cheats turned manually off)
In lobby game with cheats for levels it works, in lobby without anything I can't even execute a simple say_student script.
poc.cfg.txt
autoexec.cfg.txt

@AetherV, as far as I can understand, that's the "fix"; nothing to do with "your end."

Wait, so you telling me. I am not allowed to do bind x say_student hello

@AetherV sv_cheats 0 in a demo game doesn't seem to actually turn cheats off; as far as I can tell exec unfortunately isn't usable in an actual game
A simple bind x say_student hello should still work though

This does not work for me
new2.cfg.txt
So where are our keybindings than saved? Because dota has got to save our hotkey list somewhere.

@AetherV maybe your x key is overriden in the in-game hotkey config or maybe you have your line behind an exec in your autoexec; just inputting bind x say_student hello2 in the console works.

Strange. Could be. So am I mistaken in thinking that the exec command works nowhere but in the main menu?

I haven't done extensive testing but I'd imagine if you're in a server with cheats off exec, alias, and anything after a ; won't work

yeah great, might be able to fiddle around with a couple of files directly related to key binding,but am not hopeful.  Like seriously though, if they would sort out their settings, than there would not be a need for configs like this, but I guess that is Valve. Kinda glad I didn't buy a compendium.

It has been a fun ride, all. Thanks for everyone's hard work, you guys made it a lot easier to tweak my binds and use them across PCs and operating systems. Comment posted on the reddit thread though I'm afraid the anti-scripting crowd is drowning out useful discussion in most places :-/.

Thanks a lot loop and devs for the this. Looking at the current Reddit threads' status, popular opinion seems to be against this , Which valve will follow for sure. I hope they will give us enough options in the game to have majority of our binds working.

@abhinav91690 I made an issue for possible workarounds. #162 is what you should follow for "enough options".

For those out of the loop, we have a simple, single AutoHotKey solution now. This is all it takes:
~*Space::ControlSend, , {LWin Down}, Dota 2
*Space Up::Send {LWin Up}

https://github.com/Karrandalf/D2SpaceModifier


[3.2.0] Missing Configurations in Analytics Space

Description:
The NLS_DATE_FORMAT init SQL configurations are missing in the API-M 3.2.0 Analytics Standard Setup Doc Space whereas the correct configurations are pointed in the 3.0.0 Doc Space
Update the mentioned Note element with the sample datasource configuration including the following
connectionInitSql: alter session set NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'

Affected Product Version:

API Manager 3.2.0 & Analytics

Related Issues:

#analytics-apim/issues/923

@athiththan11 , need more clarification in this regard.

@Mariangela, in previous versions of the API Manager docs: v3.0.0, it was mentioned in a Note that the following configuration is required when configuring Oracle Datasource for Analytics. Further, it is described with an example having the following property in a sample datasource configuration.
connectionInitSql: alter session set NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'

However, in the v3.2.0 documentation space, the explanation and the samples are missing. Even though the v3.2.0 docs is having a small Note describing the relevant property, it would be good to have an explanation with a sample Datasource configuration as written in the v3.0.0 docs.
Please find the screenshots of both v3.0.0 and v3.2.0 docs spaces having the mentioned Note:

Screenshot of v3.0.0 Docs

Screenshot of v3.2.0 Docs


[Identity] Convert remaining cache.find usage

Since MSAL's cache find is deprecated, search is the API we should be using.

API change check
API changes are not detected in this pull request.


FABN-1224 NodeSDK use discovery interests

Add discovery interests to the fabric-network. This will
allow for endorsement plans to be provided from the peer's
discovery service that consider chaincode to chaincode
calls and collections.
Signed-off-by: Bret Harrison<EMAIL_ADDRESS>

re-submitted based on changes made to release-1.4


Skip Llama2 tests

Description

Skip Llama2 tests until BuildKite runner has sufficient GPU memory.
Corresponding documentation PR

-
Types of change

CI chore.
Checklist

[x] I confirm that I have the right to submit this contribution under the project's MIT license.
[ ] I ran all tests in tests and usage_examples/tests, and all new and existing tests passed. This includes

all external tests (i. e. pytest ran with --external)
all tests requiring a GPU (i. e. pytest ran with --gpu)

[x] My changes don't require a change to the documentation, or if they do, I've added all required information.

The GPU run is green 👍


[BUG] All notification channels not shown in the dropdown when setting up detector

What is the bug?
Microsoft teams channel is not shown in the notification channel list when setting up alerts in the detector creation flow.
How can one reproduce the bug?
Steps to reproduce the behavior:

Create channel for MS teams in the notifications plugin
Switch to security analytics plugin
Open create detector page and fill the basic details
Go to the notifications section on page two and try selecting the channel created in step 1 but it is not present in the options list

What is the expected behavior?
Show MS teams channel in the list of channels
What is your host/environment?

all OS versions up to 2.12

Closing per the above PR


 Anyway, this is the error I get:
+Error:  ENOENT: no such file or directory, open '/home/runner/work/scalar/scalar/ ./packages/api-client/package.json'
  at async open (node:internal/fs/promises:639:25)
  at async Object.readFile (node:internal/fs/promises:1249:14)
  at async writeDeps (/home/runner/.npm/_npx/e[8](https://github.com/scalar/scalar/actions/runs/9713468178/job/26810327808?pr=2310#step:12:9)f433c388b218fc/node_modules/pkg-pr-new/dist/index.js:3278:1[9](https://github.com/scalar/scalar/actions/runs/9713468178/job/26810327808?pr=2310#step:12:10))
  at async Object.run (/home/runner/.npm/_npx/e8f433c388b218fc/node_modules/pkg-pr-new/dist/index.js:3202:32)
  at async runCommand (/home/runner/.npm/_npx/e8f433c388b218fc/node_modules/pkg-pr-new/dist/index.js:2196:16)
  at async runCommand (/home/runner/.npm/_npx/e8f433c388b218fc/node_modules/pkg-pr-new/dist/index.js:2187:[11](https://github.com/scalar/scalar/actions/runs/9713468178/job/26810327808?pr=2310#step:12:12))
  at async runMain (/home/runner/.npm/_npx/e8f433c388b218fc/node_modules/pkg-pr-new/dist/index.js:2323:7)

Shouldn’t be '/home/runner/work/scalar/scalar/ ./packages/api-client/package.json', but '/home/runner/work/scalar/scalar/packages/api-client/package.json', I guess.

Hey! Thank you so much for reporting, I'm taking a look!

Just released<EMAIL_ADDRESS>


Recover feature importances from detector

All Submissions Basics:

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] Have you checked all Issues to tie the PR to a specific one?

All Submissions Cores:

[ ] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your core changes, as applicable?
[ ] Have you successfully ran tests with your changes locally?
[ ] Does your submission pass tests, including CircleCI, Travis CI, and AppVeyor?
[ ] Does your submission have appropriate code coverage? The cutoff threshold is 95% by Coversall.

I tested locally. Looks good. Thanks.
I will make some additional changes.


Load PDB Status Pane UI

Ugly and needs to be matched to Zeplin:

Zeplin: https://app.zeplin.io/project.html#pid=582f3a02541d3d2b506e1a59&sid=582f3c0bc16999e30e720cc1
HTML: https://github.com/Autodesk/molecular-design-applications/blob/master/client/public/js/components/status_load.jsx
No Sass file as of now, but could be created in /client/public/css/status_load.scss.

Slightly improved design merged in with: https://github.com/Autodesk/molecular-design-applications/pull/37


Issue with k8s  invalid link referred by "framework file" in  docs k8s.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definition-versioning/

This is a Bug Report

Problem:
Invalid link referred by  "framework file" in "Most of the common code are located in the framework file that leaves only one function to be implemented for different conversions."
It was supposed to redirect to github page but invalid link reference of  "framework file"  leads to error 404 page not found.
Proposed Solution:
Linking "framework file" in "Most of the common code are located in the framework file that leaves only one function to be implemented for different conversions." to a valid link that fulfill the context.
Page to Update:
k8s.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definition-versioning/

Kubernetes Version
v1.14

i am working on this issue.


Add the fake initial snapshot to the snapshots.

This is needed to allow the initial stake pools to continue producing
blocks into the second epoch.
HERE BE DRAGONS: this function is not suitable for production use!

HERE BE DRAGONS: this function is not suitable for production use!

But now it will be used by any pure Shelley node. Or is that not "production"?
What are the consequences of using it?
The warning should really live in the code, not just in this commit message.

It will not be used unless registerGenesisStaking is invoked. But you're right, I should add this comment onto that function!

It will not be used unless registerGenesisStaking is invoked. But you're right, I should add this comment onto that function!

But registerGenesisStaking is currently called in protocolInfoShelley.

Hmm, true. OK, I have added a comment that explains the use, but I think a better solution would be to make this optional in ShelleyGenesis and then avoid doing any manipulation. I've added an issue at https://github.com/input-output-hk/cardano-ledger-specs/issues/1633

Ohh, but then pool block creation stops when the second epoch starts...

Works just fine now!

bors r+

bors r+

bors retry

bors r+


Add build and release workflow

This PR adds a GitHub workflow which builds co2monitor on ARMv7 (Linux), AArch64 (Linux), and AMD64 (Linux and macOS).
If the build was triggered by pushing a tag, it will interpret the tag as version, create a GitHub release, and attach/upload the build artifacts to it.
For building the ARM-based versions of co2monitor, we're using QEMU to emulate the respective machine architecture, since the Rust cross-compiling chain doesn't quite work because of the dependencies to native libraries (libusb, libudev, libhidapi).
Examples:

Non-release run: https://github.com/joschi/co2monitor/actions/runs/166507659
Release run: https://github.com/joschi/co2monitor/actions/runs/166508190

Created GitHub Release: https://github.com/joschi/co2monitor/releases/tag/v0.1.0

@gtudan And of course thank you very much for building co2monitor!
It's humming along nicely in my office to monitor the air quality. 😄


"Agree to Terms and Conditions" in App notification is not helpful

I'm not too good with the proper terms in Android apps, but I'll give it a try to explain what I mean in here.
If you try to use the Matrix.org servers without having accepted the terms and conditions before, an in app overlay notification with a link to the agreement text and form is shown. This is well meaning, however, one may not acutally click / copy / whatsoever that link, since clicking on it removes the notification.
I understand that the shown message might be from the chosen server and not from the app itself, however, imho this really confuses users.

Yes, it will be fixed in the next release. You should see a proper dialog instead of the Toast in this case


Invalid package reference in library

okio-1.0.0.jar: Invalid package reference in library; not included in Android: java.nio.file. Referenced from okio.Okio.

This can be safely ignored. It's impossible for that code path to be executed on Android therefore it poses no threat.


CUDA automatically enabled when Build with -Dracon_enable_cuda=ON

Hi,
are the Parameters for tweaking CUDA defining that racon uses CUDA or is the with -Dracon_enable_cuda=ON build racon automatically using the GPU with the default Parameters? (Usually, I expect some Parameter to specify the cuda device that should be used like e.g. cuda:0). Sorry for the silly question.

Hi Jasim,
-Dracon_enable_cuda=ON only builds racon with support for CUDA, it will still run on the CPU by default. In order to run it on the GPU, you need to set some (or all) of the following parameters:
    -c, --cudapoa-batches <int>
        default: 0
        number of batches for CUDA accelerated polishing per GPU
    -b, --cuda-banded-alignment
        use banding approximation for polishing on GPU. Only applicable when -c is used.
    --cudaaligner-batches <int>
        default: 0
        number of batches for CUDA accelerated alignment per GPU
    --cudaaligner-band-width <int>
        default: 0
        Band width for cuda alignment. Must be >= 0. Non-zero allows user defined
        band width, whereas 0 implies auto band width determination.

Best regards,
Robert

Thank you Robert for specifying!
Is there any general Formula for scaling/optimal Parameters for the built in GPU ?

If I recall correctly, you can divide your GPU memory with 200-250MB to get the number of batches. You can also take some example dataset and try to find best parameters for your GPU.
Best regards,
Robert

Thank you for the advice, I would like to try but I keep running into this make error:
(racon) usr@DESKTOP-H68A51G:/mnt/d/racon/build$ cmake -DCMAKE_BUILD_TYPE=Release -Dracon_build_tests=ON -Dracon_build_wrapper=ON -Dracon_enable_cuda=ON ..
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Using CUDA 11.4 from /usr/local/cuda
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
CMake Warning (dev) at vendor/spoa/vendor/cereal/CMakeLists.txt:2 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR
PROJECT_VERSION_PATCH

This warning is for project developers.  Use -Wno-dev to suppress it.
-- Found Boost: /home/usr/anaconda3/envs/isoncorrect/lib/cmake/Boost-1.76.0/BoostConfig.cmake (found version "1.76.0") found components: serialization
-- boost_variant.cpp
-- Found Doxygen: /home/usr/anaconda3/envs/isoncorrect/bin/doxygen (found version "1.9.1 (ab553a81f1725c385ca98109c269b0222389b72a*)") found components: doxygen dot
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
Setting warning flags
-- Building GenomeWorks libraries as static objects
-- Found CUDA: /usr/local/cuda (found suitable version "11.4", minimum required is "9.0")
-- Using CUDA 11.4 from /usr/local/cuda
-- Build type: Release
-- Package generator - DEB
-- Found Conda environment in /home/usr/anaconda3/envs/isoncorrect
-- nvcc flags for gwbase:  -lineinfo -lineinfo -use_fast_math -Xcompiler -Wall,-Wno-pedantic -std=c++14
-- nvcc flags for cudapoa:  -lineinfo -lineinfo -use_fast_math -Xcompiler -Wall,-Wno-pedantic -std=c++14 --expt-relaxed-constexpr
-- Using CUDA 11.4 from /usr/local/cuda
-- Automatic GPU detection failed. Building for common architectures.
-- Autodetected CUDA architecture(s): 3.0;3.5;5.0;5.2;6.0;6.1;7.0;7.0+PTX;7.5;7.5+PTX
-- nvcc flags for cudamapper:  -lineinfo -lineinfo -use_fast_math -Xcompiler -Wall,-Wno-pedantic -lineinfo --expt-extended-lambda -use_fast_math -Xcompiler -Wall,-Wno-pedantic -std=c++14 -gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_70,code=compute_70;-gencode;arch=compute_75,code=compute_75
-- nvcc flags for cudaaligner:  -lineinfo -lineinfo -use_fast_math -Xcompiler -Wall,-Wno-pedantic -std=c++14 --expt-relaxed-constexpr
-- Enabling Doxygen documentation generation
-- Found GTest: /usr/lib/x86_64-linux-gnu/libgtest.a
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/d/racon/build
(racon) usr@DESKTOP-H68A51G:/mnt/d/racon/build$ make
Scanning dependencies of target gwbase
[  0%] Building CXX object GenomeWorks/common/base/CMakeFiles/gwbase.dir/src/cudautils.cpp.o
In file included from /mnt/d/racon/vendor/GenomeWorks/3rdparty/spdlog/include/spdlog/fmt/fmt.h:21,
from /mnt/d/racon/vendor/GenomeWorks/3rdparty/spdlog/include/spdlog/common.h:28,
from /mnt/d/racon/vendor/GenomeWorks/3rdparty/spdlog/include/spdlog/spdlog.h:12,
from /mnt/d/racon/vendor/GenomeWorks/common/base/include/claraparabricks/genomeworks/logging/logging.hpp:99,
from /mnt/d/racon/vendor/GenomeWorks/common/base/include/claraparabricks/genomeworks/utils/cudautils.hpp:22,
from /mnt/d/racon/vendor/GenomeWorks/common/base/src/cudautils.cpp:17:
/mnt/d/racon/vendor/GenomeWorks/3rdparty/spdlog/include/spdlog/fmt/bundled/format.h:3475:55: warning: ISO C++ did not adopt string literal operator templates taking an argument pack of characters [-Wpedantic]
3475 | FMT_CONSTEXPR internal::udl_formatter<Char, CHARS...> operator""_format() {
|                                                       ^~~~~~~~
[  0%] Building CXX object GenomeWorks/common/base/CMakeFiles/gwbase.dir/src/logging.cpp.o
In file included from /mnt/d/racon/vendor/GenomeWorks/3rdparty/spdlog/include/spdlog/fmt/fmt.h:21,
from /mnt/d/racon/vendor/GenomeWorks/3rdparty/spdlog/include/spdlog/common.h:28,
from /mnt/d/racon/vendor/GenomeWorks/3rdparty/spdlog/include/spdlog/spdlog.h:12,
from /mnt/d/racon/vendor/GenomeWorks/common/base/include/claraparabricks/genomeworks/logging/logging.hpp:99,
from /mnt/d/racon/vendor/GenomeWorks/common/base/src/logging.cpp:17:
/mnt/d/racon/vendor/GenomeWorks/3rdparty/spdlog/include/spdlog/fmt/bundled/format.h:3475:55: warning: ISO C++ did not adopt string literal operator templates taking an argument pack of characters [-Wpedantic]
3475 | FMT_CONSTEXPR internal::udl_formatter<Char, CHARS...> operator""_format() {
|                                                       ^~~~~~~~
[  0%] Building CXX object GenomeWorks/common/base/CMakeFiles/gwbase.dir/src/graph.cpp.o
[  0%] Linking CXX static library ../../../lib/libgwbase.a
[  0%] Built target gwbase
[  0%] Building NVCC (Device) object GenomeWorks/cudaaligner/CMakeFiles/cudaaligner.dir/src/cudaaligner_generated_hirschberg_myers_gpu.cu.o
[  0%] Building NVCC (Device) object GenomeWorks/cudaaligner/CMakeFiles/cudaaligner.dir/src/cudaaligner_generated_ukkonen_gpu.cu.o
[  0%] Building NVCC (Device) object GenomeWorks/cudaaligner/CMakeFiles/cudaaligner.dir/src/cudaaligner_generated_myers_gpu.cu.o
Scanning dependencies of target cudaaligner
[ 11%] Building CXX object GenomeWorks/cudaaligner/CMakeFiles/cudaaligner.dir/src/cudaaligner.cpp.o
In file included from /mnt/d/racon/vendor/GenomeWorks/3rdparty/spdlog/include/spdlog/fmt/fmt.h:21,
from /mnt/d/racon/vendor/GenomeWorks/3rdparty/spdlog/include/spdlog/common.h:28,
from /mnt/d/racon/vendor/GenomeWorks/3rdparty/spdlog/include/spdlog/spdlog.h:12,
from /mnt/d/racon/vendor/GenomeWorks/common/base/include/claraparabricks/genomeworks/logging/logging.hpp:99,
from /mnt/d/racon/vendor/GenomeWorks/cudaaligner/src/cudaaligner.cpp:18:
/mnt/d/racon/vendor/GenomeWorks/3rdparty/spdlog/include/spdlog/fmt/bundled/format.h:3475:55: error: ISO C++ did not adopt string literal operator templates taking an argument pack of characters [-Werror=pedantic]
3475 | FMT_CONSTEXPR internal::udl_formatter<Char, CHARS...> operator""_format() {
|                                                       ^~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [GenomeWorks/cudaaligner/CMakeFiles/cudaaligner.dir/build.make:84: GenomeWorks/cudaaligner/CMakeFiles/cudaaligner.dir/src/cudaaligner.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4898: GenomeWorks/cudaaligner/CMakeFiles/cudaaligner.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
I think it is similar to this one, but am unable to locate the Bug for racon. (https://github.com/lbcb-sci/raven/issues/35)

Run nano +3475 /mnt/d/racon/vendor/GenomeWorks/3rdparty/spdlog/include/spdlog/fmt/bundled/format.h and delete quotes from operator""_format(). Recompile and it should work according to the referenced issue.

Thank you that solved it !


Add description of using "first" for after clause for column in docs section

Additional docs for #1910
Should add some words to using the new value in Adding a Column After Another Column section of the docs when working with column.

@MasterOdin I was thinking of it


Proposition : default block definition & class def in block

Hello,
Thanks again to this amazing plugin.
I have two propositions :

Define the default of a block somewhere, (probably in front-mater ?).
If a template block is not set in a slide, but defined in template, the default text is displayed (instead of the <% block_name %>)
This would allow to automatically fill default information such as author, date, meeting name, add logos, etc  without editing the core templates which are focused to layouts the content.
Maybe something like this in presentation md front-matter:

---
defaults:
     footer: My Name  -  2022-08-24
     topleft: "![[my_logo.png|100]]"
     title: "!!... Title Here ...!!"
---

The block footer, topleft, title  would be defined in templates.

Add additional classes  directly after the block name. Not sure about the grammar, but for instance :

::: block | fragment tiny with-border
Content
:::

or
::: block[fragment tiny with-border]
Content
:::

Would be equivalent to
::: block
Content
:::<!-- .element class="fragment tiny with-border" -->

The idea of the current solution was to support the user on setting missed placeholders. Im not a fan for configuration in templates. It makes using templates more complicated and more it doesnt support the user of the template on configuration.
I would suggest to use composition to solve your problem (i do it for my templates too). My templates are hierachical. I have a tpl-50-50 template that creates a 50% 50% view with a title and two placeholders left and right and a footer. Most of the time i use a default footer. therefore i've created another template tpl-50-50-default that implements the footer placeholder.
Therefore i always use the default variant of my template and if i need a special footer, i delete the -default suffix and advanced slides will tell me that there are placeholders that have to be filled ;-)

hum. ... Not sure we understand each other.
I am more looking for a solution to not repeat the same thing on each slide, (the date, the name of the event, some logo, ..) without having to re-write all my templates (which are more focus on setting the layout).
Therefore the configuration would not be on the templates  but on the markdown slide front matter.
cheers.

I understood your approach and as i wrote it's possible to solve your problem by composition and i would recommended it.
Configurable templates make the process of working with template more error prone and don't have the time to support people that are overwhelmed by the feature set.

hi again,
This is more an impressed user feedback and proposition than asking for support.
I really do not think your proposal could work for my need.  I do not need global default (like e.g. copyright)  but data repeated across slide in the context of one presentation.  If i use templated "tpl-*-default" it would mean I need to edit all the used  "-default" emplate  to change the date for instance.
The workaround I found is to write on top of the md file :
<style>
.lfoot:after {
  content: "Star Formation worckshop - San Francisco 12 Nov 2022 ";
}
.rfoot:after {
  content: "My Name";
}
</style>

Where lfoot and rfoot classes are defined in templates for the <%? lfoot %>  and <%? rfoot %>  blocks.  It works at least on Safary Chrome and Obsidian (electron).   The drawback is that you cannot replace the content on a specific slide, but this can be done by calling an other template as you mentioned (a template that does not define the lfootandrfoot` classes).
Basically one of my template looks like this:
grid drag="100 10" drop="0 2"   align="topleft" class="title-grid">
 <% title %><!-- .element class="title"-->
</grid>
	<% content %><!-- element class="content" -->

<grid drag="50 5" drop="0 -5" align="bottomleft" class="lfoot-grid">
<%? lfoot %><!-- element class="lfoot" -->
</grid>
<grid drag="50 5" drop="50 -5" align="bottomright" class="rfoot-grid">
<%? rfoot %><!-- element class="rfoot" -->
</grid>

As for the original proposal 2.,   I though it could facilitate the writing and reading.
Cheers.
S

Could this be part of the properties instead of templates?


workflow enhance:

move needed category to the top
move auto slug field into collapsed info tab

see: https://github.com/nephila/djangocms-blog/issues/85#issuecomment-75377841

Coverage remained the same at 96.28% when pulling 70b227ab6c62950afb1e4a2b430bf993ee51f2b1 on jedie:move_category into f351fc3707fddcdb0a97c1d5c10701cbc7ce485b on nephila:develop.

Coverage remained the same at 96.28% when pulling 70b227ab6c62950afb1e4a2b430bf993ee51f2b1 on jedie:move_category into f351fc3707fddcdb0a97c1d5c10701cbc7ce485b on nephila:develop.

Coverage remained the same at 96.28% when pulling 70b227ab6c62950afb1e4a2b430bf993ee51f2b1 on jedie:move_category into f351fc3707fddcdb0a97c1d5c10701cbc7ce485b on nephila:develop.

It sounds sensible, thanks!

:+1:


CLI throws exception when filename option isn't specified

Describe the bug
As the title states I ran into the exception below when I tried to use the CLI.
What version of MintAPI are you using?
1.61
What command[s] did you run / steps to reproduce?
python mintapi/api.py <my email>
Stacktrace/error received:
mintapi % python api.py <my email>
/Users/akaiser/Documents/workspace/mintapi/mintapi/api.py:870: DeprecationWarning: Calling command line code from api.py will be deprecated in a future release.
Please call mintapi directly. For examples, see the README.md
  warnings.warn(
Traceback (most recent call last):
  File "/Users/akaiser/Documents/workspace/mintapi/mintapi/api.py", line 877, in <module>
    main()
  File "/Users/akaiser/Documents/workspace/mintapi/mintapi/cli.py", line 388, in main
    validate_file_extensions(options)
  File "/Users/akaiser/Documents/workspace/mintapi/mintapi/cli.py", line 348, in validate_file_extensions
    if not any([options.filename is None, options.filename.endswith(".json")]):
AttributeError: 'NoneType' object has no attribute 'endswith'

What did you expect to happen?
No exceptions and a JSON  of the output
What actually happened?
I got the above exception
Additional context
It seems the problem is because inside both the any blocks in validate_file_extensions a list is being passed in and I guess python needs to evaluate everything in that list before the any block is run so if options.filename is None then when it tries to evaluate the other things in the list an exception is thrown.  I plan to submit a pull request shortly.

this seems to still be happening to me.
ubuntu 20.04
mintapi 1.61 (from pip)
Python 3.8.10
running mintapi -h works.
mintapi with nothing gives this:
Traceback (most recent call last):
  File "/usr/local/bin/mintapi", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/mintapi/cli.py", line 388, in main
    validate_file_extensions(options)
  File "/usr/local/lib/python3.8/dist-packages/mintapi/cli.py", line 348, in validate_file_extensions
    if not any([options.filename is None, options.filename.endswith(".json")]):

when using mintapi -f something.json it does "run" but I can't actually see it doing anything so far.
however, the expected behavior would be NOT having it throw the error, and also I cannot run any of the documented examples if it doesn't include a -f with some sort of .json as the filename.

@mike503 This was fixed after 1.61, so that's why you are still getting the error on 1.61.  @mrooney would have to answer when a new version (which includes this fix) would get pushed up to PyPI.
As for why it seems to hang when you do specify -f something.json I don't know.


Slow load time for test suite

Using the test harness code causes the test suite to take 4 seconds on my machine before it starts running. Is this because of all the cdk testing code that is required?
With test harness
https://user-images.githubusercontent.com/13536934/103714352-971fa900-5012-11eb-89e6-d31cdce80be6.mp4
With default cypress
https://user-images.githubusercontent.com/13536934/103714928-55dbc900-5013-11eb-9acc-766d71f03bfb.mp4
To reproduce the issue:

Clone https://github.com/srlee309/component-commands-example
Run: ng run storybook-example-form:storybook-e2e

Hi @srlee309, sorry for responding so late.
Actually, the first start is slow because Cypress has to bundle the CDK testing code. We will probably improve this in the future using our preprocessor here https://github.com/jscutlery/test-utils/tree/main/packages/cypress-angular-preprocessor.
Interestingly, the harness test is faster after the build 😊
Fixing this will also help https://github.com/angular/components/issues/22015 as the bundle will be smaller.


Declaration file not found

Error
Could not find a declaration file for module 'resium'. '/cesium-demo/node_modules/resium/dist/resium.mjs' implicitly has an 'any' type. There are types at '/cesium-demo/node_modules/resium/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'resium' library may need to update its package.json or typings. [7016]
Reproduce
Installed using guide: https://resium.reearth.io/installation#5-vite
Code
import { Viewer } from 'resium' # ERROR MESSAGE

export function Map() {
  return (
    <>
      <Viewer />
    </>
  )
}

Versions
{
  "dependencies": {
    "cesium": "^1.107.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "resium": "^1.16.1"
  },
  "devDependencies": {
    "@types/react": "^18.0.37",
    "@types/react-dom": "^18.0.11",
    "@typescript-eslint/eslint-plugin": "^5.59.0",
    "@typescript-eslint/parser": "^5.59.0",
    "@vitejs/plugin-react-swc": "^3.0.0",
    "autoprefixer": "^10.4.14",
    "eslint": "^8.38.0",
    "eslint-plugin-react-hooks": "^4.6.0",
    "eslint-plugin-react-refresh": "^0.3.4",
    "postcss": "^8.4.24",
    "tailwindcss": "^3.3.2",
    "typescript": "^5.0.2",
    "vite": "^4.3.9",
    "vite-plugin-cesium": "^1.2.22"
  }

}

Hey, maybe this is quite similar to #603. Can you help me figuring out how to export the types of the components' properties? I don't even know where to start.

Try new version v1.17.0!


Add license info for InfluxDB OSS 2.0

Start on https://github.com/influxdata/docs-v2/issues/1917.
Need to work with @dgnorton team to determine of latest dependencies.
cc @psteinbachs @timhallinflux

working on the dependencies list with the help of FOSSA.

Pushing OSS contributing license info out.
Work continuing on third party dependencies in new PR.


FreeBayes Parallel on 3000 samples

Hello All,
I was trying to run FreeBayes parallel over 3000 samples. while I am giving 3000 samples but VCF files is only showing 500 Samples.  What could be possible reason for this ? What will be the best practices for such cases?
Thanks
Najeeb

It is almost certainly a mismatch between the read groups and sample names. I would guess you only have 500 unique sample names in your input BAM headers. Or, maybe there are only 500 unique read groups. Unfortunately this is out of scope for what freebayes can understand so it simply does what is written in the header.
You can fix this with bamaddrg or other tools (Picard has a function for this, but I can't remember the name).

When I was trying to run Freebayes-parallel on 3000 samples and  am getting below error.

parallel: Error: Command line too long (271412 >= 131071) at number 0: 1:0-100000...
terminate called after throwing an instance of 'std::out_of_range'
what():  basic_string::substr
terminate called after throwing an instance of 'std::out_of_range'
what():  basic_string::substr
/gpfs/software/genomics/freebayes/scripts/freebayes-parallel: line 40: 22790 Exit 255                ( cat "$regionsfile" | parallel -k -j "$ncpus" "${command[@]}" --region {} )
22791 Done                    | vcffirstheader
22793 Aborted                 (core dumped) | vcfstreamsort -w 1000
22795 Aborted                 (core dumped) | vcfuniq

How to proceed on this ?
Thanks
Najeeb


Hamzahsn/feat/add modal input url

This PR...
Changes

This PR is about implementing the modal logic/design for API endpoint form where it enables the user to fetch tests while providing API endpoint in modal.

Fixes

How to test it

screenshots

Checklist

[x ] tested locally
[ ] added new dependencies
[ ] updated the docs
[ ] added a test

@olensmar please provide content for popup!


rfc4122 compliance

I'm currently generating UUIDv4 GUIDs for my application using a web service but would like to save a few ms using this native function. Are these GUIDs compliant with any rfc in particular, or can we get some info on how they're generated? Are they time-based, random, or fairy dust? I heard v6 will be fairy-based.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 970cfd20-b58d-bebe-7853-de14daf2b7a0
Version Independent ID: 7a49311e-a68f-835d-93ec-4d000cf818eb
Content: GUID function - PowerApps
Content Source: powerapps-docs/maker/canvas-apps/functions/function-guid.md
Service: powerapps
GitHub Login: @gregli-msft
Microsoft Alias: gregli

No fairy dust involved.  They are pseudo-random generated RFC 4122 version 4 GUIDs.  We've updated the docs to reflect this.

Thanks, @mauledbyjesus!


Add padding/margin to tmux window

Hello! Is it possible somehow to add blank line above status bar ? or paddings to window ? It is a bit uncomfortable right now because status bar it to close to input line.

Hello @andrejshulaev 👋
I doubt this is caused by tmux itself, and if it really is then I'm not aware of any option controlling that.
You can make sure this behavior is not cause by my configuration by running:
$ tmux -L test -f /dev/null

Well, best decision that i found for now is to move status bar on top.
also i found this. But i can't adjust it to work well with your conf. Is it even suit for it ?

Thanks for your quick response, @gpakosz !
Best solution for now that i found is to move status bar on top. Also i found this config, there is some kind of margins between panes. Is it suit to your config ?

You can't control the border width with tmux, but you can fake large borders by using the same foreground and background colors


What happened to unknown words?

Hello, I noticed there's  in the dictionary and we only keep the most frequent words in the dictionary. But I don't really understand what happened to the new words (they are all 'unk' in the dictionary, is that right? )that's only in the test data but not in the training data set? Please tell me what I'm missing. Appreciate it.

words not in the vocab will be mapped to a special token "".


chore: paint it black and sand ruff edges

What?

Run black against this repository
Fix ruff . errors
Configure tox and pre-commit to use black in place of yapf and ruff in place of flake8

Why?

Our internal company standard has recently been switched to black

I guess the flake8 step should be removed in python/library?

I guess the flake8 step should be removed/deactivated in python/library?

Oops! I forgot we don't have support for that yet. I'll get that added.

Here is a PR that should enable that behavior for our internal pipeline: https://github.com/recursionpharma/build-pipelines/pull/1142

Green again 😌


DB error checking

Verify that our MySQL connection is legit and working.

This should now be handled on the frontend side (twitter_oauth.php). Still needs to be handed on the ruby server.


Clarify that "Defender for Endpoint Lite" is the same as "Plan 1"

Under Review the requirements the Licensing requirements row lists "Defender for Endpoint Plan 1".
However in the Azure AD Portal > Licenses > Microsoft 365 A3 > Service plan details, the product SKU appears as "Microsoft Defender for Endpoint Lite".
It would be really helpful if the docs made it clear that you should look for "Lite" and not "Plan 1", to confirm you're correctly licensed.
As a suggetion, within the Review the requirements table, after "Defender for Endpoint Plan 1" add "Users should be assigned the Microsoft Defender for Endpoint Lite service plan."
Many thanks!

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 65f58c48-23a1-29e6-4358-7733b12668c8
Version Independent ID: 27f7f229-ae73-3cd0-287f-8592aaa3928b
Content: Set up and configure Microsoft Defender for Endpoint Plan 1
Content Source: microsoft-365/security/defender-endpoint/mde-p1-setup-configuration.md
Product: m365-security
Technology: mdep1
GitHub Login: @denisebmsft
Microsoft Alias: deniseb

@robwesterby Thank you for your feedback. We have made changes to the document via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/7374
Thanks
Sri

@msbemba Thank you very much for the contribution and updating the documentation with PR. @robwesterby Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


add managed services localization

Aggiunto il link al DBaaS

Preview: https://deploy-preview-693--cncfglossary.netlify.app/it/managed_services/


Add Recuring visits

Dropdown with Repeat every: Month, Week, Day, Year

Implemented

In patients grid there is a bug with Visits counter and Last visit end date (not valid for repeated visits


Cursor disappears when I clear screen

When I clear screen on VScode terminal the whole screen goes blank and unresponsive.

how are you clearing ? by typing clear?

Yeah
On Wed, Nov 30, 2022 at 5:51 PM Megan Rogge @.***>
wrote:

how are you clearing ? by typing clear?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/167707#issuecomment-1332458819,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AL4AJI6U6FTRDK22CQZ4IFDWK6A2RANCNFSM6AAAAAASPN46SM
.
You are receiving this because you authored the thread.Message ID:
@.***>

any errors in the dev tools console?


Remove grid stretch parameters from simulation inputs

Description
This PR removes the grid stretch parameters xyz_{ab} from the simulation input parameters in case_dicts.py.
Type of change

[x] Bug fix (non-breaking change which fixes an issue)

Scope

[x] This PR comprises a set of related changes with a common goal

How Has This Been Tested?
It builds successfully on my local MacOS. Simulations with stretched grid are not crashing.

What computers and compilers did you use to test this: MacOS 12.2.1

are you sure simulation doesn't need grid stretching parameters? it's easy to check... I recommend just changing to notation so we don't repeat letters

are you sure simulation doesn't need grid stretching parameters? it's easy to check... I recommend just changing to (IBM) notation so we don't repeat letters

Hi Spencer, I just made a couple tests for IB touching DBs on stretched girds. All the configurations are the same as the test listed in PR#407 except for the stretching configuration:
    'stretch_x'                : 'T',
    'a_x'                          : 7,
    'x_a'                          : 0.5*x1,
    'x_b'                          : 1.5*x1,
    'stretch_y'                : 'T',
    'a_y'                          : 3,
    'y_a'                          : 0.9*x2,
    'y_b'                          : 1.1*x2,

https://github.com/MFlowCode/MFC/assets/98496194/40cbfc1a-b0ca-4f24-8299-c6fc2501a939
It looks fine to me. The current simulation stage is not using any stretching parameters and the domain sizes are the only additional parameters it needs for IBM.

@haochey, thank you - this seems fine to me, though I'm a little confused about the whole situation. @lee-hyeoksu said you added {xyz}_{ab} to the case parameter input file for the domain boundary treatment. What are those parameters used for?
If they are used for something related to IBs, you presumably cannot use both those and domain stretching simultaneously (you would have to pick one or the other). Right?

@sbryngelson Thanks for the message.  xyz_{ab} are not used for IBs. I believe they are just used in the pre_process stage.
When I try to add xyz_{domain%beg} and xyz_{domain%end}, I mistakenly added xyz_{ab} to the simulation inputs in case_dicts.py as @lee-hyeoksu mentioned.
Therefore, simply deleting them from the case_dicts.py will fix @lee-hyeoksu's issue and won't affect the domain boundary treatment.

got it. thanks @haochey. can you sync your fork/branch with master so it runs benchmarking properly and then i can merge

It looks like my fork/branch has already synchronized with master. I am not sure why the benchmarking is not running properly.

I see - I am re-running them.


Riser Bias Development

[x] Actuator performance validation

[x] Resolve issue with PWMServo or power source (jittering)
[ ] UAV drop test

[ ] Locomotion validation

[x] Write flight code
[ ] Debug flight code

[ ] Landing point non-orbit termination

Flew the riser bias system on the 10/20 flight test. The system encountered some error a few minutes into the flight while sitting on the pad and did not restart. When plugged into the computer the system didnt print any errors but still failed to write data. Given the system stopped recording data it is assumed that the actuators stopped actuating before launch as well. However, as the parachute ended up tangled during launch it is unlikely that any actuated drift actually occurred.


TINYINT(1) is not a bool

sqlc is treating TINYINT(1) as a go bool, which is incorrect. What happens when the integer value in the column is required?
In mysql, a BOOLEAN is a synonym of TINYINT(1), it is still an integer type, able to store between -127 and 127, for a signed type.
This might have changed here?
https://github.com/kyleconroy/sqlc/pull/842
Does this require a code fix, or is there some configuration to treat this column as an integer?

I found a workaround, I suppose this can work, although I do think the reverse should be true, ie it defaults to int8 and we can override to a bool if required.
     overrides:         - column: example.column           go_type: "int8"

It would be troublesome if tinyint(4) were to be treated as a bool, whereas it's not true for tinyint(1). MySQL does not have built-in bool, so many people actually use tinyint(1) as a synonym. Also, you cannot save disk spaces by choosing tinyint(1); they consume the same amount of storage.
If you really want to limit the value to one digit, it would be more practical to add a CHECK constraint:
CHECK(value between 0 and 9)

It may be correct as a strict behavior to consider tinyint(1) as an integer, but I don't see much value in it.

I believe the boolean / tinyint(1) support for MySQL is correct as-is. Big thank you to @mpyw for the explanation on why that's the case.


Contributing de-DE, de-AT and de-CH incl. readme in each folder

Sorry for later, I have an internet issue .. I will have a look soon


Feature: Add weight fields

As part of v1.3b, users can now track the weight of clients.
The weight values are associated with a date, and previous weight values can also be tracked for each client.
Resolves #158.

wow

Found some bugs:

Incorrect response message when trying to remove a weight from a client with no more weights saved.

https://github.com/AY2324S2-CS2103T-T17-3/tp/assets/40649376/67903d2a-902c-4a57-a484-c69426377e19

When trying to view the details of a person with no weight stored, the updating of the detail pane stops at the weight, causing any information after that (height, note, qrcode) to not be updated.

Found some bugs:

1. Incorrect response message when trying to remove a weight from a client with no more weights saved.

bug.mp4
2. When trying to view the details of a person with no weight stored, the updating of the detail pane stops at the weight, causing any information after that (height, note, qrcode) to not be updated.

Thank you for pointing these out! I've fixed it accordingly.

1 bug i found

it allows me to input negative weights @ruijietay

some bugs i found

index is specifed but error message says no index

the date is showing T17 or something for me

some bugs i found
 index is specifed but error message says no index
 the date is showing T20 or something for me

Thanks for pointing that out! I think the T20... portion refers to the time. Better formatting of the date and time could be used, maybe it would be better to create an issue for that?
As for the error messages, I've fixed that. Thank you!


UdpAcceptorIT test failure on Jenkins build

Logs
Results :

Tests in error:
org.kaazing.gateway.transport.udp.specification.UdpAcceptorIT.serverClose[0](org.kaazing.gateway.transport.udp.specification.UdpAcceptorIT)
  Run 1: UdpAcceptorIT.serverClose:196 ? TestTimedOut test timed out after 10 seconds
  Run 2: UdpAcceptorIT.serverClose[0] ?  Appears to be stuck in thread New I/O worker #...

Haven't seen this in a while. May be fixed by https://github.com/kaazing/gateway/pull/839
I am closing this one. Reopen if it happens again.


Safari positioning bug in the first slide

Dear Nic,
firstly thanks for such a great slider. It has always worked perfectly for me until now.
It's in Safari (OSX and iOS) and the image inside the first slide is positioned just over 50% left and top so the top-left corner of the image is at the centre of the slide. The rest of the slides are positioned fine. I am using the 'fade' effect.

Hello,
I have exactly the same problem how did you manage to adjust please?


[Fix bug 1254083] Change profile settings nav menu to use bootstrap's

@johngian r?

Coverage remained the same at 92.446% when pulling bbbbc4c22d44aad991a8c5123bac852e5b2d537f on comzeradd:1254083 into b467d83d0dc7dab18c612eaca8f3e30edf308595 on mozilla:master.

r+ wc

@johngian PR updated. Could you have another look?

Coverage remained the same at 92.534% when pulling ff383bb14b45beab1bf45236ea18de94b9ddd564 on comzeradd:1254083 into ce955fb6c7cae6695934d25888d1e4a5e10de042 on mozilla:master.

On mobile view (360x640) #get_involved.content is misaligned to the left.

r+wc from me. I suggest @akatsoulas takes another look to doublecheck that high dpi works well.

Rebased to master

Coverage remained the same at 92.576% when pulling c5c60da74bf8c0f036dd46a3928f50e713cec645 on comzeradd:1254083 into 564ad3cad7dd6ba62ed46aa2fca0520c5d33edee on mozilla:master.

Coverage remained the same at 93.124% when pulling 15bbf7dc146791fbd14521e170107c01789fdcd0 on comzeradd:1254083 into 0228b25ea7b462b9cdbfc376739c433ab2c67945 on mozilla:master.


Write a tool to reformat history comments into a single (more compact) form

Instead of:
dd-MMM-yyyy (author)
    start of comments here
    remainder of comment here

we could do:
dd-MMM-yyyy author Start of comments here, extending to 90 or 100 characters,
    then wrapped to here.

Potentially saving many, many lines of empty space.
This could be done with a fairly simple program.
Also, the leading whitespace conventions are slightly, but annoyingly different; this is an opportunity to fix that. The linelength where comments wrap is also wildly inconsistent. The (author) format wastes two characters for no good reason.
Some provision should be made to support auto newline if a new issue number comes after the end of a sentence (this convention is used to indicate multiple revisions on the same date, but for different issues).
Author could be shortened to just initials for further brevity (also considering all/99.999% of author tags are just me).

Here's what a cleaned up History could look like (from Constants.java):
 *	01-Feb-22 rlw #231: Created from constants already defined in other places.
 *	02-Feb-22 rlw #231: More values.
 *	08-Feb-22 rlw #235: D_FOUR added.
 *	16-Feb-22 rlw       Buffer sizes added.
 *	17-Feb-22 rlw       Double and float limits.
 *	14-Apr-22 rlw #273: Move math-related classes to "math" package.
 *	29-May-22 rlw #301: Add values used for "convertToWords" (BigInteger).
 *	29-Jun-22 rlw #380: Increase string file size for FileUtilities.
 *	09-Jul-22 rlw #393: Cleanup imports.
 *	24-Aug-22 rlw #447: Add "D_200" value.

Is "Calc" up to this task? It would certainly be easier to write than a whole Java program... Not sure how to accomplish the whole "read a file, create a new one, delete the old, and rename the new to old name" cycle in Calc though (needs both "delete" and "rename" functions).  Could just use a shell/bat wrapper around the Calc process of reading old / writing new.

Notice the current state of "Constants" and the use of "---" to indicate "no issue number associated with this change".
One question: should we just assume max 3 digit issue number (bad idea since we're already close to 500), but how to we advance past 1000, and what is the convention for "---" in that case? I guess:
#1002: blah
 ----  blech

In other words, "number of dashes = number of digits of issue number above it".

Note: the first reformatting of History inside Constants.java was commit 6b48dbe.

I believe the algorithm is (roughly) as follows:

State 0: Scan for line containing "History:" within it.
Replace that line with " * History:" instead.
Go to state 1.
State 1: Recognize a line with date, author pattern.
Reformat (take out "20" in year, remove parens, shorten author to 3 chars, save.
Go to state 2.
State 2: Start collecting lines until we recognize another date, author pattern.
If this is the first line format any bug number, or non-bug number with dashes, concat with date, author line.
Recognize lines beginning sentences, or further bug numbers as new lines, and flush and word-wrap the saved text onto the previous line.
Once we get to a new date/author or the end of the comment block, then flush the remainder and reset state to 1.


Feature/bugfix 1868

Closing out branch (was supposed to already be merged)

Pull Request Test Coverage Report for Build 4460

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.004%) to 52.78%

Totals

Change from base Build 4449:
0.004%

Covered Lines:
13434

Relevant Lines:
25453

💛  - Coveralls


[QUESTION] How to run this without a browser installed?

Can there be step by step instructions put somewhere to show how to use this library from an entirely server side perspective?  I setup the server Core on a docker container and the client on a docker container, networked them and I get WriteStream errors on the core server.  My intention is to run this from a Digital Ocean cloud server running completely automated without any human intervention.  There is no need for even dom selectors as I am trying to get json data from an API that is 403'ing when I use conventional server-side request libraries.
Any help is greatly apreciated

Sorry for the delay writing back. SecretAgent depends on installing Chrome, even just to run JSON resources. We have long-term plans to bypass full-chrome for these types of requests, but it is not currently possible.
That said, your setup should work fine. Is the port open between machines? Or is the Core docker container failing because it's trying to connect to Chrome?

Closing for now since we're pretty far from being able to offer this functionality.


N51: Way of Rhea Release

Let me know if it needs any changes. :)
Part of #1505

@MasonRemaley do you happen to have a GIF of your game you could include? If not, I can merge it as-is :)

@MasonRemaley do you happen to have a GIF of your game you could include? If not, I can merge it as-is :)

Added!

Thanks!! :D


Filtering issue with Get-SPOSite

Getting a syntax error in the filter expression when comparing a string that has  '-le' or '-eq' or '-gt '. My script to find out if a certain user had a mysite failed only for certain user. On investigating and after multiple combinations of names, I see that if the user's email id contained  a hyphen followed by 'le' or 'gt', command was throwing syntax error.
At line:1 char:1

Get-SPOSite -IncludePersonalSite $true -Filter {Owner -eq 'matt-lee@a ...

  + CategoryInfo          : NotSpecified: (:) [Get-SPOSite], ServerException
  + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.GetSi
 te

17:45 M:> Get-SPOSite -IncludePersonalSite $true -Filter {Owner -eq<EMAIL_ADDRESS>-Template spspers#10
Get-SPOSite : Syntax error in the filter expression 'Owner -eq<EMAIL_ADDRESS>At line:1 char:1

Get-SPOSite -IncludePersonalSite $true -Filter {Owner -eq 'matt-gee@a ...

  + CategoryInfo          : NotSpecified: (:) [Get-SPOSite], ServerException
  + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.GetSi
 te

18:08 M:> Get-SPOSite -IncludePersonalSite $true -Filter {Owner -eq<EMAIL_ADDRESS>-Template spspers#10
Get-SPOSite : Syntax error in the filter expression 'Owner -eq<EMAIL_ADDRESS>At line:1 char:1

Get-SPOSite -IncludePersonalSite $true -Filter {Owner -eq 'matt-gte@a ...

  + CategoryInfo          : NotSpecified: (:) [Get-SPOSite], ServerException
  + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.GetSi
 te

18:08 M:> Get-SPOSite -IncludePersonalSite $true -Filter {Owner -eq<EMAIL_ADDRESS>-Template spspers#10
Get-SPOSite : Syntax error in the filter expression 'Owner -eq<EMAIL_ADDRESS>At line:1 char:1

Get-SPOSite -IncludePersonalSite $true -Filter {Owner -eq 'matt-eqe@a ...

  + CategoryInfo          : NotSpecified: (:) [Get-SPOSite], ServerException
  + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.GetSi
 te

Hello @MessagingAdmin
Thanks for your feedback.
I was able to reproduce this, will try to pass this along as here we are limited to documentation issues and improvements.
Thank you

Hello @trent-green can you kindly tell me if the team is aware of this? Thanks

@trent-green Can you kindly confirm so we can close this issue? Thank you

Using the latest module version, I was able to successfully run this.
PS C:\WINDOWS\system32> Get-SPOSite -IncludePersonalSite $true -Filter {Owner -eq<EMAIL_ADDRESS>-Template spspers#10

Url                                                                        Owner                        Storage Quota
---                                                                        -----                        -------------
https://tenantName-my.sharepoint.com/personal/trevor_seward_tenantName_com<EMAIL_ADDRESS>     1048576

Hello @tseward
Did you try with an onwer username that contains "eq", "le" or "gt" ?

Hello @tseward
Did you try with an onwer username that contains "eq", "le" or "gt" ?

@get-itips thanks, broken reading comprehension.
I opened a case with Microsoft on this and passed the issue to a PG contact, as well. This appears to be a service side issue as the XML passed by the cmdlet to the service is valid. It looks like the parser on the backend (i.e. SharePoint code) is not able to interpret the query properly.

@get-itips thanks, broken reading comprehension.
I opened a case with Microsoft on this and passed the issue to a PG contact, as well. This appears to be a service side issue as the XML passed by the cmdlet to the service is valid. It looks like the parser on the backend (i.e. SharePoint code) is not able to interpret the query properly.

@MessagingAdmin Thank you for reporting this feedback here. This list is focused on content issues and we want to make sure your immediate product issue does not get lost in this list. As Trevor has opened a service ticket the support engineers will be able to identify if there is a bug (highly likely) and escalate to the appropriate product team. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

@MessagingAdmin Thank you for reporting this feedback here. This list is focused on content issues and we want to make sure your immediate product issue does not get lost in this list. As Trevor has opened a service ticket the support engineers will be able to identify if there is a bug (highly likely) and escalate to the appropriate product team. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

@tseward Trevor, that is just great. Thanks for reporting to the internal team.

@tseward Trevor, that is just great. Thanks for reporting to the internal team.


Clean out unused code

There's some code we don't need anymore that can be removed.
For example:

Anything referring to the cache (meaning the cache we used to store the local GFF3 before we had to DB)
fileHandling module (probably?)

Cache and file handling removed from code base


The --version flag is broken

Hello!
When installing from pypi, the newest version of m outputs 0.0.0-PLACEHOLDER when run with --version flag.
$ m --version
0.0.0-PLACEHOLDER

This may be happening because the script may be loading your local python m package. Everything that is published to pypi removes that string via sed substitution:
https://github.com/jmlopez-rod/m/blob/master/m/scripts/build/pypi.sh#L24


Additional Plugins like parent-fit

Hey, I see you support plugins, but it seems like only these three: blurUp, nativeLoading, unveilhooks.
How do I enable the parent-fit plugin? Or any other?

Hi, thanks for your interest in this module. You can follow this comment (a few easy steps) and add support for any additional plugin you want.
I will add support for other plugins as well. In the meantime, feel free to take a look and maybe create PR as new feature (add support for other plugins).

Hey @theDevelopper @PavelZhuravlev, I just added support for parent-fit and rias extra plugins.
Available in the latest version: 1.3.0
Closing this as resolved.

@ivodolenc Thank you!

@ivodolenc Thank you again, i have successfully added rias plugin into my project!
Is there any chance i can buy you a coffee?

i have successfully added rias plugin into my project!

@PavelZhuravlev that's awesome! 🎉
Actually, would you be interested in sharing an example with the rias plugin? Maybe something simple like this? It can be a PR or link to repo/codesandbox.
I would be more than happy to merge/share it here (in the examples folder) so we can improve examples and maybe help someone to get started easier.

Is there any chance i can buy you a coffee?

Nice gesture, I appreciate it 😉  You can try it here or here.
And thanks for your interest and support, it means a lot. 👍

@ivodolenc, Actually I'm developing personal Blog Starter using Nuxt.js and Strapi upon the Strapi official fork.
I'm using nuxt-lazysizes as a part of my logic to maintain Cloudinary images in the project.
Having said that, I assume that my example is very specific and I am not sure that it might fit well for your examples/showcases, but thank you anyway!

You can try it here or here

Thanks, done!  😉

@PavelZhuravlev ah I see. Ok, thanks for coffees 😉 ☕ Have a nice day! Cheers 👋


Terminal challenge caret position

In the current terminal challenges, the caret position does not follow the user's focus even though the functionality of moving the arrow keys behaves normally visually it does not comply.
Steps to reproduce the behavior:

Go to https://savingsatoshi.com/chapters/chapter-1/genesis-2
Type in something in the challenge terminal
Move arrow keys, while you are able to now delete text from the position you moved to with the arrow keys, the caret does not move from the end to track the user's focus making it impossible to tell where your next typed character will be.

Expected behavior
When the user presses the left or right arrow key, the caret position should follow their focus.
OS/Browsers
This Problem exists on chromium and firefox browsers
Additional context
The caret is currently designed with css and doesn't use any real logic to determine where the user will type the next character
div.react-terminal-wrapper:focus-within .react-terminal-active-input:after {
  content: '▋';
  color: white;
  font-family: monospace;
  font-family: var(--space-mono-font);
  -webkit-animation: blink 1s infinite;
  animation: blink 1s infinite;
}

Due to the lack of browser support for caret-shape in all browsers, I theorize the only possible fix at the moment is to completely redesign the functionality of the caret in the terminal challenge.

I feel implementing a custom caret is potentially a lot of work (especially to make it work reliably across browsers/devices) for a relatively small gain. Do we not want to just use a regular caret here? @GBKS

If we remove the custom caret and use the default, we can probably move this to the demo milestone.
If we want to use the custom caret, we should probably discuss how much work it is and compare it against other features/issues.

Regular caret is fine. Maybe some someone wants to do put in the effort to make this custom one work in the future, but let's put this in the "nice to have" bucket for our future selves.

Okay confirming that the solution for this specific issue is to use the regular caret. We can create a separate feature request for the custom caret.

Closed by #201. Will create a separate issue for custom caret in the future if needed.


Unify test resources

We should share as many test resources as possible. This means

putting all test resources in a common location
rewriting our TestProject fixtures to access them
fix tests to address any deviation in test projects that have happened over time.
and so much more!!!

Would be nice to streamline the plugin integration test code a bit more as well in general. The tests themselves work fine, but they operate using a lot of awkward halfway-generic helper methods and classes. Some of the methods cover multiple cases, but often require further modification/rewrites when we introduce new tests (e.g. I feel like every time I have to add a new integration test, I have to reread a lot of code to re-learn how it works and end up adding new flags to some helper methods or something to fit the new use case).
Almost feels like we should either just be copy-pasting the code in the tests so they're easier to read/follow, or make a more general/flexible/future-proof testing framework.


Feature request: select window by number

Yabai currently supports the ability to swap or warp by supplying an identifier for a target window in several different formats: direction (north/south/east/west), recency of use (recent), and some positions in window tree (first/last/next/previous). It would seem to be useful to be able to select any window in the tree by index.
I'm not sure how exactly windows are numbered, but is it determined by the position on the screen? Then users could learn to easily determine the index of the target window. I'm hoping that one would be able to do something like yabai -m window --swap 2 to swap with the second window in the tree.

There is no guarantee about the order of window queries for now, but note that a window id is a valid window selector.
This means you can just take the output of a window query, sort by the windows position and then take the 2nd windows id and re-use it in a query:
yabai -m query --windows --space |
  jq 'sort_by(.frame.y, .frame.x) | .[1].id' |
  xargs yabai -m window --focus

@dominiklohmann I see-- thanks a lot for the suggestion, it does what I was hoping for. I'll leave it up to developers to decide whether to close the issue, as I'm not sure whether anyone eventually plans to implement the functionality directly.

Closing this as resolved. I don't think guarantee of query output order is a good thing to add, as it may hinder other yet to be developed features.

I have a script that comes up with a stable window number (based on position):
https://github.com/eraserhd/dotfiles/blob/develop/bin/yabai-window-number
It's used here, for example.
I came up with a program gewgaw that displays a transparent overlay with a number and waits for one key, but it's kind of terrible (when typing at full speed, I have to wait for a flash, and I kind of want the numbers always available instead of needing to look after hitting ctrl - w)... so I think I have to revisit the approach.  Maybe it won't wait for a key, skhd can spawn it, and kill it when the next key is typed?  Anyway, advice welcome on this bit.
https://github.com/eraserhd/gewgaw/blob/develop/gewgaw.c


Increase overhaed budget for test_sampler_transition_overhead

This test is flaky when it is run under load. Increasing overhead budget as a temporary fix.
A better solution would be to change the test structure to not depend on specific timings.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

LGTM. If the test is inherently flaky, we can also add a tenacity retry decorator.

LGTM. If the test is inherently flaky, we can also add a tenacity retry decorator.

Done. Good idea, thank you.

Run Portable_Python PreCommit

Run Python PreCommit


Adds retrieval workflow

Resolves #435
Closes #454
Closes #442
Checklist

[x] I have viewed, signed, and submitted the Contributor License Agreement.
[x] I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
[ ] I have added an integration test, if necessary.
[x] I have reviewed the styleguide for guidance on my code quality.
[x] I'm happy with the commit history on this PR (I have rebased/squashed as needed).

@ryanmoran Updated!


Animate backgroundSize

Is your feature request related to a problem? Please describe.
Animating individual backgroundSize width and height values doesn't work but is sometimes needed if for example the width or height value needs to stay at 'auto'.
Describe the solution you'd like
myanim.add({
    targets: '#bgimage',
    backgroundSize: ['auto 100%', 'auto 200%']
});

Describe alternatives you've considered
As a workaround i could create an attribute and animate on update:

myanim.add({
    targets: '#bgimage',
    "data-bgy": [100, 200],
    update: (anim) => {
        let bgy = anim.animatables[0].target.getAttribute('data-bgy');
        anim.animatables[0].target.style.backgroundSize = `auto ${bgy}%`;
        console.log(bgy);
    }
});

Fixed in 3.1.0 !


[Tests] Re-enable tests

Now that Xcode has been updated on builders(https://github.com/apple/swift/issues/69485), these tests should pass.

@swift-ci please test


Theming White Color Globally

Description
Hi,
I'd like to add a white button like this image. (See Demo)

I think adding a white color to the color configuration, but I'm not sure what is the best way to set this out.

Would you mind being more specific? There is already a black color (white in dark mode) defined: https://ui.nuxt.com/dev/components/button#black. You can easily add an outline variant in your app.config.ts for example.


Improved request filtering for group invites

From Caroline:

Flagging it could be difficult for new group members to know if they have been added to a group if it shows in spam folder since their requests folder shows "0" and group chat can only be found if they actively are looking in the requests folder to see that there is in fact a chat in the spam folder.

Let's think about this through the lens the entire requests flow and the work we are doing to reorganize it for onchain identity.

Closing this out as we've had design updates that help better solve this
Probably still something we want to generally improve, but larger than the scope of this ticket


Create simplification routine for rendering visualization of worm

In our public-facing site exposing the worm database, it will be nice if we can support a short sample or visualization of the worm file bring requested.  Such a visualization is possible with client-side js libraries like d3.js or paper.js, however, passing many megabytes of worm data for a simple visualization is too much.
https://bl.ocks.org/mbostock/1136236
http://paperjs.org/examples/tadpoles/
So a lossy compression method would be desirable.

I'm not sure how this is a Tracker Commons issue.

I was thinking it would become part of the API for the Python implementation, transforming a WCON object into a simpler one.
So if w is our WCONWorms object, you would call w2 = w.simplify_lossy() to obtain a compressed version.
- `simplify_lossy`
  - [property]
  - returns: a copy of this object but compressed form, losing coordinate points if necessary.

This way, a 70mb file could be transformed perhaps into a 70kb file.
As I write this, I am thinking of various ways a compression might be achieved, if the only goal is to preserve a human-appreciable rendering of the worm's movements:

Worm's body is a continuous perimeter around a relatively invariant area.  Could be represented by a Bézier curve.
The worm's Euclidean translation around the arena can be isolated (via the centroid)
The array of centroid coordinates can be further simplified since the coordinates are arranged in a sequence.  Again this could be approximated with a piecewise bezier curve or other method.

This is an enhancement, not a requirement, but I needed a place to capture my thoughts about this.

I would have thought that this was the kind of analysis you'd want to use the full analysis toolbox on, where you presumably already have useful things to deal with curves and PCA and so on.  So you'd want to take in and put out WCON, but does it really make sense in the basic repository?  It is a continuum, of course, but this seems like a pretty advanced operation conceptually.

I'm thinking along the same lines as @Ichoran here - in my mind, WCON ought to stay purely an I/O interface library. An OWAT tool could then take a WCON file containing point-data and convert it into a lossy form and vice-versa. I believe the WCON schema will have to change to accommodate this form of worm posture representation?

If Bezier curves are out and only splines are in, then you only need a metadata field to explain that the shapes are in fact splined.  Everything else is just interpolation between the data points you've already got.  If we did want Bezier curves, the control points could go in custom code, leaving the actual points there making a lousy-looking but not wholly ridiculous spine.

@MichaelCurrie - Would a metadata field "spline" which is an object with fields of "spine" and "perimeter", each of which is a number saying what is the degree is of an approximating spline going through the points, be enough so an external tool could create compressed data that wasn't completely hopeless?  E.g.
"spline": { "spine":1, "perimeter":0 }

would be the default assumption for a pixel-walk based perimeter.  If there is a tail index in the perimeter, then the spline is expected to be broken there.

I concede to you guys to put this somewhere else.  I'm not sure it belongs in OWAT either so I'll just develop privately until I have something.  I will close this issue here.

On how to implement splines (or Bézier curves), I'm studying these and as far as I understand:

A spline is a piecewise polynomial real function on a closed interval, consisting of k subintervals, such that each subinterval boundary point k is continuous and continuously differentiable to order n(k)-1, where n is the order of the polynomial of the kth subinterval.
A single Bézier curve is a special case of a spline, consisting of just 1 subinterval, and typically of order 2 or 3, using "control points" and "Bernstein polynomials" to characterize the polynomial curve parametrically.
Using splines, in particular, defining the splines by interpolation between control points, seems like the right way to go here since it avoids Runge's phenomenon of high-order polynomials being unstable.

The way to do this in Python is:
import numpy as np
from scipy import interpolate

def f(x):
    x_points = [ 0, 1, 2, 3, 4, 5]
    y_points = [12,14,22,39,58,77]

    tck = interpolate.splrep(x_points, y_points)
    return interpolate.splev(x, tck)

print f(1.25)

It would be interesting to characterize how much the worm features change if the WCON file is converted into this lossy spline-based format, and then converted out again, depending on how many control points are used.  (this would help to answer how many control points are necessary)
This is admittedly a different question to how many control points are needed to preserve the human-visible "look" of a worm for a UI widget.


Update development versions of Astro & Starlight’s @astrojs/* dependencies

Description

Dependency bump only
Development version of Astro is now ^4.3.4 (same for starter templates)
prettier-plugin-astro bumped from 0.11.0 to 0.13.0 — I ran formatting locally and didn’t see any changes
The MDX and sitemap integrations are both bumped to the latest release
Expressive Code is bumped to the latest release

size-limit report 📦

Path
Size

/index.html
5.22 KB (0%)

/_astro/*.js
21.54 KB (0%)

/_astro/*.css
13.13 KB (0%)


Download fails with lots of Python errors when network is slow

As the title says.
I'll put in an option for slow network connections soon - just adding more delay between queries should work, I think.

In the meantime, just try again when it fails

https://stackoverflow.com/questions/26566799/wait-until-page-is-loaded-with-selenium-webdriver-for-python


deleting files/folders in advdupe2 is faulty

attempting to delete a file/folder in advdupe2 only hides it from the advdupe2 menu, but the file still remains in the data/advdupe2 folder.

Seems it's just folder deletion that is faulty


DFC-46 | GA4 | Sandbox | Create form - free text component on test page

Description

Introduces a textarea component.
Implements error handling for the textarea form.
Redirects to the home page when the user enters text and clicks continue since the select form page is not yet created.

Tickets
(DFC-46)[https://govukverify.atlassian.net/browse/DFC-46]
Steps to Reproduce

Navigate to /service-description page
Test the error handling of the form.
Verify the redirection functionality to the home page when text is entered.

Co-Authored By
Additional Information
Not sure if we wanted to limit characters entered in textarea ?
Saving data from form entry will be added later/ another ticket

Looks good! :D


Decide on signedness of various attributes

MHLO/StableHLO dialects frequently use I64Attr and I64ElementsAttr which are signless. HLO uses signed integers. In the spec, we're using signed integers. Let's review and make a consistent decision once and for all.

To give an example, PR for ReducePrecisionOp #482 uses I32Attr for exponent_bits and mantissa_bits. The ODS enforces that these are uint32, but the spec currently says "constant of type si32".
Related to this, there may be inconsistencies between the use of "constant of type x" and "1-dimensional tensor constant of type x" for these attributes which may need to be sorted out.

I don't think that the ODS enforces anything. Since I32Attr means "signless", it just bitcasts the value to uint32_t. For example, this passes the verifier at the moment:
func.func @main(%arg: tensor<f32>) -> tensor<f32> {
  %0 = "stablehlo.reduce_precision"(%arg) {
    exponent_bits = -5 : i32,
    mantissa_bits = 2 : i32
  } : (tensor<f32>) -> tensor<f32>
  func.return %0 : tensor<f32>
}


Done signal not correct in the environments

For some environments, the done signal is not given even when the task should terminate already and when I try to step another step it is giving the following error: "ValueError: Maximum path length allowed by the benchmark has been exceeded"

Hi @xinleipan thanks for checking out Metaworld!
This is a purposeful design choice. Metaworld environments don't return done=True on termination because these aren't true environment termination states. We've also uncovered that if you return done=True on time limit termination, this negatively affects the performance of off policy algorithms that use Q-functions, because the Q-functions are taught that timesteps that are terminated due to environment termination are terminal states. Because agents have no concept of their current time step, this makes their mdps actually pomdps, which are traditionally hard for off policy rl algorithms to learn.
In order to handle the error that you're getting, your sampler will need to reset the environment after env.max_path_length timesteps.
I hope this helps,
@avnishn


Rename SymResolver::find_symbols() to find_syms

Rename the SymResolver::find_symbols() method to find_syms, to be more in line with the naming established throughout the crate.

Trivial change; will merge once CI passes.

Codecov seems to have given up on us :-/


Get started with a Lexical Analyzer

Proposal Submission
Proposed title of article
Get started with a Lexical Analyzer.
Proposed article introduction
[Languages] In the older computer generations, running simple codes were much trickier than thought. This is because everything was done in Machine languages written on punch cards. It then went to mnemonics as used in the Assembly language. These were simpler but still required much understanding of machine language.
The need for high-level languages was higher than ever since computers seem effective in repetitive tasks.
The invention of a high-level language compiler was a significant breakthrough in the computer growth phase. This breakthrough was because high-level languages are understandable by people though much overhead is needed. Hence, for one to be able to appreciate the compilers and their work in code conversion from source to optimized object code, one has to understand how they are designed.
Compiler design involves several phases. Such phases include the following:

Lexical analysis
Syntax analysis
Semantic analysis
intermediate code generation
Code optimization
Target code generation
Error handling
Symbol table generation

A Lexical analyzer is found in the first phase of compiler construction.
Key takeaways
In this article, one will learn the following:

What is Lexical analysis
Lexical analysis core principles
Importance of a lexical analysis
Application of the principles in creating a lexical analyzer
Building a lexical analyzer with code examples

Article quality
The article focuses on the core principles used in the creation of a lexical analyzer. It then speaks of how to use the principles in creating a lexical analyzer.
Running a lexical analyzer with code samples is also among the key points to be discussed.
References

Lexical analysis definitions
Lexical analysis research document
Lexical analyzer IBM documentation

Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Good topic @franciskaguongo - Approved. Please make sure your article is unique and adds value to what is available online.