peculiarities when running text2image on windows

(this is more of a comment than an issue but more issues can follow and the discussion might be useful; nevertheless, it might be closed after the PR for 1. )

At the moment, text2image expects fc backend e.g,:
https://github.com/tesseract-ocr/tesseract/blob/ba2ea39caaa791b5e5f092953057cb8ffb094a82/training/pango_font_info.cpp#L356
but if pango is compiled with win32 support, you get the win32 font map first

#if defined(HAVE_CAIRO_WIN32)
  if (!backend || 0 == strcmp (backend, "win32"))
    return g_object_new (PANGO_TYPE_CAIRO_WIN32_FONT_MAP, NULL);
#endif
#if defined(HAVE_CAIRO_FREETYPE)
  if (!backend || 0 == strcmp (backend, "fc")
           || 0 == strcmp (backend, "fontconfig"))
    return g_object_new (PANGO_TYPE_CAIRO_FC_FONT_MAP, NULL);
#endif

and nasty crashes follow because of the wrong reinterpret cast.
Fast Solution: specify fc backend
Solution: a simple patch will follow that fixes the behaviour for, at least, the most important functionality.
2. If fontconfig is linked as dll, putenv does not get propagated to fontconfig
https://github.com/tesseract-ocr/tesseract/blob/ba2ea39caaa791b5e5f092953057cb8ffb094a82/training/pango_font_info.cpp#L151
Solution: specify it as environmental variable
3. You cannot use disk paths (e.g., c:) in FONTCONFIG_PATH because fontconfig strips slashes from path (FcStrCanonAbsoluteFilename) and then uses
GetFullPathNameW (dirname, 0, NULL, NULL)

without the slash and that function, interestingly, behaves like this
a file name begins with only a disk designator but not the backslash after the colon, it is interpreted as a relative path to the current directory on the drive with the specified letter.

Solution: specify a sane directory

None of these issues has been solved.
At least the first one probably affects Tesseract running in MinGW and Mac.

Fast Solution: specify fc backend

https://github.com/GNOME/pango/blob/master/pango/pangocairo-fontmap.c#L48
Something like this should be put in text2image.cpp:
#ifdef _WIN32
 putenv("PANGOCAIRO_BACKEND=fc");
#else
  setenv("PANGOCAIRO_BACKEND", "fc", 1);
#endif // _WIN32

Should be tested before committing this code...

I think this issue should be reopened.

AFAIK vidiecan is usisng VS. Is there any report from mingw users?

He fixed number 1. in his list in one place in the code. That piece of code did cause a crash on Windows+VS, MingW(64) and Mac.
There is another similar piece of code that will probably cause a crash in some situation on all these platforms.
I suggested a solution above, but it useless to test it on Linux.

Here is the problematic line:
https://github.com/tesseract-ocr/tesseract/blob/182ca5bc1e/training/pango_font_info.cpp#L367
You need to use text2image with the flag only_extract_font_properties to trigger the function in which this code lives.

The dotted_circle changes in #381 caused problems (in Linux at least).
See: https://github.com/tesseract-ocr/tesseract/blob/5bb97f9668856e55bb58368682a3163d264fd260/training/pango_font_info.cpp#L438

@vidiecan : Are points 2. and 3. still valid? If yes, do you have PR for it?

The relevant code was rewritten in Tesseract 5.0.
@stweil,
Do you know if all the issues that were mentioned by the OP were solved?

No, I don't know that and would have to run tests first. @vidiecan, did you test with the latest installer for Windows?


Project Rotation: repometrics.json

MENTOR

@natalialuzuriaga
SWE USDC 2023
Communication Channel(s) for your team/project (e.g. Slack Channel URL, GitHub Repo URL, etc...)

BRIEF DESCRIPTION

source a list of user generated metrics/labels to include in repometrics.json
create a repometrics.json file that users can edit manually
create a cookiecutter.json file that edits repometrics.json programmatically

SCOPING

Days

SKILLS NEEDED
e.g. Back-end, Webdev
REQUIRED DELIVERABLES
DESIRED DELIVERY WINDOW

June
July
August
Any

NOTES/INSPO

formatted metrics.json inspo: https://github.com/DSACMS/metrics/tree/main/app/site/_data/DSACMS/metrics
cookiecutter inspo (link)

ACKNOWLEDGEMENTS

[X] - Yes, I agree to spend file a project proposal ticket
[ ] - Yes, I agree this project falls within a 2 week or less (ideally less) scope of time
[ ] - Yes, I agree to spend an hour per week of office hours and 1x1 mentoring
[ ] - Yes, I agree to spend an hour at the end of the sprint for filling out a Retro Template

06/17:

Met with Nat. Discussed data for inputs and tags
planning to meet again tomorrow to finalize as a team
will go over different libs
goal: have all repometrics identified for the .json file
goal: ideas/mockups for a visualization.
goal: simple text in the repo reports

06/21:

Determined fields for repometrics.json
PR incoming for template on repo-scaffolder
complete: repometrics identified
Next Week: mockups
future: text in repo reports

06/24:

Bulk of the code exists, will change templates, and then move on to creating mockups.
Goal: finish templates, create mocks.
Stetch: Start implementing in reports!

Note: To have nested cookiecutters, the parent cookiecutter.json must have the flag:
"_copy_without_render": [<subdirectory>]
this will copy the subdirectory and the contents (child cookiecutter) without invoking it.
https://stackoverflow.com/questions/76262434/how-do-i-create-a-nested-cookiecutter

Good work on the tier 2 repometrics https://github.com/DSACMS/repo-scaffolder/pull/106
ACTION: replace Python script with Bash script before PR merge
Not going to be creating a repometrics.json file, instead going to use the code.json file 👍

7/1:

Merged tier 2, need to do tier 3 and 4
Need to figure out how to get data on metrics site
ACTION: Create frontend ticket for repometrics on the metrics website
ACTION: Create backend ticket for repometrics on the metrics website
Get rest of the tiers merged first

7/3:

all tiers PR's merged!
ACTION: User research plan - Get feedback from around CMS with forming the categories/fields, update code with new fields if needed

7/8:

Follow up on User Research Plan. See if we want to add fields or not.
Close after action item completed

7/12:

Still setting up meetings and working on User Research

7/15:

Backend is all done 🙌  waiting on Isaac's review @IsaacMilarky
Next time site will update is next Monday so get in code.json added to metrics, DedupliFHIR, /open, repo-scaffolder

7/19:

Frontend PR is up with 6 tags up! Needs to double check with @natalialuzuriaga on editing some options (repo host)
For later: need to add required code.json fields to repo-scaffolder, user research on hold for now
code.json has been added to 4 DSACMS repos

7/22:

Works in dev, not in build, need to be fixed (path issue)
Once merged, close this ticket!

07/26:

Path issues resolved!
PR Merged! https://github.com/DSACMS/metrics/pull/189


New-DbaAvailabilityGroup - Fix accepting multiple IPs for listener creation

Type of Change

[x] Bug fix (non-breaking change, fixes #6378  )
[ ] New feature (non-breaking change, adds functionality, fixes # )
[ ] Breaking change (effects multiple commands or functionality, fixes # )
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

hey shawn, did you test this? I'm just thinking there had to be a reason why i put that [0] there. It's ugly and i dont like ugly

It's example 3 of our own command 😁
https://docs.dbatools.io/#Add-DbaAgListener
We support passing in all the IPs so there is no reason to just pass in the first one. If that is, then we need to change the parameter to only accept one value.
Add-DbaAgListener -SqlInstance sql2017 -AvailabilityGroup SharePoint -IPAddress <IP_ADDRESS>,<IP_ADDRESS> -SubnetMask <IP_ADDRESS>

LOL, k, let's try this


[Driver] Load the standard library before starting parallel frontend invocations

Add a new action, LoadModuleJobAction, that the driver can use to schedule a load of a given module before we fan out and invoke the frontend multiple times. This gives the module interface loader a chance to compile it from a module interface before we start with parallel invocations, avoiding starting potentially dozens of redundant compiles of a large module. Start by using this on the standard library.
Quick fix for rdar://52839445

This still needs tests.

Looks good other than the weird helper function.

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - b38e7a172d6699c5183b846e37bf0ec71790cfaf

Build failed
Swift Test OS X Platform
Git Sha - b38e7a172d6699c5183b846e37bf0ec71790cfaf

@swift-ci please python lint

@swift-ci please python lint

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - 80b3d1aa13052166c6e36e1119d51590b376f782

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 0187f75a435cf68db977caaaf6c972eacafa8417

Build failed
Swift Test Linux Platform
Git Sha - 0187f75a435cf68db977caaaf6c972eacafa8417


CERTIFICATE_VERIFY_FAILED error (OSX 10.11)

I'm getting an SSL error when flextgl downloads the file http://www.opengl.org/registry/api/gl.xml, this is probably because www.opengl.org has a weak certificate (SHA-1). Are you seeing this problem too, and if yes, can recommend a workaround?
Thanks!
Here's the complete log output:
Downloading http://www.opengl.org/registry/api/gl.xml
Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 1182, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 1088, in request
    self._send_request(method, url, body, headers)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 1126, in _send_request
    self.endheaders(body)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 1084, in endheaders
    self._send_output(message_body)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 922, in _send_output
    self.send(msg)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 857, in send
    self.connect()
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 1231, in connect
    server_hostname=server_hostname)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ssl.py", line 365, in wrap_socket
    _context=self)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ssl.py", line 583, in __init__
    self.do_handshake()
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ssl.py", line 810, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "../../../../flextgl/flextGLgen.py", line 51, in <module>
    main()
  File "../../../../flextgl/flextGLgen.py", line 14, in main
    flext.download_spec(options.download)
  File "/Users/floh/projects/flextGL/flext.py", line 54, in download_spec
    urllib.request.urlretrieve(fileURL, filePath)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 186, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 161, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 469, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 579, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 501, in error
    result = self._call_chain(*args)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 441, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 684, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 463, in open
    response = self._open(req, data)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 481, in _open
    '_open', req)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 441, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 1225, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 1184, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)>

Update: it works fine from a Linux VM, seems to be a new restriction in OSX 10.11, probably not much you can do about it. I guess opengl.org must update its certificate.

Hi floooh,
I'm actually surprised that Python even does certificate checking in this case. We're just downloading from a http:// URL after all.
Maybe there's some workaround for this. I guess having an unverified OpenGL URL isn't that much of a security issue.

Yes it's strange that a http:// URL would cause a certificate check. I think there's a redirect happening to https://, navigating to the download URL in a browser also ends up with a https url.

FYI, the broken certificate has been fixed by opengl.org, flextgl is now working again on OSX 10.11 :)

Ah good to know. Closing this, then.


Only the game page should not be user-scalable.

Currently all pages are marked as not user-scalable. This is an accessibility problem, and should be fixed.

This has now been fixed!


add SerializedHybridCiphertext

Motivation

Solution

PR Checklist

[ ] Added Tests
[ ] Updated CHANGELOG.md

Current dependencies on/for this PR:

main

PR #7   👈

This comment was auto-generated by Graphite.


Support more DNS providers

There is a request to support Akamai at first.
https://github.com/akamai-open/api-kickstart/blob/master/examples/node/src/dns-zone-management.js
There should be some easy way to make it work. Think about it and propose solutions.

Probably the best way to go is to create a shell script for each provider similar to cloudflare.sh .

@jcbf It was specific question of my friend, asked via other ephemeral channels. That's why I have made this issue right away to not forget about it.

For reference: @AlexCline just contributed with AWS Route53 support in #141

This does not seems to be really important. Closing.


Actual behavior
Fails if the tar executable is not available.
I suppose this is also the reason, why the CI tests for windows fail ATM.
Do you have an idea how to solve the issue?
Reimplement the tar extraction by using archive/tar.
I can offer to do this implementation, if wanted.

Oh, that'd be great if you could look into it! I hope that either the new URLs (committed to master) work, or that Sourceforge recovers from their outage by now.
For CI, we could also look into caching the binaries somewhere (in an Actions cache or somewhere else).

I suppose this is also the reason, why the CI tests for windows fail ATM.

On Windows tar is part of the git installation package. It's located in c:\Program Files\Git\usr\bin folder. This path simple don't included in PATH environment variable.

That's the case, but that's bsdtar, which does not support symlinks on Windows. Our tests test symlinks on Windows, so we need GNU tar, which we install from Sourceforge.

Thanks for clarification. Now I understand what was the reason for missing symlinks in the dump tests on Windows.

Indeed! :)

tar is downloaded from https://github.com/restic/test-assets which works very well.


Is this library dead?

I opened a Pull Request in February, but it still has not been reviewed.
If this library is dead, please archive it, so that developers no longer think of using it.

Please review the comments in your PR.


Volumes - Broken links to azure disk and azure file csi driver examples

When clicking link to azureFile volume plugin, I expect to be taken to a github link with associated content, however, I am sent to
https://github.com/kubernetes/examples/tree/main/staging/volumes/azure_file/README.md
and receive a 404. The same behavior happens when selecting azureDisk volume plugin

Ref #29263
/kind bug


Select CiliumCIDRGroup by label, not by rule translation

Before this change, we manually translated network policy rules that referenced a CiliumCIDRGroup in to the constituent CIDRs. This is inefficient for two reasons:

This could require extensive policy recalculations for minor updates
It allocated an identity per CIDR, which is a waste of identities

For large CIDRGroups, this can lead to significant allocator and bpf policymap usage. The solution is to treat CIDRGroups the same way as ToFQDNs: allocate a single identity per group, then merely add that identity to CIDRs as they come and go. Specifically, if CIDR "<IP_ADDRESS>/8" is in CIDRGroup "example", then it would receive the label cidrgroup:io.cilium.groupname/example=
This can now support ~100k CIDRs with ease.
CiliumCIDRGroup now supports large numbers of CIDRs.

btw you can add Fixes: https://github.com/cilium/cilium/issues/30992 to the PR description. Might also be interesting to cross-reference the tasks listed in that issue description vs. this implementation https://github.com/cilium/cilium/issues/30992.

@joestringer I took a look at #30922 and it seems like we've got this all covered.

/test

@doniacld @gandro would you mind giving this a final review?

/test

This is all green. @doniacld  / @jibi could you take a look? (Jibi, you're just needed for a minor library change).


Add search field to billing entity dropdown

Summary
Fix #518

Adds a search box to Dropdown
Sorts and displays entries in Dropdown by display name, if available.
Fixes an issue where the organization is sent with incomplete data.

Before:

After:

Checklist

[x] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking,
as they show up in the changelog
[x] Update tests.
[x] Link this PR to related issues.

Note: There is an overlap in the mobile view where the dropdown is wider than the screen. I couldn't yet figure out how to properly set the right CSS classes to avoid that.


Make it usable from the shell

I'd love to be able to echo ikkje så gale | translateLocally nno-eng (also handy for chaining with other engines like apertium)

Oh yes I've been wanting something like this while testing as well.
What would be the expected behaviour? Should it just read stdin till the end to populate the input text box?

It shouldn't open the GUI at all, just print to stdout. Maybe it should require a flag, e.g. -n/--no-gui or something:
$ grep ikkje corpus.txt | translateLocally -n nno-eng | apertium eng-kaz >kaz.txt

Here come the language codes and the inevitable conflict between hyphen for BCP47 and hyphen to delimit language direction.

It shouldn't open the GUI at all, just print to stdout. Maybe it should require a flag, e.g. -n/--no-gui or something:

Basically that would be exactly the same as calling Marian with one of translateLocally's models. The benefit here would be that you don't need to download & install marian separately, and that translateLocally will figure out the command line arguments for you.

Here come the language codes and the inevitable conflict between hyphen for BCP47 and hyphen to delimit language direction.

That will be a problem if we ever want to support something like translating using a pivot language. I suppose there's no reason to not just pass the two languages as two separate arguments, as opposed to one with a dash.

I suppose there's no reason to not just pass the two languages as two separate arguments, as opposed to one with a dash.

That would be nice, would make it unambiguous.

I have gotten this request from other people as well. How about a noGUI option -n; --no-gui;  list models -l --list-models (Lists locally installed models and quits) and then -s --source that specifies the source language and -t --target for the target language?
I would have time to look at this in a few weeks.

On top of this, I want to use the library code to be able to spawn a daemon / service running in the background and loading-unloading models accordingly (we have multimodel support upstream). If this can be hooked via dbus to something like ibus, we have system-wide outbound translation - on word documents, browsers, text editors whatever, at least for linux.

As i said before I'm not using the hacky model swapping.  We don't have a usecase for it. For everything else, please open a separate issue with what you want/propose

@unhammer  This functionality is now implemented.


[stable/coscale]add app description   which provide app abstract for project dashboard

@unguiculus
by the way,maintainer section may be to add nickname of github account.
add app description which provide app abstract for project dashboard,releated app description

/lifecycle frozen


FSCS not incorporating quotation literal type representation introduced in F# 4.0

FSCS seems to not be incorporating there recent change to quotation literal representation which was introduced in F# 4.0.
This can be seen here and here.
While this may not produce any observable side-effects to most quotation literal use cases, it is responsible for the bug described here.

This has been fixed in recent versions, the define has been activated since 3 days after this bug was reported  https://github.com/fsharp/FSharp.Compiler.Service/blob/9b802fa4ee9b3cf70b4e17bb6baa70a878c5c801/src/fsharp/FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj#L45


Add on/off and assumed state support to climate.

Description:
There are different climate platforms in the wild, but up until now the general assumption was that it is a mostly always-on device that can change a mode of operation.
This PR brings a better support for A/C units that are manually turned on and off by adding SUPPORT_ON_OFF to supported_features and turn_on and turn_off services.
Some A/C controllers are not aware of the actual state of the A/C (which could be changed by the IR remote). To support that,  SUPPORT_SET_ASSUMED_STATE is added to supported_features and assume_on and assume_off services. Those should tell the device in which state it really is, unlike turn_on/turn_off which tell the device to change state.
Those two features has been implemented to Sensibo platform, which used to consider aux_heat as its on/off switch for the lack of a better alternative.
Meanwhile Sensibo keeps the aux_heat support to make this change backwards compatible. When on/off and assume_{on,off} support is added to the frontend  - Sensibo should drop the aux_heat support.
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[x] New dependencies have been added to the REQUIREMENTS variable ([example][ex-requir]).
[x] New dependencies are only imported inside functions that use them ([example][ex-import]).
[x] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[x] New files were added to .coveragerc.

I'm fine with adding turn_on and turn_off to the climate component. However, for assumed state we always just use the assumed_state property. When set to True, the frontend will show both turn on and turn off buttons.
What is the use case for allowing to set the assumed state without sending the command? Especially if we restore state, this should not happen?
Since I don't see this to be a common Climate service if Sensibo wants to add services to change the assumed state without changing the actual state, I think that it is better fit to be inside the Sensibo platform as custom service (sensibo_set_assumed_state).

Nice addition of supported features @andrey-git as I think that I'll also need it on https://github.com/home-assistant/home-assistant/pull/11095

@balloob For some A/C models (Electra for example) the remote keeps all the state (mode, temperature, swing) except the on/off. So the IR command for on/off is the same and the A/C itself keeps this bit.
Sensibo is an IR blaster operated via cloud api. It has no way to know if the A/C is actually on or off.
Using the new assume_on command I'm telling it to change internal state to on without sending IR command to the A/C. This can't be achieved  via the existing assumed_state which is a UI-only thing.
I'll move the "assume" services to Sensibo platform.

@andrey-git why not use only the attribute assumed_state like paulus suggest? All other work nice with that. It make that the device will not have on/off and show the on/off without care of the real state of device.
With your last change, you make a new "assumed" handling on a platform they and end up that all platform write here own assumed stuff instead to work like all others.

Pascal, like I answered to Paulus - the "regular" assumed_state is a visual-only attribute for devices that don't know the in what state they are. It replaces "toggle" with separate "on" and "off" commands.
This is not what I need for Sensibo. For Sensibo on and off both act as toggle, so if the state machine is out-of-sync with reality it can't be fixed with on or off commands.
If you look at the implementation of Sensibo's assume_on it doesn't send a "turn on" command to the device. It tells the device to report on state without changing anything in the physical world.

In my specific case I have put a power measuring plug on my A/C.
I'll set automation:

If power is >1W and sensibo is off: assume_on
If power is <1W for 10 minutes and sensibo is on: assume_off

Not my business, but sounds like a fix for something that was broken by design (sensibo) and u're trying to use a smarter solution (additional power measure sensor) to fix it.
Is there any chance andrey-git to fix it at the root cause (maybe sensibo lib if there's) or its really a HW and/or firmware problem in the heart of sensibo ?

The A/C IR code for on and off is the same, so there is no software solution.

FYI, not related to this PR, but I think should be solved with this PR, I can't turn on my device:
2017-12-27 01:38:08 DEBUG (MainThread) [homeassistant.components.google_assistant.smart_home] Handling command action.devices.commands.ThermostatSetMode with data {'thermostatMode': 'on'} 2017-12-27 01:38:08 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last):   File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step     result = coro.send(None)   File "/usr/src/app/homeassistant/core.py", line 1031, in _event_to_service_call     yield from service_handler.func(service_call)   File "/usr/src/app/homeassistant/components/climate/__init__.py", line 413, in async_operation_set_service     yield from climate.async_set_operation_mode(operation_mode)   File "/usr/src/app/homeassistant/components/climate/sensibo.py", line 292, in async_set_operation_mode     self._id, 'mode', operation_mode)   File "/usr/local/lib/python3.6/site-packages/pysensibo/__init__.py", line 76, in async_set_ac_state_property     return (yield from resp.json())['result']   File "/usr/local/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 795, in json     headers=self.headers) aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html'
Seems the Sensibo API doesn't like your request and gets a 400.

Here is an image of an A/C unit with explicit on/off:

Each supporting platform needs to implement this on it's own, like each platform implements set_temperature and other services on its own.
Sensibo's use of AUX_HEAT is essentially a hack that I used due to lack of a proper on/off.

I moved on/off support to a separate PR #11379


Autosave

As an end user
I want an timing based autosave feature
So that I don't have to worry as much about losing my work.
Request Description
If I'm editing a named file (i.e. a file that already exists, or one that I created with save as), I want the program to automatically save periodically. A user should be able to toggle this feature on or off, as well as change the interval at which the program autosaves.
This feature does not make sense to implement until after #80 is done

Closed by #137


WIP - Try overloading unhandledRejection process event handlers

I started taking a look at this, but I haven't been able to install dependencies to get tests working locally (a local Docker-based development would be very welcome). Some can feel free to commandeer or steal this.
Refs #7719

This doesn't seem to work
Try Flow

Also all handlers should return mixed, not void


Scanner + API integration

Closes #51
Scanner inserting data through API

@vbelouso answering to your feedback:

Points 1 to 3 raised as new TODO task
Point 4: Agree, I included it on "psgql" branch
Point 5: Agree, included too
Point 6: Now we have it, a duple of TagKey + InstanceID

Thanks a lot!


Installing Power Platform Tools on M1 Mac installs x64 arch pac binary instead of arm64

Env:
MacOS Ventura 13.2.1 on 2021 MBP M1Pro
VS Code env:
Version: 1.77.1 (Universal)
Commit: b7886d7461186a5eac768481578c1d7ca80e2d21
Date: 2023-04-04T23:23:33.779Z (5 days ago)
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 22.3.0
Sandboxed: No

Installed Power Platform Tools v1.1.21 using the GUI.
Opened up Terminal
Running pac returns:

% pac
You must install .NET to run this application.

App: /Users/tobias/Library/Application Support/Code/User/globalStorage/microsoft-isvexptools.powerplatform-vscode/pac/tools/pac
Architecture: x64
App host version: 6.0.14
.NET location: Not found

Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=osx.13-x64&apphost_version=6.0.14

I've got the dotnet SDK running just fine, but not the x64 arch:
% dotnet --list-sdks
6.0.402 [/usr/local/share/dotnet/sdk]
6.0.405 [/usr/local/share/dotnet/sdk]
7.0.100 [/usr/local/share/dotnet/sdk]
7.0.102 [/usr/local/share/dotnet/sdk]

% dotnet --info
.NET SDK:
 Version:   7.0.102
 Commit:    4bbdd14480

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  13.2
 OS Platform: Darwin
 RID:         osx.13-arm64
 Base Path:   /usr/local/share/dotnet/sdk/7.0.102/

Host:
  Version:      7.0.2
  Architecture: arm64
  Commit:       d037e070eb

.NET SDKs installed:
  6.0.402 [/usr/local/share/dotnet/sdk]
  6.0.405 [/usr/local/share/dotnet/sdk]
  7.0.100 [/usr/local/share/dotnet/sdk]
  7.0.102 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

I am expecting to get an arm64 compiled pac binary - am I wrong? Should I also install the x64 version of dotnet 'because it is needed'? If so, perhaps some extra info in the 'howto install' may be in order.

No, we are currently only building the macOS version against x64.
Running on ARM macs requires Roslyn as well as BOTH the x64 and arm64 version of net6.0 installed, noted on this line in the readme.

You might want to lift that line to the main repo readme as it is currently unfindable. (I've spent over an hour finding a solution to running pac natively on arm).

@tobiasoort, latest version (v1.1.28) switched away from the osx-x64 and linux-x64 versions of PAC to a new platform-and-architecture-independent version.  It's running as an ARM process on my own M1 Mac, and the x64 version of the net6.0 SDK should no longer be required.


Implemented pan and zoom

I have removed the drag up/down to dismiss the UML Viewer as I think it interferes greatly with panning and zooming, but I still keep the function for opacity effects in the UMLViewModel just in case we want to revert back to it.
It looks like this now:
https://user-images.githubusercontent.com/24537483/207204242-b652a177-631f-4d3d-b392-86f30509f6fe.mp4
As always if you have an iPad please test it locally :)
@tomrudnick hopefully this time CPU consumption won't get any worse ;)

Screen recording of how it looks on my iPad:
https://user-images.githubusercontent.com/9006596/207317819-05f6e62a-3f5f-4831-8eeb-59b7a4a5ba04.MP4

Refactored UML Viewer

performance issue should now be fixed (with CachedAsyncImage)
dragging should now be working properly (not "jumpy")
reset image scale after exiting the viewer

https://user-images.githubusercontent.com/24537483/211945165-b25c42d0-2f4b-4e6a-b60b-5e4663034472.mp4

Build is failing for me, please check


add config to set the xp bar to the skill most recently trained

Changes are live. Thanks to both of you for the contributions.


[Add] codenewbie podcast

Site URL
https://www.codenewbie.org/podcast
Description of the above provided site
The CodeNewbie Podcast is for — you guessed it — people new to coding! Host Saron Yitbarek interviews a new guest every week, and they talk about their coding journey, how they landed their first coding job, and more.
Category
Other
Sub Category
podcast
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (optional)
[X] I am a GSSoC'23 contributor

You're assigned @S-ishita


ag3.haplotypes() - add support for joined arms

In this PR I have added support for joined arms with the haplotypes() function, following approaches in #352, #346, #347. Should be the final step in addressing #332.
As with snp_calls() in PR #352 , I have changed _haplotypes_dataset() to _haplotypes_for_contig(), and implemented an equivalent method in ag3.
Because some sample sets dont have haplotypes, when converting genome coordinates for the left arm of the xr.Dataset, I had to add some logic to say only do this if the left arm ds is not none.

Looks like CI is failing on the same thing you're seeing in #354. Suggest applying fix described here.


init.d-posix: re-use rc.logging

With this change the param SDLOG_MODE can be used for SITL as well.
Fixes #11774
The only caveat with this change is that we see this on startup, @bkueng any idea what to do about it?
ERROR [param] Parameter UAVCAN_ENABLE not found

The only caveat with this change is that we see this on startup, @bkueng any idea what to do about it?

Right, we have it for others as well, like SYS_USE_IO. Maybe change the log level to info?

@bkueng any idea what to do about the param error message?

Right, we have it for others as well, like SYS_USE_IO

Let me check how it's done.


Include version number in SONAME of .so files

To make version management easier in linux, it would be good to set the SONAME for the library. At present there is no version included in .so files:
# objdump -p /usr/lib64/libaws-cpp-sdk-core.so | grep SONAME
  SONAME               libaws-cpp-sdk-core.so

This can be achieved via cmake’s SOVERSION property:
set_property(TARGET bar PROPERTY SOVERSION XXXXX)
The SOVERSION ought to be updated when a binary incompatible change to the library occurs, commonly done in-step with updating the major version of the library:
http://pusling.com/blog/?p=352

That's a fair ask, we'll get that queued up. Thank you


Acceptance framework PoC

Also includes an acceptance test for dispatcher reconnections in Go.

This change is

a discussion (no related file):
The two go/lib changes are included to make the acceptance test pass. They will not be part of this PR. The changes are included in #1906.

acceptance/lib.sh, line 101 at r3 (raw file):
Previously, scrye (Sergiu Costea) wrote…
Done.

With the mention that teardown now always happens, so that even stuff that is partially set up is cleaned up.


Migrating whole book to new android instance

I find myself unable to migrate my Gnucash accounts & transactions to a new android instance.
Is there a way to do this easily?
I tried copying all Backups and book files and put them in the new profile on the new device but it wouldn't work.

Export to xml and open the exported file to new device

Works, thanks.
Had a problem with duplicate ROOT account. Had three of them in my exported XML for some reasons.


LEXI-825: Add Product Card

Add Product Card section
Add two examples of product card
Add descriptions

Thanks @drakonux 👍🏻

Thanks @drakonux !


thread through RNG argument

this basically treats emit!, visit!, num_rows, and generate like rand, by assuming the first argument is an AbstractRNG.
fixes #2

you could make this nonbreaking by adding methods for defaulting to GLOBAL_RNG

yeah but I want it to be breaking so that everyone implementing a generator has to define a method that takes the RNG.  otherwise you can pretty easily get into a state where it's not actually reproducible

It would also be nice to try this out in the wild to ensure this interface is nice to work with before merging/registering this.

I've been using this in a few beacon-internal things.  I don't really see another way around #2 that doesn't involve something pretty fragile/painful; @mattBrzezinski was doing some headscratching after looking at those PRs (they're internal so not gonna link em here) but last I heard hadn't thought of anything better either.


"Probe 'native' using 'C:\PATH_Programs\bin\ffmpeg.exe' failed, trying fallback"

Hey so I am trying to make a music discord bot, I installed ffmpeg from this site: https://github.com/BtbN/FFmpeg-Builds/releases
The 3 executables are located in this path:
C:\PATH_Programs\bin\ffmpeg.exe
but for some reason when I play music with the bot, it plays the music just fine but prints this as an error:
ERROR    discord.player Probe 'native' using 'C:\PATH_Programs\bin\ffmpeg.exe' failed, trying fallback
Traceback (most recent call last):
  File "C:\Users\zbeb\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\player.py", line 526, in probe
    codec, bitrate = await loop.run_in_executor(None, lambda: probefunc(source, executable))
  File "C:\Users\zbeb\AppData\Local\Programs\Python\Python310\lib\concurrent\futures\thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "C:\Users\zbeb\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\player.py", line 526, in <lambda>
    codec, bitrate = await loop.run_in_executor(None, lambda: probefunc(source, executable))
  File "C:\Users\zbeb\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\player.py", line 548, in _probe_codec_native
    output = subprocess.check_output(args, timeout=20)
  File "C:\Users\zbeb\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\zbeb\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\PATH_Programs\\bin\\ffmpeg.exe', '-v', 'quiet', '-print_format', 'json', '-show_streams', '-select_streams', 'a:0', 'https://rr7---sn-cxab5jvh-cg0ee.googlevideo.com/videoplayback?expire=1683886515&ei=U71dZJTxGZvMgAf6yquoBw&ip=2a02%3Aa03f%3A62f3%3A6900%3A15e4%3A8606%3A8b7d%3Afb1a&id=o-AKMZbaRiyco0e0vSbc2MDoxAtlJ7ypkvtnkQ-P4dD9qb&itag=249&source=youtube&requiressl=yes&mh=oa&mm=31%2C29&mn=sn-cxab5jvh-cg0ee%2Csn-25ge7nzz&ms=au%2Crdu&mv=m&mvi=7&pl=42&initcwndbps=1656250&vprv=1&svpuc=1&mime=audio%2Fwebm&ns=R6oe-XE4iuAi__xpi4xkHbcN&gir=yes&clen=972808&dur=135.581&lmt=1649077799814946&mt=1683864552&fvip=5&keepalive=yes&fexp=24007246&c=WEB&txp=5532434&n=vtc2d8QBNdnjTQ&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgI0R65Ck8ad_gH2Rd4BKBqAjSuGrmcBcHWyIlvY-fMS0CIQC8wNGJjZVeSq_xanYGW2zyEByHHQ_s7qvZjJUo6SHVmw%3D%3D&sig=AOq0QJ8wRAIgKvSksVam7HX2QSyt-LuxrE4Ld-HLiNSq3SBTJW2qwH8CID4N0R1vddHAqgleoHS7p95SzN_q0qqdvYvovmSpfp3M']' returned non-zero exit status 1.

That's an error in some python script, not ffmpeg.
All it's saying about ffmpeg is "there was some error".
You'll need to dig out the actual error ffmpeg is producing to get anywhere.
Very likely a case for ffmpeg-user or #ffmpeg, not this issue tracker.

@zbeb
Probing is done by ffprobe, not ffmpeg.
The command line at the end clearly using arguments for ffprobe, but in ffmpeg.
It was bound to break.
Fix it in your Python script.


Browser will not render svg element when wrapped by Radium

For some reason, when I use Radium on the below React class, the browser does not render it (prob because it spits out invalid markup) then React gives me "Uncaught Error: Invariant Violation" because the dom and virtual dom don't match.
define([
  'React',
  'Radium',
  'underscore'
], function (React, Radium, _){

  var BbAppTreeNode = React.createClass({
    render: function(){
      return(
        <g className='node'>
          <circle r='4.5'></circle>
          <text x="-10" dy=".35em" textAnchor="end">{this.props.data.name}</text>
        </g>
      )
    }
  })

  return Radium.Enhancer(BbAppTreeNode)

})

I can get the class to render if:

I remove {this.props.data.name} from the text element. Leaving it empty.
I don't wrap it in Radium.Enhancer

I'm using Radium v0.12.0 and React v0.13.3

What type are you passing as this.props.data.name? I cannot reproduce this: http://jsbin.com/vijawaveqa/1/edit?html,js,output

Hey @ianobermiller thanks for checking it out. this.props.data.name is a string. I saw your jsbin, and I'm still not sure what differs with my implementation.
However, It looks like somehow the data.name text is getting wrapped in a span (on my side, and in your jsbin). When/why this span is getting added? I don't know... but it only gets added when I use radium.  I don't think that is allowed, right? https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text

Thanks for bringing that up! The span thing is a problem everywhere, not just SVG (it only happens to break SVG, but it is adding extra DOM nodes for everywhere else).

Thanks for several great fixes in v0.13.0 @ianobermiller

My pleasure :)


Improvise counteract modifiers for NPCs

Steps to reproduce:

Have an NPC with a spell that has the "Counteract" option ticked
Cast the spell as that NPC
Click on the Counteract button in the chat card

Expected Result:
The NPC rolls with their counteract modifier (pretty much their spell attack value)
Actual Result:
NPC rolls a flat d20 check without any modifier

This is a little awkward rules-wise since NPCs have no explicit attribute modifier or proficiency bonus, and those two are the sole stable components of a spellcasting counteract check.

This is a little awkward rules-wise since NPCs have no explicit attribute modifier or proficiency bonus, and those two are the sole stable components of a spellcasting counteract check.

They do have a spell attack value tho. And the description from player core of spell attack formula is: "Spell attack roll result = d20 roll + ability modifier used for spellcasting + proficiency bonus + other bonuses + penalties" Which is the same formula as counteracting for spells: "For spells, the counteract check modifier is your spellcasting ability modifier plus your spellcasting proficiency bonus, plus any bonuses and penalties that specifically apply to counteract checks."
So I should be pretty safe to use their spell attack?

NPCs do not have an ability modifier for spellcasting (they have modifiers but it isn’t assigned) nor are the assigned spellcasting proficiencies. Given the exact rule that you've quoted then the (obviously wrong) rhing to do is a d20 roll plus zero plus zero plus anything affecting a counteract check.
If you can find a rule as written that says what it should be, or that those zeroes always equal the spell attack modifier then we can add it to the system. NPCs at the same level can have a spell attack within a value of 8. And for soell attack modifiers the system makes an assumption of DC - 8 when applicable and it isn’t supplied by Paizo bit is necessary for the system to function.
I’ll put it on the list of questions for the design team though. Until they say “do that” officially we won’t. We implement the system, not author it.


Added backup for main branch to be safe from unwanted commit

Hello @Naresh-chandanbatve!
Thank you for submitting this pull request Your pull request will be reviewed by maintainers shortly. Meanwhile make sure you have referenced the respected issue in this pr Your pr will not be merged if it does not refer respected pr and please read our Contributing Guidelines https://github.com/UBA-GCOEN/StichHub/blob/main/CONTRIBUTING.md And Code of Conduct https://github.com/UBA-GCOEN/StichHub/blob/main/CODE_OF_CONDUCT.md


Add support for extras_require in Pipfile for vcs urls

Fixes #430

looks like master is broken.
I'll rebase it once it is fixed

✨🍰✨


chore: remove unused property from CoreManager

CoreManager was storing a #projectKey property which was never used. This removes it.

I updated this PR to keep one of the properties but remove one that was definitely still unused.


Liquibase updateSQL command doesn't generate query for DropAllForeignKeyConstraints change type

Environment
Liquibase Version: 4.3.5
Liquibase Integration & Version: CLI, Liquibase test-harness v1.0.1
Liquibase Extension(s) & Version: na
Database Vendor & Version: any
Operating System Type & Version: Windows 10
Description
Liquibase updateSQL command doesn't generate drop query for DropAllForeignKeyConstraints change type. However in case of applying Liquibase update command changes get executed and all foreign keys get dropped.
Steps To Reproduce

Create two tables and link it with at least two foreign keys within any database from supported list.
Run Liquibase updateSQL command with dropAllForeignKeyConstraints changeset.

Actual Behavior:
The drop query (Example: ALTER TABLE table_name DROP CONSTRAINT fk_name FOREIGN KEY) is not generated. See the screenshot.
Expected/Desired Behavior:
The drop query is generated.
The database I used for CLI test is Apache Derby embedded v 10.15.2. Same problem was for all databases supported by test-harness v 1.0.1.
Example of changeLog.xml file.

Thanks for the excellent description of how to recreate this issue. @AlexanderSashchenko and the screenshots.  We will add this to the list of issues to process.

Update: For DB2 on z/OS described query doesn't get generated AND foreign key don't get dropped in case of running "update" command with DropAllForeignKeyConstraints changeset.

Hi @nvoxland. Yes as we found out with your help the setup of the test was not quite transparent to determine how updateSql shoul work it that case. So to sum up:
I did this test in two separate steps. First I created a table with several foreign keys and after that I run updateSql for dropAllForeignKeys changeSet and it worked as expected.
It this case I propose to close this issue if you agree with me.


Dashboard page is designed to be responsive in smaller laptops

Current dashboard page is breaking a little in smaller laptops, now it is designed to be responsive.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #384   +/-   ##
=======================================
  Coverage   70.36%   70.36%
=======================================
  Files          26       26
  Lines        3800     3800
=======================================
  Hits         2674     2674
  Misses        939      939
  Partials      187      187

Continue to review full report at Codecov.

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

Coverage remained the same at 73.702% when pulling f163cd4b670505ef42d92976a49e96ef3461c3dc on vibakar:master into 512d1d5a78774312280e5b873263bf422789c492 on apache:master.


Assets work when running locally but not in the actual build

I have added the assets I am using to the .dekstop/assets folder.
I am using Desktop.getAssetUrl(assetPath) to get the correct path for an image.
The image shows correctly when running the app locally by starting the meteor server and then using npm run desktop
But when I build the app using the command
npm run desktop -- build-installer https://www.mymeteorapp.com -b --meteor-settings settings.json
And then run the app, the image links show up as missing.
Why is there a difference between the local version and the build? Is there some kind of cache I need to clear? Do I need to put the assets in any other place as well? Any recommendations to solve this issue?
Thanks!

UPDATE....
So here is what I suspect is happening. Whenever I run
npm run desktop -- build-installer https://www.mymeteorapp.com -b --meteor-settings settings.json
for some reason it is pulling some cached copy of the app, in which none of the image URL's are updated.
When I run
npm run desktop -- build https://www.memrey.com -b --meteor-settings ../deployment/galaxy/settings.json
and then copy meteor.asar from .meteor/.desktop-build/meteor.asar and put it inside .desktop-installer/mac/MyMeteorApp.app/Contents/Resouces/app/meteor/asar
Then it works. So I have to manually copy the built from version .desktop-build into the .app file in the folder .desktop-installer
Hope this is a clue to lead me in the right direction of whatever is going on...

btw... amazing work... I can't believe my eyes when I see my web/cordova app is now magically a desktop app with just few commands. :1st_place_medal:

Hey, sorry for the delay in checking this.
So far I could not reproduce it. However I was checking the assets serving mechanism only. From your description I can assume that the problem is somewhere else and I do not clearly get the picture
Can you install npm install -g asar and run asar extract desktop.asar on the desktop.asar from the built bundle just to check if your assets are in assets dir?
I am guessing that the assets are there because if they would be missing, replacing meteor.asar should not help as it does not contain any single file from .desktop.

in which none of the image URL's are updated

What do you mean by that? How are you actually using Desktop.getAssetUrl? Are you by any chance using desktopHCP?
Would it be possible to create a small reproduction of this issue?

@wojtkowiak I will try unpacking the desktop.asar file and get back with you.
But here is some more info.
This issue only occurs when using the -b flag which allows you to build the installer without having to start meteor beforehand. If I don't use the -b flag, and start meteor in another tab, the build seems to work correctly.

@wojtkowiak suggest closing this due to inactivity.

Closing due to inactivity. If you still experience this or similar problems feel free to reopen.


Fix: remove  tags

Describe the bug
Right now,
 elements include  tags:

	About

The  tag should not be used. Instead, the main stylesheet should use font-weight to set the weight of the
 element to bold if desired.
To Reproduce
Review source of Vue templates.
Expected behavior
 tags are not used for formatting.
Additional context
cc: @TeddTech

Resolved in #67.


Add command option for sort order

Add a command option for the sort order
-o   ASC         ascending order. Oldest to newest.
-o   DESC       descending order. Newest to oldest.

Duplicate issue.


feat: add gauge icon

https://github.com/user-attachments/assets/000226ae-2957-4c3d-b3ba-062eb963eb22

i’ll go ahead and merge this PR and handle the last few fixes. need it in place to release the search update since the structure’s been reworked


Preference Dialog min/max Width

Exploration work required to establish a system for setting min/max widths on preference dialogs.

This work was completed in #2958


Data does not save locally when there is a problem uploading to the server

It didn't send me yesterday's results to the server because it seems to be overloaded lately. But I was hoping that the locally saved files in %AppData%/Roaming/Beat Savior Data contained the correct data. Unfortunately, it seems that when there is uploading error, they are not saved locally as well. There is only one line with total stats in the file from yesterday.

Hello,
All uploading issue should be fixed by now (we moved to a bigger database), and issues with the FileManager should be fixed in the latest version too.


latest project: error core.umd.js:403Uncaught reflect-metadata shim is required when using class decorators

On angular 2 new project, I get this error:
core.umd.js:403Uncaught reflect-metadata shim is required when using class decorators

Because you are missing reflect-metadata. As it's said in the readme: either import angular2-meteor-polyfills at top of the main file of your app, or add barbatus:angular2-polyfills package


Design a new modal box that accommodates the Table of contents and more.

A modal box that opens from the left side of the screen and contains the document title, filter button, and table of contents.

@edsaperia, I need your opinion about the arrow icons representing open and closed headings! Should I put them here too, or not?

Yes I think so!


prelim download bugfix

Changed the way that preliminary F10.7 data files are listed and downloaded

Changed listing to include only data up to the day before the file was downloaded, since it can't know the future
Changed the versioning to have two versions for quarterly and yearly, since pysat will ignore earlier versions of files
Changed date in filename to include the month, since version numbers are not the correct way to count quarters
Changed the downloads to check for the expected end of the file, since the listing has improved.

Errors are:
======================================================================
ERROR: Checking download routine functionality for module:  sw f107
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/home/travis/build/rstoneback/pysat/pysat/tests/test_instruments.py", line 281, in check_download
    raise e
  File "/home/travis/build/rstoneback/pysat/pysat/tests/test_instruments.py", line 260, in check_download
    inst.download(start, start)
  File "/home/travis/build/rstoneback/pysat/pysat/_instrument.py", line 1467, in download
    **kwargs)
  File "/home/travis/build/rstoneback/pysat/pysat/instruments/sw_f107.py", line 383, in download
    raw_dict = json.loads(r.text)['noaa_radio_flux']
  File "/opt/python/3.6.3/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/opt/python/3.6.3/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/opt/python/3.6.3/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
-------------------- >> begin captured logging << --------------------
urllib3.connectionpool: DEBUG: Starting new HTTP connection (1): lasp.colorado.edu:80
urllib3.connectionpool: DEBUG: http://lasp.colorado.edu:80 "GET /lisird/latis/noaa_radio_flux.json?time%3E=2009-01-01T00:00:00.000Z&time%3C=2009-01-31T00:00:00.000Z HTTP/1.1" 404 350
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: Checking download routine functionality for module:  sw f107 all
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/home/travis/build/rstoneback/pysat/pysat/tests/test_instruments.py", line 281, in check_download
    raise e
  File "/home/travis/build/rstoneback/pysat/pysat/tests/test_instruments.py", line 260, in check_download
    inst.download(start, start)
  File "/home/travis/build/rstoneback/pysat/pysat/_instrument.py", line 1467, in download
    **kwargs)
  File "/home/travis/build/rstoneback/pysat/pysat/instruments/sw_f107.py", line 414, in download
    raw_dict = json.loads(r.text)['noaa_radio_flux']
  File "/opt/python/3.6.3/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/opt/python/3.6.3/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/opt/python/3.6.3/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
-------------------- >> begin captured logging << --------------------
urllib3.connectionpool: DEBUG: Starting new HTTP connection (1): lasp.colorado.edu:80
urllib3.connectionpool: DEBUG: http://lasp.colorado.edu:80 "GET /lisird/latis/noaa_radio_flux.json?time%3E=1947-02-13T00:00:00.000Z&time%3C=2019-04-19T21:51:42.000Z HTTP/1.1" 404 350
--------------------- >> end captured logging << ---------------------

And for 2.7 it's the same problem.  It looks like there's a problem connecting to NOAA.  @jklenzing is this part of the code you worked on?  The error messages aren't very elucidating to me.
======================================================================
ERROR: Checking download routine functionality for module:  sw f107
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/build/rstoneback/pysat/pysat/tests/test_instruments.py", line 281, in check_download
    raise e
ValueError: No JSON object could be decoded
-------------------- >> begin captured logging << --------------------
urllib3.connectionpool: DEBUG: Starting new HTTP connection (1): lasp.colorado.edu:80
urllib3.connectionpool: DEBUG: http://lasp.colorado.edu:80 "GET /lisird/latis/noaa_radio_flux.json?time%3E=2009-01-01T00:00:00.000Z&time%3C=2009-01-31T00:00:00.000Z HTTP/1.1" 404 350
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: Checking download routine functionality for module:  sw f107 all
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/build/rstoneback/pysat/pysat/tests/test_instruments.py", line 281, in check_download
    raise e
ValueError: No JSON object could be decoded
-------------------- >> begin captured logging << --------------------
urllib3.connectionpool: DEBUG: Starting new HTTP connection (1): lasp.colorado.edu:80
urllib3.connectionpool: DEBUG: http://lasp.colorado.edu:80 "GET /lisird/latis/noaa_radio_flux.json?time%3E=1947-02-13T00:00:00.000Z&time%3C=2019-04-19T21:51:23.000Z HTTP/1.1" 404 350
--------------------- >> end captured logging << ---------------------

I'm getting the same errors in the latest updates in #208.  I suspect either the NOAA server is down or they've changed how it is accessed.

http://lasp.colorado.edu/lisird/latis/noaa_radio_flux gives a 404 not found when accessed directly

@jklenzing I've addressed your comments.  If the travis tests remain identical I will merge once you confirm your reviewer blessing.


[IOTDB-1106] Fix the bug MTree mistakenly deletes parent node when executing "delete timeseries" statement

JIRA issue: https://issues.apache.org/jira/browse/IOTDB-1106

Duplicated PR with #2441

Duplicated PR with #2441


Alert dict

Issue
Partial progress was made on converting  prometheus to use the upstream cosl JujuTopology but I missed a few things.
Solution
Fully use JujuTopology from cosl
Testing Instructions
Behavior should not have changed so just general testing.
Release Notes
Now fully uses JujuTopology from cosl

@dstathis I'm fine merging once the integration test is fixed


Test clean install in Travis

After the many issues we've had with this, it seems prudent.

@jkeiser Thanks!

Merging this, this is grand!

:+1:


Fix confusing type errors by reversing order of overloaded h() definitions

For overloaded functions, TypeScript reports errors based on the last of the overloaded definitions. For h's overloaded definitions, the string version is currently last. When type checking of an h call fails (for example, due to a missing prop, or due to an incorrect prop type), TypeScript simply says "Argument of type 'typeof OurComponent' is not assignable to parameter of type 'string'." This patch switches the order of the h definitions, so that the h<P> version comes last. This makes TypeScript report a more specific error that will include missing props, etc.
Before this change:
$ tsc
src/mycomponent.ts:5:14 - error TS2345: Argument of type 'typeof MyComponent2' is not assignable to parameter of type 'string'.

5     return h(MyComponent2, {})

After this change:
$ tsc
src/mycomponent.ts:5:28 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'Attributes & Props'.
  Type '{}' is not assignable to type 'Props'.
    Property 'foo' is missing in type '{}'.

5     return h(MyComponent2, {})

See my working example repo. Switch the order of the h definitions in src/preact-8.2.9.min.d.ts in that repo and you'll see that the error goes from the first (confusing) error above to the second (very clear) error.

Coverage remained the same at 100.0% when pulling 1c336ae143fb5974cfa34f96e8322a04938975b0 on garybernhardt:reverse_h_type_definition_order into b5c4a36576b65623c2664d04c03a04e57dc1e06a on developit:master.

I can't reproduce that failure, but I also don't use JSX and have since given up on TypeScript.

This PR fixes it for me

@marvinhagemeister I misunderstood your comment before. I think you mean that even with this patch, the uninformative error message is sometimes shown? Unfortunately I don't know how to install my own preact fork as a dev dependency (it's not requireable when I try), so I can't test whether this PR at least improves the frequency of the "good" error message showing up.
This issue is far and away my biggest annoyance when using preact with typescript, so it would be really good to have it fixed. Unfortunately, changes beyond the simple reordering in this PR are well beyond my meager understanding of TS at this point. Have you given any thought to adding that third combined definition that you mentioned?

#1246 adds a test for this and another type fix for non-jsx preact

Just looked at this issue again and I can confirm that it indeed does fix the issue. Not sure why I was getting a failure when previously reviewing the changes. On top of that I stand corrected with the number of overloads declared inside a declaration file. I was under the impression that they had to be declared the same way in a .d.ts file as in a .ts file, but I was wrong. The actual implementation signature must be skipped for d.ts files.
@garybernhardt I hope you don't mind that I merged #1246 instead, because it has some tests included already. I'm really thankful that you brought this issue up 👍 Issues like these are not easy to spot :)

Thanks for merging!


Tests cleanup

This is low priority PR, but also shouldn't be difficult to review since it changes only tests (apart from one-line commit which affects actual code).
When troubleshooting certain issues, I had to go through some unit tests and couldn't help myself to do a bit of:

code-style cleanup
PHPDoc improvements
removal of unnecessary require_once statements
removal of ResponseMock class
minor tests refactoring.

#892 replaces this PR


UI: Use native go:embed instead of go-bindata

[ ] I added CHANGELOG entry for this change.
[x] Change is not relevant to the end user.

Changes

With this commit we migrate from the no longer actively maintained go-bindata project, to go:embed, for embedding the UI app into the go binary. Note that we now check in the static files in pkg/ui/static instead of the now deleted bindata.go. This is done in order to keep the same build process as before, where the react UI is only compiled on-demand.

Verification

Introduced an arbitrary test change in the typescript code, compiled, and tested that the new change is included in the UI of query, qfe, store, rule, compact, and that the UIs seems to load correctly.

We might also want to test this with path prefixes as well.

I've now tested this with --web.external-prefix="test123" and check that the query UI correctly loads on i.e http://localhost:10904/test123/ and also that it redirects if leaving out the prefix.

Seems like this works well after I tested locally. Let's get this merged! Will also help us close https://github.com/thanos-io/thanos/issues/3782


Support For Java Non-LTS versions

I have been using Google's buildpack to build my Java project which uses Java version 19 using the environment variable GOOGLE_RUNTIME_VERSION=19. It worked fine until yesterday, now the builds break because I am not using an LTS version of Java. Why did this change? Can we bring back support for Java 19?

Have the same issue.
The command similar to:
pack build my-repo.io/my-image --builder gcr.io/buildpacks/builder:v1 --run-image my-repo.io/run-image:latest --env GOOGLE_RUNTIME_VERSION=19

The part of build logs:
===> ANALYZING
Restoring data for SBOM from previous image
===> DETECTING
4 of 5 buildpacks participating
google.java.runtime    0.9.1
google.java.maven      0.9.0
google.java.entrypoint 0.9.0
google.utils.label     0.0.2
===> RESTORING
Restoring data for SBOM from cache
===> BUILDING
=== Java - Runtime<EMAIL_ADDRESS>===
Using requested runtime feature version: 19
2022/12/02 16:57:00 [DEBUG] GET https://dl.google.com/runtimes/ubuntu1804/openjdk/version.json
Failure: (ID: 75cfeeca) invalid  version specified: failed to resolve version matching: 19
--------------------------------------------------------------------------------
Sorry your project couldn't be built.
Our documentation explains ways to configure Buildpacks to better recognise your project:
 -> https://github.com/GoogleCloudPlatform/buildpacks/blob/main/README.md
If you think you've found an issue, please report it:
 -> https://github.com/GoogleCloudPlatform/buildpacks/issues/new
--------------------------------------------------------------------------------
ERROR: failed to build: exit status 1
ERROR: failed to build: executing lifecycle: failed with status code: 51

Java8,11,16,17,18,19 are now available in lorry. You should able to use them now.

It works. Thanks

👍 thanks for the followup and letting us know


monotone constraints for multiclass objective

It's undocumented whether monotonicity constraints are supported for the multiclass objective but based on some small tests it looks like they only support writing constraints for the first class.
If that's true, would it be possible to add separate constraints for each class?

@CharlesAuguste could you comment on this whenever you have time?

@jameslamb I agree with @gsimko-lyft that monotone constraints don't work for this objective. I think we should disable monotonicity constraints for this specific objective, unless you have a better idea.
The main issue here is what we mean by monotonicity. I think in this case the end users may be expecting monotonicity of the argmax of the output probabilities (=the predicted class) with respect to the input. However, in the implementation, monotonicity means that the output of each tree is monotone vs. the input. With most objective we end up summing trees, which is fine as it preserves monotonicity. But with this classification objective, we are computing scores for all inputs, for all classes, and we are performing a softmax (to compute the probabilities of the class) on the scores for each input. These scores are monotone, because they are the output of the trees. But this doesn't seem right for 2 reasons,

Having the scores monotone doesn't really make sense, I don't think this is something that will help the algorithm in any way,
The softmax function, doesn't work well with the monotonicity of the different inputs so I think it won't give any monotonicity guarantee on the result.
I don't see a way to fix it, because even if we came up with constraints that made sense for the scores in the trees, the softmax will break the monotonicity. So I think that we should disable the monotone constraints for this objective.

@gsimko-lyft The monotonicity constraints were implemented with regression objective in mind and not really classification objectives, because in many cases when you are doing classification, you can't really compare the classes. If you are able to compare the classes together, then you may be able to get away with a regression objective, and use the monotone constraints there.

@gsimko-lyft Here is how I think the multiclass objective function works. It is not one I know very well, so let me know if I am wrong somewhere. Say we want to predict classes in , versus a 1D variable x (to make things simple). Then for each step we will create n trees for the scores . The only thing we know how to do right now is making these trees monotone vs. x. With the current implementation, I think all the trees will have the same monotonicity vs. x (though I don't think it should be too hard to change that if we wanted to).
Now with these trees, we can compute the probabilities of belonging to a class using the softmax function, . When x increases,  increases/decreases (depending on the monotone constraint), but all other  will also increase / decrease. So I don't think this gives any particular monotonic property to . I don't think this gives any particular property to the max / argmax or the  either. Does that make sense?
About your use case, if you have only 2 classes, then the binary objective should work with monotonic constraints. If you have more classes, and you want a simple constraint like having the probability of the first class monotone increasing vs. x (=making  monotone increasing vs. x), then I think in theory that could be achieved by having  monotone increasing, and the rest  decreasing. That's currently not possible in the code, but should be easy enough to change I think (and you can do something similar on your end by doing some binary one-vs-all classification with the right constraints and softmax on the outputs). If you want more complicated constraints (like constraints for the probabilities of each of the different classes vs. the same variable, all at the same time), then I don't really see a simple solution.

Thanks for the detailed explanation @CharlesAuguste, that made a lot of sense! I didn't realize earlier that internally LightGBM (and I think xgboost as well) builds n trees for n classes. Agreed with you that with this setup one needs to be careful. Building multiple one-vs-all is an excellent suggestion, if I understand correctly it would perform computationally similarly and we could have the pairwise constraints that's needed in my use case.
I'm wondering, is there a compelling reason for building n trees instead of building a single tree with multiple outputs? Maybe this is just a less explored setup? FWIW looks like there's a recent paper that asked the same question:
GBDT-MO: Gradient Boosted Decision Trees for Multiple Outputs, https://arxiv.org/abs/1909.04373

Sorry for not answering earlier. I hope you are able to make progress on the problem you are trying to solve. I am not sure if there is a compelling reason for building n trees. My guess would be that it is easier to approach and more intuitive. Maybe @guolinke can tell us more about it? I read the paper you linked and it is very interesting. Their code is here https://github.com/zzd1992/GBDTMO

@CharlesAuguste Should we update any code and/or docs reflecting the fact that monotone constraints don't work with multiclassification task? Also, should this be a feature request?

Gently ping @CharlesAuguste

@CharlesAuguste Thank you very much for your detailed answer!


Set ready for live

Motivation and Context
Converted set_ready_for_live.feature to standalone
How to test?
make acceptance_tests
Links
Trello

 T402:Acceptance Tests:set_ready_for_live


Update simulator sensor icons

If we're going to use the 'button held' icon, we'll also need an equivalent for a holding a pin for consistency.


Fix invalid params and typo of email templates

Seperate from #16385

Codecov Report

Merging #16394 (51ba676) into main (0393a57) will increase coverage by 1.24%.
The diff coverage is 52.54%.

@@            Coverage Diff             @@
##             main   #16394      +/-   ##
==========================================
+ Coverage   44.24%   45.48%   +1.24%
==========================================
  Files         695      709      +14
  Lines       82341    83767    +1426
==========================================
+ Hits        36429    38105    +1676
+ Misses      40014    39530     -484
- Partials     5898     6132     +234

Impacted Files
Coverage Δ

cmd/convert.go
0.00% <0.00%> (ø)

cmd/dump.go
0.91% <0.00%> (ø)

cmd/dump_repo.go
0.00% <0.00%> (ø)

cmd/generate.go
0.00% <0.00%> (ø)

cmd/hook.go
0.00% <0.00%> (ø)

cmd/migrate.go
0.00% <0.00%> (ø)

cmd/migrate_storage.go
0.00% <0.00%> (ø)

cmd/serv.go
2.36% <0.00%> (-0.22%)
:arrow_down:

cmd/web.go
0.00% <0.00%> (ø)

cmd/web_letsencrypt.go
0.00% <ø> (ø)

... and 282 more

Continue to review full report at Codecov.

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


add rust-toolchain

Signed-off-by: zhangjinpeng1987<EMAIL_ADDRESS>

Close it since agatedb is a library.


Update privacy link

Context
We're now using a DfE wide privacy policy.
Changes proposed in this pull request
Update accordingly.
Guidance to review
Checklist

[x] Attach to Trello card
[x] Rebased main
[x] Cleaned commit history
[x] Tested by running locally

 Point the FLTRN privacy link to the new org wide policy


Possibly wrong encoding of jpeg from nparray

Version
0.3.0
Describe the bug.
When encoding an image from an nparray to jpeg - result is incorrect, image is offset to the righ, colors are 'separated'.
The exact image, if saved to jpg to disk (using cv2), and then loaded and encoded - will be saved correctly.
This observation is not happening when using j2k encoder.
However, the j2k encoder does not respect quality params (same result for any value)
original image

original image as npy (compressed for security)
original_as_npy.zip
incorrect result

Minimum reproducible example
import cv2
from nvidia import nvimgcodec

encoder = nvimgcodec.Encoder()

# start from an image that is saved as nparray - (720, 720, 4) uint8
orig_npy = np.load("original.npy")

# saving out as jpg and as j2k, default params
encoder.write("out_as_jpg2.jpg", orig_npy)
encoder.write("out_as_j2k.j2k", orig_npy)

###############################################################################

# if you start from an image and not nparray, you will get correct jpg result
orig_img = cv2.imread("original.jpg")
encoder.write("out_as_jpg2.jpg", orig_img)

Environment details
Ubuntu 22.04
Python 3.10.12
A6000 ADA
python venv pip freeze >
contourpy==1.2.1
cycler==0.12.1
fonttools==4.53.1
kiwisolver==1.4.5
matplotlib==3.9.2
numpy==2.1.0
nvidia-nvimgcodec-cu12==<IP_ADDRESS>
nvidia-nvjpeg-cu12==<IP_ADDRESS>
nvidia-nvjpeg2k-cu12==<IP_ADDRESS>
nvidia-pyindex==1.0.9
opencv-python==<IP_ADDRESS>
packaging==24.1
pillow==10.4.0
pyparsing==3.1.2
python-dateutil==2.9.0.post0
six==1.16.0

Relevant log output
No response
Other/Misc.
No response
Check for duplicates

[X] I have searched the open bugs/issues and have found no duplicates for this bug report

Thanks for reporting this issue.
Unfortunately nvImageCodec currently does not support RGBA format  (nvjpeg which we use under the hood also does not support RGBA) and this is what  looks is in orig_npy. We can consider adding RGBA format in future (or at least ignore A if there is 4 color components)  but for now definitively we should rather report error and not silently encode and corrupt image.
For now, you can try to remove forth component  and pass rgb array
orig_rgb = orig_npy[:,:,:3].copy()
encoder.write("out_as_jpg.jpg",orig_rgb)

Unfortunately in this case there is copy necessary.
Regarding " j2k encoder does not respect quality params" comment, for JPEG 2000 please use target_psnr instead of  quality


What is missing for Image embedding?

It seems like the rep includes a trained parameters for the image model. Does the missing part is API implementation, or the parameters are wrong?
Thanks

It's just missing the API implementation. For the first release we just focused on implementing the audio embedding API. I'll make a proper issue so we can better track it.