how can i create a cluster based on geojson polygons

https://github.com/Leaflet/Leaflet.markercluster/blob/master/CONTRIBUTING.md#reporting-bugs


Add explicit index declaration in  tag

Implements a proposal that was discussed in #8
This change will allow to use structures like:
<For each="cat" index="$index" of={this.state.categories}>
Which will be compiled to:
this.state.categories.map(function(cat, $index){ ... })

cc @AlexGilleran

Thanks @helarqjsc!


[front] fix database creation table  order

Description
Initial db setup is broken because of table creation order depencies
Risk
No major risks
Deploy Plan

cc @lasryaric we added a foreign key to templates on agent configuration right?

@spolu yes AgentConfiguration.templateId has a foreign key on Template.id. PR is here.


Partition number is string instead of number

Hello. I'm using HighLevelProducer.
Sometimes I suddenly get this error:
AssertionError: cannot write a non-number as a number
    at verifsint (buffer.js:1001:10)
    at writeInt32 (buffer.js:1089:5)
    at Buffer.writeInt32BE (buffer.js:1104:3)
    at BufferMaker.make (/xxx/node_modules/kafka-node/node_modules/buffermaker/lib/BufferMaker.js:77:36)
    at _encodeProduceRequest (/xxx/node_modules/kafka-node/lib/protocol/protocol.js:337:44)
    at /xxx/node_modules/kafka-node/lib/protocol/protocol.js:310:16
    at Client.sendToBroker (/xxx/node_modules/kafka-node/lib/client.js:325:31)
    at Client.send (/xxx/node_modules/kafka-node/lib/client.js:290:14)
    at Client.sendProduceRequest (/xxx/node_modules/kafka-node/lib/client.js:120:10)
    at HighLevelProducer.send (/xxx/node_modules/kafka-node/lib/highLevelProducer.js:70:17)

I added following line after line 327 in lib/protocol/protocol.js:
console.dir(reqs);

After this I logged following:
[ { topic: 'its_queue', partition: 0, messages: [ [Object] ] } ]
[ { topic: 'its_queue', partition: 0, messages: [ [Object] ] } ]
[ { topic: 'its_queue', partition: 0, messages: [ [Object] ] } ]
[ { topic: 'its_queue', partition: '0', messages: [ [Object] ] } ]

So once partition is string, above error is thrown. Maybe I'll add a small fix to convert partition to number?

Btw, I do not set partition manually at all. It's retrieved from ZK.

The issue was in lib/client.js, line L351: Client#updateMetadatas() uses Object.keys() to get partition names which means we get array of strings instead of numbers.

See it.


Fix single digit expiry > 2 with leading zero.

r? @mduvall
The expiry formatter looks for two-digit leading numbers with the second digit
great than 2 to detect non-months (e.g. '1' followed by '3' is formatted as
'01 / 3'). However, that did not account for leading zeroes, which was causing
'0' followed by a digit greater than 2 to reformat incorrectly (e.g. '00 / 5').
This change explicitly looks for leading zeroes.
Follow up to #180.

Good catch! Looks right to me.


Time Estimated Document

Basic Information
The purpose of this issue is to gather more ideas about time distribution for different tasks. This will help team members to have a better overview of how to spend time efficiently on tasks.
However, this is only an estimate and there could be a lot of variations causing delays to each task.
How this estimation works
The estimation is based on phases of SDLC (see https://harness.io/blog/devops/software-development-life-cycle/).
Based on this, we can have our project with different phases as below:

Requirements gathering & analysis(10%) + Research & investigation(8%) + Research analysis (7%): ~ 65 hrs
Software design:  System & Test design(15%) ~ 40 hrs
Software development: Coding (23%) ~ 70 hrs
Test & Integration (15%) ~ 45 hrs
Documentation (5%) ~ 15 hrs
Deployment + User training (13%) ~ 35 hrs
Project management (4%) ~ 15 hrs

The recommended time for the project is 360 hours (~60 hrs per person). However, considering one 1-hour informal weekly meeting along with 4 meetings with mentor, adding 3 meetings for urgent situations or Client meetings. The estimated time for the project meetings is (10+4+3) * 6 = 102 hrs.
Therefore, the suggested hrs we have to work on the project is ~260 hrs. 2 general tasks added were 'Project management' and 'User training'. However, consider we rather overestimate and underestimate and time is one of our team strengths, I have added the hours up to 300.
(see TimeSheet_GroupX_WkY.xls)

The ratios were based on this discussion (https://www.toolbox.com/tech/project-management/question/what-is-the-ideal-ratio-of-time-required-for-various-phases-of-sdlc-092407/).

Extra general tasks had been added in the recent weeks:

Liasing with clients and Reid library user for feedback: ~10 hours
User interface design and setup: ~15 hours
Adding license to repository" ~2 hours (done)
Update of the current time process can be seen in the Excel sheet.
After week 4, Initial Time Estimate compared to Actual Time Spent is 'within estimated'
TimeSheet_Group18_Wk4.xls


[$500] IOU - IOU details page is grayed out with a red dot in LHN when visiting it after requesting

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: <IP_ADDRESS>
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal team
Slack conversation:
Action Performed:

Navigate to staging.new.expensify.com
Click + > Request money.
Create a manual request to any user.
Click on the IOU preview twice to open IOU details page.

Expected Result:
IOU details page will not become grayed out.
Actual Result:
IOU details page is grayed out with a red dot on LHN.
The reproducibility of this issue depends on how quick user opens the IOU details page after creating it.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/93399543/5e7cf6bb-3357-4f9f-b600-4665e50ebd33
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01cded938787993b8e
Upwork Job ID:<PHONE_NUMBER>305042944
Last Price Increase: 2023-11-15

I'm not able to reproduce this. Asking QA if this is still happening and what additional steps are needed to reproduce it - https://expensify.slack.com/archives/C9YU7BX5M/p1700069743206079

Interesting, on latest staging now I just get a crash when repeating the same steps.

I'm really confused by this. I kinda think we should close this without action.
I reached out to QA asking if this still exists and they said:
Tester is still able to reproduce. IOU details page should be open immediately after the request created
https://github.com/Expensify/App/assets/51066321/255f6149-53fc-4cb4-9da9-3ecb8b2b9c68
This video doesn't show the LHN bar with the red dot so I don't think this is the same issue?
What are the steps you're getting for the crash @jjcoffee?

I'm going ooo until Monday Nov 27th so going to assign another BZ teammate to monitor this until I'm back. Thanks!
Status: We're trying to reproduce the error or confirm what steps are needed in the OP to create the error.

I haven't been able to reproduce this
QA said it exists and provided this (but I don't see how it's the same issue) https://github.com/Expensify/App/issues/31327#issuecomment-1815567671
@jjcoffee is getting something different when reproducing - https://github.com/Expensify/App/issues/31327#issuecomment-1814108991

I can take this back, thanks for monitoring @slafortune!

hold for https://github.com/Expensify/App/pull/28618

looks like https://github.com/Expensify/App/pull/28618 is merged so let's test again.
I just tested and I think this is resolved - @jjcoffee could you check too?

I can still repro by making a request inside an existing IOU report.
@dukenv0307 Are you able to take a quick look to see if your proposal is still relevant after the changes in https://github.com/Expensify/App/pull/28618?

Apologies, only just caught that this is going to be handled here https://github.com/Expensify/App/issues/31411. I think we can close this @Christinadobrzyn :bow:


Haxelib git doesn't work (source path?)

Is it possible to specify source path? Or must we move LazyProps.hx to the root dir?

I think this is the haxelib git command format - haxelib git <project-name> <git-clone-path> <branch> <subdirectory>, so haxelib git lazyprops https://github.com/jcward/lazy-props.git master src should work.
I haven't tested this yet.

The command format was taken from http://old.haxe.org/doc/haxelib/using_haxelib

Awesome, thanks for the info. I'll give that a try.


Fork System.Private.Reflection.Execution to CoreRT

I split this into 3 commits so that it's easy to see what changed. 3946235 is the interesting commit.

Project file changes to get the project building in CoreRT build
environment
Replace a bunch of places where we were talking to the type loader
with a NotImplementedException. These should be all non-essential code
paths (generic virtual method support, generic types, MakeArrayType for
multidimensional arrays, support for building templated DynamicInvoke
methods, invoking virtual methods, reflection getting/setting static
fields, RuntimeMethodHandle/RuntimeFieldHandle, MakePointerType)
TypeLoaderDependencies.cs contains a bunch of extra dependencies
from the type loader, including a dumbed-down
CanonicallyEquivalentEntryLocator.

@jkotas or @davidwrighton PTAL

(I'll add it to src/packaging/packages.targets at some point. I don't want to race for a merge conflict with the other open pull request and this is really not critical.)

LGTM


Not possible to do move to an element (Windows App)

It's not possible to  move to an element (Windows App).
Tried:
1.
Actions action = new Actions(driver);
action.MoveToElement(control, 5, 5);
action.Perform();
Result: exception: Currently only pen and touch pointer input source types are supported

var action = new TouchAction(driver);
action.MoveTo(element).Perform();
Works, but before moving it's doing a left click! (maybe this is an obsolete method)

var touchDevice = new OpenQA.Selenium.Appium.Interactions.PointerInputDevice(PointerKind.Touch);
ActionSequence sequence = new ActionSequence(touchDevice, 0);
sequence.AddAction(touchDevice.CreatePointerMove(element, 0, 0, TimeSpan.Zero));
_Session.PerformActions(new List { sequence });
It's doing nothing
I wanted also to show a context menu, tried:
4.
Actions action = new Actions(driver);
action.ContextClick(element);
action.Perform();
Result: exception: Currently only pen and touch pointer input source types are supported
Environment

.NET 4.8
Appium 5.0 rc2
Windows 10:
Appium v2.2.1, WinAppDriver 1.2.1

@tomaszkot is this something that worked before? Or did it stop working after the new RC2?
Basically windows driver is no longer maintained by Microsoft. so issues may occur in some cases. I suggest you try to use the appium windows driver as a proxy

@tomaszkot is this something that worked before? Or did it stop working after the new RC2? Basically windows driver is no longer maintained by Microsoft. so issues may occur in some cases. I suggest you try to use the appium windows driver as a proxy

I did not used it earlier, now tried beta01, the same results.
Following code , when used with Win App Driver 1.2.1 :
WindowsDriver session;
...
Actions action = new Actions(session);
action.MoveToElement(panel2, 5, 5);
action.ContextClick();
action.Perform();
Thread.Sleep(2000);
Works fine.
The same Win App Driver installed for Appium and test run using Appium API makes problems as described in the issue.

@tomaszkot have you tried using PointerKind.Pen instead of PointerKind.Touch?
see an example here :
https://github.com/appium/dotnet-client/blob/main/test/integration/Windows/PentTest.cs

I do not want to use Pen due to possible side effects (changed cursor, possibly others) and would like to have a "normal" API.
So, currently following ones:

Actions action = new Actions(driver);
action.MoveToElement(element, 5, 5);

var touchDevice = new OpenQA.Selenium.Appium.Interactions.PointerInputDevice(PointerKind.Mouse);

element.Coordinates.LocationOnScreen

...throw exceptions. Would any/all of above  work on full 5.0 release ?

@tomaszkot what kind of exceptions are you getting?

Closed as there is no response


When do you update the Visual Studio control templates

Describe the bug
When do you update the Visual Studio control templates
什么时候更新Visual Studio的控件模板
目前Windows 应用 SDK的最新版本是1.4.3，.NET 平台下最新的.NET版本是.NET 8，在Visual Studio 17.8 更新后，Visual Studio自带的Windows 应用 SDK的模板仍然是1.3，这个版本太旧了。除此之外，Windows 应用 SDK模板创建的.NET 版本仍然使用的是.NET 6，目前Visual Studio安装的.NET桌面应用开发已经默认使用.NET 8而不再使用.NET 6。根据上述的问题，请立即为Visual Studio的Windows 应用 SDK模板发布一个新版本。
在1.2版本前，开发者可以通过Windows 应用 SDK官网自行下载Visual Studio模板，然而在1.2版本后，这一下载渠道已经被关闭，未来能否可以通过官网自行下载Visual Studio模板？
The latest version of the Windows Application SDK is 1.4.3, the latest for the.NET platform. NET version is.NET 8, after Visual Studio 17.8 update, Visual Studio comes with the Windows application SDK template is still 1.3, this version is too old. In addition, the Windows application SDK template is created. NET version is still used. NET 6, currently installed by Visual Studio. NET desktop application development has been used by default. NET 8 and no longer used. NET 6. Based on the above questions, release a new version of the Visual Studio Windows Application SDK template immediately.
Before version 1.2, developers can download Visual Studio templates through the Windows SDK official website, but after version 1.2, this download channel has been closed, can you download Visual Studio templates through the official website in the future?
Steps to reproduce the bug
As mentioned above
Expected behavior
更新Visual Studio Windows 应用 SDK的模板，并将.NET平台下的版本更新到.NET 8
Update the Visual Studio Windows application SDK template and will. NET platform version updated to. NET 8
Screenshots
None
NuGet package version
Windows App SDK 1.4.3: 1.4.231115000
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
No response

On my end, the Visual Studio 17.8 templates all reference the Windows App SDK 1.4.1.

On my end, the Visual Studio 17.8 templates all reference the Windows App SDK 1.4.1.

Thank you for your reply. I checked it just now, it is true that I forgot to upgrade, and now it has been successfully upgraded


LazyList is not completely unmodifiable

Calling iterator(), listIterator() and subList() will return a modifiable data structure.

Done

@ericbn, shall we close this?

@ipolevoy, sure! I was avoiding closing things I opened myself so you could review them...  Do you want me to close them once I consider done?

@ericbn, keep on doing it like this. Review never hurts:D

@ipolevoy, agree!  :- )

@ericbn , this completely broke existing projects with this:
java.lang.UnsupportedOperationException
	at org.javalite.activejdbc.UnmodifiableLazyList$2.set(UnmodifiableLazyList.java:179)
	at java.util.List.sort(List.java:482)
	at java.util.Collections.sort(Collections.java:141)

For instance, this is not impossible:
Collections.sort(res);

thinking again, having the list itself un-modifiable makes no sense. Why not have it modifiable?
In any case, has to be reverted, as we cannot use this in EP anymore.

Sure, let's make it completely modifiable then! I'll take a look at this first thing tomorrow. UnmodifiableLazyList can become ListDelegate.

Why not preserve the name LazyList?

Done


Add internal-border face.

Please check https://github.com/Alexander-Miller/treemacs/issues/822#issuecomment-899675430
Following is a pop menu, it is no border.

Thank you.

Looks like this now


Folders and Subfolders

I noticed that the synchronization of the folder list is only done once after installation. When I change folder names or add new folders on the server, they are not synchronized and don't even show up in the "folders to synchronize" panel.
Furthermore, the app never (not even after installation) synchronizes subfolders. I use zimbra to create my tasks and there, subfolders are allowed. It seems like the app is missing this feature.
I would greatly appreciate these two features! Thank you!

Note that subfolders are not supported by the CalDAV protocol. Zimbra is not standards compliant in that regard. They should flatten the tree structure when exposing task folders via CalDAV.
Regarding the folders not being updated, that's most likely an issue with the sync app not with OpenTasks.

I suspected those issues might also be related to either sync or zimbra, thanks for clarifying that. I use your caldav app for synchronization, so should I write a support request? Thank you for your help!

Yes, please reach out to our support team. Thanks!


how do you install this thing as powercord is only for discord canary

Open a command prompt, then navigate to Powercord's plugin folder, and run the command git clone https://github.com/CumcordLoaders/Powercord
Quick notice, Powercord has been discontinued, and a new team of developers have made a project called Replugged building off of Powercord's efforts.


assets: webpack

WIP, fixes for issues found in live testing.

[ ] add installation instructions

It's close to impossible to review that many code changes, but from a high level perspective this looks good! Since you've done extensive testing I think this is good to merge.

Yeah, here goes nothing I guess ^^' Be extra cautious during deployment since I couldn't test that.


feat(performance): monitor cpu/memory usage and disable epsagon if exceed limit

should rebase #101 before merging this one

:tada: This PR is included in version 1.27.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Maniac crash without error

C:\Windows\system32>"C:\Users\senpai\Desktop\maniac-v1.0.0-rc7-debug.exe"
[debug] [main] humanization: 0
[debug] [Process::get_handle] found process 'osu!.exe' with id 10552
[debug] [Process::get_handle] got handle to process 'osu!.exe' (0xb8)
[debug] [Osu::Osu] found time address: 0x2fa681c
[debug] [Osu::Osu] found player pointer: 0x4174450
[*] waiting for beatmap...
[+] found beatmap
[debug] [Osu::get_actions] got hit object manager address: 0xcccccccc
[debug] [Osu::get_actions] column count is -107374176
C:\Windows\system32>
then bot crashes

Thanks for reporting this, I'm looking into it.

I can reproduce this with the builds from the release section, but not if I'm building maniac locally. Strange.

Just as a quick sanity check to make sure that it's not an issue with the automated build system: could you try it with the maniac.exe in maniac.zip? I build this locally and it works fine for me on both my machines.

Not OP but I had the same problem and using the build you provided fixed it.

@Sensest thanks for letting me know! I think I have a fix for the frequent crashes when starting a map, by the way; I'll try to figure out the build system issue before releasing that though.

v1.0.0-rc8 is out now. Code-wise it's almost the same as v1.0.0-rc7 (except for some fixes in regards to crashing on map start) but different tooling was used to build it.

I have just released v1.0.0-rc9. Maniac is now a 32 bit executable (again), an oversight that cost me quite a bit of time.
I can't reproduce the issue anymore, please let me know if it still happens for you.

I'll assume that this is resolved, please don't hesitate to create a new issue/reopen this one if it still crashes like that for you.


Safely publish build scans even for pull requests

And do it synchronously (before the build ends) so that Hibernate GitHub Bot is able to list build scans immediately.

Seems to be working fine for PRs in Jenkins:

So... let's merge and see about the main branch in Jenkins + GitHub Actions in general (you can't test changes to GitHub Actions  workflows without merging the changes)

🤞🏻 😃

Ok so I had to push a few follow-up fix commits, but it seems to be working now.
On a PR, we get build scans:
https://github.com/hibernate/hibernate-search/pull/4062/checks?check_run_id=23054112481

And the build cache behaves as expected (reads from remote cache, does not write):

On push events, everything seems to be working fine too: https://github.com/hibernate/hibernate-search/runs/23053729751

Well okay, there's one slightly annoying thing, it's that PRs don't get tagged with PR-someNumber, and instead get tagged with HEAD. But personally I can live with that.


Fix script for updating quiz questions, options are being moved between quizzes

A student sent me this screenshot from a quiz report

I noticed that some of those quiz question options didn't look like options I would write for that particular quiz question and indeed, I had not written them! It's hard to tell how exactly they got there. But, I suspect I deleted a question and those are the quiz question options corresponding to the deleted question. Or, maybe quiz question options got "shifted" because they retained their quiz_question_id somehow? I think the function at https://github.com/kljensen/yelukerest/blob/97cb6c3ed5a13212b18672291596d6f7e28a2f48/pythonclient/db_client.py#L567 likely is the culprit. It is, in any case, not doing what I think it should be doing.

this was fixed


Create certificate failed: Object reference not set to an instance of an object.

Hello!
I am trying out a win-acme to a new instance that is being set up.
I get as far so that the certificate is created, but it seems that it doesnt download to my acme instance at all. I have searched but cant find this error exept that it was a bugg in a release some years back.
This is the error i get. Anyone have any idea on what i am doing wrong?
2021-02-18 11:52:13.821 +01:00 [VRB] Constructing ACME protocol client...
2021-02-18 11:52:13.840 +01:00 [DBG] Send GET request to "https://pp-acme.trust..com/directory"
2021-02-18 11:52:13.913 +01:00 [VRB] Request completed with status "OK"
2021-02-18 11:52:14.009 +01:00 [DBG] Loading signer from C:\ProgramData\win-acme\pp-acme.trust..comdirectory\Signer_v2
2021-02-18 11:52:14.017 +01:00 [DBG] Loading account from C:\ProgramData\win-acme\pp-acme.trust..comdirectory\Registration_v2
2021-02-18 11:52:14.049 +01:00 [VRB] Using existing ACME account
2021-02-18 11:52:14.089 +01:00 [VRB] ACME client initialized
2021-02-18 11:52:14.095 +01:00 [DBG] Send HEAD request to "https://pp-acme.trust..com/acme/new-nonce"
2021-02-18 11:52:14.109 +01:00 [VRB] Request completed with status "NoContent"
2021-02-18 11:52:14.157 +01:00 [DBG] Send POST request to "https://pp-acme.trust..com/acme/new-order"
2021-02-18 11:52:15.466 +01:00 [VRB] Request completed with status "Created"
2021-02-18 11:52:15.509 +01:00 [VRB] Order https://pp-acme.trust..com/acme/order/1SR4zbQeT0tIap_Y2Kdjk14maQODY3VTwoAbWXhEH3o created
2021-02-18 11:52:22.322 +01:00 [DBG] CSR stored at qLHAT9EiX0GYpmMKeNYAiQ-e2d43fd9a1282b60b2bb6cf33c77e76328344fb0-csr.pem in certificate cache folder C:\ProgramData\win-acme\pp-acme.trust..comdirectory\Certificates
2021-02-18 11:52:22.323 +01:00 [VRB] Submitting CSR
2021-02-18 11:52:22.333 +01:00 [DBG] Send POST request to "https://pp-acme.trust..com/acme/finalize-order/1SR4zbQeT0tIap_Y2Kdjk14maQODY3VTwoAbWXhEH3o"
2021-02-18 11:52:22.352 +01:00 [VRB] Request completed with status "OK"
2021-02-18 11:52:22.355 +01:00 [DBG] Waiting for order to get NOT processing (1/15)
2021-02-18 11:52:27.374 +01:00 [DBG] Send POST request to "https://pp-acme.trust..com/acme/order/1SR4zbQeT0tIap_Y2Kdjk14maQODY3VTwoAbWXhEH3o"
2021-02-18 11:52:27.391 +01:00 [VRB] Request completed with status "OK"
2021-02-18 11:52:27.394 +01:00 [DBG] Waiting for order to get NOT processing (2/15)
2021-02-18 11:52:32.402 +01:00 [DBG] Send POST request to "https://pp-acme.trust..com/acme/order/1SR4zbQeT0tIap_Y2Kdjk14maQODY3VTwoAbWXhEH3o"
2021-02-18 11:52:32.417 +01:00 [VRB] Request completed with status "OK"
2021-02-18 11:52:32.421 +01:00 [INF] Requesting certificate [IIS] www..com, (any host)
2021-02-18 11:52:32.431 +01:00 [DBG] Send POST request to "https://pp-acme.trust.***.com/acme/cert/0177b4c52550d3ba49c5898eb9da29"
2021-02-18 11:52:32.468 +01:00 [VRB] Request completed with status "OK"
2021-02-18 11:52:32.711 +01:00 [ERR] (NullReferenceException): Object reference not set to an instance of an object.
2021-02-18 11:52:32.727 +01:00 [DBG] Exception details: {"TargetSite":"Void MoveNext()","StackTrace":"   at PKISharp.WACS.Services.CertificateService.RequestCertificate(ICsrPlugin csrPlugin, RunLevel runLevel, Order order)\r\n   at PKISharp.WACS.RenewalExecutor.ExecuteOrder(ExecutionContext context)","Message":"Object reference not set to an instance of an object.","Data":[],"InnerException":null,"HelpLink":null,"Source":"wacs.lib","HResult":-2147467261,"$type":"NullReferenceException"}
2021-02-18 11:58:40.054 +01:00 [ERR] Create certificate failed: Object reference not set to an instance of an object.

Which ACME server (or server software) are you using? It may be that the server is not returning a required response.

The implementation is based on “RFC8555 with External Account Binding”, proprietary implementation.It works with lego acme client.

This is a known issue that will be fixed in the next release, if you search for 2.1.15 you might find a build that I posted before, if you can't find it I will post a link later.

Here is the build that I meant: https://ci.appveyor.com/project/WouterTinus/win-acme-s8t9q/builds/37617823/artifacts


Fix Batch C# SDK namespace

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[x] The title of the PR is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[x] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[x] If applicable, the PR references the bug/issue that it fixes.
[x] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[x] I have read the contribution guidelines.
[x] My spec meets the review criteria:

[x] The spec conforms to the Swagger 2.0 specification.
[x] The spec follows the guidelines described in the Swagger checklist document.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

@matthchr there seems already a nuget package Azure.Batch published with namespace as Microsoft.Azure.Batch.
(1). In this PR we are renaming the NAMESPACE Microsoft.Azure.Batch to Microsoft.Azure.Batch.Protocol
(2). Does this means we rename the NUGET PACKAGE  as well? Azure.Batch -> Azure.Batch.Protocol?
There are breaking changes right?

@anuchandy - We have a layer on top of the AutoRest generated layer. The autorest generated code has always been in Microsoft.Azure.Batch.Protocol.
This was just a mistake made by whoever initially created this readme file.

@matthchr ok i see types in GeneratedProtocol using Microsoft.Azure.Batch.Protocol, I got confused because there is another dir with types those are in the namespace Microsoft.Azure.Batch

@anuchandy - Can we merge this then?

@matthchr done

No modification for AutorestCI/azure-sdk-for-ruby

No modification for AutorestCI/azure-sdk-for-python

No modification for AutorestCI/azure-sdk-for-node


Is this deprecated? Or the current best practice?

Hey, I see open AI has an API library... but that uses Python.... I prefer to use Node as I'm much more familiar with it.
Is this technique considered a "hack" or is effectively doing the same thing the python technique would do?
Thanks

Hi @bjshumway,
V2.0.0 is available now. Have fun :)


mirror, CORS policy, and append headers rule proto support

What this PR does / why we need it:
adds support for new fields in the route rule proto (append_headers, cors_policy, mirror).
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
NONE

From original https://github.com/istio/istio/pull/1300

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

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
2a2484fdea537154a97efa1fc99c4c157f9fcf3e
link
/test istio-presubmit

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

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

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
91e2e7f012ebeaf1a8c2ad8e8680e8ee78a99f1f
link
/test istio-presubmit

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

@GregHanson will resubmit this.


how to response image

Hi, i want to build a image file server, but i don't know how to response image
i have tried the following code in controller but it does not work
int width, height, channels;
unsigned char *img = stbi_load("test_result/images/a11/test_01.jpg", &width, &height, &channels, 0);
std::string body = drogon::utils::base64Encode(img, width * height * channels);

auto resp = HttpResponse::newHttpResponse();
resp->setStatusCode(k200OK);
resp->setContentTypeCode(CT_IMAGE_JPG);
 resp->setBody(body);
callback(resp);

could you write an example for me?

You should not make base64 encode for image. You have to send it as is (it is requirements if HTTP protocol). Code looks correct, except you need assign img to body directly: std::string body(static_cast<char*>(img), length_of_img_data ); You need only to provide the length of data. strlen should not be used, as img data can contain \0 char inside. By the way, drogon has build in function to download jpeg file, if they are in root folder (root folder assigned in settings file).

Thanks for response so quick
I've tried your way to set body but still can't get correct result, i post my controller header/cpp and the error message on web browser
could you point me out what is wrong ?
Thanks !
in header
#pragma once
#include <drogon/HttpController.h>
using namespace drogon;
class ImageCtrl : public drogon::HttpController<ImageCtrl>
{
  public:
    METHOD_LIST_BEGIN
    ADD_METHOD_VIA_REGEX(ImageCtrl::handle_image, "/images/.*", Get);
    METHOD_LIST_END
    void handle_image(const HttpRequestPtr& req, std::function<void (const HttpResponsePtr &)> &&callback) const;
};

in cpp
void ImageCtrl::handle_image(const HttpRequestPtr& req, std::function<void (const HttpResponsePtr &)> &&callback) const
{
    std::string path = req->getPath();
    std::cout << "path: " << path << std::endl;

    int width, height, channels;
    unsigned char *img = stbi_load("/test_result/images/a11/test_01.jpg", &width, &height, &channels, 0);
    std::string body(reinterpret_cast<char*>(img), width*height*channels);

    auto resp = HttpResponse::newHttpResponse();
    resp->setStatusCode(k200OK);
    resp->setContentTypeCode(CT_IMAGE_JPG);
    resp->setBody(body);

    callback(resp);
}

in web browser it shows : The image "http://localhost/images/" cannot be displayed because it contains errors.

Your Drogon controller is correct, it sends data to browser, the browser reads them, understands, that it is image , but does no understand image format. The problem is with data. If you send JPEG, you have to read JPEG file (fstream open(), read(), close()) and send these data to controller in a body. If you load image, you sends not JPEG, you send pixels as data.

Try use HttpResponse::newFileResponse().  Search this api in source code and you will find some example codes.

Try use HttpResponse::newFileResponse(). Search this api in source code and you will find some example codes.

@VladlenPopolitov , @hwc0919 Thanks !
I use HttpResponse::newFileResponse() and it works
In case anyone who is same as me new to web backend development, here is my summary:

If you want to response with image, you need to put all binary data of file in the body of response and set correspond content type like @VladlenPopolitov says, i was wrong for putting pixel data in the body of response.
Drogon has built-in FileResponse can do this for you.

for my case, here is an example code:
std::string file_path = "/test_result/images/a11/test_01.jpg";
auto resp = HttpResponse::newFileResponse(file_path, "", CT_IMAGE_JPG);


Table Service: Replace operation for non-existent entity with wildcard ETag returning 204 instead of 404

Which service(blob, file, queue, table) does this issue concern?
Table
Which version of the Azurite was used?
Azurite-Table 3.17.1, according to the response headers.
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
Microsoft Container Registry (mcr.microsoft.com/azure-storage/azurite:latest)
What's the Node.js version?
Unsure, it's whatever is in that container.
What problem was encountered?
A discrepancy between Azure Table Storage and Azurite: when using the Azure SDK for .NET and attempting to replace or merge an entity which was never inserted into the table, like so:
// NOTE: Merge yields the same erroneous behavior as Replace
var opResult = await Table.UpdateEntityAsync(entity, new ETag("*"), TableUpdateMode.Replace);

We are observing that Azurite returns a 204 (inserting the value), but Azure Table Service fails with a 404 as expected (the data is being replaced but is not present to begin with).
Steps to reproduce the issue?
Something like this, perhaps. If there is a way to enable debug logs for the container, I can do that and report back with them.
POST http://<IP_ADDRESS>:10002/devstoreaccount1/UnitTestAzureData(PartitionKey='PK-AzureTableDataManagerTests-0655f5a6-0b98-411a-9f87-1904e68719f2',RowKey='RK-003bfce3-5032-4ece-a77a-15822871c500')?$format=application%2Fjson%3Bodata%3Dminimalmetadata HTTP/1.1
x-ms-version: 2019-02-02
DataServiceVersion: 3.0
If-Match: *
Accept: application/json
Content-Type: application/json

{"Data":null,"StringData":"JustData","PartitionKey":"PK-AzureTableDataManagerTests-0655f5a6-0b98-411a-9f87-1904e68719f2","RowKey":"RK-003bfce3-5032-4ece-a77a-15822871c500"}

We have a test case which fails on Azurite but not Azure Table Service here: https://github.com/dotnet/orleans/blob/4570a2a5a8a7ca65b13031010fc994bcfede484f/test/Extensions/TesterAzureUtils/AzureTableDataManagerTests.cs#L77
Have you found a mitigation/solution?
We can disable these tests when Azurite is being used.

Hi,
are you sure that this is the root cause of the error?
Looking at the request your code is making, it is an insert.
Insert (POST) is expected to succeed if the entity is not there.
https://docs.microsoft.com/en-us/rest/api/storageservices/insert-entity
I have quite a bit on my plate, but I'll try the same request against the service and validate the behavior.
We are aiming for service parity, but this request should succeed based on the information you share above.


Add Role Skills API

Part of #26.
This can be split out into multiple issues to reflect the endpoints in the API docs: http://docs.codecorpsapidevelop.apiary.io/#reference/categories

[ ] Create

@snewcomer is working on this.


Scan history bot visible if you're not logged in

What

Scan history bot visible if you're not logged in
@monsieurtanuki

Would be solved by #4041.
Meanwhile, where should we access the scan history from?


Make scrape/alert relabel reusable and check url after relabel

Current URL check take effect when relabel configs not defined at pre-check stage, just like this:
scrape_configs:
  - job_name: prometheus
    static_configs:
      - targets:
          - http://bad

If relabel configs defined as below:
scrape_configs:
  - job_name: prometheus
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
    static_configs:
      - targets:
          - http://bad

It's hard for troubleshooting, because the pre-check will pass through, and URL will be checked by populateLabels func in target.go, the error appears just in error log finally.
The URLs in scrape/alert target should be checked whether relabel config exists or not at pre-check stage.
This PR make scrape/alert relabel reusable and make check as a extra step in promtool.
Signed-off-by: DrAuYueng<EMAIL_ADDRESS>

Updated.
Thank you for reviewing.

Why not exporting and using the full populate labels? I feel like it would also catch errors like wrong interval etc, while simplifying this pull request.

Just want to reuse the port process code.

As you said, keep populateLabel as it maybe the simplest way to cover this case.

What prevents you to just expose existing functions as is?

The first time i see the code in populateLabels, i found here exists the same addPort func, so i extract as a common func which causes this changes.
I keep populateLabels as it now. And defined populateLabels func also in notifier.go.

I keep  populateLabels as it and just expose it now. And i defined PopulateLabels func also in notifier.go.
As errors like wrong address/interval etc has been caught in PopulateLabels func,  just reuse it at config check step which defined in promtool.

@roidelapluie Updated.

Thank you! I think we could simplify file_sd as well by calling those functions here are well, would you do this in this PR as well?
I know there is a lint warning on the Alertmanager not being exposed, but we do not gain anything by exposing it. Could you un-export it?


Updates required within maternal health modules during TLM

1.) Consolidate healthcare seeking behaviour logic across the modules and move to the HSB module
2.) Add some simple logic to allow for 'maximum' care seeking to be switch on for the modules
3.) Replicate logging as seen in HIV/Malaria where summary statistics are calculated for key outcomes every year and then stored directly in the logging

4.) Check twin rates

Additional fixes/areas for more thought going forward:
1.) Add relationship between anaemia and risk of PPH
2.) Adjust treatment effect of CS/AVD on stillbirth - also relationship between AVD failure and reduced risk of stillbirth through greater likelihood of CS?
3.) Broaden causes of antenatal sepsis (UTI etc)
4.) Removal foetal survival after maternal death in labour?
5.) Effect of chorioamnionitis colonisation on neonatal sepsis - as i'm only modelling maternal sepsis the incidence is much lower so the effect in the population is smaller
6.) Macrosomia - the distribution and the relationship with changing LBW prevalence
7.) Categorisation of intrapartum sepsis when services are maximised/minimised

Also need to remove old logic related to squeeze factor (currently remains in place but with parameters set to 0)

See thesis appendix G

GDM shouldnt occur in women with pre-pregnancy DM (effect may be double counted in risk of preterm RDS)


'dict' object has no attribute 'decode'

wen  i run poetry install   i got 'dict' object has no attribute 'decode'

Check your Python version: Label Studio requires Python 3.6 or newer.

Create a virtual environment: This can help isolate your project dependencies from other Python projects. You can use venv for this.

Let me know if you're still getting this issue after you've tried the above.

Closing this issue due to inactivity, feel free to message me on Slack or post in the Discourse


SCP-844 - Remove default value for ChoiceValue

Deployed to https://pablo.marlowe.iohkdev.io/

Yes, there is already an issue for that https://jira.iohk.io/browse/SCP-845


Token Authentication post auth data

Problem statement
Is it possible to bind the data decoded from the api_key authentication process to the request which gets passed further down into handlers?
Steps to reproduce
func AuthorizeRequest(token string) (interface{}, error) {
	if !strings.HasPrefix(token, "s_") {
		return nil, errors.New("Invalid authentication token")
	}

	decodedToken, err := ValidateToken(strings.TrimPrefix(token, "s_"))

	if err != nil {
		return nil, errors.New("Invalid authentication token")
	}

	return decodedToken, nil
}

Basically, I'm using the api_key authentication as JWT authentication, since I couldn't find any way to define a schema for JWT authentication (Due to it not being available in 2.0.0. Weird, huh?)
With the JWT token authenticated, I receive basic data about the user, this allows me to handle the request further down with that user in mind.
The documentation is kind of poor in regards as to what's going on, and lots of code reading is in order. However, so far I haven't figured out what happens to the returns of the authentication function.
Where does the interface{} go? Does it get passed to anything relevant that I can mess about with? Does it get bound to Context or something? What's happening?
The only other way to solve this I figure would be to write custom middleware to validate tokens, based on the route. Which kind of defeats some of the purpose of this lib.
Environment
swagger version: 2.0.0
go version: 1.10
OS: Mac OSX

Right now my only solution is to validate the token in the Header again in my handlers, and get the information out of it that way.

Yes you can pass the information through the principal model.
See the example there which should correspond to your use case: https://github.com/go-swagger/go-swagger/tree/master/examples/composed-auth

Cheers!

This example has been pushed recently and the doc site has not been updated yet.
You should have everything in here to play with JWT with different types of auth (API keys or even OAuth2).
Feel free to contribute to the repo and enrich this example with new findings if you are working with this.


Fix proposals component

Corrected enum for ProposalState on mainnet

@pennyandrews I managed to fix this even before there was a ticket for it 🔥


Consolidate install Volto for development docs

Please update the documentation.

This section should be replaced: https://6.docs.plone.org/volto/contributing/index.html#install-volto-for-development
with a link to: https://6.docs.plone.org/volto/contributing/developing-core.html

By following the first one we just end up with the following error:

@stevepiercy
@sneridagh
Originally posted by @lorstenoplo in https://github.com/plone/volto/issues/3289#issuecomment-1864207374

Additionally, Step 2 for Node.js appears to be incorrect. Note the version mismatch. I'm not sure how to interpret these different results.
$ nvm use 20
Now using node v20.10.0 (npm v9.8.1)

 17:39:46  stevepiercy@Steves-MacBook-Pro  ...Plone/documentation/aaa  🐍 3.10.13 3.11.5 system   6.0 ✘ ✹ 
$ node -v

v20.6.1

Also after installing pnpm with:
corepack prepare pnpm@latest --activate

...and checking version:
$ pnpm --version

8.11.0

Latest should be 8.12.1.

@stevepiercy  I have made a pr yesterday , by combining the contributing to volto and developing volto core into a sigle doc Developing Volto Core  which fixes 2 issues. I am trying to change what updations you have suggested and I will push a commit soon . Can I get a review, cause this followiing of core volto documentation has been an issue  for a while now. Can you please check the deployed version, I have added backend running instructions too

@ujjwaleee26 please do not combine two issues into one pull request. I also clarified this issue's description, and #5554 has been closed and superseded by this issue.

Running commands does not yield a working installation of Plone with Volto for development.
Additionally Developing Volto does not yield a working Volto installation.
Both are very bad for developers.
$pnpm start
<snip>
Proxying API requests from http://localhost:3000/++api++ to http://localhost:8080/Plone
🎭 Volto started at <IP_ADDRESS>:3000 🚀

and visiting the URL http://localhost:3000/:
Connection refused
http://localhost:3000/
The backend is not responding, please check if you have started Plone, check your project's configuration object apiPath (or if you are using the internal proxy, devProxyToApiPath) or the RAZZLE_API_PATH Volto's environment variable.

@sneridagh @tiberiuichim this is not helpful for new developers. What can we do to improve the developer experience?
@ujjwaleee26 please wait until we get a response from the Volto team. Our instructions are incomplete, and someone with that knowledge needs to update the documentation.

@sneridagh @tiberiuichim @davisagli we made several improvements in https://github.com/plone/volto/pull/5564 and it can be previewed at Develop Volto core. It would be super helpful to get some careful review on these changes.


Very informative but hard to read article

[Enter feedback here]
Article needs serious grammar checking.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e30dfd76-2a83-bd21-2153-85e32894014e
Version Independent ID: 9dca62e8-0aef-10eb-b2d3-2ab12087f90a
Content: Integrate with Application Gateway - Azure App Service Environment
Content Source: articles/app-service/environment/integrate-with-application-gateway.md
Service: app-service
GitHub Login: @madsd
Microsoft Alias: madsd

Hi @SB-o-matic , thanks for your feedback! Can you please be specific about which section of the doc that needs to updated ?

Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion.


FileDialog.open() does not work from Qml.Net

Has FileDialog component has been handled. When I execute filedialog.open in the qml file .net shows as unrecognized command.

I'm sorry for the delay here. Can you provide more info? What do you mean by "unrecognized command"?

I figured out a way how to make it work. I am sorry for the delayed response.

How did you make it work?

If paul allows. Then I can actually upload my project. This will also add another example project into the repository.

Upload it here, and I'll see if anything should be added to our examples.

Example Project.zip
@pauldotknopf
I have attached the complete project.
@vadi2
    FileDialog {         id: fileDialog         selectMultiple: true         selectExisting: true         title: "Choose .tcf file(s)..."         **visible: true**         nameFilters: [ "Tcf files (*.tcf)" ]         onAccepted: fileDialogAccepted(fileDialog.fileUrl, fileDialog.fileUrls)     }     Component.onCompleted: {                   console.log("Load completed")         **fileDialog.visible = false**     }
@vadi2 : The problem was if Visible is not set to true the FileDialog.Open won't work. But if Visible is set to true the FileDialog pops up after the Component load is complete. So, after some trial and error, I figured out that is the Visible is set to false on the Component load everything goes back to normal.
I regret the delay in response.


Any option to show each test case's execute time?

Description
Any option to show each test case's execute time? Just want to print them out in log

doctest version: 2.3.7
Operating System: mac
Compiler+version: Apple clang version 11.0.0 (clang-1<IP_ADDRESS>)

sure, use -d or --duration from the command line :)
Let me know if the output is sufficient - it should behave the same way as Catch2.


Cannot compile 32-bit Windows binaries using a 64-bit Ubuntu-based build environment

[x] I have read the FAQ.
[x] I have searched in existing issues.

Environment

OS: Linux Mint 21.3 (based on Ubuntu 22.04)
scrcpy version: Latest dev with my own patches
installation method: N/A; build system bug
device model: N/A; build system bug
Android version: N/A; build system bug

Describe the bug
I am doing some work on my pull request #4977 but I cannot build Windows binaries as it tires to build the 32-bit version first, then the 64-bit version. However it refuses to build the 32-bit version as it seemingly cannot fing pkg-config, CMake, or libavformat (and other A/V-related packages) on my system despite them being installed. I cannot install both architectures at the same time, however, so this may be what is causing the problem, as it is expecting the 32-bit versions of these packages. Installing the 32-bit version forcefully removes the 64-bit versions though, making that an impossible choice.
Please keep in mind that building the Linux native binaries works perfectly, at least for the 64-bit binaries; I don't have an easy way to test if building 64-bit-only Windows binaries will work or not at this time, but I'm pretty sure that it would work.
On errors, please provide the output of the console (and adb logcat if relevant).
Please check https://gist.github.com/Giantvince1/b2047d0354f713d3e33d2e337c47f683 for the full build log. The build log is WAY too massive to fit here, so I was forced to use some sort of method of storing the build log directly.
Please do not post screenshots of your terminal, just post the content as text instead.

Did you install mingw-w64-tools?
Maybe try to revert this commit: https://github.com/Genymobile/scrcpy/commit/85a94dd4b563e961304b2d9082932c5c1cc2e582
(cf #4504)

I do have mingw-w64-tools installed, as well as all other requirements for building the software. But again, the script is somehow checking for the 32-bit versions of certain packages, but I can't cross-install both architectures at once to allow it to complete. I'll see if reverting the commit mentioned may help.

Update: reverting that exact commit actually allows it to fully build a Windows release! I will add my reversion of that commit to my PR #5014 so that anyone who needs to build a Windows version can do so from WSL.


Remove Google+ support

Use OpenID Connect exclusively.
Fixes #34
Fixes #45
Fixes #63

Coverage decreased (-2.0%) to 93.478% when pulling aafa96882c8869266a782949966b83ba99ed35f7 on fix/drop-google-plus into 09846349e2e14a0a8504c3c67c40d371b2baff71 on master.

👍


log4j2 version upgrade for CVE-2021-4104

Which module is your feature request related to?
web/agent and any other modules depend on log4j-core, log4j-api
Is your feature request related to a problem?
CVE-2021-4104, log4j vulnerability

Log4j Vulnerability summary in below link

https://www.cisecurity.org/log4j-zero-day-vulnerability-response/

Describe the solution you'd like
Update log4j to 2.17.0 or Corresponding appropriate measures
Describe alternatives you've considered
A new bug has been released that cannot be covered by modifications related to log4j 2.15.0 version.
There is no alternatives.
Additional context
N/A

Fixed in 2.3.3 release

Thank you for noticing.


Add comments to FZ classes and methods

Is not always easy to understand what a FZ class represent or method does just based on the name and in some cases trying to understand it from the code requires just too much time.
An example is the ZoneWindow class, that represent a single work area associated with a monitor's desktop.

Since it's not a bug fix, we can close it already.


[turborepo] Adopt Conventional Commits for friendlier Changelog

Which project is this feature idea for?
Turborepo
Describe the feature you'd like to request
Every time when new version of turborepo is release I go to check release notes.
Due to lack of convention in naming commits it is hard to identify what was fixed, added etc.
Describe the solution you'd like
Using Conventional commits and Conventional changelog should enforce consistency and better readability of being changed. Using scope and proper commit types feat, fix, docs, chore will automatically make changelog easy to read and identify changes.
Describe alternatives you've considered
None

Thanks for the suggestion. I brought this to the team and we decided that we'll do a week long test period of using conventional commits before committing to it long term. Will update next week with a decision.

@chris-olszewski
I was wondering if you decide anything about this, but also how was it set up if I want to do it myself.
Isn't versioning handled by other libs like changesets?

We did some work to clean up our release notes! Check them out:


Mookse/issue124

[x] front-end returns thread_id
[x] removed conversation from session and factory
[x] patchArrayItems altered
[x] mChat, mRuns and mPrepareMessage  refactor
[x] added class-conversation-functions.mjs
[x] enhanced conversation and message class extenders
[x] refactored class-message-function.mjs

closes #124


facets dive too slow on Databricks

Just tested the example code here running on a Databricks environment and the result is very slow. It works well on Colab on the same machine.
Any ideas in how to improve DIVE performance on Databricks Notebook?

I don't think any of us here have tried Databricks before, so no immediate thoughts. I can look into creating a Databricks account and testing it there to investigate.

@leandrohmvieira how did you get Dive to display in databricks? I just tried the first two cells from the example code you linked to in a databricks environment and the Dive cell outputs "<IPython.core.display.HTML at 0x7f9b4db9b470>" as opposed to the actual visualization.

Databricks has his own display method, just change the second cell's code to:

# Display the Dive visualization for the training data.
#from IPython.core.display import display, HTML
jsonstr = train_data.to_json(orient='records')
HTML_TEMPLATE = """<link rel="import" href="https://raw.githubusercontent.com/PAIR-code/facets/master/facets-dist/facets-jupyter.html">
        <facets-dive id="elem" height="600"></facets-dive>
        <script>
          var data = {jsonstr};
          document.querySelector("#elem").data = data;
        </script>"""
html = HTML_TEMPLATE.format(jsonstr=jsonstr)
#display(HTML(html))
displayHTML(html)

Thanks @leandrohmvieira
When running that cell, instead of Dive I see an error "Uncaught TypeError: Cannot read property '' of undefined", which is a JS error inside Dive, but one that is expected in the current version of Dive and is not fatal and in other contexts doesn't stop Dive from displaying/working.  Yet it seems to stop Databricks from displaying Dive. Do you see this as well?

@jameswex yeah, but if i press "clear State & Results " and try a couple more times, i'm able to see Dive working.
Just to be sure if we are on the same environment, i'm working with:

Databricks on Azure
High concurrency cluster mode
Databricks Runtime Version 5.2 ML Beta (includes Apache Spark 2.4.0, Scala 2.11)
Python 3
Driver type Standard_DS4_v2 28.0 GB Memory, 8 Cores, 1.5 DBU
2 Workers Standard_DS3_v2 14.0 GB Memory, 4 Cores, 0.75 DBU


Precision issues

Hi,
I don't know why this one is wrong. The Arity's result is tanh^-1(2%^9) = 5.5511151E-16
But the correct result is tanh^-1(2%^9) = 5.12E-16.

are you sure?  2%^9 equals 5.12E-16
Should atanh of this value be the same?

tanh and atanh (2%^9) = 5.12E-16. They have the same result. I've just tested on other app. It still has the same result. You can check them again.

I checked the formula and it is correct.
So I guess these are precision issues of Java's Math library.

Yes, looks like Java's library has some general issues with trigonometry. For example, sin(11π) gives 4.899E-15, sin(2000π) is evaluated as -6.428E-13 (while both expressions obviously should be equal to 0)

Java double seems to be good for about 15 digits...

Are you sure ? I don't think it's an error of Java's library. The ClevCal on Android, it works well. The result is correct. I don't why.

btw, Java has already problems subtracting 56.3 - 55.7. It gives 0.59999999
I recently fixed that by using BigDecimal for subtractions

With the formula 0.5 * Math.log(1. + x) / (1. - x))
x = 2%^9. The result is wrong.
When you use x = 2%^8. The Arity works well. The result is correct. I don't know why.

well I guess it is the 1 + 2%^9 or 1 - 2%^9. One or both of them probably exceeds the possibilty of "double"

Do you have any suggestion to resolve this issue, please ?

No. For high-precision stuff use another calculator.

next version will have a better check for pi multiples, so sin(11PI) and sin(2000PI) should be 0
But that is all I can do.

well I guess it is the 1 + 2%^9 or 1 - 2%^9. One or both of them probably exceeds the possibilty of "double"

Yep, I looked into this and it's actually a known issue.
libc (llvm) gets around this by using a taylor series approximation for small values, the code boils down to 1/11 x^11 + 1/9 x^9 + 1/7 x^7 + 1/5 x^5 + 1/3 x^3 + x. glibc (gnu) uses log1p, which calculates ln(1 + x) with greater precision around x=0.
Neither clang (llvm), gcc (gnu), nor msvc (microsoft) optimized 0.5 * log(1 + (x + x) / (1 - x)) to 0.5 * log1p((x + x) / (1 - x)), so I doubt java would as well.
If java has log1p, it should be an easy replacement for small input values, and if not, the taylor approximation also works.

I am using my own fork https://github.com/woheller69/ArityEngine
Will apply the fix there :-)
Maybe we should add a test case also

if 0.5 * log1p((x + x) / (1 - x)) should be used:
Why are you proposing
 0.5 * Math.log1p(twox + twox * x / (1 - x));

Shouldn't it be simply
 0.5 * Math.log1p(twox / (1 - x));

They're mathematically the same thing. I'm not exactly sure why the gcc wizards chose this, but it must have been purposeful somehow as they had the other option for another case. Besides, they're some of the world's smartest people working on critical infrastructure, so there's plenty of reason for it to be as optimized as possible.
I think it might be because for exceedingly small values of x, twox + twox * x / (1 - x) guarantees at least twox (x + x is just an increase in floating point exponent with no effect on precision, and operator precedence dictates that the addition is done last; twox * x / (1 - x) can never be negative), which is an alright approximation at those values. twox / (1 - x), on the other hand, has no such guarantee and could easily be rounded down. This is just my personal opinion, perhaps the authors had a different rationale.
Either way, their approach should translate to java pretty effectively as the code is already "generic" and not tailored to a specific architecture or platform.

Are there similar tweaks for things like
sin(11Pi) or sin(2000Pi) ? (See above)
For exact multiples of PI I fixed it already in my fork. But maybe there are better solutions to improve precision
Fo

I don't believe so. Neither gcc nor clang fixes this issue (they give the same result as java), and in fact the input value is simply not representable very well using double-precision floating point. The closest representable value is 6283.18530718, and its sin value is as reported above.

Maybe this library is an option?
https://github.com/eobermuhlner/big-math

But probably that does not help either, as the input value does not come as BigDecimal. The whole Arity Engine would have to be changed...

@supsm  I added your modifications and some test cases to my fork of Arity engine:
https://github.com/woheller69/ArityEngine
Here is an updated version of Arity. tanh and atanh (2%^9) now yield 5.12E-16
-uninstall
-remove .zip and install
app-release.apk.zip

This should fix some more issues with sin and cos calculations for multiples of PI or PI/2
https://github.com/woheller69/ArityEngine/commit/fab02d62e38fe5af723891b6c7d273cc1b7efca7
app-release.apk.zip

I found a similar problem:
4÷3×π×(((6371+0.1)×1000)^3−(6371×1000)^3×2÷1000. Dividing this formula by 1000:
4÷3×π×(((6371+0.1)×1000)^3−(6371×1000)^3×2÷1000÷1000 does not result in a lower exponent, only the mantissa changes

If you want to divide the whole formula by 1000 you should put it in brackets
(4÷3×π×(((6371+0.1)×1000)^3−(6371×1000)^3×2÷1000)÷1000

Sorry I completely overseen that one bracket is not closed


Add the ability to load image externally and asynchrously when the user click on gallery or nagiate between images

by adding
<ks-modal-gallery [id]="medicalRecordId" [modalImages]="images"
                    ...
                      [onLoadCurrentImage]="onLoadCurrentImage"
                   ...
></ks-modal-gallery>

It allow the user to declare a function witch allow to download a base64 img from outside the component when he open the gallery or when he nagigate between the images (when currentImage change)
The mentionned fonction must be type of
onLoadCurrentImage(currentImageId: string): Promise<string>
Bellow an implementation in an angular component .ts file witch use the
 onLoadCurrentImage(currentImageId: string): Promise<string> {
    if (currentImageId) {
      return this.myclientApi.getPictureFullScreenById(currentImageId).toPromise().then(
        data => {
          return data.fullscreen;
        },
        error => {
          return undefined;
        } );
    } else {
      return undefined;
    }
  }

the function getPictureFullScreenById is an api call witch return a object having a property "fullscreen"  witch contain the full definition image.
I had to define the return function to make it possible to wait for result in your component
I also remove the previous code from gallery service because i found some bad side effect.

abandoned


dynamic log levels: vsecm safe, and sentinel shall have APIs to update their log levels at runtime without killing the pods.

Could you assign to me @v0lkan ?

Assigned.


Update image location

Image location has changed. Updated to reflect new location.
https://docs.docker.com/docker-hub/api/latest/

@thaJeztah, there's also an image issue in the Engine API docs.
https://docs.docker.com/engine/api/v1.41/


Why's the docker image so large?

Newbie here, just noticed the size of this docker image on the hub. Care to explain why's it so big? I'm thinking it'll eat up more than 2GB in production. I imagine even if it included php itself, it shouldn't be this large

Hello @foremtehan, did you try to use the search filter of the available images/tags on docker hub?

sorry i did not scroll to the end of page:


suggestion: add photos linked with a Flikr group

so we don't have to host thousands of photos

if you decide this is a good idea let me know. we have a Flikr group but its not actively used so i'd need to log in and change some things

users able to upload and share their photos of this event, images displayed from and via Flickr:
http://offbeatbride.com/collect-wedding-photos-flickr/


Realsense D435 IR Laser not visible on Slave camera with short exposure time.

Required Info

Camera Model
D430

Firmware Version
Tested both with <IP_ADDRESS> and <IP_ADDRESS>

Operating System & Version
Win 10

Kernel Version (Linux Only)
-

Platform
PC

SDK Version
Realsense Viewer v2.49.0

Language
{C#}

We have the following setup and seem to have a problem with the HW Sync combined with the internal laser
D435 Master (Inter Cam Sync Mode 1)  D435 Slave (Inter Cam Sync Mode 2)
Both cameras are point in the same direction, with a distance of +/- 45cm between them, and the object is around 50cm away.
The following settings are set fixed:
Resolution: 848x480
FPS: 6
Exposure Time: 1000
Laser Power: 360
Gain: 16

As can be seen, the master gives a descent depth image and on the IR image can be seen that the IR Laser is working.
But the Slave D435 is messy and doesn't show any laser data on the IR image.
When I slowly increase the Exposure to 1100, 1200, 1300 etc. Then slowly a laser is becomming visible int the IR image
When the exposure is 1600 this is visible:

Can it be that the laser is slightly out of sync with the capturing of the images, or can it be any other problem?
When selecting Emitter On Off on the Slave Camera, I can see on the master IR image that the laser is actually flashing, but it is not shown in the slave IR

When selecting the option Emitter Always On on the slave camera, there still isnt a stable IR Light:

When I Set the slave camera to stand alone (Inter Cam Sync Mode 0), the IR Seems to work without any problems:

Can it be that the Slave get slightly out of sync due to it being controlled by the Master Camera.
I do need the Exposure time, Laser Power and Gain to be like this. And in the future I will need the Camera Sync.
Basicly there are 2 issues:
In Slave Mode the IR Laser is not visible
When selecting Laser Always On, the laser is flashing instead of stable on.
This problem occurs on multiple test setups, Always with the slave not showing an IR laser
Is this a problem in the Realsense Firmware, or am I configuring something wrong?

Hi @PorschefanRoel  In https://github.com/IntelRealSense/librealsense/issues/8129#issuecomment-756796426 a RealSense team member advises that because the D435's projector pulses in line with exposure, if there are two D435 that are not currently successfully hardware synced then sometimes their pulses will be on at same time and sometimes not.  It is suggested to set both cameras' projectors to Always On or use hardware sync (which you have been attempting to do).
Can you confirm please whether you have created a hardware sync cable to join the two cameras together using their external hardware sync pins that are underneath a small cover on the top of the camera casing, as described in the hardware sync guide linked to below.
https://dev.intelrealsense.com/docs/multiple-depth-cameras-configuration

Unless the cameras are joined with such a cable, or you are alternatively generating a master 'trigger pulse' signal using external signal generator hardware, then the cameras will not hardware-sync even if Inter Cam Sync Mode settings have been defined.
I also note on the slave camera images that its timestamp is in red text, suggesting that the software timestamp (system time) is being used rather than the hardware timestamp on the master camera whose timestamp is in normal white text.

I indeed have a sync cable connected (purle on both sides to pin 5, black to pin 9)

To better see it's orientation, this is how the cable looks when connected to the D435:

I saw that I hadn't Enabled the "Frame Metadata" message when I started the Realsense software. So after enabling the "Frame Metadata", I immediately started the streams (as master & slave), but forgot to set the resolution to my desired 848x480. Then the laser was visible on both images and all timestamps where white:

Then I stopped the cameras, set it to 848x480, all other settings are unchanged. And the laser was again no longer visible. Times where still shown in white

When I stop the camera streams again, move back to 640x480, the laser will stay not visible. When I then stop the cameras, close the Realsense Viewer, open the realsense viewer again and start the stream again on 640x480. The laser is visible again.
When I stop the streams, close the Realsense Viewer, Open the realsense viewer, set resolution to 848x480, the laser is not visible.
During all these runs the timestamps stayed white.

Thanks @PorschefanRoel  for the very detailed feedback.  If you reboot the computer, launch the Viewer and set both cameras to 848x480, is the laser visible?  If it was then it might suggest that the problem is occurring when the streams are stopped and then started.

And thank you for the fast response.
This are the steps I've done:
Shut Down PC
Startup PC
Startup Realsense Viewer
Now 1 realsense viewer is shown in the bar
Expand "Stereo Module" menu
Set "Resolution" to 848x480
Set "FPS" to 6
Disable "Auto Exposure"
Expand "Controls"
Set "Exposure" to "1000"
Set "Laser Power" to "360"
Set "Inter Cam Sync Mode" to 1
Collapse "Stereo Module"
Start Camera

Master camera is now started
Click "Add Source"
Do the exact same steps as above, until "Inter Cam Sync Mode", have set that to 2.

But unfortunatly, still no laser on the slave.

What I did find out was that the runs where the laser was shown on 640x480. The FPS was run on 15FPS, instead of 6, when running on 6FPS and 640x480, there is also no laser shown. The problem thus occurs on multiple resolutions, when run on 6FPS.

In general I would recommend avoiding 6 FPS and using 15 FPS if possible, as errors as more likely to occur at 6 that disappear at 15.  At 6 FPS, frames may be arriving slowly enough that the pipeline time-outs while waiting for new frames to arrive.
One way to avoid such problems may be to stream at 15 FPS but simulate a lower frequency by only handling every 'nth' frame, such as setting 30 FPS and using only every 5th frame to achieve 6 FPS.  The link below provides more information about this.
https://support.intelrealsense.com/hc/en-us/community/posts/360043865234/comments/360011260594

Due to the current 2.0 cable it isn't possible for us to use the 15FPS at the required 848x480 resolution, so we will keep using the 6FPS for now and turn off the Sync. If that gives good enough results we'll use that, if sync on a later moment seems needed we'll look into upgrading the cables to a 3.0 solution to make the 15FPS (or more) possible.
Thank you for the support

You are very welcome, @PorschefanRoel - good luck!

Hi @PorschefanRoel  Do you require further assistance with this case, please?  Thanks!

For now we don't need further assistance. Thanks for the help

Thanks very much @PorschefanRoel for the update - I will therefore close the case as you do not require further help for the time being.  Thanks again!

I know this is an old issue of mine, but due to synchronisation issues I came back to this. I've now updated the firmware to <IP_ADDRESS> and using the Realsense Viewer 2.53.1 and at first glance the laser seems to work on both the master as the slave cameras.

Thanks too for this update  :)


fix: add opcode GASCONSUMED

Using native GASCONSUMED in Tact results in the following error:
Fift decompiler crashed
Error: Unknown opcode: b11111000000001

Thanks for the contribution! However, that's already covered in another PR, which will be reviewed sometime soon: #7


Always specify --age-group for Oculus

Without this, Beta builds show a warning in the dashboard, and LIVE builds do not get published.
The doc at https://developer.oculus.com/resources/age-groups/ suggests that this is per-app, but the docs at
https://developer.oculus.com/resources/publish-reference-platform-command-line-utility/ refer to it as a per-build setting. It seems it's actually per build.
It also has to be set for Q1 only builds, despite the fact that Q1 doesn't officially support this feature!

FYI @mikeskydev


use in VAE

Hi, I try to use your layer in VAE, but when I replace the conv layers, it goes wrong.
RuntimeError: Expected 4-dimensional input for 4-dimensional weight 512 512 3 3, but got 3-dimensional input of size [64, 512, 32] instead
It seems the trouble is about the dim of the input, but when I use normal conv layers, it is OK for default parameters. And when I run your sample code, I don't need to change the size of input. Can you give me some help?

Hi @liu-x-p,
Could you provide a minimal reproducible example code for us to look into this issue?

@yangyanli
Thanks. Maybe you can just try this encoder.
`
#encoder
import torch.nn as nn
from do_conv_pytorch import DOConv2d
class MelEncoder(nn.Module):
def init(self, in_channel, channel, stride, n_res_block=3):
super(MelEncoder, self).init()
# Input: (B, n_mel, T)
if stride == 2:
blocks = [
DOConv2d(in_channels=in_channel, out_channels=channel, kernel_size=(1, 4), stride=2, padding=1),
nn.BatchNorm1d(channel),
nn.LeakyReLU(inplace=True),
# After: (B, channel, T/2)
nn.Conv1d(in_channels=channel, out_channels=channel, kernel_size=3, stride=1, padding=1),
]
blocks.append(nn.LeakyReLU(inplace=True))
    self.blocks = nn.Sequential(*blocks)

def forward(self, input):
    return self.blocks(input)

if name == "main":
import torch
X = torch.randn((1, 128, 80))  # B, T, n_mel
encoder = MelEncoder(in_channel=80, channel=1024, stride=2)
lin = encoder.forward(X.permute(0, 2, 1))
print(lin.shape)
`
Sorry I don't know how to change the format of code.

When you convert conv1d to conv2d, please change your input to 4D-tensor accordingly, like (B, n_mel, 1, T).

@jinming0912 Thanks for your reply. I take the problem too easy. It does have many to change in the code. Thank you!


Select default annotations for neuroglancer

Default annotations to be chosen retroactively for neuroglancer visualization.

Waiting for review: https://github.com/chanzuckerberg/cryoet-data-portal-backend/pull/9#issuecomment-1936429165


Question about getting Gyro data stream from D435i camera in Unity

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
D435i

Firmware Version
<IP_ADDRESS>

Operating System & Version
Win10

Platform
PC

SDK Version
2.45.0

Language
Unity

Segment
IMU

Issue Description
<Describe your issue / question / feature request / etc..>
Hi,
I met a problem when trying to add the IMU stream into one of the unitypackage sample PointCloudDepthAndColor.
The first thing I tried is to change the configuration, adding the gyro stream.
public RsConfiguration DeviceConfiguration = new RsConfiguration
    {
        mode = RsConfiguration.Mode.Live,
        RequestedSerialNumber = string.Empty,
        Profiles = new RsVideoStreamRequest[] {
            new RsVideoStreamRequest {Stream = Stream.Depth, StreamIndex = -1, Width = 640, Height = 480, Format = Format.Z16 , Framerate = 30 },
            new RsVideoStreamRequest {Stream = Stream.Infrared, StreamIndex = -1, Width = 640, Height = 480, Format = Format.Y8 , Framerate = 30 },
            new RsVideoStreamRequest {Stream = Stream.Gyro, StreamIndex = -1, Width = 640, Height = 480, Format = Format.MotionXyz32f , Framerate = 200 },
        }
    };

However, nothing happened.
The second thing I tried is to follow this link which I found from previous issues. I added one more profile to these profiles shown under RsDevice Script.
https://qiita.com/NWLab/items/69f1a9f8102096a3d451
It turned out that this time it worked. I could get the gyro data stream smoothly.

So I was kind of confused. What is the function of the DeviceConfiguration in the code?
I also tried once to leave the config blank like this.
public RsConfiguration DeviceConfiguration = new RsConfiguration
    {
        mode = RsConfiguration.Mode.Live,
        RequestedSerialNumber = string.Empty,
        Profiles = new RsVideoStreamRequest[] {
        }
    };

The application still worked as usual. So I don't know what exactly is the function of this code?
Thank you so much!
Bingjian,
May 28, 2021

Hi @huangbj16   It looks as though the code that you were using is almost the same as code already included in the RsDevice script, except for the addition of the IMU references.   And you take care of the IMU definition by adding a Gyro profile to RsDevice.
https://github.com/IntelRealSense/librealsense/blob/master/wrappers/unity/Assets/RealSenseSDK2.0/Scripts/RsDevice.cs#L51-L60

Hi @MartyG-RealSense! Thanks for the quick answer!
I think what you are saying is that because I added the Gyro profile, the Profiles inside DeviceConfiguration become unnecessary.
But if that is the case, why both these two "profiles" exist in the RsDevice. It may cause confusion.
Moreover, I also tried to do

add Gyro to the Device Configuration Profiles.
do nothing with the RsDevice profiles.
In this case, the Gyro stream doesn't work correctly, I didn't get any Gyro data.
So it seems like these two "profiles" do have some diffs. Just didn't know the details yet.

Anyway, thanks for the quick answer. Looking forward to more discussion!~

From your description, it sounds as though you loaded the sample scene PointCloudDepthAndColor into Unity and in that scene was included an RsDevice object containing an RsDevice script.  The default profiles available were Element 0 (Depth) and Element 1 (Color).
At this point, you could increase the profile size from '2' to '3' to create a new element slot.  By left-clicking on the drop-down menu beside the Stream option of RsDevice, you could select different streams from a list, including Gyro and Accel.  From your description, it seems that this is what you have already tried.
It should therefore be possible to add Gyro to the new element profile without having to add new program code yourself.  But you found that it didn't work and you were not able to stream gyro data from your D435i after having added the Gyro profile from the menu.
In the Format section of the profile, did you set it to Xyz 32f, the format in the RealSense SDK for IMU data?

I got it to work.  Aside from setting the Fornat to 'Motion Xyz 32f', the key was to set the Framerate of the IMU profile to a frequency supported by the RealSense SDK.  This is 200 or 400 for Gyro and 63 or 250 for Accel.
It does not matter what values are set for Width and Height, as Gyro and Accel do not use those settings and automatically set them both to '0' when the program is run.

Hi @MartyG-RealSense,
I tried to follow your guidelines above to set the profile size, change the stream option, and set the framerate. Yeah it worked! Awesome. I also found that you can set the framerate at 0, the SDK will automatically determine the available framerate for the sensor. Nice code!
The problem I met previously in my development is that, at the beginning, I assumed that I should be able to add the IMU sensor by changing code profiles in DeviceConfiguration data structure, because it looks really reasonable to change that part. But it didn't work. It was afterwhile that I found I can change the profiles of the RsDevice. So this might cause a bit confusion for Realsense novice developers like me.
Still, many thanks for your kind support! This problem is solved.

You are very welcome @huangbj16 - it is excellent to hear that the IMU profile setup method worked for you.  Thanks for the update!


lock-session doesn't trigger hyprlock

When the listener does the lock-session command, or when its done manually, it doesn't trigger hyprlock.
Here is my config:
general {
  lock_cmd = pidof hyprlock || hyprlock       # avoid starting multiple hyprlock instances.
  before_sleep_cmd = loginctl lock-session    # lock before suspend.
  after_sleep_cmd = hyprctl dispatch dpms on  # to avoid having to press a key twice to turn on the display.
  ignore_dbus_inhibit = false             # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam)
  ignore_systemd_inhibit = false          # whether to ignore systemd-inhibit --what=idle inhibitors
}

listener {
    timeout = 150                                # 2.5min.
    on-timeout = brightnessctl -s set 10         # set monitor backlight to minimum, avoid 0 on OLED monitor.
    on-resume = brightnessctl -r                 # monitor backlight restore.
}

listener {
    timeout = 300                                 # 5min
    on-timeout = loginctl lock-session            # lock screen when timeout has passed
}

listener {
    timeout = 330                                 # 5.5min
    on-timeout = hyprctl dispatch dpms off        # screen off when timeout has passed
    on-resume = hyprctl dispatch dpms on          # screen on when activity is detected after timeout has fired.
}

I am using hypridle 0.1.5 and Hyprland 0.45.2 on gentoo using openrc

is hypridle spawned from hyprland or a service? If a service, it doesn't share the same environment as hyprland, so hyprlock cannot start because it doesn't know where to start

its from hyprland. its not systemd. Is there a solution to that?

I switched to systemd on gentoo to test it and it works.

your env is somehow not propagating correctly.

Does not work in Arch either.

Looks like it's already been fixed.
It works in my environment

@Joao-Queiroga ?

Maybe a specific case, but I had the same problem. It started working for me after starting using uwsm and enabling hypridle.service; I had my own systemd service.
For the case of Arch Linux, make sure hyrplock is not crashing because of the wrong hyprutils library.

I actualy went back to arch and it stopped. I think it has something to do with elogind.


Update relay.py

in rely.py, you didn't import requests, then the requests.packages.urllib3...... will give an error when I use the proto of "http"

Thanks dude, appreciated


Exception selecting overloaded method in 3.1.4

In Thymeleaf there is an Aggregates class which contains an overloaded avg(...) method. See the specific class here.
All the different variants of this method look like this:
    public BigDecimal avg(final Iterable<? extends Number> target) {...}
    public BigDecimal avg(final Number[] target) {...}
    public BigDecimal avg(final byte[] target) {...}
    public BigDecimal avg(final short[] target) {...}
    public BigDecimal avg(final int[] target) {...}
    public BigDecimal avg(final long[] target) {...}
    public BigDecimal avg(final float[] target) {...}
    public BigDecimal avg(final double[] target) {...}

In one of my tests, I create an object using an OGNL expression, like:
nums01 = { 5, 5 }

Which creates a java.util.ArrayList<java.lang.Integer> for the nums01 variable.
Then I use this variable as an argument to an avg call in an OGNL expression such as:
#aggregates.avg(nums01)

This worked perfectly until OGNL 3.1.3, and the first version of the overloaded method (the one receiving an Iterable<? extends Number>) was executed. However, in OGNL 3.1.4 I receive this exception:
java.lang.IllegalArgumentException: Can't decide wich method to use: "public java.math.BigDecimal org.thymeleaf.expression.Aggregates.avg(float[])" or "public java.math.BigDecimal org.thymeleaf.expression.Aggregates.avg(long[])"
	at ognl.OgnlRuntime.findBestMethod(OgnlRuntime.java:1427)
	at ognl.OgnlRuntime.getAppropriateMethod(OgnlRuntime.java:1283)
	at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1452)
	at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
	at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1598)
	at ognl.ASTMethod.getValueBody(ASTMethod.java:91)
	at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
	at ognl.SimpleNode.getValue(SimpleNode.java:258)
	at ognl.ASTChain.getValueBody(ASTChain.java:141)
	at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
	at ognl.SimpleNode.getValue(SimpleNode.java:258)
	at ognl.Ognl.getValue(Ognl.java:494)
	at ognl.Ognl.getValue(Ognl.java:458)

It can be only related to #19

Hi.
#19 was originally made by me. I'll take a look into that issue...
Sorry for the late reply it seems somehow my github email notification's dont work and I just disovered this by chance...

@marvkis great, thanks a lot!

Okay, I have an idea what's going wrong:
Initially in AstMethod.getChildrenClasses() implementation for ASTList I already had a parametrized array as returning type that hold's the information about the appropriate carried class types. But as this didn't reflect ASTList's real behavior - returning an ArrayList - this wasn't the right way so I changed it to return a list. List itself is a generic type, but as far as I know a 'Class' can't be parametrized easily so the 'inner' type information got lost and so the method weighting can't make a clean decision...
Have to dig into that... but it must work somehow, when refactoring into a class the returning types are parametrized...

After some investigation:
The "Generics" approach is the wrong way. I started an approach to use a "typed class carrier" but it was the wrong way. It worked quite well for "compiled" OGNL commands, but it failed during interpretation - Interpretation is done on live objects and not on classes, and due to "Generics Type Erasure" generics type information is only available during compilation and not any more during run time. So i abandoned this approach - it's still here for whom it might interest: Issue-23-Generics
So, as always if you ran into the wrong direction, change your perspective: What does java itself when it has to call avg() with a java.util.List argument? And indeed, it chooses the avg(Iterable...) method.
And it didn't work because the OgnlRuntime.isTypeCompatible() bailed out with an exception to early instead of continuing if there is a better matching method.
I also had to change the method weighting and matching a bit with the 'Generics Type Erasure' in mind: A java.util.List only will match to an Object[] array during runtime. With this in mind all Unit-Tests worked again.
Btw: sa-ChristianNiessner is my 'work' account and marvkis my personal / private account. I did this during work hours so the credit is for my company ;)

@marvkis aka sa-ChristianNiessner please provide your company name and I will used in Version Notes :)

@lukaszlenart it is 'secadm GmbH' - http://www.secadm.de/ . thanks a lot.
@danielfernandez Was this discovered in an unit test of thymeleaf or during runtime? Can you do further 'real life' tests?
@lukaszlenart can you test it within struts to see if the changes perform fine or bring up another issues?
thanks!

Do we already have a snapshot for this? if so, what's OGNL's Maven snapshots repository?

@danielfernandez just pushed it to https://oss.sonatype.org/content/repositories/snapshots/

I can confirm all Thymeleaf tests pass with 3.1.5-SNAPSHOT, including the dozen tests that fail with 3.1.4

Fixed with #24

3.1.5 is under way to the Central, thanks @sa-ChristianNiessner and @danielfernandez !


Run silently

Hi,
I'm running Twint as module. Is there a flag configuration to make ir run silently? I'm collection tweets from a user and I don't need the printout, since I'm saving them to a json file.
Thanks

Sure, you have just to set Hide_output = True, for example:
import twint

c = twint.Config()
c.Username = target
c.Hide_output = True

twint.run.Search(c)


C# make reference docs tooling to docfx directory to avoid collision

The src/csharp/doc was meant for reference docs, but now also contains images for other .md docs. To avoid confusion, moving docfx related scripts to docfx directory.

Known failures:
https://github.com/grpc/grpc/issues/13379


add unexpo

Institution/School Name
Universidad Nacional Experinmental Antonio Jose de Sucre
Antonio Jose de Sucre National Experimental University
Instiution/School Website
{Website URL}
Email Users
Please place an x between the square brackets if yes

[X] Students
[X] Academic/Teaching Staff
[ ] Other/Support Staff
[X] Alumni

Education Levels
Please place an x between the square brackets if yes

[X] Post-graduate research
[X] Graduate School
[X] College (University) or Undergraduate School or equivalent
[ ] Community College or equivalent
[ ] High School or equivalent
[ ] Elementary School or equivalent

@Asdaois First stage of verification passed, official domain is virtualunexpo.com as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision. Proof of domain ownership: https://prueba.virtualunexpo.com/

@Asdaois Thank you for your patience while waiting for a review and processing your request. Pull request merged.

@philipto Thank you so much


blog-author: Remove links

Per Kiran, we are not going to have Author pages in our version of /whatson to link to.

We decided we are going to need the author pages. Closing.


Add generic PrepMod support

Hello! I noticed that many states use the same PrepMod system under different URLs, and thought it would be cool to make the code a bit more generic and add the Massachusetts system to vaccine-spotter. The only real change was to allow the refreshStores function to take some arguments to define the provider and URL to scrape, and then return a function that runTask can call. I also had to change the handling of searchParams in fetchSearchPage to allow for searching both "covid" and "Vaccination" but honestly I don't think the PrepMod sites ever actually return results for the other selectors (like Testing/Screening) so you could probably drop the services_name_in param entirely. I tested this out locally and both maimmunizations and comassvax seem to work, although I was only able to get so far as verifying that they inserted rows into the database and not to the point where I ran the UI to see them.
I think this code could also help solve #94 and a few other states like Rhode Island.

FYI not relevant right now for obvious reasons. but PrepMod has been used for stuff like flu vaccine clinics

Ah that makes sense, thanks for the clarification! It's strange that CO has selectors for Testing/Screening/Vaccination/COVID-19 Vaccination with most clinics under "COVID-19 Vaccination" while MA has selectors for just Testing/Screening/Vaccination and RI has no selectors at all. Providing the "Vaccination" search param under Rhode Island in fact leaves most of the clinics out of the returned results, so if that state is added it probably makes sense to either drop the param entirely or have state-specific params set.

Actually after playing with it a bit more, RI's clinics are returned with the "covid" search param, so I think having both available like in the PR will work. All of MA's clinics are under "Vaccinations" which is why I changed it to include both. Adding "Vaccination" also unearths a few additional CO clinics that were missed by just including "covid".

It should be kept in mind that some municipalities use PrepMod for restricted events and don't always make those restrictions clear on PrepMod page itself. Minnesota's Department of Health has a vaccination PrepMod site that regularly does this. Just the other day there was a clinic listed for deaf and blind people only, except those restrictions weren't specified on the PrepMod site itself, but rather on the state and county pages that linked to it. People have been turned away for making appointments at these clinics without being eligible.
Just something to keep in mind, it's probably advisable to not link directly to the PrepMod site whenever possible and instead link to the relevant page on the provider's main site.

Sorry I've been belated in review this, but adding other PrepMod locations has definitely been on my radar, so thanks for this! I'll try to review this later this week. Thank you!


Changed parameters, loss functions in variational autoencoder example

Fixed some (what I thought be) mistakes in the variational autoencoder example

KL div between latent distribution and its prior is now summed rather than averaged over the latent variables
Same holds for the likelihood of the output variables
The std of the noise distribution is now incorporated into KLD part of the loss function, since it affects the effective std's of the latent distriution. Here, my rationale was that the std of the noise might be a hyperparameter you want to optimize, and that to be able to do that the loss functions have to be comparable.
Earlier KL div missed scaling of the log_std by 2

Note that points 1 & 2 are now in line with the implementation referred to by Durk Kingma: https://github.com/y0ast/Variational-Autoencoder/blob/master/VAE.py
Additional changes:

Increased the batch size (helps with stability), plus Kingma+Welling argue that they can get away with sampling the latent distribution only once during training (as we do here) with a batch size >= 100
Changed to plotting range to accommodate the new range of the latent dist.

ok somehow i missed https://github.com/fchollet/keras/pull/3220, apologies, closing


Onboard TPC-H workload in LST-Bench

See #106 .

Hi @jcamachor.
Thanks for the PR. Could you provide additional insight on the rationale behind integrating TPC-H? It seems like a good idea since TPC-H is a popular benchmark for OLAP systems. However, it misses a refresh phase as pointed out in the description of this PR. I am assuming the refresh will be part of an upcoming PR. If you could elaborate on the upcoming enhancement related to refresh phase for TPC-H, that'd be great. I'm also keen to understand which aspects of table formats are expected to get impacted by this TPC-H and its custom refresh phase enhancement.

Thanks @ashvina. As you mentioned, TPC-H is another widely utilized benchmark for decision systems, but differing slightly from TPC-DS. One notable difference is the finer granularity of refresh phases compared to TPC-DS. Another difference is that in the throughput phase, the refresh stream is executed concurrently with other streams running read queries.
Introducing the core TPC-H as a base workload opens up interesting directions, such as leveraging it for evaluating engines/tables using a different workload, and also being able to use its task templates for designing slightly modified workloads (e.g., longevity).
Regarding the refresh phase's implementation, it has already been incorporated into the PR (comment in the description was outdated). You can find the code in #106. The implementation closely mirrors the refresh phase used in TPC-DS; thus, we did not need to use any custom task definition as introduced in #105.

Closes #106


Unicode characters escaped with JsonLexer and HtmlFormatter

(Original issue 1419 created by None on 2018-02-27T18:44:49.546140+00:00)
Using a JsonLexer and HtmlFormatter with a non-ascii string in Python 2,7, for example:
#!json
[
  "告知書扱い対象の保険種類",
  "一般検診が必要"
]

The HtmlFormatter escapes non-ascii characters, resulting in the equivalent :
#!json
[
      "\u544a\u77e5\u66f8\u6271\u3044\u5bfe\u8c61\u306e\u4fdd\u967a\u7a2e\u985e",
      "\u4e00\u822c\u691c\u8a3a\u304c\u5fc5\u8981"
]

..and HTML:
#!html
"

{  "$id": "http://example.com/example.json",   "type": "array",   "definitions": {},   "$schema": "http://json-schema.org/draft-07/schema#",   "items": {    "$id": "http://example.com/example.json/items",     "type": "string",     "title": "The 0th Schema",     "default": "",     "examples": [      "\u544a\u77e5\u66f8\u6271\u3044\u5bfe\u8c61\u306e\u4fdd\u967a\u7a2e\u985e",       "\u4e00\u822c\u691c\u8a3a\u304c\u5fc5\u8981"    ]  }}

"

The exact same string with the same HtmlFormatter, but using an XmlLexer, works just fine:
#!html
<item>告知書扱い対象の保険種類</item>
<item>一般検診が必要</item>

This bug makes syntax highlighting of JSON with non-ASCII text rather useless:
https://data.perio.do/fp7wv99g3.json.html

I'd like pygments to make this issue fixed soon...

Can you please check with 2.7.3, as this has a brand new JSON lexer?

Can you please check with 2.7.3, as this has a brand new JSON lexer?

I already used version 2.7.3, but not fixed yet.

Can you please check with 2.7.3, as this has a brand new JSON lexer?

Ah, sorry for my mistake.
In my case, lexer is not the problem, but json.dumps().
Thank you! @Anteru

I also checked a bit and couldn't reproduce this problem back to version 2.0.


Is there a clone method for the rs2::frame?

My scene is one thread use pipeline capture rs::frame, and more then one threads consume the rs::frame; consider thread synchronization issues，all consume thread in the sync block need deep copy the producer rs::frame first.
in opencv, I can use cv::Mat.clone(), is there a clone method for the rs2::frame?

Hi @dongxuanlb
Why do you need to deep copy the frame object?
You can just pass rs2::frames around between different threads via thread safe rs2::frame_queue primitive. You might want to call frame.keep() if processing takes too long, but other then that there should be no need for clone.
do-processing-on-a-background-thread
Alternatively, you can convert frames to cv::Mat and proceed from there.

Hi @dorodnic
deep clone is because I have more than one threads to process a frame concurrently.
I'm not export for the c++, I just refer to the mjpeg-streamer, and now I convert the frame to Mat first, and use clone method, it works well!

Hi @dongxuanlb
If you have multiple threads all reading from the same frame, there is no threading issue with that.
You should only be concerned if at any point you forcefully remove (const) qualifier from frame data.

Hopefully resolved
Feel free to open follow-up issues if needed


Simplify frontend constructor and override clients in unit tests as needed

Which issue this PR addresses:
Fixes https://github.com/Azure/ARO-RP/issues/546
What this PR does / why we need it:
frontend.NewFrontend has become increasingly unwieldy, with more and more factories needed to allow for unit testing.
This PR uses chaining methods to simplify the frontend struct and its constructor, as well as the unit tests which need to pass mock clients into a frontend struct. This will make it much easier to write unit tests for the upcoming Serial Console Geneva Action and also the existing Must Gather Geneva Action, as well as any other, future Geneva Actions which may require an additional client factory to be added to frontend.
Design Proposal [WIP]
Test plan for issue:
All existing unit tests still run.
Is there any documentation that needs to be updated for this PR?
No.

/azp run e2e

/azp run e2e

A style I saw in the k8s-client REST client was chaining -- would this work better? https://godoc.org/k8s.io/client-go/rest#Request
Then when constructing a frontend, you could do:
f := frontend.New(ctx, log, env, db).
    WithVMClient(myFakeClientFactory).
    WithKubeClient(myFakeKubeClientFactory)

And then, when you call f.Run(ctx, ...) it checks to see what clients it has not got set, and then generates the default version.

/azp run e2e

/azp run e2e

/azp run e2e

/azp run e2e

@jim-minter That sounds like a better design


[Symfony 4.4] Add AuthorizationCheckerIsGrantedExtractorRector

Fixes https://github.com/rectorphp/rector-symfony/issues/106

implemented 🎉 /cc @Herimamitiana

All checks have passed 🎉 @TomasVotruba it is ready for review.


Support forwards and backwards variable references in local variable refinement type predicates

This PR also removes support for untyped constants.


feat: Add data:application/json;base64 support to AuthenticationOauth2

Added support for using OAuth2 with a base64 encoded string instead of a file path.
Workaround for https://github.com/fsprojects/pulsar-client-dotnet/issues/253

@Lanayx I've been able to drop these changes into my application and verify that the base64 credentials decode is working.