queryopts.go - most functions are commented and can't be used

Hi,
I need to add queryOptions to my query. The problem is that nothing is exported and I see that I could use the functions in the file queryopts.go, only that for some reason most if it is commented. For example the function CustomQueryOption. Can you please make it useable?

Hi @ronib1 ,
Thanks for bringing this up. 0.8.0 supports adding all headers, but request_app_name and request_user don't currently work because of a server-side issue. We have a workaround that @AsafMah will be adding shortly. Please check back in a few days, and once the new version is released you should be able to set these properties.
We'll close this issue for now, feel free to reopen if that doesn't work.


not recovery the table

--DBName="ctapi" \
--SysDataFile="ibdata1" \
--TableDataFile="link_stocks.ibd" \
--TableName="link_stocks" \
--OpType="PrintData"
E0528 11:04:51.219127   16368 logs.go:89] len is not equal field len, len is  4  field len is  6  i is  2 DB_TRX_ID
E0528 11:04:51.330827   16368 logs.go:89] Table ID have not found  3132
E0528 11:04:51.330827   16368 logs.go:89] Table ID have not found  3132
E0528 11:04:51.330827   16368 logs.go:89] Table ID have not found  3133
E0528 11:04:51.330827   16368 logs.go:89] Table ID have not found  3134
panic: runtime error: slice bounds out of range [1:0]
file link https://we.tl/t-TWRUNythNe

Thank  @xinjijia for a report, I will check it.

This tool supports MySQL 8.0 and you can access it https://www.sql888.com/


Updated all templates to 2.3.4

Pushed some fixes, now everything's good

please add "Hacktoberfest Accepted" tag otherwise it would not be accepted by Hacktoberfest

@matteobruni please add "Hacktoberfest-accepted" label to this pr otherwise it would not be accepted by Hacktoberfest

The repository has already the hacktoberfest tag, it will count


Binary Releases?

Building infer is hard - it requires lots of disk space and time.  InferSharp presumably isn't drastically different.  Do you have/plan on making binary releases?

We do have a docker image with prebuilt with everything: docker pull mcr.microsoft.com/infersharp:latest
Additionally, please keep in mind that InferSharp uses the Java version of Infer, not clang (the former being significantly faster to build).
cd infer
./build-infer.sh ./autogen.sh
./build-infer.sh java
./autogen.sh
sudo make install

Binary release available. https://github.com/microsoft/infersharp/releases


Change default for proxy.config.ssl.server.multicert.exit_on_load_fail to "1"

The default behavior is inconsistent with how the rest of ATS works, so I think we should change this to "1".

Fixed in #1977.


Improvement : Enhance UI and User Experience of "Dynamic js Quiz" Project

Overview
The current state of the Quiz project's UI and user experience is suboptimal and could benefit from significant improvements. This issue aims to address the following areas of concern: enhancing the visual design, improving the layout and alignment, fixing the behaviour of radio buttons, and overall refining the user experience.
Current State :

Assign this raised issue to me under SSoC '23 as I can solve it by doing following explained process
How I will do it (Expected Changes)

Visual Design:

Revise the CSS to create an appealing and visually consistent design.
Optimize the color scheme, typography, and overall styling to ensure readability and aesthetic appeal.
Apply suitable spacing and alignment to enhance the visual hierarchy and organization of elements.

Radio Buttons:

Radio button should be hidden to make it more attractive.

Code Refactoring:

I will evaluate the existing codebase and refactor the CSS and HTML as needed.
Optimize code structure and eliminate any redundant or unnecessary code to enhance maintainability and performance.

Hey! @TusharKesarwani please assign this issue to me for competing in SSOC'23. I will enhance UI/UX of this project.

😗 go find your own issue and do that ..don't just jump in other's

Hey! @TusharKesarwani  Assign this raised issue to me under SSoC '23 as I have looked into this problem and I believe I can solve it by doing following explained process
How I will do it (Expected Changes)

Visual Design:

Revise the CSS to create an appealing and visually consistent design.
Optimize the color scheme, typography, and overall styling to ensure readability and aesthetic appeal.
Apply suitable spacing and alignment to enhance the visual hierarchy and organization of elements.

Radio Buttons:

Radio button should be hidden to make it more attractive.

Code Refactoring:

I will evaluate the existing codebase and refactor the CSS and HTML as needed.
Optimize code structure and eliminate any redundant or unnecessary code to enhance maintainability and performance.

Create a fresh issue after 1st June


ClassCastException on cloning ImmutableRoaringReverseIntIterator

in ImmutableRoaringReverseIntIterator.clone(),
public IntIterator clone() {
    try {
        ImmutableRoaringIntIterator x = (ImmutableRoaringIntIterator) super.clone();
        x.iter = this.iter.clone();
        x.cp = this.cp.clone();
        return x;
    } catch (CloneNotSupportedException e) {
        return null;// will not happen
    }
}

super.clone() is not ImmutableRoaringIntIterator, making CCE.

Will issue a release today.
Closing for now.


Crashes on some completions when no snippet engine is configured/installed

I'll give an example -- with rust-analyzer, you start typing, and see the following completion:
print!(…)~       Method

Note the ~. Upon triggering its completion, I get the following error:
E5108: Error executing lua ...te/pack/packer/start/nvim-cmp/lua/cmp/config/default.lua:27: snippet engine is not configured.

And, after that, complletions no longer work -- in particular, no autocomplete menu appears. I have to restart neovim to get them back.
Now, I don't like snippets, and so I really don't want to install any of that. While it might be a good idea to, when no snippet engine is available, not even show completions which require a snippet engine, I think a very reasonable solution would be to just show a friendly error that no snippet engine is available and keep going (that is, autocompletions should continue working after that single event).

Sorry. I have no plan to support the usage without snippet engine.

Rust Analyzer in particular has a couple of options for disabling snippets in the completion results: rust-analyzer.completion.addCallArgumentSnippets and rust-analyzer.completion.postfix.enable. Set both to false, they should get rid of snippets altogether.

Because some language server returns snippet even if the client doesn't advertises it.

I see.

If you can define how to handle snippets without a snippet engine, we can support it.

I was thinking of something along the following line (disclaimer: I haven't looked at nvim-cmp's code yet):
On the "complete" operation (what cmp.mapping.complete represents), check if the server has returned a snippet or just text (i.e., not a snippet) (as I undestand it, this is already done). If it's just text, then follow the operations that are done today. If it's a snippet, then simply cancel the completion (cmp.mapping.abort or cmp.mapping.close, or by not doing the confirmation); in either case, it's probably a good idea to show a message (via print) to the user along the lines of "the confirmed completion requires snippets, but no snippet engine was configured".
As an outsider, this seems quite reasonable -- both as a user and implementation-wise. Thoughts?

@babygau Yes, if the server you are using doesn't respect client capabilities and doesn't have an option for turning off snippets in the completion results - yes.

would be awesome if you could state in the readme, that it is highly recommended to use a snippet plugin or otherwhise some language servers will break.
took me some time to get here :) i wanted a minimal solution so i thought i go without snippets, now i will add some


Add fetch interfaces for RSL and policy namespaces

This is complementary to #134 (and currently conflicts with it). This PR also requires #135 to be merged first, as some changes to fetch made there are needed here.
Also, there's some unexpected behavior in how fast-forward only fetches behave. It's possible there's a bug in gitinterface but I think it may also be an assumption around "branches" in go-git. The library assumes branches are in refs/heads which means our namespaces don't count as branches. See: https://github.com/go-git/go-git/issues/874

Okay, this is now consistent with #134. Two blockers:

#134 itself, which will likely land first and cause conflicts that should be fairly straightforward to resolve here.
https://github.com/go-git/go-git/issues/874 and https://github.com/go-git/go-git/pull/875 in go-git that affect fetch specifically. I think we can't merge this without some fix for that in place, barring a LOT of warnings to the user.

Another option may be to vendor go-git temporarily with the patch in that PR.

I've updated this PR with #134's merge conflicts resolved.

Looks like tests on 1.20 break when go.mod is set to 1.21.x, including just the format of the go directive. I'm dropping support for 1.20 here as a result. Not updating go.mod to 1.21.x also triggers an error prompting a go mod tidy, which moves it back to 1.21.x.

I'll update the version requirement docs in #144


addGraph to polarScatter

Hi, I'm trying to add a graph dynamically to a polarScatter radar chart and I don't know how to load the series array properly. Doing it in this way doesn't work:
var graph = new AmCharts.AmGraph();
graph.lineColor = "#FFCC00";
graph.fillAlphas = 0.4;
graph.bullet = "triangleUp";
graph.bulletSize = 15;
graph.series = [[-93,0.05]];
chart.addGraph(graph);
chart.validateData();

Is it possible?
Thanks!

Hi,
Just updated polarScatter plugin to 1.0.1.
It now allows data/graph updates.
After you add a graph, make sure you use AmCharts.processPolarScatter(chart):
var graph = new AmCharts.AmGraph();
graph.lineColor = "#FFCC00";
graph.fillAlphas = 0.4;
graph.bullet = "triangleUp";
graph.bulletSize = 15;
graph.series = [[-93,0.05]];
chart.addGraph(graph);
AmCharts.processPolarScatter(chart);
chart.validateNow(true);

Also note, I'm using validateNow(true) instead of validateData().
Hope this helps.

Thanks, that was exactly what I needed!
I have to put a guide, too. But not an area guide as you have in your examples, just one line from the center of the chart to the last circle with a given angle. As a grid, but with a color and a label (if it is not possible, it could be shown in the legend area). Should I open a new issue, or can you give me an answer in that threat?
Thank you!

Glad that worked well.
As for guides, there's no way to have a thin straight line. You can have a guide with a very small difference between angle and toAngle, though.
https://codepen.io/team/amcharts/pen/af1f617703c8a58df412f21afebec3f8?editors=0010
May you find that useful.

Hi Martynas, thanks for your fast answer. That was just I've tried, but I can't put a label here as we do in the serial charts.
Anyway, thanks for your help!

Well, not sure about any other workarounds :(

Finally I'm using the angle guide you provided and after, I change the label position via JS.
Thanks for everything.


VS: HTTPRewrite doesn't work without HTTPMatchRequest

Is this the right place to submit this?

[X] This is not a security vulnerability or a crashing bug
[X] This is not a question about how to use Istio

Bug Description
Suppose we want a fake Kubernetes service to forward all connections to an external resource on a sub path. Using a VirtualService with a rewrite on the default route like the following doesn't work.
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: example-vs
spec:
  hosts:
  - service.namespace.svc.cluster.local
  http:
  - rewrite:
      uri: /path
    route:
    - destination:
        host: site.example.com
        port:
          number: 80
    headers:
      request:
        set:
          Host: site.example.com

Instead an HTTP match with an empty prefix is required.
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: example-vs
spec:
  hosts:
  - service.namespace.svc.cluster.local
  http:
  - match:
    - uri:
        prefix: ""
    rewrite:
      uri: /path
    route:
    - destination:
        host: site.example.com
        port:
          number: 80
    headers:
      request:
        set:
          Host: site.example.com

This is either a bug or a documentation problem since the docs for HTTPRewrite only say the following:

rewrite the path (or the prefix) portion of the URI with this value. If the original URI was matched based on prefix, the value provided in this field will replace the corresponding matched prefix.

This suggests that a match based on prefix is optional.
Version
client version: 1.17.1
control plane version: 1.16.4
data plane version: 1.16.4 (142 proxies)

Additional Information
No response
Affected product area

[ ] Ambient
[X] Docs
[ ] Installation
[X] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
[ ] Upgrade
[ ] Multi Cluster
[ ] Virtual Machine
[ ] Control Plane Revisions

By default if you donot explictly specify match, it means match all. So the above two VSes should have no diff. I tested with both of them, and i can see in rds
"route": {
                            "cluster": "outbound|80||site.example.com",
                            "prefixRewrite": "/path",
                            "hostRewriteLiteral": "site.example.com",
                            "timeout": "0s",
                            "maxGrpcTimeout": "0s"
                        },

According to this method, it seems that if we do not configure the match prefix, the default configuration is to match "/"
pilot/pkg/networking/core/v1alpha3/route/route.go:846
// TranslateRouteMatch translates match condition
func TranslateRouteMatch(vs config.Config, in *networking.HTTPMatchRequest) *route.RouteMatch {
	out := &route.RouteMatch{PathSpecifier: &route.RouteMatch_Prefix{Prefix: "/"}}
	if in == nil {
		return out
	}

	for name, stringMatch := range in.Headers {
		// The metadata matcher takes precedence over the header matcher.
		if metadataMatcher := translateMetadataMatch(name, stringMatch); metadataMatcher != nil {
			out.DynamicMetadata = append(out.DynamicMetadata, metadataMatcher)
		} else {
			matcher := translateHeaderMatch(name, stringMatch)
			out.Headers = append(out.Headers, matcher)
		}
	}

	for name, stringMatch := range in.WithoutHeaders {
		if metadataMatcher := translateMetadataMatch(name, stringMatch); metadataMatcher != nil {
			metadataMatcher.Invert = true
			out.DynamicMetadata = append(out.DynamicMetadata, metadataMatcher)
		} else {
			matcher := translateHeaderMatch(name, stringMatch)
			matcher.InvertMatch = true
			out.Headers = append(out.Headers, matcher)
		}
	}

	// guarantee ordering of headers
	sort.Slice(out.Headers, func(i, j int) bool {
		return out.Headers[i].Name < out.Headers[j].Name
	})

	if in.Uri != nil {
		switch m := in.Uri.MatchType.(type) {
		case *networking.StringMatch_Exact:
			out.PathSpecifier = &route.RouteMatch_Path{Path: m.Exact}
		case *networking.StringMatch_Prefix:
			if (model.UseIngressSemantics(vs) || model.UseGatewaySemantics(vs)) && m.Prefix != "/" {
				path := strings.TrimSuffix(m.Prefix, "/")
				out.PathSpecifier = &route.RouteMatch_PathSeparatedPrefix{PathSeparatedPrefix: path}
			} else {
				out.PathSpecifier = &route.RouteMatch_Prefix{Prefix: m.Prefix}
			}
		case *networking.StringMatch_Regex:
			out.PathSpecifier = &route.RouteMatch_SafeRegex{
				SafeRegex: &matcher.RegexMatcher{
					Regex: m.Regex,
				},
			}
		}
	}

	out.CaseSensitive = &wrappers.BoolValue{Value: !in.IgnoreUriCase}

	if in.Method != nil {
		matcher := translateHeaderMatch(HeaderMethod, in.Method)
		out.Headers = append(out.Headers, matcher)
	}

	if in.Authority != nil {
		matcher := translateHeaderMatch(HeaderAuthority, in.Authority)
		out.Headers = append(out.Headers, matcher)
	}

	if in.Scheme != nil {
		matcher := translateHeaderMatch(HeaderScheme, in.Scheme)
		out.Headers = append(out.Headers, matcher)
	}

	for name, stringMatch := range in.QueryParams {
		matcher := translateQueryParamMatch(name, stringMatch)
		out.QueryParameters = append(out.QueryParameters, matcher)
	}

	return out
}

"/" mean match all, so i am not sure what;s the diff here

It may not be anything in the matching code, but maybe with the rewrite. I’ll try to reproduce the issue and dump the proxy config with both versions.

Huh, I'm actually unable to reproduce this on the 1.16 branch. I definitely saw this on 1.15.

hmm, unfortunately 1.15 is EOL

Yeah, let’s close this unless it’s reproduced somewhere else.


Crash on ros Kinetic when prompted for a dialog box to input a username and password

I am currently using node_manager with ros kinetic
When I am prompted for a username / password during the starting of a master_discovery host, Node Manager crashes giving the error:
[INFO] [WallTime:<PHONE_NUMBER>.360508] Run remote on auk: rosrun node_manager_fkie remote_nm.py --package master_discovery_fkie --node_type master_discovery --node_name /master_discovery _mcast_port:=11511 _mcast_group:=<IP_ADDRESS> _robot_hosts:=[] _heartbeat_hz:=0.5 __name:=master_discovery
Traceback (most recent call last):
  File "/home/z/catkin_ws/src/multimaster_fkie/node_manager_fkie/src/node_manager_fkie/progress_queue.py", line 210, in _on_request_interact
    res, user, pw = nm.ssh()._requestPW(req.request.user, req.request.host)
  File "/home/z/catkin_ws/src/multimaster_fkie/node_manager_fkie/src/node_manager_fkie/ssh_handler.py", line 249, in _requestPW
    pwInput = QtGui.QDialog()
AttributeError: 'module' object has no attribute 'QDialog'
Aborted (core dumped)

The issue seems to be due to the function _requestPW in ssh_handler.py using the old Qt4 way of accessing a dialog. Starting on line 246 changing
        from python_qt_binding import QtGui
        result = False
        pw = None
        pwInput = QtGui.QDialog()

to
        from python_qt_binding import QtWidgets
        result = False
        pw = None
        pwInput = QtWidgets.QDialog()

appears to fix the issue

thank you for reporting!
I fixed this issue in commit a36c83cc96d6f4159dd589aed30a2dc10e6c1f24


show indicator for only one line chart if there are more than one line charts

Can we show tool tip indicators for only one graph instead of all of them?

Hi. You can achieve that with a little customization.
Please check the below sample (full source code is here):
https://user-images.githubusercontent.com/7009300/151675062-32b48529-861c-4b25-8b35-1c6dfff39b3a.mp4


Error adding rules: 403 Forbidden When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal

Describe the bug
I'm using v2 APIs and keep getting this error when calling https://api.twitter.com/2/users/{userid}/following
I'm on basic level so should have access to this one.
Some other API calls are ok, like https://api.twitter.com/2/users/by?
Please fix .....

Any update on this Elon?

same issue here

因为官方已经 取消了  follower相关端点在基础版本，除非使用企业版本  42000$ 一个月，可以看看其他第三方服务了....  比如  twitter点good6点top   我之前项目测试阶段用过~ 后来项目停了就不知道了 可以试试看


Correspondence

Fuel Suppliers required to submit their compliance report can use this feature to manage that correspondence including

[ ] File Upload
[ ] Correspondence History
[ ] Notifications

The issue was create for experimental use. We start to actively use the issues and milestones. Close this issue for now and reopen it if needed.


abacus-mongoclient tests fail with node 6.2.0

Tests run fine with node 5.11.1 and fail with 6.2.0
1) abacus-mongoclient supports self-signed certificates for SSL:
     Error: done() called multiple times
      at Suite.<anonymous> (lib/test/test.js:1673:3)
      at Object.<anonymous> (lib/test/test.js:25:1)
      at Object.Module._extensions.(anonymous function) [as .js] (/workspace/Develop/cf-abacus/node_modules/istanbul/lib/hook.js:109:37)
      at require (internal/module.js:20:19)
      at Array.forEach (native)
      at Object.runCLI (/workspace/Develop/cf-abacus/node_modules/abacus-mocha/src/index.js:206:9)
      at Object.<anonymous> (/workspace/Develop/cf-abacus/node_modules/abacus-mocha/mocha:5:27)
      at node.js:449:3

With node.js >=6 we get two clientError events with mongo driver. Tried to downgrade the driver, but that did not produce different results.
Changed the test to start the checks after server is started and then to remove listeners and stop test server.


feat: deployer possibility

Check if we can deploy accounts from contracts.
Check how to send transaction to account

Yes we can if we compiled the contract with --use_account


Location of pivot cache parts inside xlsx file

Description
When creating a new .xlsx file with a pivot table in Excel and saving it, the pivot cache parts (specificially the PivotCacheDefinitionPart and PivotCacheRecords parts) are saved to the ./xl/pivotCache/ location inside package.
When one generates pivot tables using the OpenXML SDK, these new parts are added to the ./pivotCache/ location. Notice that it does not fall under ./xl/.
While the generated file isn't corrupt and works with all spreadsheet clients, the discrepancy about the location of the parts does feel strange. It's especially confusing when one opens an Excel-generated file using the OpenXML SDK where the file already contains pivot table parts and one adds new pivot table parts. The resulting file will have the original pivot table cache parts in the ./xl/pivotCache location, but the newly added parts will be in the ./pivotCache/ location. Additionally, this is the only spreadsheet-related part (that I've noticed) that does not save to some location under ./xl/.
Information

.NET Target: .NET 4.7.2
DocumentFormat.OpenXml Version: Commit 9d8629a7778c876e56b3c7e14c213b65f6f84ea0

Repro
using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Packaging;

namespace ConsoleApp1
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            using (var package = SpreadsheetDocument.Create("outputfile.xlsx", SpreadsheetDocumentType.Workbook))
            {
                var workbookPart = package.AddWorkbookPart();

                workbookPart.AddNewPart<PivotTableCacheDefinitionPart>("rId2");
            }
        }
    }
}

Observed
Notice location of result pivot cache parts:

Expected
When one generates a file in Excel, pivot cache parts are in this location:

I notice that in https://github.com/OfficeDev/Open-XML-SDK/blob/master/src/DocumentFormat.OpenXml/GeneratedCode/Packaging/PivotTableCacheDefinitionPart.g.cs#L85 the relative target path is defined as ../pivotCache. But this is relative to the workbook part.
I suspect someone treated this target path as if it's relative one of the pivot tables that uses the pivot table cache definition.

@tomjebo Looks like the schema files has the path defined as ../pivotCache. Which behavior do we want in the SDK?

@igitur you are correct. The explicit relationship from the workbook part is supposed to be just: Target="pivotCache/pivotCacheDefinition1.xml"/>
Where adding a relationship (if needed; the standard says it's "implicit") from the pivotTable part is supposed to be:
Target="../pivotCache/pivotCacheDefinition1.xml"/>
This is per the standard ISO 29500-1:2016 12.3.12 "Pivot Table Cache Definition Part". What I think is happening is that the PivotTableCacheDefinition class was intended to be added to (or by) the PivotTableDefinition (root of the PivotTablePart class). When added in that context the "../pivotCache" location makes sense.
So I think what should happen is you should add the PivotTablePart part to the Workbook (actually Worksheet) part and it will create (it has a constraint rule in the generated code) the PivotCacheDefinition part relationship.
Having said all this, I see after searching for examples of this, it's not that straight forward. One way to see the correct steps would be to use the Productivity Tool to reflect the OpenXML SDK code based on an existing file with pivot table inserted.
...(some time later)...
Ok, I actually did the above. Used the productivity tool to add reflect the code on a very simple workbook with a pivot table. I ran the reflected code and sure enough it created target paths just like Excel.
Then I simplified this to use the ordering that the reflected code uses. Here's the final product like yours:
`            using (var package = SpreadsheetDocument.Create("outputfile.xlsx", SpreadsheetDocumentType.Workbook))
{
var workbookPart = package.AddWorkbookPart();
            var cachedefinitionpart = workbookPart.AddNewPart<PivotTableCacheDefinitionPart>("rId3");
            var cacherecordspart =  cachedefinitionpart.AddNewPart<PivotTableCacheRecordsPart>("rId1");
            var worksheet = workbookPart.AddNewPart<WorksheetPart>();

            var pivotTablePart = worksheet.AddNewPart<PivotTablePart>("rId2");
            pivotTablePart.AddPart(cachedefinitionpart);

        }

`
Running this simpler example I see that it does create the correct relationships like Excel. I think it's because you didn't create the sheet and then add the PivotTablePart to it. When that happens, the constraint (I think) creates the correct relationship.
@igitur Can you also check to see that this works for you?
Tom

Thanks Tom.
I had a quick look at the 12.3.12 section.
A bit of a side-note, but I notice this (my emphasis):

A package shall contain exactly one Pivot Table Cache Definition part per pivot table, and each such part shall be the target of an implicit relationship from a Pivot Table (§12.3.11) part as well as an explicit relationship from a Workbook (§12.3.23) part.

Surely this cannot be true. I see many examples of multiple pivot tables sharing a single pivot table cache definition.
For now, I'm going to assume that multiple pivot tables can share a single pivot table cache definition. So, for me, it makes more sense to enumerate and add all my cache definitions first (adding them to the workbook), and only after that add the pivot tables and add their appropriate cache definition parts.
I was interested in how the reflected code would look for 2 pivot tables referencing the same underlying range. Here it is:
// Adds child parts and generates content of the specified part.
private void CreateParts(SpreadsheetDocument document)
{
    ExtendedFilePropertiesPart extendedFilePropertiesPart1 = document.AddNewPart<ExtendedFilePropertiesPart>("rId3");
    GenerateExtendedFilePropertiesPart1Content(extendedFilePropertiesPart1);

    WorkbookPart workbookPart1 = document.AddWorkbookPart();
    GenerateWorkbookPart1Content(workbookPart1);

    WorksheetPart worksheetPart1 = workbookPart1.AddNewPart<WorksheetPart>("rId3");
    GenerateWorksheetPart1Content(worksheetPart1);

    SharedStringTablePart sharedStringTablePart1 = workbookPart1.AddNewPart<SharedStringTablePart>("rId7");
    GenerateSharedStringTablePart1Content(sharedStringTablePart1);

    WorksheetPart worksheetPart2 = workbookPart1.AddNewPart<WorksheetPart>("rId2");
    GenerateWorksheetPart2Content(worksheetPart2);

    PivotTablePart pivotTablePart1 = worksheetPart2.AddNewPart<PivotTablePart>("rId1");
    GeneratePivotTablePart1Content(pivotTablePart1);

    PivotTableCacheDefinitionPart pivotTableCacheDefinitionPart1 = pivotTablePart1.AddNewPart<PivotTableCacheDefinitionPart>("rId1");
    GeneratePivotTableCacheDefinitionPart1Content(pivotTableCacheDefinitionPart1);

    PivotTableCacheRecordsPart pivotTableCacheRecordsPart1 = pivotTableCacheDefinitionPart1.AddNewPart<PivotTableCacheRecordsPart>("rId1");
    GeneratePivotTableCacheRecordsPart1Content(pivotTableCacheRecordsPart1);

    WorksheetPart worksheetPart3 = workbookPart1.AddNewPart<WorksheetPart>("rId1");
    GenerateWorksheetPart3Content(worksheetPart3);

    PivotTablePart pivotTablePart2 = worksheetPart3.AddNewPart<PivotTablePart>("rId1");
    GeneratePivotTablePart2Content(pivotTablePart2);

    pivotTablePart2.AddPart(pivotTableCacheDefinitionPart1, "rId1");

    WorkbookStylesPart workbookStylesPart1 = workbookPart1.AddNewPart<WorkbookStylesPart>("rId6");
    GenerateWorkbookStylesPart1Content(workbookStylesPart1);

    ThemePart themePart1 = workbookPart1.AddNewPart<ThemePart>("rId5");
    GenerateThemePart1Content(themePart1);

    workbookPart1.AddPart(pivotTableCacheDefinitionPart1, "rId4");

    CustomFilePropertiesPart customFilePropertiesPart1 = document.AddNewPart<CustomFilePropertiesPart>("rId4");
    GenerateCustomFilePropertiesPart1Content(customFilePropertiesPart1);

    SetPackageProperties(document);
}

Sure enough, that will work, but it does feel like a clumsy code. Note how pivotTableCacheDefinitionPart1 is created and added to pivotTablePart1 and later also added to pivotTablePart2. It's not really the kind of approach that lends itself towards enumeration over pivot tables and their cache definitions.
You say:

What I think is happening is that the PivotTableCacheDefinition class was intended to be added to (or by) the PivotTableDefinition (root of the PivotTablePart class).

Sorry for asking, but how sure are you that this was the intended approach?

@igitur I had said that before doing the remaining investigation and now don't think that. More likely the relationship is getting overwritten after adding in the pivot table and table definition parts.
After investigation, my point was more that just adding the pivot cache definition to the workbook relationships does not represent a completed package. Table and sheet are needed. After adding those, the relationships seem to be correct. Do you see that as well?

Ha! Stale indeed. I have to look at this again.

Feel free to reopen if it still needs to be explored


Fix --verbose

We originally set the verbosity config after loading it from the --verbose flag. #225's changes to fix workspace issues grouped that config set with other config settings, before loading the --verbose flag value. As a result, deck always uses the default verbosity.
This change moves the --verbose flag load above those settings, restoring the ability to control verbosity.
Originally reported internally in FTI-2144. FWIW, no-color is still after everything in that block, but that doesn’t appear to matter/it’s still applied correctly in 1.2.3. Didn’t dig into how that works, but it doesn’t appear that needs a similar fix, so left it alone.

@rainest,
The issue with verbose was because #225 moved the assignment after the point where we use the value. This would've been prevented from happening if var verbose hadn't been declared earlier as a global variable.
verbose does not need to be a global variable, it makes sense to get rid of it.
Similarly, noColor is a global variable, and the flow of setting color.noColor is quite convoluted (value obtained in cobra.OnIntialize and then applied in PersistentPreRunE). I don't see a reason not to set color.noColor directly in the former place.
See https://github.com/Kong/deck/commit/666ce733083afa530bcb416c0a6dbe353fc94cb3, which builds on top of this PR and streamlines handling of these parameters, that is:

removes an intermediate global var verbose (which was the cause of confusion leading to this bug),
removes an intermediate global var noColor and moves the color.NoColor assignment from PersistentPreRunE to the place where var noColor was previously initialized.

I recommend cherry-picking that commit into this PR if that looks good to you.

 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.


Remove DuckDB memory API

DuckDB memory was used by the DuckDB Parquet Parser.
This is not required anymore since DuckDB Parquet Parser has been removed.

@kgpai, @pedroerp can you please help merge this? Thanks!


Use gcr.io private docker registry for e2e tests

The majority e2e test flakes have had slow docker pulls as a root or contributing cause. The sooner we can move to a private docker registry the better.

Agree with the idea.  But I'm working on AWS, and I don't know how to auth to the gcr.io images.  Does gcr.io allow public images?

It does now.
On Mar 4, 2015 7:02 AM, "Justin Santa Barbara"<EMAIL_ADDRESS>wrote:

Agree with the idea. But I'm working on AWS, and I don't know how to auth
to the gcr.io images. Does gcr.io allow public images?
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/5007#issuecomment-77172927
.

Hooray!  Now we just need to make unqualified docker image names default to gcr.io ;-)

@ixdy, can you look into this?

iiuc, this entails uploading the images we use for e2e into gcr.io on the kubernetes-jenkins project, and then modifying the image references for all e2e pod specs. GCR docs have more detail.

We had a series of red dots in Jenkins tonight during the docker hub outage.

@ixdy LMK if I can help get this going, or how I can help.

I haven't had a chance to look into this. If anyone has spare cycles and wants to work on it, feel free to assign to yourself.
One concern I heard from some folks is how this change would affect those running e2e tests not on GCE - in particular, there were some concerns about bandwidth usage and charges, though I don't know all of the details.

I actually started working on this yesterday. The plan is to pull kube addon and e2e images from gcr.io only for clusters running on gce/gke. Other providers would continue to pull from docker hub.

@jlowdermilk I am curious why?

@ixdy Can you loop me into any threads on this?

@mattmoor, do you mean why only gcr.io for gce/gke? Due to the above mentioned concern about egress cost for clusters running elsewhere, mainly on aws.

Seems like the extra cost was a complete misunderstanding on my part. There is no added cost for pulling from gcr.io regardless of cluster location. Opened #6030 to pull cluster addon images from gcr.io. Will follow up with the same approach for e2e test images.


Console output is garbled

Current Behavior
Garbled characters encountered in console output

Expected Behavior

Context (optional)
No response
Steps to Reproduce
The first step is to set the JDK version to 21

Then set the jdk version of Gradle to 21 as well

Create a new project and print the language to the console

If the characters are not in ascii you will get garbled characters like this

But setting the jdk version back to 17, there will be no problems

Under this test condition it will 100% be triggered
Gradle version
Gradle 8.6
Build scan URL (optional)
No response
Your Environment (optional)
Idea 2023.3.6， Oracle open jdk 21

I tried modifying the bulid.gradle.kts file to add these but it didn't work

我们感谢您的努力，但我们必须要求提供更多信息，以便我们可以对其进行分类。
我们没有看到直接的根本原因，我们需要一个最小的可重复示例来进行分类。如果我们有重现器，我们也许还可以建议解决方法或避免问题的方法。
提供重现器的理想方法是利用我们的重现器模板。您还可以使用Gradle Project Replicator来重现项目的结构。
除非您提供更多信息，否则此问题将在 7 天后关闭。
请验证您的源文件是否使用 UTF-8 编码

https://openjdk.org/jeps/400

Thank you very much for the tip, the error disappeared after I changed the windows encoding set to utf-8


Address three P0 ndt7 issues: PASTA, ping, JavaScript

Use exponential function to select sleep time to get PASTA properties

Start sending pings to clients on an experimental basis (we will decide later how to use them and whether they are useful, we want them implemented now because we want under-development clients to handle - or ignore - pings gracefully)

Replace the JavaScript client with the one I used for research in August, which is more simple and should have all the features we need

This change is

Pull Request Test Coverage Report for Build 1018

50 of 57 (87.72%)  changed or added relevant lines in 5 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.07%) to 75.0%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

ndt7/measurer/measurer.go
18
19
94.74%

ndt7/download/sender/sender.go
3
6
50.0%

ndt7/upload/sender/sender.go
3
6
50.0%

Files with Coverage Reduction
New Missed Lines
%

ndt7/upload/sender/sender.go
2
67.65%

Totals

Change from base Build 1012:
0.07%

Covered Lines:
1563

Relevant Lines:
2084

💛  - Coveralls

Thanks, merging!


Increase test coverage for classes with coverage under 60%

The following classes have very test coverage. We should increase it, to make sure regressions don't go in undetected.

**lurch: add

Tracking W-019116

This is not a specific work item and has been slowly addressed over time. Work remains but is not a bug to be exposed in the issues section.


Refine landing page

[ ] Rename step 6 to Annotate subsect presence
[ ] Fix URL of step 5
[ ] Direct URL of step 6 to go to the tasks_overview of PROJECTNAME_ANNOTATESUBJECTPRESENCE

The step 6 problems are fixed in the improve-subject-annotation branch

The step 5 issue is because of migration issues, so it works now in my branch but maybe check again after merging to aisensus-develop


Add redirects for all the html files under HEAD

(Note: this PR is into the gh-pages branch, not main.)
These files no longer get updated by the mdbook job, so they would get stale. Instead, have them redirect to the new latest-release files one directory up.
Contents generated with:
from pathlib import Path

TEMPLATE='''<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; URL={0}">
<link rel="canonical" href="{0}">
</head>
'''

for root, dirs, names in Path('HEAD').walk():
    for name in names:
        if name.endswith('.html'):
            head_path = root / name
            target_path = Path(*head_path.parts[1:])
            url = 'https://rust-osdev.github.io/uefi-rs/' + str(target_path)
            content = TEMPLATE.format(url)
            open(head_path, 'w').write(content)

Checklist

[ ] Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
[ ] Update the changelog (if necessary)

Thanks for working in this!


Fixes for SQL detection and Go events handled by kprobes

This PR fixes a few things:

The SQL parsing was too naive, now we attempt to extract the operation and table name before we decide we have a SQL statement.
We had a long standing issue with PID removal. Once a process terminates we'd remove the PID with our BlockPID API, but it would always fail, since the API was trying to determine the namespace in the PID filter code. This was never going to work, since at the time the /proc/ directory doesn't exist anymore. I changed the code to take the namespace as argument, which is known to us when we attach to a process.
Since the PID filter at eBPF time is now a bloom filter, to avoid collisions and losing processes, we could theoretically process events generated by Go by the kprobes. There could be bloom filter space collision and the PID can match. This will cause us to generate event from kprobes that's already handled by Go, which will not be filtered out, since the PID is actually valid. I added code to detect that kprobes see an event that was meant for kprobes.

Fixes https://github.com/grafana/beyla/issues/897

Codecov Report
Attention: Patch coverage is 29.87805% with 115 lines in your changes missing coverage. Please review.

Project coverage is 58.75%. Comparing base (ef47785) to head (1f1f2c2).

Files
Patch %
Lines

pkg/internal/ebpf/common/sql_detect_transform.go
0.00%
48 Missing :warning:

pkg/internal/ebpf/common/kafka_detect_transform.go
0.00%
29 Missing :warning:

pkg/internal/ebpf/common/http2grpc_transform.go
0.00%
13 Missing :warning:

pkg/internal/ebpf/common/tcp_detect_transform.go
0.00%
6 Missing :warning:

pkg/internal/ebpf/common/pids.go
70.58%
5 Missing :warning:

pkg/internal/ebpf/gokafka/gokafka.go
0.00%
4 Missing :warning:

pkg/internal/ebpf/goredis/goredis.go
0.00%
4 Missing :warning:

pkg/internal/ebpf/common/common.go
50.00%
2 Missing :warning:

pkg/internal/ebpf/common/httpfltr_transform.go
33.33%
1 Missing and 1 partial :warning:

pkg/internal/exec/file.go
50.00%
1 Missing and 1 partial :warning:

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #901       +/-   ##
===========================================
- Coverage   77.98%   58.75%   -19.24%
===========================================
  Files         125      123        -2
  Lines        9124     9108       -16
===========================================
- Hits         7115     5351     -1764
- Misses       1544     3229     +1685
- Partials      465      528       +63

Flag
Coverage Δ

integration-test
?

k8s-integration-test
58.75% <29.87%> (-0.28%)
:arrow_down:

oats-test
?

unittests
?

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Remove retain_mut crate

Crate retain_mut was throwing errors on CI. Since we are now on 1.62, retain_mut is built-in and we can remove the crate.

bot merge


Design and implement a full-fledged undo-redo system

[10:34 PM]Alice 🌹: I think that there's a lot of interesting and important complexity to tackle with undoing, and I really like the contextual / nested undo-redo  + a trait based approach
[10:34 PM]Alice 🌹: But for now, a relatively simple trait will do
[10:36 PM]Alice 🌹: I'd also like to lean away from a snapshot-based approach if possible, and avoid a distinct storage (sorry @nth but I've worked with this and I found it very frustrating)
[10:36 PM]Alice 🌹: There's definitely a chance that we can't make that sort of design work, but I'm happy to cross that bridge when we get there
This is a followup to #2, which is a simple design to get us started.
Cross-posted from Discord.

related https://github.com/bevyengine/bevy/issues/15350

Since we now have milestones corresponding to the roadmap, I took the liberty of assigning a milestone to this Issue. Feel free to change the assigned milestone, as I don't have authority here.

Useful Material for those tackling this problem: https://developer.blender.org/docs/features/core/undo/

I have collected all the Undo/redo requirements discussed in this md file. I propose to edit it until we come to some design, which basically everyone will agree with https://hackmd.io/@bevy/r1RXR5DC0

So the first half of the document looks pretty good. I would possibly add some detail about the relationship between "undo" and "redo":

Adding a new undo action pushes onto the undo stack and clears the redo stack.
Undoing an action pops an undo action off the undo stack and pushes a redo action on the redo stack.
Redoing an action pops an action off the redo stack and pushes an action on the undo stack.

(I tend to think of these things as a "stack" rather than a "timeline", but that's just terminology).
I think the second half of the doc is more complex than it needs to be.
First, most apps have a single undo stack, with a special case for text input fields which have their own dedicated stack.
For apps that have multiple "documents", there is an undo stack for each document. These aren't nested, nor do they overlap in anyway - undoing in one doc has no effect on other docs. When the user selects the undo menu, which undo stack gets invoked is determined by the currently selected document, and only one document can be selected at a time, so it's always unambiguous.
VSCode is one of the few apps that has a more complex undo structure: the undo stack for the folder pane is separate from the undo stack for the individual document views. However, you can fit this into the previous model if you consider the directory hierarchy to be a separate "document": otherwise the rules are the same. That is, if you select a file in the tree view, and choose the undo action, then the undo stack that gets used is the tree view undo stack. The only special case is if a doc gets deleted, in which case the corresponding document window is closed - but this would be the same if we deleted the file from the console, so it's not a special case.
This, BTW, gets into the whole nature of "selection" which dates back to the original Mac Human Interface Guidelines, the rule that selections can't cross contextual boundaries: you can select multiple characters in a document, or you can select multiple documents, but you can't select both characters and documents at the same time. Otherwise it would be too confusing.
So in other words, except for the special case of text input, none of these undo contexts are "nested", and they don't interact with each other. I think this is an important point, because building a system with independent parallel undo stacks is a much simpler problem than building multiple contexts which interact with each other.
I also don't think it's important for editor settings to be undoable, unless they are really complex. The vast majority of apps don't support undoing of settings, because settings are pretty simple, and it's easy to change your mind. Like, if you are setting the audio volume, you really don't need a way to undo that - just set it again.

Yes. The second part of the document is over-complicated. I like the idea of purely separate undo/redo lines for each document. Without using DAG, since I've been thinking about it for a week now, I can't think of a really good use for it. (Although it was discussed and seemed like a good idea at the time of the discussion). I will then rewrite the section and cut out DAG since I don't like it now either.

The editor settings can and will get complicated over time, and adding undo/redo for them is easy. So I don't see any obstacle to implementing undo/redo in the editor settings window.

I think we can highlight in the document that one and only one undo/redo time line can be active. And each time line is bound to a specific scene/document or widget or window.

Also, I want to talk about "timeline collapsing", which I call "edit coalescing" or "aggregate mutations".
An example is typing in a text editor. When you undo, you don't want to undo one keystroke at a time, but in larger gulps.
For an app like a text editor, the individual key insertions are delineated by "breakpoints". Any non-typing action, such as moving the cursor, selecting text, cut and paste, and so on, is a breakpoint. Depending on the editor, inserting a line break can also be a breakpoint. All the keys inserted between breakpoints are combined into a single undo action. In other words, the mutations are coalesced.
There are several approaches for implementing this. One is to have explicit "start action" and "end action" operations, and record all of the individual edits that happen between them. However, this isn't necessary for most edit actions, which consist of a single mutation. For example, cut & paste are atomic and transactional - you can't undo part of a paste, it's all or nothing.
A different approach is to allow certain undo stack entries to be "amended" after they have been pushed onto the stack. For example, when typing, each keystroke appends to the undo record on the top of the stack - but only if the top of the stack has a "insert keystroke" undo record. If it's a different kind of undo record, such as "make bold", then typing a key creates a brand new undo action instead of amending the old one. However, in order for this to work, we need a mechanism for downcasting the undo records so that we can tell whether the types match.
Once an undo record is no longer on top of the undo stack, it can not be amended any more.
Now, all this being said, my editor doesn't support amending because it doesn't need it. It doesn't have any fine-grained edit actions like typing, so all undo actions are atomic.

We might also consider having our Undo/Redo trait require serialization/deserialization with something like typetag.
The main benefit is that we can deserialize the undo(/redo) stack upon opening the project which would allow users to easier get back into their workflow. Additionally, if the editor crashes at any point the user won't lose their workflow.
We could either serialize the stack every time it changes, which would cover both cases (on user exit or on editor crash), or just on when the user exits the editor and use a panic hook for crashes.

FYI, we've implemented this trait serde over in LWIM. It's not fun, but it is feasible.


AMBARI-24407: Add rpm support infra and logsearch

The patch will add rpm support for the following
packages.
-ambari-infra
-ambari-logsearch
Signed-off-by: Naresh Bhat<EMAIL_ADDRESS>What changes were proposed in this pull request?
Add rpm package creation support
How was this patch tested?
The build has been done on AArch64 machine installed with CentOS 7.4
Please review Ambari Contributing Guide before opening a pull request.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3672/
Test PASSed.

Duplicated by #2125.


update stacktrace in broad excepts issue#1797

updated stacktrace in broad excepts issue#1797

Hi Srini, thanks for doing this!
However, there are a few more places with the broad excepts.  The simplest way to find them everywhere is by doing a global search in your IDE, using the except Exception phrase.  Then you will see more results like below.
There are a few more items you need to do:
1: if you see except Exception:, then change them to except Exception as e:
2: if you do not see any logging in the except block of code, then add Logger.exception(e).


Fix #138

@bbartley This is pretty old, and I'm not sure if we need it.  Can you check and either rebase or delete?


Missing releases zip

Maybe it expired?   I think I have the tooling setup to build this on my own but wanted to check and see if you have a release zip handy?

Awesome, thank you!


Broken animation after device orientation change

When user enters slideshow in portrait mode and inside slideshow rotates device to landscape and then dismisses it, the animation zooms out to the "portrait" frame.
Expected: The zoom out frame should be adjusted according to device orientation.

Hi, I'm really interested in your lib. When do you think that this bug will be fixed?

Well, I think that all pull requests are welcomed 🙂

Yeah, I think so ^^

I investigated this issue more and found out there is a bigger problem with the underlying view controller which does not get rotated immediately, but in a late phase of zoom-out transition. This makes it difficult to get the correct ImageSlideshow frame to zoom out to.
Until proper solution is found, I recommend to lock parenting view controller to single interface orientation. Rotation of full screen slideshow controller is supported though, which should be sufficient for most cases.


Return to Typed ACSets

Oh how the wheel turns. @sjbreiner, see what you think of this. I think it manages to make pretty good use of the Scala type system to actually get some pretty tight invariants on acset use.
I think it should be possible to do serialization pretty cleanly with this type of design. Note that there needs to be a couple more "hooks" to get, say, cascade deletion working, but that shouldn't be so bad.
Of course, these are not nested. I have to think about how to do nesting with this approach, but I've been working out the math of this slowly, so hopefully I'll have some better idea soon.
One nice thing this enables is exhaustive pattern matching on the type of a part when using a static schema.

This is an idea that will probably be incorporated at some point, but not in this form.


Add rubocop

@kris-lab @tomaszdurka please review

looks very good to me. I like this rubocop formatting!


Implements the bowling kata

Example :bowling: implementation is based upon the canonical list of tests.
I'm sorta new to Elm. A few thoughts I had after working on this kata:

scoreFrames has a whole bunch of let expression variables.
I'm making multiple passes through the data in different ways. Maybe there ways to avoid that? Better use of pipe function application?
The union Frame type is very simple. Perhaps it could somehow implicitly handle some of the validations?

Thanks!

Thanks for the PR!
You wouldn't have gotten a notification, but I'm afraid the CI build didn't work. You'll need to add an entry to the root elm-package.json and config.json as well as rename Bowling.elm.example to Bowling.example. I'll try to check it out locally tomorrow.
Thanks again!

Oops, will do. Thanks!

Looks like I also need to adjust the testing format. I'll change that as well.

I gave elmenv a go in order to test a downgraded version of Elm but elmenv failed on 0.17.1 for me (on Ubuntu).
But it got me wondering - would you mind if I simply updated the dependencies to 0.18 for the core repo and all of the current exercises prior to PRing for the bowling kata? I suspect others will run into similar issues, and it seems simpler to point them to an upgrade path rather than a downgrade path.
But maybe I'm missing something too.
Thanks.

@chadfennell We've had some discussion over at https://github.com/exercism/xelm/issues/122 ... I personally haven't had much time to think/work on it. Agree that upgrading to 0.18 would be ideal.

@tgecho cool. I was being a bit thick too - just looked at the build script and, duh, I can install v 17 via npm. I'm making my test compliant with the current setup and will chime in on the other thread / help out there.

@chadfennell Sorry I let this get stale! We updated to Elm 0.18 a while back, and recently sorted out compatibility with the latest version of elm-test (0.18.3). Most of the updates should be pretty mechanical.
For the exercise itself, it looks like the problem description is a bit specific. They want a separate roll/score operations, while you've combined everything into a single roll function.
I think we should match up with this using signatures along the lines of
roll : Int -> game -> game
score : game -> Int

This will allow the user to define their own game type. Your test file would just need a simple List.foldl based wrapper like
scoreGame : List Int -> Int
scoreGame scores =
    List.foldl Bowling.roll 0 scores
        |> Bowling.score

Just let me know if you don't have time and I'll take a stab at finishing this up.


add test for tags

Shows failing test for adding an upload with tags in the header. The bug was uncovered by running:
curl -H "swarm-tag-uid: abcdef" -F<EMAIL_ADDRESS>http://localhost:8080/file which got
 curl: (52) Empty reply from server
Log-lines show:

I can report that it works if you don't pass tags explicitly:

There is a test available already which passes. see debugapi/tag-test.go


Fix incorrect zoomFactor.

As @kring pointed out in #3249, my code in #3233 was actually wrong and caused increased resolution loss when window.devicePixelRatio was greater than 1.  We should just be ignoring window.devicePixelRatio completely because the browser takes care of it by default.
@pjcozzi can you give this branch a try.  It was rendering at quarter resolution on your machine, since you have a devicePixelRatio of 2.  Now it will render at half but that should look much better.

Still looks bad:

Is it possible to enable this on mobile only (assuming it looks good there).  Or just go back to the old default and cover this in the upcoming performance tutorial?

I think we may be back to my original assertion that resizing the canvas is causing blurring.  I started a WebGL dev-list discussion to see if anything has any recommendations: https://groups.google.com/d/msg/webgl-dev-list/Re_fVhnJ5R0/eRyji2xcCgAJ

Is it possible to enable this on mobile only (assuming it looks good there). Or just go back to the old default and cover this in the upcoming performance tutorial?

I would recommend against this and would rather solve the problem for real. Larger tablets may still show blurring, and as I mentioned in #3249, I doubt 3K or 4K laptops with Intel cards can run Cesium very well with the current behavior.

What's the plan for Cesium 1.16?  Back out #3233 and revisit?

What's the plan for Cesium 1.16? Back out #3233 and revisit?

Unfortunately, yes.  I'm 99% sure the only remaining issue is that browsers perform a smooth scale when resizing a WebGL canvas and there seems to be no way to disable that.  My only idea would be to blit to a 2D canvas with imageSmoothingEnabled set to false, but that involved jumping through a bunch of hoops.  Hopefully someone will chime in on my webgl-dev post with some ideas.  If not, I'll try pinging some contacts directly.  I have to imagine this is an issue for lots of engines that want good cross-device performance.


Utility Pack & Unpack from network connection

A network connection to a processing network (visa) has a two-byte message length plus the unpacked or packed ISO8583 message.
To send a message you must iso8583.pack() the iso message and check that you received the bytes without an error. Then you use binary.size to get the length of the message. You write a bugger of length size and add the size and the packed data before it is submitted to the network.
To receive a message on a net connection you read the first two bytes, throw them away, and then unpack the bytes into an ISO message.
I would like to see the ability to send/parse a message over a go socket connection. It seems like this has to be a common pattern for anyone using this library on a network. Based on other comments it seems like each network has a different header length. The length of the header probably needs to be configurable.

ISO header
In some implementations, messages must include a header before the message type. This is implementation-specific and the headers usually vary only by message type.
Additionally, it is very common to include a header with the length of the message when sending ISO8583 over a network. The header is usually 2 bytes long and is a binary unsigned integer with the length of the full message, thus making the reading on the other side easier, since the process consists of reading 2 bytes, interpreting them as a length, and then reading that many bytes. The byte order is usually most significant byte first, but it can vary in certain implementations.
Sometimes there is also a message terminator, which can be included in the length or not, depending on implementation. Message terminators are usually just 1 byte long.

proposal added in #75


CartoDB with SSL?

I cannot figure out how to get the installation to work with HTTPS
I have Carto running on Ubuntu 16.0.4 and enabled SSL on the VM (Can get to default host under Https: without any issues) but I have no idea how to get all the ports that I'm currently using (3000, 8080, 8181) for the Builder/Maps/SQL etc to run under Https and I must get this working in order to get our sites working again.
I can't find any helpful threads/articles online on how to enable SSL for Carto. There seems to be a lot of vague setups which makes using Carto extremely difficult.

Hi @Julius-ERCM ,
Did you manage to set this up? I have done this before (https://carto.wegov.nyc/login) ping me<EMAIL_ADDRESS>i f you need help.


Complete map of Europe

Would it be possible to connect all the data and make a map of how well the cities and countries perform relative to each other?
This could be a chart where each point gets a color from the weighted area that they can reach.
For example one place might have 100 sqkm within 1 hours, 50 sqkm within 1 and 2 hours and 50 sqkm within 2 and 3 hours and so on = 100x5+50x4+50x3+...
Another place might have perhaps half and thus be a different color. Then the collection of all places would make a very interesting chart that could show "hey look how bad/good you are compared to others" and if this could be compared to driving or flying this could also show how well the trains of Europe performs in general.

That's a good idea and I have started exploring in that direction, but
haven't been satisfied with the visual results yet.
I'll keep you posted.
On Tue, Nov 8, 2022, 7:20 AM jmagnes @.***> wrote:

Would it be possible to connect all the data and make a map of how well
the cities and countries perform relative to each other?
This could be a chart where each point gets a color from the weighted area
that they can reach.
For example one place might have 100 sqkm within 1 hours, 50 sqkm within 1
and 2 hours and 50 sqkm within 2 and 3 hours and so on = 1005+50
4+50*3+...
Another place might have perhaps half and thus be a different color. Then
the collection of all places would make a very interesting chart that could
show "hey look how bad/good you are compared to others" and if this could
be compared to driving or flying this could also show how well the trains
of Europe performs in general.
—
Reply to this email directly, view it on GitHub
https://github.com/benjamintd/chronotrains/issues/21, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACVPB42WWGBLTFFUNYQMTSTWHHWMDANCNFSM6AAAAAARZ6IXMI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Cool, if you show an alpha version I might give some feedback how to improve it 😊


fix: Pin pytest version

When using pytest-8.2.0 with async-0.21.1, func tests throw an error:
AttributeError: 'FixtureDef' object has no attribute 'unittest'
Refer: https://github.com/charmed-kubernetes/pytest-operator/issues/131
Therefore, the pytest version is pinned till the issue is resolved upstream.

Is this still needed? https://github.com/charmed-kubernetes/pytest-operator/issues/131

Is this still needed? charmed-kubernetes/pytest-operator#131

That was a quick fix! I just verified that the tests are running successfully with pytest-asyncio==0.21.2 on this action run. So I'll close this PR since it's not needed anymore.


Wrong behavior when parsing 00 instead of + in countrycode prefix.

I'm using the Java library.
When trying to parse the number (I randomly selected it):
+15417543010, parsing works (i.e: country code is 1, national number is<PHONE_NUMBER> and phoneUtil.getLengthOfGeographicalAreaCode(phoneNumber) is 3
However, when trying to parse
0015417543010 (which is equivelant, in manner of calling the same number), it produces
phoneUtil.getLengthOfGeographicalAreaCode(phoneNumber) is 0

00 is not an IDD in every region, i.e. it's not equivalent to +.
What region code are you passing as the default when parsing<PHONE_NUMBER>010?
E.g. if parsing as if dialled from the US, the national number is parsed as<PHONE_NUMBER>0.
Ascension Island, however, does have 00 as an international prefix, so I'd expect 00 to work there same as +: http://libphonenumber.appspot.com/phonenumberparser?number=0015417543010&country=AC
You can try the demo for more regions. Also look at internationalPrefi in resources/PhoneNumberMetadata.xml.
I'll close this as it's not an issue, but if you wish to discuss it further we can continue in the discussion group. Thanks for using the library!


Add cascade-contain-asset-index field

Hi Hector, I have added the field according to the code snippet that you added to the initial ticket. Happy to pair once we have some time to see this one through the finish line, as I am not sure if all acceptance criteria has been met. Thanks!


question about --enable-legacy

Hi David: Legacy wavpack files (generated by wavpack < 4.0 yes) are
disabled by default and needs --enable-legacy configury switch to
enable during library build: Is there a compelling reason for that?
Is it unstable / unreliable? And/or, are such legacy wavpack files
rare to care about? Asking it because I am undecided about enabling
it in SDL_mixer's own vendored libwavpack builds.

Hi Ozkan. Version 4.0 of WavPack is now around 20 years old, so any files from before that are exceedingly rare (I have not heard about one for years). And I recommend that anyone still in possession of such files should losslessly transcode them to a modern version because there are many technical issues with them. First, they begin with a WAV RIFF header, so some software misidentifies them and plays loud noise. Also, they are formatted as one contiguous stream, so they are very slow to seek and a single bit error can turn an entire file to unrecoverable noise.
In short, my recommendation would definitely be to not include legacy support in any SDL builds. Even FFmpeg, which attempts to decode anything, has correctly decided not to include WavPack legacy support.
Thanks!

OK, thanks!


Improve packaging: missing init.py file in the cliffordlayers package

I have encountered an issue while trying to install and import the cliffordlayers package from the GitHub repository. The package appears to be missing the init.py file, which is necessary for exposing the package correctly during installation.
As a result, after installing the package using pip install git+https://github.com/microsoft/cliffordlayers.git, the import cliffordlayers command fails to work in Python.
To resolve this issue, consider adding an init.py file to the root directory of the cliffordlayers package and modules inside it. This will enable Python to recognize the package structure and allow users to import it successfully.

Thanks for bringing this to our notice! Will cut a release soon.


[CHORE] Website

Ideally, we would publish under react.30secondsofcode.org and include this repo as a submodule in the 30code repo.
We need a script, static parts and a decent design for this.

As a side note, the markdown-to-jsx library has a cool feature of overriding the components found in a Markdown into a real live React component. Can be pretty useful if you went to render components natively on the website instead of going by Codepen for example.

I mean we can have an extraction script, however there are a few examples of this that would be hard to do like modals and galleries

Otherwise that library seems great, if not a bit slow...

As a side note, now that import is in most browsers, should we bundle or do we just want to import and build individual files to be imported in the script so that we can cache unchanging versions and send less data over(and allow smaller network traffic, if not more requests)?

Let's start small initially. Just show the code itself as a more rich version of the README. After we build and ship that, we can start thinking about more interactive and useful features like the ones you mention.
If nobody is against this, let's keep discussing this, while we start implementing the basic features and layout.

An example of imports versus bundling can be seen with my entry for William Sonoma: https://github.com/skatcat31/william-sonoma-challenge

@atomiks you tend to have some awesome design ideas, anything interesting this time? I tough of using react this time on this project (makes sense, plus we're going to get better at it by writing it).
@Chalarangelo apart from general stuff, this issue is the most important one 😉

@fejes713 I agree, but I'd rather we got some content up first and generate a README properly, which is long overdue by the way, than work on the website right away. As long as we are under 50 snippets, README works well enough for presentation, so we can start with that and then, based on the issues we face, come up with a plan for the website.

There are so many libraries available which directly convert markdown to HTML dynamically. All we have to create a small template for the same.
This can be a single page application where all the snippets are available. On clicking particular, the user can see the detailed view.
On the addition part, there can be a function of copying code on clicking some button.

MDX is generally what's used now to include React components inside Markdown files

Maybe something Demoboard and MDX could make the website interactive as well as demonstrate the components. Take a look at https://mdxjs.com/ and https://frontarm.com/demoboard/ and let me know what your thoughts are.

This has been resolved for a couple of weeks now, closing...


Send Text to many users

Hello
Can i send message to the some of filtered users ? example, i have 100k users but i want to send message to 50k users.
I must sendMessage request for each user ? Is it possible for Telegram to identify this as spam?
Thanks

yesSent from my Huawei Mobile-------- Original Message --------Subject: [php-telegram-bot/core] Send Text to many users (#1235)From: radian-rgc To: php-telegram-bot/core CC: Subscribed
Hello
Can i send message to the some of filtered users ? example, i have 100k users but i want to send message to 50k users.
I must sendMessage request for each user ? Is it possible for Telegram to identify this as spam?
Thanks
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
@.": "http://schema.org",
@.": "EmailMessage",
"potentialAction": {
@.": "ViewAction",
"target": "https://github.com/php-telegram-bot/core/issues/1235",
"url": "https://github.com/php-telegram-bot/core/issues/1235",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
@.": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]

Can I use sendToActiveChats to send a message to all users who only subscribed to a specific topic

@appoodeh It depends what defines "subscribed to a specific topic".
The options for using sendToActiveChats are limited, so using a custom query will most probably be a nicer and safer solution.


Feat: Integrate revert reason/error resolver when reverted traction found is…

issue #2318
/claim #2318

Description
For now when we find a reverted transaction, we cannot debug it due to lack of fetching of revert reason.
Additional context
To solve this, we can use a tool that is already present in the tools/revertresolver section to be able to print the errors for better debugging
Metadata

Fixes #2318

Summary by CodeRabbit

Documentation

Updated a file path in a command within the README to reflect changes in the project structure.

New Features

Enhanced transaction confirmation process to include detection and printing of revert reasons in transactions.

Refactor

Renamed package and removed the main function along with its flag parsing and execution logic in revertresolver.go for better integration and code clarity.

Hi,
Assume this is a draft?

@trajan0x not a full draft, still need to add thinhs to it.
Also i will add more to it but because for this i had to go through concepts of ethereum, it got stretched.
I will keep texting you in between for a few discussions.


search typeahead: Add "All messages" to search typeahead  when typed.

Previously, the "All messages" typeahead only appeared when the search bar was empty. This change makes "All messages" work like all other search suggestions and appears in the dropdown after being searched for.
Fixes: #25060

Ready for review!

@evykassirer Would you be up for doing a first-round review on this PR? I haven't tested it.

This seems like a good change, though it actually reveals an existing bug that clicking on "All messages" doesn't do anything (because of #26534)

Would it be better to fix the bug in this or another issue?

Ooh, yeah. Merging this PR would make the underlying bug more visible, so fixing it is definitely a blocker here.

Should the typeahead only work when the user has something typed into the search bar?

No, we'd like to show users some helpful options right away.

Closing, as https://github.com/zulip/zulip/issues/25060 has been closed as "won't fix".


Missing functionality in unit commitment

The current UC formulation is missing a few points that should be properly integrated:

[ ] Cyclic behaviour, similar to that of stateful Nodes, for the parameters that support initial pre-modeling-period settings (e.g., startup which already takes unit.is_on_before into account, but does not allow choosing that)
[ ] Fixes to min/max on/off time formulations (with different Snapshot durations, unit counts, ...)
[ ] Properly implemented/tested endogenous investment decisions (from an external Decision) combined with active UC
[ ] ...?

A lot of that is actually due to the current/old issues with representative Snapshots. Since they conflict with various things, and complicate a lot of different formulations, we discussed removing them on multiple occasions (and switching to a different formulation, e.g., Kotzur et al.). Therefore, this might be best done as part of a larger rework to prevent future mess/dept in the whole UC implementation.

@sstroemer
Title: Change part load calculation to avoid incremental efficiency:
In the distric heat model we changed form using the incremental efficiency to a more readable form:
The old form with GenAboveMinLoad_MW:
Elec_generation_MW[u,t]=UnitsOnline[t,u]* unitCap_MinLoadMW[u,t,f]+GenAboveMinLoad_MW[t,u]
Constraint: Elec_generation_MW[u,t]<=UnitsOnline[t,u]*unit_cap_MW[t,g]
FuelConsumption_MW[u,t]=UnitsOnline[t,u]* unitCap_MinLoadMW[u,t,f]/eff_minLoad[u,t] + GenAboveMinLoad_MW[t,g]/incremental_eff[u,t]

   So here you need to calculate the _incremental_efficiency_. Which is a little complicated to explain.

With a change form  GenAboveMinLoad_MW -> Units_At_Full_Load (see below), the calculation of the input and output flows is much more easy to understand.  There is no need to calculate incremental efficiencies anymore:
The new formulation for unit type „u“, which may have mutliple identical units installed, and has multiple inputs and putputs:
Var:
•	UnitsOn[u,t]: 0<=, up and running units of type „u“; linear, binary or integer
•	AvaiableUnits[u,t]: 0<= Number of units available in a certain time step ; linear
Costraint: 0<=UnitsOn[u,t] <= AvaiableUnits[t]
Costraint: AvaiableUnits[u,t] <= exiting_units[u,year[t]]+new_installed_units[u,year[t]]-decomissioned_units[u,year[t]]
-temporarilty_nonavailable_units[u,t]
•	Units_At_Full_Load[u,t]: 0<=, Number of Units at full load; linear
Constraint: 0<= Units_At_Full_Load[u,t] <= UnitsOn[u,t]
NEW
Input_Output_MW_Expression[u in Units, t in Steps, f in In_Out_Flows]:=
UnitsOn[u,t]* unitCap_MinLoadMW[u,t,f]
+ Units_At_Full_Load[u,t]*(unitCap_FullLoad_MW[u,t,f] -unitCap_MinLoadMW[u,t,f])

Note: The "mention" above from issue "# 25" is not intentional and just GitHub messing with the auto-mention ...


Game crashes after updating to version 1.06

Mod Version
LoadMyChunks-1.06-1.21
What were you doing before the crash happened?
Updating the Mod from 1.05hf2 to 1.06
The game crashes with exit code 1 right on start. I can't even get to the menu.
Going back to 1.05hf2 fixed the problem.
Provide Logs here:
https://pastebin.com/SeKHskKH

Literally no idea what caused this. All mixin refmaps have been showing up in my testing right now. I don't know why it failed on the mass publish this one time. hf1 has been published and I have confirmed that the refmap is present in the file and is present in the mixins.json files.
Frustrating that the automation failed one time for seemingly no reason.


Knowing more easily if sms are being sent or not

Right now when you click start or stop there is no change so you can't be sure if there is message going or not.
Having a graphical change or something like that could help being sure you've done what you wanted

Fixed in ff3572c9a5
Thanks for the suggestion.


Freezing the backbone network will report an error

I made the following changes in single_stage.py, and the result was an error.
    for v in self.backbone.parameters():
        v.requires_grad = False

    for v in self.bbox_head.parameters():
        v.requires_grad = False

Traceback (most recent call last):
File "/home/ubuntu/gjx/mmdetection/tools/train.py", line 153, in
main()
File "/home/ubuntu/gjx/mmdetection/tools/train.py", line 149, in main
meta=meta)
File "/home/ubuntu/gjx/mmdetection/mmdet/apis/train.py", line 128, in train_detector
runner.run(data_loaders, cfg.workflow, cfg.total_epochs)
File "/home/ubuntu/anaconda3/envs/mmdet21/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 122, in run
epoch_runner(data_loaders[i], **kwargs)
File "/home/ubuntu/anaconda3/envs/mmdet21/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 43, in train
self.call_hook('after_train_iter')
File "/home/ubuntu/anaconda3/envs/mmdet21/lib/python3.7/site-packages/mmcv/runner/base_runner.py", line 282, in call_hook
getattr(hook, fn_name)(self)
File "/home/ubuntu/anaconda3/envs/mmdet21/lib/python3.7/site-packages/mmcv/runner/hooks/optimizer.py", line 21, in after_train_iter
runner.outputs['loss'].backward()
File "/home/ubuntu/anaconda3/envs/mmdet21/lib/python3.7/site-packages/torch/tensor.py", line 195, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph)
File "/home/ubuntu/anaconda3/envs/mmdet21/lib/python3.7/site-packages/torch/autograd/init.py", line 99, in backward
allow_unreachable=True)  # allow_unreachable flag
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

Hi @gjxgjxgjxgjx
In your modification, all parameters will have no grad. So BP can't be complete. You may freeze the backbone only.

@xvjiarui What should I do if I only want to train the neck and freeze the backbone and head?

if you want to train the neck, you cannot freeze the head

Hi @gjxgjxgjxgjx
As @yuzhj said, there is no loss on neck directly. So if you would like to train the neck, you must train the head also.


about feature extraction of THUMOS14

Excuse me, what methuod do you use to extract the feature of thumos14? Is it I3D?

Yes, we used the two-stream I3D networks pre-trained on Kinetics-400, as stated in the paper.

Yes, we used the two-stream I3D networks pre-trained on Kinetics-400, as stated in the paper.

ok，thank you.You said in your paper that you take 16 frames of video as a segment, and then extract features. But when I output the shape (nxdimension) of the feature, n is not equal to the total number of frames /16. Why is this?

It is probably because we set the fps of all videos in THUMOS'14 to 25 before extracting the features.

Yes，that makes sense！Thank you very much！

Yes，that makes sense！Thank you very much！

Hello，I am a PhD student from China. I am also interested in this work now. I have some issues about this work. Can we make a discussion? My WeChat ID is fj_snbc.


Introduction to Flutter Desktop Application

NOTE: All 1st-time contributors should know Topic approval and PR submission does NOT guarantee your Topic/Article will be published. Our team of Peer Reviewers and Content Moderators will review all PRs that come in to make sure they adhere to the standard of quality we expect from the EngEd community.
We expect all community memebers to go through provided examples, resources, and previously published material before submitting content. As a rule of thumb, please only submit articles (pull requests) that are complete, formatted correctly, and include a fully polished article (ready to be published and error free).
All revisions and edits should be completed on your own forked repo (as to not take up room in the queue). Any PR that is submitted incomplete (meaning not ready to be published as is) will be closed. A PR being closed does NOT mean the article can not be published (or fixed) it simply means that the edits, revisions, and fixes will happen outside of the queue.
Topic Suggestion
Enter topic suggestion here...
Pre-submission advice
By following all our pre-submission advice and reviewing our Resources folder, you will maximise your chances of your topic being approved.
We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner.
Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published (subject to vary depending on volume and/or backlog of articles).
Be sure to visit our Resources Page for tools, resources, and example articles that will help you propose and write a successful article.
Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
Writing sample(s):
Include any links or writing samples - to help our team better gauge your writing quality.
Proposal Submission
####Introduction to Flutter Desktop Application
Your title should be descriptive of the article/tutorial. Be Specific.
Use keyword research to improve your article's SEO.
Proposed article introduction
In Flutter, each component  of the Flutter application screen is a widget. The screen perspective depends entirely  on the selection and grouping of the widgets used to build the application. The structure of the application code  is also a tree of widgets.
In this blog, you will learn how to run the Flutter application on your desktop and  the requirements for setting it up. Follow the step-by-step process to build an app to understand the process of building a desktop app.
For example, if the article is based on machine learning, use the following: [Machine learning] Introduction to Machine Learning.
If the article is based on developing an Android application, use the following: [Android] Developing Apps using Android.
ONLY viable topics to pick from:

API
Artificial Intelligence
Blockchain
Containers
Edge Computing
Languages
Machine Learning
Networking
Node.js
Security

Key takeaways

What are the tools needed to develop flutter desktop app
Procedure to develop a mobile desktop app
Build a simple web application
Use of C++ to help in developing the flutter application

Article quality
How is your article unique? Tell us what makes your approach different from similar articles that have published on the same topic?
Is yours more in-depth? Does it cover additional topics? Do you provide handy tips or anecdotal advice?
References
-https://medium.flutterdevs.com/flutter-app-for-desktop-d949f4d20cdb
Conclusion
Finally, remove the Pre-Submission advice section and all our blockquoted notes as you fill in the form before you submit.
We look forwarding to reviewing your topic suggestion.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Unfortunately, this topic covers the introductory aspects of Flutter https://www.section.io/engineering-education/flutter-web-application/ Feel free to suggest another topic. Thanks


[Airbrake] [Production] Connection refused - connect(2) for "https" port 443

Airbrake error: #8326
Airbrake project: ETMoses
Error type: Errno::ECONNREFUSED
Error message: Connection refused - connect(2) for "https" port 443
Where: testing_grounds#perform_import
Occurred at: Jun 22, 2016 09:45:53 UTC
First seen at: Jun 22, 2016 09:45:53 UTC
Occurrences: 1 (1 since last deploy on Jun 21, 2016 16:38:45 UTC)
URL: https://moses.energytransitionmodel.com/testing_grounds/import
File: /home/ubuntu/.rbenv/versions/2.1.1/lib/ruby/2.1.0/net/http.rb
Backtrace:
/home/ubuntu/.rbenv/versions/2.1.1/lib/ruby/2.1.0/net/http.rb:879:in initialize
/home/ubuntu/.rbenv/versions/2.1.1/lib/ruby/2.1.0/net/http.rb:879:in open
/home/ubuntu/.rbenv/versions/2.1.1/lib/ruby/2.1.0/net/http.rb:879:in block in connect
/home/ubuntu/.rbenv/versions/2.1.1/lib/ruby/2.1.0/timeout.rb:76:in timeout

I fixed it manually on the server for now. But the https-prefix is not supposed to be in the settings/production.yml yet. On staging this is fine and eventually on production.


The docs should treat "FieldValidatorModes" more clearly, as they do for Model Validator Modes ("Literal['wrap', 'before', 'after']")

Initial Checks

[X] I have searched Google & GitHub for similar requests and couldn't find anything
[X] I have read and followed the docs and still think this feature is missing

Description
Hi, thanks for the incredible work on this library!
The Problem
I was recently implementing some Field Validators for the first time, and the docs are frustratingly vague when it comes to the modes -- the tutorial doesn't give any examples for modes other than the default, and reference doesn't even say what the options are (before, after, wrap, plain), instead just giving the name of the convenience typedef "FieldValidatorModes". There's some great discussion for model validator modes, but A) it should be in both places or linked from one to the other, and B) there's no discussion whatsoever of the "plain" type, since it's only available for field validators. Which is extra confusing because the default is "after", not "plain"!
The Solution
Assuming I didn't miss the documentation (super possible), I think the change here should primarily be a documentation one (specifically to /api/functional_validators and /concepts/validators).
One could argue that the direct, typedef-less approach from @adriangb's April 2023 commit implementing ModelValidator could/should be applied to FieldValidator too, but that's obviously only an internal concern. At the very least, I would passionately request:

Listing the four options in the docs somewhere instead of/in addition to the typedef name
An explanation of the "plain" mode
And a clarification that the function signature does not change for field_validator(mode="before") / field_validator(mode="after") like it does for model_validator(mode="before") / model_validator(mode="after").**

I'd offer to help out myself / propose a pull request, but I don't have time to setup your dev system, so I'm leaving this instead. Will try to come back to it sometime if y'all are too busy :)
Affected Components

[ ] Compatibility between releases
[ ] Data validation/parsing
[ ] Data serialization - .model_dump() and .model_dump_json()
[ ] JSON Schema
[ ] Dataclasses
[ ] Model Config
[ ] Field Types - adding or changing a particular data type
[X] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - model_construct(), pickling, private attributes, ORM mode
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

:facepalm: ok I scrolled up and there is a section on "Before, After, Wrap and Plain" at the top of that page, so feel free to close this! I still think the complaint about referencing a typedef in the docs stands, but obviously you're well covered on the explanations I requested.


search_method='linear' throws runtime error

Thanks so much for coming here to raise an issue. Please take a moment to 'check' the below boxes:

[x] I'm up-to-date with the latest release:
pip install -U talos

[x] I've confirmed that my Keras model works outside of Talos.

If you still have an error, please submit complete trace and a code with:

output of shape for x and y e.g. (212,12)
Talos params dictionary
The Keras model wired for Talos
Description of extra variables in the model

You can provide the code in pastebin / gist or any other format you like.

Running the breast_cancer example with search_method='linear' throws the error below.
Pastebin
I believe at handling.py:22
_choice = self.param_log.min()
should be
_choice = min(self.param_log)
since param_log is a list, not a numpy array.
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-13-bc599657bb69> in <module>()
     63             params=p,
     64             dataset_name='breast_cancer',
---> 65             experiment_no='k')

/usr/local/lib/python3.7/site-packages/talos/scan.py in __init__(self, x, y, params, dataset_name, experiment_no, model, val_split, shuffle, search_method, save_best_model, reduction_method, reduction_interval, reduction_window, grid_downsample, reduction_metric, talos_log_name, debug)
     75         self.result = []
     76         while len(self.param_log) != 0:
---> 77             self._null = self._run()
     78
     79         self = result_todf(self)

/usr/local/lib/python3.7/site-packages/talos/scan.py in _run(self)
     84     def _run(self):
     85
---> 86         round_params(self)
     87
     88         try:

/usr/local/lib/python3.7/site-packages/talos/parameters/handling.py in round_params(self)
      6     '''PICK PARAMETERS FOR ROUND'''
      7
----> 8     self, _p = run_param_pick(self)
      9     self.params = run_param_todict(self, _p)
     10

/usr/local/lib/python3.7/site-packages/talos/parameters/handling.py in run_param_pick(self)
     20
     21     elif self.search_method == 'linear':
---> 22         _choice = self.param_log.min()
     23
     24     elif self.search_method == 'reverse':

AttributeError: 'list' object has no attribute 'min'

I was able to reproduce your error and confirm. @aronwc thank you for finding this.
@mikkokotila would you like me to add this to my current PR?

@mikkokotila Great, thanks for the quick fix!


Switch debian url to production

@samjhecht @theduderog Can you please review this PR ?
Changes:

Change the deb URL to http://packages.confluent.io
Fix all failing tests

We can build and upload docker images once we merge this PR.

Closing. Wrong place.


Support split string.

Fixed #13
Signed-off-by: Bo-Yi Wu<EMAIL_ADDRESS>

Current coverage is 98.00% (diff: 100%)

Merging #14 into master will increase coverage by 0.27%

@@             master        #14   diff @@
==========================================
  Files             1          1
  Lines            44         50     +6
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits             43         49     +6
  Misses            1          1
  Partials          0          0

Powered by Codecov. Last update da6645c...ef73e3d


pythonPackages.fritzconnection: 0.8.4 -> 1.2.1

Motivation for this change
The upstream package includes test in the build. Patched that out and informed upstream, should be possible to drop the prePatch then. See https://github.com/kbr/fritzconnection/pull/39
Closes #83384
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build pythonPackages.fritzconnection

@GrahamcOfBorg build python3Packages.fritzconnection


Cannot install - error creating setting_translations table

On fresh Laravel installation when adding Twill (master branch) and doing twill:install I get:
Migrating: 2019_11_26_30009_create_settings_table
Illuminate\Database\QueryException  : SQLSTATE[HY000]: General error: 1005 Can't create table `triglav_apartmaji`.`#sql-6216_5cee8` (errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table `setting_translations` add constraint `fk_setting_translations_setting_id` foreign key (`setting_id`) references `settings` (`id`) on delete CASCADE)

Seems it works if I change id field of settings table in migration to bigIncrements. Hope that helps?

Seems it works if I change id field of settings table in migration to bigIncrements. Hope that helps?

It worked perfectly! Thanks @Stiropor

Fixed on master!


doc update

Hi, I'm learning to use this project, so please correct me if I'm wrong:
Should this example be updated according to this commit?

Yes it should. Thanks for reporting it. I'll read the README and update old code.


Can I use scrcpy when the phone screen is completely broken?

I have actually tested, there is a vivo x9 machine, Android 7.0, in the case of the screen line is completely unplugged, the use of scrcpy can normally screen mobile phone screen, you can also use the mouse to simulate mobile phone operation normally.
I now have a Honor v9 mobile phone, Android 9.0, after unplugging the screen, it can not display the screen picture normally, has been stuck in the Honor logo.
But I can feel scrcpy can still use the mouse to simulate the operation, that is, the screen does not show, how is this? Is the Android version too high? Is there anything you know that can help me?

这台荣耀v9的手机屏幕虽然扣掉了，但是用scrcpy完全可以操作，就是画面一直卡荣耀的logo，有大佬知道怎么回事吗？
Although the screen of this Honor v9 mobile phone is unplugged, but scrcpy can operate the mobile phone, that is, the picture has been card Glory logo, do you know what is going on?

If it's showing a logo on the physical screen, the screen isn't broken. You have an issue with your phones software

如果它在物理屏幕上显示徽标，则屏幕没有损坏。您的手机软件有问题

The lines of my physical screen have been unplugged, and you can treat the physical screen as if it does not exist, but the screen screen of scrcpy has always been a glorious logo.
I can use the mouse to operate the phone normally, because I can swipe the mouse over the lock screen to hear a tone to unlock the phone.

I'm not sure I understand, but does scrcpy --turn-screen-off help?
Sometimes, when the screen is broken or unplugged, it causes issues that --turn-screen-off can resolve.

I think I understand now.
My Asus ROG Phone 2 shows a logo on virtual displays when the screen is locked. I think yours does that too. Can you unlock the phone?
Could also be that your launcher doesn't work on virtual displays. Use --start-app to try starting a specific app.

我不确定我是否理解，但有帮助吗？scrcpy --turn-screen-off
有时，当屏幕破裂或拔下插头时，会导致可以解决的问题。--turn-screen-off

[server] INFO: Forcing display off
Now is that every time the screen will appear once above INFO, the phone is still stuck in the glory logo. The screen touch is normal, you can slide to unlock normally, but the picture is stuck.

在

My physical screen is completely damaged and does not display at all. I had a vivox9 phone before, and the screen was completely damaged and you could normally use scrcpy to cast the screen. But this Honor v9 has been stuck in the Honor logo interface. So I want to find out what caused the normal display of the picture.


how to copy the log4j.xml to the domain folder while building the Weblogic 1221 image

To copy an updated log4j.xml to the WebLogic Server directory while building a new WebLogic docker image, update your Dockerfile with a command to copy the log4j.xml to the appropriate directory location.  For example, the following commands copy both the log4j.xml and log4j.properties file to the appropriate locations for the console application in the WebLogic server distribution:
Copy log4j.properties for console application
COPY properties/docker-build/log4j.properties  ${ORACLE_HOME}/wlserver/server/lib/consoleapp/consolehelp/WEB-INF/classes
Copy log4j.properties for console application
COPY properties/docker-build/log4j.xml  ${ORACLE_HOME}/wlserver/server/lib/consoleapp/webapp/WEB-INF/classes
NOTE: the two properties files (log4j.xml and log4j.properties) are assumed to be in the subdirectory 'properties/docker-build' from which the docker 'build' command is executed.
Please let me know if this was what you were looking for or not.

@ganesh5756 pl;ease let us know if you still have questions

closing


Add face contour processing

@gkaldev it will squash-and-merge away but any idea why this PR has a million google commits?
(Also FYI when using squash and merge make sure to click the button not press enter, I have had it not work sometimes and GitHub support told me that's the fix)

@gkaldev it will squash-and-merge away but any idea why this PR has a million google commits?
(Also FYI when using squash and merge make sure to click the button not press enter, I have had it not work sometimes and GitHub support told me that's the fix)

Yeah, definitely planning to squash and merge! Reason why it is so messy is because it was an old fork I had from a while back that I merged the base into. I should have just created a new fork I guess.

@samtstern By the way, all this code has been reviewed by Eng already. Do you want to take another look here, or want me to just squash and merge?


Add new benchmark functions for testing

The idea is to implement the following benchmark functions:

[x] Sphere
[x] Easom
[x] Ackley
[x] Rosenbrock
[x] Goldstein-Price
[ ] Rastrigin
[ ] Michalewicz
[x] Lévy
[x] Beale

For now, these should suffice, keeping in mind the API that is currently implemented.
Maybe all the functions will be split in a different module so as to avoid importing all the benchmark functions when these are not needed.

Added Ackley's functions in #28

Although not in the list, the Rosenbrock function was added in #34

Beale, Lévy and Goldstein-Price all added in #35


No results for yarn (berry) monorepo

The audit-ci check in a Yarn (berry) monorepo may be incomplete. To reproduce:

Use a monorepo
Run audit-ci to only check for production dependencies
Notice you'll see very few audit results

What happens (see here) for the line involved):

When auditing only production dependencies, then the --environment production arguments  are used
When auditing any dependency (either production or dev), then the --all flag is used. The -all flag is used in yarn to specify that we want to audit all dependencies in this workspace, and not just the one in the current working dir (see here for the docs)
In other words, audit-ci is either

checking all (both production/development) dependencies in the complete workspace
checking only the production dependencies of the currently focused package

It seems to me that there is a misunderstanding of the -all argument. I'd argue we'd always want audit-ci to audit the complete workspace, i.e. we should always include the -all argument

Thanks for the issue report. I will try to get to this on the weekend. Our current test suite does not cover monorepos. I think it should!

Hey, I haven't forgotten about this. I've had to spend all my extra time on another professional project which will be done within the week. I will try to tackle this afterwards. Thanks for understanding!

Hey @quinnturner, I got a bit of extra time and could look at this if you'd like

Hey @kyletsang, that would be great! I am still working on a mandatory side project personally this week but can do PR reviews. On my GitHub's audit-ci, I created a branch for yarn workspaces where I started creating the tests. You're welcome to look at it if you'd like or start from scratch; I only spent like 20 mins or something like that.

Released in v6.2.0


Transfer the remaining of the wiki

From http://web.archive.org/web/20080430052812/http://code.whytheluckystiff.net/camping to http://wiki.github.com/camping/camping .
We probably want to re-organize it too.

I'm gonna take this on.
Tasks:

[ ] Move everything still relevant in the wiki to the README.
[ ] Fix the dead links, and lead them to wayback machine pieces that are relevant.
[ ] Try add a new section to the README that includes links to great old issues, discussions, and articles that showed how great Camping is.