merge package template from Kronos-Tools/npm-package-template

Updated standard to latest version

Codecov Report

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

@@          Coverage Diff           @@
##           master    #163   +/-   ##
======================================
  Coverage    97.5%   97.5%
======================================
  Files           1       1
  Lines         120     120
======================================
  Hits          117     117
  Misses          3       3

Continue to review full report at Codecov.

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


Updating doc

How to register rules
The new after and before rules were also explained

Will merged until all available rules have been explained
Or maybe you or someone wanna fix my bad grammar here :)

I think its ok now

@emsifa sorry for the late reply.. I have been busy with school stuffs.. I would go over the doc properly again to find improvements


Results inconsistent across different runs

I am testing a basic setting of DM on the amazon itunes dataset, and using embeddings='fasttext.wiki.vec'
I have re-run my code 5 times, but each time the results are different. I have fixed the random states but this still happens. Can this be addressed, and if so, how? Many thanks (and please see details below).
My code can be found here:
The data I used are identical to what are used on this page.
Results from the five runs on the same dataset, using the same settings:
Run1:
Loading best model...
Training done.
===>  EVAL Epoch 5
Warning: No valid output stream.
Finished Epoch 5 || Run Time:    0.1 | Load Time:    0.4 || F1:  83.08 | Prec:  79.41 | Rec:  87.10 || Ex/s: 204.57

Run2
Loading best model...
Training done.
===>  EVAL Epoch 10
Warning: No valid output stream.
Finished Epoch 10 || Run Time:    0.1 | Load Time:    0.4 || F1:  85.25 | Prec:  86.67 | Rec:  83.87 || Ex/s: 191.32

Run3
Loading best model...
Training done.
===>  EVAL Epoch 4
Warning: No valid output stream.
Finished Epoch 4 || Run Time:    0.1 | Load Time:    0.4 || F1:  84.85 | Prec:  80.00 | Rec:  90.32 || Ex/s: 210.95

Run4
Loading best model...
Training done.
===>  EVAL Epoch 4
Warning: No valid output stream.
Finished Epoch 4 || Run Time:    0.1 | Load Time:    0.4 || F1:  87.10 | Prec:  87.10 | Rec:  87.10 || Ex/s: 215.67

Run5
Loading best model...
Training done.
===>  EVAL Epoch 12
Warning: No valid output stream.
Finished Epoch 12 || Run Time:    0.1 | Load Time:    0.4 || F1:  83.08 | Prec:  79.41 | Rec:  87.10 || Ex/s: 213.78

I think I found the answer - posting here for future reference
This happens because of the randomness in torch. Adding the following lines will fix it:
random.seed(SEED)
torch.manual_seed(SEED)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False


Wildcard question: allow one excluding rest

I have tags lower level log messages by suffixing them with :debug.   They stay off using -myapp:*:debug.  In the DEBUG wildcards, is there a way to enable just one (like app:json-sig:debug) or must I enable all by pattern or break them out by name some other way?

这个myapp:json-sig:debug的debug后缩


AppSync API was not found in region

** Which Category is your question related to? **
Amplify add codegen appId
** What AWS Services are you utilizing? **
Amplify, Angular, AppSync, Cognito
** Provide additional details e.g. code snippets **
So I'm building 2 apps. A ticket system.
The first is the admin center where they generate tickets. I generated all the Auth, API at this project and published to a working URL. Works perfect.
Now I need to build another project (the customer view) which connect to the same resource. I can manually configure Auth to connect to the previous Cognito pool and that works fine.
IM now trying to pull (codegen) all the graphQL code to this customer project and so i run the command amplify add codegen --apiId xxxxxxxxxxx.
However I get the following response:
AppSync API was not found in region ap-southeast-1
I have chosen all the different regions and of course it wont work, because I am very sure the appsync api is created in ap-southeast-1.
Im not sure how else I can pull the graphql statements.
Someone please help, or please suggest how I could build another project and still connect to the same resource of a different project.
Thank you

@vikibaarathi are you using the same amplify credentials in both the projects?

Closing this issue due to lack of requester comments and abiity to not reproduce this behavior with the latest version of the CLI. Please feel free to re-open this if you're still sseeing the issue.


Cannot find module "kindergaten/decorators"

Hi there!
I'm just trying to get started in Kindergarten and I'm having trouble in importing decorators. I'm using v1.5.2 in OSX 10.13, and I'm importing just like in read me:
import { sandbox }  from 'kindergarten/decorators';

The Sandbox class is successfully imported from 'kindergarten' package, but not the decorator - which is exactly what I need 😕
Any help?
Thanks!
Edit:
It works if I import like this:
import { sandbox }  from 'kindergarten/lib/decorators';

Hi @ammichael,
thanks for pointing this out! I have updated the README for now, but I will find create a shortcut to import those easier as soon I will find time to do so.


Use HashSet for DuplicateKeyChecker

The current DuplicateKeyChecker implementation uses a Vec<String> to store previously seen keys. This leads to an O(n) time-complexity when we check if a key is already present in the keys collection.
In order to improve the time-complexity of this checker, we can use a HashSet<String> which has O(1) time-complexity (on average) for the contains operation.

Codecov Report

Merging #113 into master will not change coverage by %.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #113   +/-   ##
=======================================
  Coverage   88.01%   88.01%
=======================================
  Files          11       11
  Lines        1001     1001
=======================================
  Hits          881      881
  Misses        120      120

Impacted Files
Coverage Δ

src/checks/duplicated_keys.rs
84.61% <100.00%> (ø)

Continue to review full report at Codecov.

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

@TamasFlorin Thank you for your contribution! 💪
Could you update your branch from the master branch and then fix the merge conflict?

@TamasFlorin Thanks a lot! You're awesome! ❤


BACK-4682 - add static crypto assets to dynamic cal

📝 Description
This pull request does 2 simple things:

Split modules into JSON + ts module for all static assets (cardano,
cardano, elrond, solana, stellar, tron), so that the JSON file can be
directly included in the dynamic CAL CDN
Move static asset definitions to crypto-assets-importer (importer just
copies it to ledgerjs data folder), to prepare for next step where the
definitions will move to upstream crypto-assets repository

Note: hydrating all those currencies from CAL CDN is not implemented in this PR.
❓ Context

Impacted projects: ``
Linked resource(s): ``

✅ Checklist

[ ] Test coverage
[ ] Atomic delivery
[ ] No breaking changes

📸 Demo

🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.

It looks like Babel is not happy with named tuple members: Tuple members must be labeled with a simple identifier.... maybe babel/babel#13702 ? What do the experts think, should I remove the names ?


Preset window dimensions are really messy (under wayland)

Is there an existing issue for this?

[X] I have searched the existing issues.

Is this issue related to iced?

[X] My hardware is compatible and my graphics drivers are up-to-date.

What happened?
Defining the size of the window using settings.window.size is wildly inconsistent. With settings.window.resizable set to true, the width is the number of pixels passed in, but the height has ~35 pixels added to it. With resizable set to false, both the height and width are  ~20 pixels extra. I measured this as best I could with the apt package screenruler's graphical screen ruler. These numbers aren't 100% precise but they are consistent.
What is the expected behavior?
When I pass dimensions into the settings.window.size setting, the window should be created with those dimensions.
Version
crates.io release
Operating System
Linux
Do you have any log output?
No response

Some digging has led me to believe this is only an issue on Wayland. :(

Yep, no problem on Windows either. This is totally a wayland thing.

I believe this is an upstream winit issue. Winit handles creating the window with the given dimensions and should take the frame into account.

Not sure what makes this the case, but the current master branch of iced doesn't have this problem. :shrug:

I looked at the changelog to see if there was anything addressing it. Must have been fixed by proxy of some other change.

Most likely fixed by #2191.


RFE: Don't link to MPI Fortran interface libraries

It would be nice if the OpenCoarrays MPI library would link only to the C MPI library.  At least with openmpi, it currently links also to the Fortran interface libraries. E.g. on Ubuntu 18.04 using the system
openmpi 2.1.1-8:

 > ldd lib/libcaf_mpi.so
        linux-vdso.so.1 (0x00007ffec4589000)
        libmpi.so.20 => /usr/lib/x86_64-linux-gnu/libmpi.so.20 (0x00007f2f98eaa000)
        libmpi_usempif08.so.20 => /usr/lib/x86_64-linux-gnu/libmpi_usempif08.so.20 (0x00007f2f98c7a000)
        libmpi_usempi_ignore_tkr.so.20 => /usr/lib/x86_64-linux-gnu/libmpi_usempi_ignore_tkr.so.20 (0x00007f2f98a74000)
        libmpi_mpifh.so.20 => /usr/lib/x86_64-linux-gnu/libmpi_mpifh.so.20 (0x00007f2f9881d000)
        libgfortran.so.4 => /usr/lib/x86_64-linux-gnu/libgfortran.so.4 (0x00007f2f9843e000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2f980a0000)
        libgcc_s.so.1 => /home/janne/src/gfortran/trunk/install/lib64/libgcc_s.so.1 (0x00007f2f97e88000)
        libquadmath.so.0 => /home/janne/src/gfortran/trunk/install/lib64/libquadmath.so.0 (0x00007f2f97c48000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2f97857000)
        libopen-rte.so.20 => /usr/lib/x86_64-linux-gnu/libopen-rte.so.20 (0x00007f2f975cf000)
        libopen-pal.so.20 => /usr/lib/x86_64-linux-gnu/libopen-pal.so.20 (0x00007f2f9731d000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f2f97115000)
        libhwloc.so.5 => /usr/lib/x86_64-linux-gnu/libhwloc.so.5 (0x00007f2f96ed8000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2f96cb9000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f2f993ba000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2f96ab5000)
        libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f2f968b2000)
        libnuma.so.1 => /usr/lib/x86_64-linux-gnu/libnuma.so.1 (0x00007f2f966a7000)
        libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007f2f9649d000)

Here, the libraries libmpi_usempif08, libmpi_usempi_ignore_tkr and libmpi_mpifh are Fortran interfaces to the "actual" C MPI library libmpi.
If OpenCoarrays would depend and link only to the C MPI library, it would make life easier, as one would likely be able to use the MPI library provided via the system packages rather than having to build one oneself for each Fortran compiler and compiler version that one wishes to use.

Hi @jabl,
That would work in the short-term, but there's ongoing discussion about implementing some parts of the libcaf_mpi in Fortran.  If we go that route, we would definitely want to take advantage of the mpif08 module defined in the MPI standard so at least the link to libmpi_usempif08 would come back.  In fact, I'd very much like to see some parts of libcaf_mpi implemented in Fortran for several reasons so I'd say it's more than just a discussion.  It's a desire and the only question is staffing the effort and evaluating the success of it as we progress.   I'll leave it to @zbeekman to decide whether to disable linking to the named libraries for now and then pull them back in when necessary.

agree the problem is getting coarrays through all the wrappers with all the different tweeks.

I think most people with my experience using opencoarrays will experience the issues that I am experiencing.  That is not understanding fully its use.  I was trying to install it but I am not fully familiar with an underlying technology, openmp, which does the same thing internal to the system.  So I digress until I can do troubleshooting.  Thanks for follow up.Sent from my iPhoneOn Aug 6, 2024, at 11:06, zbeekman @.***> wrote:
It should be feasible to implement this enhancement. I don't know if anyone has time or funding to do so at the moment, however. I agree that it would improve portability and robustness of distributed versions (like via Homebrew)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>


Can you pipe audio data to this (with node.js)

Hi there,
Been looking at this, very interested. However, after looking over the docs, is it possible to pipe raw audio data to this package, and then use that to translate to text?
Thanks

Not out of the box... I'm wanting to support this in the next version, but I'm currently traveling and am waiting to do a refactor once I return.
I'm curious about your use case. Can you describe what you trying to accomplish? If you're just trying to transcribe audio then you may want to just use Google Cloud Speech on it's own. If your piping audio data, where is it coming from and why do you want to pipe it?

The usecase I'm looking for is for an application called Discord. Not sure if you have heard of it; but it is essentially a IRC chat app with voice and text channels. They have a "bot" API, allowing you to interact via bot accounts, which are controlled via code - I am making a music bot, and was thinking voice commands would be very cool - I chose this package as it seems to be the best way of realtime, local voice-to-text.

Any news?


Apply postfixes to min/maxCount in SHACL

These are minor postfixes which were originally omitted by mistake.

@changqin26 you might also want to review this change?

Looks good!


RunQuery fails, even though necessary indexes exist.

Here's my index.yaml;
# Deploy with gcloud datastore create-indexes index.yaml
indexes:
- kind: Task
  properties:
  - name: category
    direction: asc
  - name: priority
    direction: asc
  - name: created
    direction: asc

And my code:
            Query query = new Query("Task")
            {
                Projection = { "category", "priority" },
                DistinctOn = { "category", "priority" },
                Order = { { "category", PropertyOrder.Types.Direction.Ascending},
                    {"priority", PropertyOrder.Types.Direction.Ascending } }
            };
            // [END distinct_query]
            Assert.False(IsEmpty(_db.RunQuery(query)));

And I still get this exception:
Test Name:	GoogleCloudSamples.DatastoreTest.TestDistinctQuery
Test FullName:	GoogleCloudSamples.DatastoreTest.TestDistinctQuery
Test Source:	C:\Users\rennie\gitrepos\dotnet-docs-samples\datastore\api\DatastoreTest.cs : line 554
Test Outcome:	Failed
Test Duration:	0:00:00.254

Result StackTrace:
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Grpc.Core.Internal.AsyncCall`2.UnaryCall(TRequest msg)
   at Grpc.Core.Calls.BlockingUnaryCall[TRequest,TResponse](CallInvocationDetails`2 call, TRequest req)
   at Grpc.Core.DefaultCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method`2 method, String host, CallOptions options, TRequest request)
   at Grpc.Core.Internal.InterceptingCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method`2 method, String host, CallOptions options, TRequest request)
   at Google.Datastore.V1Beta3.Datastore.DatastoreClient.RunQuery(RunQueryRequest request, CallOptions options)
   at Google.Api.Gax.ApiCallExtensions.<>c__DisplayClass0_0`3.<MapArg>b__0(A a, CallSettings callSettings)
   at Google.Api.Gax.ApiCallRetryExtensions.<>c__DisplayClass1_0`2.<WithRetry>b__0(TRequest request, CallSettings callSettings)
   at Google.Api.Gax.ApiCallExtensions.<>c__DisplayClass0_0`3.<MapArg>b__0(A a, CallSettings callSettings)
   at Google.Api.Gax.ApiCall`2.<>c__DisplayClass6_0.<Sync>b__0(CallSettings callSettings)
   at Google.Api.Gax.ApiCall`2.Call[T](TRequest request, CallSettings perCallCallSettings, Func`2 fn)
   at Google.Api.Gax.ApiCall`2.Sync(TRequest request, CallSettings perCallCallSettings)
   at Google.Datastore.V1Beta3.QueryStreamer.<Sync>d__7.MoveNext()
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.<SelectManyIterator>d__16`2.MoveNext()
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at GoogleCloudSamples.DatastoreTest.IsEmpty(DatastoreQueryResults results) in C:\Users\rennie\gitrepos\dotnet-docs-samples\datastore\api\DatastoreTest.cs:line 358
   at GoogleCloudSamples.DatastoreTest.TestDistinctQuery() in C:\Users\rennie\gitrepos\dotnet-docs-samples\datastore\api\DatastoreTest.cs:line 565
Result Message:	Grpc.Core.RpcException : Status(StatusCode=Internal, Detail="{"created":"@1472765097.981000000","description":"RST_STREAM","file":"c:\jenkins\workspace\gRPC_build_artifacts\architecture\x86\language\csharp\platform\windows\vsprojects\..\src\core\ext\transport\chttp2\transport\frame_rst_stream.c","file_line":107,"http2_error":2}")

Patrick, do you have any insight about this?

This isn't the appropriate index for the query. You'll need to define in your index.yaml file:
# Deploy with gcloud datastore create-indexes index.yaml
indexes:
- kind: Task
  properties:
  - name: category
    direction: asc
  - name: priority
    direction: asc

In Cloud Datastore, you can't "overspecify" your index because Cloud Datastore indexes are sparse. So if in this case an entity didn't have the created property it would not appear in the (category, priority, created) index so we wouldn't correctly answer your query.

Also, I'd recommend running your code against the Cloud Datastore Emulator using the gcloud beta emulators datastore start command. This will create an index.yaml file for all the queries you run.

That fails:
PS C:\Users\Jeffrey Rennie\gitrepos\dotnet-docs-samples\language\api>
gcloud beta emulators datastore start
Executing: cmd /c C:\Users\Jeffrey Rennie\AppData\Local\Google\Cloud
SDK\google-cloud-sdk\platform\gcd\gcd.cmd create --
project_id=bookshelf-dotnet C:\Users\Jeffrey
Rennie\AppData\Roaming\gcloud-test\emulators\datastore
[datastore] 'C:\Users\Jeffrey' is not recognized as an internal or external
command,
[datastore] operable program or batch file.
ERROR: (gcloud.beta.emulators.datastore.start) Unable to prepare the data
directory for the emualtor
PS C:\Users\Jeffrey Rennie\gitrepos\dotnet-docs-samples\language\api>
On Fri, Sep 2, 2016 at 8:16 AM, Patrick Costello<EMAIL_ADDRESS>wrote:

Also, I'd recommend running your code against the Cloud Datastore Emulator
using the gcloud beta emulators datastore start command. This will create
an index.yaml file for all the queries you run.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-dotnet/issues/346#issuecomment-244404337,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALO54iO7jkfWg0_SZsJ6mSbb250YyaXhks5qmD3cgaJpZM4JzKMg
.

Where are we with this? It doesn't feel like it's a bug for this repo, really...


Ed25519 Signature checks via RUST lib

Different Ed25519 implementations have different checks. This can lead to a fork of the ledger.
We need to use the same lib like every node implementation.

We are now using the ZIP-215 compatible Ed25519 lib from iota.go.
https://github.com/iotaledger/iota.go/pull/248


Map versions of dependencies with artifacts

92ae9e639e604f57c65343fc7a2b97a94b511da5 changed behavior to not map dependencies with artifacts. The intention was to keep the root coordinates when mapping dependencies with artifacts, since that is how Gradle resolution behaves.
This change reverts the above commit to go back to mapping dependencies with artifacts, but instead mapping to component-level precision. For legacy version mapping, this is equivalent to restoring prior behavior, as legacy version mapping only maps to component-level precision.
Fixes https://github.com/gradle/gradle/issues/28225
Reviewing cheatsheet
Before merging the PR, comments starting with

❌ ❓must be fixed
🤔 💅 should be fixed
💭 may be fixed
🎉 celebrate happy things

@bot-gradle test this

@bot-gradle test and merge

The merge queue build has started. Click here to see all failures if any.


Crash when disabling tick dynamic on server

Server crashes when disabling tick dynamic "/tickdynamic enabled no". Only the server does, client gets dropped out without crashing.
https://paste.ubuntu.com/p/PzdQnqBtf3/

It seem thats fixed in official build


Train on new model

Hello!
I have read the closed issue about Spanish language, and I think I go idea how to retrain the model, but I am a little not sure

I  should create my dataset/train  folder with pos/neg  and place the data there -- that clear
Then  I create my_en.go file which walks that dataset I just created

And then I am not sure what I should do to make it Train, and save trained data and use it for analyzes?

Hi Mikhail,
Yes the easiest thing to do would be to copy the en.go procedure for training an english model in a Spanish es.go file. That function would train the model and load it into memory, but ideally you would train both the English and Spanish models in memory, then persist the models map to disk into model.json, before using go-bindata as we already do to persist the file into the library (you'd replace the current bindata.go file in the library, committing the new version). Theoretically, everything should work from there but you'd want to add tests to check.


How can I use the animation "collections"?

I'm going to use the collections at animation level.
Reading the documentation, it seems that you can assign a name to an object into animation options and this object should contain multiple properties, identified by properties array.
Therefore I'm trying to add to chart options the following animation configuration:
animation: {
      mycolors : {
	      properties: ['backgroundColor'],
	      type: 'color',
	      from: 'black',
	      duration: 5000,
	      loop: true
      },
},

but my animation configuration is ignored.
Instead, using the same configuration, setting colors as collection name, it works.
animation: {
      colors : {
	      properties: ['backgroundColor'],
	      type: 'color',
	      from: 'black',
	      duration: 5000,
	      loop: true
      },
},

Then I have the doubt if the collection name must be colors or numbers (therefore are fixed) or if I can use different names.
And if I can use different names, how is the animation engine aware about which collection should be used?
Here is CodePen https://codepen.io/stockinail/pen/YzwdObe
Chart.js: dist/master

The defaults kick in. See https://codepen.io/kurkle/pen/MWKLpMW?editors=1010
The 2nd chart usesbackgroundColor directly, which overrides any collections (the default colors collection)

Snip of the final animation options when only mycolors is defined:

@kurkle thank you very much.
I had a look to your sample before your last updates and it worked resetting the default.
       colors: {
          properties:[]
        },
      mycolors : {
	      properties: ['backgroundColor'],
	      type: 'color',
	      from: 'black',
	      duration: 5000,
	      loop: true
      },

Therefore I need to "reset" the default collection and then I can use mine.
That means I can have only 1 collection for each type (1 for color, 1 for number) that I can call as I want, isn't it?
But know, having a look to the same sample, where you are not resetting the colors.properties, it does not work.

But now, having a look to the same sample, where you are not resetting the colors.properties, it does not work.

Sorry, did not mean to save that one. Added colors: false (which works also) to the pen.

Added 3rd sample to the pen, using custom mode's. Maybe that is what you are looking for?

@kurkle thank you again!
Now it sounds more clear how to use it. I missed the colors: false option which enables your own collection!!
That's not documented but I don't know if this is only my problem because I didn't understood.
THANKSS!

Documentation is probably the issue. Maybe you could take a look at it now that you know how it works? :)

Documentation is probably the issue. Maybe you could take a look at it now that you know how it works? :)

Yes, but let me finish the implementation on the lib (I'm completing the work with the new 3.0.0 features) and then I'll propose some updates (by PR related to this issue that I'll reopen) on the doc. Ok?


[opt](index compaction)Add dual write inverted index file switch

Proposed changes
To check correctness of index file produced by index compaction process, we add a switch dual_write_inverted_index_enable (default is false).
When both inverted_index_compaction_enable and dual_write_inverted_index_enable are true, Doris will produce index file through both normal compaction process and index compaction process, and compares both index files, which are theoretically identical. Doris will log FATAL and crash after the check failed.
We add this feature only for test, DO NOT use it in production.

run buildall

run buildall

Modify the configuration within the pipeline to ensure that checks are effective in the pipeline.
We do not want to this correctness check logic affect the normal index compaction flow, so I don't recommend add this switch to pipeline.
We can use it in independent test cases.


[CLI] func fetch secrets fails for bot service

I've created a bot service in Azure. With the latest version of the CLI (0.2.9) I tried fetching the secrets (previously appsettings) using func fetch secrets <botinstance>. This fails (see below). I think this is specifically related to the bot service instance; when I try the exact same for a 'normal' function app, it does seem to work.
System.NullReferenceException: Object reference not set to an instance of an object.    at ARMClient.Library.ArmUriTemplate.Bind(Object obj)    at WebJobs.Script.Cli.Arm.ArmManager.<LoadSiteObjectAsync>d__22.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()    at WebJobs.Script.Cli.Arm.ArmManager.<LoadAsync>d__21.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()    at WebJobs.Script.Cli.Arm.ArmManager.<GetFunctionAppAsync>d__4.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()    at WebJobs.Script.Cli.Verbs.FetchVerb.<RunAsync>d__11.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.GetResult()    at NCli.ConsoleApp.<RunAsync>d__5`1.MoveNext()

note that 0.2.9 is actually quite old. The current release is 1.0.0.beta.9, we also moved from azurefunctions to azure-functions-cli.
to work around this error on beta.9, run func azure login before you run that command.

That is very strange, because I thought it was the other way around (fetch-app-settings is what I was actually used to). I don't know how I got to 0.2.9 then, updated the package again and now I have the right one. What's the best way to keep track of new cli releases?

I'd say releases on this new github repo, but @lindydonna will have the right answer

@jsiegmund Yes, we will do releases on this repo. (We only just moved to this repo a few days ago, so we didn't have a good place to put the notes.)

Great, starred and following the repo :)


Parking "Deutsche Bank"???

Shouldn't it be "Deutsche Bahn" instead of "Deutsche Bank" ?

Why is that not an issue?

What exactly are you talking about?


build: Make the mobile package visibility only to other mobile dirs

Signed-off-by: Ali Beyad<EMAIL_ADDRESS>

/retest


baker update-delegation-status does not work as described in documentation

Bug Description
Documentation says that syntax is baker update-delegation-status SELECTION with SELECTION = all, existing, none. However, this does not seem to work.
Expected Result
Command works according to documentation, e.g. baker update-delegation-status all --sender "x"
Actual Result
Invalid argument
Versions

Windows
Concordium Client: 4.0.0-delegation-test-1
Concordium Node: 4.0.5-delegation-test-5

Addressed in 4.0.1.


Support an overload with stream

Is it possible to support an overload that accepts a Stream, for bigger files?

What about this?

What about it? IHashFunction and IHashFunctionAsync has ComputeHash functions that take a byte array or a Stream.

On Jun 15, 2018, at 6:24 AM, DoCode<EMAIL_ADDRESS>wrote:
What about this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Ah sorry. What I mean, what I need, is block precessing like all .NET hash algorythm provide.

Can open a new issue with some basic pseudo code you’d like to see and the overall goal you’re trying to achieve?

On Jun 16, 2018, at 12:52 AM, DoCode<EMAIL_ADDRESS>wrote:
Ah sorry. What I mean, what I need, is block precessing like all .NET hash algorythm provide.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@brandondahler thanks. I created a new issue: #37


karate.eval fails if there is nothing for it to do

Ran into this trying to use def variables in Examples: tables for scenario outlines.
It seems that if karate.eval() has nothing to actually do in the passed value, it will throw an exception:

org.graalvm.polyglot.PolyglotException: TypeError: invokeMember (eval) on com.intuit.karate.core.ScenarioBridge@4f4c789f failed due to: Cannot convert '...'(language: Java, type: com.intuit.karate.graal.JsMap) to Java type 'java.lang.String': Invalid or lossy primitive coercion.

The issue seems to arise when passing a JSON object that does not contains variables to expand (at least).
In my case I wanted to put variables (defined, say, in Background) in a JSON object in the examples table, for use in populating scenario values in the feature (in practice this would not be a fixed value, but, say, a timestamp):
Background: test
  * def value = 123

Scenario Outline: scenario
  * karate.set(karate.eval(example))
  * print foo
  * print bar
Examples:
  | example! |
  | {foo: value, bar: 0} |
  | {foo: 0, bar: value} |
  | {foo: 0, bar: 0} |

The ! in the examples column header makes sure Karate sees the value as a JSON object, but it seems that examples tables simply do not expand variables within them (I also tried "#(...)" notation). So, the karate.eval() within the scenario re-parses the object to expand the variables (here 'value') in the object.
The first two examples work fine. In both cases, 'value' is replaced with its assigned number, resulting in, respectively:

{foo: 123, bar: 0}
{foo: 0, bar: 123}

However, in the last example, it blows up with the exception mentioned above. The same values used in the other examples work, but it seems when there is nothing to expand, the eval fails.
The workaround I ended up doing is, amusingly, creating a def called "zero" in my Background, assigned with 0, and using the var name "zero" instead of 0 in at least one of the places in the third example. Which works.
This is using karate-core 1.1.0 under Java 8 on Intel MacOS Monterey.

@keithdtyler the design is such that no variable resolution is allowed / supported at all in an Examples table. a possible way to work around this is as follows:
Feature:

  Background:
    * def value = 123
    * def data = [{ foo: '#(value)', bar: 0 }]

  Scenario Outline: scenario
    * print foo
    * print bar

    Examples:
      | data |

there is a proposal to make dynamic scenarios play well with Background here: https://github.com/karatelabs/karate/issues/1905

just one more thing, if you want a table that supports variables, use table: https://github.com/karatelabs/karate#table

........... Mmmm. M.. Mm. M. M. Mmmmm.. Mmmm. M. M.. M. Mm. Mmm.  Nm. M....mmmmmmmmmmmm.....
.
Mm
Mm
Nm
Get BlueMail for Android
On Jul 1, 2022, 8:46 PM, at 8:46 PM, Peter Thomas @.***> wrote:

just one more thing, if you want a table that supports variables, use
table: https://github.com/karatelabs/karate#table
--
Reply to this email directly or view it on GitHub:
https://github.com/karatelabs/karate/issues/2046#issuecomment-1172826654
You are receiving this because you were mentioned.
Message ID: @.***>

Get BlueMail for Android
On Jul 1, 2022, 8:46 PM, at 8:46 PM, Peter Thomas @.***> wrote:

just one more thing, if you want a table that supports variables, use
table: https://github.com/karatelabs/karate#table
--
Reply to this email directly or view it on GitHub:
https://github.com/karatelabs/karate/issues/2046#issuecomment-1172826654
You are receiving this because you were mentioned.
Message ID: @.***>

I don't really think you follow where the problem is here. The problem isn't specifically with examples tables, the problem is with karate.eval(). The use of examples tables is incidental to the issue identified. Not sure where that wasn't pretty fairly explained in my report.

if karate.eval() has nothing to actually do in the passed value, it will throw an exception:

@keithdtyler then please provide an example that demonstrates the problem without using tables. as of now I still consider this a wontfix

I looked at it further and it does seem to be related to tables. But it doesn't involve variable resolution in tables (which was not the issue above either), but rather, how the ! modifier on the tables column header is parsing the value in the row.
Scenario Outline: scenario
* def value = 123
* karate.log("received type "+(typeof example)+": |"+example+"|")
* karate.log(karate.eval(example))`

Examples:
  | example! |
  | {foo: value, bar: 0} |
  | {foo: 0, bar: value} |
  | {foo: 0, bar: 0} |

16:31:51.119 [main] INFO  com.intuit.karate - received type string: |({foo: value, bar: 0})|
16:31:51.129 [main] INFO  com.intuit.karate - {
"foo": 123,
"bar": 0
}
16:31:51.143 [main] INFO  com.intuit.karate - received type string: |({foo: 0, bar: value})|
16:31:51.145 [main] INFO  com.intuit.karate - {
"foo": 0,
"bar": 123
}
16:31:51.176 [main] INFO  com.intuit.karate - received type object: |[object Object]|
16:31:51.180 [main] ERROR com.intuit.karate - src/test/java/features/scte35/eval_test.feature:6

karate.log(karate.eval(example))
js failed:

01: karate.log(karate.eval(example))
<<<<
org.graalvm.polyglot.PolyglotException: TypeError: invokeMember (eval) on com.intuit.karate.core.ScenarioBridge@39109136 failed due to: Cannot convert '{foo=0, bar=0}'(language: Java, type: com.intuit.karate.graal.JsMap) to Java type 'java.lang.String': Invalid or lossy primitive coercion.

.:program(Unnamed:1)

For some reason, when the value in the examples table contains a variable, the ! modifier passes the row value as a string. But when the value in the examples table does not contain a variable, it passes it as an object, which fails karate.eval().
So the behavior of the ! is inconsistent based on whether the value in the row contains a variable or not.

@keithdtyler I have nothing to add to my previous comment. all the code is open-source, you are welcome to attempt a PR / fix against this ticket


Replacing Items in Android gives index out of range error

In CarouselView.FormsPlugin.Droid.CarouselViewImplementation.cs, ItemsSource_CollectionChanged, around line 168 - you are using e.NewStartingIndex to get the index of the new item in e.NewItems. However, for NotifyCollectionChangedAction.Replace, e.OldStartingIndex and e.NewStartingIndex are the same, and refer to the index being replaced in the existing array. It does not refer to the NewItems array.
So, it works fine if you replace the index at position 0, because there is only one item in the NewItems array. However, if you try to replace an item at any other position, say NewStartingIndex = 1, you get an Index Out of Range exception, because NewItems only has one item, but you are trying to access the item at index 1.
I think it should be changed to: Source[e.OldStartingIndex] = e.NewItems[0];

This occurs on iOS as well.

Hi,
Is the problem fixed ? How can I make it work ?
Thanks

This control has been merged into Xamarin.Forms master branch. Please, wait for it to be released as part of Xamarin.Forms and submit any issues there https://github.com/xamarin/xamarin.forms/tree/feature-carouselview. Thanks


Local FAWA v.s. local APE

Hi, @csyhuang
I've recently notice the possible similarity between your local FAWA and local APE (available potential energy).  After reading two JFM papers by Scotti and White (2014) and Winters and Barkan (2013), I found that:

both of them defined in a contour-based coordinate;
in small-amplitude limits, both of them reduce to the classical definitions;
locally positive definite;

Not so sure if we can prove their equivalence mathematically.  But if it is, I think one could use the local FAWA in identifying local internal wave breaking events (vertically), given that it is useful in identifying the local Rossby wave breaking events (horizontally).  Do you have any comments on this?

Hi @miniufo ,
Since your question is not related to issues/bugs of the package, I would close the ticket and move the discussion to email instead.
Thanks,
Clare


Remove POST request if pdf not changed

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 53.82%. Comparing base (ab209c2) to head (bce5548).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #431   +/-   ##
=======================================
  Coverage   53.82%   53.82%
=======================================
  Files         168      168
  Lines        3727     3727
=======================================
  Hits         2006     2006
  Misses       1721     1721

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Update configure-windows-diagnostic-data-in-your-organization.md

Why

Closes #[Issue Number]

Changes

@j0eyv  Thanks for your suggestion to update/improve this content. We've published some changes to the article based on your suggestion.


pull request for e2e test at 12/13/2016 13:45:03

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


testing against php 7.4 final, fixing/ignoring phpstan errors

I'll need to cut a release for diablomedia/zf1-wildfire before these tests will pass.

Codecov Report

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

@@            Coverage Diff            @@
##             master      #18   +/-   ##
=========================================
  Coverage     55.16%   55.16%
  Complexity     1697     1697
=========================================
  Files            42       42
  Lines          4699     4699
=========================================
  Hits           2592     2592
  Misses         2107     2107

Continue to review full report at Codecov.

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


Update spring-security-oauth2 to 2.3.3.RELEASE

Which fixed NoSuchMethodError.RedisConnection.set([B[B)V issue

refer to https://github.com/spring-projects/spring-security-oauth2-boot/issues/16

Is there any date yet when 2.1.0 will be released? I require a change in spring-security-oauth2 that allows a custom return type in WebResponseExceptionTranslator.translate(...).  Would be great to have that soon. Thanks in advance for a response!

@larsduelfer You can always override the pulled in version by explicitly overriding the version in your gradle build, for example:
dependency  org.springframework.security.oauth:spring-security-oauth2:2.3.3.RELEASE


Report Community

Adding this from chat:
Add provision for reporting a problematic community to its home instance admins.
Would allow admins to get notified about problematic communities created on their instance that they may not be aware of.
Would work and be rate-limited similarly to post/comment/DM reports (e.g. can only report it once per user).

@Pdzly another one to add to the Sublinks native API

Once this is added to the API create an issue for the front-end team to create front-end support.


500 Internal Server Error When Waking A PC

Got everything up and running, but I get this error whenever I press the "Wake Up" button. Here is the log from docker, hopefully it helps.
[2023-06-27 14:49:40,849] ERROR in app: Exception on /wakeup [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/wol.py", line 181, in wol_send
send_wol_packet(mac_address)
File "/app/wol.py", line 45, in send_wol_packet
packed_mac = struct.pack('!6B', *[int(x, 16) for x in mac_address.split(':')])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/wol.py", line 45, in
packed_mac = struct.pack('!6B', *[int(x, 16) for x in mac_address.split(':')])
^^^^^^^^^^
ValueError: invalid literal for int() with base 16: '18-31-BF-6D-4B-97'
<IP_ADDRESS> - - [27/Jun/2023 14:49:40] "POST /wakeup HTTP/1.1" 500 -

Thanks for putting logs:
The issue is on Mac address:
18-31-BF-6D-4B-97 is not valid should be 18:31:BF:6D:4B:97
You can delete the computer you previously try and put the updated MAC address.
I will update my code in the next release to check mac address seperator not to have the issue again

Oh gotcha that makes sense. I changed the - to : and yeah, it worked! Thanks for the clarification!

If you upgrade your docker image to last version (1.0.7), now it is impossible to add a new computer with a - mac seperator


Variable detection within AF Elements query broken in editor mode

When I was running Grafana 9.4.3 using the OSIsoft-PI plugin version 2.0.0 (or possibly 2.1.1), there was a bug with including Grafana dashboard variables as part of the AF path query. Screen shot below is from a dashboard containing location and system variables.

The segment Unit${system} is white, indicating that the presence of the variable isn't detected, and I can't further navigate down the asset tree. This is confirmed when I switch to raw query mode where 'Unit${system}' is replaced with 'undefined'.

Upgrading the plugin to version 4.2.0 fixed this issue (the segment would show up in blue text and I could further navigate in the asset tree), but upgrading to Grafana 10.2.3 seems to have broken the fix. Any chance this can be remedied again? Thanks!

In addition, could it be that there is a limit to the amount of AF Attributes shown/received from the API? In below example we have 6000+ attributes. If I try to find some attribute starting with the T (after CP1_) by typing "CP1_T" we do not receive any attributes at all. If I type "CP1_A" we do receive all attributes that contain that string. By scrolling through the asset tree we can see that it stops at "G". So could it be that the AF attribute query is send once instead of every time we enter some search?

Fixed in #150

Fixed in #150

Tested with grafana 11 and plugin v5 beta > cannot confirm that it is fixed. I experience the same issue as described above.

For v5.0.0 I am increasing the max attributes count to 10000. I next versions I can check if we can improve this


[Question] Reading from Master

My setup:

A PLC acting as Master
A Modbus Server Node
A Modbus Read Node

My understanding:

The Master (PLC) connects to the the Slave (Server Node)
The Master pushes its registers to the Slave
The Read Node reads the relevant registers from the Server

This works and I can get the data for further processing in the flow.
I would think that the Slave gets the data basically in real time but for processing of the data in the flow, I need to regularly pull the server.
Is there a way to have the Modbus Server Node actively pushing new data down the flow or is my understanding of the concept false?

Hi @Sineos, Modbus is polling take a look here Modbus.org

You could build some with Node-RED and the context inside Node-RED to watch values and to send events on value changes. Does it clearify your question?

@biancode many thanks for coming back on this.
Do I understand this correctly that the Slave/Server is polling the Master/Client?

Hi @Sineos . In Modbus, the Server cannot initiate the exchange, so it does not poll. But you can put a Modbus client on the same Node Red flow as the server, and have the new client do the extra polling in order to push the processing if you need to. I hope I've answered your question. If not, please feel free to ask.

reopen if you need more


Produce parsing error when text in token pattern is longer than n characters

Hi guys,
What would be the best way to check if a given token exceed a permitted length?
For instance I have created this token in my lexer to check for valid input inside quotation marks:
const text: extendToken("text", /'[a-zA-Z0-9!@#\$%\^\s+\&*\)\(+=._-]'/)'

then I created a rule in my parser to consume that token:
this.label = this.RULE("label ", () => { this.CONSUME(text); });

What I like to do now is to return an error if the given text is longer than n characters but I haven't found a way to return an error from a parser rule (or if there is a better way to do that)
PS. I tried specifying a length inside the regex pattern in my token but if the given text is longer that than it won't be lexed
Thanks!
Harold

Hello @haroldrv
You seem to want to generate an error if a certain token exceeds a certain length.
You also still want the lexing step to succeed regardless of the length.
It seems that this is not a syntactic (parser) error but rather a semantic one.
So it needs to be performed separately from the parsing.
Preferably after the parsing in a separate step which works on some AST output from the parser.
but if your use case is very simple you can also insert these checks during the parsing (less recommended).
An example:
// getImage will return the string of the token.
const getImage = chevrotain.getImage
const getStartOffset = chevrotain.getStartOffset

let mySemanticErrors = []
this.RULE("label ", () => {
   let myTextToken = this.CONSUME(text);

   if (getImage(myTextToken).length > n) {
      mySemanticErrors.push("Ooops too long label at: " +  getStartOffset(myTextToken))
   }
});

Thanks @bd82 for getting back to me so quickly!
I just changed it so that it would incorporate the new error inside the errors object of the parser
// getImage will return the string of the token.
const getImage = chevrotain.getImage
const getStartOffset = chevrotain.getStartOffset
const LABEL_MAX_LENGTH = 52;

this.RULE("label ", () => {
   let myTextToken = this.CONSUME(text);
   if (getImage(myTextToken).length > LABEL_MAX_LENGTH) {
     const message = `Labels cannot be longer than ${LABEL_MAX_LENGTH} characters`;
     throw this.SAVE_ERROR(new chevrotain.exceptions.MismatchedTokenException(message, textToken));
   }
});

Thanks again.
Harold

You are welcome @haroldrv


Wisconsin migration

This PR contains updated settings to migrate Wisconsin to the UP.
Test Steps:

Check that previous settings match new UP settings.
Check that covid-pipeline message matches new UP message

Changes

added receiver transform
added new settings for Wisconsin

Checklist
Testing

[x] Tested locally?
[ ] Ran ./prime test or ./gradlew testSmoke against local Docker ReportStream container?
[ ] (For Changes to /frontend-react/...) Ran npm run lint:write?
[ ] Added tests?

Process

[ ] Are there licensing issues with any new dependencies introduced?
[x] Includes a summary of what a code reviewer should test/verify?
[ ] Updated the release notes?
[ ] Database changes are submitted as a separate PR?
[ ] DevOps team has been notified if PR requires ops support?

Would you please add in the PR as pre-work.  Therefore, we know it is pre-work.


Improve decorator example in readme

Since it's TS only, it is better to show the entire code example as it should be in TypeScript.

Could you also extend the mem.decorator documentation? Like by adding a link to the docs and mentioning that Babel’s decorators are not compatible.

Hi @fregante, I don't have time to look into that now, sorry, feel free to take over the PR.

Will do now


Misleading nullable property

https://github.com/SQLStreamStore/SQLStreamStore/blob/0de9102000f5f72e4f0ed5e1a3e89d10a922f2f6/src/SqlStreamStore/IAllStreamSubscription.cs#L20
The comment states that the value of -1 represents the situation when nothing is processed. If so, what is the meaning of the null?
Also, consider using ulong instead of long to double the amount of events that can be stored

Hmm yeah I can see this requiring clarity. It might be because when subscribing you can start null position when resuming from 'nothing'. Will take a look at this. Thanks for reporting!


7pA6CSSR9zEpJiPkNYTejLeSzvoAtE85

The Issue
Steps to reproduce

Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead
System Configuration

LBRY Daemon version:
LBRY App version:
LBRY Installation ID:
Operating system:

Anything Else

Screenshots

@golfjang011 was this submitted in error? Please let us know how we can help. Closing this for now.


feedbackEndpointV1

Simple endpoint to pipe feedback from the UI through to our slack blazar room for response.

Left a few more minor things otherwise lgtm

@jhaber Oh makes sense. I can set it up so that:
Post to /feedback : feedback sent to all integrations
Post to /feedback/slack: feedback sent to just slack

Does that sound good to you?


Add build targets for macOS, watchOS, and tvOS

Some references that may be helpful:

Carthage Issue #399
StackOverflow Question on CodeSigning
lipo man page

It will be interesting to learn more about the Swift Package Manager. So far, I haven't seen any information about customizing builds for various platforms. Perhaps we will not need to worry about this after we support SPM?

What is the current state of this issue? Is it still on the roadmap to support also the other OS? I couldn't found a specific branch for this topic. Do you have something locally that you want to share?

We're still working on longer-term plans for the SDK. Right now we tend to plan sprint-by-sprint, and adding support for missing services usually takes priority over some of these other issues.
We're interested to see whether the Swift Package Manager will help us to tackle this issue. But right now, there's no information about how or when it will support platforms besides OS X.
If you have a particular use case we would be happy to investigate. For example, if you're interested in running Visual Recognition on OS X, then we can experiment with adding targets for you and running the tests for an OS X build. Just let us know and we'll see what we can do!

I have indeed some use cases for OS X applications, especially for the Alchemy APIs. I will have a look at the setup. The project is quite big and I'll try to get an overview. Maybe we can start a separated branch for supporting OS X in a "beta" version?

Sure! Would love to help.
I started looking at OS X support this morning but ran into a code signing problem with Freddy. I created an issue (bignerdranch/Freddy#175).
Once that problem is resolved I can continue investigating OS X support. I'll be sure to push a branch once there's something worth sharing.

@thomaspaulmann: I figured out the code signing error. It was because I had an older version of Carthage installed. Assuming the macOS targets would still be useful to you, I'm hoping to take a look at this later in the week.

@glennrfisher Great! The error with Freddy was also caused by the code signing issue? Then I will have a look to build it for macOS :-)

Check out the macOS-targets branch. I was able to create targets for RestKit and VisualRecognitionV3 that build on Mac!
Are there particular services that you'd like to use on macOS? I'm happy to add support for them.
I'm a bit hesitant to add all services right now because I'm not sure how the project file might change. It's already fairly cumbersome with just iOS targets. Adding macOS, tvOS, and watchOS targets for each service would create 64 targets, which becomes a bit unmanageable.
This might be a good opportunity to split the current mega-project into a project (and repository?) for each service. Then each project would only have 4 targets. That would also speed-up the Carthage build process by allowing clients to choose the particular services they want to use in their Cartfile. The downside, though, is that it could be confusing on Github to have multiple repositories.
If you have an opinion about how to manage the project file and whether you'd find multiple repositories confusing, I would love to hear it!

I cannot locate the macOS-targets branch that you reference, is it still around?  I am trying to build an app on macOS that utilizes DocumentConversion, but I am having problems.  I was hoping to use your macOS-targets branch as a reference to figure out what I might be doing wrong.

I'm afraid not, @loudinb. But here are a few options that might help:

If you're just looking to use the code as reference, you can view it here on GitHub.

Use the Swift Package Manager to specify the Watson Developer Cloud iOS SDK as a dependency (instead of Carthage, as the readme suggests). SwiftPM builds the SDK in a way that should compatible with macOS and can be used in your project. Here's an example that imports DocumentConversionV1 to test this out. You can execute it on your machine with the command: swift build; .build/debug/Watson.

If you'd like to contribute to the SDK you could fork it, add macOS targets, then open a pull request to merge your changes.

Any chance to support Speech-To-Text for macOS?

We would like to do that, but it won't be until after our "v1.0" release (coming soon!).

Any updates on this:

Any chance to support Speech-To-Text for macOS?

No update @TerenzeY

We are looking into adding these targets in our next major release (this fall), as there will be some added Swift Package manager support included in that release.


Changes needed to allow use of aggressive flags with GEOS

Activate by using -DCMAKE_BUILD_TYPE=Aggressive

Tested with the ecbuild update (https://github.com/GEOS-ESM/ecbuild/pull/3) alone and zero-diff in Release.


Design uploded by Pasindu Nethsara 2024/11/06 11.50 pm

Design uploded by Pasindu Nethsara 2024/11/06 11.50 pm

Design uploded by Pasindu Nethsara 2024/11/06 11.50 pm


Username requierd?

When I execute git clone... It stops and ask for username and password? I can wright in username, but not my password?

Can you please show the command you're using to clone the repo?

@LukeSkywalker92 Nvm, I did it! :) Looks totaly awsome! thanks mate

Note: This prompt appears when a user leaves the '.' at the end of the clone command. Most likely due to a bad copy/paste job.

Are you able to update MMM Globe, that the pics on the new server EUMETSAT can be displayed?


401 error using Mona

I entered all the credentials correctly, but got
“Bad response: unauthorized (401)”

OH!! Bluesky asks for email/handle, but it won’t actually accept my handle. Using my email address does work! So this is a problem with the name of the field in the Bluesky auth.


TCG Player UI Update seems to have broken the extension

I'm not seeing stores getting highlighted or states getting added. I don't have a lot of experience with Javascript, but looking at the html and the code, looks like maybe the code assumes item listings have both listing-item and product-details__listings-results as classes, but now only the wrapper div has product-details__listings-results as a class, and the individual items just have listing-item.
If I add product-details__listings-results to one of the item sections, they get a state again.
So I think if productObserver changes to only look for listing-item it'll work again.

Thanks for opening this and doing so much analysis for me. Sorry for the late response. I updated that selector and it fixes the location and adds the checkmark but doesn't highlight the row. I'm going to look into that and then I'll push asap.

I think something is broken within chrome-extension-upload-action because I'm getting an error from the action but I was able to publish manually. Hopefully it will be accepted and deployed soon.


Add closeRound code.

This function is used to finalize a prediction round by recording the closing price and emitting an event to signify the end of the round. The round can only be ended if it has previously locked and the current time has reached the specified closing time.
event CloseRound(uint256 indexed epoch, int256 price);

function _closeRound(uint256 epoch, int256 price) internal {
    require(rounds[epoch].closeTimestamp != 0, "Can only end round after round has locked");
    require(block.timestamp >= rounds[epoch].closeTimestamp, "Can only end round after closeTimestamp");

    Round storage round = rounds[epoch];
    round.closePrice = price;

    emit CloseRound(epoch, round.closePrice);
}

#32


Installer should chck to see if there are custom page templates for login and register

Installer should check to see if there are custom page templates for login and register. If there are, it should warn the admin or set them to the default.

any idea on how to do that?

I'm not a developer. Maybe something here will help? https://codex.wordpress.org/Function_Reference/get_template_directory


Docker push to registry gets 500 error for some layers

Description
When pushing Docker images to container registry, I get 500 errors for some layers after automated retries.
5f70bf18a086: Layer already exists
adfb1d834c14: Layer already exists
245b4b04eefc: Layer already exists
075c1f9ddfb2: Pushing [==================================================>]  2.995MB/2.995MB
d4fa65af1494: Waiting
284b272e4c5d: Waiting
aa49f4877180: Waiting
1ef96cc3773b: Waiting
0fbf9681f063: Waiting
4b778def1fd6: Waiting
6d7bfc74a78d: Waiting
df87cf2cbe5a: Waiting
c03b855bf7ce: Waiting
5a578fe88ffc: Waiting
ecbda56a4ecd: Waiting
2ca469df2d7a: Waiting
72c690143394: Waiting
received unexpected HTTP status: 500 Internal Server Error

What I have tried:

Reducing concurrent pushes to 1 layer at a time: does nothing, still same error
Increasing Nginx reverse proxy body size: does nothing, Nginx doesn't report any errors, I am using the official reverse proxy configuration https://docs.gitea.com/administration/reverse-proxies with certbot for SSL.
Looking at Gitea logs doesn't raise any immidiate red flags

2024/06/19 21:26:43 ...eb/routing/logger.go:102:func1() [I] router: completed HEAD /v2/<REDACTED_REGISTRY_PATH>/blobs/sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 for <IP_ADDRESS>:0, 200 OK in 5.1ms @ container/container.go:486(container.HeadBlob)
2024/06/19 21:26:43 ...eb/routing/logger.go:102:func1() [I] router: completed HEAD /v2/<REDACTED_REGISTRY_PATH>/blobs/sha256:c4f956cad6340013f20d5a3e6487b341ee703a1f2f6d6bccae93fffe7dd63854 for <IP_ADDRESS>:0, 200 OK in 5.1ms @ container/container.go:486(container.HeadBlob)
2024/06/19 21:26:44 ...eb/routing/logger.go:102:func1() [I] router: completed HEAD /v2/<REDACTED_REGISTRY_PATH>/blobs/sha256:f134d980ef08b059da2509fe2b1c86c755f951c5ecfedc76d46fb55a566779ae for <IP_ADDRESS>:0, 200 OK in 10.6ms @ container/container.go:486(container.HeadBlob)
2024/06/19 21:26:44 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/<REDACTED_REGISTRY_PATH>/blobs/uploads/ for <IP_ADDRESS>:0, 202 Accepted in 21.0ms @ container/container.go:218(container.InitiateUploadBlob)
2024/06/19 21:26:49 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/<REDACTED_REGISTRY_PATH>/blobs/uploads/ for <IP_ADDRESS>:0, 202 Accepted in 20.0ms @ container/container.go:218(container.InitiateUploadBlob)
2024/06/19 21:27:00 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/<REDACTED_REGISTRY_PATH>/blobs/uploads/ for <IP_ADDRESS>:0, 202 Accepted in 16.1ms @ container/container.go:218(container.InitiateUploadBlob)
2024/06/19 21:27:16 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/<REDACTED_REGISTRY_PATH>/blobs/uploads/ for <IP_ADDRESS>:0, 202 Accepted in 14.0ms @ container/container.go:218(container.InitiateUploadBlob)

Gitea Version
1.22.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
Assuming this doesn't matter as I am running the official Docker image
Operating System
Debian GNU/Linux 11 (bullseye) aarch64
How are you running Gitea?
I am running Gitea using a Docker compose file
version: "3"

networks:
  gitea:
    external: false

services:
  server:
    image: gitea/gitea:1.22.0
    container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3000:3000"
      - "222:22"

Database
SQLite

The logs you have provided are solely for the router, are you able to grab all the logs? If Gitea is providing a 500 then it will be logged if the logs for non-router are also enabled.
You can find details onto how to enable those logs here: https://docs.gitea.com/help/support

We close issues that need feedback from the author if there were no new comments for a month. :tea:


OpenSearch queries do not time out

If OpenSearch is down, the OpenSearch module never times out.

Tested with a dummy HTTP server that accepts requests but do not respond to them. The timeout parameter works as expected.


Uncaught Exception: Command failed:<PHONE_NUMBER>

An uncaught exception was reported.
Info:
OS: win32
Arch: ia32
GPMDP Version: 3.0.0
Time: Thu Mar 10 2016 22:26:52 GMT-0500 (Eastern Standard Time)
Error:
Command failed:<PHONE_NUMBER>
Error: Command failed:<PHONE_NUMBER>
System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<LogIfThrows>d__4d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.FileDownloader.<DownloadFile>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwait
...Some of the stack is missing

This issue was created automatically inside the uncaughtException handler

Please update to 3.0.1 you should recieve an update notification soon


Externalize stripe.com connector code

The Simple Data Pipe repository currently includes the connector implementation for stripe.com. The code should be removed to enable customers to pick and choose which connectors should be deployed.

Delivered by #8


Bug：Match & Fuzzy查询存在bug。

测试将英语单词词典构造为fst文件，然后对其执行match与fuzzy查询。以"hair"单词为例，字典中是包含的，但是在match中就无法找到，同时fuzzy查询设置ed=0时，也找不到该词。
Match查询：
ofst match -f /home/charles/test/orchid_mytest/fst_file/fst2 -q hair
2021-05-18 16:44:59 INFO COMMON_NS.MAIN : Found result:[hair]->[0], time consumed:[310] us.
Fuzzy查询：
ofst fuzzy -f /home/charles/test/orchid_mytest/fst_file/fst2 -z hair -d 0
2021-05-18 16:46:58 INFO COMMON_NS.MAIN : Totally got [0] results, time consumed:[595] us.
但是prefix查询是没有错误的，还是以hair为例：
ofst prefix -f /home/charles/test/orchid_mytest/fst_file/fst2 -p hair
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hair]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairball]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairballs]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairband]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairbands]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairbrush]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [haircare]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [haircloth]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [haircut]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [haircuts]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairdo]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairdos]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairdrier]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairdryer]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [haired]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairgrip]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairgrips]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairier]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairiest]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairily]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairiness]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairless]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairline]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairlines]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairnet]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairnets]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairpiece]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairpin]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairpins]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairs]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairslide]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairspray]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairstyle]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : [hairy]->[0]
2021-05-18 16:51:58 INFO COMMON_NS.MAIN : Totally got [34] results, time consumed:[1256] us.
麻烦您给看下是哪里出的问题，谢谢！ @apollo008

According to the logs you posted, there is no problem with OFST Match.  OFST fuzzy has a bug when the edit distance is 0, I just fixed this bug, thank you very much for finding a serious bug.  Try it again and enjoy it!

According to the logs you posted, there is no problem with OFST Match. OFST fuzzy has a bug when the edit distance is 0, I just fixed this bug, thank you very much for finding a serious bug. Try it again and enjoy it!

Okay, thanks! I will test some later. In fact, when ED=2, the result of the fuzzy query is also wrong. I will read the source code first.

The latest fixes have resolved the fuzzy query bug, including the one you mentioned with Edit Distance =2 in some cases.
You try again, now there should be no more bugs.

I re-tested the cases of ED>=2. Unfortunately, the number of results is still problematic. Please correct the code again.

can you upload your fst file and  test parameters here?

can you upload your fst file and test parameters here?

Ok.I packed the relevant files and put them here.https://drive.google.com/file/d/1PMga9E-zVEHfj7Dujeo6zpDkVWNKJ9dl/view?usp=sharing

I just run your case, it's okay. Totally got [208] results.  And what's your problem?

Yes, but it actually has 214 results, and the Damerau Levenshtein algorithm is not considered. If it is the Damerau Levenshtein algorithm, the result is 220. These results are what I got using ES testing.

Damerau Levenshtein Fuzzy in C++ will be implemented in next version.     Can you provide the missing 6 results compared to ES？
Then I will debug it.

If you're very interested in  Damerau Levenshtein, you can refer to I repair rust project: https://github.com/apollo008/fst-levenshtein-0.4.4 or refer to my article:  < similar string in the search engine to find those thing > https://mp.weixin.qq.com/s/0ODgrWSVdRnYZxGRGmEdsA.  Because the focus of this project is still on FST data structures, it is not built specifically for fuzzy query topics.  In the next version I try to implement the Dameraulevenshtein DFA.

Okay, but I still understand the levenshtein automaton algorithm first. I will sort out the comparison results of fuzzy query on "hair" for you later. Excuse me, thanks.

Damerau Levenshtein Fuzzy in C++ will be implemented in next version. Can you provide the missing 6 results compared to ES？
Then I will debug it.

The analysis file of the query results is here.

okay, Now I have fix the bug. You could try again, and there should be no more bugs for Levenshtein fuzzy query.

Okay, the result of the test algorithm is correct, thanks for your hard work!

Yes, but it actually has 214 results, and the Damerau Levenshtein algorithm is not considered. If it is the Damerau Levenshtein algorithm, the result is 220. These results are what I got using ElasticSearch testing.

Hello, the fuzzy query feature that supports Damerau-Levenshtein edit distance to measure text similarity has been implemented. I hope it can be of some help to you.


Change hash or history inside iframe context

I want to be able to use react router with my frame-component and have contents render in the frame, that bit works fine.
Switching routes from within the iframe effects the host pages location as the code assumes you always want to change the window object that the script is loaded in.
I hacked it into the Link component doing the following:
this.context.router.transitionTo(this.props.to, this.props.query, this.props.state, this.getDOMNode().ownerDocument.defaultView);

In HashHistory.js the argument is passed in and window is the right context. This works for my contrived demo and the route updates location.hash of the iframe.
pushState(state, path, window) {
  //...
  window.location.hash = path;
}

Any thoughts on how this could be implemented in a nicer fashion? Would love to contribute a PR just not sure if it's possible to get the right window everywhere it's used.

Same here !

sounds interesting, please holler when the 1.0 dust settles

Re-file this against history if it's still a concern - probably should be using ownerDocument or ownerWindow there as appropriate.


Will using more frames in training be helpful

Hi Jay! I am just curious with the question that will using more frames in training/pre-training be helpful for retrieval task?

Did you do any "more frames" experiments? The conclusion will be very useful for me. Thanks a lot!

The tables in Appendix have results with more frames, please take a look.


Zooming functionality

Is it possible to add pinch-zoom functionality without breaking existing touch listeners?

I don't have plan add pinch-zoom function since you can implement it by yourself. zoom function is not related with page flip. You can intercept touch event and complete zoom function before passing these events to page flip class.


Can new version of mongoose-auto-increment compatibility with mongoose 3.8.x?

After updating mongoose version from 3.8.x to 4.0.x, we meet abnormal condition (https://github.com/Automattic/mongoose/issues/3100).
So, I have to recover mongoose version from 4.0.x to 3.8.31 in package.json. I want to know, if I still use version mongoose 3.8.31, will it affect the work of mongoose-auto-increment?

I've got the same issue, except now mongoose is at 4.1.0.

@DavidBLynch You use 'mongoose-rbac' have the same issue? Mongoose 4.1.0 solve this problem? Thanks.

Anyone able to fix this issue. Mongoose 4.1.0 didn't resolve this problem. i currently have 3.8.8 version

See #45


As per the ticket #318, reverting the odm definition change

Updated the definitions of doctrine odm from doctrine.odm to doctrine_mongodb.odm. Also updated the tests to accommodate this change.

Hey @snc - let me know your feedback and if all good can you please tag it - keen to have it sorted soon so that we can refer the new release in our codebase :)

Thanks, merged.


feat: Allow displaying user defined aux tags in read tooltip

This PR allows the user to add one or more aux tags with -x or --aux-tag that will then be displayed in the tooltip of each read.

Codecov Report

Merging #164 (6c9357a) into main (f196659) will decrease coverage by 3.93%.
The diff coverage is 16.21%.

@@            Coverage Diff             @@
##             main     #164      +/-   ##
==========================================
- Coverage   54.31%   50.38%   -3.93%
==========================================
  Files           4        4
  Lines         348      385      +37
==========================================
+ Hits          189      194       +5
- Misses        159      191      +32

Files Changed
Coverage Δ

src/cli.rs
40.00% <ø> (ø)

src/main.rs
10.28% <0.00%> (-0.10%)
:arrow_down:

src/utils.rs
37.50% <0.00%> (-29.17%)
:arrow_down:

src/plot.rs
87.09% <37.50%> (-5.77%)
:arrow_down:


Type names should not repeat the containing crate or module

Several types in the root module are named Sqlite*. This is not good practice for names, and user code can simply bind these names to different ones in use if they experience a naming collision.

Yep, you're totally right. #97 should fix this but keep most of the old names (for backwards compat, for now).


07-registers: Fix cargo objdump example

The last code block of the Type Safe Manipulation section contains
invalid flags because they are missing a dash. Thankfully cargo is
intelligent enough to provide correct suggestions.
Suggestion from cargo:
llvm-objdump: Unknown command line argument '-no-show-raw-insn'.  Try: '/home/itme/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-objdump --help'
llvm-objdump: Did you mean '--no-show-raw-insn'?
llvm-objdump: Unknown command line argument '-print-imm-hex'.  Try: '/home/itme/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-objdump --help'
llvm-objdump: Did you mean '--print-imm-hex'?

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @therealprof (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

I cloned the repo this summer and ran in the same problem, that was just solved in the matrix :)!
If you had the repo a long time like me you should do **cargo install cargo-binutils** first because if not, changing -to -- alone will not solve the issue.

I cloned the repo this summer and ran in the same problem, that was just solved in the matrix :)!
If you had the repo a long time like me you should do **cargo install cargo-binutils** first because if not, changing -to -- alone will not solve the issue.


Dataset source

How did you generate the dataset? Did you use the same prompts for all models?

Thank you for your interest, we used for all the text to images models prompts coming from the COCO dataset. The filename of the images contains the id of the caption used, except for DALLE 2 which has the caption used in the name itself.


Uploading image to S3 using presigned URL fails on Android

I have an implementation using RNFetchBlob.fetch that works flawlessly for iOS but always fails on Android, and I've been banging my head against this wall for a few days now.
I am uploading an image to AWS S3 using a presigned URL. The presigned URL comes from my server and generates new URLs for each request. However, on Android S3 responds with SignatureDoesNotMatch. I have set permissions in my AndroidManifest.xml as well as getting 'granted' back from PermissionsAndroid.request.
This is a simplified version of my code. I removed event logging etc to make things clearer.
setImage(uploadUrl) {
    const options = {mediaType: 'photo', noData: true, maxWidth: 1920, maxHeight: 1920, quality: 0.2};

    const setImage = new Promise((resolve, reject) => {
        return ImagePicker.launchImageLibrary(options, (response) => resolve(response));
    }).then((response) => {
        if (response.didCancel) return;
        if (response.error) throw new Error(response.error);

        const body = 'RNFetchBlob-' + response.uri;
        RNFetchBlob.fetch('PUT', uploadUrl, {'Content-Type': ''}, body).then((result) => {
            console.log('imagepicker RESPONSE');
            console.log(response);
            console.log('BODY');
            console.log(body);
            console.log('UPLOADURL');
            console.log(uploadUrl);
            console.log('RNFetchBlob RESULT');
            console.log(result);
        }).catch((error) => console.log(error));
    }).catch((error) => console.log(error));
}

On iOS (device and simulator), as mentioned, everything works well.
On Android (simulator, Marshmallow 6.0, api 23), this produces the following output:
imagepicker RESPONSE
{
    fileName: "image-874f9bae-d686-4b4e-b89c-a83f3e02b578.jpg",
    fileSize: 46513,
    height: 1024,
    isVertical: true,
    originalRotation: 0,
    path: "/storage/emulated/0/Android/data/com.client/files/Pictures/image-874f9bae-d686-4b4e-b89c-a83f3e02b578.jpg",
    type: "image/jpeg",
    uri: "file:///storage/emulated/0/Android/data/com.client/files/Pictures/image-874f9bae-d686-4b4e-b89c-a83f3e02b578.jpg",
    width: 683
}

BODY
"RNFetchBlob-file:///storage/emulated/0/Android/data/com.client/files/Pictures/image-874f9bae-d686-4b4e-b89c-a83f3e02b578.jpg"

UPLOADURL
"https://REDACTED-FOR-GITHUB.s3.amazonaws.com/production/asset/2ea438b8-0ba1-4680-b040-5493db3aac26/--unverified?Signature=78gf5edjILenQfttVB8ehSO5pvDvo%3D&x-amz-acl=public-read&Expires=1499637874&AWSAccessKeyId=REDACTED-FOR-GITHUB"

RNFetchBlob RESULT
FetchBlobResponse {data: "<?xml version="1.0" encoding="UTF-8"?>↵<Error><Cod…519/AxHazwJv34A4oQzpAg20k53LEP4=</HostId></Error>", taskId: "q742yws2pngu48hzk5bbjg", type: "utf8", respInfo: Object, info: function…}array: function ()base64: function ()blob: function ()data: "<?xml version="1.0" encoding="UTF-8"?>↵<Error>SignatureDoesNotMatch<Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><AWSAccessKeyId>REDACTED-FOR-GITHUB</AWSAccessKeyId><StringToSign>PUT↵↵application/octet-stream↵1499637117↵x-amz-acl:public-read↵/REDACTED-FOR-GITHUB.s3/production/asset/a0245dd0-f72d-4199-9d29-3bb4de45b19d/--unverified</StringToSign><SignatureProvided> 78gf5edjILenQfttVB8ehSO5pvDvo =</SignatureProvided><StringToSignBytes>50 55 54 0a 0a 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6f 63 74 65 74 2d 73 74 72 65 61 6d 0a 31 34 39 39 32 33 37 31 31 37 0a 78 2d 61 6d 7a 2d 61 63 6c 3a 70 75 62 6c 69 63 2d 72 65 61 64 0a 2f 6d 69 6e 75 74 65 73 2d 73 74 6f 72 61 67 65 2f 70 72 6f 64 75 63 74 69 6f 6e 2f 61 73 71 65 74 2f 61 30 32 34 35 64 64 30 2d 66 37 32 64 2d 34 31 39 39 2d 39 64 32 39 2d 33 62 62 34 64 65 31 35 62 31 39 64 2f 2d 2d 75 6e 76 65 72 45 66 69 65 64</StringToSignBytes><RequestId>BC2909B1F6FA5AB2</RequestId><HostId>H/lwKoVq0GCJB74bslVFiwPhHFZRopoUi7Iv6FDsH+N0519/AxHazwJv34A4oQzpAg20k53LEP4=</HostId></Error>"flush: function ()info: function ()json: function ()path: function ()readFile: function (encode)readStream: function (encode)respInfo: Objectsession: function (name)taskId: "q742yws2pngu48hzk5bbjg"text: function ()type: "utf8"__proto__: Object

Keep in mind that it seems unlikely that there is something wrong with the generated URL since it works 100% on iOS and 0% on Android.
Does anyone know what I'm doing wrong here?
Does anyone have a working solution for uploading images from library and camera on Android to S3 using a presigned URL?
Thank you 😌

@robindowling , thanks for reporting the issue, I'm not sure if this is caused by the problem mentioned in #389, on Android, the file path will need a scheme prefix like file:// which makes the URL passed to native context like this:
RNFetchBlob-file://file://storage/emulated/0/Android/data/....

Yes I notived this, but I am compensating for it by concatenating strings instead of using .wrap. My resulting body looks like this:
"RNFetchBlob-file:///storage/emulated/0/Android/data/com.client/files/Pictures/image-874f9bae-d686-4b4e-b89c-a83f3e02b578.jpg".

Okay, but I think on Android the correct format would be like RNFetchBlob-file://file:///storage/emulate/0/..... not RNFetchBlob-file:///storage/emulate/0/.....

Ok, but I have tried this as well. Using the RNFetchBlob.wrap() produces a RNFetchBlob-file://file:///storage/emulate/0/... string. Using this resulting string as body leads to the same failure as mentioned in the original post.
Do you possibly have a working example of this? Can I provide you with presigned URLs if you wanted to try it out and hopefully prove me wrong? 😌

@robindowling , I'd like to try it if possible 👍  Let's figure out what's happened.

Thank you @wkh237 for being so forthcoming with this, much appreciated!
As mentioned, I can send you presigned URLs for uploading to S3. However these URLs have a TTL and are usable once only so I'd rather not post them publicly.
Should we continue our conversation over email? And then post a working solution in this thread if we are able to find one.

@robindowling , no problem, let's continue this in the email.

This issue has been verified which is caused by the Android native code where replace the Content-Type with application/octet-stream when it has an empty string value ( like "" ), will merge branch issue-425 after it passed test cases.

I can confirm that the change in branch issue-425 solves my issue 100% and I am now able to upload to S3 from Android. The corner case here was that from my understanding, or at least in my implementation, S3 expects the Content-Type to be "", an empty string, not the actual content type.


Implement OAUTH

Web Service Access Key authentication is deprecated and will be removed in the coming months. It is being replaced by OAUTH2.

We no longer have access to a Business Central environment to test our integration, and are as such now unable to continue maintaining our integrations with the product


Enhancement suggestion: Components as attributes in other components or tags

<MyComponent Memoize="true" ComponentProperty="@SomeValue" />

Memoize would be another component which defines the Attribute and had full access to the underlying component.
As an example it could even prohibit rendering and inject a dynamic rendertree which could be stored in a cache. I believe Taghelpers can do something similar.
More Examples:
<MyComponent Repeat="5" ComponentProperty="@SomeValue" />
<MyComponent HideWhenEnvironment="Production" ComponentProperty="@SomeValue" />
<MyComponent DisplayWhenEnvironment="Debug" ComponentProperty="@SomeValue" />
<MyComponent LazyLoad="true" ComponentProperty="@SomeValue" />
<MyComponent DataSourceWithCachingAndErrorHandling="/api/category/value/@value;bindto(ComponentProperty)" ComponentProperty="@SomeValue" />

[...]

Thanks for contacting us, @michaelvolz.
This is not something we plan to add in the near future.


FEATURE REQUEST: Tasker integration

Integration with tools like Tasker or Automate would be great. Sometimes the Wi-Fis of specific SSID has been configured to use DoH or DoT, so it is not needed to have DoH client running on the phone. Or sometimes a VPN is needed within the network, and it is not compatible to use Intra. Tasker integration would make it possible to switch the VPN service accordingly.

Some examples of Tasked integrated VPN:
DNS changer
Shadowsocks
V2rayNG
I'm not sure about Automate.


[Vertica] Very slow to populate table lists and table data viewer

System information:

OS X 10.13.6
DBeaver <IP_ADDRESS>002011957

Connection specification:

Database name and version: Vertica 9.1
Driver name: Vertica JDBC 9.3.1
Do you use tunnels or proxies (SSH, SOCKS, etc)? I use a VPN

Describe the problem you're observing:
When I open a schema and click the table dropdown, it takes 30+ seconds to load the list of tables:

When I click on a table, the table viewer opens, but it shows a blank white space for 30+ seconds, then it finally says "getting table metadata..." and it shows the table data a couple seconds later.
Queries run in SQL scripts are not too slow, although metadata fetching (discover column attribute, discover owner attribute, etc) take a couple seconds longer than they used to.
SQL queries, including metadata queries, are fast in vsql, the command-line utility provided with Vertica.
Steps to reproduce, if exist:
Connect to a Vertica instance with DBeaver, open the table list dropdown, and see how long it takes to populate

is it still actual for you against the recent version (7.3.0)?

I have a similar problem. I use dbeaver 7.3.1 on ubuntu 18.4 and my database is on postgresql 10.x with about 2500 tables. It's fast to show my list of tables but when i double click on a table to see its details it hangs; the UI doesn't respond to any click and only after minutes it eventually shows the table details. Thanks in advance. Stefano

i have to be more precise, if i'm (my dbeaver UI) in the tab DATA is fast in opening a table detail while if i'm in the tab PROPERTIES is superslow. May be the problems is linked to the number of tables (2500) in my databas, so i'd like to know if there is the feature to cache (and refresh) the database catalog when i enter in the database first time of the day. Regards. Stefano

Thanks so much for taking a look into this. It continues to be an issue for me. I am still on 7.2.5 and I will try a newer version in a bit, but I suspect the results will be the same.
I'll give some more details, please let me know if I can do anything else to help you figure it out:

The issue definitely has something to do with databases with very large numbers of schemas and/or tables, as in the data warehouse I'm working with.
When I login using batch accounts that can only access a small subset of the schemas, the problem is not nearly as bad.
It also helps to go into Preferences > Editors > Data Editor and uncheck "Read table metadata (unique keys)" and "Read table references (foreign keys)"

Related issue - whenever I look at a table's data through the "Data" tab, it will spend 15 seconds on "Read data from container" before displaying the data. However, select * from table is instantaneous.

there is no update on issue for a long time.
If it is still actual for you - feel free to reopen it

Everyone here has the same issue.  Nobody found any solution to this?

Yes, the same for me, even on a table of only 10 records ... Other tools do not encounter this problem.


Any reason to use raw function's pointer?

For example, in C/C++ headers if we call a PFN we skip the step when loader choose what driver to call.
Do I need to call a PFN or ash does all work?

@Jerrody Are you referring whether a function is loaded generically through vkGetInstanceProcAddr with or without VkInstance, either resulting in an ICD loader dispatch wrapper or a function specific for that instance?
https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetInstanceProcAddr.html#_description
Same for vkGetDeviceProcAddr: https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetDeviceProcAddr.html#_description

@MarijnS95
I'm not big professional I refer to this article where shown that calling vkCmdDraw is an overhead, instead we call directly PFN_vkCmdDraw at this case we remove this overhead.
https://gpuopen.com/learn/reducing-vulkan-api-call-overhead/
So, my question is does ash call directly this PFN?

@Jerrody PFN_vkCmdDraw it the type of a function pointer. The loader exports a function with this signature as vkCmdDraw, to be linked against directly but with aforementioned dispatch table overhead. Ash does not use those and instead loads it via vkGetDeviceProcAddr(device, "vkCmdDraw") directly, as written in that article:
https://github.com/ash-rs/ash/blob/29b935b1c176d6d53696beeaf09b7735ab4af5e7/ash/src/vk/features.rs#L3051-L3052
_f here is the loader function:
https://github.com/ash-rs/ash/blob/29b935b1c176d6d53696beeaf09b7735ab4af5e7/ash/src/device.rs#L22-L24
Which is used when creating a device:
https://github.com/ash-rs/ash/blob/29b935b1c176d6d53696beeaf09b7735ab4af5e7/ash/src/instance.rs#L341-L357
tl;dr: Ash uses optimized function pointers (specific to an instance/device) in almost all cases [^1].
[^1]: Some extensions combine device-level and instance-level functions: the latter cannot be loaded for a device, hence the entire extension is loaded via the instance and we take the dispatch table hit until our generator is capable of separating them out (https://github.com/ash-rs/ash/pull/556#discussion_r784237840).


kubectl get nodes shows issue : - Unable to connect to the server: x509: certificate signed by unknown authority

Hi,
While creating k3s cluster, i was getting below error (using kubelet-1.24.1-00 same version for Kubeadm & Kubectl)
The connection to the server <IP_ADDRESS>:6443 was refused - did you specify the right host or port?
did some googling and run few commands shows to fix this issue but now another below issue created
root@nodeone:~# kubectl get nodes
Unable to connect to the server: x509: certificate signed by unknown authority
root@nodeone:~# kubectl -n kube-system get pods
The connection to the server <IP_ADDRESS>:6443 was refused - did you specify the right host or port?
root@nodeone:~#
tried to root@nodeone:~# export KUBECONFIG=/etc/kubernetes/kubelet.conf but no solution here.
Please suggests here

How did you install k3s? Other than observing the error message, what have you checked so far? Is the k3s-server service running? What do the logs say?

below is k3s server service status
root@nodeone:~# systemctl status k3s
● k3s.service - Lightweight Kubernetes
Loaded: loaded (/etc/systemd/system/k3s.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2022-10-26 14:07:57 UTC; 2s ago
Docs: https://k3s.io
Process: 9515 ExecStartPre=/bin/sh -xc ! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service (code=exited, status=0/SUCCESS)
Process: 9517 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status=0/SUCCESS)
Process: 9518 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)
Process: 9519 ExecStart=/usr/local/bin/k3s server (code=exited, status=1/FAILURE)
Main PID: 9519 (code=exited, status=1/FAILURE)
CPU: 405ms
root@nodeone:~#
i have installed using
sudo apt-get install -y kubelet=1.24.1-00 kubeadm=1.24.1-00 kubectl=1.24.1-00
error is
root@nodeone:~# kubectl get nodes
Unable to connect to the server: x509: certificate signed by unknown authority
root@nodeone:~# kubectl -n kube-system get pods
Unable to connect to the server: x509: certificate signed by unknown authority
root@nodeone:~#

i have installed using
sudo apt-get install -y kubelet=1.24.1-00 kubeadm=1.24.1-00 kubectl=1.24.1-00

You have installed multiple Kubernetes distributions on your machine. Don't do that. Clean up your kubeadm-based cluster, remove the other packages, and reinstall k3s.


Fixed drag drop behaviour for elements that are not blocks and should not be dropped between blocks.

To replicate this issue using the provided sample page, create a text or heading block and type something into it. Then, select the text you just typed and click drag it around the page. Dragging it around you will trigger the dropzones between blocks. Dropping the text into a dropzone will leave the dropzone in the wrong state and it continues to show the "Drop block here" text.

this looks good but seems to cause broken tests

The build was broken on Master which is why it was failing. Updated my branch from Master to verify this.

Hi, looks like we had a problem with our test setup where tests were
running for core team members but not anyone else.
This "should" be fixed now. Can you pull master into your branch and and
push to your PR again plz?
On Thursday, March 5, 2015, Gabriel Moreira<EMAIL_ADDRESS>wrote:

The build was broken on Master which is why it was failing. Updated my
branch from Master to verify this.
—
Reply to this email directly or view it on GitHub
https://github.com/madebymany/sir-trevor-js/pull/304#issuecomment-77283793
.

Isn't that what I did earlier?

Great stuff!


optimize: optimize some scripts related to Apollo

optimize: optimize some scripts related to Apollo
优化一些与 Apollo 相关的脚本。

@funky-eyes @slievrly LGTM


Uncaught (in promise) TernError: No type found at the given position.

https://www.youtube.com/watch?v=39I1HwiMYCw
When I press Alt-O to bring up documentation I often get this error:
Uncaught (in promise) TernError: No type found at the given position.
atom-ternjs-server.js [sm]:171 Object
It happens when there is no valid type under the cursor, or when the type under the cursor is commented out. In the video I show causing this error a bunch of times, which breaks the atom-ternjs and it no longer displays documentation. In the video it looks like I have to cause the error many many times but that is just to reproduce it reliably. In actuality this happens every couple of minutes when editing...

https://github.com/ternjs/tern/issues/811
This is a bug in tern itself


Add support for colon-based line references

Addresses #210
Second swing at this issue and now have a working solution.
Currently, navigating to https://deno.land/std/examples/echo_server.ts#L5 in a browser will display pretty-printed code, with line 5 highlighted.
The Deno CLI provides line references in errors in a different format: https://deno.land/std/examples/echo_server.ts:5:8
This PR uses proxy() in registry_utils.js to re-write the "incorrect" line references to the supported style. Column references are discarded.

It would be nice if we redirected requests to https://deno.land/std/examples/echo_server.ts:5:8 to https://deno.land/std/examples/echo_server.ts#L5 rather than serving them. This would then have to happen in the worker and on the client. That way we prevent many different URLs that all serve the same data.

Closing because out-of-date and stale. Sorry @isAdrisal - appreciate the work but somehow we didn't get this one in. If you want, please rebase and start another PR - I will review promptly.


Moar Tests

The following is a list of methods in the public API that looked like they could use test coverage:

General

[ ] approve
[ ] isApprovedOrOwner
[ ] getApproved
[ ] tokenURI

Resources

[ ] getResourceObject
[ ] getResourceOverwrites
[ ] hashResource16

Introspection

[ ] isRmrkCore

Nesting

[ ] deleteChildFromChildren
[ ] setChild

Transfers

[ ] transfer
[ ] transferFrom

Royalties

[ ] getRoyaltyData
[ ] setRoyaltyData

Besides royalties which are not yet implemented, everything else is covered or removed.


byteSent is incorrect in access_log middleware

Describe the bug
refer to to https://github.com/gofiber/fiber/issues/2232

I wanna try it.