[Bug] DeepFreeze has BackgroundResources incorrectly marked as a dependency

Background

Operating System: Windows (probably any)
CKAN Version: 1.29.2 (probably any)
KSP Version: 1.10.1 (probably any)

Have you made any manual changes to your GameData folder (i.e., not via CKAN)?
yes, but that's not relevant here
Problem
See JPLRepo/DeepFreeze#96. "Background Resources" is marked as a dependency for DeepFreeze by CKAN but is not required to run DeepFreeze, per JPLRepo.

This was added in #7277 because DeepFreeze started bundling BackgroundResources, which caused conflicts with BackgroundResources itself, see #7276. Checking again now, DeepFreeze still bundles BackgroundResources. The installation instructions on the forum thread simply say "Unzip into your Game install directory", which would result in the bundled BackgroundResources being installed. Until that comment by the author on the other issue, there was no indication this was optional.
Any idea why this bundling started?

I guess it's more meant as a should-have recommendation, and is not actually a hard dependency.
Different authors, different bundling habits...

It appears that BackgroundResources provides additional optional functionality to DeepFreeze. I am basing this on the forum post including the changelog, which refers to JPLRepo's BackgroundResources replacing the defunct BackgroundProcessing mod.
V<IP_ADDRESS>
Re-compile for KSP 1.7.2 and above.
Added BackgroundResources processing. This is a module also distributed with my TAC LS mod. It will do EC processing for DeepFreezer parts that
are on unloaded vessels (not the active vessel). You can turn it off in the Difficulty settings. It also does unloaded EC production for all vessels.

Turns out this was wrong, it was supposed to be a dependency all along.
https://forum.kerbalspaceprogram.com/index.php?/topic/112328-112x-deepfreeze-v0310-12th-sep-2021/&do=findComment&comment=4132175


Missing CORS support.

ldnode does not currently support CORS headers. We need to have at least Access-Control-Allow-Origin support.

:+1:

Work started here https://github.com/linkeddata/ldnode/pull/92

done in https://github.com/linkeddata/ldnode/commit/9f929ba15b817ceb8c9ef0cf80062d4248a3b738


Example from documentation doesn't work.

error[E0433]: failed to resolve: could not find main in tokio
--> src/main.rs:64:10
|
64 | #[tokio::main]
|          ^^^^ could not find main in tokio
error[E0599]: no method named data found for struct Request in the current scope
--> src/main.rs:13:21
|
13 |     let state = req.data::().unwrap();
|                     ^^^^ method not found in Request<Body>
|
::: /Users/y.pachin/.cargo/registry/src/github.com-1ecc6299db9ec823/http-body-0.3.1/src/lib.rs:72:8
|
72 |     fn data(&mut self) -> Data<'_, Self>
|        ---- the method is available for Request<Body> here
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a use for it:
|
1  | use hyper::body::HttpBody;
|
error[E0599]: no method named param found for struct Request in the current scope
--> src/main.rs:21:23
|
21 |     let user_id = req.param("userId").unwrap();
|                       ^^^^^ method not found in Request<Body>
error[E0599]: no method named remote_addr found for struct Request in the current scope
--> src/main.rs:29:13
|
29 |         req.remote_addr(),
|             ^^^^^^^^^^^ method not found in Request<Body>
error[E0277]: the trait bound Body: http_body::Body is not satisfied
--> src/main.rs:69:38
|
69 |     let service = RouterService::new(router).unwrap();
|                                      ^^^^^^ the trait http_body::Body is not implemented for Body
|
= note: required by RouterService::<B, E>::new
error[E0277]: the trait bound for<'a> RouterService<Body, Infallible>: Service<&'a AddrStream> is not satisfied
--> src/main.rs:75:44
|
75 |     let server = Server::bind(&addr).serve(service);
|                                            ^^^^^^^ the trait for<'a> Service<&'a AddrStream> is not implemented for RouterService<Body, Infallible>
|
= help: the following implementations were found:
<RouterService<B, E> as Service<&hyper::server::tcp::addr_stream::AddrStream>>
= note: required because of the requirements on the impl of hyper::service::make::MakeServiceRef<AddrStream, Body> for RouterService<Body, Infallible>
error[E0277]: the trait bound for<'a> RouterService<Body, Infallible>: Service<&'a AddrStream> is not satisfied
--> src/main.rs:78:23
|
78 |     if let Err(err) = server.await {
|                       ^^^^^^^^^^^^ the trait for<'a> Service<&'a AddrStream> is not implemented for RouterService<Body, Infallible>
|
= help: the following implementations were found:
<RouterService<B, E> as Service<&hyper::server::tcp::addr_stream::AddrStream>>
= note: required because of the requirements on the impl of hyper::service::make::MakeServiceRef<AddrStream, Body> for RouterService<Body, Infallible>
= note: required because of the requirements on the impl of Future for Server<AddrIncoming, RouterService<Body, Infallible>>
= note: required by poll
error[E0277]: the trait bound RouterService<Body, Infallible>: Service<&'a AddrStream> is not satisfied
--> src/main.rs:75:38
|
75 |     let server = Server::bind(&addr).serve(service);
|                                      ^^^^^ the trait Service<&'a AddrStream> is not implemented for RouterService<Body, Infallible>
|
= help: the following implementations were found:
<RouterService<B, E> as Service<&hyper::server::tcp::addr_stream::AddrStream>>
= note: required because of the requirements on the impl of hyper::service::make::MakeServiceRef<AddrStream, Body> for RouterService<Body, Infallible>
error[E0631]: type mismatch in function arguments
--> src/main.rs:56:37
|
26 | async fn logger(req: Request) -> Result<Request, Infallible> {
| ------------------------------------------------------------------------ found signature of fn(Request<Body>) -> _
...
56 |         .middleware(Middleware::pre(logger))
|                                     ^^^^^^ expected signature of fn(Request<hyper::body::body::Body>) -> _
|
::: /Users/y.pachin/.cargo/registry/src/github.com-1ecc6299db9ec823/routerify-2.2.0/src/middleware/mod.rs:52:70
|
52 |         R: Future<Output = Result<Requesthyper::Body, E>> + Send + 'static,
|                                                                      ------- required by this bound in Middleware::<B, E>::pre
error[E0631]: type mismatch in function arguments
--> src/main.rs:57:19
|
11 | async fn home_handler(req: Request) -> Result<Response, Infallible> {
| ------------------------------------------------------------------------------- found signature of fn(Request<Body>) -> _
...
57 |         .get("/", home_handler)
|                   ^^^^^^^^^^^^ expected signature of fn(Request<hyper::body::body::Body>) -> _
error[E0631]: type mismatch in function arguments
--> src/main.rs:58:32
|
20 | async fn user_handler(req: Request) -> Result<Response, Infallible> {
| ------------------------------------------------------------------------------- found signature of fn(Request<Body>) -> _
...
58 |         .get("/users/:userId", user_handler)
|                                ^^^^^^^^^^^^ expected signature of fn(Request<hyper::body::body::Body>) -> _
error[E0277]: the trait bound Body: http_body::Body is not satisfied
--> src/main.rs:52:5
|
52 |     Router::builder()
|     ^^^^^^^^^^^^^^^ the trait http_body::Body is not implemented for Body
|
= note: required by Router::<B, E>::builder
error[E0277]: the trait bound Body: http_body::Body is not satisfied
--> src/main.rs:55:10
|
55 |         .data(State(100))
|          ^^^^ the trait http_body::Body is not implemented for Body
error[E0277]: the trait bound Body: http_body::Body is not satisfied
--> src/main.rs:56:10
|
56 |         .middleware(Middleware::pre(logger))
|          ^^^^^^^^^^ the trait http_body::Body is not implemented for Body
error[E0277]: the trait bound Body: http_body::Body is not satisfied
--> src/main.rs:56:21
|
56 |         .middleware(Middleware::pre(logger))
|                     ^^^^^^^^^^^^^^^ the trait http_body::Body is not implemented for Body
|
::: /Users/y.pachin/.cargo/registry/src/github.com-1ecc6299db9ec823/routerify-2.2.0/src/middleware/mod.rs:51:12
|
51 |         H: Fn(Requesthyper::Body) -> R + Send + Sync + 'static,
|            ----------------------------- required by this bound in Middleware::<B, E>::pre
error[E0277]: the trait bound Body: http_body::Body is not satisfied
--> src/main.rs:57:10
|
57 |         .get("/", home_handler)
|          ^^^ the trait http_body::Body is not implemented for Body
error[E0277]: the trait bound Body: http_body::Body is not satisfied
--> src/main.rs:58:10
|
58 |         .get("/users/:userId", user_handler)
|          ^^^ the trait http_body::Body is not implemented for Body
error[E0277]: the trait bound Body: http_body::Body is not satisfied
--> src/main.rs:59:10
|
59 |         .err_handler_with_info(error_handler)
|          ^^^^^^^^^^^^^^^^^^^^^ the trait http_body::Body is not implemented for Body
error[E0599]: the method build exists for struct RouterBuilder<Body, _>, but its trait bounds were not satisfied
--> src/main.rs:60:10
|
60 |         .build()
|          ^^^^^ method cannot be called on RouterBuilder<Body, _> due to unsatisfied trait bounds
|
::: /Users/y.pachin/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.13.10/src/body/body.rs:28:1
|
28 | pub struct Body {
| --------------- doesn't satisfy Body: http_body::Body
|
= note: the following trait bounds were not satisfied:
Body: http_body::Body
warning: unused import: routerify::prelude
--> src/main.rs:3:5
|
3 | use routerify::prelude::*;
|     ^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default
error[E0752]: main function is not allowed to be async
--> src/main.rs:65:1
|
65 | async fn main() {
| ^^^^^^^^^^^^^^^ main function is not allowed to be async

Make sure that you have all required dependencies in your Cargo.toml as specified in the Install section of the repo's README.md
[dependencies]
routerify = "2"
hyper = "0.14"
tokio = { version = "1", features = ["full"] }


EDNS: Wrong EDNS0 Option unpacked

I'm working using the edns-tcp-keepalive option but it seems that it is always unpacked as the EDNS0_LOCAL struct and not the EDNS0_TCP_KEEPALIVE struct.
An example test for reproducing this error is down below:
func TestClientEDNS0TCPKeepAlive(t *testing.T) {
	handler := func(w ResponseWriter, req *Msg) {
		m := new(Msg)
		m.SetReply(req)

		m.Extra = make([]RR, 1, 2)
		m.Extra[0] = &TXT{Hdr: RR_Header{Name: m.Question[0].Name, Rrtype: TypeTXT, Class: ClassINET, Ttl: 0}, Txt: []string{"Hello local edns"}}

		// reply with the same option
		m.Extra = append(m.Extra, req.Extra[0])

		w.WriteMsg(m)
	}

	HandleFunc("miek.nl.", handler)
	defer HandleRemove("miek.nl.")

	s, addrstr, _, err := RunLocalUDPServer(":0")
	if err != nil {
		t.Fatalf("unable to run test server: %s", err)
	}
	defer s.Shutdown()

	m := new(Msg)
	m.SetQuestion("miek.nl.", TypeTXT)

	ec1 := &EDNS0_TCP_KEEPALIVE{}
	ec1.Code = EDNS0TCPKEEPALIVE
	o := &OPT{Hdr: RR_Header{Name: ".", Rrtype: TypeOPT}, Option: []EDNS0{ec1}}
	m.Extra = append(m.Extra, o)

	c := new(Client)
	r, _, err := c.Exchange(m, addrstr)
	if err != nil {
		t.Fatalf("failed to exchange: %s", err)
	}

	if r == nil {
		t.Fatal("response is nil")
	}
	if r.Rcode != RcodeSuccess {
		t.Fatal("failed to get a valid answer")
	}

	txt := r.Extra[0].(*TXT).Txt[0]
	if txt != "Hello local edns" {
		t.Error("Unexpected result for miek.nl", txt, "!= Hello local edns")
	}

	got := r.Extra[1].(*OPT).Option[0]
	if _, ok := got.(*EDNS0_TCP_KEEPALIVE); !ok {
		t.Error("Did not receive back EDNS0_TCP_KEEPALIVE")
	}
}

That option code is missing from makeDataOpt here:
https://github.com/miekg/dns/blob/ce48a4b9efe6d545069a62147da9d67825f98fa1/msg_helpers.go#L441
Want to send a PR?

[ Quoting @.***> in "Re: [miekg/dns] EDNS: Wrong EDNS0 O..." ]

That option code is missing from makeDataOpt here:
https://github.com/miekg/dns/blob/ce48a4b9efe6d545069a62147da9d67825f98fa1/
msg_helpers.go#L441
Want to send a PR?

is there a (neat) way to have a test that we have all them in this switch?

Opened the PR with the simple fix. I've thought about covering all of them before but I don't think it's easily doable. Let me know though and I'll either add that test or the one above as a regression test .

[ Quoting @.***> in "Re: [miekg/dns] EDNS: Wrong EDNS0 O..." ]
That option code is missing from makeDataOpt here: https://github.com/miekg/dns/blob/ce48a4b9efe6d545069a62147da9d67825f98fa1/ msg_helpers.go#L441 Want to send a PR?
is there a (neat) way to have a test that we have all them in this switch?

Not that I’m aware of. There are golang proposals for features like that, but none have been accepted nor do I really think they will. staticcheck doesn’t even support this.

[ Quoting @.***> in "Re: [miekg/dns] EDNS: Wrong EDNS0 O..." ]

[ Quoting @.***> in "Re: [miekg/dns] EDNS: Wrong EDNS0 O..." ]
That option code is missing from makeDataOpt here: https://github.com/miekg
/dns/blob/ce48a4b9efe6d545069a62147da9d67825f98fa1/ msg_helpers.go#L441
Want to send a PR?
is there a (neat) way to have a test that we have all them in this switch?
Not that I’m aware of. There are golang proposals for features like that, but
none have been accepted nor do I really think they will. staticcheck doesn’t
even support this.

I think moving the code into edns0.go will make sense, then the list of const is right
above the switch.

[ Quoting @.***> in "Re: [miekg/dns] EDNS: Wrong EDNS0 O..." ]

Not that I’m aware of. There are golang proposals for features like that, but
none have been accepted nor do I really think they will. staticcheck doesn’t
even support this.

https://github.com/miekg/dns/pull/1273


FCP & QNAP SMB v3 corrupting libraries upon duplicating projects.

Apple Feedback Assistant ID: MISSING
Using the latest FCP, although this issue has been going on for some time and with previous versions. The library and media is located on a QNAP server (10GbE connection - 800Write/1050Read performance) via SMB 3.
Final Cut Pro-2023-09-13-155901.ips.zip
Almost every time I duplicate a project within an event, I get a corrupt library, especially when I try to rename the project. Sometimes duplicating works, but after working for a couple of minutes, library corrupts itself, and duplicate no longer works unless I manually go to the library contents and delete the corrupt project folder and restart.
This happened with previous versions of FCP and the same QNAP so it's not linked to this version only, but I've been working on davinci for a while, and hadn't noticed lately how often the issue happens with FCP.
The media I'm working with is Sony A7SIII, but the crashes I get after returning the project from Davinci, so the media is essentially Apple ProRes 422 HQ. May have something to do with XML roundtripping but I doubt it since I've stumbled onto this issue with other projects that didn't have round tripping. Could be SMB related (though no disconnection issues occur), but I have not tested this with moving the project locally and trying to see if the issue pops up as well. I have tried creating a new library and adding the media and keywords there, but the same thing happens. I have a crash log from today, but the software doesn't really crash, so I don't know what relevant info can be found inside.
SPECS:

MacBook Pro M2 Max 64 GB / 2 TB.
macOS Ventura 13.5.2
Final Cut Pro 10.6.8

I have now tested the library locally on the laptop and it seems to work. So the issue remains over SMB v3 and 10GBe connections where FCP corrupts libraries upon duplicating and renaming projects that are located over this type of network.

I have limited experience using FCP files on a QNAP server, but Apple says if using FCP files on a Linux-based NAS using SMB, that server should be using Samba 4.3.4 or later configured with modules for Apple compatibility:
https://support.apple.com/en-us/HT207128
I briefly ran the fs_usage command in terminal against the FCP process when I was duplicating a project. It showed a lot of specialized I/O calls on the library that are designed to prevent data corruption, e.g, guarded_pwrite_np, guarded_close_np,
guarded_open_np, guarded_close_np. I don't know how those are redirected to SMB then on the server from SMB to local I/O calls.
I don't know what kind of I/O tracing options exist on QNAP, but one logical approach is do the equivalent of fs_usage on the server during FCP project duplication, while the MacOS client is also being logged by fs_usage. That way you can do a time-correlated study of the I/O operations.
Re the library corruption, one question is whether that is at the database structural level or at the application level. The integrity of each SQLite database in each event and project within the library can be checked using PRAGMA INTEGRITY_CHECK in each database, using any SQLite query tool. The one I use is SQLPro for SQLite: https://www.sqlitepro.com
If it's not damaged at the database structural level (IOW index b-trees), the damage is at the application layer, IOW the logical contents of the tables. There is the undocumented FCP menu OPT+Clip>Verify & Repair Project, but I definitely wouldn't use that without a backup.
It would be interesting to use SQLPro and export a CSV version of the project database before the duplication attempt, then export a CSV version afterward (both original and duplicate) and compare those using a diff tool such as Beyond Compare or BBEdit.


Add support for EDS failover endpoints

See https://github.com/lyft/envoy-api/blob/master/api/eds.proto#L181.

Closing off in favor of #1929


User Administration Wizard

This needs to be tested against 11.0 SP9 and upgraded if necessary.

Retarget to current open release: 11.0 SP12.


postprocessed silo files don't have correct primitive vars

The post-processed silo files don't have correct primitive variables. Likely an issue with common/m_variables_conversion.fpp subroutine s_convert_conservative_to_primitive.

fixed with #66


No download links

It would be helpful if this page actually included a link to the download page: https://www.microsoft.com/en-us/download/details.aspx?id=50355. Instead, it provides links that eventually all link back to this page, so the user goes round round in circles.

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

ID: 20d79c05-f4c0-689c-d302-638fa1a30ac9
Version Independent ID: 25c8c4af-e64d-d0c0-b493-73df7972563b
Content: Download Unified Service Desk for Dynamics 365 for Customer Engagement apps
Content Source: ce/unified-service-desk/download-unified-service-desk.md
Service: dynamics-365-customerservice
GitHub Login: @kabala123
Microsoft Alias: kabala

@Customery : Thanks for reaching out. I think you have seen USD 4.1 public preview topic for which the download bits are not yet published. To get the preview access, one must join the experience.dynamics.com. If you select version 4.0 or 3.0 from the drop-down above the TOC, you can find the download links for the 4.0 and 3.X releases. I will enhance the doc to update the statement - to get the public preview access, you must join the public preview access program. Hope this helps.

Hope the information is helpful. Closing this issue now.


Use ground plane visualizer directly in the World

Since Modelica.Mechanics.MultiBody.Visualizers.Ground has relation to Modelica.Mechanics.MultiBody.World, it could be a part of it. The following questions arise:

Should be the ground plane origin always fixed to the World origin?
Should be the orientation of the plane coupled to the gravity normal vector?

Reset milestone since 66345025f76bdfbb06ac7cd33e53707a25402718 went to master branch.

This change causes regressions in a commercial library (FlightDynamics); and in theory there could be other similar cases.
Basically if a library made their own world-object (by copying World from MSL and adding parts) and used it as "inner MyWorld world;" the "outer World world;" in MSL no longer matches the inner component.
I don't see that we have stated that making your own inner-objects is not fully supported.

Oh, perhaps better to open new issue. Will do that.


Merge cells together to avoid staying in one cell too long

This should help mitigate the issue where the bot travels to a stop
that is farther than a nearby one because the nearer one is in another
cell.
I also release control back to the make loop after catching any pokemon.
Example Path:

First of all, why remove these?
if hack_chain > 10:		                          #print('need a rest')		                          break		                      if self.config.mode == "poke":		                          break
Also, you forgot () after the last worker.work....
 # Move to and spin the nearest stop.     worker = MoveToFortWorker(forts[0], self)     worker.work()     worker = SeenFortWorker(forts[0], self)     worker.work
Test code before pulling.

This looks great to me.


expire must be supplied with priority=2

To send an emergency-priority notification, the priority parameter must be set to 2 and the retry and expire parameters must be supplied.
Currently expire and retry parameters are not supported.

All options are supported.. the setDefaults function is just a suggestion.
var pri_msg = {
        message: 'omg hai pri',
        sound: 'magic',
        title: "emergency",
        expire: 3600,
        priority: 2,
        retry: 30
};

Setting the options will result in the expected behaviour.

Any news about High priority (With acknowledgement) messages?
Need it for smoke alarms and pir.


text input: set caret position to click position.

caret position is currently set to the end of the current text within a textarea or textfield. It should instead appear where the user selected.

consolidating to #214


Secondary macros should not be required if capabilities are disabled

If a capability is disabled, like LIBSPDM_ENABLE_CAPABILITY_PSK_EX_CAP then macros that depend on that capability, like LIBSPDM_PSK_MAX_HINT_LENGTH, should not be required to be defined, and compilation and tests should be successful in their absence.

9/19/2022 - steven will propose a fix.

Also LIBSPDM_MAX_SPDM_MSG_SIZE and LIBSPDM_DATA_TRANSFER_SIZE should not be required when implementing a 1.0 / 1.1 endpoint.


Add support for foreign key cascade deletes

If you want this feature to be implemented, give it a thumbs up reaction, so that we can determine which features are important to you.
👍

Done. Docs are remaining.

Removing support for db schema management


Installation step like RioFS & S3FS

Hi @kahing ,
I'm a S3FS user. and yes, I'm found s3fs is very slow in my site. When I looking to S3FS alternatives, I found two options that I think is worth it to try, they are Goofys & RioFS.
When I try to install RioFS, I don't find another obstacle since the installation process is very similar like S3FS (By build it from source).
Now i want to try Goofys, and I'm not very familiar with installation using Go.
Can I Install it by build it from the source?
If yes, Can you elaborate the ways?
Thanks.

I don't understand why you close it, and referenced it to your commit.
My Question is how to build it from source.
Thank You.

I added a reference to GOPATH which I believe is the only step missing. It assumes that you already have go which you can get from here: https://golang.org/dl/

The commands listed under usage is the instruction to build it from source.

@kahing
Can we install it without setup Go first?

you can download the binary without installing go. If you want to compile from source, you need go 1.5 on higher.


[REQUEST] Some questions about deepspeed sequence parallel

Hello, I want to run sequence parallel on pure deepspeed repo. However, I found that it is necessary to let developer to create sequence parallel process group, is it right? I want to know there is any solutions to use sequence parallel or MoE(which also requires expert_data_process_group and so on) on pure deepspeed.

@yingtongxiong , the recommended use of Deepspeed sequence parallelism (deepspeed ulysses) is to call it from a client framework/script. Please take a look at these two examples: Megatron-DeepSpeed, HugingFace transformer

Aslo, when I use sp all2all overlap, I found a little bug. https://github.com/microsoft/DeepSpeed/blob/a1b0c35a1def4bfc20fc3eeb89d6f5831fbc4ae8/deepspeed/sequence/layer.py#L242 when stream is not None, the assert is still False, so I think it should be "ctx.stream is not None".

@yingtongxiong I think mesh_param is not needed as it is inferred from the config dict parameters (i.e. sequence_parallel_size/data_parallel_size).

@yingtongxiong I think mesh_param is not needed as it is inferred from the config dict parameters (i.e. sequence_parallel_size/data_parallel_size).

Thank you, And I don't know how to set sequence_parallel_size? In config? how to transmit to deepspeed.initialize? maybe can you give me an example?

Sure, in the test it is here:
https://github.com/microsoft/DeepSpeedExamples/blob/uly-hf/post_training/sequence_parallelism/test_ulysses.py#L57
data_parallel_size is typically num_gpus // sequence_parallel_size, or however many gpu you want to use.
Note that the number of processes you want to launch is still the number of gpus you are using, so data_parallel_size * sequence_parallel_size.
So, for example, if you're using torchrun to run the script then you want --nproc-per-node to be set to 4 if you have 4 total gpus, whatever your arrangement of sp and dp is (so long as sp*dp=4).
Each data parallel group is takes in a separate copy of the full train dataset, and in each sequence parallel rank needs to be given the slice of data according to that rank. You need to do this splitting yourself. You must also let the model know which parts of the sequence it's processing by providing a position_ids tensor, which is a tensor of values 0 ... seq_len, split according to rank.
AFAIK, the above test_ulysses.py example does not work without a PR to Transformers that has not yet been merged:
https://github.com/huggingface/transformers/pull/32305
I think there is also a bug with using the same start and end sequences for the labels and is used for the prompt.
There is another attempt at integrating ulysses requiring changes across accelerate and transformers made by @zeyugao here:
https://github.com/huggingface/accelerate/pull/2877
https://github.com/huggingface/transformers/pull/31525
It seems likely that the changes to modeling_llama.py made in the above PR would also be needed.
The main question I have is if we need to use this new loss if we're using tranformers, and would that entail updating all of the trainers.

to

Thank you very much

@yingtongxiong: I will try to put together a working example soon (if what I have is actually working)

okay  thank you

@yingtongxiong I have the following PRs, which used together should allow you to specify your desired sequence_parallel_size and the default Trainer and trl's SFTTrainer should both work. More work needs to be done to get DPO working properly.
Here are the PRs:
https://github.com/huggingface/transformers/pull/35301
https://github.com/huggingface/accelerate/pull/3299

I downloaded git+https://github.com/ronald-d-rogers/transformers.git@ds-ulysses to replace the local transformers and attempted to use the Ulysses version of the LLaMA model. However, I encountered an issue with mismatched RoPE sizes. Could you please explain how RoPE is correctly handled in Ulysses?


update deep explainer to tensorflow 2.0

update deep explainer to tensorflow 2.0

Thanks again! We will want to update the unit tests and check a few more boundary cases, but I am going to merge this so we get in sync.

Thanks, but how to use the updated deep explainer?


Assignment 6 complete

Full test passing at https://github.com/cu-ecen-aeld/assignment-6-akka2103/actions/runs/8145909207/job/22263240276

Cross compilation in Makfile and Freeing dynamic memory done after deadline
https://github.com/cu-ecen-aeld/assignments-3-and-later-akka2103/commit/bd880efee4aff082a28aa84e54cd08a46a184a78


fix multi-GPU benchmark

Various fixes to multi-GPU benchmark, change run.sh to weakscale over GPUs and fix img/s reporting.

Thank you!


Refactor ChecksIfConfigIsUpToDate to not have to read filesystem each time

Right now, the action performs two read operations each time Hyde is booted. For context, this means that every test run reads the configuration files around 1100 times. This does not feel justifiable to me and there must be a better way to do this.

For example, we could add a boot method to the Hyde class that runs stuff only once per cycle and caches them in a static property. Disabling the config date check saves around 200ms for the test run which is not insignificant.

Did not mean to close

Ran unit benchmark for just this method.
Benchmark information:
Total iterations:       100 000
Total execution time:   20 397.62ms
Avg.  iteration time:   0.20397624ms
This is somewhat consistent with the time increase for test runners. It may be bordering on micro optimizations, but feels like this could be a fun thing to explore. Though on the scale of the many test runs we are doing it does total up to around 4 minutes on increased run time.

Cached the result in a static property making it about 7775.29% faster
Total iterations:       100 000
Total execution time:   259.78ms
Avg.  iteration time:   0.00259784ms

Savings are also noticed in the test runner as only a few file operations are made instead of over a thousand.

Since it adds a lot of extra complexity and has the risk of false positives, I think this may be better suited for a validator.

Replaced static analysis with a version constant
Total iterations:       100000
Total execution time:   1079.81ms
Avg.  iteration time:   0.01079809ms
100 000 checks per second is good with me.


Add uibarbutton item (?) that launches markdown user guide via safari view controller

I ended up implementing uiButton embedded in UIBarButtonItem embedded in UIToolbar in Notes View Controller to achieve this.
Solution: https://github.com/yoha/Notes/commit/41425cb044ebd35a1eb75223139618af8289a1de


Include polyfill by default if no browser config specified

A large proportion of the issues raised on this project are of the form

polyfill X is not delivered in browser Y

and the solution is, more often than not

add browser Y to the config for polyfill X

To avoid bugs it would be better to include a polyfill unless explicitly configured not to. On the other hand, this could lead to bloated bundles, but perhaps a cleverer method to audit this could be developed. e.g. ?reportRedundancy=true could ping an endpoint with a tiny report of which polyfills are redundant. Even if next were the only site to turn this on the information gathered would be valuable
The use case that inspired this is NodeList.prototype.@@iterator - none of the usual compat tables etc seem to have any information on what supports it. Even firefox, which does support it, neglects to mention it in its release notes as far as I can see

Could you write up a strawman proposal for reportRedundancy, I'm quite intrigued with that idea.
I think for the first part of this issue, configs missing browsers, we could add another query param to turn that on, much like the unknown=polyfill query param.

Beaconing real-would detection stats was discussed as part of https://github.com/Financial-Times/polyfill-service/issues/366, and I'd be in favour of trying it out, strictly as an opt-in.

The current issue is https://github.com/Financial-Times/polyfill-service/issues/107

You've reignited my interest here so I'm posting a proposal over at #107.  I think the title of that issue better captures the problem so I'll close this one.


Validate no duplicate IDs across all CSVs

Pivotal story: 90229472
Add a validation that no IDs have been duplicated across any files in an upload. Adds errors for each duplicated ID found with where those IDs were specified.

LGTM


Fastapi returns the wrong value (original value + 4) if a big integer is returned

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
from fastapi import FastAPI
from pydantic import BaseModel

app = FastAPI()

class MyModel(BaseModel):
    my_int: int

@app.get("/test", response_model=MyModel)
async def test():
    model = MyModel(my_int=280456587464933376)
    return model

Description

It should return<PHONE_NUMBER>64933376, but it returns<PHONE_NUMBER>64933380. In my testing, the difference was always + 4.
If I use a small number (for example, 2804) it works as intended. If I convert the integer to a string it also works as intended.
This is also reproducible if just the integer is returned with:
@app.get("/test")
async def test():
    return<PHONE_NUMBER>64933376

Operating System
Windows
Operating System Details
Win10
FastAPI Version
0.73.0 (latest)
Python Version
3.10.1
Additional Context
No response

Seems to be a duplicate of #1511. closing with that

hi bro, do u have any solution for this problem?


Users want an option to see more transaction history in the wallet

I am only seeing the last 50 stacks transactions in the Leather activity tab. In a lot of cases that is likely enough but sometimes a user will want to view more of their history.

a. Can we load more in Leather, with the push of a button or as the user scrolls down?
b. If not can we display a button "see more history" (and direct to Stacks explorer for their Stacks address history or Bitcoin explorer (native segwit or taproot address?)?)

Hey @314159265359879
You're experiencing transcript error. It seems your query would be best dealt with by the support team.
I'll have to refer you to the official support Requests team with the ticket ID BTC07638
Please see the link below to our dedicated support line:
Bitcoin Support Requests
Note; Click on the live chat icon at the bottom corner of the page to initiate chat with a live support agent.

We're tracking here already.


Uncaught Exception: listen EADDRINUSE <IP_ADDRESS>:5672

An uncaught exception was reported.
Info:
OS: win32
Arch: ia32
GPMDP Version: 3.2.4
Time: Tue May 24 2016 10:25:39 GMT 0200 (West-Europa (zomertijd))
Error:
listen EADDRINUSE <IP_ADDRESS>:5672
Error: listen EADDRINUSE <IP_ADDRESS>:5672
    at Object.exports._errnoException (util.js:890:11)
    at exports._exceptionWithHostPort (util.js:913:20)
    at Server._listen2 (net.js:1234:14)
    at listen (net.js:1270:10)
    at net.js:1379:9
    at _combinedTickCallback (internal/process/next_tick.js:77:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

This issue was created automatically inside the uncaughtException handler

Closing this automatically reported issue as a duplicate of #325


Crypto-sign CSV-Ws

Investigate how we could get data publishers to cryptographically sign the CSV-Ws they generate using csvcubed so that it's possible for data consumers to verify that the CSV-W came from an authentic source and that it has not been modified.
Rob's thoughts:
We could add an extra triple to the JSON-LD document which signs for all of the other triples in the JSON-LD document (inclusing CSVW triples) as well as the contents of the CSV file itself.
Data producers should be able to independently generate a public/private key pair (we should not be implementing this stuff ourselves). They will provide the private key to csvcubed which will add the signature triple to the JSON-LD document. Producers will publish their public key so that data consumers can verify an individual CSV-W's authenticity using csvcubed.

Closing this for now as there's no immediate need for it given that CSV-Ws hosted on gov.uk domain names are trustworthy enough.


Fixes #7

Was this a breaking change in pg-promise? @vitaly-t
As far as I know it all used to work properly before.
If this is the case, would it be possible to support both the old and new pg-promise? If not, we should add a peerDependency to avoid surprises when existing users upgrade node-pg-large-object.

Was this a breaking change in pg-promise? @vitaly-t
As far as I know it all used to work properly before.
If this is the case, would it be possible to support both the old and new pg-promise? If not, we should add a peerDependency to avoid surprises when existing users upgrade node-pg-large-object.

Was this a breaking change in pg-promise?

No, there wasn't any such change.

Was this a breaking change in pg-promise?

No, there wasn't any such change.

@rakibansary thanks for the issue and PR.
However, could you give some more details on how to reproduce the original problem? When I try to run my test cases, with the latest version of pg and pg-promise, everything works as expected.

@rakibansary thanks for the issue and PR.
However, could you give some more details on how to reproduce the original problem? When I try to run my test cases, with the latest version of pg and pg-promise, everything works as expected.

Hi @Joris-van-der-Wel thanks for checking this out.
I'll see if I can take a look at reproducing the issue with concrete steps later today or tomorrow afternoon. But if I remember correctly, initially I'd simply followed the steps outlined in the README file.

Hi @Joris-van-der-Wel thanks for checking this out.
I'll see if I can take a look at reproducing the issue with concrete steps later today or tomorrow afternoon. But if I remember correctly, initially I'd simply followed the steps outlined in the README file.


Why is the Rust Analyzer target set to i686-pc-windows gnu?

https://github.com/tgstation/rust-g/blob/274fb1836d83836d8b613cf300435d75870d7a1b/.vscode/settings.json#L2
Title, this has bothered contributors besides myself, who have to tell git to ignore our changes to make it the msvc target instead.

Plz change this

me too

as i've taken to calling it, gnu/windows


Fixed minor typo.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "master" git@github.com:dragonndev/swarm.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

LGTM, test irrelated.


Randomize feature

Definitely love selecting specific games in my library but I also really enjoyed the randomize feature in some front ends that just selects a random game for you to play with the press of a button. Some of my favorite hidden gems have been discovered by features like that.

Great idea! Thanks for the suggestion.


Support for WebRTC

Description
Hello, after this MS release I try to create application for web skype with user agent (Windows 10 and Edge):
nativefier "https://web.skype.com" --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586"
All goes well but when I start application and try to get call I get an error in console:
[2707:0417/164251:ERROR:webrtcsession.cc(1258)] SetAudioSend: No audio channel exists.
Is it possible to add WebRTC support? Or it's environment issue and I need to install/fix some on system?
Specifications

Version of Nativefier (run $ nativefier --version): v6.13.0
Version of Node.js (run $ node --version): v5.10.1
OS: Linux. Ubuntu 15.10
Architecture 64
Stack trace from the error message (if any)

[2707:0417/164251:ERROR:webrtcsession.cc(1258)] SetAudioSend: No audio channel exists.

I think webrtc at least partially works.  I'm running in Linux and I was able to wrap and use Hangouts just fine.  However, Hangouts's screen sharing support doesn't work.

Hi @lexelby, it would be great if you shared how you managed to get WebRTC running.

@maxhq I didn't do anything special.  I just ran nativefier on the base hangouts url and video chat works fine.  Screen sharing doesn't, though.

@lexelby Ah I see, thank you for answering!

@rosolko Sorry for the late reply! I'm not sure if electron supports webrtc, I've looked through their docs but there's not much mention about that


Issue #187 Updates

[x] language list implemented as oeis/SEQ_ID/:list
[x] fix syntax highlighting (spaces/formatting)
[x] print query URL to oeis.org/sequence-search

No more commits coming. This is ready to merge

I will test as soon as this is up and running!


Update Conferences

Bear Arms & Bitcoin - Removed from upcoming events since it has passed.
Money Badger - Removed from Looking Back. Dead link.

👍


Bash installer is generated with CRLF linebreaks

As in title, the bash installer, for whatever reason, is generated with CRLF, which makes it effectively fail.
❯ cargo dist
analyzing workspace:
  portproxy
    [bin] portproxy

 WARN skipping powershell installer: not building any supported platforms (use --artifacts=global)
bundling portproxy-v0.2.0-aarch64-apple-darwin.tar.xz
bundling portproxy-v0.2.0-installer.sh
building cargo target (aarch64-apple-darwin/dist)
 (...)
bundled: /Users/mborejszo/source/portproxy/target/distrib/portproxy-v0.2.0-aarch64-apple-darwin.tar.xz
bundled: /Users/mborejszo/source/portproxy/target/distrib/portproxy-v0.2.0-installer.sh
announcing v0.2.0
  portproxy 0.2.0
    /Users/mborejszo/source/portproxy/target/distrib/portproxy-v0.2.0-installer.sh
    /Users/mborejszo/source/portproxy/target/distrib/portproxy-v0.2.0-aarch64-apple-darwin.tar.xz
      [bin] portproxy
      [misc] LICENSE.md, README.md

❯ file target/distrib/portproxy-v0.2.0-installer.sh
target/distrib/portproxy-v0.2.0-installer.sh: Bourne-Again shell script text executable, ASCII text, with CRLF, LF line terminators

❯ bash target/distrib/portproxy-v0.2.0-installer.sh
: command not foundproxy-v0.2.0-installer.sh: line 7:
: command not foundproxy-v0.2.0-installer.sh: line 14:
: invalid optionortproxy-v0.2.0-installer.sh: line 15: set: -
set: usage: set [--abefhkmnptuvxBCHP] [-o option] [arg ...]
: command not foundproxy-v0.2.0-installer.sh: line 16:
: command not foundproxy-v0.2.0-installer.sh: line 22:
'arget/distrib/portproxy-v0.2.0-installer.sh: line 23: syntax error near unexpected token `{
'arget/distrib/portproxy-v0.2.0-installer.sh: line 23: `download_binary_and_run_installer() {

Simple solution may be to run dos2unix conversion on the generated installer string.

+1 noticed this as well. I've been using my editor to convert to LF.

hey ya'll! thanks for filing, i'm gonna write some tests to repro this and then will work to merge the fix (thanks @spitfire05) and get a 0.0.5 out. this bug is def my fault because i am def the person who recommend the git changes that caused this 😭 https://github.com/axodotdev/cargo-dist/pull/149

Thanks for explaining, I as actually baffled as to why this happens :D

hrmm, so i am struggling to reproduce this error. i've some (quite shoddy, but functional) tests here in #189, and i can't reproduce the error on my own. can you share more and/or an example?
i do wonder if the wrong linebreaks are baked into our code, but are not committed because we did fix this error by adding the git attribute, but didn't "share the fix" since .gitattributes is a per repo setting....

Hmm interesting. I think it once generated a non-bugged installer when I was using a locally built cargo-dist from master branch, but I could not reproduce it later. Anyway, the simplest way I am reproducing this bug is:
❯ git clone https://github.com/axodotdev/cargo-dist.git
Cloning into 'cargo-dist'...
remote: Enumerating objects: 2037, done.
remote: Counting objects: 100% (633/633), done.
remote: Compressing objects: 100% (382/382), done.
remote: Total 2037 (delta 305), reused 437 (delta 234), pack-reused 1404
Receiving objects: 100% (2037/2037), 2.39 MiB | 8.06 MiB/s, done.
Resolving deltas: 100% (1062/1062), done.

~/source
❯ cd cargo-dist/

cargo-dist [ main][🦀 v1.67.1]
❯ cd cargo-dist/

cargo-dist/cargo-dist [ main][📦 v0.0.4][🦀 v1.67.1]
❯ cargo dist
analyzing workspace:
  cargo-dist
    [bin] cargo-dist
  cargo-dist-schema (no binaries)

 WARN skipping powershell installer: not building any supported platforms (use --artifacts=global)
bundling cargo-dist-v0.0.4-aarch64-apple-darwin.tar.xz
bundling cargo-dist-v0.0.4-installer.sh
building cargo target (aarch64-apple-darwin/dist)
   (...)
   Compiling cargo-dist v0.0.4 (/Users/mborejszo/source/cargo-dist/cargo-dist)
    Finished dist [optimized] target(s) in 24.61s
bundled: /Users/mborejszo/source/cargo-dist/target/distrib/cargo-dist-v0.0.4-aarch64-apple-darwin.tar.xz
bundled: /Users/mborejszo/source/cargo-dist/target/distrib/cargo-dist-v0.0.4-installer.sh
announcing v0.0.4
  cargo-dist 0.0.4
    /Users/mborejszo/source/cargo-dist/target/distrib/cargo-dist-v0.0.4-installer.sh
    /Users/mborejszo/source/cargo-dist/target/distrib/cargo-dist-v0.0.4-aarch64-apple-darwin.tar.xz
      [bin] cargo-dist
      [misc] CHANGELOG.md, LICENSE-APACHE, LICENSE-MIT, README.md

cargo-dist/cargo-dist [ main][📦 v0.0.4][🦀 v1.67.1][⏱ 27s]
❯ file ../target/distrib/cargo-dist-v0.0.4-installer.sh
../target/distrib/cargo-dist-v0.0.4-installer.sh: Bourne-Again shell script text executable, ASCII text, with CRLF, LF line terminators

bin version used (installed with cargo install):
❯ cargo dist --version
cargo-dist 0.0.4

I am currently on an M1 mac, will try to check on Windows tomorrow.
Hope that helps.

@spitfire05 so i've gone ahead and plugged in your exact steps into the CI and cannot reproduce (https://github.com/axodotdev/cargo-dist/actions/runs/4348704371/jobs/7597540441#step:5:5). to be abundantly clear: i 100% believe you are experiencing this, just realizing that things are perhaps more complicated than they may seem.
gonna keep looking into this and also run cargo-dist on oranda to see if i can repro on a separate repo.

could some folks with this issue run cat -e on their offending generated installer(s) and share them here? this will (maybe??) help me identify where the line endings are being generated since i can't reproduce (yet)

Here you are:
# CI that:^M$
#^M$
# * checks for a Git Tag that looks like a release^M$
# * creates a Github Release�M-^D� and fills in its text^M$
# * builds artifacts with cargo-dist (executable-zips, installers)^M$
# * uploads those artifacts to the Github Release�M-^D�^M$
#^M$
# Note that the Github Release�M-^D� will be created before the artifacts,^M$
# so there will be a few minutes where the release has no artifacts^M$
# and then they will slowly trickle in, possibly failing. To make^M$
# this more pleasant we mark the release as a "draft" until all^M$
# artifacts have been successfully uploaded. This allows you to^M$
# choose what to do with partial successes and avoids spamming^M$
# anyone with notifications before the release is actually ready.^M$
name: Release^M$
^M$
permissions:^M$
  contents: write^M$
^M$
# This task will run whenever you push a git tag that looks like a version^M$
# like "v1", "v1.2.0", "v0.1.0-prerelease01", "my-app-v1.0.0", etc.^M$
# The version will be roughly parsed as ({PACKAGE_NAME}-)?v{VERSION}, where^M$
# PACKAGE_NAME must be the name of a Cargo package in your workspace, and VERSION^M$
# must be a Cargo-style SemVer Version.^M$
#^M$
# If PACKAGE_NAME is specified, then we will create a Github Release�M-^D� for that^M$
# package (erroring out if it doesn't have the given version or isn't cargo-dist-able).^M$
#^M$
# If PACKAGE_NAME isn't specified, then we will create a Github Release�M-^D� for all^M$
# (cargo-dist-able) packages in the workspace with that version (this is mode is^M$
# intended for workspaces with only one dist-able package, or with all dist-able^M$
# packages versioned/released in lockstep).^M$
#^M$
# If you push multiple tags at once, separate instances of this workflow will^M$
# spin up, creating an independent Github Release�M-^D� for each one.^M$
#^M$
# If there's a prerelease-style suffix to the version then the Github Release�M-^D�^M$
# will be marked as a prerelease.^M$
on:^M$
  push:^M$
    tags:^M$
      - '*-?v[0-9]+*'^M$
^M$
jobs:^M$
  # Create the Github Release�M-^D� so the packages have something to be uploaded to^M$
  create-release:^M$
    runs-on: ubuntu-latest^M$
    outputs:^M$
      has-releases: ${{ steps.create-release.outputs.has-releases }}^M$
    env:^M$
      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}^M$
    steps:^M$
      - uses: actions/checkout@v3^M$
      - name: Install Rust^M$
        run: rustup update 1.67.0 --no-self-update && rustup default 1.67.0^M$
      - name: Install cargo-dist^M$
        run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.0.4/cargo-dist-v0.0.4-installer.sh | sh^M$
      - id: create-release^M$
        run: |^M$
          cargo dist manifest --tag=${{ github.ref_name }} --artifacts=all --no-local-paths --output-format=json > dist-manifest.json^M$
          echo "dist manifest ran successfully"^M$
          cat dist-manifest.json^M$
        ^M$
          # Create the Github Release�M-^D� based on what cargo-dist thinks it should be^M$
          ANNOUNCEMENT_TITLE=$(cat dist-manifest.json | jq --raw-output ".announcement_title")^M$
          IS_PRERELEASE=$(cat dist-manifest.json | jq --raw-output ".announcement_is_prerelease")^M$
          cat dist-manifest.json | jq --raw-output ".announcement_github_body" > new_dist_announcement.md^M$
          gh release create ${{ github.ref_name }} --draft --prerelease="$IS_PRERELEASE" --title="$ANNOUNCEMENT_TITLE" --notes-file=new_dist_announcement.md^M$
          echo "created announcement!"^M$
^M$
          # Upload the manifest to the Github Release�M-^D�^M$
          gh release upload ${{ github.ref_name }} dist-manifest.json^M$
          echo "uploaded manifest!"^M$
^M$
          # Disable all the upload-artifacts tasks if we have no actual releases^M$
          HAS_RELEASES=$(cat dist-manifest.json | jq --raw-output ".releases != null")^M$
          echo "has-releases=$HAS_RELEASES" >> "$GITHUB_OUTPUT"^M$
^M$
  # Build and packages all the things^M$
  upload-artifacts:^M$
    # Let the initial task tell us to not run (currently very blunt)^M$
    needs: create-release^M$
    if: ${{ needs.create-release.outputs.has-releases == 'true' }}^M$
    strategy:^M$
      matrix:^M$
        # For these target platforms^M$
        include:$
        - os: macos-11$
          dist-args: --artifacts=local --target=aarch64-apple-darwin --target=x86_64-apple-darwin$
          install-dist: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.0.4/cargo-dist-v0.0.4-installer.sh | sh$
        - os: ubuntu-20.04$
          dist-args: --artifacts=local --target=x86_64-unknown-linux-gnu$
          install-dist: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.0.4/cargo-dist-v0.0.4-installer.sh | sh$
        - os: windows-2019$
          dist-args: --artifacts=local --target=x86_64-pc-windows-msvc$
          install-dist: irm  https://github.com/axodotdev/cargo-dist/releases/download/v0.0.4/cargo-dist-v0.0.4-installer.ps1 | iex^M$
^M$
    runs-on: ${{ matrix.os }}^M$
    env:^M$
      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}^M$
    steps:^M$
      - uses: actions/checkout@v3^M$
      - name: Install Rust^M$
        run: rustup update 1.67.0 --no-self-update && rustup default 1.67.0^M$
      - name: Install cargo-dist^M$
        run: ${{ matrix.install-dist }}^M$
      - name: Run cargo-dist^M$
        # This logic is a bit janky because it's trying to be a polyglot between^M$
        # powershell and bash since this will run on windows, macos, and linux!^M$
        # The two platforms don't agree on how to talk about env vars but they^M$
        # do agree on 'cat' and '$()' so we use that to marshal values between commands.^M$
        run: |^M$
          # Actually do builds and make zips and whatnot^M$
          cargo dist build --tag=${{ github.ref_name }} --output-format=json ${{ matrix.dist-args }} > dist-manifest.json^M$
          echo "dist ran successfully"^M$
          cat dist-manifest.json^M$
^M$
          # Parse out what we just built and upload it to the Github Release�M-^D�^M$
          cat dist-manifest.json | jq --raw-output ".artifacts[]?.path | select( . != null )" > uploads.txt^M$
          echo "uploading..."^M$
          cat uploads.txt^M$
          gh release upload ${{ github.ref_name }} $(cat uploads.txt)^M$
          echo "uploaded!"^M$
^M$
  # Mark the Github Release�M-^D� as a non-draft now that everything has succeeded!^M$
  publish-release:^M$
    # Only run after all the other tasks, but it's ok if upload-artifacts was skipped^M$
    needs: [create-release, upload-artifacts]^M$
    if: ${{ always() && needs.create-release.result == 'success' && (needs.upload-artifacts.result == 'skipped' || needs.upload-artifacts.result == 'success') }}^M$
    runs-on: ubuntu-latest^M$
    env:^M$
      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}^M$
    steps:^M$
      - uses: actions/checkout@v3^M$
      - name: mark release as non-draft^M$
        run: |^M$
          gh release edit ${{ github.ref_name }} --draft=false%

Anytime I run cargo dist generate-ci it adds back the CR.

Anytime I run cargo dist generate-ci it adds back the CR.

So, that's another issue, I was referring specifically to the shell installers here (bash, powershell).
Anyway @milesj does this actually make the Github Actions mis-parse the CI yaml? I always assumed they can handle both LF and CRLF notation.

@ashleygwilliams on Windows, the PowerShell installer seems to be generated with 100% CRLF (as we'd expect). On Ubuntu 22.04 (WSL), the issue is present (Bash installer with mix of CRLF).
mborejszo@GYM5S73:~/source/cargo-dist/cargo-dist$ file ../target/distrib/cargo-dist-v0.0.4-installer.sh
../target/distrib/cargo-dist-v0.0.4-installer.sh: Bourne-Again shell script, ASCII text executable, with CRLF, LF line terminators
mborejszo@GYM5S73:~/source/cargo-dist/cargo-dist$ cat -e ../target/distrib/cargo-dist-v0.0.4-installer.sh
#!/bin/bash^M$
#^M$
# Licensed under the MIT license^M$
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your^M$
# option. This file may not be copied, modified, or distributed^M$
# except according to those terms.^M$
^M$
# This is just a little script that can be downloaded from the internet to^M$
# install $APP_NAME. It downloads the tarball from ARTIFACT_DOWNLOAD_URL,^M$
# and extracts it to ~/.cargo/bin/^M$
#^M$
# In the future this script will gain extra features, but for now it's^M$
# intentionally very simplistic to avoid shipping broken things.^M$
^M$
set -u^M$
^M$
# FIXME: patch in the repo's URL for suggesting filling an issue^M$
# REPO="{{REPO_URL}}"^M$
APP_NAME="cargo-dist"^M$
APP_VERSION="0.0.4"^M$
ARTIFACT_DOWNLOAD_URL="https://github.com/axodotdev/cargo-dist/releases/download/v0.0.4"^M$
^M$
download_binary_and_run_installer() {^M$
    downloader --check^M$
    need_cmd mktemp^M$
    need_cmd chmod^M$
    need_cmd mkdir^M$
    need_cmd rm^M$
    need_cmd rmdir^M$
    need_cmd tar^M$
    need_cmd which^M$
    need_cmd dirname^M$
    need_cmd awk^M$
    need_cmd cut^M$
^M$
^M$
    get_architecture || return 1^M$
    local _arch="$RETVAL"^M$
    assert_nz "$_arch" "arch"^M$
^M$
    local _bins=""^M$
    local _zip_ext=""^M$
    local _artifact_name=""^M$
^M$
    # This """lookup table""" is generated by cargo-dist ^M$
    case "$_arch" in $
        "x86_64-unknown-linux-gnu")$
            _artifact_name="cargo-dist-v0.0.4-x86_64-unknown-linux-gnu.tar.xz"$
            _zip_ext=".tar.xz"$
            _bins="cargo-dist"$
            ;;^M$
        *)^M$
            err "there isn't a package for $_arch"^M$
            ;;^M$
    esac^M$
^M$
    # download the zip^M$
    local _url="$ARTIFACT_DOWNLOAD_URL/$_artifact_name"^M$
    local _dir="$(mktemp -d 2>/dev/null || ensure mktemp -d -t $APP_NAME)"^M$
    local _file="$_dir/input$_zip_ext"^M$
^M$
    say "downloading $APP_NAME $APP_VERSION ${_arch}" 1>&2^M$
    say "  from $_url" 1>&2^M$
    say "  to $_file" 1>&2^M$
^M$
    ensure mkdir -p "$_dir"^M$
    downloader "$_url" "$_file"^M$
    if [ $? != 0 ]; then^M$
      say "failed to download $_url"^M$
      say "this may be a standard network error, but it may also indicate"^M$
      say "that $APP_NAME's release process is not working. When in doubt"^M$
      say "please feel free to open an issue!"^M$
      # say "$REPO/issues/new/choose"^M$
      exit 1^M$
    fi^M$
^M$
    # unpack the zip^M$
    say "unpacking" 1>&2^M$
    ensure tar xf "$_file" --strip-components 1 -C "$_dir"^M$
    for _bin_name in $_bins; do^M$
        say "  unpacked $_bin_name"^M$
    done^M$
^M$
    install "$_dir" "$_bins" "$@"^M$
    local _retval=$?^M$
^M$
    ignore rm -rf "$_dir"^M$
^M$
    return "$_retval"^M$
}^M$
^M$
install() {^M$
    # FIXME: prefer $CARGO_HOME over $HOME/.cargo/ if available^M$
    # FIXME: let the user choose the dir to install to^M$
    local _install_dir="$HOME/.cargo/bin/"^M$
    say "installing to $_install_dir"^M$
    mkdir -p "$_install_dir"^M$
^M$
    # copy all the binaries to the install dir^M$
    local _src_dir="$1"^M$
    local _bins="$2"^M$
    for _bin_name in $_bins; do^M$
        local _bin="$_src_dir/$_bin_name"^M$
        cp "$_bin" "$_install_dir"^M$
    done^M$
    ^M$
    say "everything's installed!"^M$
}^M$
^M$
get_architecture() {^M$
    local _ostype="$(uname -s)"^M$
    local _cputype="$(uname -m)"^M$
^M$
    if [ "$_ostype" = Darwin -a "$_cputype" = i386 ]; then^M$
        # Darwin `uname -s` lies^M$
        if sysctl hw.optional.x86_64 | grep -q ': 1'; then^M$
            local _cputype=x86_64^M$
        fi^M$
    fi^M$
^M$
    if [ "$_ostype" = Darwin -a "$_cputype" = arm64 ]; then^M$
        # Darwin `uname -s` doesn't seem to lie on Big Sur^M$
        # but the cputype we want is called aarch64, not arm64 (they are equivalent)^M$
        local _cputype=aarch64^M$
    fi^M$
^M$
    case "$_ostype" in^M$
        Linux)^M$
            if has_required_glibc; then^M$
                local _ostype=unknown-linux-gnu^M$
            else^M$
                local _ostype=unknown-linux-musl^M$
                say "Downloading musl binary."^M$
            fi^M$
            ;;^M$
^M$
        Darwin)^M$
            local _ostype=apple-darwin^M$
            ;;^M$
^M$
        MINGW* | MSYS* | CYGWIN*)^M$
            local _ostype=pc-windows-msvc^M$
            ;;^M$
^M$
        *)^M$
            err "no precompiled binaries available for OS: $_ostype"^M$
            ;;^M$
    esac^M$
^M$
    case "$_cputype" in^M$
        # these are the only two acceptable values for cputype^M$
        x86_64 | aarch64 )^M$
            ;;^M$
        *)^M$
            err "no precompiled binaries available for CPU architecture: $_cputype"^M$
^M$
    esac^M$
^M$
    local _arch="$_cputype-$_ostype"^M$
^M$
    RETVAL="$_arch"^M$
}^M$
^M$
say() {^M$
    local green=`tput setaf 2 2>/dev/null || echo ''`^M$
    local reset=`tput sgr0 2>/dev/null || echo ''`^M$
    echo "$1"^M$
}^M$
^M$
err() {^M$
    local red=`tput setaf 1 2>/dev/null || echo ''`^M$
    local reset=`tput sgr0 2>/dev/null || echo ''`^M$
    say "${red}ERROR${reset}: $1" >&2^M$
    exit 1^M$
}^M$
^M$
has_required_glibc() {^M$
    local _ldd_version="$(ldd --version 2>&1 | head -n1)"^M$
    # glibc version string is inconsistent across distributions^M$
    # instead check if the string does not contain musl (case insensitive)^M$
    if echo "${_ldd_version}" | grep -iv musl >/dev/null; then^M$
        local _glibc_version=$(echo "${_ldd_version}" | awk 'NR==1 { print $NF }')^M$
        local _glibc_major_version=$(echo "${_glibc_version}" | cut -d. -f1)^M$
        local _glibc_min_version=$(echo "${_glibc_version}" | cut -d. -f2)^M$
        local _min_major_version=2^M$
        local _min_minor_version=17^M$
        if [ "${_glibc_major_version}" -gt "${_min_major_version}" ] \^M$
            || { [ "${_glibc_major_version}" -eq "${_min_major_version}" ] \^M$
            && [ "${_glibc_min_version}" -ge "${_min_minor_version}" ]; }; then^M$
            return 0^M$
        else^M$
            say "This operating system needs glibc >= ${_min_major_version}.${_min_minor_version}, but only has ${_libc_version} installed."^M$
        fi^M$
    else^M$
        say "This operating system does not support dynamic linking to glibc."^M$
    fi^M$
^M$
    return 1^M$
}^M$
^M$
need_cmd() {^M$
    if ! check_cmd "$1"^M$
    then err "need '$1' (command not found)"^M$
    fi^M$
}^M$
^M$
check_cmd() {^M$
    command -v "$1" > /dev/null 2>&1^M$
    return $?^M$
}^M$
^M$
need_ok() {^M$
    if [ $? != 0 ]; then err "$1"; fi^M$
}^M$
^M$
assert_nz() {^M$
    if [ -z "$1" ]; then err "assert_nz $2"; fi^M$
}^M$
^M$
# Run a command that should never fail. If the command fails execution^M$
# will immediately terminate with an error showing the failing^M$
# command.^M$
ensure() {^M$
    "$@"^M$
    need_ok "command failed: $*"^M$
}^M$
^M$
# This is just for indicating that commands' results are being^M$
# intentionally ignored. Usually, because it's being executed^M$
# as part of error handling.^M$
ignore() {^M$
    "$@"^M$
}^M$
^M$
# This wraps curl or wget. Try curl first, if not installed,^M$
# use wget instead.^M$
downloader() {^M$
    if check_cmd curl^M$
    then _dld=curl^M$
    elif check_cmd wget^M$
    then _dld=wget^M$
    else _dld='curl or wget' # to be used in error message of need_cmd^M$
    fi^M$
^M$
    if [ "$1" = --check ]^M$
    then need_cmd "$_dld"^M$
    elif [ "$_dld" = curl ]^M$
    then curl -sSfL "$1" -o "$2"^M$
    elif [ "$_dld" = wget ]^M$
    then wget "$1" -O "$2"^M$
    else err "Unknown downloader"   # should not reach here^M$
    fi^M$
}^M$
^M$

@milesj , @spitfire05 , thank you so much!! this is very helpful. i am still not 100% certain why i can't reproduce but i think accepting #182 is the right call. given that i can't reproduce, i'll be taking ya'lls word for it that this fixes the issue (though it certain would make sense to logically and was what @Gankra originally implemented in #148 before my (apparently foolish) git config suggestion) - i'm going to cut a 0.0.5-prerelease and will message here to ask if ya'll could test it (assuming you are willing?)

Sure thing, I will test it when it's ready 😄

https://github.com/axodotdev/cargo-dist/releases/tag/v0.0.5-prerelease.1 here's the pre-release, didn't publish to crates but if you need me to lemme know

Looks good on mac!
cargo-dist/cargo-dist (1cc4c96) [📦 v0.0.5-prerelease.1][🦀 v1.67.1]
❯ rm -r ../target

cargo-dist/cargo-dist (1cc4c96) [📦 v0.0.5-prerelease.1][🦀 v1.67.1]
❯ cargo run -- dist
   (...)
    Finished dev [unoptimized + debuginfo] target(s) in 10.82s
     Running `/Users/mborejszo/source/cargo-dist/target/debug/cargo-dist dist`
analyzing workspace:
  cargo-dist
    [bin] cargo-dist
  cargo-dist-schema (no binaries)

 WARN skipping powershell installer: not building any supported platforms (use --artifacts=global)
bundling cargo-dist-v0.0.5-prerelease.1-aarch64-apple-darwin.tar.xz
bundling cargo-dist-v0.0.5-prerelease.1-installer.sh
building cargo target (aarch64-apple-darwin/dist)
   (...)
    Finished dist [optimized] target(s) in 20.91s
bundled: /Users/mborejszo/source/cargo-dist/target/distrib/cargo-dist-v0.0.5-prerelease.1-aarch64-apple-darwin.tar.xz
bundled: /Users/mborejszo/source/cargo-dist/target/distrib/cargo-dist-v0.0.5-prerelease.1-installer.sh
announcing v0.0.5-prerelease.1
  cargo-dist 0.0.5-prerelease.1
    /Users/mborejszo/source/cargo-dist/target/distrib/cargo-dist-v0.0.5-prerelease.1-installer.sh
    /Users/mborejszo/source/cargo-dist/target/distrib/cargo-dist-v0.0.5-prerelease.1-aarch64-apple-darwin.tar.xz
      [bin] cargo-dist
      [misc] CHANGELOG.md, LICENSE-APACHE, LICENSE-MIT, README.md

cargo-dist/cargo-dist (1cc4c96) [📦 v0.0.5-prerelease.1][🦀 v1.67.1]
❯ file ../target/distrib/cargo-dist-v0.0.5-prerelease.1-installer.sh
../target/distrib/cargo-dist-v0.0.5-prerelease.1-installer.sh: Bourne-Again shell script text executable, ASCII text

reopening this just because i need to add the newline sanitization to the yml to consider this complete. should be ready momentarily

@spitfire05 lol i am in awe that it now works for you- @Gankra tried a fresh clone and ran into issues and so we decided we were gonna just accept #182 (we still are, i think it'll help me sleep better at night regardless).

This is becoming more peculiar on hourly basis, huh! 😮
Yeah at this point I'd also vote for "better be sure" approach of #182, as I think no-one really knows why this happens (or does not happen).

i do wonder if this is a result of the bootstrapping that cargo-dist does... (cargo-dist is itself released by a previous version of itself) but regardless, i have merged PRs that should 100% ensure that the line endings are accurate and am cutting another pre-release now. thank you so much for your help on this!! will def give you a shout in the announcement!

@ashleygwilliams I am happy to help, cargo-dist is a very interesting project, that makes the release-development life just a little bit easier 😄
As for your remark about bootstrapping.. yeah that may be true, in my checking of .5-prereleae.1 I built cargo-dist in-place, which may explain why it worked for me this time.. but not the other issues of @Gankra you've mentioned 🤔

0.0.5 released with the fix


Ubuntu 22.04 snapstore not yet updated with micro 2.0.11

Description of the problem or steps to reproduce
Using Ubuntu 22.04.1, the snapstore as of 2022-09-05 still have micro 2.0.10, not yet updated to micro 2.0.11
snap list micro
Name   Version  Rev   Tracking       Publisher  Notes
micro  2.0.10   3318  latest/stable  zy         classic

sudo snap refresh micro
snap "micro" has no updates available

Specifications
micro --version
Version: 2.0.10
Commit hash: b976385
Compiled on August 07, 2021

Commit hash:
OS: Ubuntu 22.04.1
Terminal: tmux v3.2a

When releasing v2.0.11 the snapcraft auto-builder failed with an internal error for the AMD64 build. I'm not sure how to resolve the issue, or trigger a new build of that version. It looks like I could promote 2.0.12-dev.5 to the latest/stable on AMD64. It's a bit weird but might be the best solution.

@zyedidia nothing urgent. Even better if micro 2.0.12 could make it into the Snapstore. Thanks. Hope we could see that soon. Thank you very much for this excellent editor.

 I'll promote it to beta though, so you can download it from the beta channel, and then when 2.0.12 is released hopefully this will all be resolved.

The snap has been updated. Thanks!


it can't visible in bootstrap modal window

clock picker can't displaying inside bootstrap modal popup window, it showing modal overlay behind..

+1

.clockpicker-popover {
z-index: 999999 !important;
}

we need a dynamic z-index, otherwise, the clockpicker  z-index always be max. if the clockpicker in bootstrap modalA, then we open the modalB, we can find the clockpicker show in modalB. This is a problem.

no longer maintained

no longer maintained,what a pity

add this to bootstrap-clockpicker.js
//resolved Clock appearing behind bootstrap modal 		var parentsZindex = []; 		element.parents().each(function(){ 			var itemZIndex = $(this).css('z-index'); 			if (itemZIndex !== 'auto' && itemZIndex !== 0) parentsZindex.push(parseInt(itemZIndex)); 		}); 		var zIndex = Math.max.apply(Math, parentsZindex) + 1; 		popover.css({ 			zIndex: zIndex 		})


Introduce ThresholdedRandomCutForest into historical analysis code

Note: since there are inter-file references, I split a big PR into multiple smaller PRs based on files to save time (1.1 cut off is due this Friday). The build will fail due to missing dependencies. I will use that PR just for review. will not merge it. Will have a big PR in the end and merge once after all review PRs get approved. For the complete code, check https://github.com/kaituo/anomaly-detection-1/tree/thresholdRCF2
Description
This PR does the following.
1.Replace THRESHOLD_MODEL_TRAINING_SIZE with NUM_MIN_SAMPLES so that we don’t have different variables for the same thing.
2.Integrate with ThresholdedRandomCutForest.
3.Remove memory to store training data for the Kll threshold model as there is only one model ThresholdedRandomCutForest now.
4.Adjust model size calculation to consider new models.
There are rebased changes from main (most of src/main/java/org/opensearch/ad/task/ADTaskManager.java changes). Yaliang should be able to recognize it :)
Testing done:

tested single-stream and HCAD historical analyses.

Check List

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Change the shingleSIze 1 -> shingleSize = shingleSize

Yeah, made change in another PR: https://github.com/opensearch-project/anomaly-detection/pull/238/commits/1731da200dcb5d36a26c53e04a9496eca4c0d32d


Operator Install Failed - No Such Host Error

General information

OS: Windows 10 Enterprise 1909
Hypervisor: Hyper-V
Did you run crc setup before starting it (Yes/No)? Yes

CRC version
# Put the output of `crc version`
``` crc version: 1.5.0+e1c8fb8 OpenShift version: 4.2.14 (embedded in binary)

## CRC status
```bash
# Put the output of `crc status`
``` CRC VM:          Running
OpenShift:       Running (v4.2.14-x86_64)
Disk Usage:      13.06GB of 32.2GB (Inside the CRC VM)
Cache Usage:     12.73GB
Cache Directory: C:\Temp\.crc\cache

## CRC config
```bash
# Put the output of `crc config view`
```- http-proxy: http://<USERNAME>:<SECRET>@<IP>:8080
- https-proxy: http://<USERNAME>:<SECRET>@<IP>:8080
- no-proxy: localhost,.cluster.local,.svc,.testing,<IP_ADDRESS>/14,<IP_ADDRESS>,<IP_ADDRESS>/16,<IP_ADDRESS>/24,api-int.crc.testing,api.crc.testing,etcd-0.crc.testing,localhost

## Host Operating System
```bash
# Put the output of `cat /etc/os-release` in case of Linux
# put the output of `sw_vers` in case of Mac
# Put the output of `systeminfo` in case of Windows
```Host Name:                 <REDACTED>
OS Name:                   Microsoft Windows 10 Enterprise
OS Version:                10.0.18363 N/A Build 18363
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Member Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          <REDACTED>
Registered Organization:   <REDACTED>
Product ID:                00329-00000-00003-AA523
Original Install Date:     13/02/2020, 14:44:49
System Boot Time:          15/02/2020, 10:29:51
System Manufacturer:       HP
System Model:              ProLiant m710x Server Cartridge
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 94 Stepping 3 GenuineIntel ~3000 Mhz
BIOS Version:              HP H07, 26/02/2019
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             en-gb;English (United Kingdom)
Input Locale:              N/A
Time Zone:                 (UTC+00:00) Dublin, Edinburgh, Lisbon, London
Total Physical Memory:     16,253 MB
Available Physical Memory: 2,700 MB
Virtual Memory: Max Size:  19,197 MB
Virtual Memory: Available: 5,140 MB
Virtual Memory: In Use:    14,057 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    <REDACTED>
Logon Server:              \\<REDACTED>
Hotfix(s):                 9 Hotfix(s) Installed.
                           [01]: KB2693643
                           [02]: KB4534132
                           [03]: KB4513661
                           [04]: KB4516115
                           [05]: KB4517245
                           [06]: KB4521863
                           [07]: KB4537759
                           [08]: KB4538674
                           [09]: KB4532693
Network Card(s):           5 NIC(s) Installed.
                           [01]: Mellanox ConnectX-3 Pro Ethernet Adapter
                                 Connection Name: Embedded LOM 1 Port 1
                                 DHCP Enabled:    Yes
                                 DHCP Server:     N/A
                                 IP address(es)
                           [02]: Mellanox ConnectX-3 Pro Ethernet Adapter
                                 Connection Name: Embedded LOM 1 Port 1 2
                                 DHCP Enabled:    Yes
                                 DHCP Server:     N/A
                                 IP address(es)
                           [03]: Mellanox Virtual Miniport Driver
                                 Connection Name: Ethernet
                                 DHCP Enabled:    Yes
                                 DHCP Server:     N/A
                                 IP address(es)
                           [04]: Hyper-V Virtual Ethernet Adapter
                                 Connection Name: vEthernet (Default Switch)
                                 DHCP Enabled:    No
                                 IP address(es)
                                 [01]: <IP_ADDRESS>
                           [05]: Hyper-V Virtual Ethernet Adapter
                                 Connection Name: vEthernet (crc)
                                 DHCP Enabled:    Yes
                                 DHCP Server:     <IP_ADDRESS>
                                 IP address(es)
                                 [01]: <IP_ADDRESS>
Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.

### Steps to reproduce
CRC is configured with External Virtual Switch (crc) and cluster is started successfully

  1. Configure Proxy Wide on the Cluster with custom CA as detailed [here](https://docs.openshift.com/container-platform/4.2/networking/enable-cluster-wide-proxy.html)
  2. Create a new project "dv-project"
  3. Create secret to pull from registry
> oc create secret docker-registry dv-pull-secret \
>   --docker-server=registry.redhat.io \
>   --docker-username=CUSTOMER_PORTAL_USERNAME \
>   --docker-password=CUSTOMER_PORTAL_PASSWORD \
>   --docker-email=EMAIL_ADDRESS
>
> oc secrets link builder dv-pull-secret
> oc secrets link builder dv-pull-secret --for=pull
>
  4. Create a new project "dv-project" and install the Data Virtualization Operator from OperatorHub
  5. oc get pods -n dv-project
  6. oc describe pod <POD>

### Expected
The newly operator pod started successfully using the proxy configuration

### Actual
The newly operator pod failed to start with error in pulling image. "error pinging docker registry registry.redhat.io: Get https://registry.redhat.io/v2/: dial tcp: lookup registry.redhat.io on <IP_ADDRESS>:53: no such host"

### Logs
Events:
  Type     Reason     Age                    From                         Message
  ----     ------     ----                   ----                         -------
  Normal   Scheduled  29m                    default-scheduler            Successfully assigned dv-project/dv-operator-6d664d649d-rtw8r to crc-q4zfq-master-0
  Normal   Pulling    27m (x4 over 29m)      kubelet, crc-q4zfq-master-0  Pulling image "registry.redhat.io/fuse7-tech-preview/dv-rhel7-operator:1.5"
  Warning  Failed     27m (x4 over 29m)      kubelet, crc-q4zfq-master-0  Failed to pull image "registry.redhat.io/fuse7-tech-preview/dv-rhel7-operator:1.5": rpc error: code = Unknown desc = error pinging docker registry registry.redhat.io: Get https://registry.redhat.io/v2/: dial tcp: lookup registry.redhat.io on <IP_ADDRESS>:53: no such host
  Warning  Failed     27m (x4 over 29m)      kubelet, crc-q4zfq-master-0  Error: ErrImagePull
  Warning  Failed     24m (x21 over 29m)     kubelet, crc-q4zfq-master-0  Error: ImagePullBackOff
  Normal   BackOff    4m16s (x110 over 29m)  kubelet, crc-q4zfq-master-0  Back-off pulling image "registry.redhat.io/fuse7-tech-preview/dv-rhel7-operator:1.5"

Thanks

It seems there is no possibility to communicate with the DNS?

lookup registry.redhat.io on <IP_ADDRESS>:53: no such host

can you use oc debug to verify the containers are able to perform DNS queries? also, is <IP_ADDRESS> the expected server?

CRC is configured with External Virtual Switch (crc) and cluster is started successfully

When running with the override vswitch crc you have to make sure your VM is able to communicate correctly. That CRC starts is not an indication that all works; as it only means that the local host can communicate with the VM and that the self-contained OpenShift cluster started (it does not need to pull images from the internet) so it is not a full proof check that all is OK. Please verify the VM settings for network.
If you need to override the nameserver, please use crc start -n [dns]

Couple of things from the logs.

Windows 10 Pro 1909

Note: this is reported for Enterprise

OS Name:                   Microsoft Windows 10 Enterprise

Hi,
I believe the networking on the external virtual switch and crc's VM are configured correctly. Inside the guest VM, i am able to ping the proxy server in the host's network and also performed a

curl --proxy XXX https://www.google.co.uk

Similarly, inside the openshift-marketplace POD, i'm also able to perform a

curl https://www.google.co.uk

This indicates the proxy and custom CA configurations have been set correctly on the cluster.
I could not perform an oc debug because the container is failing to start due to the error. So, i can't get more logs from it.
I have tried editing the /etc/resolvf.conf in guest VM to only have nameserver <IP_ADDRESS> and tried installing the operator again and got the below error which is different to the one i report earlier "no such host"

Failed to pull image "registry.redhat.io/fuse7-tech-preview/dv-rhel7-operator:1.5": rpc error: code = Unknown desc = error pinging docker registry registry.redhat.io: Get https://registry.redhat.io/v2/: dial tcp: lookup registry.redhat.io on <IP_ADDRESS>:53: read udp <IP_ADDRESS>:43554-><IP_ADDRESS>:53: i/o timeout

I am inside a corporate network that has a proxy server that governs all requests to the outside world. The internal DNS server does not have connection to the outside world. I would have thought all HTTP(s) requests will go through the Proxy server and the proxy will perform the DNS lookup. Is it not the case? If this is correct, then i wonder why CRC is doing the DNS lookup internally first even with proxy setup?
Thanks

Similarly, inside the openshift-marketplace POD, i'm also able to perform a

curl https://www.google.co.uk

This indicates the proxy and custom CA configurations have been set correctly on the cluster.

I'm actually a bit surprised by this as I had this issue today with the openshift-marketplace operator https://github.com/code-ready/crc/issues/1019
If needed, it might be useful to reset the proxy variables manually for the operator:
oc set env  deployment marketplace-operator -n openshift-marketplace HTTP_PROXY=xxx

and same for HTTPS_PROXY and NO_PROXY
For now you also need to add the internal cluster IPs to NO_PROXY manually.

Similarly, inside the openshift-marketplace POD, i'm also able to perform a

curl https://www.google.co.uk

This indicates the proxy and custom CA configurations have been set correctly on the cluster.

I'm actually a bit surprised by this as I had this issue today with the openshift-marketplace operator #1019
If needed, it might be useful to reset the proxy variables manually for the operator:
oc set env  deployment marketplace-operator -n openshift-marketplace HTTP_PROXY=xxx

and same for HTTPS_PROXY and NO_PROXY
For now you also need to add the internal cluster IPs to NO_PROXY manually.

I remember I had to set the proxy manually for the operator too. I have left out this info on my report.
However, this doesn't solve my original problem.

There might be more bugs to iron out with proxy support, I wanted to check if I can reproduce your bug, but hit/fixed issue #1019 first.

Is it not the case? If this is correct, then i wonder why CRC is doing the DNS lookup internally first even with proxy setup?

It should. CRC is not doing the lookup, but likely some of the proxy settings aren't propogated to all the containers. One of the issues is proxy-inject as this is handled by the Cluster Version Operator, which in our usecase had to be disabled. We will look into this ...

Is there a workaround for now? ie enabling proxy for the required container/pods?

There are probably possible workarounds, but there are not known yet, this is why it needs to be looked into.

@yapnel I tried following steps on my setup when there is a custom CA for proxy, can you also try those steps and let us know if that work?
Note: Please make sure you are using the latest version of CRC - 1.6.0 (since those steps are tested with this)

Start the CRC with proxy setting, like you are doing and wait till is started.

$ crc config view
- http-proxy                            : http://x.x.x.x:3128
- https-proxy                           : http://x.x.x.x.x:3128

Create a user-ca-bundle.yaml resource as instructed by openshift docs https://docs.openshift.com/container-platform/4.3/networking/enable-cluster-wide-proxy.html#nw-proxy-configure-object_config-cluster-wide-proxy I have created following.

$ cat user-ca-bundle.yaml
apiVersion: v1
data:
  ca-bundle.crt: |
    -----BEGIN CERTIFICATE-----
    MIIDzTCCArWgAwIBAgIUaMJ4iWwx6y6d9com/S57V8JcOqwwDQYJKoZIhvcNAQEL
    BQAwdjELMAkGA1UEBhMCSU4xCzAJBgNVBAgMAk1IMQswCQYDVQQHDAJQVTEPMA0G
    A1UECgwGUmVkaGF0MQwwCgYDVQQLDANkZXYxCzAJBgNVBAMMAnBrMSEwHwYJKoZI
    hvcNAQkBFhJwcmt1bWFyQHJlZGhhdC5jb20wHhcNMjAwMjIwMDk0NzU1WhcNMjEw
    MjE5MDk0NzU1WjB2MQswCQYDVQQGEwJJTjELMAkGA1UECAwCTUgxCzAJBgNVBAcM
    AlBVMQ8wDQYDVQQKDAZSZWRoYXQxDDAKBgNVBAsMA2RldjELMAkGA1UEAwwCcGsx
    ITAfBgkqhkiG9w0BCQEWEnBya3VtYXJAcmVkaGF0LmNvbTCCASIwDQYJKoZIhvcN
    AQEBBQADggEPADCCAQoCggEBANXGJNkgmamxba5+i14BC+KsZdA6DqSzETKiWtt6
    MhgaMdsDQJUB6DOL3mFahTWHr1cbYfLDWrpyCJJiVbWeGrv17zsXNnl1GG08FMYI
    tw4AP0b//wpsuUNxc5pszAFwkT7OyQEkHknHsq4LJES/Z4/ghi+afNX8/X/Cbb8/
    JC679VEZjyApYCPERKywL..
    -----END CERTIFICATE-----
kind: ConfigMap
metadata:
  name: user-ca-bundle
  namespace: openshift-config

Apply the resource to cluster

$ oc apply user-ca-bundle.yaml

Check the status of operators (most of then will go to progressing state and the come back as available

$ oc get co

SSH to crc VM and add the custom cert to /etc/pki/ca-trust/source/anchors/openshift-config-user-ca-bundle.crt file and run update-ca-trust
<host> $ crc ip
<host> $ ssh -i C:\Temp\.crc\machines\crc\id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null core@<crc-ip>
[core@crc-xxx-master-0 ~]$ sudo vi /etc/pki/ca-trust/source/anchors/openshift-config-user-ca-bundle.crt
[core@crc-xxx-master-0 ~]$ sudo update-ca-trust
[core@crc-xxx-master-0 ~]$ sudo systemctl restart crio
[core@crc-xxx-master-0 ~]$ sudo systemctl restart kubelet

Exit from the crc VM and then start you deployment steps.

Hi
I have tried the steps you have provided and i'm still facing the same error message. I dont think it is a certificate issue here. It is related to this issue
https://github.com/code-ready/crc/issues/1025 raised.
Thanks,

When you say same error message, do you mean   Warning  Failed     27m (x4 over 29m)      kubelet, crc-q4zfq-master-0  Failed to pull image "registry.redhat.io/fuse7-tech-preview/dv-rhel7-operator:1.5": rpc error: code = Unknown desc = error pinging docker registry registry.redhat.io: Get https://registry.redhat.io/v2/: dial tcp: lookup registry.redhat.io on <IP_ADDRESS>:53: no such host ? or another one?

Same as the one you have posted

The below error, would you know it is thrown by CRC or OpenShift?
error pinging docker registry registry.redhat.io: Get https://registry.redhat.io/v2/: dial tcp: lookup registry.redhat.io on <IP_ADDRESS>:53: no such host

It's most likely openshift, but proxy support in crc is still being refined, https://github.com/code-ready/crc/pull/1038 + the CA configuration documented by Praveen in this issue.

Saw your comments on your PR for #1038. If I were to manually add the proxy for these PODs as a workaround, will it resolve the no host error? Or my specific error needs to be address in OpenShift instead? Thanks

Saw your comments on your PR for #1038. If I were to manually add the proxy for these PODs as a workaround, will it resolve the no host error?

Maybe, worth trying.

Hi - any update on a resolution for this error please?

Reinstalled with the latest CRC 1.6 and used "default" switch and added the custom cert to /etc/pki/ca-trust/source/anchors/ seemed to have resolved the issue.
This was different to my original setup on the switch using "external". Adding the custom CA to the VM also made a difference and suspect crio and kubelet didn't inherit the custom wide proxy setting with custom CA in OpenShift.


How to configure a device for traccar

Hi, I have been unsuccessfully  looking online for a solution, hope someone here can help me.
I have a traccar server with 5005/tcp and 8082/tcp ports opened, I was able to make the iOS client app connect to the server without problem, but I have been unable to make a TK106 device connect to the server, a version123456 sms command to the device gives me back 103_131106, when setting up the admnip command I am giving the 5005 port, the server never gets any message from the device, or at least there's no info about that in the server logs, I am wondering if the device could be still misconfigured (which I check, APN and all) or there's some port or setting I am missing, thanks in advance :)

First of all, port 5005 is most likely wrong for your device. Try port from the following page:
https://www.traccar.org/ports-for-tk-gt-and-other-gps-devices/
If you don't see any HEX data from your device in the log, it means either device doesn't send any or there is some network issue (e.g. firewall or router problem).

Thank for the reply Anton; Yes, I read from the documentation that my device uses another port, but, since there's a port setting on the device I though the port was an overridable setting, don't understand yet why is that port option for, my log looks like this:
Starting traccar...
Waiting for traccar.....
running: PID:63
2015-06-17 00:56:19  INFO: Starting server...
2015-06-17 00:56:19  INFO: Operating System name: Linux version: 3.13.0-48-generic architecture: amd64
2015-06-17 00:56:19  INFO: Java Runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 24.65-b04
2015-06-17 00:56:19  INFO: Memory Limit heap: 878mb non-heap: 214mb
2015-06-17 00:56:34  WARN: Unknown device - 112120468
2015-06-17 00:56:40  INFO: Closing connection by disconnect
2015-06-17 00:56:40  WARN: Unknown device - 112120468
2015-06-17 00:58:54  INFO: Closing connection by disconnect
2015-06-17 01:00:03  INFO: device: 2, time: Wed Jun 17 01:00:04 UTC 2015, lat: 9.962775, lon: -84.24148333333333
2015-06-17 01:01:37  INFO: device: 2, time: Wed Jun 17 01:01:38 UTC 2015, lat: 9.962776666666667, lon: -84.24147833333333
2015-06-17 01:02:40  INFO: device: 2, time: Wed Jun 17 01:02:41 UTC 2015, lat: 9.9628, lon: -84.24151333333333
2015-06-17 01:03:26  INFO: device: 2, time: Wed Jun 17 01:03:27 UTC 2015, lat: 9.962785, lon: -84.24148833333334
2015-06-17 01:04:18  INFO: device: 2, time: Wed Jun 17 01:04:19 UTC 2015, lat: 9.962771666666667, lon: -84.241468333

nothing like other people's logs posted here; I am using qbraksa/traccar-server docker container, there are two log files tracker-server.log and   wrapper.log.20150617
wrapper.log contents:
STATUS | wrapper  | 2015/06/17 00:56:18 | --> Wrapper Started as Daemon
STATUS | wrapper  | 2015/06/17 00:56:18 | Java Service Wrapper Community Edition 64-bit 3.5.25
STATUS | wrapper  | 2015/06/17 00:56:18 |   Copyright (C) 1999-2014 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper  | 2015/06/17 00:56:18 |     http://wrapper.tanukisoftware.com
STATUS | wrapper  | 2015/06/17 00:56:18 |
STATUS | wrapper  | 2015/06/17 00:56:18 | Launching a JVM...
INFO   | jvm 1    | 2015/06/17 00:56:18 | WrapperManager: Initializing...
INFO   | jvm 1    | 2015/06/17 00:56:19 | 2015-06-17 00:56:19.169:INFO:oejs.Server:jetty-8.1.16.v20140903
INFO   | jvm 1    | 2015/06/17 00:56:19 | 2015-06-17 00:56:19.197:INFO:oejw.WebInfConfiguration:Extract jar:file:/opt/traccar/traccar-web.war!/ to /tmp/jetty-<IP_ADDRESS>-8082-traccar-web.war-_-any-/webapp
INFO   | jvm 1    | 2015/06/17 00:56:20 | 2015-06-17 00:56:20.075:INFO:oejw.StandardDescriptorProcessor:NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
INFO   | jvm 1    | 2015/06/17 00:56:20 | 2015-06-17 00:56:20.127:INFO:oejs.AbstractConnector:Started SelectChannelConnector@<IP_ADDRESS>:8082```
Should I install traccar from scratch in order to get a full log or something ??

Please install the latest version of Traccar:
https://www.traccar.org/download/


Move OPS and VAR builds to NWP shared directory

keyword_OPS_VAR_build_compile_link_library_Executables_APS3 resolution_fixed   |    by<EMAIL_ADDRESS>
Request
I am requesting for the new OPS and VAR executable builds (both debug and opt configs) are moved to the NWP shared directories: ~access/nwpdir/share/APS3/OPS and ~access/nwpdir/share/APS3/VAR , with the branch changes in the readme.
The local build directories info is in the subwiki page
Background
The new versions of both OPS and VAR have been released earlier this month both the reanalysis and C2/3 suites require these builds.
With advice from Susan, I have built these executables using rose-stem suites using the local NCI optional configurations and with one minor change updating the intel-mpi library.

Issue migrated from trac:290 at 2024-01-31 18:26:08 +1100

<EMAIL_ADDRESS>changed status from new to closed

<EMAIL_ADDRESS>set resolution to fixed

<EMAIL_ADDRESS>commented

Wenming L. has completed the request and moved both OPS & VAR 2016.09.0 opt and debug builds to the ~access/nwpdir/share/APS3 directory.
The information for each build is included in a ReadMe file.


Multiple folders.. now you see ‘em now you don’t

Hey :-)
I downloaded the .zip version of Atom (0.187) and was disheartened when I tried creating and saving projects. Before, on Atom version 0.184, I could add Root folders and save that with Project Manager and when I loaded the projects they would open with both folders in ONE window.
Now, I add the root folders, save with Project Manager etc. but when I load it only loads the first root folder and then it will load the other folders in multiple windows, I checked the projects.cson file and both folder paths are there, it just wont load the same way as 0.184.. anyone else experiencing this?

I am seeing the same problem on MacOS 10.9.5 using Atom 0.187.0 and project-manager 1.15.5. Switching projects results in one window per root folder in the new project.

FOR ANYONE WHO FINDS THIS:
It does work and heres how:
go to 'edit projects' under packages > project manager > edit projects
add 'group':'group-name' to the project config like so:
'atom-project-manager':
'title': 'atom-project-manager'
'group':'test'
'paths': [
'C:\Users\treytaylor\Documents\GitHub\atom-project-manager'
'C:\Users\treytaylor\Documents\GitHub'
]
and save the config file, then load the project and see for cha self :-)
@r-owen

I tried it and it does not work for me. Adding 'group' did not change anything. I even restarted Atom.
Even if it worked, I find it a puzzling requirement. Why is 'group' needed and what is its value supposed to indicate? Why not just automatically group all paths?

@r-owen ah fair beanios :-)
for me (windows) I had to specify the group, Mac might of had a better upgrade (if that makes sense o.O)

Group really shouldn't have anything to do with it, so that it made it work is kinda weird :)
0.188.0 seem to have fixed it though like @r-owen said.


Random freezes and logouts

While typing a long password at login, the app freezes for a small moment every time. Sometimes it momentarily freezes when preparing an upload (the animation stops), and I've even observed it freeze completely during uploading a few times (it would seem that the uploads succeeded nonetheless).
It also does random logouts in a way that requires a full login (name, password and terms-accepting) instead of just asking for a password. These often happen right after an upload completes, sometimes at idle (perhaps triggered by sync).
I'm guessing the latter might be a timeout-issue stemming from the former.
Something is probably done in the UI-thread that should be done in a separate tread/asynctask/whatever you flutter-people use.
This behaviour was observed using ArConnect, Chromium 92.0.4515.107, GNOME 40.3.0, Manjaro Linux (kernel 5.12.19-1).
Might be just an issue with my system, but here's a report nonetheless.

Can you share the length (in characters) of the password that's  causing  this issue?


db issue not returning value

Hi Nick,
Having problems returning a db value.
https://github.com/JohnTeague/Collectables---Expressling

What version of NPM, Node, and MongoDB are you using?
$ mongo --version
$ node --version
$ npm --version
(type the above commands without the "$", the "$" is referencing it is is a
terminal command)
On Sat, Dec 17, 2011 at 2:56 AM, John Teague <
<EMAIL_ADDRESS>
wrote:

Hi Nick,
Having problems returning a db value.
https://github.com/JohnTeague/Collectables---Expressling

Reply to this email directly or view it on GitHub:
https://github.com/niftylettuce/expressling/issues/8

What version of NPM, Node, and MongoDB are you using?
mongo --version
node --version
npm --version
(type the above commands without the "$", the "$" is referencing it is is a
terminal command)

hmmmm...  Still not working for me...
from mongo shell i can find 2 records - "MyCar" and "HotRod"
but web page still shows "Not Found"

tried this on another machine:
mongo 1.8.4
Node 0.6.5
npm 1.1.0-alpha-6
Same problem again.

** Not working for me as well
I tried git clone git@github.com:niftylettuce/collectables.git
mongo 2.0.1
node v0.6.3
npm v1.1.0-alpha-2

Taking a look at it now

var mycar = { name: 'MyCar', serial: '1234567890' };
db.cars.save(mycar) //Not the plural form
db.cars.find()
It is working fine!

That is not the issue, the issue is that we cannot get results under the route car.js.

Solved the issue thanks to @butu5, will be posting why shortly.

Fixed it, thanks to @butu5 !!!  Please do a cd collectables and git pull origin master.
Then make sure you drop the database and insert a new record as follows:

Fix was making singular to plural.
See this threads for more details: https://groups.google.com/forum/#!topic/mongoose-orm/BIWiUYi6Ue0
Also see utils.js pluralize function:
https://github.com/LearnBoost/mongoose/blob/master/lib/utils.js#L88

Sorry guys...  I'm still not able to get correct results....  on my local nor remove dev server.
I can log into the Expressling app with<EMAIL_ADDRESS>so there is db connectivity.

Did you pull the changes?  Remove existing db and insert new result in the
db with name of collectables_development?  What is the output?  You could
try a console.log(car); in the callback for findOne?
On Sun, Dec 18, 2011 at 5:29 PM, J T <
<EMAIL_ADDRESS>
wrote:

Sorry guys...  I'm still not able to get correct results....  on my local
nor remove dev server.
I can log into the Expressling app with<EMAIL_ADDRESS>so there
is db connectivity.

Reply to this email directly or view it on GitHub:
https://github.com/niftylettuce/expressling/issues/8#issuecomment-3197372

Sorry guys.  Still not getting database results, only the default values...   tested on local machine and remote dev server.
I can log into Expressling using<EMAIL_ADDRESS>so there is db connectivity.

Awesome!  it works.
I also created another route/schema/view - just to be sure.
So to recap: mongo likes to have collections ending with (s) or the plural of that collection name?

Yes due to the pluralize function linked in the utils.js script (linked
previously). :) Glad it is all working.
On Sun, Dec 18, 2011 at 6:17 PM, J T <
<EMAIL_ADDRESS>
wrote:

Awesome!  it works.
I also created another route/schema/view - just to be sure.
So to recap: mongo likes to have collections ending with (s) or the plural
of that collection name?

Reply to this email directly or view it on GitHub:
https://github.com/niftylettuce/expressling/issues/8#issuecomment-3197625

EDIT: Mongoose likes plural :)


feat: exporting types from connect.d.ts & ticket.d.ts as these are some types we require during development.

Changes

The changes this pr introduces is related to the typings for kite.
Exports have been added for types that were not accessible through the default export.
The main index export hasn't been altered as it can cause problems to people who are late adapters to change so instead it can be accessed through the file routing.

Benefits

Now users can type their code more accurately instead of replicating types from docs.
It is much more efficient when it comes to developer experience and is reusable

Problem it solves:

Earlier i was having problems with importing types from kite as it didn't export any specific type except for the default types KiteConnect and KiteTicker. Hence these exports will be helpful during development, a image is attached to showcase one of the problems during development.

@ranjanrak Please review


Enhance Multiclass documentation

Updated the docs for Multi-species model #684

Thank you @Mu-Magdy for the changes

Thanks @Mu-Magdy, when making a PR that addresses an issue, use the keywork closes #684 and github will close that issue when the PR is merged.


Update adding-a-new-ssh-key-to-your-github-account.md

The updated docs that use ed25519 to generate the key are merged.  This needs to match those steps

Why:

The updated docs introduce in this PR now make these steps incorrect, this just updates the steps to match the key generation now the guidance no longer uses rsa
What's being changed:

I updated the copy step to read:
pbcopy < ~/.ssh/id_ed25519.pub

Check off the following:

[X] All of the tests are passing.
[X] I have reviewed my changes in staging.
[X] For content changes, I have reviewed the localization checklist
[X] For content changes, I have reviewed the Content style guide for GitHub Docs.

Thanks for catching that and opening a PR @brockneedscoffee! I'll get this triaged for review 🎉

@janiceilene any updates on this?