text:
Import statements fixed in example

This tiny PR fixes #82
Description of changes
import statements fixed
Possible influences of this PR.
The example shouldn't throw ModuleNotFound exception anymore.

@hunterhector Is a fix for this typing issue in progress? Or do you want me to pick it? Because there are more changes coming in to Forte-wrappers related to the ontology namespace consistency.

@hunterhector Is a fix for this typing issue in progress? Or do you want me to pick it? Because there are more changes coming in to Forte-wrappers related to the ontology namespace consistency.

We don't have anything in progress for forte-wrapper now, you probably need to study this.

Updates on this. We have updated the texar-pytorch side with numpy typings. But now the new numpy versions causes a few typing errors in this repo that need to be fixed too.

Thanks for the information. I don't feel this is a priority change. We can wait till the fix is out, I will re-request a review, once it passes all the checks.

repo: asyml/forte-wrappers


text:
How to fix borrowed data escapes outside of closure [E0521] error

I tried to use a struct with a lifetime in the dynamic schema, but the following error occurred:
`ctx` escapes the closure body here
argument requires that `'1` must outlive `'static`

how to fix this error?
codes:
all code is here
structs:
// part of another lib
struct Outer {
    string: String,
}

struct Inner<'a> {
    pub string_ref: &'a str,
}

impl Outer {
    fn get_inner(&self) -> Inner {
        Inner {
            string_ref: &self.string,
        }
    }
}

// schema structs
struct Query {
    pub outer: Outer,
}

struct Foo<'a> {
    pub inner: Inner<'a>,
}

impl Query {
    fn foo(&self) -> Foo {
        Foo {
            inner: self.outer.get_inner(),
        }
    }
}

impl<'a> Foo<'a> {
    fn value(&self) -> String {
        self.inner.string_ref.to_string()
    }
}

schema definition:
pub fn create_schema() -> Schema {
    // query
    let query = Object::new("Query");
    let foo_field = Field::new("foo", TypeRef::named_nn("Foo"), |ctx| {
        FieldFuture::new(async move {
            let query = ctx.parent_value.downcast_ref::<Query>().unwrap();
            let foo = query.foo(); // <--------------------------------------- error is here
            Ok(Some(FieldValue::owned_any(foo)))
        })
    });
    let query = query.field(foo_field);
    // foo
    let foo_object = Object::new("Foo");
    let value_field = Field::new("value", TypeRef::named_nn(TypeRef::STRING), |ctx| {
        FieldFuture::new(async move {
            let foo = ctx.parent_value.downcast_ref::<Foo>().unwrap();
            let string = foo.value();
            Ok(Some(Value::from(string)))
        })
    });
    let foo_object = foo_object.field(value_field);
    // schema

    let schema = Schema::build(query.type_name(), None, None);
    let schema = schema.register(query).register(foo_object);
    schema.finish().unwrap()
}

error:
   |
48 |     let foo_field = Field::new("foo", TypeRef::named_nn("Foo"), |ctx| {
   |                                                                  ---
   |                                                                  |
   |                                                                  `ctx` is a reference that is only valid in the closure body
   |                                                                  has type `async_graphql::dynamic::ResolverContext<'1>`
...
51 |             let foo = query.foo();
   |                       ^^^^^^^^^^^
   |                       |
   |                       `ctx` escapes the closure body here
   |                       argument requires that `'1` must outlive `'static`

I found a workaround with ouroboros, but I still hope a better way exits
// schema structs
struct Query {
    pub outer: Arc<Outer>,
}

#[self_referencing]
struct Foo {
    outer: Arc<Outer>,
    #[borrows(outer)]
    #[covariant]
    pub inner: Inner<'this>,
}

impl Query {
    fn foo(&self) -> Foo {
        (FooBuilder {
            outer: self.outer.clone(),
            inner_builder: |outer| outer.get_inner(),
        })
        .build()
    }
}

impl Foo {
    fn value(&self) -> String {
        self.borrow_inner().string_ref.to_string()
    }
}

source: gharchive/issue

repo: async-graphql/async-graphql

license_type: permissive

license_source: github-api


text:
unix sockets don't work since the 0.99.6 release

Expected behaviour:
loop
connected
loop

Actual behaviour:
loop

server.rs
use async_std::prelude::*;
use async_std::os::unix::net::UnixListener;
use async_std::task;

async fn run() {
    let socket = UnixListener::bind("/tmp/test.sock").await.expect("bind");
    let mut incoming = socket.incoming();
    loop {
        println!("loop");
        if let Some(stream) = incoming.next().await {
            println!("connected");
        }
    }
}

fn main() {
    task::block_on(run());
}

client.rs
use async_std::task;
use async_std::prelude::*;
use async_std::os::unix::net::UnixStream;

async fn run() {
    let mut socket = UnixStream::connect("/tmp/test.sock").await.expect("connect");
    socket.write_all(b"hello world").await.expect("write");
    socket.flush().await.expect("flush");
}

fn main() {
    task::block_on(run());
}

Git bisect points to d25dae54191c8a922410cd2e3ca39e631d28982b

Hey @stjepang, @yoshuawuyts I hope you don't mind me taking a stab at this.
I've debugged this issue (thanks @dvc94ch for the code that reproduces it), and I think I've found the cause of the bug, but my solution for it is short and hacky, so I need some guidance from you guys. I'll send a PR so you can take a look.
Also, I would like to add a bigger integration test that would cover this issue for the future, if you are okay with that.

authors: dvc94ch mvucenovic zvkemp

repo: async-rs/async-std


text:
Show how to change the generated indentation type and size

What to solve
Sometimes the data models that are generated, should be part of some bigger code that is inlined differently. Therefore, the default indentation is no longer sufficient.
This can be done by changing the indentation options, by providing custom values.
Use the following code in the example:
generator = new TypeScriptGenerator({
  indentation: {
    type: 'TABS',
    size: 4
  }
});

Duplicate the folder https://github.com/asyncapi/modelina/tree/master/examples/TEMPLATE and rename it to changing-indentation-type-and-size. Update any relevant documentation.

Some folks want more specific tasks to complete, or use this if you get stuck - CLICK ME

This issue is specially designed for first-time contributors, that want to contribute their very first code. If you are accustomed to how to solve issues in AsyncAPI, you can skip some of the steps.
What to know before getting started
Before actually getting started with solving the issue, there are a few things that need to be set up:

Make sure you familiarize yourself with our code-of-conduct and contributor guidelines
We work on forks of repositories and branches in forks, if you are unsure how to set this up you can follow the guide on our git-workflow setup.

Feel free to reach out either here in the issue, or on slack under #tooling if you have any questions or are stuck, we will gladly help.
Getting started
This is a task list, that you copy into your PR description to ensure everything is included, this list walks you through each step as to how to solve this issue. It assumes that you have already set up your fork and branch and are ready to commit code.

[ ] Duplicate the folder https://github.com/asyncapi/modelina/tree/master/examples/TEMPLATE and rename it to changing-indentation-type-and-size. This will give you a good base to start out with.
[ ] Adapt the documentation about the feature and ensure the example are linked correctly.

The docs that need to change are the following: docs/advanced.md#change-the-generated-indentation-type-and-size
The documentation must reference an actual example that is tested and contain no code itself. It is because the docs will inevitably become desynchronized and display incorrect code.

[ ] Adapt the examples overview to include your new example.
[ ] Now it is time to adapt the test code (in examples/changing-indentation-type-and-size/index.spec.ts) and the implementation (in examples/changing-indentation-type-and-size/index.ts).
[ ] Make sure that the test succeeds, by standing in the new example folder and execute npm run test.
[ ] Make sure that there are no linting errors, by standing in the root folder and execute npm run lint.
[ ] Create your PR, by selecting your branch that should be merged with the master branch - https://github.com/asyncapi/modelina/compare
[ ] It is good practice to double-check your PR before requesting a review from someone else, the same way you read an assignment before handing it in.

Do you have any examples I can check for reference?
We have currently 4 example documentations that you can look for guidance on how to achieve the desired output:

How to add logging to the library
Generate models from AsyncAPI documents
Generate models from JSON Schema draft 7 documents
Generate an interface instead of class

Happy Hacktoberfest, everyone! ✨✨ Feel free to reach out to me for any questions you may have about adding documentation on these open issues. 🙂
Tag me in your AsyncAPI Doc PRs 📄, my GitHub handle is /alequetzalli 🐙.

authors: alequetzalli jonaslagoni

repo: asyncapi/modelina


text:
Favicon Image for Main Website

Reason/Context

Favicon Image is the first impression really when it comes to representation of the project

Description

Want to add the favicon image of async API and not the boring web logo
I know this will not be a gigantic contribution of the sort but this minor minor things do play a role in aesthetical beauty ig

I agree this should be done. @magicmatatjahu already started it https://github.com/asyncapi/website/pull/140 but we kinda "blocked" it to wait for a designer, but it is taking too long and tbh we should just go forward with what we have. @fmvilas I would say we make a change and then improve once at some point of time we have some designer working with AsyncAPI

Hey @derberg can you please have a look here

Yeah, you're right @derberg. Let's unblock it.

@magicmatatjahu do you want to continue with your old PR or you want @Mayank-MP05 to take over?

@derberg If someone from community wants handle it, feel free @Mayank-MP05 to do that :) Maybe my PR https://github.com/asyncapi/website/pull/140 will help you.

@Mayank-MP05 so what is your take on it, do you want to continue what Maciej started?

yeah I guess Maciej quality of work is way superior than mine one😅

@Mayank-MP05 I don't think @magicmatatjahu will find time to continue his work anytime soon, so feel free to pick up stuff from him PR and drive it forward

@Mayank-MP05 Yeap, exactly what @derberg wrote, pick up my PR :) If you will need some help, please write.

Ok will handle it, a lot of people ask for it, so I will resume my old PR.

authors: Mayank-MP05 derberg fmvilas magicmatatjahu

repo: asyncapi/website


text:
v3 specification reference section not loading

I noticed after the website migration that when I try to load the following path locally: http://localhost:3000/docs/reference/specification/v3.0.0`, it keeps throwing an error, as seen below.

cc @akshatnema

@AceTheCreator it is working inside production websute. Kind off weird 😅
https://www.asyncapi.com/docs/reference/specification/v3.0.0

Yea, that's why i'm surprised 😅

@AceTheCreator start the production server in the following way:

Run npm run build to create out folder
Then, run npm start to start the production server at 3000 port

But I'm the problem is coming from development server 😄

authors: AceTheCreator akshatnema


text:
docs: update the getting started docs page

Description

Updated the tutorial outline to be in sync with the given template.

Related issue(s)
Fixes #793

Good start @Annysah! tadatadatada
Let's go for Draft 2. heart

Thanks Ale for the reviews, I will get to work!

Hi @alequetzalli,
Just submitted the second draft.

In addition to the requested changes, I added a section "Generating the docs".
Would it be a necessary addition?

sure, I'll definitely have a look, but please first solve the merge conflicts, and then ping me again so I know it is ready for review (sometimes things get messy during solving conflicts, so better if i look after)

sure, I'll definitely have a look, but please first solve the merge conflicts, and then ping me again so I know it is ready for review (sometimes things get messy during solving conflicts, so better if i look after)

Alright @derberg, I will work on resolving it.
Thank you!

Afaik the document that you edit here in this PR is https://www.asyncapi.com/docs/tutorials/getting-started and I'm not 100% sure we really want to turn it into a tutorial. I think this should be a kind of intro to getting started, so it is now.
now this document at the same time contains a general explanation of AsyncAPI goal (was there before) and some step-by-step explanation on how to create an AsyncAPI document + generate docs for it. Technically your instructions are very accurate but was it the goal. The Getting Started index document is on the upper level of all the getting started tutorials. If feels confusing that in upper level we create asyncapi file and generate docs, and then we create new asyncapi document again, with different protocol.
I'm not sure you know what I mean. I think the focus should go on these documents 👇🏼

to make sure there is a flow, that more AsyncAPI spec features (objects) are explained step by step, that examples (if possible) are based on the same app example, so they are consistent (not https://www.asyncapi.com/docs/tutorials/getting-started/asyncapi-documents is not consistent with the rest)

@derberg Ok dude.... First, this is SO CONFUSING in the way you wrote it, you need to slow down and breathe before you reply to stuff. 😝 (just explaining cause you really confused poor @Annysah, so I am trying to help clarify to her what you said 😄✌🏽)
Second, Seeing what Anisat wrote in her 2nd draft here + thinking of your feedback Lukasz, I am inclined to agree that this Getting Started is really a quickstart, and not a tutorial. If yes, if we consider it a quickstart, that also means the TW outline is not going to be the same as the outline for a tutorial and thus does not need to change.
So IOW @Annysah, what Lukasz was expressing is that what you wrote/added in this PR is technically accurate, BUT potentially did not make sense to incorporate because his take was that this piece of TW content was not a tutorial. (Now you can see why I emphasized so much in the previous paragraph that I agreed this was a quickstart to the technology of AsyncAPI.)
Since a quickstart to the technology of AsyncAPI is a different kind of TW content, the goals and outline will be different than that which is needed for a tutorial that explains things you can do with the technology of AsyncAPI. 😀✌🏽
Lastly, what this means is that I don't think we actually need to merge this PR and it actually makes sense to close it, Anisat. 😀✌🏽 This doesn't mean you didn't do a GOOD job! I think it was pretty good and like Lukasz even himself said, what you added was technically correct. And that's always a good thing! haha 😎 Essentially, Lukasz was just seeing that this is one of those PRs that after the fact, you happen to realize is not the best idea to merge for a project. Not a big deal and it was still SUPER GOOD to have you practice writing and getting more familiar with AsyncAPI. 😀❤
let me know if this makes sense now 😀 @Annysah! and I think it could be as simple as us closing this PR and then we identify a new task for you (which there is! hahaha trust meee)

maybe let's go back to #793 and clarify the scope there? @alequetzalli thoughts?
No lukasz, the scope there is clear; it's a tutorial update with new outline template. I think you just got confused because you don't think of this as a tutorial. (which we agree on hahaa)

Thank you so much @alequetzalli for the clarifications. I think I now understand what @derberg means.
@derberg Thank you for the feedback as well!

ups, sorry for being confusing. I actually did not rush with my comment, on a contrary, I tried to be as detailed as possible to express my confusion 😆 because the content, as I wrote, was technically accurate, but the location was confusing and I could not figure much from linked issue.
I think it is a good idea to have a kind of tutorial, that is super straightforward, just few steps, from creating a file to generating docs. Let's just first discuss the scope in an issue first, because for example I think it would be lovely to use AsyncAPI CLI for it, where you have the asyncapi new command and with one command you can actually create an AsyncAPI file from existing examples

Is the AsyncAPI CLI the same as the studio?

@Annysah CLI is something that you use in the terminal -> https://www.asyncapi.com/tools/cli
so for example after installing CLI, when you run asyncapi new --file-name=asyncapi.yml --example=default-example.yaml --no-tty in the terminal, the new AsyncAPI file is immediately generated for you

So I was thinking in addition to creating a tutorial on how to get started with AsyncAPI using the CLI, we could also possibly restructure the outline of the "Getting Started" section.
Here is a link to a draft of an outline idea I worked on: https://hashnode.com/preview/62cffe97466c6ad9ff5d96c2

Oh lukaszzzz we especially wanted your thoughts on it! 😀
@derberg

It looks like we don't have sufficient reason to continue this one, so let's close this PR and leave our Quickstart as is. ✌🏽

source: gharchive/pull-request

authors: Annysah alequetzalli derberg


text:
UI Improvement

Is your feature request related to a problem? Please describe.
The UI is very plain and simple for now
Describe the solution you'd like
I would like to improve the look and UX of the website
Describe alternatives you've considered
Using custom libraries such as bootstrap can help
Additional context

@atapas can you assign this issue to me for hacktoberfest

@atapas I have made a successfull PR which have solved all the mentioned issues .

repo: atapas/promiviz

license: MIT


text:
Grid - style issue

Could it be that the select box in the pager area is "nacked" again in Version 1.5.1 by Bootstrap 3?
There are CSS solutions to style the 'selects' for all browsers ...
https://github.com/filamentgroup/select-css
http://filamentgroup.github.io/select-css/demo/

This issue is done. Page size list works fine now.

repo: atatanasov/gijgo

license: mit

license_source: bigquery


text:
🛑 Wedding HTTPS is down

In 3720e75, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in 11b061c.

repo: atatkin/milos-uptime


text:
🛑 Wedding HTTPS is down

In e2d7be6, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in 42ba568.


text:
🛑 Wedding HTTPS is down

In bd66df7, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in e49854c.


text:
🛑 Minted HTTP is down

In 7733555, Minted HTTP ($MINTEDHTTP) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Minted HTTP is back up in 3aede94 after 45 minutes.


text:
🛑 Wedding HTTPS is down

In d10c166, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in e2d64ed.


text:
🛑 Wedding HTTPS is down

In fa64799, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in 674e559.


text:
🛑 Wedding HTTPS is down

In 73c60d6, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in 642b610.


text:
🛑 Wedding HTTPS is down

In 023e4a6, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in e885e62.


text:
🛑 Wedding HTTPS is down

In f0c25d4, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in 23ef4a6.


text:
🛑 Wedding HTTPS is down

In 6fed1c3, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in 6c28fc4.


text:
🛑 Wedding HTTPS is down

In d736dd3, Wedding HTTPS ($WEDDINGHTTPS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wedding HTTPS is back up in 120129f.


text:
Add tags option

Please add an option (CLI and dialogue, preferably) to automatically add tags to the new instances.

This is an interesting idea. Can you expand on the use case? Tags can only be added to sites in organizations, and an organization is not required in the script so the script will need to verify an org is being used first before considering tags.
CLI options, in general, aren't the easiest in Bash and I don't plan to add any but this is definitely a candidate for adding another prompt.

The script already adds the slug (project name) as a tag.
@wmodes are you asking to define a custom list of tags in addition to the slug?

authors: ataylorme davidneedham wmodes


text:
Mail delivery failed: returning message to sender

Hi, guys! I need some help here, please.
I create all the zone records for my postal installations and of the domains inside.
I also create Address Endpoint and the route for incoming messages to this Address Endpoint, but I can't receive any in these messages send.
For example, sending e-mail from my personal account, I received this response:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  test@my.postal.com
    The mail server could not deliver mail to test@my.postal.com.  The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.

Again, all zone dns data is OK, but I can't receive any messages on postal.
Any help, please?

That error message implies that you do not have MX records for my.postal.com. Can you double check you have them?

Yes, I have:
My config. on postal is ok:

My config. on cloudflare too:

And on whois:

Can you telnet to port 25 on mx.r1.whatever?

My port 25 is fine. Without any block, I can send emails but I can't receive. What can be in this case?

@willpower232 any help please?

There has to be a problem with your setup, either from a connection perspective or a server issue.
If you have MX records for your domain (you can verify with whatsmydns.net) and you can telnet from your computer to port 25 on your Postal server then you will have to look at your Postal logs to see if there are any errors.

Can you show me what a 100% DNS setup would look like? A template? Because I've followed all the steps of all Wikis several times and I'm sure I did not pass on any information.
All logs do not contain any errors, just the connection and send reports when I fire some email.
The sends and all other settings are perfect, I just can not receive any email.
I'm not talking about receiving in my destination inbox. I say when I send an email from Gmail for example, to an email registered inside the postal.

What you've shown us looks fine so far.
You should be able to run nslookup mx.r1.whatever on your computer and get an IP address. You should also be able to get the same IP address from entering mx.r1.whatever in whatsmydns.net.
You should be able to telnet that IP address on port 25 from your computer (not your Postal server) and see some responses from Postal.

repo: atech/postal


text:
Okay, so... how do I actually generate my own scheme?

I'm sure this will sound stupid, but I'm not clear on how I'm supposed to generate a yml scheme for base16-builder given two hues. I see there are some sass files in the assets folder that seem to be the right direction, but I'm not clear on where to go from there. The cli/io.sh file mentioned in the readme no longer exists, and your commit messages don't really give me any clues on where it went and why. The readme doesn't really have any directions on what to do aside from "edit the demo tiles!"
Can you help me out? Thanks.

Thanks for the feedback, I just edited the README with hopefully a bit more helpful information to get people on the way making there own colorschemes.
Base2Tone can generate themes for applications from colorschemes with Base16-Builder, and if one uses an existing colorscheme, and has no ambition in creating a custom one, this can be a fast process with using the commandline generating those themes. However creating your own colorscheme is not a fast process; it can't be "generated" but instead is a manual iterative process. This is the hard part; although the idea is to make color-schemes from just two color-hues, there is no easy way (at least not on this repository) to generate colorschemes from these two color-hues, (because I don’t believe in an automated process that takes account of the peculiarities of the human eye, in connection to the perception of color). It will always be a manual iterative process. My process is editing the demo-tile colors for Base2Tone-prism, you can see those demo-tiles on top of the pages over here. So what I do is edit the sass file for those demo-tiles (I use HSL and then convert those values from the browser, or a tool like HSL Color Picker to HEX values), and then manually copy and paste the new color-values over into a new schemes/my-new-colorscheme.yml. After that generate the prism-my-new-colorscheme.scss and see how the syntax-highlighting turns out on that demo-page. There are 32 color-value variables to be defined, so it will require a dedicated effort to build your own Base2Tone colorscheme. But if you do succeed in this, you will have the blueprint for generating colorthemes for these applications (see above , and for many more applications in the future).
I hope this is helpful, but please let me know if you have any more questions: this is actually also helpful for me in making better documentation (for I have developed this huge blind spot for this thing).

Sorry for taking so long to follow up. This doesn't really answer my question. What I need to know are the commands I need to run, as well as the dependencies I need to have in order to run those commands. How is the sass file compiled? How is the scss file generated? How does that scss file get used for a viewable demo page? The procedure as you describe it is way too vague, I don't know what's going on. I'm not a web developer hip to the current development trends, I'm a Linux application developer.

There is this extra complexity on Github that is confusing; I can see that, that is why I updated this demo of Base2Tone-Prism on Codepen to make this a bit more easy going an straight forward. I will edit the README to point to this demo as well, so thanks again for your feedback.

How is the sass file compiled? How is the scss file generated? How does that scss file get used for a viewable demo page?

Codepen has their own Sass rendering engine going on, no need to worry about that over there; it happens automagically, but the demo's here on Github are using Compass to compile the scss syntax into css. See also the config file for Compass, note also the additional import-path for the generated files by Base16-Builder.
add_import_path "output/prism-sass"

This setup on Github makes sense to me, for this is generating scss files (color variables fed into this Sass implementation of Prism) from Base16-Builder's yml-scheme and ejs-template files. The compass watch in the root folder will regenerate the css output, each time those scss files are updated.

What I need to know are the commands I need to run, as well as the dependencies I need to have in order to run those commands.

The way to update them is editing the db/schemes/{{colorscheme}}.yml colorvariables and run these commands for Base16-Builder -read about installing this in the README on their repo - in the Terminal.
  base16-builder --scheme "db/schemes/base2tone-pool.yml" --template "db/templates/prism/dark.ejs" > "output/prism/prism-base2tone-pool-dark.css"
  base16-builder --scheme "db/schemes/base2tone-pool.yml" --template "db/templates/prism-sass/dark.ejs" > "output/prism-sass/_prism-base2tone-pool-dark.scss"

The first command - see also the bash-script io.sh generates a css file for Prism, and the second command - see bash-script io-prism-sass.sh generates this Sass implementation for Prism. I'm sorry this is confusing too, will have to clarify that in the Readme.
Okay so ... in essence; one doesn't generate yml colorschemes, these are created, color-values manually copied over from an, for example, forked and adapted version of that demo on Codepen. (Tip: use the Developer Tools in your Browser to copy the HEX-color-values output from the rendered css). Base16-Builder’s commands are used for generating theme files for ... anything really, as long as you can make a template for this application. The syntax for variables in those ejs templates are pretty self-explanatorily I think, but don’t hesitate to ask if you have any more questions.
I hope this was helpful.


text:
cleanup suggestions

This is an implementation of a bunch of the suggestions from my Reddit comment. There are a bunch more things that could be cleaned up, such as the excessive use of pointers everywhere, but it's a start. I tried not to change the logic too much, though in some places I made some minor changes.
One thing that I would suggest is reimplementing the encoder and decoder as type Encoder and type Decoder, and making them implement io.WriteCloser and io.Reader respectively. Then you could make compressing as simple as just
enc := NewEncoder(outfile)
defer enc.Close()
_, err := io.Copy(outfile, enc)

Restructuring it in this way would be a good time to move the actual compression and decompression logic into a top-level package, too.

Oh, one more tip: You can test the command quickly and easily with go run. For example,
$ go run ./cmd/huff README.md

repo: atiedebee/huffman-coding


text:
Null check operator used on a null value

I ran: flutter pub run change_app_package_name:main com.company.packageName
it throws:
Unhandled exception:
Null check operator used on a null value
#0      AndroidRenameSteps.process (package:change_app_package_name/android_rename_steps.dart:28:41)
<asynchronous suspension>
pub finished with exit code 255

Tested this on different projects and I can't reproduce it. Share your gradle.build file it may have some clues for your edge case. reopen the issue when you submit the file.

You can resolve this issue by following steps:

Go to build.gradle
Check applicationId and close it in double quotes if it's under single quote.

Basically we have a check that throw exception:
    var reg = RegExp('applicationId "(.*)"', caseSensitive: true, multiLine: false);
According to that, package name should be under double quote.
Booms! Issue will be resolved.

authors: MuhammadAliKust atiqsamtia brunodmn


text:
Environment clean up

Issue is #162.

Coverage: 45.211% (-0.007%) from 45.218% when pulling 1135c2287c66fe82d14bf8ace5e158e06688adbd on 162.env-cleanup into 8fbdf4d9f56d53d609b3a3eaaf0273aa5984a12c on main.

authors: coveralls sajith

repo: atlanticwave-sdx/sdx-controller


text:
Set up a "nucleus similarity search" job type

The intent here is to select one of the nuclei and find other nuclei that are "similar" in some structural sense. The appropriate skimage function might be structural_similarity.

Here's the paper that introduces and describes the Structural Similarity Index Measure:
Wang, Z., Bovik, A. C., Sheikh, H. R., & Simoncelli, E. P. (2004). Image quality assessment: From error visibility to structural similarity. IEEE Transactions on Image Processing, 13, 600-612. https://ece.uwaterloo.ca/~z70wang/publications/ssim.pdf, DOI:10.1109/TIP.2003.819861

This turned out to be a very interesting topic. In brief, the SSIM compares three aspects of images: luminance, contrast, and "structure". Structure is what you get after you remove the luminance information from the images and normalize contrast. It is represented as an (N-1)D unit vector for an image with N pixels. The structural similarity between two images is the inner product of their two vectors.
Care must be taken to project the pixels to the same discrete space in cases such as ours where the two images are not identical. Windows of MxM pixels can be used to scan over the images. The MxM windows are associated with a discrete location and the windows are compared between images at their shared locations. Perhaps in our case the location could be x,y coordinates where origin is the center of the nucleus.
Vector similarity search is a really fascinating subject. We can view the problem as a k-nearest neighbor problem in high dimensions. PostGIS is actually the wrong tool for the job here. It doesn't support high dimensional vectors.
It is possible to represent the vectors in a k-d tree using SP-GiST. This would be simplest since it requires no extra dependencies and should scale quite well. Since the vectors are unit vectors I think it holds that the ordering provided by euclidean distance is equal to the ordering provided by their cosine similarity.
I'd have to think about that last conjecture for a second to be sure though and that may make us a bit nervous. Alternatively, there's a purpose built tool for vector similarity searches: pgvector. It offers inner product search for high dimensional vectors. There's even an officially supported Django plugin. This has no constraint on using unit vectors so maybe we could do some interesting things like express window location as extra dimensions on the vector. However, real cosine similarity is much more expensive so this library uses approximate nearest neighbor search.
tl:dr; PostGIS is the wrong tool. Some properties of the problem may allow us to use built-in SP-GiST. Otherwise, a solution like pgvector can be used.

Since the vectors are unit vectors I think it holds that the ordering provided by euclidean distance is equal to the ordering provided by their cosine similarity.

It seems this is true. Here's a discussion behind the intuition. With that in mind, it definitely makes sense to stick with built-in PostgreSQL SP-GiST based solutions.

authors: mcovalt waxlamp

repo: atlascope/atlascope


text:
Naming convention poll

Naming convention for stuff.. we have a bit of a mix right now. Probably a good idea to settle on one set of terms and align it b/w the UI, services and the engine.

Input & Output
Source & Target

Discussed with John and Tomo.
Decision: Use Source & Target
Rationale: Align the backend engine with the UI terminology for consistency.

repo: atlasmap/atlasmap


text:
Prepare for new release of Confluence

Workflow links: https://github.com/atlassian-labs/atlassian-slack-integration-server/actions/runs/4750475118, https://github.com/atlassian-labs/atlassian-slack-integration-server/actions/runs/4750477128, https://github.com/atlassian-labs/atlassian-slack-integration-server/actions/runs/4750479101.

Succeeded for Java 11, Java 17. Java 8 is no longer supported.

authors: mvlasovatl umukherjee-atlassian


text:
add clustered markers and photo tooltips

These edits do a few things:

Change the marker to circleMarker to make customizing the marker easier.
Allow multiple markers to be added for each story map section, with support for adding images to the tooltip.
Add marker clustering using Leaflet.markercluster (https://github.com/Leaflet/Leaflet.markercluster).

Looks fine to me. I'm not maintaining this repo anymore, let me know if you want administrator rights

Sure, I have some ideas for using it in a couple projects.
Courtney
On Mon, Jul 15, 2019, 7:10 AM Atle Frenvik Sveen notifications@github.com
wrote:

Looks fine to me. I'm not maintaining this repo anymore, let me know if
you want administrator rights
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/atlefren/storymap/pull/4?email_source=notifications&email_token=AG5FF5MFXBWWJJR5QE2OW5TP7SAPBA5CNFSM4IC7OB3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ52CKI#issuecomment-511418665,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AG5FF5KDQNC3QFLK53XDZHDP7SAPBANCNFSM4IC7OB3A
.

authors: atlefren courtneysimonse

repo: atlefren/storymap


text:
#184948280Ft Track Order Status

What does this PR do?
This PR implements track order status feature
Description of Task to be completed?

[x] Create orders page.
[x] Create order detail page.
[x]  Integrate with backend

How should this be manually tested?

In your project terminal, run git fetch origin pull/50/head:ft-track-order-status-184948280
Checkout to ft-track-order-status-184948280 branch
Install all the dependencies by running npm install
create .env file and set LIVE_API_URL to server api url
Then run the project by typing npm run dev

Routes to be tested:

customer/orders/history>
customer/orders/<order-id>

What are the relevant pivotal tracker/Trello stories?
Story ID: 184948280
Screenshoots

Reaching to your hosted version seems not working.

authors: Emile-SHUMBUSHO ericndungutse

repo: atlp-rwanda/e-comm-team-amigos-fn


text:
Object.observe is not a function

Occurs on start, always. It seems to be true on Atom 1.9.8; Object.observe is undefined in the Developer Console too.

Should be fixed in 1.16.1, although this introduces a small resource leak on linter package deactivation, if you have 'Use Linter' option enabled. Everything should be fine unless you keep de- and re-activating linter package for a million times.... I will rewrite linter integration one of these days. At least that's what I keep telling myself.

Yep, fixed. Thanks!

authors: lierdakil remexre

repo: atom-haskell/haskell-ghc-mod


text:
Atom opening to dev tools screen

Hello,
Atom is opening to the dev tools screen... This started happening after I installed the linter-pylint package. However, I don't know if it is directly related.
I reinstalled Atom but still getting the same error.
Can you please help?
Thank you.
PS: Below the error.
index.js:62 Error: EPERM: operation not permitted, open 'C:\Users\oscar.linares.atom\compile-cache\less\40e22529c8729b65e1d700a7ae3f73d57ed1288f\imports.json'
at Error (native)
at Object.fs.openSync (fs.js:584:18)
at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:158:20)
at Object.fs.writeFileSync (fs.js:1234:33)
at Object.fsPlus.writeFileSync (C:\Users\oscar.linares\AppData\Local\atom\app-1.9.8\resources\app.asar\node_modules\fs-plus\lib\fs-plus.js:279:17)
at LessCache.module.exports.LessCache.writeJson (C:\Users\oscar.linares\AppData\Local\atom\app-1.9.8\resources\app.asar\node_modules\less-cache\lib\less-cache.js:155:17)
at LessCache.module.exports.LessCache.setImportPaths (C:\Users\oscar.linares\AppData\Local\atom\app-1.9.8\resources\app.asar\node_modules\less-cache\lib\less-cache.js:113:12)
at new LessCache (C:\Users\oscar.linares\AppData\Local\atom\app-1.9.8\resources\app.asar\node_modules\less-cache\lib\less-cache.js:32:12)
at new LessCompileCache (C:\Users\oscar.linares\AppData\Local\atom\app-1.9.8\resources\app.asar\src\less-compile-cache.js:20:20)
at ThemeManager.module.exports.ThemeManager.loadLessStylesheet (C:\Users\oscar.linares\AppData\Local\atom\app-1.9.8\resources\app.asar\src\theme-manager.js:270:26)
at ThemeManager.module.exports.ThemeManager.loadStylesheet (C:\Users\oscar.linares\AppData\Local\atom\app-1.9.8\resources\app.asar\src\theme-manager.js:257:21)
at ThemeManager.module.exports.ThemeManager.requireStylesheet (C:\Users\oscar.linares\AppData\Local\atom\app-1.9.8\resources\app.asar\src\theme-manager.js:174:24)
at ThemeManager.module.exports.ThemeManager.reloadBaseStylesheets (C:\Users\oscar.linares\AppData\Local\atom\app-1.9.8\resources\app.asar\src\theme-manager.js:237:12)
at ThemeManager.module.exports.ThemeManager.loadBaseStylesheets (C:\Users\oscar.linares\AppData\Local\atom\app-1.9.8\resources\app.asar\src\theme-manager.js:232:19)
at new AtomEnvironment (C:\Users\oscar.linares\AppData\Local\atom\app-1.9.8\resources\app.asar\src\atom-environment.js:270:19)
at module.exports (C:\Users\oscar.linares\AppData\Local\atom\app-1.9.8\resources\app.asar\src\initialize-application-window.js:22:19)
at setupWindow (file:///C:/Users/oscar.linares/AppData/Local/atom/app-1.9.8/resources/app.asar/static/index.js:87:12)
at window.onload (file:///C:/Users/oscar.linares/AppData/Local/atom/app-1.9.8/resources/app.asar/static/index.js:41:9)handleSetupError @ index.js:62

Hello,
Have you tried running atom in save mode see if the issue persists? atom --safe
Also, please next time fill out proper issue report template and try troubleshooting steps listed when you create the issue before posting. That eliminates the need to try simple steps and allows us to see how further we can assist you.

Delete your C:\Users\oscar.linares\.atom\compile-cache folder and try again.

repo: atom/atom


text:
file ends with colon open but content isnt read

Edit by @rsese to add more specific repro steps

echo "123" > a:
Application: Open File (Ctrl+O on Linux)
Select the file from step 1

Expect the a: file to open, actual behavior is an empty a titled tab is open.
Seems : is legal though maybe not ideal for a filename on Linux? : is illegal for a filename on Windows and I'm not sure about macOS behavior if it's specifically an illegal character but the behavior was the same on macOS 10.14.6 (except the file open dialog showed a/ in the open dialog).

Prerequisites

[X ] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description

Steps to Reproduce

create file a:
write to it
open with atom

Expected behavior:
open the content
Actual behavior:
not open the content
Reproduces how often:
∞
Versions
Atom    : 1.37.0
Electron: 2.0.18
Chrome  : 61.0.3163.100
Node    : 8.9.3
debian
Additional Information

im using atom 1.37 x64 version on linux.
i tried to open a file that ends with ':' and it opened but content of file didn't load. it loaded it empty.

Thanks for reaching out!

im using atom 1.37 x64 version on linux.

I was unable to reproduce with Atom 1.41.0 on Ubuntu 19.04.  Can you update to 1.41.0 and let us know if you still see the same issue?
I'm also assuming I understand this part of your report correctly:

Actual behavior:

not open the content

Just to clarify, you mean the file opens but it's empty?  Or does the file not open at all?

Thanks for reaching out!

im using atom 1.37 x64 version on linux.

I was unable to reproduce with Atom 1.41.0 on Ubuntu 19.04. Can you update to 1.41.0 and let us know if you still see the same issue?
I'm also assuming I understand this part of your report correctly:

Actual behavior:

not open the content

Just to clarify, you mean the file opens but it's empty? Or does the file not open at all?

hello,
i thought theere are no contributors..
i updated to atom 1.41.0.
reproduce:
echo "123" > a:
in atom : Ctrl + O (file -> open file)
open a: file
it opened a window but it's empty.
what works: directory -> open file, filenme like ":"
i was trying to fix the issue by compiling the atom source code like https://gist.github.com/anriseth/8385fe663db51ce4a218868bdb1cba7b but it failed with some v8 file not sure what....

in atom : Ctrl + O (file -> open file)

Oh interesting - with this extra detail I can reproduce :+1:  The original step wasn't specific and I opened the file from the tree view where it opens ok.  But opening the file through the file dialog reproduces.
I see that the tab filename is actually a and not a: when trying to open a: through the file open dialog.

in atom : Ctrl + O (file -> open file)

Oh interesting - with this extra detail I can reproduce +1 The original step wasn't specific and I opened the file from the tree view where it opens ok. But opening the file through the file dialog reproduces.
I see that the tab filename is actually a and not a: when trying to open a: through the file open dialog.

exactly.. that what i was saying .....
meanwhile, if no contributor mind you say how to compile atom so i can trace it? I tried to follow some gist but it didn't work some error with V9/V8 Chrome JS Engine...

@lee-dohm what are those labels mean?

They’re what we use to prioritize tasks against each other.

Is this issue still open? If yes then I want to work on this. This is actually my first time contributing to a project on github. Any guidance is welcome.

i confirm, there is yyyy2021 and problem still exists.
make 2 files
echo 'test.txt' > test.txt
echo 'test.txt:80' > test.txt:80

check each
cat test.txt
test.txt

cat test.txt:80
test.txt:80

works:
atom test.txt
fail (open untitled)
atom test.txt:80
atom 'test.txt:80'
atom "test.txt:80"

When i open it in my UI, instead of test.txt:80 it open test.txt
Kate, Sublime, KWrite, vim, Okular, Libre Office, Pluma, MousePad, FeatherPad - they are works.
So.. when you plan to fix it?

I can still reproduce.

This behavior was introduced on #6706, so, should #21124 be reopened or can we assume it's "by design" and close this issue?

thats called "by shitcode", not "by design"

I can reproduce the issue "1.57.0", it ignores when a ":" comes in the file name. I'll try to fix this soon.

authors: BothOfUsTogether2 andrewasche ghost lee-dohm makafsal nikitasius rsese sshikhar1234


text:
Uncaught Error: ENOENT: no such file or directory, lstat '~/AppData\Local\atom\app-1.51.0\CSS - M...

[Enter steps to reproduce:]

...
...

Atom: 1.51.0 x64
Electron: 5.0.13
OS: Microsoft Windows 10 Home
Thrown From: Atom Core
Stack Trace
Uncaught Error: ENOENT: no such file or directory, lstat 'C:\Users\Asus\AppData\Local\atom\app-1.51.0\CSS - My Site Images'
At fs.js:122

Error: ENOENT: no such file or directory, lstat 'C:\Users\Asus\AppData\Local\atom\app-1.51.0\CSS - My Site Images'
    at Proxy.realpathSync (fs.js:1512:7)
    at Proxy.fs.realpathSync (electron/js2c/asar.js:300:40)
    at TreeView.moveEntry (~/AppData/Local/atom/app-1.51.0/resources/app/static/<embedded>:14:969244)
    at TreeView.onDrop (~/AppData/Local/atom/app-1.51.0/resources/app/static/<embedded>:14:976417)
    at HTMLDivElement.<anonymous> (~/AppData/Local/atom/app-1.51.0/resources/app/static/<embedded>:14:949804)

Commands
     -9:27.5.0 project-find:show-in-current-directory (div.header.list-item)
     -9:14.7.0 tree-view:add-file (span.name.icon.icon-file-directory)
     -7:43.1.0 application:add-project-folder (div.header.list-item)

Non-Core Packages
atom-beautify 0.33.4
atom-html-preview 0.2.6
atom-ternjs 0.20.0
autoclose 0.0.2
busy-signal 2.0.1
csslint 1.2.0
emmet 2.4.3
intentions 1.1.5
language-ejs 0.4.0
linter 2.3.1
linter-eslint 8.5.5
linter-ui-default 1.8.1
pigments 0.40.2
Sublime-Style-Column-Selection 1.7.5

Thanks for reporting this!
This has already been fixed in https://github.com/atom/tree-view/pull/1358. It is currently scheduled for release when v1.53.0 reaches Stable.


text:
Cursor breaks when switching tabs

I'm using Atom 1.0.9 on OS X 10.10.5
I've noticed the cursor gets stuck as "default" when switching tabs with keyboard shortcuts.
This is how I get the bug:

Open 2 tabs in a full screen window
In the first tab, hover over your code: you get the text cursor
Switch to the second tab with cmd alt ← or cmd alt →
In the second tab, hover over your code: you get the default cursor

The cursor doesn't change when clicking the text. It stays default until the tab title is clicked.

This is still a problem on Atom 1.0.19

The bug doesn't appear on newer versions of macOS.

Since it's not reproducible after an OS update, we'll go ahead and close this.

authors: chbk rsese


text:
Introduce atom.directory-searcher service v0.1.0.

The contract for a provider for the atom.directory-searcher service
is defined by the spec of the DefaultDirectorySearcher.
This modifies Workspace::scan() to use the appropriate DirectorySearcher
for each member of atom.project.getDirectories() when scanning the workspace
for files that match the specified regex.

@maxbrunsfeld I updated the code and tests so that a DirectorySearcher must return a DirectorySearch object that has the following methods:

then()
onDidMatch()
onDidError()
onDidSearchPaths()
cancel()

Admittedly, I need to update all of the docs in default-directory-search.coffee, but I wanted to make sure you were OK with this API before I invested in that.

Looks good to me. Thanks @bolinfest.

I just rebased because apparently my previous stack of diffs would not have merged cleanly because of the update to spec/task-spec.coffee.

@maxbrunsfeld This fixes/amends the tests as we discussed.

Rebased.

Looks great. I'd say let's :ship: tomorrow.

Thanks @maxbrunsfeld: sounds great!

@kevinsawicki all good by you?

@maxbrunsfeld @kevinsawicki I just rebased this on top of HEAD:master.

:rocket: Thanks @bolinfest!

Hey @bolinfest, we need to back this out for today's release, because it broke some specs in the find-and-replace. It looks like something to do with canceling? Can you take a look at these? We can re-merge shortly.
 ResultsModel
   cancelling a search
     it populates the model with all the results, and updates in response to changes in the buffer
       Expected spy unknown to have been called.
         at [object Object].<anonymous> (/private/var/lib/jenkins/workspace/atom/node_modules/find-and-replace/spec/results-model-spec.coffee:125:30)
         at process._tickCallback (node.js:367:9)
     it populates the model with all the results, and updates in response to changes in the buffer
       Expected spy unknown to have been called. (spec/results-model-spec.coffee:136:30)

authors: bolinfest maxbrunsfeld


text:
Button should be disabled if text field is empty

This is minor but can be a usability issue as I don't think the scenarios where the text field is empty are valid.  Buttons should be disabled when field is empty.
Enter your Token:

Joining Portal:

Closed by https://github.com/atom/teletype/pull/248. These improvements will go out in the next release.

authors: jasonrudolph ungb

repo: atom/teletype


text:
Add configurable wallet path

WALLET_PATH
WALLET_FILE
environment variables added to allow configuration of the location of the wallet file and path.

Thank you to https://github.com/atomicals/atomicals-js/pull/13 and https://github.com/atomicals/atomicals-js/pull/12
cc @lucky2077 @0xMatsu

repo: atomicals/atomicals-js


text:
Kuchiki is unmaintained

This is to let you know that your dependency https://crates.io/crates/kuchiki will not receive new versions. I’ve archived its source repository: https://github.com/kuchiki-rs/kuchiki#archived
No immediate action is required as I’m not planning the yank the crate. If and when you look into replacing the dependency, I’d like to encourage you to experiment with data structures since Rc+Weak is only one of many ways to represent trees in Rust.

Thanks for letting us know!
@Polleps you've used this in the bookmarks plugin for html parsing. At some point we'll have to replace this with a different html parsing library

authors: SimonSapin joepio

repo: atomicdata-dev/atomic-data-rust


text:
Missing change java_args to java_options

Description
As specified in the title, this change is not listed in the 0.6.0 Changelog.

Hi,
The changelog mentions:

create_session()’s config parameter expects a plain Python object following the structure of SessionConfig rather than an object created with config.create_config() or a path to a config file.

It doesn't say that the structure of the SessionConfig is the same as the one that was passed to create_config(). In fact, java_args -> java_options is not the only change.
metadata_db -> user_content_storage only got a dedicated bullet point because it implied more changes from the user than just restructuring the given config.

I agree that we should however list all the changes in the changelog to ease the migration.

Hi, this will be available in the next release.

authors: Harold7665 bloussou rcolle tibdex

repo: atoti/atoti


text:
Typo in comment of ColorPickerPreference.java

In the comment of the class it says:
A preference type that allows a user to choose a time
but I'm pretty sure what I can see the user can choose a color not a time
Please change comment to:
A preference type that allows a user to choose a color

Thanks for that, fixed

authors: BrunoBieri attenzione


text:
csv-import should complain in map mode if it finds a duplicate key

If this significantly slows it down, then there could be a flag to turn it off in the case where you're sure there are no dupes.

Not sure if this is still a GoodFirstBug - now that csv-import uses a golang chan and a MapMutator. You have to get pretty far down inside possibly the opCache to try to detect a duplicate key. This will likely get worse as the we trying to increase performance using more cores #1972 and we add support for nested maps #1956.

authors: aboodman mikegray

repo: attic-labs/noms


text:
Doesn't work on ios

Hi,
i tired it on android devices, macos and windows, it works fine,
but when you try to login or connect on an IOS devices it doesn't work.

Hi, I have the same issue. Did you ever find a workaround? @sana2024


text:
ADM-681: [docs] chores: update refinement-on-generate-report design

Summary
...
Before
Description
Screenshots
If applicable, add screenshots to help explain behavior of your code.
After
Description
Screenshots
If applicable, add screenshots to help explain behavior of your code.
Note
Null

What's the diff between this pr and #867 ?

authors: guzhongren mikeyangyun

repo: au-heartbeat/Heartbeat


text:
AKFFT Example

Hi,
Do you have a AKFFT example with microphone input?
How can i get the FFT data as array?
The Harmonizer Example is not working.
thanks

Hi @nor-bu, what exactly is the issue with the Harmonizer Example?

I tab on the record button and hold, then i tap on the play butten but the is not playing
ios 9 simulator and iPhone6+
Can you give me a little halp to start with the following use case.
How can i get the fft data from 0-44100hz from mic to do a special analysier algorythm?(on live input)
thanks for help

A bunch of the playgrounds are doing real time microphone processing, and some of them display the FFT, but if not, just use
[self addAudioOutputFFTPlot];
Oh, and you don't need to install dyci to use playgrounds (dyci is dicey, esp on Xcode7), just run them without the interactive coding aspect.

It is good that you moved this to the discussion forums.  I'll close the issue here.

authors: aure narner nor-bu

repo: audiokit/AudioKit


text:
Include template directory or url in the context dictionary

This is one use case: Have a make target in the rendered project that
pulls changes from the template source, renders the up-to-date template
with the same context used to create the project, and then merges the
changes back into the rendered project.

By the way, I'm not sure why travis tests fail. If you accept merging something like this, I can fix any test that needs fixing and add documentation or an entry in history.

I force-pushed a fix for the tests.

Current coverage is 100% (diff: 100%)

Merging #774 into master will not change coverage

@@           master   #774   diff @@
====================================
  Files          16     16
  Lines         657    658     +1
  Methods         0      0
  Messages        0      0
  Branches        0      0
====================================
+ Hits          657    658     +1
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last update ceafa1d...0b2b54a

Hi @aroig! 👋
Thank you for opening a PR for this.
What do you think @audreyr @pydanny @michaeljoseph?

Thank you for your contribution @aroig! 🍪

authors: aroig codecov-io hackebrot

repo: audreyr/cookiecutter


text:
🛑 Transactions endpoint (mempool) is down

In 219328a, Transactions endpoint (mempool) (https://stacks-node-api.stacks.co/extended/v1/tx/mempool) was down:

HTTP code: 502
Response time: 32 ms

Resolved: Transactions endpoint (mempool) is back up in 0d92f1a.

Resolved: Transactions endpoint (mempool) is back up in 0d92f1a.

repo: aulneau/stacks-status


text:
Added consumer functionality for detailed thread view

detailed thread view is now a consumer of thread and user manager !!!!!
functionality has not been affected from previous implementation

@nicolelst can we mark this as ready for review?

@nicolelst can we mark this as ready for review?

@RealDyllon nope, still needs routing

need some help to add routing to editThread after the user presses Edit thread, and routing back to thread list view after the user presses Delete thread

@nicolelst OK I'll add routing

@RealDyllon thank you! after routing, it should be ready for review.

authors: RealDyllon nicolelst


text:
mdSelect: Unable to have indeterminate value when using a model

I've created a GistRun, you'll see that the first item should be selected and the select value is undefined (tried null too) but instead the first item is selected.

Interesting, it works when not disabling the "select your meal" option..
Native HTML select seems to behave the same.
I think the selected value must match the reference  of the option value. Hmm but that should work with null.

Note to myself: Try with this PR released: https://github.com/aurelia/binding/pull/576

It's released: https://github.com/aurelia/binding/releases/tag/1.2.0

authors: Thanood mttmccb


text:
Inject strings

My use case is PouchDB, but I assume other libraries may have this same problem.  PouchDB doesn't let me extend it (https://github.com/pouchdb/pouchdb/issues/3743).  Unfortunately this means it's very hard to both use aurelia's DI and provide it with the dbName.  If 'extends' worked I could simply do
export class Db extends PouchDB {
  constructor() {
    super('dbName')
  }
}

Seems like I should be able to inject a string directly. But this throws a typeError
@inject('dbName')
export PouchDB

For now the best option seems to be exporting a single string to solve this issue? I am okay with this but wanted to make sure...
// ./constants.js
export let dbName = 'dbName'

// ./db.js
import {dbName} from './constants'

@inject(dbName)
export PouchDB

Haven't used PouchDB but one thing you can do is register an instance in your main module file
export function configure(aurelia) {
  var db = new PouchDB( "MyDB" );
  aurelia.registerInstance( "MyDB", db );

  aurelia.use
    .standardConfiguration()
    .developmentLogging()
    .plugin('aurelia-animator-css');

  aurelia.start().then(a => a.setRoot());
}

//Some other module
@inject( "MyDB" )

I just tried the code from @stoffeastrom, I think you need to invoke aurelia.container.registerInstance( "MyDB", db ); instead of aurelia.registerInstance( "MyDB", db );?

Yes or just move it down
aurelia.use
  instance( "MyDB", db );

Oh, I see. You want to update your former sample in case that others stumble on it, too?

Sure, done!

I know that this post is closed and this question may sound silly as I am just starting with Aurelia and PouchDb, but I don't seem to catch the grasp of thing. I tried the solution proposed above and it worked  but I can't understand why... And how can I use the @inject('MyDb') in another class ? Thank you for your patience.

authors: akircher mipod riddla stoffeastrom

repo: aurelia/dependency-injection


text:
viewModel instance as setting.viewModel doesn't work with webpack

In dialog-service.js, _getViewModel(instruction),
with es6-weback, this returns undefined:
instruction.viewModel = Origin.get(instruction.viewModel).moduleId;

Do you have the latest version of the loader-webpack library?
On Apr 18, 2016 3:57 AM, "Pascal Fautré" notifications@github.com wrote:

In dialog-service.js, _getViewModel(instruction),
with es6-weback, this returns undefined:
instruction.viewModel = Origin.get(instruction.viewModel).moduleId;
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/aurelia/dialog/issues/138

"version": "1.0.0-beta.1.0.1"

Hi, I am trying to open Modal-dialog i am getting an error like below.
TypeError: Cannot read property 'canActivate' of undefined(…)
invokeLifecycle @ lifecycle.js
(anonymous function) @ dialog-service.js
I am using "aurelia-webpack-plugin": "^1.0.0-beta.1.0.2", and
"aurelia-loader-webpack": "^1.0.0-beta.1.0.1",
I am getting instruction.viewModel = undefined at _getViewModel(instruction).
Can anyone get me the solution please.....?

@SivaJonnala As a temporary workaround, use the module name i.e. 'my-view-model' instead of passing the view model class MyViewModel.

@Scapal Thank you for your response. but Can I pass the module name as value for viewModel:'my-view-model' like this, If I pass like this I will get an error can't find module.

@Scapal : I have tried both options, it seems both of them not working.

I'm getting the same error when passing my view model class. When I try to use the string name, I get:
main.js:37 Error: DialogRenderer must implement getDialogContainer().
    at Renderer.getDialogContainer (webpack:///./~/aurelia-dialog/dist/commonjs/renderers/renderer.js?:15:11)
    at eval (webpack:///./~/aurelia-dialog/dist/commonjs/dialog-service.js?:66:86)
From previous event:
    at eval (webpack:///./~/aurelia-dialog/dist/commonjs/dialog-service.js?:61:82)
From previous event:
    at eval (webpack:///./~/aurelia-dialog/dist/commonjs/dialog-service.js?:56:111)
From previous event:
    at eval (webpack:///./~/aurelia-dialog/dist/commonjs/dialog-service.js?:53:47)
From previous event:
    at DialogService.open (webpack:///./~/aurelia-dialog/dist/commonjs/dialog-service.js?:41:19)
    at Developers.addDeveloper (webpack:///./src/developers.js?:46:21)
    at CallScope.evaluate (webpack:///./~/aurelia-binding/dist/commonjs/aurelia-binding.js?:1502:19)
    at Listener.callSource (webpack:///./~/aurelia-binding/dist/commonjs/aurelia-binding.js?:4911:40)
    at eval (webpack:///./~/aurelia-binding/dist/commonjs/aurelia-binding.js?:4935:22)
    at HTMLDocument.handleDelegatedEvent (webpack:///./~/aurelia-binding/dist/commonjs/aurelia-binding.js?:3146:5)

This is likely a limitation of Webpack itself. See this issue for some of my notes: https://github.com/aurelia/dialog/issues/127

we have solved this issue by providing full path.

I'm going to close this issue as a duplicate. Anyone who is interested can follow on the issue linked above.

I want to give some info on this as a worked demo
"demoFolder" is the folder contains our view-models "demo-Home.ts" &
"demo-modal.ts".
In "demo-Home.ts" I want to open modal dialog then call below method then
we need to give the path like this as shown
this.dialogService.open({ viewModel: 'demoFolder/demo-modal', model: { } });
Thanks & Regards,
Siva Verababu Jonnala,
sivatheruler@gmail.com
“Aspire To Inspire Before You Expire”
On Mon, Apr 25, 2016 at 9:20 PM, Rob Eisenberg notifications@github.com
wrote:

Closed #138 https://github.com/aurelia/dialog/issues/138.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/aurelia/dialog/issues/138#event-640211979

authors: EisenbergEffect Scapal SivaJonnala iBeliever sivamamidi-REISys

repo: aurelia/dialog


text:
DialogController.ok() or DialogController.cancel(); the modal does not close when calling from non-view model

I'm submitting a bug report

Library Version:
1.0.0-beta.2.0.0

Please tell us about your environment:

Operating System:
Windows 10

Node Version:
6.2.2

NPM Version:
3.9.5

JSPM OR Webpack AND Version
JSPM 0.16.39

Browser:
Chrome 51.0.2704.103 | Firefox 47.0 | Edge 25.10586.0.0

Language:
ESNext

Current behavior:
We had decided to wrap the usage of aurelia-dialog in an abstracted layer so that switching modals out later would only require one place to change any code out.  This mostly works, but calling this.dialogController.ok() or this.dialogController.cancel() results in the following error (stack trace is from this.dialogController.cancel() specifically):
lifecycle.js:10 Uncaught TypeError: Cannot read property 'canDeactivate' of undefined
    invokeLifecycle @ lifecycle.js:10
    close @ dialog-controller.js:46
    cancel @ dialog-controller.js:27
    cancel @ modal-controller.js:17
    cancelButtonClick @ add-user.js:42
    evaluate @ aurelia-binding.js:1570
    callSource @ aurelia-binding.js:4997
    (anonymous function) @ aurelia-binding.js:5021
    handleDelegatedEvent @ aurelia-binding.js:3210

Expected/desired behavior:

What is the expected behavior?

The expected behavior is that the modal should not throw an error, and it should close.

What is the motivation / use case for changing the behavior?

So that it works when wrapping the dialog-controller and dialog-service in an abstraction layer for ease of changing modal/dialog providers in the future.

Can you provide some code of what the wrapper looks like?

ModalController (wraps DialogController):
import { DialogController } from 'aurelia-dialog';

// This is the class that should be passed into any view that will live inside
// a modal.
export class ModalController {
  static inject = [DialogController];
  constructor(dialogController) {
    this.dialogController = dialogController;
    this.settings = dialogController.settings;
  }

  ok(model) {
    return this.dialogController.ok(model);
  }

  cancel(model) {
    return this.dialogController.cancel(model);
  }
}

ModalService (wraps DialogService):
import { DialogService } from 'aurelia-dialog';

// This is the class that should be used inside a view which needs to display
// a modal with new content in it.
export class ModalService {
  static inject = [DialogService];
  constructor(dialogService) {
    this.dialogService = dialogService;
  }

  open(modalModel) {
    return this.dialogService.open(modalModel);
  }
}

ViewModel that needs to display a modal:
//imports

export class Projects {

  // dependency injection
  // constructor
  //...

  createProjectButtonClick() {
    this.modalService.open({
      viewModel: 'accounts/create-project',
      model: { accountId: this.accountId },
    }).then(result => {
      if(result.wasCancelled) {
        return;
      }
      // this.getProjects(this.accountId);
      let router = this.router;
      while (!router.isRoot) {
        router = router.parent;
      }
      router.navigate(this._getProjectHref({id: result.output.id}) + '/settings');
    });
  }
}

ViewModel of the modal:
// imports

export class CreateProject {
  // dependency injection
  // controller
  // activate()

  save() {
    this.api.command.projects.create(this.createCommand).then(result => {

      if(result.error) {
        console.log('received an error from the API:', result.error);
        // TODO: notify user of error.
        return;
      }

      this.modalController.ok(result);
    });
  }

  cancelButtonClick() {
    // THIS ERRORS AND DOES NOT CLOSE THE MODAL:
    this.modalController.cancel();
  }
}

I should mention that the esc key does still work properly.

+1 on this issue
@m-andrew-albright Were you able to resolve it yourself or is it a legit bug?

I'll be digging in to Dialog issues tonight to reproduce, thanks for the sample, and I'll report back here.

Using "escape" appears to include the injected properties correctly, while, for example, clicking "Cancel" does not.
State of DialogController when using "Escape":

State of DialogController when using "Cancel":

The errors from DialogController.prototype.close to invokeLifestyle:

@mattbeckman I temporarily reverted to just directly use the DialogController and DialogService rather than wrapping them - until this issue is fixed.

It makes sense, I suppose, that the escape key doesn't have a problem, as it's an event bound in the DialogRenderer. However, the Cancel button gets aurelia-binding involved, which is where the injected objects aren't getting wired up properly.

I found a work around: use the full path of the view model instead of the injected instance.
this.dialogService.open({
viewModel: "/src/path/to/class/view-models/modal", //this.viewModel,
model: {}
})
Above appears to work. Obviously, not awesome, but temporary scaffolding until the above issue can be resolved.

So the problem appears to be due to some code that I'm not really familiar with and unfortunately it looks like it is also not tested so I'm trying to understand the intended behavior now -
When clicking close - https://github.com/aurelia/dialog/blob/master/src/dialog-renderer.js#L64
When hitting esc - https://github.com/aurelia/dialog/blob/master/src/dialog-renderer.js#L37
You can see that cancel is called on top which appears to be working for you.  I am afraid to start making changes to that code since it is untested but I'll peek in a bit further to see if it starts making sense.

Thanks for the update!
On Mon, Aug 29, 2016 at 6:58 PM, Patrick Walters notifications@github.com
wrote:

So the problem appears to be due to some code that I'm not really familiar
with and unfortunately it looks like it is also not tested so I'm trying to
understand the intended behavior now -
When clicking close - https://github.com/aurelia/
dialog/blob/master/src/dialog-renderer.js#L64
When hitting esc - https://github.com/aurelia/
dialog/blob/master/src/dialog-renderer.js#L37
You can see that cancel is called on top which appears to be working for
you. I am afraid to start making changes to that code since it is untested
but I'll peek in a bit further to see if it starts making sense.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aurelia/dialog/issues/200#issuecomment-243293524, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEuJrQYTI63l0X_Yv0a_N0Fqi-9QwSxyks5qk3ITgaJpZM4JYH_B
.

Issue with my workaround: it doesn't appear to hold on to singleton objects. I thought it was something else, but I'm fairly certain loading from the absolute path won't work when you need singleton behavior.

I'll use the classes from @m-andrew-albright to explain.
So the problem comes from which container resolves ModalController. When CreateProject gets resolved, the container which resolves it has a DialogController instance registered and can resolve it(the correct instance). When the same container tries to resolve ModalController it does not have a resolver registered so it turns to its parent container. In this case it reaches the root which also doesn't have a resolver registered so it calls .autoRegister(key).get(key). This creates an instance of ModalController but its dependency DialogController also gets resolved from the current container - the root. This is where things break. I'm not sure how to solve this. @PWKad can you advice?

Any updates on this issue?

I would also be interested in hearing progress on this issue

Ok I am putting together a repro of the issue now in gist.run.  One thing to note is that the ModalController and ModalService are basically further abstracting the DialogController and DialogService but I don't see much benefit at the moment.  @StrahilKazlachev was correct in that the issue is in the use of dependency injection as you are not getting the correct instances of everything.  With that being said we'll see if we can provide a way to handle this.

Ok to get around the issue you can force the dependency injection system to create a new instance in the current container and not move upward in the DI chain looking for a container with the ModalController.
import {ModalController} from './modal-controller';
import {NewInstance} from 'aurelia-dependency-injection';

export class CreateProject {
  // ..
  static inject = [NewInstance.of(ModalController)];
  constructor(modalController) {
    this.modalController = modalController;
  }
}

I put together a repro here - https://github.com/PWKad/dialog-repro/blob/master/src/prompt.js#L5 - if this doesn't sufficient answer any of the above questions please let me know, as @StrahilKazlachev mentioned the issue is with DI usage, not necessarily with dialog so going to close this for now.  Feel free to open or ping me to open back up if this doesn't meet the needs identified.  We are having some dialog (pun intended) around this right now as well so it could be transitioned to DI if needed.

Ok so to further add to this - we noticed that using the class decorator @singleton(true) was not working as intended (based on the docs you can see this is supposed to force all who inject the decorated class to create an instance if not found instead of looking up the chain) so there is an alternative that is even cleaner that should work once this is released -
https://github.com/aurelia/dependency-injection/commit/98739f245e1d0e98a625f477e21cdc9094f28f60
@singleton(true)
export class ModalController {
  // ...
}

Thanks for looking into this for us Patrick very much appreciated I will give it a go later

Turns out my issue was nothing to do with that fix although it raises the same error
I was bringing in my view model and assigning it to the current class
import {BsBrowse} from '../controls/bs-browse';
constructor(bsBrowse)  {
this.bsBrowse = bsBrowse;
}
let response = await this.dialogService.open({viewModel: this.bsBrowse, model: this.person});
This does not work whether it should no idea
Working code
import {BsBrowse} from '../controls/bs-browse';
let response = await this.dialogService.open({viewModel: BsBrowse, model: this.person});
Hopefully this info could help any other new comers to aurelia

authors: Infuser PWKad StrahilKazlachev m-andrew-albright mattbeckman mikael-arvidsson


text:
Added remaining members of HttpResponseMessage.

While content() was included in the HttpResponseMessage interface in TypeScript, While using the class, I feel compelled to check isSuccess (or the statusCode) before consuming the response 'content'.  While I was there, I flushed out that class interface.

Thanks, @KarlDirck. Our .d.ts files are generated from the source, so unfortunately we can't manually modify them. Would you be willing to transfer these changes over to the src/http-response-message.js file where they will be picked up by our generator? You should be able to accomplish the same result by moving some of the properties out of the ctor and into ES7 style class properties.

@bryanrsmith  I figured that.  I didn't have time yesterday to rework the JS, but I will try to find time to rework them this weekend.

@bryanrsmith Is there a way to use jsDoc comments (unlikely) or another means to carry the types from es7 to TypeScript?
It seems the resulting *.d.ts uses any for all properties.

If it isn't carrying the properly typed props into the d.ts files, then we may have an issue with our generator. But, I was pretty sure that worked if they were specified.

If you can you provide an example, I'll find some time to implement it in a fork (and subsequent pull request.)  As far as I can tell jsDoc comments don't support types, so you must have some extension as I see no docs explaining such a feature.

authors: EisenbergEffect KarlDirck bryanrsmith

repo: aurelia/http-client


text:
Using URI Template (RFC 6570)

RFC 2560 defines a URI Template syntax widely used in RESTful frameworks (e.g. JAX-RS, Restlet, Symphony).
The syntax of routes changes slightly, i.e. /user/:id would become /user/{id} but there are many syntax options for matching the correct route (see the RFC).
There already exist JavaScript plugins to handle them (uri-template, uri-templates, url-template).
Why not using URI Template in Aurelia's router?

I think this is a nice idea...however, as far as I can tell, all the linked libraries are focused on expanding the templates rather than pattern matching, which is what the router does mostly. So, we would need to write an entirely new matcher to support this change.
Since we hope to have the beta out in about 3 weeks, I don't think there's going to be time to do something like that. Especially considering this would be a massive breaking change.
@bryanrsmith You can comment further. Perhaps there is a way that we can use DI and some abstraction to allow our route recognizer to be swaped out. Right now we instantiate that directly, but maybe we should have a factory that can create instances of those and configure them? Then @heruan could replace it with his own. My guess is that this could be done post-beta without breaking anything. What do you think?

Yeah, we can do that after beta without breaking anything. We can probably
even factor out just the bits that care about syntax, too, so the matching
& generation logic doesn't need to be reimplemented.
I agree that it's too big a breaking change. The rails style syntax is much
more common in route patterns anyways.
On Mon, Sep 14, 2015 at 6:03 AM Rob Eisenberg notifications@github.com
wrote:

I think this is a nice idea...however, as far as I can tell, all the
linked libraries are focused on expanding the templates rather than pattern
matching, which is what the router does mostly. So, we would need to write
an entirely new matcher to support this change.
Since we hope to have the beta out in about 3 weeks, I don't think there's
going to be time to do something like that. Especially considering this
would be a massive breaking change.
@bryanrsmith https://github.com/bryanrsmith You can comment further.
Perhaps there is a way that we can use DI and some abstraction to allow our
route recognizer to be swaped out. Right now we instantiate that directly,
but maybe we should have a factory that can create instances of those and
configure them? Then @heruan https://github.com/heruan could replace it
with his own. My guess is that this could be done post-beta without
breaking anything. What do you think?
—
Reply to this email directly or view it on GitHub
https://github.com/aurelia/router/issues/212#issuecomment-140064397.

Closing for now.

authors: EisenbergEffect bryanrsmith heruan

repo: aurelia/router


text:
Getting raw value of division

Hi,
I wanted to get the raw result of meters / millimeters as double, but for some reason I get a different result.
What am I doing wrong?
auto m = au::meters(1.0);
auto mm = au::milli(au::meters)(1000.0);

double divisionResult = (m / mm).in(au::meters / au::milli(au::meters));

std::cout<< divisionResult << std::endl; // Returns 0.001, but I expected to get 1.0

Thanks in advance. :-)

I see. I thougt that because they are equivalent in value (1 m equals 1000 mm), I should get 1 as result. But au::unos will do the trick. Thank you. :-)

repo: aurora-opensource/au


text:
Contrastive loss weights

According to the paper, the contrastive loss weight is set to 1e-5 * num_train_steps.
However, in the given config, the 'loss_weights: [10,1]', where 1 is the contrastive loss weight.
May I know why?

The run.sh will override the config.


text:
Add react router

Reissuing #144

Hi @dmihal 👋
There's awesome stuff in this PR. In particular, I see the following things happening:

creating a config.js
refactoring RecentTransactions into a TransactionStore
add react-router-dom.

To speed up the review, I'd suggest however that we look at the above mentioned pieces individually. Would you mind splitting them up into individual PRs?
Regarding config.js, we've done something very similar here: https://github.com/leapdao/burner-wallet/blob/master/src/config.js
Right now, I'd prefer our solution to the one proposed here as it

takes into account most magic constants in the code (e.g. we've taken them out of Exchange.js)
generically renames the constants and groups them (e.g. SIDECHAIN and ROOTCHAIN).
doesn't overwrite already defined constants based on location (e.g. POA_XDAI_NODE).

If you don't mind, I'd prepare a PR for changing config.js and sending it here soon for e.g. you to review. Thoughts?

Hey @TimDaub
This PR was recreating #144, which got removed from master after a big rollback before one of the burner events.
Looks like a couple of the other PRs I made back then got swept up in this one (TransactionStore, config.js).
At this point I'm mostly focusing on building the new structure for the burner wallet. Rebasing those old PRs into the current master was a bit difficult and I don't think i have the time to focus on splitting apart those old PRs.
Right now I'm open to either letting this PR close or someone else take over this task, but open to other thoughts.

@dmihal OK, no problem! I'll take care of it then.

I was thinking whether or not to simply untangle this PR myself today but then I became hesitant about the time that would be required. I'm also unsure about having this functionality in master, given that we're now working according to the spec. So I've decided to do the following:

I've created #215. It's goal is to extract react-router-dom functionality from this PR
I've left it open for now what to do with config.js and TransactionStore.
As this branch will hopefully life on in your fork, and since so far no drastic changes to RecentTransactions.js have been planned, I think it's safe to think about this again after we've done #209 "Minimal integration of burner-core into burner-wallet".

@dmihal if you have a better idea, please let me know.

authors: TimDaub dmihal

repo: austintgriffith/burner-wallet


text:
Not working with Laravel 8 Jetsream + Fortify

Hi,
I installed Laravel 8 with Jetstream which uses default database session driver out of the box.
It creates a sessions table having user_id column with type BigInt.
As soon as I login to mydomain.com/canvas/login, I get the following error.
SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'e27c920e-45a8-4f55-8d3d-62cc6493cf5d' for column `my_db`.`sessions`.`user_id` at row 1 (SQL: update `sessions` set `payload` = YTo1OntzOjY6Il9..., `last_activity` = 1601279641, `user_id` = e27c920e-45a8-4f55-8d3d-62cc6493cf5d, `ip_address` = 127.0.0.1, `user_agent` = Mozilla/5.0 where `id` = igv0zkK9xB0J2qLuQcbCK1lAtWPQd8TODGU52wcV)

Is this package not supported with Jetstream/Fortify yet, or am I missing something?
Thanks.

Canvas supports Laravel 6/7/8. It shouldn't hit anything other than it's own tables in the database.
I haven't tried Laravel Jetstream or Fortify yet. Is there any way, in your routes/web.php or RouteServiceProvider to exclude routes from hitting Jetstream/Fortify?
Since Canvas uses its own authentication system, it should really be a standalone entity, separated from the rest of the application. I know that Laravel uses integers as typical user IDs, while Canvas uses a UUID as the primary key on canvas_users.

Yep, happened something similar to me,
Laravel 8 latest
Jetstream + livewire latest
Fresh install
SQLSTATE[01000]: Warning: 1265 Data truncated for column 'user_id' at row 1 (SQL: update `sessions` set `payload` = YTo5OntzOjY6Il90b2tlbiI7czo0MDoiekVZeFE0RVMwNWNTaFY1UjZBaFBSQ1Fob2pOOW5Rc1JXeXpJYVh3QiI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6MzA6Imh0dHBzOi8vZWRnYXJib3JyYXMuY29tL2NhbnZhcyI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fXM6NTA6ImxvZ2luX3dlYl81OWJhMzZhZGRjMmIyZjk0MDE1ODBmMDE0YzdmNThlYTRlMzA5ODlkIjtpOjE7czoxNzoicGFzc3dvcmRfaGFzaF93ZWIiO3M6NjA6IiQyeSQxMCR6QjFYdHlkYU4uOWdiTFVYY1NtVTBlTTlGdnp6L3dmdTNHTjQwajNRSHY1WEIyWE9ENk1GNiI7czoyMToicGFzc3dvcmRfaGFzaF9zYW5jdHVtIjtzOjYwOiIkMnkkMTAkekIxWHR5ZGFOLjlnYkxVWGNTbVUwZU05RnZ6ei93ZnUzR040MGozUUh2NVhCMlhPRDZNRjYiO3M6MzoidXJsIjthOjE6e3M6ODoiaW50ZW5kZWQiO3M6MzA6Imh0dHBzOi8vZWRnYXJib3JyYXMuY29tL2NhbnZhcyI7fXM6NTM6ImxvZ2luX2NhbnZhc181OWJhMzZhZGRjMmIyZjk0MDE1ODBmMDE0YzdmNThlYTRlMzA5ODlkIjtzOjM2OiIyOTY4N2RhOC03YTY0LTRjOGMtODNhZC02NzM1OTlhNzVmMDYiO3M6MjA6InBhc3N3b3JkX2hhc2hfY2FudmFzIjtzOjYwOiIkMnkkMTAkdGtXYjlhNmpORW9saWhxejBNMFRVZWsuY0pvazFCU3FVUjRZQXVvZVVIMWIwdWk0QmRuQXkiO30=, `last_activity` = 1601325999, `user_id` = 29687da8-7a64-4c8c-83ad-673599a75f06, `ip_address` = 121.0.0.0, `user_agent` = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/localhost Safari/537.36 where `id` = v7PRb7E4narWssdo3yIAIiFo0qMsQevEBsAHlTtx)

Something tries to add a session to the canvas user and then fails 🤔
I will update shortly

Do you have any route middleware other than web in config/canvas.php? The only thing I can think of is a default auth being applied to Canvas, in which case it's not needed.

Do you have any route middleware other than web in config/canvas.php? The only thing I can think of is a default auth being applied to Canvas, in which case it's not needed.

Nope, only web in the array. Modified the ID column in the database to integer and now works. Seems funny that behaves different on each one... 🤔
Update with more info:

It actually creates a session (but without user_id obviously)
The problem starts with this middleware: Illuminate\Session\Middleware\StartSession:62

'web' => [
            \App\Http\Middleware\EncryptCookies::class,
            \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
            \Illuminate\Session\Middleware\StartSession::class,
            \Laravel\Jetstream\Http\Middleware\AuthenticateSession::class,
            \Illuminate\View\Middleware\ShareErrorsFromSession::class,
            \App\Http\Middleware\VerifyCsrfToken::class,
            \Illuminate\Routing\Middleware\SubstituteBindings::class,
        ],

Gotcha! the StartSession Middleware is inside the webmiddleware group!

So, I wonder if you make a new middleware group, call it canvas, add any necessary middleware and exclude Jetstream, and add it to the config/canvas.php file, if that would allow it to work with UUIDs?

Tried removing one by one, resulting in removing every middleware except SubstituteBindings and errors occurs:
Undefined variable: errors (View: .../vendor/austintoddj/canvas/resources/views/auth/login.blade.php)

I'm don't have enough knowledge of laravel core to try to fix this... maybe we can disable sessions in anyway?
This seems tricky u.u

Let me see what I can do.

So the workaround that I found to work was to change the following line in the .env file from:
SESSION_DRIVER=database

to:
SESSION_DRIVER=file

If anyone else knows of a better fix, let me know. But this at least gets the packages playing nicely together.

Quick note - The session table (in MySQL) is configured in as a BigInt.  Changing it to a Char/String makes it function with both Laravel and Canvas login.  Seems like the file used for session accepts both UUID (Canvas) and BitInt (Laravel) for user_id and by having two different types of logins keeps them separate.  Looking at the session database while logging in and out of the two sides, there is only a single session key and user_id has the most recent one used.

Good catch @jhoskins98. I'll close this out @mukarramkhalid since it seems to be resolved with the above solutions, but if you run into anything else feel free to open another issue.

repo: austintoddj/canvas


text:
case should work with references

Per discord discussion, this should work:
generic[T: Type]
function getBufferReference(maybe_buf: &[Option[Buffer[T]], R]): &[Buffer[T], R];
  case maybe_buf of
  when Some(value: &[Buffer[T],R]) do
      return value;
  when None do
      abort("maybe_buf must have a value");
  end case;
end;

Here is a potential test case:
module body Test is
    record Foo: Linear is
       value: Nat32;
    end;

    generic[R: Region]
    function getSome(foo_maybe: &[Option[Foo],R]): &[Foo,R] is
        case foo_maybe of
        when Some(value: &[Nat32,R]) do
            return value;
        when None do
            abort("No good");
        end case;
    end;

    function main(): ExitCode is
        let foo_maybe: Option[Foo] := Some(Foo(value => 5));
        borrow foo_maybe as foo_maybe_ref in R do
            let foo_ref: &[Foo,R] := getSome(foo_maybe);
            assertTrue(!foo_ref = 5, "!foo_ref should be 5");
        end;
        return ExitSuccess();
    end;
end module body.

Sorry for the delay in addressing this! I've opened a PR here: https://github.com/austral/austral/pull/442

repo: austral/austral


text:
Improved redirection after Auth0 login

Please do not report security vulnerabilities here. The Responsible Disclosure Program details the procedure for disclosing security issues.
Thank you in advance for helping us to improve this library! Your attention to detail here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community or Auth0 Support. Finally, to avoid duplicates, please search existing Issues before submitting one here.
By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
At the moment, when a user logs in to authenticate, the web app redirects off to Auth0 where the user enters their credentials and, if successful, Auth0 redirects back to the root page of the web app and then the SDK redirects to the page the user was on when the authentication was initiated.
For my web app, using Gatsby, the redirection to the root page is not as good as the behaviour with the auth0-js SDK where a separate "page" was used to handle the callback. The reason why it isn't as good is because the whole of the root page gets rendered before the post-authentication redirect takes place. With the auth0-js SDK, the separate callback page allowed for minimal rendering to happen.
Describe the ideal solution
Provide a means to specify where Auth0 should redirect back to. Ideally, I'd like to be able to have Auth0 redirect straight back to the page the user was on but, if that isn't possible, allow for a minimal callback page to be used.

Hi @pcolmer

Provide a means to specify where Auth0 should redirect back to.

You can specify a redirectUri either passed in to the Auth0Provider or one of the login methods. This can be a url to any  page served by your SPA: the homepage, a minimal callback page or another specific page of your choosing. You just need to make sure that it is specified in "Allowed Callback URLs" in your Auth0 tenant application settings.

Thanks, @adamjmcgrath. Just missing the obvious as usual 👍

authors: adamjmcgrath pcolmer


text:
Add v1.1.0 changelog entry

🔧 Changes
Adds the changelog entry for v1.1.0
📚 References

🔬 Testing

📝 Checklist

[ ] All new/changed/fixed functionality is covered by tests (or N/A)
[ ] I have added documentation for all new/changed functionality (or N/A)

Codecov Report
Patch and project coverage have no change.

Comparison is base (37549de) 94.75% compared to head (340103d) 94.75%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #282   +/-   ##
=======================================
  Coverage   94.75%   94.75%
=======================================
  Files          46       46
  Lines        8820     8820
=======================================
  Hits         8357     8357
  Misses        361      361
  Partials      102      102

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: codecov-commenter ewanharris


text:
🛑 Andreas Iten is down

In 90bd9eb, Andreas Iten (https://www.andreasiten.ch) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Andreas Iten is back up in e6b33f2.

repo: authentiqdigital/upptime


text:
fix(oidcclient):for issue 734

Closes/fixes #734
Checklist

[ ] This PR makes changes to the public API
[x] I have included links for closing relevant issue numbers

Thanks for taking care!

@longsleep Can you please have a look too?

Ill remove the PR.
I can see that I can pass a modified url in angular when calling the signinRedirectCallback function

authors: frontendplace pamapa

repo: authts/oidc-client-ts


text:
Updated Additional Configuration Steps @ Postgres

I would like to propose addition of a section to the readme for configuring postgres. All datastores except memdb (cockroachdb and postgres) require migrations. In addition to this when configuring Postgres for local development , there is a need to disable sslmode as part of the connection string

recheck

I have read the CLA Document and I hereby sign the CLA

I addressed these comments in #29.
Thanks for the PR!

authors: dvdthecoder jzelinskie

repo: authzed/docs


text:
Support partitioning and resumability on ReadRelationships

For the case of an extremely large SpiceDB cluster (e.g. billions of stored relations), there is not currently an effective mechanism for iterating over the entire data set. This would be a very useful capability for doing reconciliation/consistency checking of data in SpiceDB against systems of record (from which SpiceDB relations are replicated) and search indexes (which may store permissions information replicated from SpiceDB).
The ReadRelationships API provides a streaming response, but no mechanism to "restart" reading from where a previous invocation left off. Providing a "start cursor" would enable a large ReadRelationships operation to be resumed from the application side.
Additionally, for very large data sets it will likely be necessary to partition and parallelize the read operation. It would be beneficial to be able to shard/partition the data set, specifying a partition number as an input parameter.
For example, the API might look something like:
message ReadRelationshipsRequest {
	Consistency consistency = 1;
	RelationshipFilter relationship_filter = 2;
        int32 partition_number = 3;
        string start_cursor = 4;
}

I would imagine that the partition count might be configurable per-cluster (e.g. a mid-sized cluster might be fine with 10 partitions, a tremendous cluster might need 1000 or more) but the partition assignment should be "stable" within a given cluster (i.e. if a given relation is returned in partition 1 on one ReadRelationships request, that relation should always be returned in partition 1 in subsequent calls).

Cursors: https://github.com/authzed/spicedb/issues/1339

authors: jason-who-codes josephschorr

repo: authzed/spicedb


text:
fix: move config from backend to internal + support list env variables

Move config from backend to internal, this is something we wanted to do before, this is a preparation for the CLI to use the same config capabilities
Support passing env variable that parsed as list of strings

MYVAR: a,b,c

type Cfg struct {
  ListData []string `koanf:"myvar"`
}

Support passing env variable that parsed as list of strings

MYVAR: a,b,c

Use JSON notation for list, don't invent another serialization format.

authors: efiShtain tebeka

repo: autokitteh/autokitteh


text:
Found typo in Static Methods docs

s/commpiled/compiled
No idea why there is a diff for line 326...

Thanks

authors: brandongoode troyswanson

repo: automategreen/dynamoose


text:
ARROW-11177: [Java] ArrowMessage failed to parse compressed grpc stream

9147

 Quality gate: Failed
2 Issues

 2 Code issues

Details

 Quality gate: Failed
2 Issues

 2 Code issues

Details

 Quality gate: Failed
 Everything looks good
Details


text:
Add import assertions

17366

 Quality gate: NA
Details

 Quality gate: NA
Details


text:
Add support for Instrumentation test execution data

Thanks for fixing the lib for Gradle 6.x 🎉
Could you add the execution data (.ec) files to the jacoco report task. This is because the code coverage for Instrumentation tests is not currently being reported by Jacoco.
I have the following workaround for now:
afterEvaluate {
       val task = tasks.getByName("jacocoTestDebugUnitTestReport") as JacocoReportBase
       val tree = fileTree(buildDir)
       tree.include("**/*.ec")
       task.executionData(tree)
}

Here is a better version for kotlin based DSL
afterEvaluate {
        tasks.withType<JacocoReport>().run {
            all {
                val tree = fileTree(buildDir)
                tree.include("**/*.ec")
                executionData(tree)
            }
        }
    }

I can confirm that workaround works.
@nikhil-thakkar thanks.
I can now integrate Cucumber test with https://sonarcloud.io
:+1:

authors: mercuriete nikhil-thakkar


text:
setup_carla.sh does not find the download files

Hi,
Thank you for an amazing repo! I run in to a problem when installing carla with your setup_carla.sh script.  I get the following error:
https://carla-releases.s3.eu-west-3.amazonaws.com/Linux/CARLA_0.9.10.1.tar.gz
Resolving carla-releases.s3.eu-west-3.amazonaws.com (carla-releases.s3.eu-west-3.amazonaws.com)... 16.12.18.6, 16.12.20.14
Connecting to carla-releases.s3.eu-west-3.amazonaws.com (carla-releases.s3.eu-west-3.amazonaws.com)|16.12.18.6|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-02-29 08:59:44 ERROR 404: Not Found.

https://carla-releases.s3.eu-west-3.amazonaws.com/Linux/AdditionalMaps_0.9.10.1.tar.gz
Resolving carla-releases.s3.eu-west-3.amazonaws.com (carla-releases.s3.eu-west-3.amazonaws.com)... 16.12.18.6, 16.12.20.14
Connecting to carla-releases.s3.eu-west-3.amazonaws.com (carla-releases.s3.eu-west-3.amazonaws.com)|16.12.18.6|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-02-29 08:59:44 ERROR 404: Not Found

Thank you for all help!

Looks like the AWS servers for the CARLA release is just down.
Perhaps you can try the dockerhub CARLA instead (just need to run CARLA inside the docker container then).
docker pull carlasim/carla:0.9.10.1

Thank you, will do so!