Collision Zones Need Defining

We need to go through each background that we want to use and find the necessary collision zones so that walking around doesn't look weird.
All of the zones should be characterized with classes

[x] Avenida town needs defined zones
[x] Lab needs defined zones
[x] Academy town needs defined zones
[x] Route 1 & 2 need defined zones
[x] The house needs defines zones

All collision zones fulfilled


Document CEL option, library and language feature availability by version

We need to be transparent about exactly CEL is configured for each Kubernetes version. This documents the functionality added so far.
Quantity library is being documented in a separate PR so I've excluded that here.

Page preview:
https://deploy-preview-42817--k8s-v1-27.netlify.app/releases/

Do these changes belong on the 1.29 branch?

@jpbetz , Do you have time to address the comments in your pull request, or can you close it?
Thanks

Sorry for the delay. Feedback applied.

Page preview:
https://deploy-preview-42695--kubernetes-io-main-staging.netlify.app/docs/reference/using-api/cel/#cel-options-language-features-and-libraries

Thanks @kbhawkey. Feedback applied

@jpbetz , Can you submit a new commit to restart the build?

/label tide/merge-method-squash

/approve

/lgtm


Ate words (Issue #807)

The Pull Request resolves parts of Issue #807
As mentioned, following words added:
-Authenticate
-Automate
-Assimilate
-Associate
Followed separate parts-of-speech guidlines for Associate.
Assimilate had tailing semicolon removed as it messes up with JSON parsing.

Well, at least I found the problem!


Zero Bytes when serializing several large strings

When serializing a large list of urls we saw they got serialized with a lot of \x00 in the serialized byte string and we were not able to deserialize it again.
We could reproduce this problem using the following python3 code:
import random
import string
from io import BytesIO
import fastavro

def id_generator(size=6, chars=string.ascii_uppercase + string.digits):
    return ''.join(random.choice(chars) for _ in range(size))

testdata = []
num = 100

for i in range(50):
    testdata.append({"first":  id_generator(num), "second":  id_generator(num), "third":  id_generator(num), "fourth":  id_generator(num)})

schema = {
  "fields": [
    {
      "name": "first",
      "type": "string"
    },
    {
      "name": "second",
      "type": "string"
    },
    {
      "name": "third",
      "type": "string"
    },
    {
      "name": "fourth",
      "type": "string"
    }
  ],
  "namespace": "namespace",
  "name": "zerobyte",
  "type": "record"
}

def serialize(schema, *records):
    buffer = BytesIO()
    fastavro.writer(buffer, schema, records)
    serialized = buffer.getvalue()
    return serialized

print(serialize(schema, *testdata))

Using the reference python avro implementation, this works fine.
If you serialize the lines separately, it also works fine with fastavro.

Thanks for reporting and the example. Will take a look at it soon-ish...


fix: tidy up Dockerfile and repo and add security check

Change to MIT license and update company name
add inline comments to dockerfile
remove unnecessary build steps
remove wget from runner
make files executable and remove chmod commands from dockerfile
delete unused file
enable bandit security audit workflow
remove typo in configurePktFwd.py
add newer regions and more info to readme

Relates-to: #20
Relates-to: #21
Signed-off-by: Aaron Shaw<EMAIL_ADDRESS>

cc @ marvinmarnold @vpetersson @robputt if you could take a look and see if this all makes sense 👍
i am sure there is more that can be improved, but hopefully this is a useful initial stab

@shawaj Don't leave commented code behind in the files. If we need to revert it later, we can pull the history from git.

@vpetersson where did you find the commented code? Think I removed the last of it in the latest commit?

@vpetersson where did you find the commented code? Think I removed the last of it in the latest commit?

My bad. Either i reviewed a previous version or i misread.

@robputt / @marvinmarnold could either of you review this please?

@vpetersson have squashed the commits to make it easier :-)

@marvinmarnold @robputt the only thing I am not sure of now is how to fix the python security audit issues.
Have taken them down from "high" severity to "low" however still throwing up errors and out of my depth now.
I guess the answer is maybe to directly implement them in python rather than using subprocess, but not sure if that is possible?

EDIT: looks like it is not possible to pass this test due to an error in its implementation so perhaps we just need to add # nosec to these lines?

Agreed that #nosec is the best fix until this is fixed upstream.

Agreed that #nosec is the best fix until this is fixed upstream.

@marvinmarnold ok added that now too.
Have re-requested review as think that is all sorted now and all checks / builds seem to be passing


In SubGraph Plugin: deprecation hints in InputTypes and Args

Partial Fix for #856
Sorry but I could not fix deprecated for query input args. Just did not find it.

Thanks for this fix!  I added some tests, and it looks like your fix already applied to query arguments and inputs.  Were you testing something specific that you were testing that wasn't working with this fix?

You are right. No more issues with in the schema. Thanks


Links in README titles should be more subtle

I'm not sure if something changed with this rendering because I don't remember these looking this bad in the past, but we give links that are also headings the link-color where GitHub keeps them with the regular text colour.
Us:

GitHub:

Interestingly, blue on mobile (GitHub)

Yea, I just double checked and you're correct in both light and dark mode. GH web on mobile is the same as GH web on desktop, so it's just an app thing.
Apps! They'll never take off


Fix soundness

I'd like to point out that those protected[this] members are (likely) unsound. AFAICT, they're very similar to thisCollection and toCollection in the old collections, which do cause ClassCastExceptions if they're not systematically overridden by subclasses.
For example, see the old issue https://github.com/scala-js/scala-js/issues/843 and its fix https://github.com/scala-js/scala-js/pull/851/files.

@sjrd Yes, that's my sentiment as well. It needs to be documented thoroughly.

I’ve just pushed a commit to get withFilter working. It is implemented on top of the unsound IterableCC-like types, but I think if we want to get it right we’d really have to have one WithFilter implementation per subclass of Iterable.

I’ve also fixed ArrayDeque so that Stack and Queue can benefit from its overrides.

Some junit/tests are still failing with Dotty.

This PR has been ported to scala/scala but I leave it open here because we will eventually have to also port the part that touches the collections-contrib project.

Superseded by #561 and scala/scala#6508


Table On Hover mouse and also tab navigation styling

On mouse hover should show the shading. Also, one should be able to cycle through the results using arrow keys and tab function for accessibility

on hover works via rowClasses. Not sure what tab nav means?
const rowClasses = (row, rowIndex) => {
            const { editRows, data } = this.state;
            var classes = 'table-row';
            if (editRows.has(row.id)) {
                classes += ' table-edit-row';
            }
            else if (data.length > 10 && rowIndex%2 === 0)
                classes += ' table-zebra';
                return classes;
        };


Checkbox to mark watched videos on the overview page for a course

This is a really good idea. We already thought about this when implementing the feature that saves the stream progress for logged in users. :+1:

I think we could also do some magic with the video duration and by saving the start time of streams here 👌


Fix some test warnings that are spamming the log

Could you perhaps rewrite the suite into pytest? You can use the Nikola test suite for inspiration, and if you don’t feel like it, this one can be merged too.

Hi Chris, I don't have the head space right now for rewriting as focused on the PlantUML plugin.  This just fixes some spam that is distracting me!

I merged this, thanks for fixing this anyway!


Expanded preview does not work

Android Studio version: Android Studio Ladybug | 2024.2.1 Patch 2, Build #AI-242.23339.11.2421.12550806
Runtime version: 21.0.3+-79915917-b509.11 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Kotlin plugin: K2 mode (Beta)

There is an 'ReplyAppExpandedPreview' preview render error on MainActivity:
java. lang. ClassCastException: class com. android. layoutlib. bridge. android. BridgeContext cannot be cast to class android. app. Activity (com. android. layoutlib. bridge. android. BridgeContext and android. app. Activity are in unnamed module of loader com. intellij. ide. plugins. cl. PluginClassLoader @4c9c61ba)   at com. example. reply. ui. ReplyHomeContentKt. ReplyListAndDetailContent(ReplyHomeContent. kt:119)
Other previews render as expected

I'm seeing this now too, and I know this worked a few months ago, so I'm assuming one of the imports needs to be updated now or something... will come back and edit this comment if I find the problem package.


Referential transparency on non-deterministic functions

Describe the bug
Non-deterministic functions are not referentially transparent.
To Reproduce
> !(subtraction (superpose (a b d)) (intersection (superpose (a b c)) (superpose (a b d))))
[d]
> (= (test6 $set $subset) (subtraction $subset (intersection $set $subset)))
> !(test6 (superpose (a b c)) (superpose (a b d)))
[b, d, a, d, a, b, d]

Expected behavior
The wrapped function test6 produces the same result as the top-level test.
Actual behavior
test6 gets applied element-wise.
Additional context

MeTTa version: 0.1.10

The issue is that test6 is not typed and thus its arguments are evaluated before function call. Thus test6 is called in the pairs. First item of the pair is an element of the (a b c), second item is an element of the (a b d). It works according semantics of the non-determinism in MeTTa. One can make work this example by adding type for the test6:
(: test6 (-> Atom Atom Atom))
(= (test6 $set $subset) (subtraction $subset (intersection $set $subset)))
!(test6 (superpose (a b c)) (superpose (a b d)))
[d]


Fix/update tutorials asset and unitary_event_analysis to use nixio 1.5.0

This PR addresses issue #435 .
It will render PR #437 obsolete. As PR #437 still relies on nixio 1.5.0b3, this PR will include the next step and realize an upgrade to nixio 1.5.0.
The datasets used in the tutorials:

asset.ipynb
unitary_event_analysis.ipynb
have been updated to .nix file format and are now compatible with nixio >= 1.5.0.

A current build of the tutorials from this PR can be seen here:
UE tutorial: https://elephant-docs-development.readthedocs.io/en/fix-update_nixio_1.5.0/tutorials/unitary_event_analysis.html
ASSET tutorial: https://elephant-docs-development.readthedocs.io/en/fix-update_nixio_1.5.0/tutorials/asset.html
The links to the updated datasets on https://gin.g-node.org/INM-6/elephant-data PR # 6 have been added to the notebooks.
TODO: (to remove this PR from draft mode)

[ ] merge PR # 6 on gin.g-node /INM-6/elephant-data
[ ] update links in the tutorial notebooks accordingly

Coverage remained the same at 88.678% when pulling b7954e94e8912efa572d35238507528c85f54cfc on INM-6:fix/update_nixio_1.5.0 into 0c54079a973379ee88079748e482f7f3ef2ee4ba on NeuralEnsemble:master.


How to parse file and create a readable stream to send in a http request.

I want to parse a file and create a readable stream that can be sent to another service in a http request.
Uploadmiddleware
export const UploadMiddleware = (req: Request, res: Response, next: NextFunction) => {

    const busboy = new Busboy({ headers: req.headers });
    busboy.on("file", (fieldname, file, filename, encoding, mimetype) => {
        req.body.image = file;
    });
    busboy.on("field", (fieldname, val, fieldnameTruncated, valTruncated, encoding, mimetype) => {
        req.body[fieldname] = val;
    });
    busboy.on("finish", () => {
        next();
    });
    req.pipe(busboy);
}

This upload middleware is adding the file to the req.body.image field. This field now contains this stream.
File Stream
  image: FileStream {
    _readableState: ReadableState {
      objectMode: false,
      highWaterMark: 16384,
      buffer: BufferList { head: null, tail: null, length: 0 },
      length: 0,
      pipes: null,
      pipesCount: 0,
      flowing: true,
      ended: true,
      endEmitted: true,
      reading: false,
      sync: false,
      needReadable: false,
      emittedReadable: false,
      readableListening: false,
      resumeScheduled: false,
      paused: false,
      emitClose: true,
      autoDestroy: false,
      destroyed: false,
      defaultEncoding: 'utf8',
      awaitDrain: 0,
      readingMore: false,
      decoder: null,
      encoding: null
    },
    readable: false,
    _events: [Object: null prototype] { end: [Array], data: [Function] },
    _eventsCount: 2,
    _maxListeners: undefined,
    truncated: false,
    _read: [Function]
  },

However when i try to post this stream to another service using axios. It does not like it and the other service times out. I believe this stream is not something the other service can read.
Http request to the other service
      const formData = new FormData();
      formData.append("image", request.image); //req.image is the above stream

      const options: any = {
            url,
            method: "post",
            headers: formData.getHeaders(),
            data: formData,
       };

        await axios(options)

Side Note:
The stream obtained from fs.createReadStream is something that the other service can read when sent in the same http post request using axios. That stream looks like the following.

  image: ReadStream {
    _readableState: ReadableState {
      objectMode: false,
      highWaterMark: 65536,
      buffer: BufferList { head: null, tail: null, length: 0 },
      length: 0,
      pipes: null,
      pipesCount: 0,
      flowing: null,
      ended: false,
      endEmitted: false,
      reading: false,
      sync: true,
      needReadable: false,
      emittedReadable: false,
      readableListening: false,
      resumeScheduled: false,
      paused: true,
      emitClose: false,
      autoDestroy: false,
      destroyed: false,
      defaultEncoding: 'utf8',
      awaitDrain: 0,
      readingMore: false,
      decoder: null,
      encoding: null
    },
    readable: true,
    _events: [Object: null prototype] { end: [Function] },
    _eventsCount: 1,
    _maxListeners: undefined,
    path: 'front.jpg',
    fd: null,
    flags: 'r',
    mode: 438,
    start: undefined,
    end: Infinity,
    autoClose: true,
    pos: undefined,
    bytesRead: 0,
    closed: false
  },

Can i convert this Filestream obtained from busboy into a stream that can be sent in a http post request to be read.

Okay so if anyone else is interested this is how i solved the problem. In the end i stored the bytes in an array and then created a new Readable Stream because i couldint send original file stream via axios(http) to another service.
      busboy.on("file", (fieldname, file, filename, encoding, mimetype) => {
            const f = [];
            file.on("data", (data) => {
                f.push(data);
            });
            file.on("end", () => {
                const fileStream = createReadableStream(f);
                req.body[fieldname] = fileStream;
            });
        });

const createReadableStream = (buffer) => {
    const readableInstanceStream = new Readable({
        read() {
            for (const bytes of buffer) {
                this.push(bytes);
            }
            this.push(null);
        },
    });
    return readableInstanceStream;
};

@mscdex Should this be closed? It's definitely still an issue and I'm not sure there's an explanation as to why this happens.

@Asheboy This issue is not with busboy. It's most likely that axios requires the length of the stream ahead of time, something that is not possible with streams in general (and especially multipart requests). Libraries like axios would need to send their requests with Transfer-encoding: chunked instead of setting Content-Length. The potential issue with that is server compatibility, as not all HTTP servers may support chunked requests.

Okay so if anyone else is interested this is how i solved the problem. In the end i stored the bytes in an array and then created a new Readable Stream because i couldint send original file stream via axios(http) to another service.
      const f = [];
      busboy.on("file", (fieldname, file, filename, encoding, mimetype) => {
            file.on("data", (data) => {
                f.push(data);
            });
            file.on("end", () => {
                const fileStream = createReadableStream(f);
                req.body[fieldname] = fileStream;
            });
        });

const createReadableStream = (buffer) => {
    const readableInstanceStream = new Readable({
        read() {
            for (const bytes of buffer) {
                this.push(bytes);
            }
            this.push(null);
        },
    });
    return readableInstanceStream;
};

I'm currently facing this issue, I've copied your code but file.on('end') is never firing for me?
 const createReadableStream = buffer => new Readable({
            read() {
                for (const bytes of buffer) this.push(bytes);
                this.push(null);
            }
        });

        let busboy = new Busboy({ headers: req.headers });
        let f = [];

        busboy.on('file', (fieldname, file, filename, encoding, mimetype) => {

            file.on('data', data => {
                f.push(data);
            });

            file.on('end', async () => {
                console.log('End Happened');

                try {
                    const formData = {
                        file: {
                            value: createReadableStream(f),
                            options: {
                                filename: filename,
                                contentType: mimetype
                            }
                        }
                    };

                    console.log(formData);

                    const fileData = await fusioo.post('/files', formData, {
                        headers: {
                            'Content-Type': 'multipart/form-data'
                        }
                    });

                    console.log(fileData);
                } catch (error) {
                    next(new InvalidQueryException(error.message));
                };
            });

        });

        busboy.on('finish', () => next());


[JENKINS-61900] JCasC support for CredentialsProvider extensions

See JENKINS-61900.
/cc @jenkinsci/configuration-as-code-plugin-developers

Looks like I can not add reviewers, so just mentioning here: @timja @jetersen @oleg-nenashev

the other credential providers I've seen

Can you point me to those please? I'm validating this with an non-public extension, but I'd like to do it with at least another one.

https://github.com/jenkinsci/aws-secrets-manager-credentials-provider-plugin/blob/master/src/main/java/io/jenkins/plugins/credentials/secretsmanager/AwsCredentialsProvider.java
https://github.com/jenkinsci/azure-keyvault-plugin/blob/master/src/main/java/org/jenkinsci/plugins/azurekeyvaultplugin/AzureCredentialsProvider.java

OK. I understand now. So those providers do not create credentials entries in Jenkins, the credentials store is just calling the provider to read credentials from the external system (AWS or Azure).
So, yeah, this is for CredentialsProvider extensions which actually store something in Jenkins. In my specific case it's CyberArk, the credentials provider reads from CyberArk but users need to create a credentials entry in Jenkins (just with an ID matching the CyberArk one). This approach has some benefits that are not relevant now.
Thanks for the references!

Build failed for unrelated reasons: Remote call on EC2 (aws) - Ubuntu 18.04 LTS (i-096e07c7f640f5d6a) failed. Re-triggering.

Is this ready for review?

Yes, Jenkins CI is just sick 😓


Add support for RTL languages

Any thoughts on how to accomplish this, or what is currently missing to support it?

:+1:

i do it like this:
creare theme-rtl.css and put it on _static/css (if css directory not exist create it)
and add css style neccessry in rtl support in it
add this line in end of conf.py
def setup(app):
print(dir(app))
app.add_stylesheet('css/theme-rtl.css')
thanks to Gringo Suave for this answering in this post
http://stackoverflow.com/questions/23462494/how-to-add-a-custom-css-file
i will fix this issue

Doing this correctly would almost certainly touch CSS for the LTR rendering, and thus would be non-trivial. I wouldn't mind taking this on, especially if I can get a native RTL language speaker (e.g., Arabic, Hebrew) to help with testing.


^NEWEST^ Monopoly Go Free Dice Hack Generator in-2024 Daliy Working New Way Updated Method

What should happen?
...
What happens instead?
...
Possible Solution

...
Test Case and/or Steps to Reproduce (for bugs)

Test Case:

How to reproduce:
1.
2.
3.
Context

...
Your Environment

Foundation version(s) used:
Browser(s) name and version(s):
Device, Operating System and version:
Link to your project:

Checklist

[ ] I have read and follow the CONTRIBUTING.md document.
[ ] There are no other issues similar to this one.
[ ] The issue title and template are correctly filled.

🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links

.
.
.
.
.
.
.
.
🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links

.
.
.
.
.
.
.
.
🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links
.
.
.
.
.
.
.
.

🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links
.
.
.
.
.
.
.
🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links

.
.
.
.
.
.
.
.
🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links

.
.
.
.
.
.
.
.
🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links
.
.
.
.
.
.
.
.

🔴📺📱👉 Click here FREE DICE Links
🔴📺📱👉 Click here FREE DICE Links


[CWS] add auid approver to all FIM events

What does this PR do?
This PR adds auid approvers on all the fim event types
Motivation
Describe how to test/QA your changes
Possible Drawbacks / Trade-offs
Additional Notes

/merge


Editors choice apps selection

Hi,
Currently, the Edito Choice Apps category is only listing apps designed for GNOME. I was wondering if it would be possible to add a bit more diversity in the selection and add a few apps from other projects (e.g. KDE, Inkscape, Blender, Elementary, ...)

Friendly ping? :D

Feel free to send a proposal MR to https://github.com/flathub/backend/blob/master/data/picks/apps.json


Fix Markdown bugs

Just noticed the README was a bit off. Thanks for the excellent project :)

This change is

Thanks for contributing!


os: don't waste extra threads for opening files

What version of Go are you using (go version)?

$ go version
go version go1.12.6 darwin/amd64

Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/aklimov/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/aklimov/Git/golang"
GOPROXY=""
GORACE=""
GOROOT="/Users/aklimov/Git/brew/Cellar/go/1.12.6/libexec"
GOTMPDIR=""
GOTOOLDIR="/Users/aklimov/Git/brew/Cellar/go/1.12.6/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/3h/0nn80rp973b08bd0r56g5pd80000gn/T/go-build873614728=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I've built the program shown below,
ran mkfifo pipe and
ran GOMAXPROCS=1 lldb theprogramshownbelow.

package main

import (
	"fmt"
	"os"
	"runtime"
	"time"
)

func main() {
	for i := runtime.NumCPU() * 2; i > 0; i-- {
		go openPipe()
	}

	for {
		time.Sleep(time.Second)
	}
}

func openPipe() {
	p, errOpen := os.Open("./pipe")
	fmt.Printf("os.Open(\"./pipe\"): %#v\n", errOpen)
	p.Close()

	for {
		time.Sleep(time.Second)
	}
}

What did you expect to see?
Not much more threads than one.
What did you see instead?
11 threads including a lot of hanging in the open(2) syscall.

/cc @rsc @ianlancetaylor

After the suggested change, os.Open("/dev/stdout") and such will likely cause explosions in other processes. Unfortunately nonblocking on Unix is a property of the file, not the file descriptor, and making unsuspecting processes suddenty have their shared files be nonblocking is not a good idea.

Are you sure? fcntl(2) being effectively used in #32619 "provides for control over descriptors" according to the man page.

@Al2Klimov The per-FD flags are accessed with F_GETFD/F_SETFD, the per-file flags are accessed with F_GETFL/F_SETFL. O_NONBLOCK is defined as a "file status flag" (not file decriptor), and used with F_SETFL.

If /dev/stdout is connected to a pipe, then I suspect that we may already cause this kind of confusion, since in that case we will set the O_NONBLOCK flag on the file descriptor via syscall.SetNonblock.  That is, I'm not sure that the suggested change introduces a problem for /dev/stdout that does not already exist.

@ianlancetaylor Unf actually that is pretty nasty. I mean, one could hope that in 2019 every process was already prepared to handle EAGAIN, but it really wouldn't surprise me if doing that still either made a bunch of things error out, or sent them into busy loops.

Fun fact: a Go process reading stdin is the only process on my machine with a non-blocking stdin/stdout.
$ grep -h ^flags: /proc/*/fdinfo/{0,1,2}|sort|uniq -c|sort -n
      2 flags:	02000000                   <----------- this is non-blocking
     11 flags:	00
     11 flags:	0100002
     15 flags:	01
    117 flags:	0100000
    153 flags:	02
    177 flags:	0100001

So my earlier argument was "some things will break", with a vague promise of breaking. Here's a concrete breakage if you automatically add O_NONBLOCK to all os.OpenFile calls:
man 7 fifo

  A process can open a FIFO in nonblocking mode.  In this  case,  opening
  for  read-only succeeds even if no one has opened on the write side yet
  and opening for write-only fails with ENXIO (no such device or address)
  unless the other end has already been opened.

So, automatic O_NONBLOCK will break all fifo uses where the write side is opened first.

Strange. With Create() instead of Open() I also got error=nil.

I'd like to point out that O_NONBLOCK is an attribute of the file description (where description != descriptor), not the file. That is, two calls to open will produce two different file descriptions. A file description can have many file descriptors. For example, calling dup on a file descriptor will yield a new file descriptor that shares the first file descriptor's file description. Same goes for fork.
The core issues explained by @tv42 still apply, but two processes each opening the same file cannot screw each other up, as they will not share the same file description.
Of course, the file descriptors 0–2 still commonly share a single file description, but opening /dev/stdout in non-blocking mode should be safe.
Refer to the following excerpt of open(2)
   A call to open() creates a new open file description, an entry in the
   system-wide table of open files.  The open file description records
   the file offset and the file status flags (see below).

as well as the entire subsection Open file descriptions of section NOTES.

@dominikh is correct, I misremembered the details. The traps only activate if you share an open fd (inherit it or pass it over unix domain socket). So by that logic, just os.OpenFile("/dev/stdout", os.O_WRONLY|syscall.O_NONBLOCK, 0) shouldn't hurt others.
Adding O_NONBLOCK to all opens will still break fifo write-side opening with no readers:
package main

import (
	"log"
	"os"
	"syscall"
)

func main() {
	if err := os.Remove("fifo"); err != nil && !os.IsNotExist(err) {
		log.Fatalf("remove: %v", err)
	}
	if err := syscall.Mkfifo("fifo", 0644); err != nil {
		log.Fatalf("mkfifo: %v", err)
	}

	f, err := os.OpenFile("fifo", os.O_WRONLY|syscall.O_NONBLOCK, 0644)
	if err != nil {
		log.Fatalf("open: %v", err)
	}
	defer f.Close()
}

$ go run .
2019/06/22 12:00:39 open: open fifo: no such device or address
exit status 1

Also, I'd like to clarify the issue subject: it should be "os: don't waste extra threads when opening fifos". This bug is only relevant if you're opening lots of FIFOs for reading concurrently. That's a really rare edge case scenario. The long wait in the syscall doesn't trigger on most kinds of files.
FIFOs are a rare special case, and 1) leaving O_NONBLOCK out wastes system call threads 2) adding O_NONBLOCK breaks some use cases.
POSIX doesn't define what O_NONBLOCK means for FIFOs, any improvement here is Linux-only.
You could perhaps argue for automatic O_NONBLOCK as long as it's the file flag is O_RDONLY. But to deal with fifos, you're making raw syscalls anyway to create one, etc. I'd be ready to call this an obscure enough an edge case that making the caller use syscalls and os.NewFile is not too much of a burden.


Blanck page on Raspberry Pi 4

Hi all,
I tried to use barecodebuddy on my raspberryPi 4.
I use docker-compose :
  1 version: '3'
  2 services:
  3   barcodebuddy:
  4     container_name: barecodebuddy
  5     image: "f0rc3/barcodebuddy-docker:arm32v7-latest"
  6     volumes:
  7       - /volumes/grocy/bbconfig:/config
  8     ports:
  9       - "8085:80"
 10       - "9443:443"

both http://pi.local:8085 and https://pi/local:9443 return a blank page.
http://pi.local:9443 return a 400 Bad Request from nginx, so nginx runs.
I don't know what to do in order to have the configuration page.
The log that the docker returns are :
barecodebuddy   | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
barecodebuddy   | [s6-init] ensuring user provided files have correct perms...exited 0.
barecodebuddy   | [fix-attrs.d] applying ownership & permissions fixes...
barecodebuddy   | [fix-attrs.d] done.
barecodebuddy   | [cont-init.d] executing container initialization scripts...
barecodebuddy   | [cont-init.d] 01-envfile: executing...
barecodebuddy   | [cont-init.d] 01-envfile: exited 0.
barecodebuddy   | [cont-init.d] 10-adduser: executing...
barecodebuddy   | usermod: no changes

And after the barecodeBuddy title :
barecodebuddy   | [cont-init.d] 10-adduser: exited 0.
barecodebuddy   | [cont-init.d] 10-migration: executing...
barecodebuddy   | [cont-init.d] 10-migration: exited 0.
barecodebuddy   | [cont-init.d] 20-config: executing...
barecodebuddy   | [cont-init.d] 20-config: exited 0.
barecodebuddy   | [cont-init.d] 30-keygen: executing...
barecodebuddy   | using keys found in /config/keys
barecodebuddy   | [cont-init.d] 30-keygen: exited 0.
barecodebuddy   | [cont-init.d] 50-config: executing...
barecodebuddy   | [cont-init.d] 50-config: exited 0.
barecodebuddy   | [cont-init.d] 60-savearguments: executing...
barecodebuddy   | [EnvParser] Parsing environment variables
barecodebuddy   | [EnvParser] ATTACH_BARCODESCANNER not set, disabling input grabber
barecodebuddy   | [cont-init.d] 60-savearguments: exited 0.
barecodebuddy   | [cont-init.d] 90-custom-folders: executing...
barecodebuddy   | [cont-init.d] 90-custom-folders: exited 0.
barecodebuddy   | [cont-init.d] 99-custom-files: executing...
barecodebuddy   | [custom-init] no custom files found exiting...
barecodebuddy   | [cont-init.d] 99-custom-files: exited 0.
barecodebuddy   | [cont-init.d] done.
barecodebuddy   | [services.d] starting services
barecodebuddy   | [services.d] done.
barecodebuddy   | [info] Starting socket server on <IP_ADDRESS>:47631

And after nothing else.
Thanks a lot,
Pierre.

Hi, thanks to help.
The two files are :
access.log
<IP_ADDRESS> - - [29/Aug/2021:10:22:47 +0000] "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15"
<IP_ADDRESS> - - [29/Aug/2021:10:22:52 +0000] "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15"

error.log
2021/08/29 10:22:47 [error] 4118#4118: *6 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: Argument 2 passed to GlobalConfig::convertCorrectType() must be an object, array given, called in /app/bbuddy/incl/configProcessing.inc.php on line 131 and defined in /app/bbuddy/incl/configProcessing.inc.php:143
Stack trace:
#0 /app/bbuddy/incl/configProcessing.inc.php(131): GlobalConfig::convertCorrectType('"GROCY_API_URL=...', Array)
#1 /app/bbuddy/incl/configProcessing.inc.php(110): GlobalConfig->loadConfig()
#2 /app/bbuddy/incl/configProcessing.inc.php(30): GlobalConfig->__construct()
#3 /app/bbuddy/index.php(20): require_once('/app/bbuddy/inc...')
#4 {main}
  thrown in /app/bbuddy/incl/configProcessing.inc.php on line 143" while reading response header from upstream, client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9000", host: "pi.local:8085"
2021/08/29 10:22:52 [error] 4118#4118: *6 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: Argument 2 passed to GlobalConfig::convertCorrectType() must be an object, array given, called in /app/bbuddy/incl/configProcessing.inc.php on line 131 and defined in /app/bbuddy/incl/configProcessing.inc.php:143
Stack trace:
#0 /app/bbuddy/incl/configProcessing.inc.php(131): GlobalConfig::convertCorrectType('"GROCY_API_URL=...', Array)
#1 /app/bbuddy/incl/configProcessing.inc.php(110): GlobalConfig->loadConfig()
#2 /app/bbuddy/incl/configProcessing.inc.php(30): GlobalConfig->__construct()
#3 /app/bbuddy/index.php(20): require_once('/app/bbuddy/inc...')
#4 {main}
  thrown in /app/bbuddy/incl/configProcessing.inc.php on line 143" while reading response header from upstream, client: <IP_ADDRESS>, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9000", host: "pi.local:8085"


Memory leak while deploying spring-cloud-netflix application on standalone tomcat

Tomcat fail to stop thread named ServoMonitorGetValueLimiter.
A thread called ServoMonitorGetValueLimiter started by the the application which is never stopped. This thread is started by  MonitorRegistryMetricPoller of com.netflix.servo . In fact service is failed to stop the thread. The object of this class is a component in ServoMetricCollector of org.springframework.cloud.netflix.servo to exposes servo metrics to the metric endpoint.
when application is undeployed it is unable to unregister the MBean also (com.netflix.servo)

Hehe this is some detective work! Sounds like something implicitly started with ribbon.

might not be important, but which version of feign?

Its ribbon-2.0-RC13

No need to post this multiple times: https://github.com/spring-cloud/spring-cloud-netflix/issues/491.

will look at this in spring-cloud

seems related to #187

Spring Cloud uses a CachingLBClientFactory


chore(deps): upgrade runtime dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-runtime-dependencies-2.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2151

Questions ?
Please refer to the Backport tool documentation


Set a button in card details

Hi, I found this fantastic library. I've integrated it today, but when I try to add a button in the contents of card, it's impossible to touch.
Is it possible to add a button in card details?
Thank you

You have to add it to your detailView.
And then manage it in the detailView's ViewController.
If you want to add it to the card itself instead, you have to pick CardHighlight or subclass another card.

I tried to add buttons in my detailView's but the click doesn't work. Seems that the new view controller are unattainable.
If you want to see what I mean what my project (Develop branch).
https://github.com/mo3bius/My-Simple-Instagram/tree/develop
There are some buttons in in details view but if tried to click on it nothing is happening.

Ok, got it. The problem was  that the detailViewController wasn't added as child of the card's presented vc.
I'll push a new release today.
Just use shoudPresent( :UIViewController, from :UIViewController )
instead of shoudPresent( :UIView, from :UIViewController )


[SPK] SPK documentation needs instructions on how to download a particular release

As a:
Developer
I want:
documentation for SPK download
So that:
I know where and how to download and use the tool
Describe the solution you'd like:
Update the documentation with download instructions
Describe alternatives you've considered:
Additional context:
Does this require updates to documentation?:
Yes

Duplicate of #702


[82967] Add E2E for filters on the OMZ tab

OpenVINO Deep Learning Workbench Pull Request
All Submissions:

[x] Create a meaningful name of the PR with reference to JIRA.
[x] JIRA tickets:

82967

[x] Set assignee to the PR.
[x] Add corresponding labels to the PR.
[x] Set appropriate milestone to the PR.
[x] Added tests for new functionality (unit / e2e)
[x] Followed code style guidelines:

Code covered with typings
No debug printing in production code
No commented blocks of code in production code

This PR is built upon openvinotoolkit/workbench#44.


Pug support

It would be really nice if this library supported Pug. Here is a Deno library for it.

I will add support in the coming days.

Hi,
the pug package is not working for me, see https://github.com/lumeland/pug/issues/5


DOM Snapshot after call render function

problem is in that I'm receive from api data with array of components names, which are defined async in plugin and after all data was received I'm calling render function which return from array of names - array of components, but in view source I can't see that html code, so it's means that snapshot was called before render function, so how I can do it?
<template>
  <page></page>
</template>

<script>
export default {
  components: {
    page: () => import('@/components/pageGenerator')
  }
};
</script>

pageGenertor.vue
<script>
import { getStoreSlugPage, getPageHeadTags } from '@/api/pages';
import { createComponent } from '@/utils/render-component';

export default {
  data() {
    return {
      tags: {},
      page: [],
      loaded: false
    };
  },
  async created() {
    let { storeUrl, urlSlug } = this.$route.params;
    if (urlSlug || storeUrl) {
      this.page = (await getStoreSlugPage(storeUrl, urlSlug)).data;
      this.tags = (await getPageHeadTags(storeUrl, urlSlug)).data;
    } else {
      this.page = [];
      this.tags = {};
    }
    this.loaded = true;
  },
  head() {
    return this.tags;
  },
  render(h) {
    if (this.loaded) {
      return createComponent(this.page, h);
    }
  }
};
</script>

createComponent.js
import _ from 'lodash';

export const createComponent = (dNode, h) => {
    if (_.isEmpty(dNode)) {
        return [];
    }
    const children = [];

    if (dNode && dNode.length > 0) {
        dNode.forEach(c => {
            if (_.isString(c)) {
                children.push(c);
            } else {
                children.push(createComponent(c, h));
            }
        });
    }
    if (!(dNode instanceof Array)) {
        return h(dNode.name, { props: dNode.props });
    }
    return h('div', children.length > 0 ? children : []);
};

This question is available on Nuxt community (#c8723)

I'm also having this issue.  Components which are dynamically rendered in Nuxt are not rendering HTML.


Adding DSS puppet module with 3.5.0 templates and hiera files

This p/r is to add DSS puppet module with 3.5.0 templates and hiera files with clustering and registry mounting.

Thanks for the contribution Thanuja! We have now merged this to the master branch.


[WIP]Add Organization Initialization for updating side chain rental fee

Add initialize controller about side chain rental
Modify unit test about side chain rental

:x: Build AElf <IP_ADDRESS>87 failed (commit https://github.com/AElfProject/AElf/commit/9c384730c8 by @jason-hoopox)

:white_check_mark: Build AElf <IP_ADDRESS>89 completed (commit https://github.com/AElfProject/AElf/commit/3b6bca1a85 by @llypb)

:x: Build AElf <IP_ADDRESS>91 failed (commit https://github.com/AElfProject/AElf/commit/a819eaddde by @llypb)

:x: Build AElf <IP_ADDRESS>98 failed (commit https://github.com/AElfProject/AElf/commit/58405aec66 by @llypb)

:x: Build AElf <IP_ADDRESS>01 failed (commit https://github.com/AElfProject/AElf/commit/0bf3468918 by @EanCuznaivy)


[8.x] Fix Filesystem type

Fix a forgotten import for the PostgresConnection.

No test coverage?

No test coverage?

Apparently not

Apparently not


Auto search on pressing Enter.

When writing in search textbox to find stations, the search process should start automatically on pressing Enter without having to click button.

Solved


MultiSelect disabled() is not "dynamic"

Package
filament/forms
Package Version
v2.15.20
Laravel Version
v9.25.1
Livewire Version
No response
PHP Version
PHP 8.1
Problem description
MultiSelect ->disabled() does not work as expected when a closure is passed to determine its disabled status.
Expected behaviour
The same behaviour as the non-multiple Select
Steps to reproduce
Create this form:
public static function form(Form $form): Form
{
    return $form
        ->columns(1)
        ->schema([
            Forms\Components\TextInput::make('name')
                ->reactive(),

            Forms\Components\MultiSelect::make('select With problem')
                ->options([
                    'a' => 'A',
                    'b' => 'B',
                ])
                // this DOESN'T work
                ->disabled(fn (callable $get) => strlen($get('name')) % 2),

            Forms\Components\Select::make('select ok')
                ->options([
                    'a' => 'A',
                    'b' => 'B',
                ])
                // this DOES
                ->disabled(fn (callable $get) => strlen($get('name')) % 2),
        ]);
}

go to the page and start typing in the name input. With an even number of chars types, both selects should be disabled, which is not happening.
This is (almost for sure) due to the wire:ignore on line 97 of the select.blade.php file ... but not sure how to fix it.
Reproduction repository
https://github.com/tiagof/filament-bug-reports/tree/bug/select-multiple-disabled-not-dynamic
Relevant log output
No response

Duplicate of https://github.com/filamentphp/filament/issues/3068 and https://github.com/filamentphp/filament/issues/3566.


Unable to enable Spectre mitigations and Asan at the same time

Setting VS_USE_SPECTRE_MITIGATION_RUNTIME switches the library include path to the 'spectre'-specific path. But there's no libraries in that path for the ASAN libraries, so enabling ASAN and VS_USE_SPECTRE_MITIGATION_RUNTIME fails. If the VS_USE_SPECTRE_MITIGATION_RUNTIME support were to add the 'spectre'-specific path before the default path, then the spectre libraries are preferred over the default libraries, and the ASAN libraries are still found.

Fixed by #73.


b2_weld_joint has GetFrequency() instead of GetStiffness()

Discord user "Ardjanusz" has posted the following on discord and was invited to post the issue on github. I post it myself as he doesn't seem to post the issue here.
I noticed something: b2_weld_joint.h, line 88 method still says GetFrequency and corresponding setter refers to Stiffness its not intentional right?
thx

Also MouseJoint.h and MouseJoint.cpp

#627


images do not appear in the project

When I thyed to import images, images do not appear in the project. I use linux gnome 2.

It looks like your browser is not support modern javascript extensions.
Could you check your browser console and reload the page completely?

Version of browser Google Chrome 72.0.3626.109

It is work in Firefox.

I think you need to update chrome to the latest version.


Mac app fails opening since last update

I use the mac client, and since last update I get this error. The app does open but it's impossible for me to see any windows. I can't open a new tab, and when I "show all windows" on mac for that app, it says none are available.

v2.1.9?

Yes, 2.1.9

When do you get the error? I just tested it and it works fine.

The error for me occurs on startup, but it does load the application after I click OK, it just doesnt show any windows.

Can you try an older version of Altair?

Another Mac issue I'm noticing, on 2.1.9 is this:

I don't know what happened, but it's completely borked. I've tried force-reloading, uninstalling and reinstalling the application, uninstalling then running sudo find / -iname "*altair*" -delete and reinstalling, but nothing fixes this.

@beardedeagle That issue seems to be related to some data corruption. Have you tried checking the error in the developer console? That usually gives a good pointer to what could be causing this.

I'd assume completely nuking everything from disk related to Altair would fix that. I did crack it open once but was critt'd with a wall of text of errors. I can reinstall and paste them here if you'd like.

Yes I would like that 🙂

I ended up having to return that mac to work due to issues. Might have been what caused it, but I will be unable to provide that data now as I now have a windows dell machine. Apologies.

@imolorhe I have this exact same issue. It just stopped working. Tried similar things related to reinstall and I got nothing.
Version 2.2.0 (<IP_ADDRESS>36)

OS: mac osx

@jsphweid Can you check the developer console for what error you are getting?


Remove file AgeMarginalPDFStatic.csv

File not used, unclear what's there or where it comes from.

Files reordered by commit cfd386a67c859148772f8037c7bf0f31c76e4352


Search Not Present in Replace Custom Course and Requirements Editing Modal

Search does not display any courses, so users have difficulty replacing their courses.

This might have to do with how search is styled to fit the size of the container which it is in. It might be trivially fixed by increasing the height of the modal.

Yeh this is my fault. The component needs to be in a flexbox so it can expand to fill the modal. I am making a fix right now.

I fixed the custom course search modal but have been trying to trigger the Requirements editing Modal in the UI not sure where the button is.

Nvm found it, made a PR.


gisaid/genbank file prep sequences

Summary:

What: add prefix to sampe ids depending on public repository name
Ticket: sc209564
Env: <rdev link>

Demos:
Notes:
Checklist:

[x] I merged latest trunk
[x] I manually verified the change
[x] I added labels to my PR
[ ] I tested in multiple browsers
[ ] I added relevant unit tests
[ ] I have notified others of changes they need to make locally (migrations, jobs, package updates, etc)

thanks for updating the cli @jgadling


Formatting for readability

Howdy! Unfortunately, this breaks the format of the accordions we have in place (so those extra paragraphs are always visible and not minimized).

Thanks for the bolding though! I'll merge that portion.


patch ripgrep ignore

Been seeing this for month+ and ignore hasnt moved yet.
rustfmt broken https://github.com/crossbeam-rs/crossbeam/issues/435, need rustfmt to update crossbeam-channel to  0.4
"Unfortunately it seems that ignore is pinned on crossbeam-channel v0.3.6 which in turn has a ^v0.6.5 dependency on crossbeam-utils, basically preventing updating either"
We dont need to merge this until we need to regenerate or release, maybe by then theyll have bumped that dep finally.

We dont need to merge this until we need to regenerate or release, maybe by then theyll have bumped that dep finally.

Sorry I just jumped and merge this. But I think it's ok to merge, we can revert after the dep got bumped later.


Stage-out improvements

Stage-out improvements
In working with ASIPS, we've identified a few changes that will make stage-out more user friendly
Acceptance Criteria

Single catalog for granules in multiple collections
Not relying on the key in assets e.g. users do not need to use filename as keys
Value for result_path_prefx should default to stage_out. Currently, it defaults to empty string at the CWL level which UDS stage out does not replace with stage_out.
Stage-out validates catalog
Add INFO logging for each uploaded file

Work Tickets
Link to work tickets required to implement the epic

[ ] https://github.com/unity-sds/unity-data-services/issues/432
[ ] https://github.com/unity-sds/unity-data-services/issues/433
[ ] https://github.com/unity-sds/unity-data-services/issues/434
[ ] https://github.com/unity-sds/unity-data-services/issues/435
[ ] https://github.com/unity-sds/unity-data-services/issues/436

Dependencies
Other epics or outside tickets required for this to work

[ ] TBC

Associated Risks
links to risk issues associated with this epic

[ ] TBC

Done and released in v9.1.0 https://github.com/unity-sds/unity-data-services/releases/tag/v9.1.0


Replace zio-grpc-core with release version

Hi, I noticed that shardcake references a snapshot version of zio-grpc-core on https://github.com/devsisters/shardcake/blob/series/2.x/build.sbt#L6
I'm curious as to what the reason for this is, as snapshot versions are less convenient for regular sbt dependency imports. AFAIK zio-grpc-core already has a release version 0.6 that supports both scala 3/2.13/2.12, see maven repository

Thank you for your reply, I would be happy to do this work if allowed, we've recently been working on a plan to replace akka-cluster-sharding with Shardcake

Sure, thank you!

Closed by https://github.com/devsisters/shardcake/pull/15


Launchd documentation for action runners

Feature Description
I recently had to go through the process of configuring self hosted runner on linux and mac and figured you could maybe incorporate the launchd configuration file into the runner docs.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.gitea.act_runner</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/local/bin/act_runner</string>
        <string>daemon</string>
        <string>--config</string>
        <string>/etc/act_runner/config.yaml</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <true/>
    <key>WorkingDirectory</key>
    <string>/var/lib/act_runner</string>
    <key>StandardOutPath</key>
    <string>/var/lib/act_runner/act_runner.log</string>
    <key>StandardErrorPath</key>
    <string>/var/lib/act_runner/act_runner.err</string>
    <key>EnvironmentVariables</key>
    <dict>
        <key>PATH</key>
        <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
    </dict>
    <key>UserName</key>
    <string>act_runner</string>
</dict>
</plist>

And the command to load the daemon is:
launchctl load /Library/LaunchAgents/com.oscar.act_runner.plist

Screenshots
No response

Please send it to https://gitea.com/gitea/docs

Awesome, thanks so much!!


Printout entire error trace when unhandledRejection was caught

Fixes #360

Coverage decreased (-0.8%) to 55.746% when pulling db4d421985ea1be848a09c7c3d9cb18ceaf766a3 on xinbenlv:patch-2 into e7a305942d2f796fa83c13ef8a905ccd8f490cbe on Chatie:master.

Thanks!


Update ldap docs to reflect that ldap backend now works for initial realm creation.

Closes #9576.
I tested on a new production installation, where I configured LDAP, made it the only enabled backend and went through the inital realm creation process - everything seemed to work fine, so I think the issue should be considered fixed.
First realm creation now works fine with the LDAP backend, so that part
of the docs is unnecessary and just complicates the setup process, so it
seems best to just remove it.

Merged, after two tweaks:

Restored that first item with text matching what we wrote for SAML; it's a helpful reminder that you want to do the installation process first.
Changed all the numbers to 1; markdown will automatically do the numbering for us.

Thanks @mateuszmandera!


Bug with KVO in SLKTextInputBar

You're comparing the old and new value here in the KVO callback https://github.com/slackhq/SlackTextViewController/blob/master/Source/SLKTextInputbar.m#L710
but when you register for KVO, you're including just NSKeyValueObservingOptionNew, so the old change is nil, and the block inside the if fires everytime.
This PR fixes that

@dzenbot The send button was being misaligned because of this for some reason when I tough and hold the left button. This fix fixes that

I'm not sure why the travis build failed. I didn't even touch the file it's failing on

Is there a problem with the PR?


Add marco to unaffected_...

Coverage remained the same at 47.364% when pulling 3b166069a27cf6f1b56d8576382faaec809c01e2 on calixteman:add_marco into 743af17cf724e5dbaeb4800cbf833f551fd8403b on mozilla:master.


Unable to install Send Abandoned Cart Reminders with SendGrid

I've tried to install "Send Abandoned Cart Reminders with SendGrid" Firebase extension but its throwing error.

But already I've created an App engine in Google Cloud console.

@philnash Can you please provide solution for this?

@philnash Can you please provide solution for this?

Hi @webdeveloper143,
I'm afraid I no longer work at Twilio and I'm no longer part of this project. I don't know who is in charge of the project any more, sorry.


Tests hang when running

I have a test like this:
test('renders without crashing', () => {
  // const div = document.createElement('div');
  // ReactDOM.render(<App />, div);
  expect(true).toBe(true)
});

when I run it, with npm t it hangs. here is the output
→ npm t --loglevel=silly
npm info it worked if it ends with ok
npm verb cli [ '/usr/local/Cellar/node/6.6.0/bin/node',
npm verb cli   '/usr/local/bin/npm',
npm verb cli   't',
npm verb cli   '--loglevel=silly' ]
npm info using<EMAIL_ADDRESS>npm info using<EMAIL_ADDRESS>npm verb run-script [ 'pretest', 'test', 'posttest' ]
npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm sill lifecycle<EMAIL_ADDRESS>no script for pretest, continuing
npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>
><EMAIL_ADDRESS>test /Users/luizeduardo/js_dev/reg-dashboard
> react-scripts test --env=jsdom

I'm running macOS Sierra with.
I can reproduce it with a new app as well.
the react-scripts:
→ npm ls react-scripts
<EMAIL_ADDRESS>/Users/luizeduardo/js_dev/reg-dashboard
├──<EMAIL_ADDRESS>``

By "hangs" do you mean that interactive watcher never appears?

As mentioned in https://github.com/facebook/jest/issues/1767#issuecomment-248883102, can you try running
brew install watchman

?

@gaearon yes, as the log above, I see > react-scripts test --env=jsdom as the last output, and nothing else happens. I tried edit the test files, change the __tests__ folder location, or have just one simple test like expect(true).toBe(true)
I do have watchmen installed, btw.

I meant to run this command to update it to 4.7.0 (as explained in https://github.com/facebook/jest/issues/1767#issuecomment-248883102)

I do have watchmen 4.7.0 installed

I see. Can you reproduce this on any other computer (with or without Sierra)?

I think it would be best if you shared your report in https://github.com/facebook/jest/issues/1767 to provide more context around this issue.

It’s also worth trying to uninstall watchmen and seeing if that fixes the issue.

uninstall watchman fixed!

Can you try to install it again now and see if the problem persists?
If it does, please also try suggestions in https://github.com/facebook/jest/issues/1767#issuecomment-249198458 and let us know if either worked.

Just did, yes, the problem persists if I reinstall.

Does doing this help?
launchctl unload ~/Library/LaunchAgents/com.github.facebook.watchman.plist
watchman version

(and then run tests)

Another workaround worth trying is to delete /usr/local/var/run/watchman/ and try again.

Closing as this is a problem with watchman, and can’t be resolved here. Uninstalling watchman is a reasonable workaround in the meantime.

Hey, sorry for the delay.
No, unload didn't worked for me, anyway.
Thanks!

I’d appreciate if you could report this upstream to Jest or watchman.

I ran into this and it took me a while to find this issue. --> Can we mention this in the docs somewhere?

Sure, a PR to the User Guide with troubleshooting steps would be welcome.

A few other reported ways to fix it:

https://github.com/facebookincubator/create-react-app/issues/991#issuecomment-260610521
Whole thread in https://github.com/facebook/jest/issues/1767


Spectator View: Full Screen vs. Display Scaling settings

Issue: When we use high res monitors, clicking 'full screen' on spectator view compositor UI will result in showing only top left part of the whole screen. Even set it to 1080p in the fields on the right does not help. Sometimes the video becomes frozen.
Cause: Unity Editor is not display scaling aware. High res monitors and projectors are set to 150%~225% (4K) automatically in Windows 10.
Workaround: Set display scale to 100%.
Fix: Is it possible to change 'full screen' function to bypass the scaling?

Issue is based on how Unity interprets their various window options.
Most important option for this window is to not have the title bar.
Updated the popup window to a dropdown window which seems to respect Window's DPI.
Tradeoff is that this window does not cover the Windows task bar, but you can hide the task bar in its properties window.


Fixed Resource Warnings

While running the unit tests, Python was showing several Resource Warnings. This was due to opening fonts, background images, images etc. without closing the files afterwards or closing them a lot later:
ResourceWarning: unclosed file <_io.BufferedReader name='E:\\TEMP\\xhtml2pdf\\git\\tests\\samples\\img\\denker-transparent.png'> [css.py:378]
ResourceWarning: unclosed file <_io.BufferedReader name='E:\\TEMP\\xhtml2pdf\\git\\tests\\samples\\img\\denker-transparent.png'> [parser.py:687]
ResourceWarning: unclosed file <_io.BufferedReader name='E:\\TEMP\\xhtml2pdf\\git\\tests\\samples\\img\\denker.png'> [parser.py:687]
ResourceWarning: unclosed file <_io.BufferedReader name='E:\\TEMP\\xhtml2pdf\\git\\tests\\samples\\font\\Arabic_font\\MarkaziText-Regular.ttf'> [cssParser.py:851]
ResourceWarning: unclosed file <_io.BufferedReader name='E:\\TEMP\\xhtml2pdf\\git\\tests\\samples\\font\\Arabic_font\\MarkaziText-Medium.ttf'> [cssParser.py:851]
ResourceWarning: unclosed file <_io.BufferedReader name='E:\\TEMP\\xhtml2pdf\\git\\tests\\samples\\font\\Arabic_font\\MarkaziText-Bold.ttf'> [cssParser.py:851]
ResourceWarning: unclosed file <_io.BufferedReader name='E:\\TEMP\\xhtml2pdf\\git\\tests\\samples\\font\\Arabic_font\\MarkaziText-SemiBold.ttf'> [cssParser.py:851]
ResourceWarning: unclosed file <_io.BufferedReader name='E:\\TEMP\\xhtml2pdf\\git\\tests\\samples\\font\\Arabic_font\\MarkaziText-VariableFont_wght.ttf'> [cssParser.py:851]
ResourceWarning: unclosed file <_io.BufferedReader name='E:\\TEMP\\xhtml2pdf\\git\\tests\\samples\\font\\Noto_Sans\\NotoSans-Regular.ttf'> [cssParser.py:851]
ResourceWarning: unclosed file <_io.BufferedReader name='E:\\TEMP\\xhtml2pdf\\git\\tests\\samples\\font\\Noto_Sans\\NotoSans-Bold.ttf'> [cssParser.py:851]
ResourceWarning: unclosed file <_io.BufferedReader name='E:\\TEMP\\xhtml2pdf\\git\\tests\\samples\\font\\Noto_Sans\\NotoSans-Italic.ttf'> [cssParser.py:851]
ResourceWarning: unclosed file <_io.BufferedReader name='E:\\TEMP\\xhtml2pdf\\git\\tests\\samples\\font\\Noto_Sans\\NotoSans-BoldItalic.ttf'> [cssParser.py:851]

Ran 161 tests in 1.858s

OK

This PR fixes this problem. Files are now opened in a context manager (with-statement), which makes sure that they'll be closed automatically later.
Sometimes files were opened, transferred through several functions and then the content was read a lot later. So I've changed it and now the content is read at first and then the content is transferred instead of the opened file.
We're not testing for memory usage, but this should reduce the memory usage of xhtml2pdf at least a bit.

Coverage increased (+0.03%) to 59.74% when pulling 23f0b2ca84b350965eda4fd13ede47bd5a2652c2 on fbernhart:Resource_Warning into 5ec9d1a29be8d9fcbdd553b26441298172b92a32 on xhtml2pdf:master.

Coverage increased (+0.03%) to 59.74% when pulling 23f0b2ca84b350965eda4fd13ede47bd5a2652c2 on fbernhart:Resource_Warning into 5ec9d1a29be8d9fcbdd553b26441298172b92a32 on xhtml2pdf:master.

When can we expect a release with this fix?


knightos-mktiupgrade: init at 1.1.6

Motivation for this change
Add knightos-mktiupgrade
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Pinging @danieldk who approved KnightOS packages previously.

I have pushed an update to remove arguments that are now unneeded (libxslt, docbook_xsl). Let's see if ofborg is happy now.


Error in Space/getTemplate ?

Hi,
I just wanted to implement some small ideas with Matlab, and it occurred to me that I could test parts of them right away with siibra.
I tested some lines from the following example and got two different error messages.
% taken from 02_access_brain_reference_templates.mlx
siibra = Siibra();
human_atlas = siibra.Atlases.Atlas(1);
mni_asym = human_atlas.Spaces.Space(1);
mni_asym_template = mni_asym.getTemplate();

First time I tested the code:
Error using websave (line 104)
Unable to open output file: 'template_cache/MNI152 2009c nonl asym.nii' for writing. Common reasons
include that the file exists and does not have write permission or the folder does not have write
permissions.

Error in Space/getTemplate (line 29)
                websave(cached_path, obj.TemplateURL, options);

Second time I tested the code:
>> mni_asym_template = mni_asym.getTemplate();
Error using websave (line 98)
The connection to URL
'https://siibra-api-latest.apps-dev.hbp.eu/v1_0/atlases/juelich%2Fiav%2Fatlas%2Fv1.0.0%2F1/spaces/minds%2Fcore%2Freferencespace%2Fv1.0.0%2Fdafcffc5-4826-4bf1-8ff6-46b8a31ff8e2/templates'
timed out after 30.000 seconds. The reason is "Waiting for response header". Perhaps the server is
not responding or weboptions.Timeout needs to be set to a higher value.

Error in Space/getTemplate (line 29)
                websave(cached_path, obj.TemplateURL, options);_

Have I missed any settings? In the siibra/templates folder there is already the MNI152 template, can it be that the download collides with it?
best regards
Sebastian

With the new update, your code becomes
mni152space = siibra.getSpace("MNI152 2009c nonl asym")
mni152tpl = mni152space.getTemplate()

But the error persists, it is due to the missing subfolder in the cache directory. This is thus directly related to #11

Duplicate of #11


mystery code about IoU calculate ?

in chainercv/chainercv/utils/bbox/bbox_iou.py
the below code is very hard to understand, Could you explain to me about how exactly this code works?
    if bbox_a.shape[1] != 4 or bbox_b.shape[1] != 4:
        raise IndexError
    xp = cuda.get_array_module(bbox_a)

    # top left
    tl = xp.maximum(bbox_a[:, None, :2], bbox_b[:, :2])
    # bottom right
    br = xp.minimum(bbox_a[:, None, 2:], bbox_b[:, 2:])

    area_i = xp.prod(br - tl, axis=2) * (tl < br).all(axis=2)
    area_a = xp.prod(bbox_a[:, 2:] - bbox_a[:, :2], axis=1)
    area_b = xp.prod(bbox_b[:, 2:] - bbox_b[:, :2], axis=1)
    return area_i / (area_a[:, None] + area_b - area_i)```

It calculates intersection over union between bounding boxes in bbox_a and bbox_b.
The formula to calculate IoU from a pair of bounding boxes can be found in the link below.
https://en.wikipedia.org/wiki/Jaccard_index
Perhaps, this is a little bit difficult to understand in the first hand because the code processes IoUs between collections of bounding boxes.

A little bit? I must say you are really very powerful numpy user. very impressive code

how to use numpy like you？ do you have any learning numpy suggestion？

Thanks. This was a work by @Hakuyume .
It is always better to start from easy code and optimize it later.
If you have any more questions, please re-open this.


g-image component doesn't work with svg as expected

When using g-image with svg, blurred inlined image not found. You can see. But when loaded it's allright.
Are there any advantages of using svg with g-image or we can just use usual img tag for svg?

It's better to just normal  for SVGs :) If it's a small SVG I recommend to just add it inline.

I have a SVG reference in my markdown file, but gridsome is automatically trying to do the lazy loading on it, which is broken (I get a broken image in chrome). Can there be an option to disable g-image for SVGs in markdown (or just disable it by default?).
Thanks

You can use immediate="true"


Spyder stand-alone installer update process improvements & bugs

Updating stand-alone Spyder in Windows leaves a lot to be improved. Having just updated from 5.2.1 to 5.2.2 I have the following bug report and suggestions.
Suggestion 1: Updates should be handled internally in Spyder and not require the user to download and execute the new version's .exe file (i.e. Spyder should launch an "updater" process to do the work behind the scenes).
Bug: when attempting to install an updated version, the installer recognises that a previous version of Spyder is installed and says this will need to be removed. OK (though see suggestion 2). After clicking "Yes" to remove the existing version, the installer removes the old version of Spyder but then finishes on a screen where the only option is to "Close" the installer. The installer does not install the latest version. The user has to the restart the installer for it to install the new version of Spyder.
Suggestion 2: fully uninstalling the previous version is a bit of an annoyance. It removes things like shortcuts and just seems like a bit of a waste of time/resource - as presumably not everything needs to be deleted and recreated. Could the installer actually act as an updater and only modify files that need to be updated?

Hey @Caseyb87, thanks for reporting. We are aware of these limitations and right now we're looking for funding to improve precisely the shortcomings you mentioned above.

Yes, just throwing in my 2 cents that this is a really needed feature. Best of luck securing the funding!


Theming: Select

Subject
Select
Description
Create a basic theming documentation for the Select component that showcases how you can style it.
Theming file: Select theming file
Template Reference
For single part components, feel free to use the Button component theming doc as a template reference: Button theming.
For multipart components, feel free to use the Input component theming doc as a template reference: Input theming.

I will be taking this  🚀🚀


undefined: termui.PollEvent

I am trying to build termui on Debian and getting the following error:
src/github.com/gizak/termui/test/log_events.go:23:10: undefined: termui.PollEvent

dh_auto_build: cd obj-x86_64-linux-gnu && go install -gcflags=all=\"-trimpath=/home/utkarsh2102/packaging/something/termui/obj-x86_64-linux-gnu/src\" -asmflags=all=\"-trimpath=/home/utkarsh2102/packaging/something/termui/obj-x86_64-linux-gnu/src\" -v -p 4 github.com/gizak/termui github.com/gizak/termui/test returned exit code 2
make: *** [debian/rules:7: build] Error 2

Should be good now, thanks for pointing it out.

Great, thanks for resolving! :D
Although, there's another build failure, mentioned in #204.


Implement java.util.regex

That's a useful Java API and it would be relatively easy to (partially) implement it with core JavaScript APIs: https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions

I think from now it is a full funcionally feature :)


FizzBuzz basic implementation using JAVA

Basic code for Fizz Buzz added in java programming language

Thank you for your PR!
Unfortunately a solution similar to yours has already been submitted :/
The goal is to find creative/abstract new solutions to FizzBuzz.
See The top 5 samples here.
Thanks anyway! :)


Is there a way to tell if the site contains porn/gambling material?

I don't want to show a preview for any site that is pornographic or gambling related (or anything else that would be inappropriate). Is there a way to check for those categories using this repository?

Not yet.

Okay. I will let you know if I find anything about that. By the way, should this be run on a background thread?

What should be?! SLP or filtering?


Option to fill DataSet directly from result

Hi,
Is there any option to directly fill a DataSet object with the results of the query or simply produce a DataTable result from the execution of a Stored Procedure using Oracle? Thanks in advance for the help.

Also, how do define parameter as SYS_REFCURSOR while executing

The CreateDataAdapter method of an instance of DbAccess class provides this option. For example:
    using (DbAccess dbAccess = DbPackage.CreateConnection())
    {
        DbDataAdapter dataAdapter = dbAccess.CreateDataAdapter("YOUR_SCHEMA.YOUR_PACKAGE.YOUR_PROCEDURE",
            parameters =>
                    {
                        parameters.Add("inDate", DateTime.Today);
                        parameters.Add("inId", 300000);
                    },
            6   /* Number of result sets */);

        DataSet dataSet = new DataSet();

        dataAdapter.Fill(dataSet);

    }

It is not necessary to explicitly specified SYS_REFCURSOR output parameter(s) if they are positioned in the end. For above example, 6 output SYS_REFCURSOR parameters are defined in database side stored procedure, in the C# side you just need to specify the 6 (..., int oraResultSets). The library will add those OracleDbType.RefCursor type output OracleParameter behind the scene. Of course, if you want to explicitly every RefCursor OracleParameter inside parameters =>{ ... } by yourself, that would work too.
After dataAdapter.Fill(dataSet); step, dataSet will contain 6 DataTables in its DataSet.Tables Property, each DataTable corresponds to a SYS_REFCURSOR.

Hi,
Thanks for you help. I have another question. How can i handle blob inserts without using StoredProcedureRequest and using only the basic ExecuteNonQuery method. That's because my stored procedure has some output parameters in the signature, and i need those return values. Thanks in advance for your help.

Actually using the ExecuteStoredProcedure method, you can still get the output parameters from its return StoredProcedureResponse.OutputParameters property.
For example, if your stored procedure has two  output parameters OUTP1 (PLS_INTEGER) and OUTP2 (DATE), in client side they can be extracted like this:
    ...
    var ret = dbAccess.ExecuteStoredProcedure(spRequest);
    int outP1 = ret.OutputParameters.Property<int>("OUTP1");
    DateTime outP2 = ret.OutputParameters.Property<DateTime>("OUTP2");

Of course you can use the basic ExecuteNonQuery method if you like to write more code and prepare all the parameters' declaration in your client side. Let's discuss it further if you really need this option.

How should i bind a Blob input parameter using ExecuteNonQuery method?
Because i can't find a way to bind it using the DbParameterBuilder.

Following example shows the ExecuteNonQuery method option:

...
DbParameter out_P1, out_P2;

dbAccess.ExecuteNonQuery("YOUR_SCHEMA.YOUR_PACKAGE.WRITE_BLOB_DATA",
    parameters =>
        {
            parameters.Add("IN_ID", 108);
            parameters.Add("IN_NAME", "demo1.pdf");
            parameters.Add().SetName("IN_BIN").AsOracleParameter().SetOracleType(OracleDbType.Blob).Value = blob;
            out_P1 = parameters.AddOutput("OUT_P1", DbType.Int32);
            out_P2 = parameters.AddOutput("OUT_P1", DbType.DateTime);
        });

int outP1 = out_P1.Value;
DateTime outP2 = out_P2.Value;

-vs-

For the ExecuteStoredProcedure method option, I just updated my previous reply, please see it for more detail.

thanks for all. I'm going to test it all out. Any issues i'll let you know.

Sorry, i have a new question regarding on how to execute a function that returns a scalar value. How can this be achieved using DataBooster? Thanks in advance for your help.


Setting padding doesn't work right

If i set paddingBottom at 48dp for example, and set the height to 104dp (56dp + 48dp), it just squeezes everything to the top and then cuts it.
In this screenshot the actions should just appear as usual above the navbar.

Can you check the develop's branch sample and see if this commit fixed it for you? https://github.com/rubensousa/FloatingToolbar/commit/8d697b158aa5b8b14c036d9617d5646900c50295
Thanks :)

Yup, that fixed it.
Thanks!

When can I expect a new version on master?

You can expect an update today :)

1.3.1 released


Fix exception thrown due to looking for reset! method on wrong object

Hey all. Been using Watir for about a year, first time contributor. Found an exception lurking here and I think this is the fix.
I have this overridden in my local codebase for now. Seems to be working. Tests are passing.
Let me know if you'd like a unit test for this?

Whoops, yup, I did the wrong thing when implementing the new logic for #wait_while_present. Thanks for catching it and fixing it!

👍 Thank you, sir, for such a fine ruby gem! Been thoroughly impressed with it.

Glad you're getting good use from it. We have a somewhat active Slack channel if you want to participate in any of the conversations / coding discussions. (join the #Watir channel from Selenium Slack: http://seleniumhq.herokuapp.com/)