Unable to run Flutter doctor -v while installing

C:\Windows\System32>flutter doctor -v
[!] Flutter (Channel @upstream, 3.3.2, on Microsoft Windows [Version 10.0.22000.856], locale en-IN)
    • Flutter version 3.3.2 on channel @upstream at C:\tools\flutter
    ! Upstream repository unknown
    • Framework revision e3c29ec00c (12 days ago), 2022-09-14 08:46:55 -0500
    • Engine revision a4ff2c53d8
    • Dart version 2.18.1
    • DevTools version 2.15.0

[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at C:\Users\ankit\AppData\Local\Android\sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.3.4)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.3.32901.215
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[√] VS Code (version 1.71.2)
    • VS Code at C:\Users\ankit\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22000.856]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 105.0.5195.127
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 105.0.1343.50

[√] HTTP Host Availability
    • All required HTTP hosts are available

**! Doctor found issues in 1 category.**

@AnkitPrakashProgrammer
What's the exact issue are you trying to report ? Can you elaborate ?
From your log, it says Flutter (Channel @upstream, 3.3.2,  and Upstream repository unknown which are not normal logs you see in flutter doctor -v?
Which channel are you on ? Can you checkout latest stable and confirm ?

It was a git fault i reinstalled my git and ran it worked.


cosTheta ReferenceLine Smoother(with constraint)

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

Please review again, I just push another commit to fix the problem you mentioned

Just push another commit. Added a small test almost like what is in qp_spline_reference_line_smoother_test.cc.


vs code hanging during autocomplete

VSCode Version: 1.32.3
OS Version: linux ubunutu 18.04

Steps to Reproduce:
1- I don't know the reason for that just when i tried to autocomplete as usual i found that vscode doesn't work properly - the autocomplete results can't be read - there is images for that (https://www.mediafire.com/view/9wrq87jm5rdg2yk/Screenshot_from_2019-04-03_15-37-17.png/file , https://www.mediafire.com/view/khcp0gxg8ulf262/Screenshot_from_2019-04-03_15-37-23.png/file)

Does this issue occur when all extensions are disabled?: No

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

Add known languages to autocomplete for language-specific settings (#48317)

this is another issue not mine.

Please provide steps/insights that allow me to reproduce this. Thanks

i can't know dedicated steps for reproduce that at all, iam telling you wha
1- jslint uninstall.
2- install react  packeges.
3- back to code  = the picture attached happened.
I tried to increase the size allowed for vscode then uninstall vscode and back again i found that the issue still exist

I've also faced this problem and I've found this information from Log(Window) output useful:
[renderer1] [error] Cannot read property 'updateStatus' of undefined: TypeError: Cannot read property 'updateStatus' of undefined
	at Array._onEvent (C:\Users\mrbin\.vscode\extensions\fbosch.battery-indicator-1.0.0\out\src\extension.js:46:32)
	at u.fire (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:44:728)
	at define.constructor._extHostDocumentsAndEditors.onDidChangeActiveTextEditor.e (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:575:305)
	at u.fire (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:44:708)
	at u.$acceptDocumentsAndEditorsDelta (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:522:159)
	at d._doInvokeHandler (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:622:11)
	at d._invokeHandler (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:621:716)
	at d._receiveRequest (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:620:394)
	at d._receiveOneMessage (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:619:141)
	at define.constructor._protocol.onMessage.e (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:617:400)
	at u.fire (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:44:708)
	at e (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:40:460)
	at u.fire (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:44:708)
	at a (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:172:467)
	at e (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:172:513)
	at u.fire (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:44:708)
	at y._receiveMessage (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:181:276)
	at define.constructor._socketDisposables.push._socketReader.onMessage.e (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:178:415)
	at u.fire (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:44:708)
	at f.acceptChunk (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:175:35)
	at define.constructor._register._socket.onData.e (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:174:410)
	at Socket.t (d:\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:182:689)
	at Socket.emit (events.js:182:13)
	at Socket.EventEmitter.emit (domain.js:442:20)
	at addChunk (_stream_readable.js:279:12)
	at readableAddChunk (_stream_readable.js:264:11)
	at Socket.Readable.push (_stream_readable.js:219:10)
	at Pipe.onread (net.js:636:20)

I've found this information from Log(Window) output useful:

Really? It has nothing to with suggestions nor with VS Code it self. It's a problem with this extensions fbosch.battery-indicator-1.0.0. So please forward the issue to them. Thanks.

@jrieken Ok, thank you.

I deleted everything in setting.json to reset vscode again - i'll mention the packages which caused the previous error if it happened again.

Also try with 1.33 which now stable


Grammatical fixes in "Serialization of a user object" lesson in "Advanced Node & Express"

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

This PR contains some grammatical fixes, omissions, and code formatting for the lesson - "Serialization of a user object" under "Advanced Node & Express"

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉


project new data to match existing

Currently naively assumes same projection. Need to reproject data. Also, may need to check transformation to ensure no large shifts, etc.

Might be best to just check projection and error out if new and live projections don't match. Make it the client's responsibility to project and choose the right transformation.

Belay all that. geojson can only be wgs84. Need to verify incoming dataframe is in 4326 and error out if not.


chore: bump magnus version

I suspect this means you'll want to bump the crate's version as well, so I went ahead and bumped that. Can back that change out if need be.

Is there anything I can do to help get this merged? The version of magnus used in the latest release of this crate doesn't work on TruffleRuby. By extension, any gems using this crate don't work on TruffleRuby. Newer versions of rb-sys and magnus both run fine on TruffleRuby and it'd be great if could get downstream gems building properly.

@jwilm Is there anything I can do to help get this merged? The version of magnus used in the latest release of this crate doesn't work on TruffleRuby. By extension, any gems using this crate don't work on TruffleRuby. Newer versions of rb-sys and magnus both run fine on TruffleRuby and it'd be great if could get downstream gems building properly.


entryComponents required in tests

We are having to declare entryComponents in tests after upgrading to A9; the documentation indicates this should not be necessary

@NgModule({
  entryComponents: [
    xyz,
  ]
})
export class ImportModule {}

 beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [RouterTestingModule, ImportModule],
...

Hi, the problem with Jest is that it doesn't use @ngtools/webpack to bundle and resolve the packages but rather rely on Node.Js resolutions.  These modules are not being transformed using NGCC and thus modules are resolved to their VE version.
You will need to run ngcc manually as a postinstall hook so that all modules are transformed to be Ivy compatible.
"postinstall": "ngcc --properties main"

@alan-agius4 thanks so much, works well.
Thanks @AndrewKushnir !

@alan-agius4
I was able to get things going by replacing the recommended postinstall (ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points) with ngcc --properties main.  In particular, I had to remove --create-ivy-entry-points to get this to work.  I am wondering what the implications of turning that flag off are.

@archasek thanks for the tip on the $localize setup issue which was also required to get things going

@alan-agius4 actually I spoke too soon, simple tests that e.g. a destroy$ subject is stopping some ngrx pipe fail when using the main/UMD target which weren't failing before


Improve logging by using ::error::

::error:: Will create annotations on the workflow summary page. It's more visible than just logging into the console.

[test]


Add support for cudaOccupancyMaxActiveBlocksPerMultiprocessor

This is a pretty important instruction when designing kernels that are highly performant for the selected GPU architecture. The simplest solution for implementation of this function on the HIP stack (hipOccupancyMaxActiveBlocksPerMultiprocessor) would be to add a dictionary mapping from the architecture number (gx900) and the number of blocks.

Hah, it's only implemented in fallback nvcc path.

Can we have it implemented for hcc path :)

Marking this as a duplicate of the newer #567 which is the same request.


[FR] add some debug into "test" button for CouchDB

Its, of course, related with issue about lack of documentation about CouchDB, but anyway..
I'm first time using Coach DB and stuck with "not connected error"...  Its says nothing about what happend. I'm added ssl (maybe its the reason, like issue in android), tested connection with curl (its works), then discovered that i'm not enabled CORS...
Please consider to add some debug function that shows actual error (no connection to server, permission issue, CORS not enabled, cant resolve domain name,..)

 Only there's no information to understand what's going on!
Thank you for the great suggestions.
It will be implemented!

Implemented! but there're some limitations,
If you reached the server, a verbose message will be shown(e.g., authentication error)
But from the limitation of the runtime, network error isn't shown.
And every error log is shown in more detail.

Its great! now its much easy to use


Alternative mode that removes whitespace

In some cases I do want to remove the whitespace for better looking output (in particular, unlike babel, buble preserves the whitespaces after transpiling), which is currently not possible.
I've managed to create a fork that does so with sourcemap support using https://github.com/rich-harris/magic-string - wondering if we can add an option to enable this:
var { code, map } = flowRemoveTypes(input, {
  whitespace: false
});

If this looks like a good idea, I'll open a PR. rollup-plugin-flow will also need to be updated to accommodate this option.

I think this is a cool idea, but the dependency on magic-string is probably not necessary. If this option was provided then it would just skip the step of adding the whitespace to the transformed source.
Source map support is perhaps another story - I don't know much about how they're generated actually, but I'd be surprised if it was very complicated to make a simplified form that only supported the removal of regions like this lib does.

@leebyron is performance the primary concern for the magicstring dependency? In my usage I didn't see noticeable perf loss using it - the whole build is still like 100% faster than the babel equivalent.

Whitespace-removal would also be nice to have to satisfy some ESLint rules (no whitespace before ;, etc.)

Perf isn't the primary concern, I like magic string. I think it's worth investigating what the most simple solution is. I just want to avoid using a sledgehammer for a nail.
@rasmk - I highly suggest running eslint on your original code and not the output of this or any other code transformer. Eslint is designed to help people write legible code, not transformers.
If you use a plugin for eslint that provides a parser thats aware of Flow (babel-eslint is a great one) then eslint should give you useful information again.

/cc @rich-harris

Sorry for letting this sit - I just put up a PR which introduces this mode and includes source map support - I'd love your feedback @yyx990803


Added an option to use probability values for model stealing. Added a…

… model stealing demo notebook.
Signed-off-by: Taesung Lee<EMAIL_ADDRESS>Description
This PR adds a model stealing demo which includes use of knockoff net and CopyCat CNN. The notebook also includes the use of reverse sigmoid defense. The reverse sigmoid defense assumes the attacker's using probability values, so I added an option to use probability values in these attacks.
Type of change
Please check all relevant options.

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

Testing
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.

[ ] Test A
[ ] Test B

Test Configuration:

OS: Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-128-generic x86_64)
Python version: 3.7.9
ART version or commit number: 110346fa15783f0c0ce1fa7d33a6f20584e2cc82
TensorFlow / Keras / PyTorch / MXNet version: 2.4.0 / 2.4.3 / 1.6.0+cu92 / NA

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

I updated the README and added the parameter checks.

I updated the README and added the parameter checks.


fix: UI and APIs: Remove trailing slash from path

Remove "/" for service definitions which was added as a suffix to involved endpoints.
Fix https://github.com/trustification/trustify/issues/376
Fix https://github.com/trustification/trustify/issues/422

https://github.com/trustification/trustify/pull/441


Response promise resolves before response closes

In some scenarios promise returned by e.g.response.text() resolves before 'close' event is emitted on Node.js response object (as emitted with requests's 'response' event).
It's not an issue per se, but:

Not sure if that's on par with how Fetch works in a browser.
It seems not possible to observe an async request/response process as a whole (it finalizes with 'close' event emitted on response, which is not exposed and ignored by node-fetch internals). It's an issue when e.g. we want to detect orphaned async flows, and for that want to guarantee that promises returned by fetch do not resolve prior response closes.

For example following test case will report an async leak in Node.js v12.2, when using node-fetch at v2.6.0
const fetch = require('node-fetch');

const checkAsyncLeak = () =>
  setTimeout(() => {
    throw new Error('Async leak!');
  }).unref();

fetch('https://google.com', { compress: false })
  .then(response => response.text())
  .then(() => {
    // All request related async jobs should be finalized by now
    checkAsyncLeak();
  });

This issue should no longer occur in the v3.x release.


Test Cases for minimize() method

Write test cases that check for random algorithm instances and problems that no exception occurs.

While running your example code given below, I am getting "No handles with labels found to put in legend." after around 390th iterations. Is there any issue with it?

`from pymoo.operators.crossover.simulated_binary_crossover import SimulatedBinaryCrossover
from pymoo.operators.mutation.polynomial_mutation import PolynomialMutation
from pymoo.optimize import minimize
from pymoo.util import plotting
from pymoo.util.reference_direction import UniformReferenceDirectionFactory
from pymop.factory import get_problem
problem = get_problem("dtlz1", n_var=7, n_obj=3)
create the reference directions to be used for the optimization
ref_dirs = UniformReferenceDirectionFactory(3, n_points=91).do()
create the pareto front for the given reference lines
pf = problem.pareto_front(ref_dirs)
res = minimize(problem,
method='nsga3',
method_args={
'pop_size': 92,
'ref_dirs': ref_dirs},
termination=('n_gen', 400),
pf=pf,
seed=1,
disp=True)
plotting.plot(res.F)`

Thanks for your comment. The warning is printed after the algorithm run has finished. It has nothing to do with the minimize method, but with plotting.plot. (you can comment it out and verify.)
However, I might like to suppress this warning, because it simply says plt.legend() is called but in this case no legends exist.
Let me know if you find something else of your concern.

Thank you.


Add an REST endpoint to trigger backlogQuotaCheck

Fixes #4980
Motivation
Expose an REST endpoint to trigger backlogQuotaCheck. That will make integration tests easier in future without forcing it to sleep and wait the block to kick in backlog quota check.
Modifications
Expose an REST endpoint
Verifying this change
unit test
org.apache.pulsar.broker.service.BacklogQuotaManagerTest#testTriggerBacklogQuotaWithReader

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks


Prepare demo trainer package

Prepare public dataset from paddle.v2.dataset.
Prepare trainer package in demo directory.

I've created https://github.com/PaddlePaddle/Paddle/issues/2298 in Paddle repo, this is more related in there.
Secondly, we need to make use of book and models repo to provide more demos, not copy them around.

Thanks, @typhoonzero , I think we can run the demos of book repo in the first stage, this work including:

How to modify the train.py file in book repo, so it can run on PaddleCloud

Implement the split and cluster_files_reader function as  https://github.com/PaddlePaddle/Paddle/issues/2298
train.py should read the training data from the cluster files using cluster_files_reader function.

Prepare the public dataset

Before deploying PaddleCloud, we should split all the dataset into cluster files and save them on CephFS or HDFS as the public dataset
Trainer job should mount the public dataset directory into the Kubernetes Pod, so the trainer code will read the public dataset from /pfs/$DC_NAME/public/$DATASET/$FILES

#122 is used for prepare public dataset.


Executable jar under OSX: 'The driver executable does not exist'

I'm under MacOS, here's what I get when I run java -jar googlecodejam-cli.jar --init
Initialization] Web browser will open, please authenticate to your Google account with it.
Exception in thread "main" java.lang.IllegalStateException: The driver executable does not exist: /usr/local/bin/geckodriver
at com.google.common.base.Preconditions.checkState(Preconditions.java:518)
at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:123)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:118)
at org.openqa.selenium.firefox.GeckoDriverService.access$100(GeckoDriverService.java:38)
at org.openqa.selenium.firefox.GeckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:112)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:302)
at org.openqa.selenium.firefox.FirefoxDriver.toExecutor(FirefoxDriver.java:233)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:125)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:121)
at fr.faylixe.googlecodejam.cli.SeleniumCookieSupplier.get(SeleniumCookieSupplier.java:66)
at fr.faylixe.googlecodejam.cli.ApplicationCommand.browserInit(ApplicationCommand.java:155)
at fr.faylixe.googlecodejam.cli.ApplicationCommand.init(ApplicationCommand.java:214)
at fr.faylixe.googlecodejam.cli.Application.main(Application.java:53)

I'm under MacOS, here's what I get when I try to run the jar:
Initialization] Web browser will open, please authenticate to your Google account with it.
Exception in thread "main" java.lang.IllegalStateException: The driver executable does not exist: /usr/local/bin/geckodriver
at com.google.common.base.Preconditions.checkState(Preconditions.java:518)
at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:123)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:118)
at org.openqa.selenium.firefox.GeckoDriverService.access$100(GeckoDriverService.java:38)
at org.openqa.selenium.firefox.GeckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:112)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:302)
at org.openqa.selenium.firefox.FirefoxDriver.toExecutor(FirefoxDriver.java:233)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:125)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:121)
at fr.faylixe.googlecodejam.cli.SeleniumCookieSupplier.get(SeleniumCookieSupplier.java:66)
at fr.faylixe.googlecodejam.cli.ApplicationCommand.browserInit(ApplicationCommand.java:155)
at fr.faylixe.googlecodejam.cli.ApplicationCommand.init(ApplicationCommand.java:214)
at fr.faylixe.googlecodejam.cli.Application.main(Application.java:53)

FirefoxDriverManager.getInstance().setup() from io.github.bonigarcia-webdrivermanager sets the driver path dynamically rather hard coding it. I fixed the bug in my local and will be happy to submit the fix in a pull request if you grant me permission!
Thanks for the great tool by the way!

Hi, thanks for the issues. I recently updated the CLI application, as Firefox driver was not natively embedded in Selenium anymore. That was a quick fix, and i need to consider a more complex driver management now. I will update the tools before Round 1A, allowing user to choose browser and driver (as for issue #3) they wants for authentification, and other features like creating sample dataset from problem description.
Thanks for sharing io.github.bonigarcia-webdrivermanager, didn't know about this :).

The issue is now solved by https://github.com/Faylixe/googlecodejam-cli/releases/tag/v1.4.0 release.
Thanks for the contribution again :)

Just tested it, it looks perfect thanks!

Please note though, that the source file upload is still somehow broken (file is correctly uploaded but the built zip file is corrupted into their server). So use this tools for input download only to be sure. For uploading source code and output file uses the dashboard UI.

Hmm, ok thanks for the update. I'll have a deeper look later on today and see if I can hopefully fix the upload problem. I'll let you know.

The real problem with fixing the upload issue is that you can only test it during an online round. I had a test contest opened for testing once for validating my tool, when i didn't spot the issue.  See #5 for more details .

I see, I really want to get this thing working though, so I think I'll sacrifice round 1A just to debug the upload issue. I'll have rounds 1B and 1C to catch up with later.

That a good call if you are in a timeframe that allows to do it efficently.
I'm in France and round 1A is at 3:00am which is quite heavy for debugging
:). Though round 1A is the hardest one since usually top 1000 competitor
solve all problem in a very short time frame (which will never be my case
:p). Plus if your are skilled enough to pass round 1A you won't have any
difficulty to pass B or C (that is a very personal point of view).
Here is what i came up so far to help you:

Output file upload is working, and when doing so if your output file is
correct, the submission is validated without issues from code jam servers.
Source code upload is working, that it, the file is correctly sent to
codejam server. When you are checking your submission in the contest
dashboard, you can download the source file, which will be downloaded as a
ZIP archive.
Problem is : This ZIP archive, is corrupted, if you try to unzip it, you
will have an error.
Some tests performed by CLI users has shown though that the zip file DOES
contains the source file (using crc32 checksum).
Source file DOES exist into codejam server, and i think they can access
it if needed (which imply that using the tools without fixing this problem
won't impact your submission and cause you trouble)

I just think that problem is coming in the way source file is sent to the
server with HTTP, the filename is not sent properly which cause the
corrupted ZIP archive. I tried to understand what was goin' on but
impossible to know without testing contest.
Here are class / method involved :

CodeJamSession#submit() is responsible for creating the upload HTTP
request.
CodeJamSession#createContent() is responsible for creating HTTP
headers with file data.
HttpRequestExecutor#buildFilePart() is the concrete method that
builds header for a file upload.

If you have any question don't hesitate.
2017-04-11 13:47 GMT+02:00 Ahmed<EMAIL_ADDRESS>
I see, I really want to get this thing working though, so I think I'll
sacrifice round 1A just to debug the upload issue. I'll have rounds 1B and
1C to catch up with later.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/Faylixe/googlecodejam-cli/issues/8#issuecomment-293232620,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPR0i55jNnW7YU7Uy1AZxodSbLvGpI2ks5ru2hVgaJpZM4M338J
.

--

Félix Voituret
Research and development engineer
iSmart, SmartLab, Kware
www.ismart.fr http://www.ismart.fr
Phone : +33 6 48 95 75 46, Fax : +33 4 42 24 45 78

If you want you can try to ask Google Code Jam admins to open a testing contest for it. but i think they have lot of work and are not really available for such task.

oh wow, thanks for taking the time to share all the details, I'll keep you posted on what I end up with.
I'm in Tunisia myself, it'll be 2 am when the contest starts which shouldn't be a problem in a Friday night. This is my first code jam, so I don't know how I'm going to compare with competition, I have humble expectations but we'll see. The top 1000 performers in round 1A won't be allowed to participate in subsequent rounds so i believe it's safe enough to assume B and C will be easier.
I did post a question about google's python based commandline tool in their code jam group, the admins did not allow the post for no explicit reason. There are a few reasons I'm guessing might have driven their decision to abandon the tool, it could be that very few users have used it in the past and maybe they find it unfair to give those a privilege over the rest (huge majority) which might not even be aware of the tool. Just my personal random guesses though, I've no evidence obviously. I also tweeted them with no response, so asking them for a testing server won't make a difference I believe.

No problem. I don't have time to handle this unfortunately so i am glad someone want to contribute and try to fix it :)
Concerning the python CLI tools, it is deprecated since few years already since ClientLogin authentification protocol has been closed by Google. Now all Google Services uses OAuth, but CodeJam is the only one who don't, so the situation is quite weird. That is why is use Selenium to perform the login step. The only way to perform HTTP request to the Codejam platform is to be already logged, using the SACSID token into your cookies. I decided to start codejam client, CLI, and Jammy once the old tools were defenitivly dead.
I think they didn't allow you to post since they don't want other users to be aware of a tool that doesn't work anymore, and could lead to issues during contest. I also think they have lot of work to do during contest period, switching with their current work as engineer and time dedicated to Codejam so they are not as much responsive as this tool will never be a priority.

From now if we can switch conversation on #5 as it is an appropriate issue for this problem that would be great :)


"Running" counts can go negative, be out of date when data is dropped

First of all: why are events being dropped? In the instance above, the normal Spark web UI is in a pretty inconsistent state as well:

This application finished successfully hours ago, and all other Spark listeners (e.g. the event log) also seem to have missed most TaskStart/TaskEnd events for the last several jobs, as well as others, like the JobEnd for jobs 16 and 17.
In any case, maybe I should more forcibly prevent "running" counts from going below 0? Kind of hard to say until I figure out:

why the data was dropped
whether the same data was dropped for all listeners (my read/write metrics don't match Spark web UI's for some of the stages where the data loss occurred)

I think the action items here are to:

run on some more big jobs and see if the data loss occurs again
I have an email out to Imran Rashid about the possibility of such data loss
I could refactor my "Counts" sub-records to store maps of indexes that have been {started} x {finished}, which would really give me a high-fidelity view into what's happening in situations like these; I should file that against Spear.

The event-dropping was occurring because Spear was taking too much time in the Spark driver's listener-bus thread.
Current plan is to replace Spear with json-relay-spark-listener and slim, which should allow for higher-bandwidth event processing and mongo-inserting.

I'm going to close this since avoiding event-dropping altogether is really a better fix; slim includes a fair number of defensive safety/sanity checks anyway but we can reopen something there if we ever see the issue again.


Buzzer missing an input and MicroMod header missing 3 inputs

Either replace or remove entirely

Partially resolved by 58e898a

Might just remove all of the headers and add some test points...pros and cons for this!

Removed all headers in 72f3fdb10062914a26627f2d6bb5edec56d367a2


Colouring the navigation and status bar according to do theme?

This would make AndStatus so much nicer. It would also make dark themes mkre usable for me since my navigation bar is white by default.

We do have the setting: "Action bar color" option, having 6 colors from Material design color palettes.
For Android v.5+ it changes both Status bar and Action Bar
So only "Navigation bar" color is not changed (see Using Material Theme)
So it looks like we need to add another option to change navigationBarColor ?! (E.g. as suggested here)?!

I do have Android 5 and it doesn't change it. And we don't need to add another option, if it's supposed to do it automatically that's fine.

Please set "Action bar color" using that option and then provide a screenshot of a timeline view. On my devices this looks like screenshots at https://github.com/andstatus/andstatus/wiki

How do I know, which color "Navigation bar" should have, if not from another AndStatus setting?

OK, my fault regarding the status bar, I apologize. I left it set to device default and it doesn't change there. I'll change the title accordingly.
But the navigation bar is always white, making it a lot harder on the eyes. Could you change it to black, so everyone would have the same look as you have on your device? Or maybe have it light in a light theme, but dark in a dark theme? Thanks.

As different people may have different view on a proper color of the Navigation bar, I will have to add a separate setting for this. This setting will work starting from Android Lollipop (API v.21):
Title: Navigation bar color.
List of values:

Device default  (i.e. do nothing.  As it is now )
The same as Action bar color
White
Black

I'm not sure how to set text color of the Navigation bar...

Afaik the text (or icons) are coloured automatically. I'll gladly test though.

@DoctorJellyface Text and icons color on the Action Bar is now configurable, white by default. See #289 - It's in Beta now!

Done: Navigation bar color is set to the same color as the  Action Bar Background Color.
Released in v.25.02+
        <item name="android:navigationBarColor">?actionBarColor</item>


chore(main): release 0.1.42

:robot: I have created a release beep boop
0.1.42 (2024-04-09)
Features

CLI: check if permission_denied is thrown (#129) (2f856fe)
CLI: User can provide a name, description and link of the pipel… (#142) (45fd2e7)

Bug Fixes

CLI: Check if args of decorators are of a primitive type (#146) (3ca0f51)

Miscellaneous

deps-dev: update build requirement (#144) (38ce2c3)
deps-dev: update pytest requirement from <8.1,>=7.3 to >=7.3,<8.2 (#139) (51938c8)
deps-dev: update pytest-cov requirement (#143) (c4ea0ef)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/BLSQ/openhexa-sdk-python/releases/tag/0.1.42 :sunflower:


manyOf relationship in nullable objects

With the feature introduced by https://github.com/mswjs/data/pull/257, setting a nullable object to null that has a nested relationship (tested with ManyOf), results in a TypeError: Object.defineProperty called on non-object
E.g:
const db = factory({
    a: {
        id: primaryKey(() => 1),
        nested: nullable({
            b: manyOf('b') // problematic
        })
    },
    b: {
        id: primaryKey(() => 1)
    }
});

// Works fine
db.a.create()

// Works fine
db.a.create({ nested: { b: [db.b.create()] } })

// Error
db.a.create({ nested: null })

Object.defineProperty in definePropertyAtPath is called with null (parent)
CC @yishayweb

Hey @diogomiguel
Only saw now that my PR was merged
I will try to take a look at the issue you raised here


⚠ SceneTime has degraded performance

In 49bea46, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 4881 ms

Resolved: SceneTime performance has improved in f2feb96 after 6 minutes.


Add experiment to change interpreter status bar item into a language status item

Use language status API to move interpreter info inside the "Python" item in the right side.
It is unpinned by default.

After pinning and hovering:

When interpreter selected is invalid:

After pinned:

@luabud Should we update any screenshots in getting started experience as we rollout this experiment?

Same question regarding https://github.com/microsoft/vscode-python/issues/18282


[bug] Format date values with expected format

Description
Date values are displayed in ISO 8601 format YYYY-MM-DD but value returned can be formatted differently for single digit days or months.
For example, if you have a date field with a value of 2023-01-09, the value returned will be 2023-1-9.
Because whole numbers are passed into arguments of the function clickDay and then concatenated into a string, the leading zeros are dropped.
This PR adds passes the final values into the dayjs formatter to ensure that the date is formatted correctly.
Fixes #25

Hi @AnalogMemory 👋
Thanks for this PR and sorry for the delay. I wasn't available lately so I didn't have time to properly follow the progress of the package. I find the problem this package solves weird too. I have never encountered it before. I will see your PR.
PR will always be welcome. Again, thanks for the PR.

Thanks @onesine looking forward to seeing these changes in a new release 😺

Sorry for the wait @AnalogMemory, I wanted to add some corrections before publishing a new update. But I will publish it anyway.

This bug still persists when using a footer and the "Apply" button.


GenericClusterProps:managedNodeGroups desiredSize not matching in console

Describe the bug
In my GenericClusterProviderProps I specified a desiredSize for my managedNodeGroups to 4. After deploying the EKS console shows 3 not 4 EC2 instances.
Expected Behavior
The desiredSize should match in the EKS console
Current Behavior
Currently the count of EC2 managed nodes are off by one.
Reproduction Steps
const clusterProvider = new blueprints.GenericClusterProvider({
version: KubernetesVersion.V1_21,
serviceIpv4Cidr: "<IP_ADDRESS>/16"
managedNodeGroups: [
{
id: "mng1",
amiType: NodegroupAmiType.AL2_X86_64,
instanceTypes: [new InstanceType('m5.2xlarge')],
minSize: 1,
maxSize: 10
desiredSize: 4
}
]
}
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.20
EKS Blueprints Version
1.0.0
Node.js Version
16
Environment details (OS name and version, etc.)
MacOS
Other information
No response

@daveschmidt86  thank you for submitting the issue.
I was not able to reproduce it with the versions you specified. Tried with 1.0.0 and 1.0.1 and different CDK versions as well.
There may be an issue related to the project setup that we can review.

@daveschmidt86 were you able to reproduce this after the initial occurence?

@daveschmidt86 Closing this issue as we have not heard back in 4 months. We couldnt reproduce the issue, if you still face issues, reopen the ticket.


use more powerful runners

This is ~2x as fast as before (9mins vs 20mins) which is a decent improvement, but considering that the new hardware is 8x as powerful (16 CPUs vs 2 CPUs) I'm wondering if there is something else that we could do to speed up the tests.
FWIW, this completes in 6mins locally via go test -race -v ./...

I am running now with go test -race -v -parallel=16 ./...

Looks good! I'm wondering if we should split the job with -race in a separate workflow that only runs after merging into specific branches (e.g. cloak).
This is good to merge, it's OK to sit on the above thought for a while.
FTR https://go.dev/blog/race-detector

@gerhard Forgot to comment somewhere, I decided to keep it in the PR workflow because I'm afraid I won't notice it failing anywhere else. I spend 99% of my time in the PR view and almost never look at the main branch.
I also considered setting up a separate workflow that alerts Discord when it fails, but we'd need a webhook URL for that, so I opted to just make it another job that runs after the fast one.
In its current state it's a judgment call as to whether you wait for the race-detector job. I think it's fine to merge before it goes green for PRs that are unlikely to introduce race conditions. We'll notice any race conditions eventually, and with it being per-PR we should still be able to track it down to where it was introduced, even if it was merged early.


Gaia x

What do these changes do?
To upgrade the Gaia engine
Related issue number
#800

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.2 out of 3 committers have signed the CLA.:white_check_mark: bmmcq:white_check_mark: youyangy:x: longbin.lailblongbin.lailb 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.


Allow modification of default renderers

I've been happily using RENDER_ANSI, there is just one little detail I'd like to change.
I want a full ISO-8601 timestamp for the log messages;
2023-07-27T10:40:31.540076647+02300  INFO [                main] :        Configuration : Reading configuration from klogging.json on the classpath

The rest of the log message is ok, but as it stands now I'd have to copy the whole code of the RENDER_ANSI to change a single field

I am aware that it customer renderers are a bit tricky to implement. Possible with configuration DSL but not with JSON files.
The RENDER_ANSI renderer is modelled on a Log4J appender. It is designed for human reading during interactive execution with colouring. It omits the date for brevity.
The similar RENDER_SIMPLE renderer includes the date but omits the colours.
I have created an experimental RENDER_ISO8601 renderer that uses ISO8601 timestamps and no colours. You can try it with the snapshot build that includes it.

I believe the changes in #211 (i.e. changing RenderString and EventSender from functional types to interfaces) provide this need.

I have created an experimental RENDER_ISO8601 renderer that uses ISO8601 timestamps and no colours. You can try it in version 0.4.21 and later.

Yes, that's been working nicely except for the missing colors 😁

I believe the changes in #211 (i.e. changing RenderString and EventSender from functional types to interfaces) provide this need.

I don't know how that helps me not to copy the whole block? As far as I can see it, I'd have to copy the following block;
public val RENDER_ANSI: RenderString = object : RenderString {
    override fun invoke(event: LogEvent): String {
        val message = "${event.timestamp.localTime} ${event.level.colour5} [${event.context?.right20}] :" +
                " ${event.logger.right20} : ${event.evalTemplate()}"
        val maybeItems = if (event.items.isNotEmpty()) " : ${event.items}" else ""
        val maybeStackTrace = if (event.stackTrace != null) "\n${event.stackTrace}" else ""
        return message + maybeItems + maybeStackTrace
    }
}

just to remove the .localTime part

@cwrau I have extracted console rendering of event items and stack trace, as you can see from the above commit.
That should make it simpler for you to create the renderer you want:

Local time or ISO8601 timestamp
Event level in colour or not
Full context or truncated
Full logger name or truncated
With or without event items (if present)
With or without stack trace (if present)

@cwrau I have extracted console rendering of event items and stack trace, as you can see from the above commit.
That should make it simpler for you to create the renderer you want:

Local time or ISO8601 timestamp
Event level in colour or not
Full context or truncated
Full logger name or truncated
With or without event items (if present)
With or without stack trace (if present)

Sounds amazing!
I tried publishing it locally, but I always get Cannot perform signing task ':jdk-platform-klogging:signJvmPublication' because it has no configured signatory
I tried setting SIGNING_KEY="$(gpg --armor --export-secret-keys 6ADCBD3FF206F341D2CF8E2C49D1B5ACCF53CA1C B)" SIGNING_KEY_ID=6ADCBD3FF206F341D2CF8E2C49D1B5ACCF53CA1C, but that didn't help 😅

Where were you trying to publish the library?
I have included the new changes in version 0.7.1 of Klogging. If it is not available from Maven Central yet, you can specify:
repositories {
    // ...
    maven {
        url = uri("https://s01.oss.sonatype.org/content/repositories/releases/")
    }
}

dependencies {
    // ...
    implementation("io.klogging:klogging-jvm:0.7.1")
}

Where were you trying to publish the library?

Yes and no, I was trying to publish it locally, to test your changes, with gradle publishToMavenLocal

I am aware that it customer renderers are a bit tricky to implement. Possible with configuration DSL but not with JSON files.

Just wanted to point out that you can very well point out either your own event sink or own renderer with the JSON config:
  "sinks": {
    "stdout": {
      "renderWith": "com.stuff.common.logging.StdOut",
      "sendTo": "STDOUT"
    },
    "logback": {
      "eventSender": "com.stuff.common.logging.LogbackSink"
    }
  }

Both methods not yet documented at klogging.io

Both methods not yet documented at klogging.io

Not strictly true: please see Custom rendering and sending


Machine should not use 'unsafe' characters in Openstack keypair

When executing docker-machine create using the openstack driver, machine will attempt to create a keypair with a name that uses the machine name concatenated with what appears to be a UUID/GUID.
For example, creating a machine test.example.org will result in the key name being:
test.example.org--60bbb7c7c0a8...
Unfortunately, it seems that Openstack does not consider periods to be valid ('unsafe') for the keypair name:
Error creating machine: Error in driver during machine creation:
Expected HTTP response code [200] when accessing [POST https://my.openstack.endpoint.com], but got 400 instead
{"badRequest": {"message": "Keypair data is invalid: Keypair name contains unsafe characters", "code": 400}}

Reviewing the nova codebase, only underscores, hyphens, and alphanumeric characters are allowed for keypair names:
https://github.com/openstack/nova/blob/c44f711a0494db40ebbdacf85bfc3e7e2a357bf8/nova/compute/api.py#L3734
    def _validate_new_key_pair(self, context, user_id, key_name, key_type):
        safe_chars = "_- " + string.digits + string.ascii_letters
        clean_value = "".join(x for x in key_name if x in safe_chars)
        if clean_value != key_name:
            raise exception.InvalidKeypair(
                reason=_("Keypair name contains unsafe characters"))

A possible solution for this would be to replace these spooky, unsafe characters with either a hyphen or an underscore, ex:
test_example_org--60bbb7c7c0a8...
✗ docker-machine -v
docker-machine version 0.5.2 ( 0456b9f )

cc @ggiamarchi

Fixed with https://github.com/docker/machine/pull/2501


9.0.0-SNAPSHOT mandatory use Gradle 4.6 on AndroidStudio 3.1.x

Reproduce steps:

Reference compilation plugin
classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-SNAPSHOT'

2.build or sync project, report an error
Minimum supported Gradle version is 4.6. Current version is 4.4.

Please fix the project's Gradle settings.
Fix Gradle wrapper and re-import project
Gradle settings

Although upgrading Gradle is not a problem, the SDK and dependencies are required to be upgraded after the upgrade. It has caused me some trouble.

If I may ask did you run into these gradle build errors:

The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.

and

The targetSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.

If so, how did you fix them please?
android {
    flavorDimensions "versionCode"
    compileSdkVersion 27
    buildToolsVersion '28.0.2'
    defaultConfig {
        applicationId "com.appid"
        minSdkVersion 21
        targetSdkVersion 27
        versionCode 1234
        versionName "<IP_ADDRESS>"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
...
}

I already had these values set in the defaultConfig in the gradle file. They only appear in the merged manifest.


optional: use name of sample sheet as prefix for config/manifest dump

running generic workflows with different sample sheets leads to the problem that the generically named config and manifest dumps won't be recreated or have to be overwritten. add a config option to use the base name (i.e. samples_A.tsv => samples_A) as prefix for the file dumps

addendum: incorporate sample sheet - if provided, should usually be the case - into manifest output and copy into results folder as well

Closed via #25


Meta-Issue: Example case for instance data description in triples

Description of the issue
Although I did not not participate in the developer meeting (but will do in the next one) I understood from discussions with @p-kuckertz that a central goal of the ontology development is to use it to describe real world data for modeling purposes.
OWL can give an umambiguous definition to instance data. This makes different data sources comparable and mergable. Futher, it allows to validate the instance data for ontological consistency and constraints to identify missing, false or inconsistent data using a Shapes Constraint Language (SHACL).
To describe instance data we require a trible of class, attribute and constraint.
In this issue I would like to present a short example of instance data for an electrolyzer to discuss the development of such triples in the ontology. Please note, that this is just an example to identify the requirements for decribing instance data in the OEO and as a basis for further discussions.
EXAMPLE:

A electrolysis system has none or many

electrolysis stack
gas compression
gas cooling
gas purification
water conditioning
water cooling
water pump
power electronics

A electrolysis system has none or one

container

General properties:

attribute
quantity value
example unit
example range
example data

manufacturer
-
-
-
AREVA H2GEN

series
-
-
-
E10

reference year
year
-
-
2020

Economic properties:

attribute
quantity value
example unit
example range
example data

Investfix
currency
EUR
>0
-

Invest variable
currency per power
EUR/kW
>0
-

OPEX fix
currency
EUR
>0
-

OPEX variable
currency per power
EUR/kW
>0
-

Technical Properties:

attribute
quantity value
example unit
example range
example data

input
List[commodity]
-
-
DC power, water

output
List[commodity]
-
-
hydrogen, oxygen, waste-heat

electrical power
power
kW
>0
80

specific energy consumption
energy per volume
kWh/Nm^3
>0
5.3

voltage level
voltage
V
>0
400

frequency
frequency
Hz
>0
50

part load min
ratio
%
[0,100]
-

part load max
ratio
%
[0,100]
-

input water mass flow max
volume per time
l/h
>0
20

input water conductivity max
conductivity per length
μS/cm
>0
2000

input water PH value min
PH value
-
[0,14]
4

input water PH value max
PH value
-
[0,14]
10

input water temperature min
temperature
°C
>0
5

input water temperature max
temperature
°C
>0
40

input water pressure min
pressure
barg
>0
2

input water pressure max
pressure
barg
>0
6

output hydrogen mass flow nom
volume per time
Nm^3/h
>0
10

output hydrogen pressure max
pressure
barg
>0
50

output hydrogen purity min
-
-
>0
3.0

output hydrogen purity max
-
-
>0
-

output oxygen mass flow nom
volume per time
Nm^3/h
>0
5

output oxygen pressure nom
pressure
barg
>0
13

output oxygen purtiy min
-
-
>0
-

output waste-heat mass flow
volume per time
m^3/h
>0
2

output waste-heat energy flow
power
kWh/h
>0
-

output waste-heat temperature
temperature
K
>0
-

lifetime
time
a
>0
20

ambient temperaturem min
temperature
°C
>0
3

ambient temperature max
temperature
°C
>0
40

ambient humidity min
humidity
%
[0,100]
0

ambient humidity max
humidity
%
[0,100]
95

Workflow checklist

[x] I discussed the issue with someone else than me before working on a solution
[x] I already read the latest version of the workflow for this repository
[x] The goal of this ontology is clear to me

I am aware that

[x] every entry in the ontology should have a definition
[x] classes should arise from concepts rather than from words

That's a quite specific and huge example. I would suggest that we focus first on how to implement only the economic properties. These are the most important attributes in energy system models and I use them in my model for nearly every process. But I am not an ontology expert, so my question to  @OpenEnergyPlatform/oeo-general-expert-formal-ontology  is: is it possible that we include for example a class "fix investment costs" and link it somehow to every process or artificial object which could have invest costs?

Yes it is not small - but we did not want to leave anything out in order to show how complex it can get.
But it is not our primary purpose to fully implement everything what is mentioned in the example. We would rather like to learn how attributes, constraints, units, etc are to be properly incorporated.

Related to #268

Until now, we've never really implemented the connection between "objects" and "attributes". From the past discussions on quantity values I tried to understand how this could be done within the OEO. With the help of @jannahastings I made a slide to illustrate the process. I hope it is helpful for you, too.
This topic should definitely be on the agenda for the next developer meeting.

is it possible that we include for example a class "fix investment costs" and link it somehow to every process or artificial object which could have invest costs?

That should be no problem. I am not sure if we've already an appropriate relation for that, though. We have produces, but that doesn't really fit in my opinion. Maybe somethiong like causes / caused by or more specific has costs?!

attribute
quantity value
example unit
example range
example data

output waste-heat mass flow
volume per time
m^3/h
>0
2

A mass of heat that is measured as a volume 🤔🤣

Once we implement the composed module, we can work on this issue.

@chrwm @stap-m : I  think this is also something that can be implemented now with the extended module. Shall we transfer this issue to the oeo-extended repo?


Markdown mail::panel shows RAW HTML

Laravel Version: v6.10.0
PHP Version: 7.2.21 (Valet / Mac OS)
Database Driver & Version:

Description:
Markdown parser @component('mail::panel') shows RAW HTML tags. This issue is not present in Laravel version v6.9.0 and bellow.
Steps To Reproduce:

Install fresh laravel installation and setup SMTP...
Create App/Mail/TestMail.php

...

public function build()
{
    return $this->subject('test markdown error')
                ->markdown('email');
}

Create resources/views/email.blade.php

@component('mail::message')
# Hello

@component('mail::panel')
This is the panel content.
@endcomponent

@endcomponent

Send email
Mail::to('your@email.com')->send(new TestMail);

Email with markdown panel component will be broken.

I can confirm the issue on v6.10.0, will have a look and submit a PR if possible...

The markdown parser was switched to CommonMark under the hood.

Did some debugging and if I remove a part of the indenting from vendor\laravel\framework\src\Illuminate\Mail\resources\views\html\panel.blade.php it appears to work.

    {{ Illuminate\Mail\Markdown::parse($slot) }}

Otherwise CommonMark detects it as IndentedCode and wraps it in a PRE tag.
See: vendor\league\commonmark\src\Block\Renderer\IndentedCodeRenderer

Did some debugging and if I remove a part of the indenting from vendor\laravel\framework\src\Illuminate\Mail\resources\views\html\panel.blade.php it appears to work.

    {{ Illuminate\Mail\Markdown::parse($slot) }}

Otherwise CommonMark detects it as IndentedCode and wraps it in a PRE tag.
See: vendor\league\commonmark\src\Block\Renderer\IndentedCodeRenderer

But we need to mention, that panel.blade.com could be extracted into application, and if someone updates laravel, backward compactibility wont work, and bug will persist in all previous laravel apps with extracted panel template.

@MarekGogol my comment wasn't supposed to be interpreted as a fix, I'm just trying to pinpoint the problem and sharing my findings along the way...

Can confirm issue.

Will be fixed in next 6.x maintenance release.

Fixed in 6.10.1.

Fixed in 6.10.1.
https://github.com/laravel/framework/commit/f17e347b15e8d27b4e775a8f961bda083326ee8f

Thanks for fixing this @taylorotwell. But I think this is not the right solution for fixing this problem. Backward compatibility is broken with your new release v6.10.1 for all laravel users which have exported panel.blade.php into resources/views/vendor.
So this is not an appropriate fix. Or is it?
Check my previous comment.
https://github.com/laravel/framework/issues/31065#issuecomment-572031647

@taylorotwell this is not fix. this is workaround. just a workaround.

I tried to run
php artisan vendor:publish --tag=laravel-mail
but now got this new error
In VendorPublishCommand.php line 233:
Class 'League\Flysystem\MountManager' not found

I realized my issue was I had published the vendor files to customize the blade templates.
php artisan vendor:publish --tag=laravel-mail --force worked for me.
Of course, if you made any modifications to the blade templates you'll have to redo them.

Wow, Laravel 7.• and that problem still appears... Sooo I fixed it by NOT exporting the vendor files and not touching anything other than the blade file that I have created for the mail... Just remove all the indents, for example -
-> from
@component('mail::message')
    # Order Placed

    Your order has been placed!

    @component('mail::button', ['url' => $url])
        View Order
    @endcomponent

    You have paid: {{ $order->billing_total }}

    Thanks,

    {{ config('app.name') }}
@endcomponent

to
@component('mail::message')
# Order Placed

Your order has been placed!

@component('mail::button', ['url' => $url])
View Order
@endcomponent

You have paid: {{ $order->billing_total }}

Thanks,

{{ config('app.name') }}
@endcomponent

not the most beautiful file to go over after but it works with not much of a hacky way...
Hope it helps someone!

Removing the indents did not solve it for me.
I had to run:

php artisan vendor:publish --tag=laravel-mail --force

Still an issue in Laravel 7.6.

Hey everyone, as explained a couple of times already this isn't a bug but expected behavior. Because of the new Markdown parses in Laravel 7 templates need to be de-indented. See Taylor's response here: https://github.com/laravel/framework/issues/31151#issuecomment-575619249


4.9.1 Post-release checklist

These are chores that we should do before starting the cycle to reduce ripple effects if we do it in mid-cycle.
Tips:

Clean your repo before start
Remove node_modules from all folder

git clean -fdx

Never delete package-lock.json
If you mess it up, tableflip and redo
In component/package.json

Remove reference to botframework-webchat-core by hand-modifying package.json
Then, npm install
Then, add those references back by hand-modifying package.json
Also for other packages with similar dependencies

Applies to all releases

This list should be copied to versions in the future.

[x] Bump package.json to 4.9.2-0

The PR number is #3233

[x] ~On QFE branch, make sure CHANGELOG.md is cherry-picked to master~

Applies to major/minor releases

[x] ~Bump all dependencies to latest version~

We are not bumping dependencies as 4.9.2 release is imminent
[x] ~All NPM packages (@babel/*, jest, lerna, typescript, webpack, etc) (#XXX)~
[x] ~Docker container for headless Chrome (#XXX)~
Don't bump the following packages

react, react-dom, redux, redux-saga

Locking down for app compatibility

remark and strip-markdown

remark don't work under IE11
Go to the repos and see if this is fixed or by design

serve
rxjs on playground
microsoft-cognitiveservices-speech-sdk

[x] ~Run npm audit fix to make sure everything is fixed~
[x] ~Test under IE11 to make sure all dependencies are working~

[x] Update servicingPlan.json

Add deprecation notes for previous versions
Subresource integrity hash from https://github.com/microsoft/BotFramework-WebChat/releases/tag/v4.9.1
The PR is #3233

[x] Update all samples to use 4.9.1

The PR is #3233
Search for <script src="https://github.com/microsoft/BotFramework-WebChat/releases/download/daily/webchat.js"></script>

Done.


Breakage with recent nightly

   Compiling itertools v0.4.13
/Users/alexbool/.cargo/registry/src/github.com-1ecc6299db9ec823/itertools-0.4.13/src/free.rs:218:1: 224:2 error: type mismatch resolving `<<J as std::iter::IntoIterator>::IntoIter as std::iter::Iterator>::Item == <I as std::iter::IntoIterator>::Item`:
 expected type parameter,
    found associated type [E0271]
/Users/alexbool/.cargo/registry/src/github.com-1ecc6299db9ec823/itertools-0.4.13/src/free.rs:218 pub fn merge<I, J>(i: I, j: J) -> Merge<I::IntoIter, J::IntoIter>
                                                                                ^
/Users/alexbool/.cargo/registry/src/github.com-1ecc6299db9ec823/itertools-0.4.13/src/free.rs:218:1: 224:2 help: run `rustc --explain E0271` to see a detailed explanation
/Users/alexbool/.cargo/registry/src/github.com-1ecc6299db9ec823/itertools-0.4.13/src/free.rs:218:1: 224:2 note: required by `adaptors::Merge`
error: aborting due to previous error
Build failed, waiting for other jobs to finish...
error: Could not compile `itertools`.

alexbool@alexbool-osx ~/D/I/i/r/portfolio> rustc -vV
rustc 1.10.0-nightly (22ac88f1a 2016-05-11)
binary: rustc
commit-hash: 22ac88f1a47a82195a49fbff3cf24a2c395d7a81
commit-date: 2016-05-11
host: x86_64-apple-darwin
release: 1.10.0-nightly

Whoops, seems like already reported https://github.com/rust-lang/rust/issues/33587

Thank you for reporting it here. I don't see a way to work around it without breaking changes, so unsure if I can do anything but hope that it the regression is fixed soon.

Workaround in itertools version 0.4.14.

Thank you so much!

Oops, I managed to remove itertools::free::chain in the workaround. Was a bit too quick. It won't hurt most, but I'll fix that now too.


get "known bad" error on 1.9.3 byteball wallet

here is a log from my payment attempt:
could this also be a problem of the contract?
sending payment in base
outbound peers: wss://byteball.org/bb
SENDING ["request",{"command":"light/get_parents_and_last_ball_and_witness_list_unit","params":{"witnesses":["BVVJ2K7ENPZZ3VYZFWQWK7ISPCATFIW3","DJMMI5JYA5BWQYSXDPRZJVLW3UGL3GJS","FOPUBEUPBC6YLIQDLKL6EW775BMV7YOH","GFK3RDAPQLLNCMQEVGGD2KCPZTLSG3HN","H5EZTQE7ABFH27AUDTQFMZIALANK6RBG","I2ADHGP4HL6J37NQAD73J7E5SKFIXJOT","JEDZYC2HMGDBIDQKG3XSTXUSHMCBK725","JPQKPRI5FMTQRJF4ZZMYZYDQVRD55OTC","OYW2XTDKSNKGSEZ27LMGNOPJSYIXHBHC","S7N5FE42F6ONPNDQLCF64E2MGFYKQR2I","TKT4UESIKTTRALRRLWS4SENSTJX6ODCW","UENJPVZ7HVHM6QGVGT6MWOJGGRTUTJXQ"]},"tag":"0cKYzeG4R688aC+BTqkHMrC4QAiytyqjlyMIKd7kmOY="}] to wss://byteball.org/bb
RECEIVED ["response",{"tag":"0cKYzeG4R688aC+BTqkHMrC4QAiytyqjlyMIKd7kmOY=","response":{"parent_units":["Dj9CQ0MfE4EEqhlLpHOF6CtAa44wZLzFLaKtB2B6W+8="],"last_stable_mc_ball":"5I2vit+WsQMHB/lBjWjVjUpKA3qzYMOF5xMokjyoWy0=","last_stable_mc_ball_unit":"jfHJWhoy22leprs+m5c7GzcsepGTYoZkPm83rCbkmPY=","last_stable_mc_ball_mci":799776,"witness_list_unit":"oj8yEksX9Ubq7lLc+p6F2uyHUuynugeVq4+ikT67X6E="}}] from wss://byteball.org/bb
lock acquired ["c-DYKJLDOG22WJZI5GKXE2FJGUWJIV7HRB", "c-ZWTXO3GM2G4LUG7TBGLFCXK5RMYVPUQQ"]
pick coins null amount Infinity
DYKJLDOG22WJZI5GKXE2FJGUWJIV7HRB headers_commission: got only 10000 out of required Infinity
DYKJLDOG22WJZI5GKXE2FJGUWJIV7HRB witnessing: got only 10000 out of required Infinity
inputs increased payload by 60
{ unit:
{ version: '1.0',
alt: '1',
messages:
[ { app: 'payment',
payload_location: 'inline',
payload_hash: 'RhmBF9h1OC3YGuDkYW8xUBNEEgVP1MXakE5GDvzqJZA=',
payload:
{ outputs: [ { address: 'A5VKYY6JBI4WVZTMJAJY7IBJW3LXQSHA', amount: 9082 } ],
inputs:
[ { unit: 'bpbNQxSNX9vLVlW1hPHsQx5dQ+4oyGNnLIkBh/2wHjk=',
message_index: 0,
output_index: 1 } ] } } ],
authors:
[ { address: 'DYKJLDOG22WJZI5GKXE2FJGUWJIV7HRB',
authentifiers: { 'r.1.0': 'GRVngJXy0JQQAX1GES2a9a1osV+Nbcl9no/RWTcVhuAcDnxxcDW8QI7EIZ5T4RvNgdg6C7bNgGz2pxU7c9Ipiw==' },
definition:
[ 'or',
[ [ 'and',
[ [ 'address', '3XEJBQSULFXYVXARJ56AQE7K6O3UBKO5' ],
[ 'has',
{ what: 'output',
asset: 'base',
amount_at_least: 800000,
address: 'ZWTXO3GM2G4LUG7TBGLFCXK5RMYVPUQQ' } ] ] ],
[ 'and',
[ [ 'address', 'ZWTXO3GM2G4LUG7TBGLFCXK5RMYVPUQQ' ],
[ 'in data feed',
[ [ 'OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD' ],
'timestamp',
'>',
1500812847748 ] ],
[ 'not',
[ 'has',
{ what: 'output',
asset: 'base',
amount_at_least: 800000,
address: 'ZWTXO3GM2G4LUG7TBGLFCXK5RMYVPUQQ' } ] ] ] ] ] ] },
{ address: 'ZWTXO3GM2G4LUG7TBGLFCXK5RMYVPUQQ',
authentifiers: { r: 'GRVngJXy0JQQAX1GES2a9a1osV+Nbcl9no/RWTcVhuAcDnxxcDW8QI7EIZ5T4RvNgdg6C7bNgGz2pxU7c9Ipiw==' } } ],
earned_headers_commission_recipients:
[ { address: 'A5VKYY6JBI4WVZTMJAJY7IBJW3LXQSHA',
earned_headers_commission_share: 100 } ],
parent_units: [ 'Dj9CQ0MfE4EEqhlLpHOF6CtAa44wZLzFLaKtB2B6W+8=' ],
last_ball: '5I2vit+WsQMHB/lBjWjVjUpKA3qzYMOF5xMokjyoWy0=',
last_ball_unit: 'jfHJWhoy22leprs+m5c7GzcsepGTYoZkPm83rCbkmPY=',
witness_list_unit: 'oj8yEksX9Ubq7lLc+p6F2uyHUuynugeVq4+ikT67X6E=',
headers_commission: 761,
payload_commission: 157,
unit: 'NbbkcXsMO/AM69VD1idGt8kG5oossslJJr8ukGGG4lQ=' } }
validating joint identified by unit NbbkcXsMO/AM69VD1idGt8kG5oossslJJr8ukGGG4lQ=
base asset OK good
posing joint identified by unit NbbkcXsMO/AM69VD1idGt8kG5oossslJJr8ukGGG4lQ= to light vendor
outbound peers: wss://byteball.org/bb
SENDING ["request",{"command":"post_joint","params":{"unit":{"version":"1.0","alt":"1","messages":[{"app":"payment","payload_location":"inline","payload_hash":"RhmBF9h1OC3YGuDkYW8xUBNEEgVP1MXakE5GDvzqJZA=","payload":{"outputs":[{"address":"A5VKYY6JBI4WVZTMJAJY7IBJW3LXQSHA","amount":9082}],"inputs":[{"unit":"bpbNQxSNX9vLVlW1hPHsQx5dQ+4oyGNnLIkBh/2wHjk=","message_index":0,"output_index":1}]}}],"authors":[{"address":"DYKJLDOG22WJZI5GKXE2FJGUWJIV7HRB","authentifiers":{"r.1.0":"GRVngJXy0JQQAX1GES2a9a1osV+Nbcl9no/RWTcVhuAcDnxxcDW8QI7EIZ5T4RvNgdg6C7bNgGz2pxU7c9Ipiw=="},"definition":["or",[["and",[["address","3XEJBQSULFXYVXARJ56AQE7K6O3UBKO5"],["has",{"what":"output","asset":"base","amount_at_least":800000,"address":"ZWTXO3GM2G4LUG7TBGLFCXK5RMYVPUQQ"}]]],["and",[["address","ZWTXO3GM2G4LUG7TBGLFCXK5RMYVPUQQ"],["in data feed",[["OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD"],"timestamp",">",1500812847748]],["not",["has",{"what":"output","asset":"base","amount_at_least":800000,"address":"ZWTXO3GM2G4LUG7TBGLFCXK5RMYVPUQQ"}]]]]]]},{"address":"ZWTXO3GM2G4LUG7TBGLFCXK5RMYVPUQQ","authentifiers":{"r":"GRVngJXy0JQQAX1GES2a9a1osV+Nbcl9no/RWTcVhuAcDnxxcDW8QI7EIZ5T4RvNgdg6C7bNgGz2pxU7c9Ipiw=="}}],"earned_headers_commission_recipients":[{"address":"A5VKYY6JBI4WVZTMJAJY7IBJW3LXQSHA","earned_headers_commission_share":100}],"parent_units":["Dj9CQ0MfE4EEqhlLpHOF6CtAa44wZLzFLaKtB2B6W+8="],"last_ball":"5I2vit+WsQMHB/lBjWjVjUpKA3qzYMOF5xMokjyoWy0=","last_ball_unit":"jfHJWhoy22leprs+m5c7GzcsepGTYoZkPm83rCbkmPY=","witness_list_unit":"oj8yEksX9Ubq7lLc+p6F2uyHUuynugeVq4+ikT67X6E=","headers_commission":761,"payload_commission":157,"unit":"NbbkcXsMO/AM69VD1idGt8kG5oossslJJr8ukGGG4lQ=","timestamp":1500814735}},"tag":"cHOsOc4bsqil2Wyd2NlHJjWOHK6p2zsfWoA+mhf9o/o="}] to wss://byteball.org/bb
RECEIVED ["response",{"tag":"cHOsOc4bsqil2Wyd2NlHJjWOHK6p2zsfWoA+mhf9o/o=","response":{"error":"known bad"}}] from wss://byteball.org/bb
failed to post base payment NbbkcXsMO/AM69VD1idGt8kG5oossslJJr8ukGGG4lQ=
lock released ["c-DYKJLDOG22WJZI5GKXE2FJGUWJIV7HRB", "c-ZWTXO3GM2G4LUG7TBGLFCXK5RMYVPUQQ"]
handleQueue 0 items
handleQueue done 0 items
done payment in base, err=known bad
queued jobs: [], locked keys: []
0 incoming connections, 1 outgoing connections, 0 outgoing connections being opened
logging in to hub byteball.org/bb
outbound peers: wss://byteball.org/bb
resending stalled messages
lock acquired ["stalled"]
lock acquired ["private_chains"]
lock acquired ["saved_private"]
0 stalled messages
lock released ["stalled"]
handleQueue 0 items
handleQueue done 0 items
lock released ["private_chains"]
handleQueue 0 items
handleQueue done 0 items
lock released ["saved_private"]
handleQueue 0 items
handleQueue done 0 items
outbound peers: wss://byteball.org/bb
already connected to light vendor

Most likely, you can't spend this contract.  The first time you try to do it you get a reason why.  If you repeat without any changes, you get "known bad".
I see OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD in the contract, it is a testnet timestamper but you are working on livenet.  You might have messed up your configs.

oh yea, that is clearly an issue with this contract. Strange anyway that it is parsed correctly in my wallet.


docs: Add alt text for images

Images previously had no alt text, which is an accessibility issue.
This adds alt text to all images in the documentation.
Special thanks to @davidekete for collaborating with the Ubuntu WSL team through the Canonical Documentation Academy and writing appropriate and effective alt the text for the images.
See the original Open Documentation Academy PR here.
UDENG-3784

Thanks for all your help @edibotopic. I couldn't have done it without you!


pinnwand: 1.1.1 -> 1.1.2

Motivation for this change
New upstream release: https://github.com/supakeen/pinnwand/releases/tag/v1.1.2
Also updated the pygments dependency.
Please also take a look at https://github.com/NixOS/nixpkgs/pull/89444. It has the CLI tool, a module and tests.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Okay, pygments seems to be a rather popular package, so I'm probably better splitting it off.


How to force a  query to re-cache the data?

Summary of the issue
I am getting an exception on specific data (callstack at the end), for some reason it looks like some int data in the cache is invalid. I can get around it by doing a try/catch and just querying the database on the catch, but I am wondering if there's a way to remove a specific cached entry.
In my specific case for example, I have this:
                    estCatInfoList = await osirisContext.estCatView                        .Where(e => e.estID == estID)                        .Cacheable(CacheExpirationMode.Absolute, TimeSpan.FromHours(24)) //Cache this query                        .ToListAsync();
But because I do not know what's the EFCacheKey used for this query, I can't call InvalidateCacheDependencies(...).  Is there a way for me to generate that EFCacheKey? It would also be really useful to have a parameter in the Cacheable function to invalidate the cache and re-cache the result from the DB.
Exception that I get:
System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at System.Number.ParseInt32(ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)
at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType)
at EFCoreSecondLevelCacheInterceptor.EFTableRowsDataReader.GetInt32(Int32 ordinal)
(I am using easy caching redis by the way)

Read the readme file.


Fix git version detection.

Bug report
vim-plug detects the version of git by taking the output of git --version, and extracting the last group of characters separated by spaces. But it fails to extract the version number from the output correctly in with Apple's version of git in macOS. This happens because Apple adds their own release number at the end of git --version.  So where git --version on say, Ubuntu shows:
$ git --version
git version 2.7.4

git --version on macOS shows:
$ git --version
git version 2.9.3 (Apple Git-75)

Here, vim-plug can't detect the version correctly for Apple's git, since it's looking at the Git-75) part, not 2.9.3.
This is especially problematic for macOS, because failure to correctly detect the version of git causes vim-plug to inject git::@ in the URL by default. When this URL is used to download plugins, an invalid entry is made in the Keychain, causing problems for other programs accessing GitHub (See screenshots below).

Changes in this PR
The second group of characters separated by spaces is extracted from git --version, instead of the last.

Merged, thanks!


Default type on input set as attribute

This is my test case:
const bel = require('bel');
console.log(bel`<input type="hidden" name="name" value="value" />`.toString());

Which currently outputs <input type="text" type="hidden" name="test" value="" /> when min-document is being used via global, within node.
I'm not sure where or why the type property is rendered as an attribute, but it seems like it should be set as an attribute rather than a property, which removes the duplicate rendered attribute.

I think this looks reasonable; If it's not too much trouble, could you perhaps add a test to catch future regressions? Thanks! :sparkles:

I added a test, and also updated the test this had broken.

@Raynos any chance we could get this in?

If properties are the source of truth, then I guess bel needs to be updated (around https://github.com/shama/bel/blob/master/index.js#L92) to set type as a property rather than an attribute. Is there any documentation of which attributes rely on properties?

After looking at this more, I think I understand it better. Here's what I've found:

What bel does works with browser DOM, so the change needs to happen in min-document.
Specifically, what needs to change is the attribute type and the property type should be the same thing, on both set and get, as they are in browser DOM.
And because min-document outputs both attributes and properties, only one of the two should ever get set to prevent duplicate type= output.
As there are no getters and setters on properties that would allow setting attributes instead, this must go the other way, setting and getting the property any time the attribute is set or get.

Updated PR does that by changing DOMElement.prototype.setAttributeNS and DOMElement.prototype.getAttributeNS so they set and get the property rather than attribute for input type.

This is great, thanks @sreynen
I like this solution.

Fixed in 2.19.0

I ran into this bug and was directed to this PR. Could 2.19.0 be published to npm please?

Never mind, my cache was stale. Carry on!


Add "slop" when anchor build

#642
https://github.com/clap-rs/clap/blob/44ae55fa4e33a2952f66e7d4f73782cff7c8f1f0/examples/22_stop_parsing_with_--.rs
arowana:~/the-best-projects-in-the-universe/anchor/tests/events$ ../../target/debug/anchor build -- --help
solana-cargo-build-bpf 1.7.10
Compile a local package and all of its dependencies using the Solana BPF SDK

USAGE:
    cargo-build-bpf [FLAGS] [OPTIONS]

FLAGS:
        --dump                   Dump ELF information to a text file on success
    -h, --help                   Prints help information
        --no-default-features    Do not activate the `default` feature
        --offline                Run without accessing the network
    -V, --version                Prints version information
    -v, --verbose                Use verbose output
        --workspace              Build all BPF packages in the workspace

OPTIONS:
        --bpf-out-dir <DIRECTORY>    Place final BPF build artifacts in this directory
        --bpf-sdk <PATH>             Path to the Solana BPF SDK [default:
                                     /home/<yolo>/.local/share/solana/install/releases/1.7.10/solana-
                                     release/bin/sdk/bpf]
        --features <FEATURES>...     Space-separated list of features to activate
        --manifest-path <PATH>       Path to Cargo.toml

Thoughts?

This is only for anchor build, I suppose anchor test should run from the standard setup, but should this work for anchor deploy?

This is only for anchor build, I suppose anchor test should run from the standard setup, but should this work for anchor deploy?

Yes we should have this for any command that calls cargo build-bpf.


InvalidArgumentException for a function with no arguments?

The InvalidArgumentException is listed under Exeptions, but the function has no arguments. The recomendation to request new inputs from the user make no sense. The description appears to be copied from https://docs.microsoft.com/en-us/uwp/api/windows.web.http.httpclient.getasync or some other page. If so, it is possible the entire list is not accurate for the AttachAsync.

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

ID: bfbf6f6a-e8a1-1683-f9fc-93054c911c6b
Version Independent ID: f8466491-c957-a6dd-baca-bf45df1cd4e7
Content: DownloadOperation.AttachAsync Method (Windows.Networking.BackgroundTransfer) - Windows UWP applications
Content Source: winrt-api-build/xml/Windows.Networking.BackgroundTransfer/DownloadOperation.xml
Product: uwp
Technology: winrt-reference
GitHub Login: @stevewhims
Microsoft Alias: stwhi

Hi, @avakhrushev, and thanks for filing this issue. I don't have the info to answer this question, so I've notified the feature team (product group) about this issue, and sent them a link to it. In the meantime, be aware of these links in case you want to make use of them.

Here are all of the developer support resources, for completeness.

Microsoft Q&A is the right place to lobby for a change or a new feature, to make a suggestion, or to ask a product question.
For community assistance with development questions, there are our forums, and StackOverflow.
The Windows developer support site explains other support options.
The Visual Studio developer community is available, and responsive. The former User Voice feature is now there on the Suggest a feature tab, if you want to lobby for a change, a feature, or to make a suggestion.
For developer issues, or suspected product bugs, there's Microsoft Support; a support engineer will look at the repro and see whether the issue is a Microsoft product bug, or something else. If it's a bug with a Microsoft product then the ticket will be free of charge.

If you receive assistance via any support resource, and you believe that information would help us improve the docs, then please come back and let us know.
-Steve

One potential reason for an invalid argument is if the object itself is in an invalid state.

That would go against the purpose of InvalidArgumentException. What is invalid about the object's state? Perhaps there is a kind that is more suitable/descriptive for the actual failure.

Hi, @avakhrushev, it feels like the documentation doesn't need to be changed here, since it's correctly documenting the behavior. For a request to change the behavior, I'd refer you to one of the developer support resources I listed earlier. I'll go ahead and close this doc issue now.
Thanks again!
Steve

@stevewhims but is there actually an InvalidArgumentException thrown by this method? At no point it was made clear. Would "requesting new input" from the user actually do anything, do what in what way? I am not sure what you mean by "correctly documenting", to the supposed source of information about the API that raises questions and does not answer them.

Thanks, @avakhrushev, what I'll do is I'll send a mail to the feature team to double-check that this topic is correctly listing the exceptions that can be thrown by this API. Given that Peter already visited this issue and saw it, and the topic, that makes me 99% sure that the topic is correct, but I'll send the email internally just in case. I'll be happy to fix the topic if the team says it's not correct.
Thanks again!
Steve


sds egress test : Remove TrimSuffix on credentialName

This step seems to be unnecessary.

@kfaseela: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-basic-arm64_istio
97d5fbc2ef90757e9dfd1be0de5ee6fe08168cd1
link
true
/test integ-basic-arm64

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kfaseela: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-basic-arm64_istio
97d5fbc2ef90757e9dfd1be0de5ee6fe08168cd1
link
true
/test integ-basic-arm64

lint_istio
97d5fbc2ef90757e9dfd1be0de5ee6fe08168cd1
link
true
/test lint

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kfaseela: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-basic-arm64_istio
97d5fbc2ef90757e9dfd1be0de5ee6fe08168cd1
link
true
/test integ-basic-arm64

lint_istio
97d5fbc2ef90757e9dfd1be0de5ee6fe08168cd1
link
true
/test lint

gencheck_istio
97d5fbc2ef90757e9dfd1be0de5ee6fe08168cd1
link
true
/test gencheck

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Change PNCounter to "PN Counter" in the README doc

Based on PM feedback the official name of PNCounter is "PN Counter", correcting the doc.

Windows test FAILed.

Linux test PASSed.

Windows test PASSed.


Git Diff if statement braces

I made a change to a C++ file on an if statement at the end of a function
I added braces to the if statement changing it from
if (condition)
    dothis;

To:
if (condition) {
    dothis;
}

Please refer to the attached pic of git diff.

It confusing the end of the function brace and the if statement's end brace. Hope this makes sense.
Thanks!

VSCode Version: Code 1.18.0 (dcee2202709a4f223185514b9275aa4229841aa7, 2017-11-08T21:22:49.932Z)
OS Version: Windows_NT x6

4 10.0.16299

Extensions:

Extension
Author (truncated)
Version

sourcetrail
ast
0.0.2

githistory
don
0.2.3

python
ms-
0.8.0

cpptools
ms-
0.14.2

python
tht
0.2.3

clang-format
xav
1.6.0

Steps to Reproduce:

Reproduces without extensions: Yes/No

It may look more as expected if you set "diffEditor.ignoreTrimWhitespace": false.

@alexandrudima I forget if we already have such heuristics in our diff algorithm.

We have some heuristics to give a prettier diff, but none of them cover this case.
@arunAtUman For a quick explanation:

our diff algorithm uses an algorithm known as LCS (longest common subsequence) under the hood.
the LCS algorithm computes the "equal" lines
all the other lines are either deleted, inserted or modified

Because in most source code trailing whitespace is inconsequential, we feed all lines in a trimmed fashion to the LCS algorithm.

for your input the left hand-side becomes:
(A1) if (condition)
(A2) dothis;
(A3) }
the right-hand side becomes:
(B1) if (condition) {
(B2) dothis;
(B3) }
(B4) }

The LCS algorithm can return two variants for the "equal" lines: one where (A3) matches (B3), and one where (A3) matches (B4). Both variants are technically Longest Common Subsequences. It just so happens that in this case it would have looked better if (A3) would have matched (B4).

Thanks for the explanation @alexandrudima! Would like to see it diff as it should but I understand if its relatively low priority


[WIP] Add Python notebooks

This PR is still work in progress.
In this PR the following changes are introduced:

[ ] add Jupyter notebooks, written in Python

[x] use case 1
[x] use case 2
[ ] use case 3

[x] notebooks are prefixed with 01, 02, 03 as per the use case numbering in README
[x] add Heinz-Alexander Fütterer to the README as contributor

The Python notebooks:

[x] give credit to Dorothea Strecker as author of the R notebooks
[ ] contain Heinz-Alexander Fütterer as author in the metadata
[ ]  contain output from a single "run all cells"
[ ] make use of black and isort for code quality (for notebooks: line-length=120)

I named the notebooks with prefixes 01, 02, 03, according to the numbering in the README. Is that alright with you?

Should the API calls the re3data API ("for url in urls") be rate limited? There are ca. 2500 API calls in 5 minutes. This is not so polite to the service. The R notebooks make API calls for each url as well, how long does one run usually take?
I can add rate limiting by either adding a time.sleep() to every API call or just allowing X requests per minute. What do you think?

Should the API calls the re3data API ("for url in urls") be rate limited? There are ca. 2500 API calls in 5 minutes. This is not so polite to the service. The R notebooks make API calls for each url as well, how long does one run usually take?
I can add rate limiting by either adding a time.sleep() to every API call or just allowing X requests per minute. What do you think?

In the R notebooks, the 2500 API calls typically take around 5.3 minutes. You are right, that is not very polite... I will talk to the developer about rate limiting and get back to you!

In the R notebooks, the 2500 API calls typically take around 5.3 minutes. You are right, that is not very polite... I will talk to the developer about rate limiting and get back to you!

Thanks for your input. I will finish the PR then, running the API calls without pausing.
If re3data decides to add rate limiting, we can adapt both the R and Python notebooks. Alright?

I added titles to the plots in use case 2 and 3 to indicate the date the analysis was run and the number of repositories.
Especially if repositories are dropped (e.g. due to having no API in use case 3) it might be hard to make sense of the numbers in the plot. 538 of n repositories provide a REST api. I added this number to the title. What do you think?

https://github.com/afuetterer/using_the_re3data_API/blob/add-python-notebooks/examples-python/01_re3data_API_medical_research_community.ipynb
https://github.com/afuetterer/using_the_re3data_API/blob/add-python-notebooks/examples-python/02_re3data_API_certification_by_type.ipynb
https://github.com/afuetterer/using_the_re3data_API/blob/add-python-notebooks/examples-python/02_re3data_API_certification_by_type.ipynb

If you agree, I will clean up the notebooks and can review the PR.

I added titles to the plots in use case 2 and 3 to indicate the date the analysis was run and the number of repositories.

Good point, that information provides valuable context. I will implement that in the R notebooks as well.

Thanks for adapting your R notebooks.
I saw that we had differing counts in the plots in use case 2 and 3. I dug a bit into the differences in our dataframes, that were counted and plotted. Finally I found my "mistake", I needed to add a drop_duplicates()call.
The problem was that a had duplicated rows in my dataframes. There was something I did not foresee, that has to do with data in the API responses.
The type of a repository is defined as follows:

type is allowed 1-n

Controlled vocabulary
Allowed values:
disciplinary
institutional
other

So far thats good. But this seemingly also allows to add the same type multiple times? This makes no sense to me, but still it is done.
See:

https://www.re3data.org/repository/r3d100011997

Repository type(s):
disciplinary
disciplinary

https://www.re3data.org/repository/r3d100012460

Repository type(s)
disciplinary
disciplinary

This oddity is in the underlying data. But I still fixed my way of counting.

My dataframe before plotting has these dimensions (1895, 5) vs. yours has (1832, 5). There is a difference of 63 rows. There might be a bug in your function to gather the APIs?

Thank you for pointing this out!
I updated the extraction function in the R implementation of example 3. The resulting data frame now has 1897 rows (likely, the Editorial Team added two APIs in the meantime).
In addition, I deduplicated the API types for the bar chart, so that each API type is counted only once per repository. That is how API types are counted in the re3data GUI and on the metrics page, and it might avoid confusion. What do you think?

Thanks. I can adapt the Python notebook 3 as well.
This deduplication step is done for the metrics page, alright. But does it make sense?
If I look at this page, it shows 4 APIs:
https://www.re3data.org/repository/r3d100010051

Application programming interfaces (4)
API type SWORD
API type other
API type other
API type other

Should this be counted as SWORD: 1, other: 3 or SWORD: 1 and other: 1? I am not sure.
Go for deduplication?

Go for deduplication?

I would say so. Both ways of counting are valid, they just highlight different aspects. For consistency, I think it is best to stick with the approach used on the metrics page.


Adding REST API option for Promoting and Demoting

Why:
Site administrators can also be promoted and demoted utilizing the REST API. The fact that is missing in this piece of documentation makes it seem like REST API is not an option. So I'm adding it instructions and references for REST API promote site administrator and demote.
Closes [issue link]

What's being changed:
I'm adding it instructions and references for REST API promote site administrator and demote.

Check off the following:

[x] I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).
[x] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[ ] This pull request impacts the contribution experience

[ ] I have added the 'writer impact' label
[ ] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

@enyil
Thanks so much for opening a PR! I'll get this triaged for review :zap:

Thanks for looking out for our customers, @enyil ❤ Agreed that this would be helpful to improve! Would the approach @lecoursen suggested solve the problem for those customers? If so, want to go ahead and implement those changes and re-request review? We're also happy to pick this up if you're otherwise occupied ☺


Figure out how to display profile like on brb.io

['REQ', 'all', {authors:[pubkey]}] , ['REQ', 'last-5', {authors:[pubkey], limit:5}] this would return all kinds of notes, you can further filter it to only kind-1 (regular text posts) with ['REQ', 'all', {authors:[pubkey], kinds:[1]}]
good lead I think we can sub.on and pass filters but I still don't fully understand yet


AttachmentDescription.samples should not be a flags type

According to the Vulkan spec, VkAttachmentDescription.samples is of an enum type that happens to contain the bit flags used in a flag type.
vulkan-zig incorrectly changes this enum type (VkSampleCountFlagBits) to the corresponding flags type (VkSampleCountFlags) in the generated AttachmentDescription struct.

Yes, the intended way to go about that is to pass a flags structure with a single field set. There are a few other occasions where the raw FlagBits variant is used in the Vulkan spec.
The problem is that in C, the _BIT variants automatically translate into the Flags structure because both are just an integer really. In Zig we don't really have that, and this was the most straight forward way to implement it. Of course i could generate two different types, a struct and an enum, but then it would be relatively annoying to convert between the two as you'd basically be required to use a bitCast. Furthermore, working with the flags type would require a bunch of functions, like
var my_queue_flags = vk.QueueFlags.init(.{.graphics_bit, .compute_bit});
my_queue_flags.contains(vk.QueueFlags.init(.{.graphics_bit, .compute_bit}));

I guess these extra calls could be mitigated by adding extra code that checks the actual passed in type and then allowing contains(.{.graphics_bit}) and contains(.compute_bit) or whatever, but that might get complicated quickly. In the end i just preferred writing .{.graphics_bit = true, .compute_bit = true} here instead.

Is it frequent to need to turn a flag bit (enum) value into a flags (bitfield) value? I've not seen anywhere it'd be terribly useful, but maybe I'm wrong.
It's not a huge deal either way, but it feels odd to use a flags bitfield struct for a value that can only have a single bit set.

Is it common to need to turn a flag bit (enum) value into a flags (bitfield) value? I've not seen anywhere it'd be terribly useful, but maybe I'm wrong.

Im not sure about that. I do know that the Flags variants are much more often used than FlagBit variants in general, though. I'm not such a fan of a toMask() function either way though. I'd rather go all the way and do QueueFlags.init(.{.graphics_bit, .compute_bit}).

It's not a huge deal either way, but it feels odd to use a flags bitfield struct for a value that can only have a single bit set.

I agree that its not terribly useful like this, also from a "self-documenting" perspective.


[Feature Request] Core version access in a header file

Other Arduino Cores, such as:

ESP32 ( core_version.h )
RP2040 (  Version.h  )
STM32 ( def.h  )

- all they use a definition of the Core Release Version located in a header file.
It would be nice to have this useful feature in ArduinoCore-renesas as well.

Sure, would you like to prepare a PR for this?

The project maintainer is the person who knows the best way to implement this request.

The project maintainers may be otherwise occupied, since this is open-source and its something that you are interested in having why not go ahead and provide a suggestion?