scope is not set in parameter "ares"

I've implemented the authorization code grant exactly like in the given example:
server.grant(oauth2orize.grant.code(function(client, redirectURI, user, ares, done) {
    AuthorizationCode.create(client.id, redirectURI, user.id, ares.scope, function(err, code) {
        if (err) { return done(err); }
            done(null, code);
    });
}));

But the ares parameter is an object that contains only one field:
{
    allow: true
}

There's no scope
I've checked the source code and I see this in code.js:180
...
else if (arity == 5) {
    issue(txn.client, txn.req.redirectURI, txn.user, txn.res, issued);
}
...

Unfortunately, txn.res does not contain scope which is, instead, contained in txn.req.

I had the same problem.
The example seems to be outdated. Replace
server.grant(oauth2orize.grant.code(function(client, redirectURI, user, ares, done)
with
server.grant(oauth2orize.grant.code(function(client, redirectURI, user, ares, areq, done)
Then you can access areq.scope.

If you're trying to let the end user modify the scope while granting the access you can't use areq. If you access the scope from areq you will be accessing the originally requested scope, not the one authorised by the end user.
In order to include the scope in the ares parameter you need to change:
app.post('/dialog/authorize/decision',
login.ensureLoggedIn(),
server.decision()
);
to
app.post('/dialog/authorize/decision',
login.ensureLoggedIn(),
server.decision(function(req, done) {
return done(null, { scope: req.body.scope })  // or req.scope
})
);
scope being an input parameter in the user approval form that contains the scope modified by the end user.


ASP.NET 5 Identity with one table and 4 columns

From @kjanshair on January 26, 2016 15:37
I creating an ASP.NET MVC 6 application which uses Identity with Entity Framework on SQL Server. By default, it creates 5 tables in the database
AspNetRoles
AspNetClaims
AspNetLogins
AspNetRoles
AspNetUsers
But I want only 1 table in the database instead of these 5 with 4 columns integer Identity Column, UserName, Email and Password (Hashed). How do I implement or create a custom user store?
Copied from original issue: aspnet/Security#678

You can look at a user store implementation here : https://github.com/OneBitSoftware/Microsoft.AspNet.Identity.EntityFramework6/blob/master/src/Microsoft.AspNet.Identity.EntityFramework6/UserStore.cs
That should give you enough info on how ant what to do. If you look at IdentityDbContext you will see how the model gets created, you can tweak it to your liking.

Please look at the above comment.

@SharePointRadi the code you provided is pretty long. Can you please provide a shorter and more elaborated version of the problem? I'm searching throughout the Internet but couldn't get through yet. Thanks.


Can't edit device

Traccar 3.3 - I can't edit device (exactly device name) when device receive first report (column 'Last Update' is not empty), error occur:
Uncaught Error: You're trying to decode an invalid JSON String: Can not construct instance of java.util.Date from String value '1452669960': not a valid representation (error: Failed to parse Date value '1452669960': Unparseable date: "1452669960") at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@3bc0d900; line: 1, column: 64] (through reference chain: org.traccar.model.Device["lastUpdate"])

Please try this build:
https://www.dropbox.com/s/cgmlansv32j3ii0/tracker-server.jar?dl=0


Update derivation with sequencer block construction from L1 batch data

Something we discussed with @protolambda and @trianglesphere is that how compression should interact with block derivation.
The candidate solution we came up with is that L2 block derivation should take as an input the sequencing window (as before) but also the full header of the previous L2 block (previously, we only needed its number and hash).
We would write in L2 block headers the current compression ratio, and whenever deriving an epoch worth from L2 block from an L1 block, we would read the compression ratio from the previous L2 block's header, and use this ratio to:

verify the fees charged by the sequencer
update the compression ratio with the effective compression ratio for batches contained within the sequencing window

Some naming open questions:

How do we call the first block of an epoch (the one that includes the deposit transaction). Proposal: the epoch start L2 block.
There is a distinction between "submitted transactions for a single L2 block" and "a submission to the L1 batch contract containing transactions for one or more L2 blocks". Proto's current implementation assumes one batch = one block and that a single submission can submit multiple batches.

Do we want to keep this terminology and use the terms a batch and a batch submission or do we want other terms?


Browser tests

WIP

Trying to understand what dark magic is this where browser tests pass and Buffer is available in the browser without any hack

it is all good :) ready for merge and publish! :)

LGTM thanks @diasdavid

@diasdavid bump patch or minor?

the interface didn't change, but now we officially support it running on the browser and explain how, so I would say bump minor :)

Excellent work :)

Thank you @harlantwood :)


Copy-pasting from code editor to external applications produces bad formatting

Description
Copying syntax-highlighted code from code editor and pasting it into an external application such as Word or OneNote produces bad formatting, i.e. loss of whitespace.
DBeaver Version
Community Edition 22.3.2
Operating System
Windows 10 x64
Database and driver
n/a
Steps to reproduce
The following code:
with cte as
(
	select col1, col2
	from my_table
)
select * from cte;

...looks like this in DBeaver's code editor:

...but copy-pasted from DBeaver to Microsoft Word looks like this:

(leading whitespace lost; vertical spacing looks funny but is actually OK, no blank lines are produced)
...and copy-pasted from DBeaver to OneNote looks like this:

(leading whitespace and whitespace around highlighted words lost)
Copying to Outlook is affected too; the end result looks like the Word example above.
This used to work fine in recent versions (22.0-22.1?).
Additional context
No response

This is a reason why I downgraded to 22.3.0 where it works fine, maybe it helps

Let me just add that vertical spacing as produced by copying to Outlook and Word does not break the SQL, but is still rather annoying. IIRC that was also fine in earlier versions.

Here is a screenshot from my MicrosoftExchange client @MacOS where the same SQL script is copied via clipboard from DBEAVER 22.3.0 and then from the newest release 22.3.2 where the formatting is broken ...

I confirm that copying the code from Editor in DBeaver CE  22.3.2 and pasting it to Word and OneNote (using Ctrl+C and Ctrl+V) produces bad formatting.
DBeaver 22.3.2:

Word:

OneNote:

In 22.3.0, DBeaver didn't have this issue.
DBeaver 22.3.0:

Word:

OneNote:

Pasting into word:

Cause: A \n creates a new paragraph in Word, while you expect a line break (like pressing Shift+Enter in Word).
Workaround 1: Format paragraph with no vertical spacing after.
Workaround 2: Paste into editor, copy again and paste into Word. Loses syntax highlighting.
Fix proposal: If copy would create \r instead of \n at each end of line, pasting into Word could work better.

I am seeing the same problem, very frustrating. I can get it to paste correctly into Toad and then copy back out from there but I only have Toad on one machine so a bit of a hastle.

I use this all the time and now it's broken. It would be nice to have this fixed.

The added new lines and removed indents also happens when pasting from DBeaver CE 23.0.0 into Microsoft Excel. It used to work fine with DBeaver CE 22.2.0 (albeit with loss of formatting).
Example in either version of DBeaver:

Pasted from DBeaver CE 23.0.0 into Excel:

Pasted from DBeaver CE 22.2.0 into Excel:

It seems like it's due to the fancier way of copying that preserves formatting. The way I work around it is to use Paste Special (Ctrl+Alt+V) in Excel and select either Unicode Text or Text.

problem remains in Version <IP_ADDRESS>304091457
waiting for a solution

Workaround: copy paste to vscode, then copy paste from vscode to word.
vscode applies its own syntax coloration.
You can choose a white background with Ctrl+Shift+P, Color theme, light+

Issue solved in version <IP_ADDRESS>305071722

can't reproduce in DBeaver 23.1.0

Unfortunately this does not appear to be fully resolved in 23.1.0. Bad formatting, as described, is still produced when copy-pasting to OneNote (both Office 365 and Windows 10 versions of the app):

The web version of OneNote is not affected, though.

You are right. This does not affect the web version, but it affects the desktop version. Thanks for the suggestion!

It's not a DBeaver bug. I checked raw clipboard content and it's contains whitespaces in the correct positions. We can't fix it from our side.
Also I noticed that the same happens when copying highlighted text from Eclipse (for example, xml).
Workaround that works for me: copy to Word, then copy from Word to OneNote

Of course, if OneNote treats the clipboard data in a strange way, it's unfortunate, as indeed it can't be helped.
One last recourse might perhaps be to try and see why older versions of DBeaver do work with OneNote.
That put aside, I'd say copying to e.g. Word first is fine as a workaround.

DBeaver don't handle copy events by itself, it's done by Eclipse. So, probably it worked in older DBeaver versions and doesn't work now, because the way Eclipse put metadata about text style has changed.


Upload Flexport as Sorbet user

Adding Flexport as a Sorbet user.
Motivation
We've been using Sorbet for a few years now and it has worked rather well! We'd love to make our usage of this awesome tool public.
Test plan

See included automated tests.

Closing in favor of https://github.com/sorbet/sorbet/pull/5033.


[RDBMS] Add support for PG version 16 for MVU of PostgreSQL flexible server

Related command
az postgres flexible-server upgrade -g testrg -n pg-flex-test-server-15 -v 16
Description
[RDBMS] Add support for PG version 16 for MVU of PostgreSQL flexible server
Testing Guide
Verified manually
History Notes
[RDBMS] az postgres flexible-server upgrade: Add MVU support for PG version 16

This checklist is used to make sure that common guidelines for a pull request are followed.

[X] The PR title and description has followed the guideline in Submitting Pull Requests.

[X] I adhere to the Command Guidelines.

[X] I adhere to the Error Handling Guidelines.

RDBMS


grammar error fix

Fixed the sentence "you can import data from multiple files at once, such as a series of Excel files of CSV files"

@NivedhaSunderraj : Thanks for your contribution! The author, @, has been notified to review your proposed change.

OPS Build status updates of commit 370d561:
:clock10: Preparing: average preparing time is not available, there is no data for this repository.

OPS Build status updates of commit 370d561:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

powerbi-docs/guided-learning/includes/1-4-advanced-data-sources-and-transformation.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Verified editorial corrections.


afl++ version

is there a reason why you use an outdated and inferior version of afl++? I recommend to use the current dev state.

This is the version available when we started the implementation for our paper. This will work as a placeholder till I update it with the dev branch of afl++.


When using command " import " ,  is this only check user count??

Laravel Version: 5.7
Adldap2-Laravel Version: 6.x
PHP Version: 7.1
LDAP Type: ActiveDirectory

In terminal, I typed "php artisan adldap:import"
just like https://adldap2.github.io/Adldap2-Laravel/#/auth/importing?id=scheduling-the-command
but that is only check user count.
Even if the credential was wrong, that throws ""There were no users found to import." Runtime exception,
Is there a way i can check what kind of error is?
If I have to develop, how can i do this??

Hi there @inyoungk,
You can check your storage/logs directory if there are issues during the import, or the credentials are incorrect. LDAP errors are reported there.
Otherwise, if you would like to programmatically retrieve the last error encountered while trying to import users, you should be able to do this in your schedule:
/**
 * Define the application's command schedule.
 *
 * @param \Illuminate\Console\Scheduling\Schedule $schedule
 *
 * @return void
 */
protected function schedule(Schedule $schedule)
{
    // Import LDAP users hourly.
    $schedule->command('adldap:import', [
        '--no-interaction',
        '--restore',
        '--delete',
        '--filter' => '(objectclass=user)',
    ])->hourly();

    $lastError = Adldap::getConnection()->getLastError();
}

Let me know if you run into issues and I'll re-open this, thanks!


add dotNet adapter.

the StormSimple.exe source is at https://github.com/ziyunhx/storm-net-adapter/tree/master/StormSimple. I can't find where it should be.

Code aside, I guess storing compiled binaries and libraries in git isn't quite a good idea.

@ziyunhx
Agreed to @lazyval.

Project setting files should be removed from repo, which includes PDB, etc. (Maybe csproj too?)
If we can make DLLs from source code, DLLs should be removed from repo.

Btw, I wonder Storm community can maintain non-JVM .net codes (which is actually a project) within JVM project. It also adds/changes 10000+ lines to storm-core, which is big compared to origin storm-core.
Please note that multilang implementations in storm-core are simple enough to represent just one file.
They don't require additional libraries installed, too.
There're some advanced Storm multilang projects, for example, StreamParse(https://github.com/Parsely/streamparse).
.Net multilang adapter could be better to be maintained like StreamParse, I mean, outer Storm project.
It seems to be more natural.
How about posting new feature to user / dev mailing list and gather a consensus that we would be better to include this?

Okay, I will review my code and post new feature to dev mailing list, Thank you!


Production example

Hi
I find this project very useful, but it has little documentation on how to setup a production ready web application, can you help ? I see it uses nashorn javascript engine so it can use multiple threads for processing?
Thanks.

so it can use multiple threads for processing?

Yes.

You can go through the installation steps and tutorial, or follow my instructions (take ubuntu as an example) below.
Installation
Install prerequisites,
sudo apt install nodejs gradle openjdk-8-jdk

Install 1c,
sudo npm -g install<EMAIL_ADDRESS>
Get started
If you're going to develop a web application, you can decide the project structure quite freely, such as the Django way. Here is my preference.

Edit package.json, you can put both NPM and Maven packages here.
You can choose other web frameworks, but you can ONLY use those can be used WITHOUT Java annotations. I will always recommend Spark (@perwendel /spark).
{
  "dependencies": {
    "@types/chalk": "^0.4.31",
    "chalk": "^1.1.3"
  },
  "mvnDependencies": [
    "com.sparkjava:spark-core:2.5.5"
  ]
}

Then in the same directory as package.json, run
1c install

Once it completes, you can see several new files/directories.

lib/
node_modules/
package-lock.json
tsconfig.json

Now you can import the project directory to VS Code, which is the most friendly to TypeScript development. You can check the completed source code
1c-example.zip.
Build and run
1c build src/main.ts
1c run main.js


Update dependencies

Summary
A lot of the dependencies are now majorly out of date, but simply changing the cargo.toml is not enough, a fair amount of code will need to be re-written to support the newer libraries.
Additional context
Updating libraries will support newer features and hopefully improve performance.

Hello, I would like to work on this issue.
It will be my first time contributing to open source project, do you have any advice?
I will make a commit per dependency update, is it a good way?
I am using rusty hog at work (I am a computer science student and apprentice at Amadeus), I like it and want to contribute to it.
I would be glad to try to update it to gitoxide, but I will try this issue first.
I forked the repo and I started to work on this issue and I will keep you updated.
Feel free to share any advice!
Thanks

Hi Coruscant, thanks for the offer! I would definitely recommend to start with one package at a time, and avoid a few of the more problematic packages by focusing on the best maintained ones like Clap

Also, avoiding the packages that are actually making network calls will probably help keep things simple

Okay! I will try to start with clap then. Thanks


Align next to the label and display on hover the config-button and trait-selector edit buttons on character sheet

Problem: The edit buttons next to trains are too far to tell which belongs to which trait group, especially if the character sheet is wider than the default.
Feature request: Move the edit buttons next to the treat label and only display it on hover. Alternatively, give the label the same treatment items have, and allow a right-click that pops out a menu with an edit option.

Well, this just became obsolete.


Outreach page name

I changed the name of the Courses page to Outreach, which is displayed on the webpage but it still appears as Courses on the Code page. Anyone know how to edit this?

upload image to the img folder and then reference in code:


empirical-cdf support

Math.NET.Statistics.* has support for sampling data and calculating e-cdf, quantiles and so on. Is there a chance that you'll extend your feature matching to those

I've been pretty busy with work so haven't really planned out any new features but always open to feature requests. If you have a couple high priority requests I'd be happy to take a look at porting some of that functionality over in my spare time

A bare-bones empirical distribution was implemented in #120 , and quantiles should also work, although it could do with more testing.


Issue 28950

https://github.com/rancher/rancher/issues/28950
PROBLEM:
Rancher's Istio fork was missing upstream changes that set resource limits on the sidecar pods.
SOLUTION:
Copy the change from upstream to read the annotations and apply the limits to the sidecar.
TESTING:
See issue https://github.com/rancher/rancher/issues/28950

@cbron what is weird is when looking at the blob for the tag 1.4.x, https://github.com/istio/istio/blob/1.4.8/install/kubernetes/helm/istio/files/injection-template.yaml#L343 << those values don't exist in any of the 1.4.x releases
They do exist in the 1.5.9, however https://github.com/istio/istio/blob/1.5.9/manifests/istio-control/istio-autoinject/files/injection-template.yaml#L353

@cbron what is weird is when looking at the blob for the tag 1.4.x, https://github.com/istio/istio/blob/1.4.8/install/kubernetes/helm/istio/files/injection-template.yaml#L343 << those values don't exist in any of the 1.4.x releases
They do exist in the 1.5.9, however https://github.com/istio/istio/blob/1.5.9/manifests/istio-control/istio-autoinject/files/injection-template.yaml#L353


Survey stuck at second question, does not accept DTMF

Been troubleshooting for over a day and no matter how many times i call back the survey gets stuck at the 2nd question. I'm trying to figure out how to add defaults in case a question fails and move on to the 2nd question. I think it's not a good practice to have callers get stuck in the same question for some reason the survey breaks.

@pundaripothini I am also having the same issue, found any solution?

No solution, I abandoned this project and rebuilding everything
from scratch.
On Wed, Aug 28, 2019 at 2:13 AM Jothikannan<EMAIL_ADDRESS>wrote:

@pundaripothini https://github.com/pundaripothini I am also having the
same issue, found any solution?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/TwilioDevEd/survey-node/issues/7?email_source=notifications&email_token=AH5F3WTKS6TXOT376IHVK5DQGYQR3A5CNFSM4ILYRMXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5KD77I#issuecomment-525615101,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AH5F3WTPY35YQV6NVP456G3QGYQR3ANCNFSM4ILYRMXA
.

Hi @pundaripothini,
It looks like the dependencies needed updating. I also added some better logging to help in debugging.
Please have a look at master branch and let me know if you have any further issues running this app.
Thank you

Now it's working fine, thanks :)


Slot fillis and fastText, why did make this?

Hi, I want know why were done the slot fill and the fastText model of the Deeppavlov's DSTC, and how to make simillar models. I'm creating an DSTC-simillar chatbot in my enterprise, and my model does not work acceptabliy with the DSTC's conventional model.
If anybody will be reply me this, I thanks for this.

Hi
DSTC model is best documented here. The idea is that the go_bot models consists of three modules: intent classifier, slot filler (or named entity recognition model) and a dialogue policy module. Intent classifier is optional. Therefore to train your own model you have to

train a ner model for your type of slots
train a final policy network.


[Choreo-Connect] Support policies at operation level

Purpose
Support policies at operation level for Choreo Connect similar to Synapse gateway.

Related PRs
https://github.com/wso2/product-apim/pull/12926
https://github.com/wso2/product-microgateway/pull/2983
Related Issues
https://github.com/wso2/product-microgateway/issues/2756

This PR is currently onHold. Keeping this PR on hold until the policy version changes are made to both carbon-apimgt and apim-apps.


Update plan-defender-for-servers-select-plan.md

add MDVM for the index

@bmansheim
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Resolving the merge conflict shows that the change has already been made in the article.


schema for aws-windows-deployment-manifest.json

In the documentation for creating ASP.NET Core applications with Elastic Beanstalk using the Toolkit for Visual Studio, under the 'Customizing the Manifest' section, it mentions that "AWS has defined a JSON schema for the aws-windows-deployment-manifest.json file". However, when I installed the toolkit, it did not have the link to the schema, and I cannot find any link to the file.

Thank you for reaching out, it looks like we need to update the documentation.
Can you try one of the following, and let us know if you get schema assistance in the editor:
Add "$schema": "https://aws-vs-toolkit.s3.amazonaws.com/JSONSchemas/aws-windows-deployment-manifest-schema.json" to the top of your json file, for example:
{
  "$schema": "https://aws-vs-toolkit.s3.amazonaws.com/JSONSchemas/aws-windows-deployment-manifest-schema.json",
  // rest of json here
  "manifestVersion": 1,
  "deployments": {
    "description": "hello"
  }
}

or
Paste https://aws-vs-toolkit.s3.amazonaws.com/JSONSchemas/aws-windows-deployment-manifest-schema.json directly into the Schema dropdown in Visual Studio

both methods work 😊


[Suggestion] Consider using a more permissive license

Greetings!
I'm currently faced with a need to implement 2D sprite drawing functionality in my Veldrid-based project and I've stumbled upon your
SpriteBatch implementation.
I'm looking to trying it instead of rolling my own but I'm concerned with the current license it uses.
Any chance of switching to MIT or something similar?
Thanks!

The current license is a weak copyleft license. Is there any part of the license that prevents you from incorporating it into your project?
I don't want to change licenses for casual reasons, MPL 2.0 is less viral than other copyleft licenses, or rather, it doesn't try to force propagation of the license to more files.
The only requirements would be notification of the license and disclosure of files licensed under the same license.
What do you think?

I must admit that I'm not a lawyer and I don't have firm understanding of how weak copyleft licenses work in practice, it's exactly the reason why I'm struggling to understand in which ways I can use the code provided under such a license without hurting anybody.
Of course it's not an excuse and I should've probably did my research on it before asking, but the problem is that the amount of time required for me to fully understand how it works quite probably exceeds the time I need to implement such a library myself, that's why I've decided to just ask whether it's possible (well, that seems to be a casual reason...).
I'm familiar with the popular strong copyleft (GPL/AGPL, etc.) and permissive (MIT, BSD 2.0, etc.) licenses - they're either way 'don't use without opensourcing all the other stuff' (in case of GPL and derivatives), and 'feel free to use and transform but include the copyright notice to thank the authors' (in case of MIT and other permissive ones).
The 'weak' nature of MPL 2.0 is what concerns me - what if I decide, for example, to reuse some part of the batching code for a separate text renderer? What if I separate the common parts in a separate file, then rewrite the original ones to use that shared code?
Publishing such modified files just to comply with the license for me seems strange without including the other parts that make it work, and since they wouldn't become MPL'ed automatically, looks like I'm not legally obliged to do so, and if it's a deep part of a closed-source system, it may be hard to extract the modified parts in such a way that it becomes usable. I'm aware that lack of proper concept separation is a possible code smell, but situtations may vary, and there are always legacy code projects that are in a process for revamp.
I can't just take and integrate someone's work before making 100% sure I won't hurt anybody's IP or other things in the process. Finding out that you've misinterpreted a clause or two and unknowingly disserved the original authors is no fun for me (I tend to be a very cautious person).
I don't insist on changing it, just speaking out about my concerns why I'm not already using it in the first place. Thanks for answering!

The license has been changed to MIT, sorry for the delay.


Reexporting module as named export for module library

Hi,
I am trying to use dts-bundle to export a bundle as a module library. I am re-exporting all the exports from another file, and while this works without bundling it doesn't seem to when bundled.
My question is really 2-fold.

Is this a gap/bug in the dts-bundle library?
What should the bundle.d.ts look like?

This is my minimal example. Consider I am trying to publish an 'animals' npm package. It's very simple consisting of the following.
mammals.ts
export class Monkey { }
export class Lion { }
export class Tiger { }

index.ts
import * as mammals from './mammals';
export { mammals }

I want to use it as follows within some other code in another module somewhere
zoo.ts
import { mammals } from 'animals';
new mammals.Lion();

If you create a bundle this using the command
dts-bundle --name bundle --main index.d.ts --outputAsModuleFolder

You get the file
bundle.d.ts
export { mammals };

export class Monkey {
}
export class Lion {
}
export class Tiger {
}

which leads to a typescript error 'Cannot find name mammals'
The initial d.ts files look like this:-
mammals.d.ts
export declare class Monkey {
}
export declare class Lion {
}
export declare class Tiger {
}

index.d.ts
import * as mammals from './mammals';
export { mammals };

Similar edge case,
export { value as anotherName } from './some-file'

Will generate
export const value: number

instead of

Hey did you guys find a solution for this?

Better off writing something of our own at this point...

Hahaha yeah this is my first time working with declaration files so I'm surprised there's no automated way of creating these that are... more robust.
@shanehsu I figured out a workaround that's not too bad using namespaces. You would modify the above example as...
mammals.ts
export namespace mammals {
    export class Monkey { }
    export class Lion { }
    export class Tiger { }
}

index.ts
export { mammals } from './mammals';

This actually feels nicer as we don't need to import * as just to export again


Add default site-wide og:image to config.toml param

Add a default site wide og:image tag that can be
overridden in each episode.
See: https://gohugo.io/functions/param
Closes mattstratton/castanet#187
Signed-off-by: Rajesh Duggal<EMAIL_ADDRESS>

This change is

@mattstratton can this same technique be used for the "locale" and perhaps some other vars? Thoughts?

I'm trying to make sure I understand what this is doing - this means you do NOT want to use the hard-coded name for default, but be able to specify one?

@mattstratton can you confirm that currently with castanet when you visit the website's home page there is no og:image tag in the html.  So when people share a link to the website home page (or any other non-episode page) on facebook, facebook doesn't see an og:image and so it tries to guess which image to show in the posting.  Website owners should be able to specify a default website og:image tag, and that value should be overridden if an image is specified in each episode's web page.  Do you agree? And does this code make that happen?

@mattstratton let me know if you need additional clarity. Thanks!

Sorry for the delay on reviewing this - I'm going to try to puzzle through it in the next few days before merging.

I'm going to close this PR since things have drifted since it was submitted, and I will handle it in #187 which I need to get around to soon anyway :)


Alex's TC Submission

Documentation
Here is my submission for the full stack coding challenge. Please feel free to ask any questions and I would be more than happy to explain my rationale or elaborate more on my thoughts.
Thank you in advance for the review!
requirements

<EMAIL_ADDRESS><EMAIL_ADDRESS>
install project dependencies
yarn

build static files
yarn build

start the node server
yarn start

The node server handles both static files and the WebSocket connections.
Visit: http://localhost:3000 in your browser to sign up and add your own message of the day!
Take a peek at server/data.js if you'd like to log in as an existing user.
development
If you want to develop with webpack and have some minor hot-reloading do the following:
yarn start:dev

This will use webpack-dev-server to serve up your static assets.
(Accessible at http://localhost:8888)
You'll still need to fire up the node server with
yarn start

to handle the websocket connections. (Still on port 3000)

@alexander-daniel How can I resolve this issue?

@alexander-daniel I switched to the branch alex-challenge and ran both yarn and yarn start:dev. I was then directed to http://localhost:8888:


Adds tenantId field to sign in / up screen so that users can change the tenant being used

Adds a new field for tenantId that has a default tenant Id in it
Saves the tenantId chosn by the user in localstorage so that it can be later picked up when calling the signinup API call
Modifies the addTenant script to take a tenantId as the first param
Updated the readme to talk about addTenant

@deepakprabhakara I noticed one small issue - the client ID is of the form "tenant=${tenant}&product=${product}", and if I give clientId: "tenant=someRandomString&product=${product}" to the ${jacksonApiUrl}/api/oauth/token (with the correct auth code), it still works.
Shouldn't the ${jacksonApiUrl}/api/oauth/token API also validate the clientId?


research Myths and Facts to add to the database

Follow and search through The Khive community posts on twitter:
https://twitter.com/thekhive?lang=en
***have to work extremely hard to make sure our data is Accurate
feel free to do your own research elsewhere (google, blog posts, news)
once you do research... for now... create a document and add your document as a comment on this issue
** make sure we all have access to your document and make sure that each piece of data that you find is ACCURATE and PlEASE INCLUDE THE URL(receipt of where the data came from) this is very crucial to the impact of our site

currently all data in this application is seed data, so for now when you add data, put it in the seeds.rb file and once you push your code to your forked repository, submit a pull request so we I can merge your code.

Malasia is adding to pipeline currently


Serverside Auth using Java Library Example

Is auth possible using the "sever" library? It seems as if it was in the past, but I can't find any examples today.
https://github.com/firebase/firebase-simple-login-java

@afischer custom authentication is supported on the server using the Java client library, you can find more examples here:
https://firebase.google.com/docs/auth/server/

The documentation link might be pointing something else. Shall you share the correct reference? I am also in the need to implement server-side java auth system with firebase.


[bug?] "this" is possibly undefined inside class method.

TypeScript Version:  2.2.1
Code
I've got a class method that looks like this:
 updateHeight() {
     if (this.frame) cancelAnimationFrame(this.frame)

     this.frame = requestAnimationFrame(() => {
         const el = ReactDOM.findDOMNode(this.foo).children[0]
         const height = el != null ? el.clientHeight +
             this // <-- HERE, error line number points here
                 .props.padding || 0 :
             0
         this.setState({ height })
         this.frame = 0
     })
 }

Expected behavior:
It should work.
Actual behavior:
Instead TypeScript says
ERROR in ./src/foo.tsx
(XX,XX): error TS2532: Object is possibly 'undefined'.

I can work around the problem for now, by casting this to any like so:
 updateHeight() {
     if (this.frame) cancelAnimationFrame(this.frame)

     this.frame = requestAnimationFrame(() => {
         const el = ReactDOM.findDOMNode(this.foo).children[0]
         const height = el != null ? el.clientHeight +
             (this as any) // <-- HERE, works fine now.
                 .props.padding || 0 :
             0
         this.setState({ height })
         this.frame = 0
     })
 }

Seems like a bug, how can this ever be undefined?
The error specifically happens on that line where this is, not on the .props.padding line, which is hinting to me that it isn't props that could be undefined (unless the error is pointing to the wrong line?).
This is a React component.

I tried to make this self-contained, but the error does not occur:
class X {
    props: any = null;
    updateHeight() {
        requestAnimationFrame(() => {
            const el: any = null;
            const height = el != null ? el.clientHeight +
                this // <-- no error
                    .props.padding || 0 :
                0
        });
    }
}

Please provide a self-contained repro as indicated in the template instructions.

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.

I'm not sure how to replicate in a simple way. The code I have is much more complex than that example, and yes that example works fine, but I have some private code I'm not allowed to share, and it is much bigger, and the problem does happen. Oh well, Maybe someone else will stumble on it with a non-private example sometime.


Use sphinx's exclude_patterns for ignore pattern

Context
An example case is when having doxygen source folder generated in the top-level sphinx source directory. In that case the users puts in the doxygen folder in exclude_patterns. By default this is not in the autobuild ignore, so it will just loop as the doxygen-sphinx builder constantly re-generates the doxygen source.
Proposal
Add the exclude_patterns from sphinx by default in the autobuild ignore (expanding with the conf.py path). The files there are never meant to be source files that sphinx uses, so it should be safe.
Having this as a default would make the doxygen configuration portable under the vcs, so the user wouldn't have to guess what flags to use for autobuild
Tasks and updates
No response

(Is there a way to have EBP bot not have amnesia across multiple projects?)

Hello. I use sphinx-autoapi, Unfortunately when I activate autoapi_keep_files for faster builds, files are stored in the source directory and sphinx-autobuild detects new files after each build and loops.
Is there a workaround way to exclude files to avoid rebuild-loop ? (or should I use the merge request patch ?)