Be able to use pipeline execution status in pipeline finally

Feature request

It's currently possible to check individual tasks's execution status in a pipeline's finally, but seemingly not the pipeline's execution status as a whole. One could imagine this is a pretty common usecase, as acting on the pipeline's result would make control flow easier as checking each individual task's execution status doesn't scale with larger pipelines. Having a single field for the pipeline result that the user could combine with when expressions would make a pretty user-friendly way clean up after a pipeline depending on the results.
This feature request suggests adding a variable binding to the pipeline that is accessible from a pipeline's "finally". For example context.pipelineRun.status or similar.
Use case

We're trying to implement our first pipeline using the github-set-status task. Roughly the idea is to set the github commit status to pending when the pipeline starts, do some stuff, and whenever the pipeline fails sets the github commit status to failed. The latter I just can't seem to figure out.
I would like to do something like the following (some parts omitted for brevity):
apiVersion: tekton.dev/v1beta1
kind: Pipeline
spec:
  tasks:
    - name: github-set-pending
      taskRef:
        name: github-set-status
      params:
        - name: STATE
          value: pending
    # .. More tasks
  finally:
    - name: github-set-error
      when:
        - input: "$(context.pipelineRun.status)"
          operator: in
          values: ["Failure"]
      taskRef:
        name: github-set-status
      params:
        - name: STATE
          value: error
        - name: DESCRIPTION
          value: "$(context.pipelineRun.statusMessage)"

From the documentation it's unclear what the idiomatic way to fetch pipeline execution status in finally is. I looked for some time without finding it, apologies if I missed something obvious.
If this feature is hard to implement, then it may be wise to document a workaround under Adding finally to the Pipeline in the interim.

/assign


Bot gets kicked and the viewer is still using the port

When the bot gets disconnected, the viewer is still using the port.
And when the bot reconnects, it says that the port is already in use and leaves the server.

i did it by adding this code:
// Check for kicks and closing the viewer while reconnecting in 10 secs
  bot.on('kicked', (reason) => {
    if (bot.viewer) {
        bot.viewer.close();
    }
    console.log(`${config['bot-account']['username']} has been kicked from ${config.server.ip}: ${reason}`);
    console.log('Reconnecting in 10 seconds...');
    setTimeout(createBot, 10000);
  });

also note that i used a custom config for this so you may need to modify this code.


Add connector for elasticsearch

#395

@paualarco Maybe there is some thing wrong about github-actions
The `set-env` command is deprecated and will be disabled on November 16th. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

The `add-path` command is deprecated and will be disabled on November 16th. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

@livelxw have rebased master and pushed a commit to add the docs to the webpage, will look into the ci pipeline issue now!

@livelxw the pipeline is fixed :)

Do you plan to add more changes? Otherwise, I am happy to merge already :)

@paualarco It can be merged I think. I'll provide some more PRs if needed.


Dr Elephant DOES NOT support Spark 2.X

@akshayrai @shankar37
There have been many issues keep coming about Spark 2.X. I think we should add a note in the documentation and make it official that Dr Elephant does not support Spark 2.X. What do you guys think?

Please refer #327 for the latest updates.


Limit disk cache size

Hi,
I'm trying to limit the disk space used by the default cache, but I don't know where to set this property. I'm doing it on the AppDelegate, but this does not seem to work, the cache folder keeps saving images, even when the size has overpassed the limit i've set.
Used disk size by bytes: 30076928 / 10485760
I've set the limit to 10MB, but the cache is already ~30MB

The disk cache size limit is a "soft" limit instead of a "hard" one. Calculate the whole cache size before determine whether to store it or not would be a performance cost behavior. Kingfisher will only check the disk size and remove some older caches which exceed size limit when you switch the app background.

Oh, i get it. So, id I set my cache limit to 10MB, and the maxCachePeriod to -1, this will cause to only delete files from disk once the 10MB capacity has been overpassed?
Also, is the AppDelegate the correct place to put this code?

Yes, you are correct. The files will be checked and cleaned when user click Home button to switch your app background, or when you call the cleanExpiredDiskCache manually.
I guess it is a reasonable place to set it in AppDelegate.


Recordings being delete

Hi folks,
I'm having an issue where days of recordings keep disappearing, for instance, I checked last night that I had recordings from 27-09-2023 and now that whole folder is gone.
Trying to track down to see if its Nextcloud that is the issue or is there a settings where Viseron overwrites old recordings?
Thanks

Viseron deletes recordings after 7 days by default.
You can control for how long you want to store them using the retain config option under recorder

ahhh that explains it, was pulling my hair out at this haha. thank you!

Forgot to add, would there maybe be room for this to be included into the NVR component in the docs?

nvm, it is, im just stupid, please feel free to delete this issue haha

Guys, do we have any documentation to where to add that retain key-value pair?

You can find it in the component docs for FFmpeg/GStreamer under the recorder settings
https://viseron.netlify.app/components-explorer/components/ffmpeg


Snakemake runs interactively with slurm but fails when submitting the slurm script

Snakemake version
snakemake version 8.12.0
Describe the bug
I can run my snakemakefile interactively without any issue salloc --nodes=1 --partition=acompile --ntasks=1  --time=01:00:00  --qos=compile --job-name=acompile --bell --oversubscribe srun --pty /bin/bash
However, when I submit a snakemake pipeline inside a slurm script with sbatch I get the following error:
/usr/bin/env: 'bash': No such file or directory
2024-05-30 07:58:36 [jobmngr] Job command 'sbatch' not found in "/pl/active/Anschutz_BDC/packages/cellranger-8.0.0/lib/bin:/pl/active/Anschutz_BDC/packages/cellranger-8.
0.0/external/martian/bi...

Hi,
whether this is a bug or not is unclear: you do not display the jobscript.
Also note: Are you using the snakemake-executor-plugin-slurm? It is designed to submit jobs from login/head nodes, not to be run within a job context. As of version 0.7.0 it issues a big fat warning, if you attempt to run it inside a SLURM job, because we cannot guarantee a working system this way.

@kf-cuanschutz please indicate further information (are you using the executor-plugin-slurm, is sbatch available on your compute nodes, which is the environment - why are you running snakemake in a job context, did you address the developers of your wrapper, did you update your version of snakemake). Otherwise, I will close this issue, eventually.


Show objects from an alternate mode on the map

The problem: when you add a POI in the micromapping mode, or vice-versa, you don't immediately see it on the map. One way to fix that is to display alternate mode objects as small dots.

Done in 0.1.12.


Adding support to mermaid

Obsidian allows you to use mermaid to generate graphs but in quartz those are rendered as code blocks as the feature is not included.
It would be great to add the mermaid block parsing to the pipeline
Thank you for your great work

Will leave this outside the scope of Quartz, there seems to be good articles on how to integrate this though (e.g. https://skeptric.com/diagrams-in-hugo/)! The easiest way would be to make a new HTML partial (much like graph.html)

@jackyzha0 will you be open to a PR to add this natively for quartz?

@jackyzha0 would you be open to a PR to add this natively for quartz?
Hugo added way to render mermaid diagrams via render hooks: gohugo.io/content-management/diagrams/#mermaid-diagrams

If you have a PR, that would be lovely. Please do put it behind a feature flag though!


code 128 barcodes giving false positive when scanned at an angle

We are using Zxing.net.mobile with possible formats as code 39, Aztec and Code 128.
When we are scanning code 128 barcodes from some angle then we are getting false positive values from 2 out of 40 times (intermittently) i.e. random values like we are scanning 123456 but we are getting 3@&!.
Scanning options set as below:
var options = new ZXing.Mobile.MobileBarcodeScanningOptions()
{
TryInverted = true,
AutoRotate = false,
TryHarder = false,
DelayBetweenAnalyzingFrames = 5,
DelayBetweenContinuousScans = 5,
InitialDelayBeforeAnalyzingFrames = 4,
PossibleFormats = new System.Collections.Generic.List<ZXing.BarcodeFormat>() {
ZXing.BarcodeFormat.AZTEC,
ZXing.BarcodeFormat.CODE_39,
ZXing.BarcodeFormat.CODE_128}};
we have set try harder = false to handle this. if we set try harder as true then the rate of false positive values is increasing.
Is this a known issue and we have any solution to this? Or is this something we need to live with.
Also we want your recommendation for using Zxing API for hospital based products where we expect 0 tolerance to false positives.

Thanks for reporting this issue!  Unforunately it took me way too long to respond 😭.  Sorry, I apologize!  Recently the source code for this project was completely refactored to modernize it.  Many PR's were included in this effort, and many bugs were hopefully fixed.  Please try out the latest 3.x series of NuGet packages (currently in prerelease).  To try and make the project more maintainable in my spare time going forward, I've decided to close all existing issues to start with a clean slate.  If you're still experiencing this issue on the newest version, please open a new issue with as much detail as possible.  Thank you for your patience and understanding!  Happy scanning!


add user/group info parameter for user to set ugi

This is an implementation for issue #4.

@gglanzani could you please take a look?
Currently airflow HiveMetastoreHook uses hmsclient to talk to HMS, and we lose their user info on the server side, which makes it hard to debug.


Implement work directory structure for spatial runs

We will be running the spatial runs using payu so we may not need to create the whole structure and rely on payu to create most of it.

Closing as duplicate of https://github.com/CABLE-LSM/benchcab/issues/5


Minor syntax error in documentation

There is a minor mistake in the documentation. It is one parameter:
--space-on-edges correct syntax
--spaces-on-edges documented syntax
Also, just a little suggestion. On options 1 to 9, the abbreviated syntaxes could be written before the longer ones. That makes it easier to find them.
1. `-i`, `--input`: Path to the video that you want to jump-cut.
2. `-o`, `--output`: Path to where you want to save the output video.
3. `-m`, `--magnitude-threshold-ratio`: The percentage of the maximum value of your audio signal that you would like to
     consider as silent a signal (default: 0.02).
4. `-d`, `--duration-threshold`: Minimum number of required seconds in silence to cut it out. For example if this parameter
     is 0.5, it means that the silence parts have to last minimum 0.5 seconds, otherwise they won't be jump-cut (default: 0.5).
5. `-f`, `--failure-tolerance-ratio`: Most of the times, there are 44100 audio signal values in 1 second of a video.
     Let's say the "--duration-threshold" was set to 0.5. This means that, we need to check minimum 22050 signal
     values to see if there is a silent part of not. What happens if we found 22049 values that we consider as silent,
     but there is 1 value that is above our threshold. Should we just throw this part of the video and consider it as a
     loud signal? I think we shouldn't. This parameter leaves some room for failure, it tolerates high signal values until
     some point. Let's say it is set to 0.1, it means that 10% of the signal that is currently being investigated can
     have values that are higher than our threshold, but they are still going to be considered as a silent part (default: 0.1).
6. `-s`, `--space-on-edges`: Leaves some space on the edges of silence cut. E.g. if it is found that there is
     silence between 10th and 20th second of the video, then instead of cutting it out directly, we cut out
     (10+space_on_edges)th and (20-space_on_edges)th seconds of the clip (default: 0.1).
7. `-x`, `--silence-part-speed`: If this parameter is given, instead of cutting the silent parts out, the script will
     speed them up "x" times.
8. `-l`, `--min-loud-part-duration`: If this parameter is given, loud parts of the video that are shorter then this
     parameter will also be cut.
9. `-c`, `--cut`: If you want, you can also cut voiced parts of the video (to have some fun :)). There are 3 choices
     you can make for this parameter: `silent`, `voiced`, `both`. If you choose `silent`, silent parts of the video will
     be cutted; if you choose `voiced`, voiced parts of the video will be cutted; if you choose `both` 2 videos will be
     saved: 1 for the silent parts, 1 for the voiced parts (default: silent).
10. `--codec`: Codec to use for image encoding. Can be any codec supported by ffmpeg. If the filename
     has extension ‘.mp4’, ‘.ogv’, ‘.webm’, the codec will be set accordingly, but you can still set
     it if you don’t like the default. For other extensions, the output filename must be set accordingly.
     Check [here](https://zulko.github.io/moviepy/ref/VideoClip/VideoClip.html#moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip.write_videofile)
11. `bitrate`: Desired bitrate of the output video. Leave blank if you don't know what this is.

Fixing the typo right now, thanks for letting me know! Also thanks for the suggestions, I think you are right. I am going to make the necessary changes :+1:


VHDL Support

It would be nice to add support for VHDL, as the language is hard to read without consistent styling.
There already exists an online beautifier, hosted here, but it's a web interface, so it's a pain to use. The code behind it is Open Source, and can be found here on GitHub, it's mostly JS, so I'm guessing implementing this into atom-beautify shouldn't be too much work, it also already has a nice set of configuration options.
Hope this is doable!

Try running some code samples through http://prettydiff.com/?m=beautify
I have no idea if Pretty Diff will produce desirable output.  If it doesn't a dedicated beautification library will be needed to provide the proper support.

+1

I would really like this support as well, I use atom for VHDL editing daily, and I currently have to use this website every time I want to clean up the code

It would be really good!!!

Merged https://github.com/Glavin001/atom-beautify/pull/1980
Published to v0.32.0


Add release gerber files GitHub Actions workflow

This provides GitHub actions workflows that creates GitHub releases with automatically generated gerber files:

Triggered when a version tag is pushed
Releases are created as draft so you can edit the description before publishing it
You can see a release example there: v2.1+20200808
The gerber files are produced in a docker container with kicad-exports and use a kiplot configuration file (.kiplot.yml) that was written based on foostan kicad configuration and should be fine for a manufacturer such as JLCPCB
Sadly, empty .sch files had to be added for plates because of a limitation of kicad-export

Thank you so much!
It's concept is good and it's helpful to release gerbers.
hmmm, but it's has some problems

Currently I'm not use tag
Corne keyboard has a many lineup so I can't release all at same timing
I want release after prototyping and release it's gerber file so I'm not understand advantage of building a gerber on CI.

I thought you used tags, reason why I've setup the workflow to be triggered by them. But there are many other ways. Tag => release is a good logical choice I think, at least for software...

In my opinion, it would be nice to tag any version you do, with a changelog, even of a single lineup.

You could split release lineups for instance by tagging cherry-v3 and removing unnecessary generated files before releasing the generated draft.
CI in this case it just a way to ease things, and also guarantee that generation settings are consistent. But that is clearly not strongly required, but having Gerber files available for download would help people, especially the one that aren't experienced to KiCad.

Also for prototyping you could use kiplot with that configuration, that would guarantee people to have the same setup as you,

Thank you for your suggestions. I’m with you.

At first, cleanup a lot of files for each lineup
I will try to management tags for each lineup
I will try to use kiplot based on this PR

It may take some time because I'm prototyping new version of corne cherry.

No hurry, do as you like. I'll let this open for now. Feel free to close, merge, cherry pick or whatever :)

I'm preparing new release so merge this PR.
After that I will try to management tags for each lineup.


Rename thruster 'Force minimum'→'Input threshold'

Fixes #1556.

I suppose this is more BC than fixing it to actually do what people think it does (clamp output force in the negative direction)


Copious INFO logging

Running this from a Python script with logging.basicConfig(level=logging.INFO) creates incredible amounts of detailed logging which would probably best be confined to level=logging.DEBUG and/or ideally possible to turn off if you don't cate about the library's internals.

While I agree with this issue, I think it's caused by the underlying pdfminer2 package, which seems to make strong use of logging.info calls, using the root handler, thus not allowing to disable it easily.
On the same topic, that library seems to be unmaintained by Chris (last commit Dec 2015), maybe it would make sense to switch to the pdfminer.six library (from which pdfminer2 is originally forked), unless there are some important changes not available in the original lib?

switched to pdfminer.six now


Fix yaml definitions

Related Issue(s): #
N/A
Proposed Changes:

Updates the open api schemas to update the next field definition and match the definitions in the markdown with the ones given in the yaml file

PR Checklist:

[x] This PR has no breaking changes.
[x] I have added my changes to the CHANGELOG or a CHANGELOG entry is not required.
[x] API only: I have run npm run generate-all to update the generated OpenAPI files.

I'm a little confused on this one. I know we said we didn't want page to be part of the spec, but I didn't think we were adding next as a query string parameter? I thought it was intended to link to the next page using whatever parameter the implementer decided on and was returned in the search results. next as a parameter doesn't make a tone of sense to me. Do we need to specify it's format?

@hgs-truthe01 I think next is only needed as a query parameter when you using the GET /stac/search. On POST /stac/search you will pass it in the body.
Nevertheless, my PR is only updating the yaml file to reflect what is already added here: https://github.com/radiantearth/stac-spec/blob/dev/api-spec/api-spec.md#filter-parameters-and-fields


Remove StatIfNecessary call that is never necessary

The call to StatIfNecessary in DependencyScan::RecomputeOutputsDirty was
added by commit 41c6258ec1928cbcfc5642504cb9c2b3659fa897 (Share more code between CleanNode() and
RecomputeDirty(), 2013-09-02) while consolidating code paths.  However,
it was needed only when called from RecomputeDirty because prior to
refactoring the CleanNode code path did not call it.
Later commit 015c818cbe85093316115c5a510274eccdb4180b (Let DependencyScan::RecomputeDirty() work
correclty with cyclic graphs, 2014-12-07) added back to RecomputeDirty a
loop over outputs that calls StatIfNecessary.  Therefore
RecomputeOutputsDirty no longer needs to call StatIfNecessary for either
of its own callers.

The way I understood 41c6258 was to add that StatIfNecessary() call to the CleanNode() call chain, since having up-to-date mtimes is a precondition for RecomputeOutputDirty() (note singular). So it seems like things are easier to reason about if RecomputeOutputsDirty() calls it: If the call is indeed not needed, then StatIfNecessary() will do nothing and be fast, and if it is needed then not calling this is a bug.
(If it's a precondition, why doesn't RecomputeOutputDirty() call StatIfNecessary() itself? I'm not sure, maybe it should?)
It's possible that in practice this call is never necessary though. What's the motivation for this patch? (I'm not opposed to merging it, I just don't quite understand it yet.)
@maximuska

I revised the comment to avoid focusing on RecomputeOutputsDirty.  It is really that RecomputeDirty is responsible for initializing mtimes on nodes it encounters.
CleanNode is walking forward through a portion of the graph that was previously walked by RecomputeDirty during the build planning phase.  StatIfNecessary is an initialization step done when a node is first encountered by RecomputeDirty, and its completion is an invariant established by RecomputeDirty.
The only reason commit 41c6258ec1928cbcfc5642504cb9c2b3659fa897 brought along a call to StatIfNecessary is because it sat in a code path used by RecomputeDirty to call StatIfNecessary at the time.  Since commit 015c818cbe85093316115c5a510274eccdb4180b RecomputeDirty handles it earlier.  Had the two changes been made in the other order we may have ended up at the state proposed in this PR originally.
The motivation for this patch is to clean up some existing logic to make it easier to reason about changes in a future PR that will refactor RecomputeDirty further.

Rebased on master.  I also opened #1111 which starts with this change and provides further context for its purpose.

Thanks for explaining!


No "View activity" button in Transactions and Results

When looking at details of an activity (Title, Description, Sector, etc) there is a "View Activity" button in the top-right, to go back to the activity summary screen (for instance to mark edits as completed).
In the Transactions and the Results areas, this button is not there. Would be useful there too!
(A work-around is to click on another section, then on the "View Activity" button)

This issue has been fixed.


Fixes #25 Fixed basic command completion

Pull Request Test Coverage Report for Build 69

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 97.875%

Totals

Change from base Build 63:
0.0%

Covered Lines:
1084

Relevant Lines:
1105

💛  - Coveralls

Pull Request Test Coverage Report for Build 69

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 97.875%

Totals

Change from base Build 63:
0.0%

Covered Lines:
1084

Relevant Lines:
1105

💛  - Coveralls


Add prettier + husky

Review Instructions: FYI
Give this PR description a read for background context, & leave a comment if you have opinions on shared styleguide + linting rules for this repo 😄
JS styleguides & prettier
Javascript & the web as a whole lack standards. While this has been rapidly improving in recent years, still to this day, the JS written at one company often looks wildly different than at another. This is why it's important to have a coding styleguide for JS apps (at hubspot, we use the airbnb styleguide). Having a styleguide ensures that we're all writing the same "flavor" of javascript.
But manually enforcing a styleguide in PR reviews is tedious. This is where prettier comes in! Prettier used w/ pre-commit hook tools like husky allows us to enforce our styleguide rules automatically without devs having to do anything.
Note - this change requires all devs contributing to /Client to pull from master & run npm install.

JS linting & eslint
While styleguides & prettier help us enforce code syntax & formatting, linting tools help us avoid bugs, steer us away from using deprecated language mechanics, and generally help us enforce best practices. Eslint is the preferred open source JS linter, and can be configured to run on commit with prettier.
Eslint is already installed in /Client. But we'll want to customize the lint rules, add it to the husky pre-commit hook, & run eslint on the entire project to make sure our code passes lint validation. I'll do this in a separate follow-up PR since this ones already pretty big!

Does the prettier + husky also work on backend code because if not shouldn't we merge it to frontend-dev rather than the master?

@ishchhabra great point about merge conflicts. For what it's worth, there are strategies that can be used to auto-resolve conflicts on all of the open branches, but it'd be more effort than it's worth to go down that path here. I'm gonna close this PR (and the eslint pr) in favor of https://github.com/cicscareers/320-S20-Track1/pull/428 so that we can roll this out with minimal pain.
Rollout plan

[ ] Step 1: merge prettier + eslint config into master (https://github.com/cicscareers/320-S20-Track1/pull/428)
[ ] Step 2: all devs pull from master + run npm install in Client/

At this point in time, the commit hook will auto-format any staged files that we try to commit. For example, if I make a 1-line change to appts.js, and try to commit that change, then prettier + eslint will auto-format that module. This will prevent future formatting & lint errors, without retroactively reformatting the entire codebase.

[ ] Step 3: once all complex FE branches that pre-date prettier + eslint have been merged into master, we will retroactively run prettier + eslint on all of /Client/src.


Fatal error: Index out of range

(Required) Version Number: 7.1.6
Description
I have a calendar into a view. It was ok yesterday but today if I enter into the view with the calendar the app crash. The error is: Fatal error: index out of range
Steps To Reproduce
Code is:
 var giornodioggi = ""
 override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        self.dataSource = self
        if let firstViewController = orderedViewControllers.first{
            setViewControllers([firstViewController], direction: .forward, animated: true, completion: nil)
        }

        //metodipagecontrol
        self.delegate = self
        configurePageControl()

        let customDateFormatter = DateFormatter()
        giornodioggi = customDateFormatter.weekdaySymbols[Calendar.current.component(.weekday, from: Date())]

Expected Behavior
Additional Context

is this happening on 7.1.7?

also, can you let me know:

on which line it is crashing
can you paste the error log

Closing issue until user responds.
Also, please update to 7.1.8
Will re-open issue after you respond. Until then i'll assume this was resolved.

Problem solved with this:
let index = Calendar.current.component(.weekday, from: Date()) // this returns an Int   giornodioggi = Calendar.current.weekdaySymbols[index - 1] // subtract 1 since the index starts at 1

awesome.


permissions :show?, :update?, :destroy? do ....

Hi,
I really appreciate the possibility to list multiple actions with the permissions method on the specs as it can save so much space and make the specs actually read better (less duplication, more DRY).  You don't know which fan it hit, so then the first thing you'll have to do is to somehow tweak the test. Either duplicate the test for all methods or then run the spec multiple times starting with one method and the adding more one by one as you clear them. E.g. here is a sample output from a test where permission was not granted for destroy. From the output you can not know what is failing.
Failure/Error: it { is_expected.to permit(current_user, target) }
       Expected Example::UserPolicy to grant show?, update?, and destroy? on #<Example::User:0x00000101325030> but it didn't

If the error message was customised to include information about which of the methods were unexpectedly granted/denied, e.g. something like this would already be an enormous improvement:
Failure/Error: it { is_expected.to permit(current_user, target) }
       Expected Example::UserPolicy to grant show?, update?, and destroy? on #<Example::User:0x00000101325030> but it didn't grant destroy?

Another option is that it could be possible for it to kind of dynamically copy and run the test separately for each case. That would be even better in a sense, because then on the Rspecs output each method would be listed as a separate fail/success and you wouldn't need to so carefully examine the output of the test to figure out which parts of the test are really failing. IMHO it would then better adhere to good testing principles. Not exactly sure if this is possible, though. The output would not need to changed at all from the current, but it would naturally read out better:
Failure/Error: it { is_expected.to permit(current_user, target) }
       Expected Example::UserPolicy to grant destroy? on #<Example::User:0x00000101325030> but it didn't

#229 is merged, which should fix this at least well enough for now.


Fix/size in body and nested aggregations

Q
A

Bug fix?
Y

New feature?
N

BC breaks?
N

Deprecations?
N

Fixed tickets
N

Develop now contains a new set of PHPCS. Best is to integrate that branch in yours to rerun the check (to prevent an error state in develop after merge)


canvaskit missing sampling variants in 2 cases

Filing a copy of https://bugs.chromium.org/p/skia/issues/detail?id=11732 here for tracking.
From @flar

In reworking the canvaskit renderer for Flutter web to switch over to the new sampling options, I found 2 areas where we don't yet see APIs that take the new parameters.
Canvas.drawAtlas has no sampling variants - i.e. drawAtlasOptions, drawAtlasCubic
ImagerFilter.MakeMatrixTransform still takes FilterQuality, but no sampling options/variants

@yjbanov the linked issue is closed as Done does that mean this issue and potentially #82919 are done?


Use loggly bulk endpoint.

I added a semaphore to allow 15 connections to loggly at a time.
And the response body form loggly gets read and discarded.
This fixes #5 and should make the container more stable against high logging traffic.
A docker image with the fix can be pulled from: quay.io/eversolve/logspout-loggly

I'm going to merge this in. The unused mutex isn't a huge deal and I can remove it later.
Thanks for the follow up on the PR!


License clarification

Hi!
The readme says that the code is put in the public domain but

two of the three files (RtAudio.cpp and RtAudio.h) have copyright headers saying otherwise,
file lcc_rtaudio.cpp lacks a copyright header (but it's good practice to add some), and
public domain does not work well for all countries (which you recognize) which is why many people use CC-0 ("Creative Commons Zero") for the same goal, instead.

Probably all of these are easy to fix. What do you think?
Thanks and best, Sebastian

Interesting. Thank you for the information. We can look into your second bullet. I am not familiar with your third bullet and the how public domain works outside the US.


Set rate limit with using cookie value

How to set rate limit with using cookie value?
I've tried to use header_to_metadata filter and changed header value to dynamic metadata.
But rate limit with dynamic meta data was not working proper.
Rate limit service working proper with header matcher.
This process is need for me, because I want to use cookie to metadata filter which is available from envoy v1.16.
https://www.envoyproxy.io/docs/envoy/v1.16.0/api-v3/extensions/filters/http/header_to_metadata/v3/header_to_metadata.proto.html?highlight=header_to_meta#extensions-filters-http-header-to-metadata-v3-config-rule
This is my sample configuration.
Is there any missing?
---
kind: EnvoyFilter
metadata:
  name: filter-ratelimit
  namespace: istio-system
spec:
  configPatches:
  - applyTo: HTTP_FILTER
    match:
      context: GATEWAY
      listener:
        filterChain:
          filter:
            name: envoy.http_connection_manager
            subFilter:
              name: envoy.router
    patch:
      operation: INSERT_BEFORE
      value:
        name: envoy.rate_limit
        typed_config:
          '@type': type.googleapis.com/envoy.extensions.filters.http.ratelimit.v3.RateLimit
          domain: ratelimit
          failure_mode_deny: false
          rate_limit_service:
            grpc_service:
              envoy_grpc:
                cluster_name: rate_limit_cluster
          timeout: 0.25s
  - applyTo: CLUSTER
    match:
      cluster:
        service: ratelimit.rate-limit.svc.cluster.local
    patch:
      operation: ADD
      value:
        connect_timeout: 0.25s
        http2_protocol_options: {}
        lb_policy: ROUND_ROBIN
        load_assignment:
          cluster_name: rate_limit_cluster
          endpoints:
          - lb_endpoints:
            - endpoint:
                address:
                  socket_address:
                    address: ratelimit.rate-limit.svc.cluster.local
                    port_value: 8081
        name: dev-rate_limit_cluster
        type: STRICT_DNS
  workloadSelector:
    labels:
--
kind: EnvoyFilter
metadata:
  name: filter-ratelimit-svc
  namespace: istio-system
spec:
  configPatches:
  - applyTo: VIRTUAL_HOST
    match:
      context: GATEWAY
      routeConfiguration:
        vhost:
          name: *80
          route:
            action: ANY
    patch:
      operation: MERGE
      value:
        rate_limits:
        - actions:
          - dynamic_metadata:
              descriptor_key: user
              metadata_key:
                key: envoy.lb
                path:
                - key: cookie
  workloadSelector:
    labels:
      istio: ingressgateway
---
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: header-to-meta-filter
spec:
  workloadSelector:
    labels:
      istio: ingressgateway
  configPatches:
    - applyTo: HTTP_FILTER
      match:
        context: GATEWAY
        listener:
          filterChain:
            filter:
              name: "envoy.http_connection_manager"
              subFilter:
                name: "envoy.router"
      patch:
        operation: INSERT_BEFORE
        value:
          name: envoy.header_metadata
          typed_config:
            "@type": type.googleapis.com/envoy.extensions.filters.http.header_to_metadata.v3.Config
            request_rules:
              - header: cookie
                on_header_present:
                  metadata_namespace: envoy.lb
                  key: cookie
                  type: STRING
                remove: false

ConfigMap of ratelimit service
apiVersion: v1
kind: ConfigMap
metadata:
  name: ratelimit-config
  namespace: rate-limit
data:
  config.yaml: |
    domain: ratelimit
    descriptors:
      - key: user
        rate_limit:
          unit: minute
          requests_per_unit: 5

Originally posted by @Omasumasu in https://github.com/istio/istio/issues/22068#issuecomment-734534491

cc @gargnupur

@howardjohn @gargnupur
I still face this problem.
Any idea to achieve this case?

@Omasumasu : I will give this a try tomorrow...

@gargnupur Thank you for helping

@Omasumasu : haven't been able to get to this till now.. will definitely try this week..

@Omasumasu : Based on envoy's documentation, dynamic_metadata is deprecated and you should use metadata field. https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/route/v3/route_components.proto#envoy-v3-api-msg-config-route-v3-ratelimit. Checkout this example to use that for filter metadata like envoy.lb like yours: https://www.envoyproxy.io/docs/envoy/latest/api-v3/type/metadata/v3/metadata.proto#type-metadata-v3-metadatakey
Dynamic metadata is constrained to well-known metadata keys(https://www.envoyproxy.io/docs/envoy/latest/configuration/advanced/well_known_dynamic_metadata#well-known-dynamic-metadata) only.
/cc @kyessenov

@gargnupur Thank you for give advise, and I will try once.
But Istio v1.18 is using envoy v1.15.x.
https://www.envoyproxy.io/docs/envoy/v1.15.0/api-v3/config/route/v3/route_components.proto#envoy-v3-api-msg-config-route-v3-ratelimit
So seems dynamic metadata is not deprecated.
And I can see envoy.lb metadata in access log with using dynamic meta data filter.

Can you enable debug logs and post logs from proxy and rate limit service?

Finally after I updated Istio to new version, start working.
Thank you for support.

Finally after I updated Istio to new version, start working.
Thank you for support.


Document basic solution retrieval from MOSEK

The bfs kwarg for MOSEK was not documented.

By the way for linear problems: The basis identification time in MOSEK is wasted time if CVXPY by default retrieves only the interior point solution. A sensible solution would be to disable basis identification if bfs=False.
I will be happy to expand this PR if you think it makes sense.

Yes, please add the proposed PR. I wasn't aware that the basis identification was being computed.

@rileyjmurray , since you have familiarity with the MOSEK interface, would you like to review this change?

I'll review (and merge, as appropriate) in the next couple days.

It occured to me that @aszekMosek couldn't have run the new test suite (from #910) before submitting this PR. After running local tests on my machine, I can confirm that MOSEK passes the now-standard test-suite from #910.


Running this action on Gitea

When attempting to run this action using Gitea actions on a private Gitea instance, the action fails:
Using buf (1.45.0) found in $PATH
[command]/opt/homebrew/bin/buf registry login buf.build --token-stdin
Logged in as chocolatkey. Credentials saved to /Users/mayo/.netrc.
[command]/opt/homebrew/bin/buf config ls-modules --format name
buf.build/kintsugi/kinproto
[command]/opt/homebrew/bin/buf build --error-format github-actions
[command]/opt/homebrew/bin/buf push --error-format github-actions --exclude-unnamed --git-metadata --create
Usage:
  buf push <source> [flags]
Flags:
      [...OMMITTED FOR BREVITY...]
Failure: unable to determine source control URL for this repository; only GitHub/GitLab/BitBucket are supported
::error::Failed push

This seems to come from https://github.com/bufbuild/buf/blob/main/private/buf/cmd/buf/command/push/push.go#L496 . Is there any way to get this running on Gitea? I don't see why using a platform aside from GitHub/GitLab/BitBucket should block using buf push --error-format github-actions --exclude-unnamed --git-metadata --create

Hey @chocolatkey , this is an issue with the how the --git-metadata resolves the label name and source control URL. Currently buf only supports the registries listed. To workaround this issue you can invoke the push step using a custom run section:
- uses: bufbuild/buf-action@v1
  with:
    token: ${{ secrets.BUF_TOKEN }}
    push: false. # Disable push to customize git metadata
- if: ${{ github.event_name == 'push' }}
  env:
    BRANCH_NAME: ${{ github.ref_name }}
    SOURCE_CONTROL_URL: ${{ github.event.head_commit.url }}
  run: |
    buf push --error-format github-actions --exclude-unnamed --create \
      --label $BRANCH_NAME \
      --source-control-url $SOURCE_CONTROL_URL


question: what is the correct procedure to upgrade weave?

I have got weave net running in proxy mode. My question is in general (but if it matters I have got current version 1.9.7).

What actions should I do in order to upgrade life node without losing data and network settings (like IP assignments, peers, etc.)?
Is there any difference depending on number of nodes connected? I am interested in use cases when there are 1, 2, 3, and 5 nodes.

Thanks!

We have some documentation on upgrades

Attached containers will continue to run with their existing IP address, etc., by default.
Persisted data is in a volume container weavedb; the new version will pick that up.

By default, each time you run weave launch it will take the list of peers from that command; you can ask it to use the previous list of peers with --resume
There should be no difference for different numbers of nodes.

Thank you. Could you please clarify about the peers. Let's consider the following example:
I build Uniform Dynamic Cluster and increase it's size when needs come:
host1$ weave launch --name ::1 --ipalloc-init seed=::1,::2,::3
# very much later
host2$ weave launch --name ::2 --ipalloc-init seed=::1,::2,::3 host1
# very much later
host3$ weave launch --name ::3 --ipalloc-init seed=::1,::2,::3 host1 host2
# very much later
host4$ weave launch --ipalloc-init seed=::1,::2,::3 host1 host2 host3
# very much later
host5$ weave launch --ipalloc-init seed=::1,::2,::3 host1 host2 host3

I assume that at the end all hosts become aware about each other. So, executing the following:
host1$ weave stop
host2$ weave launch --resume

should be equal to the following (note all peers are known at this stage)?
host1$ weave stop
host1$ weave launch --name ::1 --ipalloc-init seed=::1,::2,::3 host2 host3 host4 host5

Is that right?
I see the note in the docs: "For maximum robustness, you should distribute an updated /etc/sysconfig/weave file including the new peer to all existing peers." But what happens if I do not do this for host1 when I add host2? What happens if I do not do this for hosts 1 and 2 when I add host3?What is the downside?

Could you please provide with the quick answer for the above question?

Sorry this question got lost.
--resume means to use the list of peers that this peer has been told to connect to, so it would be blank.  It is the sum of any list on the launch line and any subsequent weave connect or weave forget operations.  It does not include any peers discovered through gossip.
Regarding "maximum robustness", the downside is that you are relying on host2 making a connection to host1 if host1 goes down for a while then restarts.  It will re-try this periodically, up to every six minutes, but it would be better for host1 to know about host2 then it will try to connect immediately on restart.

Thanks. Does it mean that the maximum robustness is when every host is
aware (launch or connect) about every other? It is a bit sad that gossip
does not allow to achieve this automatically... Would it be possible to
enable nodes, which auto-discovered with gossip, to auto-weave connect
with each other?
Is there any way to execute host1> weave connect host2 operation via a
command similar to host1> docker exec weave-proxy <run-some-command-to-connect> host2? I mean I can execute docker remotely,
so it would help me to execute weave connect remotely too (from host2 for
host1)?
On Mon, Sep 4, 2017 at 10:53 PM, Bryan Boreham<EMAIL_ADDRESS>wrote:

Sorry this question got lost.
--resume means to use the list of peers that this peer has been told to
connect to, so it would be blank. It is the sum of any list on the launch
line and any subsequent weave connect or weave forget operations. It does
not include any peers discovered through gossip.
Regarding "maximum robustness", the downside is that you are relying on
host2 making a connection to host1 if host1 goes down for a while then
restarts. It will re-try this periodically, up to every six minutes, but it
would be better for host1 to know about host2 then it will try to connect
immediately on restart.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/weaveworks/weave/issues/3050#issuecomment-326932723,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADyZVX1GkUpfGYjl-MTpE0UbACM1yNbAks5se9a_gaJpZM4OMK7A
.

Peers will all find each other via gossip sooner or later; however in your specific example it will come up and connect to nobody so will have to wait for somebody else to connect to it.  @awh I think "maximum robustness" was your phrase - are there any other things to watch out for in the pre-seeded case ?
You can run weave commands remotely, since they all execute via docker:
DOCKER_HOST=tcp://host1:2375 weave connect

(assuming you have opened that port and asked the docker daemon to listen on it)

Great! Thanks. If "maximum robustness" needs explicit connect (?), I will
add it to my automation by invoking remote docker connecting via weave net
itself (I have got docker APIs exposed via http proxy inside of the weave
net cluster for every node).
On Mon, Sep 4, 2017 at 11:28 PM, Bryan Boreham<EMAIL_ADDRESS>wrote:

Peers will all find each other via gossip sooner or later; however in your
specific example it will come up and connect to nobody so will have to wait
for somebody else to connect to it. @awh https://github.com/awh I think
"maximum robustness" was your phrase - are there any other things to watch
out for in the pre-seeded case ?
You can run weave commands remotely, since they all execute via docker:
DOCKER_HOST=tcp://host1:2375 weave connect
(assuming you have opened that port and asked the docker daemon to listen
on it)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/weaveworks/weave/issues/3050#issuecomment-326939363,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADyZVVkf-xCsmOH0-vK73oSbpkkTdDqjks5se976gaJpZM4OMK7A
.

@bboreham Could you please also clarify about upgrading in the context of Kubernetes. Is it just a matter of replacing daemonset/weave-net with a version that refers to the newer images (e.g. 2.6.0 instead of 2.5.2), so perhaps just another:
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"

Yes, for Kubernetes that endpoint should serve up the latest released version and the DaemonSet should then do a rolling upgrade.


Proposal: introduce latest-stable switch for omnisharp.path configuration

Here is the note from user-config section:

// Specifies the path to OmniSharp. This can be the absolute path to an OmniSharp executable, a specific version number, or "latest". If a version number or "latest" is specified, the appropriate version of OmniSharp will be downloaded on your behalf.
"omnisharp.path": null

It would be handy if I could also tell it to keep my local version up-to-date with the latest stable up to minor version (i.e. download 1.32.7, but ignore 1.32.7-beta.*).
With latest:

1.32.7-beta.23 <-- this is the version it will download
1.32.7-beta.22
1.32.7-alpha.1

With latest-stable:

1.32.7-beta.23
1.32.7-beta.22
1.32.7-alpha.1
1.32.6 <-- this is the version it will download
1.32.6.beta-123
1.32.5

I think this is meant for the omnisharp-vscode repo, corect?

This issue was moved to OmniSharp/omnisharp-vscode#2644

indeed it looks like that - I moved the issue


A tool to check/sync dependency versions with camel & quarkus

The version properties in our top level pom.xml are maintained manually ATM. We should have some sort of a tool for that.
Followup of https://github.com/apache/camel-quarkus/pull/1682#issuecomment-686409318

I think we have something in use for camel kafka connector made by @oscerd

We have the camel-dependencies module in the main camel-repo. You can do as we are doing in camel-karaf/camel-spring-boot/camel-kafka-connector https://github.com/apache/camel-kafka-connector/blob/master/pom.xml#L26
You'll get the properties placeholder of Camel in your POM and this POM will use the Apache POM as parent POM.

ca3514e solves the issue with Camel, but not with Quarkus

Or the problem with Quarkus does not exist anymore?

You're right, it solves the camel part but not the Quarkus part.
It's not immediately obvious which of the version properties are actually supposed to be aligned with Quarkus.

In between we started using @sync annotation in the top pom.xml. The annotated props can then be update by running mvn cq:sync-versions -N manually. I think we can close this issue.


badge is clipped.

JSBadgeView's parent view is UIImageView,and it's property masksToBounds is set to YES.The top right badgeText is clipped.How to resolve this issue?

Instead of making the parent view be the UIImage view, make them siblings, both children of the same UIView. Let me know if that works.

It works as I make two of them siblings.Thanks.I'll close the issue.


Difficulty in Processing the Vaihingen Dataset

Thank you for your great work and for providing detailed instructions in your repository.
I am currently working on processing the Vaihingen dataset following the steps outlined in the repository, but I have encountered some difficulties.
The dataset I downloaded contains two main folders, "gts_for_participants" and "top," both of which contain multiple TIFF image files. Each file is named in the format "top_mosaic_09cm_area[number].tif," where the number represents a specific area.
Could you please clarify how you downloaded the dataset and the exact steps you took to preprocess it? Any additional guidance or details that you can provide would be extremely helpful.
Thank you very much for your time and assistance.

I remember that TIFF files in "top" are the original optical images, while TIFF files in "gts_for_participants" are the ground truth, namely, labels for semantic segmentation. However, the Vaihingen dataset I have seems to contain more than just these two folders. If necessary, you can download it from here: Vaihingen. After that, please follow the instructions in README and place the TIFF files in correct directories, and by running the preprocessing code I provided, you can achieve custom cropping of images.
I hope this helps.

BTW, the "eroded" represents "top_xxx_noBoundary.tif" files.

非常感谢您对我的问题的及时和详细的回答！你的解释真的很清楚，对我理解问题有很大帮助。我非常感谢您为解决我的问题所投入的时间和精力。
你好，请问你复现出来了吗？


Add Prettier, cleanup repo a bit

Thank you for the PR – There's a lot going on in this PR. Not sure I want prettier in this project since I've formatted the code as I prefer. Closing for now

I

Feel free to modify the Prettier config. I feel like having Prettier in a project is great because it removes the overhead of "how should this code be formatted".
A wiseman said, Prettier makes your own code look ugly, but everyone's look great.


Float Array issue

I am trying to read some datarefs using GetFoatArray but when looking at the value there is an exception of type System.IndexOutOfRangeException.  I tried both float array's that were writeable and only readable but i get the same error.  The int array is working fine.  The following two datarefs are what i was testing
/sim/joystick/joystick_axis_minimum
/sim/joystick/joystick_axis_values
In particular i need to get the second one as i think this is the raw data for joystick movement.
Thanks for any help.

Can you post what your code for working with those variables looks like?
Thanks.
On Wed, Mar 7, 2018 at 10:38 AM sognatore99<EMAIL_ADDRESS>wrote:

I am trying to read some datarefs using GetFoatArray but when looking at
the value there is an exception of type System.IndexOutOfRangeException. I
tried both float array's that were writeable and only readable but i get
the same error. The int array is working fine. The following two datarefs
are what i was testing
/sim/joystick/joystick_axis_minimum
/sim/joystick/joystick_axis_values
In particular i need to get the second one as i think this is the raw data
for joystick movement.
Thanks for any help.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jaurenq/XPNet/issues/4, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACsYeyFkqxwlX0SevElw3m5MpxJE3FmNks5tcAvQgaJpZM4Sgws0
.

IXPDataRef<float[]> xplaneSimJoystickAxisValues = m_api.Data.GetFloatArray("sim/joystick/joystick_axis_values")
Then all I do is use the Log function and it gives me that error.  If I look at in in real time during debugging the value field shows the exception.
I was only logging to see if i can tell if the joystick raw data is available.  I need to detect if the user released the joystick so that i can turn on the co-pilot joystick so they can take control.
Thanks again for helping.

Ok, I think I see what's wrong.  I'll have to wait until after work today to take a stab at fixing it.  It's not handling correctly the case where the sim says that it has zero data values to provide for an array dataref.

That would be odd as i thought one of these two datarefs would provide me the joystick raw data, so i would think that there should be data?  I did however notice in your c++ code that the value of zero was being passed back to create the array.

So I installed the DataRef Editor and found that there should be values in the Float array so the size passed back should not be zero.

So, the size of that array is definitely zero when you call the wrong function to get the size of the array...  😔   In XPDataRefFloatArray in DataRefs.cs, I was calling XPLMGetDatavi to get nValues instead of XPLMGetDatavf.  XPDataRefByteArray had the same problem.  I also fixed the code not to crash if any particular DataRef ever did claim to return zero values.  I need to do some cleanup and testing with it, and get test cases for FloatArray and ByteArray into the test harness, before I check it in.  In the meantime, if you want you can fix it locally and build a new XPNet.CLR.dll.  Here's what my XPDataRefFloatArray.Value looks like now.
        public unsafe override float[] Value
        {
            get
            {
                int nValues = PluginBridge.ApiFunctions.XPLMGetDatavf(DataRef, null, 0, 0);

                EnsureBuffer(nValues);

                if (nValues > 0)
                {
                    fixed (float* p = &m_buffer[0])
                        PluginBridge.ApiFunctions.XPLMGetDatavf(DataRef, p, 0, nValues);
                }

                return m_buffer;
            }

            set
            {
                if (value.Length > 0)
                {
                    fixed (float* p = &value[0])
                        PluginBridge.ApiFunctions.XPLMSetDatavf(DataRef, p, 0, value.Length);
                }
                else
                {
                    PluginBridge.ApiFunctions.XPLMSetDatavf(DataRef, null, 0, 0);
                }
            }
        }

I haven't tested the updated 'set' yet, but with that updated 'get' it works for me now in X-Plane.  I registered the Logger DLL and added the following into my xpnetcfg.json and was able to see the values of joystick_axis_values show up in the log file and change as I moved the joysticks around.
    "FloatArrayData": [
      "sim/joystick/joystick_axis_values"
    ]

I committed those changes.  Give it a try when you can and let me know if it works for you now.  Thanks!

Excellent.  All is working (well except my code :) but that I can now solve with your update.  Thank you.


Weird button below footer

Version - master 3/8
Steps to Reproduce:

Go into rancher and scroll to bottom of page

Results: button below footer that says "No actions available"

Expected: Should not be there

resolved in https://github.com/rancher/ui/pull/519

Version - master 3/9
Verified fixed


dart bug: folder structure changed and dead "packages" pointer

Hello,
It seems like dart changed the build folder structure for version 1.12.2
In the tutorial under session " Compile the web-app from the Dart code:"
There is one cmd: "sudo /bin/cp -R /usr/local/src/security_monkey/dart/build/web/* /usr/local/src/security_monkey/security_monkey/static/".
The cmd will fail because "/usr/local/src/security_monkey/dart/build/web/" is no longer exist.
the new web folder is at "/usr/local/src/security_monkey/dart/web".
However, you cannot directly copy the new web folder as it contains a pointer "packages" pointing to one level above , i.e. "../packages". If we directly copy this folder, the packages within web will become a dead pointer.
One possible solution is to copy the "/usr/local/src/security_monkey/dart/build/web/" to "/usr/local/src/security_monkey/security_monkey/static/" and fix the "packages" pointer.
I am not very familiar with dart. If anyone could look into this issue, then it will be great.
I am more than happy to work with the team to resolve this issue.

I can work around this issue by wget "sudo wget https://github.com/Netflix/security_monkey/releases/download/v0.4.1/static.tar.gz".
And uncompress static.tar.gz into "/usr/local/src/security_monkey/security_monkey".
However, a fix will be needed in order to have a local compiled version to be installed.

I still get a build and web folder:
~ ❯❯❯ dart --version
Dart VM version: 1.12.2 (Wed Oct 21 06:56:12 2015) on "macos_x64"

~ ❯❯❯ git clone git@github.com:Netflix/security_monkey.git
Cloning into 'security_monkey'...
remote: Counting objects: 4742, done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 4742 (delta 20), reused 0 (delta 0), pack-reused 4709
Receiving objects: 100% (4742/4742), 8.24 MiB | 7.79 MiB/s, done.
Resolving deltas: 100% (2504/2504), done.
Checking connectivity... done.

~ ❯❯❯ cd security_monkey/dart

~/d/s/dart ❯❯❯ pub get
Resolving dependencies...
Downloading aws_policy_expander_minimizer 0.0.5...
Got dependencies!
Precompiling dependencies...
Loading source assets...
...
[Info from Dart2JS]:
Took 0:00:23.686300 to compile security_monkey|web/main.dart.
Built 318 files to "build".

~/d/s/dart ❯❯❯ ls
build        lib          packages     pubspec.lock pubspec.yaml web

~/d/s/dart ❯❯❯ cd build

~/d/s/d/build ❯❯❯ ls
web

I'm not sure why your directory structure would be different.

I tried it just now on my ubuntu box. But it still does not work for me.
I cannot see the directory.
Here is part of my screenshot:
su@ubuntu:/usr/local/src/security_monkey/dart$ sudo /usr/lib/dart/bin/pub get
Resolving dependencies... (4.1s)
Downloading angular 1.1.0...
Downloading analyzer 0.22.4...
Downloading angular_ui 0.6.8...
.......
tar: Ignoring unknown extended header keyword 'SCHILY.dev'
tar: Ignoring unknown extended header keyword 'SCHILY.ino'
tar: Ignoring unknown extended header keyword 'SCHILY.nlink'
tar: Ignoring unknown extended header keyword 'SCHILY.dev'
tar: Ignoring unknown extended header keyword 'SCHILY.ino'
tar: Ignoring unknown extended header keyword 'SCHILY.nlink'
tar: Ignoring unknown extended header keyword 'SCHILY.dev'
tar: Ignoring unknown extended header keyword 'SCHILY.ino'
tar: Ignoring unknown extended header keyword 'SCHILY.nlink'
tar: Ignoring unknown extended header keyword 'SCHILY.dev'
tar: Ignoring unknown extended header keyword 'SCHILY.ino'
tar: Ignoring unknown extended header keyword 'SCHILY.nlink'
Got dependencies!
Precompiling dependencies...
Loading source assets...
Loading dart_to_js_script_rewriter, di/module_transformer, initialize/build/loader_replacer, smoke/src/default_transformer and initialize transformers... (4.4s)
Loading angular transformers... (1.0s)
Precompiled angular_ui, dart_to_js_script_rewriter, di, initialize, smoke and web_components.
Precompiling executables...
Loading source assets...
Loading di/module_transformer and smoke/src/default_transformer transformers...
Precompiled angular:pub_build.
Precompiled angular:parser_generator_for_spec.
Precompiled angular:template_cache_generator.
Precompiled angular:expression_extractor.
su@ubuntu:/usr/local/src/security_monkey/dart$ sudo /usr/lib/dart/bin/pub build
Loading source assets...
Loading dart_to_js_script_rewriter, di/module_transformer, initialize/build/loader_replacer, smoke/src/default_transformer and initialize transformers...
Loading angular transformers... (1.5s)
Building security_monkey... (29.1s) su@ubuntu:/usr/local/src/security_monkey/dart$ ls build/
su@ubuntu:/usr/local/src/security_monkey/dart$ ls build/
su@ubuntu:/usr/local/src/security_monkey/dart$ dart --version
Dart VM version: 1.12.2 (Wed Oct 21 14:13:58 2015) on "linux_x64"

I tried again on a fresh AWS ubuntu box. the result is the same.

After I script the whole process, I am no longer hitting this error. thanks for your answers


Fix CSS (maybe)

CSS not loading :(

Merge approved! I'm running on autopilot, so sorry about that.


Compiling 1.6.3 on Ubuntu 17.10

I've cloned the repo here, and checked out tags/v1.6.3
I follwed the instructions in ./docs/build-unix.txt exactly..
I am using an up to date Ubuntu 17.10 artful Linux version
Any ideas?
There's some error reporting in the 'make' step, all coming at the end:
make[1]: Entering directory '/opt/deeponion/src'
CXX      libbitcoin_common_a-key.o
key.cpp: In function ‘int ECDSA_SIG_recover_key_GFp(EC_KEY*, ECDSA_SIG*, const unsigned char*, int, int, int)’:
key.cpp:81:28: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
if (!BN_add(x, x, ecsig->r)) { ret=-1; goto err; }
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:81:30: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
if (!BN_add(x, x, ecsig->r)) { ret=-1; goto err; }
^
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:102:34: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
if (!BN_mod_inverse(rr, ecsig->r, order, ctx)) { ret=-1; goto err; }
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:102:36: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
if (!BN_mod_inverse(rr, ecsig->r, order, ctx)) { ret=-1; goto err; }
^
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:104:31: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
if (!BN_mod_mul(sor, ecsig->s, rr, order, ctx)) { ret=-1; goto err; }
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:104:33: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
if (!BN_mod_mul(sor, ecsig->s, rr, order, ctx)) { ret=-1; goto err; }
^
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp: In member function ‘bool CKey::Sign(uint256, std::vector&)’:
key.cpp:358:19: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
if (BN_cmp(sig->s, halforder) > 0) {
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:358:21: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
if (BN_cmp(sig->s, halforder) > 0) {
^
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:360:19: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
BN_sub(sig->s, order, sig->s);
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:360:21: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
BN_sub(sig->s, order, sig->s);
^
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:360:34: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
BN_sub(sig->s, order, sig->s);
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:360:36: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
BN_sub(sig->s, order, sig->s);
^
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp: In member function ‘bool CKey::SignCompact(uint256, std::vector&)’:
key.cpp:385:33: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
int nBitsR = BN_num_bits(sig->r);
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:385:35: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
int nBitsR = BN_num_bits(sig->r);
^
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:386:33: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
int nBitsS = BN_num_bits(sig->s);
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:386:35: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
int nBitsS = BN_num_bits(sig->s);
^
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:411:22: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
BN_bn2bin(sig->r,&vchSig[33-(nBitsR+7)/8]);
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:411:24: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
BN_bn2bin(sig->r,&vchSig[33-(nBitsR+7)/8]);
^
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:412:22: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
BN_bn2bin(sig->s,&vchSig[65-(nBitsS+7)/8]);
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:412:24: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
BN_bn2bin(sig->s,&vchSig[65-(nBitsS+7)/8]);
^
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp: In member function ‘bool CKey::SetCompactSignature(uint256, const std::vector&)’:
key.cpp:431:32: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
BN_bin2bn(&vchSig[1],32,sig->r);
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:431:34: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
BN_bin2bn(&vchSig[1],32,sig->r);
^
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:432:33: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
BN_bin2bn(&vchSig[33],32,sig->s);
^~
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
key.cpp:432:35: error: invalid use of incomplete type ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
BN_bin2bn(&vchSig[33],32,sig->s);
^
In file included from /usr/include/openssl/ecdsa.h:10:0,
from key.cpp:7:
/usr/include/openssl/ec.h:1039:16: note: forward declaration of ‘ECDSA_SIG {aka struct ECDSA_SIG_st}’
typedef struct ECDSA_SIG_st ECDSA_SIG;
^~~~~~~~~~~~
Makefile:3339: recipe for target 'libbitcoin_common_a-key.o' failed
make[1]: *** [libbitcoin_common_a-key.o] Error 1
make[1]: Leaving directory '/opt/deeponion/src'
Makefile:542: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

I have these packages related to openssl:
libcurl4-openssl-dev:amd64			install
libevent-openssl-2.1-6:amd64			install
libgnutls-openssl27:amd64			install
libio-socket-ssl-perl				install
libnet-smtp-ssl-perl				install
libnet-ssleay-perl				install
libssl-dev:amd64				install
libssl-doc					install
libssl1.0-dev:amd64				install
libssl1.0.0:amd64				install
libssl1.0.2:amd64				deinstall
libssl1.1:amd64					install
openssl

Some openssl versions see to have problems with certain ECDSA_sig_st types/structures.
A quick fix is to replace the current src/key.h with this one we use in our raspberry branch.
https://github.com/deeponion/deeponion/blob/raspberry/src/key.h
The only difference is a small structure:
struct ECDSA_SIG_st {
   BIGNUM *r;
   BIGNUM *s;
}

Ok that seemed to work, it didn't seem to stop with an error, or at least it wasn't the same stuff...I didn't see what to run after that though, there didn't seem to be an executable file, so I tried  followed the instructions for compiling the Qt client
So I did:
chmod +x ./src/leveldb/build_detect_platform
qmake
and it error's out with this:
collect2: error: ld returned 1 exit status
Makefile:634: recipe for target 'DeepOnion-qt' failed
make: *** [DeepOnion-qt] Error 1

Would be neat if you guys could get a pre-compled version for Linux...I mean windows, mac, that's great....but how about a linux version so we don't all have to struggle to just have a DeepOnion wallet

Not enough resources on our side. But luckily, there are users who have already done that work.
Check this forum thread:
https://deeponion.org/community/threads/tutorial-packaging-deeponion-qt-wallet-with-appimage.29042/

You should NOT use qmake but, as stated in our docs, the autotools.
So:
./autogen.sh
./configure --disable-tests --with-gui=qt5
make

I did follow those instructions first....
I got the qmake etc.. from the doc/readme.rst
So basically I followed the instructions at first, and no executable were created that I could find.
I had checked out the tag v1.6.3 but now I"m going to try with the master branch
Made sure I did all of this:
apt-get update
apt-get upgrade
apt-get install build-essential libtool autotools-dev autoconf automake pkg-config libssl-dev libboost-all-dev bsdmainutils
apt-get install libqrencode-dev libminiupnpc-dev libevent-dev libcap-dev libseccomp-dev git
apt-get install software-properties-common
add-apt-repository ppa:bitcoin/bitcoin
apt-get update
apt-get install libdb4.8-dev libdb4.8++-dev
apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
added the bit to the src/key.h
./autogen.sh
./configure -- with-gui=qt5
make
and it worked....
Thanks for your prompt help!

Hm, this is an older doc I wasn't aware of. Sorry for the confusion. Will remove it.
Glad it now worked! 👍
Have fun!


Unable to focus mat-expansion-panel-header with keyboard when disabled

What is the expected behavior?
Expansion panel header can be focused, but not toggled with keyboard when the expansion panel is disabled.
What is the current behavior?
Expansion panel header cannot be focused.
What are the steps to reproduce?
https://stackblitz.com/edit/angular-material2-issue-dc2p67
Tab onto the disabled panel - it will tab past this panel and focus on the enabled panel.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7
Is there anything else we should know?
This prevents the header title and description from being accessible by keyboard. This also prevents developers from overriding default functionality of the expansion panel.

I was able to take a look at this and it appears to set the tabIndex to -1 if the expansion panel is disabled. The panel will allow a developer to override the default tabIndex, but not the styling. However this can be accomplished if needed. You can add a tabindex=0 to the disabled expansion header which would result in the disabled being focused first, and then the active panel in the stackblitz you provided. However, the default focus styling will be applied (In this case a blue outline).

I created a PR that addresses this issue by maintaining the styling and tabindex. I am not quite sure about the UX of having a highlighted panel with no CTA, but I will leave that for the reviewer!

I believe this behavior is working as intended. The expansion panel header is semantically a button, and buttons become non-tabbale when they're disabled.


Release 1.1.8

Codecov Report

Merging #2695 (09aee4b) into 1.1.x (b1aca46) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##            1.1.x    #2695   +/-   ##
=======================================
  Coverage   79.86%   79.86%
=======================================
  Files          88       88
  Lines        9447     9447
  Branches     2006     2006
=======================================
  Hits         7545     7545
  Misses       1618     1618
  Partials      284      284

Impacted Files
Coverage Δ

webapp/graphite/settings.py
76.32% <100.00%> (ø)

Continue to review full report at Codecov.

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


Laboratory work #1, Ganina Olesya - 19FPL1

@OlesyaGanina
Please, rename your Pull Request. Use this template – Laboratory work #1, Fedorov Makar - 19FPL1

Unfortunately, the deadline is not that far. Please, push changes so that we can review them.

On Friday you need to present the whole lab. Please, push changes

tests cannot start because you have a problem in main.py
Do this:
def remove_stop_words(tokens: list, stop_words: list) -> list:
"""
Removes stop words
:param tokens: a list of tokens
:param stop_words: a list of stop words
:return: a list of tokens without stop words
e.g. tokens = ['the', 'weather', 'is', 'sunny', 'the', 'man', 'is', 'happy']
stop_words = ['the', 'is']
--> ['weather', 'sunny', 'man', 'happy']
"""
if not isinstance(tokens, list) or not isinstance(stop_words, list):
return []
return [token for token in tokens if token not in stop_words]

work on tests and lint
By Friday you should have a green pipeline

Open another PR with the second lab


As a client I want my product weights in LBS and a good conversion to grams

Plugin version
4.9.2
WooCommerce version
6.2.0
WordPress version
5.8.3
PHP version
7.4.16
What went wrong?
When a client sets the products weight unit default on LBS. The MyParcel conversion to grams is not correct. E.g: The weight of 900 lbs is converted to 1985 grams.
Reproduction steps

WooCommerce > Settings> Products > Weight unit > set to LBS
Set a product weight extreme example of a 900 lbs
create an order and see the "wrong" converted weight (in admin)

Relevant log output
No response
Additional context
No response

Solved in 4.10.1


how to hide the red youtube button?

Set this as props I think it should be enough :

Closing this. Feel free to discuss this here.

Even after setting the above value, the Red Youtube buttons still appears.  Below is the complete snippet.
<YouTube
  ref="youtubePlayer"
  videoId="zmIUm1E4OcI" // The YouTube video ID
  play={false}           // control playback of video with true/false
  hidden={false}        // control visiblity of the entire view
  playsInline={false}    // control whether the video should play inline
  loop={false}          // control whether the video should loop when ended
  rel={false}
  showinfo={false}
  controls={0}
  modestbranding={true}
  onReady={(e)=>{this.setState({isReady: true})}}
  onChangeState={(e)=>{this.setState({status: e.state})}}
  onChangeQuality={(e)=>{this.setState({quality: e.quality})}}
  onError={(e)=>{this.setState({error: e.error})}}
  onProgress={(e)=>{this.setState({currentTime: e.currentTime, duration: e.duration})}}
  style={styles.youtubePlayer}
/>

I tried to apply the same parameters directly, and I can see the Red YouTube button in my browser, as well. Wondering what I am doing wrong. One can see it by following the link https://www.youtube.com/embed/zmIUm1E4OcI?showinfo=0&controls=0&rel=0&modestbranding=1

Can you show me a screenshot please ?

ur not gonna be able to hide this button. ur only option is to put something over it, such as ur own play button, or the youtube image for the video and a play button on top of that, etc. ..same with the logo in the bottom right that appears for the first 3 seconds of the video playing. ...i did a lot to try to make this work a while back when i was working on this, and these are the solutions i came up with.

One solution I came across is wrapping the YoutubePlay with a view component to disable touch using pointer events as shown below  👍
<View pointerEvents="none">
<YouTube
  ref="youtubePlayer"
  videoId="zmIUm1E4OcI"
/>
</View>


[Event Request] Codeunit::"Sales Post" - Function CheckAssosOrderLines - OnBeforeCheckAssosOrderLines

We like to request the following Event:
Object: Codeunit::"Sales Post"
Function: CheckAssosOrderLines
Publisher Event: OnBeforeCheckAssosOrderLines
Reason: To implement custom business logic
Where is the event placed:
local procedure CheckAssosOrderLines(SalesHeader: Record "Sales Header")
var
SalesLine: Record "Sales Line";
PurchaseOrderLine: Record "Purchase Line";
PurchaseHeader: Record "Purchase Header";
TempPurchaseHeader: Record "Purchase Header" temporary;
TempPurchaseLine: Record "Purchase Line" temporary;
CheckDimensions: Codeunit "Check Dimensions";
IsHandled: Boolean;
begin
IsHandled := false;
OnBeforeCheckAssosOrderLines(SalesHeader, IsHandled);
if IsHandled then
exit;
with SalesHeader do begin
SalesLine.Reset();
Event Code:
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckAssosOrderLines(SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


About to lose my mind. Unable to make it work.

Thank you for taking the time to report this issue!
To improve the process, I would like to ask you to let me know the information in advance.
All instructions and examples, and empty entries can be deleted.
Just for your information, a filled example is also written.
Abstract
Im unable to make the live sync work, everything seems to not work like it should be.
Expected behaviour

Everything synchronised

Actually happened

Synchronisation has been cancelled with the message TypeError ...  (captured in the attached log, around LL.10-LL.12)
No files synchronised

Reproducing procedure

Setup using URI
Use passphrase
Import LiveSync's conf ok? Yes
Reconfigure and reconsitute the data
I know this operation......
Keep them disabled

Never gets pushed.

I dont remember the last time I got this frustrated with a project. It is so hard to understand what is going on and why it isnt working

Uninstalling / playing around with settings eventually got me there.


Allow fixed-decimal amount representation

Currently, we use the truncated amount representation for transaction amounts, e.g.:
0.0012 BTC

In order to facilitate thinking about amounts in smaller units, like sats, some wallets started representing the decimals in a fixed 8-digits length, with spaces in between:
0.00 120 000 BTC

This has the advantage to allow reading the amount in sats as a normal number, with the usual grouping of 3-digits at a time, for amounts below 1 BTC.
Allowing the software wallet to customize the visualization to match the one they use would improve the UX and avoid confusion.

Since version 2.1.2, #133 is merged, which allows using a non-zero p1 byte (currently ignored). Therefore, we could reserve (for example) the two lowest-significant digits of p1 for the preferred format

00: use whatever is Ledger's default
01: truncate (e.g.: 1.23456 BTC)
10: fixed-length (e.g.: 1.23 456 000 BTC
11: ERROR (undefined, shouldn't use!)

Then in client libraries, we could use this logic:

if version <2.1.2: set p1 := 0 (other values would error)
otherwise: pass the flag as requested from the software wallet (it will be gracefully ignored in versions before this feature is merged).

That could be an optional parameter in the sign_psbt command.


[!](plugin Rollup Core) Error: Could not load /Users/Naseem/AppData/Roaming/npm/node_modules/wpe-lightning-cli/src/alias/wpe-lightning.js

I am facing issue while running lng build command, How can i fix this issue?
$ lng build
√ Removing "E:\workspace\xxx\xxx\build" folder
√ Ensuring "E:\workspace\xxx\xxx\build" folder exists
√ Copying support files to "E:\workspace\xxx\xxx\build"

Copying static assets to "E:\workspace\xxx\xxx\build"cp: no such file or directory: ./static
√ Copying static assets to "E:\workspace\xxx\xxx\build"

√ Copying settings.json to "E:\workspace\xxx\xxx\build"
√ Copying metadata.json to "E:\workspace\xxx\xxx\build"
× Error while creating ES6 bundle (see log)
E:\workspace\xxx\xxx\src\index.js → build\appBundle.js...
[!] (plugin Rollup Core) Error: Could not load /Users/Naseem/AppData/Roaming/npm/node_modules/wpe-lightning-cli/src/alias/wpe-lightning.js (imported by E:\workspace\xxx\xxx\node_modules\wpe-lightning-sdk\src\Lightning\index.js): ENOENT: no such file or directory, open 'E:\Users\Naseem\AppData\Roaming\npm\node_modules\wpe-lightning-cli\src\alias\wpe-lightning.js'
Error: Could not load /Users/Naseem/AppData/Roaming/npm/node_modules/wpe-lightning-cli/src/alias/wpe-lightning.js (imported by E:\workspace\xxx\xxx\node_modules\wpe-lightning-sdk\src\Lightning\index.js): ENOENT: no such file or directory, open 'E:\Users\Naseem\AppData\Roaming\npm\node_modules\wpe-lightning-cli\src\alias\wpe-lightning.js'
(node:7472) UnhandledPromiseRejectionWarning: Error: Error: Command failed with exit code 1: C:\Users\Naseem\AppData\Roaming\npm\node_modules\wpe-lightning-cli\node_modules.bin\rollup -c C:\Users\Naseem\AppData\Roaming\npm\node_modules\wpe-lightning-cli\src\configs\rollup.es6.config.js --input E:\workspace\xxx\xxx\src\index.js
--file E:\workspace\xxx\xxx\build\appBundle.js --name APP_com_epam_lgi
at execa.then.catch.e (C:\Users\Naseem\AppData\Roaming\npm\node_modules\wpe-lightning-cli\src\helpers\build.js:150:13)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:7472) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:7472) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
using npm -v > 6.13.4
using node -v > v10.19.0

Issue resolved by creating workspace in C:\Users\Naseem


BUG: plugin.setSuspendState is not a function

Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Errors related to RavenJS (3.9.1) are displayed on Sentry
What is the expected behavior?
No RavenJS error

This is not a Raven.js bug. This try/catch is wrapped around your code (or your libraries' code), and is triggering here because an error was thrown.
Make sure you click the stack expand buttons on the top right, because some frames may be suppressed by default.
If you still don't see a stack trace, and you're a hosted sentry.io customer, you can email<EMAIL_ADDRESS>and we can take a look at the issue and try to expand on what's going on. If not, consider posting the full JSON payload of the error to our forums.

Hi,
@benvinegar I'm sorry but this error occurs for one of my user, not myself so I can't debug it further from what I see in Sentry. I don't know what you mean by "expand buttons", but I don't see such buttons in Sentry interface.
If this error is coming from my own code wrapped by Raven, then why doesn't it log the error related to my code, instead of showing me this RavenJS code? I know that my code is not bug-free, but I expect Raven to show me my own errors locations, not the location where Raven does wrapping and error reporting, and this is the bug to me.
The JSON is https://gist.github.com/slorber/a8ad18a347e5a590388fd2bd31f506be
I noticed this error occured only 2 times, for Firefox 50 only for now.
I am a hosted Sentry customer so I'll ask for support

then why doesn't it log the error related to my code, instead of showing me this RavenJS code?

Raven uses try/catch to extract stack traces from places where there would otherwise be none. As a consequence, it appears it the stack trace itself.
You would see the same thing if you try/caught your own code:
function foo(fn) {
  try {
    fn();
  } catch (e) {
    console.error(e);
  }
}

foo(function thisBreaks() {
  throw new Error('oops');
});

This produces:
Error: oops
    at thisBreaks (<anonymous>:4:9)
    at foo (<anonymous>:3:5)
    at <anonymous>:3:1

We could intentionally remove Raven frames from the stack to reduce confusion (they are already tagged as "library" frames to separate them from app frames in the Sentry UI).  But then that would remove detail about how the error was caught, making it tough for us to explain what happened.
My guess: this is  being caused by some kind of browser add-on, which might explain why you're only seeing it from one user. Browser security models often suppress stack traces / error detail from add-ons and extensions.

ok thanks, i'll just ignore this error and see if it comes back again

Re-opening this because it appears to be an extension of some kind that is affecting multiple users.

Closed – this is now rejected as part of Sentry's "Browser Extensions" inbound data filter.


Crafting bug fixes

Fixed #68 , #59 , and #67 .
Next up is #63, but I don't have enough time to fix it tonight. Also going to do a bit of refactoring on variable/method names and spacing.
I should also mention #62 was fixed in my first PR last month, so it can be closed. Thanks!

Hi sb-- I'm not sure how much you're active on GitHub, but I would love to help out more with bug fixes and uploading them in a faster manner. I'm guessing you and zero have mostly moved on considering the lack of patches (which is fine, of course).
I could make a wiki and document the project more, but I'm not sure how often you're on to accept pull requests as well as upload release jars. Perhaps I could make an official "new maintainer fork", and you could link to it on the main CurseForge page so that I could upload release jars as soon as I get bugs squashed? That would make it easier for me, who wants to send out releases faster, and you, who wouldn't have to accept all my pull requests. Just something to think about!

Thanks for taking care of the issue and the response as well.

Just added a few more commits to the PR-- now fixes issue #63.
As mentioned in the issue, the problem was that when a user shift clicked out of an EZStorage2 machine without inventory space, the mod would attempt to put the items into the player inventory, and put them back into the machine if the player's inventory was full. This caused issues when the storage block was removed because it would try to send the items back only to find a full (or 0 inventory space) block.
I figured the best way around this was to block the storage access if the user's inventory was full. This worked great until I realized it also blocked the user from picking up an item to craft with [if their inventory was full]. Just added a quick commit to fix this as well.
The 'feel' of the system is now almost identical to AE2, although right/left clicks might need a bit of work.

I am open to the possibility of bringing on somebody new to help maintain the mod. I’m out of town this weekend, but I’ll take a closer look at this on Monday and get back to you to follow up and continue this conversation.

On Oct 11, 2018, at 6:39 PM, Samuel R<EMAIL_ADDRESS>wrote:
Just added a few more commits to the PR-- now fixes issue #63.
As mentioned in the issue, the problem was that when a user shift clicked out of an EZStorage2 machine without inventory space, the mod would attempt to put the items into the player inventory, and put them back into the machine if the player's inventory was full. This caused issues when the storage block was removed because it would try to send the items back only to find a full (or 0 inventory space) block.
I figured the best way around this was to block the storage access if the user's inventory was full. This worked great until I realized it also blocked the user from picking up an item to craft with [if their inventory was full]. Just added a quick commit to fix this as well.
The 'feel' of the system is now almost identical to AE2, although right/left clicks might need a bit of work.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@zerofall hi, are you back to the town yet? :)

Oh well...No progress on this as of yet. No matter I'm patient.

I've moved on from Forge in favor of Fabric; may make a similar mod in the future for the latter. Thanks for keeping with me :)

I'll be moving on to 1.14.2 whenever that comes out and will be playing with mods there.


CUDA error out of memory

Hello,
I've been folding single amino-acid substitute protein variants that are part of a heterotetramer complex. See the attached FASTA for an example fold query (SGCB_A9G.fa.txt).
This is the command to request the fold: /path/to/RosettaFold2/run_RF2.sh $fasta_file_location -o $output_directory --pair
3/4 of the models will generate but the last 1/4 will error out with a memory issue. See the Error logs for the traceback details.
RF2_Job336369_99.out.txt
RF2_Job336369_99.err.txt
The computing environment is IBM's LSF. The requested nodes have 64GB of RAM with a single TeslaV100_SXM2_32GB . Seems like the RMA doesn't cap out beyond 22GB. I don't have insight on the GPU utilization.
Is there anything I can do on my end? Can the code be fixed to deal with this issue? My temporary solution is to re-run fails jobs but this is not ideal.
Best,
Lloyd Tripp

I have a similar but different error now.
RF2-preMSA_Job557425_202.err.txt

Just wanted to add I am also currently getting this issue, I am trying to run PDB:1aqf (tetramer complex)
I am running on the Ohio Super Computers Ascend cluster, which uses NVIDIA A100 80 GB gpus, here is the error I am getting:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 32.88 GiB (GPU 0; 79.15 GiB total capacity; 46.56 GiB already allocated; 32.00 GiB free; 46.59 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF~
Has anyone figured out a solution for this? I tried setting max_split_size_mb but no luck

Just wanted to add I am also currently getting this issue, I am trying to run PDB:1aqf (tetramer complex)
I am running on the Ohio Super Computers Ascend cluster, which uses NVIDIA A100 80 GB gpus, here is the error I am getting:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 32.88 GiB (GPU 0; 79.15 GiB total capacity; 46.56 GiB already allocated; 32.00 GiB free; 46.59 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF~
Has anyone figured out a solution for this? I tried setting max_split_size_mb but no luck

I run following code and updated the torch. After It ran normally
pip install torch torchvision torchaudio


use lease-api for leader election to reduce request spam

see https://github.com/kubernetes/kubernetes/issues/80289

Is there a way to make a Lease object a singleton? It seems as though these leases are timed, i.e. applicable to leader-with-lease not leader-for-life, although it is a standard k8s object and can be used like a ConfigMap. Unfortunately there isn't great documentation on usage.

I'd assume the lease can be done for a fare future date, have not played
with it much though.
On Tue, May 19, 2020 at 11:19 PM Eric Stroczynski<EMAIL_ADDRESS>wrote:

Is there a way to make a Lease
https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.14/#lease-v1-coordination-k8s-io
object a singleton? It seems as though these leases are timed, i.e.
applicable to leader-with-lease not leader-for-life, although it is a
standard k8s object and can be used like a ConfigMap. Unfortunately there
isn't great documentation on usage.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/operator-framework/operator-sdk/issues/3066#issuecomment-631262066,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAACYZ4XMCV3DRZBVQLACU3RSNZA5ANCNFSM4NEOD5QA
.

I found a nice article here https://carlosbecker.com/posts/k8s-leader-election
it has the basic code / how to use it ... only unknown would be how to make never switch the leader when it's still running, but that could just be setting an infinite interval

We should address this in the upstream controller-runtime issue for replacing the configmap/endpoints based leader election with the new API: https://github.com/kubernetes-sigs/controller-runtime/issues/460
Probably not much we can change here in the SDK here itself.

/kind feature

Actually if this is about the SDK's leader-for-life pkg then that's probably another discussion.


Started auth & retrieve tweets

This barely works and is a total hack but it more proves the concept of what I'm trying to achieve.

[ ] Is there a way to get the stored twitter credentials from the model rather than re-authorizing? (I poked around a bit but figured it's probably better to just ask)
[x] The tweepy API function user_timeline() has a optional parameter for limiting the number of tweets returned but, as far as I can tell it's positional and I can't specifying it as a kwarg. I'll dig a little further into this later, as it's late right now so I'm probably overlooking something obvious.

Pull request approved! 👍
Hi @eayoungs, regarding your question "Is there a way to get the stored twitter credentials from the model rather than re-authorizing? (I poked around a bit but figured it's probably better to just ask)"
You can look up the latest authorization session from the WeVoteServer/import_export_twitter/models.py TwitterAuthResponse table. There is a function in the TwitterAuthManager called "retrieve_twitter_auth_response" that returns the latest twitter_auth_response for the current voter_device_id.

Thanks for the Review @DaleMcGrew :)

Hey, that rimes! ;-)
Thanks, Dale!

Hey, Dale; I'm having trouble finding where I can access the voter_device_id. It doesn't seem to be available in either voter/models.py or organization/models.py.


Cannot create gateway

Describe the bug
// A clear and concise description of what the bug is.
Cannot create gateway
Steps To Reproduce
// A concise description of the steps to reproduce the buggy behavior:
Run the bot and type: gateway create
Here are the steps to reproduce the issue (see attachments in the section below):

Set up your configuration file with these parameters: ...
Start the bot using this command: ...
...

Screenshots
// If applicable, add screenshots to help explain your problem.

Release version
// Include your bot's version number (Can be found at the upper left corner of your CLI).
v1.7.0
Attachments
// Please attach your config file and log file to help us debug. It would be difficult for us to help you without those!
WARNING: Do NOT publish any exchange API keys or your wallet's private key. Whoever has access to them may steal your assets!
Optional: your discord username:

Hi @glarkou just to confirm are you using docker build on this ticket? I was able to reproduce it after running update.sh helper script. If you can provide us the steps to reproduce so we can further check this bug thanks!

Yes exactly @rapcmia . I faced that issue after running update.sh screen. Using create.sh everything worked.

Severity: P2
Bounty: 50000 (https://hummingbot.org/maintenance/bugs/)
Rationale: Bug related to a component in gateway

Proposed a PR:https://github.com/hummingbot/hummingbot/pull/5729

Assigning this PR to @MementoRC. Thank you for the contribution!

The fix has been added to the upcoming version 1.9.0 release.


Remove unused contributor guide

Remove unused contributor guide with build_and_test.md and docs_and_website.md.

why docs_and_website.md is unused?

@pan3793, just follow the community of Kyuubi.

How do we guide the contributors to verify the changes of docs then? For example, if something is broken due to bad syntax, how to debug that?

@pan3793, I have reverted the removal of docs_and_website.md. PTAL.