Shadow map example

Added an example that shows how to implement shadow mapping. This demonstrates the framebuffer feature.

Awesome!  This is great!

Super cool @Erkaman !

Soon I will publish a deferred renderer, and that will be even cooler. :)


Publications with .epub3 extension should be supported too (works with Ace CLI)

Test EPUBs:
https://standardebooks.org/ebooks/anton-chekhov/short-fiction/constance-garnett/
https://standardebooks.org/ebooks/miguel-de-cervantes-saavedra/don-quixote/john-ormsby
CC @acabal

Culprit code:
https://github.com/daisy/ace-gui/blob/e4688b7b06b2ba857b524171899689e3b2513e00/src/shared/actions/app.js#L28
Context:
https://github.com/daisy/ace-gui/blob/e4688b7b06b2ba857b524171899689e3b2513e00/src/shared/actions/app.js#L26-L44
https://github.com/daisy/ace-gui/blob/e4688b7b06b2ba857b524171899689e3b2513e00/src/shared/actions/app.js#L53-L66

Fixed via: https://github.com/daisy/ace-gui/commit/7ba80ba5ae9511c9d972a6f0866d48935ef80535

Fantastic, thanks!


Cannot use the Visual Studio Performance Profiler in some solutions

I'm not sure that it is right place to declare this issue...
When I want to to use the Visual Studio 2017 RC Profiler with some solutions, I cannot select the executable I want.
If I create a new .NET Core Console App, everything is OK.
But for instance when I want to profile the RazorPageGenerator (ASP.NET Core Razor repository), the project is not selectable.

I dont' understand the difference... For information, I almost sure that I already had the problem before with Visual Studio 2015 and at least .NET Core solutions.

Dupe of internal bug 238474. The profiler team is aware of this, but won't be able to get to it for RTM.

Any update about this issue? The link is to an internal system which I cannot access

@omerlh It looks like this internal bug is tracking a slightly different issue. Can you Help -> Send Feedback -> Report a Problem and point me to it and I can route to the right team.

Sure, feedback on visual studio?


render/gles2: add support for some 24 and 16-bit formats

On little-endian, we can enable pixel formats which don't use
gl_type = GL_UNSIGNED_BYTE. See 1.

Is there a reason more than "just in case" for the 24 ans 16 bits formats?

These formats are mostly relevant in more memory-constrained machines, e.g. embedded or old GPUs. I'll have to admit I've just added them mostly for completeness and I don't really intend to use them in a client. More of a "GL gives us this for free, so why not make it available to clients" kind of thing.

Seems good to me


Numbered list/head in Pod (S26)

Hello,
I was referring to S26 to get familiarity with Perl 6 Pod system. I am trying the examples from the synopsis. Unfortunately, the numbered list/head code doesn't work the way the doc said. I have tried all the combination that explained in the doc. Below is what I have tried so far.
Try -- 1
=begin pod
=for head1 :numbered
The Problem

=for head1 :numbered
The Solution

=end pod

Try -- 2
=begin pod
=config head1 :numbered
=config head2 :numbered

=head1 The Problem
=head1 The Solution

=end pod

Try -- 3
=begin pod

=head1 # The Problem
=head1 # The Solution

=end pod

None of the above return the heading with numbers. I have also tried with all of them with item instead head. With item, they return all item with * bullet style and not the number.
Am I doing something wrong? or something changed. Can someone please help me?
Thanks.

On Saturday, September 3, 2016, Tushar Harishbhai Dave <
<EMAIL_ADDRESS>wrote:

Hello,
I was referring to S26 to get familiarity with Perl 6 Pod system. I am
trying the examples from the synopsis. Unfortunately, the numbered
list/head code doesn't work the way the doc said. I have tried all the
combination that explained in the doc. Below is what I have tried so far.

Sorry to say that not all features of Perl 6 pod are implemented yet.  To
get a feel for what is implemented, look at the pod6 files that produce
docs.perl6.org.
Best regards,
-Tom

Thanks Tom for your prompt response. Could you please direct me the location of the Pod files that you mentioned?
And it's very unfortunate not to have those features. Looking forward to seeing them implemented soon.
-Tushar

On Sunday, September 4, 2016, Tushar Harishbhai Dave <
<EMAIL_ADDRESS>wrote:

Thanks Tom for your prompt response. Could you please direct me the
location of the Pod files that you mentioned?

...
You're welcome, Tushar.  For the pod source, check out the git repo at <
https://github.com/perl6/doc>.
A good start there is to look at the pod6 files in the doc/Language
subdirectory.
BTW, I assume you have been checking out the official docs at docs.perl6.org
.

And it's very unfortunate not to have those features. Looking forward to
seeing them implemented soon.

Well, I'm working on getting tables fully functional, but I haven't worked
on the project for a while.  When I finish that successfully, I plan to
work on getting other portions of inoperative pod to work.  You can find my
work in my fork of rakudo at https://github.com/tbrowder/rakudo.
Best regards,
-Tom

Thanks again Tom for your reply.
Yes, docs.perl6.org is the first place where I usually look for the stuff.
If you can explain to me how to start contributing to the project, I am more than happy to help. I have never contributed to any open source project before so I am in kind of fuzzy state. I can contribute in my spare time.
-Tushar

On Sunday, September 4, 2016, Tushar Harishbhai Dave <
<EMAIL_ADDRESS>wrote:

Thanks again Tom for your reply.
Yes, docs.perl6.org is the first place where I usually look for the stuff.
If you can explain to me how to start contributing to the project, I am
more than happy to help. I have never contributed to any open source
project before so I am in kind of fuzzy state. I can contribute in my spare
time.

Well, Tushar, depending on your experience, it may take a bit of effort to
learn the ropes, but there are all kinds of things that one can do to
help.  And the community is basically nice and helpful.
(I assume you have already installed Perl 6 and are experimenting with it.)
Several places to start, IMHO (in no particular order):

get a github.com account and get familiar with git

join the #perl6 IRC channel and start following conversations, jump in
and introduce yourself when you feel comfortable

check out the "how to help" page on perl6.org:

http://perl6.org/getting-started/involved

subscribe to all the mailing lists

Welcome to the Perl 6 community, Tushar!
Best regards,
-Tom

Thanks Tom for your informative comments.
To just give you information about my background, I am an active Perl 5 user and exploring Perl 6 since its first launch. I use Perl5 in my everyday job as it's the first language that I have learned and worked with. I already have a GitHub account and using it for my projects. I have already signed up for Perl 6 weekly and also asked questions over IRC channel. I believe, now I have adequate knowledge of Perl 6 to start up something on my own. So, I have started developing Perl 6 module. I hope I will get some time to finish it soon. I am hoping to see Perl 6 book out soon as I have faced a lot of trouble finding a step by step guide for myself for Perl 6. I have attended YAPC::NA 2016 where Larry said he has no plan to write a book in near future. But the book will be a great thing at this moment (as per my point of view).
Thanks again for all your replies.

On Sunday, September 4, 2016, Tushar Harishbhai Dave <
<EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote:

Thanks Tom for your informative comments.

You're welcome, Tushar, glad they're useful.

To just give you information about my background, I am an active Perl 5
user and exploring Perl 6 since its first launch.

...
I'm in similar situation: using Perl 4, then 5, for work and fun since
1993. Hoping for Perl 6 sooner, but using it since early 2015--and not
looking back (except when necessary).
I'm actively working on two Perl 6 modules and have another on deck.  Also
contributing to p6 docs, and rakudo code where I can.

I am hoping to see Perl 6 book out soon as I have faced a lot of trouble
finding a step by step guide for myself for Perl 6. I have attended
YAPC::NA 2016 where Larry said he has no plan to write a book in near
future. But the book will be a great thing at this moment (as per my point
of view).

I, too, look forward to a book.  Tushar, I was at YAPC::NA 2016, too!  Did
you attend any of Damian's classes?  Either in a hallway meeting with Larry
Wall and Damian, or from Damian, or through the  grapevine (I think Damian
said it in class because I asked about a book), Damian and Larry are
talking with O'Reilly about a book to come out early next year.
What name are you using on #perl6?  I'm "tbrowder" (I gave up on silly
names decades ago).  What part of the world do you live in?
I'm trying to get interest in Perl ( esp. Perl 6) in northwest Florida.  We
do have a Linux User Group here (https://nwflug.org), and a Python
group, but not much Perl interest.

Thanks again for all your replies.

My pleasure!  Happy Perl Sixing!
-Tom

No, I haven't attended any of Damian's classes because of either the time or the cost. I have attended his talk, though. I am a big fan of his work.

Damian and Larry are talking with O'Reilly about a book to come out early next year.

This is great news. In the Q&A session with Larry, Larry said he doesn't find enough time to write the book as all of us ask him to attend various conferences.

What name are you using on #perl6?  I'm "tbrowder" (I gave up on silly
names decades ago).  What part of the world do you live in?

I am not that much active on IRC. Whenever I am on it, I use "tushar". I am in Baltimore, MD.

I'm trying to get interest in Perl ( esp. Perl 6) in northwest Florida.  We
do have a Linux User Group here (https://nwflug.org), and a Python
group, but not much Perl interest.

Same here in Baltimore. We have only 5-7 people in MeetUp group. And I think it's same everywhere. Whenever I said to others that I am Perl programmer, first of all, they stare at  me and then ask me for good reasons of why am I still using it. Even few of them ask me to change my interest to Python saying that Perl is not OOP language.
Anyways, nice talking to you.


[AUTOPATCHER-CORE] Patched openvswitch to address CVE-2021-3905 -

[AUTOPATCHER-CORE] Patched openvswitch to address CVE-2021-3905
Upgrade pipeline run -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=295713&view=results
AMD64 build -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=295720&view=results
ARM64 build -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=295721&view=results

openvswitch version 2.15.7 source already fixes this issue. we need to add a nopatch for this cve

Closed as the merge is in via:

#4675


Open source compiler support?

Hello,
Thanks for pulling this together. I am wondering if any open source Fortran compilers are supported? I intend to run CE-QUAL on my university's cluster and would like to utilize existing compiler modules before installing a commercial product (ifort).
Thanks,
Josh

Hi Josh, thanks for reaching out!
I tried compiling this using gfortran, and there was one issue that I ran into. The code currently uses an extension for variable FORMAT expansion (https://gcc.gnu.org/onlinedocs/gcc-4.8.1/gfortran/Variable-FORMAT-expressions.html) that isn't (and won't) be supported by gfortran.
Based on the documentation, there seem to be other ways of achieving the same formatting goals using standard techniques.
If you're willing to make the effort of making the changes in the codebase, I'd be happy to help you get the project compiling on your system, and would welcome this as an upstream change to the codebase.
Thanks again!

Hi booooh :
This is extremely helpful for me! I am a beginner of Fortran and wonder do you also have a Makefile which can be used to compile W2 for Windows?
Many thanks!!

BEst Cheers
Chenxi in Magdeburg


Circular reference problem with OPT-300-Procedure-SProvider

We intend to use object constructors and this field turns it into a circular reference. Could something be done about this particular field?
"id" : "OPT-300-Procedure-SProvider",
"parentNodeId" : "ND-ProviderParty",
"name" : "Service Provider Technical Identifier Reference",
"btId" : "OPT-300",
"xpathAbsolute" : "/*/cac:ContractingParty/cac:Party/cac:ServiceProviderParty/cac:Party/cac:PartyIdentification/cbc:ID",

Also from the XSD schema, PartyType has AgentParty that is of type PartyType.. this also creates a circular reference.

Hello,
The fact that the element cac:Party can have as it descendant another cac:Party element is a design choice in the UBL standard, so it's not something we can change. This does indeed make it possible to get into circular references or infinite recursion if you're only looking at the XSD.
In order to avoid this, I would suggest to use the structure of fields and nodes defined in fields.json.
For you example with the field "OPT-300-Procedure-SProvider", its "xpathRelative" property is cac:PartyIdentification/cbc:ID, and its parent is the node "ND-ProviderParty". This node then has its own relative XPath, and a parent node:
  "id" : "ND-ProviderParty",
   "parentId" : "ND-ServiceProviderParty",
   "xpathAbsolute" : "/*/cac:ContractingParty/cac:Party/cac:ServiceProviderParty/cac:Party",
   "xpathRelative" : "cac:Party",
   "repeatable" : false

So by following this tree structure you should be able to build a representation of the structure of an XML eForms notice, without any circular references.
See this page for information on how the XML structure is represented: https://docs.ted.europa.eu/eforms/1.3.2/fields/xml-structure.html
I hope this helps.
As this is not an issue in the SDK, I'm closing this. Feel free to provide feedback or share your experience in the "Discussions" forum.


Errors out at peak calling

Have you guys run into this before? Know what's causing the issue, or how to work around it?
command im using:
macs2 callpeak -t $chipfile -c $controlfile -B --nomodel --shift $shift --SPMR -g hs -q 0.01 --broad -f BAMPE -n $chipfile.macs2
INFO  @ Wed, 16 Mar 2016 22:01:13: #3 Call peaks...
Traceback (most recent call last):
File "/usr/local/bin/macs2", line 5, in
pkg_resources.run_script('MACS2==<IP_ADDRESS>60309', 'macs2')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1394, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/MACS2-<IP_ADDRESS>60309-py2.7-linux-x86_64.egg/EGG-INFO/scripts/macs2", line 617, in
main()
File "/usr/local/lib/python2.7/dist-packages/MACS2-<IP_ADDRESS>60309-py2.7-linux-x86_64.egg/EGG-INFO/scripts/macs2", line 57, in main
run( args )
File "/usr/local/lib/python2.7/dist-packages/MACS2-<IP_ADDRESS>60309-py2.7-linux-x86_64.egg/MACS2/callpeak_cmd.py", line 264, in run
peakdetect.call_peaks()
File "PeakDetect.pyx", line 105, in MACS2.PeakDetect.PeakDetect.call_peaks (MACS2/PeakDetect.c:1704)
File "PeakDetect.pyx", line 177, in MACS2.PeakDetect.PeakDetect.__call_peaks_w_control (MACS2/PeakDetect.c:2216)
AssertionError: slocal can't be smaller than d!
Traceback (most recent call last):
File "/usr/local/bin/macs2", line 5, in
pkg_resources.run_script('MACS2==<IP_ADDRESS>60309', 'macs2')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1394, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/MACS2-<IP_ADDRESS>60309-py2.7-linux-x86_64.egg/EGG-INFO/scripts/macs2", line 617, in
main()
File "/usr/local/lib/python2.7/dist-packages/MACS2-<IP_ADDRESS>60309-py2.7-linux-x86_64.egg/EGG-INFO/scripts/macs2", line 57, in main
run( args )
File "/usr/local/lib/python2.7/dist-packages/MACS2-<IP_ADDRESS>60309-py2.7-linux-x86_64.egg/MACS2/callpeak_cmd.py", line 264, in run
peakdetect.call_peaks()
File "PeakDetect.pyx", line 105, in MACS2.PeakDetect.PeakDetect.call_peaks (MACS2/PeakDetect.c:1704)
File "PeakDetect.pyx", line 259, in MACS2.PeakDetect.PeakDetect.__call_peaks_w_control (MACS2/PeakDetect.c:3344)
File "CallPeakUnit.pyx", line 1431, in MACS2.IO.CallPeakUnit.CallerFromAlignments.call_broadpeaks (MACS2/IO/CallPeakUnit.c:18287)
File "CallPeakUnit.pyx", line 1488, in MACS2.IO.CallPeakUnit.CallerFromAlignments.call_broadpeaks (MACS2/IO/CallPeakUnit.c:17664)
File "CallPeakUnit.pyx", line 1567, in MACS2.IO.CallPeakUnit.CallerFromAlignments.__chrom_call_broadpeak_using_certain_criteria (MACS2/IO/CallPeakUnit.c:18413)
File "CallPeakUnit.pyx", line 475, in MACS2.IO.CallPeakUnit.CallerFromAlignments.__pileup_treat_ctrl_a_chromosome (MACS2/IO/CallPeakUnit.c:6465)
ValueError: cannot resize this array: it does not own its data

Haven't seen such error before. Do you mind provide me a minimum dataset to reproduce such error?

Sure, we are having some issues with a server upgrade at the moment. I'll see if I can reproduce it, then forward whatever I have along.

I think this issue is being caused by an memory access error. I'm loading a rather large genome index to shared memory for alignments, and this problem only seems to happen when I don't purge it or have enough addition swap available prior to commencing with the next steps in the pipeline. So I'm thinking a heap is probably being over written by numpy that's still owned by the aligner shared memory object, or something funky like that.
However, I get a new error now, still at peak calling, where the output is "slocal can't be smaller than d". As I understand it slocal is an estimation of local 1Kb signal bias, and d is fragment length. When I look at the fragment length estimation calculated by macs2, it's something ridiculous like 12Kb, even when I manually stipulate the shift and extsize values. I've also tried using the -llocal option as well with similar results. I think it may have to do with the bam files I'm using, so I'm testing a few different parameters on a new set of data which previous analyses indicate is good. So I'll let you know when that finishes. If you have any suggestions in the meantime, specifically on how to troubleshoot this slocal error, I would be very grateful.
Thanks,
Marty

Ok, so an analysis with identical parameters as before but with the new bam files completed without error, so it has to be the bam file I was using previously. Whew! Though I had broke macs2 for a second. :D

Dear Tao Liu,
we are experiencing the very same error, since we updated from 2014 to 2015 version. Current version that we are trying with is <IP_ADDRESS>60309, with no luck.
We tried different versions of Numpy (1.9, 1.10), with no luck.
The PYTHON experts at our facility think that this line may be causing some trouble, but I am not fully sure about that (I am no numeric python expert):
https://github.com/taoliu/MACS/blame/master/MACS2/IO/CallPeakUnit.pyx#L475
Our analysis have been very limited for several weeks. I noticed that not every BAM causes this issue, and it is sort of nondeterministic (seems to happen easily on larger BAMs).
Here is a public data BAM to be tested:
https://bioinformatics.cineca.it//cast/files/2/1926/5757//file1.align.bam
Thank you in advance for your help,
Matteo

@mpallocc Sorry, I just saw your comment! I will test it and let you know.

@mpallocc I haven't seen errors while MACS2 calls peaks from the file1.align.bam your provided, with default parameters. I got 38K peaks and the header of xls file looks like:
This file is generated by MACS version <IP_ADDRESS>60309
Command line: callpeak -t file1.align.bam
ARGUMENTS LIST:
name = NA
format = AUTO
ChIP-seq file = ['file1.align.bam']
control file = None
effective genome size = 2.70e+09
band width = 300
model fold = [5, 50]
qvalue cutoff = 5.00e-02
Larger dataset will be scaled towards smaller dataset.
Range for calculating regional lambda is: 10000 bps
Broad region calling is off
Paired-End mode is off
tag size is determined as 42 bps
total tags in treatment: 34410327
tags after filtering in treatment: 28451060
maximum duplicate tags at the same position in treatment = 1
Redundant rate in treatment: 0.17
d = 178
alternative fragment length(s) may be 178 bps
My guess is that, perhaps in some cases you included many non-standard chromosomes in your BAM file and if the data on certain chromosome such as chr19_gl000209_random is too few, MACS2 may have issue to handle it. I will try to fix this potential problem. But at the meantime, a quick fix for your data analysis is to filter out all non-standard chromosomes.

Dear @taoliu ,
thank you so much for your help. I am trying right now what you suggested. I was so convinced that it was a bug on the code side that I didn't check deepily the issues on my data, since it was a bit non-deterministic. I'll keep you updated on this.

@mpallocc Hope the commit 24a1eab solve the issue

Dear Tao,
thank you! I will try to test this on the cluster as soon as possible. In the meantime, unfortunately removing the chrUn* from my sample didn't help :(

for alignment can you try using a non-patched primary assembly then
proceed with peak calling? e.g.,
ftp://ftp.ensembl.org/pub/release-84/fasta/homo_sapiens/dna/Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz
On 05/19/2016 11:33 AM, mpallocc wrote:

Dear Tao,
thank you! I will try to test this on the cluster as soon as possible.
In the meantime, unfortunately removing the chrUn* from my sample
didn't help :(
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/taoliu/MACS/issues/122#issuecomment-220380389

i believe the twobit hg assembly files from ucsc are also unpatched, if
you prefer that.
On 05/19/2016 11:47 AM, Marty wrote:

for alignment can you try using a non-patched primary assembly then
proceed with peak calling? e.g.,
ftp://ftp.ensembl.org/pub/release-84/fasta/homo_sapiens/dna/Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz
On 05/19/2016 11:33 AM, mpallocc wrote:

Dear Tao,
thank you! I will try to test this on the cluster as soon as
possible. In the meantime, unfortunately removing the chrUn* from my
sample didn't help :(
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/taoliu/MACS/issues/122#issuecomment-220380389

@mpallocc Have you tested the new code? If you have any question, please let me know. Since I can't reproduce the error you saw, I purely depend on users' feedback including you :)

Dear Tao,
I just finished my tests, thank you for your patience.
Finally, macs2 doesn't crash anymore! This is a massive relief for us :)
During the execution, during the peak calling step, a warning is raised:
INFO  @ Mon, 23 May 2016 21:50:53: #3 Call peaks for each chromosome...  Exception ValueError: 'cannot resize this array: it does not own its data' in 'MACS2.IO.CallPeakUnit.clean_up_ndarray' ignored Exception ValueError: 'cannot resize this array: it does not own its data' in 'MACS2.IO.CallPeakUnit.clean_up_ndarray' ignored Exception ValueError: 'cannot resize this array: it does not own its data' in 'MACS2.IO.CallPeakUnit.clean_up_ndarray' ignored Exception ValueError: 'cannot resize this array: it does not own its data' in 'MACS2.IO.CallPeakUnit.clean_up_ndarray' ignored Exception ValueError: 'cannot resize this array: it does not own its data' in 'MACS2.IO.CallPeakUnit.clean_up_ndarray' ignored Exception ValueError: 'cannot resize this array: it does not own its data' in 'MACS2.IO.CallPeakUnit.clean_up_ndarray' ignored INFO  @ Mon, 23 May 2016 22:00:13: #4 Write output xls file... file1.peaks_macs2.macs2_peaks.xls
But the code does not crash and I compared the peak sets found from previous analyses, I have an overlap from 95% (Transcription Factor) to 100% (Histone Modifications), that is likely due to other MACS2 updates from the end of 2015.
I don't know whether we should worry or not about the numpy exception.. anyways, THANK YOU!

@blikzen Thanks for your feedback! Good to know! It seems that I have to do more checks to eliminate such warnings... If you have a small bam file that I can reproduce such error/warning, please share with me.

Reopen since user reported the 'owndata' warning still exists.

@taoliu no problem, unfortunately i dont still have the bam file that was causing the issue. i can try to replicate it as i think it was either an issue with patched alignments or unsorted bam files.

Dear Tao and Bliz,
I think it's really hard to reproduce the problem, since with the very same bam files I had no problem with my own PC, while it crashed on the cluster on the previous versions. I think It should be related to multiple numpy processes/threads and memory usage on a several nodes. I still think it's not input-specific related, that's why I wrote "kind of non-deterministic".

@taoliu I am experiencing the same errors with MACS2/<IP_ADDRESS>60309 and it does not depends on the input bam files, as different samples will crash at each run on the HPC cluster (python/2.7.11, numpy/1.6.2). As mpalloc noted, the problem seems related to ressource sharing, since it occurs only when multiple MACS2 processes run on the same node. I've switched back to MACS2/<IP_ADDRESS>40616 and this error does not happen.

Figured it out. The issue is caused by root file permissions on the default temp directory (/tmp/) specified in MACS2. You can either mess around with the ownership and permissions for the root temp directory, or preferably set the temp directory to a path owned by the user launching the MACS2 process using the --tempdir [path] command line option.

@lajoimat, @taoliu I also get this error on some files with  MACS2/<IP_ADDRESS>60309 on HPC cluster ( python 2.7.13, numpy 1.12.1). Haven't tried MACS2/<IP_ADDRESS>40616  yet. It cannot be related to tmpdir, I force custom tmp dir using --tempdir option


A problem about code splitting

Nodejs version: 6.2.1
webpack version: 1.13.3
I use React + React-router in my project and with webpack code splitting.
But the below code do not splitting:
childRoutes: [
    ...['page1', 'page2'].map((p) => {
        return {
            path: p,
            getComponent(nextState, callback) {
               return require.ensure([], (require) => {
                  return callback(null, require('./' + p + '.js'));
               });
            }
        };
    })
]

If I write code for every page, it's work well.
childRoutes: [
  {
     path: 'page1',
     getComponent(nextState, callback) {
         return require.ensure([], (require) => {
             return callback(null, require('./page1.js'));
         });
     }
  },
  // page2 route
]

It looks like you just deleted our lovely crafted issue template. It was there for good reasons. Please help us solving your issue by answering the questions asked in this template. I'm closing this. Please open a new issue with filled issue template. Also make sure your issue is not a question. Questions should be posted on Stack Overflow.


./gradlew refreshVersionsCatalog

Closes #169
Closes #333

The main thing missing is a doc on how to migrate an existing project to refreshVersions + (dependencyNotation | versionsCatalog | buildSrc)
We can do a pair-programming session this week-end if you want

Not part of this pull request:

the task refreshVersions should update the metadata ## unused
the task refreshVersionsMissingEntries does not yet add entries for the plugins I had to do it manually in https://github.com/kotest/kotest/pull/2280

the task refreshVersionsMissingEntries now does add entries for the plugins 🎉
That one was hard

We decided to not merge that for now


Start over commandline doesnt accept spacings

Starting Tsugaru_CUI.exe with commandline  only accepts paths without any Spaces in the paths

need to quote paths contain spaces with "".
for example:
.\build\x64-Release\main_cui\Tsugaru_CUI.exe "..\fm towns\rom" -CD "..\fm towns\images\file with space.iso"

oh thx


Proposal of moving resources to a new (existing) resource module

When going through the DSC Resource Kit I have seen a lot of resource modules, many with just a single resource, that could be moved to another repository.
Moving these resource would, I think, reduce work when having fewer resource modules to maintain. I also think it would be simpler for the community discuss resources if those that fit together was in the same resource module.
Below is a suggestion how we could move this. It's open for discussion, and please comment on this if I have missed a resource, or if you see any issues with moving a particular resource.

Done
Resource
Resource(s)
Move to
Comment

:heavy_check_mark:
xPendingReboot
xPendingReboot
ComputerManagementDsc
Discussed in https://github.com/PowerShell/xPendingReboot/issues/12.

:heavy_check_mark:
xWinEventLog
xWinEventLog
ComputerManagementDsc

:heavy_check_mark:
xPowerShellExecutionPolicy
xPowerShellExecutionPolicy
ComputerManagementDsc

In progress
SystemLocaleDsc
SystemLocale
ComputerManagementDsc
Discussed in https://github.com/PowerShell/SystemLocaleDsc/issues/14 and https://github.com/PowerShell/ComputerManagementDsc/issues/50. LanguageDsc is being moved into ComputerManagementDsc (https://github.com/PowerShell/ComputerManagementDsc/pull/160) which will supersede SystemLocaleDsc. Deprecate SystemLocaleDsc once PowerShell/ComputerManagementDsc#160 is merged

--
xDismFeature
xDismFeature
ComputerManagementDsc

:heavy_check_mark:
xRemoteDesktopAdmin
xRemoteDesktopAdmin
ComputerManagementDsc
PR https://github.com/PowerShell/ComputerManagementDsc/pull/227

--
xWindowsRestore
xSystemRestore, xSystemRestorePoint
ComputerManagementDsc

--
xWindowsEventForwarding
xWEFCollector. xWEFSubscription
ComputerManagementDsc

:heavy_check_mark:
xTimeZone
xTimeZone
ComputerManagementDsc

--
xSystemSecurity
xFileSystemAccessRule, xIEEsc, xUAC
ComputerManagementDsc

:heavy_check_mark:
xSmbShare
xSmbShare
ComputerManagementDsc

--
xPhp
xPhpProvision
xWebAdministration
I thought that this resource needs IIS on Windows so that would make it fit into xWebAdministration.

Great list @johlju - very much inline with what I would like to do.
There is a couple of other issues where moving resources into ComputerManagementDSc:
https://github.com/PowerShell/ComputerManagementDsc/issues/127
https://github.com/PowerShell/DscResources/issues/288
@ld0614 had suggested that he could add his Language Module to ComputerManagementDsc (https://github.com/ld0614/LanguageDsc), superseding SystemLocaleDsc. @ld0614, are you still interested in doing this? I think the language module contains a lot more functionality than the SystemLocaleDsc one. @Johlju - what do you think?
@ld0614 - your module looks like it has some really great functionality. Needs a few tweaks to make it HQRM, but nothing we can't get sorted easily enough.

@PlagueHO @Id0614 I forgot about the discussion around LanguageDsc. If LangagueDsc makes SystemLocaleDsc then I think we just deprecate SystemLocaleDsc once LanguageDsc is merged into ComputerManagementDsc (if @ld0614 is still up for it).

I'm still up for merging LangaugeDSC into ComputerManagement, that last time we spoke about it, ComputerManagement was close to changing its name so I was waiting for the name change to avoid needing to rename the LanguageDSC resources just to rename them a month or two later.  If thats not really an issue or the work is taking longer than anticipated that I'm quite happy to start the merge process.

Hi @ld0614 - the name change to ComputerManagementDsc is completed :grin: It was even released to the PSGallery. https://github.com/PowerShell/ComputerManagementDsc

Whoops, I missed that one :blush: I'll do a review of the HQRM guidelines tomorrow and raise a PR to start the merge process

Still working on these!

Relabeled this one to help wanted so the community know that anyone can help with these, and labeled it enhancement so the issue doesn't autoclose. Two finished so far. 😃

xSmbShare has been moved, and xRemoteDesktopAdmin is in progress. If someone else want to move resources, please feel free to do so. Have in mind though that it is a lot of work making the resource high quality (it is often not just moving 1:1).

I'm planning on doing xPendingReboot - I think I stuck my hand up for that a while ago. Something I might get onto over the weekend if I can.

Getting onto xPendingReboot now.

@johlju - can you mark PendingReboot as done? I'll submit a PR to this repo shortly to update the resource list.

@johlju - also, xWinEventLog has been completed. So you could update that one in the list too.

Done

I'll probably move SystemLocaleDsc next (when I get time).

Didn’t LanguageDsc override SystemLocaleDsc? See comment column above on that.

Better to pick up LanguageDsc PR and move it over the finish line?

Yes true - forgot about that one!

What's about this one:
https://github.com/microsoft/SChannelDsc
Should we integrate it into ComputerManagementDsc as well?

Might have been a good idea, but there are this module that was recently added https://github.com/dsccommunity/SChannelDsc not sure if it the one you linked to that have been moved there. 🤔

This seem to be the same.

When we have moved ComputerManagementDsc over to DSC Community we could raise the question again? Maybe there are good reasons to keep this one separate. But I could see it in ComputerManagementDsc. 🤔

Sure 👍

I'm OK with moving it in here but as it is 5 resources and they're all related to security suites it might not  be a good idea. It sort of makes sense to keep the 5 of them bundled together on their own I think?

There might be a better idea to move it so a "ComputerSecurityDsc" or something instead together with xSystemSecurity. Or call it SystemSecurityDsc and moce SChannelDsc there too. 🤔
The main reason to concatenate modules was to easy the release process, not needing to manually release so many modules. But since we are moving the modules over to @dsccommunity and implementing a release pipeline in each module that main reason is no longer valid. So if we choose to concatenate modules it would be because of some other reason, for example not needing to download different modules, and easier for user to find resources and documentation in less places. 🤔


Support for ROS2 Humble

This compiles now for me locally (and on the CI). There is a separate change needed for the motion_capture_package, which I'll also push today hopefully.

Hi!
Let me know if you have pushed the fix for motion_capture_package (or what the fix is) and I'll give it a whirl on my 22.04 dual boot.

I pushed it last night (and enabled the CI for humble there as well).

Thanks for checking!


Implement g:lightline#bufferline#show_basedir

Since I do quite a lot of front-end development such as React the general structure we mostly use is components/<component-name>/index.jsx and when I have multiple files open they all show index.js because I've set let g:lightline#bufferline#filename_modifier = ':t'. I always like to have the basedir of the current buffer with it so I know which component I'm working in. I've had colleagues at several companies who also preferred this setup.
Given
/Users/<name>/projects/<project-name>/index.js

Using the following settings:
let g:lightline#bufferline#filename_modifier = ':t'
let g:lightline#bufferline#show_basedir = 1

It will result in: <project-name>/index.js.
Let me know if I'm missing anything that requires to be updated in the documentation parts before the PR is valid. Thanks in advance.

I think you can achieve the base dir functionality without modifying the code with these settings:
let g:lightline#bufferline#shorten_path = 0
let g:lightline#bufferline#filename_modifier = ':p:gs?[^/]\+/[^/]\+/??:s?^/??'

I think you can achieve the base dir functionality without modifying the code with these settings:

This doesn't work for me.

You are right. After some more testing I noticed the regex did not work in all cases.
I reworked the regex and the following settings should work, please test them:
let g:lightline#bufferline#shorten_path = 0
let g:lightline#bufferline#filename_modifier = ':p:gs?/\([^/]\+/\)*\([^/]\+/[^/]\+\)$?\2?'

Works as expected. I'll close this PR. Thanks for your time.

After many months I actually noticed this still doesn't work as expected, because the :p resolved it by prefixing the value with pwd which is not correct. If I open a file that's outside of my cwd then the folder being displayed is wrong. I am not sure if this is fixable with just the filename modifier.

@kkoomen did you update the lightline-bufferline plugin recently? I noticed that the settings to make the basedir variant work require disabling the new smart_path option now. Using the following settings the basedir is shown correctly for files in the cwd and outside the cwd:
let g:lightline#bufferline#shorten_path = 0
let g:lightline#bufferline#smart_path = 0
let g:lightline#bufferline#filename_modifier = ':p:gs?/\([^/]\+/\)*\([^/]\+/[^/]\+\)$?\2?'

Yeah I update my plugins automatically every week. let g:lightline#bufferline#smart_path = 0 did the trick! Many thanks.


Point to the 'release' folder for 'esm' and 'typings'.

@DanielRosenwasser That would be incorrect. The version coming in from npm does not have a release folder. https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.14.3.tgz


shutoff status not supported

The module throws an error when parsing something like:
build0X0Y                shutoff (libvirt)
Assigning and adding SHUTOFF to list of statuses fixes the issue. This is after running 'vagrant halt'
Is this a vagrant-libvirt specific status?

Argh!  I constrained status to only known state values for the sake of parsing.  I'm working on a fix that parses the --machine-readable command output, so I can lift this constraint.  That should fix this bug.

This should be fixed in version 0.5.5 which parses the --machine-readable output from Vagrant


Tried to bind an already bound type variable!

Aim
Trying to use the LSP with writing Aztec contracts.
Expected Behavior
The LSP should work automatically, or provide a more helpful error.
Bug
[Info  - 2:08:36 PM] Starting LSP client using command: /home/josh/.nargo/bin/nargo lsp
The application panicked (crashed).
Message:  Tried to bind an already bound type variable!
Location: compiler/noirc_frontend/src/hir_def/types.rs:433

This is a bug. We may have already fixed this in newer versions of Nargo so try searching for similar issues at https://github.com/noir-lang/noir/issues/.
If there isn't an open issue for this bug, consider opening one at https://github.com/noir-lang/noir/issues/new?labels=bug&template=bug_report.yml
[Error - 2:08:36 PM] Request textDocument/codeLens failed.
  Message: Request handler of textDocument/codeLens panicked: Tried to bind an already bound type variable!
  Code: -32603

To Reproduce

clone https://github.com/AztecProtocol/aztec-starter
Check the "Noir Language Server" from the drop down in the "Output" tab

Installation Method
None
Nargo Version
noirc version = 0.19.4+4d133c50a50f21ca23861a9d1987207bd8783d36
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response

noirc version = 0.19.4+4d133c50a50f21ca23861a9d1987207bd8783d36

Can you test on an up-to-date version of Nargo?

This works on my machine on current master for Nargo

Yea this is working for me on nightly. Sorry for the oversight.


Transform-feedback particle simulation engine example

new engine example
transform feedback integration with SpectorJS
error when transform feedback is used with non-interleaved buffer (has to be interleaved)

Did you test this runs on Safari?

Transform-feedback needs webgl2, so no Safari .. but it's handled by example and nothing renders (no crash).


[Request] Camera in the background

Hello there,
I would like to know if it is possible to render the camera in the background. While the HTML still being rendered on top.
I am also willing to pay for this feature to be added as i need this for a project.
Jarvis

Would like this feature too!

I urge the camera feature of the bottom please get in touch with me<EMAIL_ADDRESS>

What is the purpose? You can just hide the "popup" and still interact with it like taking pictures.

The purpose is to integrate this: https://software.intel.com/en-us/html5/articles/augmented-reality-mobile-app-with-html5 my app , show html content above the camera

i gonna commit this feature today. For ios.

And Android? Can You doing to Android too?

Please, check for the new version. I've added the feature for both platforms.
Docs and sample app have been updated.
For that to work, the webview background should be transparent. The background of the app will be black, but you can put some transparent PNG using CSS on the background to solve the visual.
If you have a better idea, please tell me. ;)

Thank you very much perfect, give me your mail for contact Greetings

When compiling Intel XDK shows me an error that the java class : CameraActivity.java use or overrides a deprecated API. Do you know why ? you have skype to be in direct contact?


Slider content donot show up on production

In local development the Slider is working fine but in production the slider is not showing up
I am using<EMAIL_ADDRESS>Production

Local Development

Code
import React from "react";
import "./ProductList.css";
import Product from "./Product";
import Slider from "react-slick";
import {
ChevronLeft as PrevArrowIcon,
ChevronRight as NextArrowIcon,
} from "@material-ui/icons";

function NextArrow(props) {
const {onClick } = props;
return (
   <NextArrowIcon  onClick={onClick} className="productList__nextArrow"/>
);
}

function PrevArrow(props) {
const {onClick } = props
return (
 <PrevArrowIcon onClick={onClick} className="productList__prevArrow"/>
);
}

const HorizontalSeparator = () => (

);

// configuration for carousel
let settings = {
dots: false,
infinite: true,
speed: 500,
slidesToShow: 5,
initialSlide: 0,
nextArrow: <NextArrow />,
prevArrow: <PrevArrow />,
responsive: [
 {
   breakpoint: 1024,
   settings: {
     slidesToShow: 5,
     slidesToScroll: 5,
     infinite: true,
     dots: true,
   },
 },
 {
   breakpoint: 600,
   settings: {
     slidesToShow: 3,
     slidesToScroll: 3,
     initialSlide: 3,
   },
 },
 {
   breakpoint: 480,
   settings: {
     slidesToShow: 1,
     slidesToScroll: 1,
   },
 },
],
};

const ProductList = ({ title, data ,styles}) => {
return (

 {title}

     <Slider {...settings} className="productList__row">
       {data?.map((item, index) => (

           <Product
             name={item.name}
             image={item.image}
             price={item.price}
             slug={item.slug}
             rating={item.rating}
           />
           {/* HorizontalSeparator should not follow after last item */}
           {index +1 !== data.length && <HorizontalSeparator />}

       ))}
     </Slider>

);
};

export default ProductList;

please can you please share with me the .productList__row css ?
it doesn't work with me as expected

@aashishshrestha5532 It is most probably an issue with your build system

@aashishshrestha5532 It is most probably an issue with your build system

How width is inlined to 0 in this case? @akiran

@aashishshrestha5532 Maybe data is available after Slider rendering
Can you try this
const ProductList = ({ title, data ,styles}) => {
if (!data) {
   return null
}
return (

 {title}

     <Slider {...settings} className="productList__row">
       {data.map((item, index) => (

           <Product
             name={item.name}
             image={item.image}
             price={item.price}
             slug={item.slug}
             rating={item.rating}
           />
           {/* HorizontalSeparator should not follow after last item */}
           {index +1 !== data.length && <HorizontalSeparator />}

       ))}
     </Slider>

@akiran I am seeing the same issue. The data is there and the markup is generated but it's not showing the items because the slides widths are being set to 0px.
If I manually alter the slides width in the dev tools then the width is recalculated and they show up.
In our case we are pulling the data for the slide from a client side API on page load. So I suspect this is happening because the images haven't finished being loaded before the slide widths are being calculated.
Is there any way to force the slider to recalculate after the images have loaded?
I'm not seeing anything in the examples and there doesn't seem to be all the events/methods of the original slick slider has.
Effectively it would be good to be able to do something like the original does $('.slider-class').slick('setPosition'); (https://stackoverflow.com/questions/31955382/slick-carousel-has-0px-width-when-loaded-in-collapsed-tab/32107099#32107099) but I'm not sure if there is another way to achieve the same effect.

Moving the css imports to the same file as the component fixed this error for me.


refactor: move cogs to the main library

Summary
This PR moves many cog features like names, descriptions, and listeners from ext.commands over to the core library. This also migrates cog functionality from commands.Bot to nextcord.Client.
However, even though listeners were brought in from commands.Cog, it has 0 functionality in nextcord.Client. I plan to either add that functionality into this PR or open another PR to add it in.
Closes #393.
Checklist

[ ] If code changes were made then they have been tested.

[x] I have updated the documentation to reflect the changes.
[ ] I have run task pyright and fixed the relevant issues.

[ ] This PR fixes an issue.
[x] This PR adds something new (e.g. new method or parameters).
[x] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[ ] This PR is not a code change (e.g. documentation, README, ...)

I am not too sure on if commands.Cog -> commands.CommandCog is necessary, both are in separate modules to nextcord.Cog, seems like an unnecessary breaking change.

I am not too sure on if commands.Cog -> commands.CommandCog is necessary, both are in separate modules to nextcord.Cog, seems like an unnecessary breaking change.

I thought it would be confusing if I had two classes with the same name, but since they are in "different" modules I realize now that it should be fine

This fails to load a simplistic cog I'd expect to work: Main: https://workbin.dev/?id=1664633956624160 Cog: https://workbin.dev/?id=166463398386748 Error: https://workbin.dev/?id=166463399413683
The listener it errors on is <function Cog.cog_application_command_before_invoke at 0x7faa9a5c5f30>

Fixed in 519fbfd

a655d3e is a little messy, but it's the only solution I could come up with that doesn't have static type checker errors or runtime errors.

@TAG-Epic @ItsAleph Can you explain why you disliked this PR? Just disliking it without any message on why is not helpful.

@ItsAleph Can you explain why you disliked this PR? Just disliking it without any message on why is not helpful.

If i understand correctly, the original point for moving cogs outside of ext.commands was due to forcing users to use ext.commands. I agree with that point as-is, but i don't quite see where it comes from? Can't you just not use all @commands.*command decorators and utilize @commands.Cog.listener for handling interactions/messages manually (like you would without cogs, i suppose)? If that's a matter of namespaces, then why not move it to, e.g., ext.cogs? I am strongly against merging this directly into the main lib, as (to me, at least) it's purpose is to implement the API itself, while extensions are, well, extensions to it, whatever they're "extending".

Maybe just nextcord.cogs? I do agree for not filling the main namespace, but ext is a bit misleading and I personally dislike the idea of ext and how it happens to also have "extensions" 'by default'.

Maybe just nextcord.cogs? I do agree for not filling the main namespace, but ext is a bit misleading and I personally dislike the idea of ext and how it happens to also have "extensions" 'by default'.

This is a better idea, and it resolves the issue with making ClientCog an alias to this new cog. Because we don't want to import an extension inside of the main library.

@EmmmaTech care to take a crack at the merge conflicts?

I haven't touched this PR because I wasn't sure if I wanted to keep cogs in 3.0 or replace them with a different solution like plugins. I'm not sure if we should go this route or just keep cogs and make a separate extension for plugins (exactly like disnake.ext.plugins, or get that to support nextcord natively).

This is very true. We could just remove cogs in 3.0 and replace them with something better

Yup, I created a draft branch for the plugin concept, but I didn't open a PR for it since I wasn't sure whether we should go in the plugins direction.

Provided it is actually advantageous compared to cogs and well documented enough I don't see why not

I have decided to finally close this pr in favor of my in-progress plugins implementation.


Docker containers instead of webcontainers

Describe the problem:
I encounter limitations with the current web container setup, particularly when trying to utilize certain Python libraries that are essential for application. These limitations often lead to compatibility issues and hinder ability to leverage the full potential of Python's ecosystem, resulting in increased development time and complexity.
Describe the solution you'd like:
I would like to propose the implementation of Docker containers as a replacement for the existing web containers. Docker offers a more flexible and isolated environment, allowing to easily manage dependencies and utilize a wider range of Python libraries without facing compatibility issues. This change would streamline development process, improve deployment consistency, and enhance application's performance by ensuring that all necessary libraries are included in the container.
Additional context:
Implementing Docker would not only resolve current limitations but also align with modern development practices. Additionally, Docker's portability means that applications can run consistently across different environments (development, testing, production), reducing the risk of environment-related bugs.

I want to add on this: there could even be Kubernetes support. An increasing number of companies and also individuals with homelabs have started to embrace Kubernetes clusters. The LLMs also have varying knowledge of Kubernetes, they can at least set up basic deployments, jobs, statefulsets etc.

Kubernetes is overkill at this stage.  However, yes Docker containers would be amazing (I'm a DevOps guy).  I can assist here a bit, seems like the Docker side of this repo is a bit messy already.  Before I go down a rabbit hole, has anyone done work on this already?  There are DevContainers out there already but I don't know this non-container WebContainers thing works.  So porting it over wouldn't be easy for me.

any update or progress on this?


Can't Click on horizontal Stacks due to iPhone nav bar

Hello,
As shown in the picture- I am unable to click any of the navigation buttons at the bottom of the screen on an iphone in the official companion app- it simply tries to bring up the home bar. Is there a way to adjust the vertical padding for iPhones? Or is there a setting im missing? Thank you!

Hi and thanks for your feedback, is it working on desktop?
If yes, you can just edit this margin by adding this in your horizontal buttons stack YAML:
styles: |
  .card-content {
    bottom: 32px !important;
  }


Multiply events history

Display Multiply Events in history for MPA Vaults
Changes 👷♀

Display 5 MPA history events: open multiply vault, increase multiple, decrease multiple, close to collateral, close to Dai.
Hide corresponding vat events (Deposit, generate, withdraw, payback)
calculate necessary values on frontend, including accumulating value of collateral and debt

!! Warning this solution uses fixed liquidationRatio fetched on frontend for current block. This should be changed when Oasis Borrow Cache starts returning this value per each event.
Definition of done ✔

[ ] Acceptance criteria for each issue met
[ ] Unit tests written where needed and passing
[ ] End-to-end tests for happy path
[ ] Documentation updated
[ ] Project builds without errors
[ ] Non-functional requirements met
[ ] Code reviewed and functionality tested by the reviewer (locally, Heroku, etc.)
[ ] Feature verified and accepted by Product Owner
[ ] Project deployed to production environment

https://oazo-bcache-mainnet-staging.new.oasis.app/api/v1

you can try updating api endpoint to new cache


change date behaviour on Windows

os:
0.22.0

Expected behavior
I use lsd as a replacement for dir on  Windows 11 inside Windows Terminal 1.14. When I try to update the data format I keep getting errors that the date value I use is invalid. I'm either not using the correct format or Windows is not fully supported to have a configurable date format.
C:\Users\danie>lsd --date+"%Y.%m.%d-%H.%M"
C:\Users\danie>lsd --date+'%Y.%m.%d-%H.%M'
C:\Users\danie>lsd --date+%Y.%m.%d-%H.%M

error: Invalid value for '--date <date>...': possible values: date, relative, +date-time-format

I would like to user a shorter date format as is used by dir.
2022/07/28  15:23

Try this lsd -l --date +%Y.%m.%d-%H.%M
I've tested it. It should work.
Note: use -l to make it show date

I see what I did wrong. Thanks. Also, in the config I made the line look like
date: date '+%Y.%m.%d-%H.%M'
which did not work but I've now seen what needs to be done. The second date was not needed.
Thanks for the assistance.


ARM64 assembler ignores address of assembled instruction.

Version and Platform (required):
3.5
Bug Description:
The assembler is ignore the address at which the assembling should occur.
Steps To Reproduce:

Run BinaryNinja
File -> New Binary Data
Enter bytes: 1f 20 03 d5 1f 20 03 d5 1f 20 03 d5 1f 20 03 d5 (four nop instructions)
Create aarch64 function at address 0 (hotkey "P")
With cursor at address 0, Edit -> Assemble, then "bl 0x1000" it emits encoding 0x00040094
With cursor at address 4, Edit -> Assemble, then "bl 0x1000" it emits encoding 0x00040094

Expected Behavior:
The assembled instruction is PC-relative, so it should not have the same encoding. The second instruction at address 4 should be encoded 0xff030094.

Thank you for the bug report. Unfortunately this is a limitation of LLVM which we are using for many of our assemblers.
The recommended workaround is to install and use the keypatch plugin from the plugin manager:

In the future we will release a more official plugin.

Dude are you okay?

We use public issues to relate the state of internal discussions on features and fixes quite frequently. It's not uncommon to see one Vector35 person post an issue and end up resolving it differently after we've talked about it in more detail internally.
In this case I think Andrew was posting the issue on behalf of someone else originally who he is thanking which does sound a bit strange without that context. :-)

Dude are you okay?

Hah while I do sometimes talk to myself, what's happening is someone will briefly report a problem on slack, and I'll promote it to an official github issue and give them the link so they can track its status. I assume they're reading it, or will read it when it's closed. So yes, as psifertex explained, this is an issue posted on behalf of someone else.


Include unity-control-center for high-DPI screens

Closes sans-dfir/sift#58, at least for the bootstrap.sh file. Note this will still need to be fixed in deployed SIFT versions.
Yes, I accidentally made a pull request against my own fork before doing this. I blame a lack of sufficient sleep and caffeine.

Looks good to me. Thanks for the pull request. The SIFT VM is built using the bootstrap script, so next build of it we do this will be in there.

Great, thanks! Chad asked me to take a look at high-DPI issues a few students were having, and I figured a pull request was a good answer. I'm a big fan or your work, Erik! :)


BUGFIX: Remove running balance when going to All Accounts

My logic wasn't removing the column from all accounts if coming from another account.
This fixes it.

Thank you!


Added a check for private subnets in non-privatelink clusters

In this commit, I added a check to find private subnets in a non-privatelink cluster. In the code I check whether a subnet is public with isSubnetPublic function that checks if the RouteTable for the subnet has a default route to <IP_ADDRESS>/0.

/hold

cancel /hold

/hold cancel

Ran into this while on-call today. Any chance we can get this merged soon? @aliceh

I'll look at it today.

As an FYI, this is the CAD implementation: https://github.com/openshift/configuration-anomaly-detection/pull/276/files

/lgtm


Custom Index scan

Exciting to see this! I'm happy to re-run my benchmarks as soon as there is a build on Hydra Cloud that I can test.


OTG crash and bugs teleporting to a swamp biome

[x] OTG Mod for Forge
[X] 1.12.2_v8_r6
Forge: <IP_ADDRESS>46

Here is a full crash log with the same error from a different occasion that also features my full mod list.
https://pastebin.com/JZAcDthq
What happens: I teleport to a Swamp biome, get a error in the server log, and no resources generate from there on out.
What I expected: I expected resources to spawn.
Error log: https://pastebin.com/22jjMKcg
EDIT: Turning off vine generation completely fixes this issue. The code in question: Vines(10,10.0,63,256)

Hey @mensreaMC , thanks for reporting this and looking into it.

This needs to be tested and confirmed for v8.3 or higher.

Tped to a lot of swamps(spooky, large and swamp and swamp M) on 50+ worlds and havent happend for me once on 1.12.2_-_v8.3_r4

Thanks for testing @Ezoteric ! Closing this, feel free to reopen if the problem still occurs.


HA deprecated constant which will be removed in HA Core 2025.1

Describe the bug
Warning in home assistant  that needs some attention
Firmware of your Miniserver
<IP_ADDRESS>
HomeAssistant install method
Hassio
Version of HomeAssistant
Core 2024.1.1
Supervisor 2023.12.0
Operating System 11.3
Version of Pyloxone
0.4.12
Update pyloxone
yes
Log
Entity None (<class 'custom_components.loxone.climate.LoxoneRoomControllerV2'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature.TARGET_TEMPERATURE|PRESET_MODE: 17>, please create a bug report at https://github.com/JoDehli/PyLoxone/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
PRECIPITATION_MILLIMETERS was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPrecipitationDepth.MILLIMETERS instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues
SPEED_KILOMETERS_PER_HOUR was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfSpeed.KILOMETERS_PER_HOUR instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues
TEMP_CELSIUS was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues
TEMP_FAHRENHEIT was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.FAHRENHEIT instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues
FORMAT_NUMBER was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use CodeFormat.NUMBER instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues
FORMAT_TEXT was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use CodeFormat.TEXT instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues
SUPPORT_ALARM_ARM_AWAY was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_AWAY instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues
SUPPORT_ALARM_ARM_HOME was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_HOME instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues
SUPPORT_PRESET_MODE was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.PRESET_MODE instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues
SUPPORT_SET_POSITION was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.SET_POSITION instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues
SUPPORT_STOP was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.STOP instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues
SUPPORT_OPEN_TILT was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.OPEN_TILT instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues
SUPPORT_CLOSE_TILT was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.CLOSE_TILT instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues
SUPPORT_SET_TILT_POSITION was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.SET_TILT_POSITION instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues
SUPPORT_TARGET_TEMPERATURE was used from loxone, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE instead, please create a bug report at https://github.com/JoDehli/PyLoxone/issues

updated to the lastest pyloxone version today
all other warning are fixed only the ones  below

Entity None (<class 'custom_components.loxone.light.LoxonelightcontrollerV2'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature.EFFECT: 4> and color modes, please create a bug report at https://github.com/JoDehli/PyLoxone/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
Entity None (<class 'custom_components.loxone.light.LoxoneDimmer'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature: 1> and color modes, please create a bug report at https://github.com/JoDehli/PyLoxone/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
Entity None (<class 'custom_components.loxone.light.LoxoneColorPickerV2'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature: 19> and color modes, please create a bug report at https://github.com/JoDehli/PyLoxone/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

@JoDehli  updated to version 6
still one warning left
Entity None (<class 'custom_components.loxone.light.LoxoneColorPickerV2'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature: 19> and color modes, please create a bug report at https://github.com/JoDehli/PyLoxone/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

@elRadix we have enough time to fix it. There are a lot more deprecated warnings coming in the future. This is really annoying in homeassistant that they change these things so often.
So I will remove them from time to time.

no worries, thank you anyhow for all the effort
maintaing it is not easy, home assistant is moving too fast lately


Mi matrix

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

65 of 68 (95.59%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 88.841%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

smt/utils/kriging_utils.py
18
19
94.74%

smt/applications/mixed_integer.py
37
39
94.87%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
4952

Relevant Lines:
5574

💛  - Coveralls


feat: use Garaga for EC Operations

Feature Request
Investigate usage of Garaga for EC Operations in ZK precompiles.
https://felt.gitbook.io/garaga

Please I will like to work on this?


[Request] Publish on crates.io

It would be much simpler to use the rust bindings if they were published on crates.io.

Done!


HTTPS for Lava REST API

Which is correct? https://github.com/cosmos/chain-registry/pull/4400

Appreciate the correction, adding secure is preferable to removing the endpoint and I assumed it was insecure

Added SSL for Lava REST API endpoint, please merge with https.


Update README

Update README.md
Description
The README.md file needs to be updated to accurately reflect the current state and purpose of the Kolektivo web app project.
Current Issues

Outdated project description.
Missing or outdated installation instructions.
Lack of clear contribution guidelines.
Missing or outdated usage instructions.
Outdated links or references.

Tasks

Update the project description to clearly define the Kolektivo web app's purpose and features.
Review and update installation instructions to ensure they are current and accurate.
Add or update contribution guidelines to help new contributors get started.
Update usage instructions to reflect any recent changes or enhancements.
Check all links and references in the README.md file and update them as necessary.
Add any new sections that would be beneficial, such as a FAQ or Troubleshooting guide.

Additional Notes

Ensure the README.md is concise and well-organized.
Use markdown formatting for better readability.
Include screenshots or diagrams if they help to clarify instructions or concepts.
Seek feedback from the team to ensure all relevant information is included and accurate.

Updated the README


docs improvement (mini.surround)

Contributing guidelines

[X] I have read CONTRIBUTING.md
[X] I have read CODE_OF_CONDUCT.md
[X] I have updated 'mini.nvim' to latest version

Module(s)
mini.surround
Description
Looks like MiniSurround.user_input() already adds ": ", so these examples lead to double ::
https://github.com/echasnovski/mini.surround/blob/99eb6175801434d26496e81e47632d4e4543994a/doc/mini-surround.txt#L573
https://github.com/echasnovski/mini.surround/blob/99eb6175801434d26496e81e47632d4e4543994a/doc/mini-surround.txt#L578

Thanks for noticing this! Should be fixed on latest main.


Yew stops propagation of events by default

Problem
It's unusual that Yew chooses to stop propagation of events by default. This should be either documented if it was done for optimization reasons or removed and left to the developer to take action on

Since 0.1.0! https://github.com/yewstack/yew/commit/a91a23196b3352d6f84865682e8589780bea680d

Ha, I'm surprised you were the first person to bring this up

This has now bit me in the behind too. I'm currently using a UIkit for my menues and other stuff. Instead of implementing it all on my own using yew, I figures a hybrid approach would be easiest. But now I can't register click-events without stopping UIkit from responding to user events.
What do you advice? Should I wait for you to change this, or should I find another way do implement my menues and other UI components??

@alex-caelus dang, sorry to hear that! I just opened a PR to remove this, should be merged to master shortly

Just want to say that the fix works for me! Thank you for your rapid response!


The link to manage albums does not open on Mobile

Getting redirect to https://imgur.io/account/{username}/albums
and the following error:
{
  "data": {
    "error": "Imgur is temporarily over capacity. Please try again later."
  },
  "success": false,
  "status": 500
}

Most probably it's because of 'localhost' Origin or Referer headers. There was the same issue on attempt to use fetch API on mobile (see my comment here)


[Enhancement] Screen Transition

Summary
To provide a way to make specific transition from Screen A to Screen B, using new Navigation for example AnimatedNavigation ("new AnimatedNavigation(new SomePages())") and in specific Screen could determine the transition type like Fade, SlideFromTop, SlideFromRight, SlideFromBottom, SlideFromLeft and etc
Intended Use Case
It will be used when we need to make same transition between Android & iOS. And for example if we using TabView, click the details of TabViewContent then we can using transition "SlideFromBottom" to make it beauty.
Who Will Do The Work?

[ ] I am willing to take this on myself
[x] Just putting this out there for someone to pick up

Thank you XCT!

Thanks! However, we are no longer adding new features to Xamarin Community Toolkit, focusing on the .NET MAUI Community Toolkit.
Please open a New Feature Discussion to implement this feature in the .NET MAUI Community Toolkit.
I've posted more information about the Future Of Xamarin Community Toolkit here: https://devblogs.microsoft.com/xamarin/the-future-of-xamarin-community-toolkit/?WT.mc_id=mobile-0000-bramin


The retry request of PutBucket will behave differently between regions.

Describe the bug
For instance, if a PutBucket succeeds in the remote but then transient network errors happen, a transient error code may be returned (e.g., 503) to the client. So the SDK retry mechanism will retry the same PutBucket operation again (send another retry request whose "amz-sdk-request" header value would be "attempt=2; max=5").
However, we noticed that the retry request would behave differently when sent to different regions.

If the retry request of PutBucket is sent to us-east-1, the response will be 200 OK. (idempotent behavior)
However, if the retry request of PutBucket is sent to us-east-2, the response will be 409 with "Your previous request to create the named bucket succeeded and you already own it". (Non-idempotent behavior)

Expected Behavior
The behavior of the retry request should be consistent.
Current Behavior
If I use the us-east-1, the retry request of PutBucket will be idempotent.
If I use the us-east-2, the retry request of PutBucket will be non-idempotent.
Reproduction Steps
One way to reproduce is to trigger a retry request by changing the status code to retriable error codes (e.g., 503).
Possible Solution
No response
Additional Information/Context
Is this an erroneous server-side behavior?
AWS .NET SDK and/or Package version used
AWSSDK.S3 <IP_ADDRESS>
Targeted .NET Platform
.NET 6
Operating System and version
Windows 10 Pro

@rmt2021 Thanks for reporting the scenario. The possible for different behavior in us-east-1 region is due to legacy reasons and maintaining backward compatibility. We have seen similar issue in the past in other SDK(s) where similar behavior was observed.


iOS not work

When I try this on Iphone, it gives you the possible to select a contact, but there is nothing to share. It remains empty.

Noone can help you without code to look at.
Read this first: https://github.com/kriskbx/whatsapp-sharing/blob/master/ISSUES.md

Hello @kriskbx
Here is code
Share this on WhatsApp';

echo $btn;
?>

This code doesn't help: this is regular PHP and it simply echos out a string somewhere, it's not related to the library in any way.
Have you integrated the library into your website? Then provide us with a link to your site or paste the resulting code into a jsfiddle or something. I'm interested in the actual button html element as well as the inclusion of the js-library.

Hello @kriskbx
Here is code

Are you actually using the library? It seems like you don't, coz there are no data attributes and no classes on the a tag as it should be. If you want to use this particular library, then repeat all the installation steps here. If you dont't want to use the library and just want the url-scheme without any javascript overhead: make sure to encode your text and url with urlencode( $str );. One thing, though: your button will be displayed everywhere, even if the device doesn't support url-schemes or WhatsApp itself. So, in my opinion you should probably install this library.


Description is not saving on local docker instalation

Hi thanks for making Clearflask opensource.
There is an issue form clean install on docker-compose
when user goes to the /feedback and leaves the feedback description is ignored
also is there are some permissions for normal user to link ideas together? I got an error with "Not allowed to merge". If so I could not find it in /dashboard
thanks

Thanks for the bu report,there are two issues here:

when user goes to the /feedback and leaves the feedback description is ignored

This is a bug report I received before but can never track down, can you give more information on how you got this bug? Which browser do you use? Maybe some screenshots? It would be very much appreciated.

I got an error with "Not allowed to merge"

I fixed the issue, it will be released in the next few days with a minor release.

Oops didn't mean to close this. Please do give me more info on the first issue


[fix] call SS.config (x SS::Config

Coverage increased (+0.003%) to 83.639% when pulling 42098c9dcf227219127708c9440ede65c678b5d6 on tany:ss-config into eb4244a8153eb4b7d0d4636d4caeda1821d7bee3 on shirasagi:master.


Unnecessary Apply rule being applied for cases when apply is needed

Hi,
I found discovered an issue regarding adding the UnnecessaryApply rule.
It appears that this rule correctly covers the most basic cases where an apply block is used for only one statement such as the following:
textview.apply { visibility = View.VISIBLE }.
However, I noticed this is also flagging cases like the following, where the apply actually is needed multiple times but is only used in that manner in a nested block:
textview.apply {
    post {
        visibility = View.VISIBLE
        text = "Hello world!"
    }
}

The block above is flagged under this rule but the apply is actually being used inside the post block.
Looking at the commits where this rule was added: https://github.com/detekt/detekt/pull/1229, the rule seems to be only checking if the body of the outer lambda has one statement, but doesn't inspect anything nested within that statement

This doesn't seem like a false positive to me. You should use let instead of apply in this case.
The usage of apply is only encoraged if you are configuring an instance and then you get the instance. Example:
val paint = Paint().apply { color = RED }

In any other case the usage of apply is discoraged because you are changing this and a lot of issues can happen.
I know that we had this conversation before but I can't find the issue :(

Or, if you don't want to use the it. or name the parameter you can use with:
with(textview) {
    post {
        visibility = View.VISIBLE
        text = "Hello world!"
    }
}

And these are not worksrounds to the rule. They are actual fixes.


DX: small CS fixes

only PSR related

thanks for merging !
would you be fine to run PHP CS Fixer on CI level ? I could propose a PR for that

It's on my todo list, but there are things that should be done before.

can I help ?


Derelict sensor entities safe to delete?

Upgraded to 2.1.8. Noticed sensor.openevse_wifi_firmware_version is listed with a status of "restored" on the entities list. There is a also a sensor.openevse_wifi_firmware_version_2 listed on this screen.
Can you verify that it is safe to delete the old sensor.openevse_wifi_firmware_version, sensor.openevse_wifi_signal_strength , and button.openevse_restart entities?
Thanks.

You're safe to remove entities that say they're no longer supplied by the integration.


add load zone to bus

Follow from the discussion about the desired behavior to add Load Zone and Area to the buses.

@claytonpbarrows this is required to complete the modeling of AGC.

closed via #434


"Error(IncompleteMessage)" and "unsuccessful tunnel" when using proxies

So I seem to be having these two specific errors only whenever I add proxies to reqwest Client builder, without proxies added the requests run smoothly as expected.
This error is the more common one, it gets thrown most of the time after either a few requests or a few hundred but it doesn't usually take longer than even half a minute:
Error: reqwest::Error { kind: Request, url: "http://testing-ground.scraping.pro/login?mode=login", source: Error(IncompleteMessage) } error: process didn't exit successfully: target\debug\req.exe (exit code: 1)
And the other less common one, happens far less often but does still seem to be reoccurring:
Error: reqwest::Error { kind: Request, url: "http://testing-ground.scraping.pro/login?mode=login", source: Error(Connect, Custom { kind: Other, error: "unsuccessful tunnel" }) } error: process didn't exit successfully: target\debug\req.exe (exit code: 1)
I'm quite new to Rust and haven't really had issues like this before with my proxies using python requests, I assume there is something specific to reqwest + proxy usage I am probably missing on
use reqwest;
use rayon::prelude::*;
use std::env;

fn main() -> Result<(), reqwest::Error> {
    let count = env::args()
        .nth(1)
        .and_then(|s| s.parse::<u32>().ok())
        .unwrap_or(10000);

    let reqs: Vec<String> = (0..count)
        .map(|i| format!("Req #: {}", i))
        .collect();

    let client = reqwest::blocking::Client::builder()
        .proxy(reqwest::Proxy::all("http://proxy IP or a hostname for proxy service")?)
        .build()?;

    rayon::ThreadPoolBuilder::new()
        .num_threads(20)
        .build_global()
        .unwrap();

    reqs.par_iter()
        .try_for_each(|req| {
            let resp = client.post("http://testing-ground.scraping.pro/login?mode=login")
                .body("usr=admin&pwd=12345")
                .send()?
                .status();
            println!("{}, {}", req, resp);
            Ok(())
        })
        .map(|_| {
            println!("Done");
        })
}

Also, how could I go about "retrying" a request if it happens to fail? Example, if the status code was unknown, could I go back to that original request and keep trying to send it until the request successfully responded with a status code? Meaning all requests would be "completed" and no responses are skipped over

The IncompleteMessage means that the server closed the connection in-between a request starting to be written and a full response being received.
The "unsuccessful tunnel" means reqwest tried to issue a CONNECT request to the proxy, and it didn't reply with HTTP/1.1 200. Do the proxies require authorization to connect to?

The proxies are authorized by IP address, so as long as they are being used
on my IP they are able to connect.
On Thu, Oct 17, 2019, 3:29 PM Sean McArthur<EMAIL_ADDRESS>wrote:

The IncompleteMessage means that the server closed the connection
in-between a request starting to be written and a full response being
received.
The "unsuccessful tunnel" means reqwest tried to issue a CONNECT request
to the proxy, and it didn't reply with HTTP/1.1 200. Do the proxies
require authorization to connect to?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/seanmonstar/reqwest/issues/681?email_source=notifications&email_token=ANPHGT7KVWIYY3BYFBBIRTTQPC4KTA5CNFSM4JBTZUMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBRIBWQ#issuecomment-543326426,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANPHGT5HTX6OF44OPAH2IA3QPC4KTANCNFSM4JBTZUMA
.


Cannot renew a MongoDB lease due to lease expired

How To Reproduce

Vault Server Configuration

Start vault server in dev mode
vault server -dev

Enable app-role
vault auth enable approle

Import a policy
vault write sys/policy/demo-policy<EMAIL_ADDRESS>(the file is listed later)

Create an app role with unlimited tokens and secret ids
vault write auth/approle/role/readwrite secret_id_ttl=100m token_num_uses=0 token_ttl=100m token_max_ttl=100m secret_id_num_uses=0 policies="default,demo-policy"

Enable database secrets vault secrets enable database

Configure MongoDB connection info.
vault write database/config/vault-mongodb-demo-database plugin_name=mongodb-database-plugin  allowed_roles="readwrite"  connection_url="mongodb://{{username}}:{{password}}@[myip]/admin?ssl=false" username="[myusername]" password="[mypassword]"

Configure a role that maps a name
vault write database/roles/readwrite db_name=vault-mongodb-demo-database creation_statements='{ "db": "vaultdemo", "roles": [{ "role": "dbOwner" }, {"role": "readWrite", "db": "vaultdemo"}] }' default_ttl="1m" max_ttl="1m"

Get roleid which will be the value of spring.cloud.vault.app-role.role-id
vault read auth/approle/role/readwrite/role-id

Get secret id which will be the value of spring.cloud.vault.app-role.secret-id
vault write -f auth/approle/role/readwrite/secret-id

demo-policy.hcl file

path "secret/bootstrap" {
	capabilities = ["create", "read", "update", "delete", "list"]
}
path "secret/application" {
	capabilities = ["create", "read", "update", "delete", "list"]
}
path "database/creds/readwrite" {
	capabilities = ["create", "read", "update", "delete", "list"]
}
path "database/creds/readwrite/*" {
        capabilities = ["create", "read", "update", "delete", "list"]
}
path "sys/leases/*" {
	capabilities = ["create", "read", "update", "delete", "list"]
}

bootstrap.yml file

spring:
  cloud:
    vault:
      host: localhost
      port: 8200
      scheme: http
      uri: http://localhost:8200
      connection-timeout: 5000
      read-timeout: 15000
      config:
        lifecycle:
          enabled: true
        order: -10
      authentication: APPROLE
      app-role:
        role-id: [from step 8]
        secret-id: [from step 9]
      mongodb:
        enabled: true
        role: readwrite
        backend: database
        username-property: mongodb.username
        password-property: mongodb.password

Components version

Spring Boot 2.0.6.RELEASE

Spring Cloud Finchley.SR1

Spring Vault core 2.1.1.BUILD-SNAPSHOT

Vault v0.11.4

Error Description
After about 1 minute from starting the demo app, I got the following exception:
2018-10-25 22:11:26.616  WARN 5446 --- [g-Cloud-Vault-2] LeaseEventPublisher$LoggingErrorListener : [RequestedSecret [path='database/creds/readwrite', mode=RENEW]] Lease [leaseId='database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V', leaseDuration=PT10S, renewable=true] Cannot renew lease: lease expired

org.springframework.vault.VaultException: Cannot renew lease: lease expired
	at org.springframework.vault.core.lease.SecretLeaseContainer.doRenewLease(SecretLeaseContainer.java:604) [spring-vault-core-2.1.1.BUILD-20181010.071554-4.jar:2.1.1.BUILD-SNAPSHOT]
	at org.springframework.vault.core.lease.SecretLeaseContainer.lambda$scheduleLeaseRenewal$0(SecretLeaseContainer.java:503) [spring-vault-core-2.1.1.BUILD-20181010.071554-4.jar:2.1.1.BUILD-SNAPSHOT]
	at org.springframework.vault.core.lease.SecretLeaseContainer$LeaseRenewalScheduler$1.run(SecretLeaseContainer.java:776) ~[spring-vault-core-2.1.1.BUILD-20181010.071554-4.jar:2.1.1.BUILD-SNAPSHOT]
	at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[spring-context-5.0.10.RELEASE.jar:5.0.10.RELEASE]
	at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93) ~[spring-context-5.0.10.RELEASE.jar:5.0.10.RELEASE]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_152]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_152]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_152]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[na:1.8.0_152]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_152]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_152]
	at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_152]

And error message also shows from vault server:
2018-10-25T22:11:26.607+0800 [ERROR] secrets.system.system_79b963f3: lease renewal failed: lease_id=database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V error="lease expired"
2018-10-25T22:11:26.690+0800 [INFO]  expiration: revoked lease: lease_id=database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V

Besides,  before the exception, there's some info of spring vault scheduling the renewal:
2018-10-25 22:10:26.506 DEBUG 5446 --- [           main] o.s.v.c.e.LeaseAwareVaultPropertySource  : Requesting secrets from Vault at database/creds/readwrite using RENEW
2018-10-25 22:10:26.558 DEBUG 5446 --- [           main] o.s.v.core.lease.SecretLeaseContainer    : Secret database/creds/readwrite with Lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V qualified for renewal
2018-10-25 22:10:26.559 DEBUG 5446 --- [           main] cretLeaseContainer$LeaseRenewalScheduler : Scheduling renewal for secret database/creds/readwrite with lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V, lease duration 60
2018-10-25 22:10:36.561 DEBUG 5446 --- [g-Cloud-Vault-1] cretLeaseContainer$LeaseRenewalScheduler : Renewing lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6Vfor secret database/creds/readwrite
2018-10-25 22:10:36.570 DEBUG 5446 --- [g-Cloud-Vault-1] o.s.v.core.lease.SecretLeaseContainer    : Secret database/creds/readwrite with Lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V qualified for renewal
2018-10-25 22:10:36.570 DEBUG 5446 --- [g-Cloud-Vault-1] cretLeaseContainer$LeaseRenewalScheduler : Scheduling renewal for secret database/creds/readwrite with lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V, lease duration 50
2018-10-25 22:10:46.574 DEBUG 5446 --- [g-Cloud-Vault-2] cretLeaseContainer$LeaseRenewalScheduler : Renewing lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6Vfor secret database/creds/readwrite
2018-10-25 22:10:46.578 DEBUG 5446 --- [g-Cloud-Vault-2] o.s.v.core.lease.SecretLeaseContainer    : Secret database/creds/readwrite with Lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V qualified for renewal
2018-10-25 22:10:46.579 DEBUG 5446 --- [g-Cloud-Vault-2] cretLeaseContainer$LeaseRenewalScheduler : Scheduling renewal for secret database/creds/readwrite with lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V, lease duration 40
2018-10-25 22:10:56.579 DEBUG 5446 --- [g-Cloud-Vault-1] cretLeaseContainer$LeaseRenewalScheduler : Renewing lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6Vfor secret database/creds/readwrite
2018-10-25 22:10:56.585 DEBUG 5446 --- [g-Cloud-Vault-1] o.s.v.core.lease.SecretLeaseContainer    : Secret database/creds/readwrite with Lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V qualified for renewal
2018-10-25 22:10:56.585 DEBUG 5446 --- [g-Cloud-Vault-1] cretLeaseContainer$LeaseRenewalScheduler : Scheduling renewal for secret database/creds/readwrite with lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V, lease duration 30
2018-10-25 22:11:06.587 DEBUG 5446 --- [g-Cloud-Vault-2] cretLeaseContainer$LeaseRenewalScheduler : Renewing lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6Vfor secret database/creds/readwrite
2018-10-25 22:11:06.592 DEBUG 5446 --- [g-Cloud-Vault-2] o.s.v.core.lease.SecretLeaseContainer    : Secret database/creds/readwrite with Lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V qualified for renewal
2018-10-25 22:11:06.592 DEBUG 5446 --- [g-Cloud-Vault-2] cretLeaseContainer$LeaseRenewalScheduler : Scheduling renewal for secret database/creds/readwrite with lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V, lease duration 20
2018-10-25 22:11:16.596 DEBUG 5446 --- [g-Cloud-Vault-1] cretLeaseContainer$LeaseRenewalScheduler : Renewing lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6Vfor secret database/creds/readwrite
2018-10-25 22:11:16.600 DEBUG 5446 --- [g-Cloud-Vault-1] o.s.v.core.lease.SecretLeaseContainer    : Secret database/creds/readwrite with Lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V qualified for renewal
2018-10-25 22:11:16.600 DEBUG 5446 --- [g-Cloud-Vault-1] cretLeaseContainer$LeaseRenewalScheduler : Scheduling renewal for secret database/creds/readwrite with lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6V, lease duration 10
2018-10-25 22:11:26.603 DEBUG 5446 --- [g-Cloud-Vault-2] cretLeaseContainer$LeaseRenewalScheduler : Renewing lease database/creds/readwrite/RARStXyFlVRqfABSVobZUH6Vfor secret database/creds/readwrite
201

I'm using the version of 2.1.1.BUILD-SNAPSHOT because before the version I got 403 forbidden error when renewing the secret just as the question and the issue #255  described, and using the version according to the comment in #255 . However, it seems the problem reported in spring vault #319 still occurs in spring cloud vault.

Thanks a lot for the detailed report. Credentials requested by Spring Cloud Vault are not rotated. They are only renewed. The reason is that properties are exposed as config properties and the components that use configuration properties do not expect a change of properties during runtime.
In the example above, we see log output that keeps the secret alive (renewal). Once the terminal TTL expires, the last renewal fails correctly with an error.
You can request a rotating secret for MongoDB credentials but then you are in charge to control the MongoDB client lifecycle. There is no possibility to check whether MongoDB or other, similar resources, are currently executing queries so the underlying resource could be swapped with a fresh one.
See also:

#85
https://stackoverflow.com/questions/52950107/automatically-renew-aws-credentials-in-a-spring-boot-application-using-spring-cl/52987419#52987419

Thanks a lot for your reply. But I'm afraid the case is nothing with secret rotation. According to the vault guide Create Role, the default_ttl and max_ttl properties are all TTL for the leases but secret. The Spring Vault/Spring Cloud Vault should renew the lease in its TTL which is ONE minute in the case.

Renewal is that what you're seeing in the logs. Once a lease exceeds max_ttl, Vault revokes the secret and it cannot be renewed anymore. This is the reason, why we see Status 400 when the renewal tries to renew the lease after about a minute.

Thus, in this case,  I should rotate a new lease to replace the revoked timeout lease, and I should be in charge to control the new lease. Am I right?

Yes. See the CustomConfiguration sample for more details. You also need to take care of your MongoClient reconfiguration.
May I close this ticket or is there anything else I can assist you with?

I got it. And may I have just one more further question please? How about the secret id when it reaches the TTL? Should I also take charge to control the rotation of secret id?

I assume you're talking about secretId in the context of AppRole authentication. So, this depends primarily on your configuration. In general, Spring Vault uses authentication mechanisms to obtain a session token that can be TTL'd. If the session token expires, Spring Vault attempts to re-login using the provided credentials. If authentication mechanism components are TTL'd, as well (JSON Token, identifiers, …) then Spring Vault can only re-login until the authentication component's TTL expires.
If you provide a static secret Id with a TTL, then Spring Vault can re-login within the TTL timeout. After that time, you need to provide a new secret Id. If you use pull-mode for the secret Id, then Vault can obtain a fresh secret Id itself and properly re-login.
Closing this one as the questions are answered.

@tonny1983 I know that the thread is a bit old already. I hope it it is still helpful for you or other people stumbling across the same question.
I've written a blog post about how to ensure that expiring Spring Cloud Vault dynamic database secrets are renewed, when reaching Hashicorp Vault's max_ttl: Hashicorp Vault max_ttl Killed My Spring App
There will be a follow-up post which is more technology specific (HikariCP) but renews the PostrgreSQL credentials on the fly, which also works for really short-lived secrets (I've tested e.g. with max_ttl of 1 minute).
If there is the demand I could also check how something similar could be achieved for MongoDB and then I would write another blog post with that information.

@tonny1983 The follow-up post about how to rotate expiring relational Spring Cloud Vault database credentials without downtime is available: Heavy Rotation of Relational Hashicorp Vault Database Secrets in Spring

@usr42 I would like to see a blog post on rotating MongoDB secret.

@mp911de, @usr42 apparently this is still the case in 2022.
Unfortunately, it is difficult to see from the documentation that dynamic secrets, which are probably the most common reason for using vault, cannot be automatically rotated from spring-cloud-starter-vault-config and spring-cloud-vault-config-databases when using the legacy bootstrap method or reactive databases.
However, the following passage can be found in the current documentation:

enabled controls whether leases associated with secrets are considered to be renewed and expired secrets are rotated. Enabled by default.

Do you think it would be a useful extension to mention these restrictions in the documentation?

Good point, it makes sense to reword the sections to reflect that rotation works only in some cases (such as AWS).


Crash: libc++abi: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

Hey again Tim!
I tried to paste some HTML from HackerNews into my note app and it crashed on the convert() function. This is the HTML that was copied from the clipboard:
<meta charset='utf-8'>

brudgers on Dec 27, 2019 | next [–]

Excel alternatives might be uncountable. Implementing spreadsheet basics is an advanced beginner exercise. But even Google’s billions only get it a distant second best because Microsoft is still working hard despite the lead. Sure Google and Apple can meet most needs most of the time. They’re good enough mainly because they are free beer. Not because they are open source. Obviously.

Can you verify if you also experience this?

I couldn't reproduce it with the html2md executable and the web version of MarkdownEdit (File -> import -> HTML). How did you call it and which options did u use?

Can you try the following code:
for (int i = 0; i < 2; i++) {
        html2md::Options options;
        options.splitLines = false;
        QString html1 = "<meta charset='utf-8'>

brudgers on Dec 27, 2019 | next [–]

Excel alternatives might be uncountable. Implementing spreadsheet basics is an advanced beginner exercise. But even Google’s billions only get it a distant second best because Microsoft is still working hard despite the lead. Sure Google and Apple can meet most needs most of the time. They’re good enough mainly because they are free beer. Not because they are open source. Obviously.

";
        std::string htm2 = html1.toStdString();
        html2md::Converter c(htm2, &options);
        c.convert();
    }

I see it happens only on the second/third time I call the paste function so I put it in a loop. Am I doing something incorrectly (other than the inefficiency of the sample code)?

I unfortunately still can't reproduce it, even when I run it 100 times.Unfortunately, I still can't reproduce it, even after running it 100 times. :disappointed:

Weird. Then it's probably something on my end. I'll investigate more and let you know.

Did you found the bug?

Hey, I encountered  other bugs in my code so I'll get to this one later hah. You can close this issue and I'll reopen it if I find the bug is still related to this library.

Nah, there clearly must be a bug in my library so let's leave it open till we find it.
But good luck with you other problems! I would like to help you but don't have the time right now

No worries, as soon as I find something I'll let you know.

Hey, Tim. I'm back to debug this issue. For some reason the debugger doesn't show any meaningful stuff.

This is basically all I'm doing in my code:
const QMimeData *clipboardMimeData = m_clipboard->mimeData();

if (clipboardMimeData->hasHtml()) {
    qDebug() << "Hello 1";
    html2md::Options options;
    qDebug() << "Hello 2";
    options.splitLines = false;
    qDebug() << "Hello 3";
    std::string html = clipboardMimeData->html().toStdString();
    qDebug() << "Hello 4";
    html2md::Converter c(html, &options);
    qDebug() << "Hello 5";
    std::string result = c.convert();
    qDebug() << "Hello 6";
    QString markdown = QString::fromStdString(result);
    qDebug() << "Hello 7";
    pasteMarkdown(markdown);
    qDebug() << "Hello 8";
}

Hello 5 is shown tho, so I guess it's something to do with that? Maybe you can try this code out (m_clipboard is just QClipboard *m_clipboard).
It crashes when I copy a bunch of things from HackerNews, for example, a bunch of my comments together: https://news.ycombinator.com/threads?id=rubymamis

Can I find the exact code (of the whole program) somewhere? And could you please embed the HTML in the code? Because when I copy comments from the site, it copies them as plain text

I think I found where it crashes. In table.cpp

It should work now. Can you please test it? If it works I'll create a new release

Yay, it works! Thanks a lot.


[elasticsearch] Bump version to 2.3.2

This commit bumps the version of the Elasticsearch dependency for the
Elasticsearch binding to version 2.3.2.

LGTM. Merging.

Thanks @stfeng!


split out oam-spec v0.2 charts

1.new subpath oam-spec-v0.2 under .charts/ for appconfig and components charts only
2.dispatch different version crd to different path
3.chart value oamSpecVer (0.3, 0.2, all) setup (application, appconfig or both)  controller and webhook

refer to https://github.com/oam-dev/kubevela/issues/1705