Laravel 4.2 Incorrect Datetime format

Hi guy
I have develop new application in laravel 4.2. I update davelip package via composer. I set up all thing as per github instruction. But some how get error like:
[Illuminate\Database\QueryException]
SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '2
015-09-25T18:56:51+0000' for column 'timestamp' at row 1 (SQL: update queues set status = 1, retries = 1, timestamp = 2015-09-25T18:56:51+0000
, updated_at = 2015-09-25 18:56:51 where id = 14)
I was create queue table from php artisan migrate command but when ever I used queue for bulk mail sending I got same error in queue:listen command.
I needfull help regarding this Issue.

Hi @kartikpanchal
I can't reproduce your error.
Could you send me your configuration of laravel environment?

davelip/laravel-database-queue package version
app/config/queue.php (or equivalent local environment configuration)
DBMS used (type and version)

In 0.5.3 package I have tried to change the way I set timestamp for a failed job.
Check if this fix your issue.
I apologize for my delay in this response.

Hi davelip
I was sort it out.
But I need one more help.
How can I run '$php artisan queue:listen' command in shared hosting.
I am using hostgator hosting provider. And what should be my directory structure. Please let me guide in detail as soon as possible

Hi @kartikpanchal
i don't know hostgator hosting provider.
Do you have an ssh access to the environment?
If yes access via ssh and from your command line type:
php artisan queue:liste

If not: you can use http://laravel-tricks.com/tricks/run-artisan-commands-form-route-or-controller anche call your controller via an http call (...or change hosting solution :)).
Bye!


Fix header alignment in RTL languages

What kind of changes does this PR include?

[ ] Minor content fixes (broken links, typos, etc.)
[ ] New or updated content
[ ] Translated content
[X] Changes to the docs site code
[ ] Something else!

Description

Positions the logo, the language dropdown arrow and the hamburger menu correctly in RTL languages.

Old alignment and dropdown arrow:

New alignment and dropdown arrow:

All other (LTR) languages are unchanged.

@sarah11918 @delucis PTAL. See my screenshots. Just a tiny fix.

It's looking good, @hippotastic !  If @X7md is around to take a peek, I'd love their eyes/thoughs on this, too!


[BUG]

Describe the bug:
A clear and concise description of what the bug is.
To Reproduce:
Steps to reproduce the behavior.
Expected behavior:
A clear and concise description of what you expected to happen.
Additional information:

IOS: [e.g. iOS 8.1]
App version [e.g. 0.7 r45]

Screenshot(s)/ screen recording(s):
If applicable, add screenshots to help explain your problem.
Additional context:
Add any other context about the problem here.

Please don’t open an empty issue.


Nested enums with same name overwrite each other

I'm seeing a behavior with PostgreSQLEnum that may need to be changed or documented as it is definitely something that isn't easily debugged.
If you have two nested enums with the same name, .e.g: Category.Kind and Transaction.Kind, the postgreSQLEnumTypeName for both will be the same (KIND). This means that when the migrations are run, the first will be overridden by the second. Inspecting the psql db and querying for types using \dT confirms this with a single listing for kind.
This is potentially misleading behavior as I should reasonably expect that since Category.Kind and Transaction.Kind are both unique enums in Swift, that the default migrations should provide two unique psql enums (perhaps category_kind and transaction_kind).
I haven't confirmed this behavior with other databases.
Current workarounds are:
~1. Provide a static postgreSQLEnumTypeName ("CATEGORY_KIND"). Preferred, but it seems like this could be default behavior.~ (Doesn't actually work, causes a crash while migrating the second enum. I'll look into what's causing the crash.)
2. Don't nest the enums and use a prefix (Category.Kind > CategoryKind). Not preferred because it's less Swifty.
3. Choose unique names for each enum (Category.Kind, Transaction.Style). Not preferred because it's not very scalable across a large project, (the list of synonyms for "type/kind" is short.)

So after doing some digging, I've found a solution that works, but requires a change to Fluent as well.
FluentPostgreSQL.PostgreSQLEnum.swift
public static var postgreSQLEnumTypeName: String {
    return String(reflecting: self)
        .components(separatedBy: ".")
        .dropFirst()
        .joined(separator: "_")
        .uppercased()
}

Fluent.AnyMigration.swift
public static var migrationName: String {
    return String(reflecting: self)
        .components(separatedBy: ".")
        .dropFirst()
        .joined(separator: ".")
}

This allows workaround 1 to work. It does change the default migrationName to include the type's full module path (minus App.). So for instance, where Category.Kind used to have a default migrationName of Kind, it would now be Category.Kind. And the default postgreSQLEnumTypeName changes from KIND to CATEGORY_KIND.
These changes are actually positive IMO, as they add further clarity for nested types (models, migrations) while leaving top-level types unchanged.
@tanner0101 do you have an opinion or insight here as to how this might affect things going forward? I'm afraid this would be a breaking change for existing projects.


Fix double fetch requests (render) for eager-loaded frames

Closes #515 after 256418fee0178ee483d82cd9bb579bd5df5a151f with resolves the broken assertion issues in frame_test.ts (fixed by @seanpdoyle).
This decision use 'willRender' option false for the first action ("advance") when the second action ("replace") is created to prevent double rendering frames because when it is rendered two times and read 'src' attributes two times, it makes two fetch request for this frames.
I did not find a solution with 'turbo-frame[complite]' attribute because it still has a value 'false' before the second fetch request.
The previous decision (#516) used 'willRender' option false for the second act, and it has the bug, that was resolved in #674
After this MR next failed tests will be a success:
    [chrome] › frame_tests.ts:830:1 › test navigating a eager frame with a link[method=get] that does not fetch eager frame twice
    [firefox] › frame_tests.ts:830:1 › test navigating a eager frame with a link[method=get] that does not fetch eager frame twice

This issue can be reproduced on test fixtures page (http://localhost:9000/src/tests/fixtures/frames.html), after clicking the link "Eager-loaded frame after GET redirect":
Before:

After:

@blrB this has drifted out of date with the latest development from main.
I've rebased this locally, and this is the following diff:
diff --git a/src/core/drive/visit.ts b/src/core/drive/visit.ts
index 6028f57..0274b39 100644
--- a/src/core/drive/visit.ts
+++ b/src/core/drive/visit.ts
@@ -164,6 +164,10 @@ export class Visit implements FetchRequestDelegate {
     return this.isSamePage
   }

+  get willRedirectAsReplaceAction() {
+    return this.redirectedToLocation && !this.followedRedirect && this.response?.redirected
+  }
+
   start() {
     if (this.state == VisitState.initialized) {
       this.recordTimingMetric(TimingMetric.visitStart)
@@ -258,7 +262,8 @@ export class Visit implements FetchRequestDelegate {
         if (this.shouldCacheSnapshot) this.cacheSnapshot()
         if (this.view.renderPromise) await this.view.renderPromise
         if (isSuccessful(statusCode) && responseHTML != null) {
-          await this.view.renderPage(PageSnapshot.fromHTMLString(responseHTML), false, this.willRender, this)
+          const willRender = this.willRedirectAsReplaceAction ? false : this.willRender
+          await this.view.renderPage(PageSnapshot.fromHTMLString(responseHTML), false, willRender, this)
           this.performScroll()
           this.adapter.visitRendered(this)
           this.complete()
@@ -313,8 +318,8 @@ export class Visit implements FetchRequestDelegate {
   }

   followRedirect() {
-    if (this.redirectedToLocation && !this.followedRedirect && this.response?.redirected) {
-      this.adapter.visitProposedToLocation(this.redirectedToLocation, {
+    if (this.willRedirectAsReplaceAction) {
+      this.adapter.visitProposedToLocation(this.redirectedToLocation!, {
         action: "replace",
         response: this.response,
         shouldCacheSnapshot: false,
diff --git a/src/tests/functional/frame_tests.ts b/src/tests/functional/frame_tests.ts
index dbb90d3..22abfd6 100644
--- a/src/tests/functional/frame_tests.ts
+++ b/src/tests/functional/frame_tests.ts
@@ -44,13 +44,16 @@ test("test navigating a frame with Turbo.visit", async ({ page }) => {
   await page.evaluate((pathname) => window.Turbo.visit(pathname, { frame: "frame" }), pathname)
   await nextBeat()

-  assert.equal(await page.textContent("#frame h2"), "Frames: #frame", "does not navigate a disabled frame")
+  assert.equalIgnoringWhitespace(
+    await page.textContent("#frame h2"),
+    "Frames: #frame", "does not navigate a disabled frame"
+  )

   await page.locator("#frame").evaluate((frame) => frame.removeAttribute("disabled"))
   await page.evaluate((pathname) => window.Turbo.visit(pathname, { frame: "frame" }), pathname)
   await nextBeat()

-  assert.equal(await page.textContent("#frame h2"), "Frame: Loaded", "navigates the target frame")
+  assert.equalIgnoringWhitespace(await page.textContent("#frame h2"), "Frame: Loaded", "navigates the target frame")
 })

 test("test navigating a frame a second time does not leak event listeners", async ({ page }) => {
@@ -232,7 +235,8 @@ test("test the turbo:frame-missing event following a link to a page without a ma
   await nextEventNamed(page, "turbo:load")

   assert.equal(pathname(page.url()), "/src/tests/fixtures/frames.html")
-  assert.ok(await hasSelector(page, "#missing-frame-link"))
+  assert.ok(await hasSelector(page, "#missing #missing-frame-link"))
+  assert.ok(await hasSelector(page, "#missing #missing-page-link"))
 })

 test("test following a link to a page with a matching frame does not dispatch a turbo:frame-missing event", async ({
@@ -281,8 +285,8 @@ test("test following a link within a descendant frame whose ancestor declares a
   const frame = await page.textContent("#frame h2")
   const nestedRoot = await page.textContent("#nested-root h2")
   const nestedChild = await page.textContent("#nested-child")
-  assert.equal(frame, "Frames: #frame")
-  assert.equal(nestedRoot, "Frames: #nested-root")
+  assert.equalIgnoringWhitespace(frame, "Frames: #frame")
+  assert.equalIgnoringWhitespace(nestedRoot, "Frames: #nested-root")
   assert.equalIgnoringWhitespace(nestedChild, "Frame: Loaded")
   assert.equal(await attributeForSelector(page, "#frame", "src"), null)
   assert.equal(await attributeForSelector(page, "#nested-root", "src"), null)
@@ -346,7 +350,7 @@ test("test following a link that declares data-turbo-frame='_self' within a fram
   await nextBeat()

   const title = await page.textContent("body > h1")
-  assert.equal(title, "Frames")
+  assert.equalIgnoringWhitespace(title, "Frames")
   assert.ok(await hasSelector(page, "#navigate-top"))
   const frame = await page.textContent("#navigate-top")
   assert.equalIgnoringWhitespace(frame, "Replaced only the frame")

Could you try rebasing yourself, then pushing up a commit with the resolved conflicts?

@blrB with the diff mentioned in https://github.com/hotwired/turbo/pull/779#issuecomment-1414236497, I'm curious if there are tests that cover the original buggy behavior. With the replacement of assert.equal(trim(...)) with assert.equalIgnoringWhitespace, I'm having trouble spotting the new test coverage.

@seanpdoyle

a lot of the same underlying test harness issues that you've resolved on this branch with trim(...) calls.

Hi. This branch includes your commit with the trim method: https://github.com/hotwired/turbo/compare/seanpdoyle:frame-test-broken-assertion
This commit make test ("test navigating a eager frame with a link[method=get] that does not fetch eager frame twice") failed: https://github.com/hotwired/turbo/blob/main/src/tests/functional/frame_tests.ts#L848 due to assert.equal(fetchLogs.length, 1) not worked, please see https://github.com/hotwired/turbo/issues/515#issuecomment-1287228044.

seanpdoyle
Issue doesn't reproduce on the main branch. Because you already returned my code my code willRender: false from #516 in #804, that was deleted by you in #674. I will close this pull request and close issue #515. Thank you!


NTR: [actin polymerase activity]

Please provide as much information as you can:

Suggested term label:

actin polymerase activity

Definition (free text)

The activity of binding  to monomeric globular-actin to exchange ADP for ATP, and promote the protective addition  of monomers to the barbed, plus end of F-actin filaments.

Reference, in format PMID:#######

https://pubmed.ncbi.nlm.nih.gov/30035712/
https://pubmed.ncbi.nlm.nih.gov/24954052/
https://pubmed.ncbi.nlm.nih.gov/24591594/
https://pubmed.ncbi.nlm.nih.gov/31813767/
https://pubmed.ncbi.nlm.nih.gov/30392063/

Gene product name and ID to be annotated to this term

for formin and VASP

Parent term(s)

GO:0003674    molecular_function

Children terms (if applicable) Should any existing terms that should be moved underneath this new proposed term?

none

Synonyms (please specify, EXACT, BROAD, NARROW or RELATED)

Cross-references

For enzymes, please provide RHEA and/or EC numbers.

Can also provide MetaCyc, KEGG, Wikipedia, and other links.

Any other information

GO:1904670    actin filament polymerization involved in mitotic actomyosin contractile ring assembly
could b e obsoleted in favour of
actin polymerase activity part of mitotic actomyosin contractile ring assembly

@pgaudet  do you agree with this?

@pgaudet  can I go ahead and add this?
We don't have. suitable function for actin polymerases.
Would it be directly under molecular function?

So, you would only create 'actin polymerization activity', and not 'actin nucleation' activity? https://github.com/geneontology/go-ontology/issues/18609
maybe these two activites are pretty synonymous ?

Would it be directly under molecular function?

Maybe - the closest thing would be 'adaptor activity' ?

I would create nucleator and polymerase activities, they are different activities.
nucleation forms a complex of three actin monomers, from which an actin filament may elongate. This process most commonly involves actin nucleators such as the Arp2/3 complex or members of the formin family of proteins (it's a template for polymerization, but it isn't organized the same as actin polymer).
Adaptor doesn't seem quite right, these are catalytic activities.
We  might still need the polymerization term (or  some term to represent the entire cycle of growth and shrinkage)

We have a 'microtubule plus end polymerase term' - GO:0061863 - Catalysis of the transfer of tubulin dimers to the plus end of a microtubule. The reaction is reversable depending on the availability of dimers. PMID:27872152
Not sure how equatable this is to the requested actin polymerase term, but it's ancestor chart looks like this:

When we look at cytoskeleton organization we should also note that we have "polymerization" and depolymerization " terms in the microtubule organization branch, but that they are not related to the polymerase terms.

I will add this, we can deal with polymerization later.  I think we still need a term to describe actin dynamics (i.e polymerization and depolymerization)

I would like to add this next week for
PMID:38603491
Title | Molecular mechanism of actin filament elongation by formins.
Authors | Oosterheert W, Boiero Sanders M, Funk J, Prumbaum D, Raunser S, Bieling P
"formins act as polymerases that control actin dynamics in many biological processes"
but actin polymerization could be considered a multistep process?
In unbranched we need to account for proflin which hands over actin monomers and in branched there are also nucleators and polymerases.
Another approach would be to remove the "polymerization" process therm and describe everything as part of "actin filament organization"
Then use terms  MF terms like:
actin polymerase
actin nucleator
actin capping activity
actin polymerase regulator
actin monomer chaperone
etc.
Whatever we decide we still need actin polymerase.

Also add "actin filament elongation" as a synonym of polymerization (or related synonym of the polymerase term if we get rid of polymerization)


Fix compatibility with TypeScript versions < 3.8.0

Summary
In the 2.1.0 release of react-native-permissions, this library now exports the Rationale type from react-native in src/types.ts. However, the syntax used for this is a type-only import, which is a new feature in TypeScript 3.8.
https://github.com/react-native-community/react-native-permissions/blob/19840ab/src/types.ts#L5-6
This may have been done pre-emptively, as not all projects will have yet updated to a compatible TypeScript version. Since this library ships uncompiled, this will cause a syntax error when parsed by the hosting project in versions of TypeScript that are below 3.8.0, and cannot easily be ignored.
This PR removes the type-only import and converts it back to a standard TypeScript import. There are no features impacted.
Before changes

After changes in a host project
yarn tsc -w

Compatibility

OS
Implemented

iOS
✅

Android
✅

Checklist

[x] I have tested this on a device and a simulator
[x] I updated the typed files (TS and Flow)

@huntie Thanks! All our projects are already on Ts 3.8, and I'm used to Flow syntax. I already forgot that it's recent in TS.

Understandable change but perhaps better to de-couple projects TS version from projects by proposing a PR that uses e.g. bob like the bob/build related changes here? https://github.com/react-native-community/react-native-device-info/pull/799/files

@mikehardy this project uses bob too: https://github.com/react-native-community/react-native-permissions/blob/master/package.json#L37
But bob use the installed TS version to generate declaration files.

@huntie I made a release for it. Thanks again.


Q: Can we set global rule config options?

Such as kibana_url, instead of setting it in every rule?
TIA

I suppose if they are set in /opt/config ?

Yes you can.
Just place it in your config.yaml

The reason you get this error is because the rule is ran against a validator before the options from the config are copied into the rule. This means you will get this error for any option that is required required_locals = frozenset(['alert', 'type', 'name', 'index']).
To get around this you would have to check if one of there required locals is in the global config and copy it to the rule before it is passed to the validator but you would have to ask @Qmando whether that would be accepted as a PR
The rule is passed to the validator here
The global config options are copied to the rule here

Thanks for the explanation @thommor .
So if I understand correctly, we can apply global options in our config.yaml that will be propagated to all rules such except for the required_locals mentioned.
I think that would suffice for the time being, however if you and/or @Qmando see value in being able to define any of the required_locals globally, I can take a stab at it, especially since you've showed which are the files in question.

PS @thommor  I've created a PR for the helm chart regarding this ability to add global rule options in the config.yaml, if you have a moment feel free to have a look and chime in!
https://github.com/helm/charts/pull/11160/files

Looks fine to me

Thanks!
Closing this issue.


last line is cutting off to the next page

Hi,
I'm creating multi page pdf from html. Last line from the first page is cutting off and flowing into the next page.
Is there any way to fix this please.
thanks
Vignesh

Is this an issue on both iOS and Android? Is the paper size selected the same dimensions as what you have set?

Thanks for looking into this. I've only tried this on IOS so far. Below is my options.
const createPDF = async (ID, newResumeFields) => {     let options = {       html: returnResumeHTML(newResumeFields),       fileName: 'filename',       directory: 'Documents',       padding: 40,       bgColor: '#ffffff',       height: 792,       width: 612,     };     return await RNHTMLtoPDF.convert(options);   };

how did you able to create PDf ?  this code does not work for me .. it shows RNHTMLtoPDF undefined
async createPDF() {
let options = {
html: 'PDF TEST',
fileName: 'test',
directory: 'Documents',
};
let file = await RNHTMLtoPDF.convert(options)
// console.log(file.filePath);
alert(file.filePath);

}

how did you able to create PDf ? this code does not work for me .. it shows RNHTMLtoPDF undefined async createPDF() { let options = { html: '
PDF TEST
',
fileName: 'test',
directory: 'Documents',
};
let file = await RNHTMLtoPDF.convert(options)
// console.log(file.filePath);
alert(file.filePath);

}

First you should verify react-native-html-to-pdf is installed properly and you are importing correctly.
If everything is okay, you can try the following way.
let options = {
    html: htmlString,
    fileName: 'Pdf file name',
    base64: true,
  };
  let file = await RNHTMLtoPDF.convert(options);

And if you are generating PDF, you might want to save it or open it. In this RNFetchBlob can help you.
If you need further any help, you can mail me<EMAIL_ADDRESS>

This is happening for me on Android

i also got the same problem

same issue

Same issue

same issue ： My html page Hu data is generated in a loop

.pageBody {
// display: flex;
// flex-direction: column;
border-radius: 10px;
border: 1px solid #ccc;
}
When I comment out the elastic box in my style

Same issue

Same issue


Status       : Error: fetch failed. retrying in 120 seconds

Status       : Error: fetch failed. retrying in 120 seconds
in creating session process

update the code and re-run


spec fails on alpine linux because of iconv

spec/std/string.cr and spec/std/io/io_spec.cr fail on alpine linux. Because musl libc iconv_open does not support GB2312 as a "to" argument.
For example,  the below code fails.
"好".encode("GB2312") # => raises "invalid encoding: GB2312"

FYI, as the musl source, EUC_JP (0320) or greater is not supported as a target encoding.
#define UTF_32BE    0300
#define UTF_16LE    0301
#define UTF_16BE    0302
#define UTF_32LE    0303
#define UCS2BE      0304
#define UCS2LE      0305
#define WCHAR_T     0306
#define US_ASCII    0307
#define UTF_8       0310
#define EUC_JP      0320
#define SHIFT_JIS   0321
#define GB18030     0330
#define GBK         0331
#define GB2312      0332
#define BIG5        0340
#define EUC_KR      0350

Maybe the specs could convert to some other more common encoding?

That sounds reasonable.


Use level or lvl if there's no embedded @l property

For: https://github.com/datalust/seq-tickets/discussions/1578
We have a bit of a pattern of trying to find substitute properties in embedded JSON events if they're not CLEF formatted. These are intentionally not exposed for configuration so they don't risk scope creeping into trying to be a more general-purpose pipeline. These are handy when something like Docker wraps up JSON events produced by an app as GELF where users don't have direct control over what shape those events have, and the information Docker adds isn't accurate.

Would be great if this could support LVL, MSG etc.

Since we're now approaching the complete set of allowed fallback fields, should we also consider timestamp/TIMESTAMP and ts/TS?


django example

The project and application format for this Django example looks vastly different from how django 1.7 creates projects  and apps. Why is this the case ?

@bemall I think it's an issue of tree structure. The "app" is in the wrong subtree (at least according to conventional django). The way it's organized is:

example

manage.py
example

app

models.py
...

urls.py
settings.py
templates

...

wsgi.py
...

This format isn't really idiomatic, but really shouldn't startle django veterans. The templates folder is configured in settings.py and as long as urls.py and settings.py correctly import the app, it can really exist anywhere, including places out of the source tree. I've never really seen a case where you'd want to nest apps as done in here, but if you did, nesting them in the "main" app is probably the least unusual way... if that makes sense.
If you're contemplating nesting apps, I would urge you to instead keep it as one app and split up the files in the app into a directory. This will take some work, but will be much cleaner in the end. Apps are meant to be siblings in a project, not parents and children -- even if they may depend on each other. There are a number of changes that cause unexpected behavior with nested apps Including this. It's not a supported workflow, as far as I know. Apps can contain modules rather than files if they get too large and are at a size where you might want nested apps. Here is how I would expect to see the django example laid out, in idiomatic django:

example

manage.py
templates

...

app

models.py
...

example

urls.py
settings.py
wsgi.py
...

To do this, there would need to be a few pathing changes to urls.py and settings.py, but it should work with a direct copy and paste, otherwise. I don't know that it's a big enough deal to modify the example, however.

The app was created a long time ago when things where different, I don't see the need to change it, but if a pull-request is presented I'll merge it.
@DavidJFelix, thanks for that extensive description!

@omab I agree. I don't think the cleanup would be worth the effort needed to regression test and ensure the app is wired up correctly. Like I said, django veterans should be able to figure it out and if it annoys somebody enough, they can do the PR.

Thank you for the feedback and understood!


Tables: Place cursor in cell with a single click

Currently it takes a double click to be able to place the cursor in cells and start editing the text. If you do not double click and start writing with the cell selected, you will overwrite the cell contents entirely.
This is a bit irritating if you just want to make a small edit to the existing content and could potentially lead to authors accidentally deleting the cell content.

I think we will need this to have consistent behavior. We chose to use a table selection interface, like in spreadsheets over a text-ish interface (as in Word). This makes table operations more clear and easier to apply (such as merge cells etc.) the downside is the extra click. But think it shouldn't bee too misleading as you don't see a text cursor.
Keeping this as a proposal but don't assign a milestone yet.


Handle running job timeouts

Updates the worker to terminate a job that is about to run over the reserve_for timeout configured when sending the job to faktory.
This prevents the job being retried on faktory when it is still running locally on the client.

Codecov Report

Merging #33 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master    #33   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          21     22    +1
  Lines         258    266    +8
=====================================
+ Hits          258    266    +8

Impacted Files
Coverage Δ

lib/faktory_worker/job.ex
100% <100%> (ø)
:arrow_up:

lib/faktory_worker/worker/server.ex
100% <100%> (ø)
:arrow_up:

test/support/timeout_queue_worker.ex
100% <100%> (ø)

lib/faktory_worker/worker.ex
100% <100%> (ø)
: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 6e8a678...7255e38. Read the comment docs.

@beerlington I have now updated based on feedback.


fixed error in Arabic fonts where glyphs are assigned incorrect Glyph Class

This solves https://github.com/googlefonts/noto-fonts/issues/1559 and is a step towards solving https://github.com/googlefonts/noto-source/issues/140.
This is the result after building the fonts:

cc @khaledhosney @roozbehp


Posh

@gRegorLove here's my idea for a more POSH microformats.io, without bootstrap css.
I realize that, while there are no changes o the content/appearance of the page, it is a rather substantial change to the code under the hood. So I understand that this will require a more comprehensive code review, and may be rejected in part or whole.
This pr would resolve #59 and #29.

This branch still has conflicts; you'll need to make sure you are creating a branch from the latest main branch here, which usually involves pulling from upstream, merging into your forked repository, rebasing your branch, then pushing it again.

I tried that. It didn't work. The posh branch of my fork was still "x commits ahead, and x commits behind" the upstream, according to github. I then tried further incantations that I found on the web. I thought I finally got it right, but apparently not.
/sigh
I clearly don't yet have a handle on git. (You no doubt saw that I just recreated the fix-alt-tag branch because I couldn't fix the first one.)

@btrem Sorry, I know it can be frustrating! I'm only an intermediate on some git things myself and still novice at others.
When I visit your main branch, it looks like it's "up to date with microformats/microformats.io:main", which is good! I think the easiest thing now might be to create a new branch from your main, re-apply these changes, and submit a new PR.
Going forward, to avoid the ahead/behind sync, my (novice) recommendation would be to wait until the PR is merged into this repo, then use the Github web UI to sync your fork. That should get your main branch back to the "up to date with microformats/microformats.io:main" status. At that point, you can git pull from your fork's main to get the latest code locally, then you can create a branch for the next PR. If you do the PRs sequentially like this, it should avoid the "ahead/behind" issues.
It's possible to do multiple PRs "at the same time," but each time one PR gets merged your subsequent PRs most likely will need to be git rebase so their commit history is on top of the new merge. I don't know the best way to describe that process, though.


Consider support the new status of "Abandoned"

Per a recent merged PR https://github.com/ethereum/EIPs/pull/2051

It is supported. Was added by #4.


Claim Python3 support in Trove

Updates https://github.com/googleapis/packman/issues/88

Current coverage is 91.23% (diff: 100%)

Merging #124 into master will not change coverage

@@             master       #124   diff @@
==========================================
  Files             3          3
  Lines           719        719
  Methods         150        150
  Messages          0          0
  Branches        116        116
==========================================
  Hits            656        656
  Misses           63         63
  Partials          0          0

Powered by Codecov. Last update 609f6f0...838a9e9


Integration Test - Release - 2022/01/10 10:07:28

Auto create for integration test. IssueCommandFlow

#pri1

Just type '#pri3'

#pri2

#pri3

#assign PRMergerTest1

#assign NonAllowedUser

The following users don't have valid GitHub IDs, or are not collaborators on this repo: nonalloweduser

#reassign PRMergerTest2

#reassign NonAllowedUser

#please-close

The following users don't have valid GitHub IDs, or are not collaborators on this repo: nonalloweduser

GitHub user PRMergerTest2 has been removed from the MicrosoftDocs organization, so they were automatically removed as an assignee.

#unassign PRMergerTest1

#unassign NonAllowedUser


ARM Compilation

Hi @koide3 ,
Thank you for contributing a lot in scan matching field. I just want to ask something about the compilation part. As I tested, it works well with x86 processor. Does this parallelism and faster computation with openmp works also in arm architecture?
Thank you.

I've not done comprehensive tests on ARM, but I confirmed that it works well on a Jetson Orin at least.


ParameterEncoding.swift how to override the subDelimitersToEncode

[x] I've read, understood, and done my best to follow the *CONTRIBUTING guidelines.

What did you do?
I have a hashed String which can contain '/' and this should be encoded.
Is there a possibility to Override this to set the subDelimitersToEncode which I need?
What did you expect to happen?
'/' UrlEncode to %2F
What happened instead?
'/' is not encoded
Alamofire Environment
Alamofire version: 4.7.0
Xcode version: 9.2
Swift version: 4.0
Platform(s) running Alamofire:
macOS version running Xcode: 10.13.3

Right now the only way to change this encoding is to create your own ParameterEncoding that does the custom url encoding. Alamofire's behavior is based on RFC 3986, which states that / should not be escaped for URL queries. Creating your own ParameterEncoding that duplicates the functionality of URLEncoding except for the escaping should be straightforward. Or you can encode your string before passing it to the request.


ci/lint: simplify used used tools & code cleaning [wip]

Before submitting

[ ] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[x] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure to update the docs?
[ ] Did you write any new necessary tests?

What does this PR do?
replace particular tools with Ruff's rules and run fixing...
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

Let's close for now


CI - reduced report new structure

Motivation
To introduce have better reports we want to enrich the current ReducedReport format.
In addtion, we want to provide a schema.json for the reduced flow as well as better types.
Furthermore we try to clean up the processing and remove the relation to lighthouse logic
ReducedReport
Properties:

result - user flow result

name - Title derived from ?? e.g. test run
time - Time of run e.g. Date/Time: 2022-11-03 15:06
steps - ReducedStep[]

assertions - assertion results

budgetAssertion - Budget assertion block (optional)
baselineAssertion - Baseline assertion block (optional)

configs - Lighthouse config object e.g. {settings: {onlyCategory: 'performance'}}

viewport - Dimensions
network - Network Throttling
cpu - CPU Throttling
budget (optional)
base - BaselineComparison (optional)

Type:
type ReduceReport {
  result: {
    name: string,
    date: string,
     steps: ReducedStep[]
  },
  config: {
    viewport: `????`,
    network: `????`,
    cpu: `????`,
    budget?: Budget[],
    baseline?: ReducedStep[]
  }
}

Configurations

View-port
Network Throttling
CPU Throttling

mobile
Fast 3G
4x


B-21393 Integration Follow Up

B-21393
Part 1
Summary
Update the allowable weight field on the PPM shipment to be used when calculating all PPM closeout values when the allowable weight is less than the net weight.
In this PR for this backlog:

Updated the ppm_closeout and ppm_estimator services to use the shipment's allowable weight if that is less that the net weight.
Removed unused and untested UI component for the SC to edit the net weight of a shipment (became unused in B-18163)
Updated some test shipments that have been submitted for closeout to populate the allowable weight field.
Fixed some pre-existing copy & paste issues and typos.

In the Part 1 PR for this backlog:

Moved the allowable weight column from weight_tickets to ppm_shipments to that there is one consolidated allowable weight per shipment rather than one per trip.
The initial allowable weight is now calculated when the customer submits their PPM for closeout rather than in the UI as the SC opens each weight ticket.
The new allowable weight is editable by the SC when reviewing weight tickets.
New allowable weight field is used to calculate GCC rather than the sum of the allowable weights of the shipment's weight tickets

Verification Steps for the Author
These are to be checked by the author.

[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] Have the Agility acceptance criteria been met for this change?

Verification Steps for Reviewers
These are to be checked by a reviewer.

[ ] Has the branch been pulled in and checked out?
[ ] Have the BL acceptance criteria been met for this change?
[ ] Was the CircleCI build successful?
[ ] Has the code been reviewed from a standards and best practices point of view?

Setup to Run the Code

Instructions for starting storybook
Instructions for starting the MilMove application
Instructions for running tests

How to test
To recreate the real-world scenario where these changes will be used, we'll be creating two PPMs whose total weight will exceed the service members weight allowance. On the second PPM the counselor will set the allowable weight so that Shipment1.NetWeight + Shipment2.AllowableWeight <= ServiceMember.WeightAllowance. Feel free to use slightly different values that those listed below as long as you end up in the same scenario. The values below are arbitrary.

Access the customer app, create an Air Force service member (branch probably shouldn't matter).
Use JB Charleston, SC 29404 as your current location.
Use Scott AFB, IL 62225 as your new location.
Select O-4 as your pay grade, save.
Click on set up your shipments.
You should have a weight allowance of 14,000lbs.
Create a new move with at least two PPMs. Both should have a origin zip of 29404 and a destination zip of 62225.
This shouldn't matter but I set my estimated weights to 7,000lbs each.
Submit both moves.
Login as a Services Counselor and approve the move.
Log back in as your original customer and upload weight tickets for both shipments. At least one of the shipments should have two weight tickets to verify the weights are consolidated accurately. I set one shipment to a net weight of 7,000lbs and the other to 8,000lbs. Submit both for closeout.
Log back in as a Services Counselor and review the documents for the 7,000lbs shipment. Approve the weight ticket(s). Take note (a screenshot) of of the Incentives/Costs and Incentive Factors values. Approve the shipment.
Review the documents for the 8,000lbs shipment. The default allowable weight should be 8,000lbs (the net weight). Set it to 7,000lbs (so the total across both shipments does not exceed the service members weight allowance).
Approve the weight ticket(s). Take note (a screenshot) of of the Incentives/Costs and Incentive Factors values.
The values for both the 7,000lbs shipment and the 8,000lb shipment with a 7,000lbs allowable weight should be the same.

To be added:
Screenshots of the values for identical shipment created in main to compare.
No UI changes in this follow up so no ANDI review will be necessary.
Frontend

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, Edge).
[ ] There are no new console errors in the browser devtools.
[ ] There are no new console errors in the test output.
[ ] If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.
[ ] This change meets the standards for Section 508 compliance.

Backend

[ ] Code follows the guidelines for Logging.
[ ] The requirements listed in Querying the Database Safely have been satisfied.

Database
Any new migrations/schema changes:

[ ] Follows our guidelines for Zero-Downtime Deploys.
[ ] Have been communicated to #g-database.
[ ] Secure migrations have been tested following the instructions in our docs.

Screenshots

Warnings

:warning:
This PR does not include changes to unit tests, even though it affects app code.

  Generated by :no_entry_sign: dangerJS against 019ec437ffd844edea4215754a2243fde1d9d7b6

Warnings

:warning:
This PR does not include changes to unit tests, even though it affects app code.

  Generated by :no_entry_sign: dangerJS against 9cea2dde6a6f2066fb0a9da78b020f85a439c602


Touch events

Are there plans to support fastclick touch devices?
Right now in order to show a tooltip the user has to touch and hold (which emulates the mouse events).
I need to add support for displaying the tooltip on touchstart on an application that uses react-tooltip. @wwayne Before starting coding and sending a PR that could be merged back into this project I'd like to know if you had suggestions on what the correct UX would be.

@bermi This component has an attribute called event which can set the way of show/hide tooltip by Click, I don't know if this is what you need.
Also, I supposed that you would like to show the tooltip by clicking the screen first, then the tooltip can hidden by itself after a period of time. If so, you can use delayHide

Thanks for the info about "data-event" @wwayne, you should probably change "customer event" on the readme to "custom event", that got me confused initially :)
Anyhow I believe that the "fastclick" issue we are having with touch and hold might have something to do with our integration of react-tooltip or some other side effects unrelated to this library, since I don't see the same happening on the react-tooltip demo page.


Invalid or missing credentials configuration

When installing the Oracle Identity Manager (OIM), I get all the way through the create, but run into a credentials problem. In the config.sh UI there is a step between "JDBC Test" and "Keystore" called "Credentials". How would one enter these using a model and/or typedef? We see the same issue for the same reasons when attempting to install ODI.
In OIM, these username-password pairs are under the "oim" store with the following keys:

keystore
OIMSchemaPassword
sysadmin
WeblogicAdminKey

####<Feb 26, 2019 3:26:07 PM> <INFO> <DomainCreator> <__create_domain_with_select_template> > <WLSDPLY-12206> <Closing templates for domain oim_domain>
com.oracle.cie.domain.script.ScriptException: 60456: Invalid or missing credentials configuration.
60456: The credentials configuration in your domain is invalid.
60456: Correct the configuration.
64014: The required property is missing.
64014: Invalid property "Username" of Credential: value "" is invalid. The property value is required.
64014: Provide property value.
...
####<Feb 26, 2019 3:26:08 PM> <SEVERE> <create> <main> <WLSDPLY-12409> <createDomain failed to create the domain: Failed to write domain to /home/oracle/oim_domain: > wlst.writeDomain(/home/oracle/oim_domain) failed : Error writing domain:
60456: Invalid or missing credentials configuration.
60456: The credentials configuration in your domain is invalid.
60456: Correct the configuration.
64014: The required property is missing.
64014: Invalid property "Username" of Credential: value "" is invalid. The property value is required.
64014: Provide property value.>

Aside, this is a wonderful project and has the potential to save me everyone tons of time. Nice job!

I am looking for some input regarding OIM.  It is possible to support OIM in WDT creation.  There are some keystore values need to be set before the domain is written to the disk and the data can be introduced in the model.
In the OIM domain you are trying to create, do you have anything else configured differently from what's out of the box.  For example, default collocated OIM has soa_server1, oim_server1.  Do you usually change it to be clustered by adding more servers and do you any other customization or deployed apps to the domain (other than the oim policy, security data which I believe is in the database).

Out if the box and on first pass I try to build the two servers and two clusters from the template. If I run the install from config.sh I get two clusters, one for each server. So I have been setting up my YAML the same way. Pretty much next-next-finish domain so far.

Thanks, what versions of OIM you are testing against ?

<IP_ADDRESS>.0 as of a month ago.
On Tue, Apr 30, 2019, 14:17 Johnny Shum<EMAIL_ADDRESS>wrote:

Thanks, what versions of OIM you are testing against ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/oracle/weblogic-deploy-tooling/issues/262#issuecomment-488099491,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB4JC3HLZFOFMVZ4ZUZC7LPTCSNTANCNFSM4G2NGB2A
.

Thanks,  I have an experimental branch testoim and it can create a oim domain (or soa),  discovery has not been completed yet, but you are welcome to give it a try and give me feedback - I am not familiar with oim, so I am not sure the created domain is correct and can be used.
You can clone the project and switch to the branch
git checkout testoim
mvn -DskipTests -Denforcer.skip clean install
The wdt zip file will be under installer/target
To create an oim domain, you can
/createDomain.sh -oracle_home  <your 12213 mw home> -domain_type OIM -domain_home /tmp/simpleoim -model_file /tmp/simple-oim.yaml -run_rcu -rcu_prefix TESTOIM -rcu_db localhost:1521/pdborcl
Here's a sample model file I use:
domainInfo:
AdminUserName: 'weblogic'
AdminPassword: 'welcome1'
ServerStartMode: 'prod'
OIMCredentials:
oim_keystore_user : 'weblogic'
oim_keystore_password : 'welcome1'
oim_schema_user : 'weblogic'
oim_schema_password : 'welcome1'
oim_sysadmin_user : 'weblogic'
oim_sysadmin_password : 'welcome1'
oim_weblogic_admin_user : 'weblogic'
oim_weblogic_admin_password : 'welcome1'
ServerGroupTargetingLimits:
'SOA-MGD-SVRS': ['soa_server1', 'soa_server2']
'OIM-MGD-SVRS': ['oim_server1', 'oim_server2']
topology:
Name: simple_domain
SecurityConfiguration:
NodeManagerUsername : 'weblogic'
NodeManagerPasswordEncrypted : 'welcome1'
Cluster:
soa_cluster:
MulticastTTL: 1
oim_cluster:
MulticastTTL: 1
Server:
    AdminServer:
        ListenAddress: myaddress
        ListenPort: 7001
        Machine : machine1
    soa_server1:
        Cluster : soa_cluster
        ListenAddress: myaddress
        ListenPort: 8001
        Machine : machine1
    soa_server2:
        Cluster : soa_cluster
        ListenAddress: myaddress
        ListenPort: 8003
        Machine : machine1
    oim_server1:
        Cluster : oim_cluster
        ListenAddress: myaddress
        ListenPort: 8101
        Machine : machine1
    oim_server2:
        Cluster : oim_cluster
        ListenAddress: myaddress
        ListenPort: 8103
        Machine : machine1
Machine:
    machine1:
        NodeManager:
            ListenAddress: myaddress

No response from user, closing for now


SpeechToText recognizeMicrophone() only works with Basic Authentication

A customer encountered the following issue:
We are developing the iOS App with SpeechToText using swift-sdk(*).
(*): https://github.com/watson-developer-cloud/swift-sdk

Our SpeechToText service give us the API Key and the IAM URL.
So, we use the API and URL on swift code, but SpeechToText cannot be authorized.
The error is below.
This error occurs when "speechToText.recognizeMicrophone" method executes.

***
Error Domain=com.ibm.watson.developer-cloud.SpeechToTextV1 Code=0 "Invalid authenticaion method format." UserInfo={NSLocalizedDescription=Invalid authenticaion method format.}
***

What should we do to solve this problem?

Swift / MacOS version...

$ swift -v
Apple Swift version 4.1.2 (swiftlang-902.0.54 clang-9<IP_ADDRESS>)
Target: x86_64-apple-darwin17.4.0
/Applications/Xcode.app/Contents/Developer/usr/bin/lldb "--repl=-enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -color-diagnostics"

I looked through the source code and noticed that the recognizeMicrophone() method is only accepting basic authentication for connection with the Speech to Text service. This is leftover from a much older version of the SDK.

:tada: This issue has been resolved in version 0.38.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Register Page

⚠ Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find similar feature request

🏷 Feature Request Type
UI Feature
🔖 Feature description
Make a registration page on monitoring. So that other people can register too.
✔ Solution
Add a Registration page for other people.
❓ Alternatives
No response
📝 Additional Context
No response

Personally I think that this would not be a good idea. If we allow people to register then they would be able to create monitors, something which only an "admin" should be able to do. By providing a registration page, you would not have any control over who creates an account and as such can create monitors and alike. If you just want to for people to see the status of monitors, you should add them to a status page where they would be publicly available.

Hello


Adding default and required struct tags

Adds functionality to specify if a field should either be required and/or should have a default value.

@dan9186 This look pretty close to what  I feel is missing.

I can do a full review and testing on Thursday, since its going to take time to figure out how many other issues this closes out.

+1 for required environment variables :)


⚠ Processors has degraded performance

In 95d6a19, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 46 ms

Resolved: Processors performance has improved in d9a9948.


Gem::Specification#rubyforge_project= is deprecated with no replacement

Received the following message during a bundle install....

NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01.
Gem::Specification#rubyforge_project= called from /usr/local/bundle/bundler/gems/mongoid-rspec-e8fcc17be493/mongoid-rspec.gemspec:18.

please PR a fix?

please PR a fix?

Will do!


"Channel name is taken" error is returned inappropriately

"Channel name is taken, please pick a different one" UI error is given for any error that is raised in StreamiumProvider.init from $scope.submit.
I'm happy to push up a fix for this today.

fixed in https://github.com/streamium/streamium/pull/130


[FIX] Possible fix for CI fail issue

https://github.com/hossain-khan/github-stats/actions/runs/3108652360/jobs/5038082757
> Task :testClasses

2 tests completed, 2 failed

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/runner/work/github-stats/github-stats/build/reports/tests/test/index.html

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 13s
> Task :test FAILED

ClientTest > given timeline response - parses timeline into timeline events() FAILED
    java.io.IOException at :-1
        Caused by: java.io.IOException at RealCall.kt:530

ClientTest > given empty timeline response - provides empty timeline events() FAILED
    java.io.IOException at :-1
        Caused by: java.io.IOException at RealCall.kt:530
11 actionable tasks: 9 executed, 2 up-to-date
Error: Process completed with exit code 1.

Still failing on same error log.txt
> Task :test

ClientTest > given timeline response - parses timeline into timeline events() FAILED
    java.io.IOException at :-1
        Caused by: java.io.IOException at RealCall.kt:530

ClientTest > given empty timeline response - provides empty timeline events() FAILED
    java.io.IOException at :-1
        Caused by: java.io.IOException at RealCall.kt:5[30](https://github.com/hossain-khan/github-stats/actions/runs/3108733601/jobs/5038252801#step:7:31)

2 tests completed, 2 failed

> Task :test FAILED
11 actionable tasks: 9 executed, 2 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/runner/work/github-stats/github-stats/build/reports/tests/test/index.html

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org/

BUILD FAILED in 16s
Error: Process completed with exit code 1.


Make some properties of Event nullable

Since they are optional, like Event#place, Event#localDateTime (not to be confused with Event#deadline, cf. #4).

[ ] Make fields optional
[ ] Add asterisk (*) to optional form inputs.

We just got rid of these properties. If additional information needs to be provided it can be done so by using the description.


Async + performance

Add 2 new functions: async_array_init and try_async_array_init
Improve performance of existing functions

(This is in my queue btw, I just don't have time to review right now, sorry. Will get to it eventually.)


insert_at doesn't seem to be working in ActiveRecord callback (Rails 4.2)

Trying to reorder a list inside of an after_create callback doesn't seem to do any reordering.  I created a little example with an rspec test in it.
https://github.com/jasonsof/acts-as-list-example
Is this normal, or am I doing something wrong here?

Hi Jason, There's an option you can pass to your acts_as_list call `:add_new_at => :top which should do what you're trying to do. It's not documented I don't think, but the code is here:
https://github.com/swanandp/acts_as_list/blob/master/lib/acts_as_list/active_record/acts/list.rb#L38

Thanks Brendon, that option was exactly what I needed!

You're welcome :) I've found altering the current record in after_creates
is always a hassle. There always seems to be some unforeseen consequence.
Better to override the attribute setter or something like that instead (not
in this case though!).
Brendon Muir
On Fri, Jan 16, 2015 at 11:08 AM, Jason<EMAIL_ADDRESS>wrote:

Thanks Brendon, that option was exactly what I needed!
—
Reply to this email directly or view it on GitHub
https://github.com/swanandp/acts_as_list/issues/150#issuecomment-70286171
.


⚠ ClamAV has degraded performance

In 59e1008, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 51 ms

Resolved: ClamAV performance has improved in b8820a2.


Update or remove axios from LTI tools

Opencast's LTI tools require the axios JavaScript library in an old version and simply updating does not seem to work:
See #5288
We should take a look into updating axios or, even better, removing it and replacing it with JavaScript's native Fetch API.
You can run the LTI tools separately from Opencast like this:
❯ cd modules/lti/
❯ npm ci
❯ ./copy-translations.sh
❯ npm run start

@lkiesow I can try to refactor it to fetch if you can assign it to me


Identityserver on AKS using Nginx, Let’s encrypt and https

For reference: https://stackoverflow.com/questions/52775332/identityserver4-behind-nginx-with-https-letsencrypt-in-aks-azure-kubernetes
I get an infinite loop only in Edge, IE and Safari. Strange thing is: Chrome and Firefox work. I have deployed behind Nginx in an AKS cluster in Azure. We are moving from Service Fabric (where identityserver just works fine) to AKS and I’m currently testing identityserver in AKS to get one of our mvc apps, also hosted in AKS to login.
I’m frying my brain over this issue for the last few days... using path routing instead of hostname routings. So https://domain.nl/authenticationservice and https://domain.nl/mvcclient
Http works in all browsers, when using https infinite loop in Edge, IE and Safari.
What are the requirements regarding cookie settings, headers and such for identityserver. If I know this, I can diagnose the problem in more detail.
Thank you in advance,
Kind regards,
An identityserver enthousiast and user since prerelease version based on prerelease of .net core 1.0☺

Dumb question... are you forwarding all headers, etc. from nginx to identityserver4?
In this case, although this does indeed sound more like a config issue rather than an identityserver4 issue, it may make sense, if willing, to have reference somewhere what your nginx settings are, etc.
This, as a PoC, seems to be working fine with Docker Swarm... https://github.com/dealproc/AspNetCore.Identity.MongoDB/tree/master/samples/IdentityServer/source/NginxProxy .. so.. ymmv, but see how it compares/contrasts with what you have.

i'm relieved to be able to say that i have fixed the problem. After i did a fresh install of a new AKS cluster and tryied once more to get Let's Encrypt working using the standard addon-http-routing, which i got working, i tried and tried and finally thought: why is my redirect to /signin-oidc registering as HTTP/2 in Edge and IE. This turned out to be the main part of the problems i had last week.... anyway: I did some research and figured out how to update some parts of the configuration to the built-in ingress controller (addon-http-routing). for anyone experiencing a signin-oidc loop when using AKS (Azure Kubernetes Service). You can overwrite the configuration for the standard http routing addon provided in AKS and disable http/2 manually (enabled by default!).
Because i got a bit frustrated by the fact that there was little information on the web for configuring an AKS cluster on Azure in combination with Let's Encrypt and addon-http-routing & because i couldn't find any information on deploying IdentityServer4 in an AKS cluster in Azure. I cooked up some .yaml files (all files i used to get everything up and running), expanded them with comments and published them for anyone wanting to host IdentityServer4 securely in an Azure Kubernetes Service.
This is my first, although small, public contribution ever. If anyone has problems implementing my .yaml files using my rudimental Readme.txt: please let me know and i will see what i can do.
https://github.com/leonvandebroek/Identityserver4-deployments/tree/master/Azure%20Kubernetes%20Service

Thanks very much for this. very useful!

We managed to make it work with http2 using the following settings:
    proxy-buffer-size: "128k"
    proxy-buffers: "4 256k"
    proxy-busy-buffers-size: "256k"
    large-client-header-buffers: "4 16k"
    client-header-buffer-size: 64k
    http2-max-field-size: 16k
    http2-max-header-size: 128k
    large-client-header-buffers: 8 64k

@Vandersteen how did you apply those settings? Annotation? ConfigMap? Please provide sample...thanks

@eaba Look for nginx-configuration in configmap (for quay,io nginx version)


Issues with Host template on FireEdge and Sunstone

Description
Facing several issues with the Hosts page and Host creation after upgrading to 6.10 in both Sunstone and FireEdge. Had similar issues with Sunstone in 6.8.3 (not in FireEdge), a patch was provided.
Details

Affected Component: [ RSunstone, FSunstone]
Hypervisor: [ KVM ]
Version: [ 6.10, development]

Progress Status

[ ] Code committed
[ ] Testing - QA
[ ] Documentation (Release notes - resolved issues, compatibility, known issues)

The onehost CLI tool will also need en equivalent patch


debug library not working in conjunction with amqplib (rabbitmq)

We run our app in two "modes":

Our REST API (express js)
Our background processor (amqplib)

Our REST API that starts using nodemon runs completely fine with debug, however our background processor does not work with debug.
We declare DEBUG=app:* in our .env file and yes, we do see it when we console log but for some reason when we do the following, nothing reports when running our background processor.
We do see that one of amqp's dependencies called bitsyntax uses debug. I am wondering if it does anything to turn off debug but cannot find anything in their code that does that.
Are there any troubleshooting steps that I can take to resolve this problem?
import amqp from 'amqplib/callback_api'
import dotenv from 'dotenv'
import debug from 'debug'

const testLog = debug('app:worker')

const rabbitmq =<EMAIL_ADDRESS>console.log(process.env.DEBUG) // app:*
const worker = () => {
  try {
    amqp.connect(rabbitmq, (err, conn) => {
      // ...
      testLog('this does not show up')
      console.log('this does show up')
      // ...
    })
  } catch (err) {
    // ...
  }
}

worker()

After doing some hunting, on workers the following code needs to be enabled:
debug.enable(process.env.DEBUG)

It is helpful

It happens debug because does not recognize dotenv while it's configured even before loading the debug package!
debug/src/node.js: line 157
function load() {
  console.log(process.env.DEBUG);     // undefined
  return process.env.DEBUG;
}

There isn't much I can do about this. debug reads the environment variable just like any other package does. Please open an issue with dotenv if you think that's the issue.

I've done several tests about it, I found that when you use imports, all import calls are asynchronous, so when another library already imports debug, it will catch ENV variables BEFORE dotenv has a chance to redefine them.
Here is an example:
import { config } from 'dotenv'

config()

import { another_function } from 'another_lib_that_uses_debug'

that code is not working because the imports are asynchronous and are executed before main module.
So I've done a little modification to my code:
import('dotenv')
  .then(({config}) => config())
  .then(() => {
    const { another_function } = await import('another_lib_that_uses_debug')
    // ... rest of the code for index.js
  })

That works correct and let dotenv do its magic.


brew receipe for<EMAIL_ADDRESS>

Hi @brikis98,
Terraform publishes 2 different receipes of terraform to homebrew: terraform and<EMAIL_ADDRESS>What do you think of publishing a<EMAIL_ADDRESS>version to homebrew in order to ease working at the same time with both terraform/terragrunt combinations?

Homebrew does not support packaging versions that are no longer actively maintained, and we don't really have an intention to support it going forward. See the discussion in https://github.com/Homebrew/homebrew-core/pull/43337.
With that said, you can use the approach described here (https://blog.gruntwork.io/installing-multiple-versions-of-terraform-with-homebrew-899f6d124ff9) for managing multiple versions of terragrunt, or tgenv.

I see...
Well of course I came up with my solution to have both latest terragrunt/terraform releases as well as fixed terragrunt<EMAIL_ADDRESS>legacy releases.
I just find a bit of a shame that having a<EMAIL_ADDRESS>recipe in Homebrew, we don't have a<EMAIL_ADDRESS>version to ease the install while big projects are being migrated.
Because after all, what is "active support" of a wrapping tool that will have no additional features and is fixed to a specific release of terraform?
Someone could as well have answered that there was a will to provide support and the recipe might be in Homebrew now.
I did contribute a few PRs and discussions here and I fully grasp the meaning of "community help required". We are a lot to use Terragrunt along with terraform and I'd been willing to help for the sake of having a formula.
Anyway, no big deal though. Nothing prevents anyone to install any version of terragrunt without the need for Homebrew 😄.
Thanks for taking the time to respond, we'll continue our path with tiny wrappers over tiny wrappers.


Use repetitions instead of loadindex

What is the necessity of this update? What is updated?
Use repetitions instead of loadindex.
How did you do the test? (Not required for updating documents)
Tested in TestDoublePrimitiveColumn.

LGTM


Third Contribution by Devansh Raizada

Recently one of my pieces was selected for a geo-political magazine I'm leaving the piece below-
The sweet spot of Indian diplomacy
Today in the 21st century, we can see the world getting divided into two very evident groups just like in the Cold War Era. There is the USA & its allies or the liberal world on one side and Russia-China Nexus with its allies on the other side. But as Indians, we identify ourselves in neither of the two camps. Why is it so?? When all the major nations are on one side or the other. This is exactly what's known as the sweet spot of Indian diplomacy.
India is the only major military and economy in the world which enjoys such great relations with the so-called West, that the USA describes India as their biggest partner in the 21st century and Russia calls India a true friend and an independent great power that this world needs. It's absolutely astonishing to see how this new India which once use to be a people-pleaser on the world stage has become completely fearless to the extent that its foreign minister says sitting in Europe "Europe has to grow out of the mindset that Europe's problem is world's problem but world's problem is not Europe's problem" and the Indian P.M said sitting in front of the Russian president "It's not the Era of war".
In a world where the USA, the sole superpower of the world openly says you are either with us or against us also makes exceptions for India. One of these cases was the CAATSA waiver for the purchase of the S-400 air defense system when they didn't even forgive their NATO ally Turkey on the same issue. India is the only country that has active participation in East predominant groups like BRICS and SCO and Western groups like the QUAD and is a common guest in the G-7. No other country can even think about even coming close to this. Such has been Indian diplomacy in recent times that the former P.M of arch-rival Pakistan Imran Khan also couldn't help himself in singing praises of the great and independent foreign policy of India when faced pressure from the USA on the Ukraine issue.
But all of this is not because the world has suddenly developed interest in Indian street food. There is a very famous saying and the very basis of foreign policy "There are no permanent friends just permanent interests" and India's case is no different. India is currently the 5th largest economy in the world and is on course to be the 3rd largest by 2030 according to IMF. It's also the fastest-growing major economy in the world. India has the largest workforce of young and fresh legs in the world where the western world is aging overall India is still very much relatively young. The Western world knows that India is their greatest ally against their biggest rival China. India is a huge nuclear country with a huge physical border with China. India is the solution to all their China problems. Too much manufacturing dependency on China's cheap labor, India is your solution. China is the largest socialist country in the world, India is the largest democracy in the world. When it comes to the Russia-China nexus or the Eastern world Russia has long-standing deep relations with India. Not only is Russia the largest arms exporter of India but has deep partnerships in the field of science, space, international cooperation, etc. Russia has come even closer to India in recent times after the new western sanctions and the trade volume between the two grew exponentially reaching $50 billion much of which is the energy exports of Russia to India which provide cheap discounted oil to India and much-needed cash flow to Russia. India hasn't had normal relations with China but they also understand that if India joins hands with the West it would be a blunder. China has also realized that its bet on Pakistan a failed state is not paying off, which is a bitter pill that the USA has already swallowed. We can also not forget the fact that the Indian diaspora is the largest and is quite influential.
Moreover, India has great relations with the developing world. India has emerged as a leader and voice of the developing world. Which got formal recognition as India hosted the first summit "Voice of the global South". India was the only country to donate huge amounts of quality vaccines to the poor and small countries of the world initially when they needed them the most under "Vaccine Maitri" while the western world was busy stock pilling up to 5 times their population's stock and China was providing inefficient low-quality vaccines. India displayed great leadership skills.
India is a shining star on the global stage and is enjoying a sweet spot perfectly balancing between the Western and Eastern worlds. India needs all of this for experiencing the rapid rise it's witnessing. As result, India is continuously experiencing growth in stature on the world stage. And this growth is expected to continue this year as well with India hosting SCO, QUAD, and G-20 summit.

@arliss-NF @SavannahSimons, Kindly review my third contribution, Thanks!!!

@arliss-NF Thank you so much for the review. Really appreciate the hard work you're putting in for us.


Expose Label3D and Sprite*3D material render priority properties.

Implements https://github.com/godotengine/godot-proposals/issues/4468
Exposes material render priority properties, to allow stacking sprites and labels with the pre-defined order and avoid z-fighting.
Two labels with the different outlines and sprite stacked together, in a normal and billboard mode
https://user-images.githubusercontent.com/7645683/166099075-ed28c89d-4885-4703-9863-4dc7d5442072.mov

Thanks!


Python for dummies

Which book/resource would you recommend as start in Python?

I used:
https://www.amazon.co.uk/Learning-Python-Mark-Lutz/dp/1449355730/ref=sr_1_1?crid=259C93RFEGVG1&keywords=python+lutz&qid=1562514676&s=gateway&sprefix=python+lu%2Caps%2C161&sr=8-1
Heavy, but worked perfectly for me to organize all my practical knowledge and put it all together.

The on I had for my class in school: https://www.brianheinold.net/python/A_Practical_Introduction_to_Python_Programming_Heinold.pdf

https://media.licdn.com/dms/document/C561FAQHmOPiWG6LNhQ/feedshare-document-pdf-analyzed/0?e=1575352800&v=beta&t=JZ2OL-otJPvdKuvZOenEbfCXnMCPiyE3_V_YQ9z7PQs

Check this out. https://dbader.org/

https://realpython.com/free-courses-march-2020

Python Blog in Azeri: https://medium.com/@hasanjafarov/python-dərsləri-40641a7730b6


name functions always returns strings

Codecov Report

Merging #66 (83089f7) into master (944d251) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #66      +/-   ##
==========================================
+ Coverage   89.70%   89.74%   +0.03%
==========================================
  Files          17       17
  Lines        2545     2545
==========================================
+ Hits         2283     2284       +1
+ Misses        262      261       -1

Impacted Files
Coverage Δ

src/named_systems2.jl
88.37% <100.00%> (ø)

src/canonical.jl
98.59% <0.00%> (+1.40%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


[Release] Windows verification failed

https://github.com/apache/arrow-adbc/actions/runs/3776184335/jobs/6419308597

I forgot to implement the non-local path :(


ECMPS Help/Support - Responsiveness

We want to "provide a usable view of ECMPS at all resolutions above 480 px" while ensuring that priority resolutions of 1024 px and above render correctly.
Responsiveness Wireframes: https://xd.adobe.com/view/8eb81d1f-a9de-4d77-a0e3-dfba5fb75b7b-dbeb/

Test Case: TC378

Test Passed


Apexmalhar 2181.cassandra upsert operator

@sanjaypujare , @ashwinchandrap :  Guess the features that we targetted for are passing all unit tests in my local environments and hence ready for a review.

Will reopen after fixing few aspects.


Can't login using emulator: ionic + angular + android + google/facebook

When I run my app using "ionic serve" everything works fine... but when I run using "ionic emulate android" I see the following screen:

My app.js code is:
if (ionic.Platform.isIOS() || ionic.Platform.isAndroid()) {
    $authProvider.cordova = true;
    $authProvider.platform = 'mobile';
    commonConfig.redirectUri = 'http://localhost/';
  }

  $authProvider.facebook(angular.extend({}, commonConfig, {
    clientId: 'FB_ID',
    url: ApiEndpoint.url +'/auth/facebook'
  }));

  $authProvider.google(angular.extend({}, commonConfig, {
    clientId: '<GOOGLE ID>',
    url: ApiEndpoint.url +'/auth/google'
  }));

And the plugins enabled are:

cordova-plugin-inappbrowser 1.4.0 "InAppBrowser"
cordova-plugin-keyboard 1.1.4 "Keyboard"
cordova-plugin-splashscreen 3.2.2 "Splashscreen"
cordova-plugin-statusbar 2.1.3 "StatusBar"
cordova-plugin-whitelist 1.2.2 "Whitelist"

I've seen a few tricks to solve this in other issues but nothing worked here... am I missing something?

+1 on this issue. I Have the same problem. I was using 0.14.2 version and it was working fine. With the new version upgrade it stopped working.

+1. Same problem only with Google, Facebook connect works well.

I solved the problem here downgrading it to version 0.14.1


FetchXml limitations

It is not clear from the article if the limitations in terms of rows returned of fetchXml apply. Is the data factory automatically managing paging?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 304d4c46-c0ac-05c9-15eb-d8b677ec5e90
Version Independent ID: 36a79d36-2b72-2722-68e5-e167f9a2cd41
Content: Copy data in Dynamics (Common Data Service) - Azure Data Factory
Content Source: articles/data-factory/connector-dynamics-crm-office-365.md
Service: data-factory
GitHub Login: @linda33wj
Microsoft Alias: jingwang

@nferdinandova - Thanks for the question. I am moving it to content author to review and share the thoughts.
@linda33wj - Can you please take a look?

Is it possible to receive an answer by the author?

Thanks for your feedback and sorry for the delayed response. There is no limit on # of rows to be copied. Connector manages the paging automatically.
#please-close

Thanks for your feedback and sorry for the delayed response. There is no limit on # of rows to be copied. Connector manages the paging automatically.
#please-close


Google visualization version number defaults to 1.0

According to Google Developer Doc, the default version should be 1.0.

/cc @winston

:+1:


Jenkins HTML report shows garbled data after consuming Kubescape generated HTML file

Describe the bug
My Setup
Run Kubescape on jenkins and view the HTML report  by using
`kubescape scan --format html --output report.html'
Environment
OS: Ubuntu 22.04 LTS
Version: the version that Kubescape reports when you run kubescape version
Your current version is: v2.0.172

Steps To Reproduce
Steps to reproduce the behavior:

Go to Jenkins
Create Job
Scroll down to 'Pipeline' and select Pipeline script
Use the below stage

publishHTML(         [             allowMissing: false,              alwaysLinkToLastBuild: false,              keepAll: true,              reportDir: '.',              reportFiles: 'report.html',              reportName: 'Report'         ]     )
Expected behavior
HTML report in Jenkins should not show garbled data
Actual Behavior
HTML report shows unformatted data
Additional context
Add any other context about the problem here.

@dwertent

@biacharj Can you please elaborate? How was Kubescape executed in the pipeline?

switch to the context(cluster) and run kubescape scan --format html --output report.html'"*
@dwertent

@Moshe-Rappaport-CA  Thanks for your time and looking into this. appreciate it. All good now!


Error with zend

Using PHP-CPP with my cmake project produces the next errors during building:
Undefined symbols for architecture x86_64:
  "_OnUpdateString", referenced from:
      Php::Ini::fill(_zend_ini_entry_def*, int) in libphpcpp.a(ini.o)
  "___zend_malloc", referenced from:
  ...
  ...
  ...
  "_zend_string_tolower", referenced from:
      Php::LowerCase::LowerCase(_zend_string*) in libphpcpp.a(value.o)
  "_zend_throw_exception", referenced from:
      Php::process(Php::Exception&) in libphpcpp.a(classimpl.o)
      Php::process(Php::Exception&) in libphpcpp.a(callable.o)
  "_zend_unregister_ini_entries", referenced from:
      Php::ExtensionImpl::shutdown(int) in libphpcpp.a(extensionimpl.o)
  "_zend_update_property", referenced from:
      Php::Value::setRaw(char const*, int, Php::Value const&) in libphpcpp.a(value.o)
  "_zend_write", referenced from:
      Php::StreamBuf::sync() in libphpcpp.a(streambuf.o)
ld: symbol(s) not found for architecture x86_64

System: macOS High Sierra 10.13.6
What I've done:

built php from php.net
built php-cpp from this repo
linked php-cpp with my cmake project using target_link_libraries(... phpcpp ...)

Seems like something likezendlib.a was missed during build steps..
Also tried to build php with (--without-iconv --enable-embed), didn't help.
Any ideas?

These are provided by PHP. Are you sure you are compiling a shared library, not an executable?

@mvdwerve thank you fir your help!
Seems like the issue was connected to php.
Found a dirty solution:
Produced libzend.dylib from php sources by myself:

Created CMakeLists.txt inside php/Zend frolder with content:

cmake_minimum_required(VERSION 3.10)
project(zend)
set(CMAKE_CXX_STANDARD 11)
add_library(zend SHARED
        zend_alloc.c
        zend_alloc.h
        #...
        # There should be the list of all *.cpp, *.c and *.h file from php/Zend folder
        #...
)

Built zendlib:

mkdir build
cd build
cmake ..

Copied produced libzend.dylib file to my project
Also, there was an Error referred to php_error_docref while building the project (maybe php versions mismatch)
Commented line
// php_error_docref(NULL, E_NOTICE, "Error while unserializing");
in PHP-CPP/zend/classimpl.cpp
Rebuilt PHP-CPP
Linked PHP-CPP and Zend via target_link_libraries(... phpcpp libzend.dylib ...)

BUT
now getting the next error while building my project:
...
[ 96%] Linking CXX shared library libexample-php.dylib
cp: /etc/php.d: Permission denied
...

Solved:
changed set(PHP_CONFIG_DIR /etc/php.d) to set(PHP_CONFIG_DIR /usr/local/php<version>/php.d) in CMakeLists.txt in my project.


Add crates goldberg, oxide and debugoff

Adding three crates to section "Packing, Obfuscation, Encryption, Anti-analysis":

goldberg: procedural macro library for obfuscating Rust code
oxide: PoC packer written in Rust
debugoff: Linux anti-debugging and anti-analysis rust library

Thanks!


Back-face rendering issue in Chrome 48 on a Nexus 4

I've a screenshot to attach, but I'm on mobile right now...
Updated with screenshot below:

Why did you close this?


Contact Sensor not seen as actual sensor in homekit

Hi i have created a contact sensor which is kinda working but i have two issues.
In the homekit app in IOS 10, i do see it as a contact sensor and it shows the correct state.
but when i go to the automation tab, the option "A sensor detects something" is still grayed out.
i was kinda hoping that once i have one sensor in homekit i could use this.
On the background, the sensor state is read every second, but in the IOS application it's only updated when it's refreshed from the IOS app.
Is there a way to publish the state to all devices, so i see a state change in the homescreen once a door has been opened.
Here is the code of the contact sensor i'm using
var Accessory = require('../').Accessory;
var Service = require('../').Service;
var Characteristic = require('../').Characteristic;
var uuid = require('../').uuid;
var wpi = require('wiring-pi');

var DeurSensorPin=22; //sensor 2 GPIO25
var lastState=0;
// here's a door device that we'll expose to HomeKit
var DOOR = {
  open: false,
  sensor: 0,
  read: function(){
    wpi.setup('phys');
    wpi.pinMode(DeurSensorPin,wpi.INPUT)
    var DeurSensorValue = wpi.digitalRead(DeurSensorPin);
    //console.log('read sensor',DeurSensorValue);
    DOOR.sensor=DeurSensorValue;
    if(DOOR.sensor==0){
       DOOR.open=false;
       if(lastState!=false){
         console.log('door is closed');
         lastState=false;
       }
    }else{
       DOOR.open=true;
       if(lastState!=true){
       console.log('door is open');
       lastState=true;
       }
    }
  },wait: function() {
     var seconds=1;
     var waitTill = new Date(new Date().getTime() + seconds * 1000);
     while(waitTill > new Date()){}
  },
  identify: function() {
    console.log("Identify the door!");
  }
}

// Generate a consistent UUID for our Lock Accessory that will remain the same even when
// restarting our server. We use the `uuid.generate` helper function to create a deterministic
// UUID based on an arbitrary "namespace" and the word "door".
var doorUUID = uuid.generate('hap-nodejs:accessories:contactsensor');

// This is the Accessory that we'll return to HAP-NodeJS that represents our door
var door = exports.accessory = new Accessory('ContactSensor', doorUUID);

// Add properties for publishing (in case we're using Core.js and not BridgedCore.js)
door.username = "AA:BB:CC:DD:EE:01";
door.pincode = "314-00-000";

// set some basic properties (these values are arbitrary and setting them is optional)
door
  .getService(Service.AccessoryInformation)
  .setCharacteristic(Characteristic.Manufacturer, "Door Sensor")
  .setCharacteristic(Characteristic.Model, "Nemef")
  .setCharacteristic(Characteristic.SerialNumber, "1");

// listen for the "identify" event for this Accessory
door.on('identify', function(paired, callback) {
  DOOR.identify();
  callback(); // success
});

door
   .addService(Service.ContactSensor,"Binnen Deur Sensor")
   .getCharacteristic(Characteristic.ContactSensorState)
   .on('get', function(callback) {
    DOOR.read();
    // return our current value
    callback(null, DOOR.open);
});

setInterval(function() {
  DOOR.read()

  // update the characteristic value so interested iOS devices can get notified
   door
    .getService(Service.ContactSensor)
    .getCharacteristic(Characteristic.ContactSensorState, DOOR.open);
}, 1000);

I have the same issue with a DHT-sensor

@madcat-nl
You've forgotten to update the characteristics value with setValue() in your interval:
  // update the characteristic value so interested iOS devices can get notified
   door
    .getService(Service.ContactSensor)
    .getCharacteristic(Characteristic.ContactSensorState, DOOR.open);
}, 1000);

that should be
  // update the characteristic value so interested iOS devices can get notified
   door
    .getService(Service.ContactSensor)
    .getCharacteristic(Characteristic.ContactSensorState)
    .setValue(DOOR.open);
}, 1000);

@snowdd1, Does that work for you?
it still does not push the change to IOS

Well I use homebridge as a wrapper for my plugin, which makes some things a lot easier.
I storing the characteristics in my own objects, but in the end I call
characteristic.setValue(val ? (reverse ? 0 : 1) : (reverse ? 1 : 0), undefined, 'fromKNXBus');
and the reverse thing I just need to reverse true and false in some cases. That works fine in serveral hundred installations as far as I know.
If you start hap with debug options, does it show 'register ContactSensorState for events' or similar, if you open your home app?

You must add the service when you go to query the sensor
`var DOOR = {
open: false,
sensor: 0,
read: function(){
wpi.setup('phys');
wpi.pinMode(SensorPin,wpi.INPUT);
var DeurSensorValue = wpi.digitalRead(SensorPin);
//console.log('read sensor',DeurSensorValue);
DOOR.sensor=DeurSensorValue;
if(DOOR.sensor==0){
DOOR.open=false;
if(lastState!=false){
console.log('door is closed');
lastState=false;
      door
      .getService(Service.ContactSensor)
      .setCharacteristic(Characteristic.ContactSensorState, false )
   }

}else{
   DOOR.open=true;
   if(lastState!=true){
   console.log('door is open');
   lastState=true;

     door
     .getService(Service.ContactSensor)
     .setCharacteristic(Characteristic.ContactSensorState, true )

   }
}

}, `

You must add the service when you go to query the sensor
`
var DOOR = {
open: false,
sensor: 0,
read: function(){
wpi.setup('phys');
wpi.pinMode(SensorPin,wpi.INPUT);
// var DeurSensorValue = wpi.digitalRead(SensorPin);
// console.log('read sensor',DeurSensorValue);
DOOR.sensor= wpi.digitalRead(SensorPin);
if(DOOR.sensor==0){
DOOR.open=false;
if(lastState!=false){
console.log('door is closed');
lastState=false;
      door
      .getService(Service.ContactSensor)
      .setCharacteristic(Characteristic.ContactSensorState, false )
   }

}else{
   DOOR.open=true;
   if(lastState!=true){
   console.log('door is open');
   lastState=true;

     door
     .getService(Service.ContactSensor)
     .setCharacteristic(Characteristic.ContactSensorState, true )

   }
}

},
`

You need to upgrade service with the value of SensorPin
var DOOR = {   open: false,   sensor: 0,   read: function(){     wpi.setup('phys');     wpi.pinMode(SensorPin,wpi.INPUT);    // var DeurSensorValue = wpi.digitalRead(SensorPin);    // console.log('read sensor',DeurSensorValue);     DOOR.sensor= wpi.digitalRead(SensorPin);     if(DOOR.sensor==0){        DOOR.open=false;        if(lastState!=false){          console.log('door is closed');          lastState=false;                   door           .getService(Service.ContactSensor)           .setCharacteristic(Characteristic.ContactSensorState, false )        }     }else{        DOOR.open=true;        if(lastState!=true){        console.log('door is open');        lastState=true;          door          .getService(Service.ContactSensor)          .setCharacteristic(Characteristic.ContactSensorState, true )             }     }   },

You need to upgrade service with the value of SensorPin
var DOOR = {   open: false,   sensor: 0,   read: function(){     wpi.setup('phys');     wpi.pinMode(SensorPin,wpi.INPUT);    // var DeurSensorValue = wpi.digitalRead(SensorPin);    // console.log('read sensor',DeurSensorValue);     DOOR.sensor= wpi.digitalRead(SensorPin);     if(DOOR.sensor==0){        DOOR.open=false;        if(lastState!=false){          console.log('door is closed');          lastState=false;                   door           .getService(Service.ContactSensor)           .setCharacteristic(Characteristic.ContactSensorState, false )        }     }else{        DOOR.open=true;        if(lastState!=true){        console.log('door is open');        lastState=true;          door          .getService(Service.ContactSensor)          .setCharacteristic(Characteristic.ContactSensorState, true )             }     }   },

You need to upgrade service with the value of SensorPin
`//
var DOOR = {
open: false,
sensor: 0,
read: function(){
wpi.setup('phys');
wpi.pinMode(SensorPin,wpi.INPUT);
// var DeurSensorValue = wpi.digitalRead(SensorPin);
// console.log('read sensor',DeurSensorValue);
DOOR.sensor= wpi.digitalRead(SensorPin);
if(DOOR.sensor==0){
DOOR.open=false;
if(lastState!=false){
console.log('door is closed');
lastState=false;
      door
      .getService(Service.ContactSensor)
      .setCharacteristic(Characteristic.ContactSensorState, false )
   }

}else{
   DOOR.open=true;
   if(lastState!=true){
   console.log('door is open');
   lastState=true;

     door
     .getService(Service.ContactSensor)
     .setCharacteristic(Characteristic.ContactSensorState, true )

   }
}

}, `

i have solved this issue by using "When an accessory is controled" it then is possible to connect it to for example an light. so the light is turned on when a door is opened.
The other issue is also solved, i also had a node-red instance open which was polling the sensor.
this probably had some interference.
But it still would be cool to use the "When the sensor detects something", it's grayed out for now.
I also have a humidity and temperature sensor in my bathroom, but it's not possible to use it as a sensor via homekit, other then just showing the raw data. i have used node-red to read the sensor and sends a message every minute via the MQTT, so the house ventilation will kicks in when the humidity is higher then 60%

Hi @madcat-nl, I was wondering if you were ever able to figure out the "when sensor detects something" automation rule. I heard this was a new feature in iOS 11 but I wasn't able to figure it out.
I've got a temperature and humidity sensor connected to homekit but the "sensor detects something" automation is still grayed out. I was able to use the EVE app as a workaround but it would be nice if it was all done via the Home app.
FYI, I use a dht22 sensor via homebridge using this plugin:
https://github.com/NorthernMan54/homebridge-dht

As far as i know and not found in IOS you can't make an action in homekit yet with only temp sensor.. it only works with a thermostat..

@viictor924 I've been messing around with HAP-NodeJS, and @dezral is correct. A temperature sensor doesn't qualify as a sensor that can be used for automation. However, a motion sensor can be used.


fix: v2.5.0 Cannot read property 'Symbol(@angular-devkit/architect:builder)' of undefined

Just upgraded to v2.5.0 of your plugin and running Nx v12.6.5
Got this error right away
> nx run workspace:version
Cannot read property 'Symbol(@angular-devkit/architect:builder)' of undefined

Thoughts?

Hi, thanks for reporting, I'm aware of this issue, it was not caught by the tests unfortunately. I will fix it asap.

A new version<EMAIL_ADDRESS>was released.

@edbzn I am having this same issue on another project, what was the solution?

Should be fixed the Angular devkit is not a dependency anymore. Can you give me more context?

I am trying to fix https://github.com/ngneat/tailwind
And the end to end test give me this error.
So your solution was just not to use the Angular DevKit but use the Nx one instead?

And the end to end test give me this error.

The end to end test? What's the point with semver?

So your solution was just not to use the Angular DevKit but use the Nx one instead?

Should be transparent for you, we are using the Nx devkit instead of the Angular one.
@wSedlacek Can you send me an URL, something I can dig into to debug?

The end to end test? What's the point with semver?

😅 The question was unrelated to semver, however when I searched up the error on Google this issue was literally the only thing I found.
Haha, I think I got it fixed now though, thank you for your help!


Initial commit of all files for todoist noteplan sync

I think I stumbled my way around git to get the updated version pushed for review.  You are correct, I am not familiar with Flow (or that much javascript).  I got it to where the Flow console is not complaining any more, but not sure if that gets everything you want to see fixed.  Let me know what else needs to be done to get the initial release out there.

I’m running it in vscode following your setup guide. I’ll play with the settings. It’s not a big deal as the code still compiles fine, but confused me a little at first. On Aug 19, 2023, at 12:18 PM, Jonathan Clark @.***> wrote:
@jgclark commented on this pull request.
On dbludeau.TodoistNoteplanSync/src/NPPluginMain.js:
No problem -- there's a lot to get used to.
I've turned off TS support in my code editor (VSCode) and I never get any comments about TS. Are you running flow in the editor or from the command line?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

@dbludeau FWIW you can copy/paste each function to chatGPT and ask it to write Flow types and JSDoc. It may not understand the intent of the function, but it will get it 80% right. Will save you a lot of time. And studying the answers will help you learn Flow. :)

Lets try one more time.  If you see some more issues for clean up, a specific example in my code and a specific example of correct code would be a big help.  Flow is very confusing. (@jgclark  I had to laugh.  I had the FLOW coverage toggled off last time, so no wonder I didn't even really know it was complaining)

If this has not been reviewed, I can push up a 0.2 version (or try to figure out how to merge that branch with this one).  It has a couple more commands and a little bit more code organization and reuse.  Its basically ready to go after I pop a couple more JSDocs in there.  Let me know if want to just deal with this and I can push that as a separate pull request or if you want me to combine.

@dbludeau you should be able to push your changes up to this same branch on github and the changes will be reflected in the PR

@dwertheimer changes are commited (so much easier just using the source control in VSCode then trying to mess with the command line).  Thanks guys!  Hopefully getting closer.

One last change to add an additional command.  I have the ones in there that I want now, so no more pushes from me while I wait to hear back from you guys.

I can confirm the plugin builds and installs OK for me, but I can't test further as I don't use Todoist.
But I did spot that most of the command names start "todoist" but two start "Todoist" ...
Let me know when you're ready for me to release it publicly.

thanks @jgclark.  I cleaned up those command names and changed up the documentation a little.  I pushed it to my fork, but not sure what needs to be done to get it here since this pull is closed.  I can do another pull request it that is the way to go.  I am happy to have you release it once we get those changes integrated.

Hi. If you've made changes then please make another PR, and I'll commit and release.
Once we've gone through this first public release we'll see about getting you access to the repo to make this much easier next time.

@jgclark sounds good.  I will do that Monday.  I am out of town this weekend, so no reason to push when I can't help if someone has issues trying to use it.


Does not limit retries to letsencrypt APIs

Here is an endless loop that retries the checks for pending challenges
https://github.com/lukas2511/dehydrated/blob/master/dehydrated#L803
Today I got it runnung for at least 20 minutes, and the validation is still pending. So, I pressed Ctrl+C.
I think it is a temporary problem on the letsencrypt side, but still, infinite retries mean that there is a risk to get banned.

Hi @patrakov

I think it is a temporary problem on the letsencrypt side

Can you share the authorization ID that you were stuck polling? I suspect you may have encountered this Let's Encrypt bug which has been fixed in Boulder master but not yet deployed (should be ~Thursday).
I agree that its a good idea for Dehydrated to limit retries regardless of the bug fix :-)

I am afraid of posting anything from the "bash -x dehydrated -c -x" log here, because I do not know what is public and what is private.

@patrakov If you'd prefer you can share the log in email to cpu at letsencrypt.org.

I confirm that it was a forced renewal after changing the challenge type from http-01 to dns-01.

This should be fixed by now as it appears to have been a side-effect of bad JSON parsing.

Well, this particular case was due to bad JSON parsing. However, the issue is about something completely different: retries should be limited no matter what other bugs exist in the code.