Sensor: Allow exit conditions when a sync is not running, will not run for some duration of time

Currently the sensor will exit successfully after "the next" sync job completes successfully. The basic assumption is that there is a sync job already running.
We need to add parameters to the sensor that in effect allow the user to specify:
"If the sync ran within x amount of time AND
the sync is not scheduled to start within y amount of time THEN
exit successfully."

@crw do you think this is the same thing? I am running a Fivetran Operator to Trigger a sync, then a Fivetran Sensor to wait on the sync to complete. The Sensor correctly continues to poke when the Fivetran status is "syncing', but when the sync completes and the status changes to scheduled the sensor still continues to sync (I would expect it to mark the FivetranSensor task as success
[2021-05-01 21:35:16,319] {taskinstance.py:867} INFO - Starting attempt 5 of 6
[2021-05-01 21:35:16,319] {taskinstance.py:868} INFO -
--------------------------------------------------------------------------------
[2021-05-01 21:35:16,343] {taskinstance.py:887} INFO - Executing <Task(FivetranSensor): fivetran_sensor> on 2021-04-29T13:00:00+00:00
[2021-05-01 21:35:16,352] {standard_task_runner.py:53} INFO - Started process 32825 to run task
[2021-05-01 21:35:16,497] {logging_mixin.py:112} INFO - Running %s on host %s <TaskInstance: salesforce.fivetran_sensor 2021-04-29T13:00:00+00:00 [running]> 2c399c08984c
[2021-05-01 21:35:19,617] {logging_mixin.py:112} INFO - [2021-05-01 21:35:19,617] {fivetran.py:282} INFO - Connector "wording_activity": sync_state = syncing
[2021-05-01 21:35:19,679] {taskinstance.py:1079} INFO - Rescheduling task, marking task as UP_FOR_RESCHEDULE
[2021-05-01 21:35:26,202] {logging_mixin.py:112} INFO - [2021-05-01 21:35:26,201] {local_task_job.py:103} INFO - Task exited with return code 0
[2021-05-01 21:41:19,031] {taskinstance.py:655} INFO - Dependencies all met for <TaskInstance: salesforce.fivetran_sensor 2021-04-29T13:00:00+00:00 [queued]>
[2021-05-01 21:41:19,104] {taskinstance.py:655} INFO - Dependencies all met for <TaskInstance: salesforce.fivetran_sensor 2021-04-29T13:00:00+00:00 [queued]>
[2021-05-01 21:41:19,105] {taskinstance.py:866} INFO -
--------------------------------------------------------------------------------
[2021-05-01 21:41:19,105] {taskinstance.py:867} INFO - Starting attempt 5 of 6
[2021-05-01 21:41:19,105] {taskinstance.py:868} INFO -
--------------------------------------------------------------------------------
[2021-05-01 21:41:19,132] {taskinstance.py:887} INFO - Executing <Task(FivetranSensor): fivetran_sensor> on 2021-04-29T13:00:00+00:00
[2021-05-01 21:41:19,140] {standard_task_runner.py:53} INFO - Started process 36687 to run task
[2021-05-01 21:41:19,348] {logging_mixin.py:112} INFO - Running %s on host %s <TaskInstance: salesforce.fivetran_sensor 2021-04-29T13:00:00+00:00 [running]> 2c399c08984c
[2021-05-01 21:41:23,167] {logging_mixin.py:112} INFO - [2021-05-01 21:41:23,167] {fivetran.py:282} INFO - Connector "wording_activity": sync_state = scheduled
[2021-05-01 21:41:23,227] {taskinstance.py:1079} INFO - Rescheduling task, marking task as UP_FOR_RESCHEDULE
[2021-05-01 21:41:28,851] {logging_mixin.py:112} INFO - [2021-05-01 21:41:28,850] {local_task_job.py:103} INFO - Task exited with return code 0

Ah yes, this is a known issue. We should file a new issue for this problem. We may get a patch soon, but in any case in reschedule mode, we need to let the user have the ability to pass a value for the time of the previously completed sync -- in other words, any sync that finishes after the specified time would be considered to be a completed sync. Basically, the Sensor object is storing a little state and if the sensor is destroyed, we lose that state and never correctly exit. Thanks for the additional details there!

@crw , when the patch or new version of the package will release?

Cannot i just mark the sensor as successful when sync is not running?


Work with flutter offline

hello i am new to this so my issue is i wanna work with flutter but i wanna do it offline but evry time i disconnect from intrenet i cant creat a new project
i found online the commande --offline but i dont realy know where to add it
ps:i am using windows

Have you already created a project while online? The first time you create a project, it needs to download and cache dependencies. It will then need to download more when you actually build for a device (using gradle or cocoapods for android and ios respectively).
Once you have the cashes, you should be able to run flutter create --offline and flutter packages get --offline.
Gradle technically does cache resources system-wide so you might be okay running it offline with a new project, but cocoapods does not.
This is probably a duplicate of #1945 though.

@rmtmckenzie  my question is where to run that command exctly ?:

Run it in the command line, under a cmd shell.

@Hixie
i am getting this on the windows command shell
PS C:\WINDOWS\system32> flutter packages get --offline
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Do not run this command from the root of your git clone of Flutter.
PS C:\WINDOWS\system32> flutter create --offline
No option specified for the output directory.
Create a new Flutter project.
If run on a project that already exists, this will repair the project, recreating any files that are missing.
Usage: flutter create
-h, --help                     Print this usage information.
--[no-]pub                 Whether to run "flutter packages get" after the project has been created.
(defaults to on)

i thinks i am realy bad at this 👎


Info strings should show the non-escaped variant

See https://spec.commonmark.org/0.30/#example-143

The corresponding unit test is testfiles/CommonMark_0.30/fenced_code_blocks/025.test:
%   ---RESULT--- "example": 143,
%
%
def foo(x)
%     return 3
%   end
%

%
%   ---\RESULT---

<<<
~~~~    ruby startline=3 $%@#$
def foo(x)
  return 3
end
~~~~~~~
>>>
documentBegin
BEGIN fencedCode
- src: ./_markdown_test/bec320a1e3b741ba35aaee15586aa06d.verbatim
- infostring: ruby startline=3 $%@#$
END fencedCode
documentEnd

Here is the result of running git checkout commonmark; cd tests; ./test.sh "testfiles/CommonMark_0.30/fenced_code_blocks/025.test":
Testfile testfiles/CommonMark_0.30/fenced_code_blocks/025.test
  Format templates/plain/
    Template templates/plain/input.tex.m4
      Command pdftex   --shell-escape                  --interaction=nonstopmode  test.tex
*** test-expected.log	2022-12-22 11:55:38.255546587 +0100
--- test-actual.log	2022-12-22 11:55:44.515493283 +0100
***************
*** 1,6 ****
  documentBegin
  BEGIN fencedCode
  - src: ./_markdown_test/bec320a1e3b741ba35aaee15586aa06d.verbatim
! - infostring: ruby startline=3 $%@#$
  END fencedCode
  documentEnd
--- 1,6 ----
  documentBegin
  BEGIN fencedCode
  - src: ./_markdown_test/bec320a1e3b741ba35aaee15586aa06d.verbatim
! - infostring: ruby startline=3 (dollarSign)(percentSign)@(hash)(dollarSign)
  END fencedCode
  documentEnd

This issue seems related to the writer->fencedCode() method, which produces the \markdownRendererInputFencedCode TeX macro. Specifically, we use the writer->string() (or self.escape_typographic_material() under the renaming proposed in #101) method to encode the infostring.
An obvious solution is to replace writer->string() with writer->escape_uri() (or define writer->infostring equal to writer->escape_programmatic_text() under the renaming proposed in #101). However, this makes it impossible to (ab)use infostrings to typeset text such as image labels, see for example Section 1.1.2 and Figure 1 in the TUGboat 42:2 article Markdown 2.10.0: LaTeX themes & snippets, two flavors of comments, and LuaMetaTeX.
Therefore, a better solution would be to change the arity of the \markdownRendererFencedCode macro to 3 and have the writer->fencedCode() use writer->string() for the second parameter and writer->infostring() (after the renaming proposed in #101) for the third parameter. This way, both use cases would be satisfied. In the unit test output (1, 2), we would use the third parameter rather than the second parameter to satisfy the unit test.


Update stable version in repo from 0.0.0 to 0.1.0

Think about adding version 0.1.0 to stable repository.
Version: stable=0.0.0 (0 days old) => latest=0.1.0 (30 days old)
Installs: stable=0 (0%), latest=33 (5.63%), total=586
Click to use developer portal
Click to edit
Do not close this issue manually as a new issue will be created if condition for update still exists.
Please drop a comment if any reason exists which blocks updating to version 0.1.0 at this time.
Note: This is an automatically generated message and not personally authored by bluefox!
@mcm1957 for evidence

#195 needs to be fixed


Compilation error of script (ambiguous reference)

I've not looked into the NetPad code yet but pretty sure I know what it is and how to solve it. I think we need to fully qualify all functions within the NetPad app itself. We get an error when trying a simple script after bringing in some Nuget Packages. It's a simple 'ambiguous reference' error but obviously stops us using certain packages. So far I've only found one nuget package which causes this but haven't been looking.
If you bring in 'FuzzySharp' and do a simple script like the following...
var productName1 = "";
var productName2 = "";

Fuzz.Ratio(productName1, productName2).Dump();

You will get the following error when 'Play' is pressed.
Compilation failed:
(434,9): error CS0104: 'Process' is an ambiguous reference between 'System.Diagnostics.Process' and 'FuzzySharp.Process'
(437,29): error CS0104: 'Process' is an ambiguous reference between 'System.Diagnostics.Process' and 'FuzzySharp.Process'
(438,27): error CS1061: 'Process?' does not contain a definition for 'EnableRaisingEvents' and no accessible extension method 'EnableRaisingEvents' accepting a first argument of type 'Process?' could be found (are you missing a using directive or an assembly reference?)
(445,13): error CS0019: Operator '!=' cannot be applied to operands of type 'Process?' and '<null>'
(447,27): error CS1061: 'Process?' does not contain a definition for 'Exited' and no accessible extension method 'Exited' accepting a first argument of type 'Process?' could be found (are you missing a using directive or an assembly reference?)

Raising to track but will take a look and see what I can fix.

Yep that sure looks like we need to fully qualify the usage of Process. I bet it's happening in the embedded Program file that is included in every running script. Fully qualifying the type there and removing the using should most likely take care of this.

#257 is merged and fixes this issue. Will go out with next release soon.


Introduce annotation based suppressions

This PR introduces annotation based suppressions. Fixes https://github.com/kubeshop/monokle-saas/issues/2309.
Changes

Introduced quick fix actions to suppress violated rules.
Created abstract CodeActionProvider class which can be reused for different types of actions (other types of suppressions, autofixes, etc).

Fixes

None.

How it works

Remarks

As you can see on the gif above, suppressed violations are marked as Suppressed in violations panel only. There is still highlight for them and are shown in problems panel. This is quite confusing and there is dedicated issue to fix this - https://github.com/kubeshop/vscode-monokle/issues/78.
Sometimes one suppression would fix multiple violation (for same rule, like recommended labels). I think it doesn't make sense to put separate action for each single violation just for the rule itself (as shown above).
I used an annotation format like monokle.io/suppress.ruleId: suppress because using boolean true violates schema resulting in K8S001 violation 😅
The above and quick fix labels to discuss. We can change wording there if we find better alternatives.
I saw that in the cloud we select new changes applied to resource (for autofixes). From what I tested with qucikfixes from different VSC plugins, the selection stays untouched so I went with the same approach to not change it.
Left one @TODO in the code on purpose. It's not needed for this PR but will be needed for others.

Checklist

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

Awesome work!
For the annotation key, I believe we should rely more on the human-readable form (monokle.io/suppress.kbp.no-latest-image) over the rule identifier form (monokle.io/suppress.KBP007). When you have multiple suppressions, it's hard to understand what the latter is now actually suppressing.
For the annotation value, it's indeed a petty limitation that you cannot use true due to the JSON Schema as it makes more sense. I see Traefik uses "true" which might be a possibility. For full context, the original intention was that if you provide a string, it's to be added as the SARIF suppression's justification (e.g. "won't fix" or "false positive"). I think for a quick action it's to complicated to give a selection / input for justifications.

Thanks for feedback @WitoDelnat. Changed to use full rule name for annotations e55dd7f and also added telemetry c0c9490.

Maybe good way to tackle this would be mentioning in the docs/readme that one can change annotation value as it acts as justification comment

That's definitely a good place for it! Feel free to do that.


How to reduce the spacing between the separator and the digits ?

Want to achieve something like this 01:30 instead of 01 : 30. Is it possible and if it is , which styling has to be changed ?

@shubhamk1997 try applying a negative value for the separator's margins. smth like :separator-style="{marginHorizontal: -16}"

@shubhamk1997 , try setting digitStyle's marginHorizontal to 0

@shubhamk1997 add {width: 'auto', height: 'auto'} on digitStyle


[Request] Make dark mode the default setting

I will do this in a pull request if I can figure it out.
The request is simple. Just set the default setting the app uses to dark mode, while having the toggle to disable it if wanted.

This is a bit more complex than just switching false->true. The Default is to use the "System" configuration (gtk 4.6+/Gnome 42). If that is not available it defaults to light theme and the switch forces dark theme. As much as I am a dark theme lover there are people out there who do not like it, obviously the situation can be reversed, force a dark theme by default and have a "light theme" switch, but that is not how things are done in general.
What is your actual issue? Setting it once should keep it at dark theme and that should be a valid solution for dark theme users. If that setting does not persist that is something that should be looked at.


fix(deps): upgrade deps and fix usage

Summary
Update dependencies and usage

PR Checklist

[ ] Does not introduce dependencies
[ ] Functional: all changes do not break existing APIs and if so, bump major version.
[ ] Tests pass: check the output of yarn test packages/
[ ] Naming: the files and the method and prop variables use the same naming conventions as other Kongponents
[ ] Framework style: abides by the essential rules in Vue's style guide
[ ] Cleanliness: does not have formatting issues, unused code (e.g., console.logs), or leftover comments
[ ] Docs: includes a technically accurate README, uses JSDOC where appropriate

This is bad. Redo.


Profile API

Hello,
[x] elastic.v5 (for Elasticsearch 5.x)
I see that Profile API is not yet implemented. We are having some performance issue with aggregations and we would like profile and get more information.
https://www.elastic.co/guide/en/elasticsearch/reference/master/_profiling_aggregations.html
Any chance for this to come in soon.

Of course it's a part of the API that I'd love to see covered. However, it's not on my primary focus. I think it's more for debugging and profiling, which falls into the same area as the cat APIs (which are also not implemented as of today).

yes, I agree it is for debugging and profiling only. Currently I'm trying manually with the curl, but if I can get it running with go, the options for debugging would be much more. Would love to see it covered here.

Ha! It's now supported in 5.0.29.


Feature: Long term venue prestige (VenPresL)

VenPresL
" To measure the prestige of a publication venue (VenPresL), we calculate the average citations received by the papers published so far in that venue."
Pseudocode:

Statistics:

Check to see if there is indeed a relationship between VenPresL and number of average citations.
[How specifically?]

Reference:
Chakraborty, T., Kumar, S., Goyal, P., Ganguly, N., & Mukherjee, A., (2014). Towards a Stratified Learning Approach to Predict Future Citation Counts, IEEE/ACM Joint Conference on Digital Libraries, pp. 351 - 360. doi: 10.1109/JCDL.2014.6970190

Entire dataset:

Scatterplot:

Pearson r: (0.14804330326433685, 5.427001739094989e-38)


[CHALLENGE SUBMISSION] Challenge 2 - Python, Custom Vision and Static Website Storage Account

Please provide the following information for your submission:
What is your name? (First, Last)
Rebecca Trapani
Where is your GitHub Repo ?(Link to your challenge solution)
Detailed instructions: https://github.com/errbufferoverfl/violet-lobster
Python Solution: https://github.com/errbufferoverfl/violet-lobster/tree/main/week-02
Static Website: https://stglovelyladoostest.z8.web.core.windows.net/
Azure Function Endpoint: https://lovely-ladoos.azurewebsites.net/api/classify?img=https://upload.wikimedia.org/wikipedia/commons/0/04/New_York_Empire_Apples.jpg
What Challenge is this for? (Challenge number between 1 and 7)
2
(Optional) Anything else we should know? e.g., language used, location, blog post, tell us how you solved this solution, including any challenges you faced solving it.
This solution used Food based Custom Vision with the training model based on:

Ladoo
Doughnut Holes
Gulab Jamen
Truffles

The model still struggles a lot with Apples, in particular Apples that are piled in a similar way to Ladoo images, so more training is needed.
The website is hosted on a Static Website using a storage account, and the function just returns a JSON response so you can also navigate directly to the Azure Function.
I used this article from Microsoft to get started with Python and Tensorflow.
I didn't really document much of my process, but some of my training results were tweeted about.
This was a really fun and challenging problem but lots of fun to work on!

Very cool! Sometimes I get an error, sometimes a result...wonder why?

Something to investigate tonight! Thanks for the feedback! ♥

Hey @errbufferoverfl
Thanks for your submission. It looks just awesome!
I had one image that caused the error that Jen might be referring to as well:
https://www.justataste.com/wp-content/uploads/2014/03/glazed-doughnut-holes-recipe.jpg

Other than that, your solution looks just perfect.
Cheers
Jan

From all of us at Developer Relations at Microsoft, thank you for participating in #SeasonsOfServerless and submitting a solution!

Feel free to share your solution on Twitter with the tag #SeasonsOfServerless.

Thanks for your awesome submission!
🎉 We've now added you and your solution to the Hall of Fame. 🎉


Certain Operations are missing String arguments.

After PR #6, certain operations do not have Strings and their dedicated operations were not added.
Missing Operations:

[ ] DO_SOMETHING
[ ] OFF_WITH

Please check out the newly added operations.

Fixed in PR #9


[BUG] Cannot add a member with the name "id" because a member with that name already exists.

I am running the following,
$Data=Get-AutotaskAPIResource -Resource Companies -SearchQuery  '{"filter":[{"op":"eq","field":"Educational: Establishment Type","udf":true,"value":"Multi-academy trust"}]}'
$Data | ForEach-Object {$_.CompanyCategoryID = "101"}
$Data | Set-AutotaskAPIResource -resource Companies
This worked perfectly until recently, changing the Autotask Company Category field, however in the last couple of weeks (ish) I am getting an error....
Add-Member : Cannot add a member with the name "id" because a member with that name already exists. To overwrite the member anyway, add the Force parameter to your command.
Trying to add -force to the end of the Set-AutotaskAPIResource throws up an error that the Force parameter isn't found.
Has something changed recently that could be causing this?
Thanks
David

Nothing changed, but previously you probably did $data | foreach-object { } instead of data | set-autotaskapiresource, or you only had one object returned and now you have multiple.
I dont think I made support for accepting arrays over the pipeline :)

Hi Kelvin,
Its always had multiple entries (around 500).
Are you saying I need to loop the set command and do one record at a time?
Thanks
D

Yes. See the readme for examples :)


Fixing algorithms for zero length sequences when run with s/r scheduler

@Pansysk75 this should fix the issue we discussed. Please verify.

bors merge

@hkaiser I didn't follow up with the regressive tests I promised here, because I couldn't reproduce the issue in a minimal example (ie by directly invoking a zero-length for_each using S/R), at least not in a multi-threaded setup.
However, this fixed the crash of the S/R rotate algorithm with the midpoint at the last element of the container (which was where this bug was discovered).


No paste edits returned when copying between commonjs files

🔎 Search Terms
5.8.0-dev.20241204
🕗 Version & Regression Information

This changed between versions ______ and _______
This changed in commit or PR _______
This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
I was unable to test this on prior versions because _______

⏯ Playground Link
No response
💻 Code
From https://github.com/microsoft/vscode/issues/235105#issuecomment-2517293705

Create a file main.js:

// main.js
const fs = require('fs');
const dirs = [
	'',
	'build',
];
if (fs.existsSync(`${__dirname}/../../.build/distro/npm`)) {
	dirs.push('.build/distro/npm/remote/web');
}

Copy the line 	dirs.push('.build/distro/npm/remote/web');
Paste into another file called other.js

Full logs: tsserver.log
🙁 Actual behavior
No paste edits returned
Specifically preparePasteEdits returns no content available:
Info 209  [12:07:33.903] request:
    {
      "seq": 10,
      "type": "request",
      "command": "preparePasteEdits",
      "arguments": {
        "file": "/Users/matb/projects/sandbox/main.js",
        "copiedTextSpan": [
          {
            "start": {
              "line": 8,
              "offset": 1
            },
            "end": {
              "line": 9,
              "offset": 1
            }
          }
        ]
      }
    }
Perf 210  [12:07:33.904] 10::preparePasteEdits: elapsed time (in milliseconds) 0.4798
Info 211  [12:07:33.904] response:
    {"seq":0,"type":"response","command":"preparePasteEdits","request_seq":10,"success":false,"message":"No content available."}

🙂 Expected behavior
We should generate an edit in this case that exports dir. This is the behavior I see in other cases
Additional information about the issue
No response

Generating exports in inferred CommonJS JavaScript modules is extremely fraught; it'd be very easy for this to unintentionally break something (including violating the user's lint rules). This needs a feature spec if we're going to do it


what does trial_file signifies?

what does trial_file signifies? and in what sequence the files should be in trial_pair.csv?

what does trial_file signifies? and in what sequence the files should be in trial_pair.csv?

Thanks for watching this repository. You can find the format of trial file from Voxceleb1 Test by this link: http://www.robots.ox.ac.uk/~vgg/data/voxceleb/meta/veri_test.txt


crypto/tls: RequireAndVerifyClientCert not rejecting bad client cert on 1.10 that it was on 1.9

What version of Go are you using (go version)?
$ go version
go version go1.10 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/psanford/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/psanford/projects/nearbuy/storenet/go"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build417289417=/tmp/go-build -gno-record-gcc-switches"

What did you do?
Ran the following program on 1.9.4 and 1.10:
https://play.golang.org/p/gt67v9Ih7Te
The https server is requiring client certs with RequireAndVerifyClientCert. The client is using a weird (bad?) cert that has ExtKeyUsage: x509.ExtKeyUsageServerAuth instead of x509.ExtKeyUsageClientAuth.
What did you expect to see?
On 1.9.4 the https server rejects the weird client cert:
2018/02/17 02:19:06 http: TLS handshake error from <IP_ADDRESS>:57370: tls: failed to verify client's certificate: x509: certificate specifies an incompatible key usage
panic: Get https://<IP_ADDRESS>:4443: remote error: tls: bad certificate

What did you see instead?
On 1.10 it accepts the client cert.
response status: 200 OK
Hello, "/"
done

/cc @agl @FiloSottile

It's because we have this mess to try and work around the fact that CAs have repeatedly botched extended key usage in the past. It was made by running lots of tests on the CT logs and ServerAuth is counted as sufficient to allow ClientAuth. But I think there's a fair argument to be made that, while that might be needed when checking a chain, we don't need it when checking elements of the leaf cert. (Although we do need other exceptions then.)
The best evidence for that is probably that we evidently didn't previously allow it and that didn't break the world.

Reopening to consider for backport to 1.10.1. (Is this how it works these days?)

Reopening to consider for backport to 1.10.1. (Is this how it works these days?)

given that 1.10.0 validates plain serving certificates as client certificates, I'd expect a pick to 1.10.x

CL 96379 OK for Go 1.10.1


Update v4.4.0

Added Trinket API Support
Added Armour Hud Health Bar
Fixed 0 Block Count
Removed 1 Item Show Text

TODO:

[x] 1.20-1.20.2
[x] 1.19.4
[x] 1.18.2
[x] 1.17-1.17.1
[ ] Testing
[ ] Fix Trinket API Integration (All Versions)

Issues with Trinket Support on Older Version. Hopefully fixed by December.

Done. Just Testing the Plugin on All Minecraft Versions With and Without Trinket.


Clear Specifications for odo commands on cluster access

/kind feature

Which functionality do you think we should add?
Few odo commands should not need cluster access to run

odo create
odo describe
odo list --path

Inside the context folder

odo list
odo url list
odo storage list
odo delete -a (to delete the local data) ?

Neither need cluster access or kubeconfig

odo catalog list components
odo catalog describe components

commands which does not require cluster access and working fine currently

odo preference
odo env
odo registry

Also for other commands we need to update the error message,
for most commands i am getting.
$ odo project list
 ✗  forbidden: User "system:anonymous" cannot get path "/apis/project.openshift.io/v1"

Why is this needed?

/remove-lifecycle stale
/lifecycle frozen

/remove-lifecycle stale
/lifecycle frozen

not valid anymore for odo v3
/close


Feature request: support DIANN parquet output

Parquet file output is the default starting from 1.9, and is much smaller and more portable. Please let me know if this is a PR welcome type issue

Hi, the newest release now has this feature


Node.js Strategic Initiatives beyond technical matters

Node.js Strategic Initiatives beyond technical matters
Summary
This issue proposes the creation of a document like TSC's Strategic Initiatives, but not so focused on technical subjects. The suggestion is to have topics more related to the business side of the Node.js community. With strategies to ease and give more confidence on the adoption of Node.js.
It seems to me that Node.js would be more adopted if companies could be more confident, by having a better sense that developers are around their location to join their team. Consequently developers would be more willing to dive deep on it, knowing that a great opportunity to be hired is out there.
I believe that would be great for us all, if Node.js Foundation could take a step on this direction and start (or improve), the communication on this sense.
Some of the initial ideas I propose are to facilitate developers and companies to find themselves and to bring awareness on how Node.js is being used.
Node.js People Everywhere (npe)
In order to easily answer the question: Where are the Companies and the Developers?, I believe that a list/directory of companies using Node.js, and Node.js Developers can be great. It would include where they are, how they are using it, providing features to search by location or by scope/skills.
This will help companies and developers to find each other, and to make them understand the profile of what is around.
I'm describing it better at: #184. There we can go deep on a discussion specifically about this idea.
From January onwards I will have some spare time to invest efforts on it, in case we agree on having that.
LinkedIn
The major LinkedIn group is managed by a company, and I believe that would be way better if there was an official group there. I've created an issue (#185) for us to discuss the pros of having it, and the cons of not having a group, more open, embracing the whole community.
Content
The Node.js main website is the first place where people go, to know more about it. If they can't find what is being searched for, is not guaranteed that they will try to look in another place. There is no content related to that scope I'm mentioning here, and if there is some, it is a bit hidden.
The Node.js channel on YouTube has some videos with people telling why Node.js was chosen, and the "use cases" section on the website (that I couldn't find it anymore, at the last time I checked) is something that should have more importance, in my opinion. The video from Walmart that used to be on the main page was a good help on that sense.
Initial motivation and reasons (long text)
The TSC has a "Strategic Initiatives" document, which I think is a really great initiative to keep the good working being done, and also to share with the community what's going on. I would like to know if it's possible, and if it is felt important, to have another document as the "Strategic Initiatives", but with a scope more on the business level. Here, "businesses level" is also very related to the developers community, and not just to the one who owns, or is starting a company.
To explain better, I'm sharing parts (slightly modified) of an email I sent to @mhdawson, regarding this topic:
You guys have been doing a great job on Node.js, thank you all for that. It has been great all you have done and I can feel really safe about the direction the project is taking towards the future. I'm 100% sure that choosing Node.js as the basis of my current and next projects is a great move. I can see all the many benefits we have in technical terms, and also, how I can move faster and be very productive working with it. Having front-end and back-end teams sharing code, where they can work together creating and maintaining modules, is really powerful.
However, I have a feeling that I just can say all of that because despite of any position I had, or will have in the future, I will be still a developer. One with hands on coding. That leads me to be close to what is happening. Through technical talks, writings, looking at new modules being published, and also publishing modules and writing technical articles myself. But to a person that doesn't have this kind of profile (maybe, doesn't have it  anymore), and it is in a position of making decisions, where can one find data to be informed about how Node.js can be great for its business? For example:

Are there Node.js developers in my area?
Where are they?
Once found, are they back-end developers, users of some front-end tooling, IoT?
How teams can benefit from having Node.js on the stack?
How could sharing code between front-end and back-end make me move faster, and thus reduce the costs of a project?
How a culture of modularity can benefit my team?
How the good job of the TSC impact my business in terms of reliability, security, LTS support, etc.?

When looking for companies investing heavily in Node.js I can't find many, even though we know about some big names here. Doing the inverse, to find Node.js developers, it is not easy either. A Node.js developer can mean a lot of things nowadays. Looking for someone to work with API servers, it is easy to end up with profiles of people that range from a user of some front-end tooling, to someone willing to work with IoT.
I just can find some companies investing for real on Node.js when looking abroad (BTW, I'm from Brazil). I talked recently with some foreign companies that were willing to relocate people to work with Node.js. This episode can makes us think about why weren't they able to find people to work with Node.js around there? The VP of engineering of one of those companies mentioned to me something like "we are choosing Node.js, but it hasn't being easy to find people to work with it".
In my point of view, it can end up on a bad loop where companies are not so sure about choosing Node.js, and that can make developers feeling that maybe it is not a good idea to invest on it.

@DiegoZoracKy thanks for volunteering to help push these suggestions forward.  @nodejs/community-committee I think there are a number of good ideas suggested here.  I wonder if discussing at one of the upcoming community committee meetings would make sense ?

@mhdawson No problem, and thanks for the support.

I've been thinking about exactly this idea - doing something along the lines of the strategic initiatives document that the TSC has - since I first saw that doc. I am definitely a huge +1 to this, but I do think it needs to take a slight step back from what you've proposed.
The CommComm is definitely focused on engaging with and finding representation for all users of Node.js. As such, focusing a document along the lines of the strategic initiatives doc specifically to any one group and efforts around that doesn't make a ton of sense. Rather, such a document would need to be a log of the initiatives that we're actively engaged with and that we'd like to take on regardless of which users of Node.js are involved. There are a suite of initiatives that can already be funneled into such a doc (ref: https://github.com/nodejs/community-committee/issues/114,  https://github.com/nodejs/community-committee/issues/180, https://github.com/nodejs/community-committee/issues/172, https://github.com/nodejs/community-committee/issues/170, https://github.com/nodejs/community-committee/issues/158, https://github.com/nodejs/community-committee/issues/157, https://github.com/nodejs/community-committee/issues/138, https://github.com/nodejs/community-committee/issues/112, https://github.com/nodejs/community-committee/issues/63), which will help us keep track of them over the long-run and begin to understand how they're evolving and what we can do to support them.
I absolutely love this idea. We should definitely surface this in the next CommComm meeting, but I honestly think that we can start off by simply PRing an empty clone of the structure that the TSC has for its doc and kick off the work, if someone's willing to take that on!

Hi @bnb, I'm glad good to hear that, and I definitely agree with you here:

"Rather, such a document would need to be a log of the initiatives that we're actively engaged with and that we'd like to take on regardless of which users of Node.js are involved."

For someone that is not a member of the committee, but is part of the community, I believe is more important to have an idea about what is on the track to happen, than who is taking the lead on some of the topics. It will be better and easier for people to raise new ideas, if a doc like that is there to be checked upfront. I had seen previously some of the issues you mentioned, but others were new to me. The doc would be really good to group those initiatives.
Just a quick note. I see that most of the topics you mentioned are related to a conversation focused on the community of developers, and I think we should have more initiatives on the "business" side of it, as I mentioned. Do you see the same?

Just a quick note. I see that most of the topics you mentioned are related to a conversation focused on the community of developers, and I think we should have more initiatives on the "business" side of it, as I mentioned. Do you see the same?

@DiegoZoracKy Absolutely. The Node.js community is extremely diverse in terms of applications and communities using the project as a platform. Even bucketing things into community and "business" doesn't begin to approach the variety of communities that Node.js touches. Some of the biggest ones that the project itself has left unaddressed are those business users, users of Node.js for front-end tooling, and module authors. That said, there are many others that we've not even begun to approach - yet.
As long as we have people that are interest and are able to commit to actively working on any domain that Node.js is used in, I don't think we'd likely turn away someone from contributing or spinning up efforts around the domains.
This is not a one community vs. another community thing. We're all participating in and engaged in different communities, and at no point will any one community be shut out or excluded from the discussions and work in the CommComm. There will never be prioritization of one over another, only the possibility of people who are domain experts in one or another having the possibility of investing more time and, thus, seeming like one is being invested in more than another.

@bnb Well said. I would like to see the follow-up of the discussion on this matter that as per you say, will be on topic on the next CommComm meeting. How can I follow that? Also, you can ping me if you think I can be helpful in some way.

I think this is a really great initiative. I have been trying to figure out a good way to post Node.js jobs whether it's on LinkedIn, maybe on our website, potentially on something like Dice and or StackOverflow. I am planning to talk with LinkedIn next week to see what options they might have for the Node.js Foundation LinkedIn homepage. Is this something that is up for discussion in the next CommComm meeting, and if so when is it and would it be okay for me to join? @bnb
I can also talk about the current initiatives we have going on at the Node.js Foundation when it comes to telling the end user story, i.e. case study, enterprise conversations, and our app showcase.

@ZibbyKeaton @DiegoZoracKy our next meeting is tomorrow at 4pm UTC! i can add you two as observers if you want to, and we can also add this to our agenda

Hi @pup, that can be great. You can add me as an observer.

Hey @ZibbyKeaton, good to hear that. For you to know, I've created one issue specifically about the LinkedIn idea I brought up here. In case you are interested, it is this one #185.

Yes, please add me into the convo too @pup

Not sure if this is what you have in mind regarding npe, but on the kubernetes.io web site we've helped organize - https://kubernetes.io/partners/.
The Cloud Native Computing Foundation helped create a list of criteria for the different service and technology partners and then worked closely with the community to develop the formal conformance and certification programs.
Perhaps we start by considering the service, technology categories? We documented the criteria for each, created google form applications, and continue to review the applications as they come in and submit PRs once approved to add the partners to the website. Happy to join the meeting as an observer as well. Thanks!

@pup is it 4UTC ? I thought it was 5UTC/12 EST ?  At least that is what has been in the past.

@SarahKConway I believe your suggestion is very good. The Certified Partners could be one more section on the platform. In the end the platform would be helpful to find Developers, Companies and also Certified Partners. For the latter, a more close strict review to accept the partners, as you mentioned, would apply, but maybe not so much for the Developers and Companies.
For example, on npm we have thousands of users registered, and if a great share of them would decide to join at a short period of time, that workflow would be a burden to manage:

created google form applications, and continue to review the applications as they come in and submit PRs once approved to add the partners to the website.

And for a company or a developer who just want to show up some interest on working with Node.js, maybe this kind of preselection it is not really needed (as it is not on npm).
I went a bit further on the idea around npe on the issue I created for it (#184). Reading there, I believe you will get a sense about why I believe that for Companies and Developers should have no barriers to the entrance. But I really see that a section for Certified Partners can be something great to have. Thanks;

@mhdawson iirc the last meeting said 4pm utc in the issue description??

Looking at the foundation calendar future meetings show as 12 EST for me which I believe is 5pm UTC.
Just want to make sure we all know the right time.

I think it may be the time change that is messing things up.  The foundation calendar shows 12 EST (5 UTC), probably because it was scheduled in a timezone that uses daylight savings time.
What I can't remember is whether we met at 11 or 12 the last few times.  In any case we need to get the Foundation Calendar synced up with what is in the issues.  @bnb can you confirm the time and then I'll update the Calendar appropriately ?

Hi, I'm also a bit lost about how the "observer" role works. Where can I find the link to join the meeting at the right time?

@DiegoZoracKy the link will be posted in the meeting issue (which isn't created yet) shortly before the meeting starts

So everybody is on the same page: UTC Thu 14-Dec-2017 17:00 (05:00 PM) is the time shown in https://github.com/nodejs/community-committee/issues/192

Thank you. I am unable to join this meeting as well, but look forward to hearing a recap of what is discussed.

Going to remove the cc-agenda label, unless there's further discussion to be had since the last meeting 👍

@bnb, I agree. I believe we'll be discussing on the specific issues for now.


Dual absolute move in DAQ_Move

Dear PyMoDAQ community,
with pymodaq 4, a new feature has appeared: the two absolute move settings (green and red) on top of the DAQ_Move widget.
I do love the feature as one often has to go back and forth between two position.
There is one issue though: the value entered in the fields in only registered as one leaves the item. If one was to say enter "100" then click on the associated arrow, the actuator would move to the position entered before the 100. This unexpected behaviour is a security risk for instruments where collision is possible.
Could the value be cached as one change the position and not as one leaves the lineEdit ? I think it is just a matter of using lineedit textChanged signal instead of editingFinished, but i can be wrong.
Thanks,
David

solved by #https://github.com/PyMoDAQ/PyMoDAQ/pull/345


Europe/Berlin vs Europe/Stuttgart

i'm not quite sure why CET is named "Europe/Stuttgart", it should be Europe/Berlin

@aep I assume you're mean the alias I'm including in zone.c which is Stuttgart not Europe/Stuttgart.
This is a consequence of my use of the default android timezone aliases. I needed to constrain the timezone aliases available for space reasons, if you have suggestions for a better list of aliases I'd love to swap it out!
Anyway, humorously enough I attempted to fix the android aliases in an impartial way by incorporating information from wikipedia on the world's most populated major metropolitan areas. But there was actually a bug in my code for this that ended up leaving Berlin and a few other cities out. So this should be fixed in 016d19f.
Let me know if that fix works for you or if I misinterpreted. Thanks!

interesting. i didn't realize android uses different metros. thanks for the fix!

@bkchr


Timeout Error while  deploy Jar for Spring Boot

Plugin name and version
azure-webapp-maven-plugin  version is 1.5.3
Plugin configuration in your pom.xml
   <plugin>
        <groupId>com.microsoft.azure</groupId>
        <artifactId>azure-webapp-maven-plugin</artifactId>
        <version>1.5.3</version>
        <configuration>
            <schemaVersion>v2</schemaVersion>
            <resourceGroup>Arash</resourceGroup>
            <pricingTier>P1V2</pricingTier>
            <region>westus2</region>
            <appName>SpringArashBoot</appName>
            <runtime>
                <os>linux</os>
                <javaVersion>jre8</javaVersion>

            </runtime>
            <deployment>
                <resources>
                    <resource>
                        <directory>${project.basedir}/target</directory>
                        <includes>
                            <include>*.jar</include>
                        </includes>
                    </resource>
                </resources>
            </deployment>
        </configuration>
    </plugin>

Expected behavior
The deploy to azure should work and able to browse to URL
Actual behavior
The deploy has some timeout error when run maven and when browse to the url I get the default azure page
Steps to reproduce the problem
Get the code from
git clone https://github.com/spring-guides/gs-spring-boot
Then edit pom file and add below POM
run "mvn clean package azure-webapp:deploy"
It seems falsely to succeed but there is timeout errors . Here is what I see in the mvn log:
[INFO] Authenticate with Azure CLI 2.0
[INFO] Target Web App doesn't exist. Creating a new one...
[INFO] Creating App Service Plan 'ServicePlan4efd4b35-4681-4f7f'...
[INFO] Successfully created App Service Plan.
[INFO] Successfully created Web App.
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource to C:\Users\apourmoghaddam\Desktop\R2Docs\AzureSpringB
oot\gs-spring-boot\complete\target\azure-webapp\SpringArashBoot
[INFO] Trying to deploy artifact to SpringArashBoot...
[INFO] Deploying the zip package SpringArashBoot.zip...
[INFO] <-- HTTP FAILED: java.net.SocketTimeoutException: timeout
[INFO] Exception occurred during deployment: java.net.SocketTimeoutException: ti
meout, retry immediately(1/3)...
[INFO] Successfully deployed the artifact to https://springarashboot.azurewebsit
es.net
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:26 min
[INFO] Finished at: 2019-03-29T12:57:38-04:00
[INFO] ------------------------------------------------------------------------

@arashp Thanks for your report, please rename to app.jar and set port you want to use in webapp appsetting, here is the example
<build>
    <finalName>app</finalName> <!-- Set name to app.jar -->
    <plugins>
      <plugin>
        <groupId>com.microsoft.azure</groupId>
        <artifactId>azure-webapp-maven-plugin</artifactId>
        <version>1.5.3</version>
        <configuration>
          ...
          <appSettings>
              <!-- Set port for app service-->
              <property>
                  <name>PORT</name>
                  <value>8080</value>
              </property>
          </appSettings>
          ...
      </plugin>
...

@Flanker32 Thanks for update. I did as you mentioned but still see the SocketTimeoutException however, the maven seems also report that deployed artifact successfully which is strange so is this a real error or can be ignored? Also when I navigate to the URL on Azure web app with port 8080 it says "This site can’t be reached"
I can send you the sample app I am trying to deploy and you can try it if you need further investigation. Please let me know how can I send you the app.
Here is log for Maven:
[INFO] Authenticate with Azure CLI 2.0
[INFO] Target Web App doesn't exist. Creating a new one...
[INFO] Creating App Service Plan 'ServicePlan8cbfc359-e7d0-47ec'...
[INFO] Successfully created App Service Plan.
[INFO] Successfully created Web App.
[INFO] Trying to deploy artifact to CTIAdapter...
[INFO] <-- HTTP FAILED: java.net.SocketTimeoutException: timeout
[INFO] Successfully deployed the artifact to https://ctiadapter.azurewebsites.ne
t

@Flanker32  I tried change the port to 80 and it works. It seems Azure web app blocked the port 8080. How can I use a port other than 80 or 443 on azure web apps? Is there any settings to change the port? I thought the app settings you mentioned should be enough for web app on azure to open that port. I appreciate your help

@Flanker32 The app suddenly stopped working on azure and time out I found below in the app logs. I think deployment to azure has issue.
2019-04-01 14:28:41.175 ERROR - Container ctiadapter_0 for site ctiadapter did not start within expected time limit. Elapsed time =<PHONE_NUMBER> sec
2019-04-01 14:28:41.188 ERROR - Container ctiadapter_0 didn't respond to HTTP pings on port: 443, failing site start. See container logs for debugging.
After some research it seems this is due to the docker issue but I am not using docker for deployment I am just using this plugin unless the plugin internally uses docker? The URL even on port 80 is not working anymore.

@arashp port in appSettings is used to set the port forwarding, Azure App Services only provide 80 and 443, you may get more information here
For the second question, linux app service is based on Docker containers, so it will throw docker issue sometimes when server broken.

@Flanker32  Thanks for clarification. However, The deployment still fails and can not navigate to URL. When I look at application logs in the Azure I found it is running a default spring app not the one in my project. In below logs you can see it is started tomcat on port 80 (but in my config I use port 8888) and also it uses hello.Application class which is not the Spring class in my project.
main] hello.Application                        : Starting Application v0.1.0 on 872f7f9e293a with PID 184 (/home/site/wwwroot/default.jar started by root in /)
2019-04-02T17:40:36.860785055Z 2019-04-02 17:40:36.860  INFO 184 --- [           main] hello.Application                        : No active profile set, falling back to default profiles: default
2019-04-02T17:40:37.143767217Z 2019-04-02 17:40:37.143  INFO 184 --- [           main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@3339ad8e: startup date [Tue Apr 02 17:40:37 GMT 2019]; root of context hierarchy
2019-04-02T17:40:40.598603336Z 2019-04-02 17:40:40.598  INFO 184 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 80 (http)
2019-04-02T17:40:40.669221751Z 2019-04-02 17:40:40.669  INFO 184 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2019-04-02T17:40:40.669604152Z 2019-04-02 17:40:40.669  INFO 184 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.29
2019-04-02T17:40:40.693758926Z 2019-04-02 17:40:40.693  INFO 184 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener   : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/lib/jvm/zulu-8-azure-jre-headless_<IP_ADDRESS>-8.0.192-linux_musl_x64/lib/amd64/server:/usr/lib/jvm/zulu-8-azure-jre-headless_<IP_ADDRESS>-8.0.192-linux_musl_x64/lib/amd64:/usr/lib/jvm/zulu-8-azure-jre-headless_<IP_ADDRESS>-8.0.192-linux_musl_x64/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
2019-04-02T17:40:41.078240096Z 2019-04-02 17:40:41.078  INFO 184 --- [ost-startStop-1] org.apache.jasper.servlet.TldScanner     : At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2019-04-02T17:40:41.177204698Z 2019-04-02 17:40:41.176  INFO 184 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-04-02T17:40:41.180044306Z 2019-04-02 17:40:41.179  INFO 184 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 4038 ms
2019-04-02T17:40:41.439104395Z 2019-04-02 17:40:41.438  INFO 184 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Servlet dispatcherServlet mapped to [/]
2019-04-02T17:40:41.449179726Z 2019-04-02 17:40:41.444  INFO 184 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/]
2019-04-02T17:40:41.450617030Z 2019-04-02 17:40:41.449  INFO 184 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/]
2019-04-02T17:40:41.450914731Z 2019-04-02 17:40:41.450  INFO 184 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/]
2019-04-02T17:40:41.461036262Z 2019-04-02 17:40:41.451  INFO 184 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/]
2019-04-02T17:40:41.697035881Z 2019-04-02 17:40:41.696  INFO 184 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [//favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-04-02T17:40:42.204075524Z 2019-04-02 17:40:42.203  INFO 184 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@3339ad8e: startup date [Tue Apr 02 17:40:37 GMT 2019]; root of context hierarchy
2019-04-02T17:40:42.360425400Z 2019-04-02 17:40:42.360  INFO 184 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/],methods=[GET]}" onto public java.lang.String hello.GreetingController.parking(org.springframework.ui.Model)
2019-04-02T17:40:42.371817035Z 2019-04-02 17:40:42.371  INFO 184 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2019-04-02T17:40:42.375393846Z 2019-04-02 17:40:42.375  INFO 184 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2019-04-02T17:40:42.442230050Z 2019-04-02 17:40:42.442  INFO 184 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-04-02T17:40:42.442447350Z 2019-04-02 17:40:42.442  INFO 184 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-04-02T17:40:42.879722182Z 2019-04-02 17:40:42.879  INFO 184 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2019-04-02T17:40:43.089526620Z 2019-04-02 17:40:43.086  INFO 184 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 80 (http) with context path ''
2019-04-02T17:40:43.113078492Z 2019-04-02 17:40:43.109  INFO 184 --- [           main] hello.Application                        : Started Application in 7.927 seconds (JVM running for 10.13)

@arashp  It seems that app service didn't find your upload jar and use the default one, please check the jar in target folder, the name shoud be app.jar.  Besides, there are some issues with app service server side and we are still working on that, which may also cause this issue.

@Flanker32 Thanks for helps. I already verified that when i build with maven I get app.jar generated in my project target folder. But the azure runs default.jar instead which is clearly deployment issue with plugin which you said you are currently working on it. Please let me know if it is fixed. Also I found some articles online talking about the need for web.config to be deployed to call the jar as executable. However, in your docs I did not see any mention of any need for web.config? Please clarify

@arashp Here is the doc for web.config https://github.com/Microsoft/azure-maven-plugins/blob/develop/docs/web-config.md , it is mainly used for windows java se runtime, besides, maven plugin will not generate web.config with v2 schema, you need to write one in resource folder.

@Flanker32  Thanks for doc. So I have 2 questions:

I guess only I need the web.config if I use windows OS in Azure right? if I use linux OS I would not need this?

For V2 schema, I need to create a web.config in my project under src\main\resources? Do I need anywhere in the plugin configuration specify the path for the web.config? How would plugin know where is the web.config? Will it always expect it to be in src\main\resources?

@arashp

Yes, this is used for windows app service, no need to config it for linux app service.
Sorry for the confusing, if you want to specify web.config, you need to set it in resource part of pom setting, here is an example

<build>
    <plugins>
      <plugin>
        <groupId>com.microsoft.azure</groupId>
        <artifactId>azure-webapp-maven-plugin</artifactId>
        <version>1.5.3</version>
        <configuration>
          ...
          <deployment>
            <resources>
          ...
                <resource>
                    <directory>${project.basedir}/src/main/resources</directory>
                    <includes>
                        <include>web.config</include>
                    </includes>
                </resource>
          ...
      </plugin>
...

Thanks @Flanker32  for help. I close this issue for now the only thing left is that instead of app.jar , default.jar get deployed please update me if you find a fix for this issue.

@arashp Our service team has fixed the deploy issue. For your issue, newly created web app would start with default.jar, but when you deploy app.jar using the zipdeploy API(what maven plugin use), the web app should be recycled and once recycled it should pick up app.jar. But this will take some time (i tried server times and it takes about 5 minutes), i'm work with app service team to find whether there are method to recycle old containers immediately.


About "train_fine_18unlabel_pseudo_TTA_1t_deeplabv3.txt" file

Hi,
Thanks for your nice work.
Btw, I'm trying to run this code with cityscapes dataset.
According to your sample .yaml file, cityscapes uses train_18unlabel_deeplabv3_1t split. (like below)
DATASET:
    NAME: "cityscape"
    MEAN: [0.5, 0.5, 0.5]
    STD: [0.5, 0.5, 0.5]
    MODE: 'testval'
    SEMI:
        TRAIN_SPLIT_L: 'train_18unlabel_deeplabv3_1t'    # split
        TRAIN_SPLIT_U: 'train_18unlabel_deeplabv3_1t'    # split
        VAL_SPLIT: 'val_fine'

However, in the SimpleBaseline/segmentron/data/dataloader/cityscapes.py L42 we need  train_fine_18unlabel_pseudo_TTA_1t_deeplabv3.txt file.
        elif split == 'train_18unlabel_deeplabv3_1t':
            _split_f = [
                        "data/train_fine_18unlabel_pseudo_TTA_1t_deeplabv3.txt",
                        "data/train_fine_18label.txt"]

Where can I find this file?

Or can I replace this part like below?
I want to set semi-supervised setting.
DATASET:
    NAME: "cityscape"
    MEAN: [0.5, 0.5, 0.5]
    STD: [0.5, 0.5, 0.5]
    MODE: 'testval'
    SEMI:
        # TRAIN_SPLIT_L: 'train_18unlabel_deeplabv3_1t'    # split
        # TRAIN_SPLIT_U: 'train_18unlabel_deeplabv3_1t'    # split

        # DE :: modified
        TRAIN_SPLIT_L: 'train_fine_18label.txt'
        TRAIN_SPLIT_U: 'train_fine_18unlabel.txt'
        VAL_SPLIT: 'val_fine'


[py23] Add backports for redirect_stdout/stderr context managers

I was prompted by another conversation to resuscitate something I had in my stash.
This adds py2.py3-compatible redirect_stdout and redirect_stderr context managers that can come handy in many situations.
https://docs.python.org/3/library/contextlib.html#contextlib.redirect_stdout

(i think I'm gonna drop python3.4 support once 3.7 is out)


Make nimbleLists work for RCfunctions

Note: This feature should be explained in user manual.  Current user manual does not introduce nimbleLists until discussion of nimbleFunction classes.

@fritzo I just merged a cleaned up PR.

Thanks for cleaning up @perrydv , it definitely makes the codebase easier to maintain!

Yes, and thanks for the nudge to do so.

@fritzo I suggest rather than continuing on a full code cleanup in this PR, we make an issue (or just remember) to do a full code cleanup as an independent step.

Could you add at least one regression test (i.e. a test test that fails before this PR and passes after this PR)?

@NLMichaud Can you make a PR for the nimbleList-RCfunction tests you put together?

Should I add the tests to this PR or create a separate one?  Also, should these new tests be added to the .travis.yml file?

Either way is ok with me.  Maybe it makes sense to add to this PR?  Yes I think we should add to .travis.yml

Looks pretty thorough, @NLMichaud !
LGTM


Doesn't work with extra indexes

I have the following configuration. The modules published to artifactory are not found by the plugin.
$ cat ~/.pip/pip.conf
[global]
index-url = https://pypi.org/simple/
extra-index-url=https://artifactory.customdomain.org/artifactory/api/pypi/pypi-virtual/simple

Hi there,
Good callout, have added this as a known limitation, currently pip.conf is not read in any way.
If someone wants to provide a PR for this more than happy to look it over.

Looks like the easiest way to add this feature is to add index-url and extra-index-url as configuration options. This will eliminate the need to find and parse pip.conf. I'll try to do that when I'll have time.

Implemented here: https://github.com/MeanderingProgrammer/py-requirements.nvim/commit/b178a0b444ddf3307a68c8c9ac0a639bd8e19ed5


Feat: Attachment Support

:scroll: Description

:bulb: Motivation and Context
Closes #289
:green_heart: How did you test it?
:pencil: Checklist

[ ] I reviewed submitted code
[ ] I added tests to verify changes
[ ] I updated the docs if needed
[ ] All tests passing
[ ] No breaking changes

:crystal_ball: Next steps

Codecov Report

Merging #505 (38215ff) into main (040738e) will increase coverage by 4.15%.
The diff coverage is n/a.

:exclamation: Current head 38215ff differs from pull request most recent head 4b9d632. Consider uploading reports for the commit 4b9d632 to get more accurate results

@@            Coverage Diff             @@
##             main     #505      +/-   ##
==========================================
+ Coverage   91.49%   95.65%   +4.15%
==========================================
  Files          69        6      -63
  Lines        2293      230    -2063
==========================================
- Hits         2098      220    -1878
+ Misses        195       10     -185

Impacted Files
Coverage Δ

dart/lib/src/sentry.dart

dart/lib/src/protocol/dsn.dart

dart/lib/src/transport/noop_transport.dart

dart/lib/src/version.dart

dart/lib/src/protocol/debug_image.dart

dart/lib/src/protocol/contexts.dart

.../lib/src/enricher/io_enricher_event_processor.dart

dart/lib/src/protocol/sentry_stack_frame.dart

dart/lib/src/protocol/sentry_id.dart

dart/lib/src/protocol/sentry_stack_trace.dart

... and 48 more

Continue to review full report at Codecov.

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

This does not yet include offline caching of attachments.

I think there's currently no way to add attachments which need to be awaited. E.g. files and paths. The others a theoretically good, though I expect in practice it's not because they need to be awaited previously.
This is because the scope callback does not accept futures.

This does not yet include offline caching of attachments.

what do you mean by that?
once you add an attachment to the scope and call eg captureException(x), the generated envelope will contain the attachment in it so it'd be cached in the disk and sent on restart. (Android/iOS/macOS at least)

I think there's currently no way to add attachments which need to be awaited. E.g. files and paths. The others are theoretically good, though I expect in practice it's not because they need to be awaited previously.
This is because the scope callback does not accept futures.

not sure if I follow, what do you mean? I didn't review the PR yet so I miss context

nice PR @ueman its a Draft but I already have a great feeling about that, thanks.

we will talk about https://github.com/getsentry/sentry-java/issues/1517 this week, depending of the output of the meeting, we can address this issue in this PR too

I think there's currently no way to add attachments which need to be awaited. E.g. files and paths. The others are theoretically good, though I expect in practice it's not because they need to be awaited previously.
This is because the scope callback does not accept futures.

not sure if I follow, what do you mean? I didn't review the PR yet so I miss context

You'll have to
Sentry.configureScope((scope) async {
    scope.addAttachment(await Attachment.fromFile(file));
}):

in order to add an attachment from a file. Though the callback doesn't allow it IIRC.
You have to do instead.
final attachment = await Attachment.fromFile(file);
Sentry.configureScope((scope) {
    scope.addAttachment(attachment);
}):

Same thing for Sentry.captureEvent(event, withScope: (scope){...})
I mean you can use it without, so it's not a blocker.

spec https://develop.sentry.dev/sdk/features/#attachments
we dont have to consider addToTransactions right now

I think there's currently no way to add attachments which need to be awaited. E.g. files and paths. The others are theoretically good, though I expect in practice it's not because they need to be awaited previously.
This is because the scope callback does not accept futures.

not sure if I follow, what do you mean? I didn't review the PR yet so I miss context

You'll have to use async/await
Sentry.configureScope((scope) async {
    scope.addAttachment(await Attachment.fromFile(file));
}):

in order to add an attachment from a file. Though the callback doesn't allow it IIRC.
You have to do this instead:
final attachment = await Attachment.fromFile(file);
Sentry.configureScope((scope) {
    scope.addAttachment(attachment);
}):

Same thing for Sentry.captureEvent(event, withScope: (scope){...})
I mean you can use it without, so it's not a blocker.

See https://develop.sentry.dev/sdk/features/#attachments

The SDK should read the file when an event gets captured and not when the user adds an attachment to the scope.

Disclaimer: I didn't read/review the PR. Just wanted to throw in some challenges we learned since releasing the attachment API in some SDKs so far:

How can we attach a file when an event is captured through the uncaught exception handler?
Is it possible to remove an attachment in a callback of sorts?
How easy will it be once we add a feature such as attachScreenshot (could be an extension method) that will result in a screenshot taken at the time the event is being created (and not at the time the method is called). See this workaround.
Does the API expose a way to add an attachment 'only once'?

Ideas that could solve these cases ^ would be welcomed

How can we attach a file when an event is captured through the uncaught exception handler?

Flutter apps don't quit on uncaught exceptions in Dart, so this is a non issue. If an exception happens in the native part the Dart uncaught exception handler is never called at all I guess. We would need to sync the scope across SDKs for that.

Is it possible to remove an attachment in a callback of sorts?

No, though @marandaneto already raised this issue, too.

How easy will it be once we add a feature such as attachScreenshot (could be an extension method) that will result in a screenshot taken at the time the event is being created (and not at the time the method is called). See this workaround.

This is quite an interesting problem.
Taking a screenshot is easy (given we hooked into the UI), because Flutter does not have app quitting exceptions, so it should always be meaningful.
However there is no automatic way to hook into the Flutter UI to take the screenshot at all. Also screenshots don't work on Flutter Web with the HTML renderer
and Platform Views are invisible on all platforms.
It probably makes sense to use the native part, if the time it takes to call the native platform has a low enough latency.

Does the API expose a way to add an attachment 'only once'?

I think you can use Sentry.captureEvent(event, withScope: (scope){...}) for that if I understand the question correctly.

Ideas that could solve these cases ^ would be welcomed

@ueman

If an exception happens in the native part the Dart uncaught exception handler is never called at all I guess. We would need to sync the scope across SDKs for that.

that's right, could be worked on #194

This is quite an interesting problem.
Taking a screenshot is easy (given we hooked into the UI), because Flutter does not have app quitting exceptions, so it should always be meaningful.
However there is no automatic way to hook into the Flutter UI to take the screenshot at all. Also screenshots don't work on Flutter Web with the HTML renderer
and Platform Views are invisible on all platforms.

indeed, the workaround in the symbol-collector right now would not be possible as configureScope isn't async so you cant read the stream and await for it.
about Flutter Web, we can make this available only for Flutter io, its fine.
the idea is that if the options is enabled and they hooked up our integration manually when initing the SDK, we take a screenshot when runZonedGuarded is called, runZonedGuarded allows async code so I think its fine to take the screenshot and read the stream, add an attachment and capture it.
We just need to be sure that the zone in runZonedGuarded allows taking the screenshot or not (because of main/UI thread)

I think you can use Sentry.captureEvent(event, withScope: (scope){...}) for that if I understand the question correctly.

it'd be a workaround but that's not quite the same thing.
the idea is that addAttachment gets an optional param to be sent only once and the event can be captured later at some point and the attachment delete itself from the attachment list.
with the withScope you pretty much need to capture the event right away which is not the case most of the times.

consider adding a method called clearAttachments  to the Scope, similar to https://github.com/getsentry/sentry-dotnet/issues/1088

consider adding a method called clearAttachments  to the Scope, similar to getsentry/sentry-dotnet#1088

Just wanted to add a comment for this. Thanks @marandaneto 🚀

@philipphofmann Just to be sure:
h is for high, m for medium and l stands for low, right?

@philipphofmann Just to be sure:
h is for high, m for medium and l stands for low, right?

yes, the LOGAF scale I've told you about a while ago.

We should also expose the maxAttachmentSize options as Java/Apple

We should also expose the maxAttachmentSize options as Java/Apple

What should happen if it's bigger?
For reference, the option is here:
https://github.com/getsentry/sentry-java/blob/79fab9fe98de0673176abdda9d09327a336c9150/sentry/src/main/java/io/sentry/SentryOptions.java#L261

We should also expose the maxAttachmentSize options as Java/Apple

What should happen if it's bigger?
For reference, the option is here:
https://github.com/getsentry/sentry-java/blob/79fab9fe98de0673176abdda9d09327a336c9150/sentry/src/main/java/io/sentry/SentryOptions.java#L261

its spec'ed here https://develop.sentry.dev/sdk/features/#max-attachment-size
you can also check the Java/iOS code

@ueman is it ready for final code review? @bruno-garcia or @philipphofmann will do it, thanks

@ueman is it ready for final code review? @bruno-garcia or @philipphofmann will do it, thanks

Yep, it's ready now.


No "cache-control" header or empty value found. It should have a value

default ASP.NET Core Web Application using Kestrel
Set a cache-control header, even if it's no-cache. Otherwise it's up to the browser to decide what to do and that can cause interop issues
HTTP Cache

Hi @cyberh0me. Is the ask here to set the default to no-cache?
@DamianEdwards, any opinion regarding this?

@mkArtakMSFT please consult with @blowdart

This isn't really security, so I have no feelings about it.

if "no-cache" is the easiest way to make default ASP.NET Core Web Application more reliable and secure why not
to have no such header is a bad thing

@mkArtakMSFT @blowdart all responses from a server should have http-cache header. If the resource shouldn't be cached it should have max-age=0 (or equivalent). Omitting this header is a source for interop problems. The specification leaves up to the user agent to decide what to do when the header is missing so some browsers could not cache it at all, or cache it for a few seconds, or even do different things depending on the type of the resource (not cache an html but cache a binary for example).
Having an explicit http-cache: max-age is a good practice that avoids interop issues and helps identify perf issues earlier.
So pretty please, can you please add it 🙏🏼

My feeling is this is an application-level concern, not a framework or server concern. Caching policy is something that should be whole owned by the application, especially for dynamic responses (e.g. MVC) and thus should be specific. It's trivial to add a middleware to your app that sets some default caching headers if that's the behavior you want.

There are many things that are trivial to add and many developers don't do it because they don't test in all browsers and just want to get something that works.
If I'm not mistaken, asp.net will not set any header at all which is considered a bad practice. In most cases browsers will default to not caching an asset at all but it's still up to them to decide what to do and that behavior could change from one version to another. By setting a http-cache: max-age=0 header by default (that could be overridden by the user) you are:

Following web development best practices and avoiding interop issues (why am I getting this old binary in this browser and the newer one in this other)
Setting up your users for success out of the box

Closing per @DamianEdwards's response.

By deciding not to set an explicit value you are willing opening up the possibility of a bad experience for the end users of websites using aspnet.
As I said, it could be trivial to add this in user land but most developers will not do because they don't know about it and thus causing interop issues with different browsers (and I've seen a few of those browser interop issues in my work 🙄).
I strongly encourage you to review this decision and I'll be more than happy to continue the discussion offline if you want.


Introduce Dependabot for Docker and GitHub Actions

As mentioned in https://github.com/nicolaka/netshoot/issues/111#issuecomment-1212307608 introduce automated updates for base images in Dockerfile and GitHub Actions used in CI. It will check for updates every day and create PRs automatically for us - keeping them up to date should allow avoiding most security vulnerabilities

I think setting interval to weekly would much efficient since we get  less spammed by dependabot notifications.

My reasoning was that in Dockerfile only FROM alpine:3.16.0 will be tracked and Alpine is not releasing so often

GitHub Actions in files test-pr-buildx.yml and release-buildx.yml are pinned only by major versions so they shouldn't change so often too.
Hence by checking it every day, mostly it won't update anything. But when new versions come up, PRs will be created almost immediately (max one day delay).


feat(LinkItem): add prop toggleChildrenOnClick for toggling children …

What:
Prop toggleChildrenOnClick has been added to LinkItem component for toggling children on link click.
Checklist:

[ ] Documentation
[ ] Tests
[ ] Ready to be merged

@alexkaduk Please update this branch with master and increase the code coverage

@mlampedx Done.


Possible typo in 'Test the project template' section

First paragraph.
Navigate to the test folder and create a new console application with dotnet new console - original
You probably meant dotnet new consoleasync, not dotnet new console.

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

ID: 097102bb-f6d9-c469-5556-ae1f16fdc4fe
Version Independent ID: 77b25381-6e0f-949f-5f96-b83e9b61e9fc
Content: Create a project template for dotnet new - .NET Core
Content Source: docs/core/tutorials/cli-templates-create-project-template.md
Product: dotnet-core
GitHub Login: @Thraka
Microsoft Alias: adegeo

I would like to fix this.


Large dependency footprint. Split into separate packages?

Right now the presence of the aeson and byte* dependencies makes for a sizable footprint of ip. This to me makes ip an uninteresting candidate for use in libraries that just need to carry IP or Mac data around, but may not even have to parse them (or it parses them directly off a wire protocol).
The typical choice seems to be, to provide a package ip-core that exposes only the basic types/bindings/instances, and then ip as a wholesale meal with orphan instances and parser utilities. This is similar to the yesod-ip package.
Aside from bumping a major version to satisfy PVP, this should have no other impact on users.
What do you think? I'd be willing to do the work to get it done.

I'm am somewhat against this change because I don't think the benefit from this is worth the cost. In libraries where I need to represent, for example, IPv4 addresses, but I don't need any of the machinery from ip, I typically just use a Word32. But let's consider how this would need to be set up, just in case the tide ever changes. We would need:

ip-core (data types, instances for things from base, probably basic stuff like smart constructors and operations with masks)
ip-platform (parsers and builders for types from text and bytestring)
ip-aeson (orphan json typeclass instances, depends on ip-platform)
ip-bytes (stuff with the byte* libraries)
ip (Reexports everything include orphan json instances)

I think that's how it would get split up if we were going to do this. But at the moment, I'm not convinced that this is really worth doing.

This library has 75 transitive dependencies, roughly ~50 of which are from aeson alone.

This drives up compilation time, makes auditing transitive updates harder, increases build plan complications (as a nix user this regularly affecfts me), and has quite a hefty penalty on object size in the absence of split sections + stripping. And it might deter some users.
A simple IP library should not have some "batteries-included" type of footprint like a web framework.

This library has 75 transitive dependencies, roughly ~50 of which are from aeson alone.

This drives up compilation time, makes auditing transitive updates harder, increases build plan complications (as a nix user this regularly affecfts me), and has quite a hefty penalty on object size in the absence of split sections + stripping. And it might deter some users.
A simple IP library should not have some "batteries-included" type of footprint like a web framework.

I've been writing rust for a while now and one thing their packages have, which I wish Haskell's did, is feature flags. Feature flags can be on or off by default. In some cases, feature flags can be used to distinguish between async runtimes (example). They're a very versatile feature with a high power-to-weight ratio and smooth UX. In Haskell we have CPP flags, which are more annoying to use, but get the job done. In short, I think these features should be behind CPP flags, and be on or off by default depending on what's reasonable. They're easy enough to override with cabal, stack, and nix. You won't get caching with nix this way, though, unless nixpkgs or haskell.nix start doing something with combinations of flags (doubtful), or unless you start hosting your own infra (which I have done many times).
Splitting stuff out into multiple packages achieves the same effect but with more burden on maintainers, IMO.

So this is an interesting proposition. The main downfall is that flags cannot be specified in .cabal files, they are cabal.project settings. Because of this aeson and byte* would have to be enabled by default. Also, any user who does disable these should probably make sure it builds with these flags enabled as well, but that's just for their sake.
Added benefit is that it has no impact on all existing users.m Thoughts @andrewthad?

So this is an interesting proposition. The main downfall is that flags cannot be specified in .cabal files, they are cabal.project settings. Because of this aeson and byte* would have to be enabled by default. Also, any user who does disable these should probably make sure it builds with these flags enabled as well, but that's just for their sake.
Added benefit is that it has no impact on all existing users. Thoughts @andrewthad?
I'd be willing to implement this.

To my knowledge, cabal.project just creates the relevant arguments for Setup.hs, though without the cabal.project I believe that you must specify flags at the command line with  eg --constraint='pkg +flag.
However I don't really think this is much of a downside, cabal.projects are so useful, to the point I use them in most of my projects and I wish they were just part of .cabal, and stack and nix already support this option without additional files.

I'm fine with a feature flag that removes the aeson dependency (and all related instances). If anyone wants to implement this, I would accept a PR.


Update all district shapefiles (JSONs)

We are using old district boundaries for most states. Telangana, West Bengal, Manipur, Gujarat, Maharashtra to name a few. This is causing both name mismatch problems and missing data
Solution
We have access to district boundaries from 2019, we can replace the JSONs we are using with new ones. The new JSONs also match well with the district names reference we are using for data collection.
Should resolve related issues like #253 and #256

Can you share the json files we can fix this easily

Yes, on it

Latest json files are available here: https://github.com/guneetnarula/indian-district-boundaries/tree/master/topojson/state-wise
In my last PR, jsons for Andhra Pradesh, J&K and Ladakh were integrated. So use the others for now. I'll upload the remaining within a day.

@guneetnarula Little curious May I know from where can you get these files ?

@shuklaayush @JunaidBabu @sudevschiz
Almost all of the topojsons are available now in the repo link above. Will finalize Tamil Nadu and the remaining states of northeast once we have the latest available.
@sivaanil - these are community led efforts that are more or less manual in nature. See projects.datameet.org/maps/ for more (although we still have to update the datameet repositories with the latest)

Thank you for the info @guneetnarula

I noticed Gwalior District and Datiya District and Madhya Pradesh are not showing correctly, Not sure if I need to file a seperate issue or it is taken care by Json file udpate. the official map is hosted at  http://geoportal.mp.gov.in/DistrictPortal.aspx

Both are at the north of Madhya Pradesh.

Several maps are not scaled and translated with the actual GIS boundaries.
Tamil Nadu, for instance.  I tried playing around with the transform.scale and transform.translate values, but it is very difficult to determine the correct position by trial and error.
Any clues how to do this easily?

@psunthar d3 has fitSize/fitExtent methods for this purpose

I noticed Gwalior District and Datiya District map in Madhya Pradesh state are not showing correctly, Not sure if I need to file a seperate issue or it is taken care by Json file udpate. the official map is hosted at http://geoportal.mp.gov.in/DistrictPortal.aspx . Both district you will find in north of Madhya Pradesh map. The Covid19india site is showing incorrectly.

Is it correct here: https://github.com/guneetnarula/indian-district-boundaries/blob/master/topojson/state-wise/madhyapradesh.json ?

@guneetnarula , yes, both the district Gwalior and Datiya looks correct in https://github.com/guneetnarula/indian-district-boundaries/blob/master/topojson/state-wise/madhyapradesh.json .

#530

Hey @jeremyphilemon @shuklaayush just uploaded another batch of jsons. Covers all union territories and remaining northeast states. Only MZ and TN are left now. Needs some work. https://github.com/guneetnarula/indian-district-boundaries/tree/master/topojson/state-wise

Last two states done! See https://github.com/guneetnarula/indian-district-boundaries/tree/master/topojson/state-wise for TN and MZ


Invalid toml configs display wrong error location

Example occurred with my ironbar config after upgrading recently:
2024-11-19T01:57:22.485029Z ERROR ironbar: 318: Failed to load config: TOML parse error at line 1, column 1
  |
1 | anchor_to_edges = true
  | ^^^^^^^^^^^^^^^^^^^^^^
unknown variant `left_to_right`, expected one of `h`, `horizontal`, `v`, `vertical`

Whilst this actually occurs on like 63
direction = "left_to_right"

This is possibly a limitation of the toml crate. Are you able to share the full config please?

anchor_to_edges = true
height = 42
position = "top"
icon_theme = "Papirus-Dark"

[[start]]
type = "workspaces"
all_monitors = false
on_scroll_up = "swaymsg workspace prev_on_output"
on_scroll_down = "swaymsg workspace next_on_output"

[[end]]
type = "script"
cmd = "/home/merlijn/.bin/iron-bluetooth.sh"
mode = "poll"
interval = 5000
on_click_left = "blueman-manager"

[[end]]
type = "music"
player_type = "mpd"
truncate = "end"

[[end]]
type = "sys_info"
format = [
    "  {cpu_percent}% - {temp_c:k10temp-Tccd1}°C |",
    "  ({memory_percent}%) |",
    "󰋊 ({disk_percent:/}%) |",
    "󰓢 {net_down:enp5s0} / {net_up:enp5s0} Mbps |",
]

[end.interval]
memory = 30
cpu = 1
temps = 5
disks = 300
networks = 3

[[end]]
type = "volume"
format = "{icon} {percentage}%"
max_volume = 100

[end.icons]
volume_high = "󰕾"
volume_medium = "󰖀"
volume_low = "󰕿"
muted = "󰝟"

[end.truncate]
mode = "end"
length = 50

[[end]]
type = "clock"

[[end]]
type = "tray"
direction = "left_to_right"

[[end]]
type = "notifications"
show_count = true

[end.icons]
closed_none = "󰍥"
closed_some = "󱥂"
closed_dnd = "󱅯"
open_none = "󰍡"
open_some = "󱥁"
open_dnd = "󱅮"


Add read-only / disabled modes to the control

Allow a read-only and/or disabled version of the control.
Toolbar should not be visible. The content can either scroll or be resizable.

ReadOnly mode only works upon init of the control - need to add ability to change setting via control properties.


Add TimeAggregator object

It didn't make sense to me to force time aggregation to use a Deployment. This PR adds a TimeAggregator kind that works similarly to the Aggregator kind but with different arguments. These could probably be combined into the same kind in practice, but it might be simpler if they're different in this example.

I didn't intend for Deployment to be required, but I do think that the important piece here is that there is some function that has side storage, remembering the events that have come through (for at least as long as the window).
As I couldn't think of how to do this in a generic way, other than just sending the events to the underlying function, I didn't see the advantage to creating the TimeAggregator CRD. I suppose it makes understanding the graph easier, but I don't think it does anything in the data plane, so chose to skip it. I could be convinced that better graph understanding is worth it.
I think that Aggregator is fairly different. We know how to manipulate the data plane to make it work and we can provide an implementation that does so (assuming we get storage somewhere).
For TimeAggregator I can imagine different aggregations that have wildly different data plane storage requirements.

There could be something simple, a counter of number of requests in the previous 5 minutes. It doesn't need the full event, just the timestamp (or even just increment a counter for a given time quantum).

As a further perturbation, it sends the number of requests in the last 5 minutes, every thirty seconds (e.g. a single event exists beyond one 'time window').

There could be something that aggregates all events for 5 minutes and then sends them as one giant event downstream (e.g. batch the processing of all requests to amortize the startup and shutdown costs). It needs to store entire events.

In some sense, the only way to be completely safe, would be to have the TimeAggregator perform the batching in the previous example. It takes in and remembers every request in the time period and then sends them out in one big array at the end of the period. But that doesn't work if there a single event needs to be in multiple 'time windows'.
I also think an important distinction between TimeAggregator and the other patterns (assuming there is no CRD), is that the function may not understand Links, so needs to be povided a URL/domain for output, rather than a Link.


Search not only from beginning

Do think you about searching not only from beginning and displaying the suggestions?
I have nothing seen in the readme about it. Only in your sample app.

Nice hint.
I will try it


mysql support link

Description

Added MySQL support to cookiecutter-django.
Checklist:

[x] I've made sure that tests are updated accordingly (especially if adding or updating a template option)
[x] I've updated the documentation or confirm that my change doesn't require any updates

Rationale
Since these changes can't be merged to main cookiecutter:master due to various reasons, mentioned in #3346 and #3539 , I have added the link to the fork in README.md.

Well done @mabdullahadeel.
Thank you.

Thanks a lot for this!


How do you run/update the numbers on Mono?

Hello Aras,
How are you running/updating the numbers in Mono, as there is no MathF there yet.
I did a port from MathF to the DesktopCLR API, which is supported in Mono, and put my changes here:
https://github.com/migueldeicaza/ToyPathTracer/tree/desktop-clr
The odd thing is that on my system, .NET Core 2.1.4 seems slower, perhaps we have different versions?
$ dotnet --version
2.1.4
$ mono --version
Mono JIT compiler version 5.13.0 (master/4723e6603e6 Sun Apr  1 21:34:34 EDT 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug
	Interpreter:   yes
	LLVM:          supported, not enabled.
	GC:            sgen (concurrent by default)
$ dotnet run
2752.30ms 4.2Mrays/s 11.47Mrays/frame frames 1
^c
$ mono demo.exe
1819.82ms 6.3Mrays/s 11.47Mrays/frame frames 1
^c
$ mono -O=float32 demo.exe
1462.56ms 7.8Mrays/s 11.47Mrays/frame frames 1
^c
$

That said, to make it more apples to apples, I just submitted a pull request to Mono to get MathF:
https://github.com/mono/mono/pull/7941
With that patch, I can compare apples of the same species, and now I get:
$ dotnet run
2876.87ms 4.1Mrays/s 11.76Mrays/frame frames 1
2874.08ms 4.1Mrays/s 11.76Mrays/frame frames 2
2876.00ms 4.1Mrays/s 11.76Mrays/frame frames 3
2860.35ms 4.1Mrays/s 11.76Mrays/frame frames 4
2852.96ms 4.1Mrays/s 11.75Mrays/frame frames 5
2842.87ms 4.1Mrays/s 11.76Mrays/frame frames 6
2840.46ms 4.1Mrays/s 11.76Mrays/frame frames 7
2835.01ms 4.1Mrays/s 11.76Mrays/frame frames 8
2829.51ms 4.2Mrays/s 11.76Mrays/frame frames 9
2829.30ms 4.2Mrays/s 11.75Mrays/frame frames 10
2833.15ms 4.2Mrays/s 11.76Mrays/frame frames 11
2831.47ms 4.2Mrays/s 11.76Mrays/frame frames 12
2841.67ms 4.1Mrays/s 11.76Mrays/frame frames 13
2851.48ms 4.1Mrays/s 11.76Mrays/frame frames 14
2857.88ms 4.1Mrays/s 11.76Mrays/frame frames 15
2881.28ms 4.1Mrays/s 11.75Mrays/frame frames 16
2888.21ms 4.1Mrays/s 11.76Mrays/frame frames 17
2894.16ms 4.1Mrays/s 11.76Mrays/frame frames 18
2896.44ms 4.1Mrays/s 11.75Mrays/frame frames 19
2904.69ms 4.0Mrays/s 11.76Mrays/frame frames 20
2937.43ms 4.0Mrays/s 11.76Mrays/frame frames 21
2936.99ms 4.0Mrays/s 11.76Mrays/frame frames 22
2937.48ms 4.0Mrays/s 11.76Mrays/frame frames 23
2935.11ms 4.0Mrays/s 11.76Mrays/frame frames 24
2933.07ms 4.0Mrays/s 11.76Mrays/frame frames 25
2932.50ms 4.0Mrays/s 11.76Mrays/frame frames 26
2928.50ms 4.0Mrays/s 11.76Mrays/frame frames 27
2928.81ms 4.0Mrays/s 11.76Mrays/frame frames 28
2927.48ms 4.0Mrays/s 11.76Mrays/frame frames 29
2925.44ms 4.0Mrays/s 11.76Mrays/frame frames 30
$ mono mathf.exe
1815.47ms 6.5Mrays/s 11.76Mrays/frame frames 1
1825.87ms 6.4Mrays/s 11.76Mrays/frame frames 2
1813.91ms 6.5Mrays/s 11.76Mrays/frame frames 3
1836.47ms 6.4Mrays/s 11.76Mrays/frame frames 4
1849.84ms 6.4Mrays/s 11.75Mrays/frame frames 5
1843.00ms 6.4Mrays/s 11.76Mrays/frame frames 6
1870.65ms 6.3Mrays/s 11.76Mrays/frame frames 7
1873.14ms 6.3Mrays/s 11.76Mrays/frame frames 8
1871.27ms 6.3Mrays/s 11.76Mrays/frame frames 9
1873.10ms 6.3Mrays/s 11.75Mrays/frame frames 10
1871.02ms 6.3Mrays/s 11.76Mrays/frame frames 11
1868.86ms 6.3Mrays/s 11.76Mrays/frame frames 12
1870.36ms 6.3Mrays/s 11.76Mrays/frame frames 13
1872.45ms 6.3Mrays/s 11.76Mrays/frame frames 14
1871.38ms 6.3Mrays/s 11.76Mrays/frame frames 15
1870.67ms 6.3Mrays/s 11.76Mrays/frame frames 16
1873.83ms 6.3Mrays/s 11.76Mrays/frame frames 17
1876.38ms 6.3Mrays/s 11.76Mrays/frame frames 18
1878.16ms 6.3Mrays/s 11.75Mrays/frame frames 19
1879.80ms 6.3Mrays/s 11.76Mrays/frame frames 20
1880.18ms 6.3Mrays/s 11.76Mrays/frame frames 21
1882.34ms 6.2Mrays/s 11.76Mrays/frame frames 22
1878.91ms 6.3Mrays/s 11.76Mrays/frame frames 23
1880.97ms 6.3Mrays/s 11.76Mrays/frame frames 24
1879.36ms 6.3Mrays/s 11.76Mrays/frame frames 25
1879.97ms 6.3Mrays/s 11.76Mrays/frame frames 26
1878.91ms 6.3Mrays/s 11.76Mrays/frame frames 27
1878.21ms 6.3Mrays/s 11.76Mrays/frame frames 28
1879.25ms 6.3Mrays/s 11.76Mrays/frame frames 29
1879.26ms 6.3Mrays/s 11.76Mrays/frame frames 30
$ mono -O=float32 mathf.exe
1633.95ms 7.2Mrays/s 11.76Mrays/frame frames 1
1545.29ms 7.6Mrays/s 11.76Mrays/frame frames 2
1509.87ms 7.8Mrays/s 11.76Mrays/frame frames 3
1550.70ms 7.6Mrays/s 11.76Mrays/frame frames 4
1565.38ms 7.5Mrays/s 11.75Mrays/frame frames 5
1551.46ms 7.6Mrays/s 11.76Mrays/frame frames 6
1567.24ms 7.5Mrays/s 11.76Mrays/frame frames 7
1579.61ms 7.4Mrays/s 11.76Mrays/frame frames 8
1565.49ms 7.5Mrays/s 11.76Mrays/frame frames 9
1558.81ms 7.5Mrays/s 11.75Mrays/frame frames 10
1570.96ms 7.5Mrays/s 11.76Mrays/frame frames 11
1583.83ms 7.4Mrays/s 11.76Mrays/frame frames 12
1587.42ms 7.4Mrays/s 11.76Mrays/frame frames 13
1590.42ms 7.4Mrays/s 11.76Mrays/frame frames 14
1596.51ms 7.4Mrays/s 11.76Mrays/frame frames 15
1596.27ms 7.4Mrays/s 11.75Mrays/frame frames 16
1591.59ms 7.4Mrays/s 11.76Mrays/frame frames 17
1591.84ms 7.4Mrays/s 11.76Mrays/frame frames 18
1585.52ms 7.4Mrays/s 11.75Mrays/frame frames 19
1578.45ms 7.4Mrays/s 11.76Mrays/frame frames 20
1575.85ms 7.5Mrays/s 11.76Mrays/frame frames 21
1571.86ms 7.5Mrays/s 11.76Mrays/frame frames 22
1568.69ms 7.5Mrays/s 11.76Mrays/frame frames 23
1565.06ms 7.5Mrays/s 11.76Mrays/frame frames 24
1562.82ms 7.5Mrays/s 11.76Mrays/frame frames 25
1560.53ms 7.5Mrays/s 11.76Mrays/frame frames 26
1558.02ms 7.5Mrays/s 11.76Mrays/frame frames 27
1555.59ms 7.6Mrays/s 11.76Mrays/frame frames 28
1554.55ms 7.6Mrays/s 11.76Mrays/frame frames 29
1552.10ms 7.6Mrays/s 11.76Mrays/frame frames 30

@migueldeicaza you need to run with release dotnet run --framework netcoreapp2.0 -c Release otherwise everything is running with debug for .NET Core and it is uber slow!  😛 With Release, you should get a x5 speedup compare to Mono (with or without -o=float32)

Note, I have added multitargeting to add net461 FW moniker as part of PR #4 to make it possible to compile with dotnet build and run with mono

@migueldeicaza I just ran from VS Mac, with Release config and without debugging. Don't know what exactly it ends up doing, will investigate.

Ok, this has turned out to be a good exercise!
Our LLVM support was still doing 32->64 casts, so we were not really getting the full gains of 32-bit float when using LLVM!
So we just fixed that too.  And we also increased the inline limit (pending pull request) that is more suitable for LLVM.
The current inline limit was suitable for Mono's JIT compiler, but it was too small for LLVM, so this is closer to C++.   The value currently can be tuned by hand using the MONO_INLINE_LIMIT environment variable).
This is running on a different computer, so I can not compare apples/apples against the above, but the results are now as follows:

Runtime
Results

dotnet -c Release
18.3Mray/sec

mono --llvm -O=float32
12.4Mray/sec

MONO_INLINELIMIT=100 mono --llvm -O=float32
22.5Mray/sec

Ok, just got home, and got numbers for the same machine that I originally tested on.
The .NET Core -c Release numbers do not match the original results, they are slightly better, but I did reboot the machine since then, so probably something changed in my environment.
So in this one, I am testing .NET Core 2.1.4 and both Mono/master that includes the LLVM float32 support, and that one with more aggressive inlining:

Runtime
Results

dotnet -c Release
21.0Mray/sec

mono --llvm -O=float32
16.0Mray/sec

MONO_INLINELIMIT=100 mono --llvm -O=float32
29.1Mray/sec

Blogged the story of float32 and the numbers:
http://tirania.org/blog/archive/2018/Apr-11.html

I just wrote an update to Mono performance tweaks, including link to your blog post here: http://aras-p.info/blog/2018/04/16/Daily-Pathtracer-10-Update-CsharpGPU/
Will close this issue; thanks for the investigation & suggestions!