Inline comments would be a fantastic feature

for example like this https://tsi.github.io/inlineDisqussions/
Comments e.g. on documentation would allow getting user feedback on published models, like this https://evlibra.github.io/Archi_Body/
https://evlibra.github.io/Archi_Body/198667f9-f68d-46a1-8bf6-01c97c861d17/views/b90805b2-7a2c-47e2-86a7-b2d5d1dd95a6.html
or this https://evlibra.github.io/Archi_ASPICE/
https://evlibra.github.io/Archi_ASPICE/id-322369a4-b2ad-4c96-8d58-a5d264295809/views/b4a58a17-a562-4304-b735-3b37cc0d68d2.html

Hi, I'm sorry, but "XXX would be a fantastic feature" is not (at all) a feature proposal. Instead of simply throwing links to external resources, could you please elaborate on your idea, explain what use-case it adresses, how it could manifest in Archi, who are the target users... ? Without such detailed explanation I'm afraid I'll have to close this issue (and maybe miss a fantastic feature)

Hi, my apologize for making the initial post in a hurry.
The idea is to let the model evolve based on target users feedback. In most use-case, target users would be non-technical or, at least, non-architects e.g. trainers, patients, managers, etc.
If users have questions/feedback to any part of the model or documentation, they should be able to provide their comments within the related part/text directly (inline). They should be able to highlight the element or text and add the comment that refers directly to that. Based on feedback, the architect will adjust the documentation/elements in Archi. Manifestation to the Archi could be e.g. by utilizing the element properties.
One of the options could be to "tweak" published HTML-reports (as on examples above) by adding inline comments (at least to documentation text).
Second option could be to utilize review comments on git-hub content of the model, as published from Collaboration plugin.
But it may have limitation of making the model user-friendly and highly accessible by the end-users to view/navigate (ideally, without the need of installing the tool) - as in case with HTML-report.
But it looks like both options are not having direct impact on the Archi.
So, probably just using CSV-export shared as Google Sheets, could be most simple work-around to gather/track the feedback on element's description, which would lack the user-friendliness and graphical view of the model.
So far I was trying to find 3rd party tool for publishing Archi models for end-users with feedback on it, but no one suitable exists yet. Another limitation became custom icons (3rd party unable to render it, as relay on open exchange format). That is why I came back here with request of native support of feedback on models, ideally, in the format of inline-comments (which may be part of model or external linked to model's elements by its IDs).

Hi,
Thank you for this more detailed explanation. I do agree that this kind of feature would be good because they would allow feedback. I did it with Jira issue collector and though about GitHUb/GitLab issue and also Disqus. The issue is that there is no way to do this without a third party solution (whatever it is), thus it's up to users to setup their own solution. I really would like to find a good and simple solution for adding such comments, but for the moment I didn't find one.
FWIW, you can easily customize the builtin HTML export (it is based on StringTemplate).
Re "inlineDisqussions", the major drawback I see is that it rely on paragraph numbering, so if you remove or insert a paragraph, then comments are no longer at the right position and history is lost.

I have tried to apply "inlineDisqussions" - managed to make connection with Disqus (for Archi_Body). The issue is that structure of builtin HTML export seems to be not suitable for "inlineDisqussions" - yet at I was unable to find suitable tag to pass to jQuery. The customization of builtin HTML export seems not so easy for me, or at least I would need some hint where to start from (e.g. shall I fork and play with reports/html/HTMLReportExporter.java ? ).

Re "inlineDisqussions", the major drawback I see is that it rely on paragraph numbering, so if you remove or insert a paragraph, then comments are no longer at the right position and history is lost.

Can think of using data-disqus-identifier = "element id".

I have tried to apply "inlineDisqussions" - managed to make connection with Disqus (for Archi_Body). The issue is that structure of builtin HTML export seems to be not suitable for "inlineDisqussions" - yet at I was unable to find suitable tag to pass to jQuery. The customization of builtin HTML export seems not so easy for me, or at least I would need some hint where to start from (e.g. shall I fork and play with reports/html/HTMLReportExporter.java ? ).

Re "inlineDisqussions", the major drawback I see is that it rely on paragraph numbering, so if you remove or insert a paragraph, then comments are no longer at the right position and history is lost.

Can think of using data-disqus-identifier = "element id".

The issue is that structure of builtin HTML export seems to be not suitable for "inlineDisqussions" - yet at I was unable to find suitable tag to pass to jQuery.

The whole documentation is included in a div tag which is a direct child of another div tag with id="documentation", so you should be able to access it through the following selector: #documentation > div
This means that inlineDisqussions will be attached to the whole documentation block, not to each paragraphs (because there is none)

The customization of builtin HTML export seems not so easy for me, or at least I would need some hint where to start from with some samples

Hacking the report involves:

Adding your static resources (css, js...) into Archi/plugins/com.archimatetool.reports_x.y.z/templates/html matching subfolders
Updating Archi/plugins/com.archimatetool.reports_x.y.z/templates/st/frame.stg, especially the frame(element, map) function which starts at line 128 and is in charge of the rendering of all views and elements's pages. As you want these comments to be enabled everywhere, then the easiest way to do it is to simply add a <script> section before the end of head (line 146).

shall I fork and play with reports/html/HTMLReportExporter.java

No need for that, everything should be done in the template.

or create plugin like singlePageHTML?

That's another option. You'll then have more freedom, but you'll have to maintain the whole thing yourself.

For inline-comments the report would better be more plane - with less panels - just image and list of elements beneath it (and somewhere - description on clicks).

Another option would be to simply add a tab in which the comments are shown

Can think of using data-disqus-identifier = "element id", so the report could just write it for each element.

This won't work. This would have to rely on internal id for documentation's paragraphs, but this doesn't exist in Archi, so there's no way to identify a specific paragraph at all.
BTW, there are other (and maybe best) solutions to manage comments for static content (which is our use-case here). A quick search shows that these two solutions seems interresting:

Utterances
Staticman

The issue is that structure of builtin HTML export seems to be not suitable for "inlineDisqussions" - yet at I was unable to find suitable tag to pass to jQuery.

The whole documentation is included in a div tag which is a direct child of another div tag with id="documentation", so you should be able to access it through the following selector: #documentation > div
This means that inlineDisqussions will be attached to the whole documentation block, not to each paragraphs (because there is none)

The customization of builtin HTML export seems not so easy for me, or at least I would need some hint where to start from with some samples

Hacking the report involves:

Adding your static resources (css, js...) into Archi/plugins/com.archimatetool.reports_x.y.z/templates/html matching subfolders
Updating Archi/plugins/com.archimatetool.reports_x.y.z/templates/st/frame.stg, especially the frame(element, map) function which starts at line 128 and is in charge of the rendering of all views and elements's pages. As you want these comments to be enabled everywhere, then the easiest way to do it is to simply add a <script> section before the end of head (line 146).

shall I fork and play with reports/html/HTMLReportExporter.java

No need for that, everything should be done in the template.

or create plugin like singlePageHTML?

That's another option. You'll then have more freedom, but you'll have to maintain the whole thing yourself.

For inline-comments the report would better be more plane - with less panels - just image and list of elements beneath it (and somewhere - description on clicks).

Another option would be to simply add a tab in which the comments are shown

Can think of using data-disqus-identifier = "element id", so the report could just write it for each element.

This won't work. This would have to rely on internal id for documentation's paragraphs, but this doesn't exist in Archi, so there's no way to identify a specific paragraph at all.
BTW, there are other (and maybe best) solutions to manage comments for static content (which is our use-case here). A quick search shows that these two solutions seems interresting:

Utterances
Staticman

I did more research and it looks like universal commenting is challenging for many years in the whole web world. Even web-browser commenting extensions could be considered (if 3rd party shall be dealt with anyway):

Epiverse
Dissenter

But looks like with this we risking to step into hacker's world, as comments are "golden rush" not only from technical point of view but many other.

I did more research and it looks like universal commenting is challenging for many years in the whole web world. Even web-browser commenting extensions could be considered (if 3rd party shall be dealt with anyway):

Epiverse
Dissenter

But looks like with this we risking to step into hacker's world, as comments are "golden rush" not only from technical point of view but many other.

hypotesis.is works pretty well

Interresting, I'll try it. This might be a good candidate for models which are shared with everyone (i.e. which contains no confidential information).
In the meantime I've discovered Vssue.js which is a very interresting commenting system backed by a git server and supports the most commons (GitHub, GitLab, BitBucket...). This makes it the ideal candidate for confidential content in an enterprise setup (as most of the time people will host their model using coArchi and git).

hypotesis.is works pretty well

Interresting, I'll try it. This might be a good candidate for models which are shared with everyone (i.e. which contains no confidential information).
In the meantime I've discovered Vssue.js which is a very interresting commenting system backed by a git server and supports the most commons (GitHub, GitLab, BitBucket...). This makes it the ideal candidate for confidential content in an enterprise setup (as most of the time people will host their model using coArchi and git).

[Update 2] To use it on mobile or without installing a browser plugin, this kink of links can be sued (just put https://via.hypothes.is/ before your link): https://via.hypothes.is/https://evlibra.github.io/Archi_Body/

There' also a bookmarklet

[Update 2] To use it on mobile or without installing a browser plugin, this kink of links can be sued (just put https://via.hypothes.is/ before your link): https://via.hypothes.is/https://evlibra.github.io/Archi_Body/

There' also a bookmarklet

Hacking the report involves:

Adding your static resources (css, js...) into Archi/plugins/com.archimatetool.reports_x.y.z/templates/html matching subfolders
Updating Archi/plugins/com.archimatetool.reports_x.y.z/templates/st/frame.stg, especially the frame(element, map) function which starts at line 128 and is in charge of the rendering of all views and elements's pages. As you want these comments to be enabled everywhere, then the easiest way to do it is to simply add a <script> section before the end of head (line 146).

Will hacking reports require building binaries of Archi? Or can be done just twicking at resulting report (css, js.. are there, but no st)

Hacking the report involves:

Adding your static resources (css, js...) into Archi/plugins/com.archimatetool.reports_x.y.z/templates/html matching subfolders
Updating Archi/plugins/com.archimatetool.reports_x.y.z/templates/st/frame.stg, especially the frame(element, map) function which starts at line 128 and is in charge of the rendering of all views and elements's pages. As you want these comments to be enabled everywhere, then the easiest way to do it is to simply add a <script> section before the end of head (line 146).

Will hacking reports require building binaries of Archi? Or can be done just twicking at resulting report (css, js.. are there, but no st)

Will hacking reports require building binaries of plugin? Or can be done just twicking at resulting report

It only requires to change the .st files of your Archi installation, no need to comping Archi again. Simply change those files in your Archi setup and that's it: all reports you'll create will be updated.

The simplest seems to be md-doc script from rich-biker, but I want to have the diagrams clickable.

I've created a script to create a single page HTML export. Diagrams are not clickable for the moment but that's on my roadmap. At some point in time this could become the new standard report for Archi.

Will hacking reports require building binaries of plugin? Or can be done just twicking at resulting report

It only requires to change the .st files of your Archi installation, no need to comping Archi again. Simply change those files in your Archi setup and that's it: all reports you'll create will be updated.

The simplest seems to be md-doc script from rich-biker, but I want to have the diagrams clickable.

I've created a script to create a single page HTML export. Diagrams are not clickable for the moment but that's on my roadmap. At some point in time this could become the new standard report for Archi.

Thanks for the response @jbsarrodie - I can see now that you've meant Archi installation folders - will try tuning it for a more commen-friendly layout. Probably. I may need to refer to Stringstemplate doc - / Templates section or refresh HTML skills. #1 task is to make tree not collapsed by default for folders at ui-layout-west ui-layout-pane

In order to see a better overview of what was commented at high-level - kind of "table of contents" / "terms definitions"
The #2 priority will be to decide how to handle comments of separate related pages (shown at the panel from image-map clicks) - maybe make then open as modal dialogs (or at new windows) by default.

Regarding the single-page HTML export - I've tried it as well here, but that cant be of value yet - without the feature of the clickable image and and view-navigation (kind-of drill-down but to views from an element of current view), and need to decide where better to keep the description of the elements (e.g. where to show it on clisks)

Thanks for the response @jbsarrodie - I can see now that you've meant Archi installation folders - will try tuning it for a more commen-friendly layout. Probably. I may need to refer to Stringstemplate doc - / Templates section or refresh HTML skills. #1 task is to make tree not collapsed by default for folders at ui-layout-west ui-layout-pane

In order to see a better overview of what was commented at high-level - kind of "table of contents" / "terms definitions"
The #2 priority will be to decide how to handle comments of separate related pages (shown at the panel from image-map clicks) - maybe make then open as modal dialogs (or at new windows) by default.

Regarding the single-page HTML export - I've tried it as well here, but that cant be of value yet - without the feature of the clickable image and and view-navigation (kind-of drill-down but to views from an element of current view), and need to decide where better to keep the description of the elements (e.g. where to show it on clisks)

I'm stuck - how to sort elements without click - after I've made them show() by default (at row 46 of model.js)

I'm stuck - how to sort elements without click - after I've made them show() by default (at row 46 of model.js)

Got 2nd issue (comments for elements description at iframe) resolved - by enabling annotation of iframed content, as advised here: https://h.readthedocs.io/projects/client/en/latest/publishers/embedding/#enabling-annotation-of-iframed-content :)

Got 2nd issue (comments for elements description at iframe) resolved - by enabling annotation of iframed content, as advised here: https://h.readthedocs.io/projects/client/en/latest/publishers/embedding/#enabling-annotation-of-iframed-content :)

Maybe that is a crazy idea, but we could think of integration with online boards e.g. miro: https://miro.com/api/ for online commenting of certain views.

Maybe that is a crazy idea

Yes ;-)
Seriously, not sure of the use case (MIro is not really meant to be a comment system)

Happy New Year! I did some research, and see good potential in interoperability with kumu.io as publishing platform. Straight forward it is achievable  using export to Excell.
Except of built-in comments (in pro version) kumu.io has Disqus plugin. One problem is that images cant be exported, but potentially it can be done through properties (as I remember, Archi cant render image from url, even in version 4.9?).

Happy New Year! I did some research, and see good potential in interoperability with kumu.io as publishing platform. Straight forward it is achievable  using export to Excell.
Except of built-in comments (in pro version) kumu.io has Disqus plugin. One problem is that images cant be exported, but potentially it can be done through properties (as I remember, Archi cant render image from url, even in version 4.9?).

This topic can be closed due to dependency on HTML-report which has to be improved to be compatible with Hypotesis.io

Epiverse
Dissenter
hypothes.is

++ https://read.readwise.io/


Question - How do I get a list of all externals?

How do I get a list of all externals?
svnUltimate.commands.propget('svn:externals', 'file:///e:/programming/svn/project.server', {'recursive': true}, function(err, test) {
console.log('test', test);
})

does not work
svn: warning: W200017: Property 'svn:externals' not found on 'file:///E:/programming/svn/project.server'

Try running the equivalent command on the command line to make sure you have the right arguments:
svn propget svn:externals -R file:///e:/programming/svn/project.server

There is no "recursive" option, so you'll have to do it this way instead: HTH
svnUltimate.commands.propget('svn:externals', 'file:///e:/programming/svn/project.server', {'params': ['-R']}, function(err, test) {
console.log('test', test);
})


[BUG] Listener Not Found

I am using leaflet.SidePanel in my django application. I have added the leaflet-sidepanel.css and .js files to my server, but I am getting the following error when trying to open the side panel.

the issue im seeing is coming from leaflet.js


Add injective to prelude constructors

Pointed out by @amelieled

Review checklist
The author performs the actions on the checklist. The reviewer evaluates the work and checks the boxes as they are completed.

[ ] Summary. Write a summary of the changes. Explain what you did to fix the issue, and why you did it. Present the changes in a logical order. Instead of writing a summary in the pull request, you may push a clean Git history.
[ ] Documentation. Write documentation for new functions. Update documentation for functions that changed, or complete documentation where it is missing.
[ ] Tests. Write unit tests for every change. Write the unit tests that were missing before the changes. Include any examples from the reported issue as integration tests.
[ ] Clean up. The changes are already clean. Clean up anything near the changes that you noticed while working. This does not mean only spatially near the changes, but logically near: any code that interacts with the changes!

do we always emit them both so this is just for consistency?

Yes, and this file isn't generated so we need to manually make sure it's consistent with the current Kore encodings.

Oh, thanks Ana! :)


Fail fast if tag already exists

This pr makes the run fail fast if the tag already exists; and it gives instructions about what to do.
This passes the responsability of cleaning up back to the user
instead of adding that complexity in the code.
➜  pacta git:(3_allow--force) ✗ ./build_with_tag.sh 00
'00' already exists in /home/mauro/git/docker.
Do you need 'git tag --delete 00'?

➜  pacta git:(3_allow--force) ✗ git tag --delete 00
Deleted tag '00' (was c98684c)

➜  pacta git:(3_allow--force) ✗ ./build_with_tag.sh 00
Cloning into 'PACTA_analysis'...
remote: Enumerating objects: 129, done.
remote: Counting objects: 100% (129/129), done.
remote: Compressing objects: 100% (115/115), done.
remote: Total 129 (delta 10), reused 70 (delta 7), pack-reused 0
Receiving objects: 100% (129/129), 2.04 MiB | 2.73 MiB/s, done.
Resolving deltas: 100% (10/10), done.

# ... more output

(Sorry that the name of the branch does not reflect what I finally did. I originally thought I would implement --force but I changed my mind; this approach seems safer and more lean.)

Superseded by #11


Verify rosparams for every node

Write a function that verifies existence of rosparams in a list for every base class/class that reads rosparams. This will take some time for sure, but it will save us a LOT of headache going forward, as we will never need to worry about params and namespace.

Closed by https://github.com/ipa320/araig_test_stack/pull/35


DEPRICATION Notice

Running yall's tests this pops up:
.WARNING: Fauxhai platform data for redhat 7.2 is deprecated and will be removed in the 7.0 release 3/2019. A list of available platforms is available at https://github.com/chefspec/fauxhai/blob/master/PLATFORMS.md
I can give it a shot, but this is probably an internal conversation that needs to happen.
/cc @russellseymour @jsmartt

Thanks for the info JJ! We can sure bump that to 7.3 or 7.4


GEN input

Hi!
It could be possible to use a microinverter production connected to GEN input?
Thanks.

Hi. Yes the card already supports this. Its the AUX connection that accepts input from GEN/Microinverter or it can also be used to supply a load. Have a look at the following attributes under Load and setup according to your needs:

Attribute
Requirement
Default
Description

show_aux:
Optional
no
Toggles the display of Aux (yes/no)

invert_aux:
Optional
no
Set to yes if your sensor provides a positive number for AUX input and negative number for AUX output

aux_name:
Optional
Auxilary
Set the display name for the Auxilary Load


Use MlflowAutologgingQueueingClient within the Lightning MLFlowLogger

Proposed refactoring and motivation
MLflow PyTorch autolog uses MLflow's MlflowAutologgingQueueingClient  which enables the features described here  , as well as ExceptionSafeAbstractClass, which catches errors logging to MLflow.
Suggest using these within MLFlowLogger. Currently a failed log_metric call can kill the training run but this would instead raise a warning for the user.

Dear @dannyfriar,
Thanks for opening this issue. We are trying to get the MLFlow Team to make sure the logger is up-to-date.
Best,
T.C

Thanks @tchaton I'll subscribe to that issue


[Bug] series sampling breaks updateAxisPointer action

Version
5.5.0
Link to Minimal Reproduction
https://jsfiddle.net/86yt7Lr1/
Steps to Reproduce

Create chart with line type series and use sampling: 'lttb'.
Have data size large enougth to trigger downsampling. i.e. ~ 2x pixel width
Call chart.dispatchAction({type:'updateAxisPointer', dataIndex: <n>})
Fails when dataIndex is "downsampled"

Current Behavior
The axispointer is not triggered some % of the time (depending on level of downsampling).
Expected Behavior
Work regardless of the use of sampling in the series options.
Environment
- OS: any
- Browser: any
- Framework: none

Any additional comments?
I think the issue might be in https://github.com/apache/echarts/blob/c576f0c395ef9af87461fe93bcaa4490d89a331a/src/data/DataStore.ts#L550-L565
There is an effort to binary search for the correct index but it only works if it finds an exact match.  Otherwise it falls through and returns -1  to indicate the value was not found and nothing works.  If this function returned the closest index instead, then it would work.

Not a solution but I'm going to use this monkey patch to workaround the issue in my project until this gets a proper fix/release...
function monkeyPatchEchartsDownsampling(eChartsModule) {
    const dummy = eChartsModule.init(document.createElement('div'));
    dummy.setOption({xAxis: {}, yAxis: {}, series: {type: 'line'}});
    const model = dummy.getModel();
    const DataStore = model.getSeriesByIndex(0).getData().getStore().constructor;
    DataStore.prototype.indexOfRawIndex = function(rawIndex) {
        if (rawIndex >= this._rawCount || rawIndex < 0) {
            return -1;
        }
        if (!this._indices) {
            return rawIndex;
        }
        const indices = this._indices;
        const rawDataIndex = indices[rawIndex];
        if (rawDataIndex != null && rawDataIndex < this._count && rawDataIndex === rawIndex) {
            return rawIndex;
        }
        let left = 0;
        let right = this._count - 1;
        let mid = -1;
        while (left <= right) {
            mid = (left + right) / 2 | 0;
            if (indices[mid] < rawIndex) {
                left = mid + 1;
            } else if (indices[mid] > rawIndex) {
                right = mid - 1;
            } else {
                return mid;
            }
        }
        return mid;
    };
}

The function is a copy/paste of indexOfRawIndex but with the final bailout return value being the closet mid value instead of -1.

@mayfield, love those high-end code patches, adapted to Editor ❤
Yet still scratching my head about the use-case...

@helgasoft use-case is programatically triggering an axis pointer.  I use it to link two disconnected charts that use different data sources and x axis types, but it really pertains to any use of DataStore.prototype.indexOfRawIndex when sampling is used (and data size exceeds viewport size).
https://github.com/apache/echarts/assets/139316/d9ebf9ae-06db-428a-9526-24911583181d


In Range Selection if user select range of 10 month , calendar is taking time to load

Calendar is taking time in loading when scrolling  and also getting stuck for moment when scroll when user select too long range can you please suggest solution?

:)
you know.. its very hard to suggest a solution when you have only described the problem in just one short sentence.
Can we at least start with the following?

How many dates are you generating (your start date and end date)
how are you scrolling? programatic? manual?
How many dates are you selecting?
What version of the calendar are you using?
etc etc etc.

I can help you a bit more if you describe the problem in programmer lingo.

I am using 6.0.5 version
i am using this calendar for selecting trip length so it can be of max 11 months so at that time user will select 11 months.

Hmm. youre using an older version.
If you look at the ChangeLogs, many versions were done after this. They include performance improvements etc.
Is it possible you can update?

No because in update you have changed alot and i have implement it with 6.0.5 version like first you have provided HeaderView but now it is changed new version so i am getting alot of errors can you please suggest any other solution??

Here are some solutions.

Update to 7.0 -> if you let me know a time on weekend i can help you convert your project easily.
Update to version 6.1.6 -> this version have not changed very much. However i am not sure if the enhancements are made there
I will have to take a look at you 6.0.5 version over the weekend, and hope i can come up with a fix in time.

Hi,
Thank you for being such abetting.....It will be more helpful if you can support with option 3

A lot has happened since your post.
The changes since version 6.0.5 is massive.
I will not have to time to go back to such an older version.
But i will be available to help convert your project to 7.0
There are just too many enhancements done in that version.

Closing this issue until more user input. It is 22 days since last response.


Each time I trigger this.$validator.validate(), it toggle between true and false

Hello,
Versions

vee-validate: ^2.2.12
vue: ^2.6.6

Describe the bug
vee-validate return true false true false... instead of true true true true... each time I trigger the method.
DEMO (use DX257CA in input, look at the console then blur several times): https://jsfiddle.net/0rn4gs7h/
I made a regex validation for plate number.
I disabled event to trigger manually the validation
Vue.use(VeeValidate, {
  events: ''
})

My input:
<input
    type ="text"
    v-model ="getNumberPlate"
    v-validate ="{regex: /([A-Za-z0-9]{1,4})([-. ]?)[A-Za-z0-9]{1,3}([-. ]?)([A-Za-z0-9]{1,4})/g}"
    @blur ="setStateDataUser('CAR_numberplate', $event)"
    name ="CAR_numberplate"
    v-validate.disable
>

My method:
setStateDataUser (key, val) {
    this.$validator.validate('CAR_numberplate').then(valid => {
        if (valid) {
            console.log('GOOD', typeof val.target.value)
            console.log('GOOD', val.target.value)
        } else {
            console.log('WRONG', typeof val.target.value)
            console.log('WRONG', val.target.value)
        }
    })
}

Expected behavior
On Blur, I expected my value "EH869YM" to always be true
Bug
in my console log, each time On Blur, the methods toggle between true and false:
WRONG string
WRONG EH869YM
GOOD string
GOOD EH869YM
WRONG string
WRONG EH869YM
GOOD string
GOOD EH869YM

Thanks

Remove the g flag, as it preserves the lastIndex property. This happens because vee-validate keeps the regex instance and does not clone it every time.

@logaretm you deserve a bucket of thanks !


Run linters on netpol Go code as part of CI

We also remove the test-fmt target since it has been replaced by
golangci. It is still possible to use make fmt to apply gofmt
changes on the entire code base.
Because golangci-lint can only be used in the scope of a single module
(apparently), we need a separate golangci make target in
hack/netpol. This is probably better anyway as it helps keep the Antrea
core code and the netpol code separate, which is why they are different
modules in the first place.

@suwang48404 FYI this is to avoid the issue you reported on Slack yesterday

/skip-all


please add tag for 0.2.1 release

tag is missing here for 0.2.1 release on npmjs.com

further dev of this package will be at https://github.com/SpainTrain/querystring-es3


[BACKLOG-2176]

[BACKLOG-2176]:

Extended dialect to support:
different sequence nomaxvalue
no support for auto generated keys being returned by the prepared statement
customization of the value meta interface from the sql type
Changed CombinationLookup, DimensionLookup and TableOutput steps to handle the new dialect changes
Kept default behaviour for every new dialect extension
Added unit tests for the dialect and steps changes

@wgorman @mattcasters @pamval please review

@mattyb149 can you also please take a look?

@deinspanjer can you please check?


Doesn't jailbreak ReadArgs properly

Trying to jailbreak ReadArgs (see https://hackage.haskell.org/package/ReadArgs-1.2.2/ReadArgs.cabal) yields this:
(lots of stuff)

library
    exposed-modules:
        ReadArgs
    build-depends:
        base -any,
        system-filepath -any,
        text -any

executable ReadArgsEx
    main-is: ReadArgsEx.hs
    build-depends:
        base >=<IP_ADDRESS> && <5,
        system-filepath >=0.4.7 && <0.5,
        text >=<IP_ADDRESS> && <12

test-suite ReadArgsSpec
    type: exitcode-stdio-1.0
    main-is: ReadArgsSpec.hs
    build-depends:
        hspec >=1.3 && <2.1,
        base >=<IP_ADDRESS> && <5,
        system-filepath >=0.4.7 && <0.5,
        text >=<IP_ADDRESS> && <12

I cannot reproduce that result. I get the following output:
library
    build-depends: base -any, system-filepath -any, text -any
    exposed-modules: ReadArgs
    exposed: True
    buildable: True

executable ReadArgsEx
    build-depends: base -any, system-filepath -any, text -any
    main-is: ReadArgsEx.hs
    buildable: True

test-suite ReadArgsSpec
    build-depends: hspec -any, base -any, system-filepath -any,
                   text -any
    type: exitcode-stdio-1.0
    main-is: ReadArgsSpec.hs
    buildable: True

Which version of Cabal did you use to build the jailbreak binary?
build-depends: hspec -any, base -any, system-filepath -any,
text -any
type: exitcode-stdio-1.0
main-is: ReadArgsSpec.hs
buildable: True

Sorry, forgot to mention that this is with GHC 7.10.1 from HaskellNG, which I think uses Cabal 1.22?

Yeah, Cabal 1.22.x gives me the same result. Not sure what's going on ... I'll need to investigate this. Thanks for the report.

@peti it seems that the build info metadata has been moved into the targetBuildDepends fields in the BuildInfo of the Executable, TestSuite, and Benchmark datatypes.
Can write a fix but it'll take a bit of busywork.

Ignore my previous comment, jailbreak-cabal already does that...

Oh, no it doesn't. You've defined relaxExeTree and relaxTestTree, but never actually use them.

http://hackage.haskell.org/package/jailbreak-cabal-1.3 contains the fix.


[BUG] Lack of AWS S3/wal-e backup leads to full disks

Hi again guys,
We've been running this instance for a few days now and in this last hour I was struck with a very nice error of database, the db container died out of lack of space in disk. the volumes folder had 53GB 😮 .
Turns out that, if wal-e fails to backup, the postgresql db will start saving various WAL files in a folder called pg_xlog (this was the 53GB monster).
I followed this post to recover everything and restart my mattermost server without any issue 😄
All safe guys!
Since this is planned to use in production, this could be a issue...
Thank you all,
Psidium

Thank you for reporiting!
Does this problem occur only if you enable the wal-e backup?
/cc @xcompass

Here's the beginning of docker logs mattermost_db_1, weirdly enough, docker detects it shouldn't use wal-e 'cause it doesn't have the variables, but a little later it's already trying to backup using wal-e!
Hope this helps anyone looking into it, as always, there's a fork in my private repository.
Thanks
AWS_ACCESS_KEY_ID is required for Wal-E but not set. Skipping Wal-E setup.
LOG:  database system was shut down at 2016-05-04 13:23:42 UTC
LOG:  MultiXact member wraparound protections are now enabled
LOG:  database system is ready to accept connections
LOG:  autovacuum launcher started
envdir: fatal: unable to switch to directory /etc/wal-e.d/env: file does not exist
LOG:  archive command failed with exit code 111
DETAIL:  The failed archive command was: envdir /etc/wal-e.d/env /usr/local/bin/wal-e wal-push pg_xlog/000000010000000000000001
LOG:  incomplete startup packet
envdir: fatal: unable to switch to directory /etc/wal-e.d/env: file does not exist
LOG:  archive command failed with exit code 111
DETAIL:  The failed archive command was: envdir /etc/wal-e.d/env /usr/local/bin/wal-e wal-push pg_xlog/000000010000000000000001
envdir: fatal: unable to switch to directory /etc/wal-e.d/env: file does not exist
LOG:  archive command failed with exit code 111
DETAIL:  The failed archive command was: envdir /etc/wal-e.d/env /usr/local/bin/wal-e wal-push pg_xlog/000000010000000000000001
WARNING:  archiving transaction log file "000000010000000000000001" failed too many times, will try again later
ERROR:  column "type" does not exist at character 40
STATEMENT:  UPDATE Preferences SET Type = $1 WHERE Type = $2
envdir: fatal: unable to switch to directory /etc/wal-e.d/env: file does not exist
LOG:  archive command failed with exit code 111
DETAIL:  The failed archive command was: envdir /etc/wal-e.d/env /usr/local/bin/wal-e wal-push pg_xlog/000000010000000000000001
envdir: fatal: unable to switch to directory /etc/wal-e.d/env: file does not exist
LOG:  archive command failed with exit code 111
DETAIL:  The failed archive command was: envdir /etc/wal-e.d/env /usr/local/bin/wal-e wal-push pg_xlog/000000010000000000000001
envdir: fatal: unable to switch to directory /etc/wal-e.d/env: file does not exist
LOG:  archive command failed with exit code 111
DETAIL:  The failed archive command was: envdir /etc/wal-e.d/env /usr/local/bin/wal-e wal-push pg_xlog/000000010000000000000001
WARNING:  archiving transaction log file "000000010000000000000001" failed too many times, will try again later
envdir: fatal: unable to switch to directory /etc/wal-e.d/env: file does not exist
LOG:  archive command failed with exit code 111
DETAIL:  The failed archive command was: envdir /etc/wal-e.d/env /usr/local/bin/wal-e wal-push pg_xlog/000000010000000000000001
envdir: fatal: unable to switch to directory /etc/wal-e.d/env: file does not exist
LOG:  archive command failed with exit code 111
DETAIL:  The failed archive command was: envdir /etc/wal-e.d/env /usr/local/bin/wal-e wal-push pg_xlog/000000010000000000000001
envdir: fatal: unable to switch to directory /etc/wal-e.d/env: file does not exist
LOG:  archive command failed with exit code 111
DETAIL:  The failed archive command was: envdir /etc/wal-e.d/env /usr/local/bin/wal-e wal-push pg_xlog/000000010000000000000001
WARNING:  archiving transaction log file "000000010000000000000001" failed too many times, will try again later
envdir: fatal: unable to switch to directory /etc/wal-e.d/env: file does not exist
LOG:  archive command failed with exit code 111
DETAIL:  The failed archive command was: envdir /etc/wal-e.d/env /usr/local/bin/wal-e awl-push pg_xlog```

Thanks @Psidium. Just created a PR for this fix.


usa590.sfdc-lywfpd.salesforce.com

This is a cname for salesforce sites
Currently getting blocked for buying tickets for a show
Cname for secondcityca.my.salesforce-sites.com

Is this list still supported? @mkb2091


Domain activation is Failed - Problems with simple domain in aws amplify

App Id: d3bo0yxaq4bkfr
Region: us-east-1
Step: Domain activation
Status: Failed
Issue/question
Im getting this error when trying to activate my domain. We have checked the CNAMES records and we ahve only the 2 subdomains
Error message
Error message: One or more aliases specified for the distribution includes an incorrectly configured DNS record that points to another CloudFront distribution. You must update the DNS record to correct the problem. For more information, see https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-restrictions
Additional information

Refer to our documentation to troubleshoot domain setup.
https://docs.aws.amazon.com/amplify/latest/userguide/custom-domain-troubleshoot-guide.html
https://docs.aws.amazon.com/amplify/latest/userguide/custom-domain-troubleshoot-guide.html#i-get-a-cnamealreadyexistsexception-error
Let us know if you're still facing issues.

Refer to our documentation to troubleshoot domain setup.
https://docs.aws.amazon.com/amplify/latest/userguide/custom-domain-troubleshoot-guide.html
https://docs.aws.amazon.com/amplify/latest/userguide/custom-domain-troubleshoot-guide.html#i-get-a-cnamealreadyexistsexception-error
Let us know if you're still facing issues.


Version 1.6.29 buggy in Safari

Rancher 16.29 is not updating the GUI in Safari when the process is finished. There appears an error in the console:
[Error] WebSocket connection to 'ws://rancher.warehouseplus.de:8080/v2-beta/projects/1a5/subscribe?eventNames=resource.change&limit=-1&sockId=1' failed: Invalid UTF-8 sequence in header value
It's working in Chrome and earlier Rancher versions. I am running version 1.6.18 on another server and it's fine.

The last running version is 1.6.25! So it's broken since version 1.6.26

Any updates on this issue?

2.0 was released two and half years ago and we no longer support or maintain 1.x.
But plenty of people have used versions >=1.6.26 in the last 2 years.. so whatever the problem is, it's probably something to do with your environment and not happening for everyone.


Potential XSS vulnerability

Describe the bug
XSS vulnerability via the “lines” argument.
To Reproduce
Steps to reproduce the behavior:

Go to https://readme-typing-svg.herokuapp.com/?lines=First+line+of+text;Second+line+of+</textPath></text><script>alert("xss?")</script><text><textPath>

Expected behavior
Image should fail to load or load without an alert box.
Screenshots
N/A
Desktop (please complete the following information):

OS: Tested in iOS and Win10
Browser: Chrome
Version: 87/88

Smartphone (please complete the following information):

Device: iPhone 12
OS: iOS 14.4.2
Browser: Chrome
Version: 87

Additional context
As discussed on discord, this is probably a minimal issue due to other protections. But if someone incorporates the code as a library, then they could be at risk.

Using htmlspecialchars() to escape the the lines seems to be a sufficient fix.
I'll just need to double check that there's nothing in SVGs that needs to be treated separately.
Example SVG with new code

Thanks for your help @plamoni!
With #8, I think it should be safe now.


Text cannot be added to the specified header of daily note

I configured a header for the text to append to with odailyheader, then I used odi to append text. However, the text was not appended to the specified header but to the end of the note.
Also, I specified the desired header to append to-dos to with odailytodoheader. However, to-dos cannot be appended to the specified header either. They were appended to the end of the note. I am also not sure if I used this feature correctly. If I want to append to-dos to the specified section of the daily note, is odi the correct command to use? If so, it seems that I need to use [ ] Task to make it a to-do. Is it possible to add to-dos with a new command or something such that one does not need to input [ ] each time?
Another thing is related to the configuration of timestamp. It seems that the configured format cannot be migrated automatically when updating this workflow.

Oops, my bad. I should have removed odailyheader and odailytodoheader (and other unused variables). I was doing some testing a while ago with those variables but ended up not implementing them (especially since no one requested them either). For now, odi works like oi—it simply appends text to the end of the markdown file, not under any header/section.
I'll think about what's the best way to implement your suggestions, which I think are the following:

append to-dos/text to a specified section
make it an option to prepend [ ]

Another thing is related to the configuration of timestamp. It seems that the configured format cannot be migrated automatically when updating this workflow.

Do you mean using odailyformat and dailyformat? They aren't related to the date/time that gets appended to the daily note. If you want to configure that, manually change it here instead. See Alfred's documentation for more info.

As always, thanks for the detailed explanations. 😃 It would be great to be able to append text to a specified section and to append to-dos with a command like odti to a specified section.
Regarding the timestamp, I meant the one appended with oi and odi. I can manually modify it, as pointed out in the red arrow in the figure above. I meant that it seems that this modification cannot be migrated together with other settings when updating this workflow, but never mind, it's a trivial thing, compared with many other settings.

+1, I really want to add tasks [ ]

👍  this would be a super-useful feature as I'm currently using the Things Logbook plugin and I'd like to keep things separate from my ideas.
Really good job on this workflow! Might submit a PR (and learn some ObjC in the process) if I find the time to implement the feature.


[WFCORE-4920] Remove the redundant "EAPRepositoryReachableUtil" and related calls as this is no longer used.

https://issues.redhat.com/browse/WFCORE-4920

@darranl thanks


[Priority: Meidum] Clicking on buttons with slow Daemon response

The daemon does not answer instantly every time by clicking on the Send button, and never on Create button. It should block the GUI and show some small animation until the daemon responds.

This issue is being connected to more and more issue.
My idea for expected behavior:
When the user clicks on a button that executes ANY API command, the button should

Disable the all GUI elements (including the button being clicked on).
Add some spinning icon to the button: [!(http://www.itguyswa.com.au/wp-content/uploads/2016/10/spinning-loading-bar.gif)]
When the API response arrives enable all GUI element and remove the spinning icon.

Implementation Example
I'll present an implementation example.
Illustration

Code
1. Go to JavaScript on button click:
onclick="decryptWallet()"
2. Disable pointer events
document.getElementsByClassName("container").item(0).setAttribute("style", "pointer-events:none;");
3. Add spinning glyphicon-cog
The spinning is implemented in CSS, I'll insert the code later.
glzphicon-cog comes with Material Design Webfont (mdi npm package).
document.getElementById("decrypt-wallet-button").innerHTML = ' Decrypting...';
4. Make an async API request
5. When response arrived:
6. Change back the button to original
document.getElementById("decrypt-wallet-button").innerHTML = "Decrypt";
7. Enable pointer events
document.getElementsByClassName("container").item(0).setAttribute("style", "pointer-events:all;");
Spinning CSS
.glyphicon.spinning {
    animation: spin 1s infinite linear;
    -webkit-animation: spin2 1s infinite linear;
}

@keyframes spin {
    from {
        transform: scale(1) rotate(0deg);
    }

    to {
        transform: scale(1) rotate(360deg);
    }
}

@-webkit-keyframes spin2 {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

I agree at least on the send/decrypt we need a progress bar @bokobza

@dangershony I think it should be generic to every butting that directly calls the API and waits for it to respond. There will be scenarios when the API will not respond right away for any reason, even if it's a quick API call.

Yeah I think this is necessary.

Agreed. Currently disabled the following buttons on API calls:

Send button
Create button
Recover button
Decrypt button
Am I missing anything?

I will talk to @bep42 how we will show it properly to the users that something is currently ongoing in the background.

@dev0tion Now you do, the estimate fee button you just recently added. (Also disabling is missing on that.)

Done in #352


Most plugins are incompatible with docker jenkins:lts

Docker commands that you execute
I installed and started jenkins with long term support according to the docs:
docker pull jenkins/jenkins:lts
docker run --rm --name jenkins -p 8080:8080 -p 50000:50000 -v $PWD:/var/jenkins_home jenkins

Actual result
Jenkins started in Version 2.60.3
But most plugins could not be used because I should upgrade to v2.73.3
The manage interface shows this message:

Pipeline: Shared Groovy Libraries v2.12
You must update Jenkins from v2.60.3 to v2.73.3 or later to run this plugin.

Expected result
So I expected to get a jenkins version which is compatible to the needed plugings.

yes, i am using deprecated image of jenkin. now what the way to update it to 2.73.3 ?

Kinematic is still showing the jenkins deprecated images as a primary 'official' image..you have to load the dockerhub page to notice its deprecated.

I am having the same issue using jenkins/jenkins.  Still says its 2.60.3.
docker pull jenkins/jenkins:lts
Any ideas on that?

Still something wrong!!!
docker pull jenkins/jenkins
Using default tag: latest
latest: Pulling from jenkins/jenkins
146bd6a88618: Pull complete                                                                                ....                                                                                a74efef6a6e9: Pull complete                                                                                Digest: sha256:0d6ac8a67144520546290eb2d591cee07e65f74bb81603ec4f1a5fed0c71c770
Status: Downloaded newer image for jenkins/jenkins:latest
docker.io/jenkins/jenkins:latest
docker images
REPOSITORY                                  TAG                  IMAGE ID            CREATED             SIZE
jenkins/jenkins                             latest               f69bdb978ead        6 days ago          573MB
but still - 2.60.3

Where did you take this excerpt from @lzchahaha?
It is wrong, the second line is running a different image from the one pulled on the first one.
It should be:
docker run --rm --name jenkins -p 8080:8080 -p 50000:50000 -v $PWD:/var/jenkins_home jenkins/jenkins:lts

Or, potentially even better to be sure you're using the same (example for Linux shell):
JENKINS_IMAGE=jenkins/jenkins:lts
docker pull $JENKINS_IMAGE
docker run --rm --name jenkins -p 8080:8080 -p 50000:50000 -v $PWD:/var/jenkins_home $JENKINS_IMAGE


OCP profile for Rack PDU products

Initial version of OCP Rack PDU profile for comment.
Builds on the OCPBaselineRedfishService profile for almost all common management functions.

Aug 8 - Approved to merge by workstream


Checking TLS version and cipher suites during handshake

Hi,
I'm trying to figure out how to specifically catch and log a connection error that occurs when the TLS server doesn't have a valid TLS version or a valid cipher suite. I am currently implementing a protocol that demands that I need to log security events, among them InvalidTLSVersion and InvalidTLSCipherSuite.
I tried to invoke such a situation by editing the server-side cipher suite in such a way that it doesn't match the client-side cipher suite. As a result, the only output I get from websockets is this:
"WebSocket connection closed with ConnectionResetError: "
Not even a hint what exactly when wrong. Sure, the TCP connection wasn't available because the handshake must have failed. But I would have expected an InvalidHandshake exception instead of a ConnectionResetError.
Can you please advise me on the steps I need to implement in order to find out whether or not

the server uses a correct TLS version
the server uses a cipher suite that matches the client's cipher suite

I thought that logging the websockets events with
logger = logging.getLogger('websockets')  logger.setLevel(logging.DEBUG)  logger.addHandler(logging.StreamHandler())
would be more informative, but all I get is the above statement about the ConnectionResetError.
Any help is much appreciated.

I'm not an expert but from my the usage of websockets, the SSL related stuff happens either at the level of creating the ssl context or when actually creating socket (i create the socket separately than i pass the socket to websocket creation), so you might want to do try and catch exceptions at that level.

I'm catching all exceptions at the time of creating the websocket, the result of which I have explained in my post above. I do create the SSLContext before creating the websocket client connection. But at the time of creating the SSLContext on the client side, there are no exceptions to catch that would relate to the TLS handshake. So not sure how that would help me.

well, you could try to create the network socket by hand and then to pass it to websocket.connect like this: create socket and then use it in websocket connect

Like @adriansev said, it's best to create the TLS connection outside of websockets, so you can control exactly what happens there. Then use the sock argument to pass it to websockets.

Thanks for the hint. However, I'm still stuck as I can't get the socket to connect. I might have a false understanding of how this is supposed to work. But I thought I create the socket (without connecting it yet) and hand it over to the WebSocket, which then performs the connection. Yet, I get the error message: "WebSocket connection closed with OSError: [Errno 57] Socket is not connected"
Here's the client code (the ssl_context was created properly):
try:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0) as sock:
with ssl_context.wrap_socket(sock, server_hostname=parsed_url.netloc) as secure_sock:
async with websockets.client.connect(
uri=url,
sock=secure_sock,
server_hostname=parsed_url.netloc) as websocket:
global ws
ws = websocket
await asyncio.gather(on_open(websocket), on_message(websocket), on_close())
except (ConnectionClosedOK, ConnectionAbortedError, ConnectionClosedError, ConnectionRefusedError, ValueError, SSLCertVerificationError
ConnectionResetError, InvalidStatusCode, InvalidHandshake, InvalidURI, SSLCertVerificationError, OSError) as err:
logger.error(f'WebSocket connection closed with {type(err).name}: {err}')
finally:
if ws is not None:
await ws.close()
And here's the server part (the ssl_context was created properly):
`hostname = '<IP_ADDRESS>'
port = 8443
try:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0) as sock:
sock.bind((hostname, port))
sock.listen(5)  # Queue up as many as 5 connect requests (the normal max)
with ssl_context.wrap_socket(sock, server_side=True) as secure_sock:
logger.info(f'Waiting for client connection at {hostname}:{port} ...')
while True:
client_sock, address = await secure_sock.accept()
logger.info(f'Client connected. Address: {address}')
server = await websockets.serve(handler, sock=client_sock)
logger.info('Websocket server started')
await server.wait_closed()
logger.info('Websocket server closed')
except SSLError as err:
logger.error(f'{type(err).name}: {err}')
return`
I'm glad for any help that points me in the right direction. Sorry for the bad visualization of the code (missing indentation), I tried using the "Insert code" button but still doesn't work nicely.

I'm sorry, I'm a bit at a loss about helping you here.
All this is handled by asyncio, a module from the standard library. websockets builds on top of asyncio but doesn't do anything with TLS (besides asking asyncio or ssl for reasonable defaults when establishing client connections to servers and the user didn't specify anything).
Could you show me how you would do what you want just with asyncio? Use any function you like to create a TLS connection and handle errors.
Once you do this, probably you have a socket that you can give to websockets. Then I can help if you still have trouble.
Your examples with the socket module are on the right track, but you should really do this with asyncio to make sure the socket is properly configured for asynchronous I/O. Look at create_connection or open_connection.


Unable to Install gf with go latest version. go get command got depreciated and not working with install command

Check your $GOPATH bin folder, I think it installed already with the @latest command

try to use
go install -v github.com/tomnomnom/gf@latest

@rudSarkar is correct, ensure your $GOPATH is correctly input in the proper file to reflect the terminal environment you are using, for example .zshrc or .bashrc. I JUST installed it using the following command:
go install github.com/tomnomnom/gf@latest
Then you will be able to follow the rest of the steps and get started with the tool.

Check your $GOPATH bin folder, I think it installed already with the @latest command

It was path issue only.

i can install other go package like Katana and Nuclei but i can't install GF, please help


Issue running with Phi3-vision

Describe the issue as clearly as possible:
Should work with Phi3-vision, but running into errors
Steps/code to reproduce the bug:
from outlines import models
from outlines import generate

model = models.transformers("microsoft/Phi-3-vision-128k-instruct", model_kwargs={'trust_remote_code':True, 'device_map':device, '_attn_implementation':'eager'})

schema = """
{
  "title": "User",
  "type": "object",
  "properties": {
    "FirstName": {"type": "string"},
    "LastName": {"type": "string"},
    "ID": {"type": "integer"}
  },
  "required": ["FirstName", "LastName", "LastName"]
}
"""
generator = generate.text(model, schema)
generator(
    "'<|user|>\n<|image_1|>\nExtract detailed JSON<|end|>\n<|assistant|>\n",
    [Image.open(impath)]
)

Expected result:
FirstName: "John"
LastName: "Doe"
ID: "12345678"

Error message:
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[170], line 2
      1 generator = generate.text(model)
----> 2 generator(
      3     "'<|user|>\n<|image_1|>\nExtract detailed JSON<|end|>\n<|assistant|>\n",
      4     [Image.open(impath)]
      5
      6 )

File ~/miniconda3/envs/all_models/lib/python3.8/site-packages/outlines/generate/api.py:213, in SequenceGenerator.__call__(self, prompts, max_tokens, stop_at, rng)
    209 token_ids = last_state.token_ids
    210 generated_token_ids = self.get_generated_token_ids(
    211     prompt_token_ids, token_ids
    212 )
--> 213 if max_tokens and len(generated_token_ids[0]) >= max_tokens:
    214     break
    215 if stop_sequences and self.is_stop_sequence_found(
    216     self.tokenizer.decode(generated_token_ids), stop_sequences
    217 ):

TypeError: '>=' not supported between instances of 'int' and 'list'

Outlines/Python version information:
Version information

```
huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
To disable this warning, you can either:
	- Avoid using `tokenizers` before the fork if possible
	- Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
0.0.46
Python 3.8.19 (default, Mar 20 2024, 19:58:24)
[GCC 11.2.0]
huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
To disable this warning, you can either:
	- Avoid using `tokenizers` before the fork if possible
	- Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...


Updated valitadions.py python script

Fixed the behavior of validate_user function in validations.py
Closes #1
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

@googlebot I signed it!


Fix typo 'more then' -> 'more than' in error and comments

There were typos in a reported resolution error and in some comments

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Eh2406 (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

That is the kind of mistake I would make. Thank you for finding it!

@bors: r=Eh2406

:pushpin: Commit caa8f783ad4da77137d3bdf83f58fa2c1b8c7a7c has been approved by Eh2406

:hourglass: Testing commit caa8f783ad4da77137d3bdf83f58fa2c1b8c7a7c with merge af539d2ad8298551f66d2a35d0954e91e7240d70...

:sunny: Test successful - checks-actions
Approved by: Eh2406
Pushing af539d2ad8298551f66d2a35d0954e91e7240d70 to master...


Develop->master (TASK-740)

Merge to master for deploying on next.  (The search image build is not yet automated, so I would need to do more work in order to build on next.)

Aborting for now; there's no kbase/search image on next.


erc721 cde: keep track of the address that burned the asset

This keeps track of the address that burned an erc721 asset by putting those into a different table.
Potentially this could be just a new row in the existing table, but I think this may be clearer? This way this could potentially be optional.
Note that this removes the burned asset from the existing table. This means it won't show anymore when searching for the assets of the 0 address. This may nor may not be desired, but I'm not really sure.
The main motivation for doing this is that, while this can potentially be done by adding erc721 transfer events to the cde and doing the indexing on the stf (which is also what's suggested by the current erc721 docs, but with the generic cde instead), this doesn't work for burns found in the presync stage, since there is no stf running for those.
Questions
What's the appropiate utils function for this? I imagine we may want a getBurnedNfts(cde, address)?

What's the appropiate utils function for this? I imagine we may want a getBurnedNfts(cde, address)?

Don't think this is needed for anything. The main thing we need is a stf update that says who burned which asset
aks the erc721 primitive would be updates so instead of providing only a prefix for the mint event, you can add upbto 2 prefixes: one for the mint and one for the burn

We could build it as a separate primitive like erc20-deposit but add a special shortcut for the burn address

what would be the advantage of that approach? It has the issue that we would end up fetching some data twice, if you have the erc721 and this new primitive enabled at the same time. But I guess that would be useful if someone only wanted the burn events, is that a potential use-case?
For now I added an optional prefix. If it's not present then the stf events are not emitted.


GTK CSS not installing

Hello, and thank you for this awesome project.
I have Stylix installed as a NixOS module, and I am running Home Manager. My config is a flake. Most things seem to be working. Chromium was immediately restyled, and to my delight even the system console took the colors I wanted, I didn't even know that was possible!
The one thing that I can't seem to get working is GTK styling. I tried putting gtk.enable = true in my Home Manager config, and programs.dconf.enable = true in both my system and HM configs, even though these options seem like they would be set by Stylix for me. I've tried reading through the Stylix source and, though I am still pretty new to Nix, from what I can tell it should work. But the only files linked in .config/gtk-3.0 and .config/gtk-4.0 are settings.ini, which only appeared after I manually placed gtk.enable = true in my HM config. This is after rebuilding both the system and HM.
Happy to answer any questions which can help debug. Thanks again!

Could it be that Stylix isn't imported into your Home Manager config at all? Chromium and the system console are both modules which don't rely on Home Manager. Do you use Home Manager within your NixOS configuration, or independently?

It's within my NixOS configuration, as a module e.g.:
homeConfigurations = {
  cvincent = home-manager.lib.homeManagerConfiguration {
    inherit pkgs;
    # etc...

That looks like an independent configuration in flake.nix. Try importing stylix.homeManagerModules.stylix under Home Manager. You'll also need to import your theme settings into both configs.
https://danth.github.io/stylix/installation.html#home-manager

That did do the trick! I guess I was confused by these lines in the installation documentation:

Installing Home Manager as a NixOS module is highly recommended if you don't use it already. This will combine it with your existing configuration, so you don't need to run any extra commands when you rebuild, and the theme you set in NixOS will automatically be used for Home Manager too.

When Stylix is installed to a NixOS configuration, it will automatically set up its Home Manager modules if it detects that Home Manager is available. You can theoretically use it without installing Home Manager, however most features will be unavailable.

And under the Home Manager heading, it seemed to suggest a separate import was only necessary for standalone (as opposed to module) HM or if I was opting into configuring Stylix for it separately.
Anyways, glad to have it working, and thanks for the help! That's another item checked off in my NixOS setup journey.

I think you're misunderstanding the difference between separate configs within the same flake (which seems to be what you have), vs configs which are truly combined.
With a truly combined config, you most likely wouldn't use home-manager.lib.homeManagerConfiguration at all. Instead, you'd import home-manager.nixosModules.home-manager on the NixOS side and then configure Home Manager from same file as NixOS using something like:
{
  home-manager.users.cvincent = {
    ...
  };
}

This is the only setup where Stylix can automatically import its Home Manager modules.


Video preload doesn't work correctly on Safari (Mac)

I have a portfolio site that is running into a preload problems.
The example page here contains 186Mb of videos and images: https://paulcohen.info/project/esso
page uses this twig element for media items
{{ media.preload().html() }}

On a Mac running Chrome and Firefox I see the expected / correct beghaviour — ie the page loads the image / hold frames for the videos (and starts to load just the beginnings of the video files unless they are clicked on)
BUT
On Safari  /  mac (tested on 3 different machines) the pages attempts to load ALL of the videos before showing anything...

Can you please provide the HTML output by the Twig for the <video> tags?  I'm pretty sure we're just following the HTML5 spec here, but maybe there's something specific for safari required.

Of course, sorry...
<video controls="1" alt=""><source src="/user/pages/01.project/02.esso/EssoTheReindeerPrincess_1080.mp4">Your browser does not support the video tag.</video>

same video tags in Chrome

This outputs the correct preload attribute in the tags:
{{ page.media['sample-trailer.mov'].preload('auto').html }}

thanks... changing
{{ media.preload().html() }}
in my template to
{{ media.preload('auto').html() }}
but still seems Safari is misbehaving. If it helps the full page loop is here:
 {% for filename, media in page.media.all %}
                    {% if uri.param('slide') and md5(filename) == uri.param('slide')%}
                        {% set initial_slide = loop.index0 %}
                    {% endif %}

                        {{ media.preload('auto').html() }}

 {{ page.title }} ({{ loop.index ~ ' of ' ~ loop.length }})

                {% endfor %}

If the output complies with the HTML5 video tag, then we are doing what we can, and the problem lies at Safari's feet: https://stackoverflow.com/questions/49799456/html5-video-tag-not-playing-video-in-safari-untill-it-is-fully-downloaded

On another project I'm on, i noticed safari does not play all webm codecs. Also safari does not record video the way firefox and chrome can. Apple seems about a year behind


Action 'delete' can be used always

Fixed so that you can use if you are logged

Hello,
we are reviewing and clearing issues and PRs from this repo to avoid cluttering up the backlog, right now we're working on v2 version of blockwishlist compatible with PrestaShop 1.7 and version 1x for PrestaShop 1.6 is no longer supported, because of this I close this PR
Thanks!


Multiple listeners created for same port

This issue is an exact copy of https://github.com/Azure/application-gateway-kubernetes-ingress/issues/966, which was opened by @davejhahn and closed by @akshaysngupta but not yet fully solved.
Attempts to get attention on the closed issue have failed, so I'm opening this new issue.

Describe the bug
I have a configuration where I have multiple domains that should point back to the same backend. With the ingress config I am using it creates two listeners and the same port, and although it appears to work, it shows an error in the portal and on subsequent updates of App GW through Terraform, "This Basic HTTP listener cannot use the same frontend port as an existing listener.
To Reproduce
spec:
  rules:
  - host: '*.mysite.com'
    http:
      paths:
      - backend:
          serviceName: my-service-name
          servicePort: http
        path: /api/path*
  - host: 'mysite.com'
    http:
      paths:
      - backend:
          serviceName: my-service-name
          servicePort: http
        path: /api/path*

This creates two listeners, both on the same port (443 in my case), linked to the front end IP configuration. I'm wondering if it should be multi-site rather than basic but cannot find where that is controlled from the configuration that AGIC uses--I'm thinking it might be automatically determined and that my syntax is wrong but I cannot find any other examples. I read one post about "hostnames" instead of "hostname", but I believe that was internal to AGIC, release notes @ https://github.com/Azure/application-gateway-kubernetes-ingress/blob/master/CHANGELOG/CHANGELOG-1.2.md#v120-rc2
Ingress Controller details
Name:         ingress-azure-84b5574c46-lk8nf
Namespace:    default
Priority:     0
Node:         aks-default-77266492-vmss000000/<IP_ADDRESS>
Start Time:   Mon, 03 Aug 2020 14:55:51 -0500
Labels:       aadpodidbinding=ingress-azure
              app=ingress-azure
              pod-template-hash=84b5574c46
              release=ingress-azure
Annotations:  checksum/config: 34e838db128325bcbaf6bc634e73547ceb97d3acebd83a31f915cd88e3414810
              prometheus.io/port: 8123
              prometheus.io/scrape: true
Status:       Running
IP:           <IP_ADDRESS>
IPs:
  IP:           <IP_ADDRESS>
Controlled By:  ReplicaSet/ingress-azure-84b5574c46
Containers:
  ingress-azure:
    Container ID:   docker://bf94256cc82672647ab9636bf799316ce91cd13617fafeb555e26cefe7609715
    Image:          mcr.microsoft.com/azure-application-gateway/kubernetes-ingress:1.2.0
    Image ID:       docker-pullable://mcr.microsoft.com/azure-application-gateway/kubernetes-ingress@sha256:de458f962eab0cd2de19d23dfeb9a0e4bc2565a38f8c45cc98a74f3cda8b940c
    Port:           <none>
    Host Port:      <none>
    State:          Running
      Started:      Mon, 03 Aug 2020 14:55:54 -0500
    Ready:          True
    Restart Count:  0
    Liveness:       http-get http://:8123/health/alive delay=15s timeout=1s period=20s #success=1 #failure=3
    Readiness:      http-get http://:8123/health/ready delay=5s timeout=1s period=10s #success=1 #failure=3
    Environment Variables from:
      ingress-azure  ConfigMap  Optional: false
    Environment:
      AZURE_CLOUD_PROVIDER_LOCATION:  /etc/appgw/azure.json
      AGIC_POD_NAME:                  ingress-azure-84b5574c46-lk8nf (v1:metadata.name)
      AGIC_POD_NAMESPACE:             default (v1:metadata.namespace)
    Mounts:
      /etc/appgw/azure.json from azure (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from ingress-azure-token-g89l8 (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             True
  ContainersReady   True
  PodScheduled      True
Volumes:
  azure:
    Type:          HostPath (bare host directory volume)
    Path:          /etc/kubernetes/azure.json
    HostPathType:  File
  ingress-azure-token-g89l8:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  ingress-azure-token-g89l8
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s
Events:          <none>

Ingress Controller Log
I0803 19:55:54.074018       1 auth.go:46] Creating authorizer from Azure Managed Service Identity
I0803 19:55:54.074094       1 httpserver.go:57] Starting API Server on :8123
I0803 19:55:54.951014       1 main.go:177] Ingress Controller will observe the following namespaces:default
I0803 19:55:55.013067       1 context.go:132] k8s context run started
I0803 19:55:55.013098       1 context.go:176] Waiting for initial cache sync
I0803 19:55:55.413244       1 context.go:189] Initial cache sync done
I0803 19:55:55.413265       1 context.go:190] k8s context run finished
I0803 19:55:55.413359       1 worker.go:39] Worker started
I0803 19:55:55.615336       1 mutate_app_gateway.go:177] BEGIN AppGateway deployment
I0803 19:57:26.498775       1 mutate_app_gateway.go:185] Applied generated Application Gateway configuration
I0803 19:57:26.498790       1 mutate_app_gateway.go:200] cache: Updated with latest applied config.
I0803 19:57:26.500565       1 mutate_app_gateway.go:204] END AppGateway deployment

We have the same problem here, but actually everything works fine.
AGIC create the listener, and set its "hostnames" field, but Azure Portal did not read this field, it seems to only handle "hostname" field. You can actually check this using Azure CLI:  az network application-gateway http-listener show
According to the documentation it seems that multi-sites is a feature that is not yet supported in Azure Portal as mentioned in the documentation (here).

This feature is currently available only through Azure PowerShell and Azure CLI. Portal support is coming soon. Please note that since portal support is not fully available, if you are using only the HostNames parameter, the listener will appear as a Basic listener in the portal and the Host name column of the listener list view will not show the host names that are configured. For any changes to a wildcard listener, make sure you use Azure PowerShell or CLI until it's supported in the portal.

Hope that helps.

Yes, I agree that it's only a display error in the Portal; but in the original issue, it was reported 6 months ago that this display error would "soon" be fixed.

It seems that "soon" does not have the same value for everyone...
No, just kidding ! It's just a matter of priority.
However, if an Azure Portal Developer read this issue, we are very interested, here, by the resolution of this issue.
Even if everything, behind the scene, works fine, this display error is annoying and makes our investigation more difficult. Thank you.

Is it really just a display issue? I created a script that associates a rewrite rule set with the routing rules since agic in its infinite wisdom decides to throw them away at every update. But the powershell script fails to update the gateway due to: Set-AzApplicationGateway : Two Http Listeners of Application Gateway fl-11b6b0ef99b655c6e31b9f4a8008d60f and fl-0e00f020fe85d9dd63eb5e0ef66840cb are using the same Frontend Port

Good find @Expecho, maybe it is more than just a display issue after all... Did anyone file a support request for issue this yet?

.... agic in its infinite wisdom decides to throw them away at every update...

This is mentioned in https://github.com/Azure/application-gateway-kubernetes-ingress/issues/462

@bbreijer I didn't file a support request for this as it is covered by this and other issues. My main concern is that it takes such a long time before it is addressed.

Yep, it's almost a year since:

you should soon stop seeing the error message

https://github.com/Azure/application-gateway-kubernetes-ingress/issues/966#issuecomment-668439315
So... happy anniversary? 😒

Good find @Expecho, maybe it is more than just a display issue after all... Did anyone file a support request for issue this yet?

.... agic in its infinite wisdom decides to throw them away at every update...

This is mentioned in #462

Yes I have opened a support request in September 2020 about this with Azure and they were looking to deliver a solution EOY 2020 🗡 👯♂

For anyone finding their way here looking for a way to get AGIC to generate a single listener for a multi-host ingress like the one in the OP, it looks like that is impossible with the current implementation. AGIC loops through each ingress rule and creates a separate listener for each one:
https://github.com/Azure/application-gateway-kubernetes-ingress/blob/8bc1e63c3714667bb59f8533fd39b8970e77bd2b/pkg/appgw/ingress_rules.go#L27-L32
There is a workaround! If everything else about your multiple rules is the same (paths, etc) then you can use an annotation to add additional hosts, and these are correctly added to the same listener.
appgw.ingress.kubernetes.io/hostname-extension: "hostname1, hostname2"
https://azure.github.io/application-gateway-kubernetes-ingress/annotations/#hostname-extension
These additional hostnames are added to ALL rules so you probably only want to use this on single-rule ingresses.
Also, make sure your TLS certificates are issued with the necessary wildcards and/or Subject Alternative Names


conda install xsar is leading to "failed with initial frozen solve." before successful install

In the dependencies of xsar some are currently (release v9.1) creating conflicts in conda solver.
In particular :

more_itertools (which seems useless now)
rasterio
rioxarray

The conflicts are solved but it makes the installation of xsar super long (about 45min).
The second problem is that we have too many dependencies files:

requirement.txt
environment.yml
setup.py

after some tests it appears that the main remaining conflict is coming from geopandas <-> rioxarray.
Both libraries are kind of pilar of xsar so I suppose that we need to keep it as it is waiting for future version of the libs that are compatible.


Fix build on NRFConnect.

Looks like that has started using Advertiser_ImplNone.
Problem
NRFConnect using Advertiser_ImplNone, which does not compile.
Change overview
Make it compile.
Testing
No good way to test apart from CI.

Hoftix build breakage fix


workspaceFolderBasename not resolved

The variable ${workspaceFolderBasename} officially listed here is not resolved in cmake.buildDirectory, but yields:
Invalid variable reference ${workspaceFolderBasename} in string.
If cmake.buildDirectory is empty, cmake configure fails as well (obviously).
It would be great if the user would be prompted for a buildDirectory in this case.

The variables you referenced are resolved by VS Code when you use them in tasks.json or launch.json. Extensions have to explicitly build support for them when they are used elsewhere.
cmake.buildDirectory defaults to ${workspaceFolder}/build when not set. Did you set it to an invalid location, or the empty string ""?

Indeed I tried to customize the build directory and thus changed the default value.
As I wanted to be asked for the build directory each time, I also tried the empty string in the user settings.

The variables you referenced are resolved by VS Code when you use them in tasks.json or launch.json. Extensions have to explicitly build support for them when they are used elsewhere.

@bobbrow Do you have any tips how can this be implemented?

In cpptools we treat them as additional environment variables and pass them into the resolver as such.  I haven't looked to see how CMake Tools does this yet.

This was fixed in 1.3.0


[Avatar] Migrate to testing-library

As for AppBar I refactored Avatar test component

[x] I have followed (at least) the PR section of the contributing guide.

I don't understand the problem now @oliviertassinari

@marcosvega91 I have retry a deploy

@marcosvega91 Thanks!


Add <User/Guild/Role/Channel>.createdAt

Forgot to do docs.

Hi, can you store the date as a Unix timestamp _createdAt, and make a getter that returns it as a new Date? It should reduce memory usage.

Or alternatively, remove _createdAt altogether and make it a getter


Figure out favicon

Again....
we're on:
<EMAIL_ADDRESS>
for the record

I vaguely remember we fixed this in some iteration of vizlab. Locally when I build it's working, but still not showing up on dev. I've tried updating the image itself (so at least it'll be "retina" friendly when it actually works).
At some point I'll investigate PRs of vizlab to refresh my memory.


RendererOptions values override default values in Renderer

In core/renderer/index.ts we are defining the default values for the renderer
const defaultOptions: SolidRendererOptions = {
  appWidth: 1920,
  appHeight: 1080,
  deviceLogicalPixelRatio: 0.6666667,
  devicePhysicalPixelRatio: 1,
  rootId: 'app',
  threadXCoreWorkerUrl: undefined,
};

These values override the default values defined in the lightning-js/renderer library, defined and documented in the file main-api/RendererMain.ts.
This is a bit confusing and from my test the default options defined in the renderer are better, since are based on the device. The defaultOptions here should only have rootId and threadXCoreWorkerUrl.
Let me know if I'm missing somehting

0.9.0 is released and default options are removed. rootId still defaults to app
Thanks!


Dereference test modifications

Changing the entry direclty by modifying RamDisk won't trigger the
update sequence needed to make the references live. This is
coincidentally worked thus far because a new store is created every
time.

Clear pendingDriverModels after grabbing them to apply in DirectStore.
Fixes an infinite loop bug, since updateStateAndAct will call
applyPendingDriverModels, which will call updateStateAndAct, which
will then apply the same pendingDriverModels

OMG, "commit suggestion" just blew my mind


Questions about search and retrain.

@ildoonet @sublee Hi, it is so nice of you guys to release the search code and will be much appreciated. While running with your search code and retrain with found policies, I still got some problems and hopefully you can help me figure them out.

Some bugs in the search code after policy search, seems like the policy cannot be fed into the final retrain stage？
About your search process, for me it looks like during each trial you select 5 sub-policies containing 2 operations, while in your eval_tta, you just sampled 5 val_loaders by randomly select 1 sub-policy from your 5 sub-policies and report the avg acc? I'm wondering what's the intuition behind this?
After running search with your code, we can get a policy list with around 750 sub-polices. I'm wondering how many sub-policies you used to get the results reported in the paper.
I've retrained the model with randomly selected polices, p and magnitude many times, I can consistently get the comparable error rates with the results trained by best policies. This makes me very confused, so I'm very much desired to listen to your opinions.

Looking forward to your reply
Thanks again.

One more question. What does the T represent in your paper. from your code, it seems to be the target_lb, however your paper refers T to search width and set to 2.
Really hoping for your reply. It should be very helpful to my current work.
Thanks!

@rodrigoberriel Thank you. I think they have updated their search coed

This is the original one.

@Shaw95 @rodrigoberriel The code is really confusing...
I think T supposed to be augment['num_policy'] in fast-autoaugment/FastAutoAugment/search.py
and 'stop': {'training_iteration': args.num_policy}, in fast-autoaugment/FastAutoAugment/search.py
If not, could you tell me why it need to be repeated args.num_policy times?
btw, I still don't know what for _ in range(1): means, this line happens more than one place.

@Shaw95 the  rearch result in granularity of policy rather than sub-policy  becuause the ops in one sub-policy is different from each other, diversity of augment can be assured by doing this.

@Shaw95 the rearch result in granularity of policy rather than sub-policy becuause the 10 ops in one policy is different from each other, diversity of augment can be assured by doing this, otherwise in granularity of subpolicy the result will collapsed to focus on 2-3 particular effective ops. It is true that in a instance of augmenting ,only 1 subpolicy is invoked

My  understanding is that the rearch result in granularity of policy rather than sub-policy becuause the 10 ops in one policy is different from each other, diversity of augment can be assured by doing this, otherwise in granularity of subpolicy the result will collapsed to focus on 2-3 particular effective ops. It is true that in a instance of augmenting ,only 1 subpolicy is invoked. This conclusion need to be varied by going  deeper into TPE algorithm in the reference papers by which one policy is generated.

My understanding is that the rearch result in granularity of policy rather than sub-policy becuause the 10 ops in one policy is different from each other. Diversity of augment can be assured by doing this, otherwise in granularity of subpolicy the result will collapse to focus on 2-3 particular effective ops. It is true that in a instance of augmenting ,only 1 subpolicy is invoked. This conclusion need to be varied by going deeper into TPE algorithm in the reference papers by which one policy is sampled and generated.

@Shaw95 to your question 2. My understanding is that the rearch result in granularity of policy rather than sub-policy becuause the 10 ops in one policy is different from each other. Diversity of augment can be assured by doing this, otherwise in granularity of subpolicy the result will collapse to focus on 2-3 particular effective ops. It is true that in a instance of augmenting ,only 1 subpolicy is invoked. This conclusion need to be varied by going deeper into TPE algorithm in the reference papers by which one policy is sampled and generated.

Hi, @RenShuhuai-Andy and @Shaw95 did you manage to find out why calling the generator needs to be repeated args.num_policy of times?


Incorrect prefix shown with placeholder %luckperms_prefix%

Hi! Not sure who's fault this is, whether its PAPI, this plugin, or LuckPerms but I decided to post here as it's the only plugin that fails to show the correct prefix. Basically, I'm in the group "owner" and the prefix is "&4Owner" with LuckPerms. However, instead, Infoboard shows a completely different group prefix (Ultra) that I do not have in my parent groups or any relation to. I have tried logging on with a completely different Minecraft account that was assigned to a completely different group to see if it was a problem with my permissions, but the exact same thing came up.
My board YML looks like the following
InfoBoard:
  '1':
    ShowTime: 1000
    global:
      default:
        Title: '&b&lCloudCraft &7| &rSkyblock'
        Rows:
        - '&7&m-----------------'
        - '&b&lYou'
        - ' &3* &rRank: %luckperms_prefix%'
        - ' &3* &rMoney: &a$%vault_eco_balance_formatted%'
        - ' '
        - '&b&lIsland'
        - ' &3* &rLevel: &b%askyblock_level%'
        - ' &3* &rMembers: &b%askyblock_team_size% '
        - '&7&l&m----------------'

Any help is appreciated!
Kind regards,
Spencer

This is very odd indeed, I use Luckperms on my test server and have never come accross this issue.
IBR asks PAPI what todo with the placeholder, so my first guess would be the a mistake in the expansion, but since you tested it with different plugins, where is doesn't happen...
The only thing I can say at this moment is to try a different placeholder, Vault's in this case:
%vault_prefix%
%vault_rankprefix%
Vault is like PAPI, it hooks into other plugins (specifically economy and permissions), if the same "error" happens with that expansion/placeholder than it must be my plugin.
But I will look into it regardless of the outcome of the other placeholder "test".

I managed to fix this by doing what @pixar02 suggested and using vault prefixes, thank you for your help :)


chore(main): release 0.1.4

:robot: I have created a release beep boop
0.1.4 (2023-06-15)
Bug Fixes

improved  n98 command handler and updated slack output notifier (5b1d7ec)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/furan917/MageComm/releases/tag/v0.1.4 :sunflower:


fix redunant self

Coverage decreased (-0.7%) to 93.076% when pulling<PHONE_NUMBER>f234486d50e2537ce3602785beea65 on zmw/fix_redunant_self into d786c8614b113d026c4252d2b8ea9717c8196f11 on master.

Coverage decreased (-0.06%) to 93.72% when pulling 840949d73fbb5b9ee38d8b7eadacf1066a590ae5 on zmw/fix_redunant_self into d786c8614b113d026c4252d2b8ea9717c8196f11 on master.


typo

There is a typo preventing build. I think this resolves it (seems to build) but I am not sure if something else was intended there.
My linter made this a bigger change, sorry. it's essentially this:
/Users/konsumer/Desktop/otherdev/libretro-null0/build/_deps/pntr-src/pntr.h:500:5: warning: expression result unused [-Wunused-value]
    pntr_image_get_color_pointer;

(there was an extra pntr_image_get_color_pointer in an if statement line.)

Sidenote: is there clang linter settings I should use for this project? I have format-on-save turned on, which I could turn off, but maybe just sticking to the same formatting rules would cut down on huge commits.

Whoa, lots of changes! :laughing: .... THanks a lot for the find on the typo. Fixed in the latest commit :+1:

I do it in my editor (sublime-text) I will disable it for now, for this project. It's something I started doing that helps my dyslexia, as it triggers the code to "look right" as soon as I save. I do it in js too, with standard.
Here is my subl config, which I think might be close to your style:
{
  "BasedOnStyle": "Chromium",
  "InsertBraces": true,
  "ColumnLimit": 0,
  "TabWidth": 2,
  "UseTab": "Never"
}```

I think this can be translated to the [config-format](https://clang.llvm.org/docs/ClangFormatStyleOptions.html) and saved in file, for shared style options, but I can also just disable it on my side.


Fix text on empty screens (transactions, addresses, utxo)

Transactions
Text for All, Sent, Received - "Your transactions list is empty".
Text for In progress - "You have no active transactions" if there is no transactions in progress but there are other transactions and "Your transactions list is empty" if there are no transactions at all.
Also if there are no transactions at all, let's not show tabs on top of the screen too.
Contacts/Addresses
Text for My active - "Your addresses list is empty" if there are no addresses at all, "You have no active addresses" if there are some expired addresses.
Text for My expired - "Your addresses list is empty" if there are no addresses at all, "You have no expired addresses" if there are some active addresses.
Text for Contacts - "Your contacts list is empty"
UTXO
Text for All, Spent, Unavailable - "Your UTXO list is empty".
Text for In progress - "You have no active UTXO" if there is no UTXO in progress but there are other UTXOs and "Your UTXO list is empty" if there are no UTXO at all.
Also if there are no UTXO at all, let's not show tabs on top of the screen too.

duplicate


Exception thrown when attempting to run benchmark

Exception is thrown when attempting to run benchmark using :WindLineBenchmark:
E5108: Error executing lua C:\Users\user\.vim-plug\plenary.nvim/lua/plenary/profile/p.lua:46: module 'jit.vmdef' not found:
	no field package.preload['jit.vmdef']
	no file 'C:\Users\user\scoop\apps\lua\current'
	no file 'C:\Users\user\scoop\apps\lua\current'
	no file 'C:\Users\user\scoop\apps\lua\current'
stack traceback:
	[C]: in function 'require'
	C:\Users\user\.vim-plug\plenary.nvim/lua/plenary/profile/p.lua:46: in main chunk
	[C]: in function 'require'
	C:\Users\user\.vim-plug\plenary.nvim/lua/plenary/profile.lua:5: in main chunk
	[C]: in function 'require'
	...ers\user\.vim-plug\windline.nvim/lua/windline/benchmark.lua:9: in function 'benchmark'
	[string ":lua"]:1: in main chunk

Different exception is thrown when attempting to run a second time, not sure if helpful:
E5108: Error executing lua ...ers\user\.vim-plug\windline.nvim/lua/windline/benchmark.lua:9: loop or previous error loading module 'plenary.profile'
stack traceback:
	[C]: in function 'require'
	...ers\user\.vim-plug\windline.nvim/lua/windline/benchmark.lua:9: in function 'benchmark'
	[string ":lua"]:1: in main chunk

NVIM v0.7.0
Windows 10

are you try on WSL I think it only work on linux

Sadly I don't use WSL so I can't say if it works there. I think benchmark would be useful.

you can go to that file and comment line 1 to 20
C:\Users\user.vim-plug\plenary.nvim/lua/plenary/profile/p.lua:46
https://github.com/nvim-lua/plenary.nvim/blob/master/lua/plenary/profile.lua#L23
or submit a PR to benchmark without plenary

Looks like commenting these lines (46 - 68 in p.lua) like you suggested really made it work for me!
So is it just a chunk of plenary that doesn't really work on Windows? If so it might be useful to raise an issue on plenary repository.


Support file uploads

closes #572

Hey @alistair, the code looks good as far as I can tell, but would you add an end to end test to that somehow?

@alistair How is this supposed to work?
So far, I had to use MVC controllers for file uploads instead of Wolverine endpoints.
I now tried to migrate them to Wolverine but I can't figure out on how to make them working :D
Must IFormFile be an endpoint argument or can it be inside the request model?
In our case we used this in MVC
public record CreateAttachmentRequest(Guid AttachmentFolderId, IFormFile Attachment);

and marked the controller action with [Consumes("multipart/form-data")].
This way, our Swagger looked like this

But if I use the same model with Wolverine, it does not work.
If I specify IFormFile as endpoint parameter (instead of inside the model) my Swagger forces me to decide between uploading a file body or JSON payload. Which is wrong in both cases.

or

And either way Wolverine won't accept the same request that our frontend sends.
Would be nice if you could help me out :)


Issue with SSH with Virtual IP

Hello, I'm trying to initiate an SSH connection from my local Kopia container to a remote server for backups. However, the container isn't using the Tailscale virtual IP for the SSH connection, causing it to fail.
However, the connection works when I use the Tailscale sidecar method with the container.
Thanks!

Not sure if I understood correctly, but if you are trying to connect a tailscale address from a docker container that is proxied by tsdproxy, you will not be able to do that. You have to use tailscale sidecar for that one.


⚠ Bofrost.de has degraded performance

In 03306e3, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1302 ms

Resolved: Bofrost.de performance has improved in c136049 after 27 minutes.


Check why a post delete or added the main page does not update (add from api)

[x] Admin side: It works in admin side but in front HTML render does not work
[x] It works in Blogs of front both category and post
[x] it works in home page
[x] Blogs like works
[x] Home page like works (it needs a cache for main page, to store IDs of last posts to check if the ID of posts which is liked exist to update it, and do not query whole the pages like blog. Do a https://github.com/mishka-group/Proposals)

We will make a better way for it
https://github.com/mishka-group/Proposals/issues/1


issues while parsing malleable c2

coundnt parse the malleable c2 with sleep mask token set to 11, couldnt reconize some new params in new profile params. any sample profile to test with? so i can try to tweak maybe ?

Hi there!
The latest supported version of Cobalt Strike Malleable C2 profiles is 4.8 for now.
BounceBack uses this library for parsing Malleable C2 profiles.
This profile was used as a test data for this library, so you may try it by yourself with BounceBack.
Searching in Malleable Command and Control and Malleable PE, Process Injection, and Post Exploitation
 sections of official documentation for "sleep mask token" did not give any result, so please provide a link to documentation for this param in profile.
Also it will be nice of you to provide me some verbose logging you get when trying to parse your profile and your profile itself.

those for example are not parsed and make bouncebak complains about them:
set create_remote_thread "true"; # Allow beacon to create threads in other processes
set hijack_remote_thread "true"; # Allow beacon to run jobs by hijacking the primary thread of a suspeneded process
###Steal Token
set steal_token_access_mask "11";
those make bounceback compalins and crashing, unable to parse them, there is more params that are unhandled and parsed also.

Yeah, found that goMalleable lib throws an error, when a string field contains only numbers, so fixing it will fix an error with "steal_token_access_mask" (already fixed it). Please check that it works for you.
Other params like "create_remote_thread" and "hijack_remote_thread" was only added in CobaltStrike 4.9, which is now not supported by BounceBack, but will be supported soon. So just remove unsupported new params from your profile when using it with BounceBack.
If you have other headers, that was added in CS 4.8 and older, that causes errors, please, report them here.
If no, please, close the issue.

ok i'll test it and keep you up to date thanks for the answer :)

Any updates? If you tested it already, I will close the issue.

Close because of no updates and existing fix