Please add support for PHP

I'd like this too. In fact, I imagine the entire PHP community would.

I agree! Being able to test documentation quality on a project comes at great advantage for both the dev and the users. Please (please) add support to PHP :smile:

I totally agree! Please add support to PHP :smile:

Okay, the only problem is that I am not an active PHP coder, so I would need help on this.
What we would need is a PHP documentation parser that can produce machine-readable output like JSON or XML. For example, in JavaScript we use JSDoc for this. It parses the documentation, emits JSON which is then parsed by Inch to create the evaluation.
Do you know of any such project for PHP?

Can u please provide output file for analyzing.
2015-10-29 14:49 GMT+02:00 René Föhring<EMAIL_ADDRESS>
Okay, the only problem is that I am not an active PHP coder, so I would
need help on this.
What we would need is a PHP documentation parser that can produce
machine-readable output like JSON or XML. For example, in JavaScript we use
JSDoc http://usejsdoc.org/ for this. It parses the documentation, emits
JSON which is then parsed by Inch to create the evaluation.
Do you know of any such project for PHP?
—
Reply to this email directly or view it on GitHub
https://github.com/inch-ci/inch_ci-web/issues/91#issuecomment-152168730.

--
С Уважением, Егоров Виталий,
моб.: (050) 414-13-07
skype: vitalyiegorov
<EMAIL_ADDRESS>

Something along these lines would be great:
{
  "objects": [
    {
      "source": "src/Quantum/ProxyCacheWarmer.php:15",
      "fullname": "Quantum.ProxyCacheWarmer.refreshUser",
      "type": "Function",
      "parameters": ["$user"]
    },
    // ...
  ]
}

Please note that I know next to nothing about PHP, so my notation of fullname maybe wrong (please use whatever notation PHP devs are familar with).

I updated the above comment many times, in case your reading via email!

Thank u, can u please attach an example of generated JSON file for real project on ruby or javascript?

An example JSON for Forever can be found here: https://gist.github.com/rrrene/69c0a81bc748d6fd71a5

And yes: fullname means a unique name in the code base. So I would presume it will be something like  namespace + class_name + function_name ...

A fully qualified namespace in PHP, with a method, would look something like this:
Quantum\ProxyCacheWarmer::refreshUser()

Ah, I suspected it would be different from Ruby et al.
Thx!

In PHP documentation is added (in the source) via PHPDOC. This can be parsed by PHPDocumentor later.

phpdoc --template=xml generates this kind of XML file: https://gist.github.com/Rudloff/f037b01c2397ad5bc407bd7dfadf996b
Would that be something you can parse?

@rrrene Any success using phpdoc? If i can help in some way  - please tell. I think that you using comments analysis is the last part to make perfect modules/packages. Take a look at SamsonFramework/Generator We have scrutinizer and code climate for code quality analysis, we have styleci for coding standards validation, we have travis for builds and code coverage, packagist for dependency management and statistics, the only thing that we are lacking - is comments coverage, I think that code commenting is super very important especially in PHP. So this would give super interest to your project from PHP world if you would be first to implement such kind of CI analysis or I think someone will do it aside.

@vitalyiegorov I will need a free weekend to look at this stuff. We would need to convert the XML to JSON like described above.

@rrrene Found this package, please take a look at it https://github.com/martinsik/php-doc-parser

@rrrene  Any success with PHP language?

Sorry, did not find the time. 😞

Ok, so we have figured out than we can get XML output regarding documentation using phpdoc cli, can you guide me how to attach this approach to current project or what should be our steps to integrate it into inch-ci logic.

Please re-read the discussion in this issue. We need a PHP CLI which runs phpdoc (or something similar) and converts the resulting XML into the described JSON format.
Sidekiq has nothing to do with that and comes a loooong way down the road, when integrating the to-be-invented Inch for PHP into Inch CI, the webservice. :+1:

We need this

@inch-ci Is there any update? This issue is 4 years old and not active for 1 year. Support for PHP would be needed.

I totally agree. @inch-ci needs to support php.

closing stale issue


N-API Support

Grretings.
First of all, thanks for all the effort creating and maintaining this module, it's very efficient and convenient to use.
I would like to know if there are any plans for supporting N-API https://nodejs.org/docs/latest-v8.x/api/n-api.html?
Possibly related issue with a lot of info in it – https://github.com/mapbox/node-sqlite3/issues/830

Anyone care to provide an outline of what would be required to implement support for N-API?

Any plans on this? It gonna save tons of time doing re-compilation especially for electron apps.

@JoshuaWise would you be open to a PR that ported the V8 interface to N-API? I've been noodling on the continuous maintenance needed for Electron (#638, #693, etc.) and I believe using N-API might alleviate the need to update the build scripts every release.

Bumping this. I'm interested in taking this on, although I believe it's worthwhile porting off lzz onto vanilla C++ as part of this change. lzz is a learning barrier to contributors and is no longer available for download.

Any update on this?


Possible race in default worker

A default worker starts in goroutine at init() of stats/view/worker.go. The worker refers time package to use time.Now().
When I overwrite time.Local of package variable to ensure that time.Now() returns specific timezone, this will cause data race.  This would be an abuse of package variable but it is exposed.
This is a log of race (partially modified).
WARNING: DATA RACE
Read at 0x0000015e3db0 by goroutine 9:
  time.Now()
      /usr/local/go/src/time/time.go:1049 +0xd3
  time.sendTime()
      /usr/local/go/src/time/sleep.go:141 +0x44

Previous write at 0x0000015e3db0 by main goroutine:
  [failed to restore the stack]

Goroutine 9 (running) created at:
  runtime.(*timersBucket).addtimerLocked()
      /usr/local/go/src/runtime/time.go:160 +0x106
  go.opencensus.io/stats/view.newWorker()
      go.opencensus.io/stats/view/worker.go:152 +0x8c
  go.opencensus.io/stats/view.init.0()
      go.opencensus.io/stats/view/worker.go:28 +0x33
  go.opencensus.io/stats/view.init()
      <autogenerated>:1 +0x101
  go.opencensus.io/plugin/ocgrpc.init()
      <autogenerated>:1 +0xa5
  google.golang.org/api/transport/grpc.init()
      <autogenerated>:1 +0xb4
  google.golang.org/api/transport.init()
      <autogenerated>:1 +0xb4

Are you mutating time.Local to have a new global Location? I think this is an anti-pattern. You should instead use any preferred Location only when displaying time info. See https://github.com/golang/go/issues/10701#issuecomment-148777945.

Thanks for reply. That is the issue what I realy see! Anyway alright the reason.


Download page not working

I was trying to download the .jar file from the download page on BitBucket, but BitBucket said that the repository is unavailable...
Any other ways to download it?

See #531


[SQL] [DO NOT MERGE] Log native commands to find the number of tests that will be affected if we do not delegate any statements to Hive

For Spark 2.0, Spark will handle all queries and statements. This PR aims to get a list of test cases that will fail if we do not delegate any query/statement to hive right now.

Test build #56972 has started for PR 12687 at commit 0fb0dc3.

Test build #56972 has finished for PR 12687 at commit 0fb0dc3.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/56972/
Test PASSed.

Uploading nativeCommand.txt…


Documentation: Create guidance around making templates

We do not provide any guidance to extension packages or to core team around creating a template for ADaMs.
Prep Work

[ ] Review templates in core and extension packages for potential best practices
[ ] Review templates in core and extension packages for not so great practices
[ ] Sketch out Best Practices Guidance on Template creation and present to core team
[ ] Discuss with core team best location for guidance (section in one vignette or separate vignette)

Definition of Done

[ ] Write a new vignette (or section of existing vignette) with guidance for creating a template.

Quote from referenced issue #293 :

In principle, we should also add something to the templates guidance but we do not have any. Should we add one?
What do you mean by template guidance?

We provide several templates in inst/templates but we do not have a guidance for these files, e.g., we do not describe when templates should be created, how they should be structured, which data they should use, ...
Originally posted by @bundfussr in https://github.com/pharmaverse/admiraldev/issues/293#issuecomment-1619963647

@manciniedoardo and @bundfussr what do you think?  Feel free to edit.

This template vignette should additionally refer to the Programming Strategy vignette on admiraldev, as it explains lots of the code conventions that are used.


Add Rd files for sampleByKey() of [SPARKR-163] and sumRDD() of [SPARKR-92]

Add two Rd files for:

sampleByKey() in [SPARKR-163]
sumRDD() in [SPARKR-92]

@hqzizania looks like there are errors building the docs.

Oops, there is a bug in sampleByKey() doc in pairRDD.R. I have fixed it.

Thanks @hqzizania - merging this and cherry-picking to sparkr-sql


Stroyan thread tuning

These changes reduce the overhead of the threading layer.
The number of mutexes is increased to reduce contention between threads.
The parameter reference counters are only updated once multiple threads are seen overlapping calls to vulkan.

+1

LGTM :+1:

Needs perf numbers. I'm seeing something odd on nvidia/z840 running smoketest (built as RelWithDebInfo) with just this threading layer -- total frame time jumps from 41.4ms to 41.8ms with this change.

Running "smoketest -b" on a very similar system with linux shows-
no validation:  1.5 milliseconds per frame
old threading layer: 69.5 milliseconds per frame
new threading layer:  33.0 milliseconds per frame

Pushed to master.


WASM support

Would it fit the project to add a WebAssembly target?

Creating a simple HTML5 canvas object and then copying the buffer of pixels every frame to JavaScript and sending the events back. Or it could be done using ImageData.
Scaling could be implemented like this.
A example for keyboard input is shown here.
The menus could be a problem but that could be fixed with custom buttons in JavaScript.

I would love to help with developing/testing this if it fits your vision of the project!

I've created a window wrapper for wasm based on stdweb https://github.com/koute/stdweb. I use it for OrbTk https://gitlab.redox-os.org/redox-os/orbtk. Maybe I could help to implement wasm support.

I've made a small attempt to set this up but I got stuck quite quickly. It seems you are well versed in WASM, maybe we could implement this feature together?

@tversteeg sure why not. Do you use a specific library? I uses stdweb (https://github.com/koute/stdweb), it's very comfortable for interacting with web api on Rust wasm. You could find my wasm window shell wrapper on https://gitlab.redox-os.org/redox-os/orbtk/blob/master/crates/shell/src/web/mod.rs. The code could need a little bit refactoring and there are also OrbTk specific parts, but we could use it as example.
I also create a tool called cargo-node https://github.com/FloVanGH/cargo-node to build, deploy and run rust wasm applications as electron or cordova app. It could help us to test the port and we could use it also for a initial android port until there is a native port.
At the moment I have a lot of work todo on OrbTk but I can spent some time in a few weeks. I hope after the port is finished I can replace my wasm window shell wrapper.

I've created a small start here: #92
It's compiling but not working at all at the moment, I'm not sure what I'm doing wrong.

@tversteeg do you tried to run it with cargo web? https://github.com/koute/cargo-web. I've tried it and get this output.
rror[E0433]: failed to resolve: use of undeclared type or module `imp`
   --> src/lib.rs:128:19
    |
128 | pub struct Window(imp::Window);
    |                   ^^^ use of undeclared type or module `imp`
error[E0433]: failed to resolve: use of undeclared type or module `imp`
   --> src/lib.rs:190:9
    |
190 |         imp::Window::new(name, width, height, opts).map(Window)
    |         ^^^ use of undeclared type or module `imp`
error[E0433]: failed to resolve: use of undeclared type or module `imp`
   --> src/lib.rs:682:17
    |
682 | pub struct Menu(imp::Menu);
    |                 ^^^ use of undeclared type or module `imp`
error[E0433]: failed to resolve: use of undeclared type or module `imp`
   --> src/lib.rs:695:9
    |
695 |         imp::Menu::new(name).map(Menu)
    |         ^^^ use of undeclared type or module `imp`
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0433`.
error: could not compile `minifb`.

To learn more, run the command again with --verbose.
error: build failed
	static/index.html

cargo-web start.
warning: unused manifest key: package.maintenance
   Compiling minifb v0.13.0 (/Users/florian.blasius/Downloads/rust_minifb)
error[E0433]: failed to resolve: use of undeclared type or module `imp`
   --> src/lib.rs:128:19
    |
128 | pub struct Window(imp::Window);
    |                   ^^^ use of undeclared type or module `imp`
error[E0433]: failed to resolve: use of undeclared type or module `imp`
   --> src/lib.rs:190:9
    |
190 |         imp::Window::new(name, width, height, opts).map(Window)
    |         ^^^ use of undeclared type or module `imp`
error[E0433]: failed to resolve: use of undeclared type or module `imp`
   --> src/lib.rs:682:17
    |
682 | pub struct Menu(imp::Menu);
    |                 ^^^ use of undeclared type or module `imp`
error[E0433]: failed to resolve: use of undeclared type or module `imp`
   --> src/lib.rs:695:9
    |
695 |         imp::Menu::new(name).map(Menu)
    |         ^^^ use of undeclared type or module `imp`
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0433`.
error: could not compile `minifb`.

Are you running the wasm branch? Because on master I get the same errors as you do.

Hi, this ticket has been on hold for quite some time. What's the status?
I took a quick glance at other implementations, and it seems like using the asynchronous .request_animation_frame from web-sys is the way to go, but I wonder how that plays with a simple loop like we use in minifb.
For reference, I took the time to remove dependencies on a demo game I found that uses exactly that, and it's been a real success.
I was able to run the entire game in 100% rust, with only some glue javascript to load the wasm binary. The good part is that the javascript it uses is autogenerated, ¡and you don't need to use nor install npm!
https://github.com/dc740/blobs-and-bullets
The game, and the explanation on how it works can be found here:
https://rhmoller.dev/posts/2020/my-experience-with-rust-and-websys/
I was thinking about taking this task by myself, but I can't seem to find a way to abstract web-sys to make it look simple. minifb has something others don't: you can look at the implementation and figure what's going on or how to use it almost instantly. There are no puzzles on layers and layers of abstractions that tend to bloat most projects that want to be super generic. minifb is good at doing a few things, and it shines on those things for the simplicity. I wanted to replicate that experience with websys, but I simply can wrap my head around it.

Hi, So there has been some work on it it here https://github.com/emoon/rust_minifb/pull/92 but from what I understand is that it's hard to get it working with WASM the way minifb is currently structured in terms of event handling.

minifb has something others don't: you can look at the implementation and figure what's going on or how to use it almost instantly. There are no puzzles on layers and layers of abstractions that tend to bloat most projects that want to be super generic. minifb is good at doing a few things, and it shines on those things for the simplicity.

Thanks! This is something that is important to me and I try to keep the code straightforward :) Even if it has got a bit more complex over the years, I think it's still fairly easy to follow.

thank you very much. I share your philosophy. Sometimes we need complex code, and other times, we need code that is easy to maintain and has a low barrier to newcomers. I like to share knowledge, so I try to go with the later when possible. Specially on Rust, which already has a high learning curve due to the way it handles memory.
I took that PR, removed all style changes, and squashed the commits into one (found in my fork, under the wasm branch)
I'm glad to help here and I think we have two options:

Copy the arduino style: have a setup, loop and teardown functions that get called.
Create a thread where the main loop gets detached from the wasm related functionality.
Create a thread for the game loop and send a closure with it as explained above

I have not tried 1 and 2, but I think they will look much simpler to the end user. I like 1 for the simplicity of the backend implementation, and I also think it gets bonus points for being familiar to Arduino developers, which many times are beginners who are learning to code.
Options 2 and 3 require threads, which are now mature and available, but... you increase the complexity of the implementation.
Speaking of implementations, I don't know how I would exit the game loop. Probably register the function, and stop the game loop if the function returns false, or something like that. So the actual control is still in the game loop, and not in the library implementation. I still want to be able to ask if the window is open or a key is pressed to decide if I want to quite the game loop. Specially for demos and short examples for students.

Personally I would (if possible) to keep the current flow like:
    let window = window::create(..);
    while window.is_open() {
      // do stuff
   }

Now, if this doesn't work for WASM perhaps we can have something optional for people targeting wasm and still keep the "old" style API around. I would prefer it worked as similar as possible, so if you want to target wasm the style (that is required in that case) also works with the current Linux, macOS, Windows backends and in those cases it will just be calling the regular API while being a bit hidden from the user.
This way we wouldn't break the current API compatibility and allow users to switch to the alternative API if they want to transition.
I also think that threads shouldn't be a requirement to use minifb as you pointed to as well.

These are the exact same problems I've encountered when experimenting with a solution in #92, I don't think that until threads have been implemented in WASM it will be possible to maintain @emoon's blocking while loop. The reason for this is that all the pixels need to be copied from the JavaScript context to the Rust context and back. With my experiments it wasn't possible to do this ~50 times in a second.

Right. I'm also open to an alternative update loop as written above, but I want the current one to be working as is. Also the new updated style needs to support the current backends.
So if you have some suggestions for this I'm all ears.

Even with an alternative update loop it will still be very challenging to achieve, because the performance problem of moving the buffers between the contexts still stands. And since there's no thread support in WASM yet the problems are exactly the same.
What I didn't research and what might be possible is that somehow JavaScript accesses the minifb buffer that's allocated in the WASM context directly and converts it to the pixels it can use. I'm assuming the performance of this is worse though. I don't give this a high probability of success though.
So my suggestion is, like I said, to wait and hope that IO devices will be supported and that the JS pixel buffer can be shared with Rust without much overhead.

I see. I haven't done any WASM stuff, but I (naively) figured it would be fast to move data in/out to JS.

I think you are right. it may or may not give a good performance, but I still think it's worth adding support for working on the  HTMLCanvas from Rust like the projects I posted above. IMHO the problem of performance should be fixed by wasm-bindgen in the glue javascript code some day, and we shouldn't think too much on it. We could add a flag to use hardware acceleration when/if that becomes a standard and someone requires it, but I wouldn't stop at the performance problems right now. For me, getting basic support, and a simple api can be a good thing, even if its slow.
I personally would define an extra API. Something simple to work like an async api. So people who need webassembly could use minifb with the async api (enabling the flag manually!). This way we could keep the loop as it is right now, and offer an option that is webassembly friendly. Hey, it would even be async friendly, for those who prefer it.

It this is possible it sounds good to. If you would like to take a stab at it that would be great, just make sure to verify that an async version would work with existing backends also. This is so people targeting wasm can have the same code running for native as well.

Sorry I took so long. I was working on a candidate implementation. At first I was wondering what to do with the fact that the web  does not like blocking code and then it hit me: I must not do anything.
I literally ignored the problem, since the developer who wants to build for the web will already be thinking in async code, so minifb job is not to get in the middle.
This is the draft PR. I will work on the example over the week. Most likely on the weekend.
https://github.com/emoon/rust_minifb/pull/239
Here is another demo if anyone wants to take a look or test the code (which I haven't done yet!):
https://github.com/extraymond/rust-async-wasm-demo
The idea is to actually spawn a task and just keep updating the canvas from request_animation_frame, which runs more than 50 times a second. I wouldn't trust the timing there, but it took about 6 seconds to count from 0 to 300 in both, a 12 year old intel processor, and on a ryzen 5800.
https://rustwasm.github.io/wasm-bindgen/examples/request-animation-frame.html

The PR is still a little rough around the edges, but I finally got a working demo:
https://github.com/dc740/minifb-async-examples
it's flashing the screen on each animation frame. I need to add a different main to use the same app with other minifb backends, but you get the idea. minifb only provides the abstraction, and the developer is in charge of the main loop. You can choose to spawn_local, request_animation_frame, or even use other executors on a desktop app.
It's still a work in progress, but at least it works. Next steps: Improve the PR and improve the demo to run on other non-web backends.

Would it be possible to try to not use the RefCell stuff? I know that sometimes you have to use it, but if some design that doesn't require it would be great.

From the demo I posted last week, I think you can use spawn_local, and then setTimeout to render at your desired speed (let's say 30FPS).
More info:
https://forum.unity.com/threads/rendering-without-using-requestanimationframe-for-the-main-loop.373331/#post-5019212
I took the sample code from the official book:
https://rustwasm.github.io/wasm-bindgen/examples/request-animation-frame.html

Just in case, the demo was not working. I didn't copy some files. It's fixed now, and it shows a bouncing green box.

OK, the PR is not ready, because there is no keyboard support right now (or at least I didn't try it). I had to extra long weeks, but I finally got the time to finish the demo:
https://github.com/dc740/minifb-async-examples
The same code compiles in desktop AND web! It uses a regular loop for desktop, literally copy/paste from the minifb README, and it uses async request_anim_frame  on the web.
As I said before, you could use spawn_local to execute a function many times, and only refresh at the desired FPS. I didn't try it. What I did try was the request_anim_frame FPS, and it looks like it's limited by the browser or vsync, I'm not sure. Cause I couldn't get more than ~50FPS, even on a ryzen 7 5800x with a 4gb video card. Tried X server and wayland, and both seem to update above 50FPS, even though the processors and cards are completely different. (the X server was running on an intel 7400 with 256mb ati radeon express).
The great thing about getting some basic support, is that you can later add webgl, and get a nice boost. I didn't follow this because my old laptop can't run webgl, so I'm interested on having an alternative. Regarding your previous request: I'm not sure I can avoid refcell, I haven't looked into it, since I'm a little short on time lately.

I have not been able to look at this as much as I'd like. I'll leave the current status detailed, just in case anyone wants to help (much needed):

You can create a project that uses the same code for web and desktop (see the demo I published)
It runs at the monitor sync rate (this is how request anim frame works, but check the TODO list)
There is no need to set the rate, since there is no blocking code
It get keys and mouse events so you can move the demo box with the arrows.
all keyboard keys are mapped
mouse is mapped

BUGS:

it's not capturing the input until you click on the canvas
letters are sent to the search bar (at least on firefox). I tried calling .prevent_default() but the arrows stop working. I probably did something wrong

TODO and "nice to have":

Clean up the Instant requirement. I think it's only needed for the web part, so it doesn't make sense to use it globally (although it changes nothing)
modify the demo so the game is run with spawn_local, and leave the final buffer copy in the request_animation_frame
evaluate Shared Array Buffer  (now it's supported again!!!) combined with web workers https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
evaluate OffscreenCanvas https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas
if the last two items work OK, we can finally have a blocking loop in a web worker and we can share even more code. Right now the project needs to be setup as I show here: https://github.com/dc740/minifb-async-examples

Just a heads up, it's merged!
Of course it can be improved but you can run minifb on the web now. I cleaned up the multiplatform demo a little bit: https://github.com/dc740/minifb-async-examples
The same code compiles to desktop, and there is a script to compile to wasm32 and create a web page to load it.

Closing as (initial) support has landed


Get session token before assuming a role

When performing an AssumeRole, the aws:MultiFactorAuthPresent value
doesn't appear to be set unless a session token is first acquired with
GetSessionToken. Now we call GetSessionToken, then use the acquired
credentials to call AssumeRole.

Do we need to include any documentation about the 1h limitation?


Empty controls

Hi!
I have an issue with the localize plugin. I have a simple app with two pages.
XML of page 1:
<Page> 	<StackLayout> 		<Label text="{{L('welcome')}}" textWrap="true"/> 		<Button text="{{ L('start.test') }}" tap="onTapStart" /> 	</StackLayout> </Page>
XML of page 2:
<Page loaded="onLoaded"> 	<StackLayout> 		<Image src="~/images/Normalized_Rorschach_blot_01.jpg" stretch="aspectFit" /> 		<GridLayout rows="auto, auto, auto, auto" columns="2*, *" class="answers"> 			<Label tap="selectAnswer1" text="{{ L('q1.ans1') }}" textWrap="true" row="0" col="0" /> 			<Switch checked="{{ answer1 }}" row="0" col="1" /> 			<Label tap="selectAnswer2" text="Answer2" textWrap="true" row="1" col="0" /> 			<Switch checked="{{ answer2 }}" row="1" col="1" /> 			<Label tap="selectAnswer3" text="Answer3" textWrap="true" row="2" col="0" /> 			<Switch checked="{{ answer3 }}" row="2" col="1" /> 			<Label tap="selectAnswer4" text="{{ L('Lorem ipsum dolor sit amet.') }}" textWrap="true" row="3" col="0" /> 			<Switch checked="{{ answer4 }}" row="3" col="1" /> 		</GridLayout> 		<Button text="{{ L('Next question')}}" tap="" /> 	</StackLayout> </Page>
After running the app (even after tns platform clean android and then run) I have empty controls on the first page, here's what I see in the chrome debug:
<Page> 	<StackLayout> 		<Label></Label> 		<Button></Button> 	</StackLayout> </Page>
The other page works fine, all the texts are in place and translated.
The lang file en.default.js:
module.exports = {     "app.name": "Rorschach Test",     "welcome" : "Welcome!!",     "start.test" : "Start the test",     "q1.ans1" : "answer1"   }
NativeScript Core, Windows 10, target platform android, everything is a fresh install (latest versions).

Weird, but it started working after I added some empty observable and bound it:
const observableModule = require("data/observable"); const context = new observableModule.fromObject({}); exports.onLoaded = function (args) {     page = args.object;     page.bindingContext = context; };
Don't know if it's a bug or a feature, you may take a look at it :)

Not a bug nor a feature, it seems that you have to add a bindingContext to access application resources, if you take a look at the demo, I just do page.bindingContext = {};

Thanks! So it's just a thing to remember :)
Is it possible to localize also code in JS, like for example alert messages using your plugin?

Yes you can, just use the localize function directly:
const localize = require("nativescript-localize").localize;


Project still maintained?

Hi,
I am considering using this to plot some graphs, but I noticed that none of the pull requests of the last four-ish months have been merged.
Is this project still actively being maintained?

@38 what's your plan with this project?
I can totally understand that you don't have time to maintain plotters or want to work on something else, but letting the code rot here while there are people still sending PRs is not a good solution.
You could at least ask the community if somebody want's to step up as a new maintainer.

Jup, otherwise the biggest plotting library will end up in fork hell.
I guess I'm going to plotlib

Any other recommendations for stable plotting libraries?

Any other recommendations for stable plotting libraries?

Not strictly plotting, but I've migrated away to egui, which is an immediate GUI library with some plotting capabilities.
There are still quite a few missing plot features though, and since it's immediate-mode, you have to pass in the data again every frame, so the approach is a bit different. But at least the library is actively being developed, with many contributors.

Great to see that we can compare to the legendary imgui! But sadly too many non-rust dependencies which makes deployment impossible in some cases :(

I've contacted @38 via email two weeks ago and didn't get a response. I think it's save to say that this repository won't receive any updates anytime soon and @38 won't take care of finding a maintainer.
It looks like a fork is unavoidable if we don't want to let this code rot here forever.
So the big questions are:

Is anyone willing to step up as a maintainer?
Are there already active forks?
How do we communicate the changes and what name do we want to choose (the "plotters" name is already taken of course)?

FYI https://aaronerhardt.github.io/blog/posts/plotters_future/

Does anyone have a suggestion for a new crate name for a fork?

@38 has recently committed to this repository. Maybe try opening an issue there to get in contact?

Does anyone have a suggestions for a new crate name for a fork?

plott-rs? 😁

Hi, I just want to chime in to suggest taking it easy with the contact attempts. As is evident from their profile, @38 appears to be active on GitHub. Therefore, I think it's unlikely that they aren't aware of the e-mails being sent and issues being opened in this repository. I guess they may simply not be interested in responding at the moment, for one reason or another. I think we should respect that, instead of starting new creative contact attempts, like opening issues in unrelated repositories.
Of course, it's far from ideal that a project like this, with a lot of public interest, is left unmaintained at the moment. But ultimately, it's okay for @38 to not interact here at the moment, if they don't feel like doing so. This is free, open source work after all.
In case @38 is following this discussion, I would also like to mention the Rust Bus project as another option:
https://github.com/rust-bus
https://users.rust-lang.org/t/bus-factor-1-for-crates/17046
By running cargo owner --add rust-bus-owner, a set of volunteers will be added to the project, in order to ensure that it doesn't go unmaintained. To me, that looks like the best option at the moment.

A fork is open now #341 :rocket:

I opened a call for participation issue and closes this one.


Refactor sim merge

Brief description
Separates the very long sim.py file into sim.py and people.py (see https://github.com/fpsim/fpsim/issues/246), with a few additional things in empowerment.py (https://github.com/fpsim/fpsim/issues/249).
Lots of line changes but shouldn't be any changes to functionality.
@pausz can you take a look at the code changes?
Type(s) of change

[x] Bugfix
[x] Refactor
[ ] New feature
[ ] Other

Checklist

My code follows the style guide

[x] Yes
[ ] N/A

I've commented my code

[x] Yes
[ ] N/A

I've incremented the version number

[ ] Yes
[ ] N/A

I've updated the changelog

[ ] Yes
[ ] N/A

I've added tests and checked code coverage

[ ] Yes
[x] N/A

Closing as superseded by other work


Add option to create clusters from Manager

Administrators should be able to create EdgeClusterConfiguration entries in the ConfigDB when a new cluster is required. It has a simple structure, with name and namespace keys. The flux entry is automatically created by the ECO.
When creating the General Object Information entry it would be useful to include location data.
Having a list of existing clusters would also be useful. Deleting the clusters is not a required feature at this stage.

Added the relevant entries to the auth dumps but still getting a 403 on $uuid = $configDB->createObject(Klass::EdgeCluster, name: $name)['uuid'];

Once a cluster has been created, POST to the EDO URL /v1/cluster/:uuid/bootstrap-url. This will return 404 until the cluster has been set up in the central services. After that it will return a JSON string holding an external, public URL which can be used to fetch a bootstrap script for this cluster.
The reason for the extra indirection (rather than a fixed bootstrap script URL) is that I want to keep the option open of generating a URL with a secure token in rather than just allowing public access. This is a POST URL because it might be generating a new token.


docs: ipsec: mention dependency on transparent mode for DNS proxy

For connections that are established by the DNS proxy, this is required to detect the original source IP and apply IPsec policy accordingly. The agent fatals if IPsec and L7 proxy are enabled, but the DNS proxy is not set to transparent mode.

/test


CSTAR-463 - fixed duplicate consistency-level name getting code

Code looks good to me so far. A couple things:

Have you run this to confirm it doesn't break anything?
Have you checked around in other files to see if there are other instances of this logic?
You should be able to delete TestHelper._name now.

Looks like each instance of ConsistencyLevel.consistency_value_to_name should be cassandra.consistency_value_to_name: https://github.com/datastax/python-driver/blob/master/cassandra/init.py#L124

His code is now failing, and I genuinely can't figure out why. It doesn't appear related to his changes.

His code is now failing

Are you talking about the log errors?

Ugh, the job wasn't linked on this PR so I don't remember at all what was wrong. Hopefully he can find it

http://cassci.datastax.com/view/Dev/view/c-kodman/job/c-kodman-trunk-dtest/15/

Could it have been flakiness from the recent problems with Netty?
This needs to be rebased.

But, after rebase and another run on CassCI to make sure it works, I'm +1, code looks great.

http://cassci.datastax.com/view/Dev/view/c-kodman/job/c-kodman-trunk-dtest/17/
I rebased with Russ's help.  I'm not positive I did it properly.  But I think I did?

actually this is the correct build:
http://cassci.datastax.com/view/Dev/view/c-kodman/job/c-kodman-trunk-dtest/18/

Looks like I broke this.  I'm not sure how to fix it right now either.

Okay, so I think I broke it during my rebase.  I saved my original branch in another branch of mine - dteststress_save.  If I have to go back, it is there.  Someone will just have to let me know.

https://cassci.datastax.com/view/Dev/view/c-kodman/job/c-kodman-trunk-dtest/19/

https://cassci.datastax.com/view/Dev/view/c-kodman/job/c-kodman-trunk-dtest/20/

The build passed (2 failures unrelated to the consistency_test).  So as far as I know, we are good to go.


Does anyone have this error? SELECT GROUP BY

I'm doing the tests on ubuntu 16. The pyopenssl library was not installed correctly and I removed the version. After performing all the steps, I have this error:
Internal Server Error: /
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 147, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/die/malspider/malspider_django/dashboard/views.py", line 68, in index
unique_alerts = ModelQuery.get_num_unique_alerts()
File "/home/die/malspider/malspider_django/dashboard/functions/model_helper.py", line 65, in get_num_unique_alerts
return len(list(all_alerts))
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 1219, in iter
query = iter(self.query)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 79, in iter
self._execute_query()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 113, in _execute_query
self.cursor.execute(self.sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 79, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 95, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py", line 112, in execute
return self.cursor.execute(query, args)
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
OperationalError: (1055, "Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'malspider.alert.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by")
[14/Nov/2017 14:38:54] "GET / HTTP/1.1" 500 122406
thanks for everything This project it is a good job

This solve the error:
mysql -u root -p
Type your mysql root password and you should be presented with a mysql prompt, then type this to remove the strict group_by setting:
mysql> set GLOBAL sql_mode = '';
Thanks user @jasheppa5


quotes have to be escaped in "Show Curl" output

I have a parameter which has a quote in it. (I have to access this particular API: https://developer.freshdesk.com/api/#filter_tickets)
The Run Request runs fine, but when I click on "Show Curl", the quotes appear as is, thus terminating the open quote of the URL.
curl -X GET -H 'user-agent: zzAPI-vscode/2.3.0' -H 'authorization: Basic XXX' -k -i 'https://domain.freshdesk.com/api/v2/search/tickets?query=%22type%3A'Saathi%20Churn'%20AND%20created_at%3A'2024-05-31'%22&page=1'

Also, can we drop the user-agent header? curl will send its own user-agent header, and we should respect that.

I understand the issue, but can you clarify what you mean by "quotes have to be escaped"? I interpret it to mean you want the quotes wrapping the headers, url, etc. to be escaped (\'...\' instead of '...') while creating the string, but I fail to see how that would help prevent cURL from misinterpreting the command, because the output command would still be the same, right?
The fix I see is just to replace the single quotes on creation with double quotes, but that may not be general enough.

I think even ' won't work. BTW, it is the shell that interprets this, not curl. For the shell, anything within single quotes, including \ will be interpreted literally.
We could use double-quotes instead of single quotes, but that would mean lot of escaping. We will have to escape ", $, * at the minimum, because these have special meaning in the shell.
Even though it is not required to URL encode the single quote using %, we can do that and it will work. So replace all ' in the cURL command with %27 (even though the zzAPI request will have the single-quote as is).

The node module replaces single quotes with %27, while the extension removes the zzAPI user-agent while calling constructCurl in the module.


Remove unused variables

This is a small fix to avoid build errors when building Thermochimica using the MOOSE build system.

Great, thanks for the PR


Move Database Operations off Main Thread

https://spark.lucko.me/2IVPTx2H2y - HuskClaims appears to be a pretty performant plugin; however, some database operations are unfortunately running on the main thread. Would it be possible to have these performed asynchronously?

Huh it looks like its skipping the cache. I'll have a look at this.


build middleware echoapp on ci

Description
build middleware echoapp on ci
Issue reference
N/A
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[x] The sample code compiles correctly
[ ] You've tested new builds of the sample if you changed sample code
[x] You've updated the sample's README if necessary

Ignore my comments, I missed the KEDA samples.


error in user_spi_write template (code comment)?

In the section titled "Templates for Function Pointers" there is a code comment for the SPI write example as follows:
 /*
     * Data on the bus should be like
     * |---------------------+--------------+-------------|
     * | MOSI                | MISO         | Chip Select |
     * |---------------------+--------------|-------------|
     * | (don't care)        | (don't care) | HIGH        |
     * | (reg_addr)          | (don't care) | LOW         |
     * | (reg_data[0])       | (don't care) | LOW         |
     * | (....)              | (....)       | LOW         |
     * | (reg_data[len - 1]) | (don't care) | LOW         |
     * | (don't care)        | (don't care) | HIGH        |
     * |---------------------+--------------|-------------|
     */

However the Bosch data sheet describes SPI writes as alternating Control byte - Data byte - Control byte - Data byte.
So for my second write in the sequence, must I send (reg_addr+1), or can I write to any address?  In other words, should the code comment be written as follows:
 /*
     * Data on the bus should be like
     * |---------------------+--------------+-------------|
     * | MOSI                | MISO         | Chip Select |
     * |---------------------+--------------|-------------|
     * | (don't care)        | (don't care) | HIGH        |
     * | (reg_addr[0])       | (don't care) | LOW         |
     * | (reg_data[0])       | (don't care) | LOW         |
     * | (reg_addr[1])       | (don't care) | LOW         |
     * | (reg_data[1])       | (don't care) | LOW         |
     * | (....)              | (....)       | LOW         |
     * | (....)              | (....)       | LOW         |
     * | (reg_data[len - 1]) | (don't care) | LOW         |
     * | (don't care)        | (don't care) | HIGH        |
     * |---------------------+--------------|-------------|
     */

If this is the case, then it seems to be little point to going to the trouble of writing more than 1 byte at a time except that you can keep CS low.
Or put another way, how would you perform a write to two different registers with a single call to the function below (where len = 2)?
int8_t user_spi_write(uint8_t dev_id, uint8_t reg_addr, uint8_t *reg_data, uint16_t len)

However the Bosch data sheet describes SPI writes as alternating Control byte - Data byte - Control byte - Data byte.

There is a legacy reason to this. Most Bosch Sensortec parts support multi-byte write burst with address auto-increment, and the function can be reused on all Bosch Sensortec parts.
For that reason, the BME280 driver automatically places extra control bytes in the data buffer if it wants to burst write, so this comment is accurate and how the function should be implemented. You can take a look at the bme280_set_regs function in bme280.c. This is where the magic happens.


Please share roadmap

Hi, thanks for this project.
Is there any roadmap for ktlint?
I found only one reference to roadmap in old issue but have no idea where to search for this blog post.
Should this be included into the repository/readme somewhere?
Or maybe create milestone 1.0.0 that will show what planned to be implemented in long period of time?

@shashachu probably make sense to set milestone for 1.0.0 version and create issues related to first stable release

Unfortunately I get the feeling that this project is getting stale slowly. The number of open pull requests is rising.  I still would like to contribute to the project, if my pr's are getting merged. I can understand if current maintainers do not have time or energy for the project. Is there any possibility that new maintainers are added so that the project can be revived?

@paul-dingemans apologies for the issues with getting your PRs merged. You're correct that the free time of the maintainers has dropped over the last year, and particularly recently, however we're still committed to the project. I'll put some time into getting the builds green this week.

@arhont375 For now, we will not define a long term roadmap. Main reason is that we have limited capacity to work on the project. Recently, I joined as maintainer on the project. My personal goal it to push the project forward by speeding up the review and merge process and to actively stimulate people to contribute to ktlint.


Added types definition for TypeScript

@DrunkenPoney Ping :)

Done! Sorry for the delay

For packages with a default export, use export default foo;, not export = foo;. You will have to add module.exports.default = foo; to the index.js file.

The pull request should have the title Add TypeScript definition. (Copy-paste it so you don't get it wrong)

Ping

Closing in favor of #5.


Unable to paste in the new SFTP text editor

Bug description
The current file editor cannot copy and paste the edited file. Is there any repair
发自我的iPhone

Now available inside the latest beta release : https://testflight.apple.com/join/QSrBK59z


Blank page when security is off

When include-security=false there is the blank page in pdf file

okay, will take care of this


Add an option to disable removal of script tags

I am assuming some very smart people found more than enough reason to fully remove script tags after the render has completed in the stripPage function. I'm trying to use rendertron to pre-render a react application. The result is then used as response in a Django application.
It works like a charm except for the fact that the React app can never work again in the pre-rendered code because all my script tags are gone! That's why I would like to ask to put this under a config.
I see an opportunity to add this to #267 (PR: Enhance Rendertron config) but I don't know if that's the way to go. Perhaps @gravi2 could add this feature to the PR?

Yes app not work after render because all script gone now and also global variables , Anyone knows how to solve this issue?

@adi9999 See the commits on my fork which works fine:
https://github.com/frontendr/rendertron/commits/feature/configure-strip-page
https://github.com/frontendr/rendertron/commit/f7c95baf735cfc36096a5c70a3385fea5c7e6d5b adds the config variable in which you can specify the selector of the elements to remove.
https://github.com/frontendr/rendertron/commit/2e885e5d28e5febb3383df70c7ce7924135a57ff Fixes the global variable issue in the removal function by injecting a global variable named window.__rendertronConfig.
I would love some input on how to make this change ready for a pull request.

Thanks for your ideas and the work you've done in your fork, @frontendr!
The main use case for Rendertron is dynamic rendering, i.e. rendering a client-side rendered web app into static HTML.
The use case you describe sounds like you want re-hydration. For React, that can be achieved with react-snap or by using Next.js as a higher-level framework.


Remove unsupported HorizontalTextPositions in the Checkbox control

Only support the LEFT and RIGHT options

The method has been removed!


Fix storage location of Docker images and containers for Mac or linux

This will fix information about used memory space when build image of docker on osx host machine. Docker has another directory on linux and osx.
Problem
What is being fixed?  Examples:

Fix crash on startup
Fixes #12345 Frobnozzle is leaky (exactly like that, so GitHub will auto-close the issue).

Change overview
What's in this PR
Testing
How was this tested? (at least one bullet point required)

If unit tests were added, how do they cover this issue?
If unit tests existed, how were they fixed/modified to prevent this in future?
If new unit tests are not added, why not?
If integration tests were added, how do they verify this change?
If new integration tests are not added, why not?
If manually tested, what platforms controller and device platforms were manually tested, and how?
If no testing is required, why not?

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

@DamMicSzm Thank you for the fix!


Some tag pages not working if multiple blogs exist

To reproduce:

Create an initial blog index (call it Main Blog), with some tagged posts.
Click on tag links - they work (for now).
Create another blog index at another point in the hierarchy (call it Fred's Blog), with some tagged posts.
Click on some of those tag links - they work.
Return to Main Blog and again click a tag link - the resulting tag page no shows no results (whereas it formerly did show results).

In addition (I believe this is related), the default wagtail breadcrumbs now show the wrong path - after clicking a tag link from the Main Blog, the breadcrumbs on the resulting tag page incorrectly show the path to Fred's Blog.

This raises the additional question of how tag links/pages should behave when there are multiple blogs in a site, and also when tags are used for other types of content as well. Should clicking a tag link take the user to A) Similarly tagged content for that blog only, B) Similarly tagged content for all blogs on the site, C) Similar content for the whole site (both blog- and non-blog content). I'd argue that C is probably the most common need for a mixed site. Though I'm beginning to see why someone would want to fork this and modify it differently for different projects.

Same behavior exists with categories if there are multiple blogs in the site - works fine at first, then if you add a 2nd blog, the category links for the first blog turn up empty result sets.

Let me know if you'd still like to help with better multi blog support and we can discuss.

Please implement multiple Blog Index support. Right now I'm working around this by using function based views returning all BlogPages that fit the request.


Handle or operator in Poetry dependency specification

Description
It's not documented in Poetry's dependency specification but they support an or operator.
I ran into this in the wild here.

thank you again!


modify asset presentation heuristics

This PR will implement the set of changes that are described in #800.
The following is an example of how an asset that is not hosted in hatrac will look like: https://dev.gudmap.org/~ashafaei/chaise/record/#2/Common:Publication/RID=17-EZ7M
To make sure the added span looks good, I had to add a new css rule to chaise.

@jrchudy Thanks for running the chaise test cases. I ran only the presentation test cases and forgot that this change also affects the entry modes. I updated the test cases that you mentioned in this PR.


Does ObjectMapper support Generics ?

Hello!
Tried to map generic class. All properties mapped successfully except of generic properties.
Code below is not being mapped properly:
public class GenericResponse<T> : Mappable{
    var status: Int?
    var response: T?
    var error:ErrorResponse?

    public static func newInstance(map: Map) -> Mappable? {
        return GenericResponse<T>()
    }

    public func mapping(map: Map) {
        status <- map["status"]
        response <- map["response"]
        error <- map["error"]
    }
}

But if we specifies T class explicitly it will be mapped with no problems.
Is there any way to map generics ?
Thanks

Because you are mapping "response" to response, T has to confirm to mappable.
public class GenericResponse<T: Mappable> : Mappable{

will do the job


Error: Couldn't find preset "es2015" relative to directory

After following the getting started guide, I get the following build errors when running npm start:
$ npm start

><EMAIL_ADDRESS>start
> nuxt

nuxt:build App root:  +0ms
nuxt:build Generating .nuxt/ files... +2ms
nuxt:build Generating routes... +8ms
nuxt:build Generating files... +5ms
nuxt:build Adding webpack middlewares... +15ms
Ready on http://localhost:3000
./.nuxt/server.js
Module build failed: Error: Couldn't find preset "es2015" relative to directory
    at /node_modules/babel-core/lib/transformation/file/options/option-manager.js:299:19

Running npm v3.10.8 and node v4.5.0.

Hi @sean-hill
I tried with node v4.5.0 and the latest version of npm and it works, could you try this?
rm -rf node_modules/
npm install -g npm
npm
npm start


DropdownV2 Performance Boost + ComboBox

DropdownV2 Performance Boost + ComboBox 🚀
Wowowow! Another big Dropdown (V2) update! This one brings a ton of performance enhancements to Dropdown (V2). Not only that, but it's now even flexible-lier.
We also get a brand new component called ComboBox, which is essentially a filterable Dropdown.
ComboBox

ComboBox is built on top of DropdownV2. It works very similar to other select/filterable Dropdown libraries like Chosen or React-Select.
With the help of @knicklabs , the component API is extremely flexible! Here's an example of how you can customize the filter/results.
Customizing the filter
This component uses a very simple filter algorithm to match items. You can use your own custom method for finer-grain control.
customFilter({ hasGroups, items, inputValue }, defaultFilter)

Prop
Type
Description

hasGroups
boolean
Determines if the provided items are grouped.

items
Array<any>
Collection of initial (unfiltered) items.

inputValue
string
The search query from the Input.

defaultFilter
Function
The default filter algorithm.

In the example below, we'll return an empty collection (Array) if there are no inputValue. Otherwise, we'll just use the default filter algorithm.
const customFilter = ({ hasGroups, items, inputValue }, defaultFilter) => {
  if (!inputValue) return []

  return defaultFilter({hasGroups, items, inputValue})
}

...

<ComboBox items={[...]} customFilter={customFilter} />

StateReducer

DropdownV2's internal state management system (Unistore... aka. super light Redux) has been enhanced to use a "state reducer pattern". This exposes the state changes externally, allowing the user to change the state when actions are performed, if they want to.
This can also be used like middleware. The above example showcases console.log'ing the state/action changes.
Groups/Dividers

This update adds grouping + divider support to Dropdown. Need groups with nested results? Sure! Check out the demo above ☝ .
Performance!! 🚀

This update dramatically improves the performance of interactions with the Dropdown, especially fast actions like mouse hover or key presses. The above GIF showcases how little CPU is being used as I hold down the down arrow key to page through all the dropdown items.
Fun fact. This has been stress tested for 7000+ items. Note: Those items rendering into the DOM... that's another story. Interacting with them is fine tho!

Review
The best way to review is to open up the Storybook and poke around :)

Pull Request Test Coverage Report for Build 1326

467 of 473 (98.73%)  changed or added relevant lines in 22 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.2%) to 99.834%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/components/ComboBox/ComboBox.tsx
100
106
94.34%

Totals

Change from base Build 1324:
-0.2%

Covered Lines:
5308

Relevant Lines:
5314

💛  - Coveralls

Overall coverage decreased (-0.2%) to 99.834%

NOOOOO!!! Scuba Steve! Damn you!!!

Hmm! Not sure what's up with the Netlify URL


Remaining time is double what it should be

oifs_43r3_ps running on i7-11700. Fraction done is correctly tracking the step count in ifs.stat. Remaining time however is double the time it will really take which can be easily calculated by looking at the rate of fraction done.

Hi Glenn,
This is produced by process_trickle (line 1300 of https://github.com/CPDN-git/openifs/blob/master/openifs.cpp).
So this is the 'current_iter' variable. It will be too late to change this for Jamie's work, but if it is wrong we can correct it.
Best wishes,
Andy

See comment from Richard Haselgrove at bottom of this issue: https://github.com/BOINC/boinc/issues/1113

This is a non-issue from a CPDN point of view. The boinc client doesn't know the typical run times until it has seen the task enough times. Have seen the estimated times reduce as no. of tasks increase.
Unfortunately, OpenIFS can be run for varying forecast periods so the client is never going to be 100% accurage.


Error serializing: No matching task exists under request xxxxxxx for user xxxxxxx.

Hello,
we tried to deserialize objects from a gerrit repository into SAP NW 7.50 by using ZABAPGIT.
Deserializing works fine for many of the objects. But one object can not pulled because of the error message:
No matching task exists under request xxxxxxx for user xxxxxxxx
Import of object /WRP/ZDS_LOGTEST failed
This object is of type TABL.
The diff is:

Does anybody knows the reason? Is this a bug in zabapgit?
Best Regards,
Christian

is the object /WRP/ZDS_LOGTEST already present in a different transport/task? namely the request xxxxxxx ? and the user xxxxxxxx does not have a task under this request?

The object is already in an other request/task included (status: released).
I tried to add the object to a new task of this request in which the object is  already included.
But i got the same error.
Christian

suggest releasing the other request first, or alternatively merging it into the target transport

I'll try it out. Unfortunately I can only do that next week. After that I will get back to you. Thanks for the quick support.
Christian

I released all transport an tried to assign the object to a new transport but getting the same error.

so the error "No matching task exists under request xxxxxxx for user xxxxxxx" is for a a request that has been released?

The original tasks and requests have been released. Then I tried again to use a completely new transport / request, but with the same error.

and the task/request mentioned in the error is released?

yes

FYI, if you are using namespaces, you might need two tasks: one for "development" and one for "repairs"
This is the case, for example, if only the repair key is maintained


Add high level documentation explaining how all of the components fit together

Problem
There are many moving parts to the Noir stack which without experience may not be intuitive.
Solution
Create a document explaining all of the parts in the stack, so contributors can get onboarded quicker.
Alternatives considered

Additional context

Probably start with HackMD, then find a place for it to live.


MUMMNG-1705 : Update to frame <IP_ADDRESS>

Upgrade frame
Upgrade config based on frame release notes

Tested locally, no visual changes tho

:+1:


Updated Spotify to version <IP_ADDRESS>3.

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

I can't replicate this in a test Sandbox. What is staying on the screen when it times out?


Incorrect maximum value for TMR expiration period in days

The documentation states 9,999 as max value whereas the Set-CsTeamsMeetingPolicy cmdlet documentation of attribute NewMeetingRecordingExpirationDays states 99,999 as max value.
Teams cloud meeting recording > Frequently asked questions

How can an admin change the expiration date?
Admins can change the default expiration setting in PowerShell or the Teams admin center before the feature is released.
[...]
The expiration days value can be set as follows:

Value can be from 1 to 9,999.
Value can also be -1 to set TMR to never expire.

Set-CsTeamsMeetingPolicy > Parameters: NewMeetingRecordingExpirationDays
-NewMeetingRecordingExpirationDays
Specifies the number of days before meeting recordings will expire and move to the recycle bin. Value can be from 1 to 99,999 days. Value can also be -1 to set meeting recordings to never expire.

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

ID: 976b8a9b-5a3e-1f3b-b848-d1dfbfd3389d
Version Independent ID: 2b13a471-3baf-0086-439a-f94abb162fd6
Content: Teams cloud meeting recording - Microsoft Teams
Content Source: Teams/cloud-recording.md
Service: msteams
GitHub Login: @tonysmit
Microsoft Alias: tonysmit

Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.


Error when generating app.js between Webpack 4.21.0 and 4.22.0

Bug report

What is the current behavior?
Before, on<EMAIL_ADDRESS>the app.js was well generated.
Once I upgrade to<EMAIL_ADDRESS>the file app.js generated has changed its order of the code imports => and I cannot open my app.
I am sorry, it is complicated for me to provide a project...
If the current behavior is a bug, please provide the steps to reproduce.
'use strict'
const HtmlWebpackPlugin = require('html-webpack-plugin')
const MiniCssExtractPlugin = require("mini-css-extract-plugin")
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin")
const { VueLoaderPlugin } = require('vue-loader')
const UglifyJsPlugin = require("uglifyjs-webpack-plugin")

const generateEnvFileContent = require('./env/env-vars-helper')
const { resolveFromRootDir } = require('./webpack.utils')

module.exports = {
  mode: 'production',
  entry: {
    env: './build/env/env-vars-template.js',
    app: ['@babel/polyfill', 'whatwg-fetch', './src/main.js'],
  },
  output: {
    path: resolveFromRootDir('dist'),
    filename: 'static/js/[name].[chunkhash].js',
    chunkFilename: 'static/js/[name].[chunkhash].js',
    publicPath: '/',
  },
  resolve: {
    extensions: ['.js', '.vue', '.json'],
    alias: {
      vue$: 'vue/dist/vue.esm.js',
      '@': resolveFromRootDir('src'),
    },
  },
  optimization: {
    runtimeChunk: true,
    splitChunks: {
      chunks: 'all',
    },
    minimizer: [
      new UglifyJsPlugin({ parallel: true }),
      new OptimizeCSSAssetsPlugin({}),
    ]
  },
  module: {
    rules: [
      {
        test: /\.vue$/,
        loader: 'vue-loader',
        options: {
          productionMode: true,
        }
      },
      {
        test: /\.(ttf|eot|woff|woff2)$/,
        use: {
          loader: "url-loader",
          options: {
            limit: 8192,
            name: 'static/fonts/[name].[ext]',
          },
        },
      },
      {
        test: /\.css$/,
        use: [
          MiniCssExtractPlugin.loader,
          'css-loader',
        ]
      },
      {
        test: /\.styl$/,
        use: [
          MiniCssExtractPlugin.loader,
          { loader: 'css-loader' },
          { loader: 'stylus-loader' },
        ],
      },
      {
        test: /\.scss$/,
        use: [
          MiniCssExtractPlugin.loader,
          'css-loader',
          'sass-loader',
          {
            loader: 'sass-resources-loader',
            options: {
              resources: [
                resolveFromRootDir('src/styles/variables.scss'),
              ]
            }
          }
        ]
      },
      {
        test: /\.js$/,
        loader: 'babel-loader',
        exclude: /node_modules/,
        include: [
          resolveFromRootDir('src'),
          resolveFromRootDir('../utils')
        ],
      },
      {
        test: /env-vars-template\.js$/,
        loader: 'string-replace-loader',
        options: {
          multiple: [
            { search: 'window.env = {}', replace: generateEnvFileContent() },
          ]
        }
      }
    ]
  },
  plugins: [
    new HtmlWebpackPlugin({
      template: resolveFromRootDir('index.html'),
      inject: true,
      minify: {
        removeComments: true,
        collapseWhitespace: true,
        removeAttributeQuotes: true,
      },
      chunksSortMode: 'dependency',
    }),
    new MiniCssExtractPlugin({
      filename: "static/css/[name].[chunkhash].css",
      chunkFilename: "static/css/[name].[chunkhash].css"
    }),
    new VueLoaderPlugin(),
  ]
}

What is the expected behavior?
I would like to generate my app.js the same way as before... or to understand how to configure the generation to get it again the same way as before

Other relevant information:
webpack version:
Node.js version:
Operating System:
Additional tools:

Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!


Release 2.0.0

"To do" list for 2.0.0 release.

[x] Remove RouteResultObserverInterface and RouteResultSubjectInterface
[x] Update Travis to enforce 100% code coverage
[x] Address "How to get defined path?" (#12)
~Update any pertinent docs, if needed~
[x] Update branch-alias entries
[x] Update --dev dependencies

We also now need a patch to remove the RouteResult::fromRouteMatch() method, as that's being marked deprecated with 1.3.0.

I struck out updating docs because they're not stored in this repository. Docs will be updated in applicable repositories once they release an update that pins to the new major version of zend-expressive-router in their respective composer.json files.

2.0.0 has been released.


Can't get initialValue working on multiple instances

I have multiple textareas on my page that I would like to use simplemde on.
I have it working like this:
const simplemde = {};

$('textarea').each(function(key, element) {
    simplemde[element.id] = new SimpleMDE({
        element: element,
        toolbar: ['bold', 'italic', 'link'],
        spellChecker: false,
        initialValue: 'TEST'
    });
});

Everything works except the initialValue which only shows on the first case on page load. But the other cases need clicking before it shows.
Any ideas?

i have same problem， how did you solve it ?


Session-lost error not triggered in processWayf

This issue is imported from pivotal - Originaly created at Aug 4, 2016 by Thijs Kinkhorst
Session-lost error not triggered in processWayf; the generic error is shown even though it's known that this is a session lost error.
https://github.com/OpenConext/OpenConext-engineblock/issues/295

It seems as though the Exception is not handled correctly. Investigate whether this is triggered and whether the Exception is already handled somewhere else (in the Bindings, perhaps?). (Alex Rothuis - Oct 28, 2016)

I'm having trouble reproducing this. It seems to work. (Alex Rothuis - Nov 23, 2016)

Seems to have been fixed since 5.0 in an unrelated change. (Thijs Kinkhorst - Nov 23, 2016)

Tests have been added to ensure this is shown. (Alex Rothuis - Nov 24, 2016)

Will be verified later, purely administrative action. (Daan van Renterghem - Feb 14, 2017)


Merge arraylias integration branch into main

Summary
I believe all tests, linting, and docs should build.
Details and comments
Note: We should try to rebase and merge here, to preserve the history of the feature branch.

I feel that we need to update the docs about class Array, e.g. https://github.com/Qiskit-Extensions/qiskit-dynamics/pull/320/files#diff-5825e560f6952b8d63e201d90d8f56863d1742b76d8d87ce5e010a1aeae7a31aR25-R29 .
Is this the scope of the next PR?


Support passing props to tab routes

Basically when a JUMP occurs, a copy of the wrapped scene is pulled out of state.scenes and placed in the state tree with the props copied onto it. When no props are passed in the action, all props are removed as every jump grabs a new copy of the scene.
I'm not too sure about the implementation, so any other ideas may be worth exploring.
<Scene key="root" tabs>
  <Scene key="home" component={Home} />
  {/*...*/}
</Scene>

Actions.home({customProp: true})
// customProp = true
// DefaultRenderer renders Home with customProp: true

Actions.home()
// customProp = undefined
// DefaultRenderer renders Home without customProp key in props

Reducer.test.js has the tests relevant to this change. I was just familiarizing myself with the codebase in Actions.test.js.

This feature would be very nice to have!

This is not working anymore


[colorme] does not move role up in hierarchy

I am unsure if this is intentional or not, but the colorme cog does not move the role up the hierarchy when first using [p]colorme change <hex> and forces the administrators to move it manually.
There are no errors in the red.log or cmd console.

Yes, this was a change made on purpose to address some security issues with using the top role.
See https://github.com/flapjax/FlapJack-Cogs/issues/24 for an explanation.
The recommended solution is to remove color from your higher up roles (thus reverting to the standard gray color). Then, the color from the lower colorme roles will take effect.

I just tried it with one of my server members. I set a role that has every permission and placed the users color role above it and they did not have the option to kick anyone or ban anyone.

Ok. Thank you for the data. I will do some further testing when I can get to it. I am not necessarily opposed to adding an "enable this at your own risk" option to use top roles. But the default open will remain bottom roles.

So long as the color roles are clean...

This will not be addressed in the v2 version but I am leaving this open as a possibility for a v3 feature.

I've tested just now that the colors role does not give any unexpected permissions. If #24 can be tested again now that it's 5 years later can we please begin placing them at the top once more?

#24 is for an ancient version of Red that doesn't work any more. It is also unlikely that this feature would be added as this repo is in maintenance mode.

Updated my post. Seems discord still hasn't discovered this possibility. Or have they posted about it somewhere?

To clarify @Dovahkiin-Warrior , what's happening is that Discord uses rank to determine who can do moderation actions, and rank is determined purely by a user's highest role in the hierarchy, regardless of the rank of hte role that actually grants them the permission.  So a mod whose highest role is the 2nd highest, even though it's just a cosmetic role, can actually ban a mod whose highest role is 3rd highest (even if the mod roles that actually grant the ban powers are 6th and 5th, respectively).
"Manage roles" has the fun, fun interaction with this behavior of deciding any role lower than your highest (even if your highest is a cosmetic role and the role that actually grants you the manage roles permission is actually quite low ranking) is a valid role to add or remove, which means if an admin role is below your cosmetic role, you can actually give yourself admin and start banning users, deleting channels, and other nasty things, all at a potentially high enough rank that nobody other than the server owner can actually stop you.
  Always grant the minimum number of permissions at the lowest feasible ranks, and cosmetic roles should ALWAYS be empty except for colors and ALWAYS go at the bottom to avoid privilege escalation exploits.

Is there any movement on the optional override for role placement? My scenario is a server that has a point redemption for the ability to customize color, but default roles already have color. Don't want to force the mod team to constantly move roles up the order. Ideally, the bot would put the color roles directly beneath the bot role with the override enabled.

Is there any movement on the optional override for role placement?

No, this repo is in maintrnance mode and will not have any code updates any time soon.

Noted. I assume I'm allowed to fork and attempt to implement this feature myself?

Sure thing, this repo is MIT licensed so as long as that's respected everything is cool there. If you do get something working that's pythonic and such, and if you feel like making a pull request, it could be added to the repo.


[QUESTION] Pagination: How to get TOTAL count of documents?

When i use:
cursor = await @query(aql, vars, {options: {fullCount: true}})
fullCount = cursor.extra.stats.fullCount

The query very slowly, about 8 seconds.
The collection contains about 3 million documents.
SkipList indexes in all fields are enabled.
I can not use limit, since I want to know the total number of documents that fit under the selector. And use this number when counting pages count for pagination. 8 seconds is incredibly long. Maybe some other way instead fullCount: true?

Is the index actually used by the query? There is no way to tell from here, as the AQL query string and the execution plan are not shown.
Can you check by explaining the query whether it actually uses the index?

aql
FOR user IN Users
  RETURN user

This query returns the entire "Users" collection. As there is no LIMIT clause anywhere, it will return 30M documents. "fullcount" will not make any difference here if there is no LIMIT clause in the query.

@jsteemann All right. LIMIT and not needed. Since we want to know the total number of elements that fit under the selector.

The query will return the entire collection, with all data. It will build up the entire result set, with and without fullcount, as there is no LIMIT used.
To get the number of documents in the collection (without any filtering), you should rather use something like RETURN LENGTH(Users).

@MegaUITeam Or you can use https://github.com/arangodb/arangojs#collectioncount
It will be very fast. But the approach of @jsteemann is very similar.

RETURN LENGTH(Users).
but filters are not used here.

@MegaUITeam : ok, focus/topic of the question has changed now. To get the number of documents matching your selector (e.g. post.wallUserId == @userId) it is recommended that the selection criterion is indexed properly. A non-sparse skiplist (or better: hash) index will do this for such single attribute equality lookup.
It will however look up all results for that particular selector. To limit the result output to a few results, use LIMIT + fullcount.
If that is not fast enough for scenarios in which the "user has a million post on the wall" (is that a realistic scenario by the way?), you can create another collection and store the number of posts per user there. Whenever a user posts something, you could fetch the existing counter value from the extra collection and update it by one.

@MegaUITeam  please give http://www.catb.org/esr/faqs/smart-questions.html a consideration for your communication on the Internet.
Asking questions in a meaningful and friendly way is essential to getting a valuable answer.
Most of the topics in this thread can be easily looked up in https://docs.arangodb.com/3.2/Manual/ - Please consult the documentation first.