Some problems with path to dest

My working gulp task
gulp.task('pugi18n', function () {
	var options = {
		i18n: {
			dest: path.resolve(APP_BASE.HTML),
			namespace: '$t',
			locales: APP_BASE.LOCALES,
			localeExtension: false
		},
		client: false
	};
	return gulp.src(APP_PATHS.PUG)
		.pipe(pugI18n(options))
		.pipe(gulp.dest("./1/2/3"));
});

Something is wrong in your:
 compiledFiles.push(new gutil.File({
                    base: path.join(__dirname, locale),
                    cwd: __dirname,
                    contents: new Buffer(pug.compileFile(file.path, options)(options.data)),
                    path: path.join(options.i18n.dest, dest)
                }));

While im leaving base, and cwd path commented, the path in properties are working properly, but when im leaving your code not touched i have to add 3 fake folder because it going to 3 locations up
<File "../../../html/en/index.html" <Buffer 3c 21 44 4f 43 54 59 50 45 20 68 74 6d 6c 3e 3c 68 74 6d 6c 3e 3c 68 65 61 64 3e 3c 6d 65 74 61 20 63 68 61 72 73 65 74 3d 22 75 74 66 2d 38 22 3e 3c ... >>
So probably your path is broken
base: path.join(__dirname, locale), cwd: __dirname,

hi @Dukeskes, I will take a look as soon as possible.

hi @Dukeskes.  So, with this code:
compiledFiles.push(new gutil.File({
                    base: path.join(__dirname, locale),
                    contents: new Buffer(pug.compileFile(file.path, options)(options.data)),
                    path: path.join(options.i18n.dest, dest)
                }));

your code works? I've checked with my current tests too, and I think the cwd option can be removed.

I have probably same problem. It currently works like this, at least for me:
compiledFiles.push(new gutil.File({
    base: path.join(__dirname, locale),
    cwd: __dirname,
    contents: new Buffer(pug.compileFile(file.path, options)(options.data)),
    path: path.join(path.join(__dirname,options.i18n.dest), dest)
}));

@Dukeskes do you still have problems with the plugin?

When i deleted cwd options, everything gone well.

Ok, in this case I will release a new version with the update

@Dukeskes @ursereg I´ve released version 1.0.1


add concept for pluggable program factories

Okay, so I've been playing around a bit.
I've added a usage example here:
https://github.com/phryneas/fork-ts-checker-webpack-plugin-docz-test/blob/master/doczrc.js
and the code for @phryneas/fork-ts-checker-plugin-mdx is here:
https://github.com/phryneas/fork-ts-checker-plugin-mdx
As a next step, I would recommend moving the vue code to a separate package as well and maybe remove the vue configuration option.
But that would be a breaking change - the upcoming version increment 1.0.0 could be a good chance for that as it would be a major version step?

Hm, it seems that node 8 has a few problems with the default parameter in loadPluggableProgramFactory (?).
I'll wait for your comments first -  if you like the general approach, I'll clean that up later :)

Wow you've been busy!  10 out of 10 for getting stuck in 😄
I'm afraid I've got a bunch of other things on my plate right now and so I can't give this the attention it deserves right now.  Once everything else calms down I'll take a look.  In the meantime - thanks for your effort!

No worries, this was kind of fun ^^
Also, I had taken on the assumption that the incremental api would be impossible for vue & co and seeing #220 that won't be like that for long. So maybe my approach of only supporting the basic IncrementalChecker might have been a bit short-sighted.
So I guess waiting for #220 might be a good idea anyway. Or I take some more time and play around with useTypescriptIncrementalApi, too. We'll see :)

This kept me busy.
I've got another branch with a completely different approach here:
https://github.com/Realytics/fork-ts-checker-webpack-plugin/compare/master...phryneas:typescript-sys-proxy?expand=1
Essentially, in src/service.ts I'm wrapping the typescript.sys object in a Proxy (that object is passed down everywhere). That Proxy takes control over reading, watching, etc. of files. For .ts or .tsx files, it keeps normal behaviour. If it encounters a pre-defined extension (in this example case .mdx), it either appends .__fake__.ts(x) to the file name, so that to the compiler host/program/etc. this file looks like a ts(x) file.
If such a file is read, the content can be processed by a loader. The mdx-specific-code here is 20 lines - and I guess, for vue it wouldn't be longer.
Of course, all that could still be combined with the pluggable approach I took above to keep loader code out of the main repo - but in this case, it could be used for multiple extensions with different loaders at the same time (combining vue with the mdx-pluggable-program form above wouldn't have been possible before).
This works with useTypescriptIncrementalApi: true for me, but currently not with useTypescriptIncrementalApi: false - but fixing that should be easy. In the end, no special code should be required for either one in combination with external loaders - which would be an elegant solution for #220  as well.
Of course, this is very prototype-y and needs some cleanup, but I guess you'll be able to see what I'm going for - so once you find the time, I'd be intrigued by your thoughts :)

Wowser 😁 That does sound like a potentially useful approach. Very interesting!

I will close it as I was able to release v5.0.0-alpha.1 version :)


InvalidCastException when parsing a code sign p7b

 var p7b = File.ReadAllBytes(path);
 var cmsSignedData = new Org.BouncyCastle.Cms.CmsSignedData(p7b);

System.InvalidCastException: Unable to cast object of type 'Org.BouncyCastle.Asn1.DerSequence' to type 'Org.BouncyCastle.Asn1.Asn1OctetString'.
at Org.BouncyCastle.Cms.CmsSignedData..ctor(ContentInfo sigData) in /crypto/src/cms/CMSSignedData.cs:line 138
at Org.BouncyCastle.Cms.CmsSignedData..ctor(Byte[] sigBlock) in /crypto/src/cms/CMSSignedData.cs:line 62
https://github.com/bcgit/bc-csharp/blob/42f933608f60af7e9c36ffa3f9150b06b842a6ca/crypto/src/cms/CMSSignedData.cs#L138
Consider checking the type of signedData.EncapContentInfo.Content before casting.
File for test (rename to .p7b)
BouncyCastle.Crypto.zip

This issue seems to be a duplicate of https://github.com/bcgit/bc-csharp/issues/232.


no way to override --tab-bg in theme config

--tab-bg is hardcoded in the tab component --tab-color: hsla(var(--bc) / var(--tw-text-opacity, 1));. currently, to override it I've had to do something like  '!bg-gray-100': isActive. Any chance --tab-bg can be hosted up to be configurable ( for the active and inactive states? thoughts before I look at making a PR?

just seen how you do it in the docs - interesting! class="tab tab-lifted tab-active [--tab-bg:hsl(var(--n))] [--tab-color:hsl(var(--nc))] [--tab-border-color:hsl(var(--n))]"

As you mentioned, those CSS variables can be customized using Tailwind CSS arbitrary class names.
Also you can customize them in the config like this: https://play.tailwindcss.com/KVUr6JBBy0?file=config
daisyui: {
  themes: [
    {
      light: {
        ...require("daisyui/src/colors/themes")["[data-theme=light]"],
        ".tab": {
          "--tab-bg": "darkorange",
          "--tab-color": "white",
          "--tab-border-color": "yellow",
        }
      },
    },
  ],
},


Signature WebServer::sendContent() not ideal -- can also sent unsigned chars (e.g. an image) (IDFGH-8583)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report
The signature of
WebServer.h:  void sendContent(const char* content, size_t contentLength);

is not quite ideal - as it may also sent out unsigned char's - such as when dealing with images.
Adding or changing this to an unsigned char/uint8_t -- to closely match File::read(..) its buffer/length would make things a bit more consistent perhaps.

This should be transferred to https://github.com/espressif/arduino-esp32.


On a real Synology...

The docker image will download everything correctly, then start spitting this out in the log:
Starting Virtual DSM for Docker v3.40...
Install: Downloading extractor...
Install: Downloading DSM_VirtualDSM_64216.pat...
0K ........ ........ ........ ........  9% 36.6M 8s
32768K ........ ........ ........ ........ 18% 31.1M 8s
65536K ........ ........ ........ ........ 28% 43.1M 7s
98304K ........ ........ ........ ........ 37% 47.3M 5s
131072K ........ ........ ........ ........ 47% 54.2M 4s
163840K ........ ........ ........ ........ 56% 55.7M 3s
196608K ........ ........ ........ ........ 66% 60.3M 3s
229376K ........ ........ ........ ........ 75% 57.3M 2s
262144K ........ ........ ........ ........ 85% 62.0M 1s
294912K ........ ........ ........ ........ 94% 58.7M 0s
327680K ........ ........ .                100% 53.0M=7.0s
Install: Extracting downloaded image...
Install: Allocating diskspace...
Install: Creating partition table...
Install: Extracting system partition...
Install: Installing system partition...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
Starting Virtual DSM for Docker v3.40...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
Starting Virtual DSM for Docker v3.40...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
Starting Virtual DSM for Docker v3.40...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
Starting Virtual DSM for Docker v3.40...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
Starting Virtual DSM for Docker v3.40...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
Starting Virtual DSM for Docker v3.40...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
Starting Virtual DSM for Docker v3.40...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
Starting Virtual DSM for Docker v3.40...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
Starting Virtual DSM for Docker v3.40...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
Starting Virtual DSM for Docker v3.40...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.

hi~ @kroese I meet the same problem. I already try v3.41, it work fine!  Very very thanks you.

This is what I get now:
Starting Virtual DSM for Docker v3.42...
Install: Downloading extractor...
Install: Downloading DSM_VirtualDSM_64216.pat...
     0K ........ ........ ........ ........  9% 47.2M 6s
 32768K ........ ........ ........ ........ 18% 59.7M 5s
 65536K ........ ........ ........ ........ 28% 62.5M 4s
 98304K ........ ........ ........ ........ 37% 60.1M 4s
131072K ........ ........ ........ ........ 47% 58.4M 3s
163840K ........ ........ ........ ........ 56% 51.8M 3s
196608K ........ ........ ........ ........ 66% 51.3M 2s
229376K ........ ........ ........ ........ 75% 53.4M 1s
262144K ........ ........ ........ ........ 85% 58.6M 1s
294912K ........ ........ ........ ........ 94% 56.4M 0s
327680K ........ ........ .                100% 58.0M=6.1s
Install: Extracting downloaded image...
Install: Allocating diskspace...
Install: Creating partition table...
Install: Extracting system partition...
Install: Installing system partition...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
pidwait: pidfd_open() not implemented in Linux < 5.3
Starting Virtual DSM for Docker v3.42...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
pidwait: pidfd_open() not implemented in Linux < 5.3
Starting Virtual DSM for Docker v3.42...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
pidwait: pidfd_open() not implemented in Linux < 5.3
Starting Virtual DSM for Docker v3.42...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
pidwait: pidfd_open() not implemented in Linux < 5.3
Starting Virtual DSM for Docker v3.42...
Warning: Extension CHECKSUM revision 0 not supported, missing kernel module?
iptables: No chain/target/match by that name.
pidwait: pidfd_open() not implemented in Linux < 5.3``

That's money doode!!
Its booting now.  Magic.

I'm thinking the initial boot takes a while...

Actually, I can't connect.  The log says I can connect to 5000, I have it mapped to 6000.  When I try to connect on port 6000, my browser says there's nothing.  I think that iptables thing is important.

I am using my real dsm s IP with :6000 on the end. I have other services running on there like frigate and deluge and I can connect just fine.

OMG... I got it to work.  Word of wisdom... don't use port 6000... I guess browsers don't like it.
List of other ports not to use.


What is the purpose of using class before declaration?

MSVC 2019
VmaJsonWriter declared at line 8235

PrintDetailedMap uses it at line 6360

I didn't find forward class declaration for it, did I missing anything?
And MSVC gives me a lot of IntelliSense errors

If I comment out the VMA_IMPLEMENTATION, all errors gone???


wather 在严格模式下 的问题

Version
2.5.2
Reproduction link
http://<IP_ADDRESS>:9001/index
Steps to reproduce
[Vue warn]: Error in callback for watcher "value": "TypeError: strict 模式下不允许分配到只读属性"
What is expected?
slove my problem
What is actually happening?
在ie 浏览器下


failed to make build_dataset

when i run make build_dataset terminal just repeting as below
tfds build imgx_datasets/male_pelvic_mr
INFO[build.py]: Loading dataset imgx_datasets/male_pelvic_mr from path: /data/huyao/imgx_diffseg/ImgX-DiffSeg-main/imgx_datasets/male_pelvic_mr/male_pelvic_mr_dataset_builder.py
2023-12-15 22:03:22.352001: W tensorflow/tsl/platform/cloud/google_auth_provider.cc:184] All attempts to get a Google authentication bearer token failed, returning an empty token. Retrieving token from files failed with "NOT_FOUND: Could not locate the credentials file.". Retrieving token from GCE failed with "FAILED_PRECONDITION: Error executing an HTTP request: libcurl code 6 meaning 'Couldn't resolve host name', error details: Could not resolve host: metadata.google.internal".

Can I skip this step,if I just want train my own dataset?

when i run make build_dataset terminal just repeting as below
tfds build imgx_datasets/male_pelvic_mr INFO[build.py]: Loading dataset imgx_datasets/male_pelvic_mr from path: /data/huyao/imgx_diffseg/ImgX-DiffSeg-main/imgx_datasets/male_pelvic_mr/male_pelvic_mr_dataset_builder.py 2023-12-15 22:03:22.352001: W tensorflow/tsl/platform/cloud/google_auth_provider.cc:184] All attempts to get a Google authentication bearer token failed, returning an empty token. Retrieving token from files failed with "NOT_FOUND: Could not locate the credentials file.". Retrieving token from GCE failed with "FAILED_PRECONDITION: Error executing an HTTP request: libcurl code 6 meaning 'Couldn't resolve host name', error details: Could not resolve host: metadata.google.internal".

Hi @DirectorHy, thanks for your report, I just run tfds build imgx_datasets/male_pelvic_mr locally and i see the same error message too, however, this does not prevent the code from downloading the data from zenodo so it should be safe to ignore the message for now. Please let me know if this is not the case for you. I will have a deeper look to see if we can avoid this message.

Can I skip this step,if I just want train my own dataset?

If you only want to use your own dataset, you can skip this. If you want to use TFDS, please follow the four existing datasets as examples to write a new subpackage.
We also understand that you may want to use any dataset iterator without the dependencies on TFDS, see #18, we will update with some examples as soon as possible, but potentially https://github.com/mathpluscode/ImgX-DiffSeg/tree/main/examples/segmentation can already provide some insights. Thanks!

@DirectorHy I just patched a quick fix to disable the GCE check. You should not see the error messages anymore, in case not, please let me know.

thank you for answering me! I'll try it and reply.i think my problem maybe a universally problem of hight version of tensorflow-dataset pakage,i searched the problem on line, other people also met the problem ,them solved the problem by changing to a lower version of tensorflow-dataset(2.1.0) ,i just tried , but it seems like this environment didn't support the lower version ,and shows a new error.you say you just patched a quick fix to disable the GCE check,i'll try later ,thanks

i can't download dataset
(imgx) user_liangjingwen@zrpgs:/data/huyao/imgx_diffseg/ImgX-DiffSeg-main$ make build_dataset
tfds build imgx_datasets/male_pelvic_mr
INFO[build.py]: Loading dataset imgx_datasets/male_pelvic_mr from path: /data/huyao/imgx_diffseg/ImgX-DiffSeg-main/imgx_datasets/male_pelvic_mr/male_pelvic_mr_dataset_builder.py
2023-12-16 16:14:41.343997: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-12-16 16:14:41.344041: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-12-16 16:14:41.345536: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-12-16 16:14:42.374151: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-12-16 16:14:42.742477: W external/local_tsl/tsl/platform/cloud/google_auth_provider.cc:184] All attempts to get a Google authentication bearer token failed, returning an empty token. Retrieving token from files failed with "NOT_FOUND: Could not locate the credentials file.". Retrieving token from GCE failed with "FAILED_PRECONDITION: Error executing an HTTP request: libcurl code 6 meaning 'Couldn't resolve host name', error details: Could not resolve host: metadata.google.internal".
2023-12-16 16:15:43.747914: E external/local_tsl/tsl/platform/cloud/curl_http_request.cc:610] The transmission  of request 0x5cba1d0 (URI: https://www.googleapis.com/storage/v1/b/tfds-data/o/dataset_info%2Fmale_pelvic_mr%2F1.0.0?fields=size%2Cgeneration%2Cupdated) has been stuck at 0 of 0 bytes for 61 seconds and will be aborted. CURL timing information: lookup time: 0.002271 (No error), connect time: 0 (No error), pre-transfer time: 0 (No error), start-transfer time: 0 (No error)
2023-12-16 16:16:46.691250: E external/local_tsl/tsl/platform/cloud/curl_http_request.cc:610] The transmission  of request 0x5cba1d0 (URI: https://www.googleapis.com/storage/v1/b/tfds-data/o/dataset_info%2Fmale_pelvic_mr%2F1.0.0?fields=size%2Cgeneration%2Cupdated) has been stuck at 0 of 0 bytes for 61 seconds and will be aborted. CURL timing information: lookup time: 0.002691 (No error), connect time: 0 (No error), pre-transfer time: 0 (No error), start-transfer time: 0 (No error)
2023-12-16 16:17:50.644667: E external/local_tsl/tsl/platform/cloud/curl_http_request.cc:610] The transmission  of request 0x5cba1d0 (URI: https://www.googleapis.com/storage/v1/b/tfds-data/o/dataset_info%2Fmale_pelvic_mr%2F1.0.0?fields=size%2Cgeneration%2Cupdated) has been stuck at 0 of 0 bytes for 61 seconds and will be aborted. CURL timing information: lookup time: 0.002472 (No error), connect time: 0 (No error), pre-transfer time: 0 (No error), start-transfer time: 0 (No error)

Hi @DirectorHy, I wonder if you pull the latest changes as I tested the code locally under different network conditions, the GCE errors are gone. However, the connection to google/zenodo may still fail depending on your network conditions.
The motivation of using TFDS was to automate and versionize the data downloading/pre-processing steps, but unfortunately it seems to not work perfectly in your case :(
But anyway, these are not needed for testing your own datasets. Let me work on a custom non-tfds data loader example (hopefully before 2024), while you could attempting building your own dataset with TFDS (https://github.com/mathpluscode/ImgX-DiffSeg/blob/main/imgx_datasets/brats2021_mr/brats2021_mr_dataset_builder.py this would be a better example where the dataset is not downloaded from url resources). Thanks for your patience!

thank you so much ！i really hope to see your data loader example @mathpluscode

Hi @DirectorHy, for your information, I have just released a new version. This release moved the data iterator out of Experiment class, this should facilitate the usage of non-TFDS data sets.
https://github.com/mathpluscode/ImgX-DiffSeg/blob/9c1f058b003f2e410e0efa7381c9e28ca342d4ee/imgx/run_train.py#L198-L206
It is also planned in #23. Therefore, I will be closing this issue regarding custom dataset. In case you have other questions, please feel free to create a new issue.
Thanks and happy new year!


chore: added logging to inbox and integration event retention job

Description

References

#0000

Codecov Report

Merging #477 (e39068b) into main (21978a1) will decrease coverage by 27.47%.
Report is 163 commits behind head on main.
The diff coverage is 33.49%.

@@             Coverage Diff             @@
##             main     #477       +/-   ##
===========================================
- Coverage   83.07%   55.61%   -27.47%
===========================================
  Files         456      462        +6
  Lines       10418     9810      -608
===========================================
- Hits         8655     5456     -3199
- Misses       1438     4131     +2693
+ Partials      325      223      -102

Files Changed
Coverage Δ

...ivedMessages/ArchivedMessageGetDocumentListener.cs
0.00% <ø> (ø)

.../ArchivedMessages/ArchivedMessageSearchListener.cs
0.00% <0.00%> (ø)

source/Api/Common/HttpHeadersExtensions.cs
0.00% <ø> (ø)

source/Api/Configuration/InboxMessageMetadata.cs
0.00% <0.00%> (ø)

...iddleware/Authentication/ActorForAuthentication.cs
0.00% <ø> (ø)

...ntication/Bearer/BearerAuthenticationMiddleware.cs
0.00% <ø> (ø)

...MarketActors/MarketActorAuthenticatorMiddleware.cs
0.00% <ø> (ø)

...ation/Middleware/Correlation/CorrelationContext.cs
66.66% <ø> (ø)

.../Middleware/Correlation/CorrelationIdMiddleware.cs
0.00% <ø> (ø)

...iguration/Middleware/Correlation/UserProperties.cs
0.00% <ø> (ø)

... and 154 more

... and 344 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


demo.sh ran into error

My env is Ubuntu 14.04, Python 3.4, CUDA8.0.   I have the following errors,
(mxnet) ubuntu@deepcam:~/mxnet-face/detection$ ./demo.sh
[15:07:06] /home/travis/build/dmlc/mxnet-distro/mxnet-build/dmlc-core/include/dmlc/logging.h:308: [15:07:06] /home/travis/build/dmlc/mxnet-distro/mxnet-build/dmlc-core/include/dmlc/././json.h:639: Check failed: ch == '{' (60 vs. {) Error at Line 0, around ^!DOCTYPE html><html lang="en" xmlns:fb="http://ogp.me/ns/fb#" x, Expect '{' but get '<'
Stack trace returned 10 entries:
[bt] (0) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0x1d57cc) [0x7f9849e697cc]
[bt] (1) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0x2d7b7ff) [0x7f984ca0f7ff]
[bt] (2) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0x2d88c56) [0x7f984ca1cc56]
[bt] (3) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0x2d82ec6) [0x7f984ca16ec6]
[bt] (4) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0xf9aa1f) [0x7f984ac2ea1f]
[bt] (5) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0x2d58f78) [0x7f984c9ecf78]
[bt] (6) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0xf94ead) [0x7f984ac28ead]
[bt] (7) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0xf9aa1f) [0x7f984ac2ea1f]
[bt] (8) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0x2d58f78) [0x7f984c9ecf78]
[bt] (9) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0xe0fcae) [0x7f984aaa3cae]
Traceback (most recent call last):
File "detection.py", line 97, in
main()
File "detection.py", line 47, in main
_, arg_params, aux_params = mx.model.load_checkpoint(args.prefix, args.epoch)
File "/home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/model.py", line 394, in load_checkpoint
symbol = sym.load('%s-symbol.json' % prefix)
File "/home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/symbol.py", line 1900, in load
check_call(_LIB.MXSymbolCreateFromFile(c_str(fname), ctypes.byref(handle)))
File "/home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/base.py", line 129, in check_call
raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: [15:07:06] /home/travis/build/dmlc/mxnet-distro/mxnet-build/dmlc-core/include/dmlc/././json.h:639: Check failed: ch == '{' (60 vs. {) Error at Line 0, around ^!DOCTYPE html><html lang="en" xmlns:fb="http://ogp.me/ns/fb#" x, Expect '{' but get '<'
Stack trace returned 10 entries:
[bt] (0) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0x1d57cc) [0x7f9849e697cc]
[bt] (1) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0x2d7b7ff) [0x7f984ca0f7ff]
[bt] (2) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0x2d88c56) [0x7f984ca1cc56]
[bt] (3) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0x2d82ec6) [0x7f984ca16ec6]
[bt] (4) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0xf9aa1f) [0x7f984ac2ea1f]
[bt] (5) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0x2d58f78) [0x7f984c9ecf78]
[bt] (6) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0xf94ead) [0x7f984ac28ead]
[bt] (7) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0xf9aa1f) [0x7f984ac2ea1f]
[bt] (8) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0x2d58f78) [0x7f984c9ecf78]
[bt] (9) /home/ubuntu/anaconda3/envs/mxnet/lib/python3.4/site-packages/mxnet/libmxnet.so(+0xe0fcae) [0x7f984aaa3cae]
[15:07:06] src/engine/engine.cc:54: MXNet start using engine: NaiveEngine
[15:07:06] src/engine/naive_engine.cc:53: Engine shutdown
Can somebody help take a look at what it is?  What is correct env to make it run?
Thanks a lot.

How do you solve it? I have the same error. Thanks

I do not remember the details. Recently I revisited this repo and used python 2.7, then there was no such error.


Investigation - Terms of Service Agreements

As a part of Application Launch, we also started to store records of a user accepting the Doorway Terms of service on partner account creation and exports with PII (applicant download in particular) when we released those after an application launch. Since we had some bugs  on these fields , can we verify that users are:

Required to accept the terms of service when creating an applicant account & a record is stored
Required to accept the terms of service when creating an partner account & a record is stored
Required to accept the terms of service when applying to a listing & a record is stored
Required to accept the terms of service when downloading an applicant export & a record is stored

YL: Where did you see this?
EM: This was on the Application table, fix was merged in
YL: Did it include E2E or unit tests?
EM: Didn't add anything new - wasn't a BE issue, was being set correctly, but the FE was making an incorrect value comparison. Do we want a BE error to get thrown? FE was requiring that you accept, but was incorrectly sending the data to the BE?
YL: Can we save data without them accepting?
EM: If you send directly to the API, you can save a paper app without them accepting terms of service?
Any findings can be follow up-tickets, this is just the investigation
For now, just investigate this for Doorway, for later/Izzie: should we allow folks to enter paper apps if they don't accept the terms of service?

Findings for: Required to accept the terms of service when creating an applicant account & a record is stored
FE sends correct data but BE does not save the field and thus is always set to false

Findings for: Required to accept the terms of service when creating an partner account & a record is stored
FE sends correct data, BE saves the correct data, this flow works correctly

Findings for: Required to accept the terms of service when applying to a listing & a record is stored
This has been fixed. FE sends correct data, BE saves the correct data, this flow works correctly

Findings for: Required to accept the terms of service when downloading an applicant export & a record is stored
Required to download CSV, data is not sent or stored anywhere

@sarahlazarich to make follow-ups


Don't Compile Code on Every Assignment

Before:
%%timeit dary = cuda.device_array((3, 4, 5), dtype=np.float64)
dary[:, :, :] = 4
# 168 ms ± 1.12 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)

After:
%%timeit dary = cuda.device_array((3, 4, 5), dtype=np.float64)
dary[:, :, :] = 4
# 649 µs ± 84.4 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)

@sklam something else I should have caught in RC testing, the code's pretty much unusable in loops atm :(

It'd be nicer if np.prod was supported in kernels

I suppose #2268 is the long-term solution to this

The lru_cache is not available in py2.  I guess it's fine that we don't perform as fast in py2 given that we already have a py2 deprecation plan.


Value.Decode does not error on mismatched types

What version of CUE are you using (cue version)?

$ cue version
cue version v0.4.2 linux/amd64

Does this issue reproduce with the latest release?
v0.4.2 is the latest release
What did you do?
I followed the documentation on how to Copy CUE values into Go values. Here it is in testscript form:
go mod tidy
go run main.go

cmp stdout stdout.golden
-- go.mod --
module cuebug

go 1.16

require cuelang.org/go v0.4.2
-- main.go --
package main

import (
	"fmt"

	"cuelang.org/go/cue"
)

func main() {
	type ab struct{ A, B int }

	var r cue.Runtime

	var x ab

	i, _ := r.Compile("test", `{A: 2, B: 4}`)
	_ = i.Value().Decode(&x)
	fmt.Println(x)

	i, _ = r.Compile("test", `{B: "foo"}`)
	_ = i.Value().Decode(&x)
	fmt.Println(x)
}
-- stdout.golden --
{2 4}
json: cannot unmarshal string into Go struct field ab.B of type int

What did you expect to see?
An error, as documented.
What did you see instead?
An ab is created with B set to 0.
It's not clear if this is a documentation bug or a bug in Value.Decode(). If the latter can you offer advice on how to ensure that decodes are successful?

A couple of points here:

you should use cue.Context rather than cue.Runtime (which is deprecated)
Decode returns an error which you should check

  err := i.Value().Decode(&x)
  if err != nil {
    fmt.Println("error:", err)
  }

Decode returns an error which you should check

Oops! Sorry for missing the obvious answer there. It sounds like the docs just need to be updated here?

Oops! Sorry for missing the obvious answer there. It sounds like the docs just need to be updated here?

The only thing to add to the docs is something along the lines that it will return an error if an error is encountered during the operation. This is assumed to be the default meaning of an error return value and Go documentation typically omits such statements from the documentation. Just to pick an example from the Go standard documentation: https://pkg.go.dev/net#LookupHost


[SYSTEML-860] SparkR/HydraR integration with SystemML

LGTM. Thank you @aloknsingh!
Since this utilizes the older MLContext API, we will most likely want to eventually move to the newer API.


TIKA-2696 Add support for OSD output, contributed by @4U6U57

See https://issues.apache.org/jira/browse/TIKA-2696
Contributed by @4U6U57 on behalf of @Egnyte

@tballison Added test.

Y.  Sorry for my delay.  As I think more about this, would it make sense to parse the OSD output and put the values in the metadata object rather than as "content"?  WDYT?

Sorry for my delay.
Three things.

What would you think of "parsing" the output into metadata fields?  That info feels to me far more like metadata than "content".
Do we know at what version of tesseract, the osd info is written to an .osd file rather than to stdout?  On my ancient version (see below), that info is dumped to stderr, not written to an osd file.  Should we just rely on users having a more modern version that writes an osd file?
If we do parse this info, do we have a sense of how much it changes across versions?

This is what I see with an old version of Tesseract:
Tesseract Open Source OCR Engine v3.04.00 with Leptonica
Orientation: 0
Orientation in degrees: 0
Orientation confidence: 28.65
Script: 1
Script confidence: 144.00

And from the Windows build that is hot off the press (the June 2018 beta version threw an exception with -psm 0).
tesseract v4.0.0-rc1.20181008
Page number: 0
Orientation in degrees: 0
Rotate: 0
Orientation confidence: 21.57
Script: Latin
Script confidence: 2.84

Interesting point in regards to Metadata, I think that it makes sense to go that route. I started this project initially with the intention of specifically supporting psm 0, which does not output any extracted content, but putting it in metadata would be more beneficial to other modes that also output OSD information.
I haven't had a chance to test this on older versions, I was planning to take a look over the weekend, but in my tesseract 4.0.0-beta.1 (latest on Ubuntu 18.04) and psm 0 I get the OSD info in stdout, not stderr, if the output format is specified as stdout, and in the $out.osd if output is $out. In all other modes I don't get OSD info.\

OSD Output Testing
[avalera:~/test]
$ ls
test.jpg

[avalera:~/test]
$ tesseract test.jpg stdout --psm 0 -l osd
Warning. Invalid resolution 0 dpi. Using 70 instead.
Estimating resolution as 227
Page number: 0
Orientation in degrees: 0
Rotate: 0
Orientation confidence: 16.99
Script: Latin
Script confidence: 0.16

[avalera:~/test]
$ tesseract test.jpg stdout --psm 0 -l osd 2>/dev/null
Page number: 0
Orientation in degrees: 0
Rotate: 0
Orientation confidence: 16.99
Script: Latin
Script confidence: 0.16

[avalera:~/test]
$ tesseract test.jpg stdout --psm 1
Warning. Invalid resolution 0 dpi. Using 70 instead.
Estimating resolution as 227

CHAPTER 5

IN THE MIDDLE OF THE NIGHT

Tue next day Aunt Hetty took Pam and Peter and
their cousin Brock in the pony-cart to the sea,
which was about three miles away. This was such
fun that the three children forgot all about Cliff
Castle for a day or two. And then something hap-
pened that reminded them of it.

It was something that happened in the middle
of the night. Pam woke up and felt very thirsty.
She remembered that Aunt Hetty had left a jug
of water and a tumbler on the mantelpiece and
she got up to get it.

She stood at the window, drinking the water. It

39

[avalera:~/test]
$ ls
test.jpg

[avalera:~/test]
$ tesseract test.jpg outfile --psm 0 -l osd
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Warning. Invalid resolution 0 dpi. Using 70 instead.
Estimating resolution as 227

[avalera:~/test]
$ ls
outfile.osd  test.jpg

[avalera:~/test]
$ rm outfile.osd

[avalera:~/test]
$ tesseract test.jpg outfile --psm 1
Tesseract Open Source OCR Engine v4.0.0-beta.1 with Leptonica
Warning. Invalid resolution 0 dpi. Using 70 instead.
Estimating resolution as 227

[avalera:~/test]
$ ls
outfile.txt  test.jpg

Same as previous, haven't tested but looking at your two examples I'd imagine not much change except for the addition of new keys.

Is there any chance of someone completing this fix?

I have verified the fix. It works very nicely. Thanks a lot!

Thank you for the confirmation!

Hello, I am currently using the Tika 2.9.1 server version and need the output of the OSD in my metadata, particularly the value of the script (Latin, Cyrillic, etc.). So my questions are the following:
Does my server version of Tika integrate it? Is it possible?
If yes, how can I configure my Tika server?
Thanks for your work (and also english is not m'y native language)

This is a closed issue from years ago, please ask this in the user's mailing list (don't forget to subscribe) or on stackoverflow.com.


[BUG] Intermittent crash on latest forge

Important Information
Minecraft Version: 1.20.1
Mod Loader System: Forge 47.2.17
DramaticDoors Version: 3.1.5
Describe the bug
I've been chasing down this "mystery crash" for a few days now, and I've finally isolated it, I think.
It happens intermittently most of the time. Like once every ~10 launches. The game loads almost to the main menu, then on the client I see "Resource reload failed" and I usually get a CTD. Here's the report: https://gist.github.com/katubug/04d946d2879dbb9d6abaf1cb923ebca0
It resets all my resource packs and then I can launch again. I finally found a way to get it to crash every time, by using the mod Resource Pack Overrides, and configuring it to add all my resource packs automatically on launch. I'm not sure what resource pack it's angry at, because it has happened with different ones during my testing.
I tried googling the error, and found a reddit response from the Forge team saying that it was an incompatibility with newer Forge versions, but I'm not entirely sure if that's relevant here.
Now it's worth noting that I think this is a multi mod conflict, as the crash doesn't seem to occur with ONLY Dramatic Doors and Resource Pack Overrides. I no longer have the time I used to, so I can't test my whole modlist to see what the conflict is. I'm hoping you can get enough information from my crash report and logs.
To Reproduce
For me, simply launch the pack with Dramatic Doors included. Let me know if you'd like me to zip things up for you to test on the instance where it's replicatable.

This is a strange issue and it never had issues. I may need to test the mod on latest Forge version.

After hours more testing, I think it is a mod conflict with Embeddium. Here's a thread about it:https://forums.minecraftforge.net/topic/141182-1201-crash-cannot-invoke-netminecraftclientplayerlocalplayerm_6117_-because-thisf_91074_-is-null/

Nope, it's probably neither of your mods. I give up. xD


TOC Meeting Invite has run out

It looks like the invite for the TOC Meeting has run out.
<EMAIL_ADDRESS>Could you please extend the invite?

This has been restored for the next quarter.

THanks for pointing this out!


Can work in phonegap / cordova ?

Can work in phonegap / cordova ?

It should work but currently we are not providing any support on phonegap.
Very soon we are going to release SDK for phonegap.
On Wed, Mar 11, 2015 at 6:28 PM, Tamilselvam<EMAIL_ADDRESS>wrote:

Can work in phonegap / cordova ?
—
Reply to this email directly or view it on GitHub
https://github.com/appvirality/appvirality-sdk-android/issues/2.

thank for your response, expecting SDK for Phonegap Soooooon.

Is there any update on this ?


Latest Japanese language files and fix multibyte character issues

I checked and modified the machine translated Japanese language file. So submit latest version.
In the process of testing language file on the pfSense box, some issues occurred due to the multibyte character code. One of the issues, multibyte characters cannot be shown correctly in some cases. And another big issue, using multibyte characters sometimes cause to break config.xml.
Therefore, I modify some codes the following:
(1) Modify to use xhtmlspecialchars, xhtmlspecialchars_decode, xhtmlentities and xhtml_entity_decode instead of htmlspecialchars, htmlspecialchars_decode, htmlentities, html_entity_decode.
Htmlspecialchars, htmlentities and html_entity_decode use ISO-8859-1 for default encoding on PHP5.3.x. And this cause to break config.xml when switch language using different encoding.
Now Pfsense has upgraded 5.3.x to 5.5.x, and this problem might seems not so serious. But this type wrapper is very useful for the system management written by PHP. Because PHP specifications change very often, so using default codeset become some risks of the system. That is why many i18n PHP systems take this type wrap scripts.
For security reason, htmlspecialchars, htmlspecialchars_decode, htmlentities and html_entity_decode need to set correct second argument $flags. Therefore I add new functions xhtml* to set default $flags to ENT_QUOTES | ENT_XHTML and $encoding to system_get_language_codeset in pfsense-utils.inc.
(2) Add/Modify some language and character-code relative codes.
e.g.
In usr/local/www/guiconfig.inc and usr/local/www/system.php
-set_language($g['language']);
+set_language($g['language'], system_get_language_codeset());
In etc/inc/authgui.inc
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="<?=system_get_language_code();?>
xml:lang="<?=system_get_language_code();?>">
In etc/inc/pfsense-utils.inc
add some codes to set default language in function system_get_language_code()
+$config['system']['language'] = "en_US"; // Set default language.
+set_language("en_US", "UTF-8");
(3) Unify character-code to UTF-8.
Convert usr/local/share/mobile-broadband-provider-info/iso_3166-1_list_en.xml from ISO-8859-1 to UTF-8.
Set pt_BR encoding from ISO-8859-1 to UTF-8 in etc/inc/pfsense-utils.inc and pfSense.po of pt_BR.
Copy pt_BR language files usr/local/share/locale/pt_BR.ISO8859-1/LC_MESSAGES/ to usr/local/share/locale/pt_BR/LC_MESSAGES/.
Convert usr/local/share/locale/pt_BR/LC_MESSAGES/pfSense.po from Mac OS Roman to UTF-8.
Regenerate usr/local/share/locale/pt_BR/LC_MESSAGES/pfSense.mo using converted pfSense.po.
(4) Modify to use UTF-8 writing config.xml
In etc/inc/xmlparse.inc and etc/inc/xmlparse_attr.inc
e.g
-$xmlconfig .= "<$ent>" . htmlentities($val) . "</$ent>\n";
+$xmlconfig .= "<$ent>" . xhtmlentities($val, ENT_QUOTES | ENT_XHTML, 'UTF-8') . "</$ent>\n";
(5) Add Japanese to languege list in etc/inc/pfsense-utils.inc
(6) Fix broken html form layout when switch language
In usr/local/www/services_dhcp.php
-00:00:00,01:E5:FF
+00:00:00,01:E5:FF

I apologize for the long delay.
This PR contains a lot of changes and a lot has changed in pfSense since it was sent. If you are still interested in contribute with necessary changes to get intl work appropriately we would appreciate it. I just would like to ask you to submit it in small chunks so we can review and discuss.
Since this PR will not apply on branch master, I'm closing this one.


[sketch] Prevent typos in option tables

Oftentimes we pass around tables of options.  Some of those options are required, some are optional.  Thing is, it becomes hard to add required options over time, as old code might not detect that it needs to change; it's also hard to let old code know when options go away; and most importantly it's easy to make typos.  It's also a bit of irritating effort to provide for optional values which default to false; the idiom conf.foo = conf.foo or bar is just too easy to type.
In the lwaftr and in pflua we use helpers to parse options that solve all these problems.  Maybe they're good for snabb itself?  Feedback welcome @lukego @eugeneia :)
I note that @kbara once thought this sort of thing was too much machinery, then it caught a nice bug and she became a believer :)

It is too much machinery, it's just the least bad option in these contexts. ;-)

Hehe :)  I admit, I really like common lisp's keyword arguments :)

I would prefer this to be in core.lib (and built into core.config.parse_app_args). Anything that speaks against that?
Cc @lukego

Great! I would really love to have this. I definitely have that uneasy feeling when using table parameters that are not validated for typos etc. Commonly do make mistakes on parameters to engine.run() for example.
@eugeneia Good question. To me core.lib is a bit of a disorganized mess and I shudder a bit when I read the documentation and see how much stuff we have just thrown in there and thus made part of our API. So I agree that putting this into core.lib would be consistent with normal practice but I am not sure how much I want to promote that. Up to you guys.

@lukego Completely agree that core.lib needs a cleanup. As parsing table configurations is a core competency of Snabb (every serious app needs to do it), I would persist on having this in core.lib and it being built into config.parse_app_arg. The current pattern to parse app configurations is absolutely horrible and this is a chance to end this swiftly. Cleaning up core.lib is a separate task.

I would like to have this, but this PR seems forgotten. I would offer to take over integrating this, given there is demand.

I agree; pinging @wingo .


Implement lowergraph support for string/int/float/bool arrays

Fixes SR11079/SR11079.
ShapeList and type lists remain.

@swift-ci please test tensorflow

@swift-ci please test tensorflow

@swift-ci please test tensorflow

@swift-ci please test tensorflow

@swift-ci please test tensorflow

sigh. :)

@swift-ci please test tensorflow

@swift-ci please test tensorflow

@swift-ci please test tensorflow

Weird how it doesn't provide any feedback...

@swift-ci please test tensorflow

it's not always listening

It's running now: https://ci-external.swift.org/job/swift-PR-TensorFlow-Linux/.
But sometimes this PR page still wouldn't show that, so I usually check the above CI link.

@swift-ci please test tensorflow

resolved merge conflict, trying again.

@swift-ci please test tensorflow


WIP: Limit Rebuy

This is a work in progress to resume discussions from Slack on the Limit Rebuy feature.
The general idea is to add config settings that make the engine use the profits from a sell action as a source for setting post-only limit orders at some interval downward (something like my buy-the-dip bot that probably doesn't work anymore: https://github.com/atomantic/btd_bot)
So new config options would be something like this (assuming a VOL of $100):
CPBB_REBUY: 80, // use $80 from each sell to set limit orders
CPBB_REBUY_VOL: 10, // $10 each limit buy
CPBB_REBUY_AT: -0.5, // -0.5% intervals (e.g. -0.5%, -1%, -1.5%, -2%, -2.5%, -3%, -3.5%, -4%)

Since these limit orders are only filled if the price drops to those targets, this creates some potentially messy adjustments to the growth trajectory system that this project is maintaining, but these can be tracked separately and managed in another local file (I'm thinking of setting up a lowdb json file to store pending limit orders. Additionally, we may want to purge limit orders under a certain price if we think that the price will never see that point again and we want to free up cash for the bot to use in regular taker operations (cash on limit orders is not available for market buys).

Are you thinking the limit orders would stay on the books until they are cleared or filled? What if instead of staying forever, the script wipes out any pending limit orders before taking the official action? Then you’d only have a fixed number of active limit orders on the books and you wouldn’t have to worry about them piling up and adding chaos.
I think I like this idea but I'd like to track it in the ledger like the rest of the orders. Not tracking things gets really hairy. I could see the engine checking with the Coinbase api to see if the limit orders were filled, adding any filled ones to the history, and canceling the rest before taking the official action.
That would change the TotalInput/Target/Diff based on any filled rebuys as additional inputs. Also ensures the bought bitcoin gets tracked.

before you review this, I'm going to break it up into multiple pull-requests and cleanup a bit


Store photoelectron arrival information in two 1d arrays

Replaces the "list of lists" containing photoelectrons arrival time (array_event['photoelectrons'][tel_id]['time']) with two 1d arrays:
array_event['photoelectrons'][tel_id]['photoelectron_arrival_pixel']
array_event['photoelectrons'][tel_id]['photoelectron_arrival_time']
These arrays are easier to operate with instead of the list of lists.
Also removed calculation of mean_time from eventio. Instead, the following can be performed:
        sum_ = np.zeros(n_pixels)
        n = np.zeros(n_pixels)
        np.add.at(sum_, pixel_array, time_array)
        np.add.at(n, pixel_array, 1)
        mean_time = np.divide(sum_, n, out=np.full_like(sum_, np.nan), where=n != 0)

Benchmarks:
def get_mean_time_old():
    with eventio.SimTelFile(path) as f:
        for array_event in f:
            array_event['photoelectrons'][0]['mean_time']
            break

142 ms ± 15.3 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
def get_mean_time_new():
    with eventio.SimTelFile(path) as f:
        for array_event in f:
            pixel_array = array_event['photoelectrons'][0]['photoelectron_arrival_pixel']
            time_array = array_event['photoelectrons'][0]['photoelectron_arrival_time']
            n_pixels = array_event['photoelectrons'][0]['photoelectrons'].size

            sum_ = np.zeros(n_pixels)
            n = np.zeros(n_pixels)
            np.add.at(sum_, pixel_array, time_array)
            np.add.at(n, pixel_array, 1)
            mean_time = np.divide(sum_, n, out=np.full_like(sum_, np.nan), where=n != 0)
            break

134 ms ± 2.08 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

If the total number of photoelectrons is available at the start in the function, then the arrays can be initialised as numpy arrays instead of lists

With this change, the above benchmark for the new approach now reports:
41.7 ms ± 1.09 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

The amplitudes are the same, and there are some other objects which have similar contents. I think this will yield a nice prrformance improvement.
Thanks for this idea!
Will merge this and go through other objects to also improve them using this approach.

I like this. It reminds me a little bit of Sebastians photonstream representation.
He used 3 different in memory representations for different purposes IIRC, and he had some code to convert between them.
I'd never thought about applying this idea here though.
However, I think it would be nice to provide such good implementations for calculating the mean and other moments in a little library maybe. Since np.add.at is maybe not something everybody immediately knows about.
This little function collection would be useful for everybody using such 1d represenations and thus should probably be independent of pyeventio and ctapipe ... I guess ...

I did not know about numpy.add.at until last week. Not to judge from a sample of 1, but it indeed seems not to be a widely known/used feature.
I will just calculate the mean using it in here, so that the mean_time stays in the output.
@dneise  photoelectrons['time'] is indeed the photonstream but only of the true photons, no nsb or electronic dark/cross-talk noise photons included

Or we could calculate mean_time in SimtelEventSource. I took your statement in https://github.com/cta-observatory/ctapipe/issues/1341

I see two possible solutions, calculating the mean time already in the cython part of eventio (would be easy, but right now, eventio does not really do things like this)

to mean that you would prefer to not perform this sort of operation in eventio. It made some sense to me that eventio just provides access to the contents of the files and does no processing of its own...

Yes, indeed.

I did not know about numpy.add.at until last week. Not to judge from a sample of 1, but it indeed seems not to be a widely known/used feature.

Yeah this is also my impression. But it's important that numpy.add.at becomes more widely known. It's so easy to be tripped up by array[indices] +=1  where there can be repeats of the same index in indices. It usually goes unnoticed.

Yeah this is also my impression. But it's important that numpy.add.at becomes more widely known. It's so easy to be tripped up by array[indices] +=1 where there can be repeats of the same index in indices. It usually goes unnoticed.

Totally agree here.

Worth mentioning, this PR shaves off a third of the runtime for the ctapipe stage1 process when 1208 is present.


When deleting a version, the following error is displayed Error: ENOENT: no such file or directory, open

Yes, that's because the library doesn't download the manifest (aka version.json) from the servers. Although it is not a bug, I will try to implement that function as a new feature.


Add a tutorial notebook.

Add a notebook demo that can run in colab or on a local jupyter instance.
A setup script is added for setting up the notebook directory.
The download script is also modified so that, when setting up colab, it can do a minimal download.

Would you mind adding a pointer in the README as well?


fixes #457 resolved #457 closed #457

The task of opening a file , searching for links , opening them , (turning mic , camera off). All these tasks are automated.
Pull Request Template
script name -
Brief about script
Issue no.(457) -
Issue no.(457)
resolved #457
fixed #457
closed #457
Self Check(Tick After Making pull Request)

[x] This issue was assigned to me.
[x] One Change in one Pull Request
[x] My file is in proper folder (Name of folder should be in lowercase with no space in between)
[x] I am following clean code and Documentation and my code is well linted with flake8.
[x] I have added README.md and requirements.txt with my script

If issue was not assigned to you Please don't make a PR. It will marked as invalid.

Hope my contribution helps.


Add new test cases

This tool looks really useful!
I once knocked up a bash script to do this sort of thing with a bunch of sed commands, but of course didn't deal with the AST properly like here, and could break some things, so the changes had to be checked carefully.
https://github.com/hugovk/upgrade-unittest
Anyway, I compared the cases that script did with the ones here, and added test cases for the ones not handled here.
Of course, they fail here as the actual changes aren't implemented.
But consider this an issue of some suggested additions!

Thank you @hugovk! AFAIK you introduced 2 different types of tests;

assertFalse(<comparison>) => assertGreater/...
assertEqual(something, <True/False>) => assertTrue/assertFalse

I don't particularly remember the reason for not implementing the first one, but I guess there was some FPs from the CPython's test suite (for verifying that we didn't break anything, in CI, we run the CPython's test suite after formatting it with teyit). But if I had to guess that, it was caused of some class with inconsistent ordering implementations.
For the second one, it is also the same thing, assertEqual is for checking against __eq__ but on the other hand, assertTrue/assertFalse is for, __bool__. I will try to work on that tonight but not sure if there would be easy and FP-free way of doing that.

Yes, those are the two types of test.
Does FP mean false positive?
Yes, there could well be some cases where these can't be changed, and I don't mind if they're not implemented and this is closed. Just wanted to share just in case they were useful!


Summary report in CloudWatch

Hi,
I am using the cloud watch plugin to capture my load test results and reports are generated in multiple cloudwatch logs based on the lambda split settings.
Is there a way to get the summary report of all the chunks?
Ex: When the test script with below phase is run, I get two cloud watch logs
"phases": [
{
"duration": 300,
"arrivalCount": 20
}
]
Cloudwatch log1:
{
"timestamp": "2018-06-14T18:19:40.849Z",
"scenariosCreated": 16,
"scenariosCompleted": 16,
"requestsCompleted": 64,
"latency": {
"min": 21.2,
"max": 269.3,
"median": 32.6,
"p95": 181.7,
"p99": 265.9
},
"rps": {
"count": 64,
"mean": 0.28
},
"scenarioDuration": {
"min": 140.2,
"max": 481.5,
"median": 188.9,
"p95": 462.1,
"p99": null
},
"scenarioCounts": {
"0": 16
},
"errors": {},
"codes": {
"200": 32,
"405": 16,
"409": 16
},
"matches": 0,
"customStats": {},
"concurrency": 0,
"pendingRequests": 0
}
Cloudwatch log2:
{
"timestamp": "2018-06-14T18:20:40.928Z",
"scenariosCreated": 4,
"scenariosCompleted": 4,
"requestsCompleted": 16,
"latency": {
"min": 25.7,
"max": 147.4,
"median": 55.7,
"p95": 145.2,
"p99": null
},
"rps": {
"count": 16,
"mean": 0.35
},
"scenarioDuration": {
"min": 254.4,
"max": 485,
"median": 311,
"p95": null,
"p99": null
},
"scenarioCounts": {
"0": 4
},
"errors": {},
"codes": {
"200": 8,
"405": 4,
"409": 4
},
"matches": 0,
"customStats": {},
"concurrency": 0,
"pendingRequests": 0
}
Can we get the summary report of all the 20 scenarios.

As per https://github.com/Nordstrom/artillery-plugin-cloudwatch, the namespace you specify will be where ResultLatency metrics will be collected from across your Lambdas.  Go to CloudWatch, click the Metrics link on the bar and look under custom namespaces.

Closing due to staleness.  If the concern has not been addressed, please feel free to re-open.  Thanks!


x509: certificate signed by unknown authority

The following code:
package main

import (
	"fmt"

	"github.com/docker/engine-api/client"
	"github.com/docker/engine-api/types"
)

func main() {
	cli, err := client.NewEnvClient()
	if err != nil {
		panic(err)
	}

	options := types.ContainerListOptions{All: true}
	containers, err := cli.ContainerList(options)
	if err != nil {
		panic(err)
	}

	for _, c := range containers {
		fmt.Println(c.ID)
	}
}

produces the following error:
panic: An error occurred trying to connect: Get https://<IP_ADDRESS>:2376/containers/json?all=1&limit=0: x509: certificate signed by unknown authority

goroutine 1 [running]:
main.main()
	/Users/me/src/go/src/github.com/maliceio/malice/test-docker/doctest.go:19 +0x120

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
	/usr/local/Cellar/go/1.5.3/libexec/src/runtime/asm_amd64.s:1721 +0x1
exit status 2

I am running the following on updated docker and updated docker-machine
docker version                                                                                ⏎ ✱ ◼
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.5.3
 Git commit:   a34a1d5
 Built:        Sun Jan 17 16:14:45 UTC 2016
 OS/Arch:      darwin/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.3
 Git commit:   a34a1d5
 Built:        Fri Nov 20 17:56:04 UTC 2015
 OS/Arch:      linux/amd64

This is duplicated of #40. I'm pushing a fix soon, but let's centralize all conversations in that issue.


HTTP Rate Limit Error on Premium Full Archive Search?

I have 13 similar queries, 9 of them succeed, however 4 of them error due to HTTP Rate Limiting.
Full Error Output:
ERROR:searchtweets.result_stream:HTTP Error code: 429: Exceeded rate limit
ERROR:searchtweets.result_stream:Rule payload: {
      'fromDate': '201708220000',
      'maxResults': 500,
      'toDate': '201709030000',
      'query': 'from:1307298884 OR from:355574901 OR from:11996222 OR from:588649189 OR from:117808071 OR from:19401084 OR from:19401550 OR from:735608306585198592 OR from:241642996 OR from:27888518 OR from:56470183 OR from:14861004 OR from:106728683 OR from:19683725 OR from:229379349 OR from:16425419 OR from:20562924 OR from:76138084 OR from:76303 OR from:399111773 OR from:26774590 OR from:795296683533942784 OR from:159669473 OR from:345161879 OR from:4784677524 OR from:22654208 OR from:2227415623 OR from:139114806 OR from:34030321 OR from:140660078 OR from:247503175 OR from:14791386 OR from:3014668581 OR from:279136688 OR from:64798315 OR from:2247970886 OR from:704407090060730368 OR from:82960432 OR from:64523032 OR from:396045731 OR from:45564482 OR from:28645139 OR from:18205191 OR from:734824555051646976 OR from:357026180 OR from:44900997 OR from:14192680 OR from:4813084988 OR from:600958397 OR from:605603344 OR from:577537350 OR from:589419748 OR from:1429761 OR from:401527825 OR from:15937025 OR from:2788847458',
'next': 'eyJtYXhJZCI6OTAwMjkyNzgzMzk0NjM1Nzc2fQ=='}

Relevant YAML configuration details:
search_params:
    results-per-call: 500
    max-results: 1000000

output_params:
    save_file: True
    results_per_file: 10000000

search_tweets_api:
  account_type: premium
  endpoint: https://api.twitter.com/1.1/tweets/search/fullarchive/history.json

It also appears that these failed queries also count against our paid requests, even though nothing gets written to the output file.

It also appears that these failed queries also count against our paid requests, even though nothing gets written to the output file.

I have the same issue and #40 mentions it as well. Doesn't seem like this was ever picked up, but maybe @binaryaaron would know?
Would be nice to at least be able to retrieve tweets that were fetched before the rate limit was reached.

@zafodB Without diving into the code, I have a hunch:
For the Premium API access, the failure appears after a few dozen seconds... perhaps at or near the one minute mark.  That is, the utility nicely handles the limit of 10 requests / second when paginating... but then at 60 seconds, it's nearly at 600 requests, at which point the Premium EndPoint returns "ERROR" because there's a limit of 60 requests / minute.
At that point, all data is lost if the utility was attempting to write results to a file.
It also appears that Enterprise accounts have variable  rate limits, but default to 120 req / minute, but not an additional requests / second limitation.
Kind of makes me miss the former GNIP API: "Your query is running" ... "Done, here's an S3 bucket with your tweets, available for 2 weeks"

I made some updates to the HTTP error handling. Previously, there was a general mechanism to retry 3 times for every error. This retry mechanism had a backoff design, but there was not a long enough delay duration to recover from a rate limit error. It also treated all errors the same, retrying three times even if your credentials were wrong.
So, this new update does the following:

With rate limit errors, it backs off exponentially across a fifteen-minute period and should recover from such errors and continue on.

Retries with 5xx server-side errors.

All other errors (4xx) are treated as "one and done, no use and retrying..." errors.

Next step is updating the PyPi package...


Not able to enable monitoring.

Rancher version - Build from master - af5771ff
Steps to reproduce the problem:
Create a RKE cluster (DO cluster in my case)
Enable monitoring.
Monitoring is not getting enabled . There is no app getting deployed in system project.
Following error seen in logs:
2019-06-28 01:48:40.052872 I | mvcc: store.index: compact 2110
2019-06-28 01:48:40.055534 I | mvcc: finished scheduled compaction at 2110 (took 1.432934ms)
2019/06/28 01:49:09 [ERROR] ClusterController c-tplgm recovered from panic "runtime error: invalid memory address or nil pointer dereference". (err=<nil>) Call stack:
/go/src/github.com/rancher/rancher/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:72
/go/src/github.com/rancher/rancher/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:154
/usr/local/go/src/runtime/asm_amd64.s:522
/usr/local/go/src/runtime/panic.go:513
/usr/local/go/src/runtime/panic.go:82
/usr/local/go/src/runtime/signal_unix.go:390
/go/src/github.com/rancher/rancher/pkg/app/utils/utils.go:70
/go/src/github.com/rancher/rancher/pkg/controllers/user/monitoring/operatorHandler.go:157
/go/src/github.com/rancher/rancher/pkg/controllers/user/monitoring/operatorHandler.go:42
/go/src/github.com/rancher/rancher/vendor/github.com/rancher/norman/condition/condition.go:212
/go/src/github.com/rancher/rancher/vendor/github.com/rancher/norman/condition/condition.go:181
/go/src/github.com/rancher/rancher/vendor/github.com/rancher/norman/condition/condition.go:170
/go/src/github.com/rancher/rancher/vendor/github.com/rancher/norman/condition/condition.go:140
/go/src/github.com/rancher/rancher/pkg/controllers/user/monitoring/operatorHandler.go:40
/go/src/github.com/rancher/rancher/pkg/controllers/user/monitoring/register.go:49
/go/src/github.com/rancher/rancher/vendor/github.com/rancher/types/apis/management.cattle.io/v3/zz_generated_cluster_controller.go:144
/go/src/github.com/rancher/rancher/vendor/github.com/rancher/norman/controller/generic_controller.go:348
/go/src/github.com/rancher/rancher/vendor/github.com/rancher/norman/controller/generic_controller.go:258
/go/src/github.com/rancher/rancher/vendor/github.com/rancher/norman/controller/generic_controller.go:246
/go/src/github.com/rancher/rancher/vendor/github.com/rancher/norman/controller/generic_controller.go:238
/go/src/github.com/rancher/rancher/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133
/go/src/github.com/rancher/rancher/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134
/go/src/github.com/rancher/rancher/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88
/usr/local/go/src/runtime/asm_amd64.s:1333

Relating to https://github.com/rancher/rancher/issues/20975

The bug fix is validated in Rancher: master-head  b4340af9
Steps:

run Rancher: master-head container
add an RKE cluster ( DO, 1 etcd, 1 control plane, 3 workers)
enable the cluster monitoring
add a new project
enable the project monitoring

Result:

Both the cluster monitoring and the project monitoring are working as expected


Typing cursor glitches out (moves to random (blank or not) characters of the line) while typing or deleting characters (video included)

From @rogersachan on August 19, 2016 4:9

Steps to reproduce
Download and install Powershell on Ubuntu 14.04
hold any letter
Expected behavior
Smoothly spams character of choice (or if actually typing doesn't spasm)
Actual behavior
Flies all over the place (and makes me unfocused af)
Youtube proof
Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.0-alpha
PSEdition                      Core
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   <IP_ADDRESS>
GitCommitId                    v6.0.0-alpha.9
CLRVersion
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

Copied from original issue: PowerShell/PowerShell#1933

@lzybkr I can till preoduce this with the latest version, has there been any progress made.

Yeah, I've made some progress but it's not quite ready yet.

Most likely a dupe of #469, reopen with additional information if you disagree.


use babel-preset-fsa instead of inlining babel configuration

This code would use a fullstack academy babel preset (see here: https://github.com/FullstackAcademy/babel-preset-fsa)
Pro:

a consistent babel configuration across all repos

Con:

elides the underlying babel configuration

Is this a proposal to hide all our dependencies behind a meta-package?
No, this feels like it would be an inappropriate approach for packages like express, react, sequelize. This feels closer to our in-house eslint config.
TODO:

[ ] Decide whether or not to publish the preset to npm, or be okay with github installs.
[ ] Add some comments in .babelrc.
[ ] If accepted, update all projects to use this config.
[ ] Add some "smoke testing" so we can verify the configuration is working as expected.

@leafoflegend voted for releasing to npm. Which makes sense to me.
@glebec Do you happen to know who/how to access the fullstackacademy npm org?

@collin I have ownership status, as do a few others including @gtelljohann. Not sure who has control over the official fsadmin npm user (maybe Griffin)? But it's not strictly needed as I'm considered an owner. I can invite other members to the team, just let me know their npm usernames.


Project stuck exporting

reported on slack:https://humancellatlas.slack.com/archives/C9XD6L0AD/p1618343411133700
Project UUID: 03c6fce7-789e-4e78-a27a-664d562bb738
is still exporting after 12+ hours does it need to be re-triggered?

duplicate


⚠ Roblox Site has degraded performance

In 7f9d654, Roblox Site (https://www.roblox.com) experienced degraded performance:

HTTP code: 502
Response time: 20201 ms

Resolved: Roblox Site performance has improved in 41d3a6a after 7 minutes.


[FEATURE] Add Control Data to Session Creation

Description
The following data can be maintained for a session:

[x] Name: short description to identify session; no uniqueness check (done in walking skeleton)
[x] Description: longer description of session with possible multiple lines and line breaks; no rich editor functionality (bold, italic, font, font size, etc.)
[ ] Session Status: [Open, Closed]; can only be maintained by session owner???
[ ] Online: ???
[x] Editable ("Bearbeitung"): used as default for session handling (edibility for participants)
[x] Start and End dates: end dates needs to be later to start date; only editable in case "online" flag is not set
[x] Player: is used as a default for session handling (decides if participants can play the audio on their own)
[x] Sample Solution: used as default for session handling (showing the sample solution or not)
[x] Analysis: used as default for session handling (show analysis of annotations or hide it)

Tasks

[x] Sychronous/aynchronous field can be removed (the function is covered by enabling/showing the player)
[ ] Session Status (Open, Closed as options)

Open Questions

[x] Is composer field needed
[x] Editable ("Bearbeitung") defines what?
[x] Start and End dates: what is defined by these dates? is the interpretation dependent on other data?
[x] Sample Solution: why is this necessary to be defined on session level already? Isn't it enough to either have one or to not have a sample solution available? What is controlled by this checkbox?
[x] Analysis: same as sample solution, what is the purpose of this checkbox in the user flow?
[x] Player: defines if player is available to participants (does it also define if everyone can play the audio themselves or if it is also just shown as visualization and the "editable" option defines that it is playable by participants?
[x] Definition of status and status flow: how does the status interact with "online"
[x] Status: what does "Session Closed" mean? Still shown in session overview? Or just not editable any more for anyone?
[x] Online: how does the interaction between the dates and the flag work? As soon as the flag is set the dates are irrelevant and should be not editable/avvailable?

I comment here after our discussion yesterday regarding session attributes.

[ ] sychronous/aynchronous field can be removed (the function is covered by enabling/showing the player)
[ ] in my opinion the availability timespan in the „Freigaben“ section is not necessary. It doubles the timespan in the „Verfügbarkeit“ section in my eyes. Or am I overlooking a use case?
[ ] A checkbox that says, if the session is open or closed (editable/not editable) would be good, an optional timespan that defines availability (i.e. visibility/accessibility for the subscribed users) of the session is in some cases interesting. Similar functions in a learning platforms like ILIAS or moodle are popular.
[ ] Audio upload may not necsessarily require a metadata field like composer. This can be part of the session description, if information to the audio track is required.
[  the Marker section is to be added. I Opened the discussion here: …

These are my observations so far. Please feel free to comment on, add or remove the points above.

@KoALa-MHF/mh-team I have created a list of data points which can be entered for a session in the issue description above. Also for some on these data points we have questions what they are used for, which I have added in section "Open Questions". Please go through them and provide us a short description (like we did for the other fields) which helps the understanding here. Would be also good if you not just start from a delta list, but more a complete list of data entries which you need for a session

Composer Field is not needed. I think such information can go to the session description. I don't have an idea of where this field appears again later during the usage of the session
with online I understand the session is available for the participants. If the session is not online participants should be directed to a screen that says e.g. that the session they try to join is not (yet) „live“. The terminology is used in ILIAS (elearning) platforms in a similar way. Owners can create an object (here a session), but don't publish this immediately to all class members. So publish might also be a good word for it.
Editable means that participants are able to write annotations into the session. If the box is not checked markers do not have any effect. Background: in class you might want to have the option to direct attention of the participants.
start and end dates have effect on the „online“ field. They work as clock timer (Zeitschaltuhr) for the online Attribute.

This means that the field can be removed in the audio track section. As mentioned in the above comment.

the checkbox sample solution controls the visibility of the solution for the participants. The Owner should be able to hide oder show his/her solution. A better label would be „Musterlösung anzeigen“
The usage of Analyse checkbox is unclear for me.
Player: The checkbox controls if participants can play the audio file on their own. If not checked the session audio is controlled by the owner (all hear at the same time). The checkbox is doing basically what synchronous and asynchronous stood for before. In contrary to the editable checkbox the player checkbox doesn't have any effect on the markers.

ok, so most of them are only for handling during an active session (display option, etc.). Does it then make sense to define them already when creating a session or wouldn't it make more sense to have these options inside of the session screen (e.g. to show a sample solution is in the end just a display option, not a setting of the session which has to be stored anywhere)

Online: since we have anyways a status (Open, Closed) wouldn't that be just another status in the status sequence: Open => Active => Closed? That would also reduce the data maintenance screen or should it be display only because of the start end date interpretation (see next point)
Start and End date: if they control the online "status", this is not data which you want to store, but you derive for display purposes from the dates
Player: does that mean that the player is not shown at all as soon as I can not play it as a participant? Until now our understanding was that a visualization and synchronization with the current play position of the owner is wanted, but not always wanted; or does it mean that the player is always visible (just not playable) depending on the checkbox and only if there is no audio (live situation) the player is not visible?
Editable: that also sounds more like an active session control than having it as a master data in the session maintenance

ok, so most of them are only for handling during an active session (display option, etc.). Does it then make sense to define them already when creating a session or wouldn't it make more sense to have these options inside of the session screen (e.g. to show a sample solution is in the end just a display option, not a setting of the session which has to be stored anywhere)

Exactly, the checkboxes Musterlösung, Bearbeitung (editable) and Player should be available in the session screen. But it makes some sense to define them already when the session is created in order to be able to prepare the starting status of a session.

Online: since we have anyways a status (Open, Closed) wouldn't that be just another status in the status sequence: Open => Active => Closed? That would also reduce the data maintenance screen or should it be display only because of the start end date interpretation (see next point)

I would stay with the binary status open and closed which means (publicly available for participants or not). This is a checkbox that is not neccessary during the session and within the session screen. But it could be a direct option on the session list.

Start and End date: if they control the online "status", this is not data which you want to store, but you derive for display purposes from the dates

I don't know if I understand correctly. I would put like this: The Start and End date controls the open closed checkbox value. E.g. you could say the session is available from Start day and you can do your annotations until End date. So the status of the online open|closed checkbox is derived from the dates.
If this is complicated to implement as it requires some extra logic I would drop that feature.

Player: does that mean that the player is not shown at all as soon as I can not play it as a participant? Until now our understanding was that a visualization and synchronization with the current play position of the owner is wanted, but not always wanted; or does it mean that the player is always visible (just not playable) depending on the checkbox and only if there is no audio (live situation) the player is not visible?

The last one is it. The Player checkbox affects primarily the controls of the audio player. If checked every participants can use the player autonomously. If not checked controls (play, stop, pause etc…) are only in the hands of the owner and the play position should be indicated along the timeline as you wrote.

I don't know if I understand correctly. I would put like this: The Start and End date controls the open closed checkbox value. E.g. you could say the session is available from Start day and you can do your annotations until End date. So the status of the online open|closed checkbox is derived from the dates.
If this is complicated to implement as it requires some extra logic I would drop that feature.

@mxordn since this is the "master data" maintenance view for a session, typically the checkbox would not be set according to the inference from start and end date. Also my point was going into a direction that the information contained in the "online" checkbox is just a display option, not something that needs to be explicitly set by the user and hence need to be stored on the DB

Audio title and composer fields have been removed as discussed

Audio file handing in #46

@KoALa-MHF/mh-team I have added some more questions in the "Open Questions" section. The handling of the "online" flag in combination with the dates is not yet completely clear to us. The status and how that interacts with the "online" flag should also be clarified. Could you maybe give a short explanation/answer about the open questions in the issue description?

Definition of status and status flow: how does the status interact with "online"

Online means something like "ready to use". The dates are controlling accessibility for the users. In my opinion it makes no sense to store dates without having checked online.

Status: what does "Session Closed" mean? Still shown in session overview? Or just not editable any more for anyone?

Yes if checked the session is not editable.

Online: how does the interaction between the dates and the flag work? As soon as the flag is set the dates are irrelevant and should be not editable/avvailable?

See above.

Status "Session Closed":
"Session Closed" means that it is not editable for users, but the owner can still add annotations (sample solutions).
Status "Session online" and dates:
I think the dates should be not editable when "online" is checked, because in this case the session is online without any limitations. As soon as dates are added, the online checkbox turns into checked and not editable (light grey), because the status is then defined by the given timeframe.

Open topic: session status

Possible status of a session would be:

In Preparation
Open/Online
Closed
Archived

Deletion would not be a status, would be handled separately.
@KoALa-MHF/mh-team is this list from our alignments complete or do you see other possible status?

Additional accordion section for archived section (underneath other sessions section)

Status flow has no restriction, that means you can select any status as a follow up status to any status (e.g. archived to in preparation)


decodeFile returned null

Hi Beyka,
I am now having issue getting decodeFile to work. I used a test Tiff (1640x1240), set options.inJustDecodeBounds = true, and called decodeFile(file, options). There was no exception, but the Bitmap returned was null.
I then tried importing your source as module (not from gradle), but same result. However, android studio warned that it could not resolve corresponding JNI function of nativeDecodePath in TiffBitmapFactory.java.
I am using NDK 10e for the native code compilation (which also warns of non-system libraries in linker flags for libjpeg-x86.a and libjpeg.a.
Do you know how I can resolve this issue?
Thanks,
Devin

options.inJustDecodeBounds = true
this options says to factory not decode file, but get all data from it: width, height, count of directories(count of images in one file) and image orientation. With this options you can calculate sample size, select what image to decode, etc.
For decoding you should set options.inJustDecodeBounds  to false and than call
Bitmap bmp = TiffBitmapFactory.decodeFile(file, options);

or just call
Bitmap bmp = TiffBitmapFactory.decodeFile(file);

without options - it will be created with default parameters.
Thanks

Thanks for the explanation Beyka. It's working now.
Devin


An error was encountered while running benchmark.py

When I tested benchmark.py with the default conditions, the following error occurred
extractor.conf["max_num_keypoints"] = num_kpts
TypeError: 'types.SimpleNamespace' object does not support item assignment

Thank you for reporting this, fixed in https://github.com/cvg/LightGlue/commit/b1cd942fc4a3a824b6aedff059d84f5c31c297f6.


Improve article 2106.02636

Exact location of issue
incorrect rendering of https://ar5iv.labs.arxiv.org/html/2106.02636#S4.T1
Example:

Table 1 of Section 4 of 2106.02636#S4.T1

Thanks for the report!
The fix here requires supporting the trimclip package and (at least) its \clipbox macro, in latexml.


Small suggestion

Also, small suggestion...
You have  like ton of open source modules, so maybe you're gonna like tool called Hound by  thoughtbot.
So, what it does, it watches your repo by checking code styles, that you set and writes comments on pull requests and issues (if they don't match with code styles) how to fix it. It uses JSHint for checking , so you can specify whatever you want.

Thanks for the suggestion, but no thanks.
I have enough with JSCS (probably I'm going to switch to ESLint in the near future) and my eyes. Those bots are way to noisy imho. Also, it can't be a really fun experience as a first-time contributor to have a bot complaining about your code.
Thanks for the suggestion though. This reminds me that I should create an AMA repo one day too :p

Yeah, it would be great :+1:

@drKraken There you go sir! https://github.com/arthurvr/ama

@arthurvr :sparkles: nice


im getting sentry blocks from instagram whats up????

closing as duplicate of this https://github.com/ifedapoolarewaju/igdm/issues/81


"Content-Type: multipart/alternative" to send both text and html format ?

Hi,
Maybe it's already possible (or totally deprecated practice) and I missed the way to proceed, but would it be possible to add Content-Type: multipart/alternative so we could send both text and html version of a mail ?

It cannot work because the function is written incorrectly in the project.


Incorrect handling of cdata values

Implicitly we add "inf" bucket to histogram:
https://github.com/tarantool/metrics/blob/d239e851471d3e98a9b23b6949c140c6a346b031/metrics/collectors/histogram.lua#L27-L29
Then we allow to observe any value that can be casted to number: numbers, strings (like "1", "2", "3") and ULL/LL cdata.
But this condition doesn't consider value type anyhow:
https://github.com/tarantool/metrics/blob/d239e851471d3e98a9b23b6949c140c6a346b031/metrics/collectors/histogram.lua#L58
In case of string it just throws:
tarantool> mutation_time:observe('1')
---
- error: '.../share/tarantool/override/metrics/collectors/counter.lua:9: attempt to
    compare string with number'
...

In case of cdata in incorrectly compares input value with inf:
tarantool> mutation_time:observe(1ULL)
-- input - bucket - [input < bucket]
1ULL	100	true
1ULL	200	true
1ULL	300	true
1ULL	400	true
1ULL	500	true
1ULL	600	true
1ULL	700	true
1ULL	800	true
1ULL	900	true
1ULL	1000	true
1ULL	inf	false

It's caused by LuaJIT semantics:
tarantool> inf = 1/0
---
...

tarantool> inf > 1
---
- true
...

tarantool> inf > 1ULL
---
- false
...

tarantool> inf > 1LL
---
- false
...
tarantool> tonumber('inf') == 0ULL
---
- true
...

It's very hard to find an issue with cdata numbers. I suggest to throw in such cases or signal about an issue somehow.

So, why can't we use tonumber? It might fix the related tdg ticket. What's your concern about it?
I'm ok with any solution here, but throwing an error will cause additional logic in TDG.

What's your concern about it?

It's one of solutions. My concern that tonumber(cdata) can cause precision loss. It's not relevant for my case, but it's possible.
Some implicit transformation can still lead to some inconsistencies. But in case we make user to pass explicit number it's not our responsibility to care about that.


PDF Preview before downloading

Currently, as you generate an image, the image goes on getting added into PDF that you can download. so when you click "download as pdf" it directly downloads the PDF.
It would be cool if we get a screen with all the generated images displayed, from where you can delete the image that you don't need and then download it as PDF.
Sorry for the bad drawing :c

Also, how can I get rid of the scanned by Anonymous Scanner text which keeps getting added to each pdf file? Is there a toggle.

Hi @nairaalam, once we get the PDF preview feature we can add a way to change that text, until then I've removed that text (9da4f8d76ef45bdbc9082ca3026daffa3f0aac88). Makes sense to not have anything there. Thanks!


docs(community): Updated page to list Amazon/AWS as a contributor.

thanks for the PR

Great to have you guys onboard, welcome to the project!


Remove table borders in CLI

Before:

After:

Do you have UX/UI ideas for handling terminal resizing?

This case has to do because the aliases are too long and don't breaking on new lines, have to check if it renders properly if I split them by newlines instead

breaking new lines breaks the flow - not good

think I might try more libraries out/see what other CLIs are using for this

Lgtm!

looks better?

That's better! Go and merge!


Add PointsMarkerMaterial

Intro
This adds a new points material to draw markers with different shapes, that optionally have an edge. I followed what MPL and Plotly do: the line that represents the edge is centered on what is normally the marker edge. I.e. not on the inside of the marker, or on outside of it, but halfway. For blending, if edge_color is semi-transparent, it will show the marker beneath. In other words, it's as if drawing circles over the markers.
Refs

Plotly marker types: https://plotly.com/python/marker-style/#custom-marker-symbols
MPL marker types: https://matplotlib.org/stable/api/markers_api.html
The marker paper by Nicolas: https://jcgt.org/published/0003/04/01/
Codepen to play with markers in plotly: https://codepen.io/plotly/pen/LVMRMO

In de codepen, replace the trace1 with the below, and hack around:
var trace1 = {
  x: [1, 2, 3, 4],
  y: [10, 15, 13, 17],
  mode: 'markers',
  marker: { color: 'red', size: 40, symbol: 'square', line: {width: 2, color: 'black'}}
};

Tasks

[x] Implement material.edge_width and material.edge_color.
[x] Implement more marker shapes.
[x] Check blending (in flycontroller example, the black edges become colored). -> track in #724
[x] Add (validation) examples.
[x] Make a proper enum for the available shapes?

If you think it is a appropriate: I would like to add a request:

A transparent fill with a a non transparent outline.
Fills that set alpha != to 0.0 or 1.0
Edge colors with alpha != 0.0 or 1.0.

@hmaarrfk the fill and edge behave as they do in MPL and plotly and their alphas can be changed individually. So all of that should be possible :)

Is the center of the triangle markers meant to be on the center of the diamond? Or on the tip of triangle where both sides of equal length mean? Or at the intere'sections of the medians?
Mostly asking if the location of the triangle marker origins is intentional

Is the center of the triangle markers meant to be on the center of the diamond?

Good question. These triangles are created by the intersection of planes. It's easy to put them at the center with an offset though!

So for what it's worth. It looks like matpkotlib and plotly have different markers that seem to cover variations of the options I listed out.
On my phone on a flight now (which is why I have time to browse) so it's hard to really load pages.  But it seems like a good idea to just make sure that things "align" with plotly or matplotlib.
For example. They had a markers to do the original behavior

So this is somewhat to say that even the original markers were useful to some in that they made it to matplotlib!

I tried to align with MPL and Plotly where I could. But the way these markers are drawn (i.e. calculating an SDF from the point coordinates) has its limitations on what shapes we can support. I added all shapes from Nicolas' paper except chevron, tag, infinity, block arrow, ellipse.
So the list can be extended in the future. For shapes that we cannot draw with this technique, we can use a future PointsSdfMaterial.

Finally, all green 🚀


missed deps

github.com/satori/go.uuid
github.com/whyrusleeping/go-logging
github.com/jbenet/go-datastore
p2p/host/basic/basic_host_test.go:12:2: cannot find package "command/vendor/QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context" in any of:
/usr/local/go/src/command/vendor/QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context (from $GOROOT)
p2p/peer/peer_test.go:14:2: cannot find package "command-line-/vendor/QmNsoHoCVhgXcv1Yg45jtkMgimxorTAN36fV9AQMFXHHAQ/go-base58" in any of:
/usr/local/go/src/command-line-/vendor/QmNsoHoCVhgXcv1Yg45jtkMgimxorTAN36fV9AQMFXHHAQ/go-base58 (from $GOROOT)
p2p/peer/addr_manager_test.go:7:2: cannot find package "command-line-/vendor/QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr" in any of:
/usr/local/go/src/command-line-/vendor/QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr (from $GOROOT)
p2p/metrics/stream/metered_test.go:8:2: cannot find package "com/vendor/QmciEePSP8wpGYZp8fsPFi49Ya7xQMUFwFj2z5fDpfZnhC/randbo" in any of:
/usr/local/go/src/com/vendor/QmciEePSP8wpGYZp8fsPFi49Ya7xQMUFwFj2z5fDpfZnhC/randbo (from $GOROOT)
p2p/net/mock/mock_test.go:17:2: cannot find package "command-l/vendor/QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context" in any of:
/usr/local/go/src/command-l/vendor/QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context (from $GOROOT)

@whyrusleeping

github.com/jbenet/go-msgio
github.com/jbenet/go-reuseport

github.com/whyrusleeping/go-metrics

github.com/coreos/go-semver/semver
github.com/fd/go-nat

github.com/jbenet/go-detect-race

this is all fixed now! :D


Possible to change the limit of the news that it provides?

~35 is a really small amount. Possible to do 60-70?
Kind regards,
Snail

Sorry for the late reply @snaildos for that you can fork this repo and https://github.com/win11react/NewsAPI/blob/fd0d34cb1423d6c0ba7d1ba5af5e1b950cfc580c/.github/workflows/main.yml#L14 change this to endpoint: https://newsapi.org/v2/top-headlines?language=en&pageSize=70&apiKey=${{ secrets.NEWSAPI_KEY }}
note the pageSize parameter is changed to 70 from 35 earlier

Sorry for the late reply @snaildos, now answering to your query you can fork this repo and
https://github.com/win11react/NewsAPI/blob/fd0d34cb1423d6c0ba7d1ba5af5e1b950cfc580c/.github/workflows/main.yml#L14
change this to endpoint: https://newsapi.org/v2/top-headlines?language=en&pageSize=70&apiKey=${{ secrets.NEWSAPI_KEY }}
note the pageSize parameter is changed to 70 from 35 earlier
i am looking for ways in which the users will be able to change these parameters but that might take time ~or might not even happen ever~.

Appreciating the reply, thank you.


flutter_compass-Swift.h not found

hello,
Code breaks in the FlutterCompassPlugin.m class as it is unabble to find the
#import <flutter_compass/flutter_compass-Swift.h> file.
Is this an issue that has been resolved?

Duplicate of #25


Request to add list of Securonix Products affected or unknown

Please provide the following information.

Vendor Name; Securonix
Product Name

Next Gen SIEM
UEBA
SOAR
XDR

Version(s) affected: Unknown
Status: Unknown,
References
 Securonix Security Advisory (SSA) to Cloud SAAS Customers
 Securonix Security Advisory (SSA) to On-Premis (SNYPR) Customers
Last Updated: 12/10/2021

@alnash28 thank you for the submission.


Imported Nodes for SpecGlossVsMetalRough sample model are not all using Principled BSDF + Export is broken

Describe the bug
Imported Nodes for SpecGlossVsMetalRough sample model are not all using Principled BSDF and the export/reimport of the model via glb/gltf  is broken as the spec/gloss water bottle imports as a black Principled BSDF
To Reproduce
Steps to reproduce the behavior:

Import the glb from here: https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/SpecGlossVsMetalRough
See the nodes on the materials
Export them and reimport them to see the specular gloss

Expected behavior
Imported SpecularGloss model should use Principled BSDF node like other GLTF models, exported/reimported model shouldn't be a plain black material
Screenshots

The exported from Blender and reimported model which is black:

.blend file/ .gltf
https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/SpecGlossVsMetalRough
Version
OS: Windows 11
Blender Version 3.4.1
Additional context
Could be useful to have a Blender file including all sample models or an automated test to verify the import and exports of the sample models are 1:1

Hello,
KHR_materials_pbrSpecularGlossiness is not using Principled BSDF node at import. This is an intentional behaviour, as the SpecGloss model is not compatible with Principled BSDF. This is not possible to represent SpecGloss data with this node, that is based on a MetallicRoughness model.
KHR_materials_pbrSpecularGlossiness export is not implemented. This glTF extension is not archived and it is not recommanded to create new glTF files using this extension. glTF specification now recommands to use PBR MetallicRougness model.
See https://github.com/KhronosGroup/glTF/blob/main/extensions/README.md#archived-extensions-for-gltf-20
Anyway, when re-importing, we have to solve a division by zero issue, so keeping this ticket alive to take this into account

Would it make sense to perform a crude conversion of SpecGloss to MetalRough and import that instead? The tradeoff would be it wouldn't look as accurate inside Blender, but it would export the same way it imported, and we could get rid of all the poorly exercised code in gltf2_blender_KHR_materials_pbrSpecularGlossiness.py.
For example
# Preserves only the diffuse and a constant glossiness
def specgloss_to_metalrough(specgloss):
    metalrough = {}

    metalrough["baseColorFactor"] = specgloss.get("diffuseFactor")
    metalrough["baseColorTexture"] = specgloss.get("diffuseTexture")

    if "specularGlossinessTexture" not in specgloss:
        glossiness = specgloss.get("glossinessFactor")
        metalrough["roughnessFactor"] = 1 - glossiness

    metalrough["extras"] = specgloss.get("extras")
    metalrough["extensions"] = specgloss.get("extensions")

    return metalrough

Cf https://developer.blender.org/T82974, #1269

Let's discuss the option to convert into this new ticket #1857
Let's keep this one for the import issue (division by zero)


Add Whitelist

The initial whitelist was compiled by @riyazdf
This is required to check that a PR is from an approved author before
running it through the CI tests. This allows us to run PR's against a
wide range of cloud providers without worrying about our secrets being
compromised.
Required by #10
Signed-off-by: Dave Tucker<EMAIL_ADDRESS>

Thanks for the reviews. Pushed and update with @rn's comments addressed.