Defining Port Configuration to be used by websocket

I am trying to start a websocket server within my already running web application on Tomcat7.
Application is running on port 8080 which is defined through  tomcat connector settings where as websocket is defined over 8088 port. (which is defined using constructor).
Problem:
How can I control max number of connection to the websocket? in tomcat server.xml, there is connector configuration for 8080 port but  if i am trying to defined configuration for 8080, it gives port already in use error when Websocket server is started.
If i dont limit websocket connections, its limiting my webpage user sessions. Please suggest a way to set limit of number of websocket connections.

Hello @Patel32515,
right now the lib does not directly have a connection limit.
You can however use the method onWebsocketHandshakeReceivedAsServer(), check for the limit and throw an InvalidDataException() if to many connections were made.
Check out this wiki article for more information.
Greetings
marci4

Hello @marci4 ,
Thanks for the suggestion, yes this could help.
Wondering if there is any option to make port configurable in server.xml as Connector port?
Thanks,
Priyank

Hello Priyank,
due to the reason that this lib does not require tomcat, we do not evaluate the server.xml.
To set the port, you have to call the WebSocketServer with a different constructor.
Greetings
marci4

No problem, will adapt my implementation accordingly, Thanks for the response..


Top of "E" in "Email" in newsletter example is cut off

It shows fine for me on Chrome, Edge, and Firefox on Windows.

I tested on Firefox 115.0 on Linux


Add sanity check to helm upgrade to check chart name matches release

Unless I am mistaken, it appears to be possible to helm upgrade an existing release with any chart and version. This seems a bit dangerous to me.
Would it be possible to add a flag to helm upgrade to act as a sanity check, only allowing the upgrade to proceed if the chart name is the same and the chart version has been bumped?

This sounds like a great feature idea.

@thomastaylor312 @nickjackson Looking at a fix for this -- feel free to assign it to me when you get a chance. Thanks!

@SlickNik I can't assign it to you because you didn't create the issue, so I am assigning it to me so others don't work on it. Thank you for taking this on!

Surely, it a great feature idea.   In our usage scenario, We forbid the user to update the release when the name of the chart name is not the same.  Look forward to use this feature.

It was our intention to allow an upgrade to switch charts. So it has always been legal to do helm install -n foo myChart and then later helm upgrade foo myChartTwo. Likewise, it is possible (by design) to "upgrade" to a version that is lower, higher, or identical to the current chart.
I have actually taken advantage of this feature on several occasions, though I can certainly understand why some people would want to prevent this.
Because chart swapping is a feature of the current system, the only way to get this request into Helm 2 would be to hide the functionality behind a flag (--no-chart-swap or something).

@technosophos @sushilkm Yes, when I initially took a look at implementing this I envisioned having a flag named "--safe"  or something similar which:

Would ensure that you're not trying to upgrade from a chart of one kind to a chart of a totally different kind.
Potentially could also check versions to ensure that you're not downgrading to a different lower or identical version of a chart.

However, in order for it to be backwards compatible with the current functionality we have in helm today, it would necessarily have to be an additional flag. This would preserve the current functionality of the helm upgrade command.

I think no-chart-swap should be default behavior,  and swap-chart could be a flagged change.
what i intend to suggest is that sanity checks should not be flag based instead they should be default.
However I am still open to implement it based on flag based sanity checks, if that is what we want to do.

@sushilkm I think the debate with that is backward compatibility. We don't want to change the default behavior out under people, but adding something like a --save flag wouldn't be a problem.

should we slate this as a discussion topic for helm 3?

Yeah, let's bump this out to the major milestone and slate it for Helm 3

Agreed -- let's push this out to the next major milestone (Helm 3).


[Parse] Improve diagnostic and add fixit to correct '#else if' to '#elseif'

Resolves SR-10581

cc @rintaro @brentdax (who filed this bug)

Thanks for the feedback @theblixguy @rintaro @brentdax . I think I've addressed all the issues raised

@swift-ci please smoke test


ota: refactoring with strings.json

Checklist

[ ] npm test passes
[ ] tests and/or benchmarks are included
[ ] documentation is changed or added

Maybe an i18n API needed now?


boards: nrf52840dongle_nrf52840: restore storage partition

This restores the 'storage' partition (16 KiB) in the stock layout (fstab-stock.dts), removed in 9a842588fb, probably by mistake (the commit description refers to scratch area only).
This was found when building OpenThread Co-Processor sample.
Fixes: 9a842588fb ("boards: arm: nordic nrf91* nrf53* nrf52* nrf51*: Remove scratch areas")

The compliance check fails at Fixes: ... line length in commit description.
I never break Fixes tag line to preserve original commit title in single line, not sure how to proceed in this case?
Cheers,
Piotr

Open bug with description of issue, replace fixes line with 'Fixes #' and ID of bug

Open bug with description of issue, replace fixes line with 'Fixes #' and ID of bug

Got it, thanks!
Cheers,
Piotr


Config-level exclusion

Closes #22 as we've decided that reporting exclusions won't be handled at the task level and will be managed in the output postprocessing.
This PR:

Adds an exclusions field to the task config to manage point exclusions
Removes the scheduled run (for now)
Adds exclusion path to parameters that can be modified by the CLI

When you say "reporting exclusions", that means things related to post-processing, e.g. plots, reports, ...?
Otherwise, I think this looks good

@natemcintosh yep, that's what I was thinking. basically anything downstream of the actual model run


Update levels.txt

added 2 level (but they are both secrets)

@slysnivy requesting pull here first to avoid any future confusing PR. Then I can safely upload the batch of levels ready for gameplay and testing and verification for the final release.


day mode is not working

day mode is not working

Not implemented yet.

Any solution for this?

@joelbarron
Sorry I've been too busy to work on this. I'll try to fix it on this weekend.

Solved by https://github.com/llotheo/react-native-big-calendar/pull/181
Thank you @joelbarron


social icons are not visible in footer

Bug report
Title
social icons are not visible in footer
Issue Description
social icons are not visible in footer
Preconditions
1. framework Version- master

Steps to reproduce
1. step1- Go to default theme shop view in the footer
2. step2- see the social links icon are not visible

Expected result

Actual result

Fixed


Make watching a bit more resilient to nonatomic bursts of filesystem changes

I'll apologize in advance for this one. I can't say whether the problem is solves (at least might solve) is generally worth the extra bit of complexity. Anyway, I won't be insulted at all if the answer is no.
I use mill to build static-site generators. Before I generate, I use mill -w to serve my soon-to-be-static sites on localhost for edit-refresh cycles on whatever I'll be publishing. It works pretty well, but occasionally, for a variety of reasons, the watch cycles fail, and I have to manually restart mill. Rather than just tolerate that (it's tolerable!), I wondered whether it wouldn't be better to try to make watching a bit more robust to the kind of conditions that seem to flummox it.
The most frequent condition, in my case, has to do with emacs lock files. An example error and stack trace is at the bottom of this note. Basically, when I begin to modify a file, emacs creates a lockfile, and mill restarts harmlessly. That's no problem. But when I save my modified file, emacs first saves, then deletes its lockfile. That sets up a race for mill, which walks source directories, and then hashes in some fashion the files it finds. The walk sometimes occurs before the lockfile is removed, while the attempt to examine the file happens after after, leading to a java.nio.file.NoSuchFileException.
I don't think this issue is likely to be restricted to emacs. In general, I don't think it's uncommon for filesystem changes to happen in short, nonatomic bursts, so maybe it would be good for watching to be resilient to that.
This PR is kind of a dumb attempt at that. In the happy case, it should have very low overhead. But when an Exception would have occurred due to hitting this kind of race badly, we pause 50 milliseconds, then try again.
50 milliseconds is a guess! The intention is to be short enough not to slow builds down noticeably, but long enough that bursts of sequential filesystem changes are likely to complete before the retry. I don't know for sure that it's a great number. But it does seem like at worst it increases the likelihood of a watch succeeding and otherwise does little harm. I'd obviously be thrilled with better numbers or more sophisticated approaches.
Normally I'd want to log the initial failure somewhere, but I don't know of a logger I can access in Watchable, and wasn't sure whether just spewing to Console.err is okay.
Anyway, for what it's worth!
The example error trace is below:
An unexpected error occurred
Exception in thread "MillServerActionRunner" java.nio.file.NoSuchFileException: /Users/swaldman/development/gitproj/drafts.interfluidity.com/drafts/untemplate/com/interfluidity/drafts/mainblog/entries_2024_02/.#entry-situated-vs-unsituated-virtues.md.untemplate
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.readAttributes(UnixFileAttributeViews.java:257)
	at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.readAttributes(UnixFileAttributeViews.java:168)
	at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:148)
	at java.base/java.nio.file.Files.readAttributes(Files.java:1851)
	at java.base/java.nio.file.Files.getPosixFilePermissions(Files.java:2125)
	at os.perms$.apply(PermsOps.scala:13)
	at mill.api.PathRef$.$anonfun$apply$3(PathRef.scala:129)
	at mill.api.PathRef$.$anonfun$apply$3$adapted(PathRef.scala:122)
	at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:576)
	at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:574)
	at scala.collection.AbstractIterable.foreach(Iterable.scala:933)
	at scala.collection.IterableOps$WithFilter.foreach(Iterable.scala:903)
	at mill.api.PathRef$.apply(PathRef.scala:122)
	at mill.api.PathRef.recomputeSig(PathRef.scala:21)
	at mill.util.Watchable$Path.poll(Watchable.scala:21)
	at mill.util.Watchable.validate(Watchable.scala:15)
	at mill.util.Watchable.validate$(Watchable.scala:15)
	at mill.util.Watchable$Path.validate(Watchable.scala:20)
	at mill.runner.Watching$.$anonfun$statWatchWait$1(Watching.scala:75)
	at mill.runner.Watching$.$anonfun$statWatchWait$1$adapted(Watching.scala:75)
	at scala.collection.immutable.List.forall(List.scala:386)
	at mill.runner.Watching$.statWatchWait0$1(Watching.scala:75)
	at mill.runner.Watching$.statWatchWait(Watching.scala:98)
	at mill.runner.Watching$.watchAndWait(Watching.scala:67)
	at mill.runner.Watching$.watchLoop(Watching.scala:45)
	at mill.runner.MillMain$.$anonfun$main0$1(MillMain.scala:219)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:59)
	at scala.Console$.withErr(Console.scala:193)
	at mill.api.SystemStreams$.$anonfun$withStreams$2(SystemStreams.scala:62)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:59)
	at scala.Console$.withOut(Console.scala:164)
	at mill.api.SystemStreams$.$anonfun$withStreams$1(SystemStreams.scala:61)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:59)
	at scala.Console$.withIn(Console.scala:227)
	at mill.api.SystemStreams$.withStreams(SystemStreams.scala:60)
	at mill.runner.MillMain$.main0(MillMain.scala:101)
	at mill.runner.MillServerMain$.main0(MillServerMain.scala:83)
	at mill.runner.MillServerMain$.main0(MillServerMain.scala:35)
	at mill.runner.Server.$anonfun$handleRun$1(MillServerMain.scala:187)
	at java.base/java.lang.Thread.run(Thread.java:833)

What version of Mill are you on? This should have been fixed in https://github.com/com-lihaoyi/mill/pull/2832 I think, which went out in 0.11.6

Great!
I am still running 0.11.5. I'll just upgrade.
Thank you!


Address Book v2

There are missing issues for this refactor or it just ready for start thinking / working on the manual export/import issue? @tschubotz

Regarding the refactor, I don't know.
Regarding manual import/export, let's first work on the top feature in the "features" column before tackling this one again. I think the other ones are more importnat, currently :)

I would close this one since there is now #2182.


Rename variables holding a task from c to t

Signed-off-by: Kenfe-Mickael Laventure<EMAIL_ADDRESS>--
This was starting to drive me nuts :sweat_smile:

Codecov Report

Merging #1042 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1042   +/-   ##
=======================================
  Coverage   59.28%   59.28%
=======================================
  Files           5        5
  Lines         781      781
=======================================
  Hits          463      463
  Misses        204      204
  Partials      114      114

Continue to review full report at Codecov.

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

LGTM


Add the forgotten 'duration' entry to the bytecode results

Sowwy :(
I'm not sure what to do with the data that will be generated by the currently running PR though, should I patch that up?

No worries, we can backfill that (once no run is active, to ensure it doesn't override the file).


Fix - Instruction meter in syscall error case

Codecov Report

Merging #444 (258599b) into main (efb2317) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #444      +/-   ##
==========================================
+ Coverage   89.57%   89.62%   +0.05%
==========================================
  Files          23       23
  Lines        9623     9623
==========================================
+ Hits         8620     8625       +5
+ Misses       1003      998       -5

Impacted Files
Coverage Δ

src/jit.rs
94.31% <100.00%> (ø)

src/vm.rs
76.20% <0.00%> (+1.85%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Could you please provide more information on the physical data encryption at rest?

Hi,
What is the policy on physical data encryption at rest? As in, when data is stored be it IaaS, PaaS, SaaS, does Microsoft by default do it by using their own managed keys? For example, if I create a Web App and store something on it, is it encrypted automatically at rest?
Thanks,
Pranav

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

ID: 16c7901b-497c-38bd-3615-defab17b572b
Version Independent ID: 9855d796-3469-8be5-c9a7-75516d9b8856
Content: Azure encryption overview
Content Source: articles/security/fundamentals/encryption-overview.md
Service: security
Sub-service: security-fundamentals
GitHub Login: @barclayn
Microsoft Alias: barclayn

@blueelvis Thanks for your feedback! We will investigate and update as appropriate.

Hello, @blueelvis it will depend on how you're storing it and many other different nuances. Typically you don't want to store important information on a web app, because the encryption would be dependent on whether or not you've setup you're app to encrypt the data or not.
My suggestion is to store important files in blob storage with encryption, please see : https://docs.microsoft.com/en-us/azure/storage/common/storage-service-encryption
for more information.
@blueelvis Please let us know if there are anymore questions within the scope of this git issue. If not, I will be closing out this git issue by end of day today. Please reopen this git issue if you have anymore concerns. Thanks

@FrankHu-MSFT - Thanks for the clarification. Not the important information. But in general, is it encrypted at rest behind the scenes? For example, if I have a log file generated by a PaaS service which is visible in the Azure Portal, is it stored with encryption at rest or in plain text?

Hey @blueelvis as this looks like it's being addressed at issue : https://github.com/MicrosoftDocs/azure-docs/issues/36895
I will be closing this issue out by end of day today. It depends on how the files are being stored in Azure, as there are many many different storage options. It looks like you're referring to the Virtual Machine VDs. Please follow the other issue for more updates.
Thanks,

Frank

@FrankHu-MSFT - That is specifically about IaaS VM Disks and not the PaaS services which are available in Azure. My question about the encryption at rest is still not answered for the PaaS services.

Hey @blueelvis I see, let me see if I can get a definitive answer. In addition to that, please remember to reopen a git issue if it requires further discussion. Thanks!

Hey @blueelvis,
The following responses are based on conversations with the Encryption-At-Rest team
What is the best course of action or long term solution for service teams with dependencies on PaaS V1 services?
If it is possible to move to PaaS v2 or IaaS then you should.
If you've built your service using Cloud Services or App Services (both of which use PaaS v1) and moving to a new framework requires a complete redesign, then you don't have to move (to meet the encryption requirement at least; there may be some other requirement that necessitates migration) as the E@R efforts will drive encryption into these frameworks. Meanwhile, the apps do have to make sure their persisted data is encrypted by some means. This includes application data, logs, temporary files and crash dumps.
Will there be encryption at rest support for PaaS V1 services?
No. There will be something done on a lower level (host disk encryption) or migrating the frameworks to PaaS v2. Both of these are being planned but neither has a firm date.
In addition to that please see the official docs on encryption at rest here : https://docs.microsoft.com/en-us/azure/security/fundamentals/encryption-atrest
https://docs.microsoft.com/en-us/azure/security/fundamentals/encryption-atrest#encryption-at-rest-for-paas-customers

In addition to that, specifically for web apps and app services please see this git issue: https://github.com/MicrosoftDocs/azure-docs/issues/11299
Essentially if you want something to be encrypted it should be either:
Encrypted by you,
Put on a Azure Storage technology and then the Azure tech should be encrypted,
or on an IAAS disk that has encryption enabled.
@blueelvis Please let us know if there are anymore questions within the scope of this git issue. If not, I will be closing out this git issue by end of day today. Please reopen this git issue if you have anymore concerns. Thanks

@FrankHu-MSFT - Thanks for all the information! Yes, it answers my questions. Closing this issue now.


wsl2: LLVM error:  Assertion `findOption(Name) == Values.size() && "Option already exists!"' failed.

Goal

I follow the demo(https://github.com/taichi-dev/taichi-aot-demo/tree/master/mpm88_desktop ), in order to export taichi to cuda.

step1. Compile  Taichi source has done
step2. Compile demo  with [sh linux_compile_and_run.sh ] but  failed,the output is :
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sc/workplace/tmp/for_linux1/build
[ 50%] Building CXX object CMakeFiles/mpm88.dir/mpm88.cpp.o
In file included from /home/sc/workplace/taichi/taichi/taichi/runtime/gfx/aot_module_loader_impl.h:8,
                 from /home/sc/workplace/taichi/taichi/c_api/src/taichi_core_impl.h:7,
                 from /home/sc/workplace/tmp/for_linux1/mpm88.cpp:9:
/home/sc/workplace/taichi/taichi/taichi/runtime/gfx/runtime.h:67:28: warning: ‘maybe_unused’ attribute ignored [-Wattributes]
   67 |   [[maybe_unused]] Device *device_;
      |                            ^~~~~~~
[100%] Linking CXX executable mpm88
[100%] Built target mpm88
[Taichi] version 1.1.4, llvm 10.0.0, commit bf201011, linux, python 3.8.10
[Taichi] Starting on arch=cuda
./tmp/aot_files
TI_LIB_DIR=/home/sc/workplace/taichi/taichi/python/taichi/_lib/runtime ./build/mpm88 ./tmp/aot_files cuda
mpm88: /home/leon/repos/llvm-10.0.0.src/include/llvm/Support/CommandLine.h:853: void llvm::cl::parser<DataType>::addLiteralOption(llvm::StringRef, const DT&, llvm::StringRef) [with DT = llvm::ScheduleDAGInstrs* (*)(llvm::MachineSchedContext*); DataType = llvm::ScheduleDAGInstrs* (*)(llvm::MachineSchedContext*)]: Assertion `findOption(Name) == Values.size() && "Option already exists!"' failed.
Aborted

Environment

OS: WSL2 Ubuntu-20.04  on win11
Taichi: version 1.1.4
python: 3.8.10
llvm 10.0.0 download from the doc( https://docs.taichi-lang.cn/docs/dev_install)

Seems a linking issue, could you compile taichi_c_api with TI_WITH_LLVM=OFF if you don't need CUDA support?

Seems a linking issue, could you compile taichi_c_api with TI_WITH_LLVM=OFF if you don't need CUDA support?

I compile taichi with args:
eport CXX=/usr/bin/clang++-10
export TAICHI_CMAKE_ARGS="-DTI_BUILD_TESTS=ON -DTI_WITH_VULKAN=ON"
export TAICHI_CMAKE_ARGS="-DTI_WITH_CUDA=ON ${TAICHI_CMAKE_ARGS}"
export TAICHI_CMAKE_ARGS="-DTI_WITH_C_API=ON ${TAICHI_CMAKE_ARGS}"
export TAICHI_CMAKE_ARGS="-DTI_WITH_LLVM=OFF ${TAICHI_CMAKE_ARGS}"
python3 setup.py develop --user

the compile is done , taichi 1.3.0 is install

Seems a linking issue, could you compile taichi_c_api with TI_WITH_LLVM=OFF if you don't need CUDA support?

I compile taichi with args:
eport CXX=/usr/bin/clang++-10
export TAICHI_CMAKE_ARGS="-DTI_BUILD_TESTS=ON -DTI_WITH_VULKAN=ON"
export TAICHI_CMAKE_ARGS="-DTI_WITH_CUDA=ON ${TAICHI_CMAKE_ARGS}"
export TAICHI_CMAKE_ARGS="-DTI_WITH_C_API=ON ${TAICHI_CMAKE_ARGS}"
export TAICHI_CMAKE_ARGS="-DTI_WITH_LLVM=OFF ${TAICHI_CMAKE_ARGS}"
python3 setup.py develop --user

the compile is done , taichi 1.3.0 is install

but i need to export taichi to cuda.
when i compile the demo, the output is
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sc/workplace/tmp/for_linux1/build
[ 50%] Building CXX object CMakeFiles/mpm88.dir/mpm88.cpp.o
[100%] Linking CXX executable mpm88
[100%] Built target mpm88
[Taichi] version 1.3.0, llvm targets unsupported, commit 7a5dac06, linux, python 3.8.10
[W 11/08/22 16:27:46.673 30663] [misc.py:adaptive_arch_select@755] Arch=[<Arch.cuda: 5>] is not supported, falling back to CPU
[Taichi] Starting on arch=x64
[E 11/08/22 16:27:46.673 30663] [program.cpp:Program@100] This taichi is not compiled with LLVM

Traceback (most recent call last):
  File "mpm88.py", line 31, in <module>
    ti.init(arch=arch)
  File "/home/sc/workplace/taichi_2/taichi/python/taichi/lang/misc.py", line 457, in init
    impl.get_runtime().create_program()
  File "/home/sc/workplace/taichi_2/taichi/python/taichi/lang/impl.py", line 376, in create_program
    self.prog = _ti_core.Program()
RuntimeError: [program.cpp:Program@100] This taichi is not compiled with LLVM
TI_LIB_DIR=/home/sc/workplace/taichi_2/taichi/python/taichi/_lib/runtime ./build/mpm88 ./tmp/aot_files cuda
Authorization required, but no authorization protocol specified
Failed to create GLFW window


DS-12892: Add Workers Analytics Engine binding

This is required by https://github.com/cloudflare/terraform-provider-cloudflare/pull/2051 and was manually tested as part of that.
I've also extended an existing unit test similar to what was done for the R2 binding.

this looks good @jimhawkridge . if you can add the CHANGELOG, we can get this merged.

thanking you!


Use DocTableInfo to parse transaction log entries

Crate currently uses the elasticsearch MapperService to parse transaction
log entries, meaning that we need to maintain a parallel set of indexer
implementations - one used in normal indexing, and one used during translog
replay.
This changes translog replay to instead use a new TranslogIndexer class,
constructed from DocTableInfo, which is based on the standard indexer classes.

Reviewers note: this doesn't remove DocumentMapper/FieldMapper yet as there are a few places we still use this, in particular during mapping updates.

@Mergifyio squash title+body


The ReactDOMClient parameter is required for hooks

Context
I have a svelte 4 app, so I installed<EMAIL_ADDRESS>I am trying to embed tldraw, and found this promising preprocessor.
Reproducible build
Stackblitz or Github repo
Renders the  component nicely. However, if useEditor is uncommented:
  // const editor = hooks(() => useEditor());
  // console.log('editor', editor)

The following stacktrace will show in the console:
svelte-preprocess-react.js?v=c2551f75:82 Uncaught (in promise) Error: The ReactDOMClient parameter is required for hooks(), because no parent component was a sveltified React component
    at hooks (svelte-preprocess-react.js?v=c2551f75:82:11)
    at instance (+page.svelte:6:3)
    at init (chunk-3XBAGWFC.js?v=c2551f75:2139:23)
    at new Page (+page.svelte:7:3)
    at createProxiedComponent (svelte-hooks.js?v=c2551f75:341:9)
    at new ProxyComponent (proxy.js?v=c2551f75:242:7)
    at new Proxy<+page> (proxy.js?v=c2551f75:349:11)
    at construct_svelte_component_dev (chunk-3XBAGWFC.js?v=c2551f75:2571:22)
    at Array.create_default_slot (root.svelte:47:86)
    at create_slot (chunk-3XBAGWFC.js?v=c2551f75:99:25)

If a Svelte component is wrapped in a React component like a provider, then hooks() has access to the injected React libraries. It is possible to use a hooks without a wrapper, but then you'll have to provide the libraries manually:
import ReactDOMClient from "react-dom/client"; // React 18
// import ReactDOMClient from "react-dom"; // React 16 or 17
import { renderToString } from "react-dom/server";

const editor = hooks(() => useEditor(), ReactDOMClient, renderToString)

( renderToString is only needed when the component is also server rendered )
I'll look into if the preprocessor can inject these dependencies automatically  when it sees a hooks() call, but that will probably be a 2.x feature.

Oh, that works!
Interestingly enough, I tried that before but was getting a different error. Apparently it's from the tldraw library.
Thank you @bfanger !


update Bullseye to 2.1.0

Main feature: https://github.com/adamralph/bullseye/issues/81

Something weird is happening on Travis CI. Judging by the colours in the output, the old version of Bullseye is being used. Is Docker doing some weird over-aggressive caching?

Ah, I know what the problem is. Bullseye doesn't know it is running in Travis CI, because the Travis CI environment variables are not present in the container. 😏

FYI in order for Bullseye 2.1.0+ to choose the appropriate palette, you need to propagate the TRAVIS_OS_NAME env var from the host to the container.
I'll leave it to you to decide whether you want to do that (either in this PR or later), since it's worth upgrading to 2.1.0 regardless, and not least because I'm a total Docker noob and don't know how to do it.
Also, I'm considering adding CLI options in a future version to force Bullseye to work in the mode for a specific CI system, i.e. --appveyor, --travis-ci, --team-city. That would make this easier, since then you just need to add the option here: https://github.com/SQLStreamStore/SQLStreamStore/blob/5f98e536be986436629413eb36986351fe1f95a5/.travis.yml#L4

What you do is pass the environment variable to docker as a build arg, then back to bullseye as you would on the shell. You can see that in action here: https://github.com/SQLStreamStore/SQLStreamStore.HAL/blob/master/Dockerfile

I went ahead and made a similar change here: https://github.com/SQLStreamStore/SQLStreamStore.HAL/pull/23/files
Not sure if it's working because the build output looks the same to me

@thefringeninja I left some comments in the HAL PR.
I'm not sure it's worth the hassle here. I suggest merging this PR as-is, just to get the upgrade to 2.1.0.
In 2.2.0 we will have the new --travis option so when we upgrade to that we can just add --travis to the build.sh call in .travis.yml.


convert name to name

convert **name** to **`name`**
we have both styles in the *.md, we should use only one of the styles.
And name is much prettier than name in the result,
so we use name
Signed-off-by: Lai Jiangshan<EMAIL_ADDRESS>

heh pretty :art: :smile_cat:
LGTM

LGTM


Leaderboards (Styling, accurate MockData, etc.)

Improve leaderboard styling and mockdata to minimize workload after switch to real data (will be using/modifying the leaderboards created by @M-Schurr).

https://github.com/sopra-fs23-group-13/meme-it-client/commit/cf4ab56e7044b7d87b047c06d137ebd0ba75c3e9

Added Leaderboard and Final Leaderboard views (all contained in this pull request)
https://github.com/sopra-fs23-group-13/meme-it-client/pull/137


[BUG]EvenHub eventProcessorClient when exception happened, it didn't resume as supposed it should be

Describe the bug
Hi team, it seems that when some exceptions happened, the eventProcessorClient won't reconnect.
background: we found our client didn't consume the message as it was supposed to do, and from Azure technology support, we know that the Event Hub was upgrading during the time, so it seems that there were some connect exceptions but the eventProcessorClient didn't resume after that.
Exception or Stack Trace
{"time":"2020-08-03 03:56:48.063", "level":"ERROR", "thread":"elastic-30", "appName":"events-service", "traceId":"", "spanId":"", "url":"", "clientIp":"", "method":"", "elapse":"", "code":"", "message":"", "class":"c.h.socialhub.eventhub.EventHub", "line":"EventHub.java:120", "msg":"Error occurred while processing events The connection was inactive for more than the allowed 240000 milliseconds and is closed by container 'e9e9a440d5684a4e804091b8c14e372c_G1'., errorContext[NAMESPACE: shprod-market.servicebus.chinacloudapi.cn, PATH: $management, REFERENCE_ID: mgmt:sender, LINK_CREDIT: 46]"}
{"time":"2020-08-03 03:56:52.619", "level":"ERROR", "thread":"parallel-3", "appName":"events-service", "traceId":"", "spanId":"", "url":"", "clientIp":"", "method":"", "elapse":"", "code":"", "message":"", "class":"c.a.m.e.PartitionBasedLoadBalancer", "line":"ClientLogger.java:347", "msg":"There are no partitions in Event Hub memberinfo"}
{"time":"2020-08-03 03:56:52.619", "level":"ERROR", "thread":"parallel-2", "appName":"events-service", "traceId":"", "spanId":"", "url":"", "clientIp":"", "method":"", "elapse":"", "code":"", "message":"", "class":"c.a.m.e.PartitionBasedLoadBalancer", "line":"ClientLogger.java:347", "msg":"There are no partitions in Event Hub scoreandtiersyn2tmall"}
{"time":"2020-08-03 03:56:52.619", "level":"ERROR", "thread":"parallel-2", "appName":"events-service", "traceId":"", "spanId":"", "url":"", "clientIp":"", "method":"", "elapse":"", "code":"", "message":"", "class":"c.h.socialhub.eventhub.EventHub", "line":"EventHub.java:120", "msg":"Error occurred while processing events There are no partitions in Event Hub scoreandtiersyn2tmall"}
{"time":"2020-08-03 03:56:52.619", "level":"ERROR", "thread":"parallel-3", "appName":"events-service", "traceId":"", "spanId":"", "url":"", "clientIp":"", "method":"", "elapse":"", "code":"", "message":"", "class":"c.h.socialhub.eventhub.EventHub", "line":"EventHub.java:120", "msg":"Error occurred while processing events There are no partitions in Event Hub memberinfo"}
{"time":"2020-08-03 03:57:02.194", "level":"ERROR", "thread":"parallel-2", "appName":"events-service", "traceId":"", "spanId":"", "url":"", "clientIp":"", "method":"", "elapse":"", "code":"", "message":"", "class":"c.a.m.e.PartitionBasedLoadBalancer", "line":"ClientLogger.java:347", "msg":"There are no partitions in Event Hub couponstatussyn2sino"}
{"time":"2020-08-03 03:57:02.194", "level":"ERROR", "thread":"parallel-2", "appName":"events-service", "traceId":"", "spanId":"", "url":"", "clientIp":"", "method":"", "elapse":"", "code":"", "message":"", "class":"c.h.socialhub.eventhub.EventHub", "line":"EventHub.java:120", "msg":"Error occurred while processing events There are no partitions in Event Hub couponstatussyn2sino"}
{"time":"2020-08-03 03:57:48.066", "level":"ERROR", "thread":"single-1", "appName":"events-service", "traceId":"", "spanId":"", "url":"", "clientIp":"", "method":"", "elapse":"", "code":"", "message":"", "class":"c.a.c.a.i.ReactorReceiver", "line":"ClientLogger.java:347", "msg":"connectionId[MF_7f1ed6_1596401051494] linkName[2_264c04_1596401051495] entityPath[producecoupon/ConsumerGroups/$default/Partitions/2] Error occurred in link.
The connection was inactive for more than the allowed 240000 milliseconds and is closed by container '7e30972cab4047f79c77121dd75fe6cb_G31'., errorContext[NAMESPACE: shprod-market.servicebus.chinacloudapi.cn, PATH: producecoupon/ConsumerGroups/$default/Partitions/2, REFERENCE_ID: 2_264c04_1596401051495, LINK_CREDIT: 469]"}
{"time":"2020-08-03 03:57:48.067", "level":"ERROR", "thread":"elastic-43", "appName":"events-service", "traceId":"", "spanId":"", "url":"", "clientIp":"", "method":"", "elapse":"", "code":"", "message":"", "class":"c.h.socialhub.eventhub.EventHub", "line":"EventHub.java:120", "msg":"Error occurred while processing events The connection was inactive for more than the allowed 240000 milliseconds and is closed by container '7e30972cab4047f79c77121dd75fe6cb_G31'., errorContext[NAMESPACE: shprod-market.servicebus.chinacloudapi.cn, PATH: producecoupon/ConsumerGroups/$default/Partitions/2, REFERENCE_ID: 2_264c04_1596401051495, LINK_CREDIT: 469]"}
{"time":"2020-08-03 03:57:48.067", "level":"ERROR", "thread":"single-1", "appName":"events-service", "traceId":"", "spanId":"", "url":"", "clientIp":"", "method":"", "elapse":"", "code":"", "message":"", "class":"c.a.c.a.i.RequestResponseChannel", "line":"ClientLogger.java:347", "msg":"Exception in RequestResponse links. Disposing and clearing unconfirmed sends.
The connection was inactive for more than the allowed 240000 milliseconds and is closed by container '7e30972cab4047f79c77121dd75fe6cb_G31'., errorContext[NAMESPACE: shprod-market.servicebus.chinacloudapi.cn, PATH: $cbs, REFERENCE_ID: cbs:sender, LINK_CREDIT: 73]"}
{"time":"2020-08-03 03:57:48.067", "level":"ERROR", "thread":"single-1", "appName":"events-service", "traceId":"", "spanId":"", "url":"", "clientIp":"", "method":"", "elapse":"", "code":"", "message":"", "class":"c.a.c.a.i.ReactorSession", "line":"ClientLogger.java:347", "msg":"[cbs-session] Error occurred in session error handler.
onSessionRemoteClose connectionId[MF_7f1ed6_1596401051494], entityName[cbs-session], condition[Error{condition=null, description='null', info=null}], errorContext[NAMESPACE: shprod-market.servicebus.chinacloudapi.cn, PATH: cbs-session]"}
To Reproduce
Steps to reproduce the behavior:
Code Snippet
 eventProcessorClient = new EventProcessorClientBuilder()
                .consumerGroup(EventHubClientBuilder.DEFAULT_CONSUMER_GROUP_NAME)
                .connectionString(currentEventHubProperty.getConnectionString(), this.topic)
                .checkpointStore(new BlobCheckpointStore(blobContainerAsyncClient))
                .processEvent(eventContext -> {
                    // 异步登记偏移量：
                    eventContext.updateCheckpoint();
                    // 获取数据：
                    EventData event = eventContext.getEventData();
                    PartitionContext partitionContext = eventContext.getPartitionContext();

                    System.out.printf("Receive message from Partition id: %s. Sequence Number: %d. Contents: %s\n",
                            partitionContext.getPartitionId(), event.getSequenceNumber(),
                            new String(event.getBody(), Charset.defaultCharset()));

                })
                .processError(errorContext -> System.out.printf("Error occurred while processing events[%s] : %s\n ", this.topic,  errorContext.getThrowable().getMessage()))
                .buildEventProcessorClient();

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):

OS: [e.g. iOS] Windows
IDE : [e.g. IntelliJ] Eclipse
Version of the Library used

com.azure
azure-messaging-eventhubs
5.1.1

com.azure
azure-messaging-eventhubs-checkpointstore-blob
1.1.1

Additional context
We found there were some similar issues but this issue seemed wasn't fixed in 5.1.1

@123Jun321 Thanks for reporting this issue. A similar issue has been reported and is currently being worked on.
https://github.com/Azure/azure-sdk-for-java/issues/13420

hi  @srnagar  thank you


Composable component API..?

Issue type
I'm submitting a ...  (check one with "x")

[ ] bug report
[x] feature request

Issue description
I'm trying to create an app that consists of a List with Items inside. I am utilizing the accessory property to give each ListItem a Button, this button is defined in a const.
The point of the Button is to remove the ListItem that it belongs to from an array, this because each ListItem is created out of an array of strings. But I am unable to achieve this remove-effect since I can't access title prop.
This is my entire App.tsx:
import React, { Component } from 'react';
import { Alert, Vibration, StatusBar, ScrollView } from 'react-native';
import { mapping, dark as darkTheme } from '@eva-design/eva';
import { ApplicationProvider, Layout, Button, Text, Input, ButtonProps, StyleType, List, ListItem, ListItemProps } from 'react-native-ui-kitten';
import Divider from 'react-native-divider';

export default class App extends Component {

  constructor(props) {
    super(props)
    this.state = {
      holder: '',
      players: []
    }
  }

  AddPlayer=()=>{
    const players = this.state.players.slice()
    players.unshift(this.state.holder)
    this.setState({players})
    this.setState({holder : ''})
  }

render() {

  const Accessory = (style: StyleType): React.ReactElement<ButtonProps> => {
    return (
      <Button onPress={() => Alert.alert('A') } style={style} status='info' appearance='filled'>Remove</Button>
    );
  };

  return(
  <ApplicationProvider
    mapping={mapping}
    theme={darkTheme}>
    <Layout style={{ alignItems: 'center', padding: 30, paddingBottom: 0}}>
    <StatusBar barStyle="light-content" />

    <Input
      style={{marginTop: 40}}
      label='Player name'
      size='large'
      keyboardAppearance='dark'
      maxLength={18}
      returnKeyType='done'
      onChangeText={InputValue => this.setState({holder : InputValue})}
      value={this.state.holder}
    />

    <Button
    style={{marginTop: 15, marginBottom: 40}}
    status='primary'
    size='giant'
    appearance='filled'
    onPress={this.AddPlayer}
    >
    Add player
    </Button>

      <Divider color='white'>Players:</Divider>
      </Layout>
      <Layout style={{ flex: 1, alignItems: 'stretch', padding: 30, paddingTop: 0 }}>
      <ScrollView showsVerticalScrollIndicator={false}>
      {
      this.state.players.map((l, i) => (
        <ListItem
          key={i}
          style={{marginTop: 8, backgroundColor: '#1a1f2d'}}
          title={l}
          description='Spelare'
          accessory={Accessory}
        />
      ))
    }
    </ScrollView>
    </Layout>

  </ApplicationProvider>
)};

};

Renders like this: https://i.gyazo.com/68f027331f5077e8e53c7c839dcf9eea.png
As you can see, each ListItem gets a "Remove" button, but I have no idea how to make it functional since I can't access the title prop, nor l parameter after map.
Would greatly appreciate any input on this issue, I might just be missing something in the docs!

An idea I have right now you can use index which you've omitted in your Accessory function
Here is a documentation of ListItem API
You may use that index to modify your array

Here is the quick example of how you can solve this:
const onRemovePress = (index: number) => {
// remove an item by index
};

const Accessory = (style: StyleType, index: number): React.ReactElement<ButtonProps> => {
    return (
      <Button onPress={() => onRemovePress(index); } />
    );
  };

I also recommend you using List component instead of ScrollView

How would I pass the array string to the title prop when using this method?
const renderItem = (info: ListRenderItemInfo<ListItemModel>): React.ReactElement<ListItemProps> => {
    return (
      <ListItem
        style={{marginTop: 8, backgroundColor: '#1a1f2d'}}
        title={'???????'}
        description='Spelare'
        accessory={Accessory}
      />
    );
  };

Should I use map?
Using this now instead of ScrollView:
<List
      data={this.state.players}
      renderItem={renderItem}
      />

title=info.item

Might have found a problem; the first ListItem doesn't seem to get any index. If I create 3 ListItems and press them from the top downwards, they alert "" -> "1" -> "2"
And also, my array doesn't store any index as far as I understand, so I'm not sure how to remove an item by index in the onRemovePress

The first allerts an empty string because of javascript transformation. You shoud alert ${index}

as far as I understand, so I'm not sure how to remove an item by index in the onRemovePress
So this is not a framework issue any more. Read more about working with javascript arrays or google how to remove an object from array by index. I'm pretty sure you'll find the solution to get your business logic done


Server and Client Crashes when connecting any pipe to framed chest

Also does this with Mekanism but only server side and I don't have access to those logs.
crash-2021-03-10_12.45.37-client.txt

I might be able to help with that:
https://pastebin.com/ar9U1ef5

Thanks for reporting. Actually it's the same bug as #32 - it seems, you can't connect hoppers or pipes or anything that extracts items from chests. I'll try to fix it. Thanks for reporting!

Same error as #32 - same solution as #32:  I'll release the fixed version today in the afternoon or tomorrow (0.3.5b). Thanks for reporting and sorry for the inconvenieces

I just released the fixed version 0.3.5b. The problem shouldn't occur anymore, hopefully. At least I can't recreate it anymore...


Possible memory leak - 9 GB of RAM and 100 % processor use in 1 min, with only couple of Symfony packages

Still the same repository to create prefixed rector.phar.
https://github.com/rectorphp/compiler
When I run bin/console compile in that repository, I have to turn off my PHPStorm and my Chrome, or the box/scoper will crash it and disable all my Chrome extensions.

box config: https://github.com/rectorphp/compiler/blob/master/box.json
scoper config: https://github.com/rectorphp/compiler/blob/master/scoper.inc.php

It makes debugging very hard.

Info from Travis build
The memory leak bubbles on mmap() function: https://travis-ci.com/rectorphp/compiler/builds/99545469#L679
It might give you a clue to solve this:

I just reproduced this with much less dependencies: https://github.com/TomasVotruba/dummy-phar/pull/2
It will be probably something related to Symfony packages.
{
    "bin": ["bin/run"],
    "require": {
        "php": "^7.1",
        "composer/xdebug-handler": "^1.3",
        "symfony/http-kernel": "^4.2",
        "symfony/console": "^4.2",
        "symfony/dependency-injection": "^4.2",
        "symfony/config": "^4.2",
        "symfony/yaml": "^4.2"
    },
    "autoload": {
        "psr-4": {
            "DummyPhar\\": "src"
        }
    }
}

I see. I can see easily 3 ways were the leak can be (in order of likeliness):

The parallel workers: Box is using amphp/parallel-functions to parallelise the scoping in order to make it more performant. I'm however not super familiar with the internals and it's not excluded that the package is subject to leaks.
PHP-Scoper: I did not observe any leak so far even on a quite sizeable codebase (several dozens of thousands of LoCs) albeit quite slow. However PHP-Scoper does not really have an extensive benchmark/performance test suite so it can be easy to introduce a leak there by mistake. I'm sure you are familiar with it but PHP-Scoper extensively use PHP-Parser and do a lot of AST manipulation, so a leak there is very easy to produce.
The Phar format: across the different projects to build PHARs there was always a couple of tricky points on how to build the PHAR in an efficient way and compress it without trouble. I hope I dealt with all those cases with Box but there is no guarantee.

The third case would be by far the worst one since it would likely require to tinker the Phar C extension...
Do you observe the same issue with --no-parallel and making sure that xdebug is disabled or that you are allowing box to restart the process without xdebug (box does it by default unless you have --no-restart or BOX_ALLOW_XDEBUG=1; this can be since in verbose mode)? If no then it means it's the first case, and if yes then it's a leak in PHP-Scoper

@TomasVotruba is the issue still present? PHP-Scoper should be significantly ligher (on HumbugBox master)

I haven't tried since, so it's possibly gone. Let's close it for now


MacPorts has fpm port

MacPorts has fpm port. It would be nice if MacPorts is added to an option to install fpm for macOS.

Let's have this description as part of the docs, there already a few more ways to install are described compared to the README.


Leaderboard names colours reflecting mystics/scythes/scouts/moderators/non-promoted.

Make the leaderboard name colours reflecting rank
non promoted
if scout show scout
if scout + mod show scout
if scythe show scythe
if scythe and mod show scythe
if mod show mod
if mystic show mystic
if mystic and mod show mystic
if admin show admin
Yeah ik a mystic has scout and scythe but it shows mystic in profile so going with that.

How about mentor?

lol yeah mentor as well, i just gave some examples.

Should the role that the player has chosen to be displayed as in chat be taken into account?

sure but then it'll display me as silver? lol

think it should be the highest role that is displayed so we are not able to hide what we are scout- scythe- mystic - admin not sure what to do with mentor and mod perhaps if possible you can ad a small icon for each of them?

I agree, I think it should go scouts > scythe > mystic > moderator > unique colour > admin (although considering that most mystics are also mods I'd either let mystics + mods decide or have mystic override mod).  Can't be a mentor without also being at least a scout.

like i see it mod and scout are the same rank since you can get both from nonpromoted, and i would rank mentor between scythe and mystic since as a general rule imo you need to be a scythe to know enogh for a good mentor (and then you can correct mergers right away), and many of the mystics have all roles so that is the highest order, but it is really difficult to rank mod and mentor so why i would like a small badge for it like the flagg and ew logo for hq. as to unique colour i know that is something to be proud of but the way i am thinking we should be designing it so it could work like a guide of what rank we have to players that do not know us. and if unique color first is there, it would not be long before someone would want to have topscoore colour also, and in chat that is the most confusing colour. and by the same reasoning the chosen chatcolour should not have anything to say  on leaderboard colour

I like the idea @annkri1 mentioned with small icons. For the order, what @Nseraf suggested seems reasonable. Only, instead of icons, I'll add e.g. a red dot after player's name, if they is a mod and e.g. a blue dot, if the player is a mentor (if player has both roles, then, ofc, 2 dots).

I just wanted multi-coloured leaderboard(s) xD :P (names).

Lol, yeah, colors are cool xD However, if that feature make its way to the EW itself, it might be useful for the normal players to easily recognize, which players are e.g. mentors and can watch them.

That is quite true. :)

Okay, how does this sound? Leaderboard displays whatever (rank only not topscore) chat team player has on, and next to their name a miniature mentor and/or mod badge icons, really really small so it doesn't upset the leaderboard name placements (leaving spaces etc below/above to accommodate the icon(s).  Something like this:


feat: Added New Resource of Resend in Backend Category (#2420)

Closes #2420
Added New Resource of Resend in Backend Category
"The best way to reach humans instead of spam folders. Deliver transactional and marketing emails at scale."

Fixes closes #2422
Hence added resources

@Rx-Metallica could you please resolve merge conflicts?

@Rx-Metallica could you please resolve merge conflicts?

can you able to help me with the merge conflicts  pls?

@Rx-Metallica could you please resolve merge conflicts?

can you able to help me with the merge conflicts pls?

A conflict occurs when you have made the changes in a line and that line got updated in the main branch. So, you will to select among the changes you have made and changes in the main branch, carefully.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/addressing-merge-conflicts/resolving-a-merge-conflict-on-github


Pre-commit checks seem to be incompatible with the bump2version config

See https://github.com/brainglobe/cellfinder-napari/actions/runs/1999306323
Also, do we need linting checks in their own workflow, as well as in the main test_and_deploy workflow?

I think someone has done a merge and accidentally reintroduced the linting_checks.yml file https://github.com/brainglobe/cellfinder-napari/blob/main/.github/workflows/linting_checks.yml that shouldn't be there


wip(errors): initial stab at improved error handling

A two step parsing process is used on response errors, first step
creates a *ResponseError object, which stores the Detail field as a
json.RawMessage type. Then we attempt to "cast" the response error
based on the Code field to a known error type, which defines the
detail object as a normal Go struct, and can hence unmarshal the
json.RawMessage into a struct.
The ResponseError type has been expanded to implement the error
interface, and also implements Is and Unwrap, so errors.Is() and
errors.Unwrap() behave as expected. This is also true for the specific
error structs.
There's also a bunch of base errors defined, allowing a chain of parent
errors, and easy checking if something is a not found response, or
something even more specific.
The errors_gen.go files are named that way as a means of
suggesting that the plan is to generate these files based on the
Katapult API schema.

Thinking about this a bit more, I think the specific error types can be
simplified a bit more, and effectively just return fmt.Errorf() after the
Detail raw value has been parsed. Though to still be able to customize the
rendering, we'd still need a Error() function, but we can rename it to
something else as the struct itself wouldn't need to implement the error
interface anymore.


compiling ZNC 1.8.1 in Debian Buster

i wanted to update my znc from version 1.7.5 to 1.8.1, unfortunately i get an error with ccmake, make always
znc@v10437:~/build$ make
Scanning dependencies of target version
[  0%] Built target version
Scanning dependencies of target copy_csocket_h
[  1%] Generating Csocket.h
[  1%] Built target copy_csocket_h
Scanning dependencies of target copy_csocket_cc
[  1%] Generating Csocket.cpp
[  1%] Built target copy_csocket_cc
Scanning dependencies of target znclib
[  2%] Building CXX object src/CMakeFiles/znclib.dir/ZNCString.cpp.o
[  2%] Building CXX object src/CMakeFiles/znclib.dir/znc.cpp.o
In file included from /home/znc/znc-1.8.1/include/znc/Socket.h:21,
from /home/znc/znc-1.8.1/include/znc/Client.h:21,
from /home/znc/znc-1.8.1/include/znc/znc.h:21,
from /home/znc/znc-1.8.1/src/znc.cpp:17:
/home/znc/build/include/znc/Csocket.h:1179:3: error: ‘UConverterToUnicodeArgs’ has not been declared
UConverterToUnicodeArgs* toArgs,
^~~~~~~~~~~~~~~~~~~~~~~
/home/znc/build/include/znc/Csocket.h:1182:3: error: ‘UConverterCallbackReason’ has not been declared
UConverterCallbackReason reason,
^~~~~~~~~~~~~~~~~~~~~~~~
/home/znc/build/include/znc/Csocket.h:1183:3: error: ‘UErrorCode’ has not been declared
UErrorCode* err );
^~~~~~~~~~
/home/znc/build/include/znc/Csocket.h:1185:3: error: ‘UConverterFromUnicodeArgs’ has not been declared
UConverterFromUnicodeArgs* fromArgs,
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/znc/build/include/znc/Csocket.h:1186:9: error: ‘UChar’ does not name a type; did you mean ‘char’?
const UChar* codeUnits,
^~~~~
char
/home/znc/build/include/znc/Csocket.h:1188:3: error: ‘UChar32’ has not been declared
UChar32 codePoint,
^~~~~~~
/home/znc/build/include/znc/Csocket.h:1189:3: error: ‘UConverterCallbackReason’ has not been declared
UConverterCallbackReason reason,
^~~~~~~~~~~~~~~~~~~~~~~~
/home/znc/build/include/znc/Csocket.h:1190:3: error: ‘UErrorCode’ has not been declared
UErrorCode* err );
^~~~~~~~~~
/home/znc/build/include/znc/Csocket.h:1256:2: error: ‘UConverter’ does not name a type
UConverter* m_cnvInt;
^~~~~~~~~~
/home/znc/build/include/znc/Csocket.h:1257:2: error: ‘UConverter’ does not name a type
UConverter* m_cnvExt;
^~~~~~~~~~
In file included from /home/znc/znc-1.8.1/include/znc/Client.h:21,
from /home/znc/znc-1.8.1/include/znc/znc.h:21,
from /home/znc/znc-1.8.1/src/znc.cpp:17:
/home/znc/znc-1.8.1/include/znc/Socket.h:322:28: error: ‘UConverterToUnicodeArgs’ has not been declared
void IcuExtToUCallback(UConverterToUnicodeArgs* toArgs,
^~~~~~~~~~~~~~~~~~~~~~~
/home/znc/znc-1.8.1/include/znc/Socket.h:324:28: error: ‘UConverterCallbackReason’ has not been declared
UConverterCallbackReason reason,
^~~~~~~~~~~~~~~~~~~~~~~~
/home/znc/znc-1.8.1/include/znc/Socket.h:325:28: error: ‘UErrorCode’ has not been declared
UErrorCode* err) override;
^~~~~~~~~~
/home/znc/znc-1.8.1/include/znc/Socket.h:326:30: error: ‘UConverterFromUnicodeArgs’ has not been declared
void IcuExtFromUCallback(UConverterFromUnicodeArgs* fromArgs,
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/znc/znc-1.8.1/include/znc/Socket.h:327:36: error: ‘UChar’ does not name a type; did you mean ‘char’?
const UChar* codeUnits, int32_t length,
^~~~~
char
/home/znc/znc-1.8.1/include/znc/Socket.h:328:30: error: ‘UChar32’ has not been declared
UChar32 codePoint, UConverterCallbackReason reason,
^~~~~~~
/home/znc/znc-1.8.1/include/znc/Socket.h:328:49: error: ‘UConverterCallbackReason’ has not been declared
UChar32 codePoint, UConverterCallbackReason reason,
^~~~~~~~~~~~~~~~~~~~~~~~
/home/znc/znc-1.8.1/include/znc/Socket.h:329:30: error: ‘UErrorCode’ has not been declared
UErrorCode* err) override;
^~~~~~~~~~
/home/znc/znc-1.8.1/src/znc.cpp: In member function ‘CString CZNC::FixupEncoding(const CString&) const’:
/home/znc/znc-1.8.1/src/znc.cpp:2115:5: error: ‘UErrorCode’ was not declared in this scope
UErrorCode e = U_ZERO_ERROR;
^~~~~~~~~~
/home/znc/znc-1.8.1/src/znc.cpp:2116:5: error: ‘UConverter’ was not declared in this scope
UConverter* cnv = ucnv_open(sRealEncoding, &e);
^~~~~~~~~~
/home/znc/znc-1.8.1/src/znc.cpp:2116:5: note: suggested alternative: ‘CServer’
UConverter* cnv = ucnv_open(sRealEncoding, &e);
^~~~~~~~~~
CServer
/home/znc/znc-1.8.1/src/znc.cpp:2116:17: error: ‘cnv’ was not declared in this scope
UConverter* cnv = ucnv_open(sRealEncoding, &e);
^~~
/home/znc/znc-1.8.1/src/znc.cpp:2116:49: error: ‘e’ was not declared in this scope
UConverter* cnv = ucnv_open(sRealEncoding, &e);
^
/home/znc/znc-1.8.1/src/znc.cpp:2116:23: error: ‘ucnv_open’ was not declared in this scope
UConverter* cnv = ucnv_open(sRealEncoding, &e);
^~~~~~~~~
/home/znc/znc-1.8.1/src/znc.cpp:2118:9: error: ‘ucnv_close’ was not declared in this scope
ucnv_close(cnv);
^~~~~~~~~~
/home/znc/znc-1.8.1/src/znc.cpp:2118:9: note: suggested alternative: ‘close’
ucnv_close(cnv);
^~~~~~~~~~
close
/home/znc/znc-1.8.1/src/znc.cpp:2120:9: error: ‘U_FAILURE’ was not declared in this scope
if (U_FAILURE(e)) {
^~~~~~~~~
/home/znc/znc-1.8.1/src/znc.cpp:2120:9: note: suggested alternative: ‘EXIT_FAILURE’
if (U_FAILURE(e)) {
^~~~~~~~~
EXIT_FAILURE
make[2]: *** [src/CMakeFiles/znclib.dir/build.make:81: src/CMakeFiles/znclib.dir/znc.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:257: src/CMakeFiles/znclib.dir/all] Fehler 2
make: *** [Makefile:130: all] Fehler 2

Try make clean, and rerun cmake from clean state.
Something is wrong with the optional dependency on libicu

:-( I have tried this unfortunately already more times with different folders.
Prefix : /home/znc/.znc
Prefix : /home/znc/znc_old
Prefix : /home/znc/znc_1_8
and so on
i do
wget https://znc.in/releases/znc-1.8.1.tar.gz
tar xvzf znc-1.8.1.tar.gz
cd znc-1.8.1
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX="$HOME/.znc" /home/znc/znc-1.8.1
make
:-( but always this error

Provide full output. Also cmake --system-information

And don't forget about make VERSOBE=1

cmake.txt
make.txt
i hope this can help

Sorry, it should be VERBOSE, not VERSOBE
I'm still missing output of cmake itself

znc@v10437:~/znc-1.8.1/build$ cmake -DCMAKE_INSTALL_PREFIX="$HOME/.znc" /home/znc/znc-1.8.1
-- Could NOT find Boost
-- Boost.Locale or gettext (msgfmt) is not found, disabling i18n support
+----------------------------+
| ZNC 1.8.1 configured       |
|                            |
| Prefix    : /home/znc/.znc |
| SSL       : yes            |
| IPv6      : yes            |
| Async DNS : yes            |
| Perl      : no             |
| Python    : no             |
| Tcl       : no             |
| Cyrus     : yes            |
| Charset   : yes            |
| Zlib      : yes            |
| i18n      : no             |
+----------------------------+

Now you can run 'make' to compile ZNC

-- Configuring done
-- Generating done
-- Build files have been written to: /home/znc/znc-1.8.1

the file is make verbose=1
make.txt

in the clean directory please

following step I have done
git clone git://github.com/znc/znc.git --recursive
cd znc
mkdir build
znc@v10437:~/znc/build$ cmake -DCMAKE_INSTALL_PREFIX="$HOME/.znc" -S /home/znc/znc
-- The CXX compiler identification is GNU 8.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Checking for C++11 support
-- Checking for C++11 support - supported
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Checking for 64-bit off_t
-- Checking for 64-bit off_t - present
-- Checking for fseeko/ftello
-- Checking for fseeko/ftello - present
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1d")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Checking for module 'libsasl2'
--   Found libsasl2, version 2.1.27
-- Checking for module 'icu-uc'
--   Found icu-uc, version 63.1
-- Could NOT find Boost
-- Found Gettext: /usr/bin/msgmerge (found version "<IP_ADDRESS>")
-- Boost.Locale or gettext (msgfmt) is not found, disabling i18n support
-- Looking for getopt_long
-- Looking for getopt_long - found
-- Looking for lstat
-- Looking for lstat - found
-- Looking for getpassphrase
-- Looking for getpassphrase - not found
-- Looking for tcsetattr
-- Looking for tcsetattr - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for AI_ADDRCONFIG
-- Looking for AI_ADDRCONFIG - found
-- Found Git: /usr/bin/git (found version "2.20.1")
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Found GoogleTest: /home/znc/znc/third_party/googletest/googletest
-- Found GoogleMock: /home/znc/znc/third_party/googletest/googlemock
+----------------------------+
| ZNC 1.9.x configured       |
|                            |
| Prefix    : /home/znc/.znc |
| SSL       : yes            |
| IPv6      : yes            |
| Async DNS : yes            |
| Perl      : no             |
| Python    : no             |
| Tcl       : no             |
| Cyrus     : yes            |
| Charset   : yes            |
| Zlib      : yes            |
| i18n      : no             |
+----------------------------+
Now you can run 'make' to compile ZNC
-- Configuring done
-- Generating done
-- Build files have been written to: /home/znc/znc/build
and now ?

It's VERBOSE, not verbose. Case matters
Your log says "
-- Checking for module 'icu-uc'
-- Found icu-uc, version 63.1"
What do you have in /usr/include/unicode? How did you install icu?

icu-devtools ist schon die neueste Version (63.1-6+deb10u1).
unicode.txt
make.txt

I couldn't reproduce this on a clean buster image with following packages installed: git libicu-dev g++ cmake pkgconf
Please send the archive with contents of /usr/include/unicode
You can also try to disable the charset conversion via ccmake, but probably other things may be broken on your machine if libicu doesn't have those symbols

with a fresh installation i can also install znc, but my server is running too much that i can reinstall it
archiv_unicode.zip

That folder looks correct.
Let's try this:
$ echo '#include "unicode/ucnv.h"' > a.cpp
$ /usr/bin/c++ -E a.cpp -o result.cpp
$ cd /home/znc/znc/build/src && /usr/bin/c++ -E  -I/home/znc/znc/include -I/home/znc/znc/build/include  -fPIC   -include znc/zncconfig.h -pthread -std=c++11 -o /tmp/znc.pre.cpp /home/znc/znc/src/znc.cpp

Then post result.cpp and znc.pre.cpp

znc@v10437: ~ # echo '#include "unicode/ucnv.h"' > a.cpp
znc@v10437: ~ # /usr/bin/c++ -E a.cpp -o result.cpp
znc@v10437: ~ # cd /home/znc/znc/build/src && /usr/bin/c++ -E  -I/home/znc/znc/include -I/home/znc/znc/build/include  -fPIC   -include znc/zncconfig.h -pthread -std=c++11 -o /tmp/znc.pre.cpp /home/znc/znc/src/znc.cpp
In file included from /home/znc/znc/include/znc/Client.h:21,
from /home/znc/znc/include/znc/znc.h:21,
from /home/znc/znc/src/znc.cpp:17:
/home/znc/znc/include/znc/Socket.h:21:10: fatal error: znc/Csocket.h: Datei oder Verzeichnis nicht gefunden
#include <znc/Csocket.h>
^~~~~~~~~~~~~~~
compilation terminated.

Did you remove the directory already? znc/Csocket.h is supposed to be in /home/znc/znc/build/include according to logs you provided

i did
git clone git://github.com/znc/znc.git --recursive
cd znc
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX="$HOME/.znc" -S /home/znc/znc
echo '#include "unicode/ucnv.h"' > a.cpp
/usr/bin/c++ -E a.cpp -o result.cpp
cd /home/znc/znc/build/src && /usr/bin/c++ -E  -I/home/znc/znc/include -I/home/znc/znc/build/include  -fPIC   -include znc/zncconfig.h -pthread -std=c++11 -o /tmp/znc.pre.cpp /home/znc/znc/src/znc.cpp
i removed nothing ..

znc@v10437:~/znc/build$ cat result.cpp
# 1 "a.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "a.cpp"
# 1 "/usr/include/x86_64-linux-gnu/unicode/ucnv.h" 1 3 4
# 1 "a.cpp" 2

znc_cpp.txt

znc_cpp.txt is the source, I wanted the preprocessed version of it (/tmp/znc.pre.cpp)
result.cpp looks very empty though. It should contain much more.
please show output of this:
$ ls -ld /usr /usr/include /usr/include/x86_64-linux-gnu /usr/include/x86_64-linux-gnu/unicode /usr/include/x86_64-linux-gnu/unicode/ucnv.h
And post /usr/include/stdc-predef.h

root@v10437: ~ # ls -ld /usr /usr/include /usr/include/x86_64-linux-gnu /usr/include/x86_64-linux-gnu/unicode /usr/include/x86_64-linux-gnu/unicode/ucnv.h drwxr-xr-x 10 root root 4,0K Apr 28  2015 /usr drwxr-xr-x 53 root root  20K Jun 28 17:41 /usr/include drwxr-xr-x 11 root root 4,0K Jun 28 17:41 /usr/include/x86_64-linux-gnu drwxr-xr-x  2 root root 4,0K Jun 28  2017 /usr/include/x86_64-linux-gnu/unicode -rw-r--r--  1 root root    0 Jun 28  2017 /usr/include/x86_64-linux-gnu/unicode/ucnv.h
cat /usr/include/stdc-predef.h
/* Copyright (C) 1991-2018 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   The GNU C Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with the GNU C Library; if not, see
   <http://www.gnu.org/licenses/>.  */

#ifndef	_STDC_PREDEF_H
#define	_STDC_PREDEF_H	1

/* This header is separate from features.h so that the compiler can
   include it implicitly at the start of every compilation.  It must
   not itself include <features.h> or any other header that includes
   <features.h> because the implicit include comes before any feature
   test macros that may be defined in a source file before it first
   explicitly includes a system header.  GCC knows the name of this
   header in order to preinclude it.  */

/* glibc's intent is to support the IEC 559 math functionality, real
   and complex.  If the GCC (4.9 and later) predefined macros
   specifying compiler intent are available, use them to determine
   whether the overall intent is to support these features; otherwise,
   presume an older compiler has intent to support these features and
   define these macros by default.  */

#ifdef __GCC_IEC_559
# if __GCC_IEC_559 > 0
#  define __STDC_IEC_559__		1
# endif
#else
# define __STDC_IEC_559__		1
#endif

#ifdef __GCC_IEC_559_COMPLEX
# if __GCC_IEC_559_COMPLEX > 0
#  define __STDC_IEC_559_COMPLEX__	1
# endif
#else
# define __STDC_IEC_559_COMPLEX__	1
#endif

/* wchar_t uses Unicode 10.0.0.  Version 10.0 of the Unicode Standard is
   synchronized with ISO/IEC 10646:2017, fifth edition, plus
   the following additions from Amendment 1 to the fifth edition:
   - 56 emoji characters
   - 285 hentaigana
   - 3 additional Zanabazar Square characters */
#define __STDC_ISO_10646__		201706L

#endif

Okay, I have questions.

Why /usr/include/x86_64-linux-gnu/unicode/ucnv.h exists?
Why /usr/include/x86_64-linux-gnu/unicode/ucnv.h is empty?

What package does this file belongs to?

i don't know .. i reinstall my server now .. my apache is damaged .. i purge too much :-(

/home/znc/.znc/bin/znc: error while loading shared libraries: libicuuc.so.52: cannot open shared object file: No such file or directory
I got this before the reinstallation

Of course.
If you reinstalled the server, rebuild ZNC with new dependencies.

One thing left to do here: test whether libicu works, not just blindly trust what was gathered from pkg-config


Hi, I am not sure about the structure about the KITTI dataset

May I ask how to build KITTI dataset structure and what folder to construct this structure?

You can ref the patch net: https://github.com/xinzhuma/patchnet
the dataset structure is the same except for the auxiliary data (depth and pickle file)


How to use the library

Hello @jclg
I have installed this library into my application (using composer) but I do not know where to go now! I have replaced the token given to me by Slack (a bot token). I am not sure how to make the app listen for incoming connections.
Sorry if that sounds like a newbie question.

Hello,
You have to create a bot.php file with the following content :
<?php
require 'vendor/autoload.php';
use PhpSlackBot\Bot;

$bot = new Bot();
$bot->setToken('xoxb-**************'); // Replace token
$bot->loadInternalCommands();
$bot->run();

Then run php bot.php from the command line (terminal).
Inside Slack, the bot should turn online (green dot).
Direct message him by typing ping, the bot should answer "pong".
Please let me know if it works.

This worked. Few suggestions:

You should put this in the README. Especially the fact that we have to run it from the terminal.
When we do run it from the terminal, the script has to keep running. Which means on a server, we have to do something like php bot.php &.
There should be a way to stop the bot except killing the process, ideally. But I am not complaining. I can manage my processes.

And many thanks for this library.

You're welcome. I updated the documentation to explain how to run the bot.


[5.7][stdlib][docs] Clarify BidirectionalCollection requirements

(Cherry picked from #58403)

Explanation:
As discussed on the forum,  BidirectionalCollection requirements as currently stated can be interpreted to forbid conforming types from accepting indices that lie between valid (i.e., reachable) indices in the collection. Among other undesirable effects, this interpretation would render SE-0180 (String.Index overhaul) incompatible with these requirements.
Update the wording to clarify that the requirements only apply to valid indices. (Collection protocols do not constrain the behavior of invalid indices — it’s up to individual collection types to implement them as they wish.)

Scope: This is a documentation update with no code changes.

Risk: Minimal.

Issue: rdar://92297280

Testing: n.a. (regular PR tests)

Reviewer: @stephentyrone

@swift-ci test


Company field in #identify calls is incorrect

See https://github.com/segmentio/analytics.js-integrations/pull/526 for details.

closing due to inactivity, reopen if still an issue


Only Rust as input? Can't write an WASM/Rust app using JavaScript?

You can interface with javascript so parts of your app is in JS, and parts in Rust.

I mean, couldn't the codebase be fully in JS for then being automatically ported into Rust, like in ReactNative?


EventHubProducerClient - ExpiredToken: The token is expired.

Package Name: @azure/event-hubs
Package Version: 5.2.1
Operating system: Windows 10 - WSL2
[x] nodejs

version: 12.16.1

[ ] browser

name/version:

[ ] typescript

version:

Is the bug related to documentation in

[ ] README.md
[ ] source code documentation
[ ] SDK API docs on https://docs.microsoft.com

Describe the bug
I go to the Azure Portal, navigate to my event hub inside my event hubs namespace, create a new SAS policy with Send permissions to my specific event hub. I copy the SAS connection string and use it in my code to instantiate a new EventHubProducerClient. When I run my small program to send some events it crashes with the following error:
MessagingError: ExpiredToken: The token is expired. Expiration time: '2020-06-17 19:35:26Z'
at translate (/mnt/c/wb/dev/edp/function-performance-root/event-based-clients/node_modules/@azure/core-amqp/dist/index.js:878:23)
at Receiver.messageCallback (/mnt/c/wb/dev/edp/function-performance-root/event-based-clients/node_modules/@azure/core-amqp/dist/index.js:1076:35)
at Receiver.emit (events.js:311:20)
at emit (/mnt/c/wb/dev/edp/function-performance-root/event-based-clients/node_modules/rhea-promise/dist/lib/util/utils.js:131:24) ...
Let me add that I am in a UTC+1 timezone. Can this be the problem since the SAS is generated in a different timezone? When I generate the new SAS in the Azure Portal, what is the default time to live?
To Reproduce
Steps to reproduce the behavior:

Go to the Azure Portal, navigate to your event hub inside your event hubs namespace, create a new SAS policy with Send permissions to your specific event hub.
Copy the SAS connection string to your code.
You can use the simple code in attach to test sending some events.
You will get the error.

Expected behavior
I expect to be able to connect properly and be able to send events since I've just generated the new SAS and it shouldn't be expired.
eventhub-client.zip
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

@ruifelixpereira
Thank you for logging this issue! Usually when I've seen an error like this when using a connection string, it's due to clock skew between the client machine and the service. The expiration time for the token should be based on UTC, so being in a different timezone should not matter.
If you run this again, can you verify that the time in the error matches your system clock, and that your system clock is synced?

@ruifelixpereira Just checking if this is still an issue you're encountering.


AsyncPackage for VS2015 and later

VS 2019 RC is showing this warning now:

The guidance is to move to the new AsyncPackage which was introduced in VS2015. This will make AutoT4MVC incompatible with VS2013 and earlier though.
I will happily create a PR for AsyncPackage - or do we want to maintain support for VS2013? Or do we want two versions to support both?

I don't think we really need to support below VS 2015 anymore. I would happily accept this PR.

Actually, thinking about it now, it could be a problem. I don't want people to not be able to install the old version, and I think that might happen if I push out a new version without support.
Any way round it?
Worst case I guess I could fork and add a new version for VS 2019.


Fix protos by doing make proto.

I'm not sure why this fixed things but they were broken form me.


Reject Invalid Names

Currently, symbols are not checked to see whether they are valid identifiers (other than to check they are at least symbols).  This is a problem!  For example, the following parses:
(defcolumns X)
(defconstraint 1 () X)

Was completed as part of #420


Exoplayer won't compile on Android

Current behavior
My app doesn't compile.
Reproduction steps

Add and setup react-native-video
Update the dependency on settings.gradle to ../node_modules/react-native-video/android-exoplayer

Expected behavior
The app would compile
Platform

Android ExoPlayer

Errors
When running react-native run-android
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> com.android.build.api.transform.TransformException: Error while generating the main dex list.

When trying to compile on Android Studio
Program type already present: com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource
Message{kind=ERROR, text=Program type already present: com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource, sources=[Unknown source file], tool name=Optional.of(D8)}

It seems like a conflict with my dependencies, but how can I find and address it? Searching through the web I couldn't find any decisive answer.
package.json
"react-native": "0.55.4",
"react-native-video": "2.3.1",

Stack Overflow question: https://stackoverflow.com/questions/52150524/how-to-fix-apparently-invisible-dependency-conflict-on-gradle

This will fix your problem: https://stackoverflow.com/questions/48249633/errorcannot-fit-requested-classes-in-a-single-dex-file-try-supplying-a-main-dex

@casperstorm unfortunately that didn't do it. Even after enabling multidex (which I had already done, just tried using an earlier version from this answer), I'm still getting:
Program type already present: com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource
Message{kind=ERROR, text=Program type already present: com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource, sources=[Unknown source file], tool name=Optional.of(D8)}

That is another error you are getting.
Sound like you have added multiple imports of the same. Look in your build.gradle

@casperstorm I don't have any duplicated imports and running ./gradlew app:dependencies I only see com.google.android.exoplayer being imported by react-native-video.

It looks like you're doing all the right troubleshooting steps. Doing the gradle dependencies should show where the problem is. Check in Android Studio under External Libraries and see if there are any other instances of ExoPlayer there. Also, make sure you didn't somehow end up with two imports for react-native-video in your settings.gradle.
I would also update to at least version 3.1.0. 3.2.0 has some issues, but 3.1.0 should be fine.

@cobarx Checking Android Studio, here are all com.google.android.exoplayer related libraries:

Got it. I found the issue with the regular (non-exoplayer) player I was having and decided to keep using it. I'm going to close this one 'cause the issue is not related to react-native-video. Thanks for the help!

Have the same problem. Is there another solution for it?

Fixed for me by adding
    compileOptions {
        sourceCompatibility 1.8
        targetCompatibility 1.8
    }

in the android argument of the build.gradle


new Function() for noop

What is everybody's opinion on using new Function() as a noop rather than
declaring something like function noop {}?
Related to no-new-func

I've been trying var noop = Function.prototype.

Boo @ var noop = Function.prototype (the var noop = part)
I dig on the Function.prototype part though. :+1: