Interrupt mode?

Hello -- I've been trying to get this same screen to work in interrupt mode. Does your library work for that? You mentioned in the readme that other libraries use interrupt mode -- did you ever get anything from the interrupt pin?
Here's the code I am trying:
#include <Arduino.h>
#include <GT911.h>

GT911 ts = GT911();

void setup() {
  Serial.begin(115200);
  ts.begin(15,26);
}

void loop() {
  uint8_t touches = ts.touched(GT911_MODE_INTERRUPT);

  if (touches) {
    GTPoint* tp = ts.getPoints();
    for (uint8_t  i = 0; i < touches; i++) {
      Serial.printf("#%d  %d,%d s:%d\n", tp[i].trackId, tp[i].x, tp[i].y, tp[i].area);
    }
  }
}

This works fine in GT911_MODE_POLLING, but nothing happens in interrupt mode.
Reading through the docs/schematics, it seems like the GT911 INT line may only get to like 1.5V, and I'm wondering if that might have something to do with this conundrum. Thanks for any insight!

Update: it would appear that the GT911 chip can be configured two ways with respect to the INT output levels. If VDDIO is tied to 3.3v, then INT outputs ~2.8V (==HIGH). But if VDDIO is left floating then it only outputs ~1.5V (==LOW). My display module also runs the INT signal through a level shifter, but AFAICT that shifter is expecting a real 3.3V-level HIGH and if it's not getting one then the output pin of my display module ends up as "LOW" all the time, not even a 1.5V that I could possible work with.
Long story short, if you got interrupt mode to work, please let me know, but I think these issues could be unique to my display module.


How are block times / confirmations impacted by this?

Between PoS, the sharding, beacons, etc... can we model block time estimates in the notes?
Is the main chain a throttle point for block times, too? I don't think it is, because you lock value from the main chain to the beacon, but it's not 100% confirmed from my reading. There is a main_chain_ref so it could be, not sure. Halp?

The main chain and beacon chain can proceed at independent block times.
A discussion of beacon and shard block times would be better had a http://ethresear.ch


increase test coverage

if you do $ nosetests tests/test_pyglmnet.py --with-coverage
you see this:
pyglmnet/pyglmnet.py                               179    122    32%

we should aim to increase this to above 80% which is what most good libraries have.

@jasmainak I increased the tolerance for density in the test to 0.05 and fixed the dict() issue. Now with:
$nosetests tests/test_pyglmnet.py --with-coverage

I get:
pyglmnet/pyglmnet.py                                     179     57    68%

okay cool. I made a PR for continuous integration so that we can keep monitoring the coverage on every PR

Latest run of nosetests:
Test glmnet. ... ok
Gradient of intercept params is different ... ok

Name                   Stmts   Miss  Cover   Missing
----------------------------------------------------
pyglmnet.py                1      0   100%
pyglmnet/pyglmnet.py     179     51    72%   21, 30, 120-130, 149-153, 176-177, 182-183, 218-220, 224, 296-297, 301-326, 330-347, 354, 356
----------------------------------------------------
TOTAL                    180     51    72%
----------------------------------------------------------------------
Ran 2 tests in 0.782s

OK

Testing is good for now. Let me close this

Sounds good
On Thursday, 5 May 2016, pavanramkumar<EMAIL_ADDRESS>wrote:

Closed #36 https://github.com/pavanramkumar/pyglmnet/issues/36.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/pavanramkumar/pyglmnet/issues/36#event-651618820


Add openai-secure-ui-js

Please fill out this template! There are three different types of contributions, feel free to delete the checklists that are not applicable to your contribution type.
If you are submitting a new azd template to the gallery
Fill this out if you want your template to be added to the awesome-azd gallery!
Your template repository
Place your template repository link here:

[x] Added an entry to https://github.com/Azure/awesome-azd/blob/main/website/src/data/users.tsx that includes:

[x] Template title - A short title that reflects the local application stack that someone could use to get their application on Azure (e.g. "Containerized React Web App with Java API and MongoDB")

[x] Description - 1-2 sentence description of the architecture (e.g. Azure services) or solution that is defined by the template.

[x] Architecture Diagram or Application Screenshot - The image should include all services and their connections (example). You should add the image to the website/src/data/images/.

[x] Link to Author's GitHub or other relevant website - Used for attribution

[x] Author's Name -  Name to credit on the gallery card

[x] Link to template source - Link to the template GitHub repo

[x] Tags - Specify tags to represent the template. If you don't see a relevant tag for your template? Feel free to add one!
Required tags:

[x] Tag your template as Micrsoft-authored ("msft") or Community-authored ("community")
[x] Tag the IaC provider ("bicep" or "terraform")
[x] At least 1 tag for programming language used
[x] At least 1 tag for Azure services integrated
[x] Add the "new" tag for any newly authored templates

[ ] In the PR comment, if you can also add a link to the PR where you made your repo azd compatible this will allow us to provide feedback on your template and speed up the review process.

[x] If the template is Microsoft-authored, we encourage you to also publish it to learn.microsoft.com/samples.

If you are submitting a resource to be added to the awesome-azd README:

[ ] Name of resource
[ ] Resource author - who created this resource? (so we can credit them!)
[ ] What section should this resource be included in? -Is the resource an article? A video? Something else?

@v-xuto Could you test this template please?

Sure. Testing.

@hemarina, @justinyoo We have finished this template test, and we filed three issues. Please review.

https://github.com/Azure-Samples/openai-secure-ui-js/issues/2
https://github.com/Azure-Samples/openai-secure-ui-js/issues/3
https://github.com/Azure-Samples/openai-secure-ui-js/issues/4


Upgrade diskpart to v1.0.2

This version adds debugging information, and allows us to provide a
better error message for when we fail to clean the drive after X
attempts.
Signed-off-by: Juan Cruz Viotti<EMAIL_ADDRESS>

Could there be unit-tests for this new error message?

Done!


SpecialOracleTest currently creates a lot of noise

During Build/Testing some Oracle related tests are executed and are expected/accepted to fail. For example
May 20, 2021 6:22:12 AM net.sf.jsqlparser.statement.select.SpecialOracleTest testAllSqlsParseDeparse
INFO: testing for_update07.sql
net.sf.jsqlparser.JSQLParserException: Encountered unexpected token: "," ","
    at line 11, column 19.

Was expecting one of:

    ";"
    "FOR"
    "NOWAIT"
    "ORDER"
    <EOF>

Would it not be better to quieten or deactivate these tests, until we have time to look into these?

I want to keep it there as a reminder. :)

Am I not good enough? :))
Ok, no big deal. But please allow me to re-arrange the failing
statements into a sepatate Test like
"OutstandingOracleComplianceTest.java" which will fail completely
(until we will have solved it).
On Tue, 2021-05-25 at 15:56 -0700, Tobias wrote:

I want to keep it there as a reminder. :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Maybe we should simply log at fine level and make an external logging.properties.


UnboundLocalError in detect_scenes when frame_skip is larger than 0.

Bug/Issue Description:
"UnboundLocalError: local variable 'read_frame' referenced before assignment" when running scene_manager.detect_scenes(frame_source=video_manager, frame_skip=1)
Required Information:
We hit this error when frame_skip is larger than 0.
Expected Behavior:
It works when we assign frame_skip.
Computing Environment:

OS: [e.g. Windows, Linux (Distro: Ubuntu, Mint, Fedora, etc...), OSX]
Python Version: [e.g. 3.6 or 3.6.6]
OpenCV Version: [e.g. 3.4.1]

Additional Information:

Thank you for your issue report and pull request!
This will be included in the next release of PySceneDetect, thank you so much.


Initial Release

Initial releasable code including base functionality along with CI checks and other dev tooling.

Addresses #1


Migrate data from billtitileindex project to billtitles-py

Once data migrated - uncomment ForeignKeys in models and make migration.


Process multiple cells in one iteration, add padding to database sequences, optimize for cache

This method is explained in Rognes's article, under "Processing four consecutive cells along the database sequences". They claim that by processing multiple cells they have better usage of SSE registers and caching.
Another thing is adding padding to database sequences so they always have the length that is mutliple of 4. That way I can check every 4 columns if some sequence ended instead of doing it every column, which could make things faster.

First, I am going to pad database sequences so they have length that is multiple of 4, and I am going to do it for SW. When I have this, I will be able to do householding jobs (checking for overflow and sequence end) every 4 columns instead of every column, and I hope to get some speedup on that.
Later, I can try processing 4 cells in a row at once, for extra speedup.

While doing this, I did some learning about cache optimizations, so I also did some work on that. I also fixed few things that I found were not optimal. All together:

I aligned all arrays accessed by SIMD instructions, and aligned them correctly
I joined prevHs and prevEs into one structure
I moved declaration of query profile outside of inner loop
I simplified tracking of lengths of sequences
Although I was hoping that this stuff will help, I did not get any improvement. However, I left the changes, since they seem right.
I did some profiling on cache misses using cachegrind, and I get 0% misses for small query sequences, and about 8% for larger query sequences (size of database does not matter).

I also did some measurements of code speed using very primitive method: when I want to see how slow is some part of code, I duplicate it and see for how longer does program execute now: that is how much time this piece of code normally takes. I have to do this carefully, because duplicated code must not change results of execution (because it might affect execution time then) and it also can not be trivial because compiler may optimize it out.
Based by those measurements, core loop takes about 70% of execution time, and building query profile takes about 25% of execution time! This is good to know, because I was not sure how much time does query profile building take.
TLDR:
Core loop: 70% of time
Query profile building: 25% of time


Pokemons ran away

Hello, only I have problem, that all pokemons ran away? (I can see this in Journal in app)

Are you still able to collect items from pokestops?
maybe its a temporary ban.

Yeah, Its looks that I got ban soft-ban for 1h (I have been using -s). Now ban expired and again after 5 pokestops on -s cant use it anymore and all pokemons ran away.

hmm. maybe adding a delay after collecting from a stop will help with that?

Yeah, I guess there is a delay in PokeGo, something like "You can use max 5 pokestops in 30s", if you use more you getting ban.

i just downloaded the latest version and its not catching anything even without -s
checked and not soft banned.
can you stil catch pokemon without -s?

If all pokemons ran away (even without bot) and spining pokestops doesnt give you items, you are soft-banned.

yeah but i do get items from pokestops

@lmbos If you have still any issues please open a new one. However it really seems like you are softbanned.


Hey I am have added sender id in app and server key  in admin.Still not getting chat offline notifications

@jaysun2006 could you please check for push notifications - did you implement it according to the guide?
https://developers.connectycube.com/reactnative/push-notifications

Since there is no activity I’m going to close the issue. Please raise a separate issue in case of any other questions.


ensure generation of $id as schema option in resulting typebox code

Summary
Based on issue #32 . This ensures that the generated typebox code will always contain an $id property.
Additional test cases for checking the schemaOptions were added
TODO:

wait for response/feedback of @tet-lenovo
adapt release, bump to 1.7.0
create a changelog file (just have it manually in the repo, and add the change from 1.6 -> 1.7 as 'ensure generation of $id as schema option in resulting typebox code'.

Perhaps check some auto generated changelog stuff, but don't put to much time into it.

Hey @tet-lenovo,
can you check if this branch fullfills your requirements?
Also (admittedly, this is a little late :D ). But I would want to know why this feature should be added. Honest question, what is the difference between using X and Y here?

import { Static, Type } from "@sinclair/typebox";

export type T = Static<typeof T>;
export const T = Type.Object({ a: Type.Number() }, { $id: "T" });

export const X = Type.Object({ a: Type.Ref(T) });
export const Y = Type.Object({ a: T });

@xddq to answer the embarrassing question first, other than my apparent lack of knowledge, either X or Y would work for my situation.  Otherwise, the code does seem to work.

@tet-lenovo Hey!
Any update on this?

Sorry for the delay with this.  With the holiday, I haven't been around much the last couple of weeks.  Our main use case for this is that we use the generated schemas with AJV for request/response validation.  When you register a schema with AJV, you either provide an ID or it will use the $id defined with the schema.  So we don't have to maintain another ID, we use the $id generated with the schema.

@xddq Any idea when you plan to merge this code?

@tet-lenovo hey! Sorry, I did forget about it. Will probably have a look at merging (and publishing a new release) on thursday.


When building w/ Composer/Docker: Unable to find image 'spiralscout/rr-build:latest' locally

I installed spiral/roadrunner in a new PHP project using Composer, then tried to run vendor/bin/rr-build in my project directory per the Quick Builds instructions in the documentation:
https://roadrunner.dev/docs/intro-quick-builds
I should note that I am logged into Docker Hub registry when running command.
Here's what I receive:
Unable to find image 'spiralscout/rr-build:latest' locally
docker: Error response from daemon: pull access denied for spiralscout/rr-build, repository does not exist or may require 'docker login'.

I was able to successfully build the binary using the make command and my local Go environment.

Can you try now? Docker privacy settings were broken. :(

Thanks, that fixed it. Successfully built just now.


add documents on codacy and readthedocs

add documents on how to integrate with codacy and readthedocs

create a wiki, put the link here and close this one.

add the links and close.

We should keep our documentation all in one place, so I disabled the Wiki function on GitHub. The links are already in the documentation.


Change json keys to single letters and use ints for levels and quality.

Save the bytes!

Added in 0.9


How to implement "drag and drop" like in mobile?

Hey, any ideas on how to implement this?

I just found https://vaul.emilkowal.ski/default, but I still think react-resizable-panels is better for what I want, thanks.

Not sure I understand. This library supports touch devices (in that the resize handles can be moved via touch events). General purpose drag-and--drop functionality is not the purpose of this library though.


Autoselect first result

Allow auto-selecting the first result upon blur-ring

Hi, is this good to merge? I'm looking for this feature

@vuon0029 I've long since moved from the project that was using it, i will close this PR as I have no time to test it.


pull out shared code for storing alerts

Both the inhibitor and provider/mem packages were doing pretty much the same thing for managing holding alerts in memory, so I decided to see how it would look if this were its own package. It ends up being pretty simple, just a few methods for interacting with the interface.
Is this necessary? I don't know, it only appeared twice. I think it separates two different parts of the code and makes it a bit easier to reason about. Opinions?

@mxinden I think this is ready for another review

ahh, I remember reading this bit:
so, as a rule, we should be defining them at callsites in consuming code, rather than in the packages that provide implementations.

No worries, will remove the interface.

Updated -- thanks for the reviews! hopefully this passes and we can get it merged

@stuartnelson3 you have a conflict

Will let the tests run and then merge, thanks for your patience on the long-running PR!

@mxinden are you cool with "squash and merge" for merging to master? creates the single commit in master, but maintains the history in the PR

@stuartnelson3 yes, sounds perfect. I am sorry for being a bit annoying in this regard. Just makes preparing the CHANGELOG.md a lot easier.

No worries, I totally agree. I've been always selecting "squash and merge", instead of "merge" or "rebase and merge". It sounds like we both prefer that, so any especially long PRs (like this one) shouldn't muddy the main history.


[1.3] Reduce Sprintf usage from route logic

Warning -- this is NOT merged in master. Everyone that can merge it is not around
Cherrypick of https://github.com/istio/istio/pull/16900
This is a low risk change for ~20% CPU reduction

@howardjohn: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-racetest-release-1.3
17a4927edfad909fd5a9f34222e0c7c7916cdd3b
link
/test istio-racetest-release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest


nodejs server using expressjs not run another api when use cotejs

i use cotejs to create 1 microserevice to readfile xslx, when it run, but when cote responder readfile, another api have to waiting for readfile done. what i can do to for responder readfile and in time i cant use another api.

Are you using fs.readFile or are you using fs.readFileSync? Please share an example piece of code.

my requester use cotejs

my funtion importexcel use to return pathfile

my responder to readfile to pathfile

my problem is when i run this api

i can't run other api, i hope it cant be run api  /employee/import , Excel reading can run in the background and i can run other api in that time

As far as I can see, readFile is an async function, but you're only calling it non-blocking in employeeResponder.on('importexcell'.... Try await readFile(req.pathFile).


Integration with Tautulli

Is your feature request related to a problem? Please describe.
When running a rule on a large library there is a material impact on the performance of Plex. The reason for this is not completely clear as maintainerr is on machine A and Plex is on machine B. Perhaps it's a lot of Plex API calls? Plex is installed on a relatively low power machine,  but when a maintainerr scan is active, it coincides with reports from users that Plex is performing poorly. In the Plex CPU dashboard the usage is often 100% when maintainerr runs.
Describe the solution you'd like
I'd like to have the option to pull Plex data from Tautulli so there's as little interaction between Plex and maintainerr as possible to improve Plex performance.
Describe alternatives you've considered
An alternative would be to add cron settings so maintainerr can be run during low usage periods.

Depending on your rules and library, there’ll be a lot of API calls. It has to do this to fetch the information needed for rule execution.
There’s definitely room for improvement there though.
Until then, it’s actually possible to configure the schedule with cron rules. I implemented this on the backend but never got around to the UI side.
However, you can load the sqlite db file in a sqlite editor and navigate to the settings table. There should be 1 value with 2 cron values for collection & rule handling. You could update these values with the cron schedule you like.

I finished the UI of the jobs settings screen in https://github.com/jorenn92/Maintainerr/pull/604, it’ll be available in the upcoming release

Also, significant enhancements were made to the caching mechanism in https://github.com/jorenn92/Maintainerr/commit/478da57a9f6d828e34b9f2a5fcf527a61df09529. With these improvements, the rule execution process will efficiently utilize Plex responses by reusing them when identical data is required.

Would also like an integration with Tautulli, to give another usecase is that I've just had to setup a new plex server and even though i followed the plex guide to migrate watch state it appears that this doesn't copy info to the same place that the Plex API reads from.
Because my rules all contain "Times Viewed" I now have almost everything flagging to be removed.
If we had the option to integrate with Tautulli I could use "Times Viewed" from there instead.
Really appreciate your work on this tool!

Would also like an integration with Tautulli, to give another usecase is that I've just had to setup a new plex server and even though i followed the plex guide to migrate watch state it appears that this doesn't copy info to the same place that the Plex API reads from.
Because my rules all contain "Times Viewed" I now have almost everything flagging to be removed. If we had the option to integrate with Tautulli I could use "Times Viewed" from there instead.
Really appreciate your work on this tool!

Integration with Tautulli will be added soon. I've come across some compelling use cases in the past few months. While it will not be included in the next release, it shouldn't be too far off either.


Password reset

Subject: Password reset
Description:
Hi. I forgot my password and can not reset it.
Results:
Backend version: develop-39e7fd2c
Frontend version: develop-39e7fd2c
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 OPR/82.0.4227.43
Page: https://app.couchers.org/
User: maximax (2121)

Dupe of #2369


Document that nested Run Keyword If with ELSE/ELSE IF is not supported

Hi,
I've been tried to find an information if syntax like:
Run Keyword If  (condition_1)
            Run Keyword If  (condition_2) (new_keyword_1) ELSE (else_keyword_1)
ELSE
             (else_keyword_2)

is supported. So far I only I've found only an information on stackoverflow https://stackoverflow.com/questions/34590001/robot-framework-nested-if-statement  saying "strickly speaking, no".
What I observed is that RF:
a) do not inform that syntax is not supported
b) ELSE for (condition_2) is used for both (condition_1) and (condition_2)
If the syntax is not supported than I think an error message should be printed or keyword should failed.

Nested Run Keyword If usage is not supported. It would be hard to parse such syntax and know which ELSE or ELSE IF belongs to which keyword. Also, I don't see much usages for such functionality when you can have ELSE IF branches. If such structure is needed, a workaround is using the nested Run Keyword If in a keyword used by the top-level Run Keyword If.
I don't think it is worth the effort to try detecting possible nested Run Keyword If usage and make it an error. It would even be a backwards-incompatible change preventing passing Run Keyword If sting as an argument. We could easily document that nested used is not supported in Run Keyword If documentation.

@pekkaklarck Thanks Pekka, this is kind of the answer, which I expected.


feat: examples of full stack ink! application using pop-api

Create our own version of https://github.com/scio-labs/use-inkathon, maybe locates it in the examples or in a separate repository pop-api-examples
Would be great to have some thoughts from @brunopgalvao

Or use inkathon?

A few other boilerplates we can use for this:

Dedot + Contract Metadata: https://github.com/dedotdev/typink-app (this is more up-to-date with contract metadata supported)
ink!athon: https://inkathon.xyz/

This initiative would definitely show off the Pop API a bit more.
Also, PBA is attempting to re-vamp its curriculum to teach decentralized application development. They are looking for an example dApp that they can point to as best practices for dApp development. Therefore, if we could have a de facto standard for how to build a dApp for ink! contracts (with Pop API), and what should be the key decentralized components e.g. storage, business logic, etc, then we could use this at PBA as the holy-grail for dApp development as well as use it for teaching Pop products.
That being said, we already have quite a bit on our plate. Whatever we pick, there should be a low maintenance overhead.

Crafted a simple version for this here: https://github.com/chungquantin/pop-frontend-template
cc: @Daanvdplas @brunopgalvao


RFC of the solution for issue#8

This is my initial solution, needs the tests and such, but I wanted to get your opinion on it before going further in this path.
Should fix #8

Since only some arguments are supposed to be passed to sub-make, we might want a helper method on Args to compile an argument string from those options which should be passed to sub-make.

Since only some arguments are supposed to be passed to sub-make, we might want a helper method on Args to compile an argument string from those options which should be passed to sub-make.

Yeah, I think it's a good way to do it, I will implement  the function.

I have moved the submake arg str generation to arg.rs

I didn't get notified about your reviews, github...

Some, I believe unrelated tests, have started failing I will make sure they are not related tomorrow.

Let me know if you want help getting this branch up to date with master; I am happy to merge master in and resolve conflicts. If you do want help, just let me know when you're at a good stopping point.

Let me know if you want help getting this branch up to date with master; I am happy to merge master in and resolve conflicts. If you do want help, just let me know when you're at a good stopping point.

I think I'm at a good stopping point, might want to get them merged before I work on the last point (the args one), maybe merge this and I open up another pr with the final improvement on that one?

Sounds good; I'll merge master into this, fix tests, and get it merged and we can continue work on this is another branch.


[CVE] Pywin32 version used is unsafe

We need to update the pywin32 version since it has a vulnerability. @tnt-manu is it a direct dependency or where is it coming from in the first place? Can we simply upgrade it?

upgrading yields in errors for me. Used by:
ConcurrentRotatingFileHandler
Depends on portalocker package, which (on Windows only) depends on PyWin32
https://pypi.org/project/concurrent-log-handler/

How does chia resolve this? They should have this vulnerability too.


ValueError: 2 is not a valid EcoNaviMode

I’m unable to set ECONAVI from HA. When I set it, after a few seconds it reverts back to off. The value of 2 seems to come from when I set it in the app. I am on the very latest version of both.

This error originated from a custom integration.

Logger: custom_components.panasonic_cc.pcomfortcloud.panasonicdevice
Source: custom_components/panasonic_cc/pcomfortcloud/panasonicdevice.py:12
integration: Panasonic Comfort Cloud (documentation, issues)
First occurred: 08:47:27 (1 occurrences)
Last logged: 08:47:27

Error reading property 'ecoNavi' with value '2'
Traceback (most recent call last):
  File "/config/custom_components/panasonic_cc/pcomfortcloud/panasonicdevice.py", line 12, in read_enum
    return type(json[key])
           ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/enum.py", line 757, in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/enum.py", line 1171, in __new__
    raise ve_exc
ValueError: 2 is not a valid EcoNaviMode

Hmm, is EcoNavi a simple toggle switch in the app or does it have some sort of mode select?
Or is 0 N/A, 1 Off and 2 On
I don't have it on my device

Yes, it’s Unavailable, Off & On.


Feature user UI

Is this still current?

Is this still current?

For the commits yes. But I've merged this branch with another new branch for which I'll create a new pull request soon, therefore I close this one


Viewport on iPhone/iPad

Describe the bug
Chainlit has incorrect viewport settings resulting the textbox sitting below the fold of the page instead of at the bottom.
To Reproduce
Open default Chainlit app in Safari on iPhone or iPad.
Expected behavior
Text box should sit at bottom of screen.
Screenshots
See screenshot.

Desktop (please complete the following information):

OS: iOS
Browser safari
Version latest

Additional context
Add any other context about the problem here.

This custom css for Chainlit seems fixed it:
/* Ensure full height usage and prevent overflow */
html, body, #root {
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
/* Use flexbox for layout */
#root {
display: flex;
flex-direction: column;
}
/* Main content area /
main {
flex: 1;
overflow-y: auto;
min-height: calc(100vh - 6rem); / Fallback */
}
/* Use svh units if supported */
@supports (height: 100svh) {
main {
min-height: calc(100svh - 6rem);
}
}
/* Ensure header and footer don't shrink */
header, footer, .input-area {
flex-shrink: 0;
}


Check UIDs instead of auth tokens

Fix for issue https://github.com/hassox/phoenix_guardian/issues/12

will take a look at the build error


[Scope Change] Codeunit 12184 "Fattura Doc. Helper" Procedure CheckMandatoryFields

Please remove the scope OnPrem for procedure CheckMandatoryFields in Codeunit 12184

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Gracefully stop yarn container

An enough graceful timeout(65s) for yarn container exit

Coverage remained the same at 52.932% when pulling 722f9a4c700f729df611e91aee57bfc50adf0eba on zimiao/graceful_stop into 48a5bad172a82e9f7b006c27a3185375988d8f2b on master.


Gradle log test

Codecov Report

Merging #70 (3c7eea3) into master (8db3906) will decrease coverage by 0.97%.
The diff coverage is 60.66%.

@@             Coverage Diff              @@
##             master      #70      +/-   ##
============================================
- Coverage     71.95%   70.97%   -0.98%
- Complexity      535      543       +8
============================================
  Files            84       86       +2
  Lines          1558     1633      +75
  Branches        175      182       +7
============================================
+ Hits           1121     1159      +38
- Misses          381      412      +31
- Partials         56       62       +6

Impacted Files
Coverage Δ

...main/java/seedu/address/commons/core/Messages.java
0.00% <ø> (ø)

...java/seedu/address/logic/commands/FindCommand.java
100.00% <ø> (ø)

...eedu/address/logic/commands/StartOrderCommand.java
66.66% <ø> (ø)

.../address/logic/parser/AddToOrderCommandParser.java
0.00% <0.00%> (ø)

...ess/logic/parser/RemoveFromOrderCommandParser.java
0.00% <0.00%> (ø)

src/main/java/seedu/address/model/Inventory.java
90.47% <ø> (ø)

src/main/java/seedu/address/model/Model.java
100.00% <ø> (ø)

src/main/java/seedu/address/model/order/Order.java
84.00% <ø> (ø)

...u/address/model/order/TransactionIdComparator.java
0.00% <0.00%> (ø)

...address/model/order/TransactionTimeComparator.java
0.00% <0.00%> (ø)

... and 19 more

Continue to review full report at Codecov.

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


[modify] gws/monitor refactoring

Coverage increased (+0.3%) to 80.084% when pulling a5f177f29431707079599da35395b0bcb9bbe2fc on sunny4381:features/gws-monitor-refactoring into 4e0db1b9684b103de842bb5ed65a1cfd82c9862b on shirasagi:master.


Set checkout version label

Codecov Report

Merging #337 (1c4dc0a) into main (dde2caa) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #337   +/-   ##
=======================================
  Coverage   97.07%   97.07%
=======================================
  Files           9        9
  Lines         923      923
=======================================
  Hits          896      896
  Misses         27       27

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


SHARE_EASYLOGGINGPP is causing link errors

Hi,
When I try using SHARE_EASYLOGGINGPP instead of the INITIALIZE_NULL_EASYLOGGINGPP + setStorage combination in the DLLSample, I obtain the following link error (compiling on VS2012):
error LNK2001: unresolved external symbol "class std::basic_string<char,struct std::char_traits,class std::allocator > el::base::utils::s_currentUser"
error LNK2001: unresolved external symbol "class std::basic_string<char,struct std::char_traits,class std::allocator > el::base::utils::s_currentHost"
It seems related to the fact that SHARE_EASYLOGGINGPP does not call the macro ELPP_INITI_BASIC_DECLR, but I have not investigate any further.

Encountered the same issue, there was a possible fix posted here: https://github.com/easylogging/easyloggingpp/issues/386

I had this issue when using a library I wrote(which also used easylogging) which used a different version of easylogging than the executable using my library.
So, please ensure you're using the exact same easylogging header + source for both your dll and your exe.


[Astar] [AI Serpenators Collection] Add Support For NFT Collection

This issue is from Astar x ArtZero x SubWallet Campaign.
Please add support for AI Serpenators NFT Collection:
Contract Address: WCX5y1WsgPBxQqtn75jXNtHey9w4EZSEKCdjg2jX3gcA97D
Creator: WriGREuj8U1U8nVmv57H1Gr1DyZk6eimf3wx4NJndyFqRno
Ink NFT
Astar Network

Version test: https://file.cdmteck.com/s/4oimk9zDJ8R5Aai/download?path=%2F&files=./upgrade-ui-pr-1438-build-1.0.6-0-2023-05-25T12-16-59UTC.zip
@NamPhamc99 Re-check show image of this NFT.

Check with address: 5C8VumbGx4KoJCdAf5ptMz48wCFzv4dJbGkJ6fJap2wVS76t

Version test: https://file.cdmteck.com/s/4oimk9zDJ8R5Aai/download?path=%2F&files=./upgrade-ui-pr-1438-build-1.0.6-0-2023-05-26T09-12-47UTC.zip
Validation passed.


Title: Automated Email Sending Bot

Initiative (Required)
GSSoC 2024 Extd 🚀
Is your proposal related to a problem? Please describe.
People send numerous emails every day. This can become repetitive and tedious. I propose to create a bot that'll automate this process. Users should just maintain a csv file with name email and other important details along with the set mail template. The bot will automatically send the required emails.
Possible use cases:

Job application emails
Customer review emails
Community based emails
newsletters

Future scope (will work on this after initial PR is approved and accepted):
Using LLM and LangChain to automate email creation and integrating it with the earlier bot making the whole process totally automated.
I will like to work on this project under GSSoCextd and Hactoberfest.
Add any other context or screenshots about the proposal request here.
No response

I am the mentor of this project.
Hello @decodingafterlife
I appreciate your pull issue !
@Kushal997-das  kindly assign this issue !!!

@SakiraAli1115 thank you! I'll start working. This project will be under Artificial intelligence right?

I am almost done with the code, will work on the readme file and pull a request. Can the hacktoberfest label be also added @Kushal997-das ?


Getting client instance

I'm using stanza.io to create a ionic app i was wondering is there anyway i can get an instance of the client when its already established
im trying something like this
login: function (user) {
            var config = {
                jid: user.username +<EMAIL_ADDRESS>                password: user.password,
                transport: 'websocket',
                wsURL: 'wss://myserver.com/xmpps-websocket',
                useStreamManagement: true
            };

            SharedProperties.sharedData.client = XMPP.createClient(succ);

SharedProperties.sharedData.client.connect()
                    }

getContacts: function(){
var client = SharedProperties.sharedData.client;
client.getRoster(function(err,success){
if(success != null){
console.log(success)
}else{
console.log(error)
}
})
}
and after i login and try to run the get contacts function nothing runs or do i have to run the client.connect() function from the getContacts

ok i did some testing and i figured it out :smile:

Hey... I am also looking for the same thing but no luck so far. i would really appreciate I you can share with me the approach to do the same..
Thanks..

@triniwiz how did you resolve this?


[Hacktoberfest]: Update Content for Web Directions Summit

🆕🐥☝ Beginners Only:
This issue is reserved for people who are new to Open Source. We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you 💝
To do:
The README for this project has some repeat/placeholder comments. If you look at the look at the Readme you will see resources, articles, webpages, videos etc that have the same generic comment to describe them. We'd like the specific information to replace those placeholder texts
📋 Step by Step
Step by Step
🙋 Claim this issue by commenting on it.

Create a New Branch How to branch, Commit, Pull, Merge - start at step2
Make your change - I use Github Desktop and Visual Studio Code so I don't have to do anything via the command-line, but if you like the command-line git on with it ;-)
The change I suggest is go to the Conferences Table, starts around line 164. Edit the Web Directions Summit line so that it reads:

| [Web Directions Summits](https://www.webdirections.org/) | Web Directions | 10 | A conference for the whole team |

Commit it Make it a good one
Make a Pull Request Tell us what you did
We'll review it and merge it in
Add yourself as a Contributor to the bottom of the Readme.md using the same formatting as the others in the list

Remember to observe the Code of Conduct - by which we mean, in short - Be Kind, Be Positive, Be Helpful

I would like to work on this! It's my first time at hacktoberfest!

Go ahead and make your PR - tell me if you need any help :-)

@aortiz24 - here is an additional step-by-step tutorial in case you need it - just amend the content from this issue instead of the content change from the tutorial:
https://github.com/msandfor/10-Easy-Steps/blob/master/docs/GitHub-browser-tutorial.md

I have completed all my pull request!

closed PR #131  Congrats @aortiz24


Migrate from dep to new go modules support in go 1.11.x

Some documentation on go modules is found here [1].
The following is done:

executed go mod init to migrate from dep's Gopkg.[lock, toml]
removed the vendor directory except for the code-generators which
are required for the build
removed dep management from the Makefile
removed dep cehck from travis

This is similar to the work done on this [1] vpp-agent PR.
[1] https://github.com/golang/go/wiki/Modules
[2] https://github.com/ligato/vpp-agent/pull/840
Signed-off-by: Kyle Mestery<EMAIL_ADDRESS>

Thanks for the tip on how to do this @ondrej-fabry, I've converted crd-example over to this now. It works quite slick!

I'd not suggest getting rid of support for go 1.10 just yet. Also note that getting rid of vendor makes Travis builds longer and there is rare possibility of some dependency to not be available at certain point in time.
However, there is a way to satisfy both, at least for the time being until the situation around modules settles a little more, perhaps go 1.12. I recommend you to read this article that nicely explains how to do this: https://arslan.io/2018/08/26/using-go-modules-with-vendor-support-on-travis-ci/

@ondrej-fabry That's a good pointer, thanks! Note that go mod vendor removes the code-generators, which is what I'm trying to sort out now. We have no direct dependency on those in the code, but we call them to update CRD objects. Trying to figure out how to get those to remain and I think I can make this work with go v1.10.x and go v1.11.x.

It seems recommended approach to vendor tools is to create tools.go file with // +build tools build constraint and list them as blank imports. This will force go mod vendor to vendor even those dependencies, but exclude from normal build.
https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module


fix(deps): update dependency tv4 to v1.3.0

This PR contains the following updates:

Package
Type
Update
Change

tv4
dependencies
minor
1.2.7 -> 1.3.0

Release Notes

geraintluff/tv4
v1.3.0
Compare Source

Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

Available now for Enterprise: Renovate Pro with real-time webhook handling and priority job queue.

funny... there's no 1.3.0 released... thank you renovatebot!

Renovate Ignore Notification
As this PR has been closed unmerged, Renovate will now ignore this update (1.3.0). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the ignoreDeps array of your renovate config.
If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.


Android support for perspective transform

Motivation: "Perspective" Transform was so far supported only on iOS
Closes #2915
Test Plan: I built a react-native-flip-view and ensured that the same perspective transform results in the same camera perspective on both iOS and Android:

This looks great, thanks for working on this!
cc @mkonicek

@janicduplessis -- thanks for the fast and thorough review. Addressed your comments and pushed an update. Thanks!

cc @dmmiller

Thanks for adding a great summary on the PR @kevinstumpf.
Does the perspective prop only allow to flip the view along the vertical axis (like in the flip-view example) or also the vertical one?
@facebook-github-bot shipit

Does the perspective prop only allow to flip the view along the vertical axis (like in the flip-view example) or also the vertical one?

The perspective prop allows to flip the view along both the vertical and the horizontal axis. The react-native-flip-view module actually supports both (by specifying the "flipAxis" prop).
Thanks!

@kevinstumpf This is awesome. One think i was really stuck with when building flip on android was backfaceVisibility. Wondering if you figured your way around it.

@chirag04 I did figure a way around backfaceVisibility. I will submit a PR that adds android support over the next few days!

@mkonicek I see that this PR is still labeled as "review-needed", despite your msg to the github bot. Is there anything left on my end to satisfy the bot? (I'm seeing that the branch is out-of-date with the base branch -- do I need to update it or will the bot take care of that automatically?)
Thanks!

@mkonicek seems like your import failed. Can you ship again if everything seems right.

Thanks for the ping @chirag04!
The bot will now add the Accepted label so we can find PRs with the label and they don't get forgotten about.

@facebook-github-bot shipit

@chirag04 -- I just got around to submitting a PR that solves the backfaceVisibility issue on Android you had mentioned: #6695

@kevinstumpf This commit was reverted. can you take a look here: https://github.com/facebook/react-native/commit/ae3dad86c5f10d454884ed041c0a6539f34441cd

Thanks for commenting @chirag04!
@kevinstumpf Happy to merge a new PR with an updated test plan and ideally with a test.

Thanks @chirag04 and @mkonicek. I addressed the issue with this PR: #6926


field viewing

when a game is selected, no field is displayed.

Is a field displayed when the program first starts?  Does it go away when a new game is selected?

sorry I should have been more specific. A field is never displayed and changing the game does not start displaying one.

For small screens, the bottom window was too big, hiding the field window.

What I have done, is if the top or bottom windows on the left side get below a minimum size, I force a window layout where both get half of the screen size.


faq: update dm docs and faq

First-time contributors' checklist

[x] I've signed Contributor License Agreement that's required for repo owners to accept my contribution.

What is changed, added, or deleted? (Required)
Update dm docs and faq.

Which DM version(s) do your changes apply to? (Required)

[x] master (the latest development version, including v3.0 changes)
[x] v2.0 (TiDB DM 2.0 versions)
[ ] v1.0 (TiDB DM 1.0 versions)

What is the related PR or file link(s)?

This PR is translated from:
Other reference link(s):

Do your changes match any of the following descriptions?

[ ] Delete files
[ ] Change aliases
[ ] Need modification after applied to another branch
[ ] Might cause conflicts after applied to another branch

/cc kennytm,lance6716

/cc kennytm,lance6716

@lance6716 PTAL again

/lgtm

LGTM

/remove-translation doing
/translation done


[tock-nlp-entity-rest] README improvement for tock-flair integration and others

Careful with the example of tock-flair :
In order to be careful with the difference between default tock_nlp_entity_type_url = http://localhost:5000/app/v1 and
the flair exemple is tock_nlp_entity_type_url = http://localhost:5000/api/v1

An little explaination of the SPI dependencies, with the service loading an the class in ai.tock.nlp.core.service.entity.EntityTypeProvider wich can be loaded at the start.

The dependency can be added for exemple :
In the pom of nlp-api-client in the pom with :

        <dependency>
            <groupId>ai.tock</groupId>
            <artifactId>tock-nlp-entity-rest</artifactId>
            <version>${version}</version>
        </dependency>

Or with the classpath in intelliJ Project structure>nlp-api-service> and add the module tock-nlp-entity-rest
There is also a PR for updated dependencies for the tock-flair exemple (https://github.com/theopenconversationkit/tock-flair/pull/8)

Could you also merge the other PR in the tock-flair repo ? Just to make it work properly for other users when they clone it


Incorporate setting log levels into the mn-bootstraps

Create menu option to adjust docker log level environment variable

It's done https://github.com/dashevo/mn-bootstrap/pull/172


azure log tail - output only when accessing file via kudu shell

Moved this issue from azure-cli to here:
original issue
Description:
azure site log tail output new log information to  stdout only when I reenter the log file via kudu editor
Details descriptions:
We have tomcat running on webapp. Our app is built with spring.  We use log4js to output the logs.  We output the log into `D:\home\LogFiles'
This works good and we have 3 files at LogFiles Directory. We have debug.log, error.log and info.log.
We are checking possible move from Rackspace to Azure. At Rackspace we are linux box. So output the logfile  its easy. We just to tail on one of the log file or on catalina.out.
We are looking for a solution to do the same in azure as watching the logfiles in real-time is very critical to the development process.
It seems that azure cli should provide this kind of functionality.  But it refresh the output only when I access to the log file  (e.g the debug.log) throw kudu system. It seems like accessing the file trigger an event change or something like that. But without reentering the file there is no output to the console.
Summary:  Any idea how to get real-time logging information?
Thanks
Alon
Edit
I have test in in several different times and its only  output the log into the command line when I reenter the file via kudu file editor
Edit 2
I connected to a linux server on azure and did curl. The same result. For some reason it does not show the output of tomcat logfiles in realtime. It waits for something. If I open the kudu editor it triggers the output of the curl

To make sure I understand, you are saying that that file in the Kudu editor without saving any changes is enough to fix the curl logstream? Does the same thing happen if you run the 'tail' or 'cat' command on that file from the Kudu Console?

This is exactly what i'm saying. Moreover I looked into the Kudu/Logstream source code . It uses FileSystemWatcher to watch the folder for change.
Two things I found about that.

It does not set NotifyFilter flags. So it basically uses only the default values
More important this function - according to quite a few reports in stackoverflow - is not reliable function in order to monitor. For example [this answer](http://stackoverflow.com/a/3594644/1211174) ended up writing a separate threadin order to read single byte from eachfile. They claim the read functionwill trigger the event, even a single byte read.  I'm guessing here that this is exactly what happend when I read the file viaKudu editor. This force the system to read from the file which trigger for the onChange` event.

As for our logs we are using log4j2 and the document state about the default mode  of immediateFlush

When set to true - the default, each write will be followed by a flush. This will guarantee the data is written to disk but could impact performance.

So our files are being flush to the disk

Interesting that we haven't run into that before. So it seems that the key factor that triggers the issue is that the file is kept open with FileShare.Read. I'm guessing that scenarios that have been working fine just close the file after each append, avoiding the issue.
I understand the SO suggestion to keep reading a byte from all files, but I have some concerns about going in that direction. If not done carefully, it could end up having some perf impact. Or maybe it's something that would be off by default, and turned on via some App Setting by those who need it. The App Setting could even specify what specific files to target.
You could also work around by doing the same logic in your app. Conceivably, there could be a NuGet library that would make it just one call to start the reading loop.
Mostly thinking aloud here :)

Am.. I don't think the solution should come from the app code as the log4j2 starts writing before the app is complete up.
I agree it's weird the no one had this issue before. Although I think that there is an open issue for performance on the logstream. For us realtime log during development process is must have feature.
Continue the brain storming, two possible solutions:

Open thread to continue read first byte on single, or more files when there is a request for logstream. Keep this thread running as long the as logstream is running.

I kept searching and found this one. It seems that the buffer can be overflowed. Which is most likely to happen if there is a lot of realtime writing. According to the doc, there should be an error event if there is internal buffer overflow. I see the code capture the error event but it just reset everything. So maybe its a good place to start. Plotting the error and trying to figure out if there an overflow has occur or not and if so maybe setting the buffer to be a bigger size on logstream event can be a solution as well. But then I do not understand why read will trigger the change event again.

Adding @suwatch to the discussion as he wrote most of that log streaming code.
You're right that it would only need to do the reading loop when log is being streamed, which removes a lot of perf concerns.
First step would be to get a good repro. Simplest would be to write a console app that opens a file that way and writes to it every second.

Ok. because that Kudu allows sleep function with miliseconds here is a script that has been tested at kudu command line. It writes the log file. It takes first argument as the writing number so running it as
test 1000 will write to the file 10 times a second for 100 seconds.

set /A x=1
echo x
set MAX=10
set MAX=%1
:loop
   if %x% GEQ %MAX% goto :out
   echo "something"
   sleep 0.1
   REM output to current folder
   echo %TIME% %x% >> time.log

   REM output to LogFiles folder as well
   echo %TIME% %x% >> c:\home\LogFiles\time.log

   REM output to stout
   echo %TIME% %x%

   set /A x+=1

goto :loop

:out

Ok, I got a simple repro: https://github.com/davidebbo-test/LogWithShareRead. Repro steps:

Download test exe https://github.com/davidebbo-test/LogWithShareRead/releases/download/v1/LogWithShareRead.exe
Copy it into D:\home\LogFiles\Application using Kudu console
Run it
From client, run curl -u davidebbo https://{site}.scm.azurewebsites.net/api/logstream/application. Nothing gets streamed!
Now open test.log in Kudu editor. Result: everything gets streamed.

You can just do cut for the file and it works as open the editor.

Now we have two repros :) But I don't think yours work, as it doesn't open the file with ShareRead. So streaming should just work (and does when I tested it). But with mine everything repros as you described.

:+1: .
So it does not related to the internal buffer overflow but related to ShareRead. How do we overcome this issue?

I have an idea for a potential workaround you could use that would not require a Kudu change: use a continuous WebJob that would do the reading. I can take a crack at it as a proof of concept.

This sounds  interesting and worth try as SOS because we are now handling
the move to azure and to azure webapp and this log issue is important. But
there is a downside of this solution
: The webjob will be run the whole time, isn't? It seems that logstream
action should trigger the webjob.
On Thu, Jul 28, 2016 at 8:54 PM, David Ebbo<EMAIL_ADDRESS>wrote:

I have an idea for a potential workaround you could use that would not
require a Kudu change: use a continuous WebJob that would do the reading. I
can take a crack at it as a proof of concept.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/projectkudu/kudu/issues/2093#issuecomment-236067262,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAouEaAgbn0Qn5eeCj-L_COuX8US8EUSks5qaU82gaJpZM4JXkSb
.

I wrote a PoC on https://github.com/davidebbo-test/ReadFirstByteOfFiles.
I agree it's not ideal. But at this point, getting a full fix in Kudu could take a while. Note that we've had this streaming logic for 4 years. While this issue is undeniably real and we have a repro, it appears that in practice it doesn't happen much, probably because most logging solution don't use that mode.
Note that Kudu is OSS, so a PR is also a possible option if you are so inclined.

Thanks, I do not have Visual Studio on my computer for the moment so I used python + batch script to run the webjob. But it did not get the right result. It scans the log folder and read the first byte if the file ends with log or txt but logstream does not show anyrelated output
As for the 4 years long. I guess this is weird because I'm just using common tools like tomcat and log4j2. Maybe the community around tomcat & java user is not as big as C# users on webapps?
Attached my byte reader and the batch script to fire the webjob
first-byte-reader.zip

The version I'm running was a webjob has no print inside because its seems that the stdout of a webjob is going to logstream as well

Ok. Some more news. It seems to open file for readonly does not help. So I changed it and opened and file with rb+. In the first seconds it looks like it does the trick but then it breaks

2016-07-29T16:11:04  PID[15960] Error       Thread was being aborted.
2016-07-29T16:11:15  PID[15960] Information
2016-07-29T16:11:15  PID[15960] Information D:\local\Temp\jobs\continuous\reader\uimwgmlt.2mb>python module\reader.py D:\home\LogFiles false 1

Ok, After playing lots with it I'm very close to the conclusion that azure webapp is just not mature enough to run proper real-life tomcat application. The lack of the ability to stream the very basic tomcat log has important rule of that conclusion. But something just not feel smooth as running it on linux box.
I say that with great sad because I see azure webapp as really cool thing and I have invested it a lot of working days  & energy to make it be our development/production environment.

https://github.com/projectkudu/kudu/issues/1535#issuecomment-165869990
Seems like the same issue here:
It seems that when a process open file for write, Windows API does not write the actual file. Instead it writes into a buffer. This buffer is being write into a file only when the handler is being closed or some other process opens the file for write and try to read from it. This seems to force Windows to flush the buffer into the file.
Log4j2 Apparently opens the file in share mode. So Windows flushes the content into the real file only when other process "touch" the file in write mode
The solution for having WebJob on the background does not work as the WebJob gets terminated (see my comments above)
As for The Go issue It seems very related because it can even better to just be able to get stdout & stderr from the httpPlatform processPath

I thought that HttpPlatformHandler had been fixed in the meantime. But is platform handler even used in your scenario? Or maybe you mean that you're running into the same root issue as in that other thread, but not in the context of HttpPlatformHandler.

I gave a try for "platform handler" and custom tomcat that I uploaded
instead of Azure tomcat because the latter did not produce the wanted
result
On Tue, Aug 2, 2016 at 6:27 PM, David Ebbo<EMAIL_ADDRESS>wrote:

I thought that HttpPlatformHandler had been fixed in the meantime. But is
platform handler even used in your scenario? Or maybe you mean that you're
running into the same root issue as in that other thread, but not in the
context of HttpPlatformHandler.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/projectkudu/kudu/issues/2093#issuecomment-237066406,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAouEUd1StQo1ttfcQH6ELF60HgJxpF8ks5qb8RZgaJpZM4JXkSb
.

OK. I think I found a solution. I'll describe the full problem here and the solution I have tried
The goal
Allow the developers get realtime logging of `tomcat application
The suggest solution:
Output logs into %home%\LogFiles\ when use LogStream function of kudu.
Why it does not work?
Kudu LogStream function listens for file changes with FileSystemWatcher. The issue with  FileSystemWatcher function: It does not trigger change event if this file is being open for share write.
Why? Mainly because (I did not find in msdn) Windows does some kind of optimization for writing. The optimization is "write to buffer" instead of to file, and flush the buffer only when 1. the file handler is being closed 2. Some other process tries to open the file for read & write and the  read the same file
The second reason is why cat filename or open file with kudu editors fire up the logstream. It seems the log4j2 opens the logs for share-write and therefore we get the same issue above`
Failed Workarounds
Using httpPlatform logging
httpPlatform has stdoutLogEnabled but it seems to have the same issue. i.e: It opens the log file for share-write. which results  showing the output of the logfile only on another access to the same file
Using ConsoleInterceptor
It is important to understand the batch file on Windows. Tomcat can be started with the start argument or run. The difference between those two that one uses start command and the other uses call command. start forces open new commandline which does not output the stdout from the process. I.e  when running with start: ConsoleInterceptor hooks for the stdout for the subprocess catalina.bat but it does not capture the output of sub sub process of it.
A working workaround
I forked the ConsoleInterceptor. The fork can be find here. The main change is allowing capture stderr as well.
Then use the following command to run it
<httpPlatform processPath="d:\home\site\ConsoleInterceptor.exe"   arguments="D:\home\site\app\apache-tomcat-8.5.4\bin\catalina.bat run"
note that using run instead of start it important. Otherwise it will not work due to reasons mentioned above.
2nd note : it does not do log rotation yet.
Suggesting a "real" solution
Windows
0. Microsoft should state it the docs that file change event does not not fire if file is open for write-share.

Windows fix  - allowing capture file editing if the buffer has not being flush it.

Kudu

Api can allow remote user to get the stdout  & stderr of the working process

Api can start a reading thread, iterating all the files in the logs folder, open each file for read & write and read single byte of each file. The thread should be stopped when user detach from the logstream process

Api can start a reading thread, iterating for request pattern in the logs folder, open each file for read & write and read single byte of each file. The thread should be stopped when user detach from the logstream process

Better different way for listening of file change event?

Thanks for taking the time to investigate so deeply, and do this write up! Glad that you found some solution based on interceptor. BTW, the link to your fork seems it got the wrong value (it has **ur**)? Could you edit and fix? Thanks!
For Kudu, I think you're right that the solution would end up doing the first byte reading workaround. While it feels like a bit of a hack, it may be the best bet. I'm marking this issue as a Feature to track that there is work that can be done here.

Thanks,
It does feels a like a bit of hack. What about the option to listen to httpPlatform process output as feature request?
p.s
I fixed the link for the fork

What about the option to listen to httpPlatform process output as feature request?

The difficulty is that the app can be scaled out to multiple instances, which all share the file system. When you connect to streaming logs, you connect to an arbitrary instance, but it doesn't matter which one as it's all file system based and they all write to the same one. So the only way to make streaming work across instances is to go through file system listening, as that is what ties them all.

Hi
If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure:
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
This way we can better track and assist you on this case
Thanks,
Joaquin Vano
Azure App Service


Support EKS Pod Identity credentials

Motivation and Context
I would like to support EKS Pod Identity credentials in the Rust SDKs
Description
This brings the ECS provider in line with other sdks (eg, Go) by supporting AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE as well as permitting http IPs to be non-loopback if they are the EKS pod identity IPs.
Testing
I have added various new unit tests, and I have updated the existing integration test to also create pods with eks pod identity creds, which I have used to test in a real EKS cluster as well.
Checklist

[x] I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This looks great! Someone from our team will do a detailed review next week. The one missing piece is a e2e integration test. You can see examples here: https://github.com/smithy-lang/smithy-rs/tree/6e3e010e912874262b37727d900d7fae170efaed/aws/rust-runtime/aws-config/test-data/default-provider-chain/ecs_credentials_invalid_profile

done @rcoh

@jdisanti did this make it into the changelog?

I guess I did something that meant the automation didn't pick it up - probably should be in there?
https://github.com/smithy-lang/smithy-rs/commit/b515533c07b7eeb4e99c0a5f427bb6d00dec7ab4


handle multiple tasks and planning?

going to skip impelmenting this for now, 1:1 keeps it much simpler. this should be easy to extend but I also have arguments for why this is a bad idea

no, leverage the convo for planning


vulnerability fix CVE-2022-1292

Proposed changes
Issue Number: close #15636
Problem summary
fix CVE-2022-1292
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[x] No
[ ] I don't knowx

Has unit tests been added:

[ ] Yes
[ ] No
[x] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[x] No Need

Does it need to update dependencies:

[x] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[x] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 37.06 seconds
load time: 475 seconds
storage size:<PHONE_NUMBER>4 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230105070217_clickbench_pr_73980.html


Client app to sent photo

Add command function to server to enable phone front camera to take picture via client app.

This is the wrong place.

Where should I add this? You said github?

Please read this carefully:
https://github.com/tananaev/traccar/blob/master/.github/CONTRIBUTING.md


Spatial view coordination

The various views on the left need to be coordinated with (linked to) the map view, i.e. re-queried/re-rendered when the data selection changes. For now we will just consider this to be when the map view is panned or zoomed and “subset based on map bounds” is checked.
Solve the following infrastructure problems first:

tgve/app#47
tgve/app#48

Then:

[x] where is “subset based on map bounds” checkbox? ➡ Tab 2 of Decksidebar.jsx
[x] snapshot test for filtering based on accident_severity

[x] load casualties_100 data set
[x] select span containing Slight text

[x] generalise waitForElementText to wait until there is at least one element matching query

[x] click on  div containing Slight span    - [x] locate span with text content Slight using waitForXPath

[x] click on parent div element

instead of simulating mouse events for selection, add &select=accident_severity:Slight to URL instead

[ ] Puppeteer tests no longer running in GitHub Actions?
[ ] extract filterData function from _generateLayer

Just to clarify, everything in tgvejs is based on filtered and unfiltered data, including tooltip. So

The various views on the left need to be coordinated with (linked to) the map view, i.e. re-queried/re-rendered when the data selection changes.

is implemented. The critical part in this is throttling which is done for updating URLs here:
https://github.com/tgve/tgvejs/blob/7aa3ae089952dd4612e18918cfb480eea90608c5/src/Welcome.js#L584
What we need to do, is:

find space where the "clip"ing happens. We already get the bounding box here
use either this or custom function
regenerate layer

That is sufficient for "left side" or "sidebar" as they are linked views.

Thanks @layik, will try to understand some of this tomorrow.

Checklist above was before #147 etc

Might need to bring subset checkbox into tab1 for usability reasons

Todo:

[ ] turf booleanContains seems to be very slow
[ ] sync checkbox with home

Aware of branch https://github.com/tgve/tgvejs/tree/subset-mapbounds

[x] extensive tests needs to be done but looks ok!

Hi @rolyp. Could you please check the check list item of puppeteer and of course the branch. Might be ready for a PR. Thank you.

Lines/path data to test https://raw.githubusercontent.com/tgve/example-data/main/rnet/atumie.geojson


Bug/host variable interpolation

updated documentation to resolve #19
added example for host_config
resolves issues where the host_alias was referenced in _create_container_ships variable for hosts and not creating all the container_ships correctly based on hosts defined in the environment / data_centers host

Current coverage is 52.88%

Merging #23 into master will increase coverage by +2.00% as of 8f3a30f

@@            master     #23   diff @@
======================================
  Files           33      33
  Stmts         3830    3829     -1
  Branches       898     898
  Methods          0       0
======================================
+ Hit           1949    2025    +76
- Partial        292     309    +17
+ Missed        1589    1495    -94

Review entire Coverage Diff as of 8f3a30f

Powered by Codecov. Updated on successful CI builds.


Jammy Jellyfish / Humble Hawksbill failed.  Any harm in full ROS2 instead of -BASE?

On Raspberry Pi 4 4GB installed Ubuntu 22.04 Jammy Jellyfish 64 bit Server then MATE Desktop after great frustration as the images for the Desktop versions all failed to boot.  Cloned and ran ros2me just fine but then echo $ROS_DISTRO came up blank indicating that ROS2 failed to install.  (have created Issue in ros2me repo).  Since I seem to need to install ROS2 Humble Hawksbill manually, is there any harm in  installing the full version rather than just BASE?

Issue RESOLVED
JHP


Couple improvements for the program icons

I've rapidly updated to the new version and instantly enjoyed the program icons, which is an amazing feature.
But I identified a couple possible enhancements.

Some apps (eg Whatsapp in the screenshot) will load a generic icon, and not the correct one. Unsure if this can be fixed.

It might be nice to add a little window identifier in the corner of the program icon. That way it helps differentiate quicker with the results for the program executable itself.

Thanks!

For you second advice I don't know whether it might be easier to do it in Flow itself as we can just add a small image control displaying the plugin icon overlaying with the icon. I suppose you can file an issue for that.
I will take a look on the missing icon, but I can't give guarantee to fix it.

You can still identify the result of window walker by looking at the subtitle, though that may be less obvious than icon change.

Yes of course. It is usable now, don't get me wrong. It's just it would be a great QoL improvement. :) Will open the issue on Flow core.


Support for multiple k8s API endpoints

Including the ability to configure a reuse of an existing ELB or a creation of a managed one, and whether to create a record set or not, and of course DNS name, per API endpoint.
Support for DNS round-robin(#281) is planned but not included in this commit
Ref #373
Resolves #285
Resolves #343
fyi @c-knowles This is a WIP of #383 without support for DNS round-robin, which will fulfill all of your needs!

Codecov Report

Merging #468 into master will decrease coverage by 0.84%.
The diff coverage is 24.16%.

@@            Coverage Diff             @@
##           master     #468      +/-   ##
==========================================
- Coverage   41.09%   40.25%   -0.85%
==========================================
  Files          38       39       +1
  Lines        2679     2790     +111
==========================================
+ Hits         1101     1123      +22
- Misses       1417     1504      +87
- Partials      161      163       +2

Impacted Files
Coverage Δ

model/api_endpoints.go
0% <0%> (ø)

core/controlplane/config/tls_config.go
68.65% <100%> (+0.23%)
:arrow_up:

core/controlplane/config/config.go
64.58% <76.92%> (+0.69%)
:arrow_up:

Continue to review full report at Codecov.

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


Fix "ReferenceError: $ is not defined"

This browser extension didn't work on Chromium 53.0.2785.143.

Tried a slightly different approach in https://github.com/codecov/browser-extension/pull/56 but the tests still don't pass.  I suspect there's more than just this problem.


Feature request - CDN hosting

Looking for a simple import of the scripts to be used as a library, no pointless react components, just raw API without an NPM project like react, ant, or angular

Hi, you could just:
npm install @rentfuse-labs/neo-wallet-adapter-wallets @rentfuse-labs/neo-wallet-adapter-base
and use basic functionalities in our dApp without react stuff.
Is this solving your issue?

No, because its not a node project. its raw html and dom manipulation using min-vue

Gotcha 👍

@vncoelho nothing at the moment, we planned this for the end of August / September

Closed in #34! 🚀
To use it you can do like this:
<!DOCTYPE html>
<html>
  ...
  <script src="https://www.unpkg.com/<EMAIL_ADDRESS>  <script>
    // ...
    // Global variable
    NeoWalletAdapter.fun1('Five');
    // Property in the window object
    window.NeoWalletAdapter.fun1('Five');
    // ...
  </script>
</html>


Fix SPS parser

Workaround for truncated VUI in SPS
Export H264Parser.parseSPS method

@drauggres Thank you for your contribution!


GetBestMiningCandidate & F3

When we pick a base on which to mine, we compare:

The current chain head.
The last tipset we mined on.

If the last tipset we mined on is heavier, we'll stick with that. This leads to a problematic situation:

We try mining on X.
F3 finalizes Y at the same height, Y is lighter than X.
We will keep trying to mine on X until someone else mines a block on Y.

One option here is to remove the lastWork field, I'm not 100% sure why we have it.
Another is to change ChainTipSetWeight to take checkpoints into account and set the weight to 0 for any tipset not compatible with the current checkpoint. We need to be careful here in case the tipset weight is used anywhere else, but I don't think it is?
The best option is probably just to ask lotus about the current checkpoint.

Note: I have no idea if this is actually the issue, but it's very suspicious.

I'm pretty certain the reason is catchup mining, where we fast loop and lotus takes too long to update the head.

Ok, I'm pretty sure there's no point behind lastWork. It's only useful if lotus returns a block that's weighs less than the last block it returned. I guess maybe it's to solve the issue of lotus crashing, restarting, and... coming up with a worse block? I'm not convinced.
To be clear, lastWork literally just returns the best block we've seen from ChainHead. We don't update it anywhere except in GetBestMiningCandidate.

Oh! Maybe the concern is multiple lotus nodes where one is behind? I mean, this isn't really the right way to deal with that especially because we completely ignore anything we mined.

It looks like we keep it for side effects in some cases... E.g., we shove the null rounds it it.

Ok, there's a simple fix: we can't mine at the same height anyways. So we'll just track the last height we've successfully determined we didn't win and use that to calculate nulls.

Fixed in https://github.com/filecoin-project/lotus/pull/12690


bug/status-indicators-lost-fill

Summary of changes:

CSS class name was updated but component needed its class names updated too

Simple change, self-merging.


Ability to hide currently selected value in dropdown as default option

This pull request includes a

[ ] Bug fix
[x] New feature
[ ] Translation

The following changes were made

Adds a default option to be able to hide those elements that have been selected

Prevents navigation by getting proper options, those with [aria-selected=false] when hideOptionsWhenSelected: true  or  [aria-selected] for the default option hideOptionsWhenSelected: false

This issue was discussed in several issues, main issue listed below:

https://github.com/select2/select2/issues/1538

I hope it helps.

I didn't follow the contributing guide when sending this PR. I will send it again, this time following the contributing guide. Sorry about that. 🙏


Add try_runtime to Trappist

### TODO
- [x] Integrate try-runtime into trappist runtime
- [x] Integrate try-runtime into the node cli
- [ ] Create try-runtime CI workflow for releases
- [x] We will need a node to scrape live state from  an RPC node i.e. [wss://rococo-trappist-rpc.polkadot.io:443](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frococo-trappist-rpc.polkadot.io#/explorer)
- [x] Try-runtime bot
- [ ] Documentation

The Polkadot CI for try-runtime is located here:

https://github.com/paritytech/polkadot/blob/master/scripts/ci/gitlab/pipeline/check.yml#L72-L76

Looks like try-runtime-bot is installed: https://github.com/paritytech/security/issues/12

A try-runtime RPC node has been configured for us:

wss://rococo-trappist-try-runtime-node.parity-chains.parity.io:443
https://cloudflare-ipfs.com/ipns/dotapps.io/?rpc=wss%3A%2F%2Frococo-trappist-try-runtime-node.parity-chains.parity.io#/explorer

Tested with this PR and it works!
./node-try-runtime \
    try-runtime \
    --runtime runtime-try-runtime.wasm \
    -lruntime=debug \
    on-runtime-upgrade \
    live --uri wss://rococo-trappist-try-runtime-node.parity-chains.parity.io:443
2023-06-23 12:16:04.421  INFO main remote-ext: since no at is provided, setting it to latest finalized head, 0xc2136fbc8067ffa76b4da8a888cd1bfbc44d3dc0b468bac5caf4a9895910c3e4
2023-06-23 12:16:04.424  INFO main remote-ext: since no prefix is filtered, the data for all pallets will be downloaded
2023-06-23 12:16:04.582  INFO main remote-ext: scraping key-pairs from remote at block height 0xc2136fbc8067ffa76b4da8a888cd1bfbc44d3dc0b468bac5caf4a9895910c3e4
2023-06-23 12:16:05.766  INFO main remote-ext: Querying a total of 4194 keys from prefix , splitting among 10 threads, 420 keys per thread
2023-06-23 12:16:07.817  INFO main remote-ext: adding data for hashed prefix: , took 3s
2023-06-23 12:16:07.817  INFO main remote-ext: adding data for hashed key: 3a636f6465
2023-06-23 12:16:08.699  INFO main remote-ext: adding data for hashed key: 26aa394eea5630e07c48ae0c9558cef7f9cce9c888469bb1a0dceaa129672ef8
2023-06-23 12:16:08.833  INFO main remote-ext: adding data for hashed key: 26aa394eea5630e07c48ae0c9558cef702a5c1b19ab7a04f536c519aca4983ac
2023-06-23 12:16:09.006  INFO main remote-ext: initialized state externalities with storage root 0x3afb36071e9412319f8f4ee222fdee1d8c33bedc11e2df2c7b7e65a7caff0283 and state_version V1
2023-06-23 12:16:09.735  INFO main try-runtime::cli: original spec: RuntimeString::Owned("trappist-rococo")-1, code hash: a8f35b12ee0829b2e32de13e1bdab6dbeaf59f6ce8b3bc4d749d6cb072e9119d
2023-06-23 12:16:10.385  INFO main try-runtime::cli: new spec: RuntimeString::Owned("trappist-rococo")-1, code hash: 4d23ca9e9c67d3008e3ff57931d4c0dd7e8640506055baa4c3093cbd4e4e3962
2023-06-23 12:16:12.609 DEBUG main runtime::frame-support: ✅ no migration for System
2023-06-23 12:16:12.610  INFO main runtime::frame-support: ⚠ ParachainSystem declares internal migrations (which *might* execute). On-chain `StorageVersion(2)` vs current storage version `StorageVersion(2)`
2023-06-23 12:16:12.610 DEBUG main runtime::frame-support: ✅ no migration for RandomnessCollectiveFlip
2023-06-23 12:16:12.610 DEBUG main runtime::frame-support: ✅ no migration for Timestamp
2023-06-23 12:16:12.611 DEBUG main runtime::frame-support: ✅ no migration for ParachainInfo
2023-06-23 12:16:12.611 DEBUG main runtime::frame-support: ✅ no migration for Balances
2023-06-23 12:16:12.611 DEBUG main runtime::frame-support: ✅ no migration for TransactionPayment
2023-06-23 12:16:12.611 DEBUG main runtime::frame-support: ✅ no migration for AssetTxPayment
2023-06-23 12:16:12.611 DEBUG main runtime::frame-support: ✅ no migration for Authorship
2023-06-23 12:16:12.611 DEBUG main runtime::frame-support: ✅ no migration for CollatorSelection
2023-06-23 12:16:12.611 DEBUG main runtime::frame-support: ✅ no migration for Session
2023-06-23 12:16:12.612 DEBUG main runtime::frame-support: ✅ no migration for Aura
2023-06-23 12:16:12.612 DEBUG main runtime::frame-support: ✅ no migration for AuraExt
2023-06-23 12:16:12.612  INFO main runtime::frame-support: ⚠ XcmpQueue declares internal migrations (which *might* execute). On-chain `StorageVersion(2)` vs current storage version `StorageVersion(2)`
2023-06-23 12:16:12.613  INFO main runtime::frame-support: ⚠ PolkadotXcm declares internal migrations (which *might* execute). On-chain `StorageVersion(0)` vs current storage version `StorageVersion(0)`
2023-06-23 12:16:12.613 DEBUG main runtime::frame-support: ✅ no migration for CumulusXcm
2023-06-23 12:16:12.614  INFO main runtime::frame-support: ⚠ DmpQueue declares internal migrations (which *might* execute). On-chain `StorageVersion(1)` vs current storage version `StorageVersion(1)`
2023-06-23 12:16:12.614 DEBUG main runtime::frame-support: ✅ no migration for Contracts
2023-06-23 12:16:12.614 DEBUG main runtime::frame-support: ✅ no migration for Assets
2023-06-23 12:16:12.614 DEBUG main runtime::frame-support: ✅ no migration for Identity
2023-06-23 12:16:12.614 DEBUG main runtime::frame-support: ✅ no migration for Uniques
2023-06-23 12:16:12.614 DEBUG main runtime::frame-support: ✅ no migration for Scheduler
2023-06-23 12:16:12.614 DEBUG main runtime::frame-support: ✅ no migration for Preimage
2023-06-23 12:16:12.615 DEBUG main runtime::frame-support: ✅ no migration for LockdownMode
2023-06-23 12:16:12.615 DEBUG main runtime::frame-support: ✅ no migration for Utility
2023-06-23 12:16:12.615 DEBUG main runtime::frame-support: ✅ no migration for Multisig
2023-06-23 12:16:12.615 DEBUG main runtime::frame-support: ✅ no migration for Council
2023-06-23 12:16:12.615 DEBUG main runtime::frame-support: ✅ no migration for Treasury
2023-06-23 12:16:12.615 DEBUG main runtime::frame-support: ✅ no migration for Democracy
2023-06-23 12:16:12.615 DEBUG main runtime::frame-support: ✅ no migration for Sudo
2023-06-23 12:16:12.616 DEBUG main runtime::frame-support: ✅ no migration for Dex
2023-06-23 12:16:12.616 DEBUG main runtime::frame-support: ✅ no migration for AssetRegistry
2023-06-23 12:16:12.673  INFO main try-runtime::cli: TryRuntime_on_runtime_upgrade executed without errors. Consumed weight = (300000000 ps, 0 byte), total weight =<PHONE_NUMBER>00 ps, 5242880 byte) (0.06 %, 0.00 %).

try-runtime bot has been configured!
Tested here: https://github.com/paritytech/trappist/pull/239
Docs: https://command-bot.parity-prod.parity.io/static/docs/latest.html#link-trappist

We will run the try-runtime bot for releases. Issue complete.


Can't bind to 'totalItems' since it isn't a known property of 'pagination'

I installed ng2-bootstrap as pagination component. I found the help from https://valor-software.com/ng2-bootstrap/#/pagination#pager-component setting up the component easily.
Pagination functionality also works fine as expected.
But, There are the few errors coming ,  while I tried to run the test cases .
**Error:** Uncaught (in promise): Error: Template parse errors:
Can't bind to 'totalItems' since it isn't a known property of 'pagination'. ("

            <pagination [ERROR ->][totalItems]="totalNumberOfRecords" [(ngModel)]="currentPageNumber" [maxSize]="numberOfButtonsToShow""): SearchResultComponent@84:24
Can't bind to 'ngModel' since it isn't a known property of 'pagination'. ("ol-md-6 col-lg-6"  class="pageButton">
            <pagination [totalItems]="totalNumberOfRecords" [ERROR ->][(ngModel)]="currentPageNumber" [maxSize]="numberOfButtonsToShow" class="pagination-sm"
            "): SearchResultComponent@84:60
Can't bind to 'maxSize' since it isn't a known property of 'pagination'. ("tton">
            <pagination [totalItems]="totalNumberOfRecords" [(ngModel)]="currentPageNumber" [ERROR ->][maxSize]="numberOfButtonsToShow" class="pagination-sm"
                    [boundaryLinks]="true" ["): SearchResultComponent@84:92
Can't bind to 'boundaryLinks' since it isn't a known property of 'pagination'. (")]="currentPageNumber" [maxSize]="numberOfButtonsToShow" class="pagination-sm"
                    [ERROR ->][boundaryLinks]="true" [rotate]="false" (pageChanged)="pageChanged($event)" [itemsPerPage]="numberOfI"): SearchResultComponent@85:20
Can't bind to 'rotate' since it isn't a known property of 'pagination'. ("[maxSize]="numberOfButtonsToShow" class="pagination-sm"
                    [boundaryLinks]="true" [ERROR ->][rotate]="false" (pageChanged)="pageChanged($event)" [itemsPerPage]="numberOfItemsPerPage" (numPages)"): SearchResultComponent@85:43
Can't bind to 'itemsPerPage' since it isn't a known property of 'pagination'. ("m"
                    [boundaryLinks]="true" [rotate]="false" (pageChanged)="pageChanged($event)" [ERROR ->][itemsPerPage]="numberOfItemsPerPage" (numPages)="totalNumberOfPages = $event"></pagination>
       "): SearchResultComponent@85:96
'pagination' is not a known element:
1. If 'pagination' is an Angular component, then verify that it is part of this module.
2. If 'pagination' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message. (">

            [ERROR ->]<pagination [totalItems]="totalNumberOfRecords" [(ngModel)]="currentPageNumber" [maxSize]="numberOfBu"): SearchResultComponent@84:12
No provider for NgControl (">

            [ERROR ->]<pagination [totalItems]="totalNumberOfRecords" [(ngModel)]="currentPageNumber" [maxSize]="numberOfBu"): SearchResultComponent@84:12
Error: Template parse errors:
Can't bind to 'totalItems' since it isn't a known property of 'pagination'. ("

            <pagination [ERROR ->][totalItems]="totalNumberOfRecords" [(ngModel)]="currentPageNumber" [maxSize]="numberOfButtonsToShow""): SearchResultComponent@84:24
Can't bind to 'ngModel' since it isn't a known property of 'pagination'. ("ol-md-6 col-lg-6"  class="pageButton">
            <pagination [totalItems]="totalNumberOfRecords" [ERROR ->][(ngModel)]="currentPageNumber" [maxSize]="numberOfButtonsToShow" class="pagination-sm"
            "): SearchResultComponent@84:60
Can't bind to 'maxSize' since it isn't a known property of 'pagination'. ("tton">
            <pagination [totalItems]="totalNumberOfRecords" [(ngModel)]="currentPageNumber" [ERROR ->][maxSize]="numberOfButtonsToShow" class="pagination-sm"
                    [boundaryLinks]="true" ["): SearchResultComponent@84:92
Can't bind to 'boundaryLinks' since it isn't a known property of 'pagination'. (")]="currentPageNumber" [maxSize]="numberOfButtonsToShow" class="pagination-sm"
                    [ERROR ->][boundaryLinks]="true" [rotate]="false" (pageChanged)="pageChanged($event)" [itemsPerPage]="numberOfI"): SearchResultComponent@85:20
Can't bind to 'rotate' since it isn't a known property of 'pagination'. ("[maxSize]="numberOfButtonsToShow" class="pagination-sm"
                    [boundaryLinks]="true" [ERROR ->][rotate]="false" (pageChanged)="pageChanged($event)" [itemsPerPage]="numberOfItemsPerPage" (numPages)"): SearchResultComponent@85:43
Can't bind to 'itemsPerPage' since it isn't a known property of 'pagination'. ("m"
                    [boundaryLinks]="true" [rotate]="false" (pageChanged)="pageChanged($event)" [ERROR ->][itemsPerPage]="numberOfItemsPerPage" (numPages)="totalNumberOfPages = $event"></pagination>
       "): SearchResultComponent@85:96
'pagination' is not a known element:
1. If 'pagination' is an Angular component, then verify that it is part of this module.
2. If 'pagination' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message. (">

            [ERROR ->]<pagination [totalItems]="totalNumberOfRecords" [(ngModel)]="currentPageNumber" [maxSize]="numberOfBu"): SearchResultComponent@84:12
No provider for NgControl (">

            [ERROR ->]<pagination [totalItems]="totalNumberOfRecords" [(ngModel)]="currentPageNumber" [maxSize]="numberOfBu"): SearchResultComponent@84:12
    at SyntaxError.ZoneAwareError (http://localhost:9876/base/src/polyfills.ts?0a9ca230b4630dbd5dca0d237827921c6470f2c7:2043:33)
    at SyntaxError.BaseError [as constructor] (http://localhost:9876/base/src/test.ts?064cb70427ca5b910f9a6b38441f4814b1f3c15d:64958:16)
    at new SyntaxError (http://localhost:9876/base/src/test.ts?064cb70427ca5b910f9a6b38441f4814b1f3c15d:5443:16)
    at TemplateParser.parse (http://localhost:9876/base/src/test.ts?064cb70427ca5b910f9a6b38441f4814b1f3c15d:17883:19)
    at JitCompiler._compileTemplate (http://localhost:9876/base/src/test.ts?064cb70427ca5b910f9a6b38441f4814b1f3c15d:48480:68)
    at http://localhost:9876/base/src/test.ts?064cb70427ca5b910f9a6b38441f4814b1f3c15d:48363:62
    at Set.forEach (native)
    at JitCompiler._compileComponents (http://localhost:9876/base/src/test.ts?064cb70427ca5b910f9a6b38441f4814b1f3c15d:48363:19)
    at createResult (http://localhost:9876/base/src/test.ts?064cb70427ca5b910f9a6b38441f4814b1f3c15d:48265:19)
    at ZoneDelegate.470.ZoneDelegate.invoke (http://localhost:9876/base/src/polyfills.ts?0a9ca230b4630dbd5dca0d237827921c6470f2c7:1415:26)
    at AsyncTestZoneSpec.onInvoke (http://localhost:9876/base/src/test.ts?064cb70427ca5b910f9a6b38441f4814b1f3c15d:79182:39)
    at ProxyZoneSpec.onInvoke (http://localhost:9876/base/src/test.ts?064cb70427ca5b910f9a6b38441f4814b1f3c15d:79874:39)
    at ZoneDelegate.470.ZoneDelegate.invoke (http://localhost:9876/base/src/polyfills.ts?0a9ca230b4630dbd5dca0d237827921c6470f2c7:1414:32)
    at Zone.470.Zone.run (http://localhost:9876/base/src/polyfills.ts?0a9ca230b4630dbd5dca0d237827921c6470f2c7:1211:43)
    at http://localhost:9876/base/src/polyfills.ts?0a9ca230b4630dbd5dca0d237827921c6470f2c7:1764:57
    at resolvePromise (http://localhost:9876/base/src/polyfills.ts?0a9ca230b4630dbd5dca0d237827921c6470f2c7:1728:31) [ProxyZone]
    at resolvePromise (http://localhost:9876/base/src/polyfills.ts?0a9ca230b4630dbd5dca0d237827921c6470f2c7:1704:17) [ProxyZone]
    at http://localhost:9876/base/src/polyfills.ts?0a9ca230b4630dbd5dca0d237827921c6470f2c7:1764:17 [ProxyZone]
    at ProxyZoneSpec.onInvokeTask (http://localhost:9876/base/src/test.ts?064cb70427ca5b910f9a6b38441f4814b1f3c15d:79901:39) [ProxyZone]
    at ZoneDelegate.470.ZoneDelegate.invokeTask (http://localhost:9876/base/src/polyfills.ts?0a9ca230b4630dbd5dca0d237827921c6470f2c7:1447:36) [ProxyZone]
    at Zone.470.Zone.runTask (http://localhost:9876/base/src/polyfills.ts?0a9ca230b4630dbd5dca0d237827921c6470f2c7:1251:47) [<root> => ProxyZone]
    at drainMicroTaskQueue (http://localhost:9876/base/src/polyfills.ts?0a9ca230b4630dbd5dca0d237827921c6470f2c7:1614:35) [<root>]
    at ZoneTask.invoke (http://localhost:9876/base/src/polyfills.ts?0a9ca230b4630dbd5dca0d237827921c6470f2c7:1505:25) [<root>]
    at data.args.(anonymous function) (http://localhost:9876/base/src/polyfills.ts?0a9ca230b4630dbd5dca0d237827921c6470f2c7:2612:25) [<root>]

For simplicity I have not include the other error coming from the pagination html tag. It causes error from all its attributes inside the pagination tag.
Please help me to solve this issue.

Add to imports FormsModule.
https://github.com/valor-software/ng2-bootstrap/issues/1757


Value is not filled right on a masked input (jQuery)

Hi,
I will try to explain the problem :)
I use the jQuery Masked Input plugin.
My form looks like that:
<input data-mask="9999" value="2012">

My javascript:
(function ($) {
  $('input[data-mask]').live('focus', function () {
    var input = $(this);

    input.mask(input.attr("data-mask")).trigger('focus.mask');
  });
})(jQuery);

But when I try to change the value of input using fill_in something wrong happens:
fill_in 'Ano', :with => '2011'
puts page.find_field('Ano')[:value] #=> '2201'

Note the input loads with 2012 by default and when I use capybara-webkit to fill, the value result is 2201.
I'm guessing this way (the brackets are the original value):
[2012]
[2]2[01]
[2]20[1]
[2]201

Seems like the input starts to be filled on second position.
But, I can't reproduce this behavior in any browser except of the fact I start typing after the first 2:
2[start typing here]012

Using the debug version, I guess the relevant part is this:
 >> Find
 >> 1
 >> 499
 >> .//*[self::input | self::textarea][not(./@type = 'submit' or ./@type = 'image' or ./@type = 'radio' or ./@type = 'checkbox' or ./@type = 'hidden' or ./@type = 'file')][((./@id = 'Ano' or ./@name = 'Ano') or ./@id = //label[contains(normalize-space(string(.)), 'Ano')]/@for)] | .//label[contains(normalize-space(string(.)), 'Ano')]//.//*[self::input | self::textarea][not(./@type = 'submit' or ./@type = 'image' or ./@type = 'radio' or ./@type = 'checkbox' or ./@type = 'hidden' or ./@type = 'file')]
 << ok
 << 1
 << 1
 >> Node
 >> 2
 >> 10
 >> isAttached
 >> 1
 >> 1
 << ok
 << 4
 << true
 >> Node
 >> 2
 >> 7
 >> visible
 >> 1
 >> 1
 << ok
 << 4
 << true
 >> Node
 >> 2
 >> 10
 >> isAttached
 >> 1
 >> 1
 << ok
 << 4
 << true
 >> Node
 >> 2
 >> 7
 >> visible
 >> 1
 >> 1
 << ok
 << 4
 << true
 >> Node
 >> 2
 >> 10
 >> isAttached
 >> 1
 >> 1
 << ok
 << 4
 << true
 >> Node
 >> 3
 >> 3
 >> set
 >> 1
 >> 1
 >> 4
 >> 2012
 << ok
 << 0

I'm guessing it's a fault of masked input implementation but because I can't reproduce that in a browser (including IE) I'm guessing it's a "integration" problem between masked input and capybara-webkit.
Something I can check?

@mtoigo Great solution!

@mtoigo Great solution!

+1 for @mtoigo solution!

I used a combination of the solutions and added a blur simulation:
def fill_inputmask(location, value)
  find(location).click
  page.execute_script "$('#{location}').val('#{value}');"
  page.find('body').click # simulating blur
end

I had the same problem here using capybara 2.6.2, selenium-webdriver 2.53.0 and jQuery Masked Input plugin.
My workaround was fill in the input twice, first time with a blank value:
fill_in '.js-mask-date-field', with: ''
fill_in '.js-mask-date-field', with: '08/04/2016'

I seem to have found a solution that does not need javascript, borrowing some input from @cerdiogenes:
def fill_inputmask(element, value)
  element.click
  element.send_keys(value.to_s)
  page.find('body').click
end

Granted, this was on flaky spec - about 1 out of 3 executions would fail with the normal "fill_in". So far I've rerun it about 15 times with no failures.

pagge.find('body').click somehow redirecting to other page. Following worked for me
def fill_inputmask(location, value)
    find(location).click
    page.execute_script "$('#{location}').val('#{value}');"
    # page.find('body').click # This didn't work
    find(location).send_keys :tab
end

It could be that you have a link or a button in the center of the body element. I'm pretty sure that the click method just clicks literally in the exact middle of any element that you call it on, and if there's something sitting on top of it, well... it gets clicked instead!

Technically, click finds the position at the middle of the element it's called on, and then checks if clicking on that position would click on that element OR any of that elements descendants.  Since everything on the page is a descendant of body though, it does basically just click in the middle of the page, thereby triggering a click on whatever is there.

Would make sense for us to click on the top left of the elements instead then?

I believe other drivers also click in the center of the element, and in general that is also what I find myself doing as the user of a Web page. I may have even experimented with other click positions and had found the center of the element to be the most reliable; but I don't recall at this time, it's been a while.

Maybe it would make sense for a hack such as this, that relies on a body element to be clicked, to add a invisible (at least to a user) 1 pixel element just to receive such clicks.
As a side-note, there have been a few strange cases that I've seen where a link element has a hard time receiving a click, b/c of this center-click behavior. Maybe a situation where the link text wrapped, and thus the center became a void-space in between the two lines of text that wouldn't receive a click.

Re: text wrapping, we do our best not to just click in the center of an element, but the center of the first client rectangle that seems like it can be clicked: https://github.com/thoughtbot/capybara-webkit/blob/6670981917f40eb18d077878fdd640d8a74f4c6b/src/capybara.js#L194-L201. So, while the statement "center of the element" is generally accurate, there are some subtleties as you can see in the code above.

Clicking on corners doesn't help because rounded corners cause the clicks to be missed, and there's no guarantee another element won't overlap at the corners (in the case of body things like headers/footers are most likely going to be at the corners).  Now that capybara-webkit basically fully  supports send_key you're probably better off sending something like a tab keypress rather than clicking on other elements to force the blur

@AmitPatel-BoTreeConsulting  FYI - the latest capybara-webkit release added the ability to pass elements to execute_script, so rather than having to find again you should now be able to do something like
def fill_inputmask(location, value)
  el = find(location).click
  page.execute_script "$(arguments[0]).val('#{value}');", el
  el.send_keys :tab
end

try giving control +A. Then your input. This should work.

I found this problem and tried the workarounds posted here until I found that spliting the string to send_keys did the job. In my case I had an input with a time mask.
  element = find('#masked_input').click
  element.send_keys '12:13'.split

I have tried the workarounds posted here to, but not works well for me, so i just filled my field like the mask requires, like: fill_in('time', with: '10:20')


Added support for compare and compareBase

issue #45

Coverage remained the same at 87.5% when pulling 951563aaa7294f7db6d5b4bb60544557183067ce on JordanPlatts:master into bf449b7db8b6966bcf95a0280bf2e4518f3e2419 on gtnx:master.