Segmentation fault

Fedora 31:
sudo snap install qvge
next open in GUI file with specified contents. Result: segfault.
digraph systemd {
	"ideco-app-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-alias-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-alias-backend.service"->"ideco-etcd-permanent.service" [color="green"];
	"ideco-agent-server.service"->"ideco-network-backend.service" [color="green"];
	"ideco-monitor-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-vpn-servers-backend.service"->"ideco-etcd-permanent.service" [color="green"];
	"ideco-vpn-servers-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-vpn-servers-backend.service"->"ideco-gen-ca-cert.service" [color="green"];
	"ideco-backup-backend.service"->"network.target" [color="green"];
	"ideco-reverse-backend.service"->"ideco-gen-ca-cert.service" [color="green"];
	"ideco-reverse-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-user-backend.service"->"ideco-etcd-permanent.service" [color="green"];
	"ideco-user-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-web-backend.service"->"ideco-gen-ca-cert.service" [color="green"];
	"ideco-web-backend.service"->"ideco-ipset.service" [color="green"];
	"ideco-web-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-local-menu.service"->"ideco-network-backend.service" [color="green"];
	"ideco-local-menu.service"->"ideco-system-backend.service" [color="green"];
	"ideco-av-backend.service"->"network.target" [color="green"];
	"ideco-dns-backend.service"->"ideco-etcd-permanent.service" [color="green"];
	"ideco-dns-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-dns-backend.service"->"ideco-firewall.service" [color="green"];
	"ideco-license-backend.service"->"network.target" [color="green"];
	"ideco-license-backend.service"->"ideco-cloud-init.service" [color="green"];
	"ideco-firewall-backend.service"->"ideco-etcd-permanent.service" [color="green"];
	"ideco-firewall-backend.service"->"ideco-firewall.service" [color="green"];
	"ideco-firewall-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-firewall-backend.service"->"ideco-ipset.service" [color="green"];
	"ideco-proxy-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-proxy-backend.service"->"ideco-gen-ca-cert.service" [color="green"];
	"ideco-proxy-backend.service"->"ideco-etcd-permanent.service" [color="green"];
	"ideco-proxy-backend.service"->"ideco-ipset.service" [color="green"];
	"ideco-proxy-backend.service"->"ideco-lo-kludge.service" [color="green"];
	"ideco-ipsec-backend.service"->"ideco-etcd-permanent.service" [color="green"];
	"ideco-ipsec-backend.service"->"ideco-gen-ca-cert.service" [color="green"];
	"ideco-dhcp-server-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-dhcp-server-backend.service"->"ideco-etcd-permanent.service" [color="green"];
	"ideco-dhcp-server-backend.service"->"ideco-network-backend.service" [color="green"];
	"ideco-sysupdate-backend.service"->"ideco-etcd-permanent.service" [color="green"];
	"ideco-content-filter-backend.service"->"ideco-etcd-permanent.service" [color="green"];
	"ideco-content-filter-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-content-filter-backend.service"->"ideco-firewall.service" [color="green"];
	"ideco-quotas-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-quotas-backend.service"->"ideco-ipset.service" [color="green"];
	"ideco-quotas-backend.service"->"ideco-etcd-permanent.service" [color="green"];
	"ideco-netscan-backend.service"->"ideco-user-backend.service" [color="green"];
	"ideco-netscan-backend.service"->"ideco-ipset.service" [color="green"];
	"ideco-report-backend.service"->"network.target" [color="green"];
	"ideco-system-backend.service"->"ideco-firewall.service" [color="green"];
	"ideco-system-backend.service"->"ideco-cloud-init.service" [color="green"];
	"ideco-system-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-shaper-backend.service"->"ideco-etcd-permanent.service" [color="green"];
	"ideco-shaper-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-suricata-backend.service"->"network.target" [color="green"];
	"ideco-ad-backend.service"->"ideco-user-backend.service" [color="green"];
	"ideco-network-backend.service"->"ideco-etcd-permanent.service" [color="green"];
	"ideco-network-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-network-backend.service"->"ideco-cloud-init.service" [color="green"];
	"ideco-network-backend.service"->"systemd-udev-settle.service" [color="green"];
	"ideco-network-backend.service"->"ideco-ipset.service" [color="green"];
	"ideco-auth-backend.service"->"ideco-etcd-runtime.service" [color="green"];
	"ideco-auth-backend.service"->"ideco-ipset.service" [color="green"];
}

I cannot reproduce this with 0.6 branch.
The file is loaded normally except of [color="green"] component.
Which sortware version do you use?

done, should work for 0.6 (old read_proc replaced by qprocessinfo; QVGE updated)


add @unit to ?

From<EMAIL_ADDRESS>on September 18, 2012 15:20:31
Currently, it's possible to specify the coordinate space for <surface>, but no way to say what units this space is measured in.
Original issue: http://code.google.com/p/music-encoding/issues/detail?id=113

From andrew.hankinson on October 17, 2012 07:52:52
Labels: -Milestone-Release2013 Milestone-ReleaseNext

From<EMAIL_ADDRESS>on June 12, 2014 14:18:10
Labels: -Priority-Medium Priority-Low

The dimensions of the members of att.coordinated (surface, symbolDef, and zone) are abstract; that is, they are agnostic about their real-life dimensions.  Therefore, no unit attribute is necessary.


feat: support multi values request headers

support multi values request headers.
Fixes wiremock::Request conversion from hyper::Request was not converting comma separated header values into HeaderValues. Introduced 'headers' to create an exact header matcher for multi values headers.

Should be ready to merge :)

Thank you @beltram! 😁


Fixed #30437 -- Clarified that urlpatterns can be a sequence.

https://code.djangoproject.com/ticket/30437/

@joncasdam Thanks for this patch :+1:


Docs for the AirGap

One thing that makes me smile is when open source projects provide their documentation in a format that makes it easy to carry into the airgap and re-present where there is no Internet. Often this is via a Docker container that provides port 80 so I can drop this container into a simple k8s deployment. Is creating that something you'd consider?

We have some automation we need to do to sync with the witness repo.  I certainly think releasing a documentation container could be in scope for that work.


Fix pretty-printing bug concerning unit type

Should fix https://github.com/elm-lang/elm-compiler/issues/1072.

Ahh, very sneaky! Great find!


Update subscription-expiration-and-deactivation.md

Before this fix https://support.microsoft.com/en-us/topic/kb4014798-update-reduces-the-execution-frequency-of-the-sp-mssubscription-cleanup-stored-procedure-in-sql-server-82f6de06-6ce0-3620-bc79-e954df38a536
Expired Subscription cleanup was done by the Distribution cleanup Job. But after the fix, Expired cleanup is a new Job and this deactivates subscription.

@taiyebzakir : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#label:"aq-pr-triaged"

@MashaMSFT : Thanks for your contribution! The author(s) have been notified to review your proposed change.

thanks @taiyebzakir ! i modified the text a bit to mention the old job name in case any one is doesn't have the fix :) #sign-off


Handling PagerDuty rate limits

(This issue was originally filed by @cschotke at https://github.com/elastic/logstash/issues/1613)

We are using the PagerDuty output to generate alarms from log files. This works fine most of the time but sometimes we run into issues because of PD's rate limit.  Is anyone aware of a way to suppress or limit the outgoing messages locally so we don't run into that rate limit?
Thanks.

Psst: there's a :moneybag: $400 :moneybag: bounty from PagerDuty for anyone who solves this issue: https://www.bountysource.com/issues/3615044-handling-pagerduty-rate-limits. :smile:


Development related to ESA-614

Development related to ESA-614

@deepakmulamalla Is this PR still under Review? I see one more PR that has the same file changes?

@deepakmulamalla Is this PR still under Review? I see one more PR that has the same file changes?

That PR is created to our new Sprint branch.


release_template: also tag API module

Releasing multiple modules from the same repo, requires tags for each. Add a tag for the api/ modules in the release process.

lgtm!
aside, should we remove the -s? Is someone using that, should we start using it?

I think we should use it if we can, so let's keep it.


During provisioning, make unnecessary packages optional under a switch

What does this PR do?
The openshift-prep role installs packages that are not necessary for the deployment, such as bash-completionn and vim-enhanced.
These are now optional under install_debug_packages switch, which is set to false by default.
How should this be manually tested?

Run provisioning with both manage_packages and install_debug_packages set to true.

Result: all packages will be installed and updated, even the debug ones.

Run provisioning with manage_packages set to true, install_debug_packages set to false.

Result: only required packages will be installed and updated.

Is there a relevant Issue open for this?
--
Who would you like to review this?
cc: @tomassedovic @bogdando PTAL

Thanks! Looks good to me, I'll test it later & merge.
One question: how did you decide which packages are required and which aren't? Did you test it or just pick out the obvious ones?

Without having much of a deeper understanding of what happens during provisioning, these are the obvious choices. The rest looks like it could be used for configuring networking or downloading additional packages/images.

Yep, no worries. Just wondered. We can take a deeper look at this later (like, I'm guessing that more of these are not really necessary but that needs to be tested)

Triggered a "CI run" here:
https://travis-ci.org/tomassedovic/openshift-ansible-contrib/jobs/255273651
Will merge once it passes.

Oops, the "CI" didn't actually run the end to end test. How embarrassing!
Take two: https://travis-ci.org/tomassedovic/openshift-ansible-contrib/jobs/255280243


Fixed an exception when trying to load an assembly that has already been loaded from a different location.

Previously, all assemblies were loaded into the current domain. If different Paket groups have the same assembly, when you try to load the assembly into the current domain the error occurs.
Now each group has its own domain, which the group loads assemblies into. Current domain uses only the value of property "AssemblyName" of  an assembly.

May be will be fixed https://github.com/fsprojects/Paket/issues/1783

can you please rebase this? thanks

alos please take a look at #1784

I don't think we need this any longer as we are now using Mono.Cecil for this (and therefore don't actually load any assemblies anymore). That is also the reason for the merge conflicts. A test-case might clarify this.

So let's close this. @vik-borisov please send new pr if something is still wrong. Thanks for your work.
(it's awesome that 3 people cared enough to fix this bug)

Ironically I didn't even noticed there was a bug there. It's just that you cannot load assemblies like this in dotnetcore and I preferred the '#ifdef' free solution with mono cecil ;)


Move docs, meta, vaxine repos in

As discussed move meta, docs, vaxine into this repo without history

Maybe extract the design folder from vaxine to the top level, plus is it worth deduping the Authors and License files?

@thruflo sure, could you be a bit more specific how you want me to handle license/author files?
Move them to meta for now perhaps?

@thruflo sure, could you be a bit more specific how you want me to handle license/author files? Move them to meta for now perhaps?

I think all under meta can go to root (except for readme, which can disappear), and AFAIU license files are all copies and one at the root will do.

@thruflo @balegas:
$ md5sum LICENSE
2ee41112a44fe7014dce33e26468ba93  LICENSE
$ md5sum apps/vaxine/LICENSE
86d3f3a95c324c9479bd8986968f4327  apps/vaxine/LICENSE
$ md5sum docs/LICENSE
86d3f3a95c324c9479bd8986968f4327  docs/LICENSE

meta/CLA.md is different as well.


Feature for Dashboard: Sort monitors manually or alphabetically/tags

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

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

🏷 Feature Request Type
UI Feature
🔖 Feature description
Sorting features for dashboard:

Sort by name
Sort/Group by tags
Sort by uptime

✔ Solution
Create sorting/grouping feature
❓ Alternatives
No response
📝 Additional Context
No response

I'd also like to request the ability to sort or filter by status (i.e. be able to see down monitors only).

i would love to be able to sort alphabetically by default and possibly automatically move services that are in outage to the top

It'd also be nice to be able to sort the notifications by alphabetical, type, etc.

Seems like we've got a lot of tickets open referencing the same features. @Appoxo  - is there anything in this ticket that's not covered in #1585 where there's already a pull request? If not, can you close this?

Seems like we've got a lot of tickets open referencing the same features. @Appoxo  - is there anything in this ticket that's not covered in #1585 where there's already a pull request? If not, can you close this?

Yes and no.
Covered:

Sort by  uptime

Not covered:

sort by Name
Sort by tag

If these two featureascould be added to #1585 as well I would be fine if it is closed. Please correct me if I didn't read it thourough enough.

Would it be possible to add the last status change time to a monitor as well?  The history bars on my status pages only go back 36 minutes so there's no quick way to know how long ago it might have gone down/up.

Would love to see this option too.

@mateocrx Nobody has provided a PR for this.
Our contribution guide is here: https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md
If you/somebody else wants to tackle this, please use the query to store the sorting state.


[v4] media_library config not inherited from global

If I set a global media_libary config, e. g.
media_library: {
  folder_support: true,
}

this config is not being inherited by the widgets, so I have to set it manually in every widget like image, file or markdown.

This is fixed in v4.0.0-beta.14

This is fixed in v4.0.0-beta.15


Invariant Violation: getNodeFromInstance: Invalid argument.

I'm following the example at https://facebook.github.io/jest/docs/tutorial-react.html#content in order to use snapshots with jest.
Code:
...
  handleSizeChange ({width}) {
    if(this.state.changeFlag){
      this.setState({segmentsSize: this.state.segmentsSize += width }, this.renderNav);
    }
  }

  renderSegments() {
    const { segments } = this.props.trip;
    return segments.map((segment, i) => {
      const Segment = components[segment.typeDescription];
      return (
        <div key={`segment_${i}`}>
          <Measure onMeasure={this.handleSizeChange} >
            <Segment segment={segment} />
          </Measure>
        </div>
      );
    });
  }
...
render() {
  return(
    {
      his.renderNav()
    }
 )
}
export default FeaturedTrip;

Unit test:

describe('<FeaturedTrip />', () => {
  it('should not faild', () => {
    const component = renderer.create(
      <FeaturedTrip trip={ timeLineTrip } windowSize={ 1920 }/>
    );
    let tree = component.toJSON();
    console.log(tree);
  });
});

Error code:

    Invariant Violation: getNodeFromInstance: Invalid argument.

      at invariant (node_modules/fbjs/lib/invariant.js:44:15)
      at Object.getNodeFromInstance (node_modules/react-dom/lib/ReactDOMComponentTree.js:162:77)
      at Object.findDOMNode (node_modules/react-dom/lib/findDOMNode.js:49:41)
      at Measure._setDOMNode (node_modules/react-measure/lib/Measure.js:132:39)
      at Measure.componentDidMount (node_modules/react-measure/lib/Measure.js:99:12)
      at node_modules/react-test-renderer/lib/ReactCompositeComponent.js:265:25
      at measureLifeCyclePerf (node_modules/react-test-renderer/lib/ReactCompositeComponent.js:75:12)
      at node_modules/react-test-renderer/lib/ReactCompositeComponent.js:264:11
      at CallbackQueue.notifyAll (node_modules/react-test-renderer/lib/CallbackQueue.js:76:22)
      at ReactTestReconcileTransaction.close (node_modules/react-test-renderer/lib/ReactTestReconcileTransaction.js:36:26)
      at ReactTestReconcileTransaction.closeAll (node_modules/react-test-renderer/lib/Transaction.js:206:25)
      at ReactTestReconcileTransaction.perform (node_modules/react-test-renderer/lib/Transaction.js:153:16)
      at batchedMountComponentIntoNode (node_modules/react-test-renderer/lib/ReactTestMount.js:69:27)
      at ReactDefaultBatchingStrategyTransaction.perform (node_modules/react-test-renderer/lib/Transaction.js:140:20)
      at Object.batchedUpdates (node_modules/react-test-renderer/lib/ReactDefaultBatchingStrategy.js:62:26)
      at Object.batchedUpdates (node_modules/react-test-renderer/lib/ReactUpdates.js:97:27)
      at Object.render (node_modules/react-test-renderer/lib/ReactTestMount.js:125:18)
      at Object.<anonymous> (tests/components/featuredTrip.test.js:12:75)

Sorry, unfortunately I do not have any experience with Jest 😕 I noticed a typo in your render method his.renderNav(), maybe it's that? Please let me know if you find a solution, I'll try and look at this when I get a chance.

this.renderNav() it's typo but it's not problem, i get an error just if run unit test.
I use react-test-renderer for rendering components in test mode. I'll let you know if find a solution. Thanks

I've run into the same problem when writing a Jest snapshot for a component I've built that uses Measure. Also Measure fails to capture results when using Enzyme's mount() to test the component.

@postrad any ideas on how we can make Jest work with the Measure component?

I have the same issue...

https://github.com/facebook/react/issues/8324
seems the same issue, should use refs but not findDOMNode()

@souporserious can you help fix this ?

I faced the same issue. I created this PR, but I'm not really sure if this is the best approach.
https://github.com/souporserious/react-measure/pull/41
Could you review it, please?

Also something I'm experiencing, #41 looks promising.  Any update on if that could be accepted?

Sorry just saw this, I'm trying to determine the best way to handle this and get rid of findDOMNode without having to add an additional node. One thing I was thinking was generating a data tag or something that we can then query and send to the ResizeObserver.

Alright, I think I finally have an idea how we can make this work. Pretty simple addition, you will just be required to pass a getRef prop down to your component so we can obtain a proper DOM node. This will only work with a child function so I will probably deprecate the original wrapper.

im facing the same issue.

Jest testing should finally work! Please see the latest release. I did a full rewrite, there is no more findDOMNode 🎉  you just need to make sure to pass the measureRef function down to the component you want measured.


Problem with AttnGAN training

Thanks for this excellent work! I have some problem with AttnGAN training. I am not sure whether i have a correct thought of the following code.
/code/trainer.py
line 246 ~ 271
imgs, captions, cap_lens, class_ids, keys = prepare_data(data)
errD = discriminator_loss(netsD[i], imgs[i], fake_imgs[i],
                                              sent_emb, real_labels, fake_labels)

I think netsD[i] is the ith discriminator used in AttnGAN. In paper, there are three discriminators. I also think that imgs are corresponding to captions and have a size equal to batch size. So, how can parameter i represents both the netsD index and img index.

sorry, my fault


java() and javac()

What do you think if we add javac() and java() methods to Jhome? Then, instead of new Jhome().path("bin/javac") we will be able to write only new Jhome().javac().

@volodya-lombrozo perfect idea! Do you have time to implement this?

@yegor256 Yes, just assign it to me

@volodya-lombrozo the puzzle #10 is still not solved.

@rultor release, tag is 0.0.3

@rultor release, tag is 0.0.3

@yegor256 OK, I will release it now. Please check the progress here

@rultor release, tag is 0.0.3

@yegor256 Done! FYI, the full log is here (took me 5min)

@volodya-lombrozo the only puzzle #10 is solved here.


How to modify the code

I'm trying to modify the DistanceFromEdge function in itkTileMergeImageFilter.hxx. After finishing the modifications, how to update the corresponding function in the Python package? I think I should use setup.py to  rebuild the package, but I'm not sure of the specific steps.

Have you tried these instructions? Of course, you should skip "Upload to PyPI" step.

Thanks!


Release 4.0.0

Codecov Report

Merging #77 into master will increase coverage by 0.56%.
The diff coverage is 89.11%.

@@             Coverage Diff              @@
##             master      #77      +/-   ##
============================================
+ Coverage     83.18%   83.74%   +0.56%
+ Complexity     1858     1855       -3
============================================
  Files            87       93       +6
  Lines          4312     4227      -85
  Branches        471      451      -20
============================================
- Hits           3587     3540      -47
+ Misses          477      451      -26
+ Partials        248      236      -12

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/jsonvalues/MutableJsons.java
80.68% <100%> (-0.87%)
5 <4> (-39)

src/main/java/jsonvalues/ImmutableSeq.java
100% <100%> (ø)
1 <1> (?)

src/main/java/jsonvalues/MySeq.java
100% <100%> (ø)
1 <1> (?)

src/main/java/jsonvalues/MyMap.java
100% <100%> (ø)
1 <1> (?)

src/main/java/jsonvalues/Jsons.java
100% <100%> (ø)
1 <1> (ø)
:arrow_down:

src/main/java/jsonvalues/MutableSeq.java
100% <100%> (ø)
1 <1> (?)

src/main/java/jsonvalues/ImmutableMap.java
100% <100%> (ø)
1 <1> (?)

src/main/java/jsonvalues/MutableMap.java
100% <100%> (ø)
1 <1> (?)

src/main/java/jsonvalues/ImmutableJsons.java
77.51% <70.96%> (-1.21%)
3 <2> (-57)

src/main/java/jsonvalues/ScalaImmutableVector.java
90.81% <87.71%> (-4.31%)
56 <26> (+26)

... and 11 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 8d658f8...84da6fa. Read the comment docs.


[zsh] Howto guide fzf hosts completion for a specific command

Category

[x] fzf binary
[x] Completion
[x] Vim

OS

[x] Linux

Shell

[x] zsh

Currently we have ssh ** and telnet **, how can I trigger fzf for hosts completion for other command, I usually write some scripts that need to trigger hosts completion.

Unfortunately, fuzzy completion API is still rough around the edges. You'll have to read the source code to see how it's done. Also take a look at https://github.com/junegunn/fzf/wiki/Examples-(completion)
Anyway, one easy way is to define _fzf_complete_COMMAND function that uses the existing ones.
_fzf_complete_scp() {
  _fzf_complete_ssh "$@"
}


[Sema] Extension of favored type to unary minus and literals

Some small extensions to the favored type implementation for arithmetic expressions to make the type checker decide on happy paths sooner, if those work out. This is motivated by a particularly slow example:
let result: Double = -(1 + 1) + -(1 + 1) - 1

First, if there are no favored types found by the linked expr analyzer, use the contextual type.
Second, allow unary minus to pass its favored type down to its argument, as binary arithmetic ops do.
Third, if the assigned type of a literal is its favored type, treat that as good and don't add SK_NonDefaultLiteral to the score.
The result is being able to stop looking for additional solutions if the favored path works. For this example expression, before: Total number of scopes explored: 905225, after: Total number of scopes explored: 337057.
There is one test diagnosis that changes because of the scoring, and it changes to look like the other diagnoses for similar uses.

@swift-ci Please smoke benchmark.

I will take a look but we are trying not to touch favoring and optimizations that are happening in CSGen because any changes to them tend to regress other cases…

That's cool, I understand and thanks for taking a look!
I think this is significant for arithmetic with non-Int literals, but it's not a lot of code or time investment on my part. Feel free to aim me at things that are more likely to be accepted, like with #67791.

@swift-ci Please smoke test compiler performance.

@swift-ci Please smoke test.

Missed line number changes on (unrelated) fixits caused by adding a line to the test file.
@swift-ci Please smoke test.

@swift-ci Please smoke test compiler performance.

@swift-ci Please smoke test.

Huh. Failed but no problems reported.
@swift-ci Please smoke test.

@swift-ci Please smoke test.

@swift-ci Please smoke test.

@swift-ci Please smoke test.

@swift-ci Please smoke test.

@swift-ci Please smoke test compiler performance

The performance test failed (if I'm reading the output right) because it failed to git checkout "Kingfisher". Looking at the build artifacts, the projects that did complete have no differences old vs new for the relevant things like Sema.NumConstraintScopes (which makes sense because anyone who is experienced with Swift avoids the sort of expressions with multiple literals that this change effects).
The example expression, on the other hand -Xfrontend -print-stats:
OLD:
    637089 Constraint solver largest system - # of disjunction terms explored
     81360 Constraint solver largest system - # of disjunctions explored
    936230 Constraint solver largest system - # of constraints simplified
    905225 Constraint solver largest system - # of solution states explored
    227637 Constraint solver largest system - # of type variable bindings attempted
    202139 Constraint solver largest system - # of type variables bound
   1055129 Constraint solver largest system - # of constraints not simplified

NEW:
    212007 Constraint solver largest system - # of disjunction terms explored
     27932 Constraint solver largest system - # of disjunctions explored
    349748 Constraint solver largest system - # of constraints simplified
    337057 Constraint solver largest system - # of solution states explored
    108327 Constraint solver largest system - # of type variable bindings attempted
     97669 Constraint solver largest system - # of type variables bound
    460286 Constraint solver largest system - # of constraints not simplified

-Xfrontend -debug-time-expression-type-checking (compiler built with -R --debug-swift so Sema not Release):
OLD: 114287.30ms
NEW: 43049.30ms

would prevent heterogeneous operator overloads from being attempted

That is not what is happening here. There is zero change to the binary operator type variable tying together bits which were in the code before. (If you examined this PR originally it could do that, but that was accidental, and is no longer the case. Sorry about that!)
This does favor the contextual type, but favoring only makes that type be tried first in overload sets. The impactful change is that if a literal is determined to be the same type as the favored type, it doesn't get the SK_NonDefaultLiteral score. This makes it so myFloat + 1 (1 is a Float, not an Int) gets a zero score. Along with contextual favoring it makes let _: Double = 1 (1 is a Double, not an Int) also get a zero score. It is incremental in the solver, because it only changes scoring in the solver.
This is so that when a solution is found, we can stop. The current behavior of combinatorial explosion of literal types attempted is happening because the types which actually work aren't the default literal type.

This is so that when a solution is found, we can stop.

This is the main problem with favoring and what I referring to with heterogenous operators as well, we don’t want to always stop checking when the type matches the contextual exactly.


fix: start listing parcels near the user

This is not a huge improvement -- but it's a starter on prioritizing the download of content that lives closer to the user.

Thanks for the input! please review this new version.


BUG: Cannot resolve production buildings at the end of summer and finish game

Thanks a lot for creating this app, I and my friends have been enjoying it very much.
In our game there seems to be a bug, my friend cannot proceed. He is just stuck on activating his production buildings to go into autumn. When using the peddler, it won't let him select his resources. Please see the screenshot below:

The game spectator id is: https://everdell.vercel.app/game/9GVYqkviwhYBSXoaYeXafp
Is there any way you can give him a wood and a resin, or flag something so it will let him choose his resources and we can continue the game? thanks!!

Sorry about that! I found the issue here and this should be fixed shortly once the fix deploys

This should be fixed now!


Escape regex in render function

Escape regex characters in the value passed into in the render function. Previously failed in my case when the value had a single parenthesis in the string.

Nice spot, thank's for your contribution.
I've just added a test for some "regexish" values to your PR.

@avallete Thanks for merging this so quick. Could you also publish a new npm release?

Yep it's done.


chore(project): initialize fork

Welcome to Codecov :tada:
Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


error

Expected behavior
Actual behavior
Information about the Issue
Steps to reproduce the behavior

...
...

Can you please provide the info the issue template suggests you to give? Otherwise your problem can't be solved.

No information provided - Closing


Custom image support

Changes proposed in this PR
Add image field to service description
Why are we making these changes?
Allow users to specify a custom image for their app

waiter.scheduler/validate-service for all the schedulers that do not support images (i.e. except the kubernetes scheduler) should throw an exception when the image field is provided in the service description.


Feature requiest: Mercurial integration

Gitlens is amazing extension that helps to work with git a lot. But from time to time I have to work with projects with mercurial.
There is plugin for Hg support in VS Code, but it cannot be compared with GitLense.
It would be very nice if Gitlense had mercurial compatibility mode or something like this.

While I would love to see GitLens extend beyond just git, there is quite a lot of code that is tightly couple to  git's features, behaviors, etc. There would have to be a LOT of work in creating an abstraction to insulate all the UI features from the underlying scm. But more than that, I, as someone who doesn't use Mercurial at all, would not be able to develop, nor maintain such a feature with the quality I would want.
Sorry.


Corrected storage account reference

Description referred to Servers instead of Storage Accounts.

@AErmie : Thanks for your contribution! The author, @DCtheGeek, has been notified to review your proposed change.

@AErmie : Thanks for your contribution! The author, @DCtheGeek, has been notified to review your proposed change.

@ktoliver : Thanks for your contribution! The author, @DCtheGeek, has been notified to review your proposed change.


🐞 [Bug Report] - avocano-cart, avocano tests known to fail - disabling playwright

Describe the bug
Until #325 is resolved, main and nightly usability tests on both avocano and avocano-cart will fail.
Workaround
The _RUN_TESTS substitution variable on merge-to-main-cart and nightly-build has been removed.

This will skip the playwright tests on these triggers.
Deployments will still occur.

Once #325 is resolved, these test changes need to be reverted.
Previously associated build failures incorrectly on https://github.com/GoogleCloudPlatform/avocano/issues/173 (builds in the last few days)

With PRs merged, manually running the nightly and merge-to-main builds with tests enabled were successful.
The triggers have been reverted to previous values, so they now run tests again.


Convert FERC1-EIA record linkage outputs to Dagster assets

- [x] `gens_mega_eia`
- [x] `plant_parts_eia`
- [x] `ferc1_to_eia`

What is the status of converting the ferc1_to_eia portion to dagster assets @katie-lamb? Is this blocking merging in the rename PR and doing a data release or can we convert it after the fact?

WOO we're done with getting all of our assets into Dagster!!!


Unable to download the checkpoints

Hi,
I tried to download the checkpoints with wget https://msralaphilly2.blob.core.windows.net/ml-la/release/BioGPT/checkpoints.tgz but got ERROR 404: The specified resource does not exist... So I wonder whether there is some problem about the download link. I would be grateful if you could check it. THX！

Previous link is broken. Have updated the new link. Please refer to the updated README at https://github.com/microsoft/BioGPT/commit/090440c3945a06e6f0c1861b7487cde129b95a78


Websocket Support for Streaming Input and Output

🚀 Feature

Support websocket endpoints to allow two-way real-time data communication.
Motivation

Currently, the requests are processed with the expectation that the data is complete and stateless. However, the input data isn't always ready immediately for use cases like speech to text, text to speech, audio/speech understanding, especially in time-sensitive situations. With the recent release of Realtime API from OpenAI and a new family of voice AI models (ultravox, mini-omni, llama-omni, moshi), support for streaming input and output could benefit the community in many ways and unlock even more creative uses of AI models.
Pitch

Support streaming input and output with websocket or any other methods to allow real-time AI applications.
Alternatives

A typical FastAPI websocket implementation is very template-like:
@app.websocket("/ws")
async def websocket_endpoint(websocket: WebSocket):
    await websocket.accept()
    try:
        while True:
            message = await websocket.receive_bytes()
            # process data
            # results = model(parse(message))
            await websocket.send_json(results)
    except WebSocketDisconnect:
        logger.error("WebSocket disconnected")
    except Exception as e:
        logger.error(f"Error: {e}")
        if websocket.client_state != WebSocketState.DISCONNECTED:
            await websocket.close(code=1001)
    finally:
        # clean up

However, this might make the batching impossible or complicated.
I am new to this repo, so if there is a workaround by hacking the server/spec/api to allow websocket, I am more than happy to contribute. If this is duplicate/irrelevant, sorry for the trouble.
Thanks a million for open sourcing this awesome project. ❤
Additional context

hi @ChenghaoMou, thank you for looking into and trying LitServe 💜 !! We support streaming which can be enabled by adding a stream=True argument to LitServer class. We have the streaming documentation here.
Please let me know if it helps.

Thanks for the prompt response! @aniketmaurya
If I am reading the documentation right, the current streaming is only for the output, not the input. It feels more like server side events (one input and multiple outputs) rather than websocket (streaming both input and output). The difference could be, for example, in speech to text:

Existing streaming: upload an entire audio file (input non-streaming) to get transcription "word by word" (output streaming);
This request: streaming audio from a live speech (input streaming) to get transcription "word by word" (output streaming);

I hope this makes sense.

yes @ChenghaoMou, the current streaming is server-sent event. Let's keep this open and we can evaluate this feature based on requests from the community.

i tired something to make request like streaming in and streaming out.
  class Llama3API(ls.LitAPI):

      def setup(self, device):
          self.llm = litgpt.LLM.load("checkpoints/meta-llama/Meta-Llama-3-8B-Instruct")

      def decode_request(self, request):
          for i in range(10):
            yield self.model(i)

      def predict(self, prompts):
          for i in range(prompts):
             yield from self.llm.generate(i, max_new_tokens=200, stream=True)
      def encode_response(self, output):

          for out in output:
              yield {"output": out}

but i  haven't tested the performance yet。


Update screenshot for new release.

Ready for 5.0.0-beta release.

Coverage remained the same at 23.358% when pulling de983ace81271a9b712c6841285ac2fa6bc6b4ee on new-screenshot into 002b65178922f67aab215fc439ff237fdff326f3 on master.


What's the meaning of attaching HR sensors ?

Hello
I am able to receive the HR data from multiple devices using only 1 sensor initialized.
In every beat I receive hbData simultaneously from all devices and store the data according to the given serial number.
I never call the attach method and actually don't understand why I need it all, or  what's the meaning of attaching the sensor to a channel.
Can anyone help me figure this out?
Thanks!

I don't understand: if you don't attach the sensor, you won't get any data, unless you are using a scanner that doesn't have an attach method

Got it.
I was using the scanner, thanks.

@Loghorn  - is it necessary to attach each and every single HR sensor to get relevant data?
Can I just used the scanner and not attach sensors?
Is attaching a sensor doing something to the device?

+1 to the shmatul question, I also would like to know the answer.
Thanks in advance @Loghorn


[BUG] Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "": plugin type="flannel" failed (add): open /run/flannel/subnet.env: no such file or directory

What did you do

How was the cluster created?

$ k3d cluster create mycluster
INFO[0000] Prep: Network
INFO[0000] Created network 'k3d-mycluster'
INFO[0000] Created image volume k3d-mycluster-images
INFO[0000] Starting new tools node...
INFO[0000] Starting Node 'k3d-mycluster-tools'
INFO[0001] Creating node 'k3d-mycluster-server-0'
INFO[0001] Creating LoadBalancer 'k3d-mycluster-serverlb'
INFO[0001] Using the k3d-tools node to gather environment information
INFO[0001] HostIP: using network gateway <IP_ADDRESS> address
INFO[0001] Starting cluster 'mycluster'
INFO[0001] Starting servers...
INFO[0001] Starting Node 'k3d-mycluster-server-0'
INFO[0005] All agents already running.
INFO[0005] Starting helpers...
INFO[0005] Starting Node 'k3d-mycluster-serverlb'
INFO[0011] Injecting records for hostAliases (incl. host.k3d.internal) and for 2 network members into CoreDNS configmap...
INFO[0013] Cluster 'mycluster' created successfully!
INFO[0013] You can now use it like this:
kubectl cluster-info

What did you do afterwards?

k3d commands?
docker commands?
OS operations (e.g. shutdown/reboot)?

Nothing, just kubectl get commands.
$ k get pods -A
E0408 16:01:20.071197  216996 memcache.go:255] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E0408 16:01:20.072501  216996 memcache.go:106] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E0408 16:01:20.073572  216996 memcache.go:106] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E0408 16:01:20.074522  216996 memcache.go:106] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
NAMESPACE     NAME                                      READY   STATUS              RESTARTS   AGE
kube-system   helm-install-traefik-crd-tk874            0/1     ContainerCreating   0          80s
kube-system   helm-install-traefik-dc896                0/1     ContainerCreating   0          80s
kube-system   coredns-597584b69b-4rjnc                  0/1     ContainerCreating   0          79s
kube-system   local-path-provisioner-79f67d76f8-ngxkj   0/1     ContainerCreating   0          79s
kube-system   metrics-server-5f9f776df5-584hg           0/1     ContainerCreating   0          79s

On further investigation:
$ k describe pod -n kube-system metrics-server-5f9f776df5-584hg
E0408 16:01:58.133390  217539 memcache.go:255] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E0408 16:01:58.138322  217539 memcache.go:106] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E0408 16:01:58.139287  217539 memcache.go:106] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E0408 16:01:58.141336  217539 memcache.go:106] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Name:                 metrics-server-5f9f776df5-584hg
Namespace:            kube-system
Priority:<PHONE_NUMBER>
Priority Class Name:  system-node-critical
Service Account:      metrics-server
Node:                 k3d-mycluster-server-0/<IP_ADDRESS>
Start Time:           Sat, 08 Apr 2023 16:00:01 +0530
Labels:               k8s-app=metrics-server
                      pod-template-hash=5f9f776df5
Annotations:          <none>
Status:               Pending
IP:
IPs:                  <none>
Controlled By:        ReplicaSet/metrics-server-5f9f776df5
Containers:
  metrics-server:
    Container ID:
    Image:         rancher/mirrored-metrics-server:v0.6.2
    Image ID:
    Port:          10250/TCP
    Host Port:     0/TCP
    Args:
      --cert-dir=/tmp
      --secure-port=10250
      --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
      --kubelet-use-node-status-port
      --metric-resolution=15s
    State:          Waiting
      Reason:       ContainerCreating
    Ready:          False
    Restart Count:  0
    Requests:
      cpu:        100m
      memory:     70Mi
    Liveness:     http-get https://:https/livez delay=60s timeout=1s period=10s #success=1 #failure=3
    Readiness:    http-get https://:https/readyz delay=0s timeout=1s period=2s #success=1 #failure=3
    Environment:  <none>
    Mounts:
      /tmp from tmp-dir (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-4tm2f (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  tmp-dir:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:
    SizeLimit:  <unset>
  kube-api-access-4tm2f:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   Burstable
Node-Selectors:              <none>
Tolerations:                 CriticalAddonsOnly op=Exists
                             node-role.kubernetes.io/control-plane:NoSchedule op=Exists
                             node-role.kubernetes.io/master:NoSchedule op=Exists
                             node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason                  Age   From               Message
  ----     ------                  ----  ----               -------
  Normal   Scheduled               116s  default-scheduler  Successfully assigned kube-system/metrics-server-5f9f776df5-584hg to k3d-mycluster-server-0
  Warning  FailedCreatePodSandBox  109s  kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "c57b12cbdf4dbb3820622ba349608e8b93b5b0253e5075b90a5aa9c4147c15b4": plugin type="flannel" failed (add): open /run/flannel/subnet.env: no such file or directory
  Warning  FailedCreatePodSandBox  96s   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "a34d8af154cbec25ee180f173db338c0731e837bb57969471b606aacf760d8a2": plugin type="flannel" failed (add): open /run/flannel/subnet.env: no such file or directory
  Warning  FailedCreatePodSandBox  82s   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "9a405bf6ad10864d8104added45e5bfbac84718c3e23337cbc7a59fca6c143e5": plugin type="flannel" failed (add): open /run/flannel/subnet.env: no such file or directory
  Warning  FailedCreatePodSandBox  68s   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "ce6359d4c7e1d6798b018ec21ed657a749b581c9368a0bf98b972b02ded4618c": plugin type="flannel" failed (add): open /run/flannel/subnet.env: no such file or directory
  Warning  FailedCreatePodSandBox  53s   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "8dc2d8edaf5d8dd88ad8ccefa6da466baa9af4baf6fdde7f4f4e74af3f300734": plugin type="flannel" failed (add): open /run/flannel/subnet.env: no such file or directory
  Warning  FailedCreatePodSandBox  39s   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "4f42f982ee5a30d977c76b6dc5556908a5e2183375ff9cb00348f457c13e07cc": plugin type="flannel" failed (add): open /run/flannel/subnet.env: no such file or directory
  Warning  FailedCreatePodSandBox  27s   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "d347b8c411a18880bb65b0af0af86aa4a04542965715aa007a419e040b038e29": plugin type="flannel" failed (add): open /run/flannel/subnet.env: no such file or directory
  Warning  FailedCreatePodSandBox  13s   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "f7001b486fc75c49ea14abf51bbd87dc2f9c52bd53c26fbbb09355a77e6fba3c": plugin type="flannel" failed (add): open /run/flannel/subnet.env: no such file or directory

Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "XYZ": plugin type="flannel" failed (add): open /run/flannel/subnet.env: no such file or directory
What did you expect to happen
I expected the cluster to work.
Which OS & Architecture

output of k3d runtime-info

Which version of k3d
$ k3d runtime-info
arch: x86_64
cgroupdriver: systemd
cgroupversion: "2"
endpoint: /var/run/docker.sock
filesystem: btrfs
infoname: fedora
name: docker
os: Fedora Linux 37 (Workstation Edition)
ostype: linux
version: 23.0.3

Which version of docker
$ docker version
Client: Docker Engine - Community
 Version:           23.0.3
 API version:       1.42
 Go version:        go1.19.7
 Git commit:        3e7cbfd
 Built:             Tue Apr  4 22:10:33 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          23.0.3
  API version:      1.42 (minimum version 1.12)
  Go version:       go1.19.7
  Git commit:       59118bf
  Built:            Tue Apr  4 22:07:34 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.20
  GitCommit:        2806fc1057397dbaeefbea0e4e17bddfbd388f38
 runc:
  Version:          1.1.5
  GitCommit:        v1.1.5-0-gf19387a
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

$ docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.10.4
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.17.2
    Path:     /usr/libexec/docker/cli-plugins/docker-compose
  scan: Docker Scan (Docker Inc.)
    Version:  v0.23.0
    Path:     /usr/libexec/docker/cli-plugins/docker-scan

Server:
 Containers: 2
  Running: 2
  Paused: 0
  Stopped: 0
 Images: 16
 Server Version: 23.0.3
 Storage Driver: overlay2
  Backing Filesystem: btrfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 2806fc1057397dbaeefbea0e4e17bddfbd388f38
 runc version: v1.1.5-0-gf19387a
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.2.8-200.fc37.x86_64
 Operating System: Fedora Linux 37 (Workstation Edition)
 OSType: linux
 Architecture: x86_64
 CPUs: 12
 Total Memory: 15.47GiB
 Name: fedora
 ID: NIPB:2RVK:MPC3:YBZK:4DZH:XCIE:CLAC:3EEJ:JP6N:ME4I:WNXU:PTDU
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Experimental: false
 Insecure Registries:
  <IP_ADDRESS>/8
 Live Restore Enabled: false

Hi, do you have a HTTP proxy on your network


Angle Pipette

Place one deco piece down at a weird angle/rotation and you want to place a second deco piece down at the same angle/rotation. You can pipette or like how you use Ctrl to match the height, there's something you can do to match the angle.

Done in new release.


custom installation step

I'm trying to convert some library to use CMake + Hunter. The library depends on Clang tooling but uses some headers not installed by Clang by copying them manually from the source folder to the installation dir.
Is this possible to achieve within Hunter? Maybe through some custom installation step?

uses some headers not installed by Clang

Where they came from? They should be linked to some package, if there is no such package you can create new one.

Where they came from?
They are part of Clang's sources.

They are part of Clang's sources

You can patch Clang to install them. We already have fork anyway. Aside: if they not installed on purpose then they may be the part of private API that can be removed/changed later, it they not installed mistakenly then it should be fixed upstream.

I agree it's a bad practice, but wouldn't it be useful to enable some custom post package build logic?
I don't want to patch Clang just for this library's use.

wouldn't it be useful to enable some custom post package build logic?

There is plain and simple functionality in CMake to manage installation. I don't see the point of introducing custom steps and spread the logic.

OK, I've decided to try to get the library fixed to use only installed headers.


[joint_trajectory_controller] Refactor test cases, smaller scope

Refactor the test cases such that they clearly convey what the code is testing and what the expectation should be. Always avoid if possible, reusing the context of a previous test for simplicity, this is what a fixture class should be for. Example vaguely resembling what's in the test ATM:
TEST_F(EmptyFixtureWeCouldHaveFilled, test_sampling)
{
  // various lines setting up the context, should be part of the fixture class

  {
  result = sample(parameters1);
  ASSERT_THAT(result, ...);
  }

  {
  result = sample(parameters2);
  ASSERT_THAT(result, ...);
  }

  {
  result = sample(parameters3);
  ASSERT_THAT(result, ...);
  }

}

The problem with this is that the tests can only report "something is wrong with sample", we'd still need to dig and look which inner case and why. To aide in this, the pattern above is sometimes augmented with comments for each context block. I've done a lot of this and found it quite bad.
Instead, consider something like this:
TEST_F(TestSampling, works_with_empty)
{
  result = sample(parameters1);
  ASSERT_THAT(result, ...);
}

TEST_F(TestSampling, fails_with_time_from_start_undefined)
{
  result = sample(parameters2);
  ASSERT_THAT(result, ...);
}

TEST_F(TestSampling, success_when_all_params_defined)
{
  result = sample(parameters3);
  ASSERT_THAT(result, ...);
}

The result when running the tests will show a lot more cases and be a lot more specific with failures. Also, note that in this case I used a specific class fixture for TestSampling only, it is good practice to use the fixture name to convey the general area we are testing so we don't have to duplicate it in the name of the case, e.g TEST_F(TestJTC, sample_success_when_all_params_defined)
Also, if you find that there's no need for a test fixture class, don't create an empty one.
The code below will still work:
TEST(TestSampling, success_when_all_params_defined)
{
  result = sample(parameters3);
  ASSERT_THAT(result, ...);
}

FYI @Karsten1987 @ddengster

I'll be working on this.


Modify SideBar so that current screens are highlighted

Modify the leftmost side bar so that the currently active screen is highlighted, indicating which page the user is currently viewing.

Done.


Inverter 1 auf AC-in / Inverter 2 auf AC-Out

Ich habe zwei WR angebunden. Einer ist auf AC in und der andere auf AC out angeschlossen.
Ist es möglich dies in der Config einzustellen? Oder gilt das immer für alle?

the Script just generates one device in dbus, therefore it can be only in or out. if you want to split you would currently need to split into 2 opendtu and running the script twice, but honestly I do not see any benefit. to have multiple.

Thank you for your prompt reply.
Then I will buy a second open dtu.
the following would not be possible?
script1 AC in - Config only inverter 0
script 2 AC out - Config only inverter 1
enter the same IP in both scripts, i.e. use the same DTU

your idea is not bad, I could maybe just parse for a SN. The challenge I have is my time is limited to rewrite the whole code, to create multiple inverter instead of just summing up all inverters of opendtu and present as one. what you also could do is tot have them virtually on different phases for viewing purpose.
For now buying a second opendtu is the only way, without me fixing it. so if you do not want to wait, then go andientest another 15€.

Hi, I have now implemented in a test Branch to select inverters to show, so that it should be possible to do, what you wanted by running the script twice: Branch: https://github.com/henne49/dbus-opendtu/tree/9-feature-request-one-device-per-inverter
Description and change here: https://github.com/henne49/dbus-opendtu/commit/a5d0843edba1777ca0853271f4b41eff2dcc17c7

Wow thanks...
But I don't understand exactly what I have to do to test it.
I installs two from this link?
https://github.com/henne49/dbus-opendtu/tree/9-feature-request-one-device-per-inverter
And in each I enter the same IP from Ahoy and for the first installation inverter 0 Yes and for the second other inverters 1 Yes?
can you give me an example?
Am I right that Tasmota/Shelly Gen1/Shelly Gen2 are also supported?

Correct I have added generic REST template options and tested with the tasmota and shelly.
here is an example below for 3 inverters in opendtu, but will work the same with ahoy https://github.com/henne49/dbus-opendtu/issues/9

Great work. However, I will only be able to test it in a few days.
How will this work with Tasmota?
Inverter0,1,2....ignore?
DTU=template
IP=Tasmota IP
Do I have to change something in the template?
TEMPLATE]
Tasmota Example
CUST_SN = 12345678
CUST_API_PATH= tasmota/tasmota-power-only
CUST_POLLING = 2000
CUST_Total= StatusSNS/ENERGY/Total
CUST_Power= StatusSNS/ENERGY/Power
CUST_Voltage= StatusSNS/ENERGY/Voltage
CUST_Current= StatusSNS/ENERGY/Current

I have update the config.ini, which should now work with Tasmota Default URL: https://github.com/henne49/dbus-opendtu/blob/main/config.ini
DTU=template
just the IP and maybe username and password should be required. Anything in inverter will be ignored.

It works great :)
Today i try Shelly Gen1 and Gen2.
Now I have everything I need. Many thanks for the great work.

Good news: there is testing branch, that should work in a single script, please test. It is working for me: https://github.com/henne49/dbus-opendtu/tree/Multi-Inverter
Based on the feedback, I will then merge into main.

I have now finally tried to display an inverter on AC In and another on AC Out.
I had to realize that only one instance is needed for this.
Good work.
Why is this entry necessary at the beginning of the config?
# Unique ID identifying the OpenDTU in Venus OS
Device instance=43
Below each inverter gets its own ID.
**### Only needed for OpenDTU and ahoy
1st inverter
[INVERTER0]
Phase=L1
DeviceInstance=34
AcPosition=1**
Is it possible to add a Shelly or/and Tastmota in the same config? Or do I need my own config for more Tasmota/Shelly?

This will be removed in further versions it is used for Template device.
Next step up to 10 template devices and after that a mix anf match of opendtu or ahoy and template devices.
But that‘ll take some time. I have a couple of busy work weeks ahead


Fix namespace and subsystem in multiprocess mode

See https://github.com/prometheus/client_python/issues/158 for details.

@brian-brazil here is the suggested fix for https://github.com/prometheus/client_python/issues/158.

Thanks!

@atollena I recently stumbled over this as well. Thanks for the fix :)


Keep scroll position in ListView when adding new item on top

I have a problem that asked in stackoverflow before by someone

I am using a ListView.builder to render a chat.
The scenario is the following: A user types in a new chat message, when that happens i am storing the new message in state and therefore the itemCount is increased by one.
If i am at the end of the list, I see the new item directly at the top, everything is OK.
However, if I am in the middle of the chat and an item is added, the view scrolls a little bit. How can I disable this behaviour? I guess it kinda makes sense because the scroll offset is still the same double in the ScrollControllers state, but if there is one more item, it looks like it scrolls...
Is there a good way to do this? I guess the manual approach would be to measure the height of the new item and manually set the correct ScrollController offset again.. but meeeh

Is it a lost of feature in flutter?

Hi @sm2017
It seems you are asking for assistance on personal code. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


Hpsm Collector Refactor

Removing reflection
Combination for soap message method
Removal of cmdb item clean up (for now)

@tabladrum LGTM


Update object-definition.js

removes empty object properties (which are considered truthy in handlebars)

Tests are failing with these changes. They might just be bad tests, but at quick glance, one seems a bit odd (the presence of _formatter that was previously not there).

I didn't do anything with _formatter...
I think test is failing because the objectDefinition is asserted to have all the properties (requiredProps, optionalProps) objects.
I removed them if they are empty, because its a bit of extra effort to deal with empty objects in handlebars.

They are now turned into null if empty (here https://github.com/cloudflare/json-schema-docs-generator/pull/26). That should help with handlebars (We ran into the same problem).


Shortest Job First (SJF) CPU Scheduling algorithm

closes: #683
The algorithm efficiently schedules processes based on their burst times, minimizing average waiting time. It includes functions for calculating waiting time, turnaround time, and sorting processes.

@pankaj-bind please review and allow merge and assign the labels

@pankaj-bind please look into it n merge !


[DS Project UI] - Add feature flag to set the visibility of data science projects page

Like other feature flags in the ODH configs, we should also add a feature flag to decide whether to show the data science projects page or not.

Completed with the Data Science Projects feature.


Install without docker.

I would like to use this starter but I am not familiar with docker and I am having a difficult time setting it up.  Can you advise as to how to start this without docker?

STEPS

Start local redis
Start local mongo
Run npm install
cp .env.example .env
RUN npm start or yarn start


License in packages

Code license management is a real pain, it would be great if in packages we could tag the license of the package. That way when requiring a package it could either display the license or even depending on the license of the project itself raise an error saying that the package's license is not compatible with the project.
Suggested wording
Package declaration
package("SomePackage")
    on_load(function(package)
        package:set_license("gplv3")
     end)

Project
set_license("proprietary")

add_requires("SomePackage")

Would result in

Package "SomePackage" required with license "gplv3" incompatible with "proprietary", please use a compatible license or remove the requirement.

We have provided set_license() api for package().
package("SomePackage")
    set_license("gplv3")

And I will also consider adding set_license api and package license detection features in the project configuration.

But I am not very sure which licenses are incompatible, can you help provide some relevant reference documents?

https://dwheeler.com/essays/floss-license-slide.html
As for which can be included in a proprietary I am not a specialist but I believe, MIT, apache, LGPL, BSD and public domain can be included. I think there is an exception with GPLv3 regarding linking a binary to another non GPLv3 program but I am not sure so I think it's safe to assume it's not possible until someone more knowledgeable comes along.

Beware, LGPL can only be linked without problem if using a shared linked (dynamic linking), static linking is not supported between a properietary/mit/apache/... and LGPL (with the same restrictions as GPL).

I have implemented the first version to check the compatibility between target and packages on dev branch. xmake update -s dev
case 1:
add_requires("libplist") -- LGPL-2.0
target("test")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("libplist")

$ xmake
warning: target(test) maybe is not compatible with license(LGPL-2.1) of package(libplist),
we can use shared libraries with LGPL-2.1 or use set_license()/set_policy() to modify/disable license!

case 2:
add_requires("libplist") -- LGPL-2.0
target("test")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("libplist")
    set_license("Apache-2.0") -- set license

$ xmake
warning: license(Apache-2.0) of target(test) is not compatible with license(LGPL-2.1) of package(libplist)
we can use shared libraries with LGPL-2.1 or use set_license()/set_policy() to modify/disable license!

If you need to improve the license detection, you can continue to improve these two script files.
https://github.com/xmake-io/xmake/blob/dev/xmake/rules/utils/check_licenses/check_licenses.lua
https://github.com/xmake-io/xmake/blob/dev/xmake/modules/core/base/license.lua


Make proxies proportional to fluxes

Description
Convention update
CEDS proxies were designed to be proportional to absolute emissions in each grid cell and we adopted that convention unknowingly.
This PR is changing this design to make uniform proxies that are used for CDR like OAE more intuitive. This means that all CEDS proxies need to be divided by the cell area on import.
This happened in the generation scripts also updated in this PR, but also in the new data folder on OneDrive labelled data_2024_09_16 . Proxy rasters for the code for this PR need to be regenerated or used from the new OneDrive folder. (NB @jkikstra).
OAE Alkalinity Additions
OAE Alkalinity additions are not deployed above 67.5ºN any longer (due to efficiency concerns).
Fix CEDS Aircraft emissions proxy
As reported in  https://gmd.copernicus.org/preprints/gmd-2022-250/ and https://github.com/JGCRI/CEDS/issues/45 :

input4MIPS historical files came with a bias of 1/cos(lat), while
input4MIPS scenario files had even a 1/cos(lat)**2 bias

These resulted from two mistakes in proxy generation scripts.
We half-fix the scenario files bias to 1/cos(lat) to be consistent with historical gridded emissions.
(@jkikstra @gidden This half-fix in commit ac85fd1 has to be undone, when the CEDS Aircraft emissions proxies will be updated, but hopefully you can find a better format than the current R dumps, which will make the current hacky script obsolete)
Remaining known problem:

New scenario files have still a 1/cos(lat) bias to be consistent with historical files

Great, thanks @coroa for digging into all the nuances here. Well noted on the CEDS air update. Also for @ssmithClimate to be aware of (Steve - the file changed here is how we process the CEDS proxy data to generate emissions grids, FYI).

@coroa - FYI I rebased and merged so we can keep reference to the specific aircraft commit


GEP: Timeouts

What would you like to be added:
Gateway API needs whatever support we can do for timeouts. This GEP is to consider what timeouts are available, find some common ground, and then to implement that common ground somehow. (Very likely a Policy object, but not certain).
Why this is needed:
Timeouts are a critical part of any proxy infrastructure, and since many Gateway implementations use a proxy, they're important here as well.

The first step here is a preliminary GEP PR that talks about the Why and What we need to do; in this case this includes a review of all the implementations, what dataplanes they use, and what information we have about the data plane's timeout capabilities. That should set us up for what we can do, which can then help us define what we will do.
I've already done the comparison, and am in the process of writing this PR up.

Would like to request discussion of:

tunnel timeouts (for websocket connections, maybe the same use case as @liangyuanpeng mentioned above
server-side connection timeouts

/remove-lifecycle stale

With the merge of #2013, this GEP is actually implemented, so it should be moved to Experimental. I'll open a PR to do that.

With https://gateway-api.sigs.k8s.io/geps/gep-1742/#timeout-values and #2013 there's no option that NGINX-based implementations would support, correct? I don't know of any that add timeout behaviors other than the idle/time between  individual reads behavior offered by ngx_http_proxy_module (https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/balancer.md#set_timeouts just configures those for the lua-nginx-module-based implementations).
Would a TTFB timeout or idle timeout make sense as an alternative? Idle appears to have the widest support, as it's available in Envoy (idle_timeout), NGINX (proxy_read_timeout), and HAProxy (timeout server). Traefik does have idleConnTimeout, but I don't read that as applying within a request, only after for open inactive connections similar to NGINX's keepalive_timeout.
Idle timeout de facto satisfies TTFB (inclusive of headers) insofar as a connection not receiving response headers is idle after the client headers and body are sent, albeit with caveats after that a pure idle timeout can time out after headers are received also. Traefik does support a headers-only timeout (forwardingTimeouts.responseHeaderTimeout) for that.
IDK how we'd eventually structure the config, but I'd also expect idle to be the main option for L4 routes, since we don't really have much universal there besides time between packets.
Lastly, despite the

A standard API for every possible timeout that implementations may support.

non-goal, I think it'd make sense to have an ImplementationSpecific option that lets you specify a Duration and string identifier. That's maybe less a standard API for each and more an acknowledgement that we know the timeout options across implementations are quite varied and that we'll probably never have standard APIs for all. However, reviewing the offerings does indicate that most could be handled with a basic duration+identifier combo--I don't see any that clearly use more complex configuration.
Although the extensionRef HTTPRouteFilter is available as an alternative at the HTTPRouteRule level, having timeouts split across two sections depending on whether they're standard or not feels bad at a UX level.

According to GEP-713, perhaps we can try adding a TimeoutPolicy and redefining some specific behaviors?

Not stale...

/remove-lifecycle stale

I think we’re going to make this a goal for v1.2…
/remove-lifecycle stale

Definitely not stale. 😂
/remove-lifecycle stale

/lifecycle frozen
/priority important-soon


Prevent explicit configuration of host and local contexts

These contexts are specially handled and built in.

Local context is just a lack of context reference; host context will be called default and will default to the system's local shell runner.


Set horizontal item count in galleries to 6

We should have about 6 items across at most in the template and binding galleries.

@Tuesdaysgreen already fixed this in  #238


Add logging to Lic. Manager module

We need to add logging to the STDOUT to the Licence Manager module.

Closed by #418


Unity builds creating incorrect import library file names on Windows

With Cotire 1.6.9:
We have a shared library that, for one reason or another, needs to be named with a .so extension, even on Windows (it's a ruby extension).  As such, we set the PREFIX, SUFFIX, IMPORT_PREFIX, and IMPORT_SUFFIX target properties, like so:
set_target_properties(libfacter PROPERTIES PREFIX "" SUFFIX ".so" IMPORT_PREFIX "" IMPORT_SUFFIX ".so.a" ...)
When not using unity, this builds libfacter.so and libfacter.so.a as expected.  When using a unity build for this target, however, we get libfacter.so and liblibfacter.dll.a.  Cotire seems to be causing it to ignore the import library prefix and suffix properties.

Should be fixed in 1.7.0.


Deprecated tilde (~) import in css, breaks with esbuild

Reproduction link
https://ng-zorro-antd-ivy-yrpgmk.stackblitz.io
Steps to reproduce
(This does not replicate in stackblitz as it is using a different builder)
Add "node_modules/ng-zorro-antd/ng-zorro-antd.min.css" to styles in angular.json, change to "builder": "@angular-devkit/build-angular:browser-esbuild".
Run build.
What is expected?
A successful build
What is actually happening?
Vite is throwing an error due to a deprecated import syntax
X [ERROR] Could not resolve<EMAIL_ADDRESS>
node_modules/ng-zorro-antd/ng-zorro-antd.min.css:1:8:
  1 │ @import '~@angular/cdk/overlay-prebuilt.css';.ant-carousel .slick-s...
    ╵         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can mark the path<EMAIL_ADDRESS>as external to exclude it from the bundle, which will remove this error.

Environment
Info

ng-zorro-antd
16.2.0

Browser
NA

Remove the tilde, and it is working perfectly<EMAIL_ADDRESS>=><EMAIL_ADDRESS>This fix should be backwards compatible as it has been deprecated since Angular 13.

I faced the same problem


Added tests for the control interface classes

Let's rebase this once #107 got merged.

Rebased onto current master so all CI step should succeed.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@f31f998). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #112   +/-   ##
=========================================
  Coverage          ?   53.08%
=========================================
  Files             ?       80
  Lines             ?     2398
  Branches          ?      266
=========================================
  Hits              ?     1273
  Misses            ?      997
  Partials          ?      128

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Looks good to me. Moving the setup into the fixtures is a debatable feature, so I'll approve this, but will only merge this after discussing that topic.

I think it would be a good idea to make the setup part of the fixture, since it is identical for all the tests, so I will have a look at that.

Squashed to re-trigger code-cov report.

Just for clarity: This is currently being held back as @urmahp wanted to move code to the test fixture. Once this is done, this should be ready to merge.


Copy to clipboard button

Copy to clipboard button in the top right corner of the code preview page

Can I do this? And if so is there a specific icon library I should use or should I just use any good looking one?

Can you put it here ?

k. I will do it now.

Ok go ahead

Done

Thanks a lot @Alien10123


missing "/" between server url and graph, device overlib path

I just installed librenms on 16.04 with nginx following the instructions on
http://docs.librenms.org/Installation/Installation-Ubuntu-1604-Nginx/.
After cloning this repo and following its instructions, I created a map and everything works until I try to mouse over the nodes or links. The url that it is trying to access which is the url also shown in the .conf file is missing a / between the host and the path. Example:
NODE 1
        LABEL localhost
        INFOURL http://librenms.home.localdevice/device=1/
        OVERLIBGRAPH http://librenms.home.localgraph.php?height=100&width=512&device=1&type=device_bits&legend=no
        POSITION 336 289

Should be
NODE 1
        LABEL localhost
        INFOURL http://librenms.home.local/device/device=1/
        OVERLIBGRAPH http://librenms.home.local/graph.php?height=100&width=512&device=1&type=device_bits&legend=no
        POSITION 336 289

Manually fixing it solves the issue. Haven't been able to figure out yet what is causing it. Never had this problem using it with cacti for a decade or so. Not sure if nginx is stripping too much using the given virtual server template maybe (http://docs.librenms.org/Installation/Installation-Ubuntu-1604-Nginx/)?
Everything else works great ;)

We use $config['base_url'] from config.php in LibreNMS to build that, I expect you have it set to http://librenms.home.local - just add / there.


How to get correct types for NUXT auto imported components?

Environment

vscode
volar (in take over mode)

Reproduction
npx nuxi init nuxt

open nuxt folder in vscode
open nuxt config -> red squiggle appear
Describe the bug
As of RC.10 it is said we can skip importing defineNuxtConfig, as it should get auto imported into the nuxt config.
When I tested it in a local project, my VSCode was showing me that:

How can we fix this?
Additional context
No response
Logs
No response

This was subsequently resolved.


Added FAQ in footer #4539

Fixes #4539
Describe the changes you have made in this PR -

created new column in footer.html.erb ,  and updated FAQ in all four language files simultaneously.

Note: Please check Allow edits from maintainers. if you would like us to assist in the PR.

Already some other contributor has been assigned to the issue #4539, so that I am closing this PR.
Get yourself first assign to the issue before raising the PR.


Could not set unknown property 'namespace' for extension 'android' of type com.android.build.gradle.LibraryExtension.

Bug summary
I got this error today when running ./gradlew clean on RN 0.63
1: Task failed with an exception.
-----------
* Where:
Build file '/Users/osamahafez/Software/ThatekWork/mobile/thatek-mobile/node_modules/react-native-permissions/android/build.gradle' line: 62

* What went wrong:
A problem occurred evaluating project ':react-native-permissions'.
> Could not set unknown property 'namespace' for extension 'android' of type com.android.build.gradle.LibraryExtension.

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

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':react-native-permissions'.
> compileSdkVersion is not specified. Please add it to build.gradle

but it was working fine before that.
after further investigation I found a new line was added at
react-native-permissions/android/build.gradle' line: 62
namespace = "com.zoontek.rnpermissions"
that caused the issue
I also upgraded to the latest version but the error persists.
Library version
3.3.1
Environment info
System:
    OS: macOS 13.4.1
    CPU: (8) arm64 Apple M1
    Memory: 83.55 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 14.18.0 - ~/.nvm/versions/node/v14.18.0/bin/node
    Yarn: 1.22.18 - /opt/homebrew/bin/yarn
    npm: 6.14.15 - ~/.nvm/versions/node/v14.18.0/bin/npm
    Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.12.0 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.1 AI-211.7628.21.2111.8309675
    Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.19 - /opt/homebrew/opt/openjdk@11/bin/javac
    Python: 2.7.18 - /Users/osamahafez/.pyenv/versions/2.7.18/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: 0.63.3 => 0.63.3
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

delete node_modules
npm install
cd android/
./gradlew clean

Reproducible sample code
the issue is not related to the usage of the package but it's building

If we confirm the issue is made by my PR I can submit another one changing it to:
// Conditional for compatibility with AGP <4.2.
    if (project.android.hasProperty("namespace")) {
        namespace = "io.sentry.react"
    }

Of course with the right namespace

React native 0.63 is not supported anymore, you can stuck with an old library version.

@zoontek ok thank you, will keep that in mind


Add MIT license.

Hi @brainopia!
I would really love to use this gem at work but unfortunately we can't if there is no license attached. This PR adds in the standard MIT-LICENSE (same as in Rails) and would resolve issue #3
Let me know if this looks good!
Thanks!

Thank you!


bundles: List container images used by the staged pallet bundle in its manifest

Currently the forklift-bundle.yml manifest for a staged pallet bundle does not include a list of container images needed for applying the staged pallet bundle. We should include that, e.g. under downloads.{deployment name} and maybe also exports.{deployment name}. We probably need to make a backwards-incompatible change to the format of the manifest's downloads.{deployment name} and exports.{deployment name} fields so that they're not just lists of strings (URLs or file paths, respectively), but instead objects of lists (where each field of the object is a resource type, e.g. http, container-image, compose-app, compose-app-service, compose-app-container, etc.).

This is also useful as a list of the container images which will be downloaded when the pallet is staged, or when the staged pallet bundle is set as the next one to be applied (or is set as a rollback).


How to allow older CRAM-MD5 for auth from localhost for SMTP service?

Hi,
how can I allow older CRAM-MD5 for auth for SMTP service from localhost? Or allow PLAIN for localhost?
Greate work on mox project, thank you for sharing this.

hi @martinjanda, cram-md5 should be enabled for authentication. at least on the submission ports (587 for plain and 465 for tls). same for the imap ports (143 and 993). smtp port 25 doesn't do authentication at all.
login with plain text passwords should work on the TLS-protected connections by default. if you want to allow plain text passwords on unencrypted connections, you would have to enable that in mox.conf, in the listeners for "Submission" and/or "IMAP", see https://www.xmox.nl/config/#cfg-mox-conf-Listeners-x-Submission-NoRequireSTARTTLS
if that's not working, it would be good to dive into the logging (possibly enabling trace logging) and see what's going on.
or do you want to certain login methods (plain, cram-md5) only if they are coming from localhost?
which authentication schemes are enabled isn't very configurable.

Thanks for the quick and comprehensive reply.
I'm trying to run mox and SnappyMail on the same server. I like webmail in mox, but users are used to SnappyMail. IMAP runs without problems. The problem I have is with SMTP. SnappyMail crashes during authentication. Probably a bug in SnappyMail, because SMTP works fine in my user clients (Thunderbird etc).
I'll try reporting it to the SnappyMail project, but I wanted to get around it by reducing security when calling from localhost.
Tracelog looks like this:
May 07 12:22:30 mail mox[218018]: l=info m="new connection" pkg=smtpserver remote=<IP_ADDRESS>:60404 local=<IP_ADDRESS>:587 submission=true tls=false listener=internal cid=18f52931701 delta="27.16µs"
May 07 12:22:30 mail mox[218018]: l=trace m="LS: 220 mail.smartus.cz ESMTP mox v0.0.11\r\n" pkg=smtpserver cid=18f52931701 delta="43.579µs"
May 07 12:22:30 mail mox[218018]: l=trace m="RC: EHLO _\r\n" pkg=smtpserver cid=18f52931701 delta="120.249µs"
May 07 12:22:30 mail mox[218018]: l=debug m="smtp command result" pkg=smtpserver kind=submission cmd=ehlo code=250 ecode= duration="32.92µs" cid=18f52931701 delta="61.209µs"
May 07 12:22:30 mail mox[218018]: l=trace m="LS: 250-mail.smartus.cz\r\n250-PIPELINING\r\n250-SIZE 104857600\r\n250-REQUIRETLS\r\n250-AUTH SCRAM-SHA-256-PLUS SCRAM-SHA-256 SCRAM-SHA-1-PLUS SCRAM-SHA-1 CRAM-MD5 PLAIN LOGIN\r\n250-FUTURERELEASE 5184000 2024-07-06T10:22:30Z\r\n250-ENHANCEDSTATUSCODES\r\n250-8BITMIME\r\n250-LIMITS RCPTMAX=1000\r\n250 SMTPUTF8\r\n" pkg=smtpserver cid=18f52931701 delta="26.729µs"
May 07 12:22:30 mail mox[218018]: l=trace m="RC: AUTH SCRAM-SHA-256\r\n" pkg=smtpserver cid=18f52931701 delta="175.137µs"
May 07 12:22:30 mail mox[218018]: l=trace m="LS: 334 \r\n" pkg=smtpserver cid=18f52931701 delta="41.249µs"
May 07 12:22:30 mail mox[218018]: l=trace m="RC: %HASH%\r\n" pkg=smtpserver cid=18f52931701 delta="115.448µs"
May 07 12:22:30 mail mox[218018]: l=debug m="scram auth" pkg=smtpserver<EMAIL_ADDRESS>cid=18f52931701 delta="29.87µs"
May 07 12:22:30 mail mox[218018]: l=trace m="LS: 334 %HASH%==\r\n" pkg=smtpserver cid=18f52931701 delta="63.829µs"
May 07 12:22:30 mail mox[218018]: l=trace m="RC: QUIT\r\n" pkg=smtpserver cid=18f52931701 delta="335.804µs"
May 07 12:23:00 mail mox[218018]: l=info m="connection closed" err="read: read tcp <IP_ADDRESS>:587-><IP_ADDRESS>:60404: i/o timeout (io error)" pkg=smtpserver cid=18f52931701 delta=30.023363816s

For a quick fix with mox, you would have to locally modify the allowed authentication mechanisms in the code. The list is currently fixed: https://github.com/mjl-/mox/blob/587beb75b15eab259afc327f24083bfb156c7800/smtpserver/server.go#L902
Is snappymail giving an error message?
Possibly relevant is https://github.com/the-djmaze/snappymail/issues/1433, which fixed SCRAM for IMAP, but didn't change anything for SMTP.

I create bug here https://github.com/the-djmaze/snappymail/issues/1575. There is also log from snappymail.
Thank you for cooperation.

I think you can close this ticket. The problem is on the snappymail side.
So far I deploy RoundCube and users are happy.
Thank you.

@martinjanda, @mjl-: Thanks to have discovered the bug and helped to fix it in SnappyMail :)
But it is important to know that old/unsecure CRAM-MD5/DIGEST-MD5 has been replaced by SCRAM for security...


Bug when calling a method with direct instantiation of a new hash

p {"user" => 125}.to_json

unexpected token: =>

  p {"user" => 125}.to_json

Workaround:
test = {"user" => 125}
p test.to_json

Your code is parsed as:
(p do
  "user" => 123
end).to_json

so, it causes parse error.
If you want to pass a hash literal as 1st argument, you could write:
p({"user" => 125}.to_json)

Thanks @MakeNowJust for the explanation.


Add new manual for ServiceChain

Proposed changes

I am going to add a new section to build HA for ServiceChain.

Types of changes

[ ] Minor Issues and Typos
[x] Major Content Contribution
[ ] Others

Checklist

[x] I have read the CONTRIBUTING GUIDELINES
[x] I have signed the CLA
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Related issues

None

Further comments

None

@dcground @neoofklaytn @terry-klaytn
I would like to ask you to review this PR.


possible bug in the levenstein clustering algorithm?

I am using the nearest neighbor method, levenstein, with radius 3.0 and block chars 6.
What i do not understand is why for example Unipress and Seepresse are in the same group, since they seem to differ in four edits
remove Uni, replace with See, and add an e in the and of the string.
What am I missing?
Unipress
Seepresse
UNIPRESS.
Edipresse
Légipresse
Mediapresse
Mediapresse.
Socpresse
UNIPRESS
UNIPRESS,
UniPress
I managed to reproduce this, using the latest stable version

Hi @plopenrefine You can reduce your block chars to increase the granularity of substring search.
You probably didn't realize this, but we already have some very useful information for you regarding Clustering already.
See https://github.com/OpenRefine/OpenRefine/wiki/Clustering-In-Depth#nearest-neighbor-methods
Yes, you will always be able to reproduce, because it's an algorithm that doesn't change in code and where you have 2 parameters that you can control in order to help speed up or slow down the substring searching in the Nearest Neighbor methods we provide, but you might miss some potential pairs either way, so it's best to experiment with the blocking size even down to just 1 if you want to get extremely granular in your pairing.
I'll close this for now, and after reading that wiki page, let us know if there is anything unclear still in the documentation there and we can improve it.  Feel free to just add more comments to this closed issue if that is the case.

Sorry I led you astray. This is working as designed. As @ostephens mentioned on the mailing list, the edit distance is measured from a single candidate, "Edipresse" in this case, and all other candidates are within an edit distance of 3 from it. This means that it's possible, as in this case, that any pair of candidates could have an edit distance greater than the limit.


The term "Expired" will lead to confusion at this point.

I'm  not sure why "Expired" is displayed when all mosaics of a certain type have been sent form the wallet and the account-balance is 0.
That will lead to confusion. The mosaic is still valid for a while.
If I have sent all the XYM of an account and the status is 0, there is ultimately no such message.

Still replicable

fixed on latest integration


Redactor Rails renders multiple forms

Creating or updating a post renders multiple forms at first, but if you refresh the view the problem is fixed.

I have also experienced this issue.

@jaymiejones86 Oh geesus, I spent 45 minutes trying to fix it earlier after following these steps for install, and got no where:

Add 'redactor-rails' gem to Gemfile
bundle install
Include in application.js & application.css.scss
_form.html.haml
= simple_form_for @note do |f|
= f.input :title
= f.input :content, :input_html => { :class => "redactor" }
= f.button :submit, class: "button"

Again, it works on and the view is fixed on refresh but I still is an error. Ended up tagging this as an Issue and wonder if there is a fix.

@tbcooney we had similar issues, only 2 instances of the editor though and the 2 instances showed pretty much all the time.

I would also note there was no issue back with 0.4.2

@jaymiejones86 I just reverted to 0.4.2 and I get only 2 instances of the editor, however, the extra instance will disappear on refresh, weird.

@tbcooney hmmm so odd. Ill need to find some spare time to look and maybe issue a PR, but hope someone else beats me to it.

Had the same issue and messed around with how the JavaScript was initalizing the editor. It worked fine in development but when deployed it would render two editors in production. I'll look back on my commit notes and try to find the fix for you guys.

Hi guys, I'm also having the same issue. It renders 2 instances of the editor, however even refreshing does not help.
I already revised the initialization code but not luck.
Anyone got any progress on this?
/cc @lucasklaassen @jaymiejones86 @tbcooney

@brunnogomes we found that you did not have to have initialisation code if you just want the defaults and are hooking into a class redactor.
If you do some initialisation, make sure the class name is not redactor.

This happened to me too... I realized that I added a class: "redactor" and initialized it in my javascript code. So if you're going to initialize it, use a different class.

Thanks @jaymiejones86!

No worries Brunno.
On Fri, 18 Dec 2015 at 5:30 AM, Brunno Gomes<EMAIL_ADDRESS>wrote:

Thanks @jaymiejones86 https://github.com/jaymiejones86!
—
Reply to this email directly or view it on GitHub
https://github.com/SammyLin/redactor-rails/issues/151#issuecomment-165539993
.

--
Jaymie Jones
@pixelstackcom
http://jaymiejonesphoto.com
http://codercatchup.com
https://devbase.io

Thanks for this info. I was really confused what the issue was. So I just changed the class name from .redactor to .redactor-row in the config.js and called that class in the text areas. Done! :dancer:

No worries @sankalpsingha
Happy redactoring.

Perhaps it's not exactly the right solution, but I have a quick fix in my fork.
https://github.com/bigos/redactor-rails
I have modified gem to use all the plug-ins and get rid of duplicate forms.
Gemfile:
gem 'redactor-rails',  github: 'bigos/redactor-rails', branch: 'master'
application.js
//= require redactor-rails
//= require redactor-rails/plugins
application.css
*= require redactor-rails
*= redactor-rails/plugins

https://github.com/bigos/redactor-rails/commit/ac2cc62c740c616e48b1b02dd4bac943ca2354f6


chore(protocol): sync with upstreaming code refine

Upstreaming PR is refined based on review comments: https://github.com/automata-network/automata-dcap-v3-attestation/pull/6
This PR merges those refines back.

use https://github.com/taikoxyz/taiko-mono/pull/16209 instead


Changes Guide section TOC as discussed

Using v3.0.0 of Feathers customized TOC plugin
Changed SUMMARY as required
Added styling to styles/website.css

No idea how this affects printed docs

Bumped package.json version

I submitted first. :)


Repository structure for 0.4 is not compliant

Repository structure for 0.4 is not compliant is the message I get when trying to add it.

Did you try choosing integration in the drop-down menu?

@wmountain1 That worked! Was able to install it 👍🏻 But how do I use it afterward? Rebooted host and I can see it installed integration in HACS.

If you have added tibber_custom: to your configuration.yaml, you just have to add a new card to the dashboard and select "by entity". Then search for camera and it should show up. Select, continue, add to dashboard. If the pic isn't showing, edit the card after adding it and change camera view to live.
I don't know whether all of these steps are necessary as I am totally new to home assistant, but that's how I got it to work.
Also, at first I thought there was something wrong because the current price shown was different from what I was seeing in the Tibber app, but that was because I hadn't chosen to see the total price in the app (with taxes, etc).

@wmountain1 Thanks a lot for this 🙌🏻 What explicitly did you add to configuration.yml? Thanks again.

I just added "tibber_custom:" under "default_config:", then saved it.

I just added "tibber_custom:" under "default_config:", then saved it.

Cool I will try that later and see if it works! Thanks a lot for the help 😎