⚠ Quirk Club Argentina (API endpoint) has degraded performance

In 10faafe, Quirk Club Argentina (API endpoint) (https://us-central1-quirkclub-dev.cloudfunctions.net/api/check/api) experienced degraded performance:

HTTP code: 200
Response time: 8906 ms

Resolved: Quirk Club Argentina (API endpoint) performance has improved in 56b5c1f after 17 minutes.


Improve google ranking for TS Playground

Not sure if you can do anything - I am not an SEO expert - but it would be good to improve google ranking for TS Playground. Right now it offers some bizarre results (https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=ts playground - proceed at your own risk) and real TS Playground is on 3rd page.
Seems like <meta/> with keyword/description are missing - but not sure if Google use them at all.

I'll try to push out a change for some meta tags, but if explicit links help: hey Google & Bing, if you're reading this, here's the TS Playground.

should be working now..


[core] BatchWriteBuilder#withOverwrite should not accept multiple partitions list

Purpose
BatchWriteBuilder is API for table, and currently there is no need to modify multiple partitions from table layer.
This PR removes the BatchWriteBuilder#withOverwrite(List<Map<String, String>>) method.
The abilities to drop multiple partitions is taken by FileStoreCommit#dropPartitions(List<Map<String, String>>).
Tests
DropPartitionActionITCase
PartitionExpireTest
Added:
FileStoreCommitTest#testDropPartitions
API and Format
Remove public API BatchWriteBuilder#withOverwrite(List<Map<String, String>>).
Documentation
No.

Verified.


feat: To track special values recorded in interface logs

When I used go-zero, I needed to add some custom content to the interface log, but none of the methods like LogCollectorFromContext could be called externally. So I modified LogCollector. Messages and added an external method WithLogField that allows me to add content of type logx. LogField to LogCollector. Messages via custom middleware before executing logBrief and logDetails.
The following part of the code, in fact, has no effect

Thanks for your contribution!
But please give some feature description.

You can achieve this by using logx.ContextWithFields(r.Context(), ...)
The complete example is here:
package main

import (
	"net/http"

	"github.com/zeromicro/go-zero/core/conf"
	"github.com/zeromicro/go-zero/core/logx"
	"github.com/zeromicro/go-zero/rest"
	"github.com/zeromicro/go-zero/rest/httpx"
	"github.com/zeromicro/go-zero/rest/router"
)

type myRouter struct {
	httpx.Router
}

func (r *myRouter) Handle(method, path string, handler http.Handler) error {
	if method == http.MethodGet && path == "/hello" {
		return r.Router.Handle(method, path, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
			ctx := logx.ContextWithFields(r.Context(), logx.Field("hello", "world"))
			handler.ServeHTTP(w, r.WithContext(ctx))
		}))
	}

	return r.Router.Handle(method, path, handler)
}

func main() {
	var c rest.RestConf
	logx.Must(conf.FillDefault(&c))
	c.Port = 8888
	server := rest.MustNewServer(c, rest.WithRouter(&myRouter{router.NewRouter()}))
	server.AddRoute(rest.Route{
		Method: http.MethodGet,
		Path:   "/hello",
		Handler: func(w http.ResponseWriter, r *http.Request) {
			w.Write([]byte("hello"))
		},
	})
	server.AddRoute(rest.Route{
		Method: http.MethodGet,
		Path:   "/world",
		Handler: func(w http.ResponseWriter, r *http.Request) {
			w.Write([]byte("world"))
		},
	})
	defer server.Stop()
	server.Start()
}

You can achieve this by using logx.ContextWithFields(r.Context(), ...)
The complete example is here:
package main

import (
	"net/http"

	"github.com/zeromicro/go-zero/core/conf"
	"github.com/zeromicro/go-zero/core/logx"
	"github.com/zeromicro/go-zero/rest"
	"github.com/zeromicro/go-zero/rest/httpx"
	"github.com/zeromicro/go-zero/rest/router"
)

type myRouter struct {
	httpx.Router
}

func (r *myRouter) Handle(method, path string, handler http.Handler) error {
	if method == http.MethodGet && path == "/hello" {
		return r.Router.Handle(method, path, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
			ctx := logx.ContextWithFields(r.Context(), logx.Field("hello", "world"))
			handler.ServeHTTP(w, r.WithContext(ctx))
		}))
	}

	return r.Router.Handle(method, path, handler)
}

func main() {
	var c rest.RestConf
	logx.Must(conf.FillDefault(&c))
	c.Port = 8888
	server := rest.MustNewServer(c, rest.WithRouter(&myRouter{router.NewRouter()}))
	server.AddRoute(rest.Route{
		Method: http.MethodGet,
		Path:   "/hello",
		Handler: func(w http.ResponseWriter, r *http.Request) {
			w.Write([]byte("hello"))
		},
	})
	server.AddRoute(rest.Route{
		Method: http.MethodGet,
		Path:   "/world",
		Handler: func(w http.ResponseWriter, r *http.Request) {
			w.Write([]byte("world"))
		},
	})
	defer server.Stop()
	server.Start()
}

You can achieve this by using logx.ContextWithFields(r.Context(), ...)
The complete example is here:
package main

import (
	"net/http"

	"github.com/zeromicro/go-zero/core/conf"
	"github.com/zeromicro/go-zero/core/logx"
	"github.com/zeromicro/go-zero/rest"
	"github.com/zeromicro/go-zero/rest/httpx"
	"github.com/zeromicro/go-zero/rest/router"
)

type myRouter struct {
	httpx.Router
}

func (r *myRouter) Handle(method, path string, handler http.Handler) error {
	if method == http.MethodGet && path == "/hello" {
		return r.Router.Handle(method, path, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
			ctx := logx.ContextWithFields(r.Context(), logx.Field("hello", "world"))
			handler.ServeHTTP(w, r.WithContext(ctx))
		}))
	}

	return r.Router.Handle(method, path, handler)
}

func main() {
	var c rest.RestConf
	logx.Must(conf.FillDefault(&c))
	c.Port = 8888
	server := rest.MustNewServer(c, rest.WithRouter(&myRouter{router.NewRouter()}))
	server.AddRoute(rest.Route{
		Method: http.MethodGet,
		Path:   "/hello",
		Handler: func(w http.ResponseWriter, r *http.Request) {
			w.Write([]byte("hello"))
		},
	})
	server.AddRoute(rest.Route{
		Method: http.MethodGet,
		Path:   "/world",
		Handler: func(w http.ResponseWriter, r *http.Request) {
			w.Write([]byte("world"))
		},
	})
	defer server.Stop()
	server.Start()
}

Using the method you provide, then all logc's will carry this LogField
The current requirement in the project is simply to add this' LogField 'to the interface log
We have now rewritten a similar 'LogHandler' to deal with this problem

Not for all logc methods, only for the routes you needed.
I don't get what do you mean by interface log.

this

If you use the method you provided this, then all subsequent logc. Info calls to the same context will contain "hello":"world", right?
like this

this

If you use the method you provided this, then all subsequent logc. Info calls to the same context will contain "hello":"world", right?
like this

No, only for the specific request.

Maybe I didn't describe it clearly, but I didn't adopt your proposal because of the picture

i just need

These contents are not required for other log output


Camperbot fails to give points if there is a bracket before a "thanks"

https://gitter.im/FreeCodeCamp/FreeCodeCamp?at=57edcc09d56b91170dfc75cd

I think this issue should be opened here:  https://github.com/FreeCodeCamp/camperbot/issues

Correct.


Minor fixing

Fixing issues #171

A question, why did you move the visual inspection of the images, aka AnalysisExplorer, below the production run cells with looping over all files? I understand that this was requested, but the visual inspection should come first before the production runs, to see if the settings make sense. So I don't understand the reason behind..?


#1139 Clarify guidance in get started and programming strategy guide and reference updates

Close #1139 Close #1147
Thank you for your Pull Request! We have developed this task checklist from the Development Process Guide to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the admiral codebase remains robust and consistent.
Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the devel branch until you have checked off each task.

[x] Code is formatted according to the tidyverse style guide
[x] Updated relevant unit tests or have written new unit tests - See Unit Test Guide
[x] If you removed/replaced any function and/or function parameters, did you fully follow the deprecation guidance?
[x] Update to all relevant roxygen headers and examples
[x] Run devtools::document() so all .Rd files in the man folder and the NAMESPACE file in the project root are updated appropriately
[x] Address any updates needed for vignettes and/or templates
[x] Update NEWS.md
[x] Build admiral site pkgdown::build_site() and check that all affected examples are displayed correctly and that all new functions occur on the "Reference" page.
[x] Address or fix all lintr warnings and errors - lintr::lint_package()
[x] Run R CMD check locally and address all errors and warnings - devtools::check()
[x] Link the issue so that it closes after successful merging.
[x] Address all merge conflicts and resolve appropriately
[x] Pat yourself on the back for a job well done!  Much love to your accomplishment!

Could you set eval=TRUE? Otherwise the result is not displayed.

The result is stated in the example text.  Maybe I should do evel=TRUE and then hide result just so it evaluated and throws error if something happens to the function

Hi @thomas-neitmann @bundfussr  @millerg23 Hi all.
Hoping you all can finish this PR for me either by reviewing or making the final updates when you sign on!
42 files!  Most updates are the derive_vars_dt() and embedded example for impute_dtc that was not rendering on the website.  These are populated throughout a lot of files.  There are a few other cosmetic changes.  Please and thank you.

Thanks for confirming @bundfussr I can make these minor updates, and push through for final Approval.

@bundfussr @thomas-neitmann can you approve to trigger Check Templates? Thanks!

@bms63 , @thomas-neitmann , all checks passed.
Should we merge it or is there anything outstanding?


Extract and dump C comments as documentation

[x] Extract comments.
[x] Remove comment markers e.g. /**/ and //, doxygen comments are also supported.
[x] Print comments for top-level nodes e.g. function, structs, enums.
[x] Print comments for struct and enum members.
[x] Support libclang's doxygen API.
[x] Basic support of doxygen semantic, e.g. \brief.

libclang has other high-level APIs for dumping comments/documentations: https://github.com/JuliaInterop/Clang.jl/blob/d186b2d4eb72830c1b190cb5a5248421bc3ee78a/src/LibClang.jl#L2482-L2651
It will be great if all of these functionalities can be exposed by Clang.jl.

libclang has other high-level APIs for dumping comments/documentations at a fine-grained level

I have also seen this, but only getting doxygen comments as an AST is not that useful in my opinion. Maybe I need to transform that into Julia style documentation.

Yeah. GDAL.jl has some good examples. IIRC, it first dumped the comment to a html file and then parsed them into Julia docstrings instead of using libclang's API.

@visr may chime in to give some advices.

Ah, this looks interesting!

This would be really nice for LLVM.jl (cc: @maleadt)

The position of back-ticks is wrong or missing in some cases:

"""
    CXErrorCode

 Error codes returned by libclang routines.

 Zero (`CXError_Success)` is the only error code indicating success.  Other error codes, including not yet assigned non-zero values, indicate errors.
"""

"""
    clang_File_tryGetRealPathName(file)

 Returns the real path name of `file.`

 An empty string may be returned. Use `clang_getFileName()` in that case.
"""
function clang_File_tryGetRealPathName(file)
    @ccall libclang.clang_File_tryGetRealPathName(file::CXFile)::CXString
end

"""
    CXSourceLocation

 Identifies a specific source location within a translation unit.

 Use clang_getExpansionLocation() or clang_getSpellingLocation() to map a source location to a particular file, line, and column.
"""
mutable struct CXSourceLocation
    ptr_data::NTuple{2, Ptr{Cvoid}}
    int_data::Cuint
    CXSourceLocation() = new()
end

Also, it would be perfect if references can be added to the code block:
Create a `CXVirtualFileOverlay` object. Must be disposed with `clang_VirtualFileOverlay_dispose().`

=>
Create a [`CXVirtualFileOverlay`](@ref) object. Must be disposed with [`clang_VirtualFileOverlay_dispose()`](@ref).

\" etc. should be stripped in the docstrings.

"""
    clang_VirtualFileOverlay_addFileMapping(arg1, virtualPath, realPath)

... The virtual path must be canonicalized (not contain \".\"/\"..\").
"""

In fact, it doesn't matter whether we strip it or not, but the code looks a bit cleaner if we do so.

Obviously libclang's doxygen API is not as great as desired, so I will need some post-processing to make it feel better.

1. There is a leading space at the beginning of each paragraph:

Definitely libclang's issue, but it seems that in both REPL and Documenter.jl it is stripped, so this only affects source code browsing. Since a leading space is so prevalent, I can strip it for each paragraph.

2. For unknown reasons, some docstrings are printed twice: `""" Describes a version number of the form major.minor.subminor."""`

These are all documentation of first member of an enum. Maybe this is more desirable than no documentation if used in an interactive environment, but not if used in documentation.

3. Both `@cenum` and `@enum` have no support for field-docstrings, so we may need to emit everything to the docstrings of the enum itself.

4. As for struct-field-docstrings, I think we can add a style option to support 3 modes:

I will fix these.

5. The position of back-ticks is wrong or missing in some cases:

As for CXError_Success) It seems that libclang does not handle this correctly. Some post-processing can help.
As for missing back-ticks, clang_getExpansionLocation is not quoted in C source. Maybe doxygen is intelligent enough to identify these symbols.

6. \ in \", \\, etc. should be stripped in the docstrings.

Do you mean  raw"""..."""? Otherwise \ must be escaped.

The position of back-ticks is wrong or missing in some cases:
Reference: Automatic link generation
One reason is that doxygen generates links based on text content instead of special commands. For example, "TypeName"(with at least one capital letter) and "function_call()"(with a pair of parentheses) are recognized as automatic links if they represent documented symbols.
We will need a set of all used symbols to automatically generated links, is this already available in Clang.jl?

Do you mean raw"""..."""? Otherwise \ must be escaped.

Yeah. For example:
julia> """
       "foo"
       """
       function dummy end
dummy

help?> dummy
search: dummy MethodSummary

  "foo"

julia> """
       \"foo\"
       """
       function dummy2 end
dummy2

help?> dummy2
search: dummy2 dummy MethodSummary

  "foo"

We will need a set of all used symbols to automatically generated links, is this already available in Clang.jl?

I don't quite understand the question here. If the back-ticks can be emitted correctly, we can use the same method to add [...](@ref) around the back-ticks. I was thinking about something like:
getText -> "TypeName"/"function_call()" -> extractSymbol -> "TypeName"/"function_call" -> "[`" * symbol * "`](@ref)"

I don't quite understand the question here. If the back-ticks can be emitted correctly, we can use the same method to add ... around the back-ticks.

Doxygen links are just plain texts, so we must filter C identifiers out of English words. For example, CIndex is a class name, then all appearances of "CIndex" are rendered as a link, except escaped explicitly. In your example
/**
 * Identifies a specific source location within a translation
 * unit.
 *
 * Use clang_getExpansionLocation() or clang_getSpellingLocation()
 * to map a source location to a particular file, line, and column.
 */
typedef struct {
  const void *ptr_data[2];
  unsigned int_data;
} CXSourceLocation;

clang_getExpansionLocation will be rendered as a link in doxygen, although it is not annotated with \c. This is because doxygen assumes "clang_getExpansionLocation()" to be a function name, and it is documented, so a link is generated. For a counter-example, "Identifies" has a capital letter, but it is not a name of a class, so it is not rendered as a link.
So if we are going to support this feature, we need to test every word against the list of documented identifiers.

clang_getExpansionLocation will be rendered as a link in doxygen, although it is not annotated with \c.

How hard is it to copy doxygen's default behavior?  For everything tailing with a (), we treat it as a function and emit [symbol](@ref). It doesn't matter whether the referenced symbol has docs or not because it's Documenter.jl's responsibility to handle that for us.

For a counter-example, "Identifies" has a capital letter, but it is not a name of a class, so it is not rendered as a link.

If the design choice is to support annotated symbols only, then this is no longer a problem.
By design, we support:

all annotated functions/classes/etc
non-annotated functions with a pattern f()

@Gnimuc  all the points you mentioned in the comments have been implemented, except

links are all generated if they are symbols tracked by Clang.jl.
single " is not escaped, but \ is still escaped.

great! I'm going to give it a test on LLVM.jl or GDAL.jl this weekend, maybe earlier if I could find some time.

@melonedo do you have time to update GDAL.jl as requested in https://github.com/JuliaInterop/Clang.jl/pull/318#issuecomment-886242330 ?

@melonedo do you have time to update GDAL.jl as requested in #318 (comment) ?

Sure! I will try it today.

I think we can merge this and add new features or do bugfixes in other PR.


WDT RESET

ets Jan  8 2013,rst cause:4, boot mode:(3,6)
wdt reset
load 0x4010f000, len 3584, room 16
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld
How to fix this?
Im using library version 3.3.5
Nodemcu V3 ESP8266 12E with board version 2.7.4
My code :
https://pastebin.com/ZYHUrUUc

Don't post your code on that site, you should post the code and error in the Github post with proper mark down and also indent the code for easier reading.
The error is about bug in your code, power weakness, long running code (blocking code)

There is possible array index bug in your code.

String arrData[22];
...

//Parsing data
int index = 0;
for(int i=0; i<= data.length(); i++)
{
    char delimiter = '#' ;
    if(data[i] != delimiter)
      arrData[index] += data[i] ; //<----------- dangerous use of array without index checking
     else
       index++; //variabel index bertambah 1
}

Your board power supply is weak. Change the usb cable for shorter one.

Use delay(0); some where in your long running code.

You need to debug your code first before asking the help.

ok i will try to add delay(0); on my long code & trying to debug my code. If the problem still exist, i'ill let you know


Migrate code from NITRC to Github

leave pointer on NITRC to our new (current) project site and wiki.

Code already migrated. I just have to adjust content on the nitrc page to
point to our wiki (+copy whatever is pertinent)
On Mar 10, 2015 8:24 AM, "William Gray"<EMAIL_ADDRESS>wrote:

leave pointer on NITRC to our new (current) project site and wiki.
—
Reply to this email directly or view it on GitHub
https://github.com/openconnectome/m2g/issues/53.


lose background color?

au ColorScheme * hi Normal ctermbg=none guibg=none cause lose background color?
not use Shade.nvim and au ColorScheme * hi Normal ctermbg=none guibg=none before colorscheme

use Shade.nvim and au ColorScheme * hi Normal ctermbg=none guibg=none before colorscheme
au ColorScheme * hi Normal ctermbg=none guibg=none
colorscheme xxx

change the order:
colorscheme xxx
au ColorScheme * hi Normal ctermbg=none guibg=none

but I still want to use au ColorScheme * hi Normal ctermbg=none guibg=none before colorscheme

Isn't this 'not working' vs 'working'?
Shade reads the Normal guibg  attribute on startup. If you haven't set termguicolors, that isn't available.

Can you let me know if it's fixed with 0507aa2 please.

not fixed , get same result

I tried a simlar plugin:  vim-diminactive,   seems not have this problem

@sunjon
I update this issue , seems now problem is au ColorScheme * hi Normal ctermbg=none guibg=none

Ah, you've got a transparent bg?
I think what's happening is that it's trying to blend 'none' with 'none'.
There's a config key debug=true that sets an actual colour to blend with. Could you try that and report back how it's looks please?

@sunjon
I update this issue , seems now problem is au ColorScheme * hi Normal ctermbg=none guibg=none

Ah, you've got a transparent bg?
I think what's happening is that it's trying to blend 'none' with 'none'.
There's a config key debug=true that sets an actual colour to blend with. Could you try that and report back how it's looks please?

Do you mean add state.debug = true in shade.lua?  So it shades fine like that.
So if I make it a user configurable color and default it to 'None', everything should be fine.

Just FYI that it popped up when using meterial-nvim.
Ref: https://github.com/marko-cerovac/material.nvim/issues/40

Perhaps a possible solution could be something like what other users are doing for twilight.nvim


Change 'unwrap' usage to '?' operator in controller/src/command.rs

usage of ? operator was removed, and replaced with unwrap() which will panic if operation fails.
These changes were originally made in tokio, hyper, etc update in #95
Purpose of this PR is just a reversion of these, to avoid panics in tx flow.

Reverted changes that pertain to test subdirectory. Otherwise we'd have to convert error types, which seems pointless for testing suite.


9th May 2022 - InnerSource SIG Meeting Minutes

Date
Monday 11th Apr 2022 - 11am EST / 4pm UK
Untracked attendees

Fullname, Affiliation, (optional) GitHub username
...

Meeting notices

FINOS SIG Leads are responsible for observing the FINOS guidelines for running project meetings. Project maintainers can find additional resources in the FINOS Maintainers Cheatsheet.

All participants in FINOS project meetings are subject to the LF Antitrust Policy, the FINOS Community Code of Conduct and all other FINOS policies.

FINOS meetings involve participation by industry competitors, and it is the intention of FINOS and the Linux Foundation to conduct all of its activities in accordance with applicable antitrust and competition laws. It is therefore extremely important that attendees adhere to meeting agendas, and be aware of, and not participate in, any activities that are prohibited under applicable US state, federal or foreign antitrust and competition laws. Please contact<EMAIL_ADDRESS>with any questions.

FINOS SIG meetings may be recorded for use solely by the FINOS team for administration purposes. In very limited instances, and with explicit approval, recordings may be made more widely available.

Agenda

[ ] Convene & roll call (5mins)
[ ] Display FINOS Antitrust Policy summary slide
[ ] Review Meeting Notices (see above)
[ ] Approve past meeting minutes
[ ] Review FINOS Slack InnerSource SIG Channel - https://finos-lf.slack.com/archives/C01SYB503QT
[ ] Agenda item 1
[ ] Agenda item 2
[ ] ...
[ ] AOB, Q&A & Adjourn (5mins)

Decisions Made

[ ] Decision 1
[ ] Decision 2
[ ] ...

Action Items

[ ] Action 1
[ ] Action 2
[ ] ...

WebEx info

Webex : https://finos.webex.com/finos/j.php?MTID=m33975a6a163e1319c07e33a06bd3d1d5
Meeting number:<PHONE_NUMBER>

Join by phone

+1-415-655-0003 US Toll
+44-20319-88141 UK Toll
Access code:<PHONE_NUMBER>

Mailing List
Email<EMAIL_ADDRESS>to subscribe to the InnerSource SIG mailing list.

Leave questions here ! 😁

Noting an agenda item is :  plan for an InnerSource SIG Panel Session! Thanks!

Hello everyone!

👋

Hello Everyone

Hello

simon @ soton uni

Julia / FINOS

Additional notes for the minutes:
Panel Session - provisionally planned for June 21st

DECISION: Focus on case studies as theme
ACTION: Clare to continue to help organize with FINOS marketing
ACTION: Vicky to check if customer will speak
ACTION: Other volunteer speakers?

Topics for the future for SIG:

How do people experience the Maturity Matrix?
NOTE: OSR maturity matrix using https://www.limesurvey.org/
Interest in following up on Legal Agreements
ACTION: Chamindra/Clare to follow up on Legal Agreement Working Group Plan


training models?

Hi, I've tried to train a new model but writes out multiple model files and also .state extension?
eagle sketch was the name of the style image and i trained it with a folder of various images.
any ideas?Thanks heaps.

when I process an image with any of these various.model files it looks like this.

also here's my terminal
Christians-iMac:chainer-fast-neuralstyle-master zSUGARBANK$ python train.py -s /Volumes/LaCie/DOWNLOADS/eagle_sketch_by_circle00-d5uoxn4.png -d /Volumes/LaCie/DOWNLOADS/101_ObjectCategories -g -1
num traning images: 29
29 iterations, 2 epochs
epoch 0
(epoch 0) batch 0/29... training loss is...214263808.0
(epoch 0) batch 1/29... training loss is...210467088.0
(epoch 0) batch 2/29... training loss is...66296296.0
(epoch 0) batch 3/29... training loss is...19157852.0
(epoch 0) batch 4/29... training loss is...11985358.0
(epoch 0) batch 5/29... training loss is...11278733.0
(epoch 0) batch 6/29... training loss is...6982236.0
(epoch 0) batch 7/29... training loss is...8931690.0
(epoch 0) batch 8/29... training loss is...8320654.0
(epoch 0) batch 9/29... training loss is...8466308.0
(epoch 0) batch 10/29... training loss is...7682370.5
(epoch 0) batch 11/29... training loss is...6990806.5
(epoch 0) batch 12/29... training loss is...7355416.5
(epoch 0) batch 13/29... training loss is...6850945.5
(epoch 0) batch 14/29... training loss is...7621940.5
(epoch 0) batch 15/29... training loss is...6936177.0
(epoch 0) batch 16/29... training loss is...6777280.5
(epoch 0) batch 17/29... training loss is...6808056.5
(epoch 0) batch 18/29... training loss is...6797888.0
(epoch 0) batch 19/29... training loss is...6722624.0
(epoch 0) batch 20/29... training loss is...6578196.0
(epoch 0) batch 21/29... training loss is...6753231.0
(epoch 0) batch 22/29... training loss is...6510967.5
(epoch 0) batch 23/29... training loss is...6546028.5
(epoch 0) batch 24/29... training loss is...6157487.0
(epoch 0) batch 25/29... training loss is...6392862.5
(epoch 0) batch 26/29... training loss is...6195738.5
(epoch 0) batch 27/29... training loss is...6367346.5
(epoch 0) batch 28/29... training loss is...6199887.5
save "style.model"
epoch 1
(epoch 1) batch 0/29... training loss is...6227217.5
(epoch 1) batch 1/29... training loss is...6481475.5
(epoch 1) batch 2/29... training loss is...6153410.0
(epoch 1) batch 3/29... training loss is...6233668.5
(epoch 1) batch 4/29... training loss is...6321361.0
(epoch 1) batch 5/29... training loss is...6113050.0
(epoch 1) batch 6/29... training loss is...6322238.5
(epoch 1) batch 7/29... training loss is...6375432.5
(epoch 1) batch 8/29... training loss is...6342952.5
(epoch 1) batch 9/29... training loss is...6558215.0
(epoch 1) batch 10/29... training loss is...6081562.5
(epoch 1) batch 11/29... training loss is...6099289.5
(epoch 1) batch 12/29... training loss is...5926570.5
(epoch 1) batch 13/29... training loss is...5780968.0
(epoch 1) batch 14/29... training loss is...6671057.5
(epoch 1) batch 15/29... training loss is...5961956.5
(epoch 1) batch 16/29... training loss is...5816135.0
(epoch 1) batch 17/29... training loss is...5929303.5
(epoch 1) batch 18/29... training loss is...5987084.0
(epoch 1) batch 19/29... training loss is...5909796.0
(epoch 1) batch 20/29... training loss is...5760313.5
(epoch 1) batch 21/29... training loss is...5950045.0
(epoch 1) batch 22/29... training loss is...5718470.5
(epoch 1) batch 23/29... training loss is...5933241.5
(epoch 1) batch 24/29... training loss is...5629819.0
(epoch 1) batch 25/29... training loss is...5786327.5
(epoch 1) batch 26/29... training loss is...5510533.5
(epoch 1) batch 27/29... training loss is...5703062.0
(epoch 1) batch 28/29... training loss is...5626608.5
save "style.model"
Can't find style.model just a whole bunch of different files named the same as the style image

if you're only training 29 batches, your results will not look very good.

@Sugarbank Try to train it with cocodataset


Store instances for TimeOfDay and LocalTime?

These seem fairly mechanical, and would be really nice to have.

Good point!  Added support for more time types in store-0.7.10


x/tools/gopls: handle discrepancies in Go environment when connecting to daemon

Forked from @zikaeroh's comment on #34111:
https://github.com/golang/go/issues/34111#issuecomment-597374272

Another thing I thought of: how does gopls in this mode determine which go binary to use? I'm guessing it inherits PATH from whichever process created it, which might be wrong for future gopls invocations. For example, if I have more than one Go version, I might set PATH accordingly, or if I'm working on the go tree itself, I might set PATH to point to that to see how things behave.

This point could be generalized to any change in go env that would affect the behavior of the daemon. One solution is to hash all relevant environment into the automatic daemon socket path (so that different environments should get different daemons) -- we do this for the gopls build ID.  But as @zikaeroh points out, this becomes a slippery slope.
Another option would be to carefully document this behavior, compare environments in the forwarder-daemon handshake, and issue loud warnings.

My personal recommendation would be something in the middle, hashing a few known-common things to get most of the cases correct and leaving the rest to documentation/warnings. Off the top of my head I would think this list for the average user is:

go version (build ID?) - changes on Go upgrades
go env GOROOT (maybe GOTOOLDIR?) - often lives in different folders between versions on Linux distros
Maybe go env GOPATH

Many other things can end up mattering (GOPACKAGESDRIVER, cgo-related options, GOPROXY/GONOPROXY which may have security implications) but are much more likely to have been explicitly set by a person who understands the impact when these values change and knows how to deal with a warning.

We can still set environment variables used by gopls in calls to go/packages so I don't think it's critical to include those in the instance key.
My two cents: keep things super simple for the majority (for now), and experiment with making the caller do the hard work if they want to handle more complex situations. This is, incidentally, why I requested support for what @findleyr kindly delivered via -remote=auto;id. In my case I use process mount namespaces for different go versions, hence the ID I use will at least include a hash of the significant mounts (one of which includes Go version). But the onus is always on me as the caller to derive the ID by hashing whatever I want to be the key. Not least because gopls can't determine what should/shouldn't be in the ID in all cases.
This way if patterns of usage start to emerge where lots of people are running into problem X then we could look at have -remote=auto automatically hash A, B and C.

experiment with making the caller do the hard work if they want to handle more complex situations

My issue with this approach is that I think gopls knows much better than the client what things could affect the analysis. I think there are a few things that are common enough that with that approach, every client's going to be doing some hashing if they want to work around environment-related issues.

Not least because gopls can't determine what should/shouldn't be in the ID in all cases.

Which cases would gopls not know? The example you've given is Go version, which gopls would know, but I'm curious which other things you think might also affect the ID that only the client would know but would still affect gopls internally.

My issue with this approach is that I think gopls knows much better than the client what things could affect the analysis

I completely agree with this point. I'm very much in favour of having zero logic in the client/editor. The distinction I draw here is that it's the user who is necessarily defining the key, because the client/editor also can't know.

Which cases would gopls not know?

Basically any path. e.g. where go env GOPATH is the same value, e.g. /path/to/gopath, but because of process mount namespaces (or FUSE file systems or whatever) that path points to a different actual/real (terminology?) location.

My personal recommendation would be something in the middle, hashing a few known-common things to get most of the cases correct and leaving the rest to documentation/warnings.

That seems reasonable.  Here's what I'll do: first, I'll create a key-value map of environment values that affect execution, compare them in the handshake, and raise an error if there is a mismatch.  Then we can wait for people to complain that this error occurs under normal operation, and in those cases we can hash the environment value in question into the daemon path.
Enough people use different versions of the go command to warrant including this in the daemon path.  Hashing either go version or go tool buildid $(which go) would work.


[SPARK-47240][CORE][PART1] Migrate logInfo with variables to structured logging framework

The PR aims to migrate logInfo in Core module with variables to structured logging framework.
Why are the changes needed?

To enhance Apache Spark's logging system by implementing structured logging.
Does this PR introduce any user-facing change?

No.
How was this patch tested?

Pass GA.

Was this patch authored or co-authored using generative AI tooling?

No.

@gengliangwang Hi please help review

@zeotuan Thanks for the work. However, there are a lot of unnecessary changes in this PR, which are probably from scalafmt. This makes the PR review hard.
Usually, Spark PRs require cleaner code changes. Could you revert to https://github.com/apache/spark/pull/46362/commits/c9e020926f562e3205598396bec7f2071030a2cd? You will have to fix the errors from ./dev/lint-scala manually.

@zeotuan Thanks for the work. However, there are a lot of unnecessary changes in this PR, which are probably from scalafmt. This makes the PR review hard. Usually, Spark PRs require cleaner code changes. Could you revert to c9e0209? You will have to fix the errors from ./dev/lint-scala manually.

Sure I will revert it. I was just wondering if there is any plan to fix/apply all these scalafmt changes or why would it produce such different result.

I was just wondering if there is any plan to fix/apply all these scalafmt changes or why would it produce such different result.

There has been such discussions. The major concern of not having such a format tool is to avoid making the git blame harder.

LGTM otherwise. Thanks for the good work!

@zeotuan FYI I pushed a commit https://github.com/apache/spark/pull/46362/commits/b45b340d93ff6c6a972e255ee5325ce1b1c7d226 to reduce a log key. Please help review it and let me know what you think of it.

@gengliangwang Thank you, LGTM!

Thanks, merging to master


Fix code scanning alert - Reflected cross-site scripting

Tracking issue for:

[ ] https://github.com/D1strict/Kozsegi_Krajcar/security/code-scanning/2

@AdyStudios


[release/3.0] Pin Microsoft.NETCore.App.Ref to stable

Pin to stable to avoid accidental upgrades.

@nguerrera PTAL


parse_conceptual.py error

run parse_conceptual.py, then it ended with the following error:
NotImplementedError: There were no tensor arguments to this function (e.g., you passed an empty list of Tensors), but no fallback function is registered for schema aten::_cat.  This usually means that this function requires a non-empty list of Tensors, or that you (the operator writer) forgot to register a fallback function.  Available functions are [CPU, CUDA, QuantizedCPU, BackendSelect, Python, Named, Conjugate, Negative, ADInplaceOrView, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradLazy, AutogradXPU, AutogradMLC, AutogradHPU, AutogradNestedTensor, AutogradPrivateUse1, AutogradPrivateUse2, AutogradPrivateUse3, Tracer, UNKNOWN_TENSOR_TYPE_ID, Autocast, Batched, VmapMode].
could you please help?

I'd recommend you review all of the paths to files or folders in your script and make sure they exist. I ran into this error because I did not have 'train' and 'val' folders created for the script to save the downloaded images to. I got the error when the script attempted to run the function create_clip_embeddings().


[Plugin]: Just Animations

Plugin name
Just Animations
download page
https://www.spigotmc.org/resources/justanimations-1-18-1-19.101404/
Source code URL
https://github.com/JustDoom/JustAnimations
Paid?

[X] is paid for?

Works after https://github.com/SoakProject/Soak-Plugin/pull/8
minor issue where the plugin safely crashes when no worldedit region is selected


DirectQueryCapabilities.From Output

Hello,
When a Table.View handles DirectQueryCapabilities.From using OnInvoke, per https://github.com/microsoft/DataConnectors/issues/318#issuecomment-674159531, the method names in the table that's returned should be the methods that the view supports for folding when in Direct Query mode.
However, "supports for folding" can mean several different things:

It could mean "supported for folding when invoked on the view" -- example: Table.FirstN(myView, 100)
It could mean "supported for folding when included in a Table.SelectRows expression" -- example: Table.SelectRows(myView, each List.Contains(someList, [value]))
It could mean "supported for folding when included in a Table.AddColumn column expression -- example: Table.AddColumn(myView, "Total", List.Sum(someList))
etc.

When handling DirectQueryCapabilities.From using OnInvoke, if I list a method in the table that's returned, am I promising that it will be supported:

Everywhere it could be used with my view?
Just that its use is supported in at least one of the places where it could be used with my view?
Something else?

Thank you,
Ben

Direct Query is a feature of Analysis Services. The purpose of the DirectQueryCapabilities.From contract is to give the AS engine some idea of what it can translate from DAX to be pushed down to the data source. If we don't report e.g. Text.Upper, then it won't try to send us the equivalent of the UPPER function. Analysis Services works on tables of scalar values. This puts a pretty natural constraint on the kind of contexts in which individual functions might matter. For instance, Table.FirstN is only meaningful at the table view and not at a "cell" view because cells can never have tables or lists in them.
For scalar functions in scalar contexts, "supported" is means both Table.SelectRows and Table.AddColumn.


Migrating theme to 18.0.0 keycloak

Hello there!
We started developing our theme since 17.0.1 version. Yesterday, we tried to migrate to 18.0.0 version, but after this something started behave weird, routes for resources were somelike http://domain/resources/18.0.0/... and so that obviously was 404.
Does need to rebuilt theme or package changes in Keycloakify for 18.0.0 version?

Damnit.
I havent really validated keyckloak 18 yet.
It's silly but I can't get it to work, with or without keycloakify.
Screenshots would help a lot. Reproduction path woud be even better.

I have opened an issue to move forward with the Keycloak 18 migration.
https://github.com/keycloak/keycloak-web/issues/306
In the meantime, make sure the problem you are experiencing are actually related with Keycloakify.
Please test with the default theme and see if things works as expected.
Best regards

Hi @hookenful,
After testing with Keycloak 18 I didn't notice any issue.
And no, you aren't supposed to need to rebuild the theme to upgrade Keycloak.
I am closing this but I am here to help if you need any further support.


Extend the documentation with more information about multidimensional ranges

Description
The oneTBB documentation lacks information about multidimensional ranges (blocked_range2d/3d, blocked_nd_range) that the library provides.
Addresses #1529.
Type of change

[x ] documentation - documentation update

blocked_nd_range_example.h is the example source code included (by this patch) into and described in the documentation. blocked_nd_range_example.cpp is a test for this code; it will not be shown in the docs. Both files were taken from the TBB 2020 documentation for the blocked_rangeNd preview feature and adjusted to match blocked_nd_range. I have not tested the code however.

@aepanchi thanks. I have tried to improve the text based on your suggestions.


Add Serverspec and infrataster integration tests

Hi Chris,
First of all, thanks for all your work :smiley: I'm considering integrating this cookbook with the postfix-dovecot cookbook.
This is my first PR to include some integration tests using Serverspec and infrataster.
This PR also includes the following fixes:

Depend on mysql cookbook version 5: The next version does not have the mysql::client recipe.
Fix some new RuboCop offenses.

I fixed Ruby 1.9.3 error due to ohai version 8.

Thanks @zuazo, most appreciated.


chore: add full CR example

Add full NCP example
Specify full container image in platform page
Update versions to 24.10 beta4

minor comments otherwise lgtm


Fixed script issue in the zsh

in zsh rsvm ls throws rsvm_ls:local:2: not valid in this context: nightly.20150626160230

I checked pr with zsh, and found another problem. :)
but I can handle that. thanks


Add key bind to copy path to clipboard without doing the cd

Maybe ctrl+enter or something from the fuzzy finder

To be determined: do we try to use a clipboard crate (haven't found any yet that seem to be cross-platform and well supported) or do we specify a copy_command in config and use it to copy from STDIN?

eh, more complicated than I thought and probably not actually that useful anyway. you can always just go ahead and do the cd, copy pwd, then use ctrlg or cd - to go back to where you were.


Bug 29784 - Policy Assignment Enforcement Mode from Upstream Policy Assignments

Overview/Summary
The PR ensures we bring the upstream default enforcement mode from the upstream repository for policy assignments.
We also revert a change to the casing of log analytics workspace id when syncing from upstream as a few policies seem to use it and we want to avoid unnecessary plan changes for Terraform users.
This PR fixes/adds/changes/removes

AB#29784

Breaking Changes
None
Testing Evidence
N/A
As part of this Pull Request I have

[ ] Checked for duplicate Pull Requests
[ ] Associated it with relevant issues, for tracking and closure.
[ ] Ensured my code/branch is up-to-date with the latest changes in the main branch
[ ] Performed testing and provided evidence.
[ ] Updated relevant and associated documentation.

AB#29784

/azp run unit

/azp run unit

/azp run update

/azp run unit

@matt-FFFFFF I note that this change updates the default enforcement mode for many policies. I guess this may need to go into a minor release and have some release notes?
It also adds a new policy for TDE.
Do we need to make note of how to revert to the previous enforcement mode behaviour with overrides in the release notes?

/azp run unit

/azp run update

/azp run unit

/azp run unit

/azp run unit

/azp run update

/azp run unit


Getting error when I run eval $(minikube docker-env)

I build and run docker image successfully, but when I run the following command I got this error:
$ eval $(minikube docker-env)

💣  Error getting config: stat /home/xxxx/.minikube/profiles/minikube/config.json: no such file or directory
😿  minikube is exiting due to an error. If the above message is not useful, open an issue:
👉  https://github.com/kubernetes/minikube/issues/new/choose

$ minikube version
minikube version: v1.6.2
commit: 54f28ac5d3a815d
$ minikube status
host:
kubelet:
apiserver:
kubeconfig:
I tried to minikube start and minikube delete but nothing. Is there anything that I missed?

I think you try deleting your minikube folder:
$ minikube delete
$ rm -rf /home/xxxx/.minikube


Fix missing showWeekNumbers in vaadin-date-picker-light. Fixes #456

This change is

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

BTW, there are  unused iron-form and iron-meta imports in the custom input test (and maybe others need to be checked as well).
I left these untouched for the moment since unrelated, but some cleanup would be nice.
@tomivirkki WDYT?

👍  Unrelated cleanup can be done in a separate PR

Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.

a discussion (no related file):
Tests failure in Safari 10 is unrelated to this PR.

Comments from Reviewable

Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion.

Comments from Reviewable

Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion.

Comments from Reviewable


Missing Tailwind utility classes?

Been loving this so far, can't thank you enough for doing this!
I have ran into a few situations where I would have expected to see Tailwind classes working fine but they don't autocomplete in VSCode, and produce no CSS when added to DOM elements. Examples are h-auto, aspect-video, fill-current.
I have been digging through your blog post, and the Tailwind config but can't seem to figure out what's causing this. Other classes work just fine. What am I missing? 😄

Consider providing a project that reproduces the unexpected behavior.

It's 100% the empty presets array in the config. 😄

Ah yeh that was set like that to slim down stuff as much as possible. We're only using Tailwind utilities to apply design tokens (with the odd flex property too), so we don't need that stuff in the boilerplate!

Thanks for sharing your use case for this empty array!
From my quick analysis, removing this added nothing to the final CSS file size.


any command to do update such as bqckup -update

Only check:
bqckup check-update

with Update
bqckup check-update --update


Reconstruction

Hi,
Is there a way to reconstruct the time domain signal from the gammatone-gram representation?
Thanks!

Hi,
Any updates on this?
Thanks

Same question here, any updates?

Direct add all frequency channels up? since all filters are time-aligned and have 0dB gain in center frequency

It is impossible to reconstruct guys, you can't invert a 'compressed' representation into an STFT.


cannot find package 'stream' imported from node_modules/solid-start/node_modules/solid-start/node/globals.js

Project created with pnpm create solid.
With typescript and without typescript.
Using node v16.3.0 on linux/pop-os

I'm able to work around this by upgrading Nodejs to the 18.12.1 LTS release, fwiw.

Hmm.. I am pretty sure newer 16's should be fine too. We using undici and it uses some node internals that came in later 16 releases.


Added arm template support for Azure provisioner

Azure ARM templates (V2 API) support is added as a arm package under Azure provisioner. Old Azure
package renamed as management package again under Azure provisioner. The new arm package solely depend upon Azure ARM SDK to provision/start/halt/destroy the Azure VMs. Currently, it only supports reading VM images from the Azure Store. To provision a VM, it requires OAuth Creds and a ResourceGroup which contains a StorageAccount, Virtual Network and a Subnet.
@lilirui @zquestz @mbhinder @tw4dl

@lilirui could use this branch to test out the azure provisioning with bare os

Can you rebase the PR with two commits to split the new code for libretto and gvt dependencies?

Done

NIT: Would add a constant for the "UNKNOWN" state.
LGTM

I can fetch these missing imports if you want.
github.com/Azure/azure-sdk-for-go/arm/compute
github.com/Azure/azure-sdk-for-go/arm/network
github.com/Azure/azure-sdk-for-go/arm/resources/resources
github.com/Azure/azure-sdk-for-go/arm/storage
github.com/Azure/azure-sdk-for-go/storage
github.com/Azure/go-autorest/autorest
github.com/Azure/go-autorest/autorest/azure

@y0ssar1an i already have the vendor. I just took them out to make the PR reviewing easier. Once the review is done, i will add vendor files back to the PR. Thanks for offering your help though

Should update the readme to add the sample code.

Wait, what's the difference between ARM and management? I noticed they both have their own vm.go file...

golint ./...

Done, fixed all the lint errors for my arm packages and add an Azure example to the README.

@variadico you can take a look at here to find out the difference between management and arm APIs.

LGTM, please commit back the dependencies and let's wait for green test.

Done, all the tests are green.


pause functionality

Hi,
Thanks for your amazing work this is by far the best package I have found for audio recording with React Native. This isn't an issue more a question about features. Do you plan on adding a pause functionality in the near future?

Did u find any way for pause and resume ?

Not yet unfortuently

Do you know any lib in react native for recording audio with pause and resume functionality and with output in .wav format?

Audio recorder player might do the trick? https://www.npmjs.com/package/react-native-audio-recorder-player or expo-av? I personally found this one the best and we're streaming audio to a server so it allowed us to do that with ease.


Autogenerate CRDs

CRDs are currently written by hand. These should be automated using a generator like kubebuilder.

#1037 , to be released as KIC 2.0, solves that.


Validation Data is not generated properly for my dataset

Hi, Really appreciate your work on the TFT.
I am trying to use my own dataset in the code but there seems to be a bug  due to which the dataset is not being loaded properly for validation.
The train dataloader is good. but the validation dataloader only has one batch and also validation(TimeSeriesDataSet) has only 1 entry.
Below is my complete code
data = load_csv()
data['date']= pd.to_datetime(data['date'])
data.reset_index(inplace=True, drop=True)
data.reset_index(inplace=True)
data.rename(columns={'index':'time_idx'}, inplace=True) # I use index as time_idx since my data is of minute frequency

validation_len = int(len(data) * 0.1)
training_cutoff = int(len(data)) - validation_len

max_encode_length = 36
max_prediction_length = 6

print('Len of training data is : ',len(data[:training_cutoff]))
print('Len of val data is : ',len(data[training_cutoff:]))
training = TimeSeriesDataSet(
    data[:training_cutoff],
    time_idx="time_idx",
    target="T",
    group_ids=["Symbol"],
    max_encoder_length=max_encode_length,
    max_prediction_length=max_prediction_length,
    static_categoricals=["Symbol"],
    static_reals=[],
    time_varying_known_categoricals=[
        "hour_of_day",
        "day_of_week",
    ],
    time_varying_known_reals=[
        "time_idx",
    ],
    time_varying_unknown_categoricals=[],
    time_varying_unknown_reals=["V1", "V2","V3", "T", "V4"],
    constant_fill_strategy={"T": 0},
    dropout_categoricals=[],
)
print('Max Prediction Index : ',training.index.time.max())
validation = TimeSeriesDataSet.from_dataset(training, data, min_prediction_idx=training.index.time.max()+1)
batch_size = 128
train_dataloader = training.to_dataloader(train=True, batch_size=batch_size, num_workers=1)
val_dataloader = validation.to_dataloader(train=False, batch_size=batch_size, num_workers=1)

print(len(training), len(validation))
print(len(train_dataloader), len(val_dataloader))`

This is what gets printed by the code :
Len of training data is : 25920
Len of val data is : 2880
Min Prediction Index Value is 25919

25920 1
202 1

You can see that the training dataset is good and the batches are also okay but validation batch is also 1 and dataset length is also 1.
One more thing. if i use predict = False it generates validation data correctly but another bug arises due to that.
if i use predict = True, only 1 batch and 1 sequence is given
if i use predict_mode = true on the training dataset it also generates only 1 batch.
Here is a sample of my CSV
sample_data.csv.zip
Please Help

Please help me how to use the attached dataset through the forecasting library.

The first error is due to an unfortunate default in the from_dataset method. The default was predict=True which causes to the dataset to select the last samples per timeseries for prediction - as you only have one timeseries there is only one sample). I changed the default to predict=False. You might want to pass now stop_randomization=True for the validation dataset.
The second error is a genuine error (1 off error) which I just fixed. Thanks for bringing this to my attention! The fix is pushed to master, so installing from git should do the job.

Got another error after predict=False
File "/Users/wilson/PycharmProjects/stocky/predictors/temporal_fusion_transformer/main_torch_forecasting_stock.py", line 154, in <module>
    tft, train_dataloader=train_dataloader, val_dataloaders=val_dataloader
  File "/usr/local/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1044, in fit
    results = self.run_pretrain_routine(model)
  File "/usr/local/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1196, in run_pretrain_routine
    False)
  File "/usr/local/lib/python3.7/site-packages/pytorch_lightning/trainer/evaluation_loop.py", line 293, in _evaluate
    output = self.evaluation_forward(model, batch, batch_idx, dataloader_idx, test_mode)
  File "/usr/local/lib/python3.7/site-packages/pytorch_lightning/trainer/evaluation_loop.py", line 470, in evaluation_forward
    output = model.validation_step(*args)
  File "/Users/wilson/PycharmProjects/stocky/pytorch_forecasting/models/base_model.py", line 126, in validation_step
    log, _ = self.step(x, y, batch_idx, label="val")
  File "/Users/wilson/PycharmProjects/stocky/pytorch_forecasting/models/temporal_fusion_transformer/__init__.py", line 544, in step
    attention_prediction_horizon=0,  # attention only for first prediction horizon
  File "/Users/wilson/PycharmProjects/stocky/pytorch_forecasting/models/temporal_fusion_transformer/__init__.py", line 576, in interpret_output
    encoder_length_histogram = integer_histogram(out["encoder_lengths"], min=0, max=self.hparams.max_encoder_length)
  File "/Users/wilson/PycharmProjects/stocky/pytorch_forecasting/utils.py", line 27, in integer_histogram
    dim=0, index=uniques - min, src=counts
RuntimeError: index 37 is out of bounds for dimension 0 with size 37

This is probably due to only having a single timeseries in the dataset. I will have a closer look later or on the weekend. You could probably run with log_interval=-1 in the meantime and skip the interpretation step alltogether.

Yeah, For Now I commented out just the interpretation part because i would like to be able to see prediction outputs in tensorboard. But I found an issue in the visualisation.
You are plotting Non Normalised target vs output(not yet denormalised).

See the scale of the graph. The target value is about 300 and prediction is about 0 point something. So its not denormalised back again

Sorry for taking a bit of time. The plotting functionality is not broken. However, I think there are two issues here:

The network has probably not trained for long enough
To train, timeseries should be normalized (I think almost all networks require this) for faster convergence and better generalisation.

I am working on this normalization so you do not have to take care of it manually.

Thanks, I will try the model again once the normalization part is done.

Also please try to fix the issue : https://github.com/jdb78/pytorch_forecasting/issues/1#issuecomment-664624574

Give it another try. I fixed a couple of issues including target normalization. Keep in mind that the strength of the algorithm is forecasting multiple timeseries.

Closing this as there were numerous fixed to the package - thanks again for reporting this issue! Please feel encouraged to raise a new issue in case you encounter any bugs.


Investigate Performance impact of ItemsRepeater control instead of ListView

Summary of the new feature/enhancement

It has been suggested that ItemsRepeater may be a better alternative for content heavy layout, and adding animations.
Proposed technical implementation details (optional)
Replace the  control in the ResultsList.xaml file with an  Control.
Please consult the Xaml Controls Gallery

The goal of this investigation is to see results appear in the UI quicker than they currently do, without any "poping" or flashing as results appear in".

@crutkas @somil55

IMO do the flip, then different issue for animations

@crutkas Can we close this as well? This was required when we were facing virtualization issues with UWP ListView.


No wireless LAN interfaces found

No wireless LAN interfaces found

@laolihaile, Thanks for the question!
In response to your question, we have complemented the README.md with instructions on how to turn on the WiFi.
Please follow the steps given there.

@laolihaile，感谢提问！
针对您的问题，我们在 README.md 中补充了有关如何打开 WiFi 的说明。
请按照那里给出的步骤操作。

I can't perform the operations in the README.md,as shown in the picture, I cannot open WIFI

Do you have 'normal' wired Ethernet working on your Raspberry Pi?
Have you any other devices working with WiFi, like another Raspberry Pi?
You should at least have the Raspberry working with Ethernet as soon as you connect the cable.

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.


Interactable.View doesn't work in nested Views on Android

import React, { PureComponent } from 'react';
import { View, StyleSheet } from 'react-native';
import Interactable from 'react-native-interactable';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  redSquare: {
    width: 50,
    height: 50,
    backgroundColor: 'red',
  },
});

class Playground extends PureComponent {
  render() {
    return (
      <View style={styles.container}>
        <View
          style={styles.container}
          onLayout={this.onLayout}
        >
          <Interactable.View
            snapPoints={[{ x: 0, y: 0 }, { x: 100, y: 100 }]}
            animatedNativeDriver
          >
            <View style={styles.redSquare} />
          </Interactable.View>
        </View>
      </View>
    );
  }

  onLayout = () => {
    console.log('ON LAYOUT');
  }
}

export default Playground;

If you drag the Interactable View to the second snap point (x: 100, y: 100), you cannot interact with it anymore
   Android version: 5.0.2
    "react": "16.5.0",
    "react-native": "0.57.1",
    "react-native-interactable": "^0.1.10",

Please help !!!

Does it work on iOS? can you provide a small reproducible project with that demonstrates this bug?

@quan118 Please remove the onLayout from the view it is on (You can place it on the 'redSqure' view if you wish).

Try pointerEvents="box-none" on the Views.

@quan118 Did this solve your issue? Is it okay to close?


Swift 5 support

It seems like Xcode still thinks this pod is not in swift 5, why do I still see a Migrate to swift 5 Option in 1.8.1 version?
Great pod

Hmm, interesting. I’ll have to recompile with the latest version of Xcode and see what’s going on. It may need to be updated.


Add supported modules table for GDPR Enforcement module.

The GDPR Enforcement modules requires bid adapters, userid submodules and analytics adapters to provide GVL ID, otherwise the module will be blocked by default unless its present in vendorExceptions.
Related PR: https://github.com/prebid/Prebid.js/pull/5643

Ok - added the gvl_id field to the BIDDER.md files and made the list dynamic.
We'll need address the analytics adapters and user ID modules at some point, but there are fewer of them.

Thanks for making the list dynamic. Two thoughts:

We should add this line, If you have an IAB Global Vendor List ID, add gvl_id: ID. There's no default. Prebid.js PR Review Guidelines as well. I'll create a commit to add this.
For Analytics and User Id submodules, since we currently don't have a separate md file with details for each of them, for now I can update the list periodically.


Update SushiMaker for latest contract

Maker is still configured to use an old address, the latest version of maker is 0xE11fc0B43ab98Eb91e9836129d1ee7c3Bc95df50

Update was already done here : https://github.com/sushiswap/sushiswap-subgraph/commit/8e20ec233ce4ead6f6d2a19a86df77cec00e3cdb
Maker subgraph seems to sync correctly. Closing this


indention error in user_input line

(Put an X inside the [ ] to denote check mark [X].)

[ ] If creating a new file :

[ ] added links to it in the README files ?
[ ] included tests with it ?
[ ] added description (overview of algorithm, time and space compleixty, and possible edge case) in docstrings ?

[ ] if done some changes :

[ ] wrote short description in the PR explaining what the changes do ?
[ ] Fixes #[issue number] if related to any issue

[ ] other

Pull Request Test Coverage Report for Build 828

0 of 0   changed or added relevant lines in 0 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.03%) to 67.873%

Files with Coverage Reduction
New Missed Lines
%

algorithms/sort/top_sort.py
2
90.38%

Totals

Change from base Build 827:
-0.03%

Covered Lines:
4409

Relevant Lines:
6496

💛  - Coveralls


Add plugin to support Aerospike Java client

[x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. #10992 https://github.com/apache/skywalking/issues/10992
[x] Update the CHANGES log.

Please fix CI, and you should run the build, run UT and test scenarios locally first.

Running  UT and test scenarios locally works fine,pom.xml file forgot to add license header,already fixed。

Any update?

yes,I update after get off work.


refactor: move last cache to influxdb3_cache crate

Moved all of the last cache implementation into the influxdb3_cache crate from the influxdb3_write crate.
This also splits out the implementation of the cache, which now resides in influxdb3_cache::last_cache, into three modules:

cache.rs: the core cache implementation
provider.rs: the cache provider used by the database to hold multiple caches.
table_function.rs: same as before, holds the DataFusion impls

Tests were preserved and moved to mod.rs, however, they were updated to not rely on the WriteBuffer implementation any more, and instead use the types in the influxdb3_cache::last_cache module directly. This simplified the test code, while not changing any of the test assertions at all.
These changes align the last cache and metadata cache implementations in the same place in the codebase, and set the stage for https://github.com/influxdata/influxdb/issues/25578.
Closes #25579

@pauldix yes all the tests within the last_cache module are checking the same behaviour, they just have been moved. I sadly wasn't able to get the diff to capture that.
I was hoping that I could do a move that was more or less 1:1, but pulling the code out of the influxdb3_write crate made that difficult since the last cache tests were using a WriteBufferImpl originally.
I did do a bit of cleanup in the API while I was at it, but the tests give pretty solid coverage of the various APIs for creation/deletion/pushing writes/doing queries.


Is NetFramework 4.7.2 runtime supported?

I am encountering an issue where running a basic code snippet to connect a producer client runs into ConnectException's while executing on the .NET Framework 4.7 runtime. The same code works without any issues on the NetCoreApp 3.1 runtime. While on .NET Framework, the server shows multiple repeated connectivity attempts with incremental backoff spacing until  the .NET Framework -based producer client  throws the Pulsar.Client.Common.ConnectException after about 30 seconds on the last line of the included sample below:
           _client = new PulsarClientBuilder()
                .ServiceUrl("pulsar://server.fqdn:6650")
                .Build();

            _clientContactProducer = await new ProducerBuilder(_client).Topic("client-contact")
                .CreateAsync();

Will be grateful for any pointers to fix/debug this issue on  .NET Framework.
Thanks!
Val

It is supported, usually the issue lies in missing/incorrect nuget dependencies, try running the example in Debug mode and check ongoing exceptions. Also inspect logs, usually the details of the ConnectException can be found there. Meanwhile I'm going to add an example project on Full .NET with all required config tweaks.

Added an example for the oldest framework we support - dotnet461, you can check it up here

Thanks so much for putting the NetFramework sample together. It did work in my environment.
I will be closing this issue soon once I figure out the delta between the sample and my project setup

I was successfully able to upgrade dependencies in my project using info on versions from the sample project.
Although I initially attempted to identify the specific faulty dependency by attempting to upgrade deps peacemeal, I wasn't able to finish this task.
I ended up instead pasting over the contents of packages.config with the contents from the sample project. Since HintPath references in the .csproj file continued to point to the wrong dep versions, I also ended up converting from package.config to the PackageReference format, which positively solved this issue.
Thank you for your help and work in this project!


Unexpected end of JSON input while parsing near '...

🐛 Bug Report
I am trying to do npm install but getting the following error
Unexpected end of JSON input while parsing near '...
To Reproduce
Steps to reproduce the behavior:
Expected behavior

Link to runnable example or repository (highly encouraged)

UI Kitten and Eva version

Package
Version

@eva-design/eva

@ui-kitten/components

Environment information
System:
OS: Windows 7 6.1.7601
CPU: (4) x64 Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
Binaries:
Node: 12.16.3 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD

Please follow the Run section of the docs.


Azure AD Directory Schema custom extensions

We need to migrate the following articles into the existing Azure AD documentation and updated to use Microsoft Graph API:
https://docs.microsoft.com/en-us/previous-versions/azure/ad/graph/howto/azure-ad-graph-api-directory-schema-extensions
https://docs.microsoft.com/en-us/powershell/azure/active-directory/using-extension-attributes-sample?view=azureadps-2.0

@willfiddes, Thanks for taking time to share your feedback and the URLs of the docs. We are taking a look into this and will get back to you soon.

@willfiddes We checked this and found that the current recommendation is to move to the newer Microsoft Graph Extensions to add custom data. We still have support for schema extensions for backward compatibility.

Please check the newer graph extensibility docs which talk about adding custom data to resources using extensions
https://docs.microsoft.com/en-us/graph/extensibility-overview  . Hope this clarifies the query .
Thank you


new proof of ownership card design

duplicate of #637

duplicate of https://github.com/TalaoDAO/AltMe/issues/637


interpret saves h5 files extremely slowly

For a run of about 12k regions, each 1 kb wide, running the interpret script takes about as long to run through the regions and generate scores as it does to save those scores (about 1 GB) to disk. Since this is a single call to DeepDish, I wonder if this could be optimized in some way to write those files much faster.

use the shap_scores script
https://github.com/kundajelab/basepairmodels/blob/master/basepairmodels/cli/shap_scores.py


expression in end-date attribute doesn't work

Hallo, when I put expression in end-date eg. end-date="someModel" it don't work while {{someModel}} work beside  element. Where is problem, am I doing something wrong?

hi siddii,
seems its not working again with your latest release. any work around please?


hardcoded config file path for action kubeconfig

Action kubeconfig writes the configuration to a harcoded path /home/ubuntu/config [1]
The kubeconfig file path should be parameterised as part of action.
[1] https://github.com/canonical/charm-microk8s/blob/master/src/microk8scluster.py#L477

This change is for legacy charm for which PR is merged and for the new charm this is already taken care.
So the issue can be closed.


fix: Fix grammar to avoid confusion

What this PR does / why we need it:
This clarifies whether or not this lab covers the authoring of Helm charts for participants' workloads
Which issue(s) this PR fixes:
Fixes #
Quality checks

[x] My content adheres to the style guidelines
[ ] I ran make test module="<module>" it was successful (see https://github.com/aws-samples/eks-workshop-v2/blob/main/docs/automated_tests.md)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thanks @valentineezeja really appreciate you picking this up

No worries, thanks


Separate CONFIG_BCH from CONFIG_DISABLE_MOUNTPOINT

Summary
Separate CONFIG_BCH from CONFIG_DISABLE_MOUNTPOINT
Impact
Testing

requires https://github.com/apache/incubator-nuttx-apps/pull/617 to pass build

@yamt do you think the PR ready for merging?

@xiaoxiang781216 yes


added more logos

Pushed the logos again as I didn't see them merged

Hi Emidowojo.. Nice works you have there:
Love the simplicity of the first logo
The cartoon-ey style of the second logo makes me nostalgic.. If I were into research, it definitely made me miss being in the science field.
The third one gives the technology side of OLS vibe.. Lovely!
The last one just like the second, made me nostalgic. Well done!
I should say though, I don’t think there is a task that require us to make a new logo for Open Life Science. I know there are some for cohorts logo and a discussion for renaming OLS.. I will check again to be sure though.
Again... Well done!

Oh.... WOW! Not much else to add except that these blow me away 🙏 They're not something we can use as official logos, but they're so beautiful they definitely count as a contribution and proof that you're good at design. It's great you included the svg as well as the png!

Thank you so much @yochannah

Hi, Emidowojo. 👋
Thank you for putting so much effort into this PR! ❤As much as we won't be merging these, as we have an official logos now, your skills are evident. Please, keep creating magic. Best of luck!


track down & squash all ferc1 transform warnings

We've been cruising adding new ferc1 table transformers (old dbf +xbrl) and we've apparently been a liiiittle sloppy about making sure we squash warnings along the way. The scope of this issue is to identify all warnings and squash or silence them (when appropriate).
Warnings

[X] 2022-11-11 12:17:40 [ WARNING] catalystcoop.pudl.metadata.classes:1463 Values in fuel_units column are not included in categorical values in field enum constraint and will be converted to nulls.
[X] 2022-11-11 12:17:40 [ WARNING] catalystcoop.pudl.transform.classes:236 Expected column opex_per_kwh not found in dataframe during application of convert_units.
[x] 2022-11-11 12:17:44 [ WARNING] catalystcoop.pudl.transform.classes:1120 plants_steam_ferc1: Discrepancy between dataframe columns and rename dictionary keys. Unshared values: {'end_date', 'start_date', 'date'}
[x] 2022-11-11 14:07:27 [ WARNING] catalystcoop.pudl.metadata.classes:1465 Values in plant_type column are not included in categorical values in field enum constraint and will be converted to nulls (['']).
[x] 2022-11-11 14:07:27 [ WARNING] catalystcoop.pudl.metadata.classes:1465 Values in construction_type column are not included in categorical values in field enum constraint and will be converted to nulls (['']).
[-] 2022-11-11 14:12:25 [ WARNING] catalystcoop.pudl.transform.ferc1:580 fuel_ferc1: Found 1 duplicate record_ids. ['f1_fuel_2000_12_24_3_1'].

The one remaining warning from the fuel table is for a very empty record that gets dropped via drop_invalid_rows. going to ignore for now.

Done!


(PUP-5584) Force UTF-8 encoding when reading JSON from disk

Previously, Puppet would read any JSON it got from the network as UTF-8, but treat JSON on-disk as being part of the system locale. Since we only read JSON from disk when reading something cached from the network, we always want to treat those JSON files as also UTF-8.

I'm actually kind of curious if maybe on Windows we get UTF-16 by default... Let me hop into Pry on a windows VM before anybody merges this

YMMV, but when I tried this on Windows I got IBM-437 instead of any UTF.

@Sharpie After a bit more testing, I'm seeing even cooler behavior than that - within one run I got "UTF-8" for one JSON blob, and "ASCII-8BIT" for another. No, I don't know how/why this is the case.
I'm not sure there's gonna be good consistency, and it's possible we're really better off using "ASCII-8BIT" in this and just treating cached JSON as a blob of "random data"

@joshcooper this is updated to encode on write, and force encoding on read.
Unfortunately, the YAML code is shared across cached catalog and facts terminii, as well as used for extended CSR attributes. I don't think we want to force the encodings of either of those to UTF-8 (right now, anyway). Given that, and given the fact that we default to JSON and generally don't want to be using YAML for stuff, I'm inclined to say that we just document the limition re: encodings with the YAML cached catalog terminus instead of trying to disentangle our YAML stuff for this ticket.
@ferventcoder I don't think read_preserve_line_endings is what we want to use here - Puppet::Util.replace_file doesn't write in binary, which means line endings will be munged on the write to disk. If we then use preserve_line_endings, we'll end up reading the transformed file, which is not what we want. In addition, the encoding detection isn't necessary if we are enforcing encoding when we write. Is there any other reason to be using the file_system stuff in this code path?

Is there any other reason to be using the file_system stuff in this code path?

@branan All puppet use of file system calls should be going through the file_system stuff. Not specifically the preserve_line_endings bit, but one of the other calls. If that means a method needs to be added to it, then a method should be added there. It guarantees that all file access calls are handled cross platform appropriately.

Puppet::Util.replace_file doesn't write in binary, which means line endings will be munged on the write to disk.

@branan It is read back in in binary because Windows... I also mentioned the name of the function is probably not technically the best earlier - it's actually reading a file with open binary read and try UTF-8 encoding, see if it is valid, fall back to the default_external encoding, see if that is valid, then fall back to just File.read.
@joshcooper followup from the original conversation - the read_preserve_line_endings only looks at a file with no idea what the encoding was and it doesn't attempt to force an encoding. I was originally asking if the read_preserve_line_endings, upon evaluating these badly saved files would come back with something since it does what I mentioned above.
def read_preserve_line_endings(path)
    contents = path.read( :mode => 'rb', :encoding => Encoding::UTF_8)
    contents = path.read( :mode => 'rb', :encoding => Encoding::default_external) unless contents.valid_encoding?
    contents = path.read unless contents.valid_encoding?

    contents
  end

I'm fine skipping 'yaml'.
Using file_system.read seems fine.
@ferventcoder read_preserve_line_endings is problematic, because it's just guessing what the encoding was when the file was written out. So it's possible for a non-UTF8 encoded file to appear as valid UTF8 when read back in.

OK, it's updated to use file_system.read here. I'm not gonna go in and make replace_file use file_system under the hood for this ticket - way out of scope. So writing is still going straight through to the ruby File stuff AFAICT from scanning that code

OK, it's updated to use file_system.read here.

:+1:

I'm not gonna go in and make replace_file use file_system under the hood for this ticket - way out of scope.

That's fair.

read_preserve_line_endings is problematic, because it's just guessing what the encoding was when the file was written out. So it's possible for a non-UTF8 encoded file to appear as valid UTF8 when read back in.

@joshcooper Yep, agreed. It's meant for when we don't know what the encoding is supposed to be. In this case we have a deterministic way of knowing so I agree with the approach. :+1:  :D

I'm seeing a problem when trying to download a catalog, and maybe it's the ASCII-8BIT issue you were seeing earlier. I have a module that contains the chocolatey.config.erb on my master (webrick). When I download the catalog, with this PR, and change my locale on the agent, I get:
$ env LC_CTYPE=de_DE.ISO8859-1 bundle exec puppet agent -t --server arcturus --http_debug
...
Error: "\xEF" from ASCII-8BIT to UTF-8
Error: Could not retrieve catalog from remote server: "\xEF" from ASCII-8BIT to UTF-8
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

The problem occurs when trying to serialize the catalog to json: https://github.com/puppetlabs/puppet/blob/stable/lib/puppet/indirector/json.rb#L73-L75. Specifically object.render('pson') is returning an ASCII-8BIT encoded string, preserving the BOM character, so then the encode('utf-8') fails.
Interestingly, the upstream pure json library does the following when converting UTF-8 strings to json:
string = string.dup
string.force_encoding(::Encoding::ASCII_8BIT)
string.gsub!(/["\\\x0-\x1f]/) { MAP[$&] }
string.force_encoding(::Encoding::UTF_8)
string

But our vendored pure ruby is missing the last force_encoding line. So our vendored pure ruby is always returning ASCII-8BIT strings, which seems wrong:
string = string.dup
string << '' # XXX workaround: avoid buffer sharing
string.force_encoding(Encoding::ASCII_8BIT)
string.gsub!(/["\\\x0-\x1f]/) { MAP[$MATCH] }
string

So a couple of things:

Adding string.force_encoding(::Encoding::UTF_8) to our vendored generator seems to do the trick.
I'm surprised our vendored PSON library has been "leaking" ASCII-8BIT strings. I'd assume that would cause problems elsewhere in puppet.
I wonder what other fixes have been made to upstream pure ruby

@joshcooper I wonder if it actually makes sense for us to just cache the catalogs as ASCI-8BIt instead of UTF-8? It shouldn't affect the structure of the document at all, and in cases where we have weirdly-encoded stuff in file content it'll just pass it through.

I wonder if it actually makes sense for us to just cache the catalogs as ASCI-8BIt

I think that should work and is probably fine for now. I'll take a closer look.

especially since PSON likes to be all ASCII-8BIT-y

I think it only uses ASCII-8BIT so that it can apply a regex to individual bytes (not chars), so I see it as an "internal implementation detail" that the caller shouldn't be aware of. Also the utf_to_json method says:

Convert a UTF8 encoded Ruby string string to a JSON string, encoded with
UTF16 big endian characters as \u????, and return it.

So it accepts a UTF8 encoded string and represents UTF16 chars using \u, so the resulting string is valid UTF8:
irb(main):002:0> "hello \u20AC"
=> "hello €"
irb(main):003:0> "hello \u20AC".encoding
=> #<Encoding:UTF-8>

So I think the method should be returning valid UTF8, but I'm fine making that change later when we have more time to test.

I think that should work and is probably fine for now. I'll take a closer look.

Changing the save method to force encoding to ASCII-8BIT works for me (both when creating a new file, update existing file, and when running off cache). So yeah, let's update this PR.

@joshcooper this is updated to use ASCII-8BIT now.
We can't actually .encode to ASCII-8BIT on write - ruby rightly barfs when there's a unicode codepoint greater than 255 in the string. The force_encoding there isn't strictly necessary, since we're just dumping it to a file immediately, but I feel like it signals that we intend to treat cached catalogs as just a byte stream at all times, so I left it in.
This works right for me with with Charlie's dataset on Linux - cached catalog still parses as UTF-8 bytes when I examine it, and Puppet doesn't change anything when I force the cached catalog to be used.

We can't actually .encode to ASCII-8BIT on write

Is this a situation where we should use File.open(..., 'wb') where the b mode disables encoding and line ending conversions?
Quoth the docs:

"b"  Binary file mode
Suppresses EOL <-> CRLF conversion on Windows. And
sets external encoding to ASCII-8BIT unless explicitly
specified.

@Sharpie as long as we write and read with the same use (or lack thereof) of 'b', it'll match and not matter. I think it's worth it to let line endings be swapped on write, to keep the files more human-readable on Windows with editors that don't understand Unix line-endings.

Well, if an encoding conversion happens on write and then again on read, there could be issues as not all  encoding pairs are reversible. Using the 'b' mode is one way to ensure conversions don't happen at all.

@joshcooper Per our chat before lunch, I've double-checked the encoding of the catalog on the wire. It looks like even on Linux the catalog PSON is being detected as "ASCII-8BIT" from the HTTP request. Given that I think we want to use this as-is, instead of going back to UTF-8
[5] pry(#<Puppet::Resource::Catalog::Rest>)> uri
=> "/puppet/v3/catalog/localhost"
[6] pry(#<Puppet::Resource::Catalog::Rest>)> body.encoding
=> #<Encoding:ASCII-8BIT>

@Sharpie the only thing that gets munged in text mode is newlines, and that is totally symmetric and lossless. I think we actually want that munging as it makes it easier to view the JSON file with a windows text editor

Everything here is good. The only statement I disagree with is:

I think it's worth it to let line endings be swapped on write, to keep the files more human-readable on Windows with editors that don't understand Unix line-endings.

There are two things to consider here

You are making this change on read, but not saving it back to the file. If the file is checksummed, it could have unintended consequences.
This is not being done with any customer files.

Since this is likely only used as an internal file for Puppet, swapping line endings at read time only may not cause any real harm. But if it was anything user facing like their files, then I would suggest not changing the files at all. We don't know all of the scenarios in which customer files can break based on making any change to the file. In most cases changing line endings causes undesired behavior - see https://tickets.puppetlabs.com/browse/PUP-927.
With the following two constraints in mind, it is almost never okay to swap line endings. Perhaps this is a case where it is.

I think we actually want that munging as it makes it easier to view the JSON file with a windows text editor

There is only one text editor that I know of that has these issues (notepad.exe). Almost no other editor on Windows has this issue. One of the first things that Windows folks find is an editor replacement that doesn't lack even the simplest of features (not to mention just understanding simply LF is also a line ending).

Quick additional note about this PR for anyone else who comes along and is confused about the name of the encoding used, Encoding::ASCII_8BIT is an alias for Encoding::BINARY in Ruby.
[2] pry(main)> Encoding::ASCII_8BIT == Encoding::BINARY
=> true


ggmarginal(): broken coloring

Minimal example:
data = {
    'x': [0, 1, 1, 1],
    'y': [0, 1, 2, 2],
}
ggplot(data, aes("x", "y")) + \
    geom_bin2d() + \
    ggmarginal("t", layer=geom_point(aes(color='..count..'), stat='count', size=10)) + \
    ggmarginal("r", layer=geom_point(aes(color='..count..'), stat='count', size=10, orientation='y'))

Output:

In Lets-Plot v4.3.0 it's looks slightly different, but still doesn't work:

Here the data range in the legend should be up to 3.


Added options to be used in JavaCompilerImpl.

Can one of the admins verify this patch? (see README)

Hum I suppose I should also use those new options in JavaScriptCompilerImpl.

Lgtm!


fix: large screen expands to maxWidth 800

Hi ,,
great app, good job ..
noticed that when screen expands to higher width, the app appearance break ..

I though of adding a page wrapper widget that sets the maxWidth for page to 800, and wrap it with the main page ..
this is how the end result looks on larger screens ...

If you need any refactoring , reach out to me ..
thanks ..

Hi @mufarrah  👋
Thank you for the positive feedback and making a pull request. I will merge it.


api_docs tensor incoherent sentence

URL(s) with the issue:
https://www.tensorflow.org/api_docs/python/tf/Tensor
Description of issue (what needs changing):
The first code snippet in the URL is coming in between the sentence which makes it incoherent.
Submit a pull request?
I am new to open-source and wish to fix it myself. Can you please direct me to the file wherein the "view aliases" and "code snippets" are included. In the definition given in https://github.com/tensorflow/tensorflow/blob/v2.5.0/tensorflow/python/framework/ops.py#L264 would removing the newline character after first line in multiline comment solve the issue?

@Jahnvi13 Removing the newline character after first line in multiline comment will not resolve the issue here since the changes need to be done in different element/section. Thanks!

I am having a difficulty in understanding your query here. Can you please elaborate further, perhaps using screenshots to visualize better? Thanks!


Fit a 16x16 peg into a 16x16 hole

This should be possible, smdh!

This is actually already fixed if everything is lined up PERFECTLY… but take the following case:
| | | |
|---|---|---|---|
|　|　|⬛|
|　|　|　|
|　|🐊|⬛|
If 🐊 uses TargetBy(1, -1), he will not go into the gap, because at each calculation the x and y will be a float (and thus a little above, or a little below). Ideally the code would check to see if such gaps are being passed over, and (if possible) try to fit 🐊 in them instead.

(Note: Ideally this should not be a simple matter of rounding, so that the same holds true if you have two characters at float positions with a similar gap between them, and a third trying to fit between)

Rounding to the nearest pixel may be an appropriate solution to this problem, as it will ensure that any time a sprite looks like it can fit in a hole, it will.

However ^ will not alone solve the problem if the velocity vector is, say, ⟨1, -2⟩ (not possible right now but this may change in the future)

Nearest-pixel rounding has now been implemented, at least


adding eloreta based on Stefan's MATLAB code

@agramfort @stefanhaufe @anujanegi
could you please check this Python code for eLORETA which I basically translated from Stefan's MATLAB's code?

@AliHashemi-ai I spent 2 hours to prepare a function you could use based on the mne code. did you compare this implementation with mine?

sorry i've been sick this week, but i can takeover eLORETA. I already got started a bit

@AliHashemi-ai I spent 2 hours to prepare a function you could use based on the mne code. did you compare this implementation with mine?

@agramfort did you ping me or make a pull request since I have not received your message in github?

@AliHashemi-ai https://github.com/braindatalab/BSI-Zoo/issues/54

@AliHashemi-ai #54

@agramfort there are a couple of differences, which I will discuss in our meeting. The part based on Guido Nolte's code is similar.


Test with

Looking into a way the test suite for this repository could use <script type=module> as it would likely work in the future without any build tools or extra module loading support. With the help of a Service Worker shim that could be deleted in the future, these tests can be ran in Chrome today.
Well I'd really like to have a simple test harness like this, theres still a bunch of hurdles today to deal with. So this probably isn't something that should be merged.

<script type=module>  works today in Chrome and Safari! 🎉 this part has come along way.
Unfortunately custom module identifier resolves aren't implement nor spec'd out. Browsers have no way of handling import 'selector-set' today. This can be worked around with Service Workers. I think this could be a useful SW script to publish that rewrites import resolves into node_modules/ paths. But this still depends on SW, so even though Safari has come so far, it means we can't test there yet.
selector-set is the only runtime dependency here which publishes a jsnext main. That's great, but most npm packages aren't doing this yet.
Mocha and Chai aren't module friendly yet. Chai uses some magic to write its CJS exports which isn't super friendly to tools ES export scanning tools which expect exported functions to be declared statically. Ideally import {assert} from 'chai' could work here. Similar issue with mocha, its expected to be installed in the global environment.
Karma has its own entirely different mocha loading system which is also incompatible with modules.

CC: @mislav @keithamus @dgraham @koddsson @muan

Shame that safari hasn't implemented the service worker 😭 For what it's worth you can test this in firefox too by enabling the dom.moduleScripts.enabled flag in about:config.


Default explanation text for mobile-center test is poorly formatted

Fix for #93

Fixed the explanation text formatting by setting the colWidths on the noTableBorders settings set. colWidths are calculated from the current console width.

Fixed another problem which also broke output formatting in some consoles (e.g. cmder and powershell). It was caused by the presence of the CRLF characters in some of the category.txt files. cli-table2 doesn't take CR into account (i.e. doesn't removes it when wrapping strings to fit into table cell), thus breaking the formatting.

Here is how it looks like after the fix (powershell console as an example):

Please, note that there is no space between rightmost top cell and the one below it (see the red line on the next image):

Is it by design? Or should I add a horizontal space between them?

Please add a space between the two categories - it's too hard to read without it.

@christav I have addressed your comments in another commit. Can you, please, take a look on it?
The help messages for "test" and "apps set-current" after the changes look like this:


[Bug]: code_file not exposed

Describe the bug
Execution of code leaves artifacts and is polluting working directory. I need to create a post processing step to move these files out of working directory. It would be helpful to have the code_file string exposed.
Steps to reproduce
Execute code and try to find code_file
Model Used
gpt-4o
Expected Behavior
Expose code_file property if a code file is created.
I think it should come out of ConversableAgent._generate_code_execution_reply_using_executor
Screenshots and logs
Would like:
Am getting:

Additional Information
No response

My suggestion is
https://github.com/microsoft/autogen/blob/a246a79cdae3e282594b057bb0923932716ec47e/autogen/agentchat/conversable_agent.py#L1473
Suggestion
            return True, f"exitcode: {code_result.exit_code} ({exitcode2str})\nCode file: {code_result.code_file}\nCode output: {code_result.output}"

Closing in favor of: #3303


uvtask_list creation bottleneck

One processing unit loops over all tasks, instantiating UVTask objects. This is a significant bottleneck and needs to be addressed.

Fixed by time_in_jd branch


SpriteFont DrawString issue making text into black boxes

I'm trying to make a GUI SpriteBatch that'll render a rectangle and an FPS counter as a test, I'm using your vs-templates (Win32 no device resources) with a few changes just making it more polymorphic, that aside there's a bug in my code that turns the text into black boxes if layered above the drawn rectangle, I assume this is because it's trying to reference the texture I used for the rectangle (images below)

I made a different SpriteBatch instance for the FPS counter but it also gave me the same result (surprisingly??)
I assume it could be as I said, trying to reference the image I used for the rectangle instead of the SpriteFont textures or an unrelated issue relating to blendstates or something else.

-I also used RenderDoc to check if the FPS text displays correctly when layered under the rectangle and it displayed the text like normal

If it helps, this is practically the draw function every IElement2D uses.

Is the render target here alpha-blended?  Note that SpriteBatch defaults to using Premultiplied alpha, and if you are using straight-alpha with the rectangle it will be 'wrong' here.


The (where) clause doesn't work with (search) function!

When I run the where clause alone it work, and when I run the search alone it work, but when I combine both it always returns empty result!!!!
$result = Account::where('user_id', '=', $user->id)->search($this->query)->paginate();

My Model (Account) has:
    protected $searchable = [
        'columns' => [
            'accounts.url'      => 10,
            'accounts.note'     => 5,
        ],
        'joins' => [
            'users' => ['users.id', 'accounts.user_id'],
        ]
    ];

Can you try https://github.com/nicolaslopezj/searchable/pull/127 ? I had same problem.

I think #144 Will fix this problem


9/11 Publish

@Taojunshen,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

:x: Validation status: errors

File
Status
Preview URL
Details

:x:Error

Details

[Error] Manifest json file '.manifest.json' is invalid. Details: Value cannot be null.
Parameter name: pathUnderSubfolder

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:x: Validation status: errors

File
Status
Preview URL
Details

:x:Error

Details

[Error] Manifest json file '.manifest.json' is invalid. Details: Value cannot be null.
Parameter name: pathUnderSubfolder

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:x: Validation status: errors

File
Status
Preview URL
Details

:x:Error

Details

[Error] Manifest json file '.manifest.json' is invalid. Details: Value cannot be null.
Parameter name: pathUnderSubfolder

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@Taojunshen - There appear to be issues with an autogenerated file that is disrupting our ability to publish at all. Please fix ASAP.


Missing files

Hi:
I think it's missing these files in your repo:
$PWD/storage/rabbitmq-node-1
$PWD/storage/rabbitmq-node-2
$PWD/storage/rabbitmq-node-3
can you provide them?
Regards

They are not files, they are the paths in which the volume will be mounted at the host. You can change it to another path if you like.


Performance suggestions and benchmarking

Hi,
I am currently running an ATAC-seq dataset with 16 samples (with plans to expand in the future). The dataset involves two conditions, four treatments, and two replicates per treatment, and I would like to use DENIS for my donwstream analysis for TF and motifs searching.  I have some questions regarding the pipeline's performance and benchmarking :

Do you have any performance recommendations for this pipeline?
Specifically, how many CPUs does the pipeline requires?

Best,
Chloe

Hi Chloe,
thanks for your interest in the DENIS pipeline!
There is no minimum number of cores. I have successfully run this pipeline with 1 core. However, the number of cores greatly affects the runtime. Especially with a bigger dataset, you want to have as many cores as possible. I usually use something between 6-12 cores, which is reasonably fast. Still, expect a few hours of runtime. The runtime also depends on the size of your data and the number of motifs found. So you might have a rough idea of how long it will take.
Best wishes
Hendrik