iOS isBluetoothEnabled always return false

bluetooth.isBluetoothEnabled().then(
function(enabled) {
console.log("Enabled? " + enabled);
);
isBluetoothEnabled is always returning false eventhough I have turned on my ipad mini bluetooth.
My ipad mini is using 9.3.5 which the latest version for ipad mini.
I built ios app using nativescript sidekick in a linux laptop.
I don't have problem running this in my android tab, iphone, and ipad running iOS 11. Works really fine.
I hope below information can help. Thanks a lot.
"nativescript": {
"id": "com.xxx.xxx",
"tns-ios": {
"version": "4.2.0"
},
"tns-android": {
"version": "4.2.0"
}
},
"dependencies": {
"@angular/common": "^6.1.0",
"@angular/compiler": "^6.1.0",
"@angular/core": "^6.1.0",
"@angular/forms": "^6.1.0",
"@angular/http": "^6.1.0",
"@angular/platform-browser": "^6.1.0",
"@angular/platform-browser-dynamic": "^6.1.0",
"@angular/router": "^6.1.0",
"kinvey-nativescript-sdk": "^3.11.5",
"nativescript-angular": "next",
"nativescript-bluetooth": "^1.3.1",
"nativescript-camera": "~3.1.2",
"nativescript-geolocation": "^4.3.0",
"nativescript-intl": "~3.0.0",
"nativescript-theme-core": "^1.0.4",
"reflect-metadata": "~0.1.8",
"rxjs": "~6.0.0",
"tns-core-modules": "next",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.7.1",
"@angular-devkit/core": "^0.5.13",
"@angular/compiler-cli": "^6.1.0",
"@ngtools/webpack": "^6.1.1",
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.10.0",
"clean-webpack-plugin": "~0.1.19",
"codelyzer": "^3.0.1",
"copy-webpack-plugin": "^4.5.2",
"css-loader": "^0.28.11",
"extract-text-webpack-plugin": "~3.0.2",
"fs-extra": "^0.30.0",
"glob": "^7.1.2",
"lazy": "1.0.11",
"markdown-snippet-injector": "^0.2.0",
"nativescript-css-loader": "~0.26.0",
"nativescript-dev-typescript": "next",
"nativescript-dev-webpack": "next",
"nativescript-worker-loader": "~0.8.1",
"opener": "^1.4.1",
"raw-loader": "~0.5.1",
"resolve-url-loader": "~2.3.0",
"rimraf": "^2.5.3",
"tar.gz": "^1.0.5",
"tns-platform-declarations": "^3.4.1",
"tslint": "^5.11.0",
"typescript": "~2.7.2",
"uglifyjs-webpack-plugin": "^1.2.7",
"webpack": "~4.5.0",
"webpack-bundle-analyzer": "^2.13.1",
"webpack-cli": "~2.0.14",
"webpack-sources": "~1.1.0"
},

isBluetoothEnabled should be false initially until the delegate method centralManagerDidUpdateState is called and the state is poweredOn.  For iOS there should be a callback implemented for then this happens so that we know when to start scanning.


Improve setting up X credentials

Maybe add the option to instead copy and paste on of the following options and read the necessary information from that:

Copying as cURL seems most popular, we can then parse the cURL string to get all the important information to make the request

https://github.com/ofw/curlify maybe using this would be the easiest


Hi, I'm new to this and the README is not helping alot.

I'm running into this error:
C:\Users\Administrator\Discondelete>main.py
Traceback (most recent call last):
File "C:\Users\Administrator\Discondelete\main.py", line 1, in
import discord
ModuleNotFoundError: No module named 'discord'

You need to install the requirements as said in the readme.


⚠ Bofrost.at has degraded performance

In e87e242, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1916 ms

Resolved: Bofrost.at performance has improved in 3973c08 after 15 minutes.


Update jsdom from version 14 to version 16

Back when this repository was created, jest was using jsdom version 11.
Switching to jest-environment-jsdom-fourteen allowed using a newer
version of jsdom: version 14. Since then, jest has gone through many
updates. The default jsdom version in jest is now version 16.
In this pull request, I propose to remove the jest-environment-jsdom-fourteen dependency, and switch the
default environment to jest-environment-jsdom. This effectively updates
jsdom to version 16.

Awesome.. I will merge and try it out tonight.

Awesome.. I will merge and try it out tonight.


Failed to delete workflow history: found unrecognized item

Describe the bug

Deleting workflow history returns an error
Steps to reproduce

Create a workflow and execute.
Delete a workflow history.

Result

Returned an error message found unrecognized item

Expected behavior

Delete workflow history successfully.
Environment

Walrus version: v0.4.0-rc1  a3e5c0343d3e831ca30e4fd76a160212bc5bba7f
UI version: dev-6b82ce8

Additional context
Add any other context about the problem here.

Environment

Walrus version: v0.5.1

Test Result: Cannot be reproduced in v0.5.1.


STM32 :  add  STM32C071 series

Add soc and kconfig
Provide support dtsi files
Add board support for nucleo_c071rb
Run samples like helloworld, blinky and button

@nordicjm PTAL


[EDPM]Switch to test_operator for running tempest tests

Since most of the downstream jobs are using test_operator to run tempest. Let's enable the same it in upstream.
Set cifmw_test_operator_tempest_tests_exclude_override_scenario to true to pick the default skipped list tests. It is updated for va-hci and multinode job.
Depends-On: https://github.com/openstack-k8s-operators/ci-framework/pull/1402
As a pull request owner and reviewers, I checked that:

[x] Appropriate testing is done and actually running

recheck

/lgtm

/lgtm


Jason seagoing client- gallery mode involves all available images

Passed to me by Ryan so I may be describing too broadly. A symptom is that gallery mode is unusable when the client is ashore and talking to the seagoing server is on ship.

I investigated this a little more. The actual behavior is that when we load the first page of the gallery, it loads 16 images per page (configurable with the UI popup), but it loads them for all 3 cameras, even though we may initially only be looking at, say, SubSea1. So it downloads 16x3 images when we only need 16.
When we advance to the next page, it only loads them for the currently selected camera.

Try updating this line in ./src/components/lowering_gallery.js:

with:

per react-bootstrap docs: https://react-bootstrap.github.io/components/tabs/#tabs-api

Tina says "Scotty thinks the images might be getting downloaded on each gallery reload rather than being cached"


remove double var

As far as I can tell we would need you to sign a Contributor License Agreement to merge this PR. However I think that's probably overkill for a typo, so I've just made the equivalent changes manually via 22791e790a63cdd96f468b3525db79c386a917ae.
Thanks for catching this.


CI tests

CI tests for Windows server 2019 and 2022. Demonstrates the failure on 2022. Set to run manually for safety/annoyance reasons.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Update the 'Open Source Routing Engines And Algorithms' page with Motis

Hello all,
I'm a follower of your beautiful works and I'd like to thank you for all these tutorials.
Do you have plans for updating the content of 'Open Source Routing Engines And Algorithms' page with current versions of the engines? If so, would you consider including Motis too?
Best,
Orkut

Ah nice, didn't know that one yet!
Unfortunately we don't find any time lately for articles/tutorials.. We do accept PRs though:) I wouldn't like to include it in the actual evaluation, but would appreciate a section in the "other routing engines".
Would you be comfortable with writing that bit?

Just realized who I’m talking to😂 See ya at FOSS4G right?:)


Webpack 4 support

Attempting to use awesome-typescript-loader to integrate Percy with a TypeScript project yields:

Error: It looks like you're using an old webpack version without hooks support. If you're using awesome-script-loader with React storybooks consider upgrading @storybook/react to at least version 4.0.0-alpha.3

percy.config.js:
const path = require('path');

exports.default = {
  webpack: {
    resolve: {
      extensions: ['.ts', '.tsx', '.js', '.jsx'],
      alias: {
        Public: path.resolve(__dirname, '../public/'),
      },
    },
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          loader: 'awesome-typescript-loader',
          exclude: /(node_modules)/,
          options: {
            useCache: true,
            cacheDirectory: './.cache/awesome-typescript-loader',
          },
        }
      ]
    }
  }
}

Same here. @cainlevy did you manage to fix that?

Negative: https://github.com/percy/react-percy/commit/66a5c0c4f0ac8b38155314f7e63c61c6f8494f24


Incremental models in-depth -- Broken link.

Contributions

[X] I have read the contribution docs, and understand what's expected of me.

Link to the page on docs.getdbt.com requiring updates
https://docs.getdbt.com/best-practices/materializations/4-incremental-models
What part(s) of the page would you like to see updated?
Hi.
The following link is broken:
https://docs.getdbt.com/best-practices/materializations/reference/resource-configs/full_refresh
My proposal is to replace it for this:
https://docs.getdbt.com/reference/resource-configs/full_refresh
Regards.
IL.
Additional information
No response

thanks for catching this and opening up the issue @ialdg ! I've opened a pr to fix this up: https://github.com/dbt-labs/docs.getdbt.com/pull/5253


Extract common transaction tasks to a planBuildBroadcast helper

planBuildBroadcast is back! 😆
We've refactored our Zustand actions a number of times and we're back to the point where there's a ton of shared code between them. I extracted the bits that are general to pretty much any transaction: managing toasts, planning then building then broadcasting, etc. The rest gets passed in.


terragrunt: 0.44.0 -> 0.44.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/gruntwork-io/terragrunt/releases.
meta.description for terragrunt is: A thin wrapper for Terraform that supports locking for Terraform state and enforces best practices
meta.homepage for terragrunt is: https://terragrunt.gruntwork.io
meta.changelog for terragrunt is: https://github.com/gruntwork-io/terragrunt/releases/tag/v0.44.4
Updates performed

Golang update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.44.4 with grep in /nix/store/faz3h0mnlqkaww3l22hh13a62zqmjkib-terragrunt-0.44.4
found 0.44.4 in filename of file in /nix/store/faz3h0mnlqkaww3l22hh13a62zqmjkib-terragrunt-0.44.4

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
terragrunt

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/faz3h0mnlqkaww3l22hh13a62zqmjkib-terragrunt-0.44.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A terragrunt https://github.com/r-ryantm/nixpkgs/archive/6ba0151a846af3938196f830f7c128678a7ff89c.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/faz3h0mnlqkaww3l22hh13a62zqmjkib-terragrunt-0.44.4
ls -la /nix/store/faz3h0mnlqkaww3l22hh13a62zqmjkib-terragrunt-0.44.4/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

terragrunt

Maintainer pings
cc @06kellyjac for testing.

Result of nixpkgs-review pr 219661 run on aarch64-darwin 1

1 package built:

terragrunt


Peptides: peptide space

Visualize a collection of peptides in 2-dimensional space, using t-SNE with the edit distance function.

Implement Peptide space feature similar to Chemical space feature in Chem package:

[ ] Implement an algorithm to calculate similarities for a pair of sequences (semtype - alignedSequence)
[ ] Use SPE algorithm to get 2d map of peptide sequences
[ ] Implement a new feature in the property panel of each column with alignedSequence values

Do we really need to consider only alignedSequence? As I can remember string metrics can work on strings of different length as well.

Only this left:

Implement a new feature in the property panel of each column with alignedSequence values

I would also add the following task:

[ ] Implement embedding as a web worker to not slow down the main thread.

In fact, the Peptide Space could be considered as ready with some minor bugs.

[ ] Benchmark UMAP performance on dataset of 40k sequences.

Suggest to close the issue.


GEN-27: Meeting Notes: Week#4 Meeting#4

To Do

Take notes during the meeting.
Create the wiki page.
Add links to Sidebar and Homepage.

Deadline
28.10.2022 @15.00
Additional Information
No response

Added general meeting 4.

Checked, confirmed


Update import-data with hint to valid connection string

I think there was once a "Settings">"Keys" tab in Cosmos DB which is now gone. The "Connection String" tab does not show the needed Connection string for the JSON to CosmosDB migration. As a beginner I lost time finding out that port 443 is needed.
This is an attempt to show a example connection string.

@cBashTN : Thanks for your contribution! The author, @deborahc, has been notified to review your proposed change.

There is a mistake in the last line.

MongoDB instance

should be

CosmosDB instance

Or the whole line can be removed.

@cBashTN : Thanks for your contribution! The author, @deborahc, has been notified to review your proposed change.

@cBashTN Thanks for your contribution, we provided some description of the connection string in this section of the same doc, https://docs.microsoft.com/en-us/azure/cosmos-db/import-data#SQLSource . I agree that we can have better clarity at the beginning of the doc itself.
Can you please make the following changes before we merge your PR.

The <CosmosDB Endpoint> is the "Host" URI. You can get this value from the Azure Portal. Navigate to your Azure Cosmos account, and open the Connection Strings or Keys pane. and copy the URI/Host field value.
The <AccountKey> is the "Password" or PRIMARY KEY.  ou can get this value from the Azure Portal. Navigate to your Azure Cosmos account, and open the Connection Strings or Keys pane. and copy the  "Password" or PRIMARY KEY value.
The <CosmosDB Database> is the Cosmos DB database name.

We can merge your PR after you make the above edits.

Thank you for considering my changes. I made the suggested changes and I'm open to make more if wished.
I kept the example because it is the only pointer to the need to have https:// in front of the Host field.
 <- example host from a trycosmosdb-trial-account
Just copying the URI/Host field value is not enough.

@cBashTN The connection strings in SQL API have https and port number in the URL. The portal has it too, are you looking at the MongoDB API? I haven't tested it but It may be required for MongoDB. If you have validated the URI and the import works fine, please add it back and then we will merge your PR.
Thanks for your contribution!

@SnehaGunda As a beginner user, I want to use the 'Azure Cosmos DB Data Migration Tool' to bulk import a local folder of json files into a Azure Cosmos DB for MongoDB API account.
When we write:

[..] open the Connection Strings or Keys pane and copy the URI/Host field value.

..a beginner might exactly do this (like I did) and get a "Invalid URI: The URI scheme is not valid.".

For an MongoDB API account, the correct URI can be found under the Overview pane.

I successfully tested it with the URI from Overview (it is the same as in Connection String plus the https:// and a port number.
I did not test it with the SQL API. If it looks different then we might have to adapt the change to something like

The <CosmosDB Endpoint> is the "Host" URI. You can get this value from the Azure Portal.
SQL API: Navigate to your Azure Cosmos account, and open the Connection Strings or Keys pane and copy the URI/Host field value .
MongoDB API: Navigate to your Azure Cosmos account, and open the Overview pane and copy the URI field value .

@cBashTN I validated that the URI in "Overview" blade has Https and port number for all APIs and for some API's it matches with the value in connection string/keys blade. So if we point to the URI in overview blade for all APIs it would work.
we should have the description as:
The  is the endpoint URI, you can get this value from the Azure Portal. Navigate to your Azure Cosmos account, and open the Overview pane and copy the URI value.
Can you make this change?

@cBashTN : Thanks for your contribution! The author, @deborahc, has been notified to review your proposed change.

@SnehaGunda I did change it as suggested.
Tested with MongoDB API account and the Migration tool v1.8.2.

From my point of view: Can be merged and closed. Thank you for considering my changes and may the next beginner not struggle as I did!

This issue is slightly related to:
Azure/azure-documentdb-datamigrationtool#18
Azure/azure-documentdb-datamigrationtool#31

@cBashTN we will merge your PR shortly.
#sign-off

@SnehaGunda: I'm sorry - only the author of this article, @deborahc, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

#sign-off

@SnehaGunda: I'm sorry - only the author of this article, @deborahc, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

@GitHubber17 can you please merge this PR. Deborah the doc author is OOF this week.


Trace should use monotonic time when available in PHP

Right now, it calls microtime(), which is not guaranteed to be monotonic. This could result in bogus measurements because of NTP-introduced clock skew etc.
https://github.com/GoogleCloudPlatform/google-cloud-php/blob/3f9def8696d50201d1f79a1d68a63f908cf113b3/src/Trace/Tracer/ContextTracer.php#L88
One PR that would implement this for PHP is here: https://github.com/php/php-src/pull/2368

Moving this to the new Feature Request wiki page.

FYI: hrtime() coming in PHP 7.3.


all users assigned teacher roles can update records

All users assigned teacher roles can update records, only the teacher who is the owner of the record should be allowed to update the records.

fixed this issue. Now only teachers can update documents which they own.


Bigquery status check for cdapython

Adding a hook into cdapython to get status check for the bigquery table

Verified by Me


create an example that sets up an order book and an orderbook listener

need to get 1.1 out the door so I can start the python 3 conversion. No need for this to be done for 1.1


nixos/garage: allow unsafe replication modes, restart on config change

Description of changes
Allows using replication modes like 2-unstable for all the write speed (who needs read-after-write consistency?)
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@ofborg test garage


minimizing built-in sentences

with the addition of the new sentence creation system, many of the built-in sentences are no longer needed to be built into the compiler. those sentences should instead be moved into the new standard library.

Any statement in particular you are thinking of? :thinking:

abs <num> is an obvious one.
floor and ceil, and maybe optionally also incr and decr.
join <text> and <text> in <var> should be removed entirely imo.
do you want me to make a full list?

No, it's okay, I get it. I wouldn't really remove the ones we have at the moment because that would break backwards compatibility with already written software that uses those statements and hasn't had imported the standard library. Even though probably there's no LDPL software out there I know for a fact that some companies are looking at us, not even kidding, so I wouldn't like to break backwards compatibility. Our docs promise it won't be broken, so it's a matter of principles.
But, from now on, we should evaluate whether a statement should be included into the language or added to the STDLib. For instance, POWER (to raise numbers to a power) or SQRT should maybe be added to the language in order to take advantage of the processor logarithm tables, as including them in a std briefcase would be very slow (and harder), but all the CSV commands I was talking about the other days should be part of the STDLib and not the language.

I'd really like to know more about those companies. Sounds interesting.

I'd really like to know more about those companies. Sounds interesting.

Sorry, I can't really say much at the moment, I hope you can understand :(
I came here to talk about minimizing built-in statements. I was thinking that once we have a true and tested "final" release of the language (before shifting our focus to the STD) we could maybe release LDPL 4.0, breaking a little bit backwards compatibility. We could remove redundant statements and tell people that have existing code in LDPL to update it to LDPL 4.0 by adding IMPORT "lib/ldpl_base.ldpl" or something like that (that would include the removed statements), thus making the language smaller. That would be nice.


Date format of posts and pages is different

The format of a content type with isPost: true follows ISO8601. The date that was determined by the file's ctime, when the content type is not a post, doesn't follow the same format, but dd-mm-YYYY instead.
Relevant line:
https://github.com/nuxt-community/nuxtent-module/blob/56e04d7886dbc8fe39c5fb8c0e48a415b5f960d0/lib/content/page.js#L168
Is this by design, or a bug?

Yea that's an oversight, they should follow the same format - YYYY-MM-DD


Count example in the docs seems wrong

Hello! Thanks for the great lib ^_^
I've been testing a bit the examples,
and found out that
# Getting the total of records
db.users.count()

in the README doesn't work for me, while db.users.find().count() does.
Am I doing something wrong or is the docs to fix?
Thank you,
have the greatest day

Strange in the background its doing a .find().count().  Can you give a small example that breaks?
https://github.com/schapman1974/tinymongo/blob/master/tinymongo/tinymongo.py#L155

Sure, to have it on a fresh install I checked with:
docker run --rm -it python:3.6-alpine ash

$ pip install tinymongo
# [...]

$ python
Python 3.6.10 (default, Jan 18 2020, 02:57:08)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from tinymongo import TinyMongoClient
>>> collection = TinyMongoClient().mydb.users
>>> collection.find().count()
0
>>> collection.count()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'TinyMongoCollection' object is not callable
>>>

Same with Python 3.7 and 3.8.

Show me where i'm going wrong in my testing
https://github.com/schapman1974/tinymongo/blob/master/demo.py#L45
I added count functionality to the demo.py and everything runs as expected.
Is this maybe when there is no data that you are doing this.  Let me know. If the functionality there differs from how MongoCollection works we can certainly fix that.

@davidlatwe you are right:
docker run --rm -it python:3.8-alpine ash

$ apk add git
# [...]
$ pip install git+https://github.com/schapman1974/tinymongo.git
# [...]
Successfully installed pymongo-3.10.1 tinydb-3.15.2 tinydb-serialization-1.0.4 tinymongo-0.2.1
$ python
Python 3.8.2 (default, Mar 24 2020, 02:56:01)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from tinymongo import TinyMongoClient
>>> collection = TinyMongoClient().mydb.users
>>> collection.count()
0

So the docs for the current stable are not to be found in the README, obviously, sorry. My fault.
To things as side notes:

should a new version be released on Pypi if the current one is too old?
I've just find out that pymongo API moved from query_set.count() to collection. count_documents(query), as shown in: https://api.mongodb.com/python/current/tutorial.html#counting. Maybe you want to reflect this change too?

I can open other issues for those if you like, and try to help out with a PR for the second one.
I'll close this one as we've found I was wrong, thanks!

Yeah happy to review PR for that.  I can get PyPi updated this week sometime


Publication Cover not displaying

The publication cover image was showing up on my Edition site but now it doesn't. It's a .png file which it says it supports. Any advice?

Hey 👋 . Our forum is a great place to get community support, plus it helps create a central location for searching problems/solutions.
When you ask for support, including your site URL or any extra information like screenshots would help getting better answers.
Thanks!


How update Datasource data with reload

Hi
I would like to reload my data in  DatasourceController when the user clicks on the refresh button.
My Datasource shows changing in debug but no effect on collection layout views or Cells
thanks

are you asigning the new data to the datasource? When you do that it should happen right away. For instance, on your DatasourceController you should do the following.
self.datasource = usersDatasource
if that does not work and I wouldnt know why, you could try:
collectionView?.reloadData()

hi,
I already doing the same what you suggest but it's not reloading data in my cells.

LBTAComponents
Is there any method to reload DatasourceConstroller from scratch ??

hi
I would like to reload my data in DatasourceController when the user clicks on the refresh button.My Datasource shows changing in debug but no effect on collection layout views or Cells.
self.datasource = usersDatasource
if that does not work and I wouldnt know why, you could try:
collectionView?.reloadData()
Yes, i have tried it but no luck its shows old values on reload. If you allow me I can share my source code with you that will help to share my issue clearly. I trying to using your LBTAcomponents in my project this is my first project but I stuck on my first screen.

Share your DataSource Code... you have to be missing something. The example project in the repo has some examples with basic usage of the library

HI,
Thanks for supporting, I have traced my issues and resolved.
once again thanks. I will disturb you if is there anything in future.
Ehsan-ul-haq
(Software & Web Development)
IPhone Android Nokia (Development)
3D Animation Services
+923232430139
http://www.iehsan.com
https://www.linkedin.com/in/iehsan/
http://www.linkedin.com/profile/view?id=39199691&trk=tab_pro
http://www.facebook.com/iehsan
On Thu, Apr 6, 2017 at 1:01 AM, Jesus Adolfo<EMAIL_ADDRESS>wrote:

Share your DataSource Code... you have to be missing something. The
example project in the repo has some examples with basic usage of the
library
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bhlvoong/LBTAComponents/issues/7#issuecomment-291980015,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACvv9X2pEShJui5_CFFLGVDd9l4xCEKwks5rs_MogaJpZM4MwkXb
.

Hi,
How are you? I have one question
How I can reload my homedatasourcecontroller from my
DatasourceCell file  item tap guests. ?
I have tried it with
collectionView?.reloadData()
but no luck
Thanks
Ehsan-ul-haq
(Software & Web Development)
IPhone Android Nokia (Development)
3D Animation Services
+923232430139
http://www.iehsan.com
https://www.linkedin.com/in/iehsan/
http://www.linkedin.com/profile/view?id=39199691&trk=tab_pro
http://www.facebook.com/iehsan
On Thu, Apr 6, 2017 at 1:15 AM, EHSAN UL HAQ<EMAIL_ADDRESS>wrote:

HI,
Thanks for supporting, I have traced my issues and resolved.
once again thanks. I will disturb you if is there anything in future.
Ehsan-ul-haq
(Software & Web Development)
IPhone Android Nokia (Development)
3D Animation Services
+923232430139 <+92%20323%202430139>
http://www.iehsan.com
https://www.linkedin.com/in/iehsan/
http://www.linkedin.com/profile/view?id=39199691&trk=tab_pro
http://www.facebook.com/iehsan
On Thu, Apr 6, 2017 at 1:01 AM, Jesus Adolfo<EMAIL_ADDRESS>wrote:

Share your DataSource Code... you have to be missing something. The
example project in the repo has some examples with basic usage of the
library
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bhlvoong/LBTAComponents/issues/7#issuecomment-291980015,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACvv9X2pEShJui5_CFFLGVDd9l4xCEKwks5rs_MogaJpZM4MwkXb
.

You just need to update the datasource object and call reloadData.  You can look at the pod source code to see whats going on.

I am also have same issue. In my case I have an API call minor number changes from ViewDidLoad API.
I set the dataSource "self.datasource = usersDatasource", "self.collectionView?.reloadData()" in DataSourceController when api is success. But no luck It is not reload.


Add second notification point on rip complete

Added a call to the notification script to run on rip completion so that the user is notified both when the rip AND the transcoding is completed.

I agree with making this notification an option in the config.  I think the two use cases are a user wants to know when the rip is complete so they can insert the next disc (this PR) or a user wants to know when transcoding is done so they can watch the movie.

Should be a simple if check, I’ll look at putting together a PR for this, I
might have time tomorrow.
I agree with those two use cases, those are the two I like to have at
least. :)
On Thu, Sep 21, 2017 at 12:56 AM Benjamin Bryan<EMAIL_ADDRESS>wrote:

I agree with making this notification an option in the config. I think the
two use cases are a user wants to know when the rip is complete so they can
insert the next disc (this PR) or a user wants to know when transcoding is
done so they can watch the movie.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ahnooie/automatic-ripping-machine/pull/84#issuecomment-331051032,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQVLdY5QXyQirV-D81qseO4K1VmG87uIks5skeyTgaJpZM4PJGah
.

Just submitted #88 PR to make these notifications configurable in the config file. Also added a rip notification to data_rip.sh for consistency.
Only notification that is not around for ripping is the audio rip, as it is not in a separate script. It could be added, but thought some discussion might be warranted for that as a separate PR.

Thanks!  Closing in favor of #88.


[stateKey]="false" not working with Angular 17 (using ssr) and @bloomreach 22.0.2

[stateKey]="false" mentioned on https://www.npmjs.com/package/@bloomreach/ng-sdk#state-transfering
does not work. The state is still transfered (present in the html)
Using. Angular 17 with SSR
and @Bloomreach v20.0.0 and v22.0.2 (both goes wrong)
removing   [stateKey]="false" has no effect.

Still broken

@TimoPot Since Angular 17 has its own built-in SSR, we no longer use Universal for server-side rendering. The [stateKey] Input in ng-sdk is deprecated. To turn off SSR, you can uninstall @angular/ssr and remove all related files, like server.ts, from your Angular 17 project.

Oh wow. We are not going to remove SSR because we are using SSR to deliver our pages. We need SSR to fetch the resourceapi.
But if you're saying that the [stateKey] is deprecated then we have to come up with another solution to remove the state from the HTML.
I also don't understand why youre saying that we could turn off SSR. That is up to the customer.
We are one of the BR users and we have decided to use SSR for good reasons.

I don't mean you should turn off SSR. In Angular 17, your project manages state and SSR directly. To apply any changes regarding them, you handle it within your project.


Allow rich text in the VM Notes field using Markdown syntax

I would like to be able to write rich notes about my VMs using the Markdown syntax.
This could be implemented by using the AttributedString API introduced by Apple in 2021.

Seems like TextEditor does not support AttributedString yet.

What I would like is to write markdown in the VM config and then see the formatted text when I select the VM in the list. That should be possible, right?

It is possible using Text but Text doesn't provide scrolling so you would have to create a custom view that lets you display the text in a scrollable view. I think Apple should provide an updated API.

This seems like it would be easily possible by wrapping UITextView with UIViewRepresentable. I found this Swift Package that implements this.

SwiftUI is already extremely fragile and things keep breaking or not working properly even with minor OS updates. I hesitate to add any "custom" SwiftUI controls and would rather wait for an "official" Apple API.


[FLINK-31500][table-planner] Move SqlAlterTableSchema conversion logic to SqlAlterTableSchemaConverter

What is the purpose of the change
Similar to FLINK-31368, the SqlToOperationConverter is a bit bloated.
Introduce SqlNodeConverter for SqlAlterTableSchema-related conversion logic
Brief change log
Add SqlNodeConverter implementation of SqlAlterTableSchema
Verifying this change
This change is already covered by existing tests, such as TableEnvironmentTest, FlinkSqlParserImplTest
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature?  no
If yes, how is the feature documented? docs

@wuchong PTAL. how about reuse previous AlterSchemaConverter? or we extract the convert utils from AlterSchemaConverter and shrink in SqlAlterTableConverter.

Hi @chucheng92 , I think it's a good idea to reuse AlterSchemaConverter. But the current AlterSchemaConverter is a little confusing because we have so many converters. Actually, AlterSchemaConverter is also bloated because it stuffs many SqlNodes conversions for ALTER statements. Maybe we should split the methods of AlterSchemaConverter into each SqlNodeConverters. What do you think?

@wuchong got it. we can split the methods into concrete SqlNodeConverter. i will change it later.


give aria-label to StatusOk, StatusWarning and StatusError components

Hey, I just made a Pull Request!
We are having total 6 types of Status, those are Ok, Warning, Error, Pending, Running and Aborted. But, we have given aria-label attribute to only 3 of them which are Pending, Running and Aborted. This PR give the aria-label attribute to the rest Status component which includes Ok, Warning and Error.
There are no test cases written for these Status components, I would love to write test cases for them, please let me know if it would be a good idea.
Screenshots
StatusOk
http://localhost:6006/iframe.html?id=feedback-status--status-ok&viewMode=story

StatusWarning
http://localhost:6006/iframe.html?id=feedback-status--status-warning&viewMode=story

StatusError
http://localhost:6006/iframe.html?id=feedback-status--status-error&viewMode=story

:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[x] Screenshots attached (for UI changes)

👍, thanks!

@Rugvip could I also write test case for the Status component?
Right now the Status components are not having test cases.

@abhishekjakhar Please do! Don't go overboard though as they're pretty simple components.

@abhishekjakhar Please do! Don't go overboard though as they're pretty simple components.

I will only use getByLabelText and check the value of aria-label.


#25 add documentation

add better documentation

closes #25

Codecov Report

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

@@           Coverage Diff           @@
##           master      #38   +/-   ##
=======================================
  Coverage   98.36%   98.36%
=======================================
  Files          15       15
  Lines         184      184
  Branches       43       43
=======================================
  Hits          181      181
  Misses          2        2
  Partials        1        1

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 379d7a7...f00c997. Read the comment docs.


Document runtime NuxtApp hooks and build-time Nuxt hooks

add support for generating documentation from jsdoc comments
(for build-time hooks) clarify which are nuxt 2 and which are nuxt 3

Done in https://github.com/nuxt/nuxt/pull/18756.


Add publishRateLimitedTimes to topic metrics

Motivation
Broker limits the rate of publishing messages by setting channel.setAutoRead(false). But no exception is returned to the client, or any log is printed, which makes it very difficult for user to troubleshoot the problem. When the Producer is limited, the client will send timeout and the connection will be closed (Broker no longer process the Client's heartbeat request, because autoRead=false). We don't know if there is a problem with network or the rate is limited or other reasons.
Modifications
Add publishRateLimitedTimes to topic metrics
Documentation

[x] no-need-doc

@315157973 Since the PR introduced a new metric, I added the doc-required label.

Discussed w/ @315157973, from the doc side, he will add the newly added metrics to https://pulsar.apache.org/docs/en/next/reference-metrics/#topic-metrics.


The @Transform annotation doesn't seem to be working as advertised. It wa

The @Transform annotation doesn't seem to be working as advertised. It was only considering the last matched group in the regex. It would never pass more than one parameter.

Please, add failing scenario before fixing something:
https://github.com/Behat/Behat/blob/master/features/annotations/definitions_transformations.feature
in order for me to be sure that:
a) you've run the tests
b) i'll not break your fix in future versions


improve concreteness error due to arguments

Before this change, when an error occurred due to an argument being abstracted (i.e. staged out), we would raise an error pointing to the argument's position in the pytree-flattened argument list:
import jax

@jax.jit
def f(x, y, z):
  if z > 0:
    pass
f(1, 2, 3)

...stack trace...
jax._src.errors.ConcretizationTypeError: Abstract tracer value encountered where concrete value is expected:          Traced<ShapedArray(bool[], weak_type=True)>with<DynamicJaxprTrace(level=0/1)>
The problem arose with the `bool` function.
While tracing the function f at louise.py:5, transformed by jit., this concrete
value was not available in Python because it depends on the value of the
arguments to f at louise.py:5, transformed by jit. at flattened positions [2],
and the computation of these values is being staged out (that is, delayed rather
than executed eagerly).
(https://jax.readthedocs.io/en/latest/errors.html#jax.errors.ConcretizationTypeError)

(Notice also some erroneous '.'s in the string here!)
This flattened position is often not helpful, since when pytrees are involved it might be unclear how to map it to the function signature in the source code, and thus unclear how to fix the issue.
After this PR, we point to the argument name (and tweak some details of the error message string):
...stack trace...
jax._src.errors.ConcretizationTypeError: Abstract tracer value encountered where concrete value is expected:          Traced<ShapedArray(bool[], weak_type=True)>with<DynamicJaxprTrace(level=0/1)>
The problem arose with the `bool` function.
While tracing the function f at louise.py:3 for jit, this concrete value was not
available in Python because it depends on the value of the argument 'z'.
See https://jax.readthedocs.io/en/latest/errors.html#jax.errors.ConcretizationTypeError

This builds on some excellent work from @LenaMartens !
See the tests for more.

LGTM!
One small thing, I noticed in the user error is that the function argument name is already reported: The error arose in jax.nn.one_hot argument num_classes. (from https://github.com/google/jax/blob/c85e835951c68b4383dbc9ef25bef99ea996fd84/jax/_src/nn/functions.py#L342-L344). This change means we no longer need to provide that error context in lax/nn?

@LenaMartens good point. I guess they're slightly different argument names: one is about the argument name to the library function (which required one of its inputs to be concrete), the other is the argument name of the "top-level" jit-decorated function (which caused that argument not to be concrete). So it may make sense to keep reporting both. (Funnily enough, indeed in our example use case both arguments were named "num_classes", but it might not always be that way!)


ThreadLocal trackAllValues

f99845d0f985cb51987f71a261ddc27e37ee8d5d broke everything on linux since trackAllValues is not implemented on Mono!

solved by ce81350a84eda7718b2124ed454acf347e9877b3?

yes, just forgot that


Allow crate users to define and use custom models

enum_dispatch approach is replaced by storing inner concrete model in Box<dyn AsModel>.
Model factory added to store list of model from_value constructors. Crate users can register their own custom models.
sim_derive crate added to provide macros for filling template methods.

Codecov Report

Merging #8 (2a9f876) into main (4135a9d) will decrease coverage by 1.36%.
The diff coverage is 51.31%.

@@            Coverage Diff             @@
##             main       #8      +/-   ##
==========================================
- Coverage   76.77%   75.40%   -1.37%
==========================================
  Files          21       23       +2
  Lines        2058     2094      +36
==========================================
- Hits         1580     1579       -1
- Misses        478      515      +37

Impacted Files
Coverage Δ

src/models/exclusive_gateway.rs
70.37% <ø> (ø)

src/models/gate.rs
65.55% <ø> (ø)

src/models/generator.rs
64.63% <ø> (ø)

src/models/load_balancer.rs
72.58% <ø> (ø)

src/models/model_factory.rs
0.00% <0.00%> (ø)

src/models/parallel_gateway.rs
68.75% <ø> (ø)

src/models/processor.rs
50.67% <ø> (ø)

src/models/stochastic_gate.rs
66.66% <ø> (ø)

src/models/storage.rs
61.33% <ø> (ø)

src/models/model.rs
50.00% <7.14%> (-50.00%)
:arrow_down:

... and 4 more

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 4135a9d...2a9f876. Read the comment docs.

This is awesome.  Thanks, @kirushyk.
I'll review and test soon.
@uint, @smallstepman Any thoughts?

While the whole thing looks clever, I'm a bit wary of the overall strategy. It introduces a bit of complexity and overhead that I'm not sure you need here. This is a bit of an opinion, but I generally agree with the idea of not using trait objects for struct internals - it tends to muddy things up and eventually force people to use downcasting and boilerplate.
In a way, some of this feels like a partial reimplementation of typetag - I mean particularly the static that holds some information needed to access all the possible trait implementors, and the idea that (I think?) a user of the library would have to register() their custom models in runtime. I guess maybe that's a good thing since that could make for a smooth transition eventually? That is, if you wanted to do typetag in the future.
An alternative approach might be to make sure Simulation is generic over the AsModel trait. Something like:
pub struct Simulation<M: AsModel> {
    models: Vec<M>,
    connectors: Vec<Connector>,
    messages: Vec<Message>,
    services: Services,
}

Then a user of the library, if they really need to both add custom models and use our serialization format (this is probably fairly unlikely anyway, isn't it?), can provide their own enum that encompasses every possible model, implements AsModel, Serialize, Deserialize and there they go. I do like the idea of having a macro to make it a nicer experience.
What do you think of that, @kirushyk?

Ah, another thought: we might want to think about making (de)serialization stuff an opt-in feature so that users of the library can choose not to pull all the serde dependencies. Wouldn't this PR make that hard?

Interesting.
Notes from my review and testing:

It's very easy for crate users to add and use custom models (just add derive(SerializableModel) to the model struct)
The metaprogramming parts of this are relatively simple and easy to understand
Something like the sim_derive workspace member will probably be needed anyways, for some upcoming proc-macro-based features that I'm experimenting with
lazy_static probably has a better "software supply chain health" than enum_dispatch (more contributors, longer history of usage, etc.)

These are some major benefits in my view.  Especially point 1.  Between (Case A) a simple implementation and complex usage vs. (Case B) complex implementation and simple usage, I think the Case B is best.  Custom models will be a very common use case.  Of course, simple implementation and simple usage is the best case scenario 🙂 , but this seems like a challenging problem that we may have to decide where to put the complexity.

In a way, some of this feels like a partial reimplementation of typetag - I mean particularly the static that holds some information needed to access all the possible trait implementors, and the idea that (I think?) a user of the library would have to register() their custom models in runtime. I guess maybe that's a good thing since that could make for a smooth transition eventually? That is, if you wanted to do typetag in the future.

The future compatibility with typetag is somewhat valuable, but not a big factor.
The crate is conceptually based on the Discrete Event System Specification, where models should be treated as black boxes by the simulator, and there is strict separation between the simulator and the models that it simulates.  From the article you linked:

Now I’m not trying to say that using boxed trait objects is bad, there are some cases where they make a lot of sense. What I am saying is that using Box gives other developers that may consume your struct a hard time as there’s not much flexibility.

The limited flexibility may enforce the good Discrete Event System Specification pattern of "models are black boxes to the simulator" and strictly using predefined interfaces.  I wouldn't say the limited flexibility is a benefit, but the Discrete Event System Specification approach makes this a smaller concern.
@uint

An alternative approach might be to make sure Simulation is generic over the AsModel trait.

I believe this would constrain a single simulation to only have models of one type?  Is my understanding correct there?  Almost all simulations will have a variety of model types involved, so that would be blocking concern.

Then a user of the library, if they really need to both add custom models and use our serialization format (this is probably fairly unlikely anyway, isn't it?)

I think both serialization (for NPM/JavaScript users) and custom models (for crate/Rust users) are important, but not both together.

@kirushyk A side question.  Can we have sim_derive as an optional feature/dependency of the sim crate, and re-export SerializableModel within sim?  If so, do you think that is a good change?  My hypothesis is that a single import of "sim" (with an optional derive feature) will be a better crate user experience.

Ah, another thought: we might want to think about making (de)serialization stuff an opt-in feature so that users of the library can choose not to pull all the serde dependencies. Wouldn't this PR make that hard?

Yes, agreed.  This Model trait and custom models stuff is higher priority than optional serde, but valid point.  That's a downside.

@kirushyk
I'm getting an error when using custom models in a WebAssembly environment, and the same error doesn't occur for other compilation targets.  Is there any part of this that isn't WASM target compatible?  Code below to reproduce (setup as a separate integration test file):
use std::f64::INFINITY;

use serde::{Deserialize, Serialize};
use sim::input_modeling::random_variable::ContinuousRandomVariable;
use sim::models::model_trait::{AsModel, SerializableModel};
use sim::models::{Generator, Model, ModelMessage};
use sim::simulator::{Connector, Message, Services, Simulation, WebSimulation};
use sim::utils::error::SimulationError;
use sim_derive::SerializableModel;
use wasm_bindgen_test::*;

wasm_bindgen_test_configure!(run_in_browser);

/// The passive model does nothing
#[derive(Debug, Clone, Serialize, Deserialize, SerializableModel)]
#[serde(rename_all = "camelCase")]
pub struct Passive {
    ports_in: PortsIn,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
struct PortsIn {
    job: String,
}

impl Passive {
    pub fn new(job_port: String) -> Self {
        Self {
            ports_in: PortsIn { job: job_port },
        }
    }
}

impl AsModel for Passive {
    fn status(&self) -> String {
        "Passive".into()
    }

    fn events_ext(
        &mut self,
        _incoming_message: ModelMessage,
        _services: &mut Services,
    ) -> Result<Vec<ModelMessage>, SimulationError> {
        Ok(Vec::new())
    }

    fn events_int(
        &mut self,
        _services: &mut Services,
    ) -> Result<Vec<ModelMessage>, SimulationError> {
        Ok(Vec::new())
    }

    fn time_advance(&mut self, _time_delta: f64) {
        // No future events list to advance
    }

    fn until_next_event(&self) -> f64 {
        // No future events list, as a source of finite until_next_event
        // values
        INFINITY
    }
}

#[test]
fn step_n_with_custom_passive_model() {
    let models = [
        Model::new(
            String::from("generator-01"),
            Box::new(Generator::new(
                ContinuousRandomVariable::Exp { lambda: 0.5 },
                None,
                String::from("job"),
                false,
                false,
            )),
        ),
        Model::new(
            String::from("passive-01"),
            Box::new(Passive::new(String::from("job"))),
        ),
    ];
    let connectors = [Connector::new(
        String::from("connector-01"),
        String::from("generator-01"),
        String::from("passive-01"),
        String::from("job"),
        String::from("job"),
    )];
    let mut simulation = Simulation::post(models.to_vec(), connectors.to_vec());
    // 1 initialization event, and 2 events per generation
    let messages = simulation.step_n(9).unwrap();
    let generations_count = messages.len();
    let expected = 4; // 4 interarrivals from 9 steps
    assert_eq!(generations_count, expected);
}

#[wasm_bindgen_test]
fn step_n_with_custom_passive_model_wasm() {
    let models = r#"
- type: "Generator"
  id: "generator-01"
  portsIn: {}
  portsOut:
    job: "job"
  messageInterdepartureTime:
    exp:
      lambda: 0.5
- type: "Passive"
  id: "passive-01"
  portsIn:
    job: "job"
"#;
    let connectors = r#"
- id: "connector-01"
  sourceID: "generator-01"
  targetID: "passive-01"
  sourcePort: "job"
  targetPort: "job"
"#;
    let mut simulation = WebSimulation::post_yaml(&models, &connectors);
    // 1 initialization event, and 2 events per generation
    let messages: Vec<Message> = serde_json::from_str(&simulation.step_n_json(9)).unwrap();
    let generations_count = messages.len();
    let expected = 4; // 4 interarrivals from 9 steps
    assert_eq!(generations_count, expected);
}

Error from wasm-pack test --headless --chrome --firefox is:
Running headless tests in Chrome on `http://<IP_ADDRESS>:42457/`
Try find `webdriver.json` for configure browser's capabilities:
Not found
Starting new webdriver session...
Visiting http://<IP_ADDRESS>:36407...
Loading page elements...
Waiting for test to finish...

running 1 test

test custom_models::step_n_with_custom_passive_model_wasm ... FAIL

failures:

---- custom_models::step_n_with_custom_passive_model_wasm output ----
    error output:
        panicked at 'assertion failed: `(left == right)`
          left: `true`,
         right: `false`: cannot recursively acquire mutex', /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0/library/std/src/sys/wasm/../unsupported/mutex.rs:23:9

        Stack:

        Error
            at http://<IP_ADDRESS>:36407/wasm-bindgen-test:947:19
            at http://<IP_ADDRESS>:36407/wasm-bindgen-test:154:22
            at console_error_panic_hook::Error::new::h2432f5007bbde10f (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[11082]:0x3bab9a)
            at console_error_panic_hook::hook_impl::hcf79673544a9032f (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[2165]:0x2882fa)
            at console_error_panic_hook::hook::hc388703ff51e19a8 (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[12133]:0x3c920c)
            at core::ops::function::Fn::call::h92ec3df809df7d30 (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[10044]:0x3aace9)
            at std::panicking::rust_panic_with_hook::h9d91fa0fae16500f (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[3801]:0x2fc097)
            at std::panicking::begin_panic_handler::{{closure}}::h2d82b5b2db976f3f (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[5087]:0x334e50)
            at std::sys_common::backtrace::__rust_end_short_backtrace::h24539600b7e2452c (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[12779]:0x3d11aa)
            at rust_begin_unwind (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[11548]:0x3c1614)

    JS exception that was thrown:
        RuntimeError: unreachable
            at __rust_start_panic (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[14206]:0x3dbdd2)
            at rust_panic (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[13129]:0x3d4ce9)
            at std::panicking::rust_panic_with_hook::h9d91fa0fae16500f (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[3801]:0x2fc0bb)
            at std::panicking::begin_panic_handler::{{closure}}::h2d82b5b2db976f3f (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[5087]:0x334e50)
            at std::sys_common::backtrace::__rust_end_short_backtrace::h24539600b7e2452c (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[12779]:0x3d11aa)
            at rust_begin_unwind (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[11548]:0x3c1614)
            at core::panicking::panic_fmt::h91d2023e5afe1929 (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[12781]:0x3d120e)
            at std::sys::wasm::mutex::Mutex::lock::hd83a394544ffda77 (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[1327]:0x21caf0)
            at std::sys_common::mutex::MovableMutex::raw_lock::h69b16960fd276720 (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[12127]:0x3c90d0)
            at std::sync::mutex::Mutex<T>::lock::h33e6c1d990be1c55 (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[11131]:0x3bb750)

failures:

    custom_models::step_n_with_custom_passive_model_wasm

test result: FAILED. 0 passed; 1 failed; 0 ignored
console.log div contained:
    panicked at 'assertion failed: `(left == right)`
      left: `true`,
     right: `false`: cannot recursively acquire mutex', /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0/library/std/src/sys/wasm/../unsupported/mutex.rs:23:9

    Stack:

    Error
        at http://<IP_ADDRESS>:36407/wasm-bindgen-test:947:19
        at http://<IP_ADDRESS>:36407/wasm-bindgen-test:154:22
        at console_error_panic_hook::Error::new::h2432f5007bbde10f (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[11082]:0x3bab9a)
        at console_error_panic_hook::hook_impl::hcf79673544a9032f (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[2165]:0x2882fa)
        at console_error_panic_hook::hook::hc388703ff51e19a8 (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[12133]:0x3c920c)
        at core::ops::function::Fn::call::h92ec3df809df7d30 (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[10044]:0x3aace9)
        at std::panicking::rust_panic_with_hook::h9d91fa0fae16500f (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[3801]:0x2fc097)
        at std::panicking::begin_panic_handler::{{closure}}::h2d82b5b2db976f3f (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[5087]:0x334e50)
        at std::sys_common::backtrace::__rust_end_short_backtrace::h24539600b7e2452c (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[12779]:0x3d11aa)
        at rust_begin_unwind (http://<IP_ADDRESS>:36407/wasm-bindgen-test_bg.wasm:wasm-function[11548]:0x3c1614)

Error: some tests failed
error: test failed, to rerun pass '--test custom_models'
Error: Running Wasm tests with wasm-bindgen-test failed
Caused by: failed to execute `cargo test`: exited with exit code: 1
  full command: "cargo" "test" "--target" "wasm32-unknown-unknown"

@ndebuhr
You need to register your Passive model first so deserialization function will be associated with "Passive" string. I added register macro to ease this operation so you can just add
register!(Passive);

to your test.

I still need to fix error handling to make your test gracefully quit in case deserialization function is not found in list of known models.

@kirushyk Great, thanks!  WASM experimentation and testing are good now.  I'll wait a couple of days to see if @uint has any additional thoughts.
I think we merge this to have a first working version.  Then, iterate as opportunities arise for improvement.  I'll also write some custom model tests to enable easier future iteration development.

Codecov Report

Merging #8 (c5d05d7) into main (4135a9d) will decrease coverage by 1.47%.
The diff coverage is 49.36%.

@@            Coverage Diff             @@
##             main       #8      +/-   ##
==========================================
- Coverage   76.77%   75.29%   -1.48%
==========================================
  Files          21       23       +2
  Lines        2058     2097      +39
==========================================
- Hits         1580     1579       -1
- Misses        478      518      +40

Impacted Files
Coverage Δ

src/models/exclusive_gateway.rs
70.37% <ø> (ø)

src/models/gate.rs
65.55% <ø> (ø)

src/models/generator.rs
64.63% <ø> (ø)

src/models/load_balancer.rs
72.58% <ø> (ø)

src/models/model_factory.rs
0.00% <0.00%> (ø)

src/models/parallel_gateway.rs
68.75% <ø> (ø)

src/models/processor.rs
50.67% <ø> (ø)

src/models/stochastic_gate.rs
66.66% <ø> (ø)

src/models/storage.rs
61.33% <ø> (ø)

src/models/model.rs
48.14% <6.66%> (-51.86%)
:arrow_down:

... and 4 more

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 4135a9d...c5d05d7. Read the comment docs.

@ndebuhr If you give me a day, I could try to produce an alternative PR, just to have a direct comparison. I really feel there is a better approach there.

@uint Sounds great.  The more options we all have to look at together, the better.

I made small fix to handle the case when the model requested wasn't previously registered.


Feature Request: Different prefixes on same page

Thanks for great tool Markus.
We have about 35 tape pools. Tapes in each pool will be prefixed with a different letter, but the numbering will be shared across pools: ex. A0001, A0002, B0003, C0004, C0005, C0006 etc
Since some of our tape pools will be very small (e.g. only 1 or 2 tapes), we don't want to waste a whole sheet of labels for that pool prefix.
It would be great if we could do something like, passing a json file as input which provides more details about what prefixes and numbering we need on a single page Ex:
[
{   prefix: A, start: 1, end: 2  },
{   prefix: B, start: 3, end: 3  },
{   prefix: C, start: 4, end: 6  }
]
or something similar.

Hi. I've actually gotten a similar request. However, I think it will be difficult to automate everyone's workflow, so I'm looking at implementing a more generic solution. I was thinking of simply uploading a plain text list of the requested barcodes.
Also, I won't be working on this old php-repo anymore. All my new development goes into my private nodejs/angular solution at https://kelvin.nu/barcode

Hi Markus,
Yes - just simply uploading a text file with all the barcodes needed would
be great...
Any idea when you might have a chance to have a go at it?
Kind Regards
Swami Kevala
On Sun, 16 Jun 2019 at 19:19, Markus Berg<EMAIL_ADDRESS>wrote:

Hi. I've actually gotten a similar request. However, I think it will be
difficult to automate everyone's workflow, so I'm looking at implementing a
more generic solution. I was thinking of simply uploading a plain text list
of the requested barcodes.
Also, I won't be working on this old php-repo anymore. All my new
development goes into my private nodejs/angular solution at
https://kelvin.nu/barcode
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/markusberg/barcode/issues/2?email_source=notifications&email_token=AB74GQSKXWYW253GXLDMKJ3P2ZAHZA5CNFSM4HWRPMUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXZNPBY#issuecomment-502454151,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB74GQXZ3GZ55B2HGLKX7RTP2ZAHZANCNFSM4HWRPMUA
.

--
-<PHONE_NUMBER>
--
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments. WARNING: Computer viruses can be transmitted
via email. The recipient should check this email and any attachments for
the presence of viruses. The Organisation accepts no liability for any
damage caused by any virus transmitted by this email.
www.ishafoundation.org http://www.ishafoundation.org

Hi, it shouldn't be too difficult, but I'm on vacation now, so I won't get to it until late July. I'll keep you posted.
/ Markus
---- On Sun, 16 Jun 2019 04:03:36 -1000 swamikevala<EMAIL_ADDRESS>wrote ----
Hi Markus,
Yes - just simply uploading a text file with all the barcodes needed would
be great...
Any idea when you might have a chance to have a go at it?
Kind Regards
Swami Kevala
On Sun, 16 Jun 2019 at 19:19, Markus Berg<EMAIL_ADDRESS>wrote:

Hi. I've actually gotten a similar request. However, I think it will be

difficult to automate everyone's workflow, so I'm looking at implementing a

more generic solution. I was thinking of simply uploading a plain text list

of the requested barcodes.

Also, I won't be working on this old php-repo anymore. All my new

development goes into my private nodejs/angular solution at

https://kelvin.nu/barcode

—

You are receiving this because you authored the thread.

Reply to this email directly, view it on GitHub

https://github.com/markusberg/barcode/issues/2?email_source=notifications&email_token=AB74GQSKXWYW253GXLDMKJ3P2ZAHZA5CNFSM4HWRPMUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXZNPBY#issuecomment-502454151,

or mute the thread

https://github.com/notifications/unsubscribe-auth/AB74GQXZ3GZ55B2HGLKX7RTP2ZAHZANCNFSM4HWRPMUA

.

--
-<PHONE_NUMBER>
--
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments. WARNING: Computer viruses can be transmitted
via email. The recipient should check this email and any attachments for
the presence of viruses. The Organisation accepts no liability for any
damage caused by any virus transmitted by this email.
www.ishafoundation.org http://www.ishafoundation.org
—
You are receiving this because you commented.
Reply to this email directly, https://github.com/markusberg/barcode/issues/2?email_source=notifications&email_token=ABTPP3YVD5HXAOCOZOSX4XTP2ZB3RA5CNFSM4HWRPMUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXZNXZQ#issuecomment-502455270, or https://github.com/notifications/unsubscribe-auth/ABTPP36EYYGJCSGVQRTGNZ3P2ZB3RANCNFSM4HWRPMUA.

Hi Markus,
Were you able to implement this? Would be a great help for us.
Kind Regards
Swami Kevala
On Thu, 4 Jul 2019, 07:13 Markus Berg<EMAIL_ADDRESS>wrote:

Hi, it shouldn't be too difficult, but I'm on vacation now, so I won't get
to it until late July. I'll keep you posted.
/ Markus
---- On Sun, 16 Jun 2019 04:03:36 -1000 swamikevala <
<EMAIL_ADDRESS>wrote ----
Hi Markus,
Yes - just simply uploading a text file with all the barcodes needed would
be great...
Any idea when you might have a chance to have a go at it?
Kind Regards
Swami Kevala
On Sun, 16 Jun 2019 at 19:19, Markus Berg<EMAIL_ADDRESS>wrote:

Hi. I've actually gotten a similar request. However, I think it will be

difficult to automate everyone's workflow, so I'm looking at
implementing a

more generic solution. I was thinking of simply uploading a plain text
list

of the requested barcodes.

Also, I won't be working on this old php-repo anymore. All my new

development goes into my private nodejs/angular solution at

https://kelvin.nu/barcode

—

You are receiving this because you authored the thread.

Reply to this email directly, view it on GitHub

<
https://github.com/markusberg/barcode/issues/2?email_source=notifications&email_token=AB74GQSKXWYW253GXLDMKJ3P2ZAHZA5CNFSM4HWRPMUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXZNPBY#issuecomment-502454151
,

or mute the thread

<
https://github.com/notifications/unsubscribe-auth/AB74GQXZ3GZ55B2HGLKX7RTP2ZAHZANCNFSM4HWRPMUA

.

--
-<PHONE_NUMBER>
--
The information contained in this electronic message and any attachments
to
this message are intended for the exclusive use of the addressee(s) and
may
contain proprietary, confidential or privileged information. If you are
not
the intended recipient, you should not disseminate, distribute or copy
this
e-mail. Please notify the sender immediately and destroy all copies of
this
message and any attachments. WARNING: Computer viruses can be transmitted
via email. The recipient should check this email and any attachments for
the presence of viruses. The Organisation accepts no liability for any
damage caused by any virus transmitted by this email.
www.ishafoundation.org http://www.ishafoundation.org
—
You are receiving this because you commented.
Reply to this email directly,
https://github.com/markusberg/barcode/issues/2?email_source=notifications&email_token=ABTPP3YVD5HXAOCOZOSX4XTP2ZB3RA5CNFSM4HWRPMUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXZNXZQ#issuecomment-502455270,
or
https://github.com/notifications/unsubscribe-auth/ABTPP36EYYGJCSGVQRTGNZ3P2ZB3RANCNFSM4HWRPMUA.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/markusberg/barcode/issues/2?email_source=notifications&email_token=AB74GQQB7DWFUI6VN3HLO7TP5VISRA5CNFSM4HWRPMUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZGCP3Y#issuecomment-508307439,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB74GQRRJYBYATAQYEDBIBDP5VISRANCNFSM4HWRPMUA
.

--
https://www.ishaoutreach.org/en/cauvery-calling?utm_campaign=cauvery_calling_2019&utm_medium=email&utm_source=signature&utm_content=
--
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments. WARNING: Computer viruses can be transmitted
via email. The recipient should check this email and any attachments for
the presence of viruses. The Organisation accepts no liability for any
damage caused by any virus transmitted by this email.
www.ishafoundation.org http://www.ishafoundation.org

Sorry, I just haven't gotten around to it. Thanks for the reminder. I have a completely broken implementation right now, but it should be done within the next few days. I'll keep you posted.

Thanks a lot Markus :)
On Wed, 4 Dec 2019 at 12:36, Markus Berg<EMAIL_ADDRESS>wrote:

Sorry, I just haven't gotten around to it. Thanks for the reminder. I have
a completely broken implementation right now, but it should be done within
the next few days. I'll keep you posted.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/markusberg/barcode/issues/2?email_source=notifications&email_token=AB74GQU6CMPWRRLHORZYRH3QW5JHVA5CNFSM4HWRPMUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF3643I#issuecomment-561507949,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB74GQW4NNN4FRBJLGS3CLTQW5JHVANCNFSM4HWRPMUA
.

--
-<PHONE_NUMBER>
--
https://www.ishaoutreach.org/en/cauvery-calling?utm_campaign=cauvery_calling_2019&utm_medium=email&utm_source=signature&utm_content=
--
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments. WARNING: Computer viruses can be transmitted
via email. The recipient should check this email and any attachments for
the presence of viruses. The Organisation accepts no liability for any
damage caused by any virus transmitted by this email.
www.ishafoundation.org http://www.ishafoundation.org

@swamikevala : I just published an implementation of your request to my site
There's still work to be done on the UI, primarily input validation, error reporting, and documentation, but the basic functionality should be solid. Another feature that I implemented is multi-page printing, so you can print up to eight pages at a time.
Please try it out, and let me know if you run into any problems.

Hi Markus,
That's great news. We will certainly test this out and let you know.
Kind Regards
Swami Kevala
On Sat, 7 Dec 2019 at 16:48, Markus Berg<EMAIL_ADDRESS>wrote:

@swamikevala https://github.com/swamikevala : I just published an
implementation of your request to my site https://kelvin.nu/barcode
There's still work to be done on the UI, primarily input validation, error
reporting, and documentation, but the basic functionality should be solid.
Another feature that I implemented is multi-page printing, so you can print
up to eight pages at a time.
Please try it out, and let me know if you run into any problems.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/markusberg/barcode/issues/2?email_source=notifications&email_token=AB74GQUXRR25ZV5OCCLFSC3QXOBA3A5CNFSM4HWRPMUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGGERBA#issuecomment-562841732,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB74GQRTF5F7XEKUAFC4BCTQXOBA3ANCNFSM4HWRPMUA
.

--
-<PHONE_NUMBER>
--
https://www.ishaoutreach.org/en/cauvery-calling?utm_campaign=cauvery_calling_2019&utm_medium=email&utm_source=signature&utm_content=
--
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments. WARNING: Computer viruses can be transmitted
via email. The recipient should check this email and any attachments for
the presence of viruses. The Organisation accepts no liability for any
damage caused by any virus transmitted by this email.
www.ishafoundation.org http://www.ishafoundation.org


add: information about the defined relationships

Notes for Reviewers
This PR fixes #
Signed commits

[x] Yes, I signed my commits.

Hi @RipulHandoo, are you stuck? How can I help you?

@iArchitSharma We need to relocate the relationship page from user-facing docs to contributor-facing docs. @pandeyshubham03 has an open PR where he is working on providing information on how different components interconnect with each other (basically listing all the relationships we have defined so far).
We can proceed to merge this PR with the relationships.md file.

@MUzairS15  last time we decided to have the collection for the relationships in .md files under a new directory _relationship
The md file will contain the yml data from relationship spreadsheet
Right, @vishalvivekm? What do you say?

Gents, which way are we headed on this? @vishalvivekm?

Closing as addressed in #10332


Add SLP support

CashScript is a leap forward in expressiveness for creating scripts. Now we need to be able to create advanced scripts for SLP tokens.
What would this look like in CashScript?

It's currently possible to manually inject the SLP OP_RETURN opcodes via creating a dedicated tx outout. Not sure if the compiler can do it on it's own, but should definitely be possible if combined with the SDK

It's currently possible to manually inject the SLP OP_RETURN opcodes via creating a dedicated tx outout. Not sure if the compiler can do it on it's own, but should definitely be possible if combined with the SDK

It does seem SLP requires a fundingWIF, which I'm not sure cashscript can generate, especially if it's a P2SH address and not the usual P2PKH address

Is the scope of this issue limited to being able to support an SLP transaction or some implementation details that are not defined here?
Here is a working code reference for the SLP Genesis transaction for Type1 and NFT1 (Group + Child). Including multiple OP_RETURNS: https://github.com/cashkit/cashscript-slp

Nice, that's a great example! I think this issue is just a sort of placeholder for some form of better SLP support. I don't have a very clear idea on what that would look like. I added the OutputNullData feature as a sort of first step towards this. I personally haven't really worked with SLP a lot, so I don't know what better support would look like. If you have any ideas, I'd love to hear them.

I think this issue can be closed with the upcoming CashTokens upgrade.

Yep, I agree 👍


Demo website doesn't work

Going from the readme to the demo website, the site first loads ok with the two text boxes. But, when I press the "Compare the two specified texts" button, I get an empty page and the following errors in my browser console on the latest Edge browser

Hi JarRami,
sorry, I was on vacation the last weeks.
Thanks for letting me know. Actually the nginx doesn't reload the
updated certificates automatically, I didn't know...
I restarted nginx now manually, maybe this should be done automatically
at some point of time...
The demo webpage should now again work...
Best regards,
Andre
------ Originalnachricht ------
Von "JarRami" @.>
An "andrewiethoff/Locacore.TextComparer"
@.>
Cc "Subscribed" @.***>
Datum 25.07.2024 07:59:53
Betreff [andrewiethoff/Locacore.TextComparer] Demo website doesn't work
(Issue #2)

Going from the readme to the demo website https://www.locacore.com/,
the site first loads ok with the two text boxes. But, when I press the
"Compare the two specified texts" button, I get an empty page and the
following errors in my browser console on the latest Edge browser
image.png (view on web)
https://github.com/user-attachments/assets/fdc7948f-552a-474a-ad98-ca1e09c39a3b
—
Reply to this email directly, view it on GitHub
https://github.com/andrewiethoff/Locacore.TextComparer/issues/2, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AURA2DX4DXXJTQCZ5A2VTHTZOCH5TAVCNFSM6AAAAABLN2HSVKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZDSMBZGEZDKNQ.
You are receiving this because you are subscribed to this
thread.Message ID:
@.***>

Thank you, it works for me now


Array.prototype.push.apply() error with karma-jasmine unit test

Using Chrome or IE as the browser type there is no problem. When running the same unit test through phantomJS this error occurs:
TypeError: '[object Object]' is not a valid argument for 'Function.prototype.apply' (evaluating 'response.data')

Example code:
var data = [];
var otherData = ['1','2','3'];
Array.prototype.push.apply(data, otherData);

Fixed in 2.0.

BTW, thank you very much for providing the nice clear and simple test case.


value zero

i try to integrate with my php form but value after isset its blank.
my code:
if(isset($_POST['save'])){
if(!empty($_FILES['files']['name'])){
        $results =  $_FILES['files']['name'];
        echo $results;
}else{

    echo "empty";
}}

as the result, value not showing as empty but when on echo its nothing to appear.

Having same issue. HOW ARE WE SUPPOSED TO UPLOAD THE FILES???


Additional testcases for embedding_lookup ops

@miaout17 Could you please kindly review this PR..

Can one of the admins verify this patch?

Is this still desired? Is it worth rebasing?

It has been 14 days with no activity and the awaiting response label was assigned. Is this PR still valid? Assigning the stalled label. Please comment to reassure me that this is still being worked on.

I'm going to go ahead and close this PR, because it seems to have stalled. If you're still interested in pursing this (and responding to my comments), please feel free to reopen!


Add bats test suite

Issue #6
Bats (Bash Automated Testing Suite) can be found at GitHub
And be installed via homebrew brew install bats
Only adds tests for things that were very easy to test
PS: I use this in my .tmux.conf to run tests
bind b \
  send-keys -t 1 "bats test" "C-m"

@scmx thanks for this pull request. I completely dropped the ball on merging it. I'm so sorry.
A new verison of vpm is currently being built in Go, see https://github.com/KevinSjoberg/vpm/tree/vpm-go. This pull request is to be outdated with the release of it. Closing.


Change name="LegUp" to name="SmartHLS" in all IDE-generated files

We are trying to perform a name switch of our compiler from "LegUp" to "SmartHLS". Consequently, the configuration name in the Eclipse IDE has been changed from LegUp to SmartHLS. This pull request re-generated all the IDE-generated files (.cproject, .project, etc.) to reflect this change, so that the examples are up-to-date on the new naming convention.
NOTE: This can be done by opening the latest Smart-HLS IDE and creating a new project using the source files for each project. Then, the directory containing this new project will have the updated .cproject and .project files with the new naming scheme.

Linux:

Windows:

Linux:  Windows:

BTW: this is a "before" picture:

Sorry fixed


Allow remapping of experimental.repositionCursorWithMouse to use key bindings such as Alt + Left Click

Description of the new feature/enhancement
I'm aware that as of now, by setting experimental.repositionCursorWithMouse as true, we are able to move the cursor to the mouse's position with a simple left click. However, there are times when I want to simply click on the terminal to get it into focus without moving the cursor around. Hence, I think it would be best to let the user choose what keys would be best for them to utilize this feature, for eg. Alt+Left Click/Ctrl+Left Click/Middle Click.

Proposed technical implementation details (optional)
I'm aware that mouse key bindings are currently not available yet as explained in #1553. However, once they are available, I'd really love it if we can have a command such as moveCursorWithMouse and not just experimental.repositionCursorWithMouse as a profile setting just like how we have showContextMenu as a command that can be mapped to a key binding and not just the profile setting experimental.rightClickContextMenu.
So maybe we could have something like this in the future:
{ "command": "moveCursorWithMouse", "keys": "alt+left_click" }

thought: what if we just made it so a click that focuses the window doesn't attempt to move the cursor? I believe we already do that for selections (click-to-focus the window won't start a selection)

Good idea, is there a way to do that yet somehow?
But, anyhow, I think it'd be great if we could still choose the key binding especially since in iTerm2, Option+Left Click allows you to move the cursor to mouse position. Similarly, Alt+Left Click on the VSCode terminal would also do the same. I know some people would like to have the same key binding for every app to make it easier to remember.


Add @Override annotations

gwtbootstrap3 » gwtbootstrap3 #444 SUCCESS
This pull request looks good
(what's this?)


Adjustments for image-rui, no more tag and sonar-project

Singed off by @jnpacker

Change the sonar-project test file exclusion to disable scale test
Remote image tag in favour of image_uri
Fix provisioning monitoring of ClusterDeployments
Improve details patched to configmap on curator container progress
Add AnsibleJob name to configMap when running

State when finished processing AnsibleJobs

Update some functional tests

/hold

/unhold
/cc @hanqiuzh @leena-jawale @Randy424

/cc @hanqiuzh @Randy424

/lgtm


Incorporate review comments in the conda packages documentation

Docs update

/ok to test

/ok to test

/merge


⚠ Bofrost.be has degraded performance

In 030d8a6, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1607 ms

Resolved: Bofrost.be performance has improved in 56068c4.


Not working

I've run using docker run and the Initialization Sequence completes but the proxy is not accessible, e.g. running curl --proxy socks5://local.docker:1081 ipinfo.io, nothing happens. Setting up the proxy in browsers results in webpages not being able to load.

Hi there,
In order to troubleshoot this, could you give me the full command line you used for docker run? Also, don't daemonize it, and paste the output too. (Please feel free to censor hostnames and the like.)
The key is having the relevant capabilities and --publish so it's exposed, I think.
(curl is usually the better test, yes. If you're not publishing, though, the in-container interface listens on port 1080; I just have it set to be exposed on 1081 on the host.)

Hi there,
`docker run -t -i --device=/dev/net/tun --cap-add=NET_ADMIN \

--volume /Users/Gigabit/Desktop/London1.ovpn:/ovpn.conf:ro \
mook/openvpn-client-socks

Tue Sep 13 21:05:23 2016 OpenVPN 2.3.10 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Jan 26 2016
Tue Sep 13 21:05:23 2016 library versions: OpenSSL 1.0.2e 3 Dec 2015, LZO 2.09
Enter Auth Username:username
Enter Auth Password:
Tue Sep 13 21:05:31 2016 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Sep 13 21:05:31 2016 UDPv4 link local: [undef]
Tue Sep 13 21:05:31 2016 UDPv4 link remote: [AF_INET]<IP_ADDRESS>:443
Tue Sep 13 21:05:31 2016 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Tue Sep 13 21:05:31 2016 VERIFY OK: depth=1, C=GB, ST=LN, L=London, O=vpnsvc, OU=vpnsvc, CN=vpnsvc.com, name=vpnsvc<EMAIL_ADDRESS>Tue Sep 13 21:05:31 2016 VERIFY OK: nsCertType=SERVER
Tue Sep 13 21:05:31 2016 VERIFY OK: depth=0, C=GB, ST=LN, L=London, O=vpnsvc, OU=vpnsvc, CN=vpnsvc, name=vpnsvc<EMAIL_ADDRESS>Tue Sep 13 21:05:52 2016 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Sep 13 21:05:52 2016 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Sep 13 21:05:52 2016 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Sep 13 21:05:52 2016 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Sep 13 21:05:52 2016 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Tue Sep 13 21:05:52 2016 [vpnsvc] Peer Connection Initiated with [AF_INET]<IP_ADDRESS>:443
Tue Sep 13 21:05:54 2016 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:5: block-outside-dns (2.3.10)
Tue Sep 13 21:05:54 2016 TUN/TAP device tun0 opened
Tue Sep 13 21:05:54 2016 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Tue Sep 13 21:05:54 2016 /sbin/ip link set dev tun0 up mtu 1500
Tue Sep 13 21:05:54 2016 /sbin/ip addr add dev tun0 <IP_ADDRESS>/26 broadcast <IP_ADDRESS>
Tue Sep 13 21:05:54 2016 /usr/local/bin/sockd.sh tun0 1500 1542 <IP_ADDRESS> <IP_ADDRESS> init
Tue Sep 13 21:05:55 2016 Initialization Sequence Completed`

Not to worry, I've fixed it.
Running docker run --rm --tty --interactive --device=/dev/net/tun  --cap-add=NET_ADMIN --publish <IP_ADDRESS>:1081:1080 --volume "/Users/Gigabit/Desktop/London1.ovpn:/ovpn.conf:ro" mook/openvpn-client-socks works perfectly.
What I might suggest is modifying the readme to make it perhaps a little bit clearer that you need to run it as above.

Added --publish in 425f86aac2ab24b811189da7251f0fb1a4284ac1
I'm surprised that it works on a mac - good to know.


scheduler: Prevent completely scaling down critical apps

This adds a sanity check to make sure we do not scale down "critical" apps such as discoverd, because if we do then clusters break hard.
We should not actually ever be getting these critical apps being scaled down like this, but it happened in #2610, and I suspect it was the controller not handling an error and returning empty formations rather than some agent actively scaling things down.
I have also updated the scheduler tests to use log messages for synchronisation (rather than the make shift events we had previously) which feels a little cleaner.
Fixes #2613.

We need a strategy for adding the new metadata to bootstraps from backups.

@titanous added a migration to set the metadata: 7ade8a4

LGTM pending comment.


process stopped when meet incomplete localized interface files

My situation is:
Cached.storyboard (4 localized strings files)
LaunchScreen.storyboard (1 localized strings file)
Main.storyboard (4 localized strings files)
Because there' no need to localize a launch screen, I removed all strings for it except English. After doing that, the process interrupts after processing LaunchScreen.storyboard, it gives error:
No file exists at output path ja.lproj/LaunchScreen.strings
And Main.storyboard is not processed anymore.
After I added the other 3 language strings for LaunchScreen.storyboard, it works like usual.
I think this situation is not rare and should be continued to do the rest of work.

Thank you @rockingdice for reporting this issue. I came across this issue myself a few times, at the first moment I also thought "no, this must be fixed!". But the way I solve this issue is not by adding the missing languages – instead I make the Storyboard non-localized, which IMHO ist the more correct thing to do here (I mean, why should you keep a non-localized file localized anyways).
So, you might also want to do that – unfortunately there's no button to click in Xcode, you'd have to do it manually like described here.
Having that said, we could still fix the issue in BartyCrouch, though the question for me is: Isn't this actually a feature? I mean, BartyCrouch is making sure that – if I localize a Storyboard – that I don't forget any language. This is not by design, but it's a nice side-effect that some might have even learned to trust on, so I'm not sure if we should turn off this feature. We could also just improve the warning instead so people who are coming across this know how to fix this properly.
But I'm not decided yet, so I'm looking forward to hear other opinions.

@Dschee Agreed. Thanks for your info, it helped me a lot. What you said is important, do it in the right way. I didn't notice the localization problem until this.

I'd like to weigh in here. I currently have a project with multiple targets out of which some support e.g. Italian, while others aren't.
The problem is that Xcode will only let you add localisation on a per-project basis. So I added 'Italian' to the Localizations of the entire project. However, as said only a few of my targets have their storyboards localised in Italian. The storyboards of the other targets have italian 'unchecked'.

@seboslaw Okay, I see, the wish to be able to turn this off is there. So I'll try to work this into the next major release of BartyCrouch. But I'm curious, what your setup is, cause I'm wondering why you have a language for specific Storyboards but not for the others – and that in the same project ... if it was two different Apps, I think two different projects would make more sense. So it would be great to hear what your reasons are!

Please note that this was probably fixed via #114 – if the issue still exists with Version 4 of BartyCrouch, feel free to comment and I'l reopen.


[Freetype] TextureFilters using mipmaps with Japanese characters

Trying to integrate Japanese language in our games we ran into problems regarding fonts.
We use FreetypeFontLoader to load our fonts in different sizes from .ttf files. As some text is heavily scaled up or down, we use mipmap filters to create the BitmapFonts.
We use the following filters:
fontParam.fontParameters.minFilter = Texture.TextureFilter.MipMapLinearLinear;
fontParam.fontParameters.magFilter = Texture.TextureFilter.Linear;
fontParam.fontParameters.genMipMaps = true;

However, using mipmaps, some Japanese characters are not properly displayed. They are actually drawn, but made almost transparent, as you can see with the text block at the bottom on these screenshots:

Removing the previous block of code and using only the default filters or TextureFilter.Linear fixes the problem: every character is correctly drawn, with its right colour, since these filters do not use mipmaps, I assume. Now the problem is that scaled text does not look as sharp as it used to. On larger screens it is quite pixelated, on smaller screens it is pixelated as well and some of it is unreadable (like the score and timer at the top of the screen):

Note that the original issue is something which only happens with Japanese characters, we have no problems with numbers, punctuation or Latin characters (we have not tried with other family of languages, though). Could that be an issue related to the use of incremental on the FreeTypeFontParameter? Or would it be a problem directly related to the mipmap TextureFilters?
Also not that we are not using regular Labels as they do not support scaling. We extended Label to create a widget which calls the corresponding setFontScale methods whenever it is scaled.

This isn't a solution, just a workaround, but maybe those two are the same:
I am not sure if it is possible to scale fonts well, even if using mipmaps, that is why distance-field fonts are used. But since you need to generate fonts incrementally, how about generating the exact size glyphs you need (and then using nearest filtering)? You would need more texture space for glyphs, but you wouldn't have to use mipmaps, so in some cases it would actually save space.

The thing is we are developing for Android, so we have to generate bitmap fonts on the fly, otherwise we would need hundreds of bitmaps in order to support all existing screen sizes and densities.
At the beginning we were using bitmap fonts directly, with distance-field, but most text looked a bit blurry when scaled. That's why we started using FreetypeFontLoader with these filters and managed to make text look quite sharp.

And generating glyphs in exactly the size that you need on the fly, without scaling, without DF? That should work well IMO.

Which gdx version do you use? There were some improvements for FreeType.

@intrigus We use v1.7.0 for now. I saw yesterday that 1.7.2 brought a lot of improvements related to FreeType, so I gave it a try, but it still doesn't solve it. Text is more visible when made very small, but still not legible. And still quite aliased on bigger screens. And playing around with filters still has the same effect.
@Darkyenus Thank you for the suggestion, I tried that out and it does seem to give the best result. :+1:  It does cause some performance issues apparently, but we could definitely solve that. I think for now we'll stick to our initial workaround as we have a few problems with text size across devices when generating glyphs at their exact size. This will need quite a lot of work in terms of how we handle Labels.
As for the initial issue, I think it still remains a problem, even if this is partly caused by the way we decided to manage fonts and labels. In my opinion, TextureFilters should not make part of the text unreadable.

Well, the thing is, that there is no way to scale + filter ordinary textures so they don't lose quality and sharpness. Nearest is pixely and linear is blurry and somewhat pixely. Mipmaps don't help here much, because they just "preapply" linear filtering, so it does not keep crisp antialiased edges, but just "blurs" everything. DFF solve this problem by creating the crisp antialiased edge at runtime, when the exact scale is known. But they take too long to generate. What would solve this (but would be a huge overkill and very difficult with current code) would be to use "vector fonts" (don't draw them as bitmaps on rectangles but as ordinary GL trinagles/polygons) and then use some sort of AA/multisampling.
TL;DR: It is complicated, I usually just stick to generating "pixel perfect" fonts, because they are simple and look great

Is this actually an issue of libgdx, or are you not satisfied with the texture sampling you've chosen, or are you perhaps just asking for help? Note you don't have to use tri-linear filtering if that doesnt fit your needs, e.g. you could also use MipMapNearestNearest if you don't like the non-pot "averaging", or MipMapLinearNearest if you only want to use bi-linear filtering on one of your mipmap levels. You could even supply your own mipmap images to match your exact needs. If you verified that this is actually an issue of libgdx then please include the required information. Otherwise please close this issue. https://github.com/libgdx/libgdx/wiki/More-Info.

It is nice to see someone using on the fly glyphs!
I agree with Darkyenus, filtering will always affect the crispness of your images. We generate FreeType font mipmaps the usual way, by scaling. We don't render the text with FreeType multiple times at each level. Maybe that could be done (at significant effort, PR welcome!), but I'm not sure we can guarantee the rendered glyph match the scaled size exactly.
Also I agree with Xoppa, it's not clear if this issue is really a problem in libgdx.
BTW, this is off topic, but Label can be scaled (as can any group of actors).

Thank you for your help and advice! :+1:
I guess it's indeed not an issue in libGDX. It was just me misunderstanding the purpose and usage of filtering! I'll close this issue now and will try to rework the way we display text in our app, to avoid having too much scaling happening.


Return *ConnectionError when connection has faulted

Errors reading from/writing to the underlying net.Conn were being
propagated to the sender/receiver APIs, making them hard to identify.
Now, when the connection is no longer functional, a ConnectionError
instance is returned.  If the connection died due to a read/write error,
the ConnectionError will contain this information.
Removed ErrConnClosed as it's too simplistic and can't capture the
reason why the connection was closed.

Fixes https://github.com/Azure/go-amqp/issues/127

If the connection is inoperable, operations will always return a *ConnectionError.  This includes the following.

You called Close() on the client.
The peer asked us to close the connection.
Reading from/writing to the network connection fails.
Any other bug that causes the conn mux to exit.

Another way of stating this, is if the conn mux exits for any reason, operations will return a *ConnectionError.

That's correct, you'd see it twice (this is what I meant but did a poor job explaining it).

does this include the work to recover the amqp: link detached on receive and send?


Change the process we search for when checking the pid

PR #6086 changed the process title leading to evm_watchdog running
systemctl start evmserverd every time it checked the pid file
@Fryguy @jrafanie

LGTM

🍰