docs: Important OS-Climate project announcement

Signed-off-by: Matthew Watkins<EMAIL_ADDRESS>

Cherry picked commit on develop, will propagate


chore(main): release 1.2.0

:robot: I have created a release beep boop
1.2.0 (2024-07-17)
Features

changing org name accordingly (32ec45e)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/Injsted/next-template/releases/tag/v1.2.0 :sunflower:


Atom feed

This is a relatively simple feed that shows "gabebw joined Hotline
Webring" with a link to the site that joined.
I added a new key to our en.yml file for authors because someone's
gotta author these amazing feed entries.

Ready for re-review

:+1: squash & merge


Fix spacing for pagination dates

Before and after:

With the current styling, I think the spacing is too cramped in the pagination. This PR uses the default margin instead.

Thanks for the PR, @Benjamin-Lee. I think this change is good but might still need a little tweak. I imagine when I styled this I didn't try it out with such long titles and the line height still looks off when it wraps onto multiple lines. I wonder if adding something like leading-5 or leading-6 would help to tighten it up a bit?
A quick mock-up before and after...

Yes, much better with the leading fix. Thanks!


fix: change apache dubbo $invokeAsync to $invoke(#1321)

// Describe your PR here; eg. Fixes #issueNo
change apache dubbo $invokeAsync to $invoke(#1321) and update test case
Make sure that:

[√] You have read the contribution guidelines.
[ √] You submit test cases (unit or integration tests) that back your changes.
[ √] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

this can not merged ,

this can not merged ,

sorry ,there have something wrong, I will send a new pr


Fix support nushell

Fix the support for nushell on linux
However nushell still doesn't work on windows because of the way the executor works

Thanks!


Calcifer does not cancel poms

Seems that calcifer is not handling cancel pom requests. The little guy will respond that the pom is cancelled but still send out a ping at the completion of the pom despite it already having been cancelled.

Fixed! It was a small change in the code. I'll push the hotfix in a couple of hours when people finish working

huzzah! :)) Thank bro!


[DOCS] Added description to Camera2D missing members

I also changed the description of smoothing so it is clearer and points to the member which affects it.
Also fixed typo in the AudioEffectFilter that were missing at 19f140b

Your branch has unnecessary commits that have already been merged. You can remove them by rebasing: http://docs.godotengine.org/en/latest/community/contributing/pr_workflow.html#mastering-the-pr-workflow-the-rebase


C2581 - When ECID not available on client, allow the first request to be sent while queuing subsequent requests

This test only covers that the first command is sent to the server and that the subsequent commands are not sent to the server. I tried inflating the buffer from the demdex response to retrieve the ECID using several zlib options with no luck.

I added in a utility to get the decompressed response body from a request. I might have put it in the wrong directory so feel free to move it to wherever it should go.


💡 [REQUEST] -

[x] I am from GSSoC'23.
[x] I would like to be assigned this task.

Section
Description

Concise Description
about page

Solution Proposed
enhancement

Alternative Solutions
Describe any alternative solutions you can think of

Additional Context
Write any other contexts related to the feature request

Screenshots
[]

Code of Conduct
By submitting this issue, you agree to follow our Code of Conduct.

[x] I follow the Contributing Guidelines of this project.
[x] I have checked the current issues for duplicate problems.
[x] I have read the readme of this repository.

please assignt his issue to me @AKD-01

Already assigned issue.


implement _check and fix typo

_check function implemented.
Typo in CONTRIBUTING.md fixed.
thanks! :) 👍

Implement _check
DRY up the codebase
Deleted repeated error-checking code then called the _check() in the functions that previously had deleted code. Thanks!


rewards table should track rewards received from treasury/reserves by MIR process

There isn't a good authoritative source for this using just db-sync. I suggest rewards table should have a reward_type as an enum POOL|TREASURY|RESERVE and any rewards paid out from treasury/reserve at epoch boundary should be logged in this table.

This would need to be implemented in ledger-specs first.

What do you think needs to be implemented in ledger-specs? Rewards from pools come via the reward updates, the other rewards come via the MIR certs, marked as either Treasury or Reserves.

As far as db-sync and the actual accounting is concerned, there is no real difference whether rewards come from owning/delegating to a pool or from reserves/treasury.
Secondly pulling treasury and reserve rewards out of the transactions (where the MIR certs are) is way more complicated than pulling them out of the ledger state.
In my ideal API, staking rewards and reserves/treasury rewards would all be lumped together in one big map, with each reward being tagged with where it came from (eg LeaderReward , MemberReward , TreasuryPayment or ReservesPayment).

In my ideal API, staking rewards and reserves/treasury rewards would all be lumped together in one big map, with each reward being tagged with where it came from (eg LeaderReward , MemberReward , TreasuryPayment or ReservesPayment).

As I understand different kinds of rewards might have different "enabling" formula as a function of their "epoch" parameter. E.g. delegation rewards inserted during epoch N would have "epoch" value equal to N-1 but would only be spendable starting with N+1. Meanwhile any MIR inserted durin epoch N would have "epoch" value equal to N but would be spendable also from N+1, is that correct?
@erikd, just confirming, do you plan to add the spendable_epoch column (as discussed here: https://github.com/input-output-hk/cardano-db-sync/pull/704#issuecomment-885326111) to encapsulate all this difference?

Yes, there will be two columns, earned_epoch and spendable_epoch .


Feat/initial game logic

Features

Added basic match making
Added basic game communication logic via WS. Players can send and receive data and it gets drawn properly.
Utilizing redis-channels for WS communication
Added basic frontend file for testing

NOTE:

Currently there are some latency/lag when sending/receiving data, no idea how to fix this yet (beyond the scope of this PR). Will freeze the game for ~1s randomly.
I've only tested 2 users (both guest users) connecting through 2 different tabs, not sure how else to test it.
Does not support reconnections (e.g. refreshing the page or closing the tab - the user cannot reconnect)
Current logic does not include paddle collision (beyond the scope of this PR)

https://github.com/RealConrad/42transcendence/assets/79513076/412f7902-a065-44ec-a562-2e12cfb950a4

#Cool
Very Cool

My mom is very proud 😃


[CSL-2527] Add support to passing in autocomplete parameters

It made sense to me to just allow users to pass in an object under autocomplete parameters.

Yes! Excited to see this progress, @stanlp1. Did you notice this failing test? You down to investigate, or are you stuck on this and want help?


Set up OpenCollective

We're going to have an OpenCollective available whose main purpose will be re-imbursing expenses and taking sponsor money through.
Some example costs:

domain name registration
software costs for eg email
power bars / extension cables for hackathons
drinks and snacks at events

[x] Create OpenCollective
[x] Invite Emily as admin
[ ] Select a Fiscal Sponsor -- e.g Fission or Hypha

Thought to ideate on - what criteria do we have for Host selection?
I'm curious both for decision-making purposes, and to track for future Open Collective onboarding manual-izing.

@emilymcg there's a lot of flexibility.  So, anyone with an existing entity can run a transparent budgeting / expense system, or take in donations, services, or anything else through the system.
I'm mostly thinking about a Canadian fiscal host. Fiscal hosts may have fees or other rules. Hypha are good people, not sure what their criteria are. I'd prefer to not be fully enmeshed with Fission, but at the same time it's pretty easy to switch fiscal hosts. I see it as a good opportunity to reach out and collab with Hypha.
Let's put it on the agenda for discussion at the next planning meeting!


Cannot open input file 'liblept171.lib' error

I download recent leptonica version but when i build opencv project
"Cannot open input file 'liblept171.lib' error"
this msg came out..... where can i get liblept171.lib...
i research google but there is no answer for this error....

You try to run opencv report, that needs leptonica and you are putting issue to tesseract???

no I use this project...
and build this project .. that msg came from when i build it

You wrote: "but when i build opencv project" Or???
Leptonica is external dependency - you need to build it by yourself (and maybe adjust paths according you directory structure). You need to use 1.71 or latter version.
There are several tutorials how to build tesseract from source. Just use google...


Indent modifications

Brief Description
Fixes indentation issues for function parameters & pipes stacking indentation. Also provides an alternative indentation to pipes.
Fix Details
Indentation for function parameters.
There was no indentation provided for function parameters within the [] block. Examples

before:

export def function_name [
parameter: type   # Documentation
optional?: type   # Documentation
]: [string -> table] {

now:

export def function_name [
    parameter: type   # Documentation
    optional?: type   # Documentation
]: [string -> table] {

Pipe stacking indentation.
Sometimes pipes nodes can stack on each other on double (triple & so on) the indentation. This generally happens in this pattern:
{
    cmd
} {
        cmd
    }

This would probably occur most commonly in this scenario:
if true {
    cmd
} else {
        cmd
    }

There isn't a straight forward fix to this, so it goes towards opinionated territory.
What I've done is remove pipeline indentation alltogether. This fixes the issue & I've seen only 1 place where the behaviour changes. Normally if you do a command at the start of a line, if you go to the next line you will automatically indent. This is because even a command at the start is consider a pipeline. I view this as a positive effect. However it would also remove indentation for the next line in cases you have a pipe at the end of the line.
That being said I think the indentation provided by (pipeline) nodes overall does more damage than provide convenience, so I think the best course of action is to simply remove its indentation effect & try and replicate it via other methods(the method I attempted is provided below).
Proposed change
Adding @indent.immediate to "|" for pipeline indentation. This creates python line indentation if you have an open pipe "|" at the end of the line. This approach works well with 2 caveats:

comments in the middle of a pipe destroy the indent level:

cmd |
    properly_indented_command |
# comment kills indentation
imporperly_indented_command

indent persist until a command is inputed on a line. If you enter empty lines the indent would be preserved until you input a command:

cmd |
    proper_indent |

    another_command

the above code is not valid syntax, as a naked pipe requires a command on the very next line (or a comment line). I view this as a minor issue, as even if the indent was not there if someone enters a couple of empty lines and then a command after a naken pipe it would still be invalid syntax. So it is an indent issue only when someone is writing invalid code in the first place.
In short, this approach gives you proper indent after naked pipes at the cost of breaking indentation within a pipeline if you use non-inline comments in the middle of a pipe.
Help required.
Someone should test the indentation file in helix. I personally wasn't able to get the indents.scm file to have any change in helix to properly test it.

After further testing the alternative indent do not work all the time as well, so I removed it. Now this PR only fixes the indent of function parameters & removes the indent to pipes (to fix the issues created by it).

thanks


Add returning clause to update

Description
This change allows CRUD users to retrieve the updated record after performing an update operation by passing returning=True and optionally the model to load the response into.
Changes
closes: #106

add returning arg to the update function
add schema_to_select arg to the update function
add return_as_model arg to the update function
add one_or_none arg to the update function
add Optional[Union[dict, BaseModel]] return type as it now can return data

We use the same args that we also use in other CRUD API functions to make it easier for users to understand and use them.
Tests
I have added tests for update operations returning a single row, multiple rows, with model and without (i.e. dict).
Checklist

[x] I have read the CONTRIBUTING document.
[x] My code follows the code style of this project.
[ ] I have added necessary documentation (if appropriate).
[x] I have added tests that cover my changes (if applicable).
[x] All new and existing tests passed.

@JakNowy please take a look. Also, let me know where you think I should add docs about this, please.

This looks correct. However I share your opinion that ideally we would like to split that functionality into update and update_multi. I think in the upcoming major version we might even go further and have single update_multi which supports both single and multiple objects, without the "allow_multiple" constraint. If you wish, you're more than welcome to add that update_multi with simplified logic.

This looks correct. However I share your opinion that ideally we would like to split that functionality into update and update_multi. I think in the upcoming major version we might even go further and have single update_multi which supports both single and multiple objects, without the "allow_multiple" constraint. If you wish, you're more than welcome to add that update_multi with simplified logic. Otherwise I'm going to approve that already.

Let's make that a separate PR.

@JakNowy where should I put docs about this?

I think this should be a good place.

@JakNowy I have added docs. PTAL again.

Lgtm


Schedule appointment

Two triggers:

if a user tries to schedule an appointment that is outside of a doctor's availability times

alert user if trying to assign patient to specialist before they've been assigned a primary physician


Create tf-slider-thumb

Check this figma link.
This slider thumb may be used for other purposes that a slider. That's why it has a dedicated issue for it.


Implements more expansive travis build

Includes linter, static analysis, and function size checker

Codecov Report

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

@@          Coverage Diff          @@
##           master     #3   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           3      3
  Lines         139    139
=====================================
  Hits          139    139

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 b9ace59...9692473. Read the comment docs.


Windows can't booting and start flickering at acer logo

please i need help for the problem, my windows can't booting and start flickering at acer logo. anybody please reply my issues and teach me how to repair it. thank you very much

Not a dev, but this sounds like an EFI bootup issue. Try following the recovery steps in the about page.

As for the repair (for versions before 2.0), you need to use a Windows installation disk or similar to fix boot issues. After that, please try the new release. If you run into problems during installation, please provide setup.log file for any further assistance. If installation succeeds but the image is not changed properly, change the last line in config.txt to debug=1, reinstall and provide a picture of the debug output shown during boot, along with setup.log from the installation.

Closing bugs from obsolete versions. Please reopen if this is still valid for the most recent version (which also provides a lot more detailed debug output).


-safe-string should be optional

It seems it is  not possible to use camlzip and -safe-string at the same time. What about making this option optional? If so, what should be the API?

Yes, definitely needs to be optional. One question I have is how libraries with and without this option interact.

what should be the API?

We really need to change the whole API as discussed offline. Then making this particular option optional shouldn't be hard.

We really need to change the whole API as discussed offline. Then making this particular option optional >shouldn't be hard.

Ok then let's keep this issue open till we actually change the API. In the mean time I used the following workaround for biocaml:
module Project = struct
  let name = "biocaml"
[...]
end

module Base =  Make(Project)

let plugin = function
  | Before_options ->
    Base.plugin Before_options ;
    Ocamlbuild_pack.Configuration.parse_string "true: -safe_string"
  | x -> Base.plugin x

let () = dispatch plugin

I'm not saying that I'm proud of it, but it works!

Done in 904b1b9822d2f3e59862db37bf5205f0aaf05a02.


Add Provider()

For more context why I added this function, please see https://github.com/buildkite/terraform-provider-buildkite/issues/496

I am going to close this PR because on second thought it does not make much senses to mix both framework and sdk-v2 styles together. The best is to go with the terraform-plugin-framework

Thanks @runlevel5 that was my thinking but I hadn't gone through the PR and other options fully just yet. If thats a possibility to do through framework, we'd welcome another PR 👍


Getting into something went wrong error page when deleting a user in a sub organization

Describe the issue:

Getting into something went wrong error page when deleting a user in a sub organization
https://github.com/wso2/product-is/assets/40081059/049f6fe3-6383-4c47-8ddb-21bb9fd8eecb
How to reproduce:

1.Login in to console
2.Create a sub organization
3.Navigate to the sub org and create a user in the sub org
4.Then delete a created user in the sub organization
Expected behavior:

Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: [e.g., IS 5.10.0, IS 5.9.0]
OS: [e.g., Windows, Linux, Mac]
Database: [e.g., MySQL, H2]
Userstore: [e.g., LDAP, JDBC]

Optional Fields
Related issues:

Suggested labels:

Duplicate of https://github.com/wso2/product-is/issues/17037


[Bug]: JS object update calls are run during app load

Is there an existing issue for this?

[X] I have searched the existing issues

Description
JS object update calls do not need to run on page load but it's been observed to do so
Steps To Reproduce

Go to app at this location and observe network calls on app load

Public Sample App
https://release.app.appsmith.com/app/mutant/page1-640f0f6f1c0aec73be57f0cb/edit
Environment
Production
Issue video log
No response
Version
Cloud

@arunvjn any reason why we run the update calls on app load?

@ramsaptami is this still an issue?

@bharath31 Hi, please assign this issue to me. I want to contribute on it. This is my fisrt time, can confirm that the fix would just be to remove that PUT req. on page load?

Does not seem to be happening on the sampled + new application anymore, do you'll want to still investigate this? @satbir121

Closing this since it's not happening


Jsdom

Added jsdom functionality
WIP

ofc i forget to remove the test commit

Never worked on Lena's machine

playground
map-tile
interleaved-buffer
image-tile
icon
h3-grid
esri
ShanghaiData
3d-tiles

Breaks when moving to new jsdom

line
heatmap
bezier

Converted

3d-heatmap
arc
geojson
highway
mesh
plot
point-cloud (with a new error)
scatterplot
scenegraph-layer (yeah but on and off errors with and without change)
screen-grid
tagmap
text-layer
trips
worldmap


Initial cut at bug 872, observe side effects of tests

This is still a draft but I'd say it's about 75% done -- the main tricky (or hacky) parts are all working about as well as I can make them.
The goal here is to provide something like what we do for the txmeta recording in core: leverage the unit test suite to record traces of observable side effects into a stable file checked in to version control such that we notice when we unintentionally change observable behaviour of anything the tests exercise.
I just did some preliminary observations to get it working (budget values and prng state). Will add more.
This doesn't work quite as seamlessly as the core version: the Rust unit test harness is basically impossible to hook a pre-run / post-run interceptor into directly, so I wound up providing a wrapper around the Host that records its state when destroyed, and then augmenting it with a (macro-captured) name-of-the-function it's created in. Since most of our tests have exactly one host, this works (and it is only a little work to generalize to tests with multiple hosts).
Unfortunately there's no shutdown system in Rust at all, nor for the overall test harness, and the community consensus seems to be that hooking into libc's atexit is the best approach. So I did that too. Gross.
There are a few things left to do here which I'll have to pick up tomorrow, but it seems to mostly work:

[ ] support both curr and next files
[ ] go through the rest of the testsuite modifying the Host construction sites
[ ] observe a lot more state about the Host
[ ] maybe warn when there are unused entries in the observations file? maybe not since running single tests is common
[ ] connect to the host lifecycle hooks system to do some cumulative observations (eg. as VMs are set up and torn down)

I think it's probably good enough to start with (besides the built-in contract issues). But I wonder if it's possible to observe the host function measurements vs the whole test measurements. That would make it much easier to distinguish between changing the test setup (e.g. adding an assertion with getter) vs changing the actual host implementation. Again, that's not critical for now, I just wonder how hard/feasible that would be.

@dmkozh do you mean a separate observation every time any host function call happens during each test? or like a summary of host function counts? I think I could make either work.

@dmkozh do you mean a separate observation every time any host function call happens during each test? or like a summary of host function counts? I think I could make either work.

The way I'd envision this is that we hook observations to public (env-common) host fns (hopefully there is a way to generate this). Then the observations can be grouped by test, similarly to what we do here. Then we could conceptually get something like
test_foo(): {
  "vec_new": "abc...",
  "vec_push": "def...",
  "vec_new" : "hij...",
}

where we could just store the hash of budget+return value+prng etc. (or even granular numbers, depending on how verbose that would be).
Then if I modify the test it would be very easy to correlate diffs to the modifications I've made (e.g. if I've just added a host fn call, then I expect that nothing else has changed besides my new call).

@dmkozh I've updated this with much more involved and finer-granularity measurements. let me know if it's to your liking.


iPad Air 2

Hi is there iPad Air 2 cellular support  and is any one compiled it yet as a ipa any one help thanks

Compile yourself and test it. It's not stable yet. Wait for the owner to confirm if it's stable.

No it is not supported 4K devices are not supported

@cawk https://github.com/kpwn/yalu102/issues/40

Yes we have the offsets but it still doesn't work I have already tried that then reading through other issues and responses from luca he says he only has access to 16k device until the weekend so we have to wait till then until 4K devices are supported then the offsets we have will work
What I got from reading the other issues correct me if I'm wrong luca


Expects a ../maven.properties file

Building with gradle fails after not being able to find ../maven.properties, in line 31 of build.gradle.

Remove the uploadArchives closure in the build.gradle, that's only for me publishing Toast

Could you fix the gradle file so it ignores the file if it doesn't exist instead of giving an error? Or at the very least mention something in the readme about how everyone needs to change this file after cloning in order to compile?

Furthermore, removing that closure isn't enough, lines 30-35 also need to be removed.

The project usually isn't meant to be build without maven, that is for when the Deployment tool gets released. I will try to fix the build.gradle to reflect this

I did have maven already installed and in my path, but no ../maven.properties file. Not sure if that is related in any way. Hopefully there will be a way to easily build afer cloning without having to modify files.

That's the thing. This is the src of the Toast program, so it has a maven.properties file to upload to maven for people to develop their plugins with


Issues getting usage

Hey all, receiving this error and having trouble getting the script to run.
Traceback (most recent call last):
File "/home/kali/ShellWasp-main/shellWasp.py", line 2, in
import start.shellWasp
File "/home/kali/ShellWasp-main/start/shellWasp.py", line 1140, in
syscalls=winSyscalls()
File "/home/kali/ShellWasp-main/start/shellWasp.py", line 91, in init
with open(os.path.join(os.path.dirname(file), 'reverseWinsysCallsInt.json'), 'r') as syscall_file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/kali/ShellWasp-main/start/reverseWinsysCallsInt.json'

Hey Bw3ll,
Thank you for the fix. I am getting another issue with building a shellcode now. It is with your Ks variable that I assume is another capitalization error.
name 'Ks' is not defined
Traceback (most recent call last):
File "/home/kali/ShellWasp/start/shellWasp.py", line 1104, in ui
buildSyscall()
File "/home/kali/ShellWasp/start/shellWasp.py", line 630, in buildSyscall
generateBytes(finalSyscallShellcode)
File "/home/kali/ShellWasp/start/shellWasp.py", line 1078, in generateBytes
ks = Ks(KS_ARCH_X86, KS_MODE_32)
NameError: name 'Ks' is not defined

Hmm, I do not have that issue in Kali Linux. I wonder - can you confirm that you have Keystone installed? It sounds like that is probably the error.
You can run this command, and go look and see if you have keystone-engine. Note - unless you installed it for ShellWasp, it probably is not part of Kali Linux.
python -m pip list
If you have not installed keystone, you can do so with the following:
pip install keystone-engine
Please let me know if this resolves your issue.

Closing issue. Feel free to reopen if something comes up.


Missing upgrades display can break the mod if user does not have any upgrades

Describe the bug
The code for showing missing upgrades currently works by finding the place to enter the missing upgrades by iterating over the menu with .children[x].children[x].length. However, whenever a user does not have any upgrades unlocked this will crash as the number of children does not match the normal number of children.
The sections in the menu don't have an id so it is hard to select the right div-element. However, we should try and find a solution because this is breaking the mod.
To Reproduce
The steps needed to reproduce the behavior:

Turn on show missing upgrades
Scroll down

Save file
[encoded data, 6435 characters]%3D%21END%21

Was about to report the same issue, after repeatedly crashing the game when I tried a quick, brand new save just for shits and giggles. I don't have any issue at first though, CookieMonster works fine with no purchased upgrades. It only crashes a few seconds after I purchase the first one.My regular, advanced save also seems to work fine.

This has now been fixed!


Schoology not listed

[Enter feedback here]
Schoology is not listed as an option when trying to register

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

ID: 5a1c5fb0-85ed-3783-ee01-4f352aab1040
Version Independent ID: 5a1c5fb0-85ed-3783-ee01-4f352aab1040
Content: Integrate Microsoft Teams meetings with Schoology LMS
Content Source: microsoft-365/lti/teams-classes-and-meetings-with-schoology.md
Service: o365-administration
GitHub Login: @DaniEASmith
Microsoft Alias: danismith

@tiburd Kindly help us in contacting the PM and getting the technical comment for the resolution. Thanks

Sent email to PM.


Scala/Akka/Dropwizard Metrics app hanging for 10s before shutting down

I have a Scala 2.11 app that uses Akka. The GitHub repo for it is here. To reproduce what I'm seeing, just clone it, build it via ./gradlew fullBuild and then run it via java -jar build/libs/akka-scala-troubleshooting.jar (its a self-contained executable JAR). But essentially, I'm noticing that when I kill the running JVM process via Ctrl+C that it takes exactly 10 seconds for the JAR to shut down!
IIRC, Ctrl+C should issue a SIGKILL to the JVM process, so how it lives for another 10 seconds thereafter is blowing my mind! Even if I'm recalling that incorrectly, I'd still like to know why my app isn't shutting down immediately (it's causing problems by not doing so).
I'm using Dropwizard (formerly Coda Hale) Metrics via this library. From what I can tell there might be a scheduled reporter daemon still alive that isn't shutting down right away, even when the JVM receives the SIGKILL (or whatever Ctrl+C is sending).  StartUp
  println("Fired! Actor system is spinning up...")
}

When you run the JAR, you'll see this output to the logs:
java -jar build/libs/akka-scala-troubleshooting.jar
Starting upp the app...
About to fire a StartUp message at Master...
Fired! Actor system is spinning up...
Master has received a command to start up the actor system!
Child will make it happen!

At this point it will just idle and do nothing -- that's fine and intended! But when I hit Ctrl+C on the terminal, I immediately get this log INFO:
^C[INFO] [08/03/2017 06:15:57.236] [Thread-0] [CoordinatedShutdown(akka://cortex)] Starting coordinated shutdown from JVM shutdown hook

Then 10 seconds goes by (exactly 10s every time), then finally a log WARNing:
[WARN] [08/03/2017 06:16:07.248] [Thread-0] [CoordinatedShutdown(akka://cortex)] CoordinatedShutdown from JVM shutdown failed: Futures timed out after [10000 milliseconds]

Any idea what could be going on here?

Hi @zharvey-welltok -
While this issue isn't at all related to metrics-scala or even metrics, I thought I could provide some help:
Running System.exit inside a shutdown hook (registerOnTermination) is the problem here.  That function requires entry into a synchronized section of java.lang.Shutdown that a different thread is already in, thus the timeout (thankfully someone thought to put in a timeout).  You can see the behavior via use of jstack while in the waiting period after Ctrl-C but before shutdown.  E.G:
"cortex-akka.actor.default-dispatcher-3" #12 prio=5 os_prio=31 tid=0x00007fcd311ea000 nid=0x5303 waiting for monitor entry [0x0000700006b5d000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at java.lang.Shutdown.exit(Shutdown.java:212)
	- waiting to lock <0x0000000795ad9978> (a java.lang.Class for java.lang.Shutdown)
	at java.lang.Runtime.exit(Runtime.java:109)
	at java.lang.System.exit(System.java:971)
	at hotmeatballsoup.Driver$$anonfun$1.apply$mcV$sp(Driver.scala:24)
        ...

I replaced the System.exit in the shutdown hook with a simple println statement and the process ended immediately on Ctrl-C.
Also - Ctrl-C translates into a SIGTERM, not a SIGKILL.  SIGKILL would immediately hard stop the java process, as you'd expect.
HTH


Portainer unaccessable when primary endpoint is down

Unable to access portainer UI when primary endpoint is offline
Steps to reproduce the issue:

Configure portainer with multiple endpoints
Disable the primary endpoint
Attempt to login

Not 100% sure what should be expected, but I'd say just attempt to show the next endpoint in the list that is accessible perhaps?
Technical details:

Portainer version 1.14.3:
Target Docker version (the host/cluster you manage): 17.03.1-ce
Platform (windows/linux): linux
Command used to start Portainer (docker run -p 9000:9000 portainer/portainer):  default
Target Swarm version (if applicable):
Browser: Chrome

Indeed, we should be able to authenticate against a healthy endpoint. We should figure out the UX for this first, should we prompt to select another endpoint if the primary is not available?
cc @ncresswell what's your thoughts on this?

@deviantony any update on selecting another endpoint if primary is not available ?

@ransunak I believe that we can close this issue as the user is now redirected to the home view instead of the endpoint dashboard view after authentication.
The user can then select the endpoint he wants to manage from the home view.


query result empty in  runInstalledQuery async mode

I am trying to run a query in async mode if i am running without async mode it works fine but in async mode empty status is coming
result_2=conn.runInstalledQuery('getusersummary',params, timeout=360000 ,runAsync=True)
conn.checkQueryStatus('16777219.RESTPP_1_1.1697192938910.N')

you can see in screenshot is result is empty array

Hi @AbhishekOnedigital - thanks for the report. Can you provide the version of pyTigerGraph and of the TigerGraph database you are using?
Also, what happens if you try to retrieve the result via conn.getQueryResult()?
Thanks!

Hi @parkererickson-tg
Tiger graph version - 3.9.2
Pytigergraph - 1.4.1

Hmmm. This seems to be an issue with the database most likely. Do you have access to our Zendesk?

what is zendesk can you help me with link ?
till yesterday it was working . without async parameter it is working
Thanks @parkererickson-tg

https://www.tigergraph.com/support/ should point you to the correct place depending on the product you are using. Chances are that this will run across my plate internally again, but it does appear to be a database issue to me right now.


Projecteuler Lab

@benjaminjellison created a pull request.

When I try and prove the pythagorean triple from your answers file I get negative numbers in the answer...
Cryptol> :prove pythagoreantriple
       pythagoreantriple -1024 1015 1009 = False

pythagoreantriple : Integer -> Integer -> Integer -> Bit
property pythagoreantriple a b c =
    a^^2 + b^^2 == c^^2 /\
    a + b + c == 1000   /\
    a > 0 /\ b > 0 /\ c > 0

Now there's only two:
Cryptol> :sat pythagoreantriple
    pythagoreantriple 200 375 425 = True
    pythagoreantriple 375 200 425 = True

Yours is more accurate.  I was using :sat, not :prove, which gives the correct answer.

@benjaminjellison 🤦♂


Basic android | Kotlin Compose | Practice Problems #7

A ---
name:
about: Basic android | Kotlin Compose | Practice Problems #7
title: 'special auction'
labels: ''
assignees: ''

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-kotlin-fundamentals-practice-problems?hl=pt-br&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-2-pathway-1%3Fhl%3Dpt-br%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-kotlin-fundamentals-practice-problems#7
In which task and step of the codelab can this issue be found?
Problem #7
Describe the problem
This code dont work for “Private Collector”=6000
fun main() {
val winningBid = Bid(5000, "Private Collector")
println("Item A is sold at ${auctionPrice(winningBid, 2000)}.")
println("Item B is sold at ${auctionPrice(null, 3000)}.")

}
class Bid(val amount: Int, val bidder: String)
fun auctionPrice(bid: Bid?, minimumPrice: Int): Int {
if (bid!=null){
if(bid.amount<minimumPrice){
return minimumPrice
}else{
return bid.amount
}
}else{
return minimumPrice
}
}
This code works for “Private Collector”=6000
fun main() {
val winningBid = Bid(5000, "Private Collector")
println("Item A is sold at ${auctionPrice(winningBid, 2000)}.")
println("Item B is sold at ${auctionPrice(null, 3000)}.")

}
class Bid(val amount: Int, val bidder: String)
fun auctionPrice(bid: Bid?, minimumPrice: Int): Int {
if (bid!=null){
if(bid.amount<minimumPrice){
return minimumPrice
}else{
return bid.amount
}
}else{
return minimumPrice
}
}
Steps to reproduce?

Go to...
Click on...
See error...

Versions
Android Studio version:
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.

Hi @RicardoMeloDaRocha
Thank you for writing in.
If there is a bidder, the item is sold for that amount even if it is less than the minimum price.
The minimum price is only used if there is no bidder.
Hope this helps clarify the issue.
Regards.


Unify alpha structures

There must be only one definition of alphas, up-to-now. We don't need to
duplicate code N times.

I removed 21871170e2ad959bcf2d18027431b357c4dec5cf to target master.

Fixing conflicts.

I started from master, cherry-picked d1845c9f0e5d5d60b1961d15d63a6a2977f194b6 and fix conflicts. The previous code was built on top of WIP code.


Does mosquitto need to install before below command?

Hi awesome maker (Sebastian Raff),
Does mosquitto need to install before below command?
sudo apt-get install libavahi-compat-libdnssd-dev
sudo npm install -g homekit2mqtt --unsafe-perm
homekit2mqtt -v debug
Before sudo npm install -g homekit2mqtt --unsafe-perm
I did
sudo apt-get install libmosquitto-dev
sudo apt-get install mosquitto mosquitto-clients
sudo vi /etc/mosquitto/mosquitto.conf

pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
allow_anonymous false
password_file /etc/mosquitto/pwfile
listener 1883

root@raspberrypi:/home/pi# sudo mosquitto_passwd -c /etc/mosquitto/pwfile pi
Password: password
Reenter password: password

sudo reboot

and
mosquitto_sub -d -u pi -P password -t "Nodemcu/Control_R_LED"
mosquitto_pub -d -u pi -P password -t "Nodemcu/Control_R_LED" -m "OFF"

is work
But
root@raspberrypi:/usr/lib/node_modules/homekit2mqtt# homekit2mqtt -v debug -m /usr/lib/node_modules/homekit2mqtt/example-homekit2mqtt.json -u "tcp://<IP_ADDRESS>:1883"
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!

That is strange. Obviously homekit2mqtt tries to bind on port 1883 - The port mosquitto has already taken (what is correct). I don't understand why. homekit2mqtt should use the port 51826 by default. You could try again to start homekit2mqtt with supplying the port explicitly (option --port 51826).

Another thing I just realized: If you configure your mosquitto with allow_anonymous false you also have to supply the credentials when starting homekit2mqtt. Your start command should then look like this:
homekit2mqtt -u<EMAIL_ADDRESS>-m /usr/lib/node_modules/homekit2mqtt/example-homekit2mqtt.json -v debug --port 51826

I will try after 11 hours while I at home.
Does you run mosquitto (port 1883) and homekit2mqtt (port 1883)
at the same Raspberry Pi?!
Thanks.

Homekit2mqtt should not listen on port 1883. This is the standard mqtt port mosquitto is listening on. On one host only one application can listen on a specific port. Homekit2mqtt itself should listen on port 51826. I fear you're mistaking listening ports and outgoing connections. Just try to start homekit2mqtt with the commandline I posted above and paste the log if it does not work.

first run at terminal #1:
sudo vi homekit2mqtt.json
{
"Lightbulb1": {
"service": "Lightbulb",
"name": "Red LED",
"topic": {
"setOn": "Nodemcu/Control_R_LED/set",
"statusOn": "Nodemcu/Control_R_LED/status"
},
"payload": {
"onTrue": "ON",
"onFalse": "OFF"
},
"manufacturer": "Generic",
"model": "Lightbulb"
},
"Lightbulb2": {
"service": "Lightbulb",
"name": "Green LED",
"topic": {
"setOn": "Nodemcu/Control_G_LED/set",
"statusOn": "Nodemcu/Control_G_LED/status"
},
"payload": {
"onTrue": "ON",
"onFalse": "OFF"
},
"manufacturer": "Generic",
"model": "Lightbulb"
},
"Lightbulb3": {
"service": "Lightbulb",
"name": "Yellow LED",
"topic": {
"setOn": "Nodemcu/Control_Y_LED/set",
"statusOn": "Nodemcu/Control_Y_LED/status"
},
"payload": {
"onTrue": "ON",
"onFalse": "OFF"
},
"manufacturer": "Generic",
"model": "Lightbulb"
}
}
second run at terminal #1:
homekit2mqtt -u<EMAIL_ADDRESS>-m /usr/lib/node_modules/homekit2mqtt/homekit2mqtt.json
-v debug
--port 51826
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister
2017-06-24 00:20:39.922   homekit2mqtt 0.6.9 starting
2017-06-24 00:20:39.940   mqtt trying to connect<EMAIL_ADDRESS>2017-06-24 00:20:40.448   using hap-nodejs version 0.4.25
2017-06-24 00:20:40.503   loading HomeKit to MQTT mapping file /usr/lib/node_modules/homekit2mqtt/homekit2mqtt.json
2017-06-24 00:20:40.514  loading accessories/Lightbulb.js
2017-06-24 00:20:40.531  addBridgedAccessory Lightbulb Red LED
2017-06-24 00:20:40.555  mqtt subscribe Nodemcu/Control_R_LED/status
2017-06-24 00:20:40.572  addBridgedAccessory Lightbulb Green LED
2017-06-24 00:20:40.580  mqtt subscribe Nodemcu/Control_G_LED/status
2017-06-24 00:20:40.586  addBridgedAccessory Lightbulb Yellow LED
2017-06-24 00:20:40.588  mqtt subscribe Nodemcu/Control_Y_LED/status
2017-06-24 00:20:40.590   hap created 3 Accessories
2017-06-24 00:20:40.592   hap publishing bridge "MQTT Bridge" username=CC:22:3D:E3:CE:F6 port=51826 pincode=031-45-154
2017-06-24 00:20:40.736   hap Bridge listening on port 51826
2017-06-24 00:20:40.792   mqtt connected<EMAIL_ADDRESS>third open terminal #2
run at terminal #2:
mosquitto_sub -d -h <IP_ADDRESS> -p 1883 -u pi -P password -t "Nodemcu/Control_R_LED/set"
Client mosqsub/1453-raspberryp sending CONNECT
Client mosqsub/1453-raspberryp received CONNACK
Client mosqsub/1453-raspberryp sending SUBSCRIBE (Mid: 1, Topic: Nodemcu/Control_R_LED/set, QoS: 0)
Client mosqsub/1453-raspberryp received SUBACK
Subscribed (mid: 1): 0
fourth open terminal #3
run at terminal #3:
mosquitto_pub -d -h <IP_ADDRESS> -p 1883 -u pi -P password -t "Nodemcu/Control_R_LED/set" -m "ON"
Client mosqpub/1314-raspberryp sending CONNECT
Client mosqpub/1314-raspberryp received CONNACK
Client mosqpub/1314-raspberryp sending PUBLISH (d0, q0, r0, m1, 'Nodemcu/Control_R_LED/set', ... (2 bytes))
Client mosqpub/1314-raspberryp sending DISCONNECT
terminal #1: no response
terminal #2:
Client mosqsub/1466-raspberryp received PUBLISH (d0, q0, r0, m0, 'Nodemcu/Control_R_LED/set', ... (2 bytes))
ON
but run at terminal #3:
mosquitto_pub -d -h <IP_ADDRESS> -p 51826 -u pi -P password -t "Nodemcu/Control_R_LED/set" -m "ON"
Client mosqpub/1316-raspberryp sending CONNECT
Error: The connection was lost.
Why Error: The connection was lost. ?
Why terminal #1: still no response ?
Thanks.

The Error in your last step is because you try to connect to the homekit-port with mosquitto_pub (mosquitto_pub -d -h <IP_ADDRESS> -p 51826 is wrong). Correct usage is mosquitto_pub -d -h <IP_ADDRESS> -p 1883.
No Response in homekit2mqtt is because homekit2mqtt only subscribes to the topics you defined as statusOn, e.g. "statusOn": "Nodemcu/Control_R_LED/status". When you do a publish like mosquitto_pub -d -h <IP_ADDRESS> -p 1883 -u pi -P password -t "Nodemcu/Control_R_LED/status" -m "ON" you should see something in homekit2mqtt's log. If you take your iOS device and use the Home app to Switch "Red LED" on and off you should see that homekit2mqtt publishes on the topic you configured as "setOn".

first run at terminal #1:
homekit2mqtt -u<EMAIL_ADDRESS>-m /usr/lib/node_modules/homekit2mqtt/homekit2mqtt.json
-v debug
--port 51826
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister
2017-06-24 09:49:13.376   homekit2mqtt 0.6.9 starting
2017-06-24 09:49:13.394   mqtt trying to connect<EMAIL_ADDRESS>2017-06-24 09:49:13.886   using hap-nodejs version 0.4.25
2017-06-24 09:49:13.933   loading HomeKit to MQTT mapping file /usr/lib/node_modules/homekit2mqtt/homekit2mqtt.json
2017-06-24 09:49:13.938  loading accessories/Lightbulb.js
2017-06-24 09:49:13.946  addBridgedAccessory Lightbulb Red LED
2017-06-24 09:49:13.973  mqtt subscribe Nodemcu/Control_R_LED/status
2017-06-24 09:49:13.990  addBridgedAccessory Lightbulb Green LED
2017-06-24 09:49:13.996  mqtt subscribe Nodemcu/Control_G_LED/status
2017-06-24 09:49:14.002  addBridgedAccessory Lightbulb Yellow LED
2017-06-24 09:49:14.004  mqtt subscribe Nodemcu/Control_Y_LED/status
2017-06-24 09:49:14.006   hap created 3 Accessories
2017-06-24 09:49:14.008   hap publishing bridge "MQTT Bridge" username=CC:22:3D:E3:CE:F6 port=51826 pincode=031-45-154
2017-06-24 09:49:14.140   hap Bridge listening on port 51826
2017-06-24 09:49:14.198   mqtt connected<EMAIL_ADDRESS>second open terminal #2
run at terminal #2:
mosquitto_pub -d -h <IP_ADDRESS> -p 1883 -u pi -P password -t "Nodemcu/Control_R_LED/status" -m "ON"
mosquitto_pub -d -h <IP_ADDRESS> -p 1883 -u pi -P password -t "Nodemcu/Control_R_LED/status" -m "OFF"
2017-06-24 09:49:28.682  < mqtt Nodemcu/Control_R_LED/status ON
2017-06-24 09:49:28.683  > hap set Red LED On true
2017-06-24 09:49:34.106  < mqtt Nodemcu/Control_R_LED/status OFF
2017-06-24 09:49:34.107  > hap set Red LED On false
Good enough, but why my iPhone/Home app can not find the homekit2mqtt bridge?
I change th other TF card that I make the HAP-NodeJS environment:
root@raspberrypi:/home/pi/HAP-NodeJS# node Core.js
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
HAP-NodeJS starting...
Parsing accessory: Fan_accessory.js
Parsing accessory: GarageDoorOpener_accessory.js
Parsing accessory: Light_accessory.js
Parsing accessory: Lock_accessory.js
Parsing accessory: MotionSensor_accessory.js
Parsing accessory: Outlet_accessory.js
Parsing accessory: TemperatureSensor_accessory.js
Parsing accessory: Thermostat_accessory.js
Parsing accessory: deskLamp_accessory.js
Why my iPhone/Home app can pair above accessory?
Really thanks for your help.

At link https://www.npmjs.com/package/homekit2mqtt
homekit2mqtt
NPM version Dependency Status Build Status codecov XO code style License
...
Prerequisites:
Debian, Ubuntu, Raspbian or macOS
Node.js 6 or higher
If you're running on Linux, you'll need to make sure you have the libavahi-compat-libdnssd-dev package installed: sudo apt-get install libavahi-compat-libdnssd-dev
-->
Q1: mosquitto need to install before homekit2mqtt?
Q2: Without mosquitto, homekit2mqtt can work?
Really thanks for your help.

Could be that you can't pair your iOS device with homekit2mqtt because it's already been paired with HAP-NodeJs with the same Bridge name (CC:22:3D:E3:CE:F6). Try again with the following startup command:
homekit2mqtt -u<EMAIL_ADDRESS>\
    -m /usr/lib/node_modules/homekit2mqtt/homekit2mqtt.json \
    -v debug \
    --port 51826 \
    --username CC:22:3D:E3:CE:F8

To your other Questions:
homekit2mqtt needs a MQTT Broker. This doesn't have to be neccessarily Mosquitto, it can be any MQTT Broker, but without a MQTT Broker homekit2mqtt does not make any sense.
So as I always suggest to use Mosquitto as MQTT Broker I'm using Mosquitto as synonym for a MQTT Broker and would answer your questions with
"yes - mosquitto needs to be installed" and "no - homekit2mqtt can't work without mosquitto".

terminal #1:
homekit2mqtt -u<EMAIL_ADDRESS>-m /usr/lib/node_modules/homekit2mqtt/homekit2mqtt.json
-v debug
--port 51826
--username CC:22:3D:E3:CE:F7
-->
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister
2017-06-25 01:13:30.962   homekit2mqtt 0.6.9 starting
2017-06-25 01:13:30.980   mqtt trying to connect<EMAIL_ADDRESS>2017-06-25 01:13:31.443   using hap-nodejs version 0.4.25
2017-06-25 01:13:31.488   loading HomeKit to MQTT mapping file /usr/lib/node_modules/homekit2mqtt/homekit2mqtt.json
2017-06-25 01:13:31.492  loading accessories/Lightbulb.js
2017-06-25 01:13:31.501  addBridgedAccessory Lightbulb Red LED
2017-06-25 01:13:31.526  mqtt subscribe Nodemcu/Control_R_LED/status
2017-06-25 01:13:31.542  addBridgedAccessory Lightbulb Green LED
2017-06-25 01:13:31.548  mqtt subscribe Nodemcu/Control_G_LED/status
2017-06-25 01:13:31.553  addBridgedAccessory Lightbulb Yellow LED
2017-06-25 01:13:31.555  mqtt subscribe Nodemcu/Control_Y_LED/status
2017-06-25 01:13:31.557   hap created 3 Accessories
2017-06-25 01:13:31.559   hap publishing bridge "MQTT Bridge" username=CC:22:3D:E3:CE:F8 port=51826 pincode=031-45-154
2017-06-25 01:13:31.687   hap Bridge listening on port 51826
2017-06-25 01:13:31.739   mqtt connected<EMAIL_ADDRESS>After my iPhone/Home app can pair
terminal #1:
-->
2017-06-25 01:17:45.759   hap paired 9B65938C-07F6-44A4-8929-07B2795FB0D6
2017-06-25 01:17:49.038   < hap bridge identify (paired)
2017-06-25 01:17:50.849  < hap get Green LED On
2017-06-25 01:17:50.850  > hap re_get Green LED On true
2017-06-25 01:17:51.342  < hap identify Green LED (paired)
2017-06-25 01:18:02.562  < hap get Green LED On
2017-06-25 01:18:02.563  > hap re_get Green LED On true
2017-06-25 01:18:02.821  < hap get Red LED On
2017-06-25 01:18:02.821  > hap re_get Red LED On true
2017-06-25 01:18:03.305  < hap identify Red LED (paired)
2017-06-25 01:18:13.769  < hap get Red LED On
2017-06-25 01:18:13.770  > hap re_get Red LED On true
2017-06-25 01:18:14.039  < hap get Yellow LED On
2017-06-25 01:18:14.040  > hap re_get Yellow LED On true
2017-06-25 01:18:14.520  < hap identify Yellow LED (paired)
2017-06-25 01:18:25.253  < hap get Yellow LED On
2017-06-25 01:18:25.254  > hap re_get Yellow LED On true
2017-06-25 01:18:25.280  < hap get Red LED On
2017-06-25 01:18:25.281  > hap re_get Red LED On true
2017-06-25 01:18:25.282  < hap get Yellow LED On
2017-06-25 01:18:25.283  > hap re_get Yellow LED On true
2017-06-25 01:18:25.284  < hap get Green LED On
2017-06-25 01:18:25.285  > hap re_get Green LED On true
terminal #2:
mosquitto_sub -d -h <IP_ADDRESS> -p 1883 -u pi -P password -t "Nodemcu/Control_R_LED/status"
After my iPhone/Home app press "Red LED"
terminal #1:
-->
2017-06-25 01:20:32.781  < hap set Red LED On 0
2017-06-25 01:20:32.782  > mqtt Nodemcu/Control_R_LED/set OFF
terminal #2:
-->
Client mosqsub/1351-raspberryp sending CONNECT
Client mosqsub/1351-raspberryp received CONNACK
Client mosqsub/1351-raspberryp sending SUBSCRIBE (Mid: 1, Topic: Nodemcu/Control_R_LED/set, QoS: 0)
Client mosqsub/1351-raspberryp received SUBACK
Subscribed (mid: 1): 0
Client mosqsub/1351-raspberryp sending PINGREQ
Client mosqsub/1351-raspberryp received PINGRESP
Client mosqsub/1351-raspberryp received PUBLISH (d0, q0, r0, m0, 'Nodemcu/Control_R_LED/set', ... (3 bytes))
OFF
My Arduino code: MQTT_NodeMCU_LEDs.ino
#define MQTT_Server "<IP_ADDRESS>"
#define MQTT_Port 1883
#define MQTT_User "pi"
#define MQTT_Password "password"
// MQTT subscribe/publish Topic
#define MQTT_R_LED_set_TOPIC "Nodemcu/Control_R_LED/set"
#define MQTT_G_LED_set_TOPIC "Nodemcu/Control_G_LED/set"
#define MQTT_Y_LED_set_TOPIC "Nodemcu/Control_Y_LED/set"
Arduino IDE/Serial Monitor:
-->
MQTT_Callback:
Nodemcu/Control_R_LED/set
OFF
Red LED: OFF
Work almost perfect,
even 3 LEDs connect to NodeMCU can control by Home app/Siri.
But I don't why iOS device already been paired with HAP-NodeJs with the same Bridge name
then must change username (CC:22:3D:E3:CE:F6) to new one and repair Bridge (and all it's accessories),
even if I press key Ctrl+C or system halt?
HAP-NodeJs (node Core.js) without this problem.
Really thanks for your help.

Not sure if I understand right...
Normally you shouldn't need to change the username or repair after a pairing was successful. Homekit2mqtt saves some data regarding the pairing, there is also an command line option to choose where to save this (--storagedir). As long as the username is unchanged and homekit2mqtt can load the persisted data everything should be ok.
To run homekit2mqtt in background and autostart it on system boot I suggest to use pm2, a node.js based process manager that's quite comfortable.

Hi awesome maker (Sebastian Raff),
I will try homekit2mqtt [option]
-s, --storagedir  directory to store homekit data
later.
The easy way to autostart it on system boot, can do as below too
sudo vi /etc/rc.local
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
#cd /home/pi/HAP-NodeJS
#node Core.js
homekit2mqtt -u<EMAIL_ADDRESS>-m /usr/lib/node_modules/homekit2mqtt/homekit2mqtt.json
-v debug
--port 51826
--username CC:22:3D:E3:CE:FB
exit 0
You can Close issue.
Really thanks for your help.


CLOUD-56717 switch to Amazon Linux

@akanto

Jenkins build failed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/2500/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/2501/


Add release tags

If there's a problem with the current master or develop code, it's not easy to get a previous release.
https://github.com/CounterpartyXCP/counterpartyd_build/releases
Could they occasionally be tagged so that people can easily get one of earlier releases?

Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

started doing this. closing


Error validating Literal types from .env

Validation fails for non-string Literal types when reading values from the environment:
import os
from typing import Literal

from pydantic_settings import BaseSettings, SettingsConfigDict

class LiteralFromEnv(BaseSettings):
    A: bool
    B: Literal[False]
    C: int
    D: Literal[1]

    model_config = SettingsConfigDict(env_file=".env")

os.environ["A"] = "False"
os.environ["B"] = "False"
os.environ["C"] = "1"
os.environ["D"] = "1"

print(LiteralFromEnv().model_dump())

pydantic_core._pydantic_core.ValidationError: 2 validation errors for LiteralFromEnv
B
  Input should be False [type=literal_error, input_value='False', input_type=str]
    For further information visit https://errors.pydantic.dev/2.9/v/literal_error
D
  Input should be 1 [type=literal_error, input_value='1', input_type=str]
    For further information visit https://errors.pydantic.dev/2.9/v/literal_error

This also occurs when reading from a .env file.  Presumably this is because all environment variables are strings, but int or bool types (for example) work, so I'd expect Literal[<int>] to work as well.
Using python 3.12, pydantic-settings 2.4.0, on windows 10

Thanks @slingshotvfx for reporting this issue.
This is not a pydantic-settings issue. this is related to pydantic.
Here is the collected value for initializing the model {'A': 'False', 'B': 'False', 'C': '1', 'D': '1'}.
So, if we change the above model to a pedantic model, we will get the same error.
from typing import Literal

from pydantic import BaseModel

class LiteralFromEnv(BaseModel):
    A: bool
    B: Literal[False]
    C: int
    D: Literal[1]

print(LiteralFromEnv(**{'A': 'False', 'B': 'False', 'C': '1', 'D': '1'}).model_dump())

Let's close this issue here and you can ask your question in pydantic repository

Hey @hramezani
Raised an issue here but looks like Pydantic doesn't plan to support this feature unfortunately.  Might be nice to at least mention in the documentation for pydantic-settings that non-string Literals can't be used in conjunction with environment variables.
Thanks!

Thanks @slingshotvfx for updating.

Might be nice to at least mention in the documentation for pydantic-settings that non-string Literals can't be used in conjunction with environment variables.

As it is a pydantic limitation, I prefer not to mention this in the documentation. because there are some other limitation that we don't mention them in the docs


New webserver returns 405 status code always

I've just upgraded to 0.8.0 and see my monitoring failing event when LNbits seems ok, just because it always returns 405 Method Not Allowed. This happens not only in a UI but also on a LNURL routes.
# curl http://localhost:5000 -I
HTTP/1.1 405 Method Not Allowed
date: Wed, 13 Apr 2022 16:48:55 GMT
server: uvicorn
content-length: 31
content-type: application/json

This could also break a lot of other thinks because HTTP status codes are used everywhere.

Why are you trying to just get headers?

Because of monitoring.
Honza Pobořil

20. 4.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

Can we close this?

It depends on you, if it is issue you are going to care about. I does not need it anymore because I moved away from LNbits.


Add parentheses to resolve operator precedence.

clang compiler warns parentheses is required for the conditionals.
According to C++ operator precedence, https://en.cppreference.com/w/cpp/language/operator_precedence && wins against ||.

Thanks!


butane + async runtime

Is it possible to use butane with asynchronous runtime like, for example, tokio?

Not directly, aside from using something like tokio::task::spawn_blocking of course. I'm not opposed to some deeper async integration, but it's not something that I'm expecting to implement soon

Closing this out as it's not something I'm expecting to do any time soon. I'd be open to a pull request for this, although it would likely only be applicable to some backends, since e.g. sqlite is always going to be based on libsqlite which isn't async-aware.

The sqlite backend would still have to expose async methods that do something like spawn_blocking.

@ibraheemdev sure, but the consumer of Butane could just as well make the spawn_blocking calls themselves. That's the same approach taken with Diesel, as in this Actix Web example https://actix.rs/docs/databases/.

Yeah, I was just saying that if you wanted to expose an async API, ideally everything should be usable directly in an async context.

Reactivating as this is under active consideration

I've merged master into the latest async branch , disabling r2d2 feature.
https://github.com/jayvdb/butane/tree/async-no-r2d2-jv-merge-master

@jayvdb remind me what is the intended difference between that branch and async-wip? That also has r2d2 currently disabled.
I've just added async_checklist.md to attempt to track the remaining work on that branch.

I think I removed r2r2 from the features list so that I could use --all-features, and it has a recent master merged into it.

https://github.com/nvksv/maybe-async-cfg/pull/4 has been merged and released, which we can use on the butane branch to reduce the dependencies.

Hopefully better late than never, as of this week, I believe the async-wip branch is finally functional and API-stable (although that's not a guarantee). Remaining tasks are tracked in https://github.com/Electron100/butane/blob/async-wip/async_checklist.md. The biggest outstanding items are to properly prove/ensure soundness in some unsafe code used to bridge between sync and async when necessary and to provide support for async connections pools (deadpool and/or bb8, although this is not blocking as it could also be done out of tree).
If anybody is interested in giving it a whirl, feedback is welcome.

About deadpool (and sorry if this is obviously wrong/impossible :sweat_smile: ) but wouldn't https://crates.io/crates/deadpool-postgres be usable if we can give it a tokio_postgres::Config?
However, I just started checking the code but I can't see any use of that Config object, so maybe not...

Butane doesn't expose its Postgres implementation. From a quick scan of the
deadpool docs, the way to do deadpool integration would be to create a type
like butane::db::deadpool::ConnectionManager which is constructed with a
butane ConnectionSpec and implements   Manager in deadpool::managed - Rust
https://docs.rs/deadpool/latest/deadpool/managed/trait.Manager.html to
create a new connection from that spec on demand. Should be straightforward
but I'm traveling for work this week so unlikely to get to it until next
week at the earliest.
On Mon, Oct 21, 2024 at 7:08 AM Roberto Maurizzi @.***>
wrote:

About deadpool (and sorry if this is obviously wrong/impossible 😅 ) but
wouldn't https://crates.io/crates/deadpool-postgres be usable if we can
give it a tokio_postgres::Config?
However, I just started checking the code but I can't see any use of that
Config object, so maybe not...
—
Reply to this email directly, view it on GitHub
https://github.com/Electron100/butane/issues/13#issuecomment-2426357538,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABKVBR4KWCSQL6GM2I3ZNDZ4TOB3AVCNFSM5BWHR35KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TENBSGYZTKNZVGM4A
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

@Electron100 , thanks for finishing that off. IMO it would be good to push the async branch to master.  Squashed under your id would be my pref as the history is quite messy?  You've done all the hard bits.
Then the remaining TODOs can be done by separate people as normal PRs.
Maybe include a note at the top of the README that master is unstable atm while we finish the async work.

Good point. I've created the PR. I'd like to give it a once over myself over the next few days (and of course other reviews are very welcome) to look for anything egregiously bad/incomplete before merging, but will plan to merge it within the week.

PR is in master now!
I'm waiting to close this issue fully until we've done some of the tracked cleanup.


Poliastro won't install for Python=3.9 (due to llvmlite)

Poliastro does not install under Python 3.9
🐞 Problem

Any attempt to install ends up with an error when trying to install the dependency llvmlite.

Hi @SolSysMiner, thank you your interest in poliastro. At the moment, only Python 3.7 and 3.8 version are supported to install poliastro. This is because Numba (one of the project dependencies) still does not support version 3.9 in its last stable release.
Once https://github.com/poliastro/poliastro/pull/1027 will be merged, this issue should be fixed :+1:

Hi @SolSysMiner, thank you your interest in poliastro. At the moment, only Python 3.7 and 3.8 version are supported to install poliastro. This is because Numba (one of the project dependencies) still does not support version 3.9 in its last stable release.
Once https://github.com/poliastro/poliastro/pull/1027 will be merged, this issue should be fixed :+1:

Thanks a lot for a quick reply. Waiting for the update then.
On Wed, Jan 20, 2021 at 9:18 PM Jorge M.G<EMAIL_ADDRESS>wrote:

Hi @SolSysMiner https://github.com/SolSysMiner, thank you your interest
in poliastro. At the moment, only Python 3.7 and 3.8 version are supported
to install poliastro. This is because Numba (one of the project
dependencies) still does not support version 3.9 in its last stable release.
Once #1027 https://github.com/poliastro/poliastro/pull/1027 will be
merged, this issue should be fixed 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/poliastro/poliastro/issues/1083#issuecomment-763906644,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASRGBDFFXAF5JKQOBETKL7LS243BHANCNFSM4WLGDKLQ
.

Thanks a lot for a quick reply. Waiting for the update then.
On Wed, Jan 20, 2021 at 9:18 PM Jorge M.G<EMAIL_ADDRESS>wrote:

Hi @SolSysMiner https://github.com/SolSysMiner, thank you your interest
in poliastro. At the moment, only Python 3.7 and 3.8 version are supported
to install poliastro. This is because Numba (one of the project
dependencies) still does not support version 3.9 in its last stable release.
Once #1027 https://github.com/poliastro/poliastro/pull/1027 will be
merged, this issue should be fixed 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/poliastro/poliastro/issues/1083#issuecomment-763906644,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASRGBDFFXAF5JKQOBETKL7LS243BHANCNFSM4WLGDKLQ
.

We just merged support for Python 3.9! The next release will work with it without problems :):

Many thanks, I'll check it out.
On Sat, Feb 13, 2021 at 4:08 PM Juan Luis Cano Rodríguez <
<EMAIL_ADDRESS>wrote:

Closed #1083 https://github.com/poliastro/poliastro/issues/1083.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/poliastro/poliastro/issues/1083#event-4327853273, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ASRGBDDPHGFEUILQJEDLRA3S62IWPANCNFSM4WLGDKLQ
.

--
R. de la Fuente Marcos, PhD
AEGORA Research Group
WSO-UV Spanish team
Universidad Complutense de Madrid
phone: +34-91-3944063
<EMAIL_ADDRESS>


Add way of identifying single shot weapons

If weapon has this attached: wpn_fps_upg_i_singlefire

also need a list of default single shot weapons

done via pulling information from game files.


Do not construct dirname on Linux

I'm bundling term-size using esbuild, which handles import.meta.url a bit differently than other bundlers.
Now, in my case, the fileURLToPath call is dead code, because I'm running my bundle on Linux, where term-size doesn't need to invoke any commands. So I was thinking it could be more lazy, and coincidentally fix the issue I'm facing.
This PR moves the __dirname emulation into a helper function that's only called on macOS and Windows.
I've also put the line-splitting in there because I prefer DRY code, but it's a bit esoteric this way. Would you prefer an explicit splitLines (or even a dependency on split-lines)? Or alternatively, I could make a less invasive PR and only extract the __dirname construction into a helper function, for example.
... Or we could find a better way to deal with the lack of __dirname in ESM. 😉

I usually don't like to change my perfectly valid code to please buggy/incomplete bundlers, but since this is a small change, I'll accept it.

I feel your pain. Thanks!


Terraform output is broken in 0.7.4.  Can't pull the IP address information.

System Information
Linux distribution
Ubuntu 22.04
Terraform version
I've rolled back to 1.5.7 to test 0.7.4 against 0.7.0/0.7.1, due to the signing key issues in the older versions with terraform 1.6.0/1.6.1.
Terraform v1.5.7
on linux_amd64

Provider and libvirt versions
provider = 0.7.4
Package: libvirt-daemon
Version: 8.0.0-1ubuntu7.7

Checklist

[ ] Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?

[ ] Make sure you explain why this option is important to you, why it should be important to everyone. Describe your use-case with detail and provide examples where possible.
[ ] If it is a very special case, consider using the XSLT support in the provider to tweak the definition instead of opening an issue
[ ] Maintainers do not have expertise in every libvirt setting, so please, describe the feature and how it is used. Link to the appropriate documentation

[X] Is it a bug or something that does not work as expected? Please make sure you fill the version information below:

Description of Issue/Question
Terraform output is broken in 0.7.4.  Can't pull the IP address information.   Please check following:
│ 1) is the domain running proplerly?
│ 2) has the network interface an IP address?
│ 3) Networking issues on your libvirt setup?
│  4) is DHCP enabled on this Domain's network?
│ 5) if you use bridge network, the domain should have the pkg qemu-agent installed
│ IMPORTANT: This error is not a terraform libvirt-provider error, but an error caused by your KVM/libvirt infrastructure configuration/setup
│  error retrieving interface addresses: error retrieving interface addresses: Guest agent is not responding: QEMU guest agent is not connected
│
│   with module.controlplane.libvirt_domain.virt-machine[0],
│   on .terraform/modules/controlplane/main.tf line 11, in resource "libvirt_domain" "virt-machine":
│   11: resource "libvirt_domain" "virt-machine" {
│
╵
╷
│ Error: couldn't retrieve IP address of domain id: 029a923b-85ad-4595-ae73-9e13b9b4de92. Please check following:
│ 1) is the domain running proplerly?
│ 2) has the network interface an IP address?
│ 3) Networking issues on your libvirt setup?
│  4) is DHCP enabled on this Domain's network?
│ 5) if you use bridge network, the domain should have the pkg qemu-agent installed
│ IMPORTANT: This error is not a terraform libvirt-provider error, but an error caused by your KVM/libvirt infrastructure configuration/setup
│  error retrieving interface addresses: error retrieving interface addresses: Guest agent is not responding: QEMU guest agent is not connected
│
│   with module.worker.libvirt_domain.virt-machine[0],
│   on .terraform/modules/worker/main.tf line 11, in resource "libvirt_domain" "virt-machine":
│   11: resource "libvirt_domain" "virt-machine" {
│
╵
╷
│ Error: couldn't retrieve IP address of domain id: e3f29889-7147-47c8-b211-f8322c0a33bc. Please check following:
│ 1) is the domain running proplerly?
│ 2) has the network interface an IP address?
│ 3) Networking issues on your libvirt setup?
│  4) is DHCP enabled on this Domain's network?
│ 5) if you use bridge network, the domain should have the pkg qemu-agent installed
│ IMPORTANT: This error is not a terraform libvirt-provider error, but an error caused by your KVM/libvirt infrastructure configuration/setup
│  error retrieving interface addresses: error retrieving interface addresses: Guest agent is not responding: QEMU guest agent is not connected
│
│   with module.worker.libvirt_domain.virt-machine[1],
│   on .terraform/modules/worker/main.tf line 11, in resource "libvirt_domain" "virt-machine":
│   11: resource "libvirt_domain" "virt-machine" {
│

The objects appear to be created without issue with 0.7.4, other than the outputs being broken.
 Resources: 11 added, 0 changed, 0 destroyed.

Outputs:

control-planes = {
  "ip_address" = [
    "<IP_ADDRESS>",
  ]
  "name" = [
    "control-plane-01",
  ]
}
worker-nodes = {
  "ip_address" = [
    "<IP_ADDRESS>",
    "<IP_ADDRESS>",
  ]
  "name" = [
    "worker-node-01",
    "worker-node-02",
  ]
}

Setup
The terraform code is from my GitHub repository
# Terraform code to stand up infrastructure to build
# an Open Source Kubernetes cluster
#
# Tom Dean
#<EMAIL_ADDRESS>#
# Last edit 10/11/2023
#
# Based on the Terraform module for KVM/Libvirt Virtual Machine
# https://registry.terraform.io/modules/MonolithProjects/vm/libvirt/1.10.0
# Utilizes the dmacvicar/libvirt Terraform provider

# Let's set some variables!

# Cluster sizing: minimum one of each!
# We can set the number of control plane and worker nodes here

variable "control_plane_nodes" {
  type = number
  default = 1
}

variable "worker_nodes" {
  type = number
  default = 2
}

# Hostname prefixes
# This controls how the hostnames are generated

variable "cp_prefix" {
  type = string
  default = "control-plane-"
}

variable "worker_prefix" {
  type = string
  default = "worker-node-"
}

# Node sizing
# Start with the control planes

variable "cp_cpu" {
  type = number
  default = 2
}

variable "cp_disk" {
  type = number
  default = 25
}

variable "cp_memory" {
  type = number
  default = 8192
}

# On to the worker nodes

variable "worker_cpu" {
  type = number
  default = 2
}

variable "worker_disk" {
  type = number
  default = 25
}

variable "worker_memory" {
  type = number
  default = 8192
}

# Disk Pool to use
# Control Plane

variable "cp_diskpool" {
  type = string
  default = "default"
}

# Worker Nodes

variable "worker_diskpool" {
  type = string
  default = "default"
}

# User / Key information
# Same across all nodes, customize if you wish

variable "privateuser" {
  type = string
  default = "ubuntu"
}

variable "privatekey" {
  type = string
  default = "~/.ssh/id_ed25519"
}

variable "pubkey" {
  type = string
  default = "~/.ssh/id_ed25519.pub"
}

# Other node configuration

variable "timezone" {
  type = string
  default = "CST"
}

variable "osimg" {
  type = string
  default = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
}

# Set our Terraform provider here
# We're going to use libvirt on our local machine

terraform {
  required_providers {
    libvirt = {
      source = "dmacvicar/libvirt"
    }
  }
}

provider "libvirt" {
  uri = "qemu:///system"
}

# Module for building our control plane nodes

module "controlplane" {
  source  = "MonolithProjects/vm/libvirt"
  version = "1.10.0"

  vm_hostname_prefix = var.cp_prefix
  vm_count    = var.control_plane_nodes
  memory      = var.cp_memory
  vcpu        = var.cp_cpu
  pool        = var.cp_diskpool
  system_volume = var.cp_disk
  dhcp        = true
  ssh_admin   = var.privateuser
  ssh_private_key = var.privatekey
  ssh_keys    = [
    file(var.pubkey),
    ]
  time_zone   = var.timezone
  os_img_url  = var.osimg
}

# Module for building our worker nodes

module "worker" {
  source  = "MonolithProjects/vm/libvirt"
  version = "1.10.0"

  vm_hostname_prefix = var.worker_prefix
  vm_count    = var.worker_nodes
  memory      = var.worker_memory
  vcpu        = var.worker_cpu
  pool        = var.worker_diskpool
  system_volume = var.worker_disk
  dhcp        = true
  ssh_admin   = var.privateuser
  ssh_private_key = var.privatekey
  ssh_keys    = [
    file(var.pubkey),
    ]
  time_zone   = var.timezone
  os_img_url  = var.osimg
}

# Outputs

output "control-planes" {
  value = module.controlplane
}

output "worker-nodes" {
  value = module.worker
}

Steps to Reproduce Issue
terraform init
terraform plan -out cka-plan.plan
terraform apply cka-plan.plan

Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration?
No
Have you tried to reproduce the issue without them enabled?
No, the issue goes away with older provider versions on the same system.

maybe, is this because of this timeouts change?
https://github.com/dmacvicar/terraform-provider-libvirt/commit/01e507d95b8b49fb6d94b8ecde7e34ee4cb1c567#diff-ec1bf6b27daed6653f7d487358b1b3b311e60427f79397bc63e6c74eecc3667eL70-R72

Thanks for the update!

Hello,
Having the same issue with my bridge interface (no problem with the virtual bridge created by libvirt). Does this mean we need to wait for a 0.7.5 or can we just build it from source?

You can work around this by setting the version of the plugin to 0.7.1.

You can work around this by setting the version of the plugin to 0.7.1.

Superb! That worked a treat!
I'll stick with this version until this is fixed in later versions.

Setting the version to 0.7.1  appears to fix the immediate problem with QEMU agent communication since Terraform isn't throwing an error now when qemu_agent = true but it's still unable to pull the IP for me. Appears to be due to the issue described in #1047 which is potentially fixed in the PR #1048.
Performing a terraform destroy does produce valid addresses in the output so the communication is there but looks like wait_for_lease = true isn't actually waiting during deployment.


Request Clarification on the Definition of the term Artifact

During the discussion of https://github.com/notaryproject/notation/discussions/767, we found that it is not clear how the term Artifact is defined.
Currently, there are two interpretations of Artifact:

Artifact = Blob Content + Media Type: @shizhMSFT thinks artifacts of two types are different even if their blob contents are the same.  For example, a JSON file can be a valid SBOM file, a valid config, and a valid manifest at the same time. If this JSON file has 3 copies with different media types of SBOM, config, and manifest, they are 3 different artifacts.
Artifact = Blob Content: @priteshbandi thinks artifacts are the same as long as their blob contents are the same. In the above JSON file example, they are the same artifacts instead of 3 different artifacts.

Why is the definition of the term Artifact important?
It is because the goal of Notary Project and its implementation notation is to sign and verify Artifact securely.
Since Blob Content can be implied by blob digest with negligible security differences when a cryptographic hash is used, we need to define the core of notation whether it is to sign and verify digest + mediaType or digest only.

Is this question in the context of the dist-spec 1.1.0-rc3?

Is this question in the context of the dist-spec 1.1.0-rc3?

This issue is a general question regardless of image-spec or distribution-spec.

I am with @shizhMSFT on this one. The omission of media type may expose the content to attacks similar to how files are exploited.

How an artifact is constructed should be left to the artifact author. Whether an artifact uses one more more files, or one more more blobs is really an implementation detail.
A container image is an artifact. It has many files within each blob (aka layer). It has many blobs, that help with file size and transmission optimizations. It has another "file" called a config object. The entire graph of objects is "an artifact".
A single file, like an SBOM can also be an artifact.
When notation is asked to "sign an artifact", it's signing the contents of a manifest with an artifactType of x/y/z. If it uses a single blob, or multiple blobs, does it matter?

From the perspective of proving integrity and authenticity, we are not signing the artifact itself, but a representation (the payload to sign) that uniquely identifies the artifact. And that can vary based on the use case.
For OCI artifacts, because descriptors are the supported mechanism to uniquely reference artifacts, the payload that we sign contain a descriptor. With the descriptor we reliably get the digest, size and media type, as they are supported by OCI specs.
For signing files on disk, we can get digest and size reliably but not media type. A straw man example would be if we wanted to sign web hosted content and the URL or some unique ID of the artifact was important to determine uniqueness, the digest and size along with URL/ID would be included in the payload to be signed.
We should not be limited by the payload we defined for OCI artifact signing use cases, we can extend from it or define new payloads as required.

The omission of media type may expose the content to attacks similar to how files are exploited.

How? Notation should not try to interpret/decode the content being singed because 1) notation is not meant to validate mediatype 2) it's not scalable, which means notation cannot perform validation on the type of content being signed/verified. Therefore for notation media-type is similar to any signed attribute which can be passed with notation sign/verify -m key=value flag.


Get github pages to work

The website works, but

so like you probably messed something up in the settings or something

https://stackoverflow.com/questions/68497926/how-can-i-fix-failing-to-load-resource-status-404-github-pages

It's showing ```html
404
There isn't a GitHub Pages site here.

    If you're trying to publish one,
    read the full documentation
    to learn how to set up GitHub Pages
    for your repository, organization, or user account.

in sources

This probably has something to do with it

This might solve it @lifeng-yin

It's probably because https://lifeng-yin.github.io doesn't exist

probably lol

resolved in #22


Build is breaking

as of a pull right now.
../../../valyala/gorpc/client.go:553: undefined: atomic.Value
../../../valyala/gorpc/server.go:187: undefined: atomic.Value
../../../valyala/gorpc/server.go:240: undefined: atomic.Value

Gorpc requires at least go1.4, since atomic.Value has been appeared in this release. See Minor changes to the library in https://golang.org/doc/go1.4 .
Though it is possible to use something else instead of atomic.Value in order to gain backwards compatibility with older go releases, but I doubt it is good time investment :)
BTW, why you cannot migrate to go1.5 or at least to go1.4?

Closing this issue, since gorpc won't be backported to go versions older than 1.4


Handle the case where an initializer has a composition of types

Work on https://github.com/fdiaz/SwiftInspector/issues/20
This fixes an edge case of when an initializer argument contains a composition of elements.

Codecov Report

Merging #21 into master will decrease coverage by 0.11%.
The diff coverage is 94.28%.

@@            Coverage Diff             @@
##           master      #21      +/-   ##
==========================================
- Coverage   98.29%   98.17%   -0.12%
==========================================
  Files          28       28
  Lines        1232     1263      +31
==========================================
+ Hits         1211     1240      +29
- Misses         21       23       +2

Impacted Files
Coverage Δ

...urces/SwiftInspectorCore/InitializerAnalyzer.swift
94.25% <88.88%> (-1.53%)
:arrow_down:

...es/SwiftInspectorCommands/InitializerCommand.swift
90.47% <100.00%> (ø)

...tInspectorCore/Tests/InitializerAnalyzerSpec.swift
98.95% <100.00%> (+0.19%)
:arrow_up:

Continue to review full report at Codecov.

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


Update to cds-services 2.4.0

Should we also adopt the new systemUserProvider() method with this change here?
https://github.com/SAP-samples/cloud-cap-samples-java/blob/4635ca8f1b9474d1891cc82857d9d974e4172542/srv/src/main/java/my/bookshop/handlers/AdminServiceAuditHandler.java#L91

Should we also adopt the new systemUserProvider() method with this change here?
https://github.com/SAP-samples/cloud-cap-samples-java/blob/4635ca8f1b9474d1891cc82857d9d974e4172542/srv/src/main/java/my/bookshop/handlers/AdminServiceAuditHandler.java#L91

Makes perfectly sense


Feature set 01

All Submissions:

[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] I have updated the documentation accordingly.
[x] Where applicable I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] My code follows the code style of this project.
[x] I ran lint checks locally prior to submission.
[] Have you checked to ensure there aren't other open PRs for the same update/change?

What about the current behavior has changed?

Support querying PolicySets and PolicyChecks
Returns detailed PolicyCheck output for a given TFC run
run list now supports listing ALL runs for that workspace

Does this introduce a change to go.mod, go.sum or vendor/?

[x] Yes
[ ] No

Retrieving sentinel body for a policy check requires v1.42.0 of hashicorp/go-tfe
Does this introduce a breaking change?

[ ] Yes
[x] No

Any relevant logs, error output, etc?
see README.md and attached logs
policy_check_out.log
policy_set_list.log
tfectl run list --workspace-id ws-nfWASMsu4bMxPp --list-all --status applied --query 'length'
[
  860
]

Other information

CodeQL false positive - https://github.com/github/codeql/issues/14159


Added code to functions in household.py

[x] Get c1
[x] Get c2
[x] Write form of marginal utility

@joel-becker Please revert those changes to the README.md file. Thank you so much.

@rickecon  This is a hill we're prepared to die on. Group 2 micdrop out

@joel-becker And you forgot to submit get_c2(). Please add.

In line 23 of household.py, unpack n1 inside of the function rather than passing it in separately from nvec. The code inside the function should be something like:
n1, n2 = nvec

c2 is definitely there. In line 43, split the pieces out. For example
r = FirmsMC.get_r(...)
w = FirmsMC.get_w(...)


feat(toast): introduce Toast component

Closes: #2560
Closes: #2053
Closes: https://github.com/nextui-org/nextui/discussions/314
ref: #2134

📝 Description

⛳ Current behavior (updates)

🚀 New behavior

💣 Is this a breaking change (Yes/No):

📝 Additional Information

@coderabbitai pause