updated homebridge-hue, now i ve got npmjs timeout 5s, homebridge bootloop

Issue

updated homebridge-hue to latest, now i ve got npmjs timeout 5s, homebridge bootloop
Log Messages

Error: registry.npmjs.org: timeout after 5 seconds
at newError (/usr/local/lib/node_modules/homebridge-hue/node_modules/homebridge-lib/lib/HttpClient.js:26:10)
at ClientRequest. (/usr/local/lib/node_modules/homebridge-hue/node_modules/homebridge-lib/lib/HttpClient.js:331:25)
at ClientRequest.emit (events.js:315:20)
at TLSSocket.emitRequestTimeout (_http_client.js:784:9)
at Object.onceWrapper (events.js:421:28)
at TLSSocket.emit (events.js:327:22)
at TLSSocket.Socket._onTimeout (net.js:483:8)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
Debug Files

Please attach a debug log file.

How do i get this?

See https://github.com/ebaauw/homebridge-hue#debug-log-file

I have changed the config.json timeout from 5 to 25, but the error is still there showing 5s timeout

What can I say... I uninstalled the homebridge-hue plugin and deleted the config in the config.json.
Now, i reinstalled it and copy and paste my hue config. Now it works like a charm without any errors... :-)

The NPM registry seems slow lately, maybe npm didn't install the latest version at first?
v0.12.6 has issues running on NodeJS v12.x, but v0.12.7 should be OK.

I am on node.js 14.15.1
and npm 6.14.8

It took me one hour to set up my complex automations again with many zigbee sensors, dependencies and Shortcuts.
Homekit kicked everything out and put it in the standard room after i got homebridge running again.
Is there any possibility to keep this settings in case something goes wrong in the future?

Same issue here, I am annoyed AF. Can feel your pain @DrDoom666.
For reference, the log entries when the hue plugin makes the crap and send everything south:
[12/5/2020, 11:41:22 PM] Error: registry.npmjs.org: timeout after 5 seconds     at newError (/homebridge/node_modules/homebridge-hue/node_modules/homebridge-lib/lib/HttpClient.js:26:10)     at ClientRequest.<anonymous> (/homebridge/node_modules/homebridge-hue/node_modules/homebridge-lib/lib/HttpClient.js:331:25)     at ClientRequest.emit (events.js:315:20)     at TLSSocket.emitRequestTimeout (_http_client.js:784:9)     at Object.onceWrapper (events.js:421:28)     at TLSSocket.emit (events.js:327:22)     at TLSSocket.Socket._onTimeout (net.js:483:8)     at listOnTimeout (internal/timers.js:554:17)     at processTimers (internal/timers.js:497:7)

You can try to deinstall homebridge-hue, delete the settings in config.json, restart the server, install homebridge-hue again and copy and paste the settings back in config.json.
For me it worked.

Yeah, I know. But then I'd need to fix the room configs again, and the scenes, and my 20 Alexa routines as well.
@ebaauw : how can I force an full reinstall from npm so I get the latest versions?

Did a downgrade to v0.12.4 and back to v0.12.7 and now it seems fine.

Warning If you start Homebridge without Homebridge Hue, HomeKit will delete all accessories exposed by Homebridge Hue.  They'll re-appear when you next run Homebridge with Homebridge Hue, but you'll have lost all associations with HomeKit rooms, groups, scenes, automations.
To uninstall Homebridge Hue: sudo npm -g un homebridge-hue.
To install a particular version (other than latest): sudo npm -g i<EMAIL_ADDRESS>

If contacting the NPM registry fails, Homebridge exits due an unchecked error.   The NPM registry isn't the most stable service on the Internet, so the error will be intermittent.
Homebridge Hue v0.12.8 should fix this (and some more possible unchecked errors).

Hi @ebaauw
ist the following error also related to NPM timeouts? It came up with one of the versions published yesterday and is still present in v0.12.8:
[12/6/2020, 10:54:32 AM] [Philips Hue & deCONZ (ZigBee)] request 14405: GET /sensors [12/6/2020, 10:54:32 AM] [Philips Hue & deCONZ (ZigBee)] <IP_ADDRESS>: timeout after 5 seconds [12/6/2020, 10:54:32 AM] [Philips Hue & deCONZ (ZigBee)] RaspBee-II-GW: gateway request 14405: get /sensors [12/6/2020, 10:54:32 AM] [Philips Hue & deCONZ (ZigBee)] RaspBee-II-GW: gateway communication error: <IP_ADDRESS>: timeout after 5 seconds [12/6/2020, 10:54:32 AM] [Philips Hue & deCONZ (ZigBee)] RaspBee-II-GW: heartbeat error: <IP_ADDRESS>: timeout after 5 seconds
I know it is related to deCONZ and RaspBee-II. No clue why, but deCONZ seems to run stable.

Not related.
I take it Homebridge and Homebridge Hue continue to run?

Yes they keep running.
But it's three lines of yellow warnings, and the last line is red which makes me worry.

From a REST client get /lights and get /sensors works fine, no timeouts.

But it's three lines of yellow warnings, and the last line is red which makes me worry.

I'll make the red line yellow in the next version and double check the amount of messages.

From a REST client get /lights and get /sensors works fine, no timeouts.

Do you the timeout continuously in the log, or only rarely?  There's still an issue that the deCONZ REST API plugin freezes for a couple of seconds while saving the database, so a timeout of 5 seconds might be a bit challenging.  Also, I'd recommend running Homebridge and deCONZ on the same server, to cut out any network overhead between the two of them.

Homebridge and deCONZ are on the same server.
Both running in their own Docker (I think my setup is pretty similar to yours, with Raspberry and RaspBee-II).
The timeouts are random: last two happened 11:34 AM (from screenshot above, plus another one right before), since then (now it's 12:06 PM) nothing happened.
Will try a more generous timeout now.

I don't do Docker.

I don't do Docker.

okay!

Messages sanitised in v0.10.12.


Angular 2 project as library.

Hello,
Can I use your Angular 2 project to build a separate library for another application. I looked at couple examples :
https://github.com/jhades/angular2-library-example
https://github.com/jvandemo/generator-angular2-library
But I want to be able to maintain library in Visual Studio using your build.
Can you advice me how can I setup your build to simply use it as a library and publish to npm if needed.
Thank you!

You could open either of those projects in Visual Studio technically, an Angular library would be just a series of JS files (once everything is transpiled), which then gets published to NPM.
These templates are more-so designed to make .NET & Angular applications, you can't use .NET and other things in libraries.
Have you tried opening those generators in VSCode, should also be a nice experience!

I know that .NET does't need to be in library, and I don't need it. Just want to maintain a library using VS and running it in .NET, and then when publish angular library just simply ignore .NET files.
Yes, I have tried to open it in VSCode, and managed to run and publish it to npm. But my boss would like to maintain it in VS, and I am struggling to find a way to setup a base project and insert this library example.
Still playing around with your project trying to achieve this.

Ahh ok yeah I understand, was just wondering! Let me try and open a library in VS and see if I can help as well.

I have managed to setup your seed project to create a library. I have used npm publish to publish component and consume it in another project. I will create a repository with the example later on and explain what kind of changes I've done if someone will be interested in the future. Not sure if it is perfect way of doing it, but it works. Need to gather more information how to do proper way.

https://github.com/Antoshjkee/angular2-library-example/

I changed name  ClientApp to src (Just prefer this way).
Deleted all components created automatically.
Moved app component to app folder. (App component is used only to be able maintain components in same project, but is excluded in publish).
Created components folder to store my library.
Created simple 'test component'. Added inline html ( Because webpack builds a bundle of whole project, I only need this test component to be published without build, plus I need to learn webpack more to understand how it works :) ).
added .npmignore to ignore asp.net files, app component files and other configurations.

`# Node generated files
node_modules
npm-debug.log
OS generated files
Thumbs.db
.DS_Store
Ignored files
.ts
!.d.ts
*.cs
/Controllers/
/Views/
appsettings.json
Dockerfile
global.json
project.json
web.config
/wwwroot
.vs/
.deployment
obj
*.sln
*.xproj
.xproj.user
bin
/src/app/
/src/dist/
/src/boot-client.ts
/src/boot-server.ts
!/src/components
project.lock.json
webpack.
Properties`

Moved all dependencies to devDependencies.

Changed tsconfig.json
{ "compilerOptions": {  "moduleResolution": "node",  "target": "es5",  "sourceMap": true,  "experimentalDecorators": true,  "emitDecoratorMetadata": true,  "skipDefaultLibCheck": true,  "lib": [ "es6", "dom" ],  "types": [ "node" ],  "declaration": true }, "exclude": [ "bin", "node_modules", "src/app/app/app.component.ts", "src/boot-client.ts", "src/boot-server.ts", "src/app/app.module.ts" ], "atom": { "rewriteTsconfig": false } }
Excluded app component and other .ts files which doesn't required in end publish. So compiler wont create declaration files for them.

In project root created index.ts as an entry point when consuming library.
`import {NgModule, ModuleWithProviders} from "@angular/core";
import {CommonModule} from "@angular/common";
import {TestComponent} from "./src/components/test.component";

export * from "./src/components/test.component";
@NgModule({
imports: [
CommonModule
],
declarations: [
TestComponent
],
exports: [
TestComponent
]
})
export class SampleModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: SampleModule,
providers: []
};
}
}
10. inproject.jsonadded line  "main": "./index.js"` and changed the name.
So in the end i got this.
https://www.npmjs.com/package/ng2-another-test-component
Installed in another project and imported like this
import {TestComponent} from 'ng2-another-test-component';
and in HTML <test></test>
And it works!
I know it could be done better way, just need to understand how :)

If anyone can suggest me how can I minify/uglify and add CSS and HMTL to components js file without bundling into one big file, I would appreciate this!

Glad you found an approach that works for you.
I'll mark this as closed as it's doesn't relate to some issue in the code in this repo (though you're welcome to continue discussing it here if you want!).


Change test names to Camel case

Hey, hope I did everything okay :D

issue #290
anyone knows why the Travis build failed?

Wow, er, that Travis log does not help me much! Looks very odd. @jtigger any ideas?

I restarted the build just to see what happens. Science!

haha, of course it works a second time :D

Haha, yeah, could have been a Travis instability? Anyway, glad that resolved it 😄

Great, thanks!

Nice work, @odzeno!

thanks :D


operatorOverloading: boolean compiler option for alternative type checking (no language or emit changes).

Search Terms
operator overloading
Suggestion
I recognize that operator overloading will likely never happen in JavaScript because of the performance penalty. I also recognize the TypeScript principle of not modifying the underlying JavaScript intent in TypeScript code. Accepting these two assumptions, I would like to propose an 'operatorOverloding' option that analyzes the code differently (if set to true), while retaining the normal behavior when set to false. The change in analysis could range from the naive checking of argument types and computing a likely type to a more opinionated examination of the arguments for "dunder" (double underscore) or "special methods" similar to Python. In either setting of the boolean flag there is no change to emitted code (although it may be possible in the opt-in case to generate the overloading code), and users who opt-in would use JavaScript post-processing to modify the code.
I have been using this approach for some time now in my educational tool, https://www.stemcstudio.com.
The TypeScript compiler would make no changes to the emitted code, whichever way the boolean the flag is set. The idea is that users who want to implement overloading can use the TypeScript compiler untouched and then use a tree traversal on the emitted JavaScript to converted JavaScript mathematical operators to function calls that perform the overloading action. I believe it might be practical for the TypeScript compiler to emit different code, but that is not a requirement at this stage.
Use Cases

An existing user who is not interested in Operator Overloading:
Existing users would not be impacted in any noticeable way. There would be no change in behavior with the flag undefined or set to false. There would be negligible performance impact from the checking of the flag.

A user who wants to use TypeScript in an educational or research setting where operator overloading enhances the usability of the language:
Users who set the flag to true would get modified type checking that would allow a wider range of arguments in certain situations involving mathematical operators. Further, by assuming that operator overloading follows the established dunder convention in Python, it should be possible to infer the resulting types with sufficient precision (some ambiguity may happen in some cases).

It is extremely beneficial in educational and research environments to be able to perform operator overloading.
Examples
For a simple example, see Line 27 in index.ts of https://www.stemcstudio.com/gists/73e68084a4c927ce20bb0b4d06b33192
This has been implemented by using an operatorOverloading compiler flag option in TypeScript.
For an example of dunder methods implemented in TypeScript:
Starting at line 1832:
https://github.com/geometryzen/davinci-eight/blob/master/src/lib/math/Geometric3.ts
I realize that the runtime implementation is of less concern. However a proven prototype is:
https://github.com/geometryzen/davinci-mathscript/blob/master/src/davinci-mathscript.ts
Note: I may separate the design-time and runtime code for this last example in the near future.
Finally, I just want to say that TypeScript is awesome and it has great potential in educational learning settings by guiding novice users to produce correct code and allowing experienced users to write non-trivial programs using in-browser tools to reduce the learning curve.
Checklist
My suggestion meets these guidelines:

[Yes] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[Yes] This wouldn't change the runtime behavior of existing JavaScript code
[Yes] This could be implemented without emitting different JS based on the types of the expressions
[Yes] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
[Yes] This feature would agree with the rest of TypeScript's Design Goals.

I recognize that operator overloading will likely never happen in JavaScript because of the performance penalty

How you recognize this?
Did you see this Stage 1 proposal?
Btw you could do operator overloading in JS but it's pretty hacky:
https://gist.github.com/pyrocto/5a068100abd5ff6dfbe69a73bbc510d7

Runtime systems that aren't JavaScript (which includes JS pre/postprocessed to behave differently from vanilla JS) are outside the scope of our project.
Paths forward would be #2361 (not sure if this would work since * is still always going to return a number), or the ES operator overloading proposal.

@MaxGraey Thanks for pointing out that I appear to be working from an out-of-date assumption; something I read somewhere, maybe 5 years ago. I had not seen the Stage 1 proposal. I haven't digested it yet, but I accept that things in flux lie this could cause the tail (TypeScript) to try to wag the dog (JavaScript). I had seen something at least similar to the JS hack but I felt at the time that I read it that it wasn't going to fall short somewhere and left it alone.

@RyanCavanaugh OK. Thanks for pointing out #2361. Wasn't on my radar.


Add contributing guide.

A first draft. It's still a little rough and incomplete.
Any and all feedback is welcome.
For the record I found inspiration from

encode/django-rest-framework,
atom/atom and
jessesquires/HowToContribute.

I just pushed a change which now allows usage questions to be asked as GitHub Issues. I also included a list of [labels] and a description of each. Note that many new labels have been introduced. Please provide any feedback you may have before I update GitHub with the new labels.

I have updated the labels here in GitHub. I used a color scheme for the status labels which is reminiscent of traffic lights:
green: various approved states (expect for someday-maybe which is gray).
yellow: waiting on something
red: various rejected states
All other labels (types and categories) arbitrarily use blue, orange, purple, brown... not shades of green/yellow/red.

I think this is done. I did a final review and only found a couple minor tweaks.
A also color coded the labels in the docs. Any tweaks to the CSS are welcome:


Fix Md mode styling

Related Issue
#1553
Problem
Md mode uses the react-markdown library to render markup language.
It creates a different structure like

value

This is why some styling doesn't work in non-md mode. It creates

  value

Solution
The library has mapping attribute. source Appendix B: Components
I used it to make the same structure for md-mode.
Screenshot

I have some questions.
When I ran Field.spec.tsx, it passed all. I think the test unit below should fail.
it("can render markdown", async () => {
        render(<Field value="titi" className="taipy-text" mode="md" />);
        const elt = document.querySelector(".taipy-text");
        await waitFor(() => expect(elt?.querySelector("p")).not.toBeNull());
    });

The update fixes the issue when markdown renders p, but it's not working when heading(#) or other expression is used.  I need guidance on how to avoid this.

The issue might be fixed on #1872 ?

I think the different structures of HTML(md and non-md) cause the issue.
Please let me know if you have any advice on this PR. @FlorianJacta

There seems to be no reasonable solution as discussed in the comments.


[RFC] model level lifecycle hook

I see there are callbacks on query level, but sometimes I want to do extra action on all queries for a table.
I'm not sure the api, maybe like this:
export class UserTable extends BaseTable {
  readonly table = 'user';

  columns = this.setColumns((t) => ({
    xxx
  }));

  hooks = this.setHooks((hooks) => {
    hook.onUpdate.push(xxx)
    hook.onDelete.push(xxx)
  })
}

I'm curious, what is the use case to run an action on all queries?

I renamed callbacks into hooks, because when typing setColumns or setCallbacks the autocomplete may be confused, so now the table has setHooks. Added beforeSave and afterSave to run on both create and update queries.
Documentation: lifecycle hooks
There is one caveat regarding using db (see in the doc about it) so that when you need to make queries in the hooks, they must be defined after the db is defined.
It's essential that we want to get affected records ids or other data in the afterCreate or afterUpdate, and this is a tricky problem.
Let's say we created a few records with createMany:
await db.post.createMany([
  { title: 'one', body: 'one body' },
  { title: 'two', body: 'two body' },
])

And we want to update a search index on a third-party service, and we need to get the created data:
addTableHooks(db.post, {
  async afterCreate(q, data) {
    // here we have `data` of type unknown
  },
});

In that case, data is an array with created records, but it's also possible that the create has no returning, or returns only some of the columns, or that it's a hook for update and it doesn't return data at all.
I can't yet imagine a clean solution to this, so the hooks are somewhat useful for some limited cases, and when we need to handle the case above, it's probably worth calling an index updating right after creating or updating records.

Thank you for your quick response!
What do you mean that the data may be some of columns or no data at all?

Oh, I'm used to active record which returns everything... Although it's inefficient, it's convenient sometimes.
I came up with some ideas maybe helpful to make data more useful, but I'm not sure if they can be implemented.

Unify data's type instead of unknown
We can transform data to Partial<Table['columns']['type']> or Array<Partial<Table['columns']['type']>>, this saves us much time to guard data's type in hooks.

return a 'dirty data' in hook

const input = {} // user input for create or update table
const result = await query.select('xxx')

const dirtyData = merge(input, result)
callHook(dirtyData)

return result

Users can select nested data, join some tables and select from them, and select with raw SQL, so the data can literally be anything.
For creating and updating records it's allowed to also use raw SQL, for example, increment is updating column with SQL column = column + 1.
update can return updated data if you specify select before it, but by default, it doesn't even return data at all, only the amount of updated records.
I have one idea, that seems hard to implement but should be possible. The hook on itself could define what columns it needs.
When you write a hook function, you also add somewhere nearby an array of columns needed like ['id', 'title'].
When performing a query, ORM will look at what's already selected, if these columns aren't selected it will add them. If the return type is incompatible it will change the return type and will pass the result to the hook and now the data contains concrete known data.
And after running the callbacks, ORM will transform the response back to what the query intended to load, and strip extra columns from it.

Wow, that sounds wonderful, this implementation is similar to what you talked about in Support computed (virtual) columns, we need a way to collect deps, so that they can be merged with user's select().
There is one problem that select fields can be every flexible such as object with sub queries, maybe it's better not to implement them first and restrict the deps to table columns only.
With this implementation, we have columns, computed columns and hooks which depend on columns, in any query, returned data types should merge them all, seems to be lots of complicated type operation.

There is one problem that select fields can be every flexible such as object with sub queries, maybe it's better not to implement them first and restrict the deps to table columns only.

Yes, columns only. Supporting complex selects for this case will be complicated and error-prone, and won't bring much value.

hooks do not need to affect the returned types, as they are side effects of the query, we do not expect it to return anything.

It's such a trick, let me show:
const ids = await db.someTable.pluck('id') // return type is 'pluck', i.e ids = [1, 2, 3, 4]

await db.someTable.create(someData) // return type is a single object

await db.someTable.createMany([one, two]) // return type is an array

The hook function doesn't know if it's an array of ids, an object, or an array of objects. But it wants to use the data.
When executing queries from the above, ORM can see that there are hooks that want the data, and they require id column. If id is already selected by a query, okay, and if not selected it will add id to a select.
Then ORM checks what is the return type, and if it's anything that "return many objects", it will change it to "return many objects".
The hook now will get array of objects like [ { id: 1 } ]. No matter if it was pluck or get or createMany or update, it will be array of objects with required data.
ORM will return the required columns from the objects unless they were present in the original query:
// only title is selected
const result = await db.someTable.select('title')

// but the hook wants `id`. ORM adds `id` to the select, passes data to hook, then removed `id` from result.
result.id // is not set

Then, after the hooks passed, ORM will coerce the data back to what was requested:

if it was pluck, it will collect the column values into a flat array
if it was a single record returning, it will return a first object of array
if it was returning many, it will return the array

That's the plan. It's scary but opens up further possibilities.

Thank you for the detailed explanation!

And thank you for staying interested! It motivates me to keep pushing.

I'm really learning the source code and advanced type operations slowly, hope I can contribute to core features someday : )

Ready! Here are the docs. It's a breaking change so need to rewrite the old after hooks to the new form with a selection of columns.
Let me know what you think after reading the docs.


Malformed version number string ^1.13.12

Looks like using Gem::Version to match version numbers of Node packages isn't going to work very well. Node uses different version formats than ruby Gems, e.g. carets instead of ~>
ArgumentError:
  Malformed version number string ^1.13.12
# /home/rof/cache/bundler/ruby/2.2.0/gems/ember-cli-rails-0.4.0/lib/ember-cli/helpers.rb:6:in `match_version?'
# /home/rof/cache/bundler/ruby/2.2.0/gems/ember-cli-rails-0.4.0/lib/ember-cli/app.rb:205:in `check_ember_cli_version!'
# /home/rof/cache/bundler/ruby/2.2.0/gems/ember-cli-rails-0.4.0/lib/ember-cli/app.rb:194:in `prepare'
# /home/rof/cache/bundler/ruby/2.2.0/gems/ember-cli-rails-0.4.0/lib/ember-cli/app.rb:23:in `compile'
# /home/rof/cache/bundler/ruby/2.2.0/gems/ember-cli-rails-0.4.0/lib/ember-cli/runner.rb:46:in `compile!'
# /home/rof/cache/bundler/ruby/2.2.0/gems/ember-cli-rails-0.4.0/lib/ember-cli/runner.rb:17:in `process'
# /home/rof/cache/bundler/ruby/2.2.0/gems/ember-cli-rails-0.4.0/lib/ember-cli-rails.rb:62:in `block in process_path'
# /home/rof/cache/bundler/ruby/2.2.0/gems/ember-cli-rails-0.4.0/lib/ember-cli-rails.rb:86:in `block in each_app'
# /home/rof/cache/bundler/ruby/2.2.0/gems/ember-cli-rails-0.4.0/lib/ember-cli-rails.rb:86:in `each'
# /home/rof/cache/bundler/ruby/2.2.0/gems/ember-cli-rails-0.4.0/lib/ember-cli-rails.rb:86:in `each_app'
# /home/rof/cache/bundler/ruby/2.2.0/gems/ember-cli-rails-0.4.0/lib/ember-cli-rails.rb:62:in `process_path'
# /home/rof/cache/bundler/ruby/2.2.0/gems/ember-cli-rails-0.4.0/lib/ember-cli/middleware.rb:13:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
# /home/rof/cache/bundler/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/remotipart-1.2.1/lib/remotipart/middleware.rb:27:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
# /home/rof/cache/bundler/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/web-console-2.2.1/lib/web_console/middleware.rb:39:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app'
# /home/rof/cache/bundler/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call'
# /home/rof/cache/bundler/ruby/2.2.0/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request'
# /home/rof/cache/bundler/ruby/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request'
# /home/rof/cache/bundler/ruby/2.2.0/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request'

@zacstewart thanks for bringing this to our attention.
Unfortunately, you're right, our current approach isn't the best.
Could you elaborate on why you're using ^ instead of ~>?
As a quick fix, would you be able to peg EmberCLI to a particular version, or change the ^ to ~>?

Thanks for the quick response!

@zacstewart glad we could help resolve the issue!
Unfortunately, the fix will probably sit in master for a few more days.
The next release will be a minor version bump that will introduce some breaking changes (it's all for the best, I promise!).


[FEATURE]

What is the feature request for?
Title Placeholder
example: %betterTeams_title%
/team title Commander
Title shows in Chat then if you put it in the perms.
Relevant links
No response
Additional Information
No response

This feature has been implemented and will be included in the next update. Thank you for the suggestion.


Fix GUI issue #1474

Resolves
This issue (in LLK/scratch-gui)
Proposed Changes
Prevents blocklyWidgetDiv from coming over the stage.

Reason for Changes
To stop blocklyWidgetDivs (such as text fields in blocks) from coming over the stage.
Test Coverage
Tested in Chrome console

@kyleplo Thanks for your pull request. I think this problem will actually involve changes to scratch-gui before it's fully resolved. As a result, I'm closing this PR, and we'll have a member of the scratch team take care of the issue.
Thanks again!


Suggestion: Bukkit server plugin

My suggestion is for a Bukkit plugin that implements the server-side of this plugin. This would allow the features of this mod to be usable on a Spigot (or Paper) server. It would still require the mod installed client-side, though.
This would require that the client version of the mods also supports a protocol plugin (wiki.vg, dinnerbone.com) form of data transfer.

Hi, thanks for the suggestion. Good news, It's already done: https://github.com/sammko/servertick-paper. I'm not actively maintaining it though and I don't upload the builds anywhere, however it should build without any issues and should probably work under newer Paper versions. Do let me know if you run into any issues.

Turns out there is a build: https://github.com/sammko/servertick-paper/releases/tag/v1.1

Thanks :)

This plugin also definitely works on Spigot too. You don't need Paper.

Good news, It's already done: https://github.com/sammko/servertick-paper

Maybe also add it to the Modrinth page?


[DFT] Introduce the cuFFT backend for the DFT interface.

Description
Introduce a cuFFT backend for the dft interface. I believe this exposes as much of the cuFFT library as we can use.
Checklist
All Submissions

[ ] Do all unit tests pass locally? Attach a log.
[x] Have you formatted the code using clang-format?

evidence of the tests running. real-real transforms aren't implemented. cufft_backend_run.txt

Multidimensional tests rebased onto these changes -
cufft_backend_run.txt

@anantsrivastava30 The conflicts caused by the #282 are quite big so I will need some time to sort that out. I'll give you a ping when I'm ready.

@anantsrivastava30 I've fixed that merge conflict now so please review when you're ready

evidence of the tests running. real-real transforms aren't implemented. cufft_backend_run.txt

Thanks for the log! Could you also please check that all oneMKL GPU backend tests are passing after these changes and attached the log to the PR?

can you add the output for the exmaple with NVIDIA backend.

Test run after the strides validity check changes
cufft_run.log

Thanks @lhuot. I've created an issue here https://github.com/oneapi-src/oneMKL/issues/313.
I have fixed the merge conflict but github seems to not be picking up the changes I've pushed???
When I get a chance I will run the tests once more

Test log cufft_run.log


Interactive layout fixes

The interactive layout was previously self-referential which causes issues when trying to display the plot/display component on its own. Additionally this ensures that a small fixes to assign a minimal height when no height is specified for the last item in a Column.

I'm seeing errors on this PR with "ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()" with https://anaconda.org/jbednar/datashadercliffordinteract/notebook

Not sure how that could be caused by this PR.

Not sure either, just that it works with master (v0.2.0a4-1-ge98e151) and not with this branch (v0.2.0a4-6-g40bc2ba).

Codecov Report

Merging #136 into master will increase coverage by 0.04%.
The diff coverage is 98.11%.

@@            Coverage Diff             @@
##           master     #136      +/-   ##
==========================================
+ Coverage   89.88%   89.92%   +0.04%
==========================================
  Files          28       28
  Lines        4181     4209      +28
==========================================
+ Hits         3758     3785      +27
- Misses        423      424       +1

Impacted Files
Coverage Δ

panel/util.py
80.64% <100%> (+1.33%)
:arrow_up:

panel/tests/test_interact.py
100% <100%> (ø)
:arrow_up:

panel/param.py
90.75% <100%> (+0.21%)
:arrow_up:

panel/interact.py
71.42% <100%> (-0.28%)
:arrow_down:

panel/pane.py
81.84% <100%> (ø)
:arrow_up:

panel/viewable.py
69.26% <100%> (-0.28%)
:arrow_down:

panel/layout.py
95.19% <92.3%> (+0.21%)
:arrow_up:

Continue to review full report at Codecov.

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

This change really improved the usability of what's returned by interact(), and I've updated https://anaconda.org/jbednar/datashadercliffordinteract/notebook to reflect that.  Now, the repr is something even more clear and clearly usable:
>>> i = pn.interact(clifford_plot, a=(-2,2), b=(-2,2), c=(-2,2), d=(-2,2),
              n=(1,20000000), colormap=ps, panel_layout=pn.Row)
>>> print(i)

Column
    [0] WidgetBox
        [0] FloatSlider(end=2, name='a', start=-2, value=1.7)
        [1] FloatSlider(end=2, name='b', start=-2, value=1.7)
        [2] FloatSlider(end=2, name='c', start=-2, value=0.6)
        [3] FloatSlider(end=2, name='d', start=-2, value=1.2)
        [4] IntSlider(end=20000000, name='n', start=1, value=2000000)
        [5] Select(name='colormap', options={'bgy': ['#fff123', ...}, value=['#b3fef5', '#b0fef5', ...])
    [1] Row
        [0] PNG(Image, name='interactive00026')

So it's now obvious that one can do pn.Column(i[0][5], i[1][0]) to get a column with just the Select widget above the PNG image, with no opaque interact objects.  Very nice!


Obtain API token via OAuth

Currently, the CKAN extension requires users to obtain their API tokens manually via https://data.world/settings/advanced.
Instead, now that data.world is an OAuth provider, users should be guided to log in via OAuth.
Please contact me via e-mail to obtain the necessary client keys.
More info here: https://dwapi.api-docs.io/v0/intro/oauth

Hi @rflprr , we're currently provisioning this for a client, can you help us get the necessary API keys?
Thanks!
cc @therriault @jguo144

Hi, @jqnatividad. This ticket is for a future improvement probably unrelated to your request.
In the current version of the extension you'll input the API token directly in org settings. Please direct your client to https://data.world/settings/advanced where they can grab the API token you'll need. Let me know in case this is not helpful.

Got it!  Misinterpreted the issue - its a backlog item for future implementation.  Will use the current API token scheme.  Thanks for the quick reply!


Regression: separator

a9b22de reverted PR #19's fix
causing

Thanks. I missed that the PR updated the generated file grammar so the fix was reverted when the grammar was regenerated. Will fix in the base grammar


Web - When deleting a message I cannot move to cancel with arrows

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Write a message on composer and send it
Edit it by pressing arrow key up and delete the entire message and hit enter
A modal opens asking if you want to confirm the deletion
Hit left arrow to cancel the message and hit enter
Message gets deleted

Expected Result:
Message should not be deleted because you can select the cancel button, since the confirm button is autofocused.
Actual Result:
Message gets deleted because you cannot focus the cancel button with arrow keys.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/23ea2cc9-eca4-4026-b20c-9e10fd4bce1f
https://github.com/Expensify/App/assets/93399543/3acd6bc7-8c8e-4d36-80c4-46d1ea056e7d
Expensify/Expensify Issue URL:
Issue reported by: @dan1d
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687483418798109
View all open jobs on GitHub

Proposal
Please re-state the problem that we are trying to solve in this issue.
Web - When deleting a message I cannot move to cancel with arrows
What is the root cause of that problem?
Delete button has pressOnEnter props. Although focus is changed to Cancel button, Cancel button will not clicked by clicking Enter key.
https://github.com/Expensify/App/blob/98bb603a89fe0323d503157961c7f4fbfe0db45b/src/components/ConfirmContent.js#L66-L73
What changes do you think we should make in order to solve the problem?
Remove pressOnEnter props
<Button
    success={props.success}
    danger={props.danger}
    style={[styles.mt4]}
    onPress={props.onConfirm}
    text={props.confirmText || props.translate('common.yes')}
/>

What alternative solutions did you explore? (Optional)
N/A

Proposal
Please re-state the problem that we are trying to solve in this issue.
Web - When deleting a message I cannot move to cancel with arrows
What is the root cause of that problem?
Delete button has pressOnEnter props, but Cancel button doesn't have it. So, although focus is changed to Cancel button, Cancel button will not clicked by clicking Enter key.
https://github.com/Expensify/App/blob/98bb603a89fe0323d503157961c7f4fbfe0db45b/src/components/ConfirmContent.js#L66-L73
What changes do you think we should make in order to solve the problem?
Remove pressOnEnter from Delete button
<Button
    success={props.success}
    danger={props.danger}
    style={[styles.mt4]}
    onPress={props.onConfirm}
    text={props.confirmText || props.translate('common.yes')}
/>
)}

What alternative solutions did you explore? (Optional)
N/A

I will test soon

Reassigning another bug team member, I'm going OOO until Monday, July 10, and will take it back if it's still open by my return date.
Required action from the 🐛 team: I've run out of time and haven't tested this one yet. This GH needs testing to confirm if it's a bug, check if it's a dupe, and then assign the applicable labels. Thank you!

I can repro, but the original issue steps aren't clear and don't specifically focus on the issue. I've edited it now.

@eVoloshchak - I found this other issue: https://github.com/Expensify/App/issues/20954
It seems similar, would you say this is a dupe? Cheers.

I found this other issue: https://github.com/Expensify/App/issues/20954
It seems similar, would you say this is a dupe? Cheers.

@jliexpensify, they are related, but this one is a separate issue.
I agree with @hoangzinh's comment, this is a feature request.
It's possible to navigate between buttons using traditional Tab navigation, but this issue specifies using arrow buttons.
Can you confirm we want to apply arrow navigation to this modal? Thanks

Awesome, thanks for weighing in @eVoloshchak and @hoangzinh - I'll query this one with our team internally!

Ok, I didn't receive any response to my Slack thread. Given that this is a feature request, I'm going to close this in favour of working on actual, current bugs.

Thank you @jliexpensify for the help here


bugfix: translation key couldn't contain dot

Let's say someone wants to use English text as translation keys instead of constants. I know that's more effort to maintain if texts need to be changed, but it's faster to prototype this way.
{{ "This is a sentence."|t }} or {{ "e.g."|t }} wasn't working before due to "." being used as a separator by RocketTheme\Toolbox\ArrayTraits\NestedArrayAccess. This patch fixes it.

Also re #852 I'm not sure we should allow using plain text instead of language placeholder constants. Let's hear other opinions.

@flaviocopes imho that's not the question. You have been allowing it all along. If you wanted to prevent it, you'd have to force translation keys to match /^[A-Z.-]+$/. It's too late to do that now, though.

Closed with same reason as #851


Stack, Catalog and Host drop-down is messy

Version 0.55.0-rc1

Issues:

[ ] If I don't need the scroll bar the pane on right looks weird and shouldn't be there.  Only show scrollbar if needed
[ ] Why does the search box at the top have double blue lines around it?
[ ] Why is the text and images in the drop-down bigger then the selected catalog/stack/host at the top?  They should be the same size.

I think scrollbar is auto now
The blue is the focus ring that all inputs have when focused
Images are gone now

Version - master 3/8
Verified fixed


Allow using binding.bp to start a debug session

As stated in the readme, the correct way to start a debug session in the middle of a program is:
require "debug"
DEBUGGER__.console

And then the user can freely use binding.bp to insert new breakpoints.
This is a fine workflow, but I think we can make it more simpler. Since we already have the binding.bp method, which just looks like byebug and binding.pry, why don't we make it work like them?
require "pry"
binding.pry

require "byebug"
byebug

require "debug"
binding.bp

Then the users will have one less thing to learn 🙂
(I have to admit that it took me a while to remember to call DEBUGGER__.console, which I still forget from time to time 😂)

Yes, it is planned idea.
The drawback is, explicit debug start will track the program execution:

Thread creation
Code loading including eval (store loaded Ruby code to show)
And more (not yet)

In many cases it is not a problem.

Terminology:

Load debug functionality: Loading the debug classes/modules/methods

require 'debug'
require 'debug/session'

Start debug: load debug functionality and start tracking the information for debugging. Also load .rdbgrc for configuration.

require 'debug/run'
DEBUGGER__.console

Stop in a debugger context:

breakpoint
binding.bp
Ctrl-C on (remote) console

Maybe this proposal is, if binding.bp is called without start debugging, start debugging and stop at this location.

Another possibility is, require 'debug' start debgging but don't stop the program (== RUBY_DEBUG_NONSTOP mode).
The drawback is, if user doesn't want to collect information (don't want to consume any overhead even if require 'debug' is called), the interpreter starts by adding gem 'debug'inGemfile`.

In a future, like binding.irb, I want to introduce it as standard. But there is an issue describe above.

Maybe this proposal is, if binding.bp is called without start debugging, start debugging and stop at this location.

That's what I have in mind too. Should I open a PR for it?

I showed some points, and we need to choose one.

Ah sorry I didn't stress that clearly: I took that line as
if binding.bp is called without start debugging, start "debugging session" and stop at this location., which is like
# move this out from Session.initialize_session
Binding.module_eval do
  def bp command: nil
    session_initialized = ::DEBUGGER__.const_get(:SESSION)

    ::DEBUGGER__.console unless session_initialized

    if command
      cmds = command.split(";;")
      SESSION.add_initial_commands cmds
    end

    ::DEBUGGER__.add_line_breakpoint __FILE__, __LINE__ + 1, oneshot: true if session_initialized
    true
  end
end

Yes. I know. And I showed some drawback https://github.com/ruby/debug/issues/65#issuecomment-855156514

let me summarize our options here:

start the debugging session within binding.bp call if it's not started yet.

if binding.bp is called without start debugging, start "debugging session" and stop at this location.

start the debugging session when this gem is required.

require 'debug' start debgging but don't stop the program (== RUBY_DEBUG_NONSTOP mode).

and the difference between then is the timing of debugging session starts. the 1st options starts at the first binding.bp call and the 2nd one starts whenever this lib is required (which is the boot time in Rails app).
I think the 1st option makes more sense and I'd do it like I mentioned in https://github.com/ruby/debug/issues/65#issuecomment-855330594

I think the 1st option makes more sense

Could you explain why?

activating the debug session with require "debug" means that Rails users (or anyone uses Bundler.require) have gem "debug" in their Gemfiles could activate the session without knowing it.
I know asking them to add , require: false can workaround this issue, but
gem "debug", require: false

# wherever I want to debug
require "debug" # start the session
binding.bp # and add a breakpoint

still has more code than
gem "debug" # require files & define binding.bp, but don't start anything

# wherever I want to debug
binding.bp # start the session and add a breakpoint

You are right. How about disadvantages?

I don't see a clear downside in this approach. shouldn't
gem "debug"

binding.bp

essentially the same as this?
require "debug"

DEBUGGER__.console

# and later
binding.bp

the only difference seems to be that we'll patch Binding right after require "debug" instead of DEBUGGER__.console.
can you point out anything I miss here?

https://github.com/ruby/debug/issues/65#issuecomment-855156514

Thread creation
Code loading including eval (store loaded Ruby code to show)
And more (not yet)

I don't understand. since these start in Session#initialize, doesn't DEBUGGER__.console starts them as well?

In https://github.com/ruby/debug/issues/65#issuecomment-855156514 I showed 3 points.

Load debug functionality: Loading the debug classes/modules/methods
Start debug: load debug functionality and start tracking the information for debugging. Also load .rdbgrc for configuration.
Stop in a debugger context:

requiring debig start (1)
requiring debug/run (or exe/rdbg, console and so on) start (1) and (2)
binding.bp without starting (2), start (2) and (3).

So after binding.bp, information is tracked. However, the code running before first binding.bp without (2) are not collected. And as I wrote,

In many cases it is not a problem.

In other words, there is a problem in a few cases.

because DEBUGGER__.console also stops the program, so the current flow looks like this, right?
require "debug" # code loaded (1)

# nothing tracked here

DEBUGGER__.console # start tracking (2) + stop the program (3)

# things are tracked

binding.bp # stop the program (3)

to users, it means that "before the program is first stopped, nothing is being tracked".
so if we can make binding.bp do both (2) and (3) properly, it's still the same behavior users
require "debug" # code loaded (1)

# nothing tracked here

binding.bp # start tracking (2) + stop the program (3)

# things are tracked

binding.bp # stop the program (3)

or just .start I'm thinking.

because DEBUGGER__.console also stops the program, so the current flow looks like this, right?

This is why there is -n option on rdbg.

This is why there is -n option on rdbg.

but it's not accessible from application commands like rails or rspec. I think in the future most of the web developer users would not start the debugging session with the rdbg, so -n won't be an option to them.

not important but they are also -n:

nonstop option for console and so on.
RUBY_DEBUG_NONSTOP envval.

I'm thinking to start debug session (tracking) only with require 'debug'.

start tracking

require 'debug'
gem 'debug' in Gemfile with Bundler.require

start console

a. require 'debug/run' or require 'debug/open'
b. console for local console
c. open methods for remote
d. binding.bp

start tracking

require 'debug'
gem 'debug' in Gemfile with Bundler.require

start console

a. require 'debug/run' or require 'debug/open'
b. console for local console
c. open methods for remote
d. binding.bp

yeah I think this will make starting the debugger a lot easier 👍
since this may conflict with the DAP work, I think it's better to be implemented by you as well?

@ko1 I'm going to give it a shot 🙂

@ko1 can you help me verify if these scenarios are correct?
Scenarios
-r debug/run
Script:
a = 1 # stops here
b = 2
c = 3
d = 4

Command: $ ruby -Ilib -r debug/run target.rb
-r debug/open
Script:
a = 1 # stops here
b = 2
c = 3
d = 4

Commands:

$ ruby -Ilib -r debug/open target.rb
$ exe/rdbg --attach

require 'debug/run'
Script:
a = 1
b = 2
require "debug/run" # stops here
c = 3
d = 4

Command: $ ruby -Ilib target.rb
require 'debug/open'
Script:
a = 1
b = 2
require "debug/open" # stops here
c = 3
d = 4

Commands:

$ ruby -Ilib target.rb
$ exe/rdbg --attach

DEBUGGER__.console
Script:
require "debug"
a = 1
b = 2
DEBUGGER__.console # stops here
c = 3
d = 4

Command: $ ruby -Ilib target.rb
DEBUGGER__.open
Script:
require "debug"
a = 1
b = 2
DEBUGGER__.open # stops here
c = 3
d = 4

Commands:

$ ruby -Ilib target.rb
$ exe/rdbg --attach

binding.bp
Script:
require "debug"
a = 1
b = 2
binding.bp # stops here
c = 3
d = 4

Command: $ ruby -Ilib target.rb

.console and .open should be at the beginning of the program, I assumed.

does that mean in the future those 2 methods won't stop the program anymore? (which I'd prefer)

I also find that entering debug console with C-c should be affect with require 'debug'. Now I'm making it to allow entering the console.

I found that the application should terminate with SIGINT if user doesn't enable debugger explicitly.

Implicit

gem debug in Gemfile
require 'debug'

Explicit

use rdbg command
require 'debug/run'
require 'debug/open'

Allowed operations:

Implicit

stop on binding.bp like binding.pry/irb

Explicit

stop on C-c
stop at the beggining

Not sure

(1) start tracing (sources / threads / ...)
(2) load ~/.rdbginit

Now I'm thinking to enable (1) and (2) even if it is implicit.

To control them, I'm thinking DEBUGGER__::start() method:
# debug/session.rb

# start debugger functionality.
#
#  trace_loading: start tracing loading files.
#  trace_threading: start tracing thread creation/termination
#  load_init: allow to load init
#  suspend_on_sigint: enter debug session with C-c
#  nonstop: Do not stop at the beggining of main script
def self.start trace_loading: true,
               trace_threading: true,
               load_init: true,
               suspend_on_sigint: false,
               nonstop: true
end

def self.run
  start suspend_on_sigint: true, nonstop: true
end

# debug.rb
require 'debug/session'
DEBUGGER__::start

# debug/run.rb
require 'debug/session'
DEBUGGER__::run

# debug/open.rb
require 'debug/session'
DEBUGGER__::open

I'm not sure anybody wants to use trace_loading and trace_threading, so now I don't introduce it.

@ko1 thank you!

Please try it and tell me how it good or not.

@ko1 just tested in my Rails project and it worked great 👍


flatten() raises a ValueError

We received the following bug report via e-mail:
===
Hello Kepler Science Time,
I am going through the 'Science with lightkurve' tutorial 'How to perform aperture photometry with custom apertures'. (http://lightkurve.keplerscience.org/tutorials/2.05-making-custom-apertures.html)
When I run the code in the tutorial in my notebook I am getting an error.
#Build the light curve
pipeline_lc = tpfs[0].to_lightcurve().flatten()
for tpf in tpfs:
    pipeline_lc = pipeline_lc.append(tpf.to_lightcurve().flatten())

#Clean the light curve
pipeline_lc = pipeline_lc.remove_nans().remove_outliers()

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-14-4ea5577ff332> in <module>()
      2 pipeline_lc = tpfs[0].to_lightcurve().flatten()
      3 for tpf in tpfs:
----> 4     pipeline_lc = pipeline_lc.append(tpf.to_lightcurve().flatten())
      5
      6 #Clean the light curve

/Users/wesleysandidge/anaconda2/lib/python2.7/site-packages/lightkurve/lightcurve.pyc in flatten(self, window_length, polyorder, return_trend, break_tolerance, **kwargs)
    235             trend_signal[l:h] = signal.savgol_filter(x=lc_clean.flux[l:h],
    236                                                      window_length=window_length,
--> 237                                                      polyorder=polyorder, **kwargs)
    238         trend_signal = np.interp(self.time, lc_clean.time, trend_signal)
    239         flatten_lc = copy.deepcopy(self)

/Users/wesleysandidge/anaconda2/lib/python2.7/site-packages/scipy/signal/_savitzky_golay.pyc in savgol_filter(x, window_length, polyorder, deriv, delta, axis, mode, cval)
    335     if mode == "interp":
    336         if window_length > x.size:
--> 337             raise ValueError("If mode is 'interp', window_length must be less "
    338                              "than or equal to the size of x.")
    339

ValueError: If mode is 'interp', window_length must be less than or equal to the size of x.

Is this a known error? What should I do to fix it?

It looks to me like flatten is broken when the lightcurve is shorter than the default window_length. I'm working on a quick fix.


Python : How to overcome from EOF Error in Compititve programming.... #7806

Description 📜
What is EOF and How to overcome from this error in Python.
Fixes #7806

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[x] Documentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[ ] C/#CPP
[x] Competitive Programming
[ ] Cyber #Security
[ ] DS#A
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[ ] JavaScript_#Domain
[ ] ME#RN
[ ] Machine #Learning
[ ] Open #Source
[ ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.

[x] I have performed a self-review of my own code or work.

[x] My changes generates no new warnings.

[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

Just some minor changes are required. Everything else is perfect.

Done sir , now check please..


[ZEPPELIN-5792][FRONT_BUILD] Remove bower

What is this PR for?
Remove deprecated bower. As the "bower" says, recommended using a different system. So it looks good to remove bower. Replace bower by npm.
What type of PR is it?
Improvement
Todos

[x] Bower's dependencies are resolved by npm
[x] Minor dependency versions may have been changed to resolved by npm
[x] Integrate new dependencies to front-end and testing

What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-5792
How should this be tested?

Run npm commands
Run Karma tests
Manual front-end testing

Screenshots (if appropriate)
Questions:

Does the license files need to update? Maybe because of library version change
Is there breaking changes for older versions? No
Does this needs documentation? No

Hint
This is a resubmit of https://github.com/apache/zeppelin/pull/4633

I have completed the JUnit5 migration today. Can you please rebase your branch to the current master branch.

LGTM as well. BTW, it will help to reduce our compile time :-)

@jongyoul
I'm not good at web technologies, but it seems that this PR broke the web interface. I launch notepad, and after some time it becomes unavailable for changes, restarting the page helps, in the logs I only see:
`

vendor.e8bbdaad8068699d.js:51 Uncaught ReferenceError: autoApply is not defined
    at n._onCloseHandler (vendor.e8bbdaad8068699d.js:51:134262)
    at WebSocket.<anonymous> (vendor.e8bbdaad8068699d.js:21:5609)
  | n._onCloseHandler | @ | vendor.e8bbdaad8068699d.js:51
-- | -- | -- | --
  | (анонимная) | @ | vendor.e8bbdaad8068699d.js:21

`
However, I cannot reproduce the problem locally. It is reproduced only on the instance in k8s and ldap integration, I don’t understand how this can be connected.

@Armadik Hello, Thank you for the report. Could you please make a JIRA ticket for this issue? I think someone can help to investigate it. I also don't know why it's connected yet so let me check it as well.


What's the go with json-request-bundle

Hi,
We noticed that json-request-bundle was removed https://packagist.org/packages/symfony-bundles/json-request-bundle
Is this intended?

Hi!
Sorry, but I was obliged to delete the repositories that were created
during my work in the company :(
пт, 18 дек. 2020 г. в 02:51, Misosooup<EMAIL_ADDRESS>
Hi,
We noticed that json-request-bundle was removed
https://packagist.org/packages/symfony-bundles/json-request-bundle
Is this intended?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/symfony-bundles/bundle-dependency/issues/8, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AATED7TNBUMVGR7IRS42RT3SVKRS7ANCNFSM4VAO563A
.

I see you may want to check the number of people who have installed your
package as some of this are in production environment.
Would you be rehosting it in your account ?
On Fri, 18 Dec 2020, 4:36 pm Dmitry Khaperets<EMAIL_ADDRESS>wrote:

Hi!
Sorry, but I was obliged to delete the repositories that were created
during my work in the company :(
пт, 18 дек. 2020 г. в 02:51, Misosooup<EMAIL_ADDRESS>
Hi,
We noticed that json-request-bundle was removed
https://packagist.org/packages/symfony-bundles/json-request-bundle
Is this intended?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/symfony-bundles/bundle-dependency/issues/8, or
unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AATED7TNBUMVGR7IRS42RT3SVKRS7ANCNFSM4VAO563A
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/symfony-bundles/bundle-dependency/issues/8#issuecomment-747899890,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMFSKAJFAYPEUYRAGVOFZTSVLZ6LANCNFSM4VAO563A
.


Create arrays_traversal_insertion_del_operation.c

This code demonstrates the fundamental operations on an array, including traversing the elements, inserting a new element, and deleting an element.

@Nandita-rawat too small commit!


build Windows packages

attempt to enable windows and Mac builds (addresses #9)

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

so... all checks passed, but none of them test Windows or OSX. I must be missing something!

Mmh, weird indeed...

@conda-forge-admin, please rerender

For whatever reason, I don't even have the "allow edits from maintainers" tick box in the right, so I cannot enable it. Sigh.

@casperdcl @olivierverdier one of you feels like rerendering this for  me (https://conda-forge.readthedocs.io/en/latest/conda_smithy.html)? My own conda install seems broken at the moment... I guess you'd have to do a PR onto my PR.

ok, so now they're running.
Windows jobs are failing before it gets to our own bld.bat though, in fact apparently when running vsvarsall.bat
2020-03-15T09:38:56.5432296Z %SRC_DIR%>CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\..\..\VC\vcvarsall.bat" amd64
2020-03-15T09:39:00.5430773Z CMake Error at CMakeLists.txt:27 (PROJECT):
2020-03-15T09:39:00.5431717Z   Failed to run MSBuild command:
2020-03-15T09:39:00.5432006Z
2020-03-15T09:39:00.5432269Z     MSBuild.exe
2020-03-15T09:39:00.5432581Z
2020-03-15T09:39:00.5432882Z   to get the value of VCTargetsPath:
2020-03-15T09:39:00.5433153Z
2020-03-15T09:39:00.5433660Z     Microsoft (R) Build Engine version 4.8.3761.0
2020-03-15T09:39:00.5434096Z     [Microsoft .NET Framework, version 4.0.30319.42000]
2020-03-15T09:39:00.5434576Z     Copyright (C) Microsoft Corporation. All rights reserved.
2020-03-15T09:39:00.5434992Z
2020-03-15T09:39:00.5435308Z     Build started 3/15/2020 9:39:00 AM.
2020-03-15T09:39:00.5435850Z     Project "D:\bld\stir_1584264789343\work\build\CMakeFiles\3.16.4\VCTargetsPath.vcxproj" on node 1 (default targets).
2020-03-15T09:39:00.5436820Z     D:\bld\stir_1584264789343\work\build\CMakeFiles\3.16.4\VCTargetsPath.vcxproj(15,2): error MSB4019: The imported project "D:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
2020-03-15T09:39:00.5438012Z     Done Building Project "D:\bld\stir_1584264789343\work\build\CMakeFiles\3.16.4\VCTargetsPath.vcxproj" (default targets) -- FAILED.
2020-03-15T09:39:00.5438555Z
2020-03-15T09:39:00.5438790Z     Build FAILED.

I guess we're missing something somewhere but I have no clue.
OSX build fails with a seg-fault. This seems hopeless to debug remotely.

I've removed the OSX build. It'll need debugging in a different PR

On the recommendation of https://github.com/conda-forge/conda-forge.github.io/issues/703, I've switched to using Ninja (also used by libitk-feedstock

success!


Way to disable specific times

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
shouldDisableDate works for disabling choosing specific days. But there is no equivalent for disabling specific times (e.g. only allow between 8am - 11pm, and 3pm - 6pm)
Describe the solution you'd like
A clear and concise description of what you want to happen.
You could also use shouldDisableDate for disabling times, or add a new shouldDisableTime property.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Duplicate of #519


domain property does not handle subdomain

Describe the bug
Hello,
I was exploring your project and I see that when a domain is added, subdomain are not handle.

In this image, any of these path are from unjs.io but from a subdomain (unhead I think).

Hey! Thanks for making an issue, this was something I was aware of but I didn't have any sites to test it out with.
Not exactly sure what the solution looks like but will start working on it soon.


Duplicate Hostnames for server nodes in HA cluster

Environmental Info:
K3s Version:

1.20+
Cluster Configuration:

HA servers
Describe the bug:

Node passwords or unique node names not effectively enforced for HA
Steps To Reproduce:

Installed K3s:
Use multiple servers with same node name

Expected behavior:

An error should occur
Actual behavior:

Duplicate nodes
Additional context / logs:

Needs to work for etcd only nodes

For now, putting this in the 1.20.1 milestone -- assuming this LOE is not high and we can get this in this week for 1/13 release.

For now, putting this in the 1.20.1 milestone -- assuming this LOE is not high and we can get this in this week for 1/13 release.

@erikwilson wasn't in triage meeting; will need to follow up

The issue can't be solved by checking the node password only since this depends on the node password secret which can only be checked after the k8s is up and running, so we need to check a duplicate hostname early at the time we join etcd node as a new member, and fail if we found a duplicate hostname, this issue can be verified by the following steps:

Start a server (or etcd only node) with node name node1 (--node-name node1)
join another server with the same node name

you should get an error stating that:
FATA[0000] starting kubernetes: preparing server: start managed database: joining etcd cluster: Failed to join etcd cluster due to duplicate node names, please use unique node name for the server

k3s v1.22.2-rc1

Started a server and joined another node with hostname set to that of the first node

# node 1
hostnamectl set-hostname node1
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--write-kubeconfig-mode 644 --token secret --cluster-init" INSTALL_K3S_VERSION=v1.22.2-rc1+k3s1 sh -

# node 2
hostnamectl set-hostname node1
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server --write-kubeconfig-mode 644 --token secret --server https://<node1_ip>:6443" INSTALL_K3S_VERSION=v1.22.2-rc1+k3s1 sh -

The expected error was seen

Sep 21 22:25:34 ip-172-31-42-65 k3s[21998]: time="2021-09-21T22:25:34Z" level=fatal msg="starting kubernetes: preparing server: start managed database: joining etcd cluster: Failed to join etcd cluster due to duplicate node names, please use unique node name for the server"
Sep 21 22:25:34 ip-172-31-42-65 systemd[1]: k3s.service: Main process exited, code=exited, status=1/FAILURE
Sep 21 22:25:34 ip-172-31-42-65 systemd[1]: k3s.service: Failed with result 'exit-code'.


divide is locale sensitive

The divide function seems locale sensitive.
On a computer with fr_FR as the locale (Windows 7 pro) the compiled CSS for say:
width: divide(BIG_MARGIN, 2);
Where BIG_MARGIN equals "25px" is "12,5px" (a comma). One would expect "12.5px" (a dot)

I've found the problem. In GssFunctions.java, we do:
      String resultString = new DecimalFormat(DECIMAL_FORMAT).format(total);

to format the result. Instead, we should do:
      String resultString = new DecimalFormat(DECIMAL_FORMAT, new DecimalFormatSymbols(Locale.US).format(total);

I'll see if I can create a patch next week.

That's a good news. Thanks !

This is now fixed.


BSD License

Dear all,
We will soon switch to BSD License v2.0 to ease our collaborations.
Let me know if there is a problem with this.
Cheers,
Olivier.

@olivier-stasse as @andreadelprete pointed in #31, this project can only be GPL as long as it depends on eiquadprog

We could implement the same solution than for hpp: making it a plugin :(

I am fine with the plugin option as long as it doesn't complexify the installation of TSID. So...does it?

What's the status of this issue? Can we close it?

This PR #85
We still have to move eigen-quadprog towards the external library.
This is an ongoing work.


feat: avoid termination_by', introduce WellFounded.wrap

I’d like to remove support for the termination_by' annotation. Until
https://github.com/leanprover/std4/pull/371 it wasn't used anywhere in
lean, std, mathlib, so this PR removes the single use of it.
It does so using the pattern that can be used to replace uses of
termination_by', should there be more: Using the helper type
WellFounded.Wrap one can indicate an explicit WellFounded relation
to use.
So this PR uses that pattern to avoid the use of termination_by' here,
and at the same time provides the necessary definitions for others, so
when Lean drops support for termination_by'
(https://github.com/leanprover/lean4/pull/3033), we can tell users how
migrate.

We also need a way to get a well founded relation out of a value of type WellFoundedRelation A  (i.e. the thing that termination_by' is expecting).

Would that be wfr.wf.wrap?

Yes that works. Next challenge: how to get the type inference working correctly when there are multiple arguments involved?

By the way, the wfRel instance in this file is very similar to Wrapped, but it only requires Acc r x instead of WellFounded r. (It is also private so that we didn't have to do the API work for it.)

Yes that works. Next challenge: how to get the type inference working correctly when there are multiple arguments involved?

What example do you have in mind? I'd expect once the WellFounded is given, all is known?
Note that users will have to manually select and tuple the arguments they care about. But the target audience (users of termination_by') should already know how do deal with that without too much handholding, I'd think?

By the way, the wfRel instance in this file is very similar to Wrapped, but it only requires Acc r x instead of WellFounded r. (It is also private so that we didn't have to do the API work for it.)

Interesting, thanks for the pointer. So an alternative would be to make that not private and add
def wrap {α : Sort u} {r : α → α → Prop} (h : WellFounded r) (x : α) : {x : α // Acc r x} :=
  ⟨_, h.apply x⟩
``
which is nice, because there are no additional definitions with unused arguments to write and explain, and the instance looks kinda useful anyways.

I have updated the PR accordingly, WDYT?

Lean needs quite a lot of handholding to infer dependent sigma types.

I’d expect that the user has to define the Wellfounded (PSigma …) type explicitly ahead of times anyways, so by the time they write wf.wrap …, the type is well known? Quite like we see in the wild already with termination_by'.


travis: test on jdk9

Travis doesn't seem to have openjdk9, so using oraclejdk9.

I believe this addresses #77 and makes the plugin compatible on Java 9/10.
I've tested this by installing the plugin locally (mvn install), and using it in a local project, both with JAVA_HOME set to 9 and 10.
@spotify/docker-admins


update dependencies to match v1.18.1

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

closes #47

@conda-forge-admin, please rerender


proposal: helm dependency update might not require helm repo add

I understand the reason a requirements.yaml uses the repo URL as the canonical location identifier. That seems like a good idea. I was surprised however when packaging a chart on a CI server that helm repo add <name> <url> must also be done before a subchart on a public repo can be used.
Steps to reproduce:
requirements.yaml
dependencies:
  - name: cert-manager
    version: v0.9.0-alpha.0
    repository: https://charts.jetstack.io

actual
$ helm package charts/my-chart --dependency-update
Error: no repository definition for https://charts.jetstack.io. Please add them via 'helm repo add'

expected
behavior of --dependency-update and helm dependency update to be more like helm fetch, which does not require helm repo add or helm repo update to be done.
$ helm fetch cert-manager --repo https://charts.jetstack.io --version v0.9.0-alpha.0 --destination charts/my-chart/charts
$ ls charts/my-chart/charts
cert-manager-v0.9.0-alpha.0.tgz

Agreed. Since we have the full repository url there is no need to make the user manually add it. Should be able to download a chart without having to add the repo first.

We would happily accept PRs to support this.

Hi
Is this issue fixed ?

@NishikaDeSilva see https://github.com/helm/helm/pull/6258. It might not have released yet.

It will be released in 2.15!

I'm deploying a custom chart using flux with two requirements and this is particularly blocking, using v3.0.0-beta.5
2019-10-24T14:21:03.543964242Z ts=2019-10-24T14:21:03.543842664Z caller=release.go:147 component=operator release=podinfo targetNamespace=prod resource=prod:helmrelease/podinfo info="processing release (as bce0bac6-f633-11e9-bafa-06de94eea1a6)" action=CREATE options="{DryRun:true ReuseName:false}" timeout=5m0ss
2019-10-24T14:21:04.184450486Z ts=2019-10-24T14:21:04.184341328Z caller=chartsync.go:555 component=chartsync release=bstore-prod targetNamespace=prod resource=prod:helmrelease/bstore-prod warning="failed to update chart dependencies" err="no repository definition for https://kubernetes-charts.storage.googleapis.com/, https://kubernetes-charts.storage.googleapis.com/. Please add them via 'helm repo add'"

dependencies:
  - name: memcached
    version: ~3.0
    repository: https://kubernetes-charts.storage.googleapis.com/
  - name: redis
    version: ~9.3
    repository: https://kubernetes-charts.storage.googleapis.com/

version.BuildInfo{Version:"v3.0.0-beta.5", GitCommit:"509a8819b7e8dba86b7982c006fce22628aeea28", GitTreeState:"clean", GoVersion:"go1.13.3"}

@masterkain can you please open a new issue for that? It should be working in beta.5, so there is some sort of regression there


Auto layout algorithm doesn't compute the right size

Found when I was running the tests Tanner added in dotnet/coreclr#15961 (while half of the tests focuses on Vector64/128/256, the second half is a general purpose test and we're failing computing the right sizes).
I have a fix that is halfway there in https://github.com/MichalStrehovsky/corert/commit/7f94460a4a0e2ea550dfdf26c4c5603bfc22faf3.
What it lacks is handling of Align8 and unit tests.
For the record, here's the relevant part of the output of Tanner's test:
Unexpected Size for AutoLayoutMinPacking`1[System.Char].
     Expected: 4; Actual: 3

Unexpected Size for AutoLayoutMinPacking`1[System.Double].
     Expected: 16; Actual: 9

Unexpected Size for AutoLayoutMinPacking`1[System.Int16].
     Expected: 4; Actual: 3

Unexpected Size for AutoLayoutMinPacking`1[System.Int32].
     Expected: 8; Actual: 5

Unexpected Size for AutoLayoutMinPacking`1[System.Int64].
     Expected: 16; Actual: 9

Unexpected Size for AutoLayoutMinPacking`1[System.IntPtr].
     Expected: 16; Actual: 9

Unexpected Size for AutoLayoutMinPacking`1[System.Single].
     Expected: 8; Actual: 5

Unexpected Size for AutoLayoutMinPacking`1[System.UInt16].
     Expected: 4; Actual: 3

Unexpected Size for AutoLayoutMinPacking`1[System.UInt32].
     Expected: 8; Actual: 5

Unexpected Size for AutoLayoutMinPacking`1[System.UInt64].
     Expected: 16; Actual: 9

Unexpected Size for AutoLayoutMinPacking`1[System.UIntPtr].
     Expected: 16; Actual: 9

Fixed in  #7163.


Login/Refresh Issues

{
<EMAIL_ADDRESS>    "password":"aaAA@@123444",
    "rememberMe":false
}

login only works if rememberMe set to false, if set to true, nestjs log returning:
Sys log
[Nest] 17068  - 03/23/2022, 8:33:34 AM   ERROR [ExceptionsHandler] Cannot read properties of undefined (reading 'replace') TypeError: Cannot read properties of undefined (reading 'replace')     at AuthService.loginExpiredDate (D:\www\recipe-fork\recipefork-services\src\auth\service\auth.service.ts:132:57)     at AuthService.createPayloadAccessToken (D:\www\recipe-fork\recipefork-services\src\auth\service\auth.service.ts:143:45)     at AuthCommonController.login (D:\www\recipe-fork\recipefork-services\src\auth\controller\auth.common.controller.ts:123:36)
Also, in postman, refreshToken/ {{baseUrl}}/refresh endpoint functionality does not work, and postman collection is still looking for adminRefreshToken, but that is no longer coming through login payload

For information of the boilerplate
There have huge differences between v0.3.0 and v0.2.1
and I suggest to you to pull the newest version
but if you already pull the newest version
I guess, the problem was you already change the value of auth.jwt.refreshToken.expirationTime or auth.jwt.refreshToken.expirationTimeRememberMe config.
So would you like to share your config ? location in src/config/auth.config.ts

I realized this is a bug when the app want to create payload.  The bug come if we don't set auth.jwt.refreshToken.expirationTime or auth.jwt.refreshToken.expirationTimeRememberMe config as string with d suffix
To fix your problem
make sure you put auth.jwt.refreshToken.expirationTime or auth.jwt.refreshToken.expirationTimeRememberMe config with suffix d
e.g

20d
30d
1d


Does PostgreSQL multitenant application?

Description of Scenario
We wanted to develop multitenant application using node with PostgreSQL. Does PostgreSQL support Multitenancy, if yes then can you please share some reference doc to implement it.
Can we use cds-js/postgres to implement multitenancy. As I could able to implement single tenant application with cds-js/postgres following cap-doc .
Thanks in advance for your help.

It's stated in the docs that multitenancy is not supported:
https://cap.cloud.sap/docs/guides/databases-postgres#mtx-support

@ukumar29 I will close this issue as it is an duplicate of https://github.com/cap-js/cds-dbs/issues/400


Enhance Scrolling the Game View

The game view should also be scrollable using the following methods:

Double clicking to move should center on the new location
Holding middle mouse button should scroll the view when moving the mouse
The border that trigger scrolling should be larger than 1 pixel in windowed mode

I'd also like the game to not scroll if the mouse is outside the window! Very annoying when multitasking.

Yup sounds good. Is actually pretty easy to fix.


Add Bengali translations

See #24

Can I go for this one also ?

@sk6298 sure thing. assigned you to the issue! :3


port to quilt

use architectury api

fabric port works now

quilt is missing 1.19.4 versions of essential fabric libraries so well wait until 1.20 for this


Notes for publishing artifacts

Really should have captured these two years ago when I last did a publish 😅  Future me will thank me!
cc @eknuth

oops, I guess I don't have write access.


add single include of EnTT framework

Usefull for using in godbolt example:
https://godbolt.org/z/lqlKGS

Coverage remained the same at 100.0% when pulling 41da0644d61a6aa4d21e985b5f444b3566595749 on Milerius:master into 1adbef7352502ee7f0c3cc6af16b95b428a4ab97 on skypjack:master.

if you want to use it yourself.
python3 scripts/amalgamate.py -c scripts/config.json -s .

This looks good. I'm guessing if we can automate it somehow using the CI or something similar.

You can now also comparing assembly generated by EnTT and possibly inprove the code this way

If you have python3 in the CI of course you can calling python3 scripts/amalgamate.py -c scripts/config.json -s .

Usually you will do it only for release i think

Yeah. The best thing would be if it triggered with a git hook on tags and created directly a PR or something on this line.

Another thing that’s along the same lines is a precompiled header. I’ve never used them before so I’m not sure how much of a build-time reduction they provide. Maybe cmake could compile the single include header into a precompiled header. Maybe distribute precompiled headers for major compilers for convenience.
I don’t know. Just a thought.

@Kerndog73 never used pch actually, I don't even know how to generate them, but I'm open to suggestion. :-)

@skypjack It doesn’t look like cmake has built-in support for PCH. We’ll have to use cotire. Maybe it’s too much effort!
Maybe I should stop beginning my sentences with “maybe”.

In fact the single header is only for testing the framework out of the box on wandbor or godbolt for me

Where did you get this .py file to create an amalgamation? It seems to me it makes just a raw copy of everything. Isn't there something a bit more elaborate to reduce the size of the final file?

i stole it in nlohmann::json repository


Stop stripping whitespace

We should react this to this MSBuild change in CPS: https://github.com/Microsoft/msbuild/pull/1036#issuecomment-249942381

[ ] Make sure we don't remove blank line at end of file
[ ] Make sure we don't remove byte order mark
[ ] Make sure we don't reformat comments
[ ] Make sure we don't stip whitespace

Should this be filed in the CPR repo?

I like to have a tracking but on our side.

We haven't reacted to this?

Some of the work for this is done, but there's still a CPS change needed. It won't be in for RC3.

Fixed with #1266.


Use environment variable for mysql server availability check in dockerfile entrypoint (FINERACT-1163)

Description
Get the database location from environment variable instead of using hardcoded values FINERACT-1163
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!

[x] Write the commit message as per https://github.com/apache/fineract/#pull-requests

[x] Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.

[x] Create/update unit or integration tests for verifying the changes made.

[x] Follow coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions.

[x] Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/api-docs/apiLive.htm with details of any API changes

[x] Submission is not a "code dump".  (Large changes can be made "in repository" via a branch.  Ask on the developer mailing list for guidance, if required.)

FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.

Change looks OK - let's see if integration test / build pass...

Hello, we got faced an issue in K8s while using the name of mysql in the script, I have removed this check in this PR   https://github.com/apache/fineract/pull/1944 delegating to Docker-Compose and K8s the control of the services

Hello, we got an issue in K8s while using the name of mysql in the script, I have removed this check in this PR #1944 delegating to Docker-Compose and K8s the control of the services
I think this is a better implementation, mine is just a quick fix. I'm closing this issue.


修复time.Time不能拷贝的问题

Codecov Report
Base: 92.37% // Head: 92.62% // Increases project coverage by +0.25% :tada:

Coverage data is based on head (8e80f67) compared to base (06faae3).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
+ Coverage   92.37%   92.62%   +0.25%
==========================================
  Files           1        1
  Lines         118      122       +4
==========================================
+ Hits          109      113       +4
  Misses          5        5
  Partials        4        4

Impacted Files
Coverage Δ

deepcopy.go
92.62% <100.00%> (+0.25%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Removes phashion dependency, fixes #13

Thanks, @mohawkjohn  I had made these changes almost instantly...
Sorry.


chore: disable function-next-line formatting, it looks weird

:tada: This PR is included in version 1.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Crouton "permission denied" on arnoldthebat's Chromium build

chronos@localhost / $ sudo edit-chroot -all
name: xenial
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/xenial...
cp: cannot create directory '/var/run/crouton/mnt/stateful_partition/crouton/chroots/xenial/var/run/drm': Permission denied
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

Please describe your issue:
As seen above, it fails to get control of the DRM, and leaves the chroot in an unusable state.
If known, describe the steps to reproduce the issue:
This occurs on both a typical install (no parameters, aside from -t core), and every attempt I've made to install to USB. When installing to the USB Drive, it reads as
cp: cannot create directory '/var/run/crouton/media/removable/USB Drive/chroots/xenial/var/run/drm': Permission denied
I have already remounted it as exec, and the system itself has rootfs verification disabled.

I hit this, strace shows that it tried to created directory while keeping some selinux attrib.
Running "setenforce 0" before running crouton  make it work for me.


The Date Picker example needs context

See http://docs.nativescript.org/angular/sdk-examples/date-picker.html#configure-date-picker.
datePicker is never explained, so this example isn’t copy and pasteable. I’d love to see a markup example first, and then maybe a code example that explains this context.

The same is true of TimePicker (http://docs.nativescript.org/angular/sdk-examples/time-picker.html), so I added that to this issue as well.

Hi @tjvantoll,
Thank you for reporting this problem with  those articles.
I made some changes with the code snippets that have been used when the articles are generating.
Pull request: #46

Looks great. Thanks @tsonevn!


Add spinner and busy text on submitting case

Pivotal
The submit button was already debounced with a greyed-out "disabled" state. Now the text also changes to "Submitting..." and a spinner gif appears next to it.

Needs approval from @mrbootle-moj I think...

Looks fine to me @axemonkey


Dashboard Activity Improvements

This PR is to improve the performance of DashboardActivity
RecyclerView should not be in NestedScrollView, when RecyclerView height is wrap_content it recycle functionality wont work, the item wont get recycled.
Instead use SingleRecyclerView Method
We sort out which UI can become a component. For example Daily, Overview, and Section(Text)
With this the we can reuse the UI and the logic is separated in each ViewHolder.
BaseViewItem e.g DailyItem and OverviewItem is created to become the UI model representation, this will decouple the Response from BE with UI.
UI Position is Flexible because the layout represented by list.
We can move it freely like this overview position is after the daily.

Code:

Preview

We can add overview as much as we want:

Code:

Preview:

Or we can add section in each overview:

Code:

Preview:

Lastly, all responsibility where we get the local data or remote data should be in Repository. So I moved it to Repository with a little tweak using concatArrayEager
Thank you!

Sorry @isfaaghyth just realise DashboardViewModelTest become error after changes I've made because I remove some function in the viewmodel, will fix it later! 🙏

interesting. how better if compared to using a visitable pattern or adapter delegate? I think, both visitable and delegate more quite dynamically than your implementation. let's figure out!

Nice just read visitable pattern on this article and it is more cleaner because we do not need to manually add code to bind the view holder in onBindViewHolder instead we delegate it like factory pattern.
https://proandroiddev.com/writing-better-adapters-1b09758407d2
will read about adapter delegate later!
Thank you @isfaaghyth

Nice just read visitable pattern on this article and it is more cleaner because we do not need to manually add code to bind the view holder in onBindViewHolder instead we delegate it like factory pattern.
https://proandroiddev.com/writing-better-adapters-1b09758407d2
will read about adapter delegate later!
Thank you @isfaaghyth

you're welcome! let's figure out either a visitable pattern and adapter delegate for better implementation. and, nice to e-meet you again! we've met before, right? haha 😄

Thanks for PR, mas Pandu
I have little bit concern on loadOverviewAndDaily : When remote call is failed (ex : no internet connection) it will throw error before cache data is not yet served to view, here is the result :
Build on master when there is no internet connection, cache data is served

Build on dashboard_improvements when there is no internet connection, cache data is not served

Nice just read visitable pattern on this article and it is more cleaner because we do not need to manually add code to bind the view holder in onBindViewHolder instead we delegate it like factory pattern.
https://proandroiddev.com/writing-better-adapters-1b09758407d2
will read about adapter delegate later!
Thank you @isfaaghyth

you're welcome! let's figure out either a visitable pattern and adapter delegate for better implementation. and, nice to e-meet you again! we've met before, right? haha 😄

yeahh we've met before 😄 nice to e-meet you again too 🤝
I'll continue tonight

hen there is no internet connection, cache data is served

Okay I'll check it tonight @rizmaulana thanks for checking out!

Thanks for PR, mas Pandu
I have little bit concern on loadOverviewAndDaily : When remote call is failed (ex : no internet connection) it will throw error before cache data is not yet served to view, here is the result :
Build on master when there is no internet connection, cache data is served

Build on dashboard_improvements when there is no internet connection, cache data is not served

@rizmaulana I've already fix it on commit df59389

Hello @isfaaghyth @rizmaulana @fajarnuha
I've just tried to implement visitable pattern on 9e84df3
Please kindly check it and give your feedback 🙏
or should we use plugin out there instead 🤔?

actually i dont really mind whether to use visitable or any kind of pattern, just making it dynamic using recyclerview is OK for me
just make sure to not break existing functionality and double check on what @rizmaulana said (maybe we should think about making espresso and CI/CD when we it gets bigger) 😆
and Im also making PR to Add item in Dashboard, as this is related, can you update your improvement with my branch? (or after merged) @pandubaraja

Thanks for PR, mas Pandu
I have little bit concern on loadOverviewAndDaily : When remote call is failed (ex : no internet connection) it will throw error before cache data is not yet served to view, here is the result :
Build on master when there is no internet connection, cache data is served

@rizmaulana I've already fix it on commit df59389

Checked, work as expected, thanks mas @pandubaraja

actually i dont really mind whether to use visitable or any kind of pattern, just making it dynamic using recyclerview is OK for me
just make sure to not break existing functionality and double check on what @rizmaulana said (maybe we should think about making espresso and CI/CD when this gets bigger) 😆
and Im also making PR to Add item in Dashboard, as this is related, can you update your improvement with my branch? (or after merged) @pandubaraja

Thank you for the feedback @fajarnuha
I prefer to do it after merging the branch because right now we are still validating the pattern, After that will gladly help to update your branch @fajarnuha

Thanks for PR, mas Pandu
I have little bit concern on loadOverviewAndDaily : When remote call is failed (ex : no internet connection) it will throw error before cache data is not yet served to view, here is the result :
Build on master when there is no internet connection, cache data is served

@rizmaulana I've already fix it on commit df59389

Checked, work as expected, thanks mas @pandubaraja

Thankss @rizmaulana
Also I have some ideas maybe we can add error screen state or empty screen state and add swipe to refresh functionality but in different PR of course

hi, @pandubaraja please resolved the conflict files, thanks!

hi, @pandubaraja please resolved the conflict files, thanks!

Okay wait!

@isfaaghyth @isfaaghyth @fajarnuha because PR https://github.com/rizmaulana/kotlin-mvvm-covid19/pull/11 have already merged into master, I will adjust the pinned region to use visitable pattern on this branch 🙏

@isfaaghyth @rizmaulana @fajarnuha because PR #11 have already merged into master, I will adjust the pinned region to use visitable pattern on this branch 🙏

yes please, awesome!

@fajarnuha @isfaaghyth @rizmaulana I've just pushed new commits to adjust feature pinned country
Here is the preview:

@fajarnuha @isfaaghyth @rizmaulana I've just pushed new commits to adjust feature pinned country
Here is the preview:

super cool 🎉


Timesheet Page - Clock is display after click outside when set timer

Describe the bug

When some staff create timesheet and open clock to set time and click outside without closing clock then clock is not hide and display out side also

https://www.berrycast.com/conversations/7937e693-03e2-5d96-b1cc-c444f6414153

plugin option not available


3 Panels and layout

Now VSCode has 2 panels, one is side bar ,another is panel.
And most layout is : side bar lay on left, and panel lay on bottom.
look like:
+================+
|      s   | ...............................................|
|      i   | ................................................|
|      d  |===============|
|      e  | ...panel............................... |
+================+
even we can move panel to right as "two side bar". But it's too less and limited to lay a Custom-layout.
recommand that vscode can have two side bar and one panel,
that will be easier to lay a Custom-layout.
for example: we can have three panels of explorer ,command line and out line.
+================+
|      s   | .....................................|.....s...|
|      i   | .....................................|.....i...|
|      d    | ....................................|.....d...|
|      e    | ....................................|.....e...|
|      b    | ....................................|.....2...|
|      a  |===============|
|      r  | ...panel............................... |
+================+
it would be easier and flexible for our wide-monitor.
thx

/duplicate


When installed on Windows, app crashes at startup

The tabs sample includes the following in app.js:
   if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
        cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
        cordova.plugins.Keyboard.disableScroll(true);

}

On Windows 10, an error occurs when
hideKeyboardAccessoryBar(true);

is run. Commenting out this line allows the app to start up as expected. The behavior when the error happens is the splash screen shows for a moment, but then the app closes. An Information-level event appears in Windows Application Event Viewer with an Event Name of WWAJSE.

I ran into the same issue. Solved by doing like below:
if( window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard ) {
    // Check reference to avoid runtime error on windows phone
    if( window.cordova.plugins.Keyboard.hideKeyboardAccessoryBar ) {
        cordova.plugins.Keyboard.hideKeyboardAccessoryBar( true );
    }
    cordova.plugins.Keyboard.disableScroll( true );
}

I, and other developers I work with, see this often, too. I know that the code in the first post here is the same as the default source in Ionic templates. So, either the Ionic templates should change to use the pattern from the @beat-at-hartwig response, or perhaps the hideKeyboardAccessoryBar function should be implemented for the Windows platform, even if it's just a function that does nothing?

I continue with the same issue
don't work for my ionic app   :-\

I have also the same problem as @agallen . The solution from the @beat-at-hartwig works only for really simple Ionic application (for example generated tabs app).

Any progress on this issue?

I have the same problem? Maybe someone has luck??


LVGL V9 and framebuffer - image is tearing but didn't with LVGL V8

With LVGL V8, before the NuttX upgrade to V9, I was able to use /dev/fb0 successfully and the LVGL demos ran nicely. I could run my own graphic apps too and they behaved. Note - this is with the framebuffer drivers, so LV_USE_NUTTX_LCD is NOT set, and LVGL defaults to opening /dev/fb0.
Since the update to V9 - and with no other changes I can find - even simple graphics, such as a black background with just a spinner, show breakup/tearing with the rendered image.
The example framebuffer app runs seems to just fine (I modified it to draw continuously and tried different delays between drawing the rectangles), so I am fairly sure this is down to the way LVGL now interacts with NuttX (using the master branch).
I initially thought it was lack of double buffers, but comparing lvgl8 and lvgl9 framebuffer code I now not sure there are any difference as I don't think double buffering will be used in either lvgl version: the (SAMA5D2) LCD setup does not specify any virtual x or y values which is what triggers the setting up of a second framebuffer as best as I can tell.
I am happy to investigate further and try things, but I have run out of ideas as to where to look. I posted a similar report to this on the LVGL forum but no one has answered there in 3 days.
For now, I will have to go back to LVGL V8 which is a shame, especially if V9 can be made to work given the amount of rewrite of app code that's needed between the two lvgl versions (annoying!!).
Can anyone help?

Have now created this as an issue on the LVGL repo (rather than just asking advice on the forum). I took two videos to show the problem in V9 and lack of problem in V8.
https://github.com/apache/nuttx-apps/assets/56726697/5cdef90d-03d6-45b3-8e9b-01b5d1f145d9
https://github.com/apache/nuttx-apps/assets/56726697/49edba2f-324c-462b-b393-3aee95858f5e

Not much recent help from LVGL - issue raised is here

See NuttX PR here


Close meta tag in Blazor hosted template

Fixes https://github.com/aspnet/AspNetCore/issues/6610

@ryanbrandenburg