text:
⚡ Use a non-blocking tcplistener & O(n) request parsing

Overall better performance. This means but is not included to:

An alternative to Vec<u8> and faster request parsing
Using a non-blocking TcpListener to maximice request listening times
Avoid cloning as much as possible

Current:
Ideas for replacing Vec<u8>

tokio/bytes

Ideas for replacing std::net::TcpListener

async_std's async version
tokio's async version
mays non-blocking api
Implementing the crate's own non-blocking api

Ideas to reduce clone

Avoid cloning handler in Server::run[_async]
Avoid converting to Strings in Request::new

Even though may replacement for std::net::TcpStream seems easy, it lacks the peek function (Xudong-Huang/may#106) and the project seems like it isn't being mantained.

after some digging I've found that Bytes has a Vec inside so it's kinda worthless to use it instead of Vec for optimization

It seems that what's making request parsing 20% slower is pushing newlines into the body.

well, the alternative currently on is finding \r\n\r\n to see if there's a body and if so, get it. But it's still not as good as it could be.

well, the alternative currently on is finding \r\n\r\n to see if there's a body and if so, get it. But it's still not as good as it could be.

Well my suggestion would be to use a parser library for parsing http requests which can help significanly improve the speed of parsing requests. One library I would suggest is winnow. Which I would suggest having a look. Also, using parser library is much lighter than using a regex method. :slightly_smiling_face:

oh, no, it is not a regexp - the request is being parsed by bytes but it's ~ O(2.5n) rn

oh, no, it is not a regexp - the request is being parsed by bytes but it's ~ O(2.5n) rn

Yes, I know but still I would suggest using a parser library which will be more advantagious for parsing http requests/responses because by using parser libraries you can create really powerful parsing code which can extract specifc parts of the requests very easily also it has less abstraction when doing the parsing work so you don't have to worry about the code slowness or bloated or code complexity. But yes learning parser library would take a little to understand but if you do it then I think you could also have an upper hand in speed and simplicity than most http server crates. :slightly_smiling_face:

.. you mean separating the parser code to another crate? I'm not sure what you're trying to say — the parser code isn't much, and using a library makes the library have less control over performance

To be fair, I don't think request parsing is an issue - 293.19 ns (the average time in my machine to parse a complete response) is only 0.29319 µs, which is nothing compared to the 50 µs average slower time / request I found when benchmarking against (actix or axum, I forgot which)

I'm going to bench again against actix just to be sure.

Time for 100 requests to / (curl -s -X GET http://localhost:PORT/):
snowboard:
real    0m0.721s
user    0m0.273s
sys     0m0.420s
actix:
real    0m0.827s
user    0m0.299s
sys     0m0.508s

[!WARNING]
this is not proper benchmarking, do not take this results as definitive

To be fair, I don't think request parsing is an issue - 293.19 ns (the average time in my machine to parse a complete response) is only 0.29319 µs, which is nothing compared to the 50 µs average slower time / request I found when benchmarking against (actix or axum, I forgot which)

I think you can make it even faster by using a parser library also using a parser library would also make parsing http/https requests/responses much easier. I think of what I am talking I would suggest watching this video which will provide a better idea of what I am suggesting. :slightly_smiling_face:
Here is the link to the video:

https://piped.video/watch?v=Xm4jrjohDN8

Note: the above provided video uses another parser library then what I suggested but every parser library works the same way at the end of the day. Also, the video is focused around text parsing but the same can be done for bytes parsing as well.

I think you can make it even faster by using a parser library also using a parser library would also make parsing http/https requests/responses much easier. I think I would suggest watching this video which will provide a better idea of what I am suggesting. 🙂

how would a parser library make it faster? it's literally one single function for http requests
plus for tls I'm using native_tls so I don't handle tls handshakes myself

I'm going to bench again against actix just to be sure.

btw I got the same results as a while ago, snowboard is very slightly slower

I think you can make it even faster by using a parser library also using a parser library would also make parsing http/https requests/responses much easier. I think I would suggest watching this video which will provide a better idea of what I am suggesting. 🙂

how would a parser library make it faster? it's literally one single function for http requests plus for tls I'm using native_tls so I don't handle tls handshakes myself

It would be faster if you think about it like let's say if you were to find \r\n\r\n manually this is going to be both painful and the code it will generate is also going to be very slow like you will have to iterate over everything manually and then split the lines. So you see where I am going while a parser library takes a different approach like it converts everything in a token stream so finding is done based on pattern which takes a lot less time also the resultant code is both fast easy to maintaim, and write. That's why I am suggesting this method over doing it manually. :slightly_smiling_face:

Converting everything to a token also requires to go through each byte, and can easily be slower than the current implementation.

again even if using a parser library made request parsing faster it's not the main thing that's making performance worse

again even if using a parser library made request parsing faster it's not the main thing that's making performance worse

Well I thought I should suggest it because it could also help speed up the average request time but since you are not interested in I think we can leave it for now.
Also, a parser library is basically the same thing that compiler's use for parsing code. That's why they are pretty fast and optimized so that's the other reason I thought to suggest it. :slightly_smiling_face:

No, it's pointless to care so much about < 100 nanosecond perf

doing tests with wrk show same results - snowboard is slightly slower. I'm going to try with may

may makes it.. slower? wtf

I think I'm going to separate Server and create a Listener struct to make it easier to improve

currently working on adding mio

I'm losing my mind. Benchmarks say current non-blocking implementation is slower than the other one. How tf is this possible?

I think it's fast, it just gets overwhelmed easily when dealing with a bunch of concurrent requests.

I'm losing my mind :smile:

So it seems mio::guide is just unfinished, and I didn't know that. Great.

So apparently even though I'm specifying Interest::READABLE, using stream.read(...) sometimes returns WouldBlock.

One of every few requests has this issue, and I'm not sure how to solve it
/// Run the listener in a loop.
pub fn r#loop<F: Fn(mio_net::TcpStream, net::SocketAddr) -> io::Result<()>>(
	&mut self,
	handler: F,
) -> io::Result<()> {
	let mut poll = Poll::new()?;
	let mut events = Events::with_capacity(128);
	poll.registry().register(
		&mut self.inner,
		SERVER,
		Interest::READABLE | Interest::WRITABLE,
	)?;

	loop {
		self.loop_inner(&mut poll, &mut events, &handler)?;
	}
}

/// Inner part of the loop, separated to a function for testing & identation.
#[inline(always)]
fn loop_inner<F: Fn(mio_net::TcpStream, net::SocketAddr) -> io::Result<()>>(
	&self,
	poll: &mut Poll,
	events: &mut Events,
	handler: &F,
) -> io::Result<()> {
	poll.poll(events, None)?;

	for event in events.iter() {
		if event.token() != SERVER || !event.is_readable() {
			continue;
		}

		loop {
			match self.inner.accept() {
				Ok((connection, address)) => match handler(connection, address) {
					Err(ref e) if is_wouldblock(e) => {
						println!("Would block, breaking");
						continue;
					}
					_ => (),
				},

				// A "would block error" is returned if the operation
				// is not ready, so we'll stop trying to accept
				// connections.
				Err(ref e) if is_wouldblock(e) => break,
				Err(e) => return Err(e),
			}
		}
	}

	Ok(())
}

The WouldBlock error happens here:
	fn handle_request<T: io::Write + io::Read + Shutdown>(
		&self,
		mut stream: T,
		ip: SocketAddr,
	) -> io::Result<(T, Request)> {
		let mut buffer: Vec<u8> = vec![0; self.buffer_size];
		let payload_size = stream.read(&mut buffer)?; // <- HERE
...

I think that's going to be for today - I'll get back to it tomorrow. If it still doesn't work, I'll rollback all this.

moved to branch non-blocking-io

I did benchs and reached to the conclusion that mio makes it 16x slower, and async_std makes it able to recieve ~1k requests less / second

may by itself doesn't make it faster either..

I think the biggest perf improvement rn is using http/2.

I'm going to leave this issue open, but leave the code as it is for now. Including h2 is too much of an unnecessary headache.


text:
生成的库无法引用

我用你的方法生成了相应的模块，在另一个项目里引用了他，模块也找到了，但无法找到头文件。
在其他的库比如Qt.，libtorch等，FIND_PACKAGE以后直接target_link_libraries(就可以了，不需要target_include_directories，为什么这里就需要呢，而且加上也找不到有文件
#cmakelists.txt
project(dll_import)
SET(CMAKE_PREFIX_PATH "D:\\DESKTOP\\CODES\\CPP_CMAKE\\install\\dll_export")
add_executable(dll_import
		main.cpp)
FIND_PACKAGE(MyMath 1.0)
#target_include_directories(dll_import PUBLIC  ${MyMath_INCLUDE_DIR})
target_link_libraries(dll_import MyMath::dll_export)

//main.cpp
#include <iostream>
#include <dll_export.h>
using namespace std;
int main()
{
	double s = get_n_of_hole(1, 1.2);
	double d = get_Ui0(1.0, 3.2);
	cout << s << "---" << d << endl;
}

知道为什么了，和issue2描述的很相似，具体的可以看CSDN的描述

source: gharchive/issue

repo: BrightXiaoHan/CMakeTutorial

license: MIT

license_type: permissive

license_source: github-api


text:
Accessibility Disability Simulator

The purpose of this PR is to create a new wrapper component that will allow a user to be able to simulate different scenarios to show what users with different disabilities see when using the content that's wrapped inside.

@margaree I'm more or less happy with the current state of this, let me know if there's anything you feel like needs to be changed or added before I mark this as ready for review.

Nope, feel free to mark it ready for review

source: gharchive/pull-request

repo: BrightspaceUI/labs


text:
赶快添加内容啦23333

RT

我不

authors: BrookZero nekomeowww

license_source: bigquery


text:
logo standardization

Is there an existing issue for this?

[X] I have looked through the existing issues

Current Behavior
Currently we are using an emoji as a logo: 👀, but it renders differently on different operating systems.
We should come up with a logo or think of something else.
Expected Behavior
No response
Steps To Reproduce
No response
Anything else?
No response

https://github.com/BuidlGuidl/address-vision-port/assets/108868128/1534b1d5-b33b-4284-8831-5b5348ecf065
Perhaps using a kaomoji could be cool? lmk what you think

How about using an SVG rather than text?

I think emojis are copyrighted if you render it anywhere but the client @ceeriil

was just looking around...
I found this: https://github.com/microsoft/fluentui-emoji
which is amazing! The emojis have the MIT license!

Finally closing, now everyone will see the same emoji in address.vision!

authors: ceeriil portdeveloper

repo: BuidlGuidl/address-vision-port


text:
feat: Move admin eligibility picker. Add loading states for votes and eligibility

Description

Move the eligibility picker into a dropdown, and make it look like a badge in the top right of the submission card. I made the colors Gray if not selected, Red if "Not Eligible", and Green if "Eligible". Let me know how you all like this look
Add loading state for clearing votes and setting eligibility
Add an empty message to the Not Voted and Voted tabs, if either of the arrays are empty

Screenshots

Working great @ChangoMan !!
A couple of things:

Would it be easy to close the dropdown when clicking outside?
You can only close it by clicking on the dropdown title.

Maybe we could also close it once the flag is set? Like you open the dropdown, click on "eligible" and when the request return (and the flag is set) we close the dropdown.

@carletex I switched the dropdown to close on clicking outside, let me know how this feels. Do note that with this method, clicking on the dropdown title will no longer close the dropdown.
I was also able to close the dropdown once we set the flag.

Works great. Thanks @ChangoMan

authors: ChangoMan carletex

repo: BuidlGuidl/extensions-hackathon


text:
Refactor/svelte grouped pr

Description
Combined PR of

#671
#672
#674
#675
#676

These together clean up the Svelte output and make the component look more natural to a Svelte dev.
Let me know if a combined PR like this is OK. I wasn't planning on making so many PR's, but while working on one thing, I spotted the other and just kept going.
Thought combining them in 1 PR could be useful as you won't have to update the snapshots in between merges (in case you decide to merge all of them). If this is not easier, let me know and I'll close this one. The separate one are easier to review i suppose.
Before:

After:

As discussed on Discord, smaller/granular PRs are preferred, so closing this one

repo: BuilderIO/mitosis


text:
[📖] How to do unit testing of components with Vite if the testing env is JSDOM instead of node

Suggestion
If my component has any javascript that needs to be loaded on the client side, the test fails for me like if I wanted to check if window.width > 1024, it wouldnt work with vitest. Everybody suggests using jsdom, so I tried that like this:

import { renderToString } from "@builder.io/qwik/server";
import { test, expect, vi } from "vitest";
import { ExampleTest } from "./example";

test(`[ExampleTest Component]: Click counter +1`, async () => {
  const jsdom = require("jsdom");
  const { JSDOM } = jsdom;

  const screen = await renderToString(
    <body>
      <ExampleTest flag={false} />
    </body>
  );
  const dom = new JSDOM(screen.html);

  const button = dom.window.document.querySelector("button.btn-counter");

  expect(dom.window.document.querySelector("span").textContent).toBe("Count:0");
  expect(dom.window.document.querySelector("div.icon").textContent).toBe(
    "Flag: 💣"
  );
  button.addEventListener("click", () => {
    // const countElement = dom.window.document.querySelector("span");
    // const count = parseInt(countElement.textContent.replace("Count:", ""), 10);
    // countElement.textContent = `Count:${count + 1}`;
  });

  console.log(button.click());

  console.log(dom.window.document.querySelector("span").textContent);
});

This isn't that native and button clicks do not work for the example component, only if I add the event listener and I do something in that event listener - that will happen, but the onClick function will not.

I think Qwik has it's own DOM implementation called qwik-dom, which appears to be a fork of domino.
As an aside, Vitest has the ability to customize the environment which the tests are run in, with examples of how to add JSDOM or happy-dom, see more here. However, looking in the vite.config.ts generated by Qwik I do not see qwik-dom set as the environment.
Instead, it looks like Qwik tests use an alternative approach to exposing their mocked DOM environment via their createDOM method:
import { createDOM } from '@builder.io/qwik/testing';
...

const { screen, render, userEvent } = await createDOM();
await render(<ExampleTest flag={true} />);

I believe the expectation at this point is that you need to use the userEvent, exposed by createDOM, to trigger events, screen to query elements, and then make assertions about the state of those elements.
The example component and test created by npm run qwik add vitest, per the docs, has a good example of this approach:
test(`[ExampleTest Component]: Click counter +1`, async () => {
  const { screen, render, userEvent } = await createDOM();
  await render(<ExampleTest flag={true} />);

  expect(screen.outerHTML).toContain("Count:0");

  const spanBefore = screen.querySelector("span") as HTMLDivElement;
  await userEvent(".btn-counter", "click");
  expect(spanBefore.innerHTML).toEqual("Count:1");

  const spanAfter = screen.querySelector("span") as HTMLDivElement;
  await userEvent("button", "click");
  expect(spanAfter.innerHTML).toEqual("Count:2");
});

Digging deeper in createDOM and userEvent I see the following:
createDOM uses an ElementFixture to create the window, document, and the following element structure, all using qwik-dom:
window
  document
    super-parent
      parent
        host
          child

It then uses the host, from the structure above, when you call the render method returned by createDOM, which internally passes the host as the root element to qwik.render:
const host = new ElementFixture().host;
...
render: function (jsxElement: JSXNode) {
  return qwik.render(host, jsxElement);
},

The screen object returned by createDOM is reference to the host element, not the document. This is different from something like testing-library/dom-testing-library where the screen is more analogous to the document (see here).

repo: BuilderIO/qwik


text:
Please add "success" in green.

I monitor requests and responses using a logger. In this case, I would like to use a green log for a successful request.

I am guessing you are talking about the PrettyPrinter.
How would you indicate/label such a successful request?
Currently, colors are only dependent on the log level you are using.

Without additional information, I am unfortunately not able to resolve this issue.
I am therefore going to close this issue.

I organized the processes of sending and receiving requests. I will show in the log that the received response was successful. I am currently using this log "Logger().i(response)" -> "blue".
I want to use something like "Logger().s(response)" -> "green". I did this by modifying the library, but I want it to be useful for others. Thank you.

What is your s log level, and would it be sufficient to enable the configuration of the levelColors in PrettyPrinter?
You could also post your modification, so I can get a better understanding of your desired solution.

Following up the #37 PR:
Unfortunately, I had to decline the proposed solution, because I don't think that a custom log level specific to your use case justifies adding it to the logger package.
I think you can still achieve a similar solution without introducing a new uncommon log level.
The addition would also lead to other considerations:

What is with other custom but similar log levels that users might want to introduce (denied, failure, ...)?
success isn't a common logger level (in fact, I haven't yet come across a single library using it)
Which importance has "success"? Is it more important than error or less than debug? These are questions that we can't/won't and shouldn't answer for every user of this library!
... and so on

I hope you understand my concerns, and I am still open for further discussion and new ideas!

repo: Bungeefan/logger


text:
The co-ordinates do not seem to align

Hey, I am trying to take a screenshot of the demo page that is shared. The screenshot image does not seem to match my selected region. Can you please help me with that?

The same question

same here

same question! in fact, the demo doesn't work correctly either...

authors: Redleks darshan-rheo dyontaistaton lyqht

repo: Bunlong/react-screen-capture


text:
2016 Schedule

How can I get the 2016 schedule?
running
import nfldb

db = nfldb.connect()
q = nfldb.Query(db)
q.game(season_year=2016, season_type='Regular', week=1)

for game in q.as_games():
    print game

yields nothing. Will the schedule automatically become available?
I tried pip install --upgrade nfldb  and pip install --upgrade nflgame  (even though I am pretty sure an nfldb update also updates nflgame. I also did a python ./update_sched.py --rebuild and a python ./update_sched.py --rebuild --year 2016.  I then did nfldb-update and nfldb-update --update-schedule
Is doing the modification @ochawkeye described  here  still necessary? Or am I doing something else wrong?

@BurntSushi Any ideas? The season is coming close to starting up.

If anyone else was having this issue I had to do a:
python update_sched.py --year 2016 --phase REG
which caused this error on nfldb-update:
DETAIL:  Key (pos_team)=(LA) is not present in table "team".
so I performed the following query in postgres:
INSERT INTO team VALUES ('LA', 'Los Angeles', 'Rams');
and then nfldb-update had all the data.

The downloaded games with the LA Rams now contain "UNK" instead of "LA". I try now to add a line to team.py. Hopefully it does not break anything if there are two entries for the rams.

I saw that too. I would like to know where "unk" which I assume stands for "unknown" comes from. I think this could be fixed with some additional psql query. Maybe @BurntSushi knows the best way.

Maybe a migration is required?

@DylanModesitt and @expectopatronum please take the time to go through existing issues before opening up duplicates for things already addressed elsewhere.
Interim solutions to the 2016 schedule update and LA Rams change have already been provided on multiple issues here that don't require you to wait for an nfldb update from @BurntSushi.

You should edit the files nfldb/team.py and nflgame/init.py, and add the following line:
['LA', 'Los Angeles', 'Rams', 'Los Angeles Rams'],
On my machine the location for these files are:
/usr/local/lib/python2.7/dist-packages/nfldb/team.py
/usr/local/lib/python2.7/dist-packages/nflgame/init.py

@hpadmanabhan sorry I looked at all issues that had a relevant title.
@danielcroona and this works? doesn't it matter that there is already an entry with "Rams"? Would it be possible to just replace 'STL' everywhere with 'LA' and then replace the old entry completely?

@danielcroona My mistake in assuming folks understand what a relative path is. I provided paths relative to the packages there leaving out the preceding bits precisely because they can be different depending on your installation, but those are the relevant files.
Also, feel free to try out changes and see what happens, thats the fun with open source. At worst you'll need delete and start over.

@expectopatronum no apologies needed, things don't often have the exact titles but when dealing with open source stuff its always good to check a little deeper first before putting up new issues out of courtesy to the main authors as their precious free time spent on these open source projects out of their generosity would be better spent on improving stuff than dealing with repeated queries.
With reference to the Rams, these are 2 different teams, replacing 'STL' with 'LA' will lose you all the history for 'STL Rams' since all the DB references will get switched. All historical data needs to continue to be associated with 'STL Rams' and new stuff needs to be associated with 'LA Rams'.
Particularly important with nfldb that changes be idempotent since you should be able to drop and recreate the database if needed.

@hpadmanabhan I searched through docs. Did not see you referenced an issue in another repository.

@hpadmanabhan While I appreciate your "moderating" of this issue. posting things like "already addressed elsewhere." and "from where he picked out that snippet." without posting links is kind of useless to anyone.
Can someone please answer the following question:
What does one have to do to get the 2016-2017 Season to be included in an nfldb-update call?
Thanks

What does one have to do to get the 2016-2017 Season to be included in an nfldb-update call?

Short of digging it and fixing a few issues (nflgame schedule update, team name updates, maybe some other things), you'll need to wait for me to push out a new release. I hope to do it soon.

I don't mind doing a workaround, I'm just having a hard-time figuring out the right steps.

In case anyone else comes here looking for an answer, here are the steps that worked for me.
Step 1 (per ochawkeye):
If you manually flip-flop the schedule back to the regular season URL in file ..\nflgame\live.py (uncomment line 68 _CUR_SCHEDULE = "http://www.nfl.com/liveupdate/scorestrip/ss.xml" & comment out line 75 _CUR_SCHEDULE = http://www.nfl.com/liveupdate/scorestrip/postseason/ss.xml")
Step 2: run update_sched.py --year 2016 --phase REG
Step 3: Manually add [LA, Los Angeles, Rams] to teams table. I also did (per danielcroona):
You should edit the files nfldb/team.py and nflgame/init.py, and add the following line:
['LA', 'Los Angeles', 'Rams', 'Los Angeles Rams'],
On my machine the location for these files are:
/usr/local/lib/python2.7/dist-packages/nfldb/team.py
/usr/local/lib/python2.7/dist-packages/nflgame/init.py
But... I don't know how to get those changes to take effect, hence the manually added part.
Step 4: run nfldb-update
Step 5 (maybe): revert changes from Step 1 and run nfldb-update again. I think this is what was meant by "flip-flop", but changing it back didn't seam to do anything (presumable because there is no postseason yet).
@BurntSushi Please let me know if any of this is wrong. Also, what would I of had to do to make the changes of step 3 work without manually adding the new team record?
Thanks again, I really love nfldb!

authors: BurntSushi DylanModesitt danielcroona daweber expectopatronum hpadmanabhan

repo: BurntSushi/nfldb

license: Unlicense


text:
Fix #132 & target only supported .NET versions

This will fix #132
(Tab is locked and cannot be selected/dragged in some cases)
Target supported .NET versions:

.NET 7
.NET 6
.NET 3.1
.NET-Framework 4.8

Some code cleanup

You need to update the AppVeyor config to use .NET 7 😄
https://www.appveyor.com/updates/2022/11/11/

repo: ButchersBoy/Dragablz


text:
ContextMenu Not Getting MaterialDesignMenu Style

I Have Implemented a Context Menu In a DataGrid And The ContextMenu Os Getting MahApps Default MenuStyle, i Dont Make Any Change On Resources.
. Other: MenuItem SubMenu Child Is Getting a Transparent Background. Whats Happening?

Context menu is pre release. Are you using pre release package?

. I Dont Know, How Can I See What Package Im Using?

Make sure you select "Include Pre Release" somewhere, in either the nuget UI or the nuget command line.

. Ok

repo: ButchersBoy/MaterialDesignInXamlToolkit

license: mit


text:
ToggleButtons are broken

The MaterialDesignActionLightToggleButton, MaterialDesignActionToggleButton, MaterialDesignActionDarkCheckBox and MaterialDesignActionAccentToggleButton styles are broken in version 1.5 and 2.0. Version 1.4.1 works as expected.
Steps to reproduce:

Download the source code from Github release 1.5.0 and 1.4.1.
Open the MaterialDesignToolkit.Wpf Solution
Build and start the MaterialDesignDemo project
Go to "Buttons & Toggles"
Look ;)

See attached image for comparison

I'm looking at this...

I did re-write the template for those buttons though...but can't reproduce your issue...

@TheSylence @mgnslndh are you guys seeing any warning being spat out in the Output window?
I think it must be something to do with the clipping starting here https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/blob/master/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.ToggleButton.xaml#L107
I've tried this on two PCs and I don't have the issue.
Could you guys start replacing the bindings, one by one, with the value 32, and tell me which line(s) bring them back.
In bother the OnGrid and OffGrid there are EllipseGeometry RadiusX and RadiusY bindings, and a multi binding on EllipseGeometry.Center.
I'm thinking maybe there is a timing thing and the clip is getting generated by a zero width or something...

I get this binding error in the Output window:
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=UncheckedEllipse'. BindingExpression:Path=RenderedGeometry; DataItem=null; target element is 'Grid' (Name=''); target property is 'Clip' (type 'Geometry')

Probably because of this line:
https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/blob/master/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.ToggleButton.xaml#L47

What happens if you remove that Clip property?

Removing that binding does not seem to affect anything.
Changing RadiusX and RadiusY to 32 does indeed show the ToggleButton but of course, not looking like it should. For both OffGrid and OnGrid.

Yep same here.
I have the same Binding Error in the Output Window and changing the Radius properties to 32 brings back the content (although not as an ellipse but rather as an rectangle, but I guess I would have to tweak the values to get the ellipse back)

OK...I'll try and get on some other PCs and see if I can reproduce...I wonder if .Net fx versions could affect it...know what exact versions you are running?

I found the problem in the MathConverter.
I have a german system and the ConverterParameter "2.0" is parsed as 20 resulting in a Radius of 1.6 instead of 16.
Using the InvariantCulture in the TryParse call fixes this.

Excellent!   Can your raise a PR?

@TheSylence thank you, and welcome to the contributors list

authors: ButchersBoy TheSylence mgnslndh


text:
Add support for nested menus and menu items in ToolBar

In a toolbar if you nest a menu with addition menu items it looks like below.
If you add this to xaml and set theme to dark it can been seen easily.
 <DockPanel>
        <ToolBarTray DockPanel.Dock="Top" IsLocked="True">
            <ToolBar Style="{DynamicResource MaterialDesignToolBar}" >
                <MenuItem>
                    <MenuItem.Header>
                        <Label Content="Non nested" HorizontalAlignment="Center"/>
                    </MenuItem.Header>
                </MenuItem>
                <Menu>
                    <MenuItem>
                        <MenuItem.Header>
                            <Label Content="Nested" HorizontalAlignment="Center"/>
                        </MenuItem.Header>
                        <MenuItem>
                            <MenuItem.Header>
                                <Label Content="Menu Item 1" HorizontalAlignment="Center"/>
                            </MenuItem.Header>
                        </MenuItem>
                        <MenuItem>
                            <MenuItem.Header>
                                <Label Content="Menu Item 2" HorizontalAlignment="Center"/>
                            </MenuItem.Header>
                        </MenuItem>
                        <MenuItem>
                            <MenuItem.Header>
                                <Label Content="Menu Item 3" HorizontalAlignment="Center"/>
                            </MenuItem.Header>
                        </MenuItem>
                    </MenuItem>
                </Menu>
            </ToolBar>
        </ToolBarTray>
    </DockPanel>

I'm having a similar problem with the overflow area for ToolBars within a ColorZone; the foreground color updates, but the background is still white, resulting in white text or icons on a white background.

authors: ShawnWeaver amoamare


text:
Definir hospedagem do servidor do jogo

Definir forma e local de hospedagem do servidor de jogo para que os clientes possam de conectar. Impactado por

Vai ser utilizado no Google.
Obs: Adicionar no código futuramente.

Hospedagem:
Estático é GitHub pages
Dinâmico é Heroku

authors: julianaomi saraazimmer

repo: C-K-R-S/Killer-Run


text:
Bunched up particles on the edges

Whenever the snow changes direction, there are a bunch of particles bunched up on the edge. This is especially noticeable with high particle counts, but also happens with smaller numbers (you can see it happening in the video in the README).
https://github.com/user-attachments/assets/35ecb350-cb57-434e-b372-8299f252acac

Thanks for flagging @darthmaim! Will aim to fix shortly

This has now been fixed in the latest version
https://github.com/user-attachments/assets/6441ae01-e05e-4a2e-b3c9-c8579712df26

authors: C-o-d-e-C-o-w-b-o-y darthmaim

repo: C-o-d-e-C-o-w-b-o-y/react-snow-overlay


text:
[charts/gateway] Add disklessConfig property

Description of the change
Introduce disklessConfig property to configmap.yaml to pass DISKLESS_CONFIG environment variable to Gateway container.
TODO: Describe node.properties and how to set it up
Benefits
As this is a required environment variable, it's better for visibility and more appropriate to have its own property, as the way Gateway is configured is very different depending on the value.
Existing way to set DISKLESS_CONFIG is via additionalEnv, but I feel this is for more optional variables, not for an integral setting for Gateway configuration:
additionalEnv:
  DISKLESS_CONFIG: false

Drawbacks

Applicable issues

fixes #

Additional information
Checklist

[] Chart version bumped in Chart.yaml according to semver.
[] Variables are documented in the README.md
[] Title of the PR starts with chart name (e.g. [charts/gateway])
[] If the chart contains a values-production.yaml apart from values.yaml, ensure that you implement the changes in both files

@jennarddy , Gateway version need to incremented to 3.0.29 https://github.com/jennarddy/apim-charts/blob/diskless-config/charts/gateway/Chart.yaml#L5

There's still a fair bit missing for this feature. Is that intended?

Yeah, it's still in progress. I added label.

[TestRun : ] (https://testrail.apim.broadcom.net/index.php?/runs/view/102664&group_by=cases:section_id&group_order=asc) - Passed
Included the upgrade scenario also

authors: DamandeepToor jennarddy

repo: CAAPIM/apim-charts


text:
SCMOD-7044: Specify build image

https://portal.digitalsafe.net/browse/SCMOD-7044

A developer build has not yet been created for this branch. Click here to go ahead and create the build...

CI Build Link:
http://sou-jenkins2.swinfra.net:8080/job/CAFDataProcessing/job/CAFDataProcessing~boilerplate-service~SCMOD-7044~CI

repo: CAFDataProcessing/boilerplate-service


text:
🛑 RadCord Bot is down

In f70c7e0, RadCord Bot (https://radcord.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RadCord Bot is back up in 87b898d after 18 minutes.


text:
F1 metric implemented.

New metric added.
Proposed Changes

F1 metric implemented.

Checklist

[ x] I have read the CONTRIBUTING guide
[ x] My PR is based from the current GaNDLF master
[ x] Non-breaking change (would not break existing functionality): if changes breaks current code, please provide as many details as possible
[ x] Function/class source code documentation added/updated
[ x] Code has been blacked for style consistency
[ ] If applicable, version information has been updated in GANDLF/version.py
[ ] If adding a submodule, add to list of expections for black styling in pyproject.toml file
[ ] Usage documentation has been updated, if appropriate
[ ] History has been updated, if appropriate
[ ] Tests added or modified to cover the changes; if coverage is reduced, please give explanation

This is great, but could you add this into the metrics for testing? Perhaps these in the testing configuration file would be enough:
metrics:
  - cel
  - classification_accuracy
  - f1_score

authors: orhunguley sarthakpati

repo: CBICA/GaNDLF


text:
Página de parceiros

Elaborar página de parceiros colocando uma breve descrição/história de cada um.
Atualmente temos como parceiros os seguintes elementos/entidades:

[ ] IFS
[ ] PROPEX

[ ] Falar sobre o financiamento do projeto
Adicionar a descrição/apontar para o projeto:

[ ] Docker (executado por @vanilton-filho)
[ ] Kubernetes (executado por @franciscojsc)

CBSI e COINF

[ ] Encontrar a logo da Coinf
[ ] Encontrar a logo da CBSI

[ ] DevOpsDays Aracaju

Ver logo em https://devopsdays.org/events/2019-aracaju/welcome/ e no instagram deles

Usar imagens conforme descrito em #19

repo: CBSIIFSLagarto/projetokube-site


text:
bug: snakemake issue in shared conda env on biowulf

from @TJoshMeyer

I was able to reproduce the error
renee run --input ~/Pipelines/RENEE/renee-dev-sovacool/.tests/*.fastq.gz --output renee_test_153 --genome hg38_41 --mode slurm --dry-run
[+] Loading singularity  4.0.3  on cn3541
RENEE (v2.5.12)
Thank you for running RENEE on BIOWULF!

Generating config file in '/gpfs/gsfs12/users/sovacoolkl/renee_test_153/config.json'... Done!
Are singularity and snakemake in your PATH? Please check before proceeding again!

The driver script is not loading the snakemake module for some reason, and the version of snakemake in the conda env is not working.

repo: CCBR/RENEE


text:
engineered_resids in interactive.npy cannot take np.arange()

It will work as a list() though...

Also, that cell in interactive.ipynb cannot be ran multiple times if engineered_resids are specified

repo: CCBatIIT/Bridgeport


text:
Pubspec dependencies need to be updated

The dependencies in pubspec need to be updated for proper building of app without any errors.

The project has been updated extensively in the last 2 years (check wiki for more info). The default branch is now the "main" branch. All issues for previous versions are being removed.

authors: AbdulMalikDev ItsAdityaKSingh

repo: CCExtractor/rutorrent-flutter


text:
Added Bottom sheet

Implemented bottom sheet for adding torrent instead of a popup

@pratikbaid3
Please implement same bottom sheet widget for adding the rss url also.

@pratikbaid3 Please implement bottom sheet widget for adding rss url also.

Done


text:
Update .gitignore to exclude .jld2 files

Small PR that does as per title.
The reason this is not already done was the possibility that we'd have an analysis workflow from saved jld2 files... but this seems clunky and will be replaced (e.g. #225 ).

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.76%. Comparing base (919b8a8) to head (f499f3e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #241   +/-   ##
=======================================
  Coverage   92.76%   92.76%
=======================================
  Files          43       43
  Lines         401      401
=======================================
  Hits          372      372
  Misses         29       29

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

repo: CDCgov/Rt-without-renewal


text:
CSV upload transition: email series to notify users of transition

Problem statement
[Write a short description of what you want to achieve with this task]
What you need to know
Discussion in Slack with Victor
Acceptance criteria

[ ] ...

To do

[ ] ...

@drew-usds - Looks like this might be a dupe of #5148. Can we close this?

authors: HeatherRienks drew-usds

repo: CDCgov/prime-reportstream


text:
Refactor demo data initialization

If we want to continue having auto-initialization of data on startup in some environments, we should make it better (at least, we should make the data file better structured) and potentially make it include mock patients and data as well as users.

wont do

authors: benwarfield-usds timothybest-usds

repo: CDCgov/prime-simplereport


text:
YouTube iframe forces keyboard users to tab through all suggested videos

Area or Component
Static site - support homepage
Quick Summary
The embedded YouTube video on the page is part of the keyboard navigation, and tabbing through requires users to go through all the suggested videos.
How to reproduce

Navigate to simplereport.gov/support
Start playing the YouTube video and pause
Tab from the top of the page and see all the suggested videos that appear

Accessibility Violation
There's no way to skip past all this suggested content, making navigating the rest of the page after the video difficult.
Action Requested
If possible, removed these suggested videos entirely: https://www.200ok.nl/tips/youtube-embed/
Original Deque Issue
https://docs.google.com/spreadsheets/d/16udNpwdJ8sltAULnmSIGgkWVQsfuFvcoymP0-s_QwfE/edit#gid=1832428693&range=10:10

@emmastephenson I was looking into way to disable this and all the answers I found said there used to be a parameter rel that you could set to 0 you could disable those suggested videos from displaying.
Unfortunately, after September 25, 2018 they changed that feature so if you set rel to 0 it will still show suggested videos but they will be from your channel.
https://developers.google.com/youtube/player_parameters#Parameters
An option could be looping through the video so it doesn't ever show those suggested videos when the video ends. (this can be accomplished via loop=0 param)
There is no way to use the youtube iframe without having the suggested videos appear.
Should I look into alternative ways to embed videos or should we consider a different way to present this information without embedding a link?

@emyl3 thanks for looking into this! I unfortunately think there's not too much else to be done here 😞 We can't really control what YouTube puts in their iframe viewer, and it sounds like there's not enough granular control here to change the settings meaningfully.
The good (?) news is that most users will have undoubtedly come across a YouTube iframe before, so this is probably not unexpected behavior. The Deque guidelines also state that:

When iframes contain content from third-party web sites — as is often the case — it is not always possible to control the heading hierarchy. Because of the lack of control in these situations, the guidelines don't strictly require the heading hierarchies of the two documents to match, but it would still be better if they did.

(source: https://dequeuniversity.com/class/semantic-structure/iframes/semantic-structure-across-iframes)
With that in mind, I think it's ok to close this ticket.


text:
[Add new/Edit device] Snomed multi select is missing aria-required

Area or Component
Support Admin > Add new device > Snomed code multiselect
Support Admin > Edit existing device > Snomed code multiselect
Quick Summary
Snomed code multiselect should have aria-required=true
How to Replicate
Accessibility Violation
https://docs.deque.com/issue-help/1.0.0/en/aria-required-missing
Action Requested
Add aria-required to the multiselect on both device pages
Screenshots (optional)
Source Code (optional)
Original Deque Issue

Oh this is also getting fixed by this PR as the multiselect is a common component

authors: BobanL johanna-skylight


text:
[query]: is there any api to get number of session active (connected) to netopeer-server?

Hi @michalvasko
is it possible to get number of currently active session(connected to netopeer-server) via any api ?

Get /ietf-netconf-monitoring:netconf-state/sessions operational data using sysrepo/NETCONF, there is a list of all the sessions.

authors: amitdalodiya michalvasko


text:
build FEATURE add env var sysrepo tools override

In my dev environment, there is no sysrepoctl or sysrepocfg in PATH. I usually have two versions of the netconf stack installed (at the same time): one with sanitizers and one without, so the scripts wouldn't know which binary to use (and they are usually incompatible). I added an env var override for sysrepoctl and sysrepocfg.
Also, feel free to (completely) change the commit message if you want, I'm not sure if I got that right.
Thanks

I messed up the conditions a little bit, but it should work now.

Okay, NOW it should be okay, apparently I don't know how scripting works :100:

Hi,
okay, I suppose (although there sure are a lot env vars in those scripts), but please at least mention these variables at the script beginning, as being optional.

I'm not sure I understood you correctly, but I changed the comments to say "optional"

Right, the variables are mentioned only in setup.sh, not in the other scripts. So fine, whatever.

Okay, thanks.

authors: michalvasko syyyr


text:
[NOM] Autorités obligatoires

 Issue by cibotalista
Friday Oct 12, 2018 at 06:33 GMT
Originally opened as https://github.com/CJB-Geneve/com-botalista-backend/issues/1439

Url : https://rc.botalista-dev.ch/#/nomenclature/view/451479?tab=1
Username : lehmann
Description : mettre en bleu et avec * le champs auteurs.

 Comment by AnaSofiaDomingos
Wednesday Jan 16, 2019 at 08:59 GMT

lors de l'ajout d'un nom

repo: CJB-Geneve/cit-ticketing


text:
🛑 NTREIS is down

In 6b421f3, NTREIS (https://app.cmasnap.com/api/listings?datasetId=ntreis) was down:

HTTP code: 404
Response time: 53 ms

Resolved: NTREIS is back up in 35813f1 after 10 minutes.

repo: CMAsnap/status


text:
🛑 WebPage4.Me is down

In f99dec9, WebPage4.Me (https://webpage4.me) was down:

HTTP code: 500
Response time: 352 ms

Resolved: WebPage4.Me is back up in 0bab6b7 after 10 minutes.

repo: CMiksche/status


text:
Fall 2015 staff changes

Update staff - this is ready for now...  @elliottbiondo ?

Accepting.

authors: gonuke makeclean


text:
Add a new requirement file

Add a new requirement file

Sorry opened by mistake

repo: CODAIT/pydax


text:
[TASK] Mobile Integration Testing

Task Request

[ ] Integration test for book-room
[x] Integration test for view-rooms
[x] Integration test for checkin
[x] Integration test for cancel-booking
[x] Integration test for login
[x] Integration test for register

@u21631532 , please tick off as you complete each task by clicking on the task you are done with in this comment

Please note, all api endpoints have been commented out and will need to be revisited for full integration testing


text:
Bad CSS in Explore widget

Poorly constrained CSS in one of the widgets causes issues when the widget state is saved in a notebook
See https://github.com/COSIMA/cosima-recipes/pull/107

I think we should be able to go through layout and style attributes (see https://ipywidgets.readthedocs.io/en/latest/examples/Widget Styling.html)?

AFAICT those expose very specific attributes, not general CSS styling. In any case, I just cleaned up the CSS, which was a bit of a mess, and it seems to work.

I won't bother updating the version in conda on gadi for this, as it is just cosmetic for a very specific use case of saving the widget state.

authors: aidanheerdegen angus-g

repo: COSIMA/cosima-cookbook


text:
Columns in states_daily_4pm_et.csv deleted and changed order

Was it intentional to change the order of many columns in states_daily_4pm_e6.csv and delete 8 columns?
The 8 deleted columns are: dateModified, checkTimeEt, commercialScore, negativeRegularScore, negativeScore, positiveScore, score, grade.
See the attached for a complete list of the columns from 6/1 and from 6/2.
My spreadsheets weren't using the deleted columns, but the tables in them will require some reworking to accommodate the reordering, if that was intentional.

Oops, I got the dates mixed up.  I'll close this and submit a new issue.


text:
Feature/schedule editor add route code editor

概要
Add RouteでRoute Codeを追加し、Route Code Listに表示する部分を作成
仕様

Add Route を押すとdialogが表示されRoute Code Editorが表示される
Route Code Editorの仕様は以前のものとほぼ同じ
左上の×、もしくは欄外を押すとdialogは閉じる
閉じた後にもう一度開くと前回閉じたところから再開される
result画面でsaveすると登録が完了する。reselectを選ぶと登録されない

Route Code Editor以外の変更点

3D Viewerとリストの位置を逆にした。理由は手順は基本左から行うのでAdd Routeを先に意識させるため
開いたときにSelect Map Dataのdialogを表示するようにした。強制的に入力される機能はないのでそのまま閉じることは可能。左上のボタンから再入力可能
コードの整形を少し行なった。が、この辺りは全部できた後にやった方がいいかも。修正点が多くなりすぎる

レビュー重点

見栄えを変えたのでその評価
Route Code追加するdialog、表示形式に問題はないか
追加したコードの大部分はRoute Code Editorの流用なのでそこまで細かいコードレビューは必要ないかと思う

その他

テキスト形式の入力追加忘れてました。別ブランチで追加します
開いた時

ホーム画面

Route Code Editor(Result画面)

lgtm!

repo: CPFL/AMS


text:
Can not make vector map from VectorMapper

I made vector map .csv files using VectorMapper tool (https://maptools.tier4.jp/),
but I couldn't see any lane in Rviz.
Is it normal that there is no lane in the screenshot below?
I followed the guideline video in Maptools homepage with moriyama sample data.
How can I make lane and vector map from my .pcd files?

hey, how did you get vector.csv and signal.csv files?

@DWKE Lane is not visualized on Rviz because vector_map_loader does not publish markers for lane.

@kitsukawa I have another problem, when I try to click "Vector Mapper" button on page https://maptools.tier4.jp/tools/, it shows me the following information:
Using the URLconf defined in maptools.urls, Django tried these URL patterns, in this order:
^ ^$ [name='index']
^ ^tools/$ [name='tools']
^ ^login/$ [name='login']
^ ^login_json/$ [name='login_json']
^ ^logout/$ [name='logout']
^ ^contact_us/$ [name='contact_us']
^ ^complete/$ [name='complete']
^ ^prepare/$ [name='prepare']
^ ^error/$ [name='error']
^ ^terms_of_service/$ [name='terms_of_service']
^ ^vector_mapper_description/$ [name='vector_mapper_description']
^static/(?P.*)$
The current path, tools/104.210.54.222, didn't match any of these.
I'm wondering if the vector mapper online tools still available for us?
thanks a lot!

authors: DWKE hamkuchan kitsukawa likui01

repo: CPFL/Autoware


text:
Enable crosscompilation

Status
DEVELOPMENT
Description
These are some minor fixes that enable crosscompiling Autoware for aarch64, namely:

Use CMAKE_SYSTEM_PROCESSOR instead of running uname -m to check if we're building for aarch64. CMAKE_SYSTEM_PROCESSOR can be defined in a CMake toolchain to target a specific architecture
Use the path to ymc_can directly instead of find_library
Only install calibration_toolkit if the target exists (it might not, if ROS_DISTRO is not defined)

Closing in favor of #1375


text:
fix brisbane not working with ibmq_qasm_simulator anymore

Description
All devices available in the open plan have more then the 32 qubits that are supported by the ibmq_qasm_simulator. So we need to replace them. Not sure what the best strategy is...
Related issues
Please mention any github issues addressed by this PR.
Checklist

[ ] I have performed a self-review of my code.
[ ] I have commented hard-to-understand parts of my code.
[ ] I have made corresponding changes to the public API documentation.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I have updated the changelog with any user-facing changes.

Ready for review.
I know that the tests are not working, but that is a different issue I am still investigating.

What exactly is the issue with brisbane_emulator_backend? I see that it is used in several other tests, such as test_nshots()...

This difference is that this testcase is the only test using the backend and compiling the circuit with one of the default compilation passes. All other testcases are running uncompiled circuits.

When running this with the brisbane_emulator_backend the circuit has 51 qubits (only 32 allowed), and the circuit contains Ecr gates, which is not allowed, too.

When running this with the brisbane_emulator_backend the circuit has 51 qubits (only 32 allowed), and the circuit contains Ecr gates, which is not allowed, too.

These both seem to indicate a bug in the compilation:

Why is a 3-qubit circuit being compiled to a 51-qubit circuit?
Why are we rebasing to ECR when that isn't supported by the backend?

The IBMQEmulatorBackend is using the gateset, architecture, noisemodel and compilation passes of the real device, in our case the IBMQBackend. The IBMQEmulatorBackend is then always running the circuit on the simulator without additional compilation or checks. We could add that, but not sure how much would be left from the original device after that.

@cqc-alec this is currently not showing up on develop, but I am not sure why. I would keep this open and wait a few days?

authors: cqc-alec cqc-melf

repo: CQCL/pytket-qiskit


text:
Purity calculation error

Currently purity calculation fails (at least for the Taylor 1.5 integrator), since vec_soln is a list of numpy.array and the purity calculation tries to square the list. Should probably refactor everything so vec_soln is a 2d array.

Wrote test that caught offending behavior and fixed by using numpy.vstack in place of  list.append.

repo: CQuIC/pysme


text:
Contact page_pointing to wrong email id

Replace contact@cresym.eu with helpdesk@cresym.eu on the contact page.

Working as expected


text:
Mass download issue with creodias and sobloo

Describe the bug
When I try to download a lot of Sentinel-2 products (around 2000), at some point the EODAG breaks. The code worked perfectly for months.
Output
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://auth.creodias.eu/auth/realms/dias/protocol/openid-connect/token

Environment:

Python version: Python 3.10.4
EODAG version: 2.4.0

Hello @dpriskinGEO , and thanks for reporting this issue.
Could you give us more details on how you perform search & download ?
Using several search() or a search_all, downloading using download() in a loop, or download_all ? with some particular parameters ?
Thanks

@sbrunato
Traceback (most recent call last):
  File "/home/dp/miniconda3/envs/dag310/lib/python3.10/site-packages/eodag/plugins/authentication/keycloak.py", line 55, in authenticate
    response.raise_for_status()
  File "/home/dp/miniconda3/envs/dag310/lib/python3.10/site-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://auth.creodias.eu/auth/realms/dias/protocol/openid-connect/token

authors: dpriskinGEO sbrunato

repo: CS-SI/eodag


text:
Fixing documentation errors

Resolve #151

Coverage increased (+0.1%) to 52.832% when pulling dea5fb62a4d1be230d26a495e659fd357d81cd96 on kthSim:docs into 58f411c3ce7bdb5da7a4108ba5cfa0d6b9710803 on CS2103-AY1819S2-W17-2:documentation.

authors: coveralls kthSim


text:
issues with Import Zoom Attendance

Hi,
I follow the steps in https://oit.colorado.edu/tutorial/import-zoom-attendance-canvas-gradebook, but Canvas does not recognize any user.
Something strange is that it tells me that the users are not recognized, since the names that it prints to me correspond to the mail (without at and without domain) not to user names as shown in step 9.
Could it be that it is misextracting the data to compare them?
Inside the csv are the same names of users and mails that in canvas, for that reason I imagine that it must be obtaining the data badly from the script

Hi, and sorry for the delayed response. At CU Boulder we have to strip the domains from the usernames. If your school doesn't do that, then the previous version of the script would fail for that reason. I just made an update though in the latest commit that should fix this: now the script will try matching users with and without the domain name so that it will work either way.

authors: dragonxtek jashbycu

repo: CUBoulder-OIT/canvas-userscripts


text:
Links in the document pages are broken

Describe the bug
Links in https://cute-lang.github.io/miniCUTE/haddock/ and https://cute-lang.github.io/miniCUTE/haddock/all/ are broken.
Expected behavior
Possible to go to module documents
Additional context
See https://github.com/commercialhaskell/stack/issues/4971 and https://github.com/commercialhaskell/stack/pull/4974.
The fix is not released yet.

Fixed by a side effect of e8c38e2ee61eb3e4b37cf935f1c19c19ec312768

Fixed by a side effect of e8c38e2ee61eb3e4b37cf935f1c19c19ec312768

repo: CUTE-Lang/miniCUTE


text:
Related to #348 SSVC1.0.1 additions.

This should have the right files and fixes for #348

I believe that "schema/docs/CVE_Record_Format_bundled.json" is an output file and shouldn't be updated. As long as "CVE_Record_Format.json" is updated to include an import of the ssvc schema in the imports directory, it should be ok and the bundled file will be created automatically.

I believe that "schema/docs/CVE_Record_Format_bundled.json" is an output file and shouldn't be updated. As long as "CVE_Record_Format.json" is updated to include an import of the ssvc schema in the imports directory, it should be ok and the bundled file will be created automatically.

It looks like all the _bundled.json file that are created are the following.

CVE_Record_Format_bundled_cnaPublishedContainer.json
CVE_Record_Format_bundled_cnaRejectedContainer.json
CVE_Record_Format_bundled_adpContainer.json

https://github.com/CVEProject/cve-schema/blob/6af5c9c49c5b62e7b1f46756e1f3aef328848e1c/schema/support/schema2markmap/schema-bundle.js#L36-L39
The docs/CVE_Record_Format.json is created but it is not copied over to docs/CVE_Record_Format_bundled.json - at least not in the workflow file itself, so I just manually created it. We can fix the workflow file too, if that is preferred so all of this can be automated.
Also as seen in the log file for workflow
CVE_Record_Format.json created
CVE_Record_Format_bundled_adpContainer.json created
CVE_Record_Format_bundled_cnaRejectedContainer.json created
CVE_Record_Format_bundled_cnaPublishedContainer.json created

Looks like i made a mistake when updating the schema-bundle.js a few months ago. 'CVE_Record_Format.json' should have been 'CVE_Record_Format_bundled.json.' I just made this fix in the develop branch.

From the Meeting - Matt @ElectricNroff  noticed spelling error in examples
https://github.com/sei-vsarvepalli/cve-schema/blob/00989854805b16889a3f7692d2cb809a9eb2f37d/schema/imports/ssvc/ssvc-v1.0.1.json#L38
to be fixed in the PR

Discussed on today's QWG call.  Personally I'm in favor of this.  We have CISA as a provider of SSVC today, but they're forced to use the 'Other' field, which is unstructured.  Moving SSVC to structured data would allow us to perform validation on the data, improving the corpus, as well as making the data easier to consume and use.
We have something of a chicken and egg problem with new types - we don't know exactly what the adoption will be until we make adoption easier.  We do need to balance out schema bloat against possible value, but here we have something that is being used today, so we have some evidence of interest.  And the cost, in data, CPU, etc., is minimal, so I think adding this is justified.
There is at least some information on SSVC adoption in the industry at large: https://github.com/CERTCC/SSVC/discussions/291
This is a non-breaking change to the schema with no real cost/pain that I can see, and it is an improvement over what we're doing now.  To me that's a win-win to add this in the next schema update.
As was raised in the discussion, we do need to have some review of schemas at some point to determine what needs to be deprecated/removed if adoption never picks up, or falls off because the industry has moved on, etc.  But I think that's a different, broader topic.  Probably best done when a major version change is being made (5.x -> 6.x), and maybe minor versions (5.1.x -> 5.2.x).

Some more information/questions that came up offline - trying to capture it here
The newer schema came to try to make SSVC data useable for consumers of various forms. The idea is for vendors do provide informational elements in SSVC format, allowing consumers to collect data and merge it into their policies to take the best course of action according to their policies.
The schema can help gather specific description of the Decision Point. People can also provide other (CVSS metrics as information elements) in the new schema using "namespace" idea.  For e.g., one can go from https://github.com/CERTCC/SSVC/blob/main/data/schema_examples/CVE-1969-0000-Decision_Point_Value_Selection.json
to
These two Decision Points as the inputs to the specific evaluation example.
https://github.com/CERTCC/SSVC/blob/main/data/json/decision_points/exploitation_1_1_0.json
https://github.com/CERTCC/SSVC/blob/main/data/json/decision_points/technical_impact_1_0_0.json
The Decision Points with namespace SSVC are defined and published centrally in the SSVC https://certcc.github.io/SSVC/

authors: MrMegaZone ccoffin sei-vsarvepalli

repo: CVEProject/cve-schema


text:
Add publisher info in Dimensions

@Giovanni1085 Would it be possible to add publisher info in CWTS compatible Dimensions JSON files? Here is an example of how the data could be formatted: "publisher": { "id": "pblshr.1001577", "name": "Radiological Society of North America (RSNA)" }

@neesjanvaneck this is already there, but I only get the name from the publications API. I think I have to look up another entity to get the identifier. I have for now put the as empty and populated the name field, let me know and re-open the issue if a change is needed.

@Giovanni1085 Would it be possible to include the identifier?

@neesjanvaneck done, please review


text:
PublishableBehavior afterFind proposal

Taking into account that cakephp does not fire the beforeFind() callback for behaviors inside the related models, this is a first approach to remove the non published elements from hasMany relations that has the publisable behavior enabled.
/**
 * After Find Callaback
 * @param \Model $model
 * @param array $results
 * @param boolean $primary
 * @return array
 */
	public function afterFind(\Model $model, $results, $primary = false) {

		if ( ((bool)Configure::read('Publishable.disable')) === true) {
			return $results;
		}

		$childrens = $model->getAssociated('hasMany');
		if (array_key_exists($model->alias, $results)) {
			// Not contemplated
			die( "This case is not contemplated" );
		} else {
			foreach ($results as &$result) {
				foreach ($childrens as $m) {
					if (array_key_exists($m, $result)) {
						if ($model->{$m}->Behaviors->enabled('Publishable')) {
							foreach( $result[$m] as $key => $subresult ) {
								if ($subresult['published'] != true) {
									unset( $result[$m][$key] );
								}
							}
						}
					}
				}
			}
		}
		return $results;
	}

Could you send a PR to the develop branch instead? We'll discuss the new feature in the PR

repo: CakeDC/utils


text:
Small fixes

related issues:   fix #521  fix #519  fix #522 (rotation again)

I fixed some glitches with the rotated labels and the background-color for odd rows.
For future reference: The stripped background and rotated header can be activated in the LineUp config (see  config.ts)

authors: sgratzl thinkh

repo: Caleydo/lineupjs


text:
Log-rank test and Breslow (Generalized Wilcoxon)

Thanks for great project!
I'm fan of Lifelines. I'm usually doing log-rank test for two groups.
In SPSS, there are 3 kinds of test (Log Rank, Breslow (Generalized Wilcoxon), Tarone-Ware) and each description is as follows.

Log Rank: A test for comparing the equality of survival distributions. All time points are weighted equally in this test.
Breslow: A test for comparing the equality of survival distributions. Time points are weighted by the number of cases at risk at each time points.
Tarone-Ware: A test for comparing the equality of survival distributions. Time points are weighted by the square root of the number of cases at risk at each time point.

It seems to easy to implement other tests because of good code quality of lifelines. But I failed to get the same p-value with SPSS.
How can I implement these tests?
Thank you.

Hey @yong27, thanks for the issue.
Are you saying that the utils. logrank_test in lifelines produced different results from SPSS? As for the other two tests, no, those don't exist yet. Those seem like good additions though.

I had a go at adding the Wilcoxon and Tarone-Ware test stats: https://github.com/sean-reed/lifelines/blob/bb93312c4462c5a808118a6f1b79ea76aab2a9f7/lifelines/statistics.py#L649
Not much to the implementation of the tests themselves since just a case of applying weightings in the numerator and covariance matrix computations within the existing log-rank statistic implementation - mostly a refactoring to avoid duplicated code between the test statsistics. I still need to add some unit tests but were correct on on a few test examples I tried...

There are a few other popular variations on the log-rank test that could also be added such as Peto and Flemington-Harrington.

:+1: that's a nice refactor, @sean-reed - happy to merge changes like those in

Great, I will add the other log-rank test variants and the unit tests etc. soon.

authors: CamDavidsonPilon sean-reed yong27

repo: CamDavidsonPilon/lifelines


text:
nlogn concordance index algorithm (first pass)

My dataset is about 200k rows, so even the Fortran concordance option takes more than a minute because it's an n^2 algorithm. I wrote a faster (n log n) version. On 100k rows of fake data, this takes the time down from 52s (previous fast n^2 Fortran version) to 4s (current pure-Python n log n version).
Right now it introduces a dependency on another library (blist) because I didn't want to write the order statistic tree myself. Unfortunately blist's order statistic trees might be O(log^2 n) instead of O(log n) for RANK operations, so right now this might be O(n log^n) in practice. Also I suspect blist is slower than a data structure that just tried to be an order statistic tree would be. Anyway, because of the dependency issue, I wanted to run this by the maintainers before I go any further with it. What do you recommend?
PS It's also not quite correct yet--it disagrees with the Fortran implementation on the full Cox model concordance test, and they both disagree with what I get in R. I still have to track this down.

I'm sorta okay with adding blist as a dependency: it's a lib that is not maintained much anymore, but on the other hand it really may offer significant gains. Is there another lib or snippet that can be used?
w.r.t to the new algorithm, I'll go over it tomorrow, and I invite @spacecowboy to take a look to :)

I thought of a simpler "balanced" binary tree that I could write myself (not adding an external dependency), based on the fact that we know the rank order of each prediction at the beginning. The basic idea is that you know what the final balanced tree would look like, that is, which node would contain each number. So when you shuffle nodes around to rebalance, you can just always move them towards their final position.
Here's how it goes:

For simplicity, suppose that the elements that we insert into the tree are the ranks, not the predictions themselves. Also assume n (list length) is a power of 2 for now.

Assign each node a position in the final list: the root node is n/2, its left and right children are n/4 and 3n/4 respectively, etc.

When inserting a new value x at an occupied node y, we knock out y if and only if inserting it as a child of x would move it closer to its target/final position.

Concretely, to add a new element x at a node that currently contains y (when the node's list is i):

If x > y and y < i, then replace y with x and try to insert y as the left child of x
If x > y and y >= i, then try to insert x as the right child of y
If x < y and y > i, then replace y with x and try to insert y as the right child of x
If x < y and y <= i, then try to insert x as the left child of y

You can then easily get the rank of an element in O(log n) by keeping a counter of the number of children of each node.

I think this should allow a reasonably concise implementation (even when extending it to handle ties). But I don't know if it's worth the additional code complexity compared to a library dependency.
I could also just rewrite my stuff in Fortran and paste a license-compatible Fortran balanced tree implementation from somewhere else. Your call.

This is excellent. I had actually never heard of an O(nlogn) implementation before. Doing some "expert googling" turns up a single reference in the literature:
David Christensen. Fast algorithms for the calculation of Kendall’s τ . Computational
Statistics, 20:51–62, 2005.
I don't have time to really dig into the implementation right now as I am swamped for a few days more. I'll do some major reading/testing later. But be careful when relying on the Cox-model for the test. The Cox model does have some significant differences to R still.
As fond as I am of my Fortran code, I suggest we keep this pure python if we can. With an O(nlogn) execution time, there should be little reason for having a native implementation. Keep blits for now. I can volunteer to write a sorted tree implementation at a later date.

@spacecowboy: There's at least one other reference to an nlogn implementation--the R documentation for survConcordance says

The algorithm is based on a balanced binary tree, which allows the computation to be done in O(n log n) time.

which is probably where I got the idea.
Today I found out that there's actually documentation for that code! It apparently uses a clever simplification of my suggestion for a balanced binary tree. Instead of moving nodes around in the tree, you can just keep track of whether each node in the tree is "occupied yet", and use that info when you're updating the array of subtree sizes. That should make it pretty simple to implement except for possibly handling ties.

OK, I stole the btree idea from R's survival package--it ended up being not that much code and was kind of neat to implement. I also fixed the bug in the slow concordance code; it now agrees with the fast Python implementation. Should I just get rid of the Fortran implementation for now, then? (It might be good to keep the pure-Python n^2 implementation in, since it's much simpler--it's useful to test the fast one against.)

Timings for the latest commit:
SIZE = int(10e4)
pred = np.random.uniform(size=SIZE)
obs = np.random.binomial(100, 0.5, SIZE)
event = np.random.binomial(1, 0.5, SIZE)
%timeit ci.fast_concordance_index(obs, pred, event)
# 1 loops, best of 3: 1.44 s per loop
%timeit -r 1 fci.concordance_index(obs, pred, event)
# 1 loops, best of 1: 53 s per loop

Let me know if you see any other low-hanging optimizations; it's still pretty slow compared to the survival version, but that's because survival does the heavy lifting in C.

Removing the Fortran code means we can also simplify setup.py, and possibly remove the utils submodule. The slow version could be renamed "_naive_concordance_index" or something, if it's not removed.

OK, I tried to simplify the setup.py script. Let me know if anything's wrong--I haven't used it much before.

:+1: I'll give this a :tophat: after work

(rebased on latest master)

Since this is such a large speed improvement, can you also remove the optional concordance index call in https://github.com/CamDavidsonPilon/lifelines/blob/8134dd983b3ca9d1069d7a633d4aa5c24ee748a0/lifelines/estimation.py#L1310?

@CamDavidsonPilon: You mean remove the option and make it always call concordance?

@benkuhn Yes that's right

Cool, that should do it. Do you prefer me to squash before it's merged?

Nope, its all good. Thanks for your contribution here; you've made installation a whole lot easier too! :tada:

Nice. That means I can stop my Windows Build VM.

authors: CamDavidsonPilon benkuhn spacecowboy


text:
Module 1.2 Assignment

Created README.md file and commit


text:
MaxPublicMints and MaxWhitelistMints should be set in the constructor

The two variables that control the number of tokens mintable in a single transaction by a public address and the number of tokens mintable by a whitelisted address should be moved to the body of the constructor or initialized to 1.
I prefer moving them to the body of the constructor because this allows anyone to change it during contract creation rather than requiring a contract functional call post-deployment (although they should still be editable).
However, when I attempted this before, I was unable to verify the contract on Etherscan.

I've made several attempts to perform the above. They work completely fine when deploying to a local EVM node but every time I tried calling the setMaxWhitelistMints or setMaxPublicMints in the constructor, I was unable to verify the resulting bytecode on Etherscan.
My only ideas as to what's preventing this are:

Etherscan has a bug or perhaps we are passing too much data in the constructor arguments by adding those two function calls
Those two function calls both emit events, I should try to drop the events and see if it can be verified.

For now, in the next release, we'll be setting a default value for those two values. You'll still be able to change them post deployment but it will require a cheap but additional function call.

It's initialized at default to 1 now, putting it in the constructor goes 1 slot too deep into stack.

It looks like there was a problem with calling the methods that set these variables from within the constructor (those functions emit events) if the variables are explicitly set without a helper function without onlyOwner modifier and without emitting an event. The next release of our contract will close this issue.

We've gone back and forth on this. Since we've now added even more variables to the constructor, these have been re-removed from the constructor and are now initialized to a default of 1. User can update this post-deployment. Stack is too deep if attempting to include these two variables in addition to the existing constructor parameters. See the factory-withoutgov branch for latest.

repo: Candy-Labs/CandyContracts


text:
Help not really helpful; several feature requests

--help does not tell which values are available for -c
And I would really appreciate if

there were an option --csv
I could type abbreviated arguments, e.g. --units b or -c +ino
I had an option --no-bar-graphs to  leave out the bar graphs
there were options for restricting/filtering the filesystems shown, e.g. --type ext4,xfs or --no-type tmpfs or --min-use 90% or --disk lvm,ssd or maybe something like --filter 'type=ext4,xfs and disk!=ssd and use>90'
there were an option --no-header (especially with --csv)

and an option for sorting by any column
and an --asciioption for output in plain ascii (for dumber terminals in the n-th login level)

So many questions. Let's handle them one per one

--help does not tell which values are available for -c.

That's true. I'm not sure of how I'll handle this without replacing the library I use for arg parsing. In the meantime, I just improved the error message:

The --csv option : No objection. Please make a separate dedicated issue.

I'll add other abbreviated column values. Suggestions welcome

--no-bar-graphs : It would be some new columns with just the percentages use_percent & inodes_percent. I note to add those

Are those filterings really useful ? If it's for post-treatment you can use jq. What's the reason here ?

the --no-header option doesn't look terribly useful

sorting: see https://github.com/Canop/lfs/issues/37

--ascii : No objection. Please make a separate dedicated issue.

(in the next release)

Hello Canop,
thank you for your quick response and the work you do!
Even more thanks for implementing so many of the suggestions coming from outside.
As you asked, I've opened separate issues for --csv and --ascii.
Regarding the filtering: Sure, it's not really necessary, jq/grep/awk/... can do the same thing.
It would just be nice to do the filtering within the tool. And it would, for example, avoid mistakes by having a grep matching also an entry in a non-intended column. (The older I become, the more I'm in for safe code, after having seen the weirdest ways that things go wrong. Maybe that's only my personal quirk.)
Best regards,
Christian

I'm not at all in favor of grepping the output of lfs, I agree it's too dangerous. The alternative I would use is json + jq.
I'll certainly do the filtering right in lfs if I feel like it would be used by several users. It mostly depends on whether many people start to use lfs and would need this feature. It could be a separate issue and we'd see if people chime in to say they're interested.

Okay, I've added a comment to #41 .
Thank you.

I would love to have a proper manpage.

@lemmy04  Can you please crate a separate issue for that, so that we don't forget?

Most of what's here has been moved to other issues. Closing this one.

authors: Canop DerPoet lemmy04

repo: Canop/lfs


text:
急需呼吸灯代码

书上的2个案例都跑不通 中断向量表已经添加了

没事了

我的代码也不是用IAR能跑通的……


text:
Installing globally fails on Ubuntu due to sharp module

Node version: v10.19.0
Npm version: 6.13.4
OS: Ubuntu 18.04.4 LTS
I tried to install cantara using npm i -g cantara (also tried with the --unsafe-perm flag), but get the following error:
npm i -g cantara
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated apollo-codegen@0.19.1: The 'apollo-codegen' command has been replaced with the more-powerful 'apollo' CLI. Switch to 'apollo' to ensure future updates and visit https://npm.im/apollo#code-generation for more information.
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN checkPermissions Missing write access to /usr/lib/node_modules
npm WARN webpack-graphql-loader@1.0.2 requires a peer of ts-loader@^4.4.1 but none is installed. You must install peer dependencies yourself.

npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules'
npm ERR!  { [Error: EACCES: permission denied, access '/usr/lib/node_modules']
npm ERR!   stack:
npm ERR!    'Error: EACCES: permission denied, access \'/usr/lib/node_modules\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/lib/node_modules' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/timo-desk/.npm/_logs/2020-02-15T11_27_06_388Z-debug.log

Same for the sudo option using sudo npm i -g cantara:
sudo npm i -g cantara
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated apollo-codegen@0.19.1: The 'apollo-codegen' command has been replaced with the more-powerful 'apollo' CLI. Switch to 'apollo' to ensure future updates and visit https://npm.im/apollo#code-generation for more information.
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
/usr/bin/cantara -> /usr/lib/node_modules/cantara/dist/index.js
/usr/bin/ctra -> /usr/lib/node_modules/cantara/dist/index.js

> sharp@0.23.4 install /usr/lib/node_modules/cantara/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

info sharp Using cached /home/timo-desk/.npm/_libvips/libvips-8.8.1-linux-x64.tar.gz
ERR! sharp EACCES: permission denied, mkdir '/usr/lib/node_modules/cantara/node_modules/sharp/vendor'
info sharp Are you trying to install as a root or sudo user? Try again with the --unsafe-perm flag
info sharp Attempting to build from source via node-gyp but this may fail due to the above error
info sharp Please see https://sharp.pixelplumbing.com/page/install for required dependencies
gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/home/timo-desk/.cache/node-gyp/10.19.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/cantara/node_modules/sharp/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/cantara/node_modules/sharp/.node-gyp'
gyp ERR! System Linux 5.3.0-28-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/cantara/node_modules/sharp
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN webpack-graphql-loader@1.0.2 requires a peer of ts-loader@^4.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/cantara/node_modules/nodemon/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/cantara/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/cantara/node_modules/fork-ts-checker-webpack-plugin/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/cantara/node_modules/@serverless/cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.23.4 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.23.4 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/timo-desk/.npm/_logs/2020-02-15T11_28_35_395Z-debug.log

Should be fixed in version 0.0.5

authors: scriptify timoangerer

repo: CantaraJS/cantara


text:
gossypols, bleacheries

This pull request was generated by the 'mq' tool

/trunk merge

repo: Canva/mergequeue-trunk


text:
diapasm

This pull request was generated by the 'mq' tool

/trunk merge


text:
How to convert the path to a blob or base64 on iOS?

On iOS I cant seem to fetch or read the file using fetch or the capacitor filesystem.
File is always "Not found".
On Android it returns: result.videoFilePath
On iOS it returns: result.videoUrl (with file://)
This can't be fetched since it only supports http.
The filesystem also says it's not found.
Any idea on how to solve this?
I've tried:
 const result = await Filesystem.readFile({
            path: filePath,
            directory: FilesystemDirectory.Library,
            encoding: Encoding.BASE64
        });

A normal fetch(result.videoUrl) won't work.
EDIT
This should work according to the capacitor docs:
const res = await CameraPreview.stopRecordVideo();

const base64 = await Filesystem.readFile({
        path: res.videoUrl
});

console.log(base64)

But this isn't working for me. File not found.

func captureVideo() throws {
        guard let captureSession = self.captureSession, captureSession.isRunning else {
            throw CameraControllerError.captureSessionIsMissing
        }
        let path = FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask)[0]
        let identifier = UUID()
        let randomIdentifier = identifier.uuidString.replacingOccurrences(of: "-", with: "")
        let finalIdentifier = String(randomIdentifier.prefix(8))
        let fileName="cpcp_video_"+finalIdentifier+".mp4"
        let fileUrl = path.appendingPathComponent(fileName)
        try? FileManager.default.removeItem(at: fileUrl)
        // Start recording video
        // ...
        // Save the file URL for later use
        self.videoFileURL = fileUrl
    }

Not sure, but is the video deleted on capture?

@WcaleNieWolny did you say this kind of issue ?

@riderx no, but I did write an app that uploaded the recorded video into s3.
  async function record() {
    if (!isRecording.value) {
      isRecording.value = true
      await CameraPreview.startRecordVideo({ storeToFile: true })
    } else {
      isRecording.value = false
      const fileUrl = await CameraPreview.stopRecordVideo()
      console.log(fileUrl.videoFilePath)
      // const contents = await Filesystem.readFile({
      //   path: fileUrl.videoFilePath,
      // });
      // console.log(contents.data.length)

      const randomId = makeid(8)
      console.log(`Attempt to upload ${randomId}`)

      const urlReq = await fetch(`https://[redacted]/${randomId}.mp4`, {
        headers: {
          'Authorization': 'Bearer [removed]'
        },
        method: 'GET'
      })

      const uploadUrl = (await urlReq.json() as any).url as string
      console.log('upload url', uploadUrl)

      const { id } = await Uploader.startUpload({
        filePath: fileUrl.videoFilePath,
        serverUrl: uploadUrl,
        method: 'PUT',
        // parameters: fields,
        headers: {},
        // notificationTitle: 'Uploading to S3'
      });

      console.log(`Plugin returned ${id}`)

    }
  }

From what the user shared, I think it's an issue on the user's end. The proper way would be to read res.videoFilePath, but the user uses res.videoUrl which is undefined.
const base64 = await Filesystem.readFile({
        path: res.videoUrl // <--- here, please put "videoFilePath"
});

authors: WcaleNieWolny riderx wijzijnweb

repo: Cap-go/camera-preview


text:
Advanced Installer DevOps Pipeline task uses an outdated Node version

When using the Advanced installer Build task in Azure Devops Pipeline, I get this warning:
Downloading task: AdvancedInstaller (2.0.12)
##[warning]Task 'Advanced Installer Build' version 2 (AdvancedInstaller@2) is dependent on a Node version (10) that is end-of-life. Contact the extension owner for an updated version of the task. Task maintainers should review Node upgrade guidance: https://aka.ms/node-runner-guidance

Nevermind - saw there was a new version 3 of the Advanced Installer Build tool which fixes this.

repo: Caphyon/advinst-vsts-tool


text:
Crash due to EqualizeDocumentLength() sometimes result in unequal lengths

The function DetectOperationPerLine() tries to equalize the length of the incoming document strings if their length is unequal.
https://github.com/Caphyon/clang-format-editor/blob/f766b3f38f3c6cc4a526db558bb8e76ce1b10943/ClangFormatEditor/DiffStyle/DiffMatchPatchWrapper.cs#L190-L209
However, there is no check to make sure that resulting strings are actually equal after the functions EqualizeDocumentLength have been run.
If the resulting list outputLines have more elements than then resulting list inputLines this will cause a crash inside the for-loop, since the GetDiff() function will try to index the inputLines variable outside outside the available list range.
My temporary fix was to skip elements outside the list range inside the for-loop:
      for (int index = 0; index < outputLines.Count; index++)
      {
        if (index >= inputLines.Count)
        {
            continue;
        }
        ...

However, the issue should probably be fixed inside the EqualizeDocumentLength() function.

Hi @bjornblissing,
Sorry for delay answer. Thank you for reporting this issue
I can reproduce this problem, we are working on a fix
I will return to you when a release with this fix will be available
Have a nice day,
Marina

Hi @bjornblissing,
A fix for this issue is available in Clang Format Editor v2023.4.2
Thank you for reporting this problem
Kind regards,
Marina

repo: Caphyon/clang-format-editor


text:
The problem that header files of nuget package are tidied.

Currently, header files of nuget package are tidied because the header files are commonly included from Additional Include Directories.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemDefinitionGroup>
    <ClCompile>
      <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)..\lib\native\include\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    </ClCompile>
  </ItemDefinitionGroup>
  <ItemGroup />
</Project>

Most of nuget package target files are showed like above thing. They add their include directories to AdditionalIncludeDirectories.
But, most users don't want this behavior. I think that header files of nuget package shouldn't be tidied.

Thank you for submitting this idea for an improvement. It does seem reasonable for those headers not to get tidied.
We’ve added this to our todo and will update the issue thread as soon as progress is made.
Regards,
Gabriel.

repo: Caphyon/clang-power-tools


text:
[Feature] Running the Cap'n inside a docker container

After having mentioned the Cap'n in one of my talks, I was asked how to run git hooks when the application is running in a docker container and no php cli is available on the host. I think that is an interesting use-case, especially when you want to offer hooks for other frameworks & tools as many people these days have their own docker setup in place.
Letting the hooks run commands in a container could be a trivial thing, instead of the php based hooks, provide a shell script that would call the php hooks in docker. The container name to run would need to configurable, I guess.
However, the problem is, how to install the Cap'n without invoking Composer/Php on the host. You could potentially provide a 2nd way of installing the Cap'n via some Bash tooling then. Not sure though if it really is feasible to maintain 2 separate installers.

I'm far from a Docker pro so this is was I understand has to happen.

You need a Docker container able to run php cli and git
In case you have no php to execute locally you have to start a docker container able to execute CaptainHook with the php cli and has access to the source code and the repository so it can execute some git commands as well.
Create the real git hooks inside the .git directory without using php

I could think of a captainhook/docker packages that could provide an example docker file and some scripts to install the docker hooks to the local directory.
The docker hooks would have to:

start the container
execute captainhook somehow and pass the original arguments in a way they can be handled inside the container. I think especially tricky are the commit-message arguments regarding the file location of the current commit message file, so it can be accessed inside the container
retrieve the result from inside the container and exit with 0 or 1 depending on the received result.

Is this about right?

That's correct. You can invoke commands in docker either via docker cli or via docker-compose like this: docker-compose exec the-container-name /var/www/html/vendor/bin/captainhook
I thought it might be tricky to pass parameters of the hook itself into the container, I guess for most parameters things should be simple, e.g. commit Id. If in case of the commit-message hook you need to pass an absolute path, one might need to be able to configure some path mapping then.

If we put this in a separate package we can define another binary script like captainhook.docker.bridge that gets called by the docker cli and does the following things:

mapping the arguments to the captain hook commands
mappging path arguments to a path that works inside the container
calling the right original captain hook commands
returning the errors and exit codes in a way the docker cli can communicate it to the originally called hook script

This can still be done on PHP since it runs inside the container. The only stuff where we have to leave php behind is for the part that is called by git and triggers the docker cli.
And the hook installation of course.
Sounds doable I would say.

Hook installation can still be done with php when done with the composer plugin. Maybe a golang wrapper to call forth the captain is possible? It could detect the environment, required tools etc. But would be a major project itself.

I think the only thing that has to be changed, is the git hook content itself.
Currently CaptainHook writes PHP code inside the .git/hooks/commit-msg (for example).
What needs to be changed to run this into docker (or any other virtual machine) would be to postpone the php execution. What we need to do?

CaptainHook does NOT install the php code into the local .git/hooks itself but rather provides a single php file for execution. This could be as well reside beside the hooks itself - lets say captain-runner.php

The hooks itself might contain something like this:
#!/usr/bin/env bash
"`dirname $0`/captain-runner.php" commit-msg "$@"

For this to work for windows, users need to run some kind of cygwin sh on their machine (git for windows)

As you can see we pass the type of hook into the captain-runner.php to we define the run that is running. So Currently the https://github.com/CaptainHookPhp/captainhook/blob/master/src/Hook/Template.php#L52 could be changed to simply tage the first argument of the execution. (Simply a guess, which needs to be checked if its working)

Using the install command for the captain, we should also ask if the user is running on a virtual machine. If so the hooks in .git/hooks have to look a bit different. These must the contain the execution for the docker container as @shochdoerfer pointed out.
So for example we need to ask for the container-name and the linked-path where the source resides inside the container itself.
#!/usr/bin/env bash
docker-compose exec the-container-name /var/www/html/.git/hooks/captain-runner.php commit-msg "$@"

For this to work tho. I think we should break down this "issue" into multiple ones, or else the impact would be pretty high and the change set is not very good to review.

As I talked to @sebastianfeldmann I will provide a PR with a POC. Then we can talk about the final implementation of this. 🙂

I have opened up the proper PR.
Feel free to add your thoughts 😃

Fixed and released with 4.3.0

authors: dkreuer icanhazstring sebastianfeldmann shochdoerfer

repo: CaptainHookPhp/captainhook


text:
使用类似ListMultiVideoActivity的方式轮流播放偶发两个播放器会同时播放

#1215
列表滑动顺序播放当前页面视频，然后划过的播放器就release了。在ondestroy里面也调用了clearAllVideo。
但是偶尔出现某个视频开始播放，背后有个视频的声音还在播放，在manager中也找不到这个player。pauseall也没办法暂停。甚至ondestroy走了也没能停掉这个失控的播放器。只能手动杀掉app才能停止这个声音。
请问是否遇到过类似情况，或者这种状态下怎么才能停掉那个release但是并没真正停掉的player？
@CarGuo

这个问题应该和key有关~~ getKey()方法决定了这个video在Manager中的map位置，所以如果存在key重复、或者对应不上的，可能就会出现这个问题，建议你可以修改这个方法，返回你的唯一key规则。

authors: CarGuo wisonic

repo: CarGuo/GSYVideoPlayer


text:
🛑 jereconstructionroofing is down

In ff6f04f, jereconstructionroofing (jereconstructionroofing.com) was down:

HTTP code: 429
Response time: 387 ms

Resolved: jereconstructionroofing is back up in 5d471c3 after 1 hour, 29 minutes.

repo: Careas/vps-monitor


text:
🛑 jereconstructionroofing is down

In d40da76, jereconstructionroofing (jereconstructionroofing.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: jereconstructionroofing is back up in 1591134 after 14 minutes.


text:
🛑 Agent Online Ordering - Barranquilla is down

In 08abb5b, Agent Online Ordering - Barranquilla (https://caribe.domicilioscrepesywaffles.com.co) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Agent Online Ordering - Barranquilla is back up in 9d5ae3c after 12 minutes.


text:
checkout branch main

It appears that the merge-dev-to-main action is checking out dev and pulling any changes from dev. I believe this change will check out main and then pull from dev.
Logs from a recent run of merge-dev-to-main: https://github.com/CarnegieLearningWeb/UpGrade/runs/7079103430?check_suite_focus=true
Switched to a new branch 'dev'
branch 'dev' set up to track 'origin/dev'.
git merge origin/dev
git push

This isn't necessary, when you trigger the action you should be choosing the main branch.

repo: CarnegieLearningWeb/UpGrade


text:
Generate with template

This MR reorganizes the genmsg crate in order to allow passing a custom template and a map of ros typenames to other typenames.

Hmm hold on this interface needs a lot of work...


text:
fix weird var

sorry @xavijam

:ok_woman: :ok: :cool:

Go!

you need a test CI on this repo eh ;)

authors: piensaenpixel viddo xavijam

repo: CartoDB/CartoAssets


text:
Legends not working with negative values

Legends in the Builder do not work with negative values. I loaded a dataset of values that has negative and positive values in the range. The choropleth band renders fine, however, the average line falls to the left of the choropleth bar outside of the bar itself since the average is a negative value.

could you share the dataset (or the .carto) please?

yeah
On Thu, Oct 13, 2016 at 4:11 PM, javi santana notifications@github.com
wrote:

could you share the dataset (or the .carto) please?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/CartoDB/cartodb/issues/10182#issuecomment-253624965,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEmtLN7x_DH0OwR1QWE5VHt6oCeyjzuzks5qzpB_gaJpZM4KWPkE
.

--
Matt Forrest
Client Success Manager
CARTO
201 Moore St, Brooklyn, NY, 11206
P: (917) 463-3232 x7508
C: (612) 325-8470
carto.com http://www.carto.com/

AFAIK this avg calculation comes straight from postgresql, right?

Fixed in https://github.com/CartoDB/cartodb.js/pull/1448

Closed by #10198

authors: javisantana mbforr nobuti

repo: CartoDB/cartodb


text:
[FR] export TileUtils

Would be really useful to have access to TileUtils methods in the Android and iOS sdks.
I am needing it to interact with a source without a layer
Thanks

Thanks for the feedback. The class is relatively high level and I think exposing it can be quite useful. We will try to add this to the next release.

@mtehver great ! will be awesome to have
Thanks

authors: farfromrefug mtehver

repo: CartoDB/mobile-sdk


text:
How to calculate the recall rate?

Thanks to this open source work, I successfully calculated the mAP。
I got the following results.
49.08% = plate AP
mAP = 49.08%
I tried to modify the existing code to output the recall rate on the dataset, but it failed.
Can someone give me some advice on how to modify the existing code to output the recall rate?
Thank you very much ！

Hi @Zachzhang97, have you got any lead for this question?
Regards
Pavan

@Zachzhang97 hey, did you find out how to make it ?

PR曲线可以画出来  也就说又Precision和Recall的列表数据   但是模型怎样输出最终的P值和R值呢？

repo: Cartucho/mAP