Problem with image classification examples

Hi,
I am currently using the examples given by default.
I tried the train_imagenet.py file to train on a small dataset.
The problem is that, when I use the network Inception-bn and Inception-bn-full, the network converges very fast, but when I change the network to VGG, Alexnet and Googlenet, the network does not converge at all even after 10 epoch, may I know what would be the reason?
Another problem is  the inception-v3 network, it will report error if I use this network.
This is inception-bn network, converges very fast:
2016-07-01 13:51:21,565 Node[0] start with arguments Namespace(batch_size=32, clip_gradient=5.0, data_dir='../imgs/', data_shape=224, gpus='2', kv_store='local', load_epoch=None, log_dir='./logs/', log_file='inception-bn.log', lr=0.01, lr_factor=0.9, lr_factor_epoch=1.0, model_prefix=None, network='inception-bn', num_classes=10, num_epochs=50, num_examples=20000, save_model_prefix='save/inception-bn', train_dataset='train.rec', val_dataset='val.rec')
2016-07-01 13:51:23,120 Node[0] Start training with [gpu(2)]
2016-07-01 13:51:39,659 Node[0] Epoch[0] Batch [50]	Speed: 111.66 samples/sec	Train-accuracy=0.107500
2016-07-01 13:51:54,043 Node[0] Epoch[0] Batch [100]	Speed: 111.24 samples/sec	Train-accuracy=0.108125
2016-07-01 13:52:08,380 Node[0] Epoch[0] Batch [150]	Speed: 111.61 samples/sec	Train-accuracy=0.132500
2016-07-01 13:52:22,748 Node[0] Epoch[0] Batch [200]	Speed: 111.36 samples/sec	Train-accuracy=0.131250
2016-07-01 13:52:37,100 Node[0] Epoch[0] Batch [250]	Speed: 111.49 samples/sec	Train-accuracy=0.158125
2016-07-01 13:52:51,446 Node[0] Epoch[0] Batch [300]	Speed: 111.53 samples/sec	Train-accuracy=0.156875
2016-07-01 13:53:05,877 Node[0] Epoch[0] Batch [350]	Speed: 110.87 samples/sec	Train-accuracy=0.180000
2016-07-01 13:53:20,244 Node[0] Epoch[0] Batch [400]	Speed: 111.37 samples/sec	Train-accuracy=0.197500
2016-07-01 13:53:34,587 Node[0] Epoch[0] Batch [450]	Speed: 111.56 samples/sec	Train-accuracy=0.217500
2016-07-01 13:53:48,995 Node[0] Epoch[0] Batch [500]	Speed: 111.05 samples/sec	Train-accuracy=0.205000
2016-07-01 13:54:03,377 Node[0] Epoch[0] Batch [550]	Speed: 111.26 samples/sec	Train-accuracy=0.218125
2016-07-01 13:54:16,609 Node[0] Epoch[0] Resetting Data Iterator
2016-07-01 13:54:16,610 Node[0] Epoch[0] Time cost=172.072
2016-07-01 13:54:16,970 Node[0] Saved checkpoint to "save/inception-bn-0001.params"
2016-07-01 13:54:25,289 Node[0] Epoch[0] Validation-accuracy=0.243219
2016-07-01 13:54:33,448 Node[0] Update[626]: Change learning rate to 9.00000e-03

This is the vgg network, does not converge:
2016-07-01 14:32:15,550 Node[0] start with arguments Namespace(batch_size=32, clip_gradient=5.0, data_dir='../imgs/', data_shape=224, gpus='1', kv_store='local', load_epoch=None, log_dir='./logs/', log_file='vgg.log', lr=0.01, lr_factor=0.9, lr_factor_epoch=1.0, model_prefix=None, network='vgg', num_classes=10, num_epochs=50, num_examples=20000, save_model_prefix='save/vgg', train_dataset='train.rec', val_dataset='val.rec')
2016-07-01 14:32:17,232 Node[0] Start training with [gpu(1)]
2016-07-01 14:32:40,067 Node[0] Epoch[0] Batch [50]	Speed: 75.09 samples/sec	Train-accuracy=0.109375
2016-07-01 14:33:01,560 Node[0] Epoch[0] Batch [100]	Speed: 74.45 samples/sec	Train-accuracy=0.088125
2016-07-01 14:33:23,166 Node[0] Epoch[0] Batch [150]	Speed: 74.06 samples/sec	Train-accuracy=0.097500
2016-07-01 14:33:44,657 Node[0] Epoch[0] Batch [200]	Speed: 74.45 samples/sec	Train-accuracy=0.103125
2016-07-01 14:34:06,110 Node[0] Epoch[0] Batch [250]	Speed: 74.58 samples/sec	Train-accuracy=0.108750
2016-07-01 14:34:27,590 Node[0] Epoch[0] Batch [300]	Speed: 74.49 samples/sec	Train-accuracy=0.116875
2016-07-01 14:34:49,049 Node[0] Epoch[0] Batch [350]	Speed: 74.56 samples/sec	Train-accuracy=0.102500
2016-07-01 14:35:10,531 Node[0] Epoch[0] Batch [400]	Speed: 74.48 samples/sec	Train-accuracy=0.106875
2016-07-01 14:35:32,053 Node[0] Epoch[0] Batch [450]	Speed: 74.34 samples/sec	Train-accuracy=0.105000
2016-07-01 14:35:53,513 Node[0] Epoch[0] Batch [500]	Speed: 74.56 samples/sec	Train-accuracy=0.113750
2016-07-01 14:36:14,966 Node[0] Epoch[0] Batch [550]	Speed: 74.59 samples/sec	Train-accuracy=0.103750
2016-07-01 14:36:34,737 Node[0] Epoch[0] Resetting Data Iterator
2016-07-01 14:36:34,738 Node[0] Epoch[0] Time cost=256.817
2016-07-01 14:36:35,674 Node[0] Saved checkpoint to "save/vgg-0001.params"
2016-07-01 14:36:49,611 Node[0] Epoch[0] Validation-accuracy=0.100236
2016-07-01 14:37:01,814 Node[0] Update[626]: Change learning rate to 9.00000e-03

This is the bash script to run all network:
net="googlenet"
gpus="0"
echo "network:$net"
echo "gpus:$gpus"

if [ -e "./logs/$net.log" ]; then
    echo "Log file exists"
    rm ./logs/$net.log
else
    echo "Log file does not exist"
fi

python train_imagenet.py \
  --data-dir='../imgs/' \
  --log-dir='./logs/' \
  --num-classes=10 \
  --num-examples=20000 \
  --lr=0.01 \
  --lr-factor=0.9 \
  --lr-factor-epoch=1 \
  --num-epochs=50 \
  --batch-size=32 \
  --network=$net \
  --save-model-prefix="save/$net" \
  --log-file="$net.log" \
  --gpus=$gpus

This is the error information when running inception-v3:
[14:58:59] src/io/iter_image_recordio.cc:211: ImageRecordIOParser: ../imgs/train.rec, use 4 threads for decoding..
[14:58:59] src/io/./iter_normalize.h:103: Load mean image from ../imgs/mean.bin
[14:59:00] src/io/iter_image_recordio.cc:211: ImageRecordIOParser: ../imgs/val.rec, use 4 threads for decoding..
[14:59:00] src/io/./iter_normalize.h:103: Load mean image from ../imgs/mean.bin
[14:59:01] /home/ubuntu/mxnet-0.7.0/dmlc-core/include/dmlc/logging.h:235: [14:59:01] src/operator/./concat-inl.h:152: Check failed: (dshape[j]) == (tmp[j]) Incorrect shape[2]: (32,288,13,13). (first input shape: (32,768,12,12))
Traceback (most recent call last):
  File "train_imagenet.py", line 85, in <module>
    train_model.fit(args, net, get_iterator)
  File "/home/ubuntu/Kaggle/image-classification/train_model.py", line 100, in fit
    epoch_end_callback = checkpoint)
  File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/mxnet-0.7.0-py2.7.egg/mxnet/model.py", line 745, in fit
    self._init_params(dict(data.provide_data+data.provide_label))
  File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/mxnet-0.7.0-py2.7.egg/mxnet/model.py", line 485, in _init_params
    arg_shapes, _, aux_shapes = self.symbol.infer_shape(**input_shapes)
  File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/mxnet-0.7.0-py2.7.egg/mxnet/symbol.py", line 453, in infer_shape
    return self._infer_shape_impl(False, *args, **kwargs)
  File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/mxnet-0.7.0-py2.7.egg/mxnet/symbol.py", line 513, in _infer_shape_impl
    ctypes.byref(complete)))
  File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/mxnet-0.7.0-py2.7.egg/mxnet/base.py", line 77, in check_call
    raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: InferShape Error in ch_concat_mixed_3_chconcat: [14:59:01] src/operator/./concat-inl.h:152: Check failed: (dshape[j]) == (tmp[j]) Incorrect shape[2]: (32,288,13,13). (first input shape: (32,768,12,12))

You need to tune your learning rate. Also training these big networks on small dataset may not make sense
The last issue should be fixed by this https://github.com/dmlc/mxnet/pull/2585

@piiswrong  Thank you, but why inception can work but Alexnet and VGG cannot with all same parameters?

Thanks, the problem is input data size for inception-v3 should be 299.
It seems that larger network is more capable to generalize for input data, but also easier to overfit. GoogleNet at last converges. Network size Alexnet <VGG<Google < Inception


docs(*): update headers to be more semantic

Try this one more time... this time I'm opening a PR so I can preview the docs site since it works locally, but doesn't appear to work when on github.

The PR preview seems to have the same issue as when it was merged...
Looking at the deployment logs I see this over and over again:

2:37:04 PM:     ERROR in TypeError: Cannot read property 'toLowerCase' of undefined
2:37:04 PM:         at e.renderDOM (main:85:29079)
2:37:04 PM:         at e.render (main:85:28919)
2:37:04 PM:         at e.read (main:85:28594)
2:37:04 PM:         at Object.renderToString (main:85:31565)
2:37:04 PM:         at main:1:1530
2:37:04 PM:         at main:90:1762
2:37:04 PM:         at main:13:18246
2:37:04 PM:         at r (main:12:7025)
2:37:04 PM:         at main:12:7140
2:37:04 PM:         at r (main:89:31054)
2:37:04 PM:     ERROR in TypeError: Cannot read property 'toLowerCase' of undefined
2:37:04 PM:         at e.renderDOM (main:85:29079)
2:37:05 PM:         at e.render (main:85:28919)
2:37:05 PM:         at e.read (main:85:28594)
2:37:05 PM:         at Object.renderToString (main:85:31565)
2:37:05 PM:         at main:1:1530
2:37:05 PM:         at main:90:1762
2:37:05 PM:         at main:13:18246
2:37:05 PM:         at r (main:12:7025)
2:37:05 PM:         at main:12:7140
2:37:05 PM:         at r (main:89:31054)

Not sure what is causing that. Looking for toLowerCase in the codebase doesn't reveal much as that code doesn't change... and again, I don't see that locally.

That stuff hasn't changed and other builds are currently working. 🤷♂

It was use of fragments... I'm guessing the SSR deps are so old they don't support that. I just refactored them out instead of updating the deps.

Nice catch! I didn't pay attention to this detail.


https://github.com/[username].png is not allowed as profile image

Describe the bug
Github profile image regex doesn't allow [username].png
To Reproduce
Steps to reproduce the behavior:

Go to 'edit profile'
Set profile image to https://github.com/[your username].png
Click on 'Save'
See error 'Invalid image'

Expected behavior
Save profile image URL.
Screenshots

What device are you on?
not device spefific (I use Chrome, the only valid browser :smile:  )
Additional context
Add any other context about the problem here.

this is intended as we don't have a image reporting system as of right now, when we get that we probably will also get custom images (not only custom github images)

No, we could try to make a regex which allows only https://github.com/[username].png and nothing else.
Sorry for the late report on github, but I totally forgot about it. see bens message on discord

No, we could try to make a regex which allows only https://github.com/[username].png and nothing else.
Sorry for the late report on github, but I totally forgot about it. see bens message on discord

from the message you've linked me to it seems like ben wants more sources not only https://github.com/[username].png and i feel that shouldn't be so hard.
@nadirabbas you added a few regexs before right? why don't you go ahead and add this?

Are Github images always png? In that case, this regex should do the trick:
^(^https?:\/\/github\.com\/)([a-zA-Z0-9_-]*)\.(png)$
If the images could also be jpeg, this should work:
^(^https?:\/\/github\.com\/)([a-zA-Z0-9_-]*)\.(png|jpg|jpeg)$

Since this project is no longer under active development and I'm cleaning up my open issue list, I'll close that for now.

Since this project is no longer under active development and I'm cleaning up my open issue list, I'll close that for now.

"for now"?

Since this project is no longer under active development and I'm cleaning up my open issue list, I'll close that for now.

"for now"?

I don't know, maybe this project will be resumed.


Fix quickstart link on the site

What type of PR is this:

What does this PR do / why we need it:
/kind documentation
Fixes the incorrect link on the website that said hands on guide instead
of quickstart.
Which issue(s) this PR fixes:

N/A
PR acceptance criteria:

[ ] Unit test
N/A

[ ] Integration test
N/A

[ ] Documentation
N/A

How to test changes / Special notes to the reviewer:
N/A
Signed-off-by: Charlie Drage<EMAIL_ADDRESS>

/lgtm
/approve


test GetTweetsSearchAllRequestV2

Codecov Report

Merging #88 (44fb530) into main (dd797ff) will increase coverage by 0.72%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #88      +/-   ##
==========================================
+ Coverage   53.14%   53.87%   +0.72%
==========================================
  Files         239      239
  Lines        5895     5895
==========================================
+ Hits         3133     3176      +43
+ Misses       2762     2719      -43

Impacted Files
Coverage Δ

.../APIv2/Search/TwitterSearchTweetsSortOrderV2.swift
100.00% <0.00%> (+100.00%)
:arrow_up:

.../Search/Requests/GetTweetsSearchAllRequestV2.swift
100.00% <0.00%> (+100.00%)
:arrow_up:

Continue to review full report at Codecov.

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


Assorted Documentation Fixes for v0.6

This PR covers the Book/Documentation-related issues that are targeted to land in v0.6:

[ ] #1588 - rewrite some sections
[x] #1458 - easy, just add link to existing file to SUMMARY.md
[ ] #1504 - we have some notes on this, need to get this in shape and in here

Fixes 1588
Fixes 1458
Fixes 1504

I think this now contains all validation steps that the RFC asks of the application, but there are quite a few other things it wants the application to do, that are more about sane policies than validation. For example, defining a bound for how many old epochs should be kept around, or evicting group members that have been inactive for too long.
I suppose we should document them, but should we do it in this PR? @franziskuskiefer

I suppose we should document them, but should we do it in this PR? @franziskuskiefer

Feel free to put then into a follow up issue.


ES2015 modules and pkg.module

Tools like Rollup and Webpack 2 support a new entry in the package.json file named module:
https://github.com/rollup/rollup/wiki/pkg.module
The value of module should point to a file that uses ES2015 modules, which in the case of bem-cn is src/bem-cn.js.
With this change in place, the minified (unzipped) filesize, when using Rollup, went from 3.29 Kb to 1.96 Kb, thus reducing the size from 40%.

Thanks for your contribution!


Make map rotateable

i got an email with that feature request from a user. i think we should enable that feature.
please review

Any specific reason why this points to master? Do you want to do this as a
hot fix?
Besides that the change works fine on top of develop, although I think we
should also add a compass with reorientation to North onclick.
On Tue, May 22, 2018, 12:01 stephan lindauer<EMAIL_ADDRESS>wrote:

@stephanlindauer https://github.com/stephanlindauer requested your
review on: criticalmaps/criticalmaps-android#219
https://github.com/criticalmaps/criticalmaps-android/pull/219 Make map
rotateable.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/criticalmaps/criticalmaps-android/pull/219#event-1638899660,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AI1mm-XJrY12aA19ADqdwEdc491gTRDvks5t0-H9gaJpZM4UFt_j
.

@cbalster sorry i got to used to where i point my PRs at work. :wink:  fixed it.
the reorientation button is a good idea. i started implementing it and now i am not sure where to get a nice icon from that looks similar to the ones we already have. any recommendations?

maybe this
https://material.io/tools/icons/?icon=vertical_align_top&style=baseline
?

or this rotated 45 degrees: https://material.io/tools/icons/?icon=all_out&style=baseline

Or maybe something like https://material.io/tools/icons/?icon=navigation&style=baseline that rotates with the map and re-aligns to north onClick - similar to the google maps app? Maybe there is some implementation like this in the osmdroid samples?

@cbalster ok i got this working. it was a bit of a struggle after after my android skills are quite rusty. would be nice if you could have another look.

Nice! I like it. It would be nice to have it rotate in sync with the map while dragging, but I guess osmdroid makes this hard? On thing I noticed is when rotating past the 0°/360° border (e.g. 350 to 10), the icon behaves a little odd like does a full spin + the rotation. Can you look into that?
Besides that can you remove the device id removal stuff since we already have this in another commit in develop and maybe rebase your commit onto develop so we can avoid the huge merge commit?

but I guess osmdroid makes this hard?

nope actually i removed the animation nonsense and now its more in-sync :wink:
also i made the map rotate with the button animation when resetting the orientation. looks a bit smoother now.

can you remove the device id removal stuff

yea sorry i rebased to master again :grimacing:

the icon behaves a little odd like does a full spin

probably just a missing modulo somewhere. will fix tomorrow.

the icon behaves a little odd like does a full spin

fixed as well. please take another look.

Seems to need a setRotationNorth.setRotation(mapView.getMapOrientation())  in onActivityCreated() to sync orientations on start, but otherwise good to go as far as I am concerned. :+1: Also orientation state should be saved and restored but that could also be done in another pr.


What version of surrealist does SurrealDB use?

Sorry I wasn't sure how else to ask, but my Surrealist is running Surreal 1.0.2.
Is it compatible with other versions? I know I can update the executable path, but can you explain a bit more about this?

I updated my executable path to 1.3.1 version and seems to be working fine, but out of curiosity, why is surrealist not using the latest database version?

Surrealist embeds the SurrealDB rust crate for various tasks including connecting to the database and extracting information. This is entirely separate from the executable path in settings, as this is used by the database serving functionality which starts a SurrealDB server locally to connect to.
The version used internally is fixed and currently needs to be bumped each time, however the executable path could still point to different versions. I still recommended where possible to use the version of Surrealist for the version of SurrealDB it is intended for as described at the bottom of the release notes on GitHub for maximum compatibility


Do kernels mutate data?

Do gumath kernels make any guarantees about whether they mutate their input data or not?

Thanks!
On Sun, May 13, 2018, 9:20 AM Stefan Krah<EMAIL_ADDRESS>wrote:

Closed #9 https://github.com/plures/gumath/issues/9.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/plures/gumath/issues/9#event-1623552182, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABIZTG8UxQf5zgNET_rm1WZHwHFNMzcBks5tyDMDgaJpZM4TbusU
.


Rename dbs.txt to mydbs.txt

The student accounts are connected to intranet mydbs.ie instead of Dbs.ie only.

@MrPavol Pull request merged. Thank you!


[BEAM-5816] Finish Flink bundles exactly once

When an error an occurred in an operator chain, dipose() could be called
multiple times leading to duplicate calls to invokeFinishBundle(), some of
which actions expect to release resources only once. Also, the bundle expiration
timer could call finish bundle simultaneously with dipose().
This makes the finish bundle logic execute exactly once by making it
atomic. Note: This did not affect correctness of results but the change ensures
there are no duplicate cleanup calls.
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---
---
---
---
---

Java

Python

---

---
---
---

CC @mwylde @tweise

Why do we need to finish bundles in dispose? Shouldn't bundles be finished as part of regular processing only. What happens when the operator is removed after an exception? Are we going to "finish" partially processed bundles?

There is nothing about the general bundle logic that changed in this PR. The commit which introduced the finish bundle call before the teardown does not explain why it was necessary. Nevertheless, it seems reasonable to try to finish a pending bundle before tearing down the DoFn. The bundle is finished in dispose() because there it is guaranteed to be called because in case of errors close() will not be called.

What happens when the operator is removed after an exception? Are we going to "finish" partially processed bundles?

It is ok to finish bundles even when there are exceptions. Bundles can be of arbitrary element size.

Run Flink ValidatesRunner

Is there anything blocking this PR?

So I actually don't see any reason to finish bundles after execution has already stopped (for example as result of pipeline cancellation). I can see that bundles need to be finished after final watermark and on checkpoint boundary, but not during teardown. Can we remove this from dispose entirely?

Fair point. I've moved finishBundle to the close() method.

Run Flink ValidatesRunner

Run Flink ValidatesRunner

Run Java Flink PortableValidatesRunner Streaming

@tweise Should be good to go

I think there are two things we want to accomplish:

After an exception or cancel, we don't want any more "normal" processing (looks like this is now addressed)
Best effort resource cleanup for user code (not sure about that one, would this happen after an exception)?

After an exception or cancel, we don't want any more "normal" processing (looks like this is now addressed)

Yes, this is addressed. Bundle will only be finalized in case of normal operation. Though my original intention here was to fix the race condition between the timer thread for finishing the bundle and a regular bundle finish

Best effort resource cleanup for user code (not sure about that one, would this happen after an exception)?

Cleanup is performed via DoFn#teardown which will be called in any case in dispose().


Prompt Driver Fixes

Moved openai api param setting to chat and completion api calls
Added OpenAiPromptDriver.max_tokens
Refactored OpenAiPromptDriver params into _base_params
Removed few shots from the prompt to save on tokens

This PR partially addresses #122


Items start jumping on beds too high

Timings link
https://timings.aikar.co/?id=86f86eb8538f48d78e559eb9856b5d65
Expected behavior
Items just lay on the bed, only with vanilla rotation
Observed/Actual behavior
After 5-10 second items start to jump higher and higer. If u wait for a couple minutes, they will be jumping 30+ blocks heigh

Steps/models to reproduce
1.Drop any items on the bed
2.Wait 5-10 seconds
3, U can see how items start to jump higher and higher
Purpur version
This server is running Purpur version git-Purpur-1454 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT) (Git: 35bf26e on HEAD)
You are 2 version(s) behind
Download the new version at: https://purpurmc.org/downloads
Previous version: git-Purpur-1449 (MC: 1.18.1)
Agreements

[X] I am running the latest version of Purpur available from https://purpurmc.org/downloads.
[X] I have searched for and ensured there isn't already an open issue regarding this.
[X] My version of Minecraft is supported by Purpur.

Other
It works without any plugins

Unable to reproduce on latest release.


Investigate automatic republishing of @api3/logos package

Investigate how to automatically republish the @api3/logos package when the @api3/chains package it depends on is updated.
The solution will potentially be used by the @api3/dapi-management package to improve/simplify its package dependencies management.

Couldn't update the project and label fields so I recreated the issue in Investigate republishing automatically @api3/logos package


make GetPasswd take a terminal file descriptor

There are times when we need user input from the terminal, even though
our stdin is piped from something else. (For example, reading an
encrypted file over stdin, and asking the user for the password.) Make
GetPasswd* take an explicit file descriptor for the terminal, so that
the caller has the option of using /dev/tty.

Tested this on BSD and it turned out the build was broken. Needed a C.int cast.

LGTM if @zanderz is ok with it

A further BSD fix.

LGTM, pending Max's comment :thumbsup:


Bug: EngineDisconnet if I access the database too fast...

Describe the bug
I get this error if there are too many queries happening I guess. (svelte) I have a hooks accessing the info for the user.
EngineDisconnected: The engine reported the connection to SurrealDB has dropped
at file:///home/gray/programs/timeclock/node_modules/surrealdb.js/esm/surreal.js:116:50
at Array.map ()
at Surreal.clean (file:///home/gray/programs/timeclock/node_modules/surrealdb.js/esm/surreal.js:116:17)
at Surreal.close (file:///home/gray/programs/timeclock/node_modules/surrealdb.js/esm/surreal.js:108:14)
at Surreal.connect (file:///home/gray/programs/timeclock/node_modules/surrealdb.js/esm/surreal.js:73:20)
at Object.handle (/home/gray/programs/timeclock/src/hooks.server.js:57:11)
at Module.respond (/home/gray/programs/timeclock/node_modules/@sveltejs/kit/src/runtime/server/respond.js:319:40)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///home/gray/programs/timeclock/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:524:22
Steps to reproduce
In sveltekit, have hooks.server.js get the current user info, then do a db query immediately after.
Expected behaviour
Not to be disconnected from the engine...
SurrealDB version
1.5.3
SurrealDB.js version
beta.9
Contact Details
<EMAIL_ADDRESS>Is there an existing issue for this?

[X] I have searched the existing issues

Code of Conduct

[X] I agree to follow this project's Code of Conduct

await db.connect('ws://<IP_ADDRESS>:8000/rpc')
await db.authenticate(session)
event.locals.user = await db.info()
event.locals.db = db

return await resolve(event);

It will run once, but if I refresh to generate another pdf, I get the above error...
print_label: async ({request, locals, params}) => {
        const data = Object.fromEntries(await request.formData())
        console.log(params, data)

        try {
            if(data.print_type === 'reg'){
                const employee = await locals.db.query('select * from type::thing($table,$params)',{
                    table: 'employees',
                    params: params.id
                })

                return printRegularLabel(employee[0][0])
            }
        } catch (err) {
            console.log(err)
        }

    }

BTW, I'm using a query because I couldn't use select. But maybe because RecordID, I'm doing it wrong?

Here is the function printRegualLabel():
import PdfPrinter from 'pdfmake';

import { v4 as uuid } from 'uuid';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';

export async function printRegularLabel(employee) {

    const fonts = {
        Roboto: {
          normal: 'src/lib/fonts/roboto/Roboto-Regular.ttf',
          bold: 'src/lib/fonts/roboto/Roboto-Bold.ttf'
        }
      }

    const dd = new PdfPrinter(fonts)

	let pdf = {
		pageSize: 'A4',
		pageOrientation: 'portrait',
		pageMargins: [40, 60, 40, 20],
        content: [
            {text: employee.first+' '+employee.last, fontSize: 12, margin: [0,2] },
            {qr: employee.ulid, fit: '100', eccLevel: 'H'}
        ]
	};

	let filename = uuid();
	const dir = path.join(os.tmpdir(), `${filename}.pdf`);

	try {
		let pdfDoc = dd.createPdfKitDocument(pdf);
		pdfDoc.pipe(fs.createWriteStream(dir));
		pdfDoc.end();

		return filename;
	} catch (err) {
		console.log(err);
	}
}

I also tried adding await locals.db.close() at the end of the actions print_label:
Still crashes after about 3 refreshes..

Here is the new output after switching to http protocol:
Getting pdf... 716625ec-c30e-44bc-9d96-acd3e3a49abc
{ id: 'yf5524ihygkf9s0t6ge9' } { print_type: 'reg' }
print employee: {
active: true,
first: 'Jesse',
id: RecordId { tb: 'employees', id: 'yf5524ihygkf9s0t6ge9' },
last: 'Cruncher',
simple_id: 6795,
ulid: '01J0HMNPDYFW3WZ7PADJ3M0WXJ'
}
Search:  null
Getting pdf... 2da0be34-1bca-4980-942b-b0387cad2fbd
{ id: 'yf5524ihygkf9s0t6ge9' } { print_type: 'reg' }
print employee: {
active: true,
first: 'Jesse',
id: RecordId { tb: 'employees', id: 'yf5524ihygkf9s0t6ge9' },
last: 'Cruncher',
simple_id: 6795,
ulid: '01J0HMNPDYFW3WZ7PADJ3M0WXJ'
}
ConnectionUnavailable: There is no connection available at this moment.
at HttpEngine.rpc (file:///home/gray/programs/timeclock/node_modules/surrealdb.js/esm/library/engine.js:223:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Surreal.info (file:///home/gray/programs/timeclock/node_modules/surrealdb.js/esm/surreal.js:168:21)
at async Object.handle (/home/gray/programs/timeclock/src/hooks.server.js:66:22)
at async Module.respond (/home/gray/programs/timeclock/node_modules/@sveltejs/kit/src/runtime/server/respond.js:319:20)
at async file:///home/gray/programs/timeclock/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:524:22
Getting pdf... 8f709fb3-3b0d-4e40-8429-6df0fbe97ddc

Have the same issue. After a few time the connection has dropped.

Thanks, it's on my list. I'll be looking into this soon!


Execute poll queries within one Active Record connection

Before contributing, please read our contributing guidelines and code of conduct.
Overview
We were able to isolate the deadlocking behavior to the DelayedJobSampler. Within that code, the #count method used ActiveRecord to make a where/count query. We weren't able to isolate the exact situation when the #count method would lock due to conflicting connections, however, wrapping the #poll method, so that all calls to #count were performed within the same Active Record connection resolved the issue.
We were able to successfully work jobs connected to the agent using the increased sample rate code snippet provided in #711  from 4:30pm on September 28 until 2:30 am on September 29. We'd like to have some folks test this within their application to see if this change resolves the deadlock issue.
Related Github Issue
Closes: https://github.com/newrelic/newrelic-ruby-agent/issues/711
Testing
The agent includes a suite of unit and functional tests which should be used to
verify your changes don't break existing functionality. These tests will run with
Github Actions when a pull request is made. More details on running the tests locally can be found
here for our unit tests,
and here for our functional tests.
For most contributions it is strongly recommended to add additional tests which
exercise your changes.
Reviewer Checklist

[ ] Perform code review
[ ] Add performance label
[ ] Perform appropriate level of performance testing
[ ] Confirm all checks passed
[ ] Add version label prior to acceptance

This is safe to include in the release, however, we'd like to wait until we hear back from the Zendesk customer and/or the GitHub community member who raised related issues. Holding merge until at least next week for their feedback.


Disable trace logging for better performance

See https://github.com/bevyengine/bevy-website/pull/1503

goal of this template is "This repo show how to set up CI on a GitHub project for Bevy"
I would prefer to keep it limited to that


Added CLI version of real-time alerting solution

CLI version of the real-time alerting solution instructions
Some small changes to the console version (moved steps on getting Kafka service details to the section for sample data, as they're only needed there)

Most of those changes are now in place, but:

The link in the CLI instructions for creating the authentication token currently points to the production URL, as the topic is not yet in the target branch. This can be updated to a relative link once the content is rebased.
There are now cross-reference links to the concepts on windows and event time, but nothing yet for connectors or data formats. These can be added once the relevant concepts are available.


very_good cli updates issues: cant update past 0.9.0

@BeatriceMitchell perhaps you use flutter 3.0 .. Can you give more info about flutter version ..


AttackDetector error when putting items

When I run locally for a while, I get this error:
2023-08-18 13:11:24,633 - root - WARNING - alert 0x25981a903942f9532cb893749ba2e4a2451c5b88187842654a5bd224e922d9e1 - Exception in process_alert 0x25981a903942f9532cb893749ba2e4a2451c5b88187842654a5bd224e922d9e1: An error occurred (ValidationException) when calling the PutItem operation: Item size has exceeded the maximum allowed size Traceback (most recent call last):
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the PutItem operation: Item size has exceeded the maximum allowed size

v 3.50.1


Update link for system-components

from: https://github.com/jxnblk/system-components
to: https://github.com/jxnblk/styled-system/tree/master/system-components

Codecov Report

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

@@          Coverage Diff          @@
##           master   #262   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           5      5
  Lines         183    183
=====================================
  Hits          183    183

Continue to review full report at Codecov.

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

Thanks!


Yarn berry: pnp incompatibility

Describe the bug
We are getting the following error when trying to migrate to yarn pnp (which no longer supports implicit dependencies like flat node_modules does):
ERROR in ../../../.yarn/cache/<EMAIL_ADDRESS>1:20854-20870
Module not found: Error: Can’t resolve ‘react’ in ‘User/dev/project/.yarn/cache/@unleash-proxy-client-react-npm-1.0.4-06a181db73-957ee588a0.zip/node_modules/@unleash/proxy-client-react/dist’

Steps to reproduce the bug

start a yarn pnp project
add this package

Expected behavior
I think this issue is just because react & react-dom are listed asdevDependencies instead of a peerDependencies
Logs, error output, etc.
No response
Screenshots
No response
Additional context
No response
Unleash version
No response
Subscription type
No response
Hosting type
No response
SDK information (language and version)
No response

Hi. Thanks for reporting this, we'll look into this early next week.

Related issue: https://github.com/Unleash/unleash/pull/1584

@harris-jacob I couldn't reproduce the issue in blank Yarn Berry project with PnP enabled. Can you share more details? What is you order of operations? Seems like you use v1.0.4, did you try update to the latest version?

Yes you're right i've tried reproducing in a smaller repo but am unable to. We have a fairly large monorepo setup so the issue could be coming from elsewhere (I just assumed from the error message it was a missing peer dependency). We've actually given up attempting PnP now due to lots of similar errors. Will close this issue (out of curiosity, is there are reason you don't declare react as a peer dependency? )

The fact that package managers handle it in a different way is a factor. We can reasonably expect that you add this package to a React project, not React to a project with this package. If there is any braking change that will limit compatibility of this package with new version of React, we will probably use peerDependecy to signal an issue, otherwise it doesn't provide much value.

For others, this can be worked around in .yarnrc.yml packageExtensions:
.yarnrc.yml:
packageExtensions:
  "<EMAIL_ADDRESS>    dependencies:
      react: ^18.1.0

Of course, adjust for the versions you are targeting.


modified docker file to support update on alpine package for pip

Hi,
first of all, amazing project, i'm trying to implement here at work, but i'm still in testing phase,there is a small glitch on the Docker package now it build properly, let me know if it's ok and i hope to support the project more in the future :)

Hi @nigifabio, thanks for the submission! I'm not a Docker user so I have no way of verifying py-pip vs py2-pip. Do you have a reference to Docker documentation or changelog that suggests this command was renamed?

Sure,
if you try to build the image from scratch you will find out is not building anymore, is due to a change in the package manager of alpine here a reference https://github.com/rroemhild/docker-mailpile/issues/3
Ah really good work with doorman locking forward to push more commit since now :)


Request for OM sorting by distance

It is understandable why OM sorting removed - with visual listing object jumping maybe confusing.
But it was quite helpful to for action-kind activities.
Currenlty OM list removed from global area and there is no good way to access it.
If it is possible, please add command to resort OM. It maybe useful feature for OM listing window as well!

Cant do this with the current design


Close resource properly in TarUtils.writeTarGz

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8388/
Test PASSed.

alluxio-bot, merge this please.

alluxio-bot, cherry-pick this to branch-2.2 please


CNV-42368: A search icon appears in node selector labels

📝 Description
Removing search icon from node selector in VM -> Configuration -> Scheduling
🎥 Demo
Before:

After:

/cherry-pick release-4.16


most advisories have been removed

It looks like there was a sync that happened an hour ago that caused most of the advisories to be removed from the repository: https://github.com/github/advisory-database/commit/06071dd8e490ed354657f8ee158880433cf04997.
https://github.com/github/advisory-database/issues/827#tasklist-block-51c0354a-fb8d-4af3-ae52-03a63b24fc0b

Hi @breadchris. We've restored the database contents for the time being and are continuing to investigate the failed sync.


Typescript error in generated Stripe code

Summary
name: Typescript Error
about: Mismatch between the shape of objects
labels: bug
Bug Description
When selecting Stripe the generated code has the following Typescript errors:
src/app/account/page.tsx:16:11 - error TS2322: Type '{ id: undefined; name: undefined; description: undefined; stripePriceId: undefined; price: undefined; stripeSubscriptionId: undefined; stripeCurrentPeriodEnd: undefined; stripeCustomerId: undefined; isSubscribed: boolean; isCanceled: boolean; } | { ...; }' is not assignable to type 'PlanSettingsProps'.
  Type '{ id: undefined; name: undefined; description: undefined; stripePriceId: undefined; price: undefined; stripeSubscriptionId: undefined; stripeCurrentPeriodEnd: undefined; stripeCustomerId: undefined; isSubscribed: boolean; isCanceled: boolean; }' is not assignable to type 'PlanSettingsProps'.
    Types of property 'stripeSubscriptionId' are incompatible.
      Type 'undefined' is not assignable to type 'string | null'.

16           subscriptionPlan={subscriptionPlan}
             ~~~~~~~~~~~~~~~~

  src/app/account/PlanSettings.tsx:26:3
    26   subscriptionPlan: PlanSettingsProps;
         ~~~~~~~~~~~~~~~~
    The expected type comes from property 'subscriptionPlan' which is declared here on type 'IntrinsicAttributes & { subscriptionPlan: PlanSettingsProps; user: { name?: string | undefined; id: string; email?: string | undefined; }; }'

Steps To Reproduce
Steps to reproduce the behavior:

Create a new NextJS project npx create-next-app@latest  myProject
Run kirimase CLI and select Stripe
View the file in VSCode or run: tsc --project ./tsconfig.json

Expected behavior
No Typescript Errors
Proposed Solution
The error is due to a mismatch between the shape of the object returned by getUserSubscriptionPlan and the expected properties of the PlanSettingsProps interface.
Use null Instead of undefined:
Since the PlanSettingsProps interface expects properties to be string | null, not undefined,  return null instead of undefined from getUserSubscriptionPlan() for properties that don't have values:

stripeSubscriptionId: [-undefined,-]{+null,+}
stripeCurrentPeriodEnd: [-undefined,-]{+null,+}
stripeCustomerId: [-undefined,-]{+null,+}

Handle Types in the getUserSubscriptionPlan function:
When returning an object from getUserSubscriptionPlan, ensure that we are returning an object that fits the PlanSettingsProps type. This can be done using type assertion.
--- a/src/lib/stripe/subscription.ts
+++ b/src/lib/stripe/subscription.ts
@@ -6,0 +7 @@ import { getUserAuth } from "../auth/utils";
+import { PlanSettingsProps } from "@/app/account/PlanSettings";
@@ -8 +9 @@ import { getUserAuth } from "../auth/utils";
-export async function getUserSubscriptionPlan() {
+export async function getUserSubscriptionPlan(): Promise<PlanSettingsProps> {

Here's the full diff that fixes it:
diff --git a/src/lib/stripe/subscription.ts b/src/lib/stripe/subscription.ts
index 2bc6e53..4ef72a1 100644
--- a/src/lib/stripe/subscription.ts
+++ b/src/lib/stripe/subscription.ts
@@ -6,0 +7 @@ import { getUserAuth } from "../auth/utils";
+import { PlanSettingsProps } from "@/app/account/PlanSettings";
@@ -8 +9 @@ import { getUserAuth } from "../auth/utils";
-export async function getUserSubscriptionPlan() {
+export async function getUserSubscriptionPlan(): Promise<PlanSettingsProps> {
@@ -21,12 +22,12 @@ export async function getUserSubscriptionPlan() {
-    return {
-      id: undefined,
-      name: undefined,
-      description: undefined,
-      stripePriceId: undefined,
-      price: undefined,
-      stripeSubscriptionId: undefined,
-      stripeCurrentPeriodEnd: undefined,
-      stripeCustomerId: undefined,
-      isSubscribed: false,
-      isCanceled: false,
-    };
+  return {
+    id: undefined,
+    name: undefined,
+    description: undefined,
+    stripePriceId: undefined,
+    price: undefined,
+    stripeSubscriptionId: null,
+    stripeCurrentPeriodEnd: null,
+    stripeCustomerId: null,
+    isSubscribed: false,
+    isCanceled: false,
+  }

Also there is another minor mismatch for the apiVersion:
src/lib/stripe/index.ts:4:3 - error TS2322: Type '"2023-08-16"' is not assignable to type '"2023-10-16"'.

4   apiVersion: "2023-08-16",

fix:
--- a/src/lib/stripe/index.ts
+++ b/src/lib/stripe/index.ts

-  apiVersion: "2023-08-16",
+  apiVersion: "2023-10-16",

Hey @sangrepura - thanks for flagging! This has been resolved with 3508b58 and will be pushed as part of the next update (later today). Cheers!


Blymp.io Doesn't work

On one device it says waiting for your partner to choose a file and on the other it stays stuck on connecting.
I'm not sure what to do. No errors in the console or anything.

Fixed with #8


What is the impact of the redundancy of tokens

Greetings,
There are many tokens redundant in a dataset (pair of text lines and image of the lines). Sometimes a word can appear in +10k lines. Do I need only one appearance for each token? Will a token with +10k appearing, will have more priority in the recognition?

No. To both questions. You are training on line images. The transition probabilities are estimated on the image level. It is neither useful nor necessary to try to somehow modify the prior in your training data. Although you have to ensure that you have each character you later want to recognize in your training data (with sufficient frequency).


Smartcardlogon

This is how are pull requests handled by FreeRDP

Every new pull request needs to build and pass the unit tests at https://ci.freerdp.com
At least 1 (better two) people need to review and test a pull request and agree to accept

Preparations before creating a pull

Rebase your branch to current master, no merges allowed!
Try to clean up your commit history, group changes to commits
Check your formatting! A clang-format script can be found at .clang-format

The cmake target clangformat reformats the whole codebase

Optional (but higly recommended)

Run a clang scanbuild before and after your changes to avoid introducing new bugs
Run your compiler at pedantic level to check for new warnings

To ease accepting your contribution

Give the pull request a proper name so people looking at it have an basic idea what it is for
Add at least a brief description what it does (or should do :) and what it's good for
Give instructions on how to test your changes
Ideally add unit tests if adding new features

What you should be prepared for

fix issues found during the review phase
Joining our chat to talk to other developers or help them test your pull might accelerate acceptance

Matrix room : #FreeRDP:matrix.org (main)
XMPP channel<EMAIL_ADDRESS>(bridged)
IRC channel : #freerdp @ irc.oftc.net (bridged)

Joining our mailing list<EMAIL_ADDRESS>may be helpful too.

Please remove this text before submitting your pull!

@MONSTERBOLTE01 what should this pull request address?
Smartcard logon (including NLA auth) was already merged some weeks ago?

It's even my old branch that I've not removed yet. Closing that.


Update serde to 1.0, cookie to 0.5, and others to latest version

This just starts the process to get user_agent running with the latest dependencies. Unfortunately both reqwests 0.6+ and cookie 0.6+ need a bit more work to get them running, so we'll have to do that later.

Thanks for this; definitely a needed first step for banging this into shape.


Opinionated baggage advice

Capturing some conversations I've had on baggage leaking attributes between OTel users --

It's not intuitively clear that baggage values are sent over RPCs (even though this is documented; maybe we should make it more prominent?)
There's no opinionated advice to implementors on how to properly sanitize baggage at the edge (as a consumer)
There's no opinionated advice to implementors on how to sanitize baggage as a producer, either

These would be useful extensions to the baggage concept page

Thanks for capturing this, I had heard some of that in the past as well. I like the idea to have some opinionated advice, this is what people are looking for at the end.
Odd question, what about applying encryption on the baggage? if only "my" otel users know the key to decrypt, this becomes a much smaller problem (also you send a lot of garbage over the wire)

eh, i could maybe see encrypting it before it goes out but it's still extra work (also, if you try to encrypt between services then you have to deal with shared secrets and whatever)

eh, i could maybe see encrypting it before it goes out but it's still extra work (also, if you try to encrypt between services then you have to deal with shared secrets and whatever)

yeah, it's not a very practical solution, I was just wondering about it (a little bit off topic I guess)

I'm assuming those best practices are knowledge the Collector maintainers could provide, right? Could we ask them?

I'm assuming those best practices are knowledge the Collector maintainers could provide, right? Could we ask them?

baggage is probably one of the few topics the collector has no relationship with, since it is purely for propagating data among services. The SDK SIGs might have some ideas around it, but I would say this is especially a practitioner topic, so people who use and implement otel in their day to day job should be the SMEs here.


docs(suspensive.org): add docs for SuspenseQuery

Overview

Docs for SuspenseQuery
PR Checklist

[x] I did below actions if need

I read the Contributing Guide
I added documents and tests.

Merge first, improve small thing gradually


(BUGS) My profile/Edit profile - UI bugs

1)[Android/IOS/Windows]My profile: The profile image getting transparent during the click on this image
2)[Only for iPhone]Edit profile: The "Save" button looks cropped on the top
Checked on Dev env (V 0.19.5-0)
The device used:
LG V30+ // Android 8.0 // Google Chrome 81.0.4044.117
Desktop// Windows 10 x64 // Google Chrome 81.0.4044.129
iPhone 8 Plus // iOS 13.1.3

Verified as fixed. Default profile icon and Save button (on iOS) look as they should.
Checked on the:
iPhone 6S+ // iOS 12.4
Xiaomi Mi 8 Lite // Android 10
Google Chrome latest
Dev environment v0.20.1


The certificate chain was issued by an authority that is not trusted

Include your code
A similar issue was here https://github.com/dotnet/efcore/issues/27062
Updating the connection string won't help.
On my local workstation:

I am not able to use database migration commands.
Not able to run the app using EF Core.

connection string:
"Server=.;Database=MyDb;Trusted_Connection=True;Integrated Security=True;MultipleActiveResultSets=true;trustServerCertificate=true",

<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.3" />

Include stack traces
Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)
 ---> System.ComponentModel.Win32Exception (0x80090325): The certificate chain was issued by an authority that is not trusted.
   at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at Microsoft.Data.SqlClient.TdsParserStateObject.ThrowExceptionAndWarning(Boolean callerHasConnectionLock, Boolean asyncClose)
   at Microsoft.Data.SqlClient.TdsParserStateObject.SNIWritePacket(PacketHandle packet, UInt32& sniError, Boolean canAccumulate, Boolean callerHasConnectionLock)
   at Microsoft.Data.SqlClient.TdsParserStateObject.WriteSni(Boolean canAccumulate)
   at Microsoft.Data.SqlClient.TdsParserStateObject.WritePacket(Byte flushMode, Boolean canAccumulate)
   at Microsoft.Data.SqlClient.TdsParser.TdsLogin(SqlLogin rec, FeatureExtension requestedFeatures, SessionData recoverySessionData, FederatedAuthenticationFeatureExtensionData fedAuthFeatureExtensionData)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.Login(ServerInfo server, TimeoutTimer timeout, String newPassword, SecureString newSecurePassword)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool)
   at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen()
--- End of stack trace from previous location ---
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)
   at FleetRequisitionSystem.Core.Repositories.FleetEmployeeRepository.GetAllFleetEmployees() in C:\Projects\parking\FleetRequisitionSystem\FleetRequisitionSystem.Core\Repositories\FleetEmployeeRepository.cs:line 33
 in
... ...
... ...
... ...
ClientConnectionId:c80f643b-21b4-42a5-a6f7-6ba9ae6862fc
Error Number:-2146893019,State:0,Class:20

Include provider and version information
EF Core version: 6.0.3
Database provider:  Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 6.0
Operating system: Windows
IDE:  Visual Studio 2022

Transferred to SqlClient as this is unrelated to EF Core.

might related to https://github.com/dotnet/SqlClient/pull/1210

@changhuixu Microsoft.EntityFrameworkCore.SqlServer uses Microsoft.Data.SqlClient 2.1.0 . It should not be effected by #1210 unless you are using another package that uses M.D.S 4.0 as dependency as in case https://github.com/dotnet/efcore/issues/27062. You can share Repro or csproj to avoid any such scenarios.
I suggest try these steps along with setting TrustServerCertificate=true. see comment https://github.com/dotnet/SqlClient/issues/609#issuecomment-645406981
I will try to setup and see if error occurs on my end.

@Kaur-Parminder yes, you are right. I was referencing "Microsoft.Data.SqlClient" Version="4.1.0".
Now I have switched to "System.Data.SqlClient" Version="4.8.3". The error is gone.

Do you have suggestions on which way is the best?

It is almost always better to use Microsft.Data.SqlClient over the System version.

Thank you.


Craft cardano-client library

export block, header, tx types from ouroboros-consensus
export NodeToClient
specialise all the codecs for the current version of consensus
export common tx-submission client (which is common for wallet, explorer), and export null tx submission client for explorer
prefix modules with Cardano.Client (?)

It should export everything that is required by cardano-explorer and cardano-wallet (in cardano-node), and hide the dependency on ouroboros-network and ouroboros-consensus.

@coot Is somebody working on this?
@erikd is this necessary for 1.0.0 or 1.1.0?

@mrBliss not yet; I don't think this is necessary, but it's nice to have.

The time this was really needed was back in July when I started work on the explorer.
The explorer now uses the excessively complex network APIs and can continue using them (as long as people from the network team update the explorer when the network APIs break) until this new API is ready.

@erikd I am aware that it's still needed, we didn't had time to start working on it. There will be substantial changes in the future, though I am not sure we'll have time to finish cardano-client before they will land. The wallet team will also appreciate a simpler interface.

I am removing the consensus label from this ticket. Once the networking layer has a clear API, we can use that as a basis for an API for consensus (though consensus already provides a reasonably concise API through run).

This is very useful to simplify clients, but it is not release critical.

This is subsumed by the cardano-cli library in cardano-node repository.


Ehcache config load / delete error in 5.x

Running against CAS 5.x RC3, with Ehcache configuration.
Not changing any configuration values in the properties file.
I'm getting a stacktrace upon a cold / clean startup about not being able to delete a file out of a directory:
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: File does not exist: /tmp/cas/ehcache-replicated.xml
at com.google.common.base.Throwables.propagate(Throwables.java:160)
at org.apereo.cas.util.ResourceUtils.prepareClasspathResourceIfNeeded(ResourceUtils.java:138)
at org.apereo.cas.util.ResourceUtils.prepareClasspathResourceIfNeeded(ResourceUtils.java:79)
at org.apereo.cas.config.EhcacheTicketRegistryConfiguration.cacheManager(EhcacheTicketRegistryConfiguration.java:60)
at org.apereo.cas.config.EhcacheTicketRegistryConfiguration$$EnhancerBySpringCGLIB$$b55fdc4b.CGLIB$cacheManager$2()
at org.apereo.cas.config.EhcacheTicketRegistryConfiguration$$EnhancerBySpringCGLIB$$b55fdc4b$$FastClassBySpringCGLIB$$ed1ea947.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)
at org.apereo.cas.config.EhcacheTicketRegistryConfiguration$$EnhancerBySpringCGLIB$$b55fdc4b.cacheManager()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 64 more
Caused by: java.io.FileNotFoundException: File does not exist: /tmp/cas/ehcache-replicated.xml
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2377)
at org.apereo.cas.util.ResourceUtils.prepareClasspathResourceIfNeeded(ResourceUtils.java:114)
Yes, the file does not exist. Default configuration pulls from the classpath, which is working as I misplaced it and it complained about that. If I simply touch a file at the specified path, it will delete it and replace it with the one from the classpath.
Looking at master, it is still calling a forceDelete, which fails when the item isn't there. That doesn't seem ideal.

You cannot not modify the settings. Change settings to point to a valid file either in classpath or elsewhere. If you find that doesn't work, please submit your overlay so we can duplicate it.

It is pointing to a valid file in the classpath. But something goes through and eventually calls FileUtils.forceDelete().
http://commons.apache.org/proper/commons-io/javadocs/api-2.5/org/apache/commons/io/FileUtils.html#forceDelete(java.io.File)
Throws:
NullPointerException - if the directory is null
FileNotFoundException - if the file was not found
IOException - in case deletion is unsuccessful
So if the file doesn't exist, it throws an exception, and kill it, at least running under java -jar cas.war.
I'm trying to figure out why you are forcing that a file exists in a temp directory for the system to start. I'm guessing that this impacts other configurations than just EHcache. If I touch the file in the temp directory, Commons IO can then delete the file, and then replaces it with the file from the classpath. So the issue only arises when you have an empty temp directory. Forcing content to be in a temp directory prior to startup doesn't seem like the right design choice.

The issue has to do with loading classpath resources inside a jar in an embedded environment where we need to physically realize a stream and turn it into a file so it can consumed by something else. Admittedly, that's not the best approach but I'd have to see an overlay to reproduce this, or instructions on how to reproduce this exactly before proceeding further.

And you shouldn't be running RC3 anyway.

There isn't a RC4 yet, so I'm on RC3. I know that I will run into already
fixed errors, but the offending line is still in master.
The reproducible step is to use EHcache or anything else that does the copy
from the classpath to temp, but make sure that the temp directory is empty.
forceDelete requires that the file exists to delete, otherwise it throws a
exception.
The code that does the steps you describe on line 114 of ResourceUtils
throws an exception if the file doesn't exist in the temp location upon a
delete. If that exception is thrown, it skips all of the code that copies
it out of the war to the temp location, lands in a catch, which is then
rethrown as an unchecked exception.
If line 114 is a regular delete that doesn't enforce that the file exists
prior to the delete, this all works as expected.
On Oct 19, 2016 1:49 AM, "Misagh Moayyed"<EMAIL_ADDRESS>wrote:

And you shouldn't be running RC3 anyway.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/apereo/cas/issues/2054#issuecomment-254726480, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABmdMfjm727vS5DZJuyFslHzXZnmYizvks5q1b2WgaJpZM4KaSLp
.

The reproducible step is to use EHcache or anything else that does the copy
from the classpath to temp, but make sure that the temp directory is empty.
forceDelete requires that the file exists to delete, otherwise it throws a
exception.

Thanks, but that's not quite what I am looking for. What would be better is:

I added this module into X
I set this setting to Y
here is a copy of Y
I see this exception, error in my logs (as above)

Once you can do that, we can spend time to review. Or, as the issue template suggests When and where appropriate, please submit your CAS configuration/overlay to this project in form of a pull request so we could easily evaluate your deployment configuration to reproduce the issue.
Or provide a unit test that causes a failure. Otherwise, all I can tell you personally is that I can't duplicate it.
Or pause the discussion, and provide a PR with a test :)
Thanks.

Also, just to show you what I have done so far to diagnose this:

I added the ehcache module into an overlay.
I didnt change any of the settings.
Started up via the embedded tomcat.

Received this error:
Caused by: java.io.FileNotFoundException: class path resource [ehcache-replicated.xml] cannot be resolved to URL because it does not exist
        at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:187)
        at org.apereo.cas.util.ResourceUtils.prepareClasspathResourceIfNeeded(ResourceUtils.java:101)
        ... 73 more

Fine.
So then I added:
cas.ticket.registry.ehcache.configLocation=file:/etc/cas/ehcache-replicated.xml

In the properties and the file was read correctly. Is there a step I am missing?

That's not coming from the classpath in the war.
cas.ticket.registry.ehcache.configLocation=classpath://
ehcache-replicated.xml
Or just don't specify anything and use the default configuration. Then
stick the file in src/main/resources
rm -rf /tmp/cas
mvn package
java -jar target/cas.war
On Oct 19, 2016 6:54 AM, "Misagh Moayyed"<EMAIL_ADDRESS>wrote:
Also, just to show you what I have done so far to diagnose this:

I added the ehcache module into an overlay.
I didnt change any of the settings.
Started up via the embedded tomcat.

Received this error:
Caused by: java.io.FileNotFoundException: class path resource
[ehcache-replicated.xml] cannot be resolved to URL because it does not
exist
at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:187)
at org.apereo.cas.util.ResourceUtils.prepareClasspathResourceIfNeeded(ResourceUtils.java:101)
... 73 more
Fine.
So then I added:
cas.ticket.registry.ehcache.configLocation=file:/etc/cas/ehcache-replicated.xml
In the properties and the file was read correctly. Is there a step I am
missing?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/apereo/cas/issues/2054#issuecomment-254790932, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABmdMX9IfFcMqM2hq0GyiD_7OyRV8JY6ks5q1gUAgaJpZM4KaSLp
.

Sure. See the update to my last comment. Did that as well and still no failures :(

Guess I can remove the /tmp/cas and try again. Hang on.

No difference.

I'll try to put something together tonight. Are you testing on Linux or
macOS? I have seen differences in IO exceptions on Linux vs macOS. I'm
experiencing the problem on Linux.
On Oct 19, 2016 07:14, "Misagh Moayyed"<EMAIL_ADDRESS>wrote:

No difference.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/apereo/cas/issues/2054#issuecomment-254794670, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABmdMVYTwURkc4gpAuJMPHmvzEMzoLteks5q1gmRgaJpZM4KaSLp
.

Excellent. I look forward to it.
I am testing this on MacOS El Capitan and Windows 10 Pro. Both in embedded Tomcat/Jetty/Undertow and external instances just to be safe.

So it isn't platform specific. Testing commons-io 2.5 on my desktop (Ubuntu) and VM (Windows 7) both running Oracle JDK, it throws the exception. Here is the minimal full project I was able to put together. Most of it comes from leleuj's overlay demo. It is pointing it at your snapshot repo and replicated with 5.0.0.RC4-SNAPSHOT on Linux and Windows. If you remove src/main/resources/ehcache-replicated.xml, it complains about the file not being found in the classpath, which is what I would expect. Have it there and it complains that it can't delete out of the temp directory.
If you
touch /tmp/cas/ehcache-replicated.xml
then start, it works as the file exists so that it can delete it to replace it.
startup-bug.tar.gz

Nice. Let me look into this then.

All hail. Finally! I can see the failure. Thanks. I'll look into this a bit more.

Try the new RC4 snapshot with -U and report back please.

My Nexus isn't picking up the latest snapshot. Looking at the change, it certainly looks correct.


Update flows

Some steps in flow should be broken down a bit. Eg. in A5, there is just one step, but there should probably be two (eg. User does __, System saves data).

Extended Basic flow of A5 and double checked all other User Cases if extension was required - Ji Hwan Kim - 2015/02/22 1:38PM


Discuss decide on test framework

A lot of test frameworks exist already. All have pros and cons.
Popular are:

unittest
pytest
nose2
...

The task is reviewing packages to find out which fits the needs.

I think this is already decided as we use unittest?

I think we have more or less simply used the unittest framework without illuminating possible advantages and disadvantages. It seems to me that Pytest brings some useful features  (e.g. parallel testing) and is used more often. However, Pytest is not able to run subtests out of the box.
I thought it would be a good idea to define the framework beforehand to avoid possible reimplementations. But now that a lot of tests have been added, the decision is made and we can close the issue.

So I close the issue. Btw I would expect that parallel testing adds a lot of extra problems and at the moment testing times are not a problem at all.


Question about operation "Add member to role"

In table AuditLogs there is a certain OperationName:
"Add member to role (permanent)"
Some detection and hunting queries try to search for "Add member to role (permanent)", others for "Add member to role".
Are they referring to the same operation? should the queries be updated? or are they different operations?
In my tenant I have only seen the operation "Add member to role"
Queries that should work anyway:
https://github.com/Azure/Azure-Sentinel/blob/e5641bdd07e47411027696e53fb81c9f7583d0b8/Detections/AuditLogs/BulkChangestoPrivilegedAccountPermissions.yaml
https://github.com/Azure/Azure-Sentinel/blob/e5641bdd07e47411027696e53fb81c9f7583d0b8/Detections/AuditLogs/UserAssignedPrivilegedRole.yaml
https://github.com/Azure/Azure-Sentinel/blob/8768b916756b827da02d1dfd95ece8fbe27049c4/Detections/AuditLogs/AdminPromoAfterRoleMgmtAppPermissionGrant.yaml
https://github.com/Azure/Azure-Sentinel/blob/301819b3d4217428d848a95ea8d19fd351edc6df/Hunting Queries/MultipleDataSources/UnfamiliarsignincorrelationwithPortalSigninandAuditlogs.yaml
Queries that have specific wording:
https://github.com/Azure/Azure-Sentinel/blob/44771fce9d745c937461bfd87e8ac3682048ecec/Hunting Queries/BehaviorAnalytics/Anomalous Role Assignment.yaml
https://github.com/Azure/Azure-Sentinel/blob/9602322a9bb602cb40842af56a1ae8efe5a80336/Detections/AuditLogs/UseraddedtoPrivilgedGroups.yaml
https://github.com/Azure/Azure-Sentinel/blob/3caa451a1f595111605ddbf8dd1171199117648a/Detections/AuditLogs/PrivlegedRoleAssignedOutsidePIM.yaml

I made a mistake.


[Question] Are there rate limits?

I am using this API on my project, Curreni and I was wondering whether there are rate limits when using this API..

@RaptaG currently no rate limits are in place - this might change in the future but as CloudFlare does a really good job at caching most of the queries currently the load on the service itself is very low.


Develop a script to pull 311 calls relevant to an REO property during the retention period

One of the things we would like to do is look for evidence of neglect in the 311 data. So, the script should, given a list of addresses, attempt to gather this kind of evidence from the 311 calls.

Wrote a simple script that pulls the information with Python3 and added it to the main board.  Multi indexing is possible if the date is necessary. It should be pretty easy to create a GUI if necessary.


SBU

cc @pmeier @bjuncek

Can I take this up?

@pmeier I'd like to take this one up.

Sure, go ahead!


Set hash string in deps match spec

Setting pytorch =*=cuda* in a recipe fails with error parsing pytorch ==cuda as a match spec.
Is it possible to set the build number or not yet?
The equivalent in pixi would be { version = "*", build = "cuda*" }

Looks like python [version='3.11.0', build_number=1] might be the way to go here.


Fix overflow on notifications

Fixes https://github.com/go-gitea/gitea/issues/31170.

Should this be backport?


Proper handling of failure codes

@q-litzler The CI seems to fail on this one

Still failing with
java.lang.AssertionError: Assertion failed
[13:02:02]: ▸ at com.algolia.instantsearch.InsightsTest$IntegrationEventUploader.startOneTimeUpload(InsightsTest.kt:264)

This might be more complicated than this, closing for now.


MacOS Version is missing 3 dependancies

The following dependancies are missing from the solution file
PnP.Core
PnP.Core.Admin
PnP.Core.Auth
They do not appear to be included with the MacOS download from GitHub
Also, NuGet tries to download them but it fails

@nyannios : did you mark the mac file as executable as mentioned in https://pnp.github.io/pnpassessment/using-the-assessment-tool/download.html#running-on-macos-and-linux? Do know that the mac version does not have the PowerBI report generation capability, if you need that you anyhow have to use the Windows version, if you're ok with the CSV files that you're good.
I personally don't have a mac device, but I'll see what I can do

@nyannios : I think I misunderstood your question...are you trying to build the solution yourselves? If so, then you indeed need to pull down PnP Core SDK (https://github.com/pnp/pnpcore/tree/dev) under the same root folder where you pulled in the assessment tool. If you open the solution, then it will pick up dependencies. Alternatively, you can update the solution/project files and directly use the nuget packages for those dependencies

Closing per no feedback


Ensure radius is copied into derivative LatLon objects

This pull request

Refactors Number.prototype mutation in favor of simple function calls.

This is in line with best JavaScript practices and is resilient against other libraries adding the same method names to Number

Copies the radius property to LatLon objects that are returned from methods.

Thanks for the PR. I totally agree that it is bad practice to add methods to native objects so I really appreciate your contribution. There is a slight problem though and that is that some of the other mt-´ projects rely on the existence of these methods on the Numberobject. So maybe the best approach is to introduce our ownNumber` implementation and pass that around instead (keeping the methods on that new object).
You can see what I mean by looking at this line of code https://github.com/peterhaldbaek/mt-osgridref/blob/master/mt-osgridref.js#L34.
You might also check out the code at chrisveness/geodesy where this code actually origins from (it was not on GitHub when I created this project). It does have the same issues with Number though.

Pushed corresponding changes to both mt-osgridref and mt-coordtransform. I think that covers everything.

Nice!


Dev

Add image signing using cosign.

:tada: This issue has been resolved in version 2.5.0-rc.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 2.5.0-rc.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 2.5.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


WebElement functions that called on ElementFinder return wrong type - ElementFinder instead ManagedPromise

Bug report
I was trying to use .catch() and .finally() functions, but suddenly noticed that return type for some of the ElementFinder methods is wrong, it returns ElementFinder instead ManagedPromise, please see code example below.

Node Version: 7.2.1
Protractor Version: 5.1.1
Angular Version: 1.5.0 - http://www.protractortest.org/testapp/ng1/#/form
Browser(s): Chrome
Operating System and Version MacOS 10.12.3
Your protractor configuration file -

directConnect: true
framework: 'jasmine2',

A relevant example test (TS code)

it('catch',function(){
//.getText() returns ElementFinder object, not ManagedPromise as i was thinking it should
        let text:any = $('h4').getText()
//To verify - you can call some ElementFinder functions on result - and it will work!
        let displayed = text.isDisplayed()
        let enabled = $('h4').isEnabled() //ElementFinder
        let selected = $('h4').isSelected() //ElementFinder

//BUT for some reason isPresent() returns ManagedPromise object!
        let present = $('h4').isPresent()

//On attempt to chain with .then() - you will get actual text string in resolved value
//this works because ElementFinder has .then() method.
        text.then((textt)=> {
            console.warn(textt)
        })

        displayed.then((displayedd)=> {
            console.warn(displayedd)
        })

//Getting error since .catch() is not defined on ElementFinder object. Same for .finally()
        $('non exist').getText().catch((err)=> {
            console.warn(err)
        })

//result of isPresent() has .catch() function
        present.catch((err)=> {
            console.warn(err)
            console.warn('Catch works!')
        });

//Typings are wrong - .thenFinally() function do not exist for isPresent result, but .finally() do exist!
        (present as any).finally((err)=> {
            console.warn('finaly works!')
        })

    });

Output from running the test

Failures:
1) Promises catch
  Message:
    Failed: protractor_1.$(...).getText(...).catch is not a function
  Stack:
    TypeError: protractor_1.$(...).getText(...).catch is not a function

Steps to reproduce the bug
Run script in debug, and see type for value that returns for ElementFinder functions

Possible root cause:
I believe there is something should be done with this code in ElementFinder class :
let WEB_ELEMENT_FUNCTIONS = [
  'click', 'sendKeys', 'getTagName', 'getCssValue', 'getAttribute', 'getText', 'getSize',
  'getLocation', 'isEnabled', 'isSelected', 'submit', 'clear', 'isDisplayed', 'getId',
  'takeScreenshot'
];

    WEB_ELEMENT_FUNCTIONS.forEach((fnName: string) => {
      this[fnName] = (...args: any[]) => {
        let actionFn = (webElem: any) => {
          return webElem[fnName].apply(webElem, args);
        };
        return this.applyAction_(actionFn);
      };
    });

this.applyAction_() returns new ElementArrayFinder, this might be issue.

There is totally a lack of parallelism here. One way we could get around this is to implement catch in the same way that we implement then but things could get complex very fast.
I do think that we should support this on "terminal" ElementFinder methods like getText. I'll try to see if I can spike out an approach.
In the meantime, you can pass an error handler as the second param to getText:
getTextPromise.then(() => {
  console.log('success')
}, () => {
  console.log('failure')
});

Or after calling then:
getTextPromise
  .then(() => {})
  .catch(() => {});

Thanks for response Nick!
I am aware about second param for promise rejection callback. I just wanted to point that return type is not what actually users expect.
BTW, this trick allows to make some cool stuff, like methods chaining. Simplest that come to my mind:
//compilation error, but it works in runtime.
$('input').clear()
            .sendKeys('OLOLOLO')
            .clear()
            .sendKeys('HELLO WORLD!')
            .then(()=> {console.log('text send!')});

If methods will return ManagedPromise (as expected) that will look different:
let input = $('input')
input.clear()
input.sendKeys('OLOLOLO')
input.clear()
input.sendKeys('HELLO WORLD!').then(()=> {console.log('text send!')});

But i still believe that return type should be ManagedPromise, so it won't be so confusing that you can call ElementFinder functions, but in .then() callback you will get actual resolved value from method.


Image sectionof the AI page does not view the captured images

Hi,
I am able to view the captured images going into the directory where they are (~/od/jaagkehbids/Images/2023/12/14/07), but the section of the AI page does not view the captured images as shown below. Can you help me to solve this issue? Thanks, Sindi.

The problem to this issue was that the mongoDB was not well installed.


fix import statements improperly being transformed when symlinks are utilized

Description:
Fixes https://github.com/swc-project/swc/issues/4057.
https://github.com/swc-project/swc/pull/3340/files changed the behavior to canonicalize symlinks when invoking the swc compiler, as far as I can tell this was an unintended change. This restores the original behavior.

BREAKING CHANGE:

Related issue (if exists):
https://github.com/swc-project/swc/issues/4057
https://github.com/swc-project/swc/issues/2945

updated -- the broken tests seemed to be representative of the previous broken behavior


[Android]Can't reload js from dev server after upgrading from 0.21 to 0.22

windows8 android4.1.1<EMAIL_ADDRESS>After upgrading from 0.21 to 0.22, reload js and live reload don't work anymore. Downgrading back to 0.21, everything works fine.
Update
Brand new project also has the issue.

I'm able to reload js and live reload just fine - using window 10, android 6.0, and react-native 0.22.
I'm also using an emulator from android virtual device manager.

@dentrite Did you make sure to restart the packager after upgrading?

@christopherdro Yeah I did restart the packager, and also rebuilt the app

@dentrite It appears there were a few issues surrounded 0.22 and it appears to be not that stable of a release. Could you  possibly try on 0.23-rc and see if works? Thanks!

@christopherdro 0.23.0-rc1 still don't work for the existing project. A new project base on 0.22.2 seems to be fine after the upgrading.

+1

I met the same issue, both tried in real device and emulator, reload js not working at version 0.22, and android version is 6.0, now I'm trying to downgrade to 0.21

win10 ,android 6.0,0.23  ,i met the same problem

Same issue (Not seeing changes after reloading) on RN 0.24.1, Windows 10, Android 4.4.4 on Genymotion.

Issue still exists on RN 0.25.1 (Windows10, Android 4.4.4 on Genymotion).

After I start the packager, by issuing react-native start, for the second time after creating a new RN 0.25.1 project, all reload features (Reload JS, Hot Reloading, Live Reload) seems to work well.  Will try on an upgraded project.

I have upgraded project from 0.21 to 0.25.1 on Windows 10 , Android 4.4.4 on Genymotion, the reload didn't work right after upgrading.  However, after trying the following many times, the reload becomes working !  Not really know the exact sequence to make it work.

Issue "react-native run-android"
Issue "react-native start"
Enable/disable hot reloading and live reload

Windows 10, physical device running on Android 5.1.1, RN 0.26.2, same problem...

RN 0.28.0，same problem,back to RN 0.27.0,it's work fine.

I am also having the same problem. I'm on windows8.1. RN 0.28.0 and Node 6.2.0 with genymotion. No changes are detected at all. :disappointed: also taking too much time for loading.

I have same problem with RN 0.29.0, Windows 8.1 and Genymotion.

I think I am having the same issue with 0.30.0, Mac and Genymotion. It doesn't refresh any changes I make to the code.

+1
RN 0.30; emulator android 6.0;   win10
it works at last version. It seems happen after upgrade

The same err, RN 0.30 7.3 Xcode

The same issue RN 0.31, Window 10 and Genymotion

Run react-native start manual after run react-native run-android when app loaded. It work fine (RN 0.31).

The same issue RN 0.32.0, Webstorm, Android, Genymotion. Each time now I have to stop the packager and load it again to view the changes. Its so horrible.

I am using VS Code, RN 0.31 and the Android emulator on Windows 10. Seems like I have to save the file, then, in the emulator, keep hitting rr on my keyboard. While debuggig in VS code, eventually I see "Connecting to remote debugger" and my changes appear.

Having the same issue with RN 0.32.0, emulator from Android Studio 2.1.3 and Android 6.0. Not being able to use hot reloading is really painful...

Mac ,android 7.0, 0.36 ,the same problem

Windows 10, Android 6.0, 0.36, same problem

I found the way to fix this issue.
We need to set up "PATH" environment variable with address "%ANDROID_HOME\tools" (Example "D:\Android\SDK\tools")

Closing this issue because it has been inactive for a while. If you think it should still be opened let us know why.


How to implement serialization function of derived class?

class MyDerived: public MyBase {
  constexpr static auto serialize(auto &archive, auto &self) {
    MyBase::serialize(archive, self);
    return archive(self.member1, self.member2);
  }
}

Is this code correct?
Will it cause some errors not to be handled?
Maybe we should add a piece of document on how to serialize derived class gracefully?

Good call that it should maybe be added to the documentation, try to add a static case to the base class reference and send it first before the members

Also, should the return value of MyBase::serialize be manually handled? How can I combine two return values with minimal code?

Try like this:
class MyDerived: public MyBase {
constexpr static auto serialize(auto &archive, auto &self) {
return archive(static_cast<MyBase&>(self), self.member1, self.member2);
}
}

Ah, I misunderstood what you meant. Now I understand, thank you.

Although you should add const sometimes

Indeed I got compile errors, I don't understand std::conditional very well, I'll check the documentation first.

The more I think about this the more I think this is the approach:
class MyDerived: public MyBase
{
  constexpr static auto serialize(auto &archive, auto & self)
  {
        return archive(self.base() self.member1, self.member2);
  }

  constexpr MyBase & base() { return *this; }
  constexpr MyBase & base() const { *this; }
}

There is also the std::common_reference approach:
class MyDerived: public MyBase
{
  constexpr static auto serialize(auto &archive, auto & self)
  {
        return archive(std::common_reference<MyBase &, decltype(self)>(self), self.member1, self.member2);
  }
}

Got a weird compilation error, both the following methods will trigger:
constexpr static auto serialize(auto &archive, auto &self) {
    typedef typename std::conditional<std::is_const<decltype(self)>::value, const SoaBase, SoaBase>::type BaseType;
    return archive(static_cast<BaseType &>(self), self.member1);
  }

constexpr static auto serialize(auto &archive, auto &self) {
    return archive(std::common_reference_t<SoaBase &, decltype(self)>(self), self.member1);
  }

C:\Libraries\zpp_bits\zpp_bits.h(2664): error C2760: syntax error: ')' was unexpected here; expected '{'
C:\Libraries\zpp_bits\zpp_bits.h(2509): note: see reference to function template instantiation 'zpp::bits::errc zpp::bits::in<_ReturnType,zpp::bits::options::alloc_limit<1073741824>>::serialize_one<unsigned int,std::deque<uint32_t,std::allocator<std::seed_seq::result_type>>&>(_T0)' being compiled
        with
        [
            _T0=std::deque<uint32_t,std::allocator<std::seed_seq::result_type>> &
        ]
C:\Libraries\zpp_bits\zpp_bits.h(2510): note: see reference to function template instantiation 'zpp::bits::errc zpp::bits::in<_ReturnType,zpp::bits::options::alloc_limit<1073741824>>::serialize_one<unsigned int,std::deque<uint32_t,std::allocator<std::seed_seq::result_type>>&>(_T0)' being compiled
        with
        [
            _T0=std::deque<uint32_t,std::allocator<std::seed_seq::result_type>> &
        ]

...

C:\Libraries\zpp_bits\zpp_bits.h(2664): error C2059: syntax error: ')'
C:\Libraries\zpp_bits\zpp_bits.h(2646): error C2143: syntax error: missing ';' before '{'
C:\Libraries\zpp_bits\zpp_bits.h(2157): error C2760: syntax error: ')' was unexpected here; expected '{'

...

C:\Libraries\zpp_bits\zpp_bits.h(2157): error C2059: syntax error: ')'
C:\Libraries\zpp_bits\zpp_bits.h(2103): error C2143: syntax error: missing ';' before '{'

The compilation errors are not relevant to this topic, I ended up using std::common_reference, which seemed the most concise.


how to use dxvk in win10?

I tried to use the latest unlockfps.exe to inject dxgi.dll and d3d11.dll but it gives me "CreateRemoteThread failed with code:5"

I have read about this issue

I have used the latest unlockfps.exe but it gives me "CreateRemoteThread failed with code:5"

probably av issues


Using with command line tool

I'm not able to get this working with a swift command line tool (i.e. no ui). The server starts, but it will not accept any requests. I'm calling RunLoop.main.run() after setting up the server.
Any ideas why this might be? Is there something special that needs to be done when not doing a ui app?

Honestly I'm not sure, I've never used Telegraph in a command-line scenario.
Instead of RunLoop.main.run() have you tried dispatchMain()?
I'll close this for now, because it isn't really a scenario Telegraph supports.
But if you could try that or otherwise share a test app, I can have a look.


stretch: powerloss resulted in corruption. General recovery procedure?

I use ceph which has 3 leveldb databases (one on each monitor node). We recently had a power outage at our datacenter and all 3 leveldb databases are corrupt. I tried recovery via leveldb.recovery() but this doesn't seem to have worked.
I made a copy of the original directory just in case prior to attempting to recover. Is there any recovery guidelines or procedures?
I am getting the following errors which may be more ceph related:
2016-08-10 21:21:48.298232 7f2fe195d8c0  0 ceph version 0.94.7 (d56bdf93ced6b80b07397d57e3fa68fe68304432), process ceph-mon, pid 79794 Corruption: error in middle of record 2016-08-10 21:21:52.963409 7f2fe195d8c0 -1 error opening mon data directory at '/var/lib/ceph/mon/ceph-kh08-8': (22) Invalid argument
is there a way to continue or recover/remove the record based on the files in the other 2 ceph monitors. If not is there a general procedure for recovery?

Wieder klingelt da etwas bei mir...
On August 11, 2016 5:02:58 AM CEST, Look Crabs<EMAIL_ADDRESS>wrote:

I use ceph which has 3 leveldb databases (one on each monitor node). We
recently had a power outage at our datacenter and all 3 leveldb
databases are corrupt. I tried recovery via leveldb.recovery() but this
doesn't seem to have worked.
I made a copy of the original directory just in case prior to
attempting to recover. Is there any recovery guidelines or procedures?
I am getting the following errors which may be more ceph related:
2016-08-10 21:21:48.298232 7f2fe195d8c0  0 ceph version 0.94.7 (d56bdf93ced6b80b07397d57e3fa68fe68304432), process ceph-mon, pid 79794 Corruption: error in middle of record 2016-08-10 21:21:52.963409 7f2fe195d8c0 -1 error opening mon data directory at '/var/lib/ceph/mon/ceph-kh08-8': (22) Invalid argument
is there a way to continue or recover/remove the record based on the
files in the other 2 ceph monitors. If not is there a general procedure
for recovery?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/google/leveldb/issues/402

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Wieder klingelt da etwas bei mir...

is it your banana phone? 😮

On Thu, Aug 11, 2016 at 12:43:17AM -0700, Julian Gruber wrote:

Wieder klingelt da etwas bei mir...

is it your banana phone? 😮

Yeah. Sorry about that. Completly mis-posted.
Cheers
Andreas

--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/google/leveldb/issues/402#issuecomment-239093374

--
Andreas Baumann
Trottenstrasse 20
CH-8037 Zuerich
Telefon: +41(0)76/373 01 29
E-mail<EMAIL_ADDRESS>Homepage: www.andreasbaumann.cc

I suspect filesystem corruption. Sorry I've never managed ceph cluster before. leveldb is used in Chrome which runs on many many phones so lots of unplanned power-down's. I suggest asking this question on the leveldb discussion group. Your mention of "leveldb.recovery()" sounds like maybe you're using a wrapper library (Python?). If there's an option to enable paranoid checks I suggest using that.


CollectiveAllReduceStrategy "Out of range: End of sequence" warnings

System information
Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Ubuntu 16.04.4 ppc64le
TensorFlow installed from (source or binary):
source
TensorFlow version (use command below):
1.11
Python version: Python 2.7.15
CUDA/cuDNN version: Cuda 9.2 CuDNN 7.2.1
GPU model and memory: V100 16GB
Exact command to reproduce: python keras_model_to_estimator.py /tmp/tfkeras_example
Describe the problem
Running the ecosystem CollectiveAllReduceStrategy estimator example  on a box with 2GPUs, we get those warning constantly after the last step of an epoch:
INFO:tensorflow:loss = 0.6660614, step = 1500 (0.288 sec)
2018-09-21 19:23:01.075834: W tensorflow/core/common_runtime/base_collective_executor.cc:203] BaseCollectiveExecutor::StartAbort Out of range: End of sequence
	 [[{{node IteratorGetNext}} = IteratorGetNext[output_shapes=[[?,10], [?,1]], output_types=[DT_FLOAT, DT_INT64]](IteratorFromStringHandleV2)]]
	 [[{{node FunctionBufferingResourceGetNext_1}} = FunctionBufferingResourceGetNext[output_types=[DT_FLOAT, DT_INT64], _device="/job:localhost/replica:0/task:0/device:GPU:1"](FunctionBufferingResource_1)]]
2018-09-21 19:23:01.075843: W tensorflow/core/common_runtime/base_collective_executor.cc:203] BaseCollectiveExecutor::StartAbort Out of range: End of sequence
	 [[{{node IteratorGetNext}} = IteratorGetNext[output_shapes=[[?,10], [?,1]], output_types=[DT_FLOAT, DT_INT64]](IteratorFromStringHandleV2)]]
	 [[{{node FunctionBufferingResourceGetNext}} = FunctionBufferingResourceGetNext[output_types=[DT_FLOAT, DT_INT64], _device="/job:localhost/replica:0/task:0/device:GPU:0"](FunctionBufferingResource)]]
	 [[{{node global_step/Read/ReadVariableOp/_171}} = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device_incarnation=1, tensor_name="edge_550_global_step/Read/ReadVariableOp", tensor_type=DT_INT64, _device="/job:localhost/replica:0/task:0/device:CPU:0"]()]]
2018-09-21 19:23:01.076090: W tensorflow/core/common_runtime/base_collective_executor.cc:203] BaseCollectiveExecutor::StartAbort Out of range: End of sequence
	 [[{{node IteratorGetNext}} = IteratorGetNext[output_shapes=[[?,10], [?,1]], output_types=[DT_FLOAT, DT_INT64]](IteratorFromStringHandleV2)]]
	 [[{{node FunctionBufferingResourceGetNext}} = FunctionBufferingResourceGetNext[output_types=[DT_FLOAT, DT_INT64], _device="/job:localhost/replica:0/task:0/device:GPU:0"](FunctionBufferingResource)]]

@yuefengz: Do you also see the same warnings in your test logs?

Follow up issue after issue #22326 got closed.

I traced this to FunctionBufferingResourceGetNextOp.  Looks like the kernel returns an OutOfRange error to signal completion.  This non-OK status triggers an abort of the CollectiveExecutor.
@mrry @rohan100jain is this expected behavior?  I would have expected the error to be caught somewhere because it is not really an error.

@dubey That's how the iterators are implemented, yes. The error can be caught in the graph if you use tf.contrib.data.get_next_as_optional(), but I think it's library code that's responsible for doing that.

Thanks Derek.
I tried changing get_next() to get_next_as_optional() in Estimator._train_model_distributed() but it seems like PerDeviceDataIterator does not support get_next_as_optional.  @guptapriya suggestions?

Hm, yes this is something that we want to be able to handle better in the future in distribution strategy code. However, until now we've been relying on the high level API infrastructure to deal with this. For e.g. I think estimator has some logic which stops the training when OutOfRange is encountered.
@yuefengz any idea why this error shows up only in collective ops strategy and not others?

The error probably occurs in all cases, but it shows up in collective strategy because we print a LOG(WARNING) when we abort the CollectiveExecutor.
I just chatted with @rohan100jain, who's working on a change in Dataset iterators which should enable a proper fix for this error.  I'll update this issue when those changes are checked in.

Nagging Assignees @yuefengz, @dubey, @poxvoculi: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@rohan100jain any update on the iterator changes to help with this issue?

Some progress made here. Tracked down the bug that was causing issues with Distribution strategies not using MultiDeviceIterator by default. Now Distribution strategies uses MultiDeviceIterator. Now I'll work on getting MultiDeviceIterator to work with get_next_as_optional and expose that API end point.

Nagging Assignees @rohan100jain, @yuefengz, @dubey: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignees @rohan100jain, @yuefengz, @dubey: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignees @rohan100jain, @yuefengz, @dubey: It has been 44 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@nvcastet Is this still an issue ?
We see that you are using old version of tensorflow 1.x which is not actively supported, We recommend that you upgrade to 2.4 or later version.Please have a look at the migration guide for reference to migrate from TensorFlow 1.x to TensorFlow 2.Thank you!

@sushreebarsa I don't know to be honest, it has been more than 3 years. :) CollectiveAllReduceStrategy is not used anymore. The new Distribution strategy API for multi-workers is MultiWorkerMirroredStrategy.
I can close the issue for now and if someone sees it again, it can get re-opened.


Change release notes fixed issues list style to use bullets instead of greater-than-sign as per discussion with DevRel team

Screenshot of the bullets as rendered now:

@bot-gradle test BD

@bot-gradle test and merge

OK, I've already triggered a build for you.


Ordered list is not rendered as expected using react-markdown and remark-gfm plugin

Subject of the issue
I have users who want to render some content in an ordered list. The content looks good in Github, but when I render it with react-markdown using the remark-gfm plugin, it gets rendered wrong and the whole list is not looking as expected.
Your environment

Packages: react-markdown (version 5)

Steps to reproduce
Example in codesandbox.io:
https://codesandbox.io/s/react-markdown-forked-v6iy7?file=/src/App.js
Expected behavior
Should render the ordered list exactly like in Github:
1. some text
some link
2. Number two

Actual behavior

Thanks for the report. It seems to be https://github.com/remarkjs/remark-gfm/issues/3

Going to close this to direct the conversation and work to GH-3.

<ReactMarkdown
  components={{
    ul: ({ node, ...props }) => (
      <ul
        style={{
          display: "block",
          listStyleType: "disc",
          paddingInlineStart: "40px",
        }}
        {...props}
      />
    ),
    ol: ({ node, ...props }) => (
      <ol
        style={{
          display: "block",
          listStyleType: "decimal",
          paddingInlineStart: "40px",
        }}
        {...props}
      />
    ),
  }}
>{markdown}</ReactMarkdown>


eddyViscosity - PiOmega_hat

https://github.com/envfluids/py2d/blob/e15e9ba5677ce9a838d1cecac7595f9a640caf60/py2d/Py2D_solver.py#L389C1-L390C74
Is eddyViscosity in
        Omega_hat_temp = RHS/(1+dt*alpha + 0.5*dt*(nu+eddyViscosity)*Ksq)

consistent with PiOmega_hat in
        RHS = Omega1_hat - dt*(convec_hat) + dt*0.5*(nu+eddyViscosity)*diffu_hat - dt*(Fk_hat+PiOmega_hat) + dt*beta*V1_hat

Correct. Eddy viscosity models are using Crank Nicholsoin time integration scheme while PiOmega is using Forward Euler (with an option for Adam Bashforth). We can figure out how to fix this later.