Patch stream2 writable v2

Here is a review with fixes and cleanups on top of riaan53/gridfs-stream master, for Writable stream only.

no more internal buffering, see aheckmann/gridfs-stream/issues/58
finish event is emitted when the file is fully on GridFS (using flushwritable).
destroy() emits an error (and the error can be specified as destroy(err), because the write to GridFS may be aborted, so the file is corrupted.
Added documentation and tests for special events open and close (and finish)
Added documentation and tests for destroy

Pending questions:
I don't know what we should do in case of error:

Internally: Currently we just call _error() which emits error and then _close().
It works, but we could do other things: _write and _flush give callbacks that accept an error as first argument. If there is either a _write or a _flush (we cannot have both at the same time) running during the error (for example _store.open() failed, or _store.write() failed, or _store.close() failed), then we could (also?) call that callback with the error.
From what I read in the code of nodejs v0.10.31 and v0.12.0, both with indirectly emit error, and the _write() callback will call the optional write() callback so the caller will be notified too. It may be useful to notify the caller this way, but it's harder to do it properly: we need to avoid multiple error emitted, and we still need to call _close() (and maybe in a precise order: it may be useful to guarantee that 'error' happens before (or after?) 'close'; for that we could delay _close() to nextTick). I don't know what is the best practice here... Maybe we should ask on nodejs mailing list?
externally: We always call _store.close(), so we always commit the file to GridFS by writing the document in the files collection. This may not be the best solution in case of error: If an error happened, the file may be corrupted, but we store it like no error happened. Two solutions:
keep commiting the file to GridFS, but add an extra metadata field error to notify that this file may be corrupted. It would be up to the caller to remove the file afterward if it wants that, or not.
remove the file and the chunks on error, because the file is likely corrupted, but it's an issue if the file was overwriting another file, because we would want to rollback to a previous state (which is what we would expect. It's how AWS S3 works for example), and the current GridStore from nodejs mongodb driver 2.0.15 deletes the old chunks before starting to write the new ones, so we cannot... Maybe it's a bug of the mongodb driver, but I don't see how it could implement what we want without performance issues.

I haven't reviewed the Readable stream yet, I'm less familiar with Readable streams than with Writable ones...
PS: I patched the commit https://github.com/riaan53/gridfs-stream/commit/c6ac486daf906758d92853b3b569020df646e3bf in this branch to remove the wrongly committed temporary file test/tmp/1mbBlob.

Awesome! thank you.

@triccardi-systran - Sorry for the late reply: thank you for this! Your version has been published as version 1.0.2.

@Reggino
What about semver? a581ca902ec373ac5b6bc79d736fe700025f3101 removed public method destroySoon, so a major version bump should have been done. This PR add new features (destroy() now optionally takes an error parameter), so a minor version bump should have been done.
If we don't want to break the API we could add destroySoon again, as a deprecated alias to destroy(), this is now almost the same behavior as we don't queue internally (the only difference is that the current _write() was written, and now is ignored (hm, this case may lead to a Chunk leak... maybe we should always wait for the _write to finish...).

(Nevermind for the Chunk leak in case of destroy(): it's not part of the File data, but it's still associated to the File via its files_id. Luckily on File unlink the MongoDB driver removes all Chunks associated to the File via files_id, so the Chunk will not definitely leak.)

@triccardi-systran Thanks, you are right. I've added the deprecated destroySoon and publish it as 1.1.0

For the error handling questions, I opened a ticket at mongodb:
https://jira.mongodb.org/browse/NODE-372


Don't show cards below the current one unless you swipe

When you are looking at cards in a resting state you can see some edges of cards behind the current one around the edges. Can you make it possible to not do that so that you can only see the current card assuming all cards are the same size until you start swiping?

It seems to be the rotationDegree property. You should set it at 0.0;
I'm just starting looking into this great library, so tell me if I was wrong!


Add dotnet format to CI to check C# style

Use dotnet format to format the C# projects like we do with clang-format for C++ and output the diff in the static checks CI.
dotnet format uses the .editorconfig configuration so right now it's pretty relaxed since we don't have many rules enforced, by default it applies code fixes for rules with the warning severity (we can set the rule severity in .editorconfig for the rules we want applied and/or modify the severity used by dotnet format to one of warning|info|error).
This PR does not modify .editorconfig but we should consider adding some rules such as IDE0005 (remove unnecessary using directives). See https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/.
Formatting can also be suppressed if we need to in specific situations (or you can also suppress the specific rule by diagnostic ID):
#pragma warning disable format

...

#pragma warning restore format

This PR also applies the changes made by dotnet format to pass CI (currently a separate commit for convenience but they will be squashed before merging).

Thanks!


服务mock降级功能无效

[ ] I have searched the issues of this repository and believe that this is not a duplicate.
[ ] I have checked the REAMDE of this repository and believe that this is not a duplicate.

Environment

Dubbo Admin version: 0.4.0
Registry center detail (type and version): xxx
Operating System version: xxx
Java version: xxx

Steps to reproduce this issue
在管理后台创建的mock规则，看代码好像没有更新到对应的注册中心，只是存储到数据库中，是还不支持mock降级这块吗？
Pls. provide [GitHub address] to reproduce this issue.
Expected Result
What do you expected from the above steps？
Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
Just put your stack trace here!

如上图，没看到mock规则更新到注册中心的代码


diskDetailsTest

added disk details without tests of creation template and reverting disk to snapshot

Can one of the admins verify this patch?

Pull Request Test Coverage Report for Build 1771

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 53.466%

Totals

Change from base Build 1770:
0.0%

Covered Lines:
9522

Relevant Lines:
15808

💛  - Coveralls

run tests


Rewrite older JWT tests to follow new testing pattern

Jwt related tests under - /tests/System.IdentityModel.Tokens.Jwt.Tests do not follow the newer pattern established for the 5.2.0 release.
See https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/dev/test/Microsoft.IdentityModel.Xml.Tests/DSigSerializerTests.cs#L42 for an example.
Once https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/issues/680 has been completed all these tests should be updated.

We updated some tests, moving to 5.2.4 to update some more.

We are going to leave these as is and only fixup as bugs show up.
The reason is we are moving to JSonWebTokenHandler.


Insert a image into a opened word document.

When I try to run my code
from docx import Document
from docx.shared import Inches
import matplotlib.pyplot as plt
import numpy as np

t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.cos(2*np.pi*t)
plt.plot(t, s)

plt.savefig('test.png')

document = Document('report6.docx')

document.add_picture('test.png', width=Inches(1.25))

document.save('report6.docx')

I get this error
PermissionError: [Errno 13] Permission denied: 'report6.docx'
To solve the error, I need to close my report6.docx first.
Is there a way I can insert my image without closing the doc and observe the change immediately when I insert the image?

No. python-docx reads and writes files. If the file you're writing to is open, the .save() call will fail.

No. python-docx reads and writes files. If the file you're writing to is open, the .save() call will fail.
If you want "interactive" updating to the Word file (while you have it open) you'll need to use a com32-style solution, such as Visual Basic (VBA) or perhaps via the PyWin32 package. Both of these require running under Windows I believe.


Connectivity checks fail when URL resolves to IPv6 address in IPv4-only VPC

Occasionally, urllib will resolve the provided check URL to an IPv6 address. If the VPC in which the Lambda function is running isn't configured to support IPv6, the Lambda function will throw the following error:
error connecting to https://www.google.com/: <urlopen error [Errno 97] Address family not supported by protocol>

Some simple Googling reveals that this is often attributed to the host not supporting IPv6 (example). Unfortunately, I haven't been able to find a trivial way to force the built-in urllib package to use IPv4-only resolution. One alternative would be to add requests or urllib3 as a dependency (and Lambda layer), and use the following to accomplish this:
# requests
requests.packages.urllib3.util.connection.HAS_IPV6 = False
# urllib3
urllib3.util.connection.HAS_IPV6 = False

Ahh, interesting. We previously used requests, but then switched to urllib to
remove the dependency. Maybe we should switch again to urrllib3.
Thanks for the bug report.

@0xdeadbeefJERKY - Would you be up for testing out the proposed fix in #88 ? You just need to use the patched version and set the variable, e.g.
module "alternat_instances" {
  source = "git::https://github.com/1debit/alternat.git//modules/terraform-aws-alternat?ref=patch-getaddrinfo"
  lambda_has_ipv6 = false
  ...
}

@0xdeadbeefJERKY Can you share a little more about your configuration so I can understand the conditions under which this is happening?

What region are you using?
What value are you using for CHECK_URLS?
Are there any atypical configurations in your VPC?

The reason I'm asking is that VPCs do not have IPV6 enabled by default, so folks have to enable it if they want it, and most do not. I think most Alternat users are not using IPV6 VPCs, and yet this is the first time this error has been reported. Would be nice to reproduce it.

If you have already applied this, please do so again. There was a bug in the previous version and I've fixed it.

@bwhaley We're test driving the alternat deployment in us-west-2 and set CHECK_URLS to ["https://www.google.com]. I reviewed our configurations for the VPC, private subnet, route tables, and even Route 53 out of an abundance of caution, but didn't find anything that would suggest our environment is contributing to the issue. My hunch is that the Python 3.8 Lambda runtime supports dual-stack by default, but this is never reconciled with the VPC/private subnet configuration (or a relevant bug exists in the runtime that isn't publicly documented).

@bwhaley We've been running alternat with the fix for a few days now and everything's working as expected 🎉 . Thanks so much!

Released in https://github.com/1debit/alternat/releases/tag/v0.4.9.

Side note: I sorta wonder if this is related to a change in a recent Python 3.8 patch release. I see changes to sockets and urllib in 3.8.19 and 3.8.17. AWS may have bumped the python3.8 runtime and the behavior changed slightly.


socket.io Transport unknown when upgrade licode

I have a project that use licode for many years. Now, i need to upgrade Licode for that project. Before upgrading, licode used socket.io version 0.9. I have found that Licode is using socket.io version 2 now and it make my project failed when make the handshake.
The log that i got from chrome console:
{"code":0,"message":"Transport unknown"}
I have no idea where i should start fixing this bug.

I have the same problem.

did you rebuilt the client?

I use the samples https://github.com/K-GmbH/licodeAndroidClient and https://github.com/jonahzheng/licodeClientForAndroid to test licode, these samples support the socket.io version is too low (0.9.*), and now licode is socket.io 2.


Error when clicked "Train"

System Information (please complete the following information):

Model Builder Version (available in Manage Extensions dialog): 17.17.02332602
Visual Studio Version 2022

Describe the bug

On which step of the process did you run into an issue: https://learn.microsoft.com/en-us/training/modules/predictive-maintenance-model-builder/5-exercise-train-model-builder
Clear description of the problem: error when clicked "Training"

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
Training completed
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
at Microsoft.ML.Data.TextLoader.Cursor.d__33.MoveNext()
at Microsoft.ML.Data.TextLoader.Cursor.MoveNextCore()
at Microsoft.ML.Data.RootCursorBase.MoveNext()
at Microsoft.ML.Data.LinkedRowFilterCursorBase.MoveNextCore()
at Microsoft.ML.Data.RootCursorBase.MoveNext()
at Microsoft.ML.Transforms.ValueToKeyMappingTransformer.Train(IHostEnvironment env, IChannel ch, ColInfo[] infos, IDataView keyData, ColumnOptionsBase[] columns, IDataView trainingData, Boolean autoConvert)
at Microsoft.ML.Transforms.ValueToKeyMappingTransformer..ctor(IHostEnvironment env, IDataView input, ColumnOptionsBase[] columns, IDataView keyData, Boolean autoConvert)
at Microsoft.ML.Transforms.ValueToKeyMappingEstimator.Fit(IDataView input)
at Microsoft.ML.Data.EstimatorChain1.Fit(IDataView input)    at Microsoft.ML.Transforms.OneHotEncodingTransformer..ctor(ValueToKeyMappingEstimator term, IEstimator1 toVector, IDataView input)
at Microsoft.ML.Transforms.OneHotEncodingEstimator.Fit(IDataView input)
at Microsoft.ML.Data.EstimatorChain`1.Fit(IDataView input)
at Microsoft.ML.AutoML.SweepablePipelineRunner.Run(TrialSettings settings)
at Microsoft.ML.AutoML.SweepablePipelineRunner.RunAsync(TrialSettings settings, CancellationToken ct)
at Microsoft.ML.AutoML.AutoMLExperiment.d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ML.ModelBuilder.AutoMLService.Experiments.MultiClassificationExperiment.d__14.MoveNext() in //src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/MultiClassificationExperiment.cs:line 140
--- End of stack trace from pr
MLModel1-H7Z2YZ.txt
evious location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ML.ModelBuilder.AutoMLEngine.d__21.MoveNext() in //src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:line 169

Would you mind sharing the training dataset you have? Looks like it's something wrong with the dataset you have.

close due to no respond, feel free to reopen it if you have any other issues.


More of a thought than an issue

If I'm understanding correctly you're suggesting training a new model with an added layer or conditional NN off the back of a pretrained ancestor model. What I'm wondering is why use the pretrained model, if you're training a model anyway w/ new or the same data why not start fresh, just having a bounding box layer.
Another thing that I was wondering is do you think it may be possible to have a layer in which you give almost explicit general rules for things, such as humans have only five fingers, or similar. I had considered doing this but instead of using bounding boxes, I'd have explicitly stated rules such as pay attention to nouns and adjectives, or follow sentence structure to determine the directive of the prompt. I even wrote up a list of the types of rules that may be applied in such a type of model.
How many bounding boxes does it generally use? For example could you get it to put bounding boxes around pretty much everything down to individual fingers or eyes?
Or is that the reason for the pretrained model, that it has knowledge of what certain things are and it can then label the bounding boxes instead of having to manually do it with millions of images. If that's the case it'd be interesting if it could be applied using a similar technique to create a service that annotates images for any dataset to augment training other people's models.
This is really fascinating work though, I'm excited to see where it can go, and thanks for letting me read about it with the paper and rant a little.

Is that possible to make it as a extention for SD WebUI?

Well if I understood the paper correctly it's training a new model using the image2text generator as a backbone so if you were training a new model with a SD model or any other, and then creating your own WebUI with the new model I'd imagine so. Essentially you'd be inserting this technique into the training process so that it learns to differentiate specific parts of an image so that when you prompt the model it won't ignore a great deal of the prompt. Trouble is, training a good quality model requires a great deal of compute or specialized setup for your process. I've been working on using techniques such as DeepSpeed or ColossalAI in order to make my GPU optimize better because I only have the one GPU.
I hope that was a sufficient enough answer, or perhaps I am missing details on what you're trying to accomplish?

@Shikamaru5 I think starting from scratch would do well too. This paper is definitely one of the more impressive hacks i've seen of SD and overall i think its a step in the right direcction for image gen, making use of grounding boxes for composition.
but i think part of the impressive part of the paper is that you could train a smaller layer and fuse it. I would imagine the net compute for that is far lower than what was required for SD, and its a pretty cool trick overall to extend a model's capabilities by that much without having to train from scratch.

@ethansmith2000 I agree it's definitely a really interesting approach, I feel like this sort of thing is where the more impactful parts of the field are headed.


WIP: ES6 Class Support

[x] Protect the prototype

[ ] Allow constructor to have private access

[ ] Support static properties

Coverage remained the same at 91.667% when pulling 10e678be303974e03dc2b3912d49588286951d5c on ES6 into efe5d1048794a97bbaf6f19ae9501283fcbb684b on master.

Coverage remained the same at 91.667% when pulling 10e678be303974e03dc2b3912d49588286951d5c on ES6 into efe5d1048794a97bbaf6f19ae9501283fcbb684b on master.

Coverage remained the same at 91.667% when pulling 10e678be303974e03dc2b3912d49588286951d5c on ES6 into efe5d1048794a97bbaf6f19ae9501283fcbb684b on master.


Add previousSibling and previousElementSibling

Hi,I can't find previousSibling and previousElementSibling in caniuse,could you?

https://dom.spec.whatwg.org/#dom-node-previoussibling
https://dom.spec.whatwg.org/#dom-nondocumenttypechildnode-previouselementsibling

Available via MDN now:

https://caniuse.com/?search=previousSibling
https://caniuse.com/?search=previousElementSibling

Probably primarily:

https://caniuse.com/mdn-api_node_previoussibling
https://caniuse.com/mdn-api_element_previouselementsibling


Expand the readme to include what this repo is and why should I use it

So we know what what honeycomb gives us and why it exists.

Thanks! :bread:


Is there a way to add clear all?

Is there a way to add clear all selected item as a function?
Thank you.

add this in TagListView class
   open func deSelectAll(){

        for tag in self.tagViews {
            tag.isSelected = false
        }

    }

You can add a category that extends the TagListView class and use @tarek903’s method.


Remove *space from two URLs as they are wrong

The URL was * vortex-win.data.microsoft.com and * settings-win etc. But this is not valid. Also it is not *.vortex-win and *.settings-win, as the Azure Log Analytics URL page at https://docs.microsoft.com/en-us/windows/deployment/update/windows-analytics-get-started lists them like this. So this edit it to introduce consistency across articles and have correct URLs listed.

@dansimp
The PR that introduces URL fixes is available for review. Thanks.


Removing a product from a case should use investigation_product

The services here were still pointing to investigation.product instead of investigation_product
This was leading to product being not able to be removed from cases if other adjacent investigation products had already been added with the same product parent.
https://regulatorydelivery.atlassian.net/browse/PSD-1401

Looks good to me, but would be good to add a feature test with the scenario described in the ticket


Alerting for missing runs

When a run is supposed to be executed nightly, missing the results should trigger an alert.

Implemented.


New features sugestion

Hey, congratulations that's a very nice lib, but I have a couple of questions:
1 - Will inline hooking be available for remote hooking?
2 - Is it possible to hook functions inside x64 process from x86 one(using heaven's gate)? will this feature be implemented in a near future?
3 - I'm trying to build the project for WinXP(v120_xp) and I got a lot of errors, is there any way to build it for WinXP?

I'm working on hook injection. It will available as one of the hooking methods.
No. x86 process can't catch debug events of x64 process properly.
There is a project configuration for XP.

Will it work with some kind of IPC? If so, which IPC lib are you planning to use?

No. It won't do any IPC. You just write a hook and then inject it. After that it operates only inside target process.

@DarthTon How I can contact with you
Can you give me your email address?

Any chance of SSDT hooks in the future?

I can implement some basic functionality. But the whole driver is designed to be PatchGuard compatible, whereas SSDT hooking is not. Also as you already said it's pretty easy for others to add hooking using existing stuff.

Yes, just pure convenience for me. I looked into it but don't have everything set up for driver development. If you were to add an example that was commented/disabled that would be great starting point. Either way thanks for taking the time to consider. Great Project.

obregistercallbacks is not a really good solution for protecting hwbps, you should use hypervisor to do the work

@aeo24 there is a paper on phrack showing how to use hwbps to protect itself

@chico-depressive Do you have a link?

http://phrack.org/issues/65/8.html


src/styles.scss compression

Hi, I put all my components styles in src/styles.scss where I import other styles in it
@import 'style/vendors/_base';
@import 'style/core/_base';
@import 'style/modules/_base';

I do this to gain access to variables and mixins, but it appears that the CLI doesn't compress it before adding it to the head, is this intended or will it be fixed in the future?

Hm, can you elaborate on what you mean by this bit?

the CLI doesn't compress it before adding it to the head

@filipesilva  I mean the file src/style.scss doesn't get minified

Got it. Will investigate.

having the same issue on v1.0.0-beta.17
styles.scss is not being processed into css

Partially solved by https://github.com/angular/angular-cli/pull/2593

The CSS is minified. See the output style.js in your build dir.
What you're seeing in the head is the CSS from the JS file appended to head by the webpack plugin style-loader. This will be changed in #2646 as "outside of app" styles will compiled to a .css file instead of .js.
@filipesilva Can be closed.


[Exception] DatabaseException(database is locked (code 5 SQLITE_BUSY[5]): , while compiling: PRAGMA journal_mode

I'm writing my data in one bloc and reading and showing it to feed from another bloc. I'm dispatching my db_read_bloc after insert is finished(there is an await). I'm getting this exception in my db_read_bloc.

[Exception] DatabaseException(database is locked (code 5 SQLITE_BUSY[5]): , while compiling: PRAGMA journal_mode

Stack trace:
#0 wrapDatabaseException (package:sqflite/src/exception_impl.dart:11)

#1 SqfliteDatabaseFactoryImpl.wrapDatabaseException (package:sqflite/src/factory_impl.dart:29)
#2 _SqfliteDatabaseBase&Object&SqfliteDatabaseMixin.safeInvokeMethod (package:sqflite/src/database_mixin.dart:183)
#3 _SqfliteDatabaseBase&Object&SqfliteDatabaseMixin.openDatabase (package:sqflite/src/database_mixin.dart:503)

#4 _SqfliteDatabaseBase&Object&SqfliteDatabaseMixin.doOpen (package:sqflite/src/database_mixin.dart:594)

#5 SqfliteDatabaseOpenHelper.openDatabase (package:sqflite/src/database.dart:32)

#6 _SqfliteDatabaseFactoryImpl&Object&SqfliteDatabaseFactoryMixin.openDatabase. (package:sqflite/src/factory_mixin.dart:100)

#7 ReentrantLock.synchronized.. (package:synchronized/src/reentrant_lock.dart:33)
#8 _rootRun (dart:async/zone.dart:1124)
#9 _CustomZone.run (dart:async/zone.dart:1021)
#10 _runZoned (dart:async/zone.dart:1516)
#11 runZoned (dart:async/zone.dart:1463)
#12 ReentrantLock.synchronized. (package:synchronized/src/reentrant_lock.dart:32)

#13 BasicLock.synchronized (package:synchronized/src/basic_lock.dart:31)

#14 ReentrantLock.synchronized (package:synchronized/src/reentrant_lock.dart:28)

#15 _SqfliteDatabaseFactoryImpl&Object&SqfliteDatabaseFactoryMixin.openDatabase (package:sqflite/src/factory_mixin.dart:66)
#16 openDatabase (package:sqflite/sqflite.dart:150)
#17 _SqfliteDelegate.open (package:moor_flutter/moor_flutter.dart:68)

#18 DelegatedDatabase.ensureOpen (package:moor/src/runtime/executor/helpers/engines.dart:260)

#19 QueryExecutor.doWhenOpened (package:moor/src/runtime/executor/executor.dart:26)
#20 SimpleSelectStatement._getWithQuery (package:moor/src/runtime/statements/select.dart:191)

#21 SimpleSelectStatement.get (package:moor/src/runtime/statements/select.dart:187)

#22 WaveDao.getAllWavesWithOpinion (package:leher/databases/feed/daos/wave_dao.dart:112)

#23 UserFeedDbBloc._mapUserFeedDbToState (package:leher/blocs/user_feed_db/user_feed_db_bloc.dart:34)

#24 UserFeedDbBloc.mapEventToState (package:leher/blocs/user_feed_db/user_feed_db_bloc.dart:21)

#25 Bloc._bindStateSubject. (package:bloc/src/bloc.dart:127)
#26 Stream.asyncExpand.onListen. (dart:async/stream.dart:513)
#27 _rootRunUnary (dart:async/zone.dart:1132)
#28 _CustomZone.runUnary (dart:async/zone.dart:1029)
#29 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931)
#30 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336)
#31 _DelayedData.perform (dart:async/stream_impl.dart:591)
#32 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:707)
#33 _PendingEvents.schedule. (dart:async/stream_impl.dart:667)
#34 _rootRun (dart:async/zone.dart:1120)
#35 _CustomZone.run (dart:async/zone.dart:1021)
#36 _CustomZone.runGuarded (dart:async/zone.dart:923)
#37 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963)
#38 _rootRun (dart:async/zone.dart:1124)
#39 _CustomZone.run (dart:async/zone.dart:1021)
#40 _CustomZone.runGuarded (dart:async/zone.dart:923)
#41 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963)
#42 _microtaskLoop (dart:async/schedule_microtask.dart:41)
#43 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)

What I feel is to wait for the write lock to release, then perform the read

It seems like the database is opened twice for some reason. Moor should actually prohibit this, so this seems like a bug. I'll try to reproduce this locally. Just to be sure:

both of your blocs always use the same database instance, right?
you're not changing the singleInstance parameter on FlutterQueryExecutor

Check this pattern if it helps
@UseMoor(tables: [Wave, Opinion], daos: [WaveDao, OpinionDao])
class FeedDatabase extends _$FeedDatabase {
  // we tell the database where to store the data with this constructor
  FeedDatabase._internal()
      : super(FlutterQueryExecutor.inDatabaseFolder(path: 'feed.db'));

  static FeedDatabase _instance = FeedDatabase._internal();

  factory FeedDatabase() => _instance;
  @override
  int get schemaVersion => 1;
}

Check this pattern if it helps
class FeedDatabase extends _$FeedDatabase {
  // we tell the database where to store the data with this constructor
  FeedDatabase._internal()
      : super(FlutterQueryExecutor.inDatabaseFolder(path: 'feed.db'));

  static FeedDatabase _instance = FeedDatabase._internal();

  factory FeedDatabase() => _instance;
  @override
  int get schemaVersion => 1;
}

I couldn't reproduce the issue you're describing. Your setup of first running an insert and then selecting right afterwards should be similar to this one
// inside the feed database
Future reproduce() {
  await into(...).insert(...);
  await select(...).get();
}

Does the error only occur with your bloc setup or can you write a method on your FeedDatabase that throws a similar error when called before anything else?

Does that issue still occur when you add this to your pubspec?
dependency_overrides:
  moor:
   git:
    url: https://github.com/simolus3/moor.git
    ref: fix-open
    path: moor/
  moor_flutter:
    git:
      url: https://github.com/simolus3/moor.git
      ref: fix-open
      path: moor_flutter/

We had a bug that sometimes opened a database more than once, I think it is very likely that the bug has also caused this problem. I've fixed the bug with version 1.7.2 of the moor package. Can you try running flutter clean and then flutter packages upgrade? Let me know if you still run into any issues.

We are on moor_flutter: ^4.0.0 and got SqliteException(5): database is locked, database is locked (code 5)
:/ Not happy so far (This is happening in production with a new client, not good impressions)

I'm also experiencing same issue

@nivla360 We actually got around it by adding a lot more code to check the database status. It was a long time ago though. But this is what we've ended up with:
 Future<void> _registerAppDatabase({int tryCount = 0}) async {
   if (!GetIt.I.isRegistered<AppDatabase>()) {
     String databasePath = '';
     AppDatabase? appDatabase;
     try {
       databasePath = await FileManager.getDatabasePath();
       final queryExecutor = await AppDatabase.getConnection(databasePath);

       appDatabase = AppDatabase(queryExecutor);
       await appDatabase.testAllTables();

       GetIt.I.registerSingleton<AppDatabase>(appDatabase);
     } catch (error, stack) {
       await Analytics.trackException(
         EventTag.RegisterDatabase,
         error.toString(),
         stack,
       );

       if (appDatabase != null) {
         await appDatabase.close();
       }
       if (GetIt.I.isRegistered<AppDatabase>()) {
         GetIt.I.get<AppDatabase>().close();
         GetIt.I.unregister<AppDatabase>();
       }

       await FileManager.deleteFileIfExist(databasePath);

       if (tryCount < 5) {
         await _registerAppDatabase(tryCount: tryCount + 1);
       } else {
         throw error;
       }
     }
   } else {
     print('[GetIt] <AppDatabase> already registered');
   }
 }

@nivla360 We actually got around it by adding a lot more code to check the database status. It was a long time ago though. But this is what we've ended up with:
 Future<void> _registerAppDatabase({int tryCount = 0}) async {
   if (!GetIt.I.isRegistered<AppDatabase>()) {
     String databasePath = '';
     AppDatabase? appDatabase;
     try {
       databasePath = await FileManager.getDatabasePath();
       final queryExecutor = await AppDatabase.getConnection(databasePath);

       appDatabase = AppDatabase(queryExecutor);
       await appDatabase.testAllTables();

       GetIt.I.registerSingleton<AppDatabase>(appDatabase);
     } catch (error, stack) {
       await Analytics.trackException(
         EventTag.RegisterDatabase,
         error.toString(),
         stack,
       );

       if (appDatabase != null) {
         await appDatabase.close();
       }
       if (GetIt.I.isRegistered<AppDatabase>()) {
         GetIt.I.get<AppDatabase>().close();
         GetIt.I.unregister<AppDatabase>();
       }

       await FileManager.deleteFileIfExist(databasePath);

       if (tryCount < 5) {
         await _registerAppDatabase(tryCount: tryCount + 1);
       } else {
         throw error;
       }
     }
   } else {
     print('[GetIt] <AppDatabase> already registered');
   }
 }

Thanks for your suggestion. However, I resolved this by quitting/stopping the app and running it again. I realized hot restarting it, was causing the issue. It seems GetIt doesn't properly dispose the database class when the app is restarted.

I’m encountering this issue exclusively on Android devices, particularly on low-end models in production, but I can't replicate it in testing. It seems related to activities starting multiple times or being restarted. I attempted to use a cached Flutter engine tied to the application process lifecycle, which resolved the database locked error but introduced other issues.
Is it possible to reuse a database connection or close it when an activity is destroyed?

@Murmurl912 One thing to try is to use singleton connection but when there are no more queries to be run, close the connection. Create a queue and once the queue is empty, close the connection. Haven't tried this but seems like it will clear up resources for low-end devices.

I’m encountering this issue exclusively on Android devices, particularly on low-end models in production, but I can't replicate it in testing. It seems related to activities starting multiple times or being restarted. I attempted to use a cached Flutter engine tied to the application process lifecycle, which resolved the database locked error but introduced other issues.
Is it possible to reuse a database connection or close it when an activity is destroyed?

I discovered that my issue was actually caused by a third-party plugin crashing on activity.onDestroy(), which prevented the Flutter engine from properly close. As a result, when a new engine is created, it also establishes a new SQLite connection, leading to multiple open connections.

@Murmurl912 Glad you sorted it


TW Elements Nuxt integration

After I successfully installed the project step by step according to the installation document, there was no problem with the style, and the console did not report errors, but JS did not take effect, such as drop-down and carousel components, JS did not take effect, and there was no error.

Hi @hutong9, I've checked this and everything works for me. Please, provide a snippet of your code and then I'll try to help you.
Here is my sample code - it may help you with debugging yours:
<template>

    <button
      class="flex items-center whitespace-nowrap rounded bg-primary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:bg-primary-600 focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:outline-none focus:ring-0 active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] motion-reduce:transition-none dark:shadow-[0_4px_9px_-4px_rgba(59,113,202,0.5)] dark:hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)] dark:active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.2),0_4px_18px_0_rgba(59,113,202,0.1)]"
      type="button"
      id="dropdownMenuButton1"
      data-te-dropdown-toggle-ref
      aria-expanded="false"
      data-te-ripple-init
      data-te-ripple-color="light"
    >
      Dropdown button

        <svg
          xmlns="http://www.w3.org/2000/svg"
          viewBox="0 0 20 20"
          fill="currentColor"
          class="h-5 w-5"
        >
          <path
            fill-rule="evenodd"
            d="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"
            clip-rule="evenodd"
          />
        </svg>

    </button>

        Action

        Another action

        Something else here

</template>

@iprzybysz Great, I used your code without errors, he is perfect, thank you very much


RTSP urls on rtsp settings page showing incorrectly with double quotes surrounding channel name

Small issue, the Mainstream and Substream urls on the RTSP/ONVIF Access settings page in the web ui has double quotes in the channel name but the actual endpoints don't have the double quotes.
e.g. it shows rtsp://thingino:thingino@<IP_ADDRESS>:554/"ch0" which doesn't work unless you remove the double quotes.

This was using wyze_c3_t31al_atbm

is this still an issue in the latest builds?

This also occurs on the wuuk Y0510 just on the substream URL

fixed in https://github.com/themactep/thingino-firmware/commit/baf2b561a1245d2fb6fa0d98022c79975738e59b


docs: add solana:signIn

Reference: https://github.com/solana-labs/wallet-standard/blob/master/packages/core/features/src/signIn.ts

Sorry, just saw this. Thanks!


Implement Notification Templates

Connect to issue #174. See #174 for detailed specifications.

Coverage decreased (-0.9%) to 98.248% when pulling 925bac276ba69127df43efce6403b355b4986a91 on jangsutsr:issue174 into 698ab20e61f98fe7f91f11f45a86fb3d1f88e602 on ansible:master.

Coverage decreased (-0.6%) to 98.599% when pulling b66304f611272c542bb0803c72efd88d646af7f2 on jangsutsr:issue174 into 698ab20e61f98fe7f91f11f45a86fb3d1f88e602 on ansible:master.

Coverage decreased (-0.5%) to 98.718% when pulling 4df7b836c138ab26d2eeb909a23cde7eba585fe0 on jangsutsr:issue174 into 698ab20e61f98fe7f91f11f45a86fb3d1f88e602 on ansible:master.

Coverage decreased (-0.5%) to 98.718% when pulling 4df7b836c138ab26d2eeb909a23cde7eba585fe0 on jangsutsr:issue174 into 698ab20e61f98fe7f91f11f45a86fb3d1f88e602 on ansible:master.

Coverage decreased (-0.6%) to 98.601% when pulling b6737351eb741d17bb5eae7d4fc9b2a55c9e8077 on jangsutsr:issue174 into 1270bddf4177e2bc18fc085d0b8d5790684343c8 on ansible:master.

I give this my 👍 . This is an impressive contribution. There are many complex faucets that must be handled for this resource, and they all appear to be covered.


Add Radium

This pull request intends to address #2.
Despite Radium not yet being compatible with React 0.13 (https://github.com/FormidableLabs/radium/issues/92), I think there are other implications that can be discussed in the meantime.
The [Radium docs](https://github.com/formidablelabs/radium/blob/master/docs/guides/media-q
ueries.md) say this:

To start, choose a high level component in your app where you will initialize your media queries. Any components that should use your media queries should be descendents of this component.

Note: this means descendent as in view hierarchy, not class inheritance.
Since this project didn't have a single high level component, the first commit introduces an app router which is loosely based on the [shared root example](https://github.com/rackt/react-router/blob/master/examples/shared-root/a
pp.js) from React Router.
While there are further potential changes in this area to bring Essential React closer to the given example, those are not (yet) addressed here.
The second commit outlines how Radium could/would be added. These changes have been left as comments in order to keep the project compatible with 0.13 and allow any further refactoring of components.

Concerns

It seems odd to be setting up media queries inside a router but I'm not sure if/how a high level app component can be introduced in another way.

Although the MatchMediaItem mixin is being applied to pages I did wonder if it should instead be applied to LoggedInRouter and LoggedOutRouter.

Should the project be refactored and brought closer to the React Router example, some of these concerns might be redundant.

There are other aspects to Radium which have little (if any) implications and have yet to be implemented for that reason.
Looking for some input from @pheuter on how best to proceed.

Coverage remained the same at 88.7% when pulling ff0cad841267a16cacc00c50bc1c7d15dd3a50bf on paulyoung:radium into 95df1fdfbf62a588cf238eb2ccefa8f36b50d8e0 on pheuter:master.

Unfortunately ES6 launched without any mixin support. Therefore, there is no support for mixins when you use React with ES6 classes. Instead, we're working on making it easier to support such use cases without resorting to mixins.

Source: https://facebook.github.io/react/docs/reusable-components.html

Nice! Will take a look when I get the chance. Some people have expressed that Radium may not be considered an "essential" part of a React app, especially considering its controversial approach to styling and potential lack of cross-browser support, which is why I haven't been too actively pursuing it. Nonetheless, the potential is still there and I think it may still have a place in this skeleton.

Yeah, feel free to close if you want.
I still think the React Router example is worth a look even if Radium is not included.

Any news on this topic?


Search - "Invite a friend, get [amount]$" banner is not displayed on Search page

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: v9.0.50-0
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5091856
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause Internal Team
Action Performed:

Log in to new dot with any account
Press ctrl + k to open the search page
Check the bottom of the user list

Expected Result:
There's a banner in the user list that says "Invite a friend, get [amount]$"
Actual Result:
There's no banner in the user list that says "Invite a friend, get [amount]$"
Workaround:
Unknown
Platforms:

[ ] Android: Standalone
[ ] Android: HybridApp
[x] Android: mWeb Chrome
[ ] iOS: Standalone
[ ] iOS: HybridApp
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/22a76b69-b94c-4787-a045-b3ecde33474b

View all open jobs on GitHub

TY! Closing


feature: include a few sample docs/ to render in the UI as techdocs

I was looking at the demo site and noticed no examples of techdocs. I wanted to see how documentation looks with the aperture theme.

If the demo site can support it, it would be nice to surface a few sample docs as examples. I don't mind opening a PR, but I started with an issue to see if there is a reason why that doesn't exist.
Thanks!

I think there might be a bug, there are docs for the Backstage entity -  https://demo.backstage.io/catalog/default/component/backstage/docs - but they don't show up under docs for some reason 🤔

Not as issue in a fresh instance created with npx @backstage/create-app@latest, the Demo is currently on 1.21.0-next.2 so maybe its in one of the latest next releases

Can replicate with latest from the main backstage/backstage repo. Not an issue with the Demo but going to keep this open until there is a fix 👍

PR with a fix is here: https://github.com/backstage/backstage/pull/21719

Going to close this as the fix has been merged, is part of the release that came out yesterday, and have been deployed today 🚀


Add supported GCC attributes for IAR compiler

The GCC attribute warn_unused_result is supported by the IAR compiler starting from version 9.40.1.

Thanks! At some point it might make sense to add this for clang too.


Pl3xmap marker format

What is the marker file format like? I'm using the fabric version and I wanted to create some markers in the config/pl3xmap/markers folder for people's houses, but couldn't figure out the format from the code.

Sir, this is a bug tracker. Not a Q&A board. Join us in discord where I have answered this very question multiple times (even with examples) ;)


The Celebrity Problem

Description
In a party of N people, only one person is known to everyone. Such a person may be present in the party, if yes, (s)he doesn’t know anyone in the party. We can only ask questions like “does A know B? “. Find the stranger (celebrity) in the minimum number of questions.
We can describe the problem input as a vector of numbers/characters representing persons in the party. We also have a hypothetical function Have Acquaintance(A, B) which returns true if A knows B, false otherwise. How can we solve the problem.
I will provide enough explanation of this question using both brute-force and its optimized approach.
Domain
Algorithm
Type of Contribution
Addition
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of LearnCPP.

/assign this issue to me

Please assign this to me I am gssoc participant and want to work on this issue.. As I have already solved this problem

Please assign this to me I am gssoc participant and want to work on this issue.. As I have already solved this problem

sorry I had already completed this issue .


Hash bang syntax not portable

In your fuct launch scripts you have #!python however on Debian Jessie that results in:
python: bad interpreter: No such file or directory
As it uses it as a path. Because Python is found in various places on various OSes, a better approach that I learned from John's 'haruspex' tool is to include it as #!/usr/bin/env python2 or similar.

Forgot to answer this but the env has been used already and I think it's the distutils that strips it out from the final package when doing the build. This might need some tweaking to get it right if it's actually causing trouble.

Doh. Should have known that you'd be doing it properly and it was a gotcha. Yes, I think it does/did cause issues. Haven't tried it on Ubunut Bionic, but might do shortly just because. I have my "fuct-dev" package installed so it should just work, aside from possibly this.

BUILD FAILED - Missing plugin dependency 'pypandoc~=1.3.0': Installing collected packages: pypandoc
sudo pip install --upgrade pypandoc
pycollada 0.4 has requirement python-dateutil==1.5, but you'll have python-dateutil 2.6.1 which is incompatible.
[INFO]  Installing plugin dependency pypandoc
[ERROR] Failed to install 'pypandoc':
Uninstalling pypandoc-1.4:
fred@karma:~/fuct/target/dist/fuct-0.9.1$ fuctloader
bash: /usr/local/bin/fuctloader: python: bad interpreter: No such file or directory
Yeah, still an issue.

Ok, i'll look into this. The build script might also need some work to finish the python3 changes.

Yeah, and I'll need to fork my fuct-dev into fuct-py27-dev and fuct-py3-dev
:-)
Any thoughts on those errors/issues? Seems to work without it, minus the
script. Does readme need updating to add that package maybe at a specific
version? Not sure, super tired right now.
On 24 June 2018 at 00:00, Ari Karhu<EMAIL_ADDRESS>wrote:

Ok, i'll look into this. The build script might also need some work to
finish the python3 changes.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MrOnion/fuct/issues/2#issuecomment-399671593, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AACQd9lu3nkOhzAoa_tmhqzUIwiBMrxdks5t_i3bgaJpZM4LdV3r
.

The pybuilder distutils plugin creates the broken shebang scripts and when you run 'python setup.py install' they are copied as-is. Although it's not mandatory to have them ready as the setup.py can produce them as well. For example if you clean the current build dir before installing by running 'python setup.py clean install', then the correct (your env) interpreter path is used. That could be added to the readme...
One way to generate working script files from the start could be to force the pybuilder distutils plugin to use overridden interpreter path that is the env one. Not clean, but you will end up with scripts with either the env path or the current system path which should both work.

There is a workaround now in dev branch. Feel free to test it out.


Move "deprecate" and "merge" to "util" directory

Preserve sources original structure in CommonJS and ES builds

Coverage increased (+0.1%) to 94.175% when pulling b46f3b1f9887f2ecb58648c9d93de6547f6344f7 on util into b5893ebbff61449476d058552fc3849fce9fca4a on master.

Coverage increased (+0.1%) to 94.175% when pulling c10c0885915ff71be3030cae33c5612488ce4be8 on util into b5893ebbff61449476d058552fc3849fce9fca4a on master.


FAIR dataset deletion

[ ] I added an entry to CHANGELOG.md if knowledge of this change could be valuable to users.

Here is a brief summary of what I did:

Associated user uploads with user datasets.
Allow new combination of meta data/data deletions.
Allow for expiration of datasets (deletion after a specified time).

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

1369 of 1424 (96.14%)  changed or added relevant lines in 9 files are covered.
22 unchanged lines in 12 files lost coverage.
Overall coverage increased (+0.05%) to 90.741%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

services/src/datasets/upload.rs
35
36
97.22%

services/src/pro/datasets/storage.rs
94
95
98.95%

services/src/pro/api/handlers/datasets.rs
140
160
87.5%

services/src/pro/datasets/postgres.rs
1058
1091
96.98%

Files with Coverage Reduction
New Missed Lines
%

services/src/api/handlers/layers.rs
1
88.87%

services/src/datasets/external/netcdfcf/mod.rs
1
94.74%

services/src/datasets/external/edr.rs
1
85.72%

services/src/datasets/external/netcdfcf/ebvportal_api.rs
1
88.35%

services/src/datasets/postgres.rs
1
88.8%

services/src/pro/datasets/postgres.rs
1
87.61%

services/src/api/handlers/datasets.rs
1
95.52%

services/src/datasets/create_from_workflow.rs
1
89.62%

services/src/api/handlers/workflows.rs
1
90.22%

services/src/datasets/external/pangaea/mod.rs
2
83.03%

Totals

Change from base Build<PHONE_NUMBER>:
0.05%

Covered Lines:
134486

Relevant Lines:
148208

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

1374 of 1429 (96.15%)  changed or added relevant lines in 10 files are covered.
28 unchanged lines in 16 files lost coverage.
Overall coverage increased (+0.05%) to 90.738%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

services/src/datasets/upload.rs
35
36
97.22%

services/src/pro/datasets/storage.rs
94
95
98.95%

services/src/pro/api/handlers/datasets.rs
140
160
87.5%

services/src/pro/datasets/postgres.rs
1058
1091
96.98%

Files with Coverage Reduction
New Missed Lines
%

services/src/datasets/external/netcdfcf/mod.rs
1
94.79%

services/src/datasets/external/netcdfcf/ebvportal_api.rs
1
88.35%

services/src/datasets/postgres.rs
1
88.8%

services/src/api/handlers/datasets.rs
1
95.52%

services/src/api/handlers/wcs.rs
1
88.71%

services/src/api/handlers/wfs.rs
1
96.29%

services/src/api/handlers/workflows.rs
1
90.22%

services/src/api/handlers/projects.rs
1
98.59%

services/src/api/handlers/layers.rs
2
88.8%

services/src/contexts/postgres.rs
2
97.76%

Totals

Change from base Build<PHONE_NUMBER>:
0.05%

Covered Lines:
134479

Relevant Lines:
148206

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

1311 of 1390 (94.32%)  changed or added relevant lines in 10 files are covered.
14 unchanged lines in 8 files lost coverage.
Overall coverage increased (+0.04%) to 90.728%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

services/src/datasets/upload.rs
35
36
97.22%

services/src/pro/datasets/storage.rs
51
52
98.08%

services/src/pro/api/handlers/datasets.rs
138
158
87.34%

services/src/pro/datasets/postgres.rs
1036
1093
94.78%

Files with Coverage Reduction
New Missed Lines
%

services/src/datasets/external/netcdfcf/mod.rs
1
94.79%

services/src/pro/users/postgres_userdb.rs
1
96.16%

services/src/datasets/external/edr.rs
1
85.72%

services/src/datasets/external/netcdfcf/ebvportal_api.rs
1
88.35%

services/src/pro/contexts/postgres.rs
1
97.02%

services/src/pro/datasets/postgres.rs
1
86.27%

services/src/datasets/external/pangaea/mod.rs
1
83.36%

services/src/datasets/external/netcdfcf/ebvportal_provider.rs
7
91.91%

Totals

Change from base Build<PHONE_NUMBER>:
0.04%

Covered Lines:
134429

Relevant Lines:
148167

💛  - Coveralls


attempt to index field 'diagnostics_by_buf' (a nil value)

I'm only using
lua require'nvim_lsp'.pyls.setup{on_attach=require'diagnostic'.on_attach}
but I'm getting the following error message:

Error executing vim.schedule lua callback: ...al/share/nvim/plugged/diagnostic-nvim/lua/diagnostic.lua:75: attempt to index field 'diag
nostics_by_buf' (a nil value)

Almost everything related to LSP stopped working.

Try updating neovim to the latest master branch, it should fix that.

Sorry, I shouldn't have posted the issue in the first place.


Make timeout an internal parameter.

Summary by CodeRabbit
Release Notes for Version 1.5.0

New Features

Introduced enhanced error handling and timeout management for improved connection reliability.
Updated the changelog to reflect version 1.5.0 and internal parameter changes.

Bug Fixes

Improved timeout assertions in connection tests for both standard and legacy connections.

Documentation

Updated CHANGELOG.md to include new version entry and internal changes.

Chores

Updated project configuration for Python compatibility and linting rules.

Ignoring the Sonarcloud issue for now.


fix(drag-drop): stop dragging sequence on touchcancel

Adds handling for the touchcancel event to the the DragDropRegistry.
Also makes the unit tests slightly more strict.

Where did we leave off on this PR?

If I remember correctly, we talked about having a method to abort a dragging sequence, but the PR got buried under some other work and I never got around to adding one.

Any update on this? I would like to be able to stop a DnD when user presses ESC key.

@crisbeto Are there any updates for this PR?

There aren't any updates, I haven't had the time to revisit it.

Superseded by #30184.


Update index.md for a hands-on feature

Added a new feature to try out mailto: feature in the tryit editor v3.5 via W3 schools for a hands-on experience.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

@undevxyz Unfortunately, we are not accepting W3Schools URLs right now. We hope you will try again with a different PR.


help(mat-sidenav): mat-sidenav doesn't working locally

What are you trying to do?
Animate the mat-sidebar on close
What troubleshooting steps have you tried?
The animation doesn't work locally but the exact same code works in stackblitz
Reproduction
We can only help if we can reproduce the problem ourselves.
https://angular-j6qqqa.stackblitz.io
https://github.com/dcp3450/sidenav-test
Steps to reproduce:

The stackblitz menu will close when the menu button is clicked
If you run the github code locally, it won't

Environment

Angular: 9
CDK/Material: 9
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): Windows

I realized I was using Material v6 with Anguar v9. Updated Material and things are working.


SharePoint.DownloadFileContent() overloads

Adds two DownloadFileContent() overloads to the SharePoint client, that might come in handy in several cases.

@dynaway-kmi, do you have any thoughts on this?

Hi All,
Is there a chance to see these changes merged into Master and published soon?
I am very interested in this addition.
Thanks

This one is replaced by #22988


disk config page bugs

the disk config page is no longer up to date, missing the nvme + par0 attributes.
probably remove it all together as its been a source of problems a few times due to miss-configuration

cleaned it up for f20v2 no more red lines  + it shows the nvme disk brand now also


1.3.0-rc3 and newer has breaking dependency changes

Upgrading to metrics 4.0.2 in rc3 has breaking collision.
We're using cassandra-driver-core 3.4.0 and it's based on metric 3.2.2.
Is it's possible to move 1.3.x release to metrics5 ?
Stack trace:
INFO  [2018-02-27 16:46:59,196] com.datastax.driver.core.NettyUtil: Did not find Netty's native epoll transport in the classpath, defaulting to NIO.
java.lang.NoClassDefFoundError: com/codahale/metrics/JmxReporter
at com.datastax.driver.core.Metrics.(Metrics.java:113)
at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1467)
at com.datastax.driver.core.Cluster.init(Cluster.java:159)
at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:330)
at com.datastax.driver.core.Cluster.connect(Cluster.java:280)
Referencing: https://github.com/dropwizard/metrics/issues/1248

@phambryan We won't downgrade Dropwizard Metrics in Dropwizard 1.3.0.
I'm afraid you'll either have to stay on Dropwizard 1.2.x for that particular project or wait until the Cassandra driver upgrades to Dropwizard Metrics 4.x (which seems to have happened for Cassandra Java Driver 4.0: https://github.com/datastax/java-driver/pull/937).


Serial reconnection without loader not working (again)

I remember that it worked at some point... need to fix this. Now user need to reconnect the cable each time when working without loader.

Forcing app reload from console fixes this but the problem is still actual

Currently due to the fact that project code has been rewritten and moved to NW.js I can't tell if it's fixed or not (In 1.1.0 it never occurred on any tests). I'm closing this issue but it's possible that it will be reopened in future.


Incorrect number of bytes for basic report command?

Looking at the specs, it seems that the basic report should be either 3 bytes (command class, command, value) or 5 bytes (command class, command, current value, target value, duration), depending on the version implemented.
In the code it expects 6.
https://github.com/Roba1993/rzw/blob/a0b08c56aed0c10ce6c068f8b060e52b97d05681/src/cmds/basic.rs#L29
Is this a bug, or do I misunderstand?
Thanks!

Hi @youngmit
this should be correct for the v1 of the protocoll - for v2 this of course wrong.
Here are where the the single bytes should mean:
0 --> Node ID
1 --> Message Length
2 --> Command Class
3 --> Command
4 --> Value

Hi @youngmit
yes it was also a bug - I fixed it with the last commit.
I just deep dived into the code and I must say, in the last three years I learned a lot more about Rust...
Some parts of the code have a really bad style.
Because I anyway redevelop my Home automation right now, I will spent some time now, to update this crate to a Rust 2018 edition and fix some flaws in the design.

Yeah, I noticed that there were some peculiar parts of the crate. Let me know if there's anything I can do to help out.

Yeah it's a mixture of 3-4 people committed code and tried to adopt it to their use-cases.
I'm analyzing right now the crate from the bottom to top.
You can help here, to identify the critical sections if you want - 4 eyes are better then 2.
Maybe we can also have a video session, to review it together.


The Fifth Discipline: The Art & Practice of the Learning Organization

https://en.wikipedia.org/wiki/The_Fifth_Discipline
https://www.thoughtexchange.com/the-11-laws-of-systems-thinking-and-stakeholder-engagement/

The 11 Laws of Systems Thinking and Stakeholder Engagement
Systems thinking as a way of looking at the world. It’s the only way to look at and navigate a complex adaptive system like the the education system. Peter Senge identified 11 Laws, or truths, that leaders can use to guide the way through the rough waters that so often plague education. This post describes how community engagement can be used reduce the unintended consequences of decisions and ensure clear sailing.

Today’s problems come from yesterday’s solutions.

We love to solve problems. There is feeling of satisfaction that occurs when we lay that last puzzle piece, reach a decision or solve a difficult problem. The problem is that every “problem” we face today, in education, in the environment, even in our personal lives owes it very existence to a well meaning step we individually or collectively, took yesterday. Decisions we make today often become tomorrow’s problems. The solution – engage your community to help identify, frame and solve the problem.  A large, diverse group will see the problem from all angles is more likely to anticipate unintended consequences.

The harder you push, the harder the system pushes back.

This is, in systems thinking parlance, “compensating feedback”. This happens in conversation, government programs, business and personal wellness efforts. In conversations we often try to argue our point by disagreeing with the other person. Our “push” helps them strengthen their position. We make them think and fight harder. Social programs are rampant with examples of community improvement initiatives that resulted in worse conditions. Government aims to improve the living conditions for a group in one part of town result is more people moving into the area, placing an unsupportable burden on the systems in place.  Beware of the word “intervention”. If you see it or hear it know that what it really means is “we will push hard” and be ready to experience the consequence. To avoid this, let the system find its own solutions. Heed Margaret Wheatley counsel:
… a living system forms from shared interests, all change results from a change in meaning, every living system is free to choose whether it changes and, systems contain their own solutions.
The role of leadership is to invite people in, engage the community and create a safe environment where ideas can grow.

Behavior grows better before it grows worse.

The best depiction of this concept is from the Arnie Levin’s cartoon of the man about to knock over a circle of dominos. As the dominoes begin to fall there is a release as immediate pressure is relieved but after a delay the problem returns. Sometime this is seen when organizations are more concerned with impression control than dealing with the actual problem. Engaging stakeholders in problem solving and solution finding can virtually eliminate this, provided the arena for engagement reduces bias and allows ideas and potential solutions to rise above personalities and politics.

The easy way out usually leads back in.

Kaplan called this the law of the instrument saying ”Give a small boy a hammer, and he will find that everything he encounters needs pounding”. Maslow reframed this saying “If all you have is a hammer, everything looks like a nail”.  This is a comfort zone challenge. When something works we like to reuse it. This happens when we try to apply “best practices” to complex problems. Engaging your community members provides much needed insight and a diverse set of tools to apply to the problem.

The cure can be worse than the disease.

This is also called “shifting the burden” and is easy to confuse with the push/push back law. It’s slightly different though and can occur at the same time. The “cure” in this case is an intervention that is enabling and becomes addictive. As dependence on the intervention increases the system’s ability to cure itself lessens. This is about the difference between giving a man a fish and teaching him how to fish. If an intervention is needed then we have to make sure the intervention doesn’t weaken the entire system causing more and more dependence. In some ways public education shifted the burden of teaching children from parents to teachers. Engaging stakeholders in defining problems and finding solutions keeps the burden where it belongs, shared across the entire system and not just on one part of it.

Faster is slower.

The story of the tortoise and the hare suggests that when we try to move too fast we can get left behind. Every system has it own unique and optimal speed. This kind of thinking is often articulated as “fixing” things. When you hear something like  “We’re bringing in a consultant (or hiring a new manager) to fix things around here”, be very wary. A fast fix often leads to a slow cure.  Finding sustainable solutions can take time. Community members may need time and space to absorb and adjust to new ideas or changes. The pay value of slowing the pace is a more involved and supportive community.

Cause and effect are not closely related in time and space.

How many times do you push an elevator button? How often have you over compensated for the amount of cold water in the shower? We tend to believe that when we do something there should be an effect that we can see within a set amount of time. All of our testing, funding and business practices reflect this belief. The challenge is that sometimes there is a clear and present relationship between cause and effect. Just not all the time. When you actively inform, engage and include your community you provide them with an opportunity to see the real space between cause and effect.

Small changes can produce big results – but the areas of highest leverage are often the least obvious.

Butterfly wings and hurricanes. This is the law of leverage. Small, focused actions at the right place in the system can produce the biggest and best changes. The challenge is that the “right place” is not obvious and can seem counterintuitive. Donella Meadows describes 12 places of leverage in a system and close to the top of the list is the goals of the system. Some say that the education system isn’t working. I think it works quite well given the original goal of producing factory workers. Right now the goal is changing, in part because of changes in technology that allow education system stakeholders to collaborate and cooperate and influence the goals of the system. See #6 and 7 above.  A great example of small, counterintuitive actions are the use of insects to control insects. Wasps are introduced in many a greenhouse as a way to control other insects that feed on the greenhouse crop. Brilliant, effective and not the most intuitive solution. The key to being able to use leverage in a system is knowing the structure of the system. In education the structure is massive and very few people know it well enough to intuit where the leverage points are. Here again including a large, diverse group of stakeholders and using their collective intelligence can help find those points.

You can have your cake and eat it too – but not at once.

Black and white, either/or thinking courtesy of  Mr. Newton. In so many instances we think something is an either/or problem when in fact its a dilemma that can become both/and if we change how we think of the problem and allow time for solutions to work. Invite stakeholders into the process of imagining possible solutions and potential long term outcomes.

Dividing an elephant in half does not produce two small elephants.

Inability to see the system as a whole can create world of problems. In the education system…well that’s one BIG elephant and it’s almost impossible for one person to see the entire thing. The best approach is to have more eyes looking at the elephant from different angles and vantage points.  What works for the trunk will probably be the worst possible solution for the tail. This doesn’t mean you can work within boundaries it just means that staying aware of the whole, using multiple, diverse perspectives and attending to how the parts interact will be more helpful and less messy.

There is no blame.

In a complex adaptive system there is no separate “other”. Everything and everyone is connected and together we co-create the whole system. Sometimes we have difficulty with this. We reflex to blame, we deflect, and deny. Its hard to take full responsibility for something that seems to be outside of our control without trying to control everything. It can feel like two competing ideas and for many that feeling is uncomfortable.
The challenge, in this century, is being brave and making the choice to invite those we see as adversaries, into the process. Inviting community into problem solving and decision making won’t rock the boat as many fear. Rather they will provide the ballast to keep an even keel in any storm.


Pin fiddle to 0.2.2 so that tests run with pip install

Goals :soccer:

Enable tests to run in Python 3.8
Implementation Details :construction:

Pins dev dependency fiddle to enable tests to run Python 3.8 environment.
This causes errors in Models tests in core PRs.
Testing Details :mag:

n/a

rerun tests


Error in tutorial code #2

https://github.com/jaanos/LVR/blob/c808d4bcad1cbc76f8c7782648abaec974e2d431/tutorials/2017/thursday/boolean.py#L68
Let's say that we have an example of x = boolean.Not(boolean.Variable('x')), in this case, there is an infinite recursion.
The solution would be to add a new elif as follows:
elif isinstance(self.x, Variable):
            return self

Thanks - I've used your code, so af6a00e is attributed to you.


docs(readme): Update README.md

WIP, according to https://github.com/probabl-ai/skore/issues/411

Since it's WIP i'll mark it as draft

IMHO we miss the pip install line in the quickstart section.

For a first iteration, it looks good to me, what do you think?

@sylvaincom this snippet will fix the README.md for you.
python -m pip install --upgrade pip
python -m pip install --upgrade pre-commit

pre-commit run --all-files check-yaml
pre-commit run --all-files check-toml
pre-commit run --all-files check-added-large-files
pre-commit run --all-files check-merge-conflict
pre-commit run --all-files detect-private-key
pre-commit run --all-files end-of-file-fixer
pre-commit run --all-files trailing-whitespace
pre-commit run --all-files typos

See new issues #468 & #467


ANN integration with hypergraph construction

Hi there! For large high dimensional datasets, could some ANN library like HNSW be integrated into construct_H_with_KNN ? Maybe called construct_H_with_ANN?
Thanks!

Good suggestion. Thanks!

We will release a deep-hypergraph operation library soon. The ANN operator will be included.

Awesome. Looking forward to it!

Our hypergraph deep learning library is available on https://github.com/iMoonLab/THU-torch_hyperg.

Thank you! Wonderful work!


Fix iframe permission errors

trying to intercept https://tamper.dev interestingly fails with permission errors when the youtube iframe is there.
this is probably because of permissions, as activeTab does not seem to grant access to all frames.
weirdly http://evilwebsite.com/xss.php?frame_xss=//evilwebsite.com./xss.php does not exhibit this behavior.

https://bugs.chromium.org/p/chromium/issues/detail?id=1158234 fixes that.
For YouTube and Drive, it seems to be possibly related to Chrome Apps for those origins. We might need to ask the user to delete the apps (ugh!)

https://bugs.chromium.org/p/chromium/issues/detail?id=1158234 fixes that.
For YouTube and Drive, it seems to be possibly related to Chrome Apps for those origins. We might need to ask the user to delete the apps (ugh!)


Gage distance to outlet

Adding an attribute "distance of gage to catchment outlet, as proportion of reach length" could help to account for the error associated with using attributes that are computed for catchment outlets while gages are upstream of the outlet.

Options from Lauren Koenig:
There is not a helper function that I'm aware of in nhdplusTools to do that. I think the approach I would take is to densify the matched flowline, and then snap the gage site to the nearest densified point/node along the flowline. Then I think I could create a new linestring that is the most downstream one and compute the length of it (or, if the densified points were equally spaced, e.g. 1 m, you could probably just count up the nodes in between). This seems doable, although computing the distance may or may not work readily.
Another option you could consider is to use the igraph package in R (there's a python version to) to coerce the network into a directed graph and compute distances between nodes that represent gage locations and downstream vertices.

the flow accumulation grids in nhd could also be useful. The most downstream grid cell in a catchment should have the highest fac value. with the gage snapped to the flowline, you now have 2 points along the flow line. you could split the flowline by those points and use rgeos::gLength in R, or gProject if you don't want to split the flowline. I've never used either of those but they look like they should work.
i have not used nhdplusTools much unfortunately.
might be a fun little project...i might do some experimenting later.

just posting that i made a script that does this for 1 gage at a time, would need to be (easily) modified to do it for full list of gages. we can come back to it later.

Compare drainage areas from NWIS (p1_drainage_area in square miles), SB (ACC_BASIN_AREA in square kilometers), and nhdPlus (TotDASqKM in square kilometers). Compare absolute and percent differences (small gages may have high percent difference, see issue #9).

Charlie: Could be an analysis post-processing evaluation instead of being used as a feature in the prediction model.


Use xcinfo tool to manage multiple Xcode versions on your machine

Install and manage multiple Xcode versions easily.

thanks @lordcodes !


Toast thread safety

Hi,
I have a web app (blazor) that is connected to a server via signalr. The web app has a scoped IMatToaster service.
When the app receives two notifications in very quick succession it throws an exception.  Should IMatToaster be thread safe?
Thanks.
Update: I get lots of Index out of bounds type exceptions when I have multiple simultaneous toasts. If I disable all but one of the notifications (without any other changes to my code), the issue goes away.
Second Update: please see the screen grab below

From a user's perspective IMatToaster definitely should be thread safe. Looking at the [current implementation] you can see it isn't at all. I would grab this issue if I'm allowed to ✌

Hi MatBlazor people. Are you reading these threads? @chris579 identified that my hunch was right about thread safety, but I haven't heard from you here for 3 weeks. Is MatBlazor not supported?
Thanks,     Simon

Having the same problem when there are multiple toasts on screen, ArgumentOutOfRangeException happens time to time and crashes everything. I'll just have to remove toasts if this doesn't get fixed soon.

From a user's perspective IMatToaster definitely should be thread safe. Looking at the current implementation you can see it isn't at all. I would grab this issue if I'm allowed to ✌

Found thread safe implementation. Just need to be copied here


Add data commons to data section

DataCommons.org from Google organizes publicly available data so it can be queried and used in a variety of ways.

Created pull request to address.


update doc and requirements.txt

May rebase main to fix linting check

failed when installing lmdeploy under python3.10
          raise VersionConflict(dist, req).with_context(dependent_req)
      pkg_resources.ContextualVersionConflict: (markdown-it-py 3.0.0 (/home/lvhan/projects/llmdeploy/.eggs/markdown_it_py-3.0.0-py3.10.egg), Requirement.parse('markdown-it-py<3.0.0,>=1.0.0'), {'mdit-py-plugins'})
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

When I run "python deploy.py ...", an error is raised:
    import torch
ModuleNotFoundError: No module named 'torch'

@APX103 could you help verify the quick start mentioned in the readme?

Verified, all tests passed @lvhan028


[Feature Request] add Linux support

I'd be very interested as well!

We are also looking for Debian support.

+1 this. Would also add that this shouldn't be built for just Debian. there are Fedora and Distro X users out there too ;-) just use simple tech that's available everywhere. Maybe an electron App or something like that?

Linux is the only one that has security-oriented distributions like Tails.
How come that all of the relatively less secure operating systems get clients but Linux doesn't?
Since the Outline server is only on Linux, the client could obviously reuse the networking infrastructure code...The UI is web based...So, this should be an easy thing to implement.
Seems like this project and its owners are actively hostile to Linux (since this glaring omission cannot be explained in any other way).

Hence the tweet https://twitter.com/ibnesayeed/status/977038976660987904

Hi! Are there any expectations on when the linux client will be available?

@Project-Owners
Please, make a statement about the your plans and expected release date of the Linux client !

They could distribute it using Snap || Flatpak ... Well it's Google, they did not create a GDrive client for Linux until now and quite frankly I believe they just aren't interested. Time to use an actually FOSS-supporting product here, the devs don't seem to be interested in it.

Was alerted to this issue in https://github.com/dlenski/openconnect/issues/100 …
I would definitely advocate for extending the cross-platform open-source openconnect VPN client to support Outline. It already has…

multi-protocol support,
a well-thought architecture for separating the authentication and tunnel stages
a standard cross-protocol interface to routing setup (vpnc-script
a codebase that already integrates parsing and generating HTTP requests, XML, an cross-platform efficient event loop, and DTLS and ESP

All this made it relatively straightforward for me to add support for the GlobalProtect VPN protocol to openconnect after reverse-engineering the protocol.
Outline ought to be even easier given appropriate protocol documentation. (Does this document exist outside of the client and server codebases?)

Outline uses the Shadowsocks protocol, and is compatible with most Shadowsocks clients (including existing clients for Linux).  The protocol is documented at http://shadowsocks.org/en/spec/Protocol.html

Outline uses the Shadowsocks protocol, and is compatible with most Shadowsocks clients (including existing clients for Linux). The protocol is documented at http://shadowsocks.org/en/spec/Protocol.html

Ah, that's good to know. Thanks. I saw some press blurb about the connection to Shadowsocks, but didn't realize it actually uses the same wire protocol. It appears that the Shadowsocks protocol is itself based on SOCKS5 (documented in rfc1928).
That's great!

Since Electron supports Linux desktops, a possible shortest path forward here is to start from the Windows client, which already packages up the UI as an Electron app, and swap out the Windows-specific bits for Linux-specific bits. Higher variation among different Linux distributions makes features like "auto-configure as the system proxy" more difficult to guarantee, but limiting support for those to the top N most popular Linux desktops could hit a good sweet spot.

Indeed, porting the Electron frontend should be straightforward, but it's not clear what the right approach is for the network configuration backend.  This is an open-source project, so I would encourage anyone who wants to give this a try to send us a pull request.

While mac os client was broken, I used just ShadowsocksX-NG (macos ss client) without any vpn. The browse's traffic was going though outline server ok (while all other traffic was passing by the tunnel). Seems, that for linux the same approach may work. But it would be great if somebody share experience how to complement the shadowsocks with proper vpn setting.

Just Info:
I've compared Outline VS OpenVPN via stunnel (Streisand project).
Connection to the Outline-based server shows 2-3 time higher speed then connection to the Streisand-based server (in the same circumstances).
So, using Outline on linux too makes a lot of sense.

For those who will search how to connect to Outline Server from Ubuntu 16.04:

Get your connection link. It should look like: ss://ZW5jX3Byb3RvY29sX25hbWU6cHdkCg==@<IP_ADDRESS>:1122/?outline=1

Decode your password and server's encryption method name:

$ echo 'ZW5jX3Byb3RvY29sX25hbWU6cHdkCg==' | base64 --decode

Install some software:

sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
sudo apt-get update
sudo apt install shadowsocks-libev
sudo apt-get install polipo

Start ss-local and polipo. This combination will serve shadowsocks -> socks -> http proxy for you. That's the only way I found to make both browser & terminal to work good.

sudo service polipo stop
ss-local -s <IP_ADDRESS> -p 1122 -k password -b <IP_ADDRESS> -l 1080 -m encryption_method_name -u &
sudo polipo socksParentProxy=localhost:1080 &

Set system HTTP proxy as localhost:8123. System -> Network -> Network Proxy -> Manual.

Set export http_proxy=http://localhost:8123 in a terminal where you want to use this proxy.

Hope Outline team will brew linux client one day 🙏 It will be really helpful!

It would be nice to note here if this approach wraps not all the traffic but only browser's.

@ZergZe as well it's only for apps which are ready to work with proxy. Some of them need additional setup.

hi @Matvey-Kuk, why need sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y not official?

@hbakhtiyor To install latest shadowsocks-libev via apt. It's shadowsocks-libev's offical apt repository. See https://github.com/shadowsocks/shadowsocks-libev#install-from-repository

guys you can install shadowsocks the easy way
pip install shadowsocks

after 6 months still there's no Linux client.
i hope that they are working on it.

+1

why still no linux client?

Folks, please see https://github.com/Jigsaw-Code/outline-client/pull/393 which should get us a beta, at least, client for Linux.

Folks, I'm going to close this now that the Linux client is available for download from getoutline.org and the invitation page supports it.

How to connect with this client to existing ss:// link?

@quantum13 Just copy&paste it

@studentmain sorry, I've run outline manager instead of client :)

hi! how can I use it in non-desktop environment. like command line only?


Version 1.3.1 iOS build failed

I install version 1.3.1 but when I build on XCode, it failed, it just works on android.
It works when I install version 1.3.0 on both android and ios.
This is screen shot link XCode build error:
https://drive.google.com/open?id=17Sc-shNodRmdcywdXpFESQ7Zb-gjxDzW
"react-native": "0.61.5",
"@react-navigation/native": "^5.0.0",
XCode 11.3.1 (11C504)

Reverted the commit, and published v.1.3.2


Asp.Net MVC Core: “Error unprotecting the session cookie” exception

I have an Asp.NET MVC application with this Authentication setup:
ConfigureServices():
services.AddSession()
services.AddAuthentication(sharedOptions => sharedOptions.SignInScheme = CookieAuthenticationDefaults.AuthenticationScheme);

Configure():
		app.UseCookieAuthentication(new CookieAuthenticationOptions());
		app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions
		{
			ClientId = "xx",
			Authority = "xx",
			Events = new OpenIdConnectEvents { OnRemoteFailure = this.OnAuthenticationFailed }
		});

		app.UseSession();

When hosted in IIS, some users get this exception:
Microsoft.AspNetCore.Session.SessionMiddleware,
      Error unprotecting the session cookie.
System.Security.Cryptography.CryptographicException: The key {9ec59def-874e-45df-9bac-d629f5716a04} was not found in the key ring.
   at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status)
   at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.DangerousUnprotect(Byte[] protectedData, Boolean ignoreRevocationErrors, Boolean& requiresMigration, Boolean& wasRevoked)
   at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData)
   at Microsoft.AspNetCore.Session.CookieProtection.Unprotect(IDataProtector protector, String protectedText, ILogger logger)

I have run this on the hosting server https://github.com/aspnet/DataProtection/blob/dev/Provision-AutoGenKeys.ps1
Web has only HTTPS binding, SSL certificate is ok and signed. What might cause this issue? What actually is that "key" value?

I can also see a lot of these:
11/30/2016 18:10:28:warn: Microsoft.AspNetCore.Session.DistributedSession[2]
Accessing expired session, Key:21d8f9ed-4013-2e65-d884-651a6f0060a0

Any update on this. This is happening in cluster a lot. A session cookie value created on one instance is unable able to be unprotected by a different instance. Is there any basic setup for DataProtectionOptions for session management in cluster.

The machine is not in a cluster or farm. Each requested is server by the same machine, by the same IIS site.

We resolved it by adding the redis as persistence store using DataProtectionBuilder.

@kalluri-nb Nice, how can I resolve it? What should I change in the Setup.cs?

@kalluri-nb: Can you share your implementation?

@skorunka Where are your keys being persisted? This is strange, it looks like the keyring can't get created at all. Have you tried, as a stop gap, persisting the keyring to the file system anywhere?

@blowdart Hi, I'm using defaults. How can I setup where the keys are persisted? Or how can I know where they are actually persisted?

It tries to figure out the right place depending on machine configuration. The log files will tell you, if you're logging at informational.

@kalluri-nb what do you mean by

We resolved it by adding the redis as persistence store using DataProtectionBuilder.

could you please show an example?

@blowdart may this issue an issue #228 are related

This issue was moved to aspnet/Home#2520


Unknown published storage format: s3

I'm having an issue publishing a snapshot to S3 using the Homebrew aptly (0.9.5):
$ aptly publish snapshot ltb-project-wheezy-2.4.44 s3:s3_example
ERROR: unknown published storage format: s3

$ aptly version
aptly version: 0.9.5

$ uname -a
Darwin mymac.local 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:20:09 PST 2015; root:xnu-3248.30.4~2/RELEASE_X86_64 x86_64

Figured it out...was missing the trailing :


Deluge Not Running delugePostProccess.py

I have been running your converter scripts for a while, and no matter what I do I cannot get the Deluge execute to run after a torrent finishes. I have dug through all the past issues on here and none of the solutions provided a fix.
Autoprocess.ini is as follows:
[Deluge]
host = <IP_ADDRESS>
username = convert
convert = True
password = M2Nv4q7MqjFkryokXPXoNZHbacpyZizT
sonarr-label = sonarr
bypass-label = bypass
sickbeard-label = sickbeard
port = 58846
sickrage-label = sickrage
couchpotato-label = couchpotato
output_directory =
remove = false
radarr-label = radarr

Sonarr applies the label of sonarr to all Deluge torrents. Nothing in the logs shows up for Deluge unless I trigger it manually. Script is executable.
Deluge execute is set as
"Torrent Complete" Path:/home/MYUSERNAME/sickbeard_mp4_automator/delugePostProcess.py
Attempted to enable debug logging in logging.ini, but there is no section for Deluge and I dont want to add lines that might mess up the other logging.
I did find that Deluged has two config paths. One located in:
/var/lib/deluge/.config/deluge (auth file is contained in there and I have added the credentials)
and
/home/MYUSERNAME/.config/deluge (auth file is contained here as well, and credentials added. I am not sure which one is main config file. I thought they might be symlinked. But they were not)
After some searching issues about Deluge not executing scripts. I followed the support article from them to verify is a script will execute before adding it to the daemon. Deluge execute command:
./delugePostProcess.py "TorrentID" "Torrent Name" "Torrent Path"

This completes without error.
There seem to be a ton of people that have problems getting Deluge running correctly with the script and I haven't seen an actual solution yet. Hoping that you can help me out.
Please let me know if I need to provide anymore information.
Thanks for all your hard work. This script bundle has saved me so much time.

Think the problem will be the location of the script, I have mine on the root of the C drive as having it under my profile kept giving me problems. I believe this is due to security as windows ends to lock down a users folder from Apps and others.
Also its worth just quickly running through the read me steps again as sometimes python will download a bad file or a step was over looked by mistake.

@morpheus2n2 This is on an Ubuntu Linux server. So I dont think its a problem with it being nested in a profile. I have verified that all the permissions are correct and I am able to call the deluge execute command via terminal with no problem.
I saw you previous post about the pip install gevent being further down in the deluge section and I verified that I did not miss that step when setting everything up. Also, according to python -v I am running 2.7 yet deluge still fails.

So after giving up for months on this. I decided to try and fix this problem again.
The only way I could get delugePostProcess.py to work is by editing deluged/deluge-web to run as root. While this is very insecure. It does work. Previously, my systemd launch script was set to run as a "deluge" user. No logs were even tracked for failure. I even tried to run it as my server user with no luck either. If you have any suggestions on permissions levels for the "deluge" user that most people set up to run the service, please let me know.
If anyone comes here looking for a solution, verify that it will run when deluged/deluge-web is ran as root. I don't recommend keeping it like this though.

@rpoovey I was running into a similar issue but I decided to create a user called ffmpeg to own all the sickbeard_mp4_automation files...
adduser --disabled-login ffmpeg
...and added my deluge user to the ffmpeg group.
usermod -aG deluge ffmpeg
then fixed some permissions for group read and execute...
chmod -R 755 "/the entire sb_mp4_auto_dir"
chmod 775 "/sb_mp4_auto_dir/info.log"


Remote URL as variable, not hardcoded on controller

I'd like to propose a change, so that the remote-url parameter supports the remote URL being used as variable, instead of being hardcoded on the controller, so you could use a URL fetched from a configuration file.
For instance: <angucomplete-alt remote-url="{{variableURL}}"/>

Never mind, I made a mistake in my controller, inputting the URL as such works. Sorry for the noise.


How to Access Data Files along with Binary

I compiled a program successfully, but the the program cannot access data files along with it.
like open("./data.bin", "rb")

Hello, I was that problem when use static files on program to fix it I copy file(s) on specific path inside .exe directory, in your case you must move data.bin file to directory where has your .exe file, I hope work.

You should use os.path.join(os.path.dirname(__file__), "data.bin") as the filename. Using the ./ makes you dependent on the current directory, not a good idea.

Also, pkgutil.get_data(package, resource) is a good idea, ought to work too.


Help text template needs minor changes

Template layout/help_text.html:
{% if field.help_text %}
    {% if help_text_inline %}
        {{ field.help_text }}
    {% else %}
        {{ field.help_text }}
    {% endif %}
{% endif %}

With Bootstrap 5, .form-text no longer sets the display property; therefore both help labels should use .form-text, but different tags (span for inline, div for block) or .d-* modifier classes.
Furthermore, .form-text applies $form-text-color, which defaults to $text-muted; therefore, .text-muted may be omitted.

Hi @SFr682k thanks for the report.
I'm still working through this but I wonder if the change is more than just the class/tags? The example of in-line help text also wraps each item in a div with col-auto. In Bootstrap4 they used to be siblings of each other? 🤔
Do you have any views on this?
https://getbootstrap.com/docs/5.1/forms/overview/#form-text
https://getbootstrap.com/docs/4.6/components/forms/#help-text


US International Keyboard Layout in Windows 10 fails at compose keypresses

When you press quote key (or one of those keys that serve as composers of characters), instead of waiting for next key to be pressed before writing into buffer, it immediately writes the quote. The second key get correctly printed, but there's now an unexpected quote char before the one I wanted.
When I pressed <'> I did expect no ouput until next key press, but ' was printed instead.
When I pressed <'>+<a> I did expect á being printed, but 'á was printed instead.
When I pressed <'>+<space> I did expect ' being printed, but '' was printed instead.
When I pressed <">+<a> I did expect ä being printed, but "ä was printed instead.
When I pressed <^>+<a> I did expect â being printed, but ^â was printed instead.
Possibly solved by #445.

repeat of https://github.com/Kethku/neovide/issues/445. This should be fixed once the new keyboard api lands

I thought that would be the case, but wasn't sure, as I am using a US QWERTY keyboard (just happening to be using international layout). May I suggest rewording #445 title, so it is more evident that it is a bag for NON US QWERTY STANDARD LAYOUT INPUT related issues?
A great frontend for nvim. anyway. Thanks for the cool work (wish I knew enough Rust to help).

Done. I highly recommend picking up rust :) I knew very little when I started this project either


⚠ Jenkins Plugins Artifactory has degraded performance

In 4371edd, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1279 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 95a2aa6 after 17 minutes.


[docs] Wrap html input tag in preformatted tags

The tag was rendering as an actual radio button (here)

[x] I have followed (at least) the PR section of the contributing guide.

Heya—appreciate the PR! Can I ask you to change the target branch to next instead of master? Feel free to either do it here or create a new one if there are too many conflicts (might be simpler).


SDC-12695 Extract timestamp and timestamp type in Kafka Multitopic Consumer

In Kafka Consumer, we can get record timestamp and timestamp type if set Include Timestamps property to true. But not yet in Kafka Multitopic Consumer.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 4 committers have signed the CLA.:x: jarcec:x: tinawenqiao:x: jeff303:x: dougsfoYou have signed the CLA already but the status is still pending? Let us recheck it.


feature: Improve discoverability of error messages

Did you check the docs?

[X] I have read all the LazyVim docs

Is your feature request related to a problem? Please describe.
When there are config errors its hard to find helpful logs. Since LazyVim is using noice you cannot find the errors in the regular 'messages' view and instead have to go to 'Noice'. For new users its really hard to know why the error messages doesnt show up when you type 'messages', and its hard to look through all the plugins to find which one is responsible for error messages.
Screencast from 2023-04-24 20-32-16.webm
Describe the solution you'd like
There are a few alternatives

make 'messages' show the messages from noice aswell, or give you a message to use Noice instead.
have a FAQ or troubleshooting page where you say to write 'Noice' for error messages
Maybe make a dedicated log system, like LazyLog

Describe alternatives you've considered
I included them in the solution
Additional context
No response

You've disabled nvim-notify, or configured noice to show all messages in the mini view. That's not ideal.
Furthermore, those are vim.notify messages. And won't be shown in messages.


SPIKE: Summarize phase 2 options

There are 3 options for how to get multi-tenancy:

Hierarchical namespaces
Vcluster
Manipulating the resource names & labels in the same namespace

Write up pros & cons for all of them.

Outcomes:
Hierarchical namespaces
It is an official extension of Kubernetes provided by a SIG.
The HNS controller is required to install before using sub-namespaces.
To create a subnamespace, you need to use the controller's custom resource.
The subnamespace is a real Namespace with all permissions inherited from its parent (which must be specified when creating it).

vcluster
Vcluster is a real tiny Kubernetes cluster (based on K3s) that can be installed inside a Kubernetes namespace.
We get full control (cluster-admin rights) of this vcluster because its control plane is just another user workload. Interestingly, all workloads deployed to a  vcluster will be delegated to run on the "host" cluster. So pod-to-pod communication just works.

Suffix as a Session
See

Updated vcluster's service mapping.


[Bug] graphman copy list can fail

Bug report
When the destination (maybe also the source) of a copy operation becomes unused but has not been removed yet, graphman copy list will fail with an error Error: store error: NotFound
The code should take this corner case into account.
Relevant log output
------------------------------------------------------------------------------
deployment           | Qm...
action               | sgd1 -> sgd2 (shardx)
Error: store error: NotFound

Some information to help us out

[ ] Tick this box if this bug is caused by a regression found in the latest release.
[ ] Tick this box if this bug is specific to the hosted service.
[X] I have searched the issue tracker to make sure this issue is not a duplicate.

OS information
None

thanks @lutter! when you say "The code should take this corner case into account.", can you clarify what you think the expected behaviour should be?

The code for graphman copy list should account for the destination to be unused and supply reasonable default values/output for whatever is causing the failure


object is not extensible

Running "sprite:sprite" (sprite) task
sprite path : ----- tmp\sprite
Fatal error: Cannot define property:34, object is not extensible.

Can you provide more details about your configuration (e.g. configuration itself, node version)?

Closing issue due to inactivity


We're still releasing universal (i.e. py2k and py3k) wheels

Whoops. As of d21808c38f4925bacce681b245dd2ad95e0758af Python 2 is no longer supported

Oh. yeah. we should probably clean that up.

This is resolved in 850f75792495af4b491d48fa151a3e2db9ba00db