PS1 missing parenthesis around venv

Summary
I have several fully functioning projects, each with their own venv.
Randomly, and unpredictably, they will sometimes become afflicted by a curse which causes the PS1 bash prompt to display wrong:
What it should be
(venv) addison@home ~/tmp $:
^^^^^^ Looks good!

What I get:
venvaddison@home ~/tmp $:
^^^^ Yuck!

Description
This is a pain to reproduce on Mac, and I have not managed to reliably get a minimal reproduction case, but I have a repro on Ubuntu (documented here).
It seems that the issue is caused (maybe?) on MacOS by just being
/Users/addison/work/allprojects.code-workspace:
{
	"folders": [
		{
                         # This project dir is right beside the workspace file - it has a relative path
			"path": "my-working-project"
		},
		{
                         # This project uses an absolute path - it breaks
			"path": "/Users/addison/other/my-BROKEN-project"
		},
		{
                         # This also breaks, just in case you were going to ask
			"path": "../other/my-BROKEN-project"
		},
...

I'm pretty sure that just moving the project into a different dir works, except that you have to re-generate the venv, as it contains absolute paths.
I can confirm that this is unrelated, to the venv/bin/activate being different between "broken" folders in a workspace.
These files are identical in every way (except for the line: VIRTUAL_ENV=/different/path/for/each/project) when comparing a broken folder which exhibits this behaviour (venvusername), and a functioning folder which does not ((venv) username).
Environment and Versions
This happens on Mac and Linux (and probably also Windows, but unconfirmed)

Ubuntu 24.04, Python3.13, vscode: 1.93.0, Microsoft Python Extension: v2024.14.0
Darwin arm64 22.6.0, vscode: 1.92.2 (Universal), Microsoft Python Extension: v2024.14.0

Difficult to reproduce on Mac. Definitely still happens - and seems to relate to the Python version
Seems to sometimes be related to the import path of the dir into the vscode project

Python 3.9, 3.10 and 3.13 - probably all versions?
Links
This is the PR I believe caused this issue, or may be related to it in some capacity.
https://github.com/microsoft/vscode-python/pull/23201
Here is a stack overflow post I made, about the same thing:
https://stackoverflow.com/questions/78961614/vscode-ps1-missing-parenthesis-around-venv

Hi @AddisonG  Thanks for filing this issue.
Can you try adding:
"python.experiments.optOutFrom": ["pythonTerminalEnvVarActivation"],

to your settings.json and see if that works?
Thanks

Hey @anthonykim1,
Yeah, that absolutely does work (after adding the setting and reloading vscode).
It works because when I open a new terminal, it actually runs a real command, as if I was running it manually:
source /Users/addison/path/to/my/project/venv/bin/activate
addison@work ~/tmp $ source /Users/addison/path/to/my/project/venv/bin/activate
(venv) addison@work ~/tmp $

Note that it looks like the source command was run twice, but that's almost certainly a result of vscode pasting the command in before the terminal rendered the PS1. Please ignore the double source command

So in this regard, it is fully functional.
Interestingly, this actually reminds me of another bug, which is that I'm finally able to run the deactivate command here, to exit my venv.
Normally, I'm unable to do that, when I'm opted into the env-var-activation, because that janky auto-env-var thingo doesn't actually seem to run the activate script, so you can't deactivate it.

Hi @AddisonG Thanks for filing this issue. Can you try adding:
"python.experiments.optOutFrom": ["pythonTerminalEnvVarActivation"],

to your settings.json and see if that works? Thanks

This fixed it for me on Windows and WSL. I think I prefer the confirmation that the venv was activated upon terminal startup as well. Going to keep it this way. Thanks @anthonykim1 !

Woah there! This is not completed yet, unless I'm mistaken.
It's still a problem for everyone who doesn't read this exact GitHub issue.
Putting in a line to your settings to opt-out of experimental features is a workaround.
I really appreciate the help, and the workaround, but this is definitely still broken.

Hi @AddisonG
I understand, that is a fair point!
The eventual plan to get rid of pythonTerminalEnvVarActivation, for better experience but we can totally have this upvote so people can surely reference the workaround and the dev team can be kept on reminded that this issue exist :)


[azure-storage-cpp] Update to v7.0.0

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

Already updated in #8499


Refactor reference image layer state saving/loading

Overview
The current implementation of the reference layer does not reload from state each time it's updated. This is because the layer would become unselected each time it changed (despite supplying the selected: true prop in the initialization options).
It also cannot load the transparency and outline modes from state. This is because there is no way to set these options while initializing the layer. My attempts to set them after the layer is initialized have been unsuccessful because the function calls which enable these properties can only be called after certain initialization steps are finished. To my knowledge, there are no events that are fired after the initialization has finished.
Describe the solution you'd like
Two things are needed to solve these problems and it's likely their solutions are related:

Find a way to specify transparency and outline when initializing the layer
Find a cleaner way to hook into image layer updates

If these two solutions are implemented, then the variables from state can be included in the ReferenceLayer's useEffect hook.
Additional Context
Regarding the image updates, listening for the edit event covers any update of the edit handles. The dragend event which is added by L.DistortableImage.Edit.fix.js does a good job of hooking into drag events of the entire image. I created a PR on the L.DistortableImage repo to implement this: https://github.com/publiclab/Leaflet.DistortableImage/pull/1014
The refresh event, which is used to track mode and transparency/outline changes, however, will not work with these proposed changes. This is because the event is fired when the layer is initialized and will cause an render loop.

Does this still apply?

Yes, as of now, reference layers still don't respond to state changes (besides visibility).


change ordering to separate out for studies that are older

and give a pass to newer studies that don't require DSTERM to have the term "ADVERSE EVENT"

Thanks @sarabodach for going over this with me just now.  Can you please add updated notes to sdtmchecksmeta to make people aware it specifically looks for the string "DEATH DUE TO ADVERSE EVENT".  Also have you tested this  across different trials?  Thanks!


Move the trigger of format_on_key command to on_modified

Our current trigger for the format_on_key command is to intercept the keystroke before it appears in the buffer, which has caused many problems:

The typed characters wouldn't show up if the command failed;
For multiple cursors, only the first cursor would insert test because we choose to do the insertion by ourselves;
Lag before the characters show up if the formatting takes too long.

Therefore it might be better to move the trigger for format_on_key to the on_modified event listener, because the listener is called after the characters are inserted.
Fix issue: #194

:+1:

@billti I found out that the plugin path was still incorrect for Sublime Text 2 on mac if the plugin is installed as a file link; and it has impact when I tried 'find all reference' that it cannot find the syntax definition file (because it was searching in the wrong place). So I added a fix in this PR in commit 85f511f.


Error when trying to cross-compile brotli from windows 10 to linux

Hello,
I'm trying to cross compile brotli (wich is shipped in my project) from windows 10 to linux.
I installed the toolchain stable-x86_64_unknown-linux-gnu, minGW and gcc via win-builds.
I used this command cargo build --target=x86_64_unknown-linux-gnu.
And th compilation fail at brotli with this message :
error: failed to run custom build command for brotli-sys v0.2.1
process didn't exit successfully: D:\Documents\projets_rust\vision_rs\target\debug\build\brotli-sys-7ff947327f076eab\build-script-build (exit code: 101)
--- stdout
cargo:dec_include=C:\Users\romain.cargo\registry\src\github.com-1ecc6299db9ec823\brotli-sys-0.2.1\brotli/dec
cargo:enc_include=C:\Users\romain.cargo\registry\src\github.com-1ecc6299db9ec823\brotli-sys-0.2.1\brotli/enc
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-pc-windows-msvc")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-pc-windows-msvc")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
TARGET_CC = None
CC = None
HOST = Some("x86_64-pc-windows-msvc")
CROSS_COMPILE = None
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-pc-windows-msvc")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
TARGET_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-Wall" "-Wextra" "-o" "D:\Documents\projets_rust\vision_rs\target\x86_64-unknown-linux-gnu\debug\build\brotli-sys-0fa5776450382a16\out\brotli/common\dictionary.o" "-c" "brotli/common/dictionary.c"
cargo:warning=brotli/common/dictionary.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
cargo:warning= /* Copyright 2013 Google Inc. All Rights Reserved.
cargo:warning= ^
cargo:warning=cc: error: CreateProcess: No such file or directory
exit code: 1
--- stderr
fatal: Not a git repository (or any of the parent directories): .git
thread 'main' panicked at '
Internal error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-Wall" "-Wextra" "-o" "D:\Documents\projets_rust\vision_rs\target\x86_64-unknown-linux-gnu\debug\build\brotli-sys-0fa5776450382a16\out\brotli/common\dictionary.o" "-c" "brotli/common/dictionary.c" with args "cc" did not execute successfully (status code exit code: 1).
Do you have any clue?
Kind regards.

Compiling url v2.1.1
error: failed to run custom build command for backtrace-sys v0.1.35
Caused by:
process didn't exit successfully: Z:\rust\demo\web\target\debug\build\backtrace-sys-c4175e5320fe378f\build-script-build (exit code: 1)
--- stdout
cargo:rustc-cfg=rbt
TARGET = Some("armv7-unknown-linux-gnueabihf")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-pc-windows-msvc")
CC_armv7-unknown-linux-gnueabihf = None
CC_armv7_unknown_linux_gnueabihf = None
TARGET_CC = None
CC = None
CROSS_COMPILE = None
CFLAGS_armv7-unknown-linux-gnueabihf = None
CFLAGS_armv7_unknown_linux_gnueabihf = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None

Do we have any updates on this issue? I have similar issue when I try to cross compile it for aarch64 on my x86-64 host machine.
Here is my error message.
error occurred: Command "aarch64-xilinx-linux-gcc" "-march=armv8-a+crc" "-mtune=cortex-a72.cortex-a53" "--sysroot=/opt/sysroots/aarch64-xilinx-linux" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-O2" "-pipe" "-g" "-feliminate-unused-debug-types" "-I" "brotli/include" "-o" "/home/envision/production/device/APU/src/vitis_ai_rs/target/debug/build/brotli-sys-93b780aede5c3282/out/brotli/common/dictionary.o" "-c" "brotli/common/dictionary.c" with args "aarch64-xilinx-linux-gcc" did not execute successfully (status code exit code: 1).

I've had the same thing cross-compiling from x64 linux to x86_64-pc-windows-gcc. I suspect in my case it could be due to me not having a linker or something because I know that can be necessary sometimes -- I don't have any stuff other than the cargo target installed.
Error message is   process didn't exit successfully: `/home/[redacted]/target/debug/build/brotli-sys-52c75b398ed63a05/build-script-build` (exit status: 1)   --- stdout   cargo:include=/home/[redacted]/.cargo/registry/src/github.com-1ecc6299db9ec823/brotli-sys-0.3.2/brotli/include   TARGET = Some("x86_64-pc-windows-gnu")   OPT_LEVEL = Some("0")   HOST = Some("x86_64-unknown-linux-gnu")   CC_x86_64-pc-windows-gnu = None   CC_x86_64_pc_windows_gnu = None   TARGET_CC = None   CC = None   CROSS_COMPILE = None   CFLAGS_x86_64-pc-windows-gnu = None   CFLAGS_x86_64_pc_windows_gnu = None   TARGET_CFLAGS = None   CFLAGS = None   CRATE_CC_NO_DEFAULTS = None   DEBUG = Some("true")   CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")   running: "x86_64-w64-mingw32-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "brotli/include" "-o" "/home/[redacted]/target/x86_64-pc-windows-gnu/debug/build/brotli-sys-17fb0b616cd0f3fc/out/brotli/common/dictionary.o" "-c" "brotli/common/dictionary.c"


Issue importing files in linux where the filenames contain portuguese characters

This has only been reproduced in a linux environment with the attached dataset. To reproduce the issue install an alfresco 5 instance and apply the latest bulk import tool amp and follow the steps below:

Unzip the provided tar in the target server in a directory of your choice, take note of this directory including the directory tony/ this contains the files for the test.
Login to alfresco as admin and create a folder for the import test
Open the bulk import tool interface (http://localhost:8080/alfresco/s/bulk/import)
Enter the location of the "tony" folder (ie /home/alfowner/testdirs/tony)
Enter the location of the folder in the repo (ie /mytest1)

In the alfresco logs there are warnings about files being unreadable
WARN  [source.fs.DirectoryAnalyser] [BulkImport-Scanner] BULKIMPORT: Skipping '/home/alfowner/testdirs/tony/135 Carbon���13 NMR spectroscopy_DS_NS_final_cau2.txt' as Alfresco does not have permission to read it.
Even though the permissions are right on the server side I believe the issue is with the File.canRead() method. In my tests I found that using java.nio.file.DirectoryStream and java.nio.file.Files.isReadable() is able to read these files properly.
public static void main(String[] args) throws IOException {
System.out.println("Folder provided was:" + args[0]);
List originalListing = null;
File folder = new File(args[0]);
File[] listOfFiles = folder.listFiles();
    int fileNotFoundNew = 0;
    DirectoryStream<Path> ds = Files.newDirectoryStream(folder.toPath());
    for(Iterator<Path> it = ds.iterator();it.hasNext();) {
        Path p = it.next();
        if (!Files.isReadable(p)) {
            fileNotFoundNew++;
            System.out.println("File not readable: " + p);
        } else {
            System.out.println("Read file:     " + p);
        }
    }
}

testdirsforbi.tar.gz

Can you check the first item in this troubleshooting tip?  The symptoms sound similar.

Hi Peter,
Thank you for the pointer. After looking at that resolution I changed my LANG variable to LANG=en_US.ISO-8859-1 now my files are no longer being marked as unreadable.
Thank you again.


Implement --background flag for the replicate and image download commands

--background flag will allow us to start the replication immediately, but send it into the background using tmux. User will be able to attach to a current session using tmux a, and track the progress. This is especially useful to run the jobs on schedule or execute them over the REST API, and then check if the operation was successful after some time.
During the development, I'll implement a function to track the progress remotely using the REST API. And then this feature will eventually be implemented in the WebUI.

Just a simple reminder (future research time saver) to start a command in the background mode in tmux, use the one-liner below:
tmux new-session -s "${REPLICATION_NAME}" -d "/opt/hoster-core/hoster vm replicate... || bash"

--background will be implemented together with the new scheduler instead of tmux. Closing this issue due to that reason.


nit picks changes to ts files

Any guidance on how to improve my style of writing PRs would be greatly appreciated :dancers:
Description
I made deep editing of all the data.ts files in each of the 15 Tasks. The focus was on simplifying the language for our target audience (software engineers and project managers with virtually zero knowledge of DL). This also involves fixing typos and adding descriptions.
Limitations
I did not review, yet, the about.md files of each of the 15 Tasks. This would be my next step in a following PR.
Tasks
Here are the main changes made to each of the 15 tasks.
Fill mask

Summary - wording of the last part.
Metrics - typo and wording.
Description of Wikipedia dataset - I believe it is not necessary to use 'pre train' since our target audience might not be familiar with the term. Maybe 'train' would be enough.
Description of C4 dataset - wording.

Sentence Similarity

Summary - wording.
Metrics - wording.
Models - wording.

Question Answering

Summary - wording.
Metrics - wording; I tried to simplify the wording.
Demo - wording.

Summarization

Summary - wording.

Text classification

Summary - wording.
Metrics - added descriptions and changed the order.
Models - wording.

Text generation

Summary - wording.
Description of mc4 dataset - I believe it is not necessary to use 'pre train' since our target audience might not be familiar with the term. Maybe 'train' would be enough.
Description of the_pile dataset - wording.
Metrics - wording.

Translation

Summary - wording.
Metrics - wording.

Text to Speech

Summary - wording.
Metrics - I added the cepstral mel distortion as there were no metrics present. Feel free to remove it in case it is not suitable; I am not very well versed in audio yet.

Token Classification

Metrics - added descriptions.
Summary - Added additional information on subtasks so that newcomers to ML can identify practical cases.
Models - wording.

Audio Classification

Summary - wording.
Models - typo correction and wording.
Metrics - added (1) recall and precision metrics; and (2) descriptions for f1 and accuracy.

Audio-to-Audio

Metrics - wording.
- Datasets - we are lacking datasets.

Automatic speech recognition

Summary - wording.
Models - wording.
Metrics - added description.

Image Classification

Summary - wording.

Image Segmentation

Summary - wording.
Metrics - wording.
Datasets - added a description for COCO.

Object Detection

Summary - wording.
Metrics - wording.
Datasets - added description to COCO dataset.

Reverted wer & cer which exists on the hf.co/metrics,
Removed whitespaces under headers
Typos & nits

I'm merging this if it's ok? @osanseviero


Add PreferencesBuilder and rename prefs variables

Fixes #246

I made the names to be consistent with what the other defaults were however you are right in its inconsistency so will see if I can change it to allow these preferences to come from the service directly

I made the names to be consistent with what the other defaults were however you are right in its inconsistency so will see if I can change it to allow these preferences to come from the service directly


feat(core): Documentation readme fetching is part of the runtime

feat(core): Documentation readme fetching is part of the runtime
Add BoosterDocumentationStore and test in charge of maintaining (fetch/reload) the documentation files and providing them.
Use BoosterDocumentationStore in BoosterReadmeProcessorImpl.
Add new endpoint:
/booster-documentation/reload: to call BoosterDocumentationStore.reload.
Add tests.
Fixes #252

I splited the test in:

an IT (to test that the files are there after the clone).
a unit test set by wrapping the path supplier with the files in test/resources

@gastaldi can merge?


Added compass button that resets camera position

Looks good!  Would it be better to just reset, and remain in the same zoomed in state?
The compass icon is in the same corner as the popup window for the satellites. Currently it works, but just a heads up so the icon won't cover any information when real satellite data is used.

Yeah those are good points, will change that :)

Dunno if we need this anymore, since it will be a hassle making it work when a satellite is selected unless we also make the button remove the selection. But at thay point I think the compass button is overstepping it's boundries


App freezing after being open for a while - can scroll but cant click anything

what I have observed is if the app is left open in a backgorund on a page other than the map, say avalanche forecast or weather stations, when the app is opened, I can scroll up and down but not able to push any buttons on the page. Scrolling is the only action to do so to use the app normally, the app needs to be killed and re-loaded. Existing the app to go to another app and navigating back doesnt do anything.

havent noticed this recently - so may be a non issue. Will watch for it for the next few weeks and if it doesnt up again I will close

so this has stopped happening, but a new similar thing is: if the app is open in the background for a while, when I go to open it I just get a blank white screen :/ so it does seem like something makes it throw an exception when its running in the background is my guess. I looked around on Sentry if there were any errors that could be related but didnt find anything.

may be worth all of you trying to see if your app gives you a white screen if you open it then leave it running in the background (without shutting off your phone) for over 24 hours and the trying to open it again?

@yuliadub are you still seeing this?

have not seen this, going to close.


Program type present

Program type already present: com.afollestad.materialdialogs.color.ColorChooserDialog$3

pls solve this error.I don' know why show this .we are using this library
implementation('com.github.afollestad.material-dialogs:commons:<IP_ADDRESS>@aar') {
transitive = true
exclude module: 'support-v4'
}

That version of the library will not receive new releases.


Nested blockquot

I have a html with blockquote:

Hello jpuri. How are you?

Hello erika

Hello jpuri. How are you?
Hello erika

I like response again:

Fine :)

Hello jpuri. How are you?

Hello erika

Fine :)
Hello jpuri. How are you?
Hello erika

BUT, when I use the last html, htmlToDraft generate blockquote separates and the content out from them, like this:

Fine :)

Hello jpuri. How are you?

Hello erika

Fine :)
.
Hello jpuri. How are you?
.
Hello erika

Do you know how resolve this?, or this library doesn't generate nested blockquote?

@erikaperugachi I am facing a similar issue. Did you by any chance solve this issue ?

@erikaperugachi I am facing a similar issue. Did you by any chance solve this issue ?

I have to use other library


Build: Add open source badge

Add an 'open source' badge that let's anyone coming to the service easily discover the source code associated with it. Ideally we'd redirect to a page similar to the one Image Builder has that shows the architecture and has more docs. As a starting point, the frontend repository may be ok.
This is what it looks like:

Note: I hardcoded the page title to 'Repositories' - not sure if that's desirable.

/retest

/retest

/retest


If the user hits the load plugin button a second time the AIMS layer is loaded again

Other layers have a method to ensure if the user tries to load the plugin once it has been loaded the layer will only be loaded again if the user has removed it.
This needs to be added to the features layer loading.

Resloved


Node.js 4's console does not deduplicate % anymore -> our test breaks

Failing build log: https://scala-webapps.epfl.ch/jenkins/job/scalajs-task-worker/66687/console
We need to remove the hack at https://github.com/scala-js/scala-js/blob/6e3255a6c0e502c317b9d14a645dcb091a3407aa/js-envs/src/main/scala/org/scalajs/jsenv/nodejs/NodeJSEnv.scala#L276-L296 to get back a normal behavior.
I don't know whether we can have a "smart hack" that duplicates %'s on old Nodes, and doesn't on recent ones.

We could use process.version, and test whether it returns something older than "v4.something", i.e., process.version starts with v0., v1., v2. or v3..

Actually, it seems to have been fixed in v2.1.0 already: https://github.com/nodejs/node/commit/214d02040e1c46b8cac47451bf2f0e2fc15a3e0f
Starting with v2.1.0, console.log will not consider %% an escaped % if console.log is given only 1 argument. Apparently this behavior is consistent with browsers, including Firefox.
So we should try and use process.version to detect old versions (below v2.1.0), and only apply our hack for those.


Thrown “SCRIPT1028: SCRIPT1028: Expected identifier, string or number” in Edge browser.

Hi @southpolesteve
Thanks for your help! Could you please look into the below issue?
When using an Angular app which use the @azure/cosmos and run it at Edge browser, it will hit the below error message.
“SCRIPT1028: SCRIPT1028: Expected identifier, string or number”
Clicking the error, I found the error throwed by the line 39.
After search it, found this github link: https://github.com/sindresorhus/crypto-hash/blob/master/browser.js#L39
This code is part of the ‘crypto-hash.’
It seems that the ‘crypto-hash’ is required if use the @azure/cosmos.
I search again and found below link which indicating that Edge doesn’t support the Rest parameters (the syntax is ‘…options’)
https://stackoverflow.com/questions/53628191/edge-script1028-expected-identifier-string-or-number
Then,  the issue seems to be the dead-lock status.
The Angular app use the  @azure/cosmos. @azure/cosmos required the ‘crypto-hash’. ‘crypto-hash’ use the Rest parameters. However, the Edge doesn’t support such syntax..
Therefore, the above restriction let the Angular app cannot be used in the Edge browser.
This is a sample which you can simply repro the issue:
https://github.com/jeffrey008/empty-angular
I fully know this might be a pure front-end issue or Edge issue. I still hope to consult from your side and see if there is any idea for resolving the issue.

hi @southpolesteve
May I know is there the current ETA for replacing the cypto-hash?

No ETA at this time. We are evaluating making our own crypto shim in #5023

Appreciate your help!
Looking forward to the further steps.

This was resolved in 3.3.4


Throwable vs error in ADELEG

In the ledger specification, the ADELEG rule should always succeed, because the logical disjunction/OR of the preconditions of its two variants is true. Then, in the implementation, if we fail at the end of the second variant, this is treated as an error - (link). A question that arose during the audit is what happens on line 397 - since S_AfterExistingDelegation is thrown, can it be handled? If not, perhaps it should also be an error.

A question that arose during the audit is what happens on line 397 - since S_AfterExistingDelegation is thrown, can it be handled?

If I understand this correctly, the question is what happens on line 397 if sp >= s doesn't hold. However this shouldn't be possible since rules are tried in the order in which they appear in the transitionRules list, and in the rule that precedes this one:
    , do
        TRC ( _env
            , st@DState { _dStateDelegationMap = dms
                        , _dStateLastDelegation = dws
                        }
            , (s, (vks, vkd))
            ) <- judgmentContext
        if vkd ∈ range dms
          then return st
          else do
            case Map.lookup vks dws of
              Just sp -> sp >= s ?! S_AfterExistingDelegation
              Nothing -> error $  "This can't happen since otherwise "
                               ++ "the previous rule would have been triggered."
            return st

We have the following checks:
        vkd ∉ range dms ?! S_AlreadyADelegateOf vkd (dms !> vkd)
        case Map.lookup vks dws of
          Nothing -> pure () -- If vks hasn't delegated, then we proceed and
                             -- update the @ADELEG@ state.
          Just sp -> sp < s ?! S_BeforeExistingDelegation

So if the previous check failed because vkd ∈ range dms, then we will return st in the last rule. If vkd ∉ range dms, then we will perform the Map.lookup vks dws. If this returns Nothing, then the rule succeeds and we're golden. If it returns Just sp and not (sp < s) we're in a situation where (doing some notational abuse):
vkd ∉ range dms && Map.lookup vks dws == Just sp && sp >= s

So if I got this right,  it cannot be the case that the S_AfterExistingDelegation is thrown. On the other hand, if this makes sense, we could replace S_AfterExistingDelegation by an error explaining why this cannot happen.
What do you think?

Having the result be independent of the order of evaluation of the two guarded cases does have a nice symmetry. Perhaps we just need to be more explicit in the comments that it must be the case that A or B, so each one is a guarded A | ... ;  B | ..., but one of them must succeed, and the order in which they are tried does not matter (though in practice we use top to bottom).

On the other hand, if this makes sense, we could replace S_AfterExistingDelegation by an error explaining why this cannot happen.

Thanks for the thorough walkthrough! Although I seem to have obfuscated it with a poor explanation, this was my point exactly - perhaps an error would be a better indication of unreachability.

Having the result be independent of the order of evaluation of the two guarded cases does have a nice symmetry.

If I'm not mistaken, it seems that this symmetric alternative would require replacing the existing error with a thrown S_NoLastDelegation. Otherwise, when evaluated first, the second rule could fail without redirecting to the other rule.

an error would be a better indication of unreachability.

Yes! I totally agree. This was an excellent point. Thanks!
@mhuesch would replacing S_AfterExistingDelegation by error affect the goblins? (I guess not since you were ignoring the S_ prefixed failures)

I'd be more inclined to replace the error with an S_NoLastDelegation, because this would provide the symmetry (even if we know that such a case is unreachable).

But won't that confuse people again? The rules hint that such errors are possible, whereas is not easy to see that they aren't. I think error communicates the intent more clearly here.

We provide the goblins with a list of desired PredicateFailure’s, as targets, so we can exclude the “structural” PFs, or the error call if that’s what we replace it with.

Development of Byron code has been frozen and only potential security fixes will be applied in the future


Infrastructure: make  docs and dist builds publicly available for reference and testing

It would be nice for all those fiddles against master branch as well as developing against a current set of docs.

@andig do you mean these links?

http://chartjs.org/dist/master/Chart.min.js
http://chartjs.org/docs/master
http://chartjs.org/samples/master

Great! I didn't know those existed, especially for the dist folder I had only looked into github. Could be added here https://github.com/chartjs/Chart.js/blob/master/docs/developers/contributing.md or as separate "developing" or "contributing" document under http://www.chartjs.org/docs/latest/?

Agree, the contributing.md seems a good home for it (could also be in the developers root page).


Add support for Summing up deque of quantities

What's needed?
from frequenz.quantities import Power
from collections import deque

power1 = Power.from_watts(230.0)
power2 = Power.from_watts(240.0)

power_deque = deque([power1, power2])
sum(power_deque)

This code stops with this error TypeError: unsupported operand type(s) for +: 'int' and 'Power'
Proposed solution
The reason is that the sum starts with an integer 0. This we need to implement the __add__ method for quantities that excepts integers.
Use cases
No response
Alternatives and workarounds
No response
Additional context
No response

This can be archived by adding a second initialization parameter to the sum, i.e.
total_power = sum(power_deque, Power.zero())


Revert TotalRewardEvent changes

This reverts changes to the TotalRewardEvent done in https://github.com/input-output-hk/cardano-ledger/pull/2615/files#diff-e38c0cafe1544253b0aa549f1fdaeb9b824089696fa5320f0c1dd5b3fa7d7f58R159-R161 and fixes the related test.

I am tempted to merge this PR even though one of the non-required CI jobs is yellow. It looks to me like the job actually did successfully complete.


Why does Swift use the let keyword instead of the final keyword

let and var keywords don't seem to be the same part of speech.
Can the var keyword be replaced with let mut keywords ?

I think this question fits best in https://forums.swift.org. Also, I suppose the subject has already been discussed many times.

Thanks for asking! Both let and var have long histories of use in programming languages to signal an immutable or mutable value, respectively. let ultimately has its origins in algebra and mathematical proofs, while var is used in other C-like languages such as JavaScript and Go.
If you have more questions, I'd also recommend asking on the Swift forums.


Fix import

using s3_http_loader.rb in thumbor results in an error:
Traceback (most recent call last):
  File "thumbor_botornado/s3_http_loader.py", line 2, in <module>
    import tornado.concurrent.return_future
ImportError: No module named return_future

so i changed the import to be the same as in s3_loader.py

Huh, thanks.
I wonder how it was working in our environment.

computers, how do they work?!  ¯_(ツ)_/¯

Ohhh… it looks like I fixed this error, amended my commit, tagged it v2.0.1 and pushed it with the tag, but never pushed it to master.
I've now force-pushed the v2.0.1 commit to master (after this merge, therefore overwriting it) so that the v2.0.1 doesn't forever point at an orphan (or widow?) commit.
Thanks for pointing out the problem. Turns out the computers are working fine, but I'm not ;)


merge from template-node-app

README.md

docs(README): update from template

.github/workflows/codeql_analysis.yml

chore: add 16.15.0 (jobs.analyze.steps.with.node-version)

:tada: This PR is included in version 2.1.18 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Why does the drop down cancel the hover but open editors and other random actions don't?

Testing #150557

I have alt held down this whole time.

This is @TylerLeonhardt's alt account on Linux

@Tyriar added to the milestone so it gets tested for endgame since the original issue duplicated to doesn't have the same steps

@TylerLeonhardt I think clicking on the dropdown is expected to hide the hover as you show since it's a native dialog popping up. If anything clicking elsewhere out of the hover while alt is held is undefined behavior. I didn't aim to explicitly hide the hover in those cases but if it does I don't think that matters and is worth handling, the user should just let go of alt if they want it hidden.


How to use ICLRMetaHost

Which crate is this about?
windows
Crate version
0.39.0
Summary
Hi, I am trying to declare and use the ICLRMetaHost interface from mscoree.dll with the windows::core::interface macro per the FAQ (https://github.com/microsoft/windows-rs/blob/master/docs/FAQ.md#how-do-i-declare-a-new-com-interface). As far as I can tell I have a valid metahost value, but when I attempt to call the interface methods, I am getting memory access violations (call rax goes to a very high very wrong address). I'm not sure if this is a bug with the vtable generation or (more likely) if I'm just doing something wrong. The included example code is calling the GetRuntime method but I have tried some of the other methods with similar results. Thanks!
Toolchain version/configuration
Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\John\.rustup

installed toolchains
--------------------

stable-x86_64-pc-windows-msvc
nightly-x86_64-pc-windows-msvc

active toolchain
----------------

stable-x86_64-pc-windows-msvc (default)
rustc 1.62.0 (a8314ef7d 2022-06-27)

Reproducible example
#![allow(non_snake_case, non_upper_case_globals)]
#![cfg(windows)]

use core::ffi::c_void;
use windows::{
    core::{interface, IUnknown, IUnknownVtbl, GUID, HRESULT, HSTRING, PCWSTR, PWSTR, Interface},
    Win32::Foundation::HANDLE,
};

const CLSID_CLRMetaHost: GUID = GUID::from_u128(0x9280188d_0e8e_4867_b30c_7fa83884e8de);
const IID_ICLRMetaHost: GUID = GUID::from_u128(0xd332db9e_b9b3_4125_8207_a14884f53216);

// for libloading
type CLRCreateInstanceFn =
    unsafe extern "system" fn(*const GUID, *const GUID, *mut *mut c_void) -> HRESULT;

#[interface("D332DB9E-B9B3-4125-8207-A14884F53216")]
unsafe trait ICLRMetaHost: IUnknown {
    unsafe fn GetRuntime(
        &self,
        pwzVersion: PCWSTR,
        riid: *const GUID,
        ppRuntime: *mut *mut c_void,
    ) -> HRESULT;
    unsafe fn GetVersionFromFile(
        &self,
        pwzFilePath: PCWSTR,
        pwzBuffer: PCWSTR,
        pcchBuffer: u32,
    ) -> HRESULT;
    unsafe fn EnumerateInstalledRuntimes(&self, ppEnumerator: *mut *mut c_void) -> HRESULT;
    unsafe fn EnumerateLoadedRuntimes(
        &self,
        hndProcess: HANDLE,
        ppEnumerator: *mut *mut c_void,
    ) -> HRESULT;
    unsafe fn RequestRuntimeLoadedNotification(&self, pCallbackFunction: *const c_void) -> HRESULT;
    unsafe fn QueryLegacyV2RuntimeBinding(
        &self,
        riid: *const GUID,
        ppUnk: *mut *mut c_void,
    ) -> HRESULT;
    unsafe fn ExitProcess(&self, iExitCode: i32) -> HRESULT;
}

#[interface("BD39D1D2-BA2F-486a-89B0-B4B0CB466891")]
unsafe trait ICLRRuntimeInfo: IUnknown {
    unsafe fn GetVersionString(&self, pwzBuffer: PWSTR, pcchBuffer: *mut u32) -> HRESULT;
}

fn main() {
    let mut p_metahost: *mut ICLRMetaHost = core::ptr::null_mut();
    unsafe {
        let lib = libloading::Library::new("mscoree.dll").unwrap();
        let CLRCreateInstance: libloading::Symbol<CLRCreateInstanceFn> =
            lib.get(b"CLRCreateInstance").unwrap();
        let hresult = CLRCreateInstance(
            &CLSID_CLRMetaHost,
            &IID_ICLRMetaHost,
            &mut p_metahost as *mut *mut _ as *mut *mut c_void,
        );
        println!("HRESULT: {:?} {:?}", &hresult, hresult.message());
        dbg!(p_metahost);
        let metahost = p_metahost.as_ref().unwrap();
        dbg!(metahost);

        let hstring = core::mem::ManuallyDrop::new(HSTRING::from("v4.0.30319"));
        let pwzVersion = PCWSTR(hstring.as_wide().as_ptr());
        dbg!(pwzVersion.to_string().unwrap());

        let mut p_runtime_info: *mut ICLRRuntimeInfo = core::ptr::null_mut();
        metahost
            .GetRuntime(
                pwzVersion,
                &IID_ICLRMetaHost,
                &mut p_runtime_info as *mut *mut _ as *mut *mut c_void,
            )
            .unwrap();
        dbg!(p_runtime_info);
    }
    println!("DONE");
}

Crate manifest
[dependencies]
libloading = "0.7.3"
windows = { version = "0.39.0", features = [
    "implement",
    "interface",
    "Win32_Foundation",
    "Win32_System_Com",
] }

Expected behavior
I expected to receive a pointer to a CLRRuntimeInfo object
Actual behavior
stdout
HRESULT: HRESULT(0x00000000) The operation completed successfully.
[src\bin\test-clr.rs:63] p_metahost = 0x000001483a885eb0
[src\bin\test-clr.rs:65] metahost = ICLRMetaHost(
    IUnknown(
        0x00007ffd75811a88,
    ),
)
[src\bin\test-clr.rs:69] pwzVersion.to_string().unwrap() = "v4.0.30319"
error: process didn't exit successfully: `target\debug\test-clr.exe` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

windbg

Additional comments
No response

Try this:
[dependencies.windows]
version = "0.39.0"
features = [
    "interface",
    "Win32_Foundation",
    "Win32_System_Com",
    "Win32_System_LibraryLoader"
]

#![allow(non_snake_case, non_upper_case_globals)]

use std::ffi::*;
use std::mem::*;
use windows::{core::*, Win32::System::LibraryLoader::*};

const CLSID_CLRMetaHost: GUID = GUID::from_u128(0x9280188d_0e8e_4867_b30c_7fa83884e8de);

type CLRCreateInstance = extern "system" fn(*const GUID, *const GUID, *mut *mut c_void) -> HRESULT;

#[interface("D332DB9E-B9B3-4125-8207-A14884F53216")]
unsafe trait ICLRMetaHost: IUnknown {
    unsafe fn GetRuntime(
        &self,
        pwzVersion: PCWSTR,
        riid: *const GUID,
        ppRuntime: *mut *mut c_void,
    ) -> HRESULT;
}

#[interface("BD39D1D2-BA2F-486a-89B0-B4B0CB466891")]
unsafe trait ICLRRuntimeInfo: IUnknown {
    unsafe fn GetVersionString(&self, pwzBuffer: PWSTR, pcchBuffer: *mut u32) -> HRESULT;
}

fn main() -> Result<()> {
    unsafe {
        let mscoree = LoadLibraryA(s!("mscoree"))?;

        let create: CLRCreateInstance =
            std::mem::transmute(GetProcAddress(mscoree, s!("CLRCreateInstance")));

        let mut host = MaybeUninit::zeroed();

        let host: ICLRMetaHost =
            create(&CLSID_CLRMetaHost, &ICLRMetaHost::IID, host.as_mut_ptr()).from_abi(host)?;

        let mut info = MaybeUninit::zeroed();

        let info: ICLRRuntimeInfo = host
            .GetRuntime(
                w!("v4.0.30319").into(),
                &ICLRRuntimeInfo::IID,
                info.as_mut_ptr(),
            )
            .from_abi(info)?;

        let mut version = [0; 20];
        let mut len = version.len() as u32;

        info.GetVersionString(PWSTR(version.as_mut_ptr()), &mut len)
            .ok()?;

        println!(
            "Version: {}",
            String::from_utf16(&version).expect("Invalid string")
        );

        println!("Rust is now controlling the CLR 😜");
        Ok(())
    }
}

Wow, thanks! That example is very helpful (TIL about the Abi trait and those string macros). I'm still unpacking it a bit, but it looks like my raw pointer cast for metahost was bad? And I actually had a pointer to the inner IUnknown?

Yep, you need a pretty good understanding of both COM and how COM interface pointers are represented in Rust. We're working on making it as safe and simple as possible so if you find yourself doing a lot of contrived casting there's a good chance you're doing something wrong.


feat: 支持 admin 直接新增标签按钮；修复标签同义词无法查询到问题的 bug；修复无法取消支持的 bug；支持问题置顶功能

thanks

First of all thank you very much for your PR. However, we recommend that you submit your issue before submitting a PR next time. We need to determine if this feature is what we need.
The contribution document is as follows. https://answer.dev/docs/development/contributing/
Therefore, the PR not be merged right now, and we need to wait for the PM to confirm whether this feature is what we need. If we need it, we will do CR immediately. Please wait.
Thanks again for your PR.

好的，我现在去补充下这些 pr 的 issue。


Update to 1.01 crashes with null exception

I am unsure exactly how to file a bug report for this so I will just try and explain what I am doing and maybe that can help.
I made a simple Blazor server application to upload a video as a blob to an sqllite database. I also made a page that fetches this blob via a call from a controller and then display the video blob using Blazored Video.
This worked just fine, even for large files over 150mb.
After upgrading to 1.0.1 I am getting an error that the file is too large when trying to view the uploaded video. I tried configuring Newtonsoft Json on the controller to see if it alleviated the problem but it doesn't.
I also tried uploading a smaller file but get the same error.
Putting the nuget package back to v1.0.0 sorted everything out again.

Can you create a minimal repro of this and share the repo here?
Also, please include error messages/stack trace in your issue


Query json type with between-and faild

Steps to reproduce the behavior (Required)

SELECT  '....'

MySQL [dps_data_center_stream]> select parse_json('1') between 0.5 and 0.9;
ERROR 1064 (HY000): between predicate type json with type unknown type: INVALID_TYPE is invalid.

Expected behavior (Required)
return 1
Real behavior (Required)
report error
StarRocks version (Required)

You can get the StarRocks version by executing SQL select current_version()
main

cc @mofeiatwork


Closes #13

Hi,
Brief Description of Fix
This commit will fix #13 (enhancement).
Changelog -

Added regex validators and a function to validate a credit card
number
Modified Luhn's Algorithm function to accept a number as a parameter,
and then verify the number to return a boolean value
Added another function verify_number to wrap both of these
functions, and reflect the changes on the page to the user instead of
just console.log()-ing it.

heyy you gotta correct your Js code. There seems to be an error at line 44 in your javascript file. Cause its isnt working

Could you point out the specific file and line please?

!bounty 50


<EMAIL_ADDRESS>error - Cannot read property 'options' of undefined

Version
nuxt-i18n: 6.20.0
nuxt: 2.15.0
Nuxt configuration
mode:

[X] universal

Nuxt-i18n configuration
i18n: {
        locales: [...],
        defaultLocale: "en",
        vueI18nLoader: true
    }

What is Expected?
Not sure where the issue lies and what could have changed since the previous version of Nuxt, but the description of the issue should be self explanatory about what is failing and where.
What is actually happening?
Error when running npm run dev for Nuxt:

Result of console.log(config.module.rules) above failing line;

hooks.js logic which is looking for vue-loader when on the screenshot above there is an absolute path not equal to but including vue-loader:

Fix released in https://github.com/nuxt-community/i18n-module/releases/tag/v6.20.1.
Thanks for reporting.


Creation of CIM messages for accept and reject

We need to have a design session
Update with tasks after design session

@cmgrd  @kft  Please update with tasks :)

Do the cim messages need to go in the outbox? Shouldn't we just generate the xml and in the outbox point to the location?


v2 branch status

It seems some fix/features in the v1 branch are not merged in the v2 branch which is then diverging.
Do you have a status or a plan regarding the switch to the v2 branch?
I can help a bit in this process if required.
Thx

Hi @nlewo,
The merge up has been mostly adhoc and as-needed, but you are correct that it is a bit stale -- I'll merge up now.
As for the v2 release -- I think it is pretty close; there was only one other major change I wanted to get in (which had previously just existed in my head, but now exists as https://github.com/urfave/cli/issues/554). I'll do another survey to make sure there isn't anything else we can clean up for this initial backwards incompatible release (further ideas welcome!).
Thank you for your continued interest in the project!

#555 is the merge up

@jszwedko ok, cool. Thanks for the status;)

:+1: I'll close this this out, but feel free to open new issues of this sort in the future!


How to control devices using DTMF signals and Matlab App designer

Topic Suggestion
How to control devices using DTMF signals and Matlab App designer
Writing sample(s):
https://www.section.io/engineering-education/how-to-perform-parallel-computing-using-matlab/
How to control devices using DTMF signals and Matlab App designer
Proposed article introduction
Dual-tone multi-frequency (DTMF) is the sounds or tones generated by a telephone when the numbers are pressed. These tones are transmitted with the voice channel. DTMF controls automated equipment and signals user intent, such as the number they wish to dial. Each key has two tones at specific frequencies.
This article will look at how we can generate these tones in Matlab. Also, we will look at the DTMF recognition and relay driver hardware and a detailed understanding of the DTMF generation. It is basically to help students with various projects requiring DTMF.
Key takeaways

Device Control Strategy.
Understanding DTMF generation.
DTMF Recognition and Relay Driver Hardware.
MATLAB Code to generate DTMF tones.
Building applications using App designer.
Matlab code for the App.

Article quality
It provides a detailed explanation of the DTMF generation and the DTMF recognition and relay driver hardware. It also shows how you can create a control application using the App designer.

Good afternoon and thank you for submitting your topic to the EngEd program.
After some careful consideration it struck us that this topic may be a bit over saturated throughout other blog sites and official documentations. We typically refrain from publishing content that is covered widely on the net or other blogs. We're more interested in original, practitioner-focused content that takes a deeper dive into programming-centric concepts.
But in order to approve the topic it has to serve value to the larger developer community at large. Please feel free to suggest an alternate topic to explore. 🚀
An option and a great way to write this as an in-depth article and make it more add value to the greater developer community at large would be to walk the reader through the USE of methods and functions by building a unique, different, useful project.
https://www.google.com/search?q=DTMF+signals+and+Matlab+App+designer&rlz=1C1CHBF_enUS891US891&sourceid=chrome&ie=UTF-8


fix: Fix the CommonJS version of the SDK

What does this PR do?
Fixes an issue with the SDK not being compatible in a CommonJS environment
Related ticket
Fixes #353
Type of change

[ ] Chore
[X] Bug fix
[ ] New feature
[ ] Documentation update

Check list

[ ] Unit tests for any smart contract change
[ ] Contracts and functions are documented

Codecov Report

Merging #354 (1111d0f) into dev (a45644a) will increase coverage by 0.76%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev     #354      +/-   ##
==========================================
+ Coverage   92.30%   93.07%   +0.76%
==========================================
  Files          16       16
  Lines         260      260
  Branches       62       62
==========================================
+ Hits          240      242       +2
+ Misses         10        8       -2
  Partials       10       10

see 2 files with indirect coverage changes
:mega: Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!


Monero Wallet RPC (Wrong parsing?)

I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

Summary
I try to made a got plugin with your lib to contact the monero wallet rpc (https://web.getmonero.org/resources/developer-guides/wallet-rpc.html)

My code:
import got from "got";
import { ClientDigestAuth } from "@mreal/digest-auth";

export function createDigestClient(username: string, password: string) {
  return got.extend({
    hooks: {
      afterResponse: [
        (res, retry) => {
          const options = res.request.options;
          const digestHeader = res.headers["www-authenticate"];

          if (!digestHeader) {
            return res;
          }

          const incomingDigest = ClientDigestAuth.analyze(digestHeader);

          console.log(incomingDigest);

          const digest = ClientDigestAuth.generateProtectionAuth(
            incomingDigest,
            username,
            password,
            {
              method: options.method,
              uri: options.url.pathname,
              counter: 1
            }
          );

          options.headers.authorization = digest.raw;

          return retry(options);
        }
      ],
      beforeRetry: [
        (options, error, retryCount) => {
          console.log(options.headers, error, retryCount);
        }
      ]
    }
  });
}

Other information

The console.log(incomingDigest) in the middle give me that { qop: '"auth",algorithm' } so I think there is a problem.. I get a 401 with this response back
authorization: 'Digest username="devchris", response="db6ef15a168d8bf094b052af5804c9b6", cnonce="c3c5ecd9941663e3c13f1dd890cf2d6b8f7ee865acedd98e", nc=00000001, uri="/json_rpc", qop=auth, algorithm="MD5"'

@vMReal The passage from RFC2069 you posted does specify that the algorithm should be without quotes. The quotes that appear in the grammar just delimit literal tokens. Literal quotes that should appear in the end result are given as <"> as seen in the rule for domain or qop-options.

Thanks for such detailed information. It helped me a lot. I am adding fixes asap.

@vMReal You're welcome. Another word of advice: you should follow above rules for quoting when generating headers, but you should not assume that headers you parse follow them. I played around with a small selection of clients and servers and every one of them violated at least one of those rules.
Maybe http-header-value is worth a look for parsing header values. It's the only library I found that seems to implement a proper parser.

@raphinesse thank you for detailed information and advice
I am pleased to report that all these things already have done.
https://github.com/vMReal/digest-auth/releases/tag/1.1.2

A couple of months ago I tried to replicate this problem with a real environment (got +  monero-wallet-rpc + digest-auth and postman as addition tools). Unfortunately, I could not find enough time to overcome this problem. But I have very interesting information, maybe this can help someone if it's still relevant.

I tried to send requests only with curl, and it was a success!
I tried to send all requests only with the postman, and it was a success!
I tried to send the first request with the postman, then I parse and generate new authorization header with digest-auth, then I send the second request with postman with using the authorization header from digest-auth, and it was a success!

I concluded that the problem persists with the combination got + monero-wallet-rpc not related with digest-auth
I hope this information helps, I attached all the debug information below
2 case

3 case
parse and generate new header

const incomingDigest = ClientDigestAuth.analyze('Digest qop="auth",algorithm=MD5,realm="monero-rpc",nonce="hiRFOEZB3/Jp8ECzRixg4w==",stale=false');       const digest = ClientDigestAuth.generateProtectionAuth(         incomingDigest,         'testdigest',         '12345678',         {           method: 'POST',           uri: '/jsonrpc',           counter: 1         }       );       console.log(digest.raw)
new header
Digest username="testdigest", realm="monero-rpc", nonce="hiRFOEZB3/Jp8ECzRixg4w==", response="5f53f30dbd1ca90af1feff04255dab5a", cnonce="ad4bdc2b30dbc37ac799b83e3bc490c0cb7fab7e6448af52", nc=00000001, uri="/jsonrpc", qop=auth, algorithm=MD5
The second request with this header

`POST http://<IP_ADDRESS>:18082/json_rpc
401
9ms
POST /json_rpc HTTP/1.1
Content-Type: application/json
User-Agent: PostmanRuntime/7.22.0
Accept: /
Cache-Control: no-cache
Postman-Token: 994695ff-c14a-4715-b9e8-2aa18d8a6bf1
Host: <IP_ADDRESS>:18082
Accept-Encoding: gzip, deflate, br
Content-Length: 48
Connection: keep-alive
{"jsonrpc":"2.0","id":"0","method":"getbalance"}
HTTP/1.1 401 Unauthorized
Server: Epee-based
Content-Length: 98
Content-Type: text/html
Last-Modified: Sat, 29 Feb 2020 11:47:40 GMT
Accept-Ranges: bytes
WWW-authenticate: Digest qop="auth",algorithm=MD5,realm="monero-rpc",nonce="hiRFOEZB3/Jp8ECzRixg4w==",stale=false
WWW-authenticate: Digest qop="auth",algorithm=MD5-sess,realm="monero-rpc",nonce="hiRFOEZB3/Jp8ECzRixg4w==",stale=false
Unauthorized Access401 Unauthorized
POST http://<IP_ADDRESS>:18082/json_rpc
200
15ms
POST /json_rpc HTTP/1.1
Content-Type: application/json
Authorization: Digest username="testdigest", realm="monero-rpc", nonce="hiRFOEZB3/Jp8ECzRixg4w==", response="5f53f30dbd1ca90af1feff04255dab5a", cnonce="ad4bdc2b30dbc37ac799b83e3bc490c0cb7fab7e6448af52", nc=00000001, uri="/jsonrpc", qop=auth, algorithm=MD5
User-Agent: PostmanRuntime/7.22.0
Accept: /
Cache-Control: no-cache
Postman-Token: 81c35f0c-be59-4e20-af73-c31a46ae8677
Host: <IP_ADDRESS>:18082
Accept-Encoding: gzip, deflate, br
Content-Length: 48
Connection: keep-alive
{"jsonrpc":"2.0","id":"0","method":"getbalance"}
HTTP/1.1 200 Ok
Server: Epee-based
Content-Length: 171
Content-Type: application/json
Last-Modified: Sat, 29 Feb 2020 11:48:26 GMT
Accept-Ranges: bytes
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"balance": 0,
"blocks_to_unlock": 0,
"multisig_import_needed": false,
"unlocked_balance": 0
}
}`


AttributeError: 'NoneType' object has no attribute 'sd_model'

Error executing callback image_saved_callback for D:\Projects\SD Portrait Generator\stable-diffusion-webui\extensions\sd_grid_add_image_number\scripts\sd_grid_add_image_number.py
Traceback (most recent call last):
  File "D:\Projects\SD Portrait Generator\stable-diffusion-webui\modules\script_callbacks.py", line 185, in image_saved_callback
    c.callback(params)
  File "D:\Projects\SD Portrait Generator\stable-diffusion-webui\extensions\sd_grid_add_image_number\scripts\sd_grid_add_image_number.py", line 84, in handle_image_saved
    getaxis_value(params.p, img_filename, "xyz_plot_x")
  File "D:\Projects\SD Portrait Generator\stable-diffusion-webui\extensions\sd_grid_add_image_number\scripts\sd_grid_add_image_number.py", line 61, in getaxis_value
    axis_value = os.path.basename(p.sd_model.sd_model_checkpoint)
AttributeError: 'NoneType' object has no attribute 'sd_model'

While doung X/Y matrix with different checkpoints in X, this error poping up in logs for each generated pic.
Nothing else is affected, reporting just in case
Have a nice day

Thanks! It was trying to get the xyz info for the grid image also. Should work now.


Adding the perplexity evaulation metric

Great work!
But as for evaluating the topic models, how about adding the perplexity metric which is a common approach to evaluate the unsupervised language/topic models?

Hi! Thanks :)
I agree perplexity is one of the most common metrics that are used to evaluate topic models. The issue of implementing such metric in our framework is that we only consider metrics that are independent of the model's implementation. In other words, we see a topic model as a black box, whose output is a list of topical words, the topic distributions over the vocabulary, and the distribution of the topics in the documents. At the moment, we could not easily implement the perplexity because it would require specific knowledge of each model. So I guess we might include the computation of the perplexity in the case the original implementation already provides it.
Best,
Silvia


Alternative match warnings are shown for sources in a ClusterSample

This is because in the ExtendedSource init I mistyped and made it show warnings if its part of a source, rather than if it isn't

In fact I made that mistake twice in the same init!


Add devDependency nodemon for devServer and beauty the dark theme color

"Hi, thanks for the pull request! I'll check your branch to make sure everything works fine before I merge it.


Add comments and clear up some of the code in preparation for SE-0021…

… (test naming convention) changes.

Seems ok to me...


How to define this command by python click framework?

I'm using python click framework to define commands. I want to define this kind of command:

config bgp neighbor neighbor_addr detail local_addr as_number ...

for example:

config bgp neighbor <IP_ADDRESS> detail <IP_ADDRESS> 300 ...

So I use codes like this:
#
# 'bgp' group
#

@cli.group()
def bgp():
    """BGP-related configuration tasks"""
    pass

#
# 'neighbor' subcommand
#
@bgp.command()
@click.pass_context
@click.argument('neighbor_addr', type=str, required=True)
def neighboraddr(neighbor_addr):
    """Config BGP neighbor infomations"""
    ctx.obj['NEIGHBOR_ADDR'] = neighbor_addr

# neighborinfo subcommand
@neighboraddr.command()
@click.pass_context
@click.argument('name', type=str, required=True)
@click.argument('local_peer_addr', metavar='<ipaddr_or_hostname>', required=True)
@click.argument('asn', type=int, required=True)
@click.argument('admin_status', type=str, required=False)
@click.argument('rrclient', type=int, required=False)
@click.argument('nhopself', type=int, required=False)
@click.argument('holdtime', type=int, required=False)
@click.argument('keepalive', type=int, required=False)
def neighborinfo(ctx, name, local_peer_addr, asn, admin_status, rrclient,
    nhopself, holdtime, keepalive):
    """Config BGP neighbor infomations details"""
    _config_bgp_neighbor_info(ctx.obj['NEIGHBOR_ADDR'], name, local_peer_addr, asn,
        admin_status, rrclient, nhopself, holdtime, keepalive)

But I got errors like this:
root@switch1:~# config bgp neighboraddr <IP_ADDRESS> neighborinfo ? Traceback (most recent call last): File "/usr/bin/config", line 9, in load_entry_point('sonic-utilities==1.2', 'console_scripts', 'config')() File "/usr/lib/python2.7/dist-packages/click/core.py", line 716, in call return self.main(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/click/core.py", line 696, in main rv = self.invoke(ctx) File "/usr/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python2.7/dist-packages/click/core.py", line 1057, in invoke Command.invoke(self, ctx) File "/usr/lib/python2.7/dist-packages/click/core.py", line 889, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python2.7/dist-packages/click/core.py", line 534, in invoke return callback(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) TypeError: neighboraddr() got multiple values for keyword argument 'neighbor_addr'
So how to define this command? thank you~

Please use Stack Overflow for questions about your own code. This tracker is for issues related to the project itself. Be sure to include a minimal, complete, and verifiable example.


Support label rotation

As requested on the mailing list: https://groups.google.com/d/msg/cesium-dev/dnqBUH3Fx7M/iswm2vMz8DMJ
This might involve the same difficulties that prevent us from doing label scaling by distance, but I would have to check the label code to know for sure.

Have you gotten around to implemnting this feature yet?

@Nirco96 sorry, we haven't had a chance to add support for this yet.  We'd be happy to review a pull request if anyone has time to implement this!

@hpinkos  could you please give us some pointers about where to start ?

@lydonchandra I would look at the Label class where individual glyphs are drawn and the LabelCollection where it's all put together.
The labels use billboards under the hood for rotation, so it may be as simple as passing that through to some "parent" billboard that contains all the glyphs, or it may require handling the fact that all the glyphs may be separate billboards.

@lydonchandra thanks for being interested in taking a look at this!

all the glyphs may be separate billboards.

All glyphs are always separate billboards.  It's been a while, but I'm pretty sure 99% of the work is simply modifying repositionAllGlyphs in LabelCollection.js to take a rotation into account. (and then the plumbing of exposing a rotation property on the Primitive/Entity APIs.)
To start, I would just recommend reviewing repositionAllGlyphs to understand what it's doing and then picking some angle (like 1/4 pi) and getting that to work. Once you have all labels drawing at that rotation, then it should be easy to thread it through up to the API.

Thanks for the pointers @OmarShehata @mramato

As all glyphs are in separate billboards,

Should each glyphCanvas position/rotation be adjusted separately based rotationAngle?
In screenshot above, only rotation is adjusted (position is left untouched)
Also the label's backgroundBillboard (shown when showBackground: true) can be rotated easily as it is just one billboard.

Is copying all glyphs to another billboard (that can be rotated easily) an acceptable solution?

@lydonchandra, unfortunately that's not an acceptable solution.  The reason labels are rendered as individual glyphs and not as a single billboard are for runtime performance and memory usage. Obviously it complicates the implementation, but it's necessary technique. Otherwise creating/updating labels would be slower and consume a large amount of texture memory.

@mramato This is extremely necessary feature fo e.g in order to change the angle of labels according to camera position. is this on the roadmap?

@jony89 can you describe your use case for that?
Do you mean rotating the label based on camera distance, around the axis between the camera and the label?

That's one usecase. correct. to change the label position according to the heading of the camera. but in our app we would like to rotate the label for many other reasons. another use case is for measurement tools with labels next to the polyline that measures height.

@jony89 we would happily take a look at a pull request if you or your team is interested in contributing this feature, otherwise it is not on our near term roadmap. See our Contributing Guide to get started if you are interested.

@mramato, on a side note, I am a contributor, yet the last PR I sent got really lil attention https://github.com/CesiumGS/cesium/pull/8591 :\

@jony89 I reviewed that PR and asked you a question back on Feb 26th that you have yet to reply to: https://github.com/CesiumGS/cesium/pull/8591#discussion_r384509512

Is there any news on this?

If anyone is curious, I ended up needing something like this, (I wanted to show bearing and distance for each leg of a flight leg) and created some react components for this:
import React, { useEffect, useState } from 'react';
import { Cartesian3, Color, ScreenSpaceEventHandler } from 'cesium';
import { PolylineEntity } from './PolylineEntity';
import { LabelEntity } from './LabelEntity';
import { useCalcBearingAndDistanceMutation } from '../../../redux/api/vfr3d/navlog.api';
import { BearingAndDistanceResponseDto, Waypoint } from 'vfr3d-shared';
interface PolylineWithLabelProps {
  positions: Cartesian3[];
  color: Color;
  id: string;
  width: number;
  waypoints: Waypoint[];
  onLeftClick: (
    event: ScreenSpaceEventHandler.PositionedEvent,
    polylinePoints: Cartesian3[]
  ) => void;
}

export const BearingDistancePolyline: React.FC<PolylineWithLabelProps> = ({
  positions,
  color,
  id,
  width,
  onLeftClick,
  waypoints,
}) => {
  const [bearingAndDistance, setBearingAndDistance] = useState<BearingAndDistanceResponseDto>();
  const [bearingAndDistanceText, setBearingAndDistanceText] = useState<string>('');
  const [calcBearingAndDistance] = useCalcBearingAndDistanceMutation();
  const midpoint = Cartesian3.midpoint(positions[0], positions[1], new Cartesian3());

  useEffect(() => {
    const getBearingAndDistance = async () => {
      const bearingAndDistance = await calcBearingAndDistance({
        startPoint: waypoints[0],
        endPoint: waypoints[1],
      }).unwrap();

      setBearingAndDistance(bearingAndDistance);
      setBearingAndDistanceText(
        `TC: ${Math.round(bearingAndDistance.trueCourse)} - Distance: ${Math.round(bearingAndDistance?.distance)}`
      );
    };

    getBearingAndDistance();
  }, [calcBearingAndDistance, waypoints]);

  return (
    <>
      <PolylineEntity
        positions={positions}
        color={color}
        id={id}
        width={width}
        onLeftClick={onLeftClick}
      />
      {bearingAndDistance && (
        <LabelEntity
          position={midpoint}
          text={bearingAndDistanceText}
          rotation={bearingAndDistance.trueCourse - 90}
        />
      )}
    </>
  );
};

import {
  Cartesian3,
  Color,
  ConstantProperty,
  Entity,
  PolylineGraphics,
  ScreenSpaceEventHandler,
  ScreenSpaceEventType,
} from 'cesium';
import { useEffect, useRef } from 'react';
import { useCesium } from 'resium';

interface PolylineEntityProps {
  positions: Cartesian3[];
  color?: Color;
  width?: number;
  id: string;
  onLeftClick?: (
    position: ScreenSpaceEventHandler.PositionedEvent,
    polylinePoints: Cartesian3[]
  ) => void;
}

export const PolylineEntity: React.FC<PolylineEntityProps> = ({
  positions,
  color = Color.BLUE,
  width = 3,
  id,
  onLeftClick: onLeftClick,
}) => {
  const { viewer } = useCesium();
  const entityRef = useRef<Entity | null>(null);

  useEffect(() => {
    if (!viewer) return;
    const polylineGraphics = new PolylineGraphics({
      positions: new ConstantProperty(positions),
      material: color,
      width: new ConstantProperty(width),
    });

    const entity = viewer.entities.add({
      polyline: polylineGraphics,
      id,
    });

    entityRef.current = entity;

    const handler = new ScreenSpaceEventHandler(viewer.scene.canvas);

    if (onLeftClick) {
      handler.setInputAction((movement: ScreenSpaceEventHandler.PositionedEvent) => {
        const pickedObject = viewer.scene.pick(movement.position);
        if (pickedObject && pickedObject.id === entity) {
          onLeftClick(movement, positions);
        }
      }, ScreenSpaceEventType.LEFT_CLICK);
    }

    return () => {
      if (onLeftClick) {
        if (viewer && entity) {
          viewer.entities.remove(entity);
          handler.removeInputAction(ScreenSpaceEventType.LEFT_CLICK);
        }
      }
    };
  }, [viewer, positions, color, width, id, onLeftClick]);

  return null;
};

// LabelEntity.tsx
import {
  Entity,
  Color,
  ConstantProperty,
  NearFarScalar,
  Cartesian2,
  Property,
  Cartesian3,
  Plane,
  writeTextToCanvas,
  PlaneGraphics,
  ImageMaterialProperty,
  Transforms,
  HeadingPitchRoll,
  Math,
} from 'cesium';
import React, { useEffect, useRef } from 'react';
import { useCesium } from 'resium';

interface LabelEntityProps {
  position: Cartesian3;
  text: string;
  show?: boolean | Property;
  scale?: number | Property;
  color?: Color | Property;
  rotation?: number;
  id?: string;
}

export const LabelEntity: React.FC<LabelEntityProps> = ({
  position,
  text,
  show = true,
  scale = 1.0,
  color = Color.WHITE,
  rotation,
  id,
}) => {
  const { viewer } = useCesium();
  const entityRef = useRef<Entity | null>(null);

  useEffect(() => {
    if (!viewer) return;

    const image = writeTextToCanvas(text, {
      backgroundColor: Color.MAGENTA.withAlpha(0.1),
      padding: 2,
      fill: true,
      fillColor: Color.WHITE,
      stroke: true,
      strokeWidth: 1,
      strokeColor: Color.BLACK,
    });

    if (image) {
      const angle = rotation ? rotation : 0;
      const orientation = Transforms.headingPitchRollQuaternion(
        position,
        new HeadingPitchRoll(Math.toRadians(angle), 0, 0)
      );

      const offsetPosition = Cartesian3.add(
        position,
        Cartesian3.multiplyByScalar(new Cartesian3(-1, 0, 0), 1000, new Cartesian3()),
        new Cartesian3()
      );

      const entity = viewer.entities.add({
        position: offsetPosition,
        plane: new PlaneGraphics({
          plane: new ConstantProperty(new Plane(Cartesian3.UNIT_Z, 0.0)),
          dimensions: new ConstantProperty(new Cartesian2(image?.width * 50, image?.height * 50)),
          material: new ImageMaterialProperty({
            image: image,
          }),
          outline: false,
        }),
        orientation: orientation,
        id,
      });

      entityRef.current = entity;

      return () => {
        if (viewer && entity) {
          viewer.entities.remove(entity);
        }
      };
    }
  }, [viewer, position, text, show, scale, color, rotation, id]);

  return null;
};

wow it's been ten years


Broken Sensor cpuspeed 042.2

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.42.2
Python release (python3 --version):
Python 3.4.2
Component/platform:
cpuspeed
Description of problem:
Task Error in Homeassistant.core

Works fine for me on dev and 0.42.

Strange....I will reconfigure it today and post the exact error. btw 0.42.0 worked for me too. It's broken on 0.42.2

0.42.1 and 0.42.2 works both with a x86_64 CPU.

Ah ok....forgot to mention it's running on a raspberry pi 3

Not all ARM CPU are supported. Could you give it a try with the interpreter (inside your venv if needed)?
$ python3
>>> import cpuinfo
>>> cpuinfo.get_cpu_info()

Ok here now the log:
17-04-10 16:39:44 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
result = next(coro)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 359, in async_process_entity
new_entity, self, update_before_add=update_before_add
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 215, in async_add_entity
yield from entity.async_update_ha_state()
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 247, in async_update_ha_state
device_attr = self.device_state_attributes
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/sensor/cpuspeed.py", line 70, in device_state_attributes
ATTR_VENDOR: self.info['vendor_id'],
KeyError: 'vendor_id'

hass@HomeAssistant:/home/pi$ source /srv/hass/hass_venv/bin/activate
(hass_venv) hass@HomeAssistant:/home/pi$
(hass_venv) hass@HomeAssistant:/home/pi$
(hass_venv) hass@HomeAssistant:/home/pi$
(hass_venv) hass@HomeAssistant:/home/pi$ python3
Python 3.4.2 (default, Oct 19 2014, 13:31:11)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.

import cpuinfo
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named 'cpuinfo'

installed pip install py-cpuinfo now it works with python3 but i still get the same error in HA, but now it HA starts.
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
result = next(coro)
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 359, in async_process_entity
new_entity, self, update_before_add=update_before_add
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 215, in async_add_entity
yield from entity.async_update_ha_state()
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 247, in async_update_ha_state
device_attr = self.device_state_attributes
File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/sensor/cpuspeed.py", line 70, in device_state_attributes
ATTR_VENDOR: self.info['vendor_id'],
KeyError: 'vendor_id'

Hmmm, is py-cpuinfo installed?
$ pip3 freeze | grep cpuinfo

Python 3.4.2 (default, Oct 19 2014, 13:31:11)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.

import cpuinfo
cpuinfo.get_cpu_info()
{'count': 4, 'hardware': 'BCM2835', 'brand': 'ARMv7 Processor rev 4 (v7l)', 'hz_advertised': '1.2000 GHz', 'hz_advertised_raw':<PHONE_NUMBER>, 0), 'bits': 32, 'hz_actual_raw':<PHONE_NUMBER>, 0), 'raw_arch_string': 'armv7l', 'flags': ['crc32', 'edsp', 'evtstrm', 'fastmult', 'half', 'idiva', 'idivt', 'lpae', 'neon', 'thumb', 'tls', 'vfp', 'vfpd32', 'vfpv3', 'vfpv4'], 'arch': 'ARM_7', 'hz_actual': '1.2000 GHz'}

(hass_venv) hass@HomeAssistant:/home/pi$ pip3 freeze | grep cpuinfo
py-cpuinfo==3.0.0
(hass_venv) hass@HomeAssistant:/home/pi$

fixed

@fabaff this fix didn't go life in 042.3

Reopen since it's still unfixed in version 0.42.4

Our workflow is to close issues once a fix has been merged into dev branch. Most fixes will then go out into the next minor release. Only critical fixes usually make it out into bugfix releases.


PUB-1510 - Configure List Types

JIRA link
https://tools.hmcts.net/jira/browse/PUB-1505
Change description
Configure List types for court subscriptions in the frontend

Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

Merged with the other PR.


feat(ci): test new workflow

Test Summary - Run #6

Tests 📝
Passed ✅
Failed ❌
Skipped ⏭
Pending ⏳
Other ❓
Flaky 🍂
Duration ⏱

43
43
0
0
0
0
0
5ms

🎉 All tests passed!
Github Test Reporter CTRF


⚠ Bofrost.be has degraded performance

In 475afb0, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1071 ms

Resolved: Bofrost.be performance has improved in d3ab259 after 9 minutes.


Scroll Speed

Phenomenal work on this extension! Thank you so much for finally developing something that's working.
Just one question, is there a way to increase the speed of the scroll?
Because at the moment, it's so slow that it's kind of unusable for me.
It's working just as expected, only the speed is an issue. I thought there is an option to increase the speed, but I can't find it.
Please let me know, and thanks again for your brilliant work!

Hey, thank you!
Right now there is no direct control for this.

I hope I will find time to improve this extension in near future!


Spell check

Some spelling mistakes on the page. For example, defintion is typed incorrectly.

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

ID: f8086e6b-8013-81bc-0595-3bec0c1ba6e9
Version Independent ID: 50540c83-6de8-c81a-4590-a968bdc3b5f9
Content: Usage - Common Data Model - Common Data Model
Content Source: common-data-model/use.md
Service: common-data-model
GitHub Login: @theresapalmer
Microsoft Alias: tpalmer

@interfacemirror  Thanks for reporting this issue. It has been fixed.


wfaCreateTCPServSock has two different definitions

./inc/wfa_sock.h:extern int wfaCreateTCPServSock(unsigned short sport);

./lib/wfa_sock.c:int wfaCreateTCPServSock(char *devIface, unsigned short port)

Used with (1) here:
./dut/wfa_dut.c:    gagtSockfd = wfaCreateTCPServSock(locPortNo);
./ca/wfa_ca.c:    tmsockfd = wfaCreateTCPServSock(myport);
Used with (2) here:
./lib/wfa_nw_al.c:                    wfaCreateTCPServSock(handle->if_attr.ipConn.device, handle->if_attr.ipConn.port);

taken care with new upload in develop branch


Change default download location

Currently downloads always go to {download directory}/put.io/. Add a preference in Settings to change this, preferably with a folder selector UI.

Planning on including a setting to skip the uniquely numbered folder for each file as well? It makes it quite difficult to find specific files.

Yep, that's planned as an option.

+1
Is it possible to let a download manager handle the download? I want to use ES Downloader until this feature is rolled out.

Does ES Downloader have any documentation? Or even a web site?
I'm using Android's DownloadManager API currently, and I'd rather not muddy things up more than I have to.

No clue mate, either way - having a path-setting fixes all my needs. Keep up the good work!


chore: add sonarcloud scan in pipeline

Update pipeline to run sonarcloud scan on pull requests and main branch
Update sonar configuration to include edmx-parser module

Sonar Project URL: https://sonarcloud.io/project/overview?id=SAP_open-ux-odata

Thanks !


Default settings not working

Hi!
Firstly, I'd like to thank you all for this great plugin!
However, I have tried to customize the behavior of the Fancy mode, as you provided on the README, and it didn't get any effect.
Please, take a look at my settings.
I suppose I have made a mistake. I just don't know where:
require('smoothcursor').setup({
	default = {
		autostart = true,
		cursor = "",    -- cursor shape (need nerd font)
		texthl = "SmoothCursor", -- highlight group, default is { bg = nil, fg = "#FFD400" }
		linehl = nil,      -- highlight sub-cursor line like 'cursorline', "CursorLine" recommended
		type = "default",  -- define cursor movement calculate function, "default" or "exp" (exponential).
		fancy = {
			enable = true, -- enable fancy mode
			head = { cursor = "▷", texthl = "SmoothCursor", linehl = nil },
			body = {
				{ cursor = "󱌲", texthl = "SmoothCursorGreen" },
				{ cursor = "󱌱", texthl = "SmoothCursorGreen" },
				{ cursor = "0", texthl = "SmoothCursorGreen" },
				{ cursor = "󰞿", texthl = "SmoothCursorGreen" },
				{ cursor = "1", texthl = "SmoothCursorGreen" },
				{ cursor = "󱌲", texthl = "SmoothCursorGreen" },
				{ cursor = "󰞼", texthl = "SmoothCursorGreen" },
			},
			tail = { cursor = nil, texthl = "SmoothCursor" }
		},
		flyin_effect = nil,  -- "bottom" or "top"
		speed = 25,          -- max is 100 to stick to your current position
		intervals = 35,      -- tick interval
		priority = 10,       -- set marker priority
		timeout = 3000,      -- timout for animation
		threshold = 3,       -- animate if threshold lines jump
		disable_float_win = false, -- disable on float window
		enabled_filetypes = nil, -- example: { "lua", "vim" }
		disabled_filetypes = nil, -- this option will be skipped if enabled_filetypes is set. example: { "TelescopePrompt", "NvimTree" }
	}
})

I'm sorry for my misleading README.md. I meant
require('smoothcursor').setup({
  autostart = true,
  cursor = "",    -- cursor shape (need nerd font)
  texthl = "SmoothCursor", -- highlight group, default is { bg = nil, fg = "#FFD400" }
  linehl = nil,      -- highlight sub-cursor line like 'cursorline', "CursorLine" recommended
  type = "default",  -- define cursor movement calculate function, "default" or "exp" (exponential).
  fancy = {
    enable = true, -- enable fancy mode
    head = { cursor = "▷", texthl = "SmoothCursor", linehl = nil },
    body = {
      { cursor = "󱌲", texthl = "SmoothCursorGreen" },
      { cursor = "󱌱", texthl = "SmoothCursorGreen" },
      { cursor = "0", texthl = "SmoothCursorGreen" },
      { cursor = "󰞿", texthl = "SmoothCursorGreen" },
      { cursor = "1", texthl = "SmoothCursorGreen" },
      { cursor = "󱌲", texthl = "SmoothCursorGreen" },
      { cursor = "󰞼", texthl = "SmoothCursorGreen" },
    },
    tail = { cursor = nil, texthl = "SmoothCursor" }
  },
  flyin_effect = nil,  -- "bottom" or "top"
  speed = 25,          -- max is 100 to stick to your current position
  intervals = 35,      -- tick interval
  priority = 10,       -- set marker priority
  timeout = 3000,      -- timout for animation
  threshold = 3,       -- animate if threshold lines jump
  disable_float_win = false, -- disable on float window
  enabled_filetypes = nil, -- example: { "lua", "vim" }
  disabled_filetypes = nil, -- this option will be skipped if enabled_filetypes is set. example: { "TelescopePrompt", "NvimTree" }
})

Try this setting.

Great!
Now it's working!
Thank you!!!
I was trying to replicate the Matrix rain... but I have no success... rsrsrsrsr
The icons not repeats randomly.
If you have a chance and time, it'll be a great feature to have on this amazing plugin.
Something like tmatrix does, but on Fancy mode, got it?
So, thank you for you help!
Have a great day and be fine!

@Joarell I'm facing the same issue, did you find a solution?


Avoid unnecessary \ceil simplification

[x] Refactor Ceil simplifier https://github.com/runtimeverification/haskell-backend/pull/3209
[ ] Reimplement Ceil caching
[ ] Top-down Ceil simplification
[ ] TODO: other improvements?

 blabla
...
 huge map

rules  blabla => blabla2  ensures something

Moving on with https://github.com/runtimeverification/k/issues/2943 and other attempts to do ceil simplification ahead of time.


libgrpc++.a is not containing grpc_core::ExecCtx::exec_ctx_

What version of gRPC and what language are you using?
grpc 1.20.x cpp
What operating system (Linux, Windows,...) and version?
Linux, CentOS 7
What runtime / compiler are you using (e.g. python version or version of gcc)
g++ 7.3.1
What did you do?
I was trying to link libgrpc++.a into my shared library with --whole-archive option.
What did you expect to see?
Loading successfully.
What did you see instead?
This error appeared when loading the shared library.
undefined symbol: _ZN9grpc_core7ExecCtx9exec_ctx_E

This is what I debugged about this briefly.
libgrpc++.a references grpc_core::ExecCtx::exec_ctx_, but does not have a definition in itself.
$ objdump -t libgrpc++.a | grep _ZN9grpc_core7ExecCtx9exec_ctx_E
0000000000000000         *UND*<PHONE_NUMBER>000000 _ZN9grpc_core7ExecCtx9exec_ctx_E
0000000000000000         *UND*<PHONE_NUMBER>000000 _ZN9grpc_core7ExecCtx9exec_ctx_E
0000000000000000         *UND*<PHONE_NUMBER>000000 _ZN9grpc_core7ExecCtx9exec_ctx_E
0000000000000000         *UND*<PHONE_NUMBER>000000 _ZN9grpc_core7ExecCtx9exec_ctx_E

while libgrpc.a have it.
$ objdump -t libgrpc.a | grep _ZN9grpc_core7ExecCtx9exec_ctx_E
...
0000000000000008 g       .tbss<PHONE_NUMBER>000008 _ZN9grpc_core7ExecCtx9exec_ctx_E
...

looks like there are some cpp files referencing grpc_core::ExecCtx
$ ack exec_ctx ./src/cpp/
src/cpp/common/alarm.cc
27:#include "src/core/lib/iomgr/exec_ctx.h"
50:    grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
51:    grpc_core::ExecCtx exec_ctx;
71:                      this, grpc_schedule_on_exec_ctx);
76:    grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
77:    grpc_core::ExecCtx exec_ctx;
87:                      this, grpc_schedule_on_exec_ctx);
92:    grpc_core::ApplicationCallbackExecCtx callback_exec_ctx;
93:    grpc_core::ExecCtx exec_ctx;

src/cpp/common/channel_arguments.cc
27:#include "src/core/lib/iomgr/exec_ctx.h"
69:  grpc_core::ExecCtx exec_ctx;
97:  grpc_core::ExecCtx exec_ctx;

But, LIBGRPC++_SRC in Makefile is not including src/core/lib/iomgr/exec_ctx.cc.
My temporary workaround for this issue is to remove objects overlapping with libgrpc.a from libgrpc++.a when building, and link libgrpc.a and libgrpc++.a together.

another workaround is to give the --whole-archive flag only to libgrpc++.a, and disable the flag for libgrpc.a.
g++ ... -Wl,--whole-archive libgrpc++.a -Wl,--no-whole-archive libgrpc.a

If we always have to link libgrpc.a and libgrpc++.a together, isn't it better to remove duplicated objects from libgrpc++.a in makefile?

+1, also have question on this, I see some cpp are compiled into other libs like libgrpc++_cronet.a, how was the dependence between these libs?


Set up a "Hello world" project with rails-react gem

Create a new Rails app called 'hello-rails-react'.
Initialize your project with Git.
Set up your project with webpacker the react-rails gems as describe in the previous lesson's tutorial.
Make sure that your project has a Postgres database set up.
Create a table for storing your messages and create 5 different greetings.
Create an API endpoint that selects a random greeting from your table (you will need a controller with an action and Rails route).
Create a static view that will be the root of your app.
Create the App component with react-router and render it in your static view.
Create the Greeting component that will display a greeting. Set it up as a route in your App component.
Create a store, an action and a reducer that will connect to you API endpont to get the random greeting.
Display the random greeting in your Greeting component.

Please review my project
Thank you 😄

I'm sorry, I forgot 😅 I have added it now. Thank you for the review @peterrobert


Crop operation for PolygonMasks

For the Crop operation designed for the PolygonMasks structure (lines 687~714 in structures.py), some points of the polygon might be outside the box (i.e., the coordinates are negative) after cropping.
Conceptually, the intersection points between polygon and box should be added (and removed the outside points), but such a process was not implemented in the following code.
I noticed the comment “pycocotools will clip the boundary”, but I didn't find how to deal with such a problem in pycocotools.
Could you give me some suggestions?
def crop(self, bbox):
    """see :func:`BaseInstanceMasks.crop`"""
    assert isinstance(bbox, np.ndarray)
    assert bbox.ndim == 1

    # clip the boundary
    bbox = bbox.copy()
    bbox[0::2] = np.clip(bbox[0::2], 0, self.width)
    bbox[1::2] = np.clip(bbox[1::2], 0, self.height)
    x1, y1, x2, y2 = bbox
    w = np.maximum(x2 - x1, 1)
    h = np.maximum(y2 - y1, 1)

    if len(self.masks) == 0:
        cropped_masks = PolygonMasks([], h, w)
    else:
        cropped_masks = []
        for poly_per_obj in self.masks:
            cropped_poly_per_obj = []
            for p in poly_per_obj:
                # pycocotools will clip the boundary
                p = p.copy()
                p[0::2] = p[0::2] - bbox[0]
                p[1::2] = p[1::2] - bbox[1]
                cropped_poly_per_obj.append(p)
            cropped_masks.append(cropped_poly_per_obj)
        cropped_masks = PolygonMasks(cropped_masks, h, w)
    return cropped_masks

@chufengt I'm guessing that means the polygon_to_bitmap function. When training with PolygonMasks, pycocotools will be called to convert it to a mask.  PolygonMasks.to_ndarray() -> polygon_to_bitmap


Crash on startup

hello I'm getting a crash using the following mods

here's the log
2023-11-14-2.log
Hope it helps!

Fixed in version 1.1.1


also refresh SensorBee itself when executing build_sensorbee

If we don't download SensorBee itself, then we may get errors about missing dependencies when executing build_sensorbee if some SensorBee components are neither mentioned in build.yaml nor required by build_sensorbee, but required to compile a sensorbee executable.

Thanks! I think we should replace panic with better error reporting :)


Add tests for thunderdomegroup API

Wanted to add tests for the current API to help when
starting to convert it to Django REST framework later.

:ship:


protoc generate go file error for "expected 'IDENT', found 'import'"

When try "protoc --go_out=plugins=micro:./ core_user/core_user_service.proto", the protoc-gen-go report error for
18/12/19 16:42:51 protoc-gen-go: error:bad Go source code was generated: 7:1: expected 'IDENT', found 'import'
    1   // Code generated by protoc-gen-go. DO NOT EDIT.
    2   // source: core_user/core_user_service.proto
    3
    4
    5   package
    6
    7   import (
    8   fmt "fmt"
    9   math "math"
   10   proto "github.com/golang/protobuf/proto"
   11   )
   12
   13   // Reference imports to suppress errors if they are not otherwise used.
   14   var _ = proto.Marshal
   15   var _ = fmt.Errorf
   16   var _ = math.Inf

It seems like gofmt not work?

The code should be:
package PACKAGE_NAME

import …

Something is causing it to not include a package name. Perhaps we could add some logic to avoid emitting an empty package name, but the problem centrally lies in the .proto very likely. Perhaps there is a option go_package = ""; or something similar. Without seeing the source .proto file it is only possible to guess though.

Closing as stale since no .proto file was provided.

I encountered the same error when I 1)did not use an equal sign after --proto_path and 2) used a squiggly ~ alias for home instead of the full path /home/ronmexico/......
protoc --proto_path=/home/ronmexico/open-exchange/proto --go_out=$GOPATH ox.proto

Had a similar problem and my relative path was wrong 🙄. The errors sound like I have made a mistake i can never recover from, my girlfriend might leave me and I might have to sell my kidney but then it turns out your relative path is wrong and all is fine. Anyways, heres what my generate looked like -
// go:generate protoc auth/auth.proto --go_out=plugins=grpc,paths=source_relative:./ ./auth/auth.proto


"Filtered" column header overlaps the most recent tweet

The little header that says "filtered by" overlaps the most recent tweet, hiding the time stamp and the very top of the user's picture + username.
Screenshot

Fixed in 6.1, thanks!


Don't overwrite system-exported CFLAGS in makefile

Don't overwrite system-exported CFLAGS in makefile, append to them instead.
This way the makefile honors CFLAGS exported from the environment, which is required for building erlang-serial in Linux distribution packages.
Sample packaging for Debian that relies on this can be found at https://github.com/Shnatsel/erlang-serial

Thank you!
I'm not able to maintain the Debian packaging myself at present -- would you consider taking this on? Would you be interested in starting the process of working toward there being an official Debian package for the library?

My packaging contains no dirty hacks and I've submitted packages to Debian repos before, so the packaging should Debian-worthy. I think erlang-serial should make a superb addition to Raspberry Pi repos.
However, that would require some changes to erlang-serial codebase. For one, gs module is dropped in Erlang R17 which Debian Stable already ships, so terminal.erl will have to be rewritten against wx or dropped. I'm going to use erlang-serial on Debian anyway, but for myself I'd rather hack out terminal.erl like this than fix it since I don't need it for my application.
We'd also have to ensure that it works on various weird architectures such as Linux on s390 and FreeBSD kernel with GNU userland - or rather, fix it up as build failures crop up. I'm not sufficiently familiar with termios and friends to fix everything, I'm afraid.
If you or somebody else is up for taking care of those two points, I'd take care of the remaining minor warts in the packaging and do my best to drag it through Debian inclusion processes.

There's also an assortment of minor fixes in GitHub forks such as this and it may be a good idea to review and include them and also make a new release such as 1.1 prior to applying for Debian inclusion. The thing with Debian packages is that they take months to get uploaded and then are used for many years to come, and it's incredibly annoying to hit bugs that were fixed years ago but didn't make it into the distro package.

Turns out gs wasn't actually removed in R17, it now says it's going to be removed in R18. So I guess getting rid of gs is not essential after all.


Fixes to install viro with expo

With the current master is not possible to install Viro with Expo, with these changes I'm able to install and see the AR working, I've just started working with Viro so I'm not sure if it is breaking other stuff, this PR will need a review from other people more involved in the project.
I hope the PR will be useful

who is aware of this? the changes look reasonable, but i can also not decide anything on this, not knowing side effects.

who is aware of this? the changes look reasonable, but i can also not decide anything on this, not knowing side effects.

I think nobody is aware of this, and I think the project is not actively maintained anymore, or at least there is a pause on the development

@francescovenica @donni106 Yes. Right now there is no one working on this project. There is just me on my free time sometimes, but not enough to make a good evolution.
I will keep this PR since I can't test right now.


Update @zeit/ncc to v0.18.5

Minor changes

update of @zeit/ncc

Patches

Regenerate yarn.lock file: a2f18d7

Codecov Report

Merging #2389 into canary will decrease coverage by 0.41%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           canary    #2389      +/-   ##
==========================================
- Coverage   11.35%   10.93%   -0.42%
==========================================
  Files         250      250
  Lines        9078     9032      -46
  Branches     1004      992      -12
==========================================
- Hits         1031      988      -43
+ Misses       7944     7942       -2
+ Partials      103      102       -1

Impacted Files
Coverage Δ

src/commands/dev/lib/builder-cache.ts
68.86% <0%> (-7.45%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 15178f0...7d9e945. Read the comment docs.


Prepare JavaScript functions before calling

This prevents JavaScript code blocks from needing to be loaded repeatedly when they are applied to multiple elements matching a selector. new Function() is expensive!
This is the result of splitting up #25 into a few distinct pull requests.

:joy: I think we just fixed the same issue..


[CONTROLLER/PROMETHEUS] modifies target key definition

This PR is for:

Server

modifies target key definition
Checklist

[ ] Added unit test.

Backport to branches

main

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.zhengya seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


question about transformer

So,Do you have the code of Transformer?

The code for transformer evaluation is available at: JHA-Lab/txf_design-space. The hardware implementation is at the updated synthesis/top/ directory.


Fix month rolling

Adds failure handling when setting values into datetime objects, such that if invalid values to a field are assigned, the stepping process can recover from those by rolling up the next field in the chain.
Fixes #73 and #80

Codecov Report

Merging #81 into master will increase coverage by 0.21%.
The diff coverage is 95.74%.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f25726...a8237e2. Read the comment docs.


Close socket on disconnect

As per issue #137, sockets are not closed when the bus is disconnected. This results in users receiving warnings about unclosed sockets.
This PR adds a call to the socket's close method during disconnect.
Closes #137

Not sure why test_tcp_connection_with_forwarding fails as it doesn't call bus.disconnect which is the only code I've changed.