Unable to create React app

I hope someone can help me, I'm using termux app.. even install node modules ..same error that I get.. all command that I run Using npm .. always show this error .. I don't know what's going on.
Guys help me please!

/sdcard/node-project $ create-react-app my-react-app
Creating a new React app in /storage/emulated/0/node-project/my-react-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
npm ERR! code FETCH_ERROR
npm ERR! errno FETCH_ERROR
npm ERR! invalid json response body at https://registry.npmjs.org/cra-template reason: Invalid response body while trying to fetch https://registry.npmjs.org/cra-template: EACCES: permission denied, link '/data/data/com.termux/files/home/.npm/_cacache/tmp/d006634c' -> '/data/data/com.termux/files/home/.npm/_cacache/content-v2/sha512/9f/67/5ef5b4bfec006889a3012a37575b599fc0f8e8d6ac7208ee12c59afed60146521542c3dd4b132242fb79b9f9510f79cc29a6e855655054997dd48772a32b'
npm ERR!
Deleting generated file... package.json
Deleting my-react-app/ from /storage/emulated/0/node-project
Done.

What is the termux?

Yes, I'm using termux sir for Android
On Fri, Sep 16, 2022, 4:15 AM isqua @.***> wrote:

What is the termux?
—
Reply to this email directly, view it on GitHub
https://github.com/facebook/create-react-app/issues/12706#issuecomment-1248567839,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASFBUWOEW6HYMJLHRTWZQADV6N7WDANCNFSM6AAAAAAQEQ2LVM
.
You are receiving this because you authored the thread.Message ID:
@.***>

@aldrin112602 So looks like the problem is not related to create-react-app. I can assume you’ll find something if you search for “termux android npm permissions eaccess”, or probably ask on https://stackoverflow.com

already fixed guys, thanks


Add options to monitor all/active branches and monitor failed to start builds

Adds an option to monitor active branches only. Enabling this option shows builds for branches considered 'active' by TeamCity. It is configurable in TeamCity which branches are active. See Working with Feature Branches.
Adds an option to include failed to start builds when checking for the build status. See Build State.
Solves #25 and #27.

@dennisdoomen This and #24 need some merge and release love and attention for shiny new options to be released to a major customer... 😉


[WFCORE-588] Extra parser delimiter's for StringListAttributeDefiniton

Also split on line feeds, carriage returns and tabs when parsing
StringListAttributeDefinition.

Core - Full Integration Build 595 is now running using a merge of f830a246b3ce059d493b9d010e3dc201235d03f9

Windows Build 1015 is now running using a merge of f830a246b3ce059d493b9d010e3dc201235d03f9

Linux Build 1343 is now running using a merge of f830a246b3ce059d493b9d010e3dc201235d03f9

Windows Build 1015 outcome was SUCCESS using a merge of f830a246b3ce059d493b9d010e3dc201235d03f9
Summary: Tests passed: 3047, ignored: 64 Build time: 0:18:20

Linux Build 1343 outcome was FAILURE using a merge of f830a246b3ce059d493b9d010e3dc201235d03f9
Summary: Execution timeout (new); tests passed: 2703, ignored: 49; org.wildfly.core:wildfly-core-testsuite-domain Build time: 0:45:02
Build problems:
Execution timeout
Process exited with code 137

Core - Full Integration Build 595 outcome was FAILURE using a merge of f830a246b3ce059d493b9d010e3dc201235d03f9
Summary: Tests failed: 1 (1 new), passed: 2831, ignored: 415 Build time: 0:47:51
Build problems:
Failed tests detected
Failed tests
org.jboss.as.test.integration.ejb.stateful.passivation.PassivationTestCase.testPassivationMaxSize: javax.ejb.EJBException: java.lang.IllegalStateException: WFLYCLEJBINF0008: Stateful session bean {[-53, 80, 63, -28, 1, -33, 65, -54, -116, -128, -29, 65, 111, 94, 37, 86]} refers to an invalid bean group 36bb6bfc-5bff-4307-9287-46d8a05c4928
	at org.wildfly.clustering.ejb.infinispan.bean.InfinispanBeanFactory.createBean(InfinispanBeanFactory.java:76)
	at org.wildfly.clustering.ejb.infinispan.InfinispanBeanManager.findBean(InfinispanBeanManager.java:266)

retest this please

Windows Build 1016 is now running using a merge of f830a246b3ce059d493b9d010e3dc201235d03f9

Linux Build 1344 is now running using a merge of f830a246b3ce059d493b9d010e3dc201235d03f9

Core - Full Integration Build 596 is now running using a merge of f830a246b3ce059d493b9d010e3dc201235d03f9

Linux Build 1344 outcome was SUCCESS using a merge of f830a246b3ce059d493b9d010e3dc201235d03f9
Summary: Tests passed: 3047, ignored: 64 Build time: 0:19:02

Windows Build 1016 outcome was SUCCESS using a merge of f830a246b3ce059d493b9d010e3dc201235d03f9
Summary: Tests passed: 3047, ignored: 64 Build time: 0:19:16

Core - Full Integration Build 596 outcome was SUCCESS using a merge of f830a246b3ce059d493b9d010e3dc201235d03f9
Summary: Tests passed: 2832, ignored: 415 Build time: 0:49:31


Ideas for clarifying data entry

Ideas for Methodology

Ideal organization of the method.id records in Methodology table would be a finite number of broad methodological approaches in method.category, and unlimited number of variants on those.
a.  Before assigning a number, its good to see if there's already a record specifying the same approach (e.g., 446 could apply to multiple ForestGEO studies). If it doesn't exist, create a new unique number (higher than current max).
b.  For example, record 446 is the same methdology as 452, but ultimately 446 was used to obtain delta.agb_C, whereas 452 was used to measure delta.agb_OM. It would make sense to merge those by giving them the same ID number followed by decimals (e.g. 446.1, 446.2).
c. We want to fix up the NPP and GPP records for the Bukit Timah Primary and Secondary data (from this merge/pullrequest.

clarification- Bukit Timah data entered in that pull request did not include any GPP or NPP. Becky's project will focus on productivity, but the Bukit Timah data was just practice entering data.


openjdk: 11.0.1 -> 11.0.2

Things done

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

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

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

duplicate of #54984
the jdk version there is the same as the ga one and is now merged


Role Management index showing error

Can you please post the javascript and TableController code, it might be an issue in those files

@anushamarasani Did you add of modify any roles, can you please tell what lead to this issue ?

Error resolved.


Add Windows CI via AppVeyor

We need a windows ci runner, as many of my commits deal with fixing broken windows builds. These, ideally, should be fixed before a PR is merged. Since I'm most familiar with AppVeyor, I decided to go with them -- it was pretty simple, add appveyor.yml file to invoke maven.
Some notes:

Something was going on with H2 where the same table existed when on setup, so I modified the tests to create the table if not already existing.
I enabled the CI on my fork, and this CI run would have caught the #1699 issue before #1678 was merged.
To test, I reverted mentioned pull request and the CI does pass

We'll have to add AppVeyor as a trusted integration, like we do with Travis. I haven't checked if I have permission to do so.

Coverage remained the same at 82.298% when pulling 12ed2d09b4748d7eda56a972ef82156944424fef on nickbabcock:windows-ci into 7d1431a99d69f7fe955f1b6f8124c64db660680b on dropwizard:master.

Looks good to me.  It doesn't look like Github natively supports AppVeyor (it doesn't show up in the integrations drop down anyway), but maybe we could trigger it via a web hook?

Actually, it looks like I just had to add it in the AppVeyor UI, it may not require any permissions at all from us. I'm going to go ahead and merge this so we can see. It should pass

While appveyor built on the code on master, looks like it may have not added it as a check to pull requests:
Like @jplock said, some additional configurations may be needed for the dropwizard account. For my account and projects, I have:

It's definitely possible to add AppVeyor as a check. Take a look at any of the Json.Net pull requests


Add plugin to custom form

DotSpatial version: 2.0
My app is completely customized so I don't use the built in toolbar. However I do want to add the Measurement plugin to my app and link it to a button. I've been looking for samples but haven't really found any. I know you have to put the DLLs in the Plugin folder but from there how do I tie it in with a button on my form?

The workaround I have come up with is as follows:
Use the standard App Manager that will add the standard controls. After that has been initialized in Form Load I then look for the SpatialDockManager, SpatialStatusStrip, and ToolStripPanel controls and I hide them. I then look for the ToolStrip control with the name "Map Tool" and the ToolStripButton with Text = "Measure". Once I have that control I can then use the tsb.PerformClick anywhere I want to display the Measure dialog.
It works but it seems like a huge hack just to tap into plugin functionality. I think this is a good case to consider when updating the framework in that some developers already have established GUIs. Adding plugin functionality to already existing controls should be considered. Or I should say please, please consider the custom form during development.

I have same work , but i just add measure as dll to reference and call dialog form it work fine


Clean up repository structure

Moving the files one level up should be done in a finalizing PR at a later stage.
Originally posted by @juliapampus in https://github.com/International-Data-Spaces-Association/IDS-RAM_4_0/issues/118#issuecomment-1031261006
Will relate to issue #122.

Closed by #193


Add field "Moderator" to talk view

I added a field at the end of the spreadsheet, where we want to enter the name of a moderator.
Please add the moderator in the talk view, e.g. like that:
Session moderator: Hong Phuc Dang

Done!


mingw fails in test_store

Running a build off the latest master under mingw causes test_store to fail. Lots of errors like this:
Couldn't open file or uri file:/home/Matt/openssl/test/testx509.pem
2560:error:02016002:system library:stat:No such file or directory:crypto/store/loader_file.c:823:file:/home/Matt/openssl/test/testx509.pem
2560:error:02016002:system library:stat:No such file or directory:crypto/store/loader_file.c:823:/home/Matt/openssl/test/testx509.pem
../../../util/shlib_wrap.sh ../../../apps/openssl.exe storeutl -noout 'file:/home/Matt/openssl/test/testx509.pem' => 1
not ok 9

#   Failed test at ../test/recipes/90-test_store.t line 110.
Couldn't open file or uri file:///home/Matt/openssl/test/testx509.pem
4164:error:02016002:system library:stat:No such file or directory:crypto/store/loader_file.c:823:/home/Matt/openssl/test/testx509.pem
../../../util/shlib_wrap.sh ../../../apps/openssl.exe storeutl -noout 'file:///home/Matt/openssl/test/testx509.pem' => 1
not ok 10

#   Failed test at ../test/recipes/90-test_store.t line 112.
Couldn't open file or uri file://localhost/home/Matt/openssl/test/testx509.pem
2856:error:02016002:system library:stat:No such file or directory:crypto/store/loader_file.c:823:/home/Matt/openssl/test/testx509.pem
../../../util/shlib_wrap.sh ../../../apps/openssl.exe storeutl -noout 'file://localhost/home/Matt/openssl/test/testx509.pem' => 1
not ok 11

/home ought to be an MSYS2 "mount point"... Or maybe a subdirectory to /, root "mount point". Either way this means that it has to be converted from posix-y path to actual Windows path. So question is why wasn't it. MSYS2 has to be told not to do that. And it's told to not touch "file:", but the rest should be converted... Well, multiple slashes have special meaning, but first out should have been converted... Right?

As far as I know, only the URIs starting with file: are affected.  Give me a moment to confirm.
I wonder if there's a way to do the necessary conversion in our code in that case (and if it's worth the effort)

As far as I've been able to google, there is no "standard" function to do Unix<->Windows path conversion.  Additionally, it seems that msys2 is closed source (well, if someone can find a publicly accessible source repo, please speak up!), so no way to tell for sure.  I've seen a few different hacks to do what's needed, or rather possibly what's needed (I'm not savvy enough to say), but that doesn't seem too reliable...
So it seems that the only viable solution is not to support file: on MSYS2 (i.e. not test for them).
There aren't enough words to express my disappointment with this...  :-/

I was right, this is entirely about file:
test_store.log

if someone can find a publicly accessible source repo, please speak up!

https://github.com/msys2/msys2

In particular this looks promising (linked off the above page):
https://github.com/alexpux/path_convert

there is no "standard" function to do Unix<->Windows path conversion.

And I see not reason for why there should be one. My remark was rather that MSYS2 should have done it. Though I might have been wrong assuming that setting MSYS2_ARG_CONV_FILE to "file:" let's "file:" alone and converts the rest of it. I mean I assumed that file:/home should have been converted to file:c:\some\thing, and it might be wrong assumption. Just in case for reference, how does it work on travis. I mean the mingw build is exercised on travis. When absolute unix pathname is passed to wine[!], it makes up a drive letter where absolute pathname works and starts Windows binary with this drive as default. And since slashes work just as good as backslashes on Windows, absolute paths just work.

And I see not reason for why there should be one. My remark was rather that MSYS2 should have done it.

Right, it leaves anything starting with file:// alone, and converts any file:/something/or/other to file;C:\mingw64\something\or\other (in the 64-bit variant).  Both are utterly useless, unless we really want to complicate things.

Though I might have been wrong assuming that setting MSYS2_ARG_CONV_FILE to "file:" let's "file:" alone and converts the rest of it.

MSYS2_ARG_CONV_EXCL...  and yes, that's exactly right, and that's why you can see our messages mention issues with opening /home/...

I mean I assumed that file:/home should have been converted to file:c:\some\thing, and it might be wrong assumption.

Yup, see above.

Just in case for reference, how does it work on travis. I mean the mingw build is exercised on travis. When absolute unix pathname is passed to wine[!], it makes up a drive letter where absolute pathname works and starts Windows binary with this drive as default. And since slashes work just as good as backslashes on Windows, absolute paths just work.

Wine maps Z: to /, and seems to set that as the current working device, so anything that opens a Unix path will get mapped correctly.

I just had a look at /usr/include/sys/cygwin.h, and it turns out that the function I look for does exist, cygwin_conv_path.  Despite its name, it seems to be part of msys2 as well.

the function I look for does exist, cygwin_conv_path

But how does it help? Thing is that you need to call it from perl! Well, one can write a wrapper that perl would call, and it would the wrapper that would call the function. But I'd say it would be really excessive. It's as appropriate to simply suppress the tests. I mean exercising them with wrapper proves pretty much as much as suppressing. Besides, they are exercised in appveyor, so it's not like there is no evidence that stuff doesn't work. Also note that only absolute paths are problematic, relative ones should work...

Also note that only absolute paths are problematic, relative ones should work...

Well, considering file: URIs can only be absolute...

Thing is that you need to call it from perl!

Uhmmmm, no.  If OSSL_STORE_open gets the URI "file:///home/User/whatever.pem" when running under the mingw shell, that'll currently not work, because opening /home/User/whatever.pem won't be understood, since that path hasn't been converted.  Perl is long gone in that situation.  We have no idea where that URI comes from, the calling application may have read it from a configuration file for all we know...

It's possible, though, that file: URIs are a lost cause in a mingw shell.  In that case then yes, suppressing those tests is the right thing to do.

Thing is that you need to call it from perl!

Uhmmmm, no.

Uhmmmm, yes. You can't call the function in question from binary you test. It's just a Windows binary, remember? So that conversion has to take place prior it's executed. The only leverage you have is MSYS2_ARG_CONV_EXCL environment variable and it doesn't do the trick here.  Naturally assuming that MSYS2_ARG_CONV_EXCL is still set. And once again, it's not "mingw shell", but "MSYS2 shell" (with mingw compiler on $PATH).

@dot-asm, why do you insist on involving perl?  The same problem occurs when running something like apps/openssl.exe storeutl file:///home/Richard/whatever.pem in the MSYS2 Mingw shell (that's what it's called in my installation, I hope you don't mind me using that).
But you know what, I've growned tired of this, so #6376 is it for me

do you insist on involving perl?

??? I'm not. You said "there is function", and I said "where would you use it? the only place you can use it is perl [or custom wrapper], and if you do that, it would be excessive." Well, I could have clarified that using it in perl would be a huge stretch, if possible at all. In a sense I brought up perl rather to show how excessive it would be, that is as an argument against implied suggestion to use the function.

Did you follow the link?  It's a C function, and I was thinking of using it in file_open in crypto/store/loader_file.c...  Alas, it seems I'm either missing a mingw package, or sys/cygwin.h isn't available with the mingw toolchain, so I haven't been able to test that...

MSYS2 Mingw shell

That works, because it does mention MSYS2 and is strong reference to icon name on Windows start menu. "mingw shell" doesn't work, because it rather suggests that you execute interactive shell that is not linked with MSYS2 run-time.

it seems I'm either missing a mingw package, or sys/cygwin.h isn't available with the mingw toolchain,

Why should it? What is mingw toolchain? It's a toolchain that allows you to produce Windows binaries that are virtually indistinguishable from ones produced by MSVC. In it's core there is [clone of] Windows SDK headers and [clone of] Windows SDK export libraries. Expecting that mingw toolchain would provide the function in question is equivalent to expecting to find it among vanilla Windows export libraries.


Same icons for all itemize levels

All itemize levels should have the same item icon.

Set square as icon for all itemize levels.


Allow +sip.instance in more requests than only REGISTER

I needed to include instanceId in my INVITE requests and could not find a way to do it in the current API.
I shuffled some things around and moved instanceId up so that it's always generated and stored in the UA.
There is now a way to add instanceId in all requests that include the contact header.
The instanceId can be automatically generated or manually set.
The old behaviour of only sending instanceId in REGISTER requests is the default.
This introduces a breaking change for people who set their own instanceId on their registerer since instanceId is removed from registerer options.
We're using my fork in production right now, but it's a bit of a hassle to handle since the package needs to be built, we can't just point the dependency in package.json to the repository.
So I created this PR to check if this is a change that more people want, and if the implementation looks ok.

Hi,
I've modified your PR...

an option has been added to UserAgentOptions called instanceId to specify a custom instance id (default random)
an option has been added to UserAgentOptions called instanceIdAlwaysAdded (default false)
the instanceId option that is part of RegistererOptions has been deprecated (but otherwise unchanged in behavior)

Furthermore, this PR is now non-breaking and backwards compatible.
It's been picked onto the main branch and will go out with the next release.
Cheers!

Thanks for taking a look!
My implementation was very much based on our needs, so your changes makes it a lot cleaner and makes more sense.


DarkBot does not like plugins that modify network packets

these plugins for example don't work with darkbot
http://www.spigotmc.org/resources/protocolsupport.2367/
http://www.spigotmc.org/resources/carbon.1258/

why would they work? they are spigot plugins

Solution: Do not install plugins that modify network packets, because modified network packets are broken, and were never natively supported to begin with.

@Vincentyification what do you mean?

anything new on this ??

What doesn't work about it?


HTTP Input Operator

Description of Changes
We have a need for an HTTP input operator capable of receiving arbitrary json payloads
How Does it Work?
Using net/http and gorilla/mux, the operator starts a HTTP server with the following endpoints:

json payload: POST /
healthcheck: GET /health

Features

HTTP/1.x with optional HTTPS / TLS support
Configurable minimum supported TLS version, defaulting to TLS 1.2
HTTP Basic Auth (user / password)
Token Auth via a predefined header, supporting multiple values / tokens
Heathcheck endpoint provided at /health, returns status ok / 200
Configurable timeouts

idle connection timeout
read timeout
write timeout

Configurable payload size

max header size
max body size

Test Coverage
95% test coverage. Some errors are not tested as they are hard to produce, such as passing a non nil map to entry.New().
Tests primarily focus on

ensuring request body input properly maps to expected entry output
authentication works as expected
tls works as expected
configuration options output the expected operator

What is missing

HTTP/2.0 support: Supported by underlying net/http package, just requires additional configuration.
Timestamp promotion: In the future, we could support promoting a configured timestamp field. This is something that can be done inside a plugin / pipeline configuration, and may be outside the scope of this operator.
TLS mutual authentication.
HTTP headers could be added to record / label, but we need to ensure auth information is not leaked.
I would like to use the operator's logger to integrate with the net/http's ErrorLog, however I am not sure how to proceed.

...
// config.go lines 184
ErrorLog:       nil, // TODO: logger logs http server errors
...

Entry

timestamp is set by entry.New() (the time the entry was created)
http_body: contains all fields nested under $record
http_body.message: Is promoted to $record.message if it exists
labels: various labels are attached from the request metadata

curl localhost:9090/ \
    -X POST \
    -u stanza:dev \
    -d '{"message":"logging enabled","user":"devel","mode":"test"}'

{
  "timestamp": "2021-09-24T14:33:56.653226981-04:00",
  "severity": 0,
  "labels": {
    "net.host.ip": "localhost",
    "net.host.port": "9090",
    "net.peer.ip": "::1",
    "net.peer.port": "56554",
    "protocol": "HTTP",
    "protocol_version": "1.1"
  },
  "record": {
    "http_body": {
      "mode": "test",
      "user": "devel"
    },
    "message": "logging enabled"
  }
}

Please check that the PR fulfills these requirements

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)
[ ] Add a changelog entry (for non-trivial bug fixes / features)
[ ] CI passes

Log Files
Logs / Second
CPU Avg (%)
CPU Avg Δ (%)
Memory Avg (MB)
Memory Avg Δ (MB)

1
1000
1.3275898
+0.034453988
127.32139
-1.4986496

1
5000
5.0173554
+0.10352707
137.07382
-0.15246582

1
10000
9.724178
-0.39688587
142.06532
-1.5742188

1
50000
46.20878
-0.9121895
171.75095
-3.4300842

1
100000
87.674866
-4.8654785
226.61827
-10.822189

10
100
1.8621093
-0.03446567
132.49084
-1.0169678

10
500
5.7069926
+0.06889629
140.06493
+0.5390625

10
1000
10.94853
+0.068826675
145.05106
-3.2905426

10
5000
49.862324
-3.466011
175.7589
-5.0125275

10
10000
93.018906
-1.5173874
211.59213
-1.7020416

Log Files
Logs / Second
CPU Avg (%)
CPU Avg Δ (%)
Memory Avg (MB)
Memory Avg Δ (MB)

1
1000
1.3793124
+0.086176634
126.68117
-2.1388702

1
5000
4.810427
-0.103401184
137.35117
+0.12487793

1
10000
9.706958
-0.41410637
145.9911
+2.3515625

1
50000
45.96672
-1.1542473
175.2104
+0.029373169

1
100000
90.65554
-1.8848038
235.46552
-1.9749451

10
100
2.0345745
+0.13799953
133.2904
-0.21740723

10
500
5.7413993
+0.103302956
137.45433
-2.0715332

10
1000
11.259017
+0.37931347
145.95164
-2.3899536

10
5000
54.98318
+1.6548462
177.96404
-2.8073883

10
10000
99.80894
+5.272644
224.45178
+11.157608

Log Files
Logs / Second
CPU Avg (%)
CPU Avg Δ (%)
Memory Avg (MB)
Memory Avg Δ (MB)

1
1000
1.655163
+0.3620273
129.67686
+0.8568268

1
5000
4.620778
-0.2930503
138.00957
+0.7832794

1
10000
10.034523
-0.086541176
144.47804
+0.838501

1
50000
44.81049
-2.3104782
172.1712
-3.0098267

1
100000
91.957436
-0.58290863
304.94586
+67.5054

10
100
1.724191
-0.17238402
134.08957
+0.5817566

10
500
5.7242956
+0.08619928
141.19894
+1.6730804

10
1000
10.948434
+0.068730354
146.06223
-2.2793732

10
5000
52.568806
-0.7595291
178.5
-2.2714233

10
10000
102.20785
+7.6715546
323.90747
+110.6133

Log Files
Logs / Second
CPU Avg (%)
CPU Avg Δ (%)
Memory Avg (MB)
Memory Avg Δ (MB)

1
1000
1.2413514
-0.051784396
127.559
-1.2610397

1
5000
4.758646
-0.15518236
135.44437
-1.7819214

1
10000
9.500088
-0.62097645
142.8587
-0.780838

1
50000
46.62199
-0.49897766
176.6382
+1.4571686

1
100000
97.53564
+4.9952927
230.78934
-6.651123

10
100
1.844863
-0.051711917
133.2601
-0.24771118

10
500
5.7759857
+0.13788939
140.78206
+1.2561951

10
1000
10.482796
-0.3969078
147.37285
-0.96875

10
5000
50.13963
-3.1887054
177.74152
-3.0299072

10
10000
103.51883
+8.982536
229.21767
+15.923492

Log Files
Logs / Second
CPU Avg (%)
CPU Avg Δ (%)
Memory Avg (MB)
Memory Avg Δ (MB)

1
1000
1.5517213
+0.25858557
129.54108
+0.7210388

1
5000
5.086279
+0.17245054
139.27614
+2.0498505

1
10000
9.051963
-1.0691013
148.75189
+5.1123505

1
50000
47.00093
-0.12003708
175.61314
+0.43211365

1
100000
83.3617
-9.178642
305.94153
+68.50107

10
100
1.9827679
+0.086192966
134.9577
+1.4498901

10
500
5.7242465
+0.08615017
139.47765
-0.048217773

10
1000
11.84503
+0.9653263
148.75606
+0.41445923

10
5000
51.345055
-1.9832802
205.00229
+24.230865

10
10000
96.5831
+2.0468063
718.7003
+505.40613

Log Files
Logs / Second
CPU Avg (%)
CPU Avg Δ (%)
Memory Avg (MB)
Memory Avg Δ (MB)

1
1000
1.3792917
+0.12065089
126.323006
-1.9923172

1
5000
5.1897354
-0.03456974
138.38295
+1.7060852

1
10000
8.87938
-0.6896696
144.00916
+0.2897339

1
50000
45.965878
-0.82777786
173.74947
-0.42671204

1
100000
92.87347
+0.90667725
229.71605
-10.540146

10
100
2.3276339
+0.39660084
133.9278
+0.98773193

10
500
6.3794694
+0.51720905
135.18777
-2.94841

10
1000
11.034506
-0.6557121
145.03421
-3.493805

10
5000
50.621876
+1.0522461
176.05913
-0.9927368

10
10000
99.57356
-1.2900696
218.81155
-8.437103

Log Files
Logs / Second
CPU Avg (%)
CPU Avg Δ (%)
Memory Avg (MB)
Memory Avg Δ (MB)

1
1000
1.4483286
-0.086176634
127.473465
+1.0822983

1
5000
4.862143
-0.017282963
137.63995
-1.1939697

1
10000
9.82767
+0.06905174
144.51791
-2.2941895

1
50000
46.58796
+0.3285141
174.82207
+1.8530426

1
100000
92.225
-0.36351013
237.84012
+4.368805

10
100
2.1725156
+0.25869107
134.3424
+1.9905701

10
500
5.638058
+0.0172472
141.80684
+2.0391998

10
1000
11.051687
-1.569354
146.38995
-2.9108276

10
5000
53.982677
+1.9492188
177.84631
-1.5207367

10
10000
98.31064
-0.53621674
219.33769
-30.506454


Docs for using the sink

@mshtelma, thank you for doing this work!
Very excited to try it out. It would be helpful if you provided tutorial about using this to write a stream to JDBC.

@glebmezh Hi Gleb, have you tried using the sink? Does it work for your project?
I will try to provide some tutorial.


Render Pipeline Redesign

This is an overview of the planned changes for v7. The actual implementation details are subject to change during development.
Feel free to leave feedback, questions or suggestions.
The Current Design
The API in postprocessing is based on three's postprocessing examples; at its core it provides an EffectComposer that uses a WebGLRenderer to render passes. A Pass performs a set of tasks to either render consumable textures or to draw the final result to screen. The RenderPass renders the scene colors to a texture and serves as a starting point for most render pipelines.
A few years ago, #82 introduced the EffectPass which can merge Effect instances into a single fullscreen pass for optimal shader performance. Since then, passes and effects have been added and improved, but some effects like SSR and motion blur are still missing. This is because the current API doesn't provide a good way to implement such effects efficiently. Modern effects need additional scene geometry data such as depth, normals, positions, roughness, velocity, etc. This currently requires the scene to be rendered multiple times using three's limited material override system.
Problems

The EffectComposer blindly creates two internal render targets to store intermediate results.

The purpose of this is to avoid reading from and rendering to the same buffer (feedback loop).

The composer provides access to these buffers via the render method of the passes.
Passes need to tell the composer whether these buffers should be swapped when they're done.

The multisampling (MSAA) setting affects both of these buffers because the composer doesn't know which of them will actually be used by a RenderPass.
The composer provides a DepthTexture to passes that need one, but this feature is partially broken and too limited.

Passes and effects create several render targets behind the back of the composer which makes optimizations impossible.
Some passes and effects re-render the main scene to obtain additional data or to mask objects based on depth.

This leads to poor performance because rendering the main scene is expensive.

Implementation Goals
The buffer management in postprocessing needs to become more sophisticated to support modern requirements.

Rename RenderPass to GeometryPass.
Replace EffectComposer with a more lightweight RenderPipeline class.

Pipelines are used to group and run passes.
The user may create many pipelines. Resources may be shared if they use the same renderer.
Common setups only require one pipeline that contains a ClearPass, a GeometryPass and one or more EffectPass instances.
The first GeometryPass in a pipeline will be considered the main pass (regarding the main scene & camera).

Passes and effects declare input and output resources.

input will include uniforms and textures (alias buffers).
output will include uniforms and renderTargets (alias buffers).
Resources are declared as key-value pairs.

Keys are strings and values are either Texture or WebGLRenderTarget.
Keys can also be of type GBuffer (string enum).
GBuffer inputs will be filled with the actual textures at runtime.

Input and Output  both define BUFFER_DEFAULT which will be used to auto connect passes.
All GBuffer textures must be rendered by the GeometryPass with MRT.
The configuration of the render targets is controlled by the passes and effects that produce them.
Declaring input buffers in effects automatically makes these textures available to the respective effect shaders.
Inputs and outputs of internal effects or passes must be propagated to the outermost pass.

Render targets will be managed by a BufferManager (shared private static instance in RenderPipeline).

This manager reacts to configuration changes and determines whether render targets can be shared among passes.
Buffer changes are tracked via events that are dispatched automatically for lifecycle hooks.

The flags renderToScreen and needsSwap will be removed.
The parameters of interface methods will be reduced to the bare minimum.
The last pass in a pipeline will render to screen (default output buffer is null) if pipeline.autoRenderToScreen is true (default).

The general IO concept is similar to other node-based systems like Blender's shader nodes which allow users to define named inputs and outputs. Three's built-in materials must be modified with onBeforeCompile to use MRT effectively (possibly the biggest challenge). Since MRT requires WebGL 2, effects that make use of the GBuffer may use GLSL 300.
Use Case Examples
Common Setup

import { ... } from "three";
import { ... } from "postprocessing";

const renderer = ...;
const scene = ...;
const camera = ...;

const pipeline = new RenderPipeline(renderer);
pipeline.addPass(new ClearPass());
pipeline.addPass(new GeometryPass(scene, camera, { frameBufferType: HalfFloatType, samples: 4 }));
pipeline.addPass(new EffectPass(new BloomEffect(), ...));

requestAnimationFrame(function render(timestamp: number): void {

	requestAnimationFrame(render);
	pipeline.render(timestamp);

});

Multiple Scenes

The first GeometryPass in a pipeline produces the GBuffer. Other GeometryPass instances in the same pipeline render to the same GBuffer. To render to separate GBuffers, multiple pipelines must be created.
const mainPass = new GeometryPass(scene, camera, { frameBufferType: HalfFloatType, samples: 4 }));
const hudPass = new GeometryPass(hudScene, hudCamera));
const effectPass = new EffectPass(new BloomEffect(), ...);

pipeline.addPass(new ClearPass());
pipeline.addPass(mainPass);
pipeline.addPass(hudPass); // Renders to the same buffer as mainPass by default.
pipeline.addPass(effectPass);

// defaultBuffer is an alias for output.buffers.get(Output.BUFFER_DEFAULT)
hudPass.output.defaultBuffer = effectPass.output.defaultBuffer;

pipeline.addPass(new ClearPass());
pipeline.addPass(mainPass);
pipeline.addPass(effectPass);
pipeline.addPass(hudPass); // Renders to the same buffer as effectPass.

const pipelineA = new RenderPipeline(renderer);
const pipelineB = new RenderPipeline(renderer);

const geoPassA = new GeometryPass(sceneA, cameraA, { samples: 4 }));
const geoPassB = new GeometryPass(sceneB, cameraB, { samples: 4 }));

const blendEffect = new TextureEffect({ texture: geoPassA.output.defaultBuffer.texture });

pipelineA.addPass(new ClearPass());
pipelineA.addPass(geoPassA);

pipelineB.addPass(new ClearPass());
pipelineB.addPass(geoPassB);
pipelineB.addPass(new EffectPass(blendEffect, ...));

IO Management

class ExamplePass extends Pass {

	// Temporary buffers are outputs with private names.
	// Buffer names will be prefixed internally to avoid collisions.
	private static BUFFER_TMP_0 = "buffer.tmp0";
	private static BUFFER_TMP_1 = "buffer.tmp1";

	constructor() {

		super();

		this.input.buffers.set(ExampleEffect.BUFFER_TMP_0, null);
		this.input.buffers.set(ExampleEffect.BUFFER_TMP_1, null);

		// input.defaultBuffer will automatically be set to previousPass.output.defaultBuffer.texture
		this.output.defaultBuffer = new WebGLRenderTarget(...);
		this.output.buffers.set(ExamplePass.BUFFER_TMP_0, new WebGLRenderTarget(...));
		this.output.buffers.set(ExamplePass.BUFFER_TMP_1, new WebGLRenderTarget(...));

		...

	}

	protected override onInputChange(): void {

		this.copyMaterial.inputBuffer = this.input.buffers.get(ExampleEffect.BUFFER_TMP_1);

	}

	override onResolutionChange(resolution: Resolution): void {

		const { width, height } = resolution;
		this.output.buffers.get(BUFFER_TMP_0).setSize(width, height);
		this.output.buffers.get(BUFFER_TMP_1).setSize(width, height);
		this.output.setChanged();

	}

	render(): void {

		const { renderer, output } = this;

		this.fullscreenMaterial = this.customMaterial;
		this.customMaterial.inputBuffer = this.input.defaultBuffer;
		renderer.setRenderTarget(output.buffers.get(ExamplePass.BUFFER_TMP_0));
		this.renderFullscreen();
		this.customMaterial.inputBuffer = this.input.buffers.get(ExampleEffect.BUFFER_TMP_0);
		renderer.setRenderTarget(output.buffers.get(ExamplePass.BUFFER_TMP_1));
		this.renderFullscreen();

		this.fullscreenMaterial = this.copyMaterial;
		renderer.setRenderTarget(output.defaultBuffer);
		this.renderFullscreen();

	}

}

GBuffer Usage

class ExampleEffect extends Effect {

	private static BUFFER_TMP = "buffer.tmp";

	constructor() {

		super();

		this.fragmentShader = fragmentShader;
		this.uniforms.set(..., ...);

		this.input.buffers.set(GBuffer.DEPTH, null);
		this.input.buffers.set(GBuffer.NORMAL, null);
		// GeometryPass provides optimization options for things like normal-depth downsampling.
		//this.input.buffers.set(GBuffer.NORMAL_DEPTH, null);
		this.input.buffers.set(ExampleEffect.BUFFER_TMP, null);

		// Note: Using the default output buffer in an Effect would result in an error.
		this.output.buffers.set(ExampleEffect.BUFFER_TMP, new WebGLRenderTarget(1, 1, {
			depthBuffer: false
		}));

		this.exampleMaterial = ...;

	}

	protected override onInputChange(): void {

		// Refresh uniforms...
		const buffers = this.input.buffers;
		this.exampleMaterial.depthBuffer = this.input.buffers.get(GBuffer.DEPTH);
		this.exampleMaterial.normalBuffer = this.input.buffers.get(GBuffer.NORMAL);
		this.uniforms.get("exampleBuffer").value = buffers.get(ExampleEffect.BUFFER_TMP);

	}

	...

}

Effect Shader Changes
Shader Function Signatures
Fragment Shader
vec4 mainImage(in vec4 inputColor, in vec2 uv, in GData data);
void mainUv(inout vec2 uv);

Vertex Shader
void mainSupport(in vec2 uv);

Geometry Data
Effects have access to the geometry data of the current fragment via the data parameter of the mainImage function. The EffectPass detects whether an effect reads a value from this struct and only fetches the relevant data from the respective textures when it's actually needed. Sampling depth at another coordinate can be done via float readDepth(in vec2 uv). To calculate the view Z based on depth, the function float getViewZ(in float depth) can be used. GData is defined as follows:
struct GData {
	vec3 position;
	vec3 normal;
	float depth;
	float roughness;
	float metalness;
	float luminance;
}

Uniforms, Macros and Varyings
All shaders have access to the following uniforms:
uniform vec4 resolution; // screen resolution (xy), texel size (zw)
uniform vec3 cameraParams; // near, far, aspect
uniform float time;

The fragment shader has access to the following additional uniforms:
// Availability of actual buffers depends on the input configuration.
struct GBuffer {
	sampler2D color;
	sampler2D position;
	sampler2D depth;
	sampler2D normal;
	sampler2D normalDepth;
	sampler2D roughnessMetalness;
}

uniform GBuffer gBuffer;

The following varyings are reserved:
varying vec2 vUv;

Available vertex attributes:
attribute vec3 position;

Available macros:

If the main camera is a PerspectiveCamera, the macro PERSPECTIVE_CAMERA will be defined.
If the geometry pass uses a float type color buffer, the macro FRAMEBUFFER_PRECISION_HIGH will be defined.

The composer provides a DepthTexture to passes that need one, but this feature is partially broken and too limited.

Just want to emphasize my excitement for changes here in particular -- missing/glitchy depth textures has been a major pain point for me over the past couple months and it will be awesome to have it smoothed out a bit.
Another one is the amount of variables and methods in pp marked private that I've had to reach into (many of which are also used in the example demos) which can get quite ugly in a fully-typed codebase.  I think more conservative use of private variables would be worth considering.

Another one is the amount of variables and methods in pp marked private that I've had to reach into (many of which are also used in the example demos)

The demos are outdated in that regard. Most settings have been made available through getters/setters in the past - the new manual contains up-to-date examples, but it's still incomplete and will be published as part of v7.


Support editing posts

It's 2023. I should be able to edit my posts. Any edits I make locally should also get propagated to Mastodon using their status editing API endpoint

Added in c138a15214d3bd378bc4ece64317ad997170481f


[C++][Parquet] Parquet-cpp version 1.3.1 not tagged in git repo

The released version of parquet-cpp 1.3.1 is not tagged in git repo
$ git remote -v
origin	https://github.com/apache/parquet-cpp (fetch)
origin	https://github.com/apache/parquet-cpp (push)
$ git pull; git tag
Already up-to-date.
apache-parquet-cpp-1.0.0
apache-parquet-cpp-1.1.0
apache-parquet-cpp-1.2.0
apache-parquet-cpp-1.2.0-rc0
apache-parquet-cpp-1.2.0-rc1
apache-parquet-cpp-1.3.0
apache-parquet-cpp-1.3.0-rc0
apache-parquet-cpp-1.3.1-rc0
rel/1.0.0-rc1
Reporter: Ladislav Skokan
Note: This issue was originally created as PARQUET-1182. Please see the migration documentation for further details.

Uwe Korn / @xhochy:
It is, have a look at https://github.com/apache/parquet-cpp/releases/tag/apache-parquet-cpp-1.3.1

Ladislav Skokan:
ok, the tag is there. I had to use " git pull --tags" Thank you.

Wes McKinney / @wesm:
You may need to git fetch origin --tags


Fix clippy::manual_let_else (pedantic)

This is part of nightly clippy::pedantic for MSRV ≥ 1.65.

I was a hesitant to change these given that rustfmt doesn't yet support them (https://github.com/rust-lang/rustfmt/issues/4914 -- unless that's the wrong issue), but it's a small enough cases that it's probably worth fixing clippy.


KAFKA-10164; Throttle Create Topic, Create Partition and Delete Topic Operations (KIP-599, Part II, Admin Changes)

This PR introduces the admin client changes related to KIP-599. The protocol changes a066c5625020a8e4dc51c2c6f457d7f97a1c9e3c introduced in https://github.com/apache/kafka/pull/8933 are temporary included until they get merged.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@rajinisivaram Thanks for the review. I have updated the PR to address your feedback. Regarding the test case that you suggested, I have added test cases but I am 100% sure that they cover what you had in mind. Please, let me know if I have misunderstood your suggestion.

ok to test


[FR] Don't hold focus in result popups

After clicking on a result widget (for instance to expand a tree view) it seems to keep the focus, requiring another click on the text editor canvas to be able to start typing again. Is there an easy way to automatically return focus to the editor? I guess that would be a problem if there was some text entry that happened inside the widget, but that's generally not the case for me, and I seem to frequently forget to click back on the editor before I start typing.
Feel free to close if this is a bad idea - maybe I can change my habit.

interesting - this seems to only happen with in-line results, not floating ones.

Should be fixed by https://github.com/JunoLab/atom-ink/pull/239. After that PR results only acquire focus if you select text.

Way ahead, as usual. Thanks!

As of the latest release there still seems to be a remnant of this - when you click the "x" to close a popup result it seems that the focus isn't returned to the editor window.

Indeed. Fixed by https://github.com/JunoLab/atom-ink/commit/4ddee7816ce50a3f90a555aadd78feaef586850b.

Yay, thanks as always!


Add new tag

Hi!
Please add the new tag for 84bf7f2a3 (php7.2 fix) for using as stable.
Thanks!

https://github.com/himiklab/yii2-easy-thumbnail-image-helper/releases/tag/1.1.1


Make sure we use logging and not fmt.Print(ln) in the code

Should we use "github.com/njpatel/loggo" or golang "log"?

@njpatel is using loggo already. I say lets stick to that
On Mon, Feb 22, 2016 at 5:29 AM Martin Pinto-Bazurco <
<EMAIL_ADDRESS>wrote:

Should we use "github.com/njpatel/loggo" or golang "log"?
—
Reply to this email directly or view it on GitHub
https://github.com/skizzehq/skizze/issues/140#issuecomment-187131890.

ok, then I'll change all "log" references to loggo as well


TypeScript Support

Hi,
I need to use this package with the TypeScript based node/express application but I think it doesn't support it yet, Please kindly give the support for the TypeScript.
Thanks

@harshlodhi82 in the meantime you can build it yourself, e.g:
declare module 'google-trends-api' {
    export interface TrendOptions {
        keyword: string | string[],
        startTime?: Date,
        endTime?: Date,
        geo?: string | string[],
        hl?: string,
        timezone?: number,
        category?: number,
        property?: string,
        granularTimeResolution?: boolean
    }

    interface InterestOverTimeResult {
        "default": {
            "timelineData": [{
                "time": string,
                "formattedTime": string,
                "formattedAxisTime": string,
                "value": number[],
                "formattedValue": string[]
            }]
        }
    }

    export function interestOverTime(options: any): Promise<InterestOverTimeResult>;
}

Thanks for the Help @Fohlen 👍


Add throttle?

Or until the triggered command completes, don't fire the the command again.
Use case:
Quickly make changes to several files.
Result:
Multiple build+test has been triggered at close interval, most of the time before the previous command(s) complete.

It's probably better to cancel and restart in that sort of situation. Processing for the later changed files may have already occurred before they were saved, then you have a result that is perhaps not what is expected.

That would be nice.

Thanks for the report, theoretically this should already be happening but let me recreate some tests and make sure.

@unional I can't seem to replicate it, the way the current code works is that it attempts to close the current process but it won't start a new process until the current one closes. Are you seeing this not happening and can you share where?

In that example it was all invalid but only when I slowed enough did it actually execute long enough to print compilation errors.

Typings projects with test might able to reproduce it easier. See typed-iscroll. I'm out for lunch so don't have computer to get output

Perhaps using exit instead of close events might improve this? Would you want to test it using exit events instead of close and see how that goes?

Ok

I tried in my code and it did trigger multiple times.
The script
{
"scripts": {
"watch": "onchange "/*.ts" -e "/*.d.ts" -i -- npm run -s lint+test",
"lint+test": "npm run lint && npm test",
}
}

When I making changes multiple times (just add space, save, and repeats), it prints out:
```sh
linting...
linting...
testing...
linting...
linting...
testing...
testing...

# then multiple test results printed

When I try with exit, it throws with this:
npm ERR! Please include the following file with any support request:
npm ERR!     E:\hwong\bitbucket\pandash\npm-debug.log
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "prefix" "-g"
npm ERR! node v4.2.2
npm ERR! npm  v2.14.7
npm ERR! code EPIPE
npm ERR! errno EPIPE
npm ERR! syscall write

npm ERR! write EPIPE
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     E:\hwong\bitbucket\pandash\npm-debug.log

I tried to both:

https://github.com/Qard/onchange/blob/master/index.js#L55 to exit
and/or https://github.com/Qard/onchange/blob/master/index.js#L37 and https://github.com/Qard/onchange/blob/master/index.js#L29 to exit

Thanks @unional! I'm going to get some tests up and running this week and resolve it properly.

@unional I can't handle NPM scripts properly, it seems that it doesn't wait for the child to exit. I'll find an issue related to this, I recall it somewhere, but I'm not sure there's much that can be done beyond this. The kill behaviour is kind of nice, maybe I can make a flag to instead enable the wait to re-run behaviour I've also implemented.

@unional See this issue: https://github.com/kimmobrunfeldt/concurrently/issues/4.

@unional You may be interested in https://github.com/Qard/onchange/releases/tag/v2.3.0 until the NPM changes. If you pass -w, it'll wait for the current process to finish before restarting so you don't run multiple in parallel.

Thank, as always! :smile:
From this:
https://github.com/kimmobrunfeldt/concurrently/issues/4#issuecomment-205964746
Does this mean it is fixed in npm 3.8.1?

It would appear so. So child processes should properly exit after 3.8.1. If it doesn't, you can at least use the new -w option.

Confirmed that -w works but npm 3.8.1 changes doesn't. :+1:


Protocol doesn't mention Subscription Resonse

https://solid.github.io/notifications/protocol#subscription
This section only describes a payload of Subscription Request. At the same time, various subscription types describe requirements on various Subscriptions Responses.
I think protocol should mention Subscription Response and shortly explain their role and mention that each subscription type will specify details of Subscription Response.

For example https://solid.github.io/notifications/linkeddatanotifications-subscription-2021#subscription-type

The inbox property is used in the body of the subscription request.
The webid property is used in the body of the subscription response.


sbt 1.x Performance improvement targets

During the last weeks I spent a bit of time analyzing the performance of starting an already fully cached sbt build (i.e. taking the times with time sbt exit && time sbt exit && time sbt exit and ignoring the first result). I probably won't have time to act on these but I wanted to dump these here for anyone who wants to help improving the performance.

Calculating aggregations is slow. Aggregations are cached at the beginning. For each key the settings structure is queried for "What's the value of aggregate in X". This calculation is somewhat slow because aggregation usually falls back to the default value in global scope. To find this value usually the whole delegation chain has to be walked.

Validating key references. Before evaluating settings, sbt validates if the settings dependency structure is valid. This is slow because it uses slow generic abstractions like the AList and creates lots of garbage. I haven't checked but I wonder if it necessary at all to check dependency chains before settings evaluation or if dependency problems could be collected while evaluating the settings tree.

Parallel settings evaluation is ineffective. Settings are evaluated concurrently using the INode setup. In my tests, I didn't observe any notable parallelism even in cases with at least two slow tasks that didn't seem to depend on each other. I haven't looked into that deeply, but I suspect a few issues with parallel settings evaluation:

Task splitup is much too fine-grained. Often there are only super small chunks of code to be evaluated. Each task submission for parallel execution has a cost and I suspect that for small tasks the cost outweigh the potential benefit through parallelism. It seems there are often linear dependency chains that would probably be faster executed linearly on one thread.
Task scheduling is non-optimal. Scheduling is a very hard problem but there might be some clever ways to schedule things if you know enough about the structure of settings dependencies.
It seems like settings evaluation would be a good candidate for using a fork join pool. The current thread pool executor might introduce additional latency and probably has worse scheduling than what you could by using the fork join pool directly.

I had a try at removing the parallel execution completely, which seemed to work and wasn't slower in my limited testing at least. However, it wasn't quite correct as some builds (cinnamon) started to fail with unresolvable setting dependencies. (I thought that after topological sort, dependencies should have always been executed before the dependees but that assumption might be wrong e.g. for Bind nodes). Parallel setting execution might be worth it on some builds, though.

splitExpressions during parsing .sbt files is slow because a Scala compiler has to be initialized for parsing. I played around with caching the results of splitExpressions in https://github.com/jrudolph/xsbt/commit/b7a9f740b3426ac46ee92eec0efdb8cd2a8d16cb which seemed to work quite well (I didn't figure out how to use sbt's caching infrastructure correctly, though).

As already noted in https://github.com/sbt/sbt/issues/3694, a main performance problem is the de(serialization) of update task caches (which are accessed to build the meta-project and the project itself). There are several issues:

Tracked.lastOutput isn't well-suited for the task at hand, as the cache reading code runs markAsCached to set a flag that the data comes from the cache, after the data was read, and afterwards the whole data that was just deserialized from the cache is again written to the cache (see https://github.com/jrudolph/xsbt/commit/3836732b202eaab79ab6636e5a3770cb7a1faf53 for a rather manual attempt to fix that).
sjson-new deserialization is super slow. Reading the ~5MB caches for the akka project (and again for the meta project) takes about 1 second on my machine. The main reason for the slowness is that data is copied around lots of times because of putting a facade in front of scala-json and then copying data around. I attempted improving the performance in https://github.com/eed3si9n/sjson-new/commit/c248ba050157bbf60158f279587fc598afa42d0a but there is still lots of room for improvement. Improving that cache will likely also benefit the update task when run in the project itself. (Imo using a binary format like protobuf for the update cache makes most sense as that will likely be faster than any json representation).

I attached a zip with the flamegraphs captured with async-profiler. One including GC and JIT compilation threads and one with only the Java threads.
flame-graphs.zip

With regards to cold performance (both of SBT and Scalac), it is worth thinking about how to integrate the now-free-in-OpenJDK feature, Application Class Data Sharing, to shave a few hundred millis of startup time. I'm also keenly waiting for JWarmup to persist JIT profiles from a previous run to speedup warmup.

I had a little go with the -XX:AppCDS and it didn't seem to change anything out the box:
08:33:18 $ JENV_VERSION=10 time sbtx exit
Can't parse java version from: 10
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
[info] Loading settings from idea.sbt,global-plugins.sbt ...
[info] Loading global plugins from /Users/dnw/.dotfiles/.sbt/1.0/plugins
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /s/t-sbt-AppCDS/project
[info] Loading settings from build.sbt ...
[info] Set current project to t (in build file:/s/t-sbt-AppCDS/)
        7.77 real        25.08 user         1.10 sys

08:33:36 $ JENV_VERSION=10 time sbtx exit
Can't parse java version from: 10
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
[info] Loading settings from idea.sbt,global-plugins.sbt ...
[info] Loading global plugins from /Users/dnw/.dotfiles/.sbt/1.0/plugins
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /s/t-sbt-AppCDS/project
[info] Loading settings from build.sbt ...
[info] Set current project to t (in build file:/s/t-sbt-AppCDS/)
        7.70 real        24.19 user         1.11 sys

08:33:45 $ JENV_VERSION=10 time sbtx -J-XX:+UnlockCommercialFeatures -J-XX:+UseAppCDS exit
Can't parse java version from: 10
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
[info] Loading settings from idea.sbt,global-plugins.sbt ...
[info] Loading global plugins from /Users/dnw/.dotfiles/.sbt/1.0/plugins
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /s/t-sbt-AppCDS/project
[info] Loading settings from build.sbt ...
[info] Set current project to t (in build file:/s/t-sbt-AppCDS/)
        7.75 real        24.97 user         1.10 sys

08:33:55 $ JENV_VERSION=10 time sbtx -J-XX:+UnlockCommercialFeatures -J-XX:+UseAppCDS exit
Can't parse java version from: 10
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
[info] Loading settings from idea.sbt,global-plugins.sbt ...
[info] Loading global plugins from /Users/dnw/.dotfiles/.sbt/1.0/plugins
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /s/t-sbt-AppCDS/project
[info] Loading settings from build.sbt ...
[info] Set current project to t (in build file:/s/t-sbt-AppCDS/)
        8.10 real        25.24 user         1.20 sys

More experiments, little progress:
22:08:43 $ JENV_VERSION=10 time sbtx -J-XX:+UnlockCommercialFeatures -J-XX:+UseAppCDS -J-Xshare:off -J-XX:DumpLoadedClassList=sbt.lst exit
Can't parse java version from: 10
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
skip writing class com/sun/proxy/$Proxy0 from source __JVM_DefineClass__ to classlist file
skip writing class com/sun/proxy/$Proxy4 from source __JVM_DefineClass__ to classlist file
skip writing class com/sun/proxy/$Proxy5 from source __JVM_DefineClass__ to classlist file
skip writing class com/sun/proxy/$Proxy8 from source __JVM_DefineClass__ to classlist file
skip writing class java/lang/invoke/BoundMethodHandle$Species_LLLLLLLLI from source __JVM_DefineClass__ to classlist file
skip writing class java/lang/invoke/BoundMethodHandle$Species_LLLLLLLLII from source __JVM_DefineClass__ to classlist file
skip writing class java/lang/invoke/BoundMethodHandle$Species_LLLLLLLLIIL from source __JVM_DefineClass__ to classlist file
skip writing class java/lang/invoke/BoundMethodHandle$Species_LLLLLLLLIILL from source __JVM_DefineClass__ to classlist file
skip writing class com/sun/proxy/jdk/proxy1/$Proxy10 from source __JVM_DefineClass__ to classlist file
skip writing class com/sun/proxy/jdk/proxy1/$Proxy11 from source __JVM_DefineClass__ to classlist file
[info] Loading settings from idea.sbt,global-plugins.sbt ...
[info] Loading global plugins from /Users/dnw/.dotfiles/.sbt/1.0/plugins
skip writing class java/lang/invoke/BoundMethodHandle$Species_LII from source __JVM_DefineClass__ to classlist file
skip writing class java/lang/invoke/BoundMethodHandle$Species_LIIL from source __JVM_DefineClass__ to classlist file
skip writing class java/lang/invoke/BoundMethodHandle$Species_LIILL from source __JVM_DefineClass__ to classlist file
skip writing class java/lang/invoke/BoundMethodHandle$Species_LIILLL from source __JVM_DefineClass__ to classlist file
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /s/t-foo/project
[info] Loading settings from build.sbt ...
[info] Set current project to t (in build file:/s/t-foo/)
22:08:55 $ JENV_VERSION=10 time sbtx -J-XX:+UnlockCommercialFeatures -J-XX:+UseAppCDS -J-Xshare:dump -J-XX:SharedClassListFile=sbt.lst -J-XX:SharedArchiveFile=sbt.jsa exit
Can't parse java version from: 10
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
narrow_klass_base = 0x0000000800000000, narrow_klass_shift = 3
Allocated temporary class space:<PHONE_NUMBER> bytes at 0x00000008c0000000
Allocated shared space:<PHONE_NUMBER> bytes at 0x0000000800000000
Loading classes to share ...
Preload Warning: Verification failed for xsbt.boot.Launch
Loading classes to share: done.
Rewriting and linking classes ...
Preload Warning: Removed error class: xsbt.boot.Launch
Rewriting and linking classes: done
Number of classes 2821
    instance classes   =  2743
    obj array classes  =    70
    type array classes =     8
Updating ConstMethods ... done.
Removing unshareable information ... done.
Scanning all metaspace objects ...
Allocating RW objects ...
Allocating RO objects ...
Relocating embedded pointers ...
Relocating external roots ...
Dumping symbol table ...
Dumping String objects to closed archive heap region ...
Dumping objects to open archive heap region ...
Relocating SystemDictionary::_well_known_klasses[] ...
Removing java_mirror ... done.
mc  space:      9424 [  0.0% of total] out of     12288 bytes [ 76.7% used] at 0x0000000800000000
rw  space:   7493400 [ 23.5% of total] out of   7495680 bytes [100.0% used] at 0x0000000800003000
ro  space:  12367464 [ 38.8% of total] out of  12369920 bytes [100.0% used] at 0x0000000800729000
md  space:      6160 [  0.0% of total] out of      8192 bytes [ 75.2% used] at 0x00000008012f5000
od  space:  11153856 [ 35.0% of total] out of  11157504 bytes [100.0% used] at 0x00000008012f7000
st0 space:    716800 [  2.2% of total] out of    716800 bytes [100.0% used] at 0x00000007bff00000
oa0 space:     98304 [  0.3% of total] out of     98304 bytes [100.0% used] at 0x00000007bfe00000
total    :  31845408 [100.0% of total] out of  31858688 bytes [100.0% used]
        1.79 real         1.43 user         0.32 sys

22:09:55 $ JENV_VERSION=10 time sbtx -J-XX:+UnlockCommercialFeatures -J-XX:+UseAppCDS -J-Xshare:on -J-XX:SharedArchiveFile=sbt.jsa exit
Can't parse java version from: 10
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
[info] Loading settings from idea.sbt,global-plugins.sbt ...
[info] Loading global plugins from /Users/dnw/.dotfiles/.sbt/1.0/plugins
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /s/t-foo/project
[info] Loading settings from build.sbt ...
[info] Set current project to t (in build file:/s/t-foo/)
        7.64 real        24.81 user         1.19 sys

@retronym's experiments: https://github.com/retronym/scala-aot/blob/master/README.md#effect-of-appcds

Did you guys abandon CP sharing idea?

your cold SBT startup is spending more than half it's time in the C2 JIT compiler!

Would it be appropriate for sbt to use -XX:+TieredCompilation -XX:TieredStopAtLevel=1? It shows a noticeable startup time improvement on one of my projects:
Without -XX:+TieredCompilation -XX:TieredStopAtLevel=1:
➜ hyperfine --warmup 5 --min-runs 5 'sbt exit'
Benchmark #1: sbt exit
  Time (mean ± σ):      9.041 s ±  0.146 s    [User: 37.029 s, System: 2.140 s]
  Range (min … max):    8.795 s …  9.172 s    5 runs

With -XX:+TieredCompilation -XX:TieredStopAtLevel=1:
➜ hyperfine --warmup 5 --min-runs 5 'sbt exit'
Benchmark #1: sbt exit
  Time (mean ± σ):      7.203 s ±  0.122 s    [User: 13.557 s, System: 1.243 s]
  Range (min … max):    7.009 s …  7.327 s    5 runs

With -XX:+TieredCompilation -XX:TieredStopAtLevel=1 and -Xverify:none (deprecated in JDK 13 and will likely be removed in a future release):
➜ hyperfine --warmup 5 --min-runs 5 'sbt exit'
Benchmark #1: sbt exit
  Time (mean ± σ):      6.349 s ±  0.068 s    [User: 11.892 s, System: 1.254 s]
  Range (min … max):    6.260 s …  6.436 s    5 runs

With -XX:+TieredCompilation -XX:TieredStopAtLevel=1, -Xverify:none and -XX:SharedArchiveFile:
➜  hyperfine --warmup 5 --min-runs 5 'sbt exit'
Benchmark #1: sbt exit
  Time (mean ± σ):      5.425 s ±  0.026 s    [User: 10.782 s, System: 1.154 s]
  Range (min … max):    5.386 s …  5.457 s    5 runs

Have you checked actual compilation? Try compiling a loop of compilations (e.g. ;clean;compile;clean;compile etc) that takes a few minutes under default settings and then only with C1.

Indeed, the compilation performance is not impressive 👎
➜  hyperfine --min-runs 2 'sbt "clean; compile; clean; compile; clean; compile; clean; compile; clean; compile"'
Benchmark #1: sbt "clean; compile; clean; compile; clean; compile; clean; compile; clean; compile"
  Time (mean ± σ):     212.903 s ±  2.530 s    [User: 709.295 s, System: 45.613 s]
  Range (min … max):   211.114 s … 214.692 s    2 runs

➜  export JAVA_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1"

➜  hyperfine --min-runs 2 'sbt "clean; compile; clean; compile; clean; compile; clean; compile; clean; compile"'
Benchmark #1: sbt "clean; compile; clean; compile; clean; compile; clean; compile; clean; compile"
  Time (mean ± σ):     319.712 s ±  3.586 s    [User: 554.071 s, System: 35.555 s]
  Range (min … max):   317.177 s … 322.248 s    2 runs

I've been reading through advancedThresholdPolicy.hpp
. Here's another interesting combination:
➜  export JAVA_OPTS="-XX:Tier3DelayOn=0 -XX:Tier3DelayOff=0 -XX:CICompilerCount=2"

➜  hyperfine --warmup 5 --min-runs 5 'sbt exit'
Benchmark #1: sbt exit
  Time (mean ± σ):      7.880 s ±  0.107 s    [User: 22.218 s, System: 1.584 s]
  Range (min … max):    7.703 s …  7.991 s    5 runs

➜  hyperfine --min-runs 2 'sbt "clean; compile; clean; compile; clean; compile; clean; compile; clean; compile"'
Benchmark #1: sbt "clean; compile; clean; compile; clean; compile; clean; compile; clean; compile"
  Time (mean ± σ):     218.390 s ±  4.132 s    [User: 594.795 s, System: 41.521 s]
  Range (min … max):   215.468 s … 221.312 s    2 runs


Mock

Hi there!
What about unittest.mock in asyncio?

To be honest I left this issue due to lack of my understanding, sorry.  A mock object cooperates perfectly with a futurized and can be used to mock/patch coroutines. Additionally in the meantime I've added helper - to mock async iterators.

I bumped into this today and I managed to get it working like this:
class MyTest(unittest.TestCase):
  @mock('myfunction')
  @async_test
  async def test_myfunc(self, mock):
    mock.return_value = futurized(42)
    result = await myfunction()
    self.assertEqual(result, 42)

The key is to have the mock's return_value and/or side_effect to return futurized values.
When using the async_test decorator ensure that it is the closest decorator to the test function.
Hope this helps.


Element is not clickable at point

I got a few failing tests with this error:
...
  File "/home/travis/builds/freedomsponsors/www.freedomsponsors.org/djangoproject/core/tests/helpers/appdriver.py", line 230, in _fillOfferForm
1133    browser.find_by_id('btnSubmitOffer').click()
1134  File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/splinter/driver/webdriver/__init__.py", line 364, in click
1135    self._element.click()
1136  File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/selenium/webdriver/remote/webelement.py", line 52, in click
1137    self._execute(Command.CLICK_ELEMENT)
1138  File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/selenium/webdriver/remote/webelement.py", line 205, in _execute
1139    return self._parent.execute(command, params)
1140  File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/selenium/webdriver/remote/webdriver.py", line 156, in execute
1141    self.error_handler.check_response(response)
1142  File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 147, in check_response
1143    raise exception_class(message, screen, stacktrace)
1144WebDriverException: Message: u'Element is not clickable at point (637.5, 660). Other element would receive the click: <a href="/core/project">...

It seems like a problem in chromedriver - for which there's a workaround using javascript to scroll to an element's position (as suggested in comment 27, on that link)
But splinter elements to expose their (x, y), right? Is there a workaround for this?

This is old and still open. I face the same issue. Are there any common workarounds or are you guys just don't get this error. If its the secondary, why am I getting it?

I am facing this issue. Is there a common workaround?

i noticed that calling click() twice solves the issue. First one throws, but scrolls so that the button is within the visible frame. Second one actually clicks.

I cant reproduce this bug in the latest splinter version. So, I'm closing this issue.


New issue flow: Suggest posts based on title

When creating an issue, I want to see potential related posts before I go through the trouble of writing a long description.

This depends on #8, it will use the same (or maybe somehow more lenient) fuzzy matching.
8 hours for rudimentary UI


Automate previous/next buttons

Hi @tblanke
As we have a list_of_pages, we don't have to set manually what the next and previous buttons do on all the pages. I've implemented this, but perhaps we just can add a test to see if it works?
What do you think?
Best,
@wouterpeere

Hi @wouterpeere ,
I think it would be nice to implement this as a function so you have to option to do this by hand or automatically.
This is togehter with a test implemented.
With best regards
@tblanke

Perfect! I will open the PR.


[General UI] Text color of focused tab in tabs block has too little contrast

Steps to reproduce the problem

Go to https://learn.qiskit.org/course/introduction/project
Scroll down to the "Step 3: Decide on a project" section and to the "Project ideas" tabs block
Focus (for example by clicking the "tab" key) on the tabs
Attempt to read the label

What is the current behavior?
When focused, the text color is white, which is almost impossible to read.
What is the expected behavior?
The text should have enough contrast when focused.
Even keeping the same color as when not hovered might be a good solution since, when tabbing, a border already indicates the currently focussed element.
Screenshots (optional but very helpful)

Environment (optional but very helpful)

Device: Laptop
OS: MacOS
Browser: Chrome

This repository is no longer maintained. It has been superseded by IBM Quantum Learning.


Add a new parameter Raw to ConvertFrom-StringData

Currently, ConvertFrom-StringData doesn't have a param to use  unescaped strings. You should invoke additional commands to escape strings (Regex.Escape or a preceding backslash( \), etc..).  It would be convenient to use a single param(for example -Raw) without additional conversions.
http://csharpindepth.com/Articles/General/Strings.aspx
The complete set of escape sequences is as follows:
' - single quote, needed for character literals
" - double quote, needed for string literals
\ - backslash
\0 - Unicode character 0
\a - Alert (character 7)
\b - Backspace (character 8)
\f - Form feed (character 12)
\n - New line (character 10)
\r - Carriage return (character 13)
\t - Horizontal tab (character 9)
\v - Vertical quote (character 11)
\uxxxx - Unicode escape sequence for character with hex value xxxx
\xn[n][n][n] - Unicode escape sequence for character with hex value nnnn (variable length version of \uxxxx)
\Uxxxxxxxx - Unicode escape sequence for character with hex value xxxxxxxx (for generating surrogates)
Of these, \a, \f, \v, \x and \U are rarely used in my experience.

Steps to reproduce
ConvertFrom-StringData 'foo=abc\n\t\rabc'

Please correct the name of the cmdlet in the issue title (Convert-StringData -> ConvertFrom-StringData).
Are you saying you want the option to treat the input strings as literals, i.e., without the usual interpretation of the escape sequences?

My guess：
Add a new parameter “-Delimiter” to Convert-StringData
str：
abc\n\tdef
111\n\t222
then use:
Convert-StringData “-Delimiter” "nt"

I don't see a good reason to use C# style escapes.
Assuming you wouldn't mind PowerShell style escapes, there is an api you can use:
ConvertFrom-StringData $ExecutionContext.InvokeCommand.ExpandString('foo=abc`n`t`rabc')


Add PHP support

Adapting the work from https://github.com/fiatjaf/gh-browser/blob/master/python.js to a PHP should not be hard for anyone familiar with PHP include and require workings.

codemill$5

@travisby has been assigned to this task.

@travisby has been unassigned from this task.

Sorry about that, was just playing with codemill.  Didn't expect it to open an issue D:

@mmikulicic has been assigned to this task.

@mmikulicic has been unassigned from this task.

same thing here, sorry for the spam; codemill is a little bit too trigger happy

@jbrooksuk has been assigned to this task.

@jbrooksuk has been unassigned from this task.

Same here. I only wanted to see the issue.

ahahah, what a mess.

@kamdz has been assigned to this task.

@kamdz has been unassigned from this task.

@phuhphan has been assigned to this task.

Hi,
Tell me your issue!
On Mon, Apr 4, 2016 at 22:25 Giovanni T. Parra<EMAIL_ADDRESS>wrote:

@phuhphan https://github.com/phuhphan has been assigned to this task.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/fiatjaf/gh-browser/issues/1#issuecomment-205348317

Are you a bot?

No, my name is Rick Phan. Tell me via skype hphu05101990
On Tue, Apr 5, 2016 at 03:44 Giovanni T. Parra<EMAIL_ADDRESS>wrote:

Are you a bot?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/fiatjaf/gh-browser/issues/1#issuecomment-205487069

@phuhphan Is there any progress or can we release this task back to the marketplace?

Sorry! I don't know python language!

@phuhphan has been unassigned from this task.

I think this requires a bit more work since should also work with namespaces so use and also composer packages I guess.

I know nothing about PHP. How much work do you think it is? Can you point me to some documentation on use and composer?

@fiatjaf Composer works less or more in the same way of npm, but is for php.
For instance we should consider: https://getcomposer.org/doc/articles/aliases.md#require-inline-alias
and this: https://getcomposer.org/doc/01-basic-usage.md#autoloading

Well, thank you. This seems too complicated for someone not versed in PHP. Shouldn't we start supporting require and require_once, include_once, these things, with relative paths?
I've looked at some random PHP applications source code and just found these kinds of imports in the middle of the code.
As far as I could understand, Composer libraries are not called inside the source code files themselves, but only in a separate composer.json file. If I'm right, this is just a different file format that could be supported (.json, which could include support for other languages and JSON file specifications, but that's another talk), so things are quite simpler now.
What do you think?

@M3kH has been assigned to this task.


test cleanup: remove println calls

In many cases asserts were already in place to ensure the expected
output.  In places were asserts did not already exist, the println
calls were replaced by asserts.

+1

nice work :+1:


Pull Request not opened

Hi,
i am using the dependabot for PlatformIO.
I got this error on executing the Github Action:
`
[I] Updating<EMAIL_ADDRESS>from 6.7.0 to 6.8.1 ...
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/app/platformio_dependabot/main.py", line 50, in
main()
File "/app/platformio_dependabot/main.py", line 46, in main
create_pull_request(github_repo, branch_name, package, config.assignee)
File "/app/platformio_dependabot/mygit.py", line 39, in create_pull_request
pr = github_repo.create_pull(title=body,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/github/Repository.py", line 1577, in create_pull
assert isinstance(base, str), base
^^^^^^^^^^^^^^^^^^^^^
AssertionError: None
`
Unfortunatly, the Branch is successfully created with the name: platformio_dependabot/espressif32/6.8.1 but the pull request is not created...
Is there something missing in my repo settings with the security? Or is it not possible due to private repo?
thx

I think i was now able to find my Issue by using the platformIO dependabot:
The Issue happens if the get_basse_branch() is called because my branches does not name the default pattern master/main. So, I think the best way to solve this is by overloading or determaining within the called .yml File what is the current branch, and giving the possibility to overload the branch name by a seperate variable.
Can this be done?
def get_base_branch(github_repo: Any):     branches = list(github_repo.get_branches())     for branch in branches:         if branch.name == "master":             return "master"         if branch.name == "main":             return "main"     return None


Add tests for libs header tests

Previously only build targets were created, but no tests. This adds the tests.

The CircleCI build is missing because I had testing enabled through my account at that time, which seems to exclude it from being tested through the organization account. Here's the build on my account though: https://circleci.com/gh/msimberg/hpx/2142. I'll go ahead and merge this.


Authorization Failure

Hi,
I'm trying to authorize my application towards the API using the StorageAccountExample (see https://github.com/Azure/azure-sdk-for-java/blob/master/azure-mgmt-samples/src/main/java/com/microsoft/azure/samples/storage/StorageAccountExample.java#L418)
I created an application on the Azure Portal and assigned all available permissions for Windows Azure Service Management API and Windows Azure Active Directory.
Then I try to use the example code to read / create storage accounts and get this exception:
com.microsoft.windowsazure.exception.ServiceException: AuthorizationFailed: The client '<client>' with object id '<client>' does not have authorization to perform action 'Microsoft.Storage/storageAccounts/read' over scope '/subscriptions/<subscription-id>.
Could someone point me in the right direction - do I need set permissions elsewhere? What could be a possible cause for the exception?

Sounds like the account you are using to access doesn't have role based authority to access the resource you are trying to access within that subscription. I would verify the account you are using has the proper permissions in the azure portal.
Go to https://portal.azure.com and navigate to subscriptions. Select your subscription you are using for this example, and ensure the user / app account you are using is in (either individually or as part of a group) the subscription's users blade. If the app / user is not there, please add it and make it a contributor, reader or the permission group you deem fit.

Hi @devigned
you are totally right - our issue was that we were missing the correct role to read/write. We ended up creating them through the cli and got this to work. Thanks for letting me know where to find these on the UI as well :)
Thank you!
Franziska

Awesome! Glad to hear. Happy coding!


Add Scheduling Algorithms in Java

I would love to add solution to this.
Please assign me this issue and add hacktoberfest label.

I have created a pull request #111 . Please and merge .

Closing in favor of #80.
Thank you for showing interest in contributing. 😃
@jinicode please create a PR having the algorithms implemented, I'll merge them.
Also have a look at: https://github.com/amanmehara/programming/blob/master/CONTRIBUTING.md


Slack browser won’t be supported

hello Support,
I get the message :
This browser won’t be supported starting March 1, 2022. Update your browser to keep using Slack. Learn more

This finally happened.  Yikes.

@riddlemeright https://getferdi.com/


Allow non-users to post pictures in support category

From lyiriyah :
It would be really useful if non-users could post pictures in the Support category.

To elaborate, whenever someone with only the TTY role requires support, I have to tell them to post pictures on a site such as Imgur. This makes the assistance process way more difficult than it needs to be.
A category-specific permission seems like it would solve this issue.

From Syretia :
Nope, sorry. It's really not that hard to use an image hosting service.


Implement ScoreCard's model and backend

Many steps closer to https://github.com/dart-lang/pub-dartlang-dart/issues/1352

ScoreCardData will replace AnalysisExtract with efficient storage and caching.
ScoreCard stores a lot of relevant information that is required for replacing Job scheduling.
ScoreCardReport will replace Analysis and at the same time will allow dartdoc and other reports reports to be stored and handled the same way.

@sortie this has been updated with the latest 2.0 changes, and can be reviewed again

I've updated the documentation, but looking at it after a month or so, I've found the field duplicates in the ScoreCard vs ScoreCardData a bit confusing. Maybe ScoreCardData should be stored as a serialized binary in ScoreCard like we do with the ReportData? That way the fields in the DataStore records won't be duplicates (it is unlikely that we'd want to filter any of these, as they would also require the runtimeVersion in the id and in the index).

lgtm


WIP: Make django-cms compatible with django 2.2

Description
PR in progress.

Related resources

#...
#...

Checklist

[x] I have opened this pull request against release/4.0.x
[ ] I have updated the CHANGELOG.rst
[ ] I have added or modified the tests when changing logic

Coverage remained the same at 77.668% when pulling 004a3f6b8554c73d26a0d2827fb8eccf3349a5cf on jonathan-s:update-2.2 into d7b3f5833832c269928463237978e0596f8a2b83 on divio:release/4.0.x.


New feature request - "Copy as DBUnit XML"

Hi,
in query Result tab,
it would be great to have "Copy as DBUnit XML", on right click for selected rows.
http://dbunit.sourceforge.net/
After that is clicked, selected rows will be translated/exported as DBUnit XML files and moved to clipboard.
Some other tools/plugins have that functionality. (see attached image)

Thanks, Marko Baricevic

This can be done as an additional data export format.

already implemented


[opentelemetry collector] logCollection preset multiline logs

I would like to work on some kind of support for multi-line logs for log collection.
Currently I have two ideas:

Some runtimes like CRI, have a marker to indicate continuation of log line. See example in recombine operator

So for CRI we could add this:
- type: regex_parser
  regex: '^(?P<timestamp>[^\s]+) (?P<stream>\w+) (?P<logtag>\w) (?P<message>.*)'
- type: recombine
  combine_field: body.message
  combine_with: ""
  is_last_entry: "body.logtag == 'F'"
  overwrite_with: "newest"

That's one idea.

 Which means that 1) idea wouldn't help in my case.
So what I'm thinking is to have an option to configure router and recombine operator to recombine certain logs?
The best example of this is java Exception from recombine operator examples

If there is a commonly used log format that shows up in k8s that our default operators isn't handling I would support adding support for that format.  In that case we should also update the collector k8s example.

The presets shouldn't allow complex configuration in the values.yaml, but they can handle complex, but default, scenarios OOTB.  It's actually really great for the presets to handle something complex, as long as it is common.


Implement test for 'panBy' method of Map

Can I work on this issue?

@jonkoops sorry, I didn't see someone else was working on this, but I made a PR for it.  https://github.com/Leaflet/Leaflet/pull/8514


Issue 13 qucik fix

This quick fix wasn't as quick as I hoped, but should fix #13. I saw these types in Neptun.

Köszi ismét, good job!


Only Top Level Voxels Selected

The select tool currently only selects the "top" voxels. It should select also hidden voxels and actions should apply to all selected voxels (not just the visible selected ones).

Is this actually what people expect? What do you guys think?


[Feature Request] Custom API Repository Path

Dear @elitan ,
in the docs, i read about Custom APIs ( https://docs.nhost.io/custom-api ), which would really be an awesome feature.
Prior, i worked a lot with NestJS ( https://nestjs.com/ ), which is (at least for me) the go-to backend framework when i need to develop an API.
For larger project, i always followed a monorepository approach (i.e., all of my applications (api, web application, mobile application, admin web application, ...) are stored within the same git repository. In this context, i used nrwl/nx to structure / maintain my monorepository. However, nrwl/nx has a predefined folder structure. For example, your apps are located within apps/!
In this context, the custom api would not work, because the api would be stored in apps/awesome-api or whatever ;) Could you please make the api path within the repository customizable? Somewhere in the Settings page or whatever?
All the best,
Johannes

Hi @johannesschobel
Yea I think this make sense. We might not want to change the api/ folder but we could allow repositories with a Nhost app in a subfolder. Similar to https://vercel.com/blog/monorepos
Could you describe a bit more in detail your preferred folder structure for your monorepo?

Dear @elitan ,
thanks for answering to my issue / feature request.
A typical nrwl project is structured as follows:
apps\
  todos-www\
  todos-api\
  todos-mobile\
  todos-xyz\
libs\
  // no real defined structure of the libraries, may be feature-specific, or application specific, ...
package.json

So basically, all your apps reside in the apps folder, whereas the name of the application is customizable (does not need to be named api but can also be called backend-for-todos or whatever).
Note that nrwl follows the single package.json approach. i.e., there is only one single package.json file within the entire repository. Building specific apps (i.e., the api) is done using nrwl-specific command-wrappers, like
nx build <NAME>          // i.e., nx build backend-for-todos

This command, in turn, builds the project based on the workspace definition for this specific application. Furthermore, it finds related packages in the libs folder (i.e., libs/api/auth) and bundles it all together into one single application. This approach guarantees a highly reusable application structure.
In terms of the Custom API feature, I thought about having a settings parameter within the nhost admin console where the path within the repository may be customized. As a default value, the /api value may be provided. However, in my nrwl/nx setting, i could change it to apps/backend-for-todos ...
However, it is not clear to me, how i would "bundle" my application properly? Because i would need to build the app first to be deployed, right? Do we need to call custom npm scripts first?
All the best

This is now working: https://docs.nhost.io/platform/github-integration#base-directory


⚠ Turnos 24x7 has degraded performance

In 67e5146, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 942 ms

Resolved: Turnos 24x7 performance has improved in ab3583b.


feat(react-select): create number type support for value

Description

Type Definition Updates: The ItemData type, SelectContextValue, SelectProps, SelectContentContextValue, SelectItemContextValue, and SelectItemProps have all been updated so that the value property can accept both string and number types.

Function and Callback Adjustments: Functions and callbacks that previously accepted value as a string now accept it as string | number. This includes itemRefCallback, itemTextRefCallback, and shouldShowPlaceholder.

Component Property Changes: Various component properties that dealt with value have been updated to align with the new type definition. This includes changes in SelectContentImpl, SelectLabel, SelectItem, and other components where value is used.

Consistency and Robustness: These changes ensure that the usage of value is consistent throughout the codebase and that the components can handle both strings and numbers, increasing the robustness of the code.

These modifications are significant as they improve the flexibility and type safety of the components involved, allowing for a more versatile and error-resistant implementation. If you're looking for a specific analysis or have a specific question about these changes, feel free to ask!

This is a bit more difficult in practice. Making this change would result in type errors, which is definitely not worth doing for a patch (and may not be worth it at all, IMO).
For example, most folks are only ever going to use a string for values. It makes no sense for them to have to type-check the value in their onChange callback just because we've decided on looser types. I think it's preferable to keep them as-is, even if that means it's a little more cumbersome if you are passing numbers.
Closing for now, though we may consider other ways to make this more flexible in the future.


Document Postgres' Limitations

This patch documents possible inconsistency issues caused by replication slots.

Thanks, and congrats on your first time contribution @Maithem :tada:


Move Government edit to GDS Design System

What

Added render_design_system feature flag to government_controller
Added design_system_actions to government_controller
Duplicated _form and renamed to _legacy_form
Duplicated edit and renamed to legacy_edit
Duplicated new and renamed to legacy_new
Added id to _datetime_fields
Refactored datetime_field_helper
Added function too datetime_field_helper
Updated edit to use GDS components
Updated form to use GDS components
Updated new to use GDS components

Why
Align edit, form & new with the GDS Design System
Improve datetime_fields and add date only use
Trello
https://trello.com/c/MAIwCKsw/31-edit-government-page
Pics

⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠
Follow these steps if you are doing a Rails upgrade.

It's not far off. There's a few minor things to change and i think there's been a few issues with the rebase. Give me a yell if you want a second pair of eyes sorting it 👍

@davidgisbey Few changes:

Move "( ! ) Changes to the government appear instantly on the live site" to show under the H1 title on all screens
Change "Prepare to close this government" to a red link and move it under the Save and cancel group with a  govuk-!-margin-top-8.


[5.10] Avoid passing -experimental-lazy-typecheck to compile jobs.

Cherry pick of https://github.com/apple/swift-driver/pull/1468.
The -experimental-lazy-typecheck driver option was eroneously declared with group: .modes which caused the mode to be treated as a primary action for compile jobs. The flag should only be passed to emit module jobs, though.
Resolves rdar://117168788

@swift-ci please test

@swift-ci please test

@swift-ci please test Windows

@swift-ci please test

@swift-ci please test Windows


Libass Integration

Hi,
I've made some changes to FFmpegInteropX to support libass as a subtitle renderer. The implementation is largely inspired by the libass integration for JavaScript, which you can find here:
https://github.com/libass/JavascriptSubtitlesOctopus
By default, libass operates as follows:

Initialize the library using ass_library_init.
Initialize the renderer using ass_renderer_init.
Create a subtitle track using ass_read_memory (other methods exist, but we're constrained by UWP).
Load the subtitle header using ass_process_codec_private.
Add subtitle chunks from FFmpeg using ass_process_chunk.
The issue I'm encountering is with creating IMediaCue.

Libass uses ass_render_frame to generate an ASS_Image, which works well for rendering. However, since this process must happen in real-time, I’m unsure if it's feasible to create IMediaCue instances based on current implementation. Is it possible to display subtitles accurately using media duration?
P.S. I’ve noticed a recent issue compiling FFmpegInteropX with the target platform set to 10.0.22000.0. To resolve it, I switched to 10.0.26100.0.
Thanks.
#439

I just tested my C# sample from https://github.com/ffmpeginteropx/FFmpegInteropX/issues/439#issuecomment-2561746413 , and instead of using a timer to update the UI, I switched to mediaPlayer.PlaybackSession.PositionChanged for updates.
However, I noticed that PositionChanged is significantly slower compared to using a timer to repeatedly query mediaPlayer.PlaybackSession.Position.

Thanks for sharing this.
It is a good starting point for the integration.

This is almost complete.
We have to call Blend in the CreateCue method, and then create a bitmap from that blend result. Nothing too fancy there.
The problem you are having, which is the same problem I was having is that ass_render_frame does not work. It returns NULL, and therefore nothing is being blended for all my test files. This happens despite the ass_read_memory and ass_process_chunk being called and the track correctly having events inside. My approach was slightly different, using an ass_track for each subtitle, which is safer in seek and flush situations, but this can be refactored later.