🐛 [firebase_auth] MFA enabled user calls reauthenticateWithCredential method throws FirebaseAuthException.

Bug report
Describe the bug
MFA enabled user calls reauthenticateWithCredential method throws FirebaseAuthException, error code is second-factor-required in  Android.
Steps to reproduce
Steps to reproduce the behavior:

Enroll MFA with enroll method
You try the sensitive operation that requires recent authentication.

example: try to MFA unenroll or password change etc..

If you try to reauthenticate with reauthenticateWithCredential method because of required recent authentication before, But throws FirebaseException.

Expected behavior
It should throw FirebaseAuthMultiFactorException.
We need MultiFactorResolver for verifiing Phone Number, but FirebaseException does not have it.
And also, If you try to sign in(not reauthentication) as MFA user by callingenroll method in MultiFactor class, then throws FirebaseAuthMultiFactorException.
Therefore, reauthentication should be same behavior to enroll.

Additional context
Add any other context about the problem here.

Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.5, on macOS 12.5 21G72 darwin-arm, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.70.0)
[✓] Connected device (4 available)
    ! Error: iPhone has recently restarted. Xcode will continue when iPhone is unlocked. (code -14)
[✓] HTTP Host Availability

• No issues found!

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
Dart SDK 2.17.6
Flutter SDK 3.0.5
flutter_firebase_mfa 1.0.0+1

dependencies:
- adaptive_dialog 1.8.0 [animations collection dynamic_color flutter intersperse macos_ui meta]
- collection 1.16.0
- cupertino_icons 1.0.5
- firebase_auth 3.6.3 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 1.20.1 [firebase_core_platform_interface firebase_core_web flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_dotenv 5.0.2 [flutter]
- flutter_riverpod 2.0.0-dev.9 [collection flutter meta riverpod state_notifier]
- flutter_signin_button 2.0.0 [flutter font_awesome_flutter]
- gap 2.0.0 [flutter]
- go_router 4.2.7 [collection flutter flutter_web_plugins logging meta]
- google_sign_in 5.4.1 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web]
- simple_logger 1.9.0 [logging stack_trace]
- touch_indicator 2.0.0 [flutter]
- tsuruo_kit 0.0.10 [cloud_firestore collection flutter flutter_riverpod flutter_web_plugins rxdart]

dev dependencies:
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph]
- pedantic_mono 1.19.2 [flutter_lints]

transitive dependencies:
- animations 2.0.3 [flutter]
- async 2.8.2 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.2.0
- charcode 1.3.1
- clock 1.1.0
- cloud_firestore 3.4.4 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
- cloud_firestore_platform_interface 5.7.1 [collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 2.8.4 [cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
- dynamic_color 1.4.0 [flutter flutter_test material_color_utilities]
- fake_async 1.3.0 [clock collection]
- firebase_auth_platform_interface 6.5.3 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 4.2.3 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_platform_interface 4.5.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 1.7.1 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- flutter_lints 2.0.1 [lints]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
- font_awesome_flutter 9.2.0 [flutter]
- google_sign_in_android 6.0.1 [flutter google_sign_in_platform_interface]
- google_sign_in_ios 5.4.0 [flutter google_sign_in_platform_interface]
- google_sign_in_platform_interface 2.2.0 [flutter quiver]
- google_sign_in_web 0.10.2 [flutter flutter_web_plugins google_sign_in_platform_interface js]
- http_parser 4.0.1 [collection source_span string_scanner typed_data]
- intersperse 2.0.0
- intl 0.17.0 [clock path]
- js 0.6.4
- lints 2.0.0
- logging 1.0.2
- macos_ui 1.7.1 [flutter]
- matcher 0.12.11 [stack_trace]
- material_color_utilities 0.1.4
- meta 1.7.0
- path 1.8.1
- plugin_platform_interface 2.1.2 [meta]
- quiver 3.1.0 [matcher]
- riverpod 2.0.0-dev.9 [collection meta stack_trace state_notifier]
- rxdart 0.27.5
- sky_engine 0.0.99
- source_span 1.8.2 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- state_notifier 0.7.2+1 [meta]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- term_glyph 1.2.0
- test_api 0.4.9 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- typed_data 1.3.1 [collection]
- vector_math 2.1.2

Thanks for the report. I am seeing same behavior as reported, ie, getting a FirebaseAuthException with code second-factor-required.

Any updates? This bug basically prevents any user with 2FA enabled to change his password, update his email, modify 2FA factors, etc.

The bug affects also iOS and web, not only Android (I haven't tested desktop).

Hello, thanks for the report, I'm looking into this.


Error when using buckets in indexeddb source

Hi, I am new with Orbit.js and I am having trouble creating an indexeddb data source with bucket.
Here is my code
import IndexedDBSource from "@orbit/indexeddb";
import IndexedDBBucket, { supportsIndexedDB } from '@orbit/indexeddb-bucket';
`
const BucketClass = supportsIndexedDB() ? IndexedDBBucket : LocalStorageBucket;
const bucket = new BucketClass({ namespace: 'my-app' });
const backup = new IndexedDBSource({
bucket,
schema,
name: "backup",
namespace: "solarsystem"
});`
I get the following error :
uncaught TypeError: Cannot read property 'indexOf' of undefined
at Log.contains (log.js?d75e:150)
at IndexedDBSource.proto.push (pushable.js?a05d:55)
at eval (main.orbit.js?c486:167)
How can I solve this ?

@Midouxx Hello and welcome!
Which version of Orbit are you using? v0.15 or the v0.16 beta?
Are you saying that creating a new IndexedDBSource is directly throwing the error? Or are you also connecting other sources and strategies, activating the coordinator, and perhaps pushing some data into the backup source?
Any reproduction you can provide would be quite helpful.

Thanks for your fast reaction.
I am actually using the version 0.15.23
I just create an indexeddb source with an indexeddb bucket and when I push data into the source, I get the error shown on the screenshot.

@Midouxx Apologies for taking so long with a response. I've been able to reproduce your issue in v0.15 in a code sandbox: https://codesandbox.io/s/orbitjs-v015-issue-660-repro-b71lg
As shown in the sandbox, a workaround is to call backup.pull prior to calling push. This allows the backup's log to be fully reified from the bucket prior to the push operation. I believe that in the vast majority of usages of IndexedDBSource, pull is called prior to push in order to warm the cache of a memory source. That's why it's taken so long for this problem to come to light. Regardless, we should get this fixed in v0.16 (and hopefully backport to v0.15 as well).
Thanks for raising this issue.

@dgeb Thanks for your feedback.

I created an integration test with minimal reproduction scenario #671

Thanks to @tchak for the reproduction + fix in #671
I'll get a new release out soon.


WinAppSdk app templates should generate code following coding best practices

Describe the bug
@angelazhangmsft updated the templates for the WinAppSDK samples in this PR. These types of changes should be made to the templates that generate the WinAppSdk Apps.
Steps to reproduce the bug

in VS create a new WinAppSdk C++ app using the templates
inspect the code

Expected behavior
expected: the code follows best practices, for example using
namespace winrt
{
    using namespace Microsoft::UI::Xaml;
}

instead of
using namespace winrt;
using namespace Microsoft::UI::Xaml;

Screenshots
No response
NuGet package version
No response
Packaging type
No response
Windows version
No response
IDE
No response
Additional context
No response

I think using the winrt namespace is fine as long as the project only uses C++/WinRT and doesn't use C++/CX and/or WRL along with it.

This is the recommended best practice that we want templates to follow.

@ChrisGuzak are there any remaining issues in the templates located in https://github.com/microsoft/WindowsAppSDK/tree/main/dev/VSIX?

According to the discussion in this draft PR, close this issue as won't fix.


feat(providers): add RateAwareClient

Motivation
https://github.com/gakonst/ethers-rs/issues/1291
Solution
Instead of relying on non-standard status codes and errors for rate limiting, maintain the current state of rate limits and enforce the limits on the client side such that the rate limit is never hit on the server side. This requires for the client to know the rate limit i.e. the quota that renews every duration amount of time.
PR Checklist

[ ] Added Tests
[ ] Added Documentation
[ ] Updated the changelog

This requires for the client to know the rate limit i.e. the quota that renews every duration amount of time.

this info is not always available and will also result in errors if the server simply decides we're getting rate limited even if we follow the limits.
adding support for retries should be more convenient

So one of the challenges while implementing backoff retry or anything that would require us to make multiple rpc calls wouldn't work unless we make param either Copy or Clone which would require bounding JsonRpcClient's request further and would be a breaking change.
error[E0276]: impl has stricter requirements than trait
  --> ethers-providers/src/transports/retry.rs:73:56
   |
73 |           A: std::fmt::Debug + Serialize + Send + Sync + Copy,
   |                                                          ^^^^ impl has extra requirement `A: std::marker::Copy`
   |
  ::: ethers-providers/src/lib.rs:63:5
   |
63 | /     async fn request<T, R>(&self, method: &str, params: T) -> Result<R, Self::Error>
64 | |     where
65 | |         T: Debug + Serialize + Send + Sync,
66 | |         R: DeserializeOwned;
   | |____________________________- definition of `request` from trait

@mattsse https://github.com/foundry-rs/foundry/runs/6608273536?check_suite_focus=true

@mattsse https://github.com/foundry-rs/foundry/runs/6608273536?check_suite_focus=true

very nice, lots of unrelated failing tests but no rate limit errors
also ref https://github.com/foundry-rs/foundry/pull/1728

The last suggestion would be to serialize to string instead of serde_json::Value which prevents repeated serialization effort

if we serialize it to string, it actually gets serialized as a string further down when the json gets serialized, so instead of getting {"params":["latest",null]} we'd get {"params":"[l\"latest\",null]"}

The last suggestion would be to serialize to string instead of serde_json::Value which prevents repeated serialization effort

if we serialize it to string, it actually gets serialized as a string further down when the json gets serialized, so instead of getting {"params":["latest",null]} we'd get {"params":"[l\"latest\",null]"}

ah that makes sense, disregard that then!


LSP request timed out: [Ca [Error]: canceled by client

rust-analyzer version: rust-analyzer version: db2a7087b 2021-12-13 stable
rustc version: rustc 1.59.0-nightly (efec54529 2021-12-04)
After I installed rust-analyzer in vscode, I found that it did not work properly, and then I found this error in the output  -> rust analyzer client:
WARN: LSP request timed out {
  method: 'rust-analyzer/inlayHints',
  param: {
    textDocument: {
      uri: 'file:///f%3A/Code/MyProject/xxx/src/main.rs'
    }
  },
  error: [Ca [Error]: canceled by client
  	at gr (c:\Users\Lizkes\.vscode\extensions\matklad.rust-analyzer-0.2.853\out\main.js:4:223)
  	at Or (c:\Users\Lizkes\.vscode\extensions\matklad.rust-analyzer-0.2.853\out\main.js:3:6574)
  	at Immediate.<anonymous> (c:\Users\Lizkes\.vscode\extensions\matklad.rust-analyzer-0.2.853\out\main.js:3:6424)
  	at processImmediate (internal/timers.js:461:21)] {
    code: -32800,
    data: undefined
  }
}

Which project did you open?

Also what vscode version are you using? There have been some problems with VSCode 1.62 and our syntax highlighting.

my vscode version is 1.63.0.
I tried restarting vscode repeatedly to observe this error. I noticed that this error does not appear every time, but the Rust Analyzer Language Server Trace window is always empty, does this mean that the extension is not connected to the lsp at all?

By the way, I tried to open various rust projects, all of which had the same failure

That seems odd, that makes it sound like VSCode isn't starting the server properly? Maybe some other extension is interferring here.

Although there is still no output in the Rust Analyzer Language Server Trace window, does this picture indicate that rust-analyzer is working properly?

Ye those inlay hints come from r-a so it is starting properly

What exactly is/was not working for you? As the screenshot implies r-a seems to work fine for you

When I wrote code, I could only see the error message of the incorrect
type, and other error messages such as unused variables would not be
displayed.
On Fri, Dec 17, 2021, 22:58 Lukas Wirth @.***> wrote:

What exactly is/was not working for you? As the screenshot implies r-a
seems to work fine for you
—
Reply to this email directly, view it on GitHub
https://github.com/rust-analyzer/rust-analyzer/issues/11003#issuecomment-996785994,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE4CSPTLD2YFK4GSY222PGLURNF2PANCNFSM5J72EKEA
.
You are receiving this because you authored the thread.Message ID:
@.***>

I'm also experiencing the same issue. I've only just noticed this today. I thought upgrading Rust would fix it but it does not.
WARN [12/17/2021, 11:15:11 PM]: LSP request timed out {
  method: 'rust-analyzer/inlayHints',
  param: {
    textDocument: {
      uri: 'REDACTED'
    }
  },
  error: [Ca [Error]: canceled by client
  	at gr (/home/REDACTED/.vscode/extensions/matklad.rust-analyzer-0.2.853/out/main.js:4:223)
  	at Or (/home/REDACTED/.vscode/extensions/matklad.rust-analyzer-0.2.853/out/main.js:3:6574)
  	at Immediate.<anonymous> (/home/REDACTED/.vscode/extensions/matklad.rust-analyzer-0.2.853/out/main.js:3:6424)
  	at processImmediate (internal/timers.js:461:21)] {
    code: -32800,
    data: undefined
  }
}

Removing #![cfg(feature = "json")] from the top of a file fixed analysis for me. Type hints and errors show up again immediately.

After testing, I found that rust-analyzer still works properly even if this error occurs, so close this issue.

Facing a similar issue to @lizkes using vscode 1.63.2 with r-a v0.3.872 (prerelease from vscode marketplace). r-a starts fine and gives type type hints but has the LSP timeout issue from the r-a client log and an empty r-a language server trace. This issue disables intellisense beyond string suggestions. I know it's a wide scope but this only seems to occur with https://github.com/paritytech/substrate-archive

@wqsz7xn try to delete the target folder in the project, it works for me

Turns out this is a well known issue on code blocks with a attributed function. Removing the attribute as reflected with definitelynobody solves it as a workaround


AST Docs line preventing completion

Make sure these boxes are checked before submitting your issue - thank you!
(If your issue is neither a both bug nor a request, please write in a free style)

[x] https://esdoc.org/manual/usage/feature.html
[x] https://esdoc.org/manual/configuration/config.html
[x] https://esdoc.org/manual/usage/tags.html
[x] https://esdoc.org/manual/advanced/api.html
[x] https://esdoc.org/manual/faq/faq.html

Short summary of your issue
When I run a build, I end up with the following error. However if I comment out line publish.js:152
Everything works as expected. I don't need AST Docs, just HTML. But this is throwing an error keeping me from completion.
ERROR LOG BELOW
Input data for reproducing
Configuration
{
  title: "My Title",
  coverage: true,
  includeSource: true,
  builtinExternal: true,
  autoPrivate: true,
  unexportIdentifier: false,
  undocumentIdentifier: true,
  source: null,
  destination: "./src/build/docs",
  lint: true,
  experimentalProposal: {
    classProperties: true,
    objectRestSpread: true,
    decorators: true,
    doExpressions: true,
    functionBind: true,
    asyncGenerators: true,
    exportExtensions: true,
    dynamicImport: true
  }
}

Codes
// write into here

Output data
Log
RangeError: Invalid string length
    at join (native)
    at Object.stringify (native)
    at ASTDocBuilder.exec (/usr/src/app/node_modules/esdoc/out/src/Publisher/Builder/ASTDocBuilder.js:34:25)
    at publish (/usr/src/app/node_modules/esdoc/out/src/Publisher/publish.js:152:51)
    at Function.generate (/usr/src/app/node_modules/esdoc/out/src/ESDoc.js:137:7)
    at DestroyableTransform.flush [as _flush] (/usr/src/app/node_modules/gulp-esdoc/index.js:42:11)
    at DestroyableTransform.<anonymous> (/usr/src/app/node_modules/readable-stream/lib/_stream_transform.js:115:49)
    at DestroyableTransform.g (events.js:291:16)
    at emitNone (events.js:86:13)
    at DestroyableTransform.emit (events.js:185:7)

Screen shot of documentation
// attach a image into here
Exception output (if possible)
Log
// write into here

Screen shot of documentation
// attach a image into here
Your environment

OS type and version: DOCKER->Node->6.10.0
Node.js version: 6.10.0
ESDoc version: latest:0.5.2

I am experiencing the same problem using node 8.

@h13i32maru can I get word from you that this project is still maintained?  The issues and PR are piling up.  I can work on fixing this issue if you are still interested in working on this project. I'd be happy to help you out as well.

@h13i32maru can I get word from you that this project is still maintained?  The issues and PR are piling up.  I can work on fixing this issue if you are still interested in working on this project. I'd be happy to help you out as well.

@MattMcFarland I found out the problem is how JS handles strings... you docker container just doesn't have enough resources as what you're asking it to do is a fairly heavy task. The addition of using streams is I think the correct solution, but you may have to fork and start being the maintainer... I'd follow up. Cheers.

Been playing around with this, and inspecting memory usage!
When using the original method usage is this:
rss 86.72 MB
heapTotal 57.85 MB
heapUsed 29.37 MB
external 1.71 MB

When using stream API the memory usage is this:
rss 84.04 MB
heapTotal 54.85 MB
heapUsed 35.01 MB
external 0.35 MB

The differences aren't much, and I haven't tested this in our gitlab runner yet.  Even with streams, calling JSON.stringify is heavy.  I am thinking we might have to break the objects up a little bit to prevent a huge push to JSON stringify.

Ok, I just found an awesome library: big-json, and verified that it breaks the json up so stringify never hits its limit. I've implimented it, tested it with a huge file, and pushed up the changes.  I am going to send a PR!

Ohhh, very nice...!

We have a working solution, but I want to make sure we cover our bases before sending the PR.  Sorry for the early request!  Will have one ready soon

Ok, we finally have finished this up.  This was a pretty big effort between @workjalexanderfox and I, including code reviews, testing, iteration, cleanup, etc.  Hope this helps the community and we look forward to contributing more to esdoc in the future.

@flodonsky can you pull down my forked version and try it out?  you could probably just change your package.json / esdoc version tag to MattMcFarland/esdoc#216ed7f as npm supports github for version tags.
Also are there any other maintainers other than @h13i32maru  ?  He is very active on twitter but seems to be MIA here.

@MattMcFarland looking now


Mac support

This adds basic macos support (tested on macOS Ventura)
Also, when running the first time, it will ask for the system event
permission, so you will have to restart the app after pressing Ok

Dang, you're on fire with these! Thanks again :)


Popover issue - Firefox input field cannot be selected by mouse

Input field text is no longer markable (field is selectable but text is not markable) by mouse when popover is active (displayed), although mark by keyboard works fine.
Observed this behavior in Firefox 8.0 (but have appeared on earlier versions as well)

you should wrap your input in a div, and display the popover on that div.

@nights321: any update on this?

no clue what markable means in this context, feel free to reopen a ticket with a jsfiddle


Fix docker image build workflows

Describe the bug
The JupyterLab docker image builds have been consistently failing for the past week or two.
https://github.com/Quansight/qhub/runs/4845380327?check_suite_focus=true#step:8:3189

HI @iameskild, thanks for opening this issue. we install code-server during the postbuild phase for the Jupyterlab image, as it seems they made a release that checked their isntall.sh download URL. Then we start getting the following error:
#22 1.075 Installing vhttps://github.com/coder/code-server/releases/tag/v4.0.1 deb package from GitHub releases.
#22 1.077
#22 1.079 + mkdir -p ~/.cache/code-server
#22 1.087 + curl -#fL -o ~/.cache/code-server/code-server_https://github.com/coder/code-server/releases/tag/v4.0.1_amd64.deb.incomplete -C - https://github.com/cdr/code-server/releases/download/vhttps://github.com/coder/code-server/releases/tag/v4.0.1/code-server_https://github.com/coder/code-server/releases/tag/v4.0.1_amd64.deb
#22 1.219 #=#=#

######################################################################## 100.0%##O#- #
curl: (22) The requested URL returned error: 404
#22 1.380
#22 ERROR: process "/bin/bash -c /opt/jupyterlab/postBuild" did not complete successfully: exit code: 22

I will make a PR updating it :+1:

Another issue arises!! (good movie name sksks), it seems that our docker build action has a release yesterday which modified the behavior of handling the context attribute . It seems that they are handling Handlebars as default now, which on the other hand might be conflicting with our path ./*./{{ cookiecutter.repo_directory }}/image

As per #1003, we will start removing the dependency over cookie-cutter, which should impact the directory path name,  mentioned above. For now, I will update the context path to ./qhub/template/*/image


Correct use of Garbage collection

In the blog/docs it says

To make QSBR work, each thread must periodically call junction::DefaultQSBR.update at a moment when that thread is quiescent – that is, not in the middle of an operation that uses the map. In a game engine, you could call it between iterations of the main loop.

I am experimenting with the leapfrog map, and inserted a call to junction::DefaultQSBR.flush() (since there is no update()). However, when I add the flush call, my code throws exceptions due to empty states in some objects retrieved from the map. There is no single place in the code where I can guarantee that the map is not accessed since everything is completely asynchronous. When one thread is calling flush() another thread might decide to insert or remove something from the map.
Is there a recommended way of dealing with this? (Also please clarify "each thread must periodically call" - do you mean that all threads must call it individually, or can any one single thread call it from time to time).

Hi,
What makes you say there is no update()? It's right here...!
junction::DefaultQSBR.flush() is not the right function to call during normal use. You really need junction::DefaultQSBR.update(). (flush() only exists in case you want to delete all Junction maps and shut down the whole QSBR subsystem, but still keep your app running.)

do you mean that all threads must call it individually, or can any one single thread call it from time to time

Each thread must call update() individually, and each thread must pass its own QSBR::Context to the call. You basically just create one QSBR::Context per thread (if that thread will use a Junction map). You can create the QSBR::Context on the stack.
This inconvenience is admittedly the main drawback to using Junction maps.

Oops. Sorry, I didn't realize I needed a context per thread and I grepped for update with no arguments and missed it.
I will fix my test and close this issue if I have no further problems. Thanks


Profile explorer tile code

When opening the explorer tiles at zoom 17, it takes pretty long. Use py-spy to find out where it takes so long.

I've used py-spy and speedscope to find out what the problem is. And apparently it takes super long to figure out the tile history:

Then I've changed this from a Pandas data frame with linear access time to a hashmap with constant access time. And then it is like 43 times faster:

Emitting the GeoJSON just takes some time. Perhaps there is a bit one can do. Also perhaps cache some other things.

My 23,439 explorer tiles at zoom 17 now load in 7 seconds. That's fast enough I think.


"time_point::from_iso_string" unresolvable

A duplication of of isse https://github.com/EOSIO/eos/issues/4922

Resolved by PR #57


Dropdown menu to accept other then just enum fields

Is your feature request related to a problem? Please describe.
In some cases, a dropdown is useful just as a suggestion, not as only options for the field
Describe the solution you'd like
Add a new field suggestions that behaves the same way as enum, but the UI will allow you to add any text you decide on

@petar-cvit I would like to work on this issue

@quest-bot embark

Hey @s-vamshi, looks good from the functionality standpoint, but this field uses enum to define possible options. enum is also used by Helm and if some other value is provided for that exact field, helm validation will fail.
You should also implement support for x-suggestions that will give the dropdown the effect you have shown in the video above.
So if the schema is:
"type": "string",
"enum": [
  "ClusterIP",
  "NodePort",
  "LoadBalancer"
],

behavior should stay the same as before, but if the scheme is
"type": "string",
"x-suggestions": [
  "ClusterIP",
  "NodePort",
  "LoadBalancer"
],

then, the field should have the behavior you showed above.

Hey @petar-cvit , I understand, if I am not wrong, I just need to add another field type with x-suggestions, when this comes up I need to show selectinputfield which allows custom options right?

@s-vamshi, yup, sounds good


Wasm dockerfile

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

Updated PTAL

Added a base version of the SDK to the image and enhanced the documentation.  PTAL


How to mount if you don't have access to API console

I don't have access to APIs console to login with this tool.
With ocamel-gdfuse I can use the url login method and works fine, is there a similar way to use this?
ocamel-gdfuse is having some issues with large files. Looks like it uses RAM for caching the files but loading big files chunks on RAM is a bad idea. And I would like to try out this util.

Plexdrive also caches to RAM, but it caches multiple chunks, not whole files. I have a development branch that uses mmap to store chunks to disk, but it uses more cpu time and is probably not very healthy for ssds, because you'll be writing to disk non-stop while streaming.
Not sue what the url login method is, but maybe you can convert the credentials from ocaml-gdfuse.

Maybe you can try rclone to get credentials, and then copy that to plexdrive configuration. It should work by using rclone api.

Rclone contains a hardcoded client-id that is uses if no custom id is used. While that works okayish for rclone, since they've built up pretty high rate limits on the key it is generally not such a great idea, especially for open source, were everyone can see the ids and use them in his own app.

Ocamel Fus egenerate an URL, I think that it have a callback with a server or something.
You just have to open the URL and it ask for the Authorization. This is quite fast and handy.
I would love to have something similar.


Conflict with cordova-plugin-local-notifications

Is this a known issue of just bad implementation from my part?
Android is working perfectly, IOS notifications while the app is in the background also work perfectly.

I also have the cordova-plugin-local-notifications plugin installed.

I had the same problem. The notifications will not be delivered in onNotificationOpen if you have cordova-plugin-local-notifications installed. After removing cordova-plugin-local-notifications it works like expected. Thank you for this hint.

@ylno do you use another plugin to show the local notifications? If yes, which?

@dmeij  i have same issue i need use local notifcation too.:(

How did you discover the conflict? What are they conflicting upon?

Was wondering if anyone got down to what exactly is conflicting between the two plugins.

There is a similiar a thread:
https://github.com/katzer/cordova-plugin-local-notifications/issues/1626

Same problem here. As soon as local-notification is removed, listening for notifications (.onNotificationOpen();) works again.

closing as this appears to not be fixable via the plugin

What?

@sebastian-zarzycki-es I could easily be wrong, but based on what I've read from the community, I'm not sure how any changes to this repo could fix this problem.  Issues which can't be fixed should be closed.  The discussion can still continue on closed issues for those that might be able to help out with the root problem.  If you or anyone else finds a solution, I'll gladly accept a PR which either provides a code change or updates the README with instructions on how to solve the problem.

Did you see this? https://github.com/katzer/cordova-plugin-local-notifications/issues/1626#issuecomment-406992891
Can you confirm that this plugin is not registering in the same was as described phonegap plugin?

I'm not sure as I don't use phonegap.  Hopefully someone from the community can provide more details.


All CI tests with Rails 7 fail

Description
All GitHub actions jobs with Rails 7 fail. This means that no PRs can be merged currently.
After almost 2 hours of trying to find out why:

Although the tests.yml file specifies RAILS_VERSION: 7.0 which should prevent bundler from going to 7.1 (due to the pessimistic version constraint ~>) the workflow is now run with Rails 7.1.0 while in the past it was run with Rails 7.0.x

I do not know why this happens, maybe Github actions casts 7.0 to an int somehow?

The sqlite3 package on Ubuntu 20.04 seems to have compatibility with sqlite changes in Rails 7.1, resulting in all database-backed tests failing

Ubuntu freezes package versions and only provides security updates to them in LTS releases

We should either

specify 7.0.8 as the Rails 7 version (not preferred, we just kick the problem down the road)
change the OS used in github actions to something more modern

P. S.: I am still investigating this, sqlite3 is just my working theory for the moment, but it could be a different compatibility issue.
Edit 1: It definitely is sqlite, I confirmed it by switching to postgres on a vm. sqlite has the same errors as github actions while postgres passes all tests.
postgres_rspec_run.log
sqlite_rspec_run.log

I think we can switch to a newer version of the OS @ellnix :)


[ZEPPELIN-1099] Build and run Spark without spark-dependencies

What is this PR for?
When users use SPARK_HOME, they won't want to include spark-dependencies. This PR makes it possible and results reducing whole size of package.
What type of PR is it?
[Feature]
Todos

[x] - Remove dependencies of spark-dependencies

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-1099

How should this be tested?

Run mvn clean package -DskipTests -pl '!spark-dependencies'
Set SPARK_HOME in zeppelin-env.sh
Start Zeppelin
Run sc.version in a paragraph and check the version
Stop Zeppelin
Set SPARK_HOME in a different version
Start, check and stop

I've tested it with 1.6.1 and 1.5.2.
Screenshots (if appropriate)
Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

Ready to review!

Rebased it

looks good, I'm not exactly follow though - does one switch from building with spark-dependencies to without, with a build profile commandline, or this is permanently removing spark-dependencies from build?

@felixcheung I think it has great benefit to include spark-dependencies by default especially for newbie. Thus I think it's enough to make building Zeppelin without spark-dependencies.

Merging there's no more discussion.


bank/tx: Can't send funds to account address from validator

Summary of Bug
From an existing account that has funds, I can't send tia tokens to:

Existing celes accounts from hardspoons
Newly freshly created accounts

Version
v1.0.0-rc6
Steps to Reproduce
consensus-validator-1-0:/$ celestia-appd tx bank send celestia1t5x0tdfepqjnez24keew4p46v89a0wn04ptz28 celestia1caqjp8w8udfeqldhvvlzwv8yd9xg7v8sdvhdav<PHONE_NUMBER>30utia --home /home/celestia --fees 21000000utia --keyring-backend test --gas 210000
auth_info:
  fee:
    amount:
    - amount: "21000000"
      denom: utia
    gas_limit: "210000"
    granter: ""
    payer: ""
  signer_infos: []
  tip: null
body:
  extension_options: []
  memo: ""
  messages:
  - '@type': /cosmos.bank.v1beta1.MsgSend
    amount:
    - amount: "100811405430"
      denom: utia
    from_address: celestia1t5x0tdfepqjnez24keew4p46v89a0wn04ptz28
    to_address: celestia1caqjp8w8udfeqldhvvlzwv8yd9xg7v8sdvhdav
  non_critical_extension_options: []
  timeout_height: "0"
signatures: []
confirm transaction before signing and broadcasting [y/N]: y
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: EF61BDB5C786FCD711293EE13E682872463FB8177470CE4CD0DF767CE7BF7482

Then query the tx
consensus-validator-1-0:/$ celestia-appd query tx EF61BDB5C786FCD711293EE13E682872463FB8177470CE4CD0DF767CE7BF7482
Error: error in json rpc client, with http response metadata: (Status: 200 OK, Protocol HTTP/1.1). RPC error -32603 - Internal error: tx (EF61BDB5C786FCD711293EE13E682872463FB8177470CE4CD0DF767CE7BF7482) not found

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

From a tendermint full node I constantly see such logs
8:54AM ERR Error on broadcastTxCommit err="tx already exists in cache" module=rpc
8:54AM ERR Error on broadcastTxCommit err="tx already exists in cache" module=rpc
8:54AM ERR Error on broadcastTxCommit err="tx already exists in cache" module=rpc
8:54AM ERR Error on broadcastTxCommit err="tx already exists in cache" module=rpc
8:54AM ERR Error on broadcastTxCommit err="tx already exists in cache" module=rpc
8:54AM ERR Error on broadcastTxCommit err="tx already exists in cache" module=rpc
8:54AM ERR Error on broadcastTxCommit err="tx already exists in cache" module=rpc
8:54AM ERR Error on broadcastTxCommit err="tx already exists in cache" module=rpc
8:54AM ERR Error on broadcastTxCommit err="tx already exists in cache" module=rpc
8:54AM ERR Error on broadcastTxCommit err="tx already exists in cache" module=rpc

I assume this is a regression as rc5 tx transfers were working fine as the faucet was able to fund accounts from the full node's rpc endpoint
Example tx for rc5
5228E30E1709F65A1C76852B6BA78FD239FC1D5EC4D259BD707F8CC0A916E04C


fix contact component

Code for contact component needs some cleaning up Contact.js can be put in Contact container and deleted. Also can be implemented in same coding style as other components/ containers when possible

Before I could push this Mario took care of it.


exec Illegal instruction (core dumped)

I do from shell:
netstat -an | grep 6000 | grep ESTABLISHED

which is giving me
tcp        0      0 someIp:6000         someIp:49256     ESTABLISHED

However using shelljs I get:
Exit code: 1
Program output:
Program stderr: Illegal instruction (core dumped)

with
require('shelljs').exec('netstat -an | grep 6000 | grep ESTABLISHED', function(code, stdout, stderr) {
		console.log('Exit code:', code);
	  	console.log('Program output:', stdout);
		console.log('Program stderr:', stderr);
});

Any ideas whats wrong here?

@ArtworkAD thanks for reporting this!
I just tried out a similar command on my Ubuntu system, and I saw no issues. I used this command:
> require('shelljs').exec('netstat -an | grep 60 | grep ESTABLISHED', function(code, stdout, stderr) { console.log(code, stdout, stderr); });

code was 0, as expected (I had to try it a few times though, since the netstat output changes almost each run).
I suspect this is not a ShellJS issue, since this thread talks about the "illegal instruction" error message possibly involving invalid assembly instructions (and all our code is pure JS). So I'm going to close this issue for now.
If you can run the command using ShellJS's native exec function but not with the ShellJS function, please ping this thread and we can revisit the issue (otherwise I suspect it may be an issue with one of your binaries).

@nfischer the native exec function gives the same error. It used to work for me on ubuntu too. However I switched to alpine linux which is based on busybox and it stopped working.

So I would suspect that this is specific to node then. This sounds like an issue outside of our code base.


Dashboard not updated with custom hooks

Gogs version (or commit ref):  <IP_ADDRESS>7
Git version: <IP_ADDRESS>
Operating system: CentOS Linux release 7.3.1611
Database (use [x]):

[ ] PostgreSQL
[ x] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gogs.io:

[ ] Yes (provide example URL)
[ ] No
[ x] Not relevant

Log gist (usually found in log/gogs.log):

Description
When using a custom post-receive hook to rsync files with a production server
the dashboard doesn't get updated. Everything else runs fine, and no error is produced.
Script follows:
while read oldrev newrev ref
do
    if [[ $ref =~ .*/master$ ]];
    then
        echo "Master ref received.  Deploying master branch to production..."
        git --work-tree=/home/git/deploy/test/debug --git-dir=/home/git/gogs-repositories/user/test-debug.git checkout -f
        rsync -avz -O -e "ssh -p2222" /home/git/deploy/test/debug/ user@example.com:/home/project/
    else
        echo "Ref $ref successfully received.  Doing nothing: only the master branch may be deployed on this server."
    fi
done

Tried to add
"/home/git/gogs/gogs" hook --config='/home/git/gogs/custom/conf/app.ini' post-receive
in the end of script, but it didn't work

I have the same problem.

After upgrade Gogs to 0.11.33 everything works correctly.

Is this still happening with latest Gogs release (0.11.53)?


Input Overflow Error when stream is not read from

Is there a way to ignore the input overflow error thrown by a stream such that the stream is not closed, and continues to work?
My application records system audio and broadcasts it over a network; sometimes due to network issues or no clients listening in, the stream is not emptied quickly enough, and it overflows and closes, necessitating a server restart for it to work again.
Can the exception be ignored? I remember older versions of naudiodon not closing the stream when an input overflow error occurred, allowing the program to continue running

I have a similar problem when recording audio but only on macOS (tried Ubuntu and I don't have the problem there).
System Information

OS: macOS Mojave Version 10.14.5
Node.js version: 12.7.0 (also tried 10.16.1 with the same result)

In order to replicate, you can run the following code:
const portAudio = require("naudiodon");

const ai = new portAudio.AudioIO({
  inOptions: {
    channelCount: 2,
    sampleFormat: portAudio.SampleFormat16Bit,
    sampleRate: 44100,
    deviceId: -1
  }
});

ai.on("data", data => {
  console.log(data);
});

ai.start();

After logging a few data (buffer) lines, I get the following logs:
AudioIO: portAudio status - input overflow
AudioIO end

Finally, this is what portAudio.getDevices() logs, in case it is helpful:
[
  {
    id: 0,
    name: 'Built-in Microphone',
    maxInputChannels: 2,
    maxOutputChannels: 0,
    defaultSampleRate: 44100,
    defaultLowInputLatency: 0.0029478458049886623,
    defaultLowOutputLatency: 0.01,
    defaultHighInputLatency: 0.01310657596371882,
    defaultHighOutputLatency: 0.1,
    hostAPIName: 'Core Audio'
  },
  {
    id: 1,
    name: 'Built-in Output',
    maxInputChannels: 0,
    maxOutputChannels: 2,
    defaultSampleRate: 44100,
    defaultLowInputLatency: 0.01,
    defaultLowOutputLatency: 0.007800453514739229,
    defaultHighInputLatency: 0.1,
    defaultHighOutputLatency: 0.017959183673469388,
    hostAPIName: 'Core Audio'
  }
]

I have the same problem on Ubuntu 20.04. I'm trying to use PortAudio to record and stream audio. I can see that a few overflows are reported and handled, but then one is reported after about 7 hours and the stream stops. The program doesn't stop running or trigger any kind of error/EOS, but the Icecast server will close and all recordings will be empty.
I had already had this problem when trying to use arecord, and have switched to PortAudio as I thought it might handle xruns/xflows.

This works on MacOs Big Sur, I'm using Loopback to re-route audio from Spotify through a virtual device:
audioInputDevice = new portAudio.AudioIO({
  inOptions: {
    channelCount: 2,
    sampleFormat: portAudio.SampleFormat32Bit,
    sampleRate: 44100,
    deviceId: 4,   // <===== Loopback Virtual Sound Device
    closeOnError: false.  // <===== Essential for it to work
  }
})

const musicBeatScheduler = new MusicBeatScheduler()

const musicBeatDetector = new MusicBeatDetector({
  scheduler: musicBeatScheduler.getScheduler()
})

audioInputDevice
  .pipe(musicBeatDetector.getAnalyzer())
  .on('peak-detected', (pos, bpm) =>
    console.log(`peak-detected at ${pos}ms, detected bpm ${bpm}`))
  .on('open', () => {
    musicBeatScheduler.start()
  })
  .pipe(fs.createWriteStream("/dev/null")) // <===== Essential for it to work

audioInputDevice.start()

Make sure you have the latest version (--HEAD) of PortAudio installed for it to work on Big Sur.
brew install portaudio --HEAD


Cancelling Rating by Clicking on first Start

Hi Craig,
Thanks for Vue Star Rating -- great component!
Is it possible to cancel a rating by clicking the first star? Currently when I click the first star it says on.
Thank you,
Ronnie Serr

Yes, some way of clearing the rating without having to use v-model would be appreciated.


Spark submit: wrong path to script

Thanks for the great resources, Mr Hopmans!
While running your boto3 scripts for AWS EMR + Spark, I noticed the path to the script was wrong in the following function:
def step_spark_submit(self, c, arguments):
"""
:param c:
:return:
"""
response = c.add_job_flow_steps(
JobFlowId=self.job_flow_id,
Steps=[
{
'Name': 'Spark Application',
'ActionOnFailure': 'CONTINUE',
'HadoopJarStep': {
'Jar': 'command-runner.jar',
'Args': [
"spark-submit",
"/home/hadoop/run.py",
arguments
]
}
},
]
)
logger.info("Added step 'spark-submit' with argument '{}'".format(arguments))
time.sleep(1)  # Prevent ThrottlingException
Running it as is causes an error during step execution.
Replacing "/home/hadoop/run.py" with "/home/hadoop/wordcount.py" fixes it.

Thanks @ericbolo, I just pushed the fix 👍


What will happen if Mamba's token mixing is switched from SSM to Kobe?

I suggest the author use Kobe operations instead of SSM for the following reasons:

Larger Receptive Field: Kobe is known worldwide, meaning his receptive field extends beyond the global image to a worldwide scope, benefiting long-dependency modeling.

Benefits from Other Modalities: The Kobe operation naturally encompasses multimodal information, as he can connect with audio, text, images, and basketball on a global scale. This means using Kobe for token mixing can leverage supplementary information from other modalities.

Of course, there are drawbacks to using Kobe for token mixing. Kobe needs to handle all the tokens himself, which can be exhausting. Therefore, it’s necessary to have halftime breaks when training the model. However, I still suggest that the author compare the SSM operation with the Kobe operation.

I suggest the author use Kobe operations instead of SSM for the following reasons:

Larger Receptive Field: Kobe is known worldwide, meaning his receptive field extends beyond the global image to a worldwide scope, benefiting long-dependency modeling.
Benefits from Other Modalities: The Kobe operation naturally encompasses multimodal information, as he can connect with audio, text, images, and basketball on a global scale. This means using Kobe for token mixing can leverage supplementary information from other modalities.

Of course, there are drawbacks to using Kobe for token mixing. Kobe needs to handle all the tokens himself, which can be exhausting. Therefore, it’s necessary to have halftime breaks when training the model. However, I still suggest that the author compare the SSM operation with the Kobe operation.

Will you consider raise your score if the ablation on kobe oepration has been addressed during rebutal?


Task 'build' is not in your gulpfile

Hi, I followed the instructions with:
"gulp build --release to build with minification & strip debugs"
But I get the error:
gulp build --release
[19:41:34] Using gulpfile ~/Code/App/gulpfile.js
[19:41:34] Task 'build' is not in your gulpfile
[19:41:34] Please check the documentation for proper gulpfile formatting
I use the default tabs app template.
Do I have to write it on my own to the gulpfile?

Greetings @ibewugb!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Greetings @ibewugb!
My sensors indicate that you have created an issue on our tracker requesting usage help, rather than an actual error with Ionic framework.
This GitHub issue tracker is used to track framework features, problems, and development.
If you wish to get help using the framework itself, the recommended place is the forum. There are many humans there who would be happy to offer sage advice.
Thank you for allowing me to assist you.


Create a JSON schema for tact.config.json

This can be used to get intelligent completion within Visual Studio Code or any editor supporting LSP (Neovim, Helix, etc.), which has access to tsserver.
User of the schema needs to add one more property to their tact.config.json to enable completion and hover — "$schema": "link to the json file".
Here's an example of using $schema:

I'd suggest putting the schema file right in the root of this repo, near to tact.config.json. Alternatively, it can be put to grammar/, if that folder is still maintained :)
Links:

JSON Schema description: https://json-schema.org/
Reference implementation: https://github.com/martinring/tmlanguage/blob/master/tmlanguage.json
tact.config.json field definitions in parseConfig.ts

Love the idea!
We should also add schema adherence checks for all tact.config.json files in the repo to our CI


Work/issue 47 Fix scroll position on Registration VC on when keyboard appears

this PR seems to have the same issues as #98 ... it also contains a merge commit which merges master and all of the release merge commits into your feature branch:

You should be able to fix this PR branch with the same steps as the other one:
$ git checkout develop
$ git reset --hard 1ba39628b9ebe6dc54e48717f16296c2cbe1bad6
$ git pull
# now your develop branch should be in sync with the remote branch in github
$ git branch -D work/issue_47
$ git checkout -b work/issue_47
$ git cherry-pick 458b3f6435d8b68b13b4c37db95fa868e31ef41e
$ git push --force

the git reset --hard is only necessary if you didn't perform the steps in PR #100 yet... otherwise your develop branch should already be clean...


favicon

Thank you for such a great gatsby template. Can you guide me how can I add a favicon for my website?

Hey, thanks - glad you like it!
Regarding favicon:

The easiest way is to create static/ folder and put there favicon.ico file.

For more sophisticated solution please check gatsby-plugin-manifest plugin.

Thank you.


Multiple devices support

Does this lib support a multiple devices running?

I think yes but I didn't try. See https://github.com/adabru/BleWinrtDll/issues/7#issuecomment-771600983:

I guess each bluetooth device normally has a unique device id. In that case you should be able to just call the functions with different device-ids. Each received data-package contains information about the device it was sent from. Likewise, in each data-package you send you can specify the device-id it should go to.

Yes, I tried and it works~ thanks~

Hi @tufeixp , can you share your code/project how you read the data when connect to more than 1 device?

So based on my understanding we need to SubscribeCharacteristic() for both devices id , services and char id, and all buffer will still pull from the function as in picture above?

Hi @mnajib76, you are right. You pull from the function and determine which device it was sent from by inspecting res.deviceId. https://github.com/adabru/BleWinrtDll/blob/31fcc9fd733e16a80d712ece893caf0c678f9111/BleWinrtDll/BleWinrtDll.h#L22-L28

Thank you very much! Manage to do it!


Fix environments setup

Closes #379

This looks promising - I'm not sure it's ready for merging, as I think there are still hangovers of the previous packaging setup. In particular, the CI jobs still use the setuptools-based approach for building and deploying.
As I understand, python poetry removes the need to maintain a setup.cfg / setup.py. To avoid being in a messy "half-way house", I think if we're using poetry for packaging we should switch the build and deploy steps to use Poetry too, and remove the setup.cfg information. This would mean moving the package metadata from setup.cgf to pyproject.toml , and also editing the github CI workflows.

Also, before proceeding I think we need a clear plan for versioning. Python Poetry manages the version using pyproject.toml, which is inconsistent with the current setup using setuptools-scm . I do not know if it is even possible to get poetry working with versions from git, which may be a blocker.
Some possible workarounds here: https://www.nicholasnadeau.com/post/2020/8/one-version-to-rule-them-all-keeping-your-python-package-version-number-in-sync-with-git-and-poetry/

Further to the above, this could be one Poetry-compatible way of ensuring we still have PEP-440 compliant version strings that are single-sourced from version control:
https://pypi.org/project/poetry-dynamic-versioning/

FYI, I've made a PR on the "Install Poetry" GitHub Action to allow it to install plugins as well. However, would recommend waiting until Poetry 1.2 is officially released before using this.
https://github.com/snok/install-poetry/pull/69


Marie lataretu/issue23

modularized alignment handling for easy bam file filtering
bam soft-clipped filter option:

by the total number of soft-clipped positions or
relative number of soft-clipped positions (relative to the read length)

We saw that in at least one test data set. So with the soft-clip parameter, one can filter the reads more stringent by not trusting the mapped reads with lots of soft-clipped nts.

cool!

Should work now :)
Feel free to test or merge directly!

cool, in the advent of buisiness - I merge :D We anyway need to do then a larger master merge and testing for a release I guess


I am using your code to do the same thing for a png file but I am having trouble.

Thanks for the awesome code.  I am trying to draw splines on an imported heightmap 16 bit png file.  I know it is not georeferenced like the geotiff file but I have bounding box lng lat and utm conversions so I think I should be able to place the geojson landscape features such as a road on my landscape.  I have made a little video that explains what I have so far and what I need help with if you have the time.
My two projects are here
Web Application:
This allows you to select a real world location and create a heightmap file for Unreal.
https://github.com/delebash/unreal_mapbox_bridge
MapboxPlugin:
This should place the geojson features such as roads on the imported heightmap file.
https://github.com/delebash/UnrealMapboxBridgePlugin
Note the test Unreal Project is for use with Unreal 5.0 Preview 1 not 5.0 Early Access.
Demo Video
https://1drv.ms/v/s!Aq4OgSZRh__uieNLDnjytI0m9hf5WA?e=8VKBOw
Thanks,
Dan

Hello Dan,
Sorry about the delay. It's been a while since the last time I interacted with code & Github (life).
Thanks for the video I enjoyed watching it. Looks like you you're getting a really neat Mapbox plugin there.
Did you sort the issue? (I hope so)
I could not detect what can be wrong after reviewing your video and the importlines logic. It's really simple considering after all what we do is applying the (UTM) offset and convert from meter to UE units (centimeter, the '* 100.00' part)
1- Do your imported landscape retains correct real world aspect ratio and scales? e.g. same X,Y total lengths in UE and real world distances (in UTM projection)? At least that's what I think you're doing after watching the video.
2- It's worth noting that if you just crop/collect your data in geographic coordinate system - GCS, (or any EPSG for the matter, webmaps usually EPSG:3857), then just translating the bounding box (like you did with the latlong.net) and use that as reference to the original data, it will contain distortions probably. Probably It will not be a correct real world representation (a correct UTM representation in the case). Need to reproject the data to guarantee you have a reliable/correct UTM representantion. Point is different EPSGs are not just different units but can also mean different 'shapes' of your data. Example https://gis.stackexchange.com/questions/344641/epsg-3857-vs-utm-coordinate
3- Probably not the case but also worth: If you try importing a UTM geojson actually located in other UTM grid (10T in your example) it will surely not make sense as X coord repeats over different zones. See attached image.
Sorry, maybe you're aware of these things already but this is all I can think trying to spot the issue ATM.
Not sure if useful but I have a blueprint to check UTM coords in UE (but still UE4...). It basically do the inverse thing that importlines.py do, so perhaps a good place to look. https://github.com/Rodrigo-NH/UE4HmapsGenerator/tree/main/blueprints
I think it makes sense leaving this issue open for now.
Thanks!

Thank you very much for the information.  I actually have been busy and have put that part of the project on hold.  I do want to get back to it and I really appreciate the insights.  Cheers!


Support for cancellation token in db operations

It seems like there is no support for passing cancellation token in async operations against QueryContext.
Do the native drivers have support for this? Would it be difficult to implement, what do you think?

It probably would be fairly trivial to implement except that I am not yet sure where or how to pass a cancellation token to the underlying task.

It looks like a CancellationToken can be passed to ExecuteNonQueryAsync and ExecuteReaderAsync.
So I imagine this being implemented in QueryContext as an CancellationTokenSource option property and a UseTransaction method that initializes it to Some (new CancellationTokenSource()).
(Same design as the transaction feature.)

It's CancellationToken that you need to pass in cmd.ExecuteReaderAsync and cmd.ExecuteScalarAsync, CancellationTokenSource is created by the calling code. So I don't think we will need a property for CancellationTokenSource  or a Cancel method anywhere, since the calling code would have access to the original cancellation token source and will be able to cancel.

I was thinking an overload that takes an extra parameter for CancellationToken:
member this.GetReaderAsync<'T, 'Reader when 'Reader :> DbDataReader> (query: SelectQuery<'T>) = ...

member this.GetReaderAsync<'T, 'Reader when 'Reader :> DbDataReader> (query: SelectQuery<'T>, cancellationToken: CancellationToken) = ...

It seems to be the general pattern that dotnet libraries use to handle cancellation tokens, e.g. HttpClient and GetAsync, even ExecuteReaderAsync on the command. I do think it is a bit more difficult to use from F# where you would ideally want to pipe the query as the last parameter, but methods with curried arguments cannot be overloaded.

That seems reasonable to add an overload that takes a tuple input.
It would still be possible to use pipe operator if the cancel token was tupled along with the query.


[Question] OSX

Hey, does this work on OSX?
I see you didn't release an OSX version, is it because you do not have an Apple Signing Certificate?

The reason was me not having a Mac OS CI, which I did, then our raid failed, and now we are remaking it. Anyway, there are some builds but the CI and the Mac OS node for the CI are down currently. :(
Oh and no I have no certificate

Yeah... Having a Mac OS Server pipeline can be a ***** sometimes... It's hard to make an infrastructure autoscale when you have a static element part of it...

Edit: I could probably sign it. Interested?

I'd rather use my own signature, sorry, but I wouldn't mind help with automating and setting up the entire process. If you happen to have Discord join: https://discordapp.com/invite/Vu8WNTw or if you're more of an IRC guy join irc://irc.snoonet.org/%23Arsen if you don't mind, so I can talk to you there.
Thanks

Joined.


Tests: Add optional dependency on Effcee stateful matcher

Add Effcee as an optional dependency for use in tests.  In future it will
be a required dependency.
Effcee is a stateful pattern matcher that has much of the functionality
of LLVM's FileCheck, except in library form.  Effcee makes it much easier
to write tests for optimization passes.
Demonstrate its use in a test for the strength-reduction pass.
Update README.md with example commands of how to get sources.
Update Appveyor and Travis-CI build rules.

This enables a significant change in how we test.  We can use more expressive pattern-matching, just like FileCheck in LLVM.  I included an example.
It  also makes building tests more heavyweight since we add two libraries to each test executable.

The bot logs showed effcee as not being configured.  That's wrong.  I'll fix that too.

I want to see the bots exercise the effcee tests and not the RE2 tests.

Travis bot failed for the Android build.  That's because even in Android mode, we say we don't want tests, but we were still trying to add the re2 and effcee libraries as dependencies, and they don't have Android.mk support.
I added a commit to stop depending on effcee and re2 when we've requested option SPIRV_SKIP_TESTS. That condition is implied when we ask for SPIRV_SKIP_EXECUTABLES.

Bots pass and show it is running effcee-test and not running the RE2 tests.  That's intended.
I'll squash, rebase if necessary, then push into master.

Squashed and pushed into master as 76555bd4ba


Is it possible to provide a system message to Otter?

Hey,
Thank you for releasing the code, weights and data. I was wondering if it is possible to provide a system message to Otter, like you do to e.g. ChatGPT, specifying something that should hold for the entire conversation?
Thanks!

Currently the answer is possibly not. Because we use small MPT7B/LLAMA7B as LLM. The ability of such LLMs may not support adding system message (I will use sys msg next for brevity).
Supposedly it's because adding sys msg will increase the input context length to LLM and be challenging for it to understanding sys msg + instructions. Another problem it's because we dont add sys msg to prompt during training Otter on MIMIC-IT data.

Okay, thank you!


is it possible to customize the d3 cloud through android programmatically?

Hi
I am trying to attach d3 word cloud in my android app.
To support many kinds of android devices, I wanna optimize the word cloud's size programmatically.
Also, fontSize and color of each words.
Can you give me any hints? I am not really familiar with js so it is very difficult for me.
Thank you.

All the logic in done in d3.js (https://d3js.org/). There really is no way around it. You can compute some of the values (like the size) in java/android and pass them as parameters, just like you pass the "wordCloud" in MainActivity.
For example, replace change the StringBuilder to include other params, like:
sb.append("], 300)");
and in javascript, replace the hardcoded values with variables:
function wordCloud(data, cloudSize) {
    var fill = d3.scale.category20();
    var layout = d3.layout.cloud().size([cloudSize, cloudSize ])
...

Thank you so much.
It helped me a lot


Маленькое потребление энергии

Mod source
Factorio Mod Portal
Operating system

=Windows 10

What kind of issue is this?

[ ] Compatibility
[ ] Locale (names, descriptions, unknown keys)
[ ] Graphical
[ ] Crash
[ ] Progression
[X] Balance
[ ] Pypostprocessing failure
[ ] Other

What is the problem?
Я не уверен но думаю завод потрябляет мало электричества
Steps to reproduce
No response
Additional context
No response
Log file
No response

please make bug reports in english


all data (browser and server) going to server view in Azure UI

We have a web app (Angular 7.2.12) being served by a NodeJS backend, with both sides configured to send telemetry to App Insights. The server side part works as expected, using the applicationinsights package, but the browser app is not behaving. That is set up using 2.0.0-rc3 of this library, but it also has the same issue with 2.0.0-rc1 - I have not tried any other versions as I don't think the issue is necessarily with the library.
The problem is that all data, both that sent from the server with the Node SDK, and that sent from the browser with the web SDK, shows up in the "server" section of the "failures" panel in the UI. I see web data in the "users" and "events" panels, so this data is going to the right location, but exceptions (both those auto sent and those manually submitted) go to the wrong location. Here is a list of exceptions from the UI - the ones that have no users are those sent by server code, those with users come from client code:

When I look at the data sent, it looks like its tagged as being from a browser, but I have no idea how this is handled on the server so this may not be correct still. This is an example of what is sent as an exception:

One other point is that the documentation for the UI is hugely out of date - it appears not to have beed amended since 2017 while the UI has clearly changed massively since then.

I believe it separates it based on tags["ai.device.type"] === "Browser". It seems this field is no longer being set. I will add it and it will land in rc4 later this week.

awesome, will try it out and let you know.

just tested rc4 and it appears fixed, exceptions are now heading in the right direction. thanks for the quick fix.


doc: Example for legend!

Add an example to legend tweaking, demonstrating the use of legend!.
Related: #394.  This may be sufficient to close that?

There seem to be some unrelated CI failures.
┌ Error: failed to run `@example` block in src/gallery/gallery/applications/geographic.md:15-31
│ ```@example geographic
│ # Download, extract, and load shapefile
│ t = mktempdir() do dir
│     url = "https://data.bas.ac.uk/download/7be3ab29-7caa-46b8-a355-2e3233796e86"
│     r = ZipFile.Reader(seekstart(download(url, IOBuffer())))
│     for f in r.files
│         open(joinpath(dir, f.name), write = true) do io
│             write(io, read(f, String));
│         end
│     end
│     Shapefile.Table(joinpath(dir, "add_coastline_medium_res_polygon_v7_4.shp"))
│ end
│
│ # Draw map
│ plt = data(t) * mapping(:geometry, color = :surface) * visual(Choropleth)
│ fg = draw(plt; axis=(aspect=1,))
│ ```
│   value = Operation too slow. Less than 1 bytes/sec transferred the last 20 seconds while requesting https://data.bas.ac.uk/download/7be3ab29-7caa-46b8-a355-2e3233796e86
└ @ Documenter.Expanders ~/.julia/packages/Documenter/yf96B/src/Utilities/Utilities.jl:32

This error is due to a failed data download within the geographic example: a shapefile from https://data.bas.ac.uk/items/747e63e-9d93-49c2-bafc-cf3d3f8e5afa/#item-details-data gives a 503 response.
All other docs build successfully locally.

Thanks for the PR! Yes, CI failure was just a problem with a dataset download. I also think this fixes #394

Yay!


pickling error of signal SIGSEGV

terminated by signal SIGSEGV (Address boundary error)

I'm sorry you had problems. Could you please provide more details?

This code is listed below. The file (t.txt) is a file containing 28 millions lines of text.
import pickle
import ahocorasick
A = ahocorasick.Automaton()
with open("t.txt") as f:
    for line in f:
        line = line.strip("\n")
        A.add_word(line, 1)
print("loaded")
with open ("t.pkl", 'wb') as f:
    print("begin to pickle")
    pickle.dump(A, f)
    print("finish")

The output:
loaded
begin to pickle
fish: Job 1,

and t.pkl is empty.

@leonqli 28 million of lines means huge data. I'm afraid you hit #50, which is unresolved yet. It's almost fixed, but I need a few days to release it.

Thanks! Please keep up with the great work!

@leonqli If you can, please check the latest version. The bug I mentioned was fixed.

@leonqli gentle ping... this has been opened a couple years now without a reply so I am closing this. Please reopen with a reproducible test case if you still have the issue with the latest version.


How-to: DeleteAsync AFTER final UpdateAsync has succeed

Hi,
I want to UpdateAsync a record in the remote database and afterwards I want to set the Deleted column to true. After some investigation with offline sync tables I found out that I can't directly set the Deleted property on the record inside an app and invoke the UpdateAsync method. It doen't work because the Deleted property is not sent to the remote database which is what I guess intented by design.
So I tried to invoked UpdateAsync(record), then PushAsync() after that DeleteAsync(record) and again PushAsync(). Well that works in connected mode (phone has web access). But it doesn't work in disconnected mode(no web access), because the Updates added before the DeleteAsync is invoked are lost of that record.
My current attempt is to add an additional field in my remote database tables called Completed and put an UPDATE Trigger on the tables. Whenever I set the Completed  then in the app to true , the trigger will set the Deleted column of that records to true, too. That works in connected in disconnected mode of the app.
Is there a better option available from the SDK?
best
Eric

@ericbrunner Thanks for using Azure Mobile Apps. This looks like a new feature request that the product doesn't support. Please read the Readme section on this repo which talks about the future of Azure Mobile Apps.
I'll close this issue for now, but feel free to ask us questions if you have any. Thanks!


fix: pipe _changes directly through to upstream server

The last patch only half solved the underlying problem, we should not be applying a transformation to the changes feed.

Coverage remained the same at 100.0% when pulling a4918a22694e28502f681717c9d2357b495479a0 on changes-fix into a75e2e6d38a63b136a8af94321af7d9623a82c1e on master.


Updates numpy loss tensor accessor. Previously broken.

The current notebook is broken with recent versions of torch.  Error is:
IndexError: invalid index of a 0-dim tensor. Use `tensor.item()` in Python or `tensor.item<T>()` in C++ to convert a 0-dim tensor to a number

This affected me as well, we should commit this into head!
This article is an invaluable resource for those wishing to understand the Transformer model. If it doesn't run off the bat, it makes it harder for those new to ML -- the very target audience of this article!


Issues adding TV to HomeKit

Able to set up and add to HomeBridge (showing up in Accessories tab in HomeBridge, and works as expected there).
When adding to HomeKit, I go through:
Add Accessory > I Don’t Have a Code or Cannot Scan > Select the TV > Enter HomeKit Code
Then I just get ‘Connecting to TV’ for a long time but no progress.
I’ve tried deleting accessories/cachedAccessories, restarting the TV and Pi multiple times but with no luck.  Any suggestions?

Did you enter the correct ip and mac address of your TV? Can your Raspberry Pi reach the TV in the network? Did you accept the connection on the TV when starting up homebridge?

Yep, IP and MAC addresses are correct.  I can control the TV from the HomeBridge GUI (TV on/off, volume etc) all fine.  So the connection between the Pi and the TV must be fine, and yes, I accepted the connection when starting up HomeBridge.

Ok, then this seems like some issue with your Home app, if you can control the app with the homebridge GUI then the plugin works fine! Maybe reset your home in homekit or try to clear the homebridge cache?

Thanks, will continue to tinker and see what works.

I have the exact same issue FYI.
Other devices from my HomeBride show up in HomeKit, just not the TV.
I can see the TV from the HomeBridge UX abd can control it from there...

I have the exact same issue FYI.
Other devices from my HomeBride show up in HomeKit, just not the TV.
I can see the TV from the HomeBridge UX abd can control it from there...

@Veldkornet this definitely some kind of cache issue. Try to clear the homebridge cache or add it to a new home in HomeKit.

@Veldkornet this definitely some kind of cache issue. Try to clear the homebridge cache or add it to a new home in HomeKit.

Did both, still nothing 😔

Did both, still nothing 😔

Then you are not following the process described in the README or there is some kind of other issue with your homebridge setup. The plugin itself is working correctly.

Then you are not following the process described in the README or there is some kind of other issue with your homebridge setup. The plugin itself is working correctly.

Ha, you are correct ;) I was expecting it to just appear like my other plugins, completely forgot that I need to add it manually.
Apologies for hijacking the issue ;)

Ha, you are correct ;) I was expecting it to just appear like my other plugins, completely forgot that I need to add it manually.
Apologies for hijacking the issue ;)

I have the same issue, i don´t know if @JustJasper could solve it. In my case i can control and link the tv on Alexa, i can control the tv from homebridge, following all the steps in the README, in the 5th step: "Enter the Homebridge PIN, this can be found under the QR code in Homebridge UI or your Homebridge logs, alternatively you can select Use Camera and scan the QR code again."
Keep on connecting to the tv for a while and at the end fails, can´t reach the element.
I activated the log on the homebridge and the plugin but no info is logged when it´s trying to link HomeKit with HomeBridge. I tried what you suggested, new home, clear cache, ....
I don´t know if the issue could be due to some version update of node, ... Any port closed by the firewall...
I have connected other devices from Homebridge to HomeKit, all of them work with Alexa.
I don´t know what I can try more :(
Version of Node.js v14.15.4
Version of npm v6.14.10
Version of homebridge 1.2.5
Thanks for helping just in advance.

I have the same issue, i don´t know if @JustJasper could solve it. In my case i can control and link the tv on Alexa, i can control the tv from homebridge, following all the steps in the README, in the 5th step: "Enter the Homebridge PIN, this can be found under the QR code in Homebridge UI or your Homebridge logs, alternatively you can select Use Camera and scan the QR code again."
Keep on connecting to the tv for a while and at the end fails, can´t reach the element.
I activated the log on the homebridge and the plugin but no info is logged when it´s trying to link HomeKit with HomeBridge. I tried what you suggested, new home, clear cache, ....
I don´t know if the issue could be due to some version update of node, ... Any port closed by the firewall...
I have connected other devices from Homebridge to HomeKit, all of them work with Alexa.
I don´t know what I can try more :(
Version of Node.js v14.15.4
Version of npm v6.14.10
Version of homebridge 1.2.5
Thanks for helping just in advance.

@infvmm are you sure that you enter the correct Home pin? The pin which you need to enter will appear in the debug log of homebridge when it is starting.

@infvmm are you sure that you enter the correct Home pin? The pin which you need to enter will appear in the debug log of homebridge when it is starting.

Yes thanks, i have used the correct Home pin all the times. But reading again the log I saw this entry:
TV is running on port 35481.
Please add [TV] manually in Home app. Setup Code: .....
In this case what i did was disable the firewall of the server, then I added the TV on HomeKit, it worked perfect and very fast, then I activate the firewall of the server again and now it works perfectly, it seems it works even with the port closed, it could be it´s only needed to connect, i´ll try and in other case i will add the port to the firewall exceptions.
@JustJasper checki if you have the same issue with the firewall and the port, it could be your problem as mine. Now the plugin works perfect.
Thanks @merdok for support.

Yes thanks, i have used the correct Home pin all the times. But reading again the log I saw this entry:
TV is running on port 35481.
Please add [TV] manually in Home app. Setup Code: .....
In this case what i did was disable the firewall of the server, then I added the TV on HomeKit, it worked perfect and very fast, then I activate the firewall of the server again and now it works perfectly, it seems it works even with the port closed, it could be it´s only needed to connect, i´ll try and in other case i will add the port to the firewall exceptions.
@JustJasper checki if you have the same issue with the firewall and the port, it could be your problem as mine. Now the plugin works perfect.
Thanks @merdok for support.

It seems the port is random on the homebridge reboot, so after reboot it changed and it doesn´t work due to firewall again, how can i configure the port of the TV in a static way?.

It seems the port is random on the homebridge reboot, so after reboot it changed and it doesn´t work due to firewall again, how can i configure the port of the TV in a static way?.

@infvmm you can configure the port in the config.json under "bridge"

@infvmm you can configure the port in the config.json under "bridge"

Yes, but is not this port. As I have checked, the TV is starting each homebridge reboot in a different port with the message "XXXX is running on port YYYYY". The name of the tv is static and always the same, is taken from the name of the device and added a 4 letter code, but always the same. But the port it seems is initialized in a random way, because each time I reboot the homebridge, the port is different. The port of the bridge you mentioned is always the same and is static and as you say configured on config.json under "bridge".
The problem is I don´t know where I can configure the other port and how to create it in a static way.

Yes, but is not this port. As I have checked, the TV is starting each homebridge reboot in a different port with the message "XXXX is running on port YYYYY". The name of the tv is static and always the same, is taken from the name of the device and added a 4 letter code, but always the same. But the port it seems is initialized in a random way, because each time I reboot the homebridge, the port is different. The port of the bridge you mentioned is always the same and is static and as you say configured on config.json under "bridge".
The problem is I don´t know where I can configure the other port and how to create it in a static way.

Just had exactly the same issue, and exactly the same solution worked nicely for me - specify the port range for homebridge to use, and open that port range via firewall-cmd. So thanks!

Just had exactly the same issue, and exactly the same solution worked nicely for me - specify the port range for homebridge to use, and open that port range via firewall-cmd. So thanks!

@rhyssmith thanks for letting us know! It seems like quite some people have this issue so maybe i consider adding this to the README

@rhyssmith thanks for letting us know! It seems like quite some people have this issue so maybe i consider adding this to the README

@infvmm @merdok Yep, this was the issue at my end too - all working fine now.  Thanks so much for troubleshooting!
For anyone reading with a similar issue, my confit ended up as follows:
...
"bridge": {
        "name": "Homebridge",
        "username": "0E:94:8E:57:36:7A",
        "pin": "176-67-900",
        "port": 51283
    },
    "ports": {
        "start": 52100,
        "end": 52150,
        "comment": "This section is used to control the range of ports that separate accessory (like camera or television) should be bind to."
    },
...

@infvmm @merdok Yep, this was the issue at my end too - all working fine now.  Thanks so much for troubleshooting!
For anyone reading with a similar issue, my confit ended up as follows:
...
"bridge": {
        "name": "Homebridge",
        "username": "0E:94:8E:57:36:7A",
        "pin": "176-67-900",
        "port": 51283
    },
    "ports": {
        "start": 52100,
        "end": 52150,
        "comment": "This section is used to control the range of ports that separate accessory (like camera or television) should be bind to."
    },
...

Perfect! Thanks for the info!

Perfect! Thanks for the info!

I'm here because I have the same problem. Adding the ports to the config doesn't work. At first I thought its because I run Homebridge in docker but even when I install it on my Mac without docker its just not working.
I use Homebridge with other stuff successfully so I don't know what's the problem. Controlling the tv through the Homebridge web interface works as well. Any ideas?

I'm here because I have the same problem. Adding the ports to the config doesn't work. At first I thought its because I run Homebridge in docker but even when I install it on my Mac without docker its just not working.
I use Homebridge with other stuff successfully so I don't know what's the problem. Controlling the tv through the Homebridge web interface works as well. Any ideas?

@vordenken you can check this issue and see if that fixes it for you https://github.com/merdok/homebridge-webos-tv/issues/340

@vordenken you can check this issue and see if that fixes it for you https://github.com/merdok/homebridge-webos-tv/issues/340

Thanks for your reply @merdok . Unfortunately this does not fix my problem.
Because I am running Homebridge in docker without Avahi, I thought maybe my setup is the problem but I just spun up the official Homebridge raspbian image and tested it: same problem.

Thanks for your reply @merdok . Unfortunately this does not fix my problem.
Because I am running Homebridge in docker without Avahi, I thought maybe my setup is the problem but I just spun up the official Homebridge raspbian image and tested it: same problem.

Then in your case I suspect a network issue. You probably have some firewall issues or your docket container has no access to the same network as your tv.

Then in your case I suspect a network issue. You probably have some firewall issues or your docket container has no access to the same network as your tv.

I don't have a firewall and its the same problem without docker and the official Homebridge version. Also I can use the Homebridge hue add-on without a problem so it kinda is related to this plugin? Does it work differently than the hue one?
I'm out of ideas...

I don't have a firewall and its the same problem without docker and the official Homebridge version. Also I can use the Homebridge hue add-on without a problem so it kinda is related to this plugin? Does it work differently than the hue one?
I'm out of ideas...

With the firewall this i just a wild guess, it can be anything in your local environment
TV devices are external HomeKit accessories so they work slightly different then other plugins.

With the firewall this i just a wild guess, it can be anything in your local environment
TV devices are external HomeKit accessories so they work slightly different then other plugins.

I had the same connection problem: I just couldn't get past the PIN verification. For me it was due to the firewall.
I have Homebridge installed on a RaspberryPi. First thing I did was to configure a fixed range of ports (I used 52000-52999). Next, I opened that port range on the Pi with sudo ufw allow 52000:52999/tcp. That solved the connection problem. Everything's working fine now.
Thanks for this plugin!

I had the same connection problem: I just couldn't get past the PIN verification. For me it was due to the firewall.
I have Homebridge installed on a RaspberryPi. First thing I did was to configure a fixed range of ports (I used 52000-52999). Next, I opened that port range on the Pi with sudo ufw allow 52000:52999/tcp. That solved the connection problem. Everything's working fine now.
Thanks for this plugin!

Ok so I think I found the problem. First of all, this is completely my fault. Instead of trying to add the TV to the Home-app like you describe it in the readme, I only ever scanned the qr-code from homebridge-config-ui.

Because there are apparently quite a lot of people here with the issue, maybe you should make this more obvious in the readme.
Thanks for your help & thanks for this awesome plugin! Cheers

Ok so I think I found the problem. First of all, this is completely my fault. Instead of trying to add the TV to the Home-app like you describe it in the readme, I only ever scanned the qr-code from homebridge-config-ui.

Because there are apparently quite a lot of people here with the issue, maybe you should make this more obvious in the readme.
Thanks for your help & thanks for this awesome plugin! Cheers

Good to hear it is fixed! The first thing which i usually do in that kind of issues is point to the README ;)

Good to hear it is fixed! The first thing which i usually do in that kind of issues is point to the README ;)


[BUG] Chinese character problem, can't show right

Some Chinese characters cannot be displayed properly in the game. So far I've found two characters:
·
×
The first character is used in the character's name. (like  马丁·路德·金  Martin Luther King)
The second character, MM, is often used in games to represent bullets.(7.62×51mm)
Of course, At present, the character display is abnormal, so I used another symbol to temporarily replace them.But I think this expression is not correct, and it affects the professionalism of translation.
And then, I mention it here.
By the way, I test the file with Game at now, this is the test result picture.

The actual display effect of the game, there are abnormal display.

2.Real game translation text, through the normal software can normally display symbols.

In this case, do I feel that the font file used by the game lacks corresponding character symbols?

Weird, they do work on my computer:

I did also notice that my menus seem to be in two different fonts for different letters so maybe it's loading system fonts?

Weird, they do work on my computer:

I did also notice that my menus seem to be in two different fonts for different letters so maybe it's loading system fonts?

Yes, Not all text display problems, such as dialog display is normal.
What is found is that the text displayed on the UI interface is not correct. Like the text of my screenshot, it's the description text of the soldier, the weapon. The problem starts a long time ago,
I wanted to mention it originally, but it was mentioned in the game update a few days ago, which fixed the Chinese symbol problem. So, I re-envoys, found that there is still a display problem.

I looked at the built-in fonts of RD, and the file sizes are relatively small (all hundreds of kilobytes). If it is a standard Chinese font library, the size will generally be a few M. So, I decided that the biggest xarialuni font is the international font library.
So I tried to view the xarialuni.ttf font, and the Windows system reported an error, indicating that the file could not be previewed. It means that this xarialuni font file is actually invalid on Chinese computers? That's why you think "so maybe it's loading system fonts"?
Then, I manually found a font file and replaced the xar file, and there was no change after entering the game. Because I don't know the source code, maybe what I've done is useless. Anyway, I hope it can help a little bit to troubleshoot the problem.

xarialuni.ttf

I don't recognize that name. arialuni would be MS Arial Unicode, but that isn't shipped with the game (we only have Neo Sans and some icon fonts)

I'm going to have to research how Source Engine loads fallback fonts.


Discrepancy with local weather

Challenge Show the Local Weather has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
It appears that there are conflicting problems with this challenge. In order to get the local location, https needs to be used. However, when the call to the localweatherapi is called it appears that another bug was submitted suggesting a workaround to not use https. I cannot get both the location and the weather call to work simultaneously.

@bcardozo thanks for reporting. This is a known issue in #8988 and #9079. I think #10341 fixes both issues. Take a look at the changes and discussion on those pages for some possible solutions. Happy coding!


TTFB is up to 8 seconds for a simple nextjs application

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[x] I have searched for duplicate or closed issues.
[X] I have removed any sensitive information from my code snippets and submission.

Amplify Hosting feature
Performance mode, SSR
Is your feature request related to a problem? Please describe:
TTFB takes up to 8 seconds for a rather small NextJS app. There's no clear way of reducing the time to get it

Describe how you'd like this feature to work
Provide the docs or official ways to make it right. You could also use some deeper facts like "it uses lambdas under the hood" so developers could figure out what's the easiest way of fixing it.
You could also include a paid option to keep the amplify 'warm'

hi @not-qwerty - sorry to hear this! Can you tell me the App ID?

@not-qwerty thanks for sharing the App ID. We are investigating into it and will keep you posted with our findings.

@Jay2113 any updates on this one?

We are actively working on improvements here

We have resolved this since.https://aws.amazon.com/blogs/mobile/cdn-caching-improvements-for-better-app-performance-with-aws-amplify-hosting/


Causes Gmail to hang and show blank tab

I'm using Google Chrome Version 41.0.2272.89 (64-bit) with MDH v2.11.4.
I have an existing e-mail thread in Gmail consisting of a few messages where I (as a sender) used MDH in previous mails. They show correctly formatted in the quoted reply.
Now, when I write a reply (using the floating editor or the normal window), then apply the MDH formatting, then click "Send", the button is pressed down, but then the tab hangs. It becomes unresponsive, then the whole tab becomes white, and I have to kill it. I cannot navigate anywhere else.
When I apply MDH formatting, then un-apply it using the button, the same problem occurs.
After a few minutes, when clicking the x on the (non-responsive) tab to close it, I get the prompt:

There is currently a request to the server pending. You may lose recent changes by navigating away.
Your draft has been modified.

Then, the tab shows normally again, with the draft saved, but the message is (probably) not sent. There are no JS console messages or anything. I can reproduce this every time I reply to that existing mail.
I checked whether I could send using plain-text, and indeed, I could. But then, viewing the sent messages again in Gmail showed this – apparently, one of my earlier trials got through after all:

Very weird, all this.

Weird/horrible. If you disable the "forgot-to-render" check in the MDH options, does it allow you to send?

Hm, that was never enabled. I enabled it now and I'll do some further tests this evening.

Enabling forgot-to-render can only make things worse, as it does additional processing when you attempt to send the email. I was hoping it would somehow be the cause of the problem.
I don't have any answers, but maybe I can provide some more info and think of more questions...
The <div title="MDH:...> you see at the bottom of the screenshot: That's where Markdown Here keeps the original Markdown, base64-encoded. There's one of those at the bottom of every message you MDH-render, and it's usually hidden. It's hard to tell from your screenshot, but... The reason you're seeing it is probably because the message has gotten too long for Gmail to display inline. Gmail only displays X(?) bytes inline in the conversation view, and then truncates the message and provides a link at the bottom that says "[Message clipped] View entire message". If the truncation happens to fall in the middle of that hidden raw-MD-div, then the styling that hides it bets messed up and you can see it.
I have tried two tests without being able to reproduce the problem:

I created a "conversation" (reply chain) of about 25 emails that are MDH-rendered. No problems.
I wrote a big long email that triggered the truncation inside the original-MD-div (by pasting the MDH README twice in a single email). Then I replied to it. No problems.

How many replies are in your conversation? How large-ish are your messages? Maybe I wasn't reproducing your environment sufficiently.
One other thing you can look at: In Chrome, Shift+Esc brings up the "task manager" (you can also get to it with the menu button --> More Tools --> Task manager). Sort by CPU or memory and see what's spiking. I'm not sure how much info there will be.
In the Chrome Dev Tools (console stuff) you could try profiling. Of course, if the whole thing crashes you might not get much. (I can't really guide you with this, since I don't really know how to use it.)
To make sure that it really is MDH causing the problem, you could disable the extension, reload the Gmail tab, and then try sending.
If you have a non-sensitive email chain that reproduces the problem you could forward it to me<EMAIL_ADDRESS>

I tried it on a new conversation and couldn't repro it. Then I tried replying to myself on the old thread and I couldn't repro it either.
I had ~20 messages, not too long, a few paragraphs maybe.
I'll close this for the time being and I'll write back if it occurs again.
Thanks for your efforts!

Cool, thanks.

huge necro-posting this (5 years almost),
but the huge base64 included 'hidden div' happens with inline images (at my side anyway). The original-markdown-div gets very huge and gmail truncates it in a bad way .. clicking 'show entire message' displays it normally.


Bundle size tool

:warning: Is your feature request related to a problem? Please describe
Developers often don't mind about Bundle size and it happens that they hit TransactionTooLargeException.
:bulb: Describe the solution you'd like
A Bundle size tool would be integrated in Sentinel as a mandatory tool.
In Sentinel threshold there should be a slider defining a limit of size that tool should observe, with maximum of 5112kB.
Clicking on Tool should open a list of observed Bundles from Intents and flag (red color, icon, ...) Intents that hit the previously set limit.
Additionaly, console logging should be optional alongside UI logging.
All logging is session (in memory) based.
:raising_hand: Do you want to develop this feature yourself?

[x] Yes
[ ] No

Implemented.


Propagate _ssh_mode.

#1218  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @rohinb2 and the rest of your teammates on  Graphite

Merge activity

Aug 30, 1:48 PM EDT: @rohinb2 started a stack merge that includes this pull request via Graphite.


KAFKA-9184 (port on 2.3): Redundant task creation and periodic rebalances after zombie Connect worker rejoins the group

Check connectivity with broker coordinator in intervals and stop tasks if coordinator is unreachable by setting assignmentSnapshot to null and resetting rebalance delay when there are no lost tasks. And, because we're now sometimes setting assignmentSnapshot to null and reading it from other methods and thread, made this member volatile and used local references to ensure consistent reads.
Adapted existing unit tests to verify additional debug calls, added more specific log messages to DistributedHerder, and added a new integration test that verifies the behavior when the brokers are stopped and restarted only after the workers lose their heartbeats with the broker coordinator.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@rhauch this PR ports https://github.com/apache/kafka/pull/7771 on top of 2.3 and its meant to be merged only on that branch. Please take a look when you get the chance. Cheers

I think the only notable changes besides what's getting ported from https://github.com/apache/kafka/pull/7771
is that now, generationId needs to guard against null with
return generation == null ? OffsetCommitRequest.DEFAULT_GENERATION_ID : generation.generationId; and that some test code had to be ported as well to make ConnectWorkerIntegrationTest#testRestartFailedTask in 2.3 as in more recent branches.


Create python-publish.yml

Codecov Report

Merging #8 (028bbf9) into feature/hatch-project (06456d4) will not change coverage.
The diff coverage is n/a.

@@                   Coverage Diff                   @@
##           feature/hatch-project        #8   +/-   ##
=======================================================
  Coverage                 100.00%   100.00%
=======================================================
  Files                          1         1
  Lines                         13        13
  Branches                       1         1
=======================================================
  Hits                          13        13

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Keyboard Issue: Integrating with WKWebview

I saw all the threads in #130 and I am still having troubles with the keyboard behavior on my app. I would really appreciate it if you could take a look at it (iOS).
Here's what's happening:
https://www.youtube.com/watch?v=McBuwu5Ef78
I forked Meteoric and modified ionKeyboard.js file. Basically, I removed all the scrolling behavior except for adding bottom: to keyboard-attached elements and scrolling to top whenever a keyboard appears. As you can see in the video, the behavior (scrolling down and up for the first 200ms) is not as desired although the final position of keyboard is okay.
Do you have an idea how I can resolve this issue? This is the last block for my app to be published and I would really like to think there is an answer. Thank you so much!
Also, one quick question. I disabled the dependency to ionicKeyboard. Why would the code inside ionKeyboard.js affect the keyboard behavior?

@nickw quick question: Does IonKeyboard.disableScroll() not work on WKWebkit??

Tl;dr: cordova.plugins.Keyboard.disableScroll(true); does not work. When the input field is at the bottom, the entire screen will be scrolled down. Is there anyway to prevent this from happening?

Hello @woniesong92, were you able to get this working?

I haven't tried yet. I'm wondering if the upgraded Cordova in Meteor 1.2 (meteor update --release<EMAIL_ADDRESS>will fix this?

I think the issue probably comes from the fact that you're using a not particularly regularly maintained meteor wrapper for the telerik plugin instead of regular cordova. I can't wait to be able to use WKWebviews for meteoric either, but there are probably a few wrinkles to be ironed out in both those repos. I even tried to write my own WKWebview wrapper, but got stuck at some authentication issues.... Good luck!


horizontal scrolling

Looks nice! Can you use it also for horizontal instead of vertical scrolling?

Unfortunately you cannot. It's a surprisingly rare feature request.

Actually it will be very usefull

I have to agree horizontal scroll would be useful.

+1 it would be super useful to carousel

Yes please!

I don't recommend but if you really want to have or need a quick-win solution (but dirty), clone the not minimized version of scrollMonitor.js (and call it scrollMonitorHoriz.js, e.g.) and apply the following changes to the code:

rename all "scrollMonitor" to "scrollMonitorHoriz"
apply the following replacements (case sensitive):

"top" => "left"
"Top" => "Left"
"bottom" => "right"
"Bottom" => "Right"
"height" => "width"
"Height" => "Width"

and this should make the trick but that new version will no longer support the vertical scrolling...

🤘 Nice hack.
I think there's a second place you'll need to edit if you want it to work in scroll containers too, but if it works keep doing it.

+1 It would be very helpful!