Update 1.vue-instantsearch.md

since RC9 autoImports:dirs is deprecated on some environments like Vercel the build fails with the old import statement. This version should work fine on all envs i tested.
Example Error:
2022-09-22T08:38:15.798Z	c0351ce2-5adc-45af-b96d-54647a71d8e6	ERROR	[nuxt] [request error] [unhandled] [500] Directory import '/var/task/node_modules/vue-instantsearch/vue3/es' is not supported resolving ES modules imported from /var/task/chunks/app/server.mjs
Did you mean to import vue-instantsearch/vue3/es/index.js?
  at new NodeError (node:internal/errors:372:5)
  at finalizeResolution (node:internal/modules/esm/resolve:433:17)
  at moduleResolve (node:internal/modules/esm/resolve:1009:10)
  at defaultResolve (node:internal/modules/esm/resolve:1218:11)
  at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
  at link (node:internal/modules/esm/module_job:78:36)

Hi @podlebar
Have you verified that when changing the path to this the module and instantsearch integration will work as planned? I had problems in the past when changing the path to the lib did not fix the issue even though terminal was recommending to do it.

yes.. i did test it in a production environment where i use this module with Vue Instantsearch components.

Ok, thanks for that. Merging! :)


Ionic App Crashed when saving large array

I'm using this plugin in my ionic 4 project, my app will crash when trying to save large array (500++ elements) to ngxs state with async-storage-plugin (use ionic storage plugin example given). When i'm using the @ngxs-labs/storage-plugin which internally using localStorage and sessionStorage, the app is working fine without problem.
Any help will be highly appreciate. Thank you.

@xsoul can you provide a reproduction repository?

Sorry for late reply. May you kindly give me some guideline what kind of repository I should prepare? Thank you

Simple reproduce where we can confirm your behaviour

I don't have the large json file, but I manage to make it work with Indexeddb, the Sqlite will crashed during the serialization in localForage._setItem method, the code below causing my entire vs code debugger freeze and then crash the app. No error found so I can't provide any detail error message.
dbInfo.serializer.serialize(value, function (value, error)
Another problem is, both indexeddb and sqlite will not persist the data, the data will being clean up after reboot application (android), I can see from Chrome devtools that the indexeddb is perfectly fill up with data, but after reboot app, the data will clean up.
The app work perfectly with ngxs storage plugin with localstorage (but can't support large amount of data)


How to reverse reference level in Cox regression output?

With a categorical covariate with 2 levels: "A" and "B", it looks like "A" is kept as reference level, so that cox regression output shows hazard ratio of B to A.  What if I'd prefer the reversed hazard ratio of A to B (so that "B" is reference level")
To clarify, in R, this is done via "factor" and then you can set a reference factor of "B", for example.
Is this possible in lifelines?

Hey @pavopax - just so I'm clear, can you show an example of what this might look like in R code?

sure:
library(dplyr)
library(forcats)
library(survival)

N <- 20
df <- data_frame(
  time=rexp(N),
  event=as.integer(rbinom(N, 1, .5)),
  treatment_=c(rep("control", N/2), rep("active", N/2)))

cox <- coxph(Surv(time, event) ~ treatment_, data=df)

In the model summary below, "treatment_control" is HR of control:active , where active is the "reference" since it is alphabetically before "control"
> cox
Call:
coxph(formula = Surv(time, event) ~ treatment_, data = df)

                   coef exp(coef) se(coef)     z    p
treatment_control -0.373     0.689    0.917 -0.41 0.68

And I'd like to see the reverse HR: active to control, where control is the reference ((common in pharma/biotech)
df$treatment_  <- df$treatment_ %>% as.factor() %>% forcats::fct_rev()
cox <- coxph(Surv(time, event) ~ treatment_, data=df)

> cox
Call:
coxph(formula = Surv(time, event) ~ treatment_, data = df)

                 coef exp(coef) se(coef)    z    p
treatment_active 0.373     1.452    0.917 0.41 0.68

Now, this shows me the desired hazard ratio, which I obtained by reversing the "treatment_" factor variable via fct_rev()
(It is actually easy to get this hazard ratio: exp(coef) is just 1/exp(coef) from the first cox model )

Let me know if this solves your question: in lifelines, all the processing & encoding is done outside of lifelines. That is, before the dataframe even hits lifelines, it should be encoded as you wish. So it's up to you whether the baseline is control or treatment in the dataframe column. The inference should proceed as normal, and the resulting cph.print_summary should represent the choice chosen.
Popular encoding functions are available in the patsy library (which has a R-style formula system) and Pandas get_dummies function (but this doesn't allow you wish to chose as the baseline.
df = pd.DataFrame.from_records([
  {'t': 1, 'e': 0, 'cata': 'control'},
  {'t': 2, 'e': 0, 'cata': 'treatment'},
  {'t': 3, 'e': 0, 'cata': 'treatment'},
  {'t': 4, 'e': 0, 'cata': 'control'},
  {'t': 5, 'e': 0, 'cata': 'treatment'},
  {'t': 6, 'e': 0, 'cata': 'control'},
])

df = pd.get_dummies(df, columns='cata')
# choice is now yours to make either baseline, so either:
del df['cata_control']
# or
del df['cata_treatment']

cph = CoxPHFitter()
cpf.fit(df, 't', 'e')
...

Yes, this makes complete sense.
As suggested, I will make dummies with pd.get_dummies(drop_first=False) and then drop my "reference" level column from the data frame.
And I fully agree with your philosophy of "do all processing/encoding outside of lifelines."
So the modification could instead be made in pd.get_dummies() as discussed at https://github.com/pandas-dev/pandas/issues/12042#issuecomment-343294545. For future viewers, a more general relevant thread is at https://github.com/pandas-dev/pandas/issues/8918.
Issue can be closed.


[Feature] Utilities for downsampling images

Some of the imaging data is very large and of higher resolution than what we need for building an average template.
Would be useful to have utilities for cropping and for downsampling/resizing images in an efficient way.
A basic chunked downsampling by 2 (producing a pyramid of resolutions) has been implemented in the stack-to-chunk package.
Some preliminary work on more generalised resizing can be found in this branch of our stack-to-chunk fork.
We may start adding some utilities to that effect here, but if they end up being more generally useful, they may be moved to stack-to-chunk or to brainglobe-utils over time.

Downsampling addressed in #21
Cropping maybe best done in napari? Or via mask that was estimated in napari widget?

If we trust the brain masks we estimate, cropping can be automated by leaving a fixed margin of empty planes on each face of the mask extents. This would resulting is cropping if the images extends beyond the margin, and in padding where the mask touches the image edge. On one hand, having a "standard" small margin around the brain is beneficial for registration and on the other hand, it would ensure we don't carry around too many unnecessary voxels (those outside of the brain).

Functionality for cropping implemented in #32 - can we close this @niksirbi ?


Orchestration after migration - route not found

If you migrate, and leave it, then the orchestration tries to run the new migrated config, it fails with route not found  (Not sure if this is UI or migration tool or this repo)

(https://keboola.zendesk.com/agent/tickets/10010, https://keboola.zendesk.com/agent/tickets/10012)

this one is fixed see https://github.com/keboola/config-migration-tool/pull/67


Documentation of files

The old Readme.md that used to document the content of the various files is very outdated, this is a tentative update. I also take the liberty to refactor things a bit to have a more sensible structure.

Is it intended that it also modifies a lot of files in ways that is not related to documentation?

Just making sure!

I’d like an outsider’s look to see if it is understable, can I let you know when this is reasonably ready for a review? :)

Please do. :)

Some comments/remarks gathered while putting this together. Probably will turn this into an issue.

PCUIC File
Issues

Syntax/PCUICTactics.v
should this be in Syntax or in utils?

utils/PCUICUtils.v
nothing to do here, move to template utils

utils/PCUICOnOne.v
same, move to template utils (merge with All_Forall?)

utils/PCUICSize.v
merge with AstUtils?

Syntax/PCUICInduction.v
merge with AstUtils?

Syntax/PCUICDepth.v
merge with AstUtils?

utils/PCUICPretty.v
merge with AstUtils? Why do we have print_term and string_of_term?

Syntax/PCUICPosition.v
Equality should depend on position, not the other way around?

Syntax/PCUICNamelessDef.v
subsumed by PCUICAlpha, to be removed

Syntax/PCUICClosed.v
what is the point of this given that we have OnFreeVars? Should we try and merge them?

Syntax/PCUICRenameDef.v
this is only 60 lines, and has a weird dependency on typing for something in "syntax", we should probably do something (at least change the name). Also, there is a concurrent notion in PCUICParallelReduction.

Syntax/PCUICInstDef.v
similar to PCUICRenameDef.v

Syntax/PCUICLiftSubst.v
how much of this should go into files

Syntax/PCUICContextRelation.v
made this a part of BasicAst, where context_decl is first defined

PCUICContextSubst.v
Is this worth keeping?

PCUICCasesContexts.v
similar to PCUICContextSubst.v

Conversion/PCUICNamelessConv.v
subsumed by PCUICAlpha, to be removed

Typing/PCUICNamelessTyp.v
subsumed by PCUICAlpha, to be removed

Conversion/PCUICWeakeningEnvConv.v
should contain the right lemmas which are for now in PCUICWeakeningEnvTyp.v

Conversion/PCUICUnivSubstitutionConv.v
same as for PCUICWeakeningEnvConv.v

Conversion/PCUICOnFreeVarsConv.v
should be renamed/moved into other files

Conversion/PCUICClosedConv.v
should be renamed/moves into other files

Typing/PCUICClosedTyp.v
this is not about stability of typing, does putting it with the others still make sense?

Typing/PCUICContextConversionTyp.v
there is no PCUICContextConversionConv counterpart, this is weird

PCUICReduction.v
needs a bit of cleaning up to present the congruence lemmas properly

PCUICGlobalEnv.v
should this be integrated to EnvironmentTyping.v? Nothing specific to typing here

PCUICGeneration.v
very short, should it be merged into Typing.v?

PCUICInversion.v
how much is this redundant with the equivalence bidirectional <-> undirected? should we mention this is a consequence of confluence?

PCUICEqualityDec.v
does this belong here or in the safe-checker?

PCUICSN.v
try and minimize dependencies?

PCUICSafeLemmata.v
should these lemmas be moved to other files where they belong?

PCUICSubstitution.v
there seems to be a lot of mess in this file, does all of it belong here?

PCUICCumulativity.v
maybe change the name to be clearer?

PCUICParallelReductionConfluence.v
should we change rho’s name? it is very uninformative as is

PCUICConfluence.v
also contains properties relating eq_term and reduction (eq_term is a simulation for confluence), should we split that apart?

PCUICWellScopedCumulativity.v
the name equality is very confusing here imho

PCUICConversion.v
There’s a lot here, putting forward the interesting bits or splitting the file might make sense

PCUICContexts.v
Not sure what the coherence is here

PCUICArities.v
There’s not much about arities here, maybe could be integrated into PCUICSpine (and maybe other places)?

PCUICSpine.v
Not sure what’s happening here

PCUICCanonicity.v
Does not prove canonicity at all… Should we still prove a form of progress here? Use other forms that are proven elsewhere more or less implicitely?

PCUICConvCumInversion.v
This looks like something we should do otherwise using the relations we already have

PCUICPrincipality.v
Should we keep this now that we have the proof using bidirectional typing?

Bidirectional/BDEnvironmentTyping.v
should ideally be integrated into EnvironmentTyping

Safe Checker file
Issue

PCUICWfEnv.v
Does this belong where it is? Maybe it should be integrated into

Some comments/remarks gathered while putting this together. Probably will turn this into an issue.

This is issue #626 .


Add caching

This adds caching to gulp-uglify.
We needed this because of the amount of JS files and delta compiling to speed up our dev environment.

@terinjokes I'm using gulp-uglify to uglify a concatenated file, so checking if one of them changed and caching it doesn't help me...can we get some caching going on here, too?

@ilanbiala One have to know which part of your concatenated file changed, then determine which part of the uglified file corresponds to it and replace the latter by the uglified former.
That won't work. The determination part is the problem: Nobody can predict which optimizations uglify will perform  in the future.
The obvious solution to your problem:

uglify using incremental-builds
concat

You may swap the steps during deployment, if it makes a difference in size at all.

Browserify takes about 700ms, whereas Browserify + vinyl-buffer + uglify takes around 3s.
Very annoying!

I might merge this if it's cleaned up

Great, what would you like me to clean up?

Oh, nothing. I just like my code clean.

...six months later

Actually, do not want. Maybe try using this other tools that don't actually address your issue

We had to ditch gulp-uglify, our builds on average were taking ~54sec. As soon as we turn it off, our build finishes in 4sec. and this is a huge eCom site...

You can try using gulp-fs-cache. It speeds our uglify task from 50sec to 2sec (it only needs to uglify app code, vendor does not change a lot).
https://github.com/bancek/gulp-fs-cache

Well this was a bit weird.


Changed Rank and its initialization for SRP

Fixed!!!

No, not really. Check the unit tests.

And, that's it for Rank.
We can safely merge this for now as SRP is followed for Rank, and the unit tests are cleared.

Moving on to #7

Actually we seem to have made a mistake of fixing rank instead of file. So let's close #6 and reopen #7. We know the drill...


ChipSet Multiselection limit

Feature request type
Enhance component
Component name
MudChipSet
Is your feature request related to a problem?
I want to define the maximum number of Chips a user can select in multiselect ChipSet
Describe the solution you'd like
ChipSet should have a logical parameter such as MoreChipsSelectable so that the MudBlazor user can create their own condition that will determine when the limit has been reached
Have you seen this feature anywhere else?
No response
Describe alternatives you've considered
No response
Pull Request

[X] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

There's a SelectedValuesChanged event that you can add logic to. You can get the Count and if it's over your limit, display a message.

There's a SelectedValuesChanged event that you can add logic to. You can get the Count and if it's over your limit, display a message.

Displaying a message isn't enough. I need to disallow for more selections after reaching limit.

Its not only ChipSet that has MultiSelection. If we bring this kind of feature, all components should have this (like select etc.).

This seems to work correctly:
<MudChipSet MultiSelection Filter SelectedValues="selected"
            SelectedValuesChanged="SelectedValuesChanged">
    <MudChip Text="Milk"></MudChip>
    <MudChip Text="Eggs"></MudChip>
    <MudChip Text="Soap"></MudChip>
    <MudChip Text="Cornflakes"></MudChip>
    <MudChip Text="Salad"></MudChip>
</MudChipSet>

@code {
    ICollection<object> selected;

    void SelectedValuesChanged(ICollection<object> newSelected) {
        if (newSelected.Count <= 3)
            selected = newSelected;
    }
}

https://try.mudblazor.com/snippet/maGcPmkAdnGCMpQo


MongoError: Topology is closed, please connect

Hi, I am receiving this error when inserting a documentMongoError: Topology is closed, please connect
This is my code
const monk = require('monk')
const url =<EMAIL_ADDRESS>const db = monk(url);
const lar = db.get('listingsAndReviews')

lar.insert({name: "Lovely Loft", summary: "A charming loft in Paris", bedrooms: 1, bathrooms: 1})

// db.then(() => {
//   console.log('Connected correctly to server') //this works
// }).catch((error) =>{
//   console.log(error);
// })

What have I done wrong?

did u got solved @GodBleak ...

@ganeshtedi I moved on from monk when I closed this. I used MongoJS and got the same issue. I figured out that in MongoDB Atlas I couldn't use the URI string for version "3.0 or later" the URI string for version "2.2.12 or later"
Looks like this:
mongodb://godBleak:@cluster0-shard-00-00-hcldh.mongodb.net:27017,cluster0-shard-00-01-hcldh.mongodb.net:27017,cluster0-shard-00-02-hcldh.mongodb.net:27017/test?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin&retryWrites=true&w=majority

I am still stuck on this issue as well.
how i defined my mongo connection:"
mongoose.connect(keys.mongoURI, {
useUnifiedTopology: true,
useNewUrlParser: true,
})
.then(() => {
console.log("DB Connected!");
})
.catch(err => {
console.log(DB Connection Error: ${err.message});
});
const User = mongoose.model('user');
"
how i defined my query:"
const existingUser = await User.findOne({name: name}}
"
error: "
MongoError: Topology is closed, please connect
"

@shaqshaw1 what does your keys.mongoURI look like?

Try connecting using MongoClient, in this manner :-
const MongoClient = require('mongodb').MongoClient;
const client = new MongoClient(, { useNewUrlParser: true, useUnifiedTopology: true  });
client.connect( err =>{
if(err) return console.log(err)
const db = client.db("");
})

`const MongoClient = require('mongodb').MongoClient;
const uri = "mongodb+srv://root:@cluster0.vksdv.mongodb.net/myFirstDatabase?retryWrites=true&w=majority";
const client = new MongoClient(uri, { useNewUrlParser: true, useUnifiedTopology: true });
client.connect(err => {
const collection = client.db("chatapp").collection("chat");
// perform actions on the collection object
try {
collection.insertOne( { item: "card", qty: 15 } );
} catch {
throw(err)
}
console.log('connected')
});`

Topology is closed, please connect
checked db names etc

Getting the same thing when trying to preform:
app.post("/bitChange", async (req, res) => {
  const mongoClient = await client.connect();
  const dbo = mongoClient.db("leads_db");
  try {
    await dbo
      .collection("bit_rate")
      .updateOne(
        { name: "bit" },
        { $set: { change: req.body.change } },
        function (error, record) {
          if (error) throw error;
          res.json("done");
        }
      );
  } catch (e) {
    console.log("e");
    throw Error(e);
  } finally {
    client.close();
  }

mongodb-client does not allow for multiple connections to be on. So empty the 'finally' block by removing client.close. It worked for me but the warnings are still persisting.

MongoClient.close returns a promise and needs to be waited on to work without errors or warnings. A new instance of MongoClient needs to be allocated either via static MongoClient.connect or via instance connect, like this.
async function insertOne(doc: any) : Promise<void>
{
  let client: MongoClient | undefined;

  try {
    client = await MongoClient.connect(uri, {
                          useNewUrlParser: true,
                          useUnifiedTopology: true
                        });

    // OR
    client = new MongoClient(uri, {
                          useNewUrlParser: true,
                          useUnifiedTopology: true
                        });
    await client.connect();

    const col = client.db("mydb").collection("mycol");

    await col.insertOne(doc);
  }
  finally {
    if(client)
      await client.close();
  }
}

Sometimes the incorrect password or database name or collections name occurs this error. However, you can add allow access from anywhere to resolve this issue.

Even I got the same error @GodBleak , then I opened Mongodb atlas and in "Network Access", I changed the IP address as "<IP_ADDRESS>/0  (includes your current IP address) ". Then my problem got resolved.

@yashwanth2407 is there any way to do this without using aMongodb atlas? A command?

@rav3n11 This opens your database instance to anyone on the Internet to probe for vulnerabilities. Not a good idea to follow this advice in any form.


run coppeliasim.sh

excuse，i'm the new CoppeliaSim,      what  directory should i run,            my directory dong not have coppeliaSim.sh.

I think you have installed the previous version of V-REP, Try again to install the CoppeliaSim itself, then when you have installed, try to unzip the file. after that, open the CoppeliaSim file, and from the same file page -->open a new terminal <type "./coppeliaSim.sh".
Best regards


Unable to import the solution due to dependencies

Hello,
We are unable to import the solution due to dependencies the following error occurs when trying toinstall with the latest solution (1.4.2)
There are missing dependencies. Install the following solutions before installing this solution: "Active"

Hi @alex188888,
This is a weird issue, "Active" is an internal CRM solution which every system contains. There should not even be a reference to that solution from inside the Xrm-Html-Templating solution.
Is this only inside one organization, or can you reproduce this on another one as well?
Did you install Xrm-Templating-Language before? This needs to be imported before importing the Xrm-Html-Templating solution.
Kind Regards,
Florian

So as you expected the issue was related to Xrm-Templating-Language which was not installed before rm-Html-Templating.
However after creating a simple template it does not appear on the available templates on the email entity, watching the video guide it seems that it was on the old interface

Did you really save your template?
There is no filter logic on the email lookup besides the default filtering for active records.
If your template is not showing, you probably forgot to save.


Memory and Training Speed Computation

Hi, thanks for your great work! Would it be possible to share the script to calculate the memory usage and training speed presented in Figure 7? Thanks a lot!

For the GPU memory, you can just use nvidia-smi to check the GPU usage for each device.
For the training speed, you can use the time package to calculate.


Add danielle-pankey to Contributors list

@D-Pankey, I'm quite elated about your PR. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a PR and learned that I merged it?


npm run build doesn't work

Hello!
I'm trying to debug what I think is a bug in @prismicio/client, but I can't build to test my changes...
Versions

@prismicio/client: 6.7.0
node: 16.15.1

Reproduction
run npm run build

Additional Details

Here is the log I get:

<EMAIL_ADDRESS>build

> siroc build
ℹ Beginning build                                                                          @prismicio/client 16:36:12
✔ Built @prismicio/client      index.d.ts   5.0 kB                                         @prismicio/client 16:36:16
ERROR  [PARSE_ERROR] Unexpected token (Note that you need plugins to import files that are not JavaScript)
at /Users/adam.a.butterfield/projects/myaxa-web/node_modules/@prismicio/client/src/index.ts:40:7
at src/index.ts:40:7
at error (node_modules/rollup/dist/shared/rollup.js:198:30)
at Module.error (node_modules/rollup/dist/shared/rollup.js:12560:16)
at Module.tryParse (node_modules/rollup/dist/shared/rollup.js:12937:25)
at Module.setSource (node_modules/rollup/dist/shared/rollup.js:12842:24)
at ModuleLoader.addModuleSource (node_modules/rollup/dist/shared/rollup.js:22284:20)
ERROR  [PARSE_ERROR] Unexpected token (Note that you need plugins to import files that are not JavaScript)
at /Users/adam.a.butterfield/projects/myaxa-web/node_modules/@prismicio/client/src/index.ts:40:7
at src/index.ts:40:7
at error (node_modules/rollup/dist/shared/rollup.js:198:30)
at Module.error (node_modules/rollup/dist/shared/rollup.js:12560:16)
at Module.tryParse (node_modules/rollup/dist/shared/rollup.js:12937:25)
at Module.setSource (node_modules/rollup/dist/shared/rollup.js:12842:24)
at ModuleLoader.addModuleSource (node_modules/rollup/dist/shared/rollup.js:22284:20)
ERROR  undefined                                                                                16:36:16
ERROR  undefined                                                                                16:36:16
✔ Finished building in 4.0s                                                                @prismicio/client 16:36:16
For convenience, line 40 is:
export type { CreateClient, ClientConfig } from "./client";

Looks like it doesn't like "export type".

Steps to reproduce
run npm run build
What is expected?
Build not to fail.
What is actually happening?
Build is failing...

Hi there,
Looks like you're trying to build the package from your node_modules directory where not all dependencies are installed to build (develop) on @prismicio/client (namely looks like it's missing some TypeScript bits/plugins from the above)
Are you able to build it using the "regular" way?
git clone git@github.com:prismicio/prismic-client.git
cd prismic-client
npm install
npm run build

Happy to read more about what you think is a bug on @prismicio/client also :)

That works! Thanks!!!
I'll open another issue when I've determined where the bug is.

Follow up on the bug: Bug seems to be in node-fetch actually, where this: https://github.com/prismicio/prismic-client/blob/e7ab774be4e9d0379817e7ce7b87b3c041c64f01/src/client.ts#L1664 never resolves or throws, quite randomly.

Interesting, node-fetch should be matching this interface though 🤔
https://github.com/node-fetch/node-fetch/blob/main/src/body.js#L147-L150
Happy to look more into it if you can provide a minimal reproduction :)

I found a few issues in the node-fetch repo that smell like my issue: https://github.com/node-fetch/node-fetch/issues/137 https://github.com/node-fetch/node-fetch/issues/665
So next step is to figure out exactly why it's failing. Right not it seems quite random.


Support for defaultProps will be removed from function components

Im getting this warning while running the application in its default form:
Issue and Steps to Reproduce
app-index.js:31 Warning: OidcRoutes: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
at OidcRoutes (webpack-internal:///(app-client)/./node_modules/@axa-fr/react-oidc/dist/core/routes/OidcRoutes.js:36:23)
at Switch (webpack-internal:///(app-client)/./node_modules/@axa-fr/react-oidc/dist/OidcProvider.js:39:19)
at OidcProvider (webpack-internal:///(app-client)/./node_modules/@axa-fr/react-oidc/dist/OidcProvider.js:46:25)
at Auth (webpack-internal:///(app-client)/./src/components/Auth.tsx:19:11)
at body
Versions
"@axa-fr/react-oidc": "^6.23.1"
Additional Details

Installed packages:

    "@axa-fr/react-oidc": "^6.23.1",
    "@types/node": "20.3.3",
    "@types/react": "18.2.14",
    "@types/react-dom": "18.2.6",
    "autoprefixer": "10.4.14",
    "eslint": "8.44.0",
    "eslint-config-next": "13.4.8",
    "next": "13.4.8",
    "postcss": "8.4.24",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "tailwindcss": "3.3.2",
    "typescript": "5.1.6"

Oh thank you for this issue @pimjansen .
I will try to fix it quickly.

Oh thank you for this issue @pimjansen .
I will try to fix it quickly.

Ah great! Yeah it still works fine but im always getting a bit scared since it is shown as error in the console haha

Hi @pimjansen ,
The latest version should be OK.

Great? Is it on dev master or already released?

Hi @pimjansen , yes it is on master. Published on npm.

Hi @pimjansen , yes it is on master. Published on npm.

👌🏻


Make geoserver and geolevel nesting setup flags work

Overview
This PR with an unreasonably large diff accomplishes a few things:

updates geos interactions so that the -nX setup.py flags work
updates RESTful interaction with geoserver so that geoserver configuration works
updates settings, config.xml, and the django dockerfile to have a new place to store styles and to have accurate db info
does a bunch of automatic styling cleanup

Notes
You need to have geounits loaded for testing this PR. The easiest was to do that is with the load_development_data script. I included a commit that I'll rebase out that points to a copy of the shapefile with the lowest level polygons merged in my S3. Things will go faster if you use that one. If you do load_development_data, make sure you tell it to do all three geolevels in that import with -g0 -g1 -g2.
Also, if you opt for ./scripts/server over docker-compose up -d, you'll see a ton of geoserver errors flying by. Those are fine! They're 404s basically from checking to see if resources that don't exist already exist. It's ok, don't panic. (I panicked a lot)
Testing

do whatever incantations are required to get settings into your vm. I think this is adequate:

vagrant up --provision
vagrant rsync-auto
separately: cp django/publicmapping/publicmapping/settings.py.in django/publicmapping/publicmapping/settings.py
vagrant reload
vagrant ssh
confirm that the SLD_ROOT in settings.py is /opt/sld/

docker-compose build
./scripts/server (or docker-compose up -d if you don't want to be inundated with logs)

Confirm nesting flags work

docker-compose exec django bash
run the nesting setup flag (assuming you already have geounits loaded, otherwise, also load geounits, see the first note): ./manage.py setup -n0 -n1 -n2 config/config.xml
it should take some time and then succeed

Confirm the geoserver flag works
This is where things get fun (you didn't think they were fun yet, right?)
Creating style files depends on django-sld. django-sld is very old and I can't verify that it's not in use anywhere else, so I'm hesitant to change it yet. It uses an API for getting field information that was marked for deprecation in 1.10 and removed in 1.11. So! On to testing

docker-compose exec django bash (unless you're still in there)
install vi or nano or whatever you want to use
edit /usr/local/lib/python2.7/site-packages/djsld/generators.py to replae get_field_by_name(geofield)[0] with get_field(geofield) and save it
./manage.py setup -G config/config.xml
navigate to localhost:9091/geoserver/web/ in a browser and look at all the THINGS you made (layers, stores, styles...)

I'm having an issue here:
root@4c48da496d71:/usr/src/app# ./manage.py setup -G config/config.xml
Geoserver configuration cleaned.
Could not create Namespace
root@4c48da496d71:/usr/src/app# ./manage.py setup -G config/config.xml
Exception AttributeError: "'_MOFileParser' object has no attribute 'fhandle'" in <bound method _MOFileParser.__del__ of <polib._MOFileParser object at 0x7fa4052b1790>> ignored
Geoserver configuration cleaned.
Could not create Datastore
root@4c48da496d71:/usr/src/app# ./manage.py setup -G config/config.xml
Geoserver configuration cleaned.
Could not create Datastore
root@4c48da496d71:/usr/src/app# ./manage.py setup -G config/config.xml
Exception AttributeError: "'_MOFileParser' object has no attribute 'fhandle'" in <bound method _MOFileParser.__del__ of <polib._MOFileParser object at 0x7f1457168350>> ignored
Geoserver configuration cleaned.
Could not create Datastore

I'm getting different results when I run the command multiple times. I first couldn't create the namespace and then I couldn't create the datastore. Also, sometimes that exception is raised and sometimes it isn't.
I see that the response in _rest_config is returning a 404 each time but I'm not sure what to do about it.
I took a look at django/publicmapping/redistricting/config.py to further diagnose the issue but the refactoring made it hard to tell where the actual changes were.

Okay, I did nothing different but it worked!
root@94154ec5ce5a:/usr/src/app# ./manage.py setup -G config/config.xml
Geoserver configuration cleaned.
Geoserver configuration complete.

After having checked out another branch, I realized all the geoserver logging was being written to stdout so I checked this branch out again and ran docker-compose up in the foreground, hoping to get some insight into what was wrong with geoserver, and it just worked. ¯\_(ツ)_/¯

What is the deal with manually editing /usr/local/lib/python2.7/site-packages/djsld/generator.py Is that a versioning thing? Is it broken?

Just to add another data point, I also had the issue with: Could not create [Namespace|Datastore]. It only went away after I restarted my VM and tried again.


Rym

Source information
Tujhf
Steps to reproduce
Ei6b
Gjkt
Gykb
Expected behavior
Gjhdjj
Actual behavior
Bkbfj
LNReader version
0080ub
Android version
Honer x9
Other details
I want to join the site
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 1.1.12.
[X] I have updated all installed extensions.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[X] I will fill out all of the requested information in this form.

Rhf

Dkhcsib

Gjj

I want to join


OpenFASoC PPA Analyzer for HW

This PR adds the initial content of PyPPA, a Python PPA analyzer library based on the OpenROAD flow scripts. The changes will be split into multiple PRs to ease the review process.
Changes

Added ORFS TCL scripts, util scripts, and the sky130hd platform.
Added TypedDicts for the configuration variables in Python, and added sky130hd platform configuration in Python in platforms/sky130hd.

cc: @msaligane

@harshkhandeparkar, Can you please open an issue with all the things we would like to add? The CI is urgent. We can use something similar to OpenFASOC. @Hrancheng and @chetanya are working on it.

Let's do a demo in our next meeting. Looks great so far!

@harshkhandeparkar, Can you please open an issue with all the things we would like to add? The CI is urgent. We can use something similar to OpenFASOC. @Hrancheng and @chetanya are working on it.

Sure. Sorry for the delay, I didn't get notifications for this somehow.

@alihammoud FYI

@um-guanxiao can you please review?

is it possible to make the platform and scripts to submodules so they can keep updated? anything else looks good to me

I'll convert platforms into a submodule once https://github.com/idea-fasoc/platforms is ready. That might take time though, so this PR can be merged and followups can be reviewed, and the submodule can be created at a later stage.
The scripts folder has some custom scripts, and some of the scripts have been changed so it makes sense to not make it a submodule, which was also suggested by @msaligane.

@msaligane I have made platforms a submodule. Can this be merged now?


Do you have any example for the lazyload?

in my case, some of my page are using the lazy-load, but when i imported the JsonSchemaFormModule into my module, i will meet the error message about the BrowserModule is already loaded, i am ensure that other modules are in the same way, but the  browsermodule Error is not appeared.
so do you having any solutions in my case?
ps: i had import the BrowserModule in the app.module.ts and import the CommonModule in other sub modules
thanks a lot

Hello,
I am having this same issue.    If you need access to common directives such as NgIf and NgFor from
a lazy loaded module, import CommonModule instead.
I have made a very simple example to demonstrate.
BrowserModule is only imported from my app.module.ts.
Routing:
{path: 'lazy', loadChildren: './components/lazy/lazy.module#LazyModule' },
LazyModule imports JsonSchemaFormModule and lists it in its imports.
I like a2jsf a lot, thank you for doing and sharing it :)   But I would like to use it
in lazy loading scheme.
Please let me know if this is possible.
-- Thor

Here is a plunker showing Lazy Load not working with the above error:
http://embed.plnkr.co/Tw8yC3i35spcoTG8hQSg/
Click on 'Lazy' and then look at the console :)   The 'Not Lazy' works fine.

I am having this same issue.

Same issue here...

Hi, David Schnell-Davis.
The problem is in the Material Design Framework.   In the file
material-design-framework.module.ts
the BrowserAnimationsModule is imported.   BrowserAnimationsModule
imports BrowserModule.   Only one copy of BrowserModule is allowed and should
only be imported at the root module.
If I comment out this import, then my example works (on my local machine where I have
a copy of your git repository code).
Can you fix this and release it?
Thank you!

Hmm, I just removed lazy loading from my app because it's just a prototype anyways but I'll probably need this library to work with lazy loading later.

same issue

Unfortunately, I don't have much experience lazy loading modules, and I don't have an example.
Recent versions of this library have reduced the number of required dependencies, though I don't know if that's enough to solve this problem.
However, lazy-loading is a feature I would like to support.
Could someone post a repository with an example of what you're trying to do, so I can see exactly the problem you're running into?
I expect that sometime soon we'll be dividing this library into parts, so the core library can be loaded separately from the frameworks, which means that even if a framework, like Material Design, can't be lazy-loaded, perhaps at least the core library can be.

Lazy loading was fixed by the fix to material-design-framework.module.ts where it had imported the BrowserAnimationsModule.

I also had posted a simple plunker example of the lazy load problem here:
http://embed.plnkr.co/Tw8yC3i35spcoTG8hQSg/
It just hangs now though I don't know why.

This was fixed for me by #68 .

@Thorski
Thanks for the update. I don't currently have a good way to test lazy loading. So I'll close this for now, but it happens again, please post again so I can re-open it and take a closer look.


Property read error when rendering NPC sheet

Running with v2.2.2 in FVTT 0.7.5, I've started seeing MonsterBlocks throw the following error upon the opening of particular monster sheets:
foundry.js:4406 TypeError: An error occurred while rendering MonsterBlock5e 62: Cannot read property 'toLowerCase' of null
    at MonsterBlock5e.listsPassPercept (monsterblock.js:483)
    at MonsterBlock5e.getData (monsterblock.js:57)
    at MonsterBlock5e._render (foundry.js:4434)
    at MonsterBlock5e._render (foundry.js:5088)
    at MonsterBlock5e._render (foundry.js:16570)
    at MonsterBlock5e.render (foundry.js:4404)
    at MonsterBlock5e.render (foundry.js:5553)
    at ActorDirectory._onClickEntityName (foundry.js:16051)
    at ActorDirectory._onClickEntityName (foundry.js:25134)
    at HTMLOListElement.dispatch (jquery.min.js:2)
    at HTMLOListElement.v.handle (jquery.min.js:2)

This seems to be an error when calling the value of the NPC's passive perception. The monster blocks that I'm trying to open were grabbed from DNDBeyond using VTTAssets, but this happens with freshly-made NPCs as well. Not every NPC block gives this error, but e.g. the Grung or Lizardfolk Shaman sheets seem to be reproducing the error.
As an example, I can reproduce the error doing the following:

Create NPC actor.
Load the MonsterBlocks module.
Open the NPC sheet.
Close the NPC sheet and attempt to re-open it.

I have no difficulties opening the NPC sheet if MonsterBlocks is then disabled. Also, steps 1 and 2 are interchangable.
Please let me know if there's anything else needed to help with debugging!

This one is on my radar. It might be caused by a change in 0.7.5, or
something in the latest 5e. I'm seeing null values in places that should
just be empty strings "" which causes an error particularly for senses.
If the creature has senses, no error, but if it has no special senses it
causes an error.
It's not hard to prevent the error, but I want to verify that there isn't
something deeper wrong with thr sheet, 5e, or Core before releasing a fix.
On Sun, Oct 25, 2020, 7:45 AM Jonathan Thompson<EMAIL_ADDRESS>wrote:

Running with v2.2.2 in FVTT 0.7.5, I've started seeing MonsterBlocks throw
the following error upon the opening of particular monster sheets:
foundry.js:4406 TypeError: An error occurred while rendering MonsterBlock5e 62: Cannot read property 'toLowerCase' of null
at MonsterBlock5e.listsPassPercept (monsterblock.js:483)
at MonsterBlock5e.getData (monsterblock.js:57)
at MonsterBlock5e._render (foundry.js:4434)
at MonsterBlock5e._render (foundry.js:5088)
at MonsterBlock5e._render (foundry.js:16570)
at MonsterBlock5e.render (foundry.js:4404)
at MonsterBlock5e.render (foundry.js:5553)
at ActorDirectory._onClickEntityName (foundry.js:16051)
at ActorDirectory._onClickEntityName (foundry.js:25134)
at HTMLOListElement.dispatch (jquery.min.js:2)
at HTMLOListElement.v.handle (jquery.min.js:2)
This seems to be an error when calling the value of the NPC's passive
perception. The monster blocks that I'm trying to open were grabbed from
DNDBeyond using VTTAssets, but this happens with freshly-made NPCs as well.
Not every NPC block gives this error, but e.g. the Grung or Lizardfolk
Shaman sheets seem to be reproducing the error.
As an example, I can reproduce the error doing the following:

Create NPC actor.
Load the MonsterBlocks module.
Open the NPC sheet.
Close the NPC sheet and attempt to re-open it.

I have no difficulties opening the NPC sheet if MonsterBlocks is then
disabled. Also, steps 1 and 2 are interchangable.
Please let me know if there's anything else needed to help with debugging!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/zeel01/MonsterBlocks/issues/21, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANEL3D5HCELSXNSJYCRUPDSMQFU3ANCNFSM4S6IZY3Q
.

Fixed in version 2.2.5

Unfortunately, this problem still persists, just on a different line, and different function
foundry.js:4406 TypeError: An error occurred while rendering MonsterBlock5e 91: Cannot read property 'editing' of undefined
    at MonsterBlock5e.getData (monsterblock.js:67)
    at MonsterBlock5e._render (foundry.js:4434)
    at MonsterBlock5e._render (foundry.js:5088)
    at MonsterBlock5e._render (foundry.js:16570)
    at MonsterBlock5e.render (foundry.js:4404)
    at MonsterBlock5e.render (foundry.js:5553)
    at Token._onClickLeft2 (foundry.js:44654)
    at MouseInteractionManager.callback (foundry.js:35797)
    at MouseInteractionManager._handleClickLeft2 (foundry.js:35999)
    at MouseInteractionManager._handleMouseDown (foundry.js:35961)

That one is a different issue. Is there anything above that? Any other
errors or warnings?
On Mon, Oct 26, 2020, 2:12 AM adougherty<EMAIL_ADDRESS>wrote:

Unfortunately, this problem still persists, just on a different line, and
different function
foundry.js:4406 TypeError: An error occurred while rendering MonsterBlock5e 91: Cannot read property 'editing' of undefined
at MonsterBlock5e.getData (monsterblock.js:67)
at MonsterBlock5e._render (foundry.js:4434)
at MonsterBlock5e._render (foundry.js:5088)
at MonsterBlock5e._render (foundry.js:16570)
at MonsterBlock5e.render (foundry.js:4404)
at MonsterBlock5e.render (foundry.js:5553)
at Token._onClickLeft2 (foundry.js:44654)
at MouseInteractionManager.callback (foundry.js:35797)
at MouseInteractionManager._handleClickLeft2 (foundry.js:35999)
at MouseInteractionManager._handleMouseDown (foundry.js:35961)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/zeel01/MonsterBlocks/issues/21#issuecomment-716327877,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANEL3GHWTIXGR6BW7PQUTTSMUHLRANCNFSM4S6IZY3Q
.

Yikes, my apologies for adding to the wrong bug.  Crap. I tried to fix it, but I might have made it worse.
On Mon, Oct 26, 2020, 2:28 AM adougherty<EMAIL_ADDRESS>wrote:

Yikes, my apologies for adding to the wrong bug.
Reply to this email directly, view it on GitHub
https://github.com/zeel01/MonsterBlocks/issues/21#issuecomment-716334627,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANEL3BCITQM6M7OZ24YJUTSMUJKRANCNFSM4S6IZY3Q
.

Okay, it should be as it was before. An error throws, but the sheet should render anyway now.

Unfortunately, not :(
foundry.js:4428 Foundry VTT | Rendering MonsterBlock5e
foundry.js:4406 SyntaxError: An error occurred while rendering MonsterBlock5e 91: Unexpected token u in JSON at position 0
at JSON.parse ()
at duplicate (foundry.js:931)
at MonsterBlock5e.getData (monsterblock.js:60)
at MonsterBlock5e._render (foundry.js:4434)
at MonsterBlock5e._render (foundry.js:5088)
at MonsterBlock5e._render (foundry.js:16570)
at MonsterBlock5e.render (foundry.js:4404)
at MonsterBlock5e.render (foundry.js:5553)
at Token._onClickLeft2 (foundry.js:44654)
at MouseInteractionManager.callback (foundry.js:35797)
(anonymous) @ foundry.js:4406
Promise.catch (async)
render @ foundry.js:4404
render @ foundry.js:5553
_onClickLeft2 @ foundry.js:44654
callback @ foundry.js:35797
_handleClickLeft2 @ foundry.js:35999
_handleMouseDown @ foundry.js:35961
a.emit @ index.js:181
r.dispatchEvent @ InteractionManager.ts:1106
r.processPointerDown @ InteractionManager.ts:1307
t.recursiveFindHit @ TreeSearch.ts:173
t.recursiveFindHit @ TreeSearch.ts:113
t.recursiveFindHit @ TreeSearch.ts:113
t.recursiveFindHit @ TreeSearch.ts:113
t.findHit @ TreeSearch.ts:200
r.processInteractive @ InteractionManager.ts:1177
r.onPointerDown @ InteractionManager.ts:1252
foundry.js:11253 Uncaught (in promise) TypeError: Cannot read property 'updateEmbeddedEntity' of undefined
at Token.update (foundry.js:11253)
at Actor5e.update (foundry.js:30809)
at MonsterBlock5e.prepFlags (monsterblock.js:1009)
at new MonsterBlock5e (monsterblock.js:18)
at Actor5e.get sheet [as sheet] (foundry.js:28787)
at Token._onClickLeft2 (foundry.js:44653)
at MouseInteractionManager.callback (foundry.js:35797)
at MouseInteractionManager._handleClickLeft2 (foundry.js:35999)
at MouseInteractionManager._handleMouseDown (foundry.js:35961)
at Token.a.emit (index.js:181)
update @ foundry.js:11253
update @ foundry.js:30809
prepFlags @ monsterblock.js:1009
MonsterBlock5e @ monsterblock.js:18
get sheet @ foundry.js:28787
_onClickLeft2 @ foundry.js:44653
callback @ foundry.js:35797
_handleClickLeft2 @ foundry.js:35999
_handleMouseDown @ foundry.js:35961
a.emit @ index.js:181
r.dispatchEvent @ InteractionManager.ts:1106
r.processPointerDown @ InteractionManager.ts:1307
t.recursiveFindHit @ TreeSearch.ts:173
t.recursiveFindHit @ TreeSearch.ts:113
t.recursiveFindHit @ TreeSearch.ts:113
t.recursiveFindHit @ TreeSearch.ts:113
t.findHit @ TreeSearch.ts:200
r.processInteractive @ InteractionManager.ts:1177
r.onPointerDown @ InteractionManager.ts:1252
Promise.then (async)
MonsterBlock5e @ monsterblock.js:18
get sheet @ foundry.js:28787
_onClickLeft2 @ foundry.js:44653
callback @ foundry.js:35797
_handleClickLeft2 @ foundry.js:35999
_handleMouseDown @ foundry.js:35961
a.emit @ index.js:181
r.dispatchEvent @ InteractionManager.ts:1106
r.processPointerDown @ InteractionManager.ts:1307
t.recursiveFindHit @ TreeSearch.ts:173
t.recursiveFindHit @ TreeSearch.ts:113
t.recursiveFindHit @ TreeSearch.ts:113
t.recursiveFindHit @ TreeSearch.ts:113
t.findHit @ TreeSearch.ts:200
r.processInteractive @ InteractionManager.ts:1177
r.onPointerDown @ InteractionManager.ts:1252

Typically this error will occur, and then the sheet will re-attempt to render, having fixed the missing data that causes the error. I'm not sure how to stop the error from happening in the first place, but it normally doesn't result in the sheet failing to open.
If this still causes a complete failure to render in v2.2.6, there must be something more to it than I've seen previously. Please open a new issue with as much information about the problem as possible.

Browser (Chrome, Firefox, Electron app)
Is your server the app, self hosted, or hosted somewhere like The Forge?
Please check that this issue occurs when Monster Blocks is the only module enabled
Does this effect all or only some monsters?
What monster(s) cause this? Where did they come from? R20, DDB, homebrew?
If possible include exported JSON for an effected creature.
Include not only the error message, but a few regular console messages from right before/after so I can see if there is something else happening that might effect the rendering.
Has Monster Blocks worked for you previously, or was this the first time you tried it? If so, has anything other than Core/System/Module versions changed since the last time it worked correctly?


Ability to add 433MHz RF Span Switch

Currently I'm using 2x ESP32's, 2x 16Ch NPN optocouplers (24V to 3.3v) and 2x RSJ485 to encode 32 lights via DMX512 using switches and Homekit App and works great, each light can be manually controlled via the optocoupler wired retractive light switches, however I'm looking to reduce the need for wiring and reduce the number of components.
I came across a great tutorial on RNT: https://randomnerdtutorials.com/alexa-echo-with-esp32-and-esp8266/
which uses 433MHz RF light switches, RF receiver/ transmitters with the library provided by (rc-switch/RCSwitch.h).
The business end of the code uses an interrupt. can you advise if there is a way to add this functionality without any adverse affects?
Code snippets
RCSwitch mySwitch = RCSwitch();

mySwitch.enableReceive(RF_RECEIVER);  // Receiver on interrupt 0 => that is pin #2`

  if (mySwitch.available()) {
  /*Serial.print("Received ");
    Serial.print( mySwitch.getReceivedValue() );
    Serial.print(" / ");
    Serial.print( mySwitch.getReceivedBitlength() );
    Serial.print("bit ");
    Serial.print("Protocol: ");
    Serial.println( mySwitch.getReceivedProtocol() );*/

    if (mySwitch.getReceivedValue()==6819768) {
      digitalWrite(RELAY_PIN_1, !digitalRead(RELAY_PIN_1));
    }
    if (mySwitch.getReceivedValue()==9463928) {
      digitalWrite(RELAY_PIN_2, !digitalRead(RELAY_PIN_2));
    }
    delay(600);
    mySwitch.resetAvailable();
  }

is adding RF Span switch to Homespan something that we can expect in the future?
many thanks for your hard work!
Fish

Glad you are finding HomeSpan useful in controlling lights via an optocoupler.  I'm not sure if the RF Switch library would interfere with any of the existing HomeSpan functionality.   Using interrupts is not necessarily a problem - it depends on exactly what happens during the interrupt, and whether there are delays that cause problems.  The best way to know for sure is to experiment.  If you do get the library working, but it seems to cause delays with HomeSpan responses, you can try using HomeSpan's autoPoll() feature to push polling into a separate task (which uses a separate core if running on a dual-core device).
More generally, it would be possible to extend the functionality of HomeSpan's RF Remote class to also receive, instead of just transmit, RF signals.  I'd had not found a good use case for this, but the RF Switches you note are worth exploring at some point.
Question:  Your comment above is part of a PR, but you did not change any code --- the commits above are part of the dev branch that I'm working on for the next update  Did you mean this to be a PR?

Thanks - I'll close this out then.


Rewrite monads to be proper monads

This rewrites the main monads to actually follow the three monad laws. Particularly, I was breaking bind(unit(x), f) ≡ f(x) with Lifted.
I also used this an opportunity to implement an IO monad, since it wasn't very useful otherwise.
Closes https://github.com/danielj41/monad-buzz/issues/1
Closes https://github.com/danielj41/monad-buzz/issues/3
Closes https://github.com/danielj41/monad-buzz/issues/2

So much more readable and clean. lgtm.


Fixed using swipe threshold from configuration

CardStackConfiguration declares a swipeThreshold that's not used anywhere.
Indeed, the value is hardcoded in the CardView.swipeDirection method.

Hi Romain, nice catch! Thank you for your PR. I'm merging it now.

I have also added a new tag: 0.0.6 meaning you can update the library through SPM.

Thanks for the new tag.


overload interface method

Bug Report
🔎 Search Terms
overload interface method
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about overloading interface methods

⏯ Playground Link
Playground link with relevant code
💻 Code
interface Adder {
  add(one: number): (two: number) => number;
  add(one: number, two: number): number;
}

const adder: Adder = {
  add(a: number, b?: number) {
    if (typeof b === "undefined") {
      return (b: number) => a + b;
    }
    return a + b;
  }
}

🙁 Actual behavior
error:
Type '(a: number, b?: number | undefined) => number | ((b: number) => number)' is not assignable to type '{ (one: number): (two: number) => number; (one: number, two: number): number; }'.
  Type 'number | ((b: number) => number)' is not assignable to type '(two: number) => number'.
    Type 'number' is not assignable to type '(two: number) => number'.

🙂 Expected behavior
no error
Similar issues
#16951
#7230

I've struggled with trying to override/overload a lot yesterday, and the this seems to be the closest somewhat satisfiable solution I can come up with:
interface Adder
{
    add(one: number): (two: number) => number;
    add(one: number, two: number): number;
}

type CustomAdder = Omit<Adder, 'add'> & {
    add(a: number, b?: number): number|((b: number) => number);
};

const adder: CustomAdder = {
    add(a: number, b?: number): number|((b: number) => number)
    {
        if (typeof b === "undefined")
        {
            return (b: number) => a + b;
        }

        return a + b;
    }
}

please correct me if I'm wrong, I'd love to learn more on this :D

@chris-kruining That seems to defeat the point of typescript knowing what type of variable something is.
If you override a function like: playground
function add(one: number): (two: number) => number;
function add(one: number, two: number): number;
function add(a: number, b?: number): number | ((b: number) => number) {
    if (typeof b === "undefined")
    {
        return (b: number) => a + b;
    }

    return a + b;
}

const t = add(1, 2)

TypeScript knows t is a number not a number | function.
There should be able to be something similar for functions in an interface.
interface Adder {
  add(one: number): (two: number) => number;
  add(one: number, two: number): number;
}

const adder: Adder = {
  add(a: number, b?: number) {
    if (typeof b === "undefined") {
      return (b: number) => a + b;
    }
    return a + b;
  }
}

const t = adder.add(1, 2)

These two should be equivalent and t should be a number

This is the intended behavior; overloads don't create any contextual information on method bodies and the inferred type of add is only
(a: number, b?: number) => (number | ((b: number) =>number))

which isn't the same as the overload set.

So there is no way to overload interface methods?

the inferred type of add is only
(a: number, b?: number) => (number | ((b: number) =>number))

Function overloads infer the correct type. Why do interface method overloads work the same way?
playground

@RyanCavanaugh You marked this as a question but never answered it.


Added scrool spy (js)

i could be very nice if you could add this js plugin to the doc :
http://twitter.github.com/bootstrap/javascript.html#scrollspy

ping @mislav

Thanks for the tip; I will think about this when I make updates on the app!
I haven't worked on this for a long while.


Use Custom Node

Hi Thanks you for this Awesome librairie.
I want to know if it's possible to have a custom node (with Div and HTML markup) like this image

Because i see the fact all things are render in svg limit the posibility to custom node as we want.
Thanks you 🙏

I close this issue for now.
If you have any other question/comment, please reopen this issue.


Java heap space error on 1.14.2 version

This error has never pop up in the previous versions (versions below 1.14), upon updating to 1.14.2, it starts having this error.
Using the latest MV-Core Jenkins build (b764) and latest Spigot 1.14.2 as of 2019-06-14.
[13:20:42] [Server thread/ERROR]: Error occurred while enabling Multiverse-Core v4.0.0-SNAPSHOT-b764 (Is it up to date?)
java.lang.OutOfMemoryError: Java heap space
>       at java.util.ArrayList.<init>(ArrayList.java:152) ~[?:1.8.0_131]
>       at com.google.common.collect.Lists.newArrayListWithCapacity(Lists.java:190) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.NBTTagList.load(SourceFile:62) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.NBTTagCompound.a(SourceFile:438) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.NBTTagCompound.load(SourceFile:81) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.NBTTagCompound.a(SourceFile:438) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.NBTTagCompound.load(SourceFile:81) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.NBTTagCompound.a(SourceFile:438) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.NBTTagCompound.load(SourceFile:81) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.NBTCompressedStreamTools.a(NBTCompressedStreamTools.java:114) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.NBTCompressedStreamTools.a(NBTCompressedStreamTools.java:83) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.NBTCompressedStreamTools.a(NBTCompressedStreamTools.java:24) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.Convertable.a(SourceFile:155) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.Convertable.a(SourceFile:139) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.Convertable.b(SourceFile:127) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.Convertable.isConvertable(SourceFile:117) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.MinecraftServer.convertWorld(MinecraftServer.java:233) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at org.bukkit.craftbukkit.v1_14_R1.CraftServer.createWorld(CraftServer.java:918) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at org.bukkit.Bukkit.createWorld(Bukkit.java:458) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at org.bukkit.WorldCreator.createWorld(WorldCreator.java:279) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at com.onarandombox.MultiverseCore.utils.WorldManager.doLoad(WorldManager.java:467) ~[?:?]
>       at com.onarandombox.MultiverseCore.utils.WorldManager.doLoad(WorldManager.java:448) ~[?:?]
>       at com.onarandombox.MultiverseCore.utils.WorldManager.doLoad(WorldManager.java:423) ~[?:?]
>       at com.onarandombox.MultiverseCore.utils.WorldManager.loadWorlds(WorldManager.java:728) ~[?:?]
>       at com.onarandombox.MultiverseCore.MultiverseCore.onEnable(MultiverseCore.java:315) ~[?:?]
>       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:352) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:416) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:458) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:372) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:440) ~[spigot.jar:git-Spigot-df0eb25-4090d01]
>       at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:258) ~[spigot.jar:git-Spigot-df0eb25-4090d01]

I may be wrong, but it looks like the server ran out of memory while loading the plugin.

I do suspect that but I have already tried allocating a lot more memory to the server and it's still erroring out, (from 3GB to 6GB, the whole machine has 16GB RAM), so I'm not entirely sure what went wrong during the loading process and try here to see if there are any luck finding fixes

If the machine has 16GB, try upping that amount to 8GB. I can run a server with 8GB and still have room to spare on my machine

I have tried assigning 8GB to the server and it is still giving me the same error. When trying I have also upgraded to the latest Spigot build 1.14.3  as of 2019-07-02.

Sounds like you have a memory leak. It's either the server software itself or some plugin.

Ah, sorry, it looks like it's specifically happening when converting the world to the 1.14 format. Something is wrong with your world or the 1.14 server software. You could try loading the world in single player and seeing if it is able to properly convert it.

Thanks for your reply, I will try to convert the world to 1.14 format, didn't think of the problem in this way, thanks!


[ixwebsocket] add new port

https://github.com/machinezone/IXWebSocket
IXWebsocket is a lightweight (very few dependencies, notably no boost) client and server websocket library + http client library, with SSL and per message deflate support.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: bsergean sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

FYI There is CI on the github project for macOS + Linux + windows.
I haven't explored all options ... currently mbedtls is required (and bundled) or SSL on Windows, and openssl is required on Linux (but not bundled) ; both of those dependencies could be expressed properly using vcpkg.
zlib is also required and bundled with the source on Windows.
Thanks for taking a look and making the missing package manager for C++ !

I don't really understand where to look for in Azure DevOps for my build error, if someone can help that would be great.

The "summary" tab has what you're looking for @bsergean

Thanks I found it. At this point my problem is that I am 'double installing some dependent header + libs' since I was 'including those files directly. I will fix that.

On Jun 9, 2019, at 4:52 PM, Griffin Downs<EMAIL_ADDRESS>wrote:
The "summary" tab has what you're looking for @bsergean https://github.com/bsergean
https://user-images.githubusercontent.com/35574547/59165843-e4eecb00-8ad6-11e9-856b-982bb9fd75d0.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/microsoft/vcpkg/pull/6835?email_source=notifications&email_token=AC2O6UIBBWTVGTA6CJ4ONITPZWJUXA5CNFSM4HWOZEF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXIUWUY#issuecomment-500255571, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2O6UJNW3FVDUWDVP4XACDPZWJUXANCNFSM4HWOZEFQ.

Looks like CI is happy now, likely thanks to that change -> https://github.com/machinezone/IXWebSocket/commit/750a752ac0e968d86dd6185d0fc3a5654142e6ad

It is not ideal the way it is, as only some libraries are needed on some platforms (namely the SSL libraries). It looks like curl uses the concept of vcpkg optional features which I should explore.

I just found in the curl CONTROL file (something from debian btw ?) how to have per os deps:
Build-Depends: curl[openssl] (!windows&!osx), curl[winssl] (windows), curl[sectransp] (osx)

I'll try to play with that so that only minimal deps are installed.

That osx error looks weird. I might queue up another job.
Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        6/11/2019   4:52 AM                raw xml results
current job: 2367
baseline job: 2343
baseline commitid: d962dc7d651b563bed089f4bf9056003ebb7fe1c
merge baseline: 143ae13d28063ea404e75692083db26e02d36c66

baseline does not line up with merge, attempting to adjust to new baseline.  This is typically caused the post checkin CI tests getting backed up.
##[error] Missing log files for comparison baseline (d962dc7d651b563bed089f4bf9056003ebb7fe1c).  This may cause unrelated failures to show up in the test results. This is most likely the result of an infrastructure failure in the post checkin pipeline which creates the baseline logs. If this is the case, the fix is to manually queue a post checkin CI job (use default settings) and rerun this job when it completes.
-----------------------------------------------
##[error]Missing x64-osx test results in current test run

x64-osx results are inconclusive because it is missing logs from test

% : Cannot index into a null array.
At C:\vsts\_work\3\s\analyzeTestResults.ps1:721 char:87
+ ... r the following triplets: $($hash.Keys | %{"$($_)($($hash[$_]))"})`n"
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [ForEach-Object], RuntimeException
    + FullyQualifiedErrorId : NullArray,Microsoft.PowerShell.Commands.ForEachObjectCommand

##[error]PowerShell exited with code '1'.
##[section]Finishing: Analyze results and prepare test logs

Provided the CI complete I'd be happy to have this merged as is to get the ball rolling.
I'll setup vcpkg on a Linux machine (I have access to those, mostly through containers), everything works well with features locally.
Unfortunately I don't have access to a windows box but was thinking about using Azure to do so. If I get access to such a box I'll try to investigate why is it I cannot use features like curl.
However I feel like this is a Azure DevOps problem, cf that same error that showed up, while everything was working fine with the same code, before I tried to setup features. Odd.
 Missing log files for comparison baseline (3fadaffacee6de7c6ddaf9a3c15e4b8996b5b1c0).  This may cause unrelated failures to show up in the test results. This is most likely the result of an infrastructure failure in the post checkin pipeline which creates the baseline logs. If this is the case, the fix is to manually queue a post checkin CI job (use default settings) and rerun this job when it completes.
Missing x64-osx test results in current test run
PowerShell exited with code '1'.

/azp run

The osx agent looks stuck ... now I'm tempted to try to use the features thing again as it could have been a fluke with the CI system.

@bsergean we're currently having some trouble with the Mac CI system. It should be back in good condition relatively soon, so feel free to keep those changes in. Thanks for bearing with us!

No worries ! And ironically it succeeded on Mac at that last run !
Now I'm back to a failure on Windows, which I should look into. Unfortunately the error message isn't accessible and is in a log file, which cannot be viewed easily from the web ui. It would be good to 'cat' that error file I would say when things fails on CI.
One error briefly mention ninja. Is ninja not available on Windows ? (I don't think so)
Starting package 4/4: ixwebsocket:x64-uwp
Building package ixwebsocket[core,openssl,ssl]:x64-uwp...
Could not locate cached archive: C:\vsts\_work\1\s\archives\49\496ef561f263d7ec4d1c7408573a035a081afb1e.zip
-- Using cached C:/vsts/_work/1/s/downloads/v4.0.3.tar.gz
-- Extracting source C:/vsts/_work/1/s/downloads/v4.0.3.tar.gz
-- Using source at C:/vsts/_work/1/s/buildtrees/ixwebsocket/src/v4-7afbe75f71
-- Configuring x64-uwp
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
    Command failed: ninja;-v
    Working Directory: C:/vsts/_work/1/s/buildtrees/ixwebsocket/x64-uwp-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\vsts\_work\1\s\buildtrees\ixwebsocket\config-x64-uwp-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:274 (vcpkg_execute_required_process)
  ports/ixwebsocket/portfile.cmake:14 (vcpkg_configure_cmake)
  scripts/ports.cmake:71 (include)

Error: Building package ixwebsocket:x64-uwp failed with: BUILD_FAILED
Elapsed time for package ixwebsocket:x64-uwp: 26.81 s

Triplet: x64-uwp
Total elapsed time: 28.94 s
RESULTS
    zlib:x64-uwp: SUCCEEDED: 409 ms
    openssl-uwp:x64-uwp: SUCCEEDED: 1.47 s
    openssl:x64-uwp: SUCCEEDED: 243.7 ms
    ixwebsocket:x64-uwp: BUILD_FAILED: 26.81 s

SUMMARY
    SUCCEEDED: 3
    BUILD_FAILED: 1

Hey @grdowns I think I have finally found the proper magic in the CONTROL file and now CI is happy.
Would it be acceptable to merge as is now ?

@bsergean I've changed it so that its just a call to vcpkg_from_github instead.

Perfect, looks cleaner that way.

Thanks for the PR!

Thanks guys !


feat(frontend): Support for shared views.

I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
Non materialized views are now labeled as LogicalShare nodes in the Binder.
Support the "Share view" task in https://github.com/risingwavelabs/risingwave/issues/6955#issue-1502542081.
Checklist

[x] I have written necessary rustdoc comments
[x] I have added necessary unit tests and integration tests
[x] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features).
[x] All checks passed in ./risedev check (or alias, ./risedev c)

Documentation
If your pull request contains user-facing changes, please specify the types of the changes, and create a release note. Otherwise, please feel free to remove this section.
Types of user-facing changes

SQL commands, functions, and operators

Release note
In streaming mode, multiple usages of the same view (declared by CREATE VIEW) will be shared during execution.

Thanks for your effort. BTW, I have merged this PR into the main branch.


scroll bars

To see the right hand columns of the environment variables table, I have to scroll to the bottom of the page (past the table), to get the horizontal scrollbar, so scroll to the right), to then scroll the bar back up to read them.  Utterly terrible experience.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: fe76a04d-fca3-b64a-9fdf-b12de26d3d19
Version Independent ID: 9dbb15f3-8665-595d-2322-fb8cdfc0c6e3
Content: Task runtime environment variables - Azure Batch
Content Source: articles/batch/batch-compute-node-environment-variables.md
Service: batch
GitHub Login: @laurenhughes
Microsoft Alias: lahugh

Thanks for the feedback! We are currently investigating and will update you shortly.

I have assigned the issue to the content author to investigate further and update the document as appropriate.

Thanks for the feedback, @craiginscotland. The work item to reorganize this information is currently in our backlog and will be addressed in the near future.
#please-close


Version 1.6 Changelog Documentation

Congrats on the 1.6.0 release! Will there be a changelog entry added to highlight what's included? Thanks.

https://github.com/trusche/httplog/commit/4eb58ac525847252efbae29a885245a87465cacb Seems like this commit added it! Hope this helps!

Thank you!


Branch in surli/bugs-collection without repairnator.nopol.results file.

E.g.: https://github.com/surli/bugs-collection/tree/apache-commons-lang-224269231-20170421-105710

Nopol info is not mandatory on branches for Bears anymore since the collection of bugs for Bears does not run Nopol.


0.9.1 Yield isn't shown anymore

Just get 0.00 on any assets i've on my account!

Is this still an issue? It seems to work for me. If possible, please verify the numbers with "wallet_account_yield" in CLI.

tested but my yield is 0  ...  weird ...


Click keywords  for EventHandler are not uniform

I am a bit confused,
why use the "Click" keyword in Button,
but use "Clicked" in NativeMenuItem?
like this:
<NativeMenuItem Header="About" Clicked="OnAboutClicked"/>
<Button Click="OnBtnClicked"/>

Both are now Click with v11.


Publish app in F-Droid

F-Droid URL: https://f-droid.org/
F-Droid Wikipedia: https://www.wikipedia.org/wiki/F-Droid
Contribution/Submit Applications: https://f-droid.org/en/contribute/#submit-applications
Inclusion Policy: https://f-droid.org/en/docs/Inclusion_Policy
Request For Packaging Tickets: https://gitlab.com/fdroid/rfp/issues
F-Droid is application & app store for android apps (alternative to Google Play) that accepts only FLOSS (free/libre and open-source) apps and doesn't require any account creation/login in order to download apps.
The requirements for being included into f-droid are here: https://f-droid.org/en/docs/Inclusion_Policy/
The process for getting an app published to f-droid is outlined here: https://f-droid.org/en/docs/Inclusion_How-To/ https://gitlab.com/fdroid/rfp#submission-queue https://gitlab.com/fdroid/fdroiddata/blob/master/CONTRIBUTING.md
You can open a RFP (Request For Packaging) ticket here: https://gitlab.com/fdroid/rfp or an user can do so, provided you agree to include this app in F-droid (a comment to this issue is enough for it)
Some users don't have play-store on their devices as they are degoogled devices or don't create/use google account (using aurora store app https://auroraoss.com/ in anonymous mode (which is available on f-droid) is solution to still get apps from google-play) or using OS/custom ROMs that don't have it included, such as: (Some bundle f-droid by default)
https://grapheneos.org/ GrapheneOS
https://calyxos.org/ CalyxOS
https://lineageos.org/ LineageOS
https://lineage.microg.org/ LineageOS for microG
https://e.foundation/ /e/
https://www.replicant.us/ Replicant
Downloading APKs from official places like github releases https://github.com/thunderbiscuit/padawan-wallet/releases or website, or from unofficial sources like APK downloading sites https://apk.support or https://apkpure.com/ etc... will avoid the play-store/google dependency but it's lack automatic update mechanism unless it's built in into the application, F-Droid solve this.
Once the app is published into f-droid add the below image code into
README.md to show that the app available on f-droid:

[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" alt="Get it on F-Droid" height="80">](https://f-droid.org/en/packages/org.fdroid.fdroid/)

Dude I'm a huge F-Droid fan and publishing my app there has been one of my goals since the beginning! 🔥 🔥 Thanks for taking the time to open up an issue and checking out my app!
I need to do more research on this and maybe start asking questions on the forum, but one of the small little hiccup in the process right now as I understand it is that they handle the apk signatures (they basically build your app from source) for deployment on F-Droid. That's fine of course, but in my case I'm using the bitcoindevkit, which is a native Rust library with jni bindings for Android, and which I build locally and add in my localMaven() repository. Because the library is not yet deployed on Maven Central, I assume they won't be able to build the app themselves (unless I can add info on how to build the native lib locally, but that sounds like a lot of work for the F-Droid team).
So I'll ask around to see if there is a way around that. But it's possible that the bottleneck here for F-Droid might be on the bitcoindevkit side. And because they are rewriting all of their language bindings at the moment (including this bdk-jni library I'm using), I do think it will be a few months before it's ready to be published on maven central.
Do you happen to have experience with publishing apps on F-Droid? I'm just about ready to release a closed test version of the app on the Play Store, but I'd love to work on getting it ready for F-Droid in parallel while the bitcoindevkit guys do their thing.

no experience with publishing apps on F-Droid, but I read enough about the process & related RFP tickets so know to answer some of the questions.

F-Droid can reuse your app signing and not sign themself as long as the app is reproducible (build is reproducible), try to build the same tagged version twice and compare the results with diffoscope tool https://diffoscope.org/ , except the signing stuff there should be no other differences.
F-Droid doesn't allows binaries from unknown locations (not maven or tool from debian package, etc...) so if it's location is not whitelisted (places that ensure it's built from OSS, etc...) The build process would need to rebuild the library, which is ok (not much work involved except the build-commands to build it), they build all apps from source.
either way it's good to open the RFP ticket https://gitlab.com/fdroid/rfp even if there is some roadblocks (or more work needed) regarding the bitcoindevkit lib, as both people might look into the situation and offer guidelines, and their is automatic f-droid scanner that look for issues that need to be fixed, like adding fastlane structure (see: https://gitlab.com/snippets/1895688) and other stuff as well...

Ok cheers! I'll look into that this week! Thanks for the tips.

Closing this as I don't have the resources to work on this at the moment, but I'm adding it to the list of ideas for a 2.0 release!


A6 - additions/modifications for Docker

Description
Additions and modifications required to generate docker images, plus docker-compose configuration.
Docker image located here.
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] Pytest Tests

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

Looks good


Add LibManager for managing k8s API and ksonnet-lib metadata

This change will introduce a lib package that handles the reading,
writing, and serialization of the ksonnet-lib and the kubernete's open
API files.
Prior to this change, metadata was stored in an environment's .metadata
directory. This lead to redundant files where environments share the
same kubernetes API version.
Signed-off-by: Jessica Yuen<EMAIL_ADDRESS>

@bryanl Just to clarify, so that I understand the change you are proposing - I didn't create the utils package; it exists already. I just moved AbsPath out of metadata into the existing utils package, since it is useful for packages outside of the app metadata. Where are you suggesting that it go?
I can't speak fully for the reason string is typed as AbsPath as I didn't write that, but I believe that the logic behind it is the path format is too important to be an arbitrary string. It makes it more obvious to the developers of the codebase that we are in fact dealing with a path.

@bryanl, I've made the changes we discussed offline:

Moving utils/strings.go > strings/strings.go
Converting AbsPath to simple strings and adding function strings.AppendToPath


Improve Letsencrypt configuration, mount acme

To do:

script that creates acme.json at first run
handling acme.json in secrets

I am doing a thing now for acme.json, wait before merging (basically wait till the "to do" is complete)


Miss-matching counts

I have been experimenting with the plug in in some datasets and there appears to be an inconsistency with the counting. I am not sure if tweets that contain multiple hashtags are also taken into account.
Here is the code I use (extracting them from the entities metadata):
def hash_retrieve(df):
    """
    df : dataframe of tweets
    Description:
        The function takes as an object a df of tweets obtained via twarc and
        returns a generator object.

    """

    for line, id in zip(df['entities.hashtags'], df['id']):
        if pd.isna(line):
            continue
        line = line.strip()
        data = json.loads(line)
        for hashtag in ensure_flattened(data):
            #print(hashtag['tag'],id)
            yield [hashtag['tag'], id]

# Using the generator to create a new dataframe.
a = pd.DataFrame(list(hash_retrieve(df)),
                 columns=['hashtag', 'id'])

a.hashtag.value_counts()

I get different counts when I apply twarc2 hashtags sample.jsonl  (just got a random sample of tweets). I usually hashtags with higher counts compared to the twarc command.

Do you have a sample of what your dataframe contains? It's hard to say or compare it to the code otherwise.

Sure, I tried with a random sample using :
twarc2 sample sample.jsonl
( I have also done some extra trials but this is the most inmediate one). I know this is hardly replicable as its using a live stream of tweets but I will try to attach/send you the original file that I have.
Here are the results:
twarc2 hashtags sample.jsonl

from my code:

@luisignaciomenendez I think @igorbrigadir means where df comes from in:
# Using the generator to create a new dataframe.
a = pd.DataFrame(list(hash_retrieve(df)),
                              columns=['hashtag', 'id'])

?

@luisignaciomenendez I think @igorbrigadir means where df comes from in:
# Using the generator to create a new dataframe.
a = pd.DataFrame(list(hash_retrieve(df)),
                 columns=['hashtag', 'id'])

Is df loaded from a CSV generated with twarc2 csv?

Yes,exactly. I converted it using twarc2 and then it is loaded with pandas.

I'm a little bit confused by your code but I do think you've found a difference in how twarc-hashtags works and what is in the entities.hashtags column that twarc-csv generates.
It looks like twarc-csv includes not only the tweets that were collected but also tweets that those tweets reference (replies and quotes) or so called includes.
Personally I would expect to only get hashtags for the tweets that were collected, not the tweets that were referenced. But I guess having an --all flag to get all might be appropriate?
I wonder if users of twarc-csv understand this behavior when using the data though ...

I think i found what the problem is - It's retweets. twarc-csv processes retweets so that they match what you would expect to find, using the full text of the tweet, not what the json actually contains. So, For a retweet in the json like this:
{
  "entities": {
    "hashtags": [
      {
        "start": 107,
        "end": 115,
        "tag": "EndSARS"
      }
    ]
  },
  "id": "1388203310327508995",
  "referenced_tweets": [
    {
      "type": "retweeted",
      "id": "1388174000472432650"
    }
  ],
  "text": "RT @abjghost: @imoleayomichael was abducted by DSS at 2.30am in his residence and detained for 41days over #EndSARS protest. They still wan…"
}

The retweet is truncated, so only 1 Hashtag is counted by twarc-hashtags: EndSARS
While the twarc-csv code, will dig into the referenced tweet,<PHONE_NUMBER>472432650 which is:
{
  "entities": {
    "urls": [
      {
        "start": 280,
        "end": 303,
        "url": "https://t.co/fDgTVvbQBZ",
        "expanded_url": "https://twitter.com/abjghost/status/1388174000472432650/photo/1",
        "display_url": "pic.twitter.com/fDgTVvbQBZ"
      }
    ],
    "mentions": [
      {
        "start": 0,
        "end": 16,
        "username": "imoleayomichael"
      }
    ],
    "hashtags": [
      {
        "start": 93,
        "end": 101,
        "tag": "EndSARS"
      },
      {
        "start": 224,
        "end": 237,
        "tag": "FreeImoleAyo"
      }
    ]
  },
  "id": "1388174000472432650",
  "in_reply_to_user_id": "927129038933626880",
  "text": "@imoleayomichael was abducted by DSS at 2.30am in his residence and detained for 41days over #EndSARS protest. They still want to convict him.\n\nImoleayo is a Programmer NOT A CRIMINAL!\n\nPls lend your voice in solidarity to \n#FreeImoleAyo\nIt could be you or me.\nPls tweet, RT, Tag https://t.co/fDgTVvbQBZ"
}

So it will count 2 hashtags.
A second source of variation is that twarc-hashtags ignores case, while your code is case sensitive, so EndSARS and endsars will be separate for example. Also, ensure_flattened(data) is meant more for handling entire responses not small json objects within tweets, but since the function is robust enough to handle that it's ok to keep using it like that. It simply does not do any thing to the data, so you can leave it out, and have for hashtag in data:
These aren't mistakes or bugs as such, they're just different things that we should be aware of and decide to count one way or another.
Personally, i'm inclined to to edit twarc-hashtags to count the retweeted hashtags same as twarc-csv, and keep it ignoring the case, same as twitter UI. This does mean adding a bit more code but i think it's less surprising to users, becuause if someone were to manually verify a count, they should match.

I think that twarc-csv is including hashtags from a tweet that is referenced using conversation_id and also replies?

I think that twarc-csv is including hashtags from tweets that are referenced using conversation_id and also replies?

It used to, but by default in the latest version, no. Just the original tweets merged into the retweets.
Also agree with not counting them from all referenced tweets like replies. Quotes are different though - the quote tweet itself yes, but the quoted tweet? I'm not sure. Right now it will count the quote itself but not the quoted tweet. Still on the fence here too. I guess making command line switches for this will work.
Some of this overlaps with what i was planning with https://github.com/DocNow/twarc-statistics/issues/2 and with https://github.com/DocNow/twarc/issues/562

@igorbrigadir ok, thanks! I'll have to double check. I just got a new computer and am using the latest twarc-csv. I thought I noticed it pulling in basbtags from the included conversation_id after flattening.


NN-4156

report time should really be combination of hearing time / report time

leaving this here.  I am not sure yet its required, need to fix test, but the reportTime of the whole adjudication needs to be discovered.


Getting array of DateTime objects.

I try to unroll the cron patern into array of DateTime objects.
Is there an easy way of doing that?

It is not supported right now. Contribution is very welcome.


Final Plesk Edits

closing #678

Now this looks like normal PR

Now this looks like normal PR

@fordnox Thanks, so you can teach an old dog new tricks. 🙂


Doing multiple simultaneous PromptReplace operations seems impossible

Given…
axes:
  replaceSomething:
    title: Replaces two somethings at once
    values:
      firstOption:
        title: Makes colors blue and the atmosphere hazy
        params:
        PromptReplace: color = blue atmosphere = hazy
      secondOptions:
        title: Makes animals turtles
        params:
        PromptReplace: animals = turtles

…, I find myself lost as to how to proceed; how can I perform multiple PromptReplace operations, and perhaps specify the order in which they occur?

Sorry it's a little awkward, but it's explained in the readme under https://github.com/mcmonkeyprojects/sd-infinity-grid-generator-script#1-grid-definition-file
        PromptReplace: color = blue
        Prompt Replace: atmosphere = hazy

You just need to tack spaces on extra entries (anything to make it unique).
Not the cleanest design in the world but it works.


Call inview only if/when window is in focus.

Is it possible (or can it be :smile:) to call windowCheckInView manually from the scope or root scope? Or otherwise only do an inview check when window is in focus?
The main thing I'm trying to do is defer the inview directive from firing while the window is out of focus, and to do an inview check when the window is in focus. I'm using $window.onfocus to check this.
Any ideas? My initial idea was to just force inview to check on focus, but would appreciate input.
Thanks!

Leaving this here, but I was able to achieve this by essentially using inview to "flag" items as read, but not actually process them (I maintained an array to track them).
Then when the page was in view, I could loop through the array and process the items.
This worked just fine for me, though it took a bit of thought to get it working. Might be nice to offer the ability to process inview only if the window is active. Either way, thanks for a great tool!

Glad to know that you solved the problem!
Having inview only be active when the window is on focus might be an idea but then you'd need to to this as a per-directive-usage basis (ie in the in-view-options). It might make sense but if the problem is otherwise solvable as you did without complicating the directive it doesn't sound so urgent.
Lets see if this issue get some +1s