text:
Better support for file path wildcards

Lets say we have this structure

src

foo

bar

baz

Using macOS 10.12.2 and node v7.4.0 - this command prettier --write src/**/*.js will ignore content inside of bar directory.
After some research I found that process.argv works like that and there are no workaround. (At least I didn't find any).
And I made my own tool using glob and it worked how I expected.
const fs = require('fs');
const glob = require('glob');
const prettier = require('prettier');
const minimist = require('minimist');

const argv = minimist(process.argv.slice(2));

const files = argv._.length ? argv._ : glob.sync('+(src|test)/**/*.js');

files.forEach((filePath) => {
  fs.readFile(filePath, 'utf8', (readError, source) => {
    console.log(filePath)

    if (readError) {
      console.error(readError);
    } else {
      try {
        const result = prettier.format(source);

        fs.writeFile(filePath, result, (writeError) => {
          if (writeError) {
            console.error(writeError);
          }
        });
      } catch (formatError) {
        console.error(formatError);
      }
    }
  });
});

I know that prettier will Resist adding configuration (#40)
And idea about .prettierrc was already declined (#154)
But what about adding .prettierrc to add current available options only ?
{
  "source": [
    "src/**/*.js",
    "test/**/*.js"
  ],
  "parser": "babylon"
}

Or add --source=src/**/*.js parameter to define which files should be prettified.
And use tools like glob to list all available files from source wildcards.
I will be happy to add PR if you're agree with this proposal.

Regarding globs – it all depends on what your shell supports. In particular, if it supports the ** glob or not.
If a shell supports * but not **, what happens is that you've simply put two *s after each other, which matches exactly the same things as a single *. ("Match zero or more of anything, followed by zero or more of anything (except /s)".)
In bash, you must make sure to enable the "globstar" option (and make sure to run a version of bash that has that option).
# Here's my bash version, which I know has the "globstar" option.
$ bash --version
GNU bash, version 4.3.46(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

# Enter bash (just to show that I'm not using some other shell).
$ bash

# Make sure that the "globstar" option is disabled.
$ shopt -u globstar

# Try a `**` glob.
$ echo src/**/*.js
src/baz/baz.js src/foo/foo.js

# Enable the "globstar" option.
$ shopt -s globstar

# Try a `**` glob again. Note how src/foo/bar/bar.js and src/src.js are found now.
$ echo src/**/*.js
src/baz/baz.js src/foo/bar/bar.js src/foo/foo.js src/src.js

# As far as I know, the "sh" shell does not support the `**` glob (at least not
# by default on my system):
$ sh
$ echo src/**/*.js
src/baz/baz.js src/foo/foo.js
$ echo src/*/*.js
src/baz/baz.js src/foo/foo.js

Since there are so many shells and so many versions, it's difficult to get globbing right. To make things worse, the default shell in many operating system doesn't support the ** glob (by default). This is especially a problem in npm scripts:
{
  "scripts": {
    "prettier": "prettier src/**/*.js"
  }
}

The above is not a good cross-platform solution. Therefore, it is common among Node.js CLI tools to incorprate their own globbing support, allowing to write the above example as:
{
  "scripts": {
    "prettier": "prettier 'src/**/*.js'"
  }
}

Note the added single quotes above. They make sure that the shell does not try to expand the globs. Instead, the exact string src/**/*.js will be sent to prettier (as process.argv[2]). Then, prettier can pass that string to some glob library, such as micromatch, and let it expand the glob in a consistent way.

I think we should change the README to avoid using the glob expansion since it doesn't work in bash. We can replace it find find src -name '*.js' | xargs prettier but this doesn't feel super nice for people that don't know bash that well and doesn't work on windows.
I agree that passing globs as strings and having prettier handle them seem like a great solution.

Thanks for your explanations but none of the above patterns works in Windows. Can you give me a hint what should I do to introduce all js files in src directory to prettier?

@metacoding If you wrap your pattern in quotes, Prettier will execute the pattern for you in a cross-platform way.
prettier "src/**/*.js" will rub prettier on every file within a "src/" folder, for instance.
I believe there is some information in the docs about this, but I'm not sure where it is at the moment. (apologies).

authors: hawkrives lydell metacoding umidbekkarimov vjeux


text:
[Feature] Support CachedNetworkImages

This will help improve presentation without a lengthy workaround. Although it would show loading the first time, it would load from the cache on subsequent runs.
Ignore horrible quality gif

I was also needed to have it supported, and I was only required to have simple indicators.
I ended up creating my own:
import 'package:flutter/material.dart';

class PageIndicator extends StatefulWidget
{
    int max;
    int current;

    PageIndicator({this.max, this.current});

    @override
    State createState() => PageIndicatorState();
}

class PageIndicatorState extends State<PageIndicator>
{
    final double indicatorSize = 10.0;
    final double indicatorMargin = 5.0;
    final Color indicatorInactiveBackground = Colors.white;
    final Color indicatorActiveBackground = Colors.blue;

    @override
    Widget build(BuildContext context)
    {
        if (widget.max <= 1)
            return Container();

        List<Widget> indicators = [];

        for (int i = 0; i < widget.max; i++)
        {
            indicators.add(
                Container(
                    width: indicatorSize,
                    height: indicatorSize,
                    decoration: BoxDecoration(
                        color: widget.current == i ? indicatorActiveBackground : indicatorInactiveBackground,
                        shape: BoxShape.circle
                    ),
                    margin: EdgeInsets.symmetric(horizontal: indicatorMargin)
                )
            );
        }

        return Container(
            padding: const EdgeInsets.only(bottom: 10.0),
            alignment: AlignmentDirectional.bottomCenter,
            height: 20.0,
            decoration: BoxDecoration(
                boxShadow: [
                    BoxShadow(
                        color: Color(0x1A000000),
                        blurRadius: 30.0,
                        spreadRadius: 10.0,
                        offset: Offset(0.0, -10.0)
                    )
                ]
            ),
            child: Row(
                mainAxisAlignment: MainAxisAlignment.center,
                crossAxisAlignment: CrossAxisAlignment.center,
                children: indicators
            ),
        );
    }
}

class Carousel extends StatefulWidget
{
    List<Widget> children;

    Carousel({this.children});

    @override
    State createState() => CarouselState();
}

class CarouselState extends State<Carousel>
{
    final PageController _controller = PageController();
    int currentPage = 0;

    @override
    void initState()
    {
        super.initState();

        _controller.addListener(controllerListener);
    }

    @override
    Widget build(BuildContext context)
    {
        return Stack(
            children: <Widget>[
                PageView(
                    physics: new AlwaysScrollableScrollPhysics(),
                    children: widget.children,
                    controller: _controller,
                ),
                Align(
                    alignment: AlignmentDirectional.bottomCenter,
                    child: PageIndicator(max: widget.children.length, current: currentPage),
                )
            ],
        );
    }

    @override
    void dispose()
    {
        _controller.removeListener(controllerListener);
        super.dispose();
    }

    controllerListener()
    {
        if (_controller.page.round() != currentPage)
            setState(() => currentPage = _controller.page.round());
    }
}

Usage:
Carousel(
    children: [/* Your widgets */],
)

@idofilus You're a life saver. I learn't a lot from your code. THANKS!

source: gharchive/issue

authors: ThinkDigitalRepair idofilus pat64j

repo: jlouage/flutter-carousel-pro

license: MIT

license_type: permissive

license_source: github-api


text:
Delete behavior should interpolate frame

The delete behavior currently completely deletes the puppet from the frame. Here is how I think we should handle this:

If we try to delete an intermediate frame (a frame where both left and the right frames have annotation), it should:
a) interpolate again all the frame (between the surrounding keyframes) to negate the effects of the deleted frame (just assume that there is no frame there).
b) just replace the deleted frame by the interpolation of two neighboring frames. This situation arises when a user tries to adjust the frame too much and just wants to clear their changes.
c) In short, delete == clear my changes, in this case.

If you delete a boundary frame (assuming that it is a keyframe):
a) again, interpolate the affected frame near it assuming that the current frame does not exist.
b) make the neighboring frame a keyframe.
c) remove the annotation of the current frame.

It implies that if someone needs to delete the whole sequence, they need to start at one of the ends.

This is done (in essence). However, there might be some cases when we are not able to delete the frame due to inconsistency in annotation data.

authors: Jigyasu isUmang

repo: jltmtz/image-annotator

license: mit

license_source: bigquery


text:
OpenVPN is broken

the container does not restart
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
Enabling IPv6 Forwarding
sysctl: error setting key 'net.ipv6.conf.all.disable_ipv6': Read-only file system
Failed to enable IPv6 support
sysctl: error setting key 'net.ipv6.conf.default.forwarding': Read-only file system
Failed to enable IPv6 Forwarding default
sysctl: error setting key 'net.ipv6.conf.all.forwarding': Read-only file system
Failed to enable IPv6 Forwarding
Running 'openvpn --config /etc/openvpn/openvpn.conf '
Options error: Unrecognized option or missing or extra parameter(s) in /etc/openvpn/openvpn.conf:21: push (2.4.2)
Use --help for more information.

Regenerating the configuration and keys fixed the issue.

repo: jmMeessen/the-captains-shack


text:
Unable to convert pointers to direct types like *struct => struct

Is your feature request related to a problem? Please describe.
I'm trying to convert values from *struct to struct automatically, because my models are value based, but gRPC messages are always pointer based. It requires me to write a lot of intermediate converters and next enable them with extend command. Moreover, conversions from struct to *struct also not working as expected, because they don't use field settings for inner method (bug?).
Describe the solution you'd like
I want to be able to use the following syntax
type Converter interface {
    FromGrpcMessage(*grpc.Message) domain.Model
}

I already implemented this feature and tried to fix a bug with ignoring original method tags (should be discussed, see PR).

If that works for you, feel free to do use it, but it'll produce compile errors when you use certain goverter features, namely https://goverter.jmattheis.de/#/conversion/custom?id=method-with-converter if you've private functions then the generated converter struct won't fit into the Converter interface.
package example

import "strconv"

// goverter:converter
type Converter interface {
	// goverter:map Value | ConvertInt
	Convert(source Input) Output

	convertX(string) string
}

func ConvertInt(c Converter, value int) string {
	return strconv.Itoa(value)
}

type Input struct {
	Value int
}

type Output struct {
	Value string
}

$ goverter ./
$ go build ./generated
# goverter/example/generated
generated/generated.go:11:43: cannot use c (variable of type *ConverterImpl) as example.Converter value in argument to example.ConvertInt: *ConverterImpl does not implement example.Converter (missing method convertX)

Yes, but it can be bypassed, if the generated file will be stored in the same package as the configuration/extension file.
This can be achieved specifying -output, -packageName and -packagePath together.
Also it is required to add //go:generate rm generated.go before. And it looks like a hack.

Yeah, you can work around this problem, but it's not officially supported to use unexported functions in converter interfaces.

This feature is released with v0.17.0, see https://goverter.jmattheis.de/#/conversion/misc?id=use-zero-value-on-pointer-inconsistency

@jmattheis we are using this already in several projects and every time I'm thinking about this option name: useZeroValueOnPointerInconsistency.
What do you think, maybe it is reasonable to add alias like useEmptyOnNilPointer for this option?
Or even rename it (but remain as a fallback for backward compatibility)?
Maybe after a year you changed your mind?

Hmm, I dislike the name useZeroValueOnPointerInconsistency, but useEmptyOnNilPointer could be misleading. If two nilable types are converted e.g. *string to *string then it won't use the zero string value for conversion, even if the source pointer is nil.

Well, it could be misleading, but for me the useEmptyOnNilPointer says "use empty value for target type, where source type is nil. Target type is reference type - *string and empty (or zero) value for it is nil.

Sorry for the late-reply.
I'd prefer "ZeroValue" instead of empty because empty has different semantics with slices / maps. E.g. imaging setting useEmptyOnNilPointer with a conversion of []int to []int. I'd expect when the source []int is nil, that we'd use an empty value of the slice []int{} instead.
E.g. from the go docs:
Note that the [zero value](https://go.dev/ref/spec#The_zero_value) for a slice or map type is not the same as an initialized but empty value of the same type.

https://go.dev/ref/spec#Composite_literals
Maybe something like this could be better, but I'm not sure:
goverter:onNilableMismatch useZeroValue

and the default would be
goverter:onNilableMismatch fail

Thank you for the reply. It is wonderful you are thinking about how to improve cosmetics of this.

authors: jmattheis pavelpatrin

repo: jmattheis/goverter


text:
Support relationships

Relationship support should be out of the box. It requires a more prescriptive structuring of your data, but the benefits are worth it, I think. Also, it would be optional, of course.
Also, per-attribute relationship updates should be included.

Gonna close. This can be added as a 2.0 plugin, and we can merge it into core later if people are interested

repo: jmeas/redux-simple-resource


text:
Any updated package suitable for VS.2017?

I tried installing this on my new asp.net core web application on VS.2017 and it was asking to install a lot of old stuff...

I have updated the code for .net6.
Please try the new version and reopen this issue if it still exists.

authors: jmelosegui lordofscripts

repo: jmelosegui/GooglemapMvc


text:
Daily update

Automated changes by create-pull-request GitHub action

Build failed because of:
No cached entry, and can not fetch: xbmc. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: wind-river-systems. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: university-of-new-mexico-main-campus. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: vanderbilt-university-nashville. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: university-of-new-hampshire-durham. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: university-of-hong-kong-2. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: stanford-board-of-trustees. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: shenzhen-huiding-technology-co-ltd-. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: selfeen. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: rice-university-2. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: purdue-university-5. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: past_people. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: octopus-com-2. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: nordic-semiconductor. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: national-information-society-agency-5faf. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: lmax-exchange. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: hochschule-luzern. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: eprise-corporation. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: consensus-systems--consensys-. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: codasip-ltd. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: cole-polytechnique-f-d-rale-de-lausanne. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: chair-entertainment-group. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: bny-mellon. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: auburn-university-main-campus. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: american-superconductor-2. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and Sollers College has issues with twitter: https://twitter.com/SollersEdu, 401 - {"request":"/1.1/statuses/user_timeline","error":"Not authorized."}
No cached entry, and Volkswagen Aktiengesellschaft has issues with twitter: https://twitter.com/volkswagen_de, 401 - {"request":"/1.1/statuses/user_timeline","error":"Not authorized."}
Empty twitter for CSIRO/DATA 61: https://twitter.com/CSIROnews
Empty twitter for TYNYBAY Inc: https://twitter.com/tynybayinc
Empty twitter for Truepic, Inc.: https://twitter.com/truepicinc
Empty twitter for Tectonic Labs Ltd.: https://twitter.com/cloud_ridge
No cached entry, and MERA has issues with twitter: https://twitter.com/CurrentlyOrion/, 401 - {"request":"/1.1/statuses/user_timeline","error":"Not authorized."}
No cached entry, and Mellanox Technologies, Ltd has issues with twitter: https://twitter.com/mellanoxtech, 404 - {"errors":[{"code":34,"message":"Sorry, that page does not exist."}]}
Empty twitter for SVA System Vertrieb Alexander GmbH: https://twitter.com/SvaGmbh
Empty twitter for China Telecommunications Corporation: https://twitter.com/chinatelecom1
Empty twitter for eBaoTech International Pte Ltd: https://twitter.com/Ebaotech
No cached entry, and Beechwoods Software, Inc. has issues with twitter: https://twitter.com/hayshadeitsch1, 401 - {"request":"/1.1/statuses/user_timeline","error":"Not authorized."}
No cached entry, and Google LLC has issues with twitter: https://twitter.com/GCPcloud, 404 - {"errors":[{"code":34,"message":"Sorry, that page does not exist."}]}
American Superconductor either has no crunchbase entry or it is invalid
Bank of New York Mellon either has no crunchbase entry or it is invalid
Codasip s.r.o. either has no crunchbase entry or it is invalid
ConsenSys AG either has no crunchbase entry or it is invalid
Epic Games, Inc. either has no crunchbase entry or it is invalid
LMAX Exchange Ltd either has no crunchbase entry or it is invalid
Nordic Semiconductor ASA either has no crunchbase entry or it is invalid
OctopusDeploy either has no crunchbase entry or it is invalid
Shenzhen Goodix Technology Co.,Ltd. either has no crunchbase entry or it is invalid
Texas Instruments Incorporated either has no crunchbase entry or it is invalid
Wind River Systems, Inc. either has no crunchbase entry or it is invalid
Auburn University RFID Lab either has no crunchbase entry or it is invalid
Electric Power Research Institute (EPRI) either has no crunchbase entry or it is invalid
EPFL either has no crunchbase entry or it is invalid
GS1 US either has no crunchbase entry or it is invalid
Ken Kennedy Institute either has no crunchbase entry or it is invalid
Kodi Foundation either has no crunchbase entry or it is invalid
Lucerne University of Applied Sciences either has no crunchbase entry or it is invalid
National Information Society Agency either has no crunchbase entry or it is invalid
Purdue University either has no crunchbase entry or it is invalid
Stanford University either has no crunchbase entry or it is invalid
The University of Hong Kong either has no crunchbase entry or it is invalid
University of New Hampshire either has no crunchbase entry or it is invalid
University of New Mexico either has no crunchbase entry or it is invalid
Vanderbilt University either has no crunchbase entry or it is invalid

Build failed because of:
No cached entry, and can not fetch: wind-river-systems. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: xbmc. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: vanderbilt-university-nashville. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: university-of-new-mexico-main-campus. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: university-of-new-hampshire-durham. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: university-of-hong-kong-2. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: stanford-board-of-trustees. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: selfeen. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: shenzhen-huiding-technology-co-ltd-. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: rice-university-2. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: purdue-university-5. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: past_people. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: octopus-com-2. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: nordic-semiconductor. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: lmax-exchange. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: national-information-society-agency-5faf. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: hochschule-luzern. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: eprise-corporation. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: consensus-systems--consensys-. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: cole-polytechnique-f-d-rale-de-lausanne. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: codasip-ltd. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: chair-entertainment-group. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: auburn-university-main-campus. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: bny-mellon. 404 - {"error":"requested resource could not be found","code":"CS404"}
No cached entry, and can not fetch: american-superconductor-2. 404 - {"error":"requested resource could not be found","code":"CS404"}
Empty twitter for CSIRO/DATA 61: https://twitter.com/CSIROnews
No cached entry, and Volkswagen Aktiengesellschaft has issues with twitter: https://twitter.com/volkswagen_de, 401 - {"request":"/1.1/statuses/user_timeline","error":"Not authorized."}
No cached entry, and Sollers College has issues with twitter: https://twitter.com/SollersEdu, 401 - {"request":"/1.1/statuses/user_timeline","error":"Not authorized."}
Empty twitter for TYNYBAY Inc: https://twitter.com/tynybayinc
Empty twitter for Truepic, Inc.: https://twitter.com/truepicinc
Empty twitter for Tectonic Labs Ltd.: https://twitter.com/cloud_ridge
Empty twitter for SVA System Vertrieb Alexander GmbH: https://twitter.com/SvaGmbh
No cached entry, and MERA has issues with twitter: https://twitter.com/CurrentlyOrion/, 401 - {"request":"/1.1/statuses/user_timeline","error":"Not authorized."}
No cached entry, and Mellanox Technologies, Ltd has issues with twitter: https://twitter.com/mellanoxtech, 404 - {"errors":[{"code":34,"message":"Sorry, that page does not exist."}]}
Empty twitter for China Telecommunications Corporation: https://twitter.com/chinatelecom1
Empty twitter for eBaoTech International Pte Ltd: https://twitter.com/Ebaotech
No cached entry, and Beechwoods Software, Inc. has issues with twitter: https://twitter.com/hayshadeitsch1, 401 - {"request":"/1.1/statuses/user_timeline","error":"Not authorized."}
No cached entry, and Google LLC has issues with twitter: https://twitter.com/GCPcloud, 404 - {"errors":[{"code":34,"message":"Sorry, that page does not exist."}]}
American Superconductor either has no crunchbase entry or it is invalid
Bank of New York Mellon either has no crunchbase entry or it is invalid
Codasip s.r.o. either has no crunchbase entry or it is invalid
ConsenSys AG either has no crunchbase entry or it is invalid
Epic Games, Inc. either has no crunchbase entry or it is invalid
LMAX Exchange Ltd either has no crunchbase entry or it is invalid
Nordic Semiconductor ASA either has no crunchbase entry or it is invalid
OctopusDeploy either has no crunchbase entry or it is invalid
Shenzhen Goodix Technology Co.,Ltd. either has no crunchbase entry or it is invalid
Texas Instruments Incorporated either has no crunchbase entry or it is invalid
Wind River Systems, Inc. either has no crunchbase entry or it is invalid
Auburn University RFID Lab either has no crunchbase entry or it is invalid
Electric Power Research Institute (EPRI) either has no crunchbase entry or it is invalid
EPFL either has no crunchbase entry or it is invalid
GS1 US either has no crunchbase entry or it is invalid
Ken Kennedy Institute either has no crunchbase entry or it is invalid
Kodi Foundation either has no crunchbase entry or it is invalid
Lucerne University of Applied Sciences either has no crunchbase entry or it is invalid
National Information Society Agency either has no crunchbase entry or it is invalid
Purdue University either has no crunchbase entry or it is invalid
Stanford University either has no crunchbase entry or it is invalid
The University of Hong Kong either has no crunchbase entry or it is invalid
University of New Hampshire either has no crunchbase entry or it is invalid
University of New Mexico either has no crunchbase entry or it is invalid
Vanderbilt University either has no crunchbase entry or it is invalid

source: gharchive/pull-request

authors: CNCF-Bot jmertic

repo: jmertic/lf-landscape


text:
Add overlord

PR for overlord part 1

I didn't see any specs for BombHelpers.

This is looking like a good start.  It looks like you basically tried to get Rails in Sinatra.  Lot of work!
Work on moving logic to the correct classes/locations.  Take a look at our comments and refactor.

So there are definite fixes to make to the backend, but as a testing assignment, the biggest thing you should do is flesh out the integration tests. Right now they cover very little of the app.
Please take another stab.

authors: djkotowski jmmastey sriking1783


text:
Running on Windows Docker vs WSL versions

Hi
Not really an issue, unless you include "more explanation" as an issue. But you guys don't have a discussion section here on Github.
Is there any benefit (or con) to running in WSL vs Docker for Windows? (as still no sign of a Win version coming).
I am leaning towards WSL simply because I've had issues in the past trying to get non-docker LLM apps to communicate with docker apps and vice versa.
Docker seems simple, but the instructions aren't specific to windows, are they? Otherwise wouldn't the Docker version count as this app being available for windows (which the main page still says is coming soon)?
Will it be any slower or faster in docker?
I have also heard via WSL will use less VRAM.
Where do models get downloaded to, if we're running in either? Can we point the docker version or the WSL  version to a common repo of LLM models on our drive locally?
Many other LLM apps "require" Ollama as their backend, so I really hope to start using this soon.
I have both docker desktop and WSL/Ubuntu installed already.
If I have another LLM app, say, Cheshire Cat AI, already running in docker, maybe I would be better off running the dockerised Ollama. But then other LLM apps that do NOT run in docker, also want it. Not sure what option is going to give me the more simple setup in the long run.
Thanks!

Hi there.
I'm on Win11, wsl2, docker.
I've been using a lot wsl2, doing things straight inside it
It worked for a while, but with time, it got pretty ugly.
I liked to try every AI project and each had own version requirements for some common package.
When I was updating one, often an upgrade was done, which, in turn, blow the others. And so on.
I started to make intensive use of miniconda (TGWUI came with it by default), but still had minor issues.
Then I started to use Docker.
And besides other unforseen problems which poped out but weree workable (increase host ram allocated to docker, swap space, network accessibility between containers, common place to store LLMs, etc),  I am declaring now happy.
No more hustle.
An I'm wondering why others not use it 😉

And actually host ram, swap space, are directly related to wsl2, not to docker.

@EmmaWebGH When starting with WSL2 on laptops/workstations, users typically love the userfriendly use of Ubuntu. When it comes to a specific distro, which is not listed in wsl --list --online, there is an import function to make use of a dockerized distro. You can use Windows Docker Desktop for that as well. Nvidia GPU drivers support WSL2.
There are configuration settings for ram and cpu for the underlying linux kernel in WSL2, see https://learn.microsoft.com/en-us/windows/wsl/wsl-config.
To strictly separate research environments, I recommend VMware by Broadcom Workstation because it's userfriendly, easy to maintain different configurations without thinking about guest os and its components, windows patches, drivers, etc. You can do snapshots during testings, save the virtual machines on portable media, etc. One actual limitation are the defaults to present an NVidia GPU to a guest os, hence a linux guest os with installed Ollama will only use cpu power.
In theory you can use probably every Linux distro on WSL2 to use Ollama, but there is scripting know-how needed. I've assembled all the necessary steps e.g. for VMware By Broadcom Photon OS, see https://github.com/vmware/photon/issues/1532 and https://communities.vmware.com/t5/Photon-OS-Discussions/Ollama-ai-on-Photon-OS-on-WSL2/m-p/2997394.

Thanks for this @dcasota
For me, pretty much the ONLY reason to use WSL is that Docker is not yet windows-friendly, so I'm not too worried about separate linux environments. I actually doubt I'll be using WSL/Ubuntu for anything else.
For all the other stuff I do, I mainly use conda environments, and occasionally Docker on windows, to keep things separate.
I got Ollama running yesterday via WSL, so this looks OK so far.
But I'm still  hazy on where to put models or if we can point Ollama to a folder of already-downloaded models on a local drive somewhere. Every LLM seems to want their models in their own special location and there's a ton of duplication going on right now with my model files! :)

Copied datasets are the root cause. Thirty years old text snippets in ten years old free libraries in actual LLMs.

The root cause is every install of every LLM app doesn't have an easy way to direct itself to a folder specified by the user... ?
Anyway we're off topic now
I suppose I'll go search for a clear answer on where the models are downloaded to and if/how we can direct Ollama to look in a folder of our choosing.

see https://github.com/jmorganca/ollama/issues/1836 about vsan. Deduplication is a datacenter storage server functionality. Computers, laptops, workstations typically are missing this feature.
In addition, using Ollama in docker layering, this is a maintenance technique question. Unfortunately optimal docker image size maintenance is not a built-in automatic docker task. My reference learning container images is Cora Ciberkleid's advice in https://tanzu.vmware.com/developer/tv/tanzu-tuesdays/0082/.

What are you even talking about? Are you a troll? You're speaking words that have nothing to do with the intent of my original question.

3. "if/how we can direct Ollama to look in a folder of our choosing"
I would call this feature as distributed storage solution. It is a well-known feature in data centre environments.

Datacenter? Where did anyone mention data centre.
A folder of our choosing = a folder on a local drive, dude. A folder with .safetensor models in it, for example. Turns out we can't do it, I've learned elsewhere, no thanks to these confusing replies.
Maybe english isn't your language, I could understand miscommunication then.

Ultimately it's up to the users preference.  We now have a native windows version, but still support WSL2 if that's what users want to run.  They come with their own trade-offs, but if you're on Windows, I'd suggest the native windows version as the preference.

I installed ollama on the windows version, how can I have wsl point to it?

I installed ollama on the windows version, how can I have wsl point to it?
@piranhap
You don't, you either use the WSL version of Ollama or the Windows version of Ollama. One doesn't point to the other.

@piranhap WSL2 has its own network identity, so "localhost" is different from the host windows "localhost".  By default we only expose Ollama to localhost (127.0.0.1:11434) but you can expose it on other addresses via the OLLAMA_HOST variable. (Be careful not to expose on an open/untrusted network)  Check out the https://github.com/ollama/ollama/blob/e72c567cfd18a6e48de0acaeda60896af4bff3fd/docs/faq.md for more information.

authors: EmmaWebGH dcasota dhiltgen ewebgh33 mongolu piranhap

repo: jmorganca/ollama


text:
system heats up on continued rendering

I've noticed that the system fan on my rMBP 15" goes haywire when I leave the particle ground demo (or any other website rendering it) on for about 3 minutes.

+1
I'm also seeing this behavior on my rMBP 13"
OSX 10.10.1
2.8GHz i7
16 GB DDR3
After a few minutes of the demo running the fan on my machine is going full blast and only quiets down once I close the demo.

I'll take a look. I just tested on a (non-retina) 2012 iMac and the demo doesn't tax the CPU (Chrome reports 5-8% CPU usage), but it might be something specific to retina displays: 4 x as many pixels to redraw.

Alright cool. I also should have mentioned that when this hit, I was using a 27" display as well.

It consumes about 80% of the CPU on my rMBP 15” both in chrome and safari. But on my work computer MBP 13” non-retina early 2013, it does about 6%. So I think you’re right about the retina devices.
On January 13, 2015 at 3:05:01 AM, Jason Sims (notifications@github.com) wrote:
Alright cool. I also should have mentioned that when this hit, I was using a 27" display as well.
—
Reply to this email directly or view it on GitHub.
———

Arsalan Bashir

Try using the code from this pull request: https://github.com/jnicol/particleground/pull/2
It cut my page CPU consumption from %70 to %15!

authors: ArsalanBashir jasonsims jnicol okiii

repo: jnicol/particleground


text:
Feature request more 64x32 options

Hi.
I am very new to esp32 boards. I've been using matrix 64x32 and 64x64 boards for a year or so with raspberry pi pico. But I'm completely dumb as anything and have a really really hard time getting a simple project to work😪. I found your project and wow it's so simple to plug, install and play. Downside to clockwise atm is it only has one (Tetris) 64x32 option. Can anyone please add to the 64x32 library please please please. A simple clock, and/or clock & date possibly with a brightness slider and colour picker.
If not I completely understand and thanks anyhow 😊.
Side note, my 64x64 matrix panel doesn't have a D pin, just labeled GND, so I can't get it to work. I followed the pin out and I get the image but,(if split in 4 top to bottom) the top and 3rd only showing the image.
I just have the esp32, jumper wires and the matrix, nothing else and I can't buy other hardware for a while as I've spent way too much already. TMI, but in case it was going to be suggested.
Thanks!!!!

Hi, here is a few boards. There are 34 chips, let me know which ones you'd need.

SM5166 is a miltiplexor of the standard "three_to_eight" type, the Sm16208 is a LED driver.
As a conclusion, this is a normal panel, that should work fine with the library.

But yet it doesn't for some reason. I hand wired it with jumper wires one at a time, I also used the 16 wire ribbon the panel came with. Is it possible it's the esp32?

Fully appreciate your attempt. I'll upload a photo of what the panel looks like after I wire it up again and install a clock.

I got the 64x64 working. My jumper wires and ribbon that came with the panel seemed to be the culprit. I found some jumpers I bought a while back, opened the package, wired both up and bingo! Very sorry to trouble you all with what apparently was a non-issue. But I'm still looking for projects for the 64x32 that are plug and play like the Tetris clock.

Hey guys! @Steph1116 I think your problem is not far to be solved. I have been working in a clockface where you can draw the clock the way you want just using this editor https://editor.clockwise.page/
For a while it will work for 64x64 because this value is hardcoded in the firmware, but is something easy to change here
Please, if you want, try to setup the dev environment (you will have to recompile the project) and I can give you some support

Hey @jnthas Thanks for replying. My problem with that is I'm far from understanding all of that. At the moment I understand plug and play. I'm learning as I go, but I'm far from throwing in anything close to looking like a clock for quite some time.  My end goal is to have a clock that is white during the day and red at night (10pm-6am). It would be date (Sept 26 '23) and time (12-hour) and maybe a third row for weather, conditions and temp. But as mentioned, I'm far from creating something like that myself. I truly truly appreciate all the hard work everyone puts into these project, and i wish one day I could contribute to it. Thanks!!!

Oh, and with the clocks that are currently on clockwise, and the Tetris clock, do they have the option to turn off the led on the esp32 itself?

Ok @Steph1116, no problem! Keep visiting us because I think it's something possible to do it and maybe someone can help with this. There is no parameter to turnoff the builtin led for now.

Thanks! Do you take care of both the 64x64 and 64x32 projects?

Nope. @witnessmenow that developed the Tetris clock

Awesome, I'll contact him. Do you know how to turn off the onboard LED's on the esp32 through clockwise?

repo: jnthas/clockwise


text:
request: support wildcard certificates

Currently IO::Socket::Async::SSL does not support wildcard certificates, but I hope it does.
For example, IO::Socket::Async::SSL raises an exception if we try to connect www.youtube.com:443
❯ perl6 -Ilib -MIO::Socket::Async::SSL -e 'await IO::Socket::Async::SSL.connect("www.youtube.com", 443); CATCH { default { say "ERROR: $_" } }'
ERROR: Host www.youtube.com does not match any subject alt name on the certificate (*.google.com, *.android.com, *.appengine.google.com, *.cloud.google.com, *.gcp.gvt2.com, *.google-analytics.com, *.google.ca, *.google.cl, *.google.co.in, *.google.co.jp, *.google.co.uk, *.google.com.ar, *.google.com.au, *.google.com.br, *.google.com.co, *.google.com.mx, *.google.com.tr, *.google.com.vn, *.google.de, *.google.es, *.google.fr, *.google.hu, *.google.it, *.google.nl, *.google.pl, *.google.pt, *.googleadapis.com, *.googleapis.cn, *.googlecommerce.com, *.googlevideo.com, *.gstatic.cn, *.gstatic.com, *.gvt1.com, *.gvt2.com, *.metric.gstatic.com, *.urchin.com, *.url.google.com, *.youtube-nocookie.com, *.youtube.com, *.youtubeeducation.com, *.ytimg.com, android.clients.google.com, android.com, developer.android.google.cn, developers.android.google.cn, g.co, goo.gl, google-analytics.com, google.com, googlecommerce.com, source.android.google.cn, urchin.com, www.goo.gl, youtu.be, youtube.com, youtubeeducation.com)

Here is the certificates of www.youtube.com:443.
❯ openssl s_client -connect www.youtube.com:443 | openssl x509 -noout -text
...
            X509v3 Subject Alternative Name:
                DNS:*.google.com, DNS:*.android.com, DNS:*.appengine.google.com, DNS:*.cloud.google.com, DNS:*.gcp.gvt2.com, DNS:*.google-analytics.com, DNS:*.google.ca, DNS:*.google.cl, DNS:*.google.co.in, DNS:*.google.co.jp, DNS:*.google.co.uk, DNS:*.google.com.ar, DNS:*.google.com.au, DNS:*.google.com.br, DNS:*.google.com.co, DNS:*.google.com.mx, DNS:*.google.com.tr, DNS:*.google.com.vn, DNS:*.google.de, DNS:*.google.es, DNS:*.google.fr, DNS:*.google.hu, DNS:*.google.it, DNS:*.google.nl, DNS:*.google.pl, DNS:*.google.pt, DNS:*.googleadapis.com, DNS:*.googleapis.cn, DNS:*.googlecommerce.com, DNS:*.googlevideo.com, DNS:*.gstatic.cn, DNS:*.gstatic.com, DNS:*.gvt1.com, DNS:*.gvt2.com, DNS:*.metric.gstatic.com, DNS:*.urchin.com, DNS:*.url.google.com, DNS:*.youtube-nocookie.com, DNS:*.youtube.com, DNS:*.youtubeeducation.com, DNS:*.ytimg.com, DNS:android.clients.google.com, DNS:android.com, DNS:developer.android.google.cn, DNS:developers.android.google.cn, DNS:g.co, DNS:goo.gl, DNS:google-analytics.com, DNS:google.com, DNS:googlecommerce.com, DNS:source.android.google.cn, DNS:urchin.com, DNS:www.goo.gl, DNS:youtu.be, DNS:youtube.com, DNS:youtubeeducation.com

Yeah, I'm aware that's missing; will get to it soon.

authors: jnthn skaji


text:
🛑 Sysacad UTN is down

In ce57de4, Sysacad UTN (http://www.frbb.utn.edu.ar/sysacad/LoginAlumno.asp) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Sysacad UTN is back up in ef002ca after 10 minutes.

repo: joacoserra/statusPage


text:
🛑 MegaConstruct is down

In bca89ea, MegaConstruct (https://www.megaconstruct.ro) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MegaConstruct is back up in 477cb90.


text:
🛑 Felix Telecom is down

In e285da1, Felix Telecom (https://www.felixtelecom.ro) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Felix Telecom is back up in 6ad2f38.


text:
🛑 Security & Telecom Systems is down

In 26f1fc5, Security & Telecom Systems (https://security-telecom.ro) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Security & Telecom Systems is back up in 17cf0fe after 12 minutes.


text:
🛑 Security & Telecom Systems is down

In 6500dd1, Security & Telecom Systems (https://security-telecom.ro) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Security & Telecom Systems is back up in a138964 after 6 minutes.


text:
Sync J2K fields in BackupManga to fix duplicate protobuf ID

See: https://github.com/Jays2Kings/tachiyomiJ2K/issues/878 and https://github.com/Jays2Kings/tachiyomiJ2K/commit/2dc61cb070ec7451ee31844326c93bd65f6ef6d4#diff-2eb34be6bfde24e16a10af091a0cc7cfe3fd724e68e59bd74a2a9cebc54a601c

Thanks for the PR 👍


text:
"Too many listerner" ?

On a clean install of Homebridge, with this plugin only, all seems to run fine, paired to Homekit okay, but the new (Dyson) accessories on the Home App are either Updating or No Response.
Looking at the log there seems to be an issue indeed:
[14/05/2019, 12:33:59] [DysonPlatform] Finished launching. Start to create accessory from config
[14/05/2019, 12:33:59] Homebridge is running on port 51826.
[14/05/2019, 12:33:59] [DysonPlatform] Use device password from config file
[14/05/2019, 12:33:59] [DysonPlatform] Dyson IP:192.168.178.10 Serial Number:DYSON-PT4-EU-HXXXXXXA-445
[14/05/2019, 12:33:59] [DysonPlatform] Device serial number format valids
[14/05/2019, 12:33:59] [DysonPlatform] Device cached. Try to update this
[14/05/2019, 12:33:59] [DysonPlatform] Init Sensor for Dyson
[14/05/2019, 12:33:59] [DysonPlatform] Init Fan State for Dyson
[14/05/2019, 12:34:00] [DysonPlatform] Auto switch found. Remove this now
[14/05/2019, 12:34:00] [DysonPlatform] Night mode button is added
HAP Warning: Characteristic 000000BF-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000B7-0000-1000-8000-0026BB765291. Adding anyway.
[14/05/2019, 12:34:00] [DysonPlatform] Connected to PT4-EU-HXXXXXXA. subscribe now
[14/05/2019, 12:34:11] [DysonPlatform] Request for current state update
[14/05/2019, 12:34:11] [DysonPlatform] Client is connected. Publish request now.
[14/05/2019, 12:35:26] [DysonPlatform] Request for current state update
[14/05/2019, 12:35:26] [DysonPlatform] Too many listerner. Do another publish now
[14/05/2019, 12:35:26] [DysonPlatform] Client is connected. Publish request now.
[14/05/2019, 12:35:26] [DysonPlatform] Request for current state update
** last 3 lines repeat a couple of times every time I open the Home App on my iPhone **
(node:17658) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 undefined listeners added. Use emitter.setMaxListeners() to increase limit

Any thoughts?

the log suggested that it could not get the update from dyson device and therefore it tried to continue to publish (and listen to that) and ran out of listeners.
so i would suggest to check if your router/network has blocked the mqtt /port/ ip of that

Pretty sure it was a network issue indeed... The Dyson was connected via one of the Unifi nanoHD access points in my house, which appearently blocks (some) traffic between devices in the network.  Connecting it to the WiFi of the router itself solved it.  Thanks!

authors: joe-ng stannie

repo: joe-ng/homebridge-dyson-link


text:
Traffic overage costs

Please consider documenting cost of traffic overages for each provider.
Also worth noting differences in cost between inbound/outbound traffic (Linode inbound is free, for example).

Thanks! I'll look into that! I'll try to put all the information that I find about it.

(Hello there, I don't think this is worth creating a new issue so I'll post it here)

I have serious doubts about the OVH’s and Scaleway’s unlimited traffic, seems more marketing strategy than real to me (joe di castro).

Traffic is really unmetered, french hosting providers never billed for traffic (to my knowledge at least). You're limited by your bandwidth, but not charged for it / throttled after some consumption level.
Disclaimer: none, I don't work for an hosting provider, I'm just an happy customer

Thanks @PunKeel I'll change that because you are probably the third person to tell me the same (the others in HN), and even gave me a reasonable explanation why probably they do that. I quote that explanation by RX14 here:

Scaleway are owned by one of the largest ISPs in France. Bandwidth is typically brought symmetric, but home traffic is nearly entirely download. It's my assumption that they use their server business to offset their bandwidth costs for their underutilized outbound links.

@PunKeel I fixed that in 103aac18b0547c55ecf1a78c80fac6a57a24fba3
Thanks!

authors: PunKeel joedicastro jspraul

repo: joedicastro/vps-comparison


text:
Making the Grid Responsive

Hi , first of all i would like to thank you for this wonderful project and i really appreciate your work.
I have implemented the same in my project and everything worked perfectly fine until i just changed the browser size or Zoom IN or Zoom OUT. The Gird was not responsive and scrolls were added. This behaviour was quite different from the one you have in the example. I am probably missing something but i have no idea what it is. Can you please help me to fix that.

Hi Hunny,
Since you mentioned that Grid is working fine for you.I need quick help-
In my Grid , in WithRetrieveDataMethod when I try to create repo using DI
.WithRetrieveDataMethod((context) =>
{
var options = context.QueryOptions;
                     int totalRecords;
                     **var repo = DependencyResolver.Current.GetService<IEmailTypeCodeRepository>();**

                    ---

}
DependencyResolver.Current.GetService() always return null for me.Did you used any Container and if yes how?
Thanks
Shefali


text:
Document AWS resources that are not in the CFN Stack

The EC2 key pair is not part of the CFN stack, and so, is not destroyed when the stack is destroyed.
It and any other resources created should be documented so that they can be cleaned up when the stack is destroyed.

The one time you don't submit a PR when you spot these kinds of issues. lol. This is an easy merge. :)

Yeah. Didn't know if there were more AND I was moving fast building and destroying.

Actually, I'm going to reopen this. I agree with this issue and hope to get to it next week.

authors: joejulian philoserf

repo: joejulian/container-aws-createmachines


text:
Allow assertion on the root cause message

Summary
It is currently not directly possible to assert on the root cause message. There is a workaround possible by using hasStackTraceContaining, but it would be nice if this was supported directly.
See also https://stackoverflow.com/questions/38943346/assertj-assert-on-the-cause-message
Example
I would like to be able to do this:
assertThatExceptionOfType(PersistenceException.class)
    .isThrownBy(() -> {
        // test code here
    })
   .withRootCauseInstanceOf(PSQLException.class)
   .withRootCauseMessageMatching("Key (user_id)=(.*) is not present in table \"book\"");

So to be consistent, probably the following new methods are needed:

withRootCauseMessageStartingWith(String description)
withRootCauseMessageContaining(String description)
withRootCauseMessageContainingAll(CharSequence... values)
withRootCauseMessageNotContaining(String content)
withRootCauseMessageNotContainingAny(CharSequence... values)
withRootCauseMessageMatching(String regex)
withRootCauseMessageEndingWith(String description)

I just posted another answer in the SO question using AssertJ >= 3.14.
However, maybe a shortcut could be provided to change the assertion subject, e.g., getCause()/getRootCause() which would return an updated ThrowableAssert.
Would this help your use case?

Interesting, but how can I combine that with assertThatExceptionOfType() ?

Interesting, but how can I combine that with assertThatExceptionOfType() ?

I just realized I was referring to the catchThrowable style, but your example mentioned assertThatExceptionOfType.
Unfortunately extracting is not available in the latter so we would need to extend ThrowableAssertAlternative.

Consider this a request for adding extracting in that case :)

I see potentially two options here:

Let ThrowableAssertAlternative extends from AbstractObjectAssert similarly to AbstractThrowableAssert, this way extracting would be a quick win but we have a missing InstanceOfAssertFactory

assertThatExceptionOfType(PersistenceException.class)
    .isThrownBy(() -> {
        // test code here
    })
   .extracting(Throwable::getCause, as(THROWABLE_ALTERNATIVE)) // missing factory
   .withMessageMatching("Key (user_id)=(.*) is not present in table \"book\"");

Add something like havingCause()/havingRootCause() to ThrowableAssertAlternative to change the assertion object

assertThatExceptionOfType(PersistenceException.class)
    .isThrownBy(() -> {
        // test code here
    })
   .havingCause() // any better name here?
   .withMessageMatching("Key (user_id)=(.*) is not present in table \"book\"");

I tend to favor the second option.
@joel-costigliola thoughts?

I like the second option better too because it directly uses the exception domain language (cause, root cause) whereas the extracting option shows implementation/plumbery on how to get cause and root cause which makes the code harder to read (and is not obvious to write)

I like option 2 also better.
Maybe the naming could be containsCause() like the assert for Optional that has contains(String) ?
Or hasCauseSatisfying() like hasValueSatisfying of Optional?
Would it also mean that it would be possible to keep going down the exception hierarchy like this (using the naming of @scordio again for clarity):
assertThatExceptionOfType(PersistenceException.class)
    .isThrownBy(() -> {
        // test code here
    })
   .havingCause() // first cause
   .withMessageMatching("Key (user_id)=(.*) is not present in table \"book\"")
   .havingCause() // second cause
   .withMessageEndingWith("Foo");

I would then also add a havingRootCause to directly go to the root of the hierarchy as I think that is the most common use case.

My thinking of havingCause() is similar to Optional#get()

Would it also mean that it would be possible to keep going down the exception hierarchy like this

yes it would be possible to keep going down the hierarchy

I would then also add a havingRootCause to directly go to the root of the hierarchy as I think that is the most common use case.

I agree it would make sense

I was not explicit about it but I was thinking we should add both havingCause and havingRootCause.

I am trying to see if I can create a PR to support this, but this is my first time navigating the code base, so I will need some guidance :)
I started with adding this to ThrowableAssertAlternative:
  public ThrowableAssertAlternative havingCause() {
    Throwable cause = delegate.actual.getCause();
    return new ThrowableAssertAlternative(cause);
  }

  public ThrowableAssertAlternative havingRootCause() {
    return new ThrowableAssertAlternative(Throwables.getRootCause(delegate.actual));
  }

But I wonder:

We should probably check if there is actually a cause (or root cause). What would be the best way to do this?
Should the return type be ThrowableAssertAlternative or ThrowableAssert (or something else)? Returning ThrowableAssertAlternative allows to chain calls of havingCause(),  but there are no methods to check the message of the cause. Returning ThrowableAssert does have those methods, but then you can't chain another havingCause() on top.
What should be done with the generics of the return type?
There seem to be no unit tests for ThrowableAssertAlternative specifically?

I also noticed an import of org.assertj.core.util.Throwables which is only used in the Javadoc at lines 318 and 347. Isn't that wrong? I think:
the actual {@code Throwables}'s message.

should be:
the actual {@code Throwable}'s message.

We should probably check if there is actually a cause (or root cause). What would be the best way to do this?

We should indeed check for the cause/root cause, I would throw an AssertionError in that case with an explicit message like "expecting %s to have a cause/root cause but it did not". Something to add to ShouldHaveCause/ShouldHaveRootCause (with unit tests obviously 😉).

Should the return type be ThrowableAssertAlternative or ThrowableAssert?

If we started ThrowableAssertAlternative we should be consistent and continue with it.

Returning ThrowableAssertAlternative allows to chain calls of havingCause(), but there are no methods to check the message of the cause

Once you have called havingCause() the chained withMessage will check the message of the current exception which is the cause. Am I missing something here?

What should be done with the generics of the return type?

Since we can't know it, I think we should use ThrowableAssertAlternative<?>

There seem to be no unit tests for ThrowableAssertAlternative specifically?

An oversight, let's add some for the new methods (we will complete the tests but in a different PR)

@wimdeblauwe thanks for jumping on it! Feel free to open a pull request when ready and we can interact directly on top of your code.

I started with adding this to ThrowableAssertAlternative

Thinking out loud, the current pattern of ThrowableAssertAlternative is to fully delegate to ThrowableAssert. Should we do the same for havingCause and havingRootCause? Meaning, AbstractThrowableAssert should be extended to support two new methods (getCause and getRootCause) and the delegate value changes whenever the outer method is called. In ThrowableAssertAlternative it would be like:
  public ThrowableAssertAlternative havingCause() {
    delegate = delegate.getCause();
    return this;
  }

  public ThrowableAssertAlternative havingRootCause() {
    delegate = delegate.getRootCause();
    return this;
  }

Thoughts? @joel-costigliola any side effect I don't see for SoftProxies?

I also noticed an import of org.assertj.core.util.Throwables which is only used in the Javadoc at lines 318 and 347. Isn't that wrong?

That was definitely a typo, I've fixed it in 5339dc565b83db8c8835b870bca97aeec54e0ac9

Something to add to ShouldHaveCause/ShouldHaveRootCause

Do you mean to add those methods to org.assertj.core.util.Throwables ?

Once you have called havingCause() the chained withMessage will check the message of the current exception which is the cause. Am I missing something here?

No you are right, I had not looked closely enough :)
2 other questions after reading the contribution guidelines:

Should I fork the repo to open a PR?
The example test in the guidelines extends from BaseTest, but that class no longer exists and the test currently uses no base class at all. Should the guide be updated?

See #1782 for my PR. I think/hope it is fairly ok. I did have to do something a bit strange in the ShouldHaveCause and ShouldHaveRootCause classes. As you cannot create a constructor with a single Throwable argument 2 times (for obvious reasons), I had to create an extra public factory method. If there is a better solution, please let me know.

@wimdeblauwe thanks for the PR, I'll have a look at it in the next few days.
Don't worry too much about the PR, we are here to give feedback and guidance.
The guidelines should be updated indeed, good catch!

Shouln't the milestone 3.16.0 be attached to this issue?

Thanks, added 👍 We also forgot to introduce the @since in the javadoc, I added it in d4f191cdc2fa54a9f9d3cb7858a279142ce54090.

authors: joel-costigliola scordio wimdeblauwe

repo: joel-costigliola/assertj-core


text:
ZIP package empty

Following JSON scheme doesn't seem to work. ZIP package is empty.
{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"definitions": {
		"_EventTypeEnum": {
			"title": "_EventTypeEnum",
			"additionalItems": false,
			"properties": {
				"value": {
					"$ref": "DATEXII_3_SituationPublicationLight.json#/definitions/EventTypeEnum"
				},
				"_extendedValue": {
					"type": "string"
				}
			},
			"required": [
				"value"
			]
		},
		"_SituationRecordTypeEnum": {
			"title": "_SituationRecordTypeEnum",
			"additionalItems": false,
			"properties": {
				"value": {
					"$ref": "DATEXII_3_SituationPublicationLight.json#/definitions/SituationRecordTypeEnum"
				},
				"_extendedValue": {
					"type": "string"
				}
			},
			"required": [
				"value"
			]
		},
		"Coordinate": {
			"title": "Coordinate",
			"type": "object",
			"properties": {
				"latitude": {
					"title": "latitude",
					"$ref": "DATEXII_3_Common.json#/definitions/Float"
				},
				"longitude": {
					"title": "longitude",
					"$ref": "DATEXII_3_Common.json#/definitions/Float"
				},
				"_coordinateExtension": {
					"title": "_coordinateExtension",
					"$ref": "DATEXII_3_Common.json#/definitions/_ExtensionType",
					"type": "object",
					"additionalItems": false
				}
			},
			"required": [
				"latitude",
				"longitude"
			]
		},
		"EventTypeEnum": {
			"title": "EventTypeEnum",
			"type": "string",
			"enum": [
				"accident",
				"accidentInvolvingHeavyLorries",
				"collision",
				"clearanceWork",
				"hazardsOnTheRoad",
				"incident",
				"objectOnTheRoad",
				"obstructionOnTheRoad",
				"peopleOnRoadway",
				"shedLoad",
				"spillageOnTheRoad",
				"unprotectedAccidentArea",
				"strongWinds",
				"visibilityReduced",
				"blastingWork",
				"constructionWork",
				"maintenanceWork",
				"resurfacingWork",
				"roadworks",
				"laneClosures",
				"roadClosed",
				"brokenDownVehicle",
				"vehicleOnWrongCarriageway",
				"other",
				"_extended"
			]
		},
		"Location": {
			"title": "Location",
			"type": "object",
			"properties": {
				"locationDescriptor": {
					"title": "locationDescriptor",
					"$ref": "DATEXII_3_Common.json#/definitions/String"
				},
				"roadNumber": {
					"title": "roadNumber",
					"$ref": "DATEXII_3_Common.json#/definitions/String"
				},
				"roadName": {
					"title": "roadName",
					"$ref": "DATEXII_3_Common.json#/definitions/String"
				},
				"locationForDisplay": {
					"title": "locationForDisplay",
					"$ref": "DATEXII_3_LocationReferencing.json#/definitions/PointByCoordinates"
				}
			},
			"required": [
				"locationDescriptor",
				"locationForDisplay",
				"locationForDisplay"
			]
		},
		"RecurringTimePeriodOfDay": {
			"title": "RecurringTimePeriodOfDay",
			"type": "object",
			"properties": {
				"start": {
					"title": "start",
					"$ref": "DATEXII_3_Common.json#/definitions/Time"
				},
				"end": {
					"title": "end",
					"$ref": "DATEXII_3_Common.json#/definitions/Time"
				},
				"_recurringTimePeriodOfDayExtension": {
					"title": "_recurringTimePeriodOfDayExtension",
					"$ref": "DATEXII_3_Common.json#/definitions/_ExtensionType",
					"type": "object",
					"additionalItems": false
				}
			},
			"required": [
				"end",
				"start"
			]
		},
		"Schedule": {
			"title": "Schedule",
			"type": "object",
			"properties": {
				"startOfPeriod": {
					"title": "startOfPeriod",
					"$ref": "DATEXII_3_Common.json#/definitions/DateTime"
				},
				"endOfPeriod": {
					"title": "endOfPeriod",
					"$ref": "DATEXII_3_Common.json#/definitions/DateTime"
				},
				"recurringTimePeriodOfDay": {
					"title": "recurringTimePeriodOfDay",
					"type": "array",
					"items": {
						"$ref": "DATEXII_3_SituationPublicationLight.json#/definitions/RecurringTimePeriodOfDay"
					},
					"minItems": 0
				},
				"_scheduleExtension": {
					"title": "_scheduleExtension",
					"$ref": "DATEXII_3_Common.json#/definitions/_ExtensionType",
					"type": "object",
					"additionalItems": false
				}
			},
			"required": [
				"endOfPeriod",
				"startOfPeriod"
			]
		},
		"Situation": {
			"title": "Situation",
			"type": "object",
			"properties": {
				"id": {
					"type": "string"
				},
				"versionTime": {
					"title": "versionTime",
					"$ref": "DATEXII_3_Common.json#/definitions/DateTime"
				},
				"situationRecord": {
					"title": "situationRecord",
					"type": "array",
					"items": {
						"$ref": "DATEXII_3_SituationPublicationLight.json#/definitions/SituationRecord"
					},
					"minItems": 0
				},
				"_situationExtension": {
					"title": "_situationExtension",
					"$ref": "DATEXII_3_Common.json#/definitions/_ExtensionType",
					"type": "object",
					"additionalItems": false
				}
			},
			"required": [
				"id",
				"versionTime"
			]
		},
		"SituationPublicationLight": {
			"title": "SituationPublicationLight",
			"type": "object",
			"properties": {
				"situation": {
					"title": "situation",
					"type": "array",
					"items": {
						"$ref": "DATEXII_3_SituationPublicationLight.json#/definitions/Situation"
					},
					"minItems": 0
				},
				"_situationPublicationLightExtension": {
					"title": "_situationPublicationLightExtension",
					"$ref": "DATEXII_3_Common.json#/definitions/_ExtensionType",
					"type": "object",
					"additionalItems": false
				}
			},
			"oneOf": [
				{
					"$ref": "DATEXII_3_Common.json#/definitions/PayloadPublication"
				}
			]
		},
		"SituationRecord": {
			"title": "SituationRecord",
			"type": "object",
			"properties": {
				"id": {
					"type": "string"
				},
				"creationTime": {
					"title": "creationTime",
					"$ref": "DATEXII_3_Common.json#/definitions/DateTime"
				},
				"versionTime": {
					"title": "versionTime",
					"$ref": "DATEXII_3_Common.json#/definitions/DateTime"
				},
				"startTime": {
					"title": "startTime",
					"$ref": "DATEXII_3_Common.json#/definitions/DateTime"
				},
				"endTime": {
					"title": "endTime",
					"$ref": "DATEXII_3_Common.json#/definitions/DateTime"
				},
				"situationRecordType": {
					"title": "situationRecordType",
					"$ref": "DATEXII_3_SituationPublicationLight.json#/definitions/_SituationRecordTypeEnum"
				},
				"eventType": {
					"title": "eventType",
					"$ref": "DATEXII_3_SituationPublicationLight.json#/definitions/_EventTypeEnum"
				},
				"eventTypeText": {
					"title": "eventTypeText",
					"$ref": "DATEXII_3_Common.json#/definitions/String"
				},
				"severity": {
					"title": "severity",
					"$ref": "DATEXII_3_Common.json#/definitions/String"
				},
				"safetyRelatedMessage": {
					"title": "safetyRelatedMessage",
					"$ref": "DATEXII_3_Common.json#/definitions/Boolean"
				},
				"sourceName": {
					"title": "sourceName",
					"$ref": "DATEXII_3_Common.json#/definitions/String"
				},
				"generalPublicComment": {
					"title": "generalPublicComment",
					"$ref": "DATEXII_3_Common.json#/definitions/String"
				},
				"managedCause": {
					"title": "managedCause",
					"$ref": "DATEXII_3_Common.json#/definitions/VersionedReference"
				},
				"numberOfLanesResticted": {
					"title": "numberOfLanesResticted",
					"$ref": "DATEXII_3_Common.json#/definitions/Integer"
				},
				"temporaryLimitText": {
					"title": "temporaryLimitText",
					"type": "array",
					"items": {
						"$ref": "DATEXII_3_Common.json#/definitions/String"
					},
					"minItems": 0
				},
				"trafficRestrictionTypeText": {
					"title": "trafficRestrictionTypeText",
					"$ref": "DATEXII_3_Common.json#/definitions/String"
				},
				"schedule": {
					"title": "schedule",
					"type": "array",
					"items": {
						"$ref": "DATEXII_3_SituationPublicationLight.json#/definitions/Schedule"
					},
					"minItems": 0
				},
				"location": {
					"title": "location",
					"$ref": "DATEXII_3_SituationPublicationLight.json#/definitions/Location"
				},
				"_situationRecordExtension": {
					"title": "_situationRecordExtension",
					"$ref": "DATEXII_3_Common.json#/definitions/_ExtensionType",
					"type": "object",
					"additionalItems": false
				}
			},
			"required": [
				"id",
				"creationTime",
				"versionTime",
				"startTime",
				"situationRecordType",
				"eventType",
				"eventTypeText",
				"severity",
				"safetyRelatedMessage",
				"sourceName",
				"generalPublicComment"
			]
		},
		"SituationRecordTypeEnum": {
			"title": "SituationRecordTypeEnum",
			"type": "string",
			"enum": [
				"abnormalTraffic",
				"accident",
				"animalPresenceObstruction",
				"authorityOperation",
				"disturbanceActivity",
				"environmentalObstruction",
				"equipmentOrSystemFault",
				"generalInstructionOrMessageToRoadUsers",
				"generalNetworkManagement",
				"generalObstruction",
				"infrastructureDamageObstruction",
				"nonWeatherRelatedRoadConditions",
				"poorEnvironmentConditions",
				"publicEvent",
				"reroutingManagement",
				"RoadOperatorServiceDisruption",
				"roadOrCarriagewayOrLaneManagement",
				"roadsideAssistance",
				"serviceDisruption",
				"speedManagement",
				"transitInformation",
				"vehicleObstruction",
				"weatherRelatedRoadConditions",
				"winterDrivingManagement",
				"maintenanceWorks",
				"constructionWorks",
				"_extended"
			]
		}
	}
}

This doesn't appear to be a schema. It's a file that has schema inside it but there is no actual schema using those definitions.

Very well could be a corner case. If it's supported by the draft. I'm interested into reading if it's valid or not, but not quite rightn ow.

What does JAXB do in this situation? I feel like that might be the natural comparison.

Maybe. Do you have a comparable JAXB example in mind? What does JAXB do in your example?

I would have to brew an example and try it out, but in XSD is it definitely possible and valid to have a schema document contain nothing but type definitions and not define a document. I will have to brew up an example tonight when I have time to investigate the behaviour. As a general keeping the two tools parallel seems to follow the principle of least surprise as they are in the space.

authors: Art-B jjylonen joelittlejohn


text:
Configure Log

Hey,
this works great. Can you add an option to see status changes in Log? right now i don't see polling (which is good) but i also don't see when i turn it on
kind regards

id suggest that you use the standard cmdswitch2 plugin which does exactly as you'd like.
I have developed this plugin specifically to have no logs shown, unless there is an error.
Unless I have misunderstood your request?
let me know.

I think he's saying he doesn't want the excessive status spam, but he would like to see logs whenever a switch is toggled.

authors: boehser-enkel guillochon joepool


text:
[Bug][rubysrc2cpg] - mismatched input ' ' expecting

Describe the bug
error parsing below code - mismatched input ' ' expecting
To Reproduce
Rails.logger.error <<~MESSAGE
  This is a multi-line error message.
  It can span across multiple lines.
  You can use interpolation, e.g., #{variable_name}.
MESSAGE

came across similar code snippet throwing error
      def email_body_staff = <<~BODY.strip
        Hello,
        some message to be drafted

        first name: #{first name}

        View Agreements tab: #{link to agreement}
      BODY

The following code snippet throws multiple errors
      Rails.logger.error <<~MESSAGE
        Rails was unable to decrypt credentials. Pay checks the Rails credentials to look for API keys for payment processors.

        Make sure to set the `RAILS_MASTER_KEY` env variable or in the .key file. To learn more, run "bin/rails credentials:help"

        If you're not using Rails credentials, you can delete `config/credentials.yml.enc` and `config/credentials/`.
      MESSAGE

In fact you can find the entire file here which is failing to get parsed - https://github.com/pay-rails/pay/blob/master/lib/pay/env.rb
It throws the following error along with above lines of errors
2023-07-20 20:30:46.574 ERROR AstCreationPass: Error while processing AST for file - /Users/pandurang/projects/demo/ruby/pay/lib/pay/env.rb -
java.lang.StringIndexOutOfBoundsException: Range [1376, 1376 + 393) out of bounds for length 1768
	at jdk.internal.util.Preconditions$1.apply(Preconditions.java:55) ~[?:?]
	at jdk.internal.util.Preconditions$1.apply(Preconditions.java:52) ~[?:?]
	at jdk.internal.util.Preconditions$4.apply(Preconditions.java:213) ~[?:?]
	at jdk.internal.util.Preconditions$4.apply(Preconditions.java:210) ~[?:?]
	at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98) ~[?:?]
	at jdk.internal.util.Preconditions.outOfBoundsCheckFromIndexSize(Preconditions.java:118) ~[?:?]
	at jdk.internal.util.Preconditions.checkFromIndexSize(Preconditions.java:397) ~[?:?]
	at java.lang.String.checkBoundsOffCount(String.java:4577) ~[?:?]
	at java.lang.String.<init>(String.java:523) ~[?:?]
	at org.antlr.v4.runtime.CodePointCharStream$CodePoint8BitCharStream.getText(CodePointCharStream.java:160) ~[org.antlr.antlr4-runtime-4.7.jar:4.7]
	at org.antlr.v4.runtime.Lexer.notifyListeners(Lexer.java:360) ~[org.antlr.antlr4-runtime-4.7.jar:4.7]
	at org.antlr.v4.runtime.Lexer.nextToken(Lexer.java:144) ~[org.antlr.antlr4-runtime-4.7.jar:4.7]
	at io.joern.rubysrc2cpg.parser.RubyLexerBase.nextToken(RubyLexerBase.scala:24) ~[io.joern.rubysrc2cpg-1.1.1304+754-de0d567e.jar:1.1.1304+754-de0d567e]
	at org.antlr.v4.runtime.BufferedTokenStream.fetch(BufferedTokenStream.java:169) ~[org.antlr.antlr4-runtime-4.7.jar:4.7]
	at org.antlr.v4.runtime.BufferedTokenStream.fill(BufferedTokenStream.java:485) ~[org.antlr.antlr4-runtime-4.7.jar:4.7]
	at org.antlr.v4.runtime.BufferedTokenStream.getText(BufferedTokenStream.java:452) ~[org.antlr.antlr4-runtime-4.7.jar:4.7]
	at org.antlr.v4.runtime.BufferedTokenStream.getText(BufferedTokenStream.java:474) ~[org.antlr.antlr4-runtime-4.7.jar:4.7]
	at org.antlr.v4.runtime.DefaultErrorStrategy.reportNoViableAlternative(DefaultErrorStrategy.java:276) ~[org.antlr.antlr4-runtime-4.7.jar:4.7]
	at org.antlr.v4.runtime.DefaultErrorStrategy.reportError(DefaultErrorStrategy.java:121) ~[org.antlr.antlr4-runtime-4.7.jar:4.7]
	at io.joern.rubysrc2cpg.parser.RubyParser.expressionOrCommand(RubyParser.java:1382) ~[io.joern.rubysrc2cpg-1.1.1304+754-de0d567e.jar:1.1.1304+754-de0d567e]
	at io.joern.rubysrc2cpg.parser.RubyParser.statement(RubyParser.java:1031) ~[io.joern.rubysrc2cpg-1.1.1304+754-de0d567e.jar:1.1.1304+754-de0d567e]
	at io.joern.rubysrc2cpg.parser.RubyParser.statements(RubyParser.java:526) ~[io.joern.rubysrc2cpg-1.1.1304+754-de0d567e.jar:1.1.1304+754-de0d567e]
	at io.joern.rubysrc2cpg.parser.RubyParser.compoundStatement(RubyParser.java:305) ~[io.joern.rubysrc2cpg-1.1.1304+754-de0d567e.jar:1.1.1304+754-de0d567e]
	at io.joern.rubysrc2cpg.parser.RubyParser.program(RubyParser.java:251) ~[io.joern.rubysrc2cpg-1.1.1304+754-de0d567e.jar:1.1.1304+754-de0d567e]
	at io.joern.rubysrc2cpg.astcreation.AstCreator.createAst(AstCreator.scala:110) ~[io.joern.rubysrc2cpg-1.1.1304+754-de0d567e.jar:1.1.1304+754-de0d567e]

@xavierpinho tagging for parser error

Missing is the support for heredocs (which has already started, just no pushes have been made so far.)

authors: pandurangpatil xavierpinho

repo: joernio/joern


text:
Refactor CSS/HTML

Go through class/id names and verify that they are appropriate
Move specialized rules away from custom.scss
(optional) replace bootstrap with css grid

Fix Mobile CSS. Some buttons/texts are hidden by the footer
Remove overflow when it shouldn't be there

Remaining:

[ ] Unnecessary vertical overflow caused by classes action-form or row
[ ] CSS Grid
[ ] Book descriptions not fully viewable on mobile


text:
evidence

Does 'sampler.evidence()' return the Bayesian evidence of the model defined as eqn.(17) in https://ned.ipac.caltech.edu/level5/Sept13/Trotta/Trotta4.html? Can it be directly used to calculate the Bayesian ratio for model comparison?

Thanks for your reply!

repo: johannesulf/nautilus


text:
question about issues !

Hello
as i see you maintain the jenkinsci/ansible-tower-plugin but the issue tracking is not activated on this repository.
my question is where to post new issues on this plugin ? (issues.jenkins.io, this repository or the jenkinsci/ansible-tower-plugin with issues tracking activated)
Best regards

@john-westcott-iv Are you still the official maintainer of this jenkins plugin ?

I open JENKINS-65013 in Jenkins JIRA
If it's the good way to address issues maybe your just need to have a little comment on the plugin homepage ;)

I am still maintaining this (although there has not been a lot of changes lately). I will take a look at the issue and track it there.

authors: grazius john-westcott-iv

repo: john-westcott-iv/ansible-tower-plugin


text:
Zoom buttons normal size

Eliminate btn-sm from zooming pallette... bigger buttons for touch... since it is collapsable size is less of an issue.

Zoom box has been redesigned.

repo: johnRedden/OpenGraph


text:
expected '' but found YAML.BlockMappingStartToken at nothing

In demo4.jl,when I want to generate the cover autoly
# ---
# id: demo4
# cover: assets/demo4.png
# description: plot cameraman
# ---
the content of demo4.jl:
using Images,TestImages
t = testimage("cameraman")
#-
save("assets/demo4.png",t)
Somthing is wrong.Before inserting these code,everything is ok.
julia> include("docs/make.jl")
ERROR: LoadError: expected '' but found YAML.BlockMappingStartToken at nothing
Stacktrace:
[1] parse_document_start(::YAML.EventStream) at C:\Users\26947.julia\packages\YAML\e31Qv\src\parser.jl:167
[2] peek(::YAML.EventStream) at C:\Users\26947.julia\packages\YAML\e31Qv\src\parser.jl:54
[3] compose(::YAML.EventStream) at C:\Users\26947.julia\packages\YAML\e31Qv\src\composer.jl:39
[4] load(::YAML.TokenStream, ::Nothing) at C:\Users\26947.julia\packages\YAML\e31Qv\src\YAML.jl:23
[5] load at C:\Users\26947.julia\packages\YAML\e31Qv\src\YAML.jl:28 [inlined]
[6] load at C:\Users\26947.julia\packages\YAML\e31Qv\src\YAML.jl:71 [inlined] (repeats 2 times)
[7] parse(::Val{:Julia}, ::DemoCards.JuliaDemoCard) at C:\Users\26947.julia\packages\DemoCards\XlSmE\src\util
s.jl:136
[8] parse at C:\Users\26947.julia\packages\DemoCards\XlSmE\src\utils.jl:146 [inlined]
[9] load_config(::DemoCards.JuliaDemoCard, ::String) at C:\Users\26947.julia\packages\DemoCards\XlSmE\src\typ
es\card.jl:41
[10] DemoCards.JuliaDemoCard(::String) at C:\Users\26947.julia\packages\DemoCards\XlSmE\src\types\julia.jl:67
[11] democard(::String) at C:\Users\26947.julia\packages\DemoCards\XlSmE\src\types\card.jl:19
[12] iterate at .\generator.jl:47 [inlined]
[13] _collect(::Array{String,1}, ::Base.Generator{Array{String,1},typeof(DemoCards.democard)}, ::Base.EltypeUn
[23] DemoCards.DemoPage(::String) at C:\Users\26947.julia\packages\DemoCards\XlSmE\src\types\page.jl:100
[24] makedemos(::String, ::Dict{String,Mustache.MustacheTokens}; root::String, destination::String, src::Strin
g, build::String, branch::String, edit_branch::String, credit::Bool) at C:\Users\26947.julia\packages\DemoCard
s\XlSmE\src\generate.jl:86
[25] makedemos(::String, ::Dict{String,Mustache.MustacheTokens}) at C:\Users\26947.julia\packages\DemoCards\X
lSmE\src\generate.jl:78
[26] top-level scope at D:\ATOM\atom-x64-windows\Location\Code\MyTestPkg\docs\make.jl:11
[27] include(::String) at .\client.jl:457
[28] top-level scope at REPL[2]:1
in expression starting at D:\ATOM\atom-x64-windows\Location\Code\MyTestPkg\docs\make.jl:11

My best guess is that the YAML frontmatter is not written correctly and YAML.jl complains about it. Perhaps you'll need to take care of leading whitespaces.
It would be helpful if you can share the contents with a gist https://gist.github.com/.

[5] load at C:\Users\26947.julia\packages\YAML\e31Qv\src\YAML.jl:28 [inlined]
[6] load at C:\Users\26947.julia\packages\YAML\e31Qv\src\YAML.jl:71 [inlined] (repeats 2 times)
Is this normal?

solved! Thanks

would you mind to share the broken example to me? I’m wondering if there’s something I can fix here
Johnny Chen
陈久宁
School of Mathematical Sciences, East China Normal University, Shanghai
华东师范大学数学科学学院
2020年8月24日 +0800 16:22 DeathGodBXX notifications@github.com，写道：

solved! Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

How can I share with you?

you can upload the file as a public github gist and then share the link here
Thanks!
Johnny Chen
陈久宁
School of Mathematical Sciences, East China Normal University, Shanghai
华东师范大学数学科学学院
2020年8月24日 +0800 16:29 DeathGodBXX notifications@github.com，写道：

How can I share with you?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

I can't connect https://gist.github.com/

https://gist.github.com/mine perhaps.

I can't connect this github gist,when I click.

I can't connect https://gist.github.com/mine either.

Ah. I see. Perhaps upload it and submit a PR?

I have submit a PR.

The part that I can confirm is fixed by #53. I'm not sure what the other part #44 describes.
For the record, I'm closing this and #44 because the issues are not described very clearly. If there are still problems, feel free to reopen a new one.


text:
Feature Request: add defineExpose support

https://v3.vuejs.org/api/sfc-script-setup.html#defineexpose

Volar doesn't have any magic on defineExpose, because this is pure script / TS stuff.
Please consider how defineExpose works in *.ts, so how it should works in <script> of *.vue.

authors: johnsoncodehk xiaoxiangmoe

repo: johnsoncodehk/volar


text:
Is this project abandoned?

There appears to be a fatal bug in this project (#5), and two people have independently provided PRs for this.
#4 and #6
The project owner @johnwyles has not responded to either.
So is this project abandoned?

I have saw to your requests and believe I merged in the two PR's you referred to correctly - I have not maintained this API in more than a year but if you do see something please fork / send me a PR and I will see to it it gets added - I must have missed the two you referred to.  Apologies and hopefully we can get this all straightened away so there is something functional and working for others like yourself.  Thanks for the ping - hope things go smoothly!

Thanks @johnwyles

I just pushed up to NPM the new version (0.0.8) and pushed to github - let
me know if you see anything amiss
On Tue, Aug 1, 2017 at 12:25 AM, Simon Baynes notifications@github.com
wrote:

Closed #7 https://github.com/johnwyles/node-nest-api/issues/7.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/johnwyles/node-nest-api/issues/7#event-1186975996,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABCNM14cqXQnrqUqXIPBGzKK3OxwC_Jks5sTra-gaJpZM4On7S9
.

@johnwyles - that seems ot be working thank you.

authors: baynezy johnwyles

repo: johnwyles/node-nest-api


text:
Add header comment to generated workspace.bzl

Fixes #116.
This didn't seem to touch any tests. Is that expected, or should I be doing something more than bazel test //...?

@drigz we can improve testing, but there is one test you missed: the repo tests itself that running the tool results in no diff. I think you failed that test.

@johnynek Thanks for the pointer - I've updated the repo.

Thank you very much for the contribution!

authors: drigz johnynek

repo: johnynek/bazel-deps


text:
클러스터 리셋 문의

안녕하세요!
먼저 꿀 같은 패키지를 만들어주신 제작자님께 정말 감사하다는 말씀을 올리면서
문의를 살짝 남겨봅니다!
(저 같은 앱 개발 초짜에겐 진짜 지리산 토종 벌꿀 같은 패키지에욥!!)
제가 지금

지도에 마커, 클러스터를 생성
변경된 위치에서 재검색
기존 마커,클러스터를 삭제하고 새로운 마커, 클러스터 만들기

를 하려고 하는데

기존 마커, 클러스터 삭제하는 방법을 모르겠어요.. 흑흑

하나님, 부처님, 알라신님 알려주세요!
그럼 오늘도 신명나는 하루 되세요~
=====================================
찾아보니
mapController?.clearMarker();
mapController?.clearMarkerClusterer();
로 간단하게 해결이 되는거였네요?!
뻘글이었습니닷!

아 해결 되었다니 다행이네요! 라이브러리 잘 사용해 주셔서 감사합니다~
다른 이슈 발생하면 언제든 이슈 남겨 주세요!
해당 이슈는 close 처리 하도록 하겠습니다!


text:
Allow custom error messages on claim validation

Previous to 2.x, using with_validation would allow you to set a custom error message. The ability, as far as I can tell, was lost in 2.x. The PR would bring back some of the functionality. I'm open to any suggested changes!

Hey @tgturner this is an awesome addition. I am all for it.
I was just thinking that maybe a Keyword list would be better as they are "options". What do you think?
Also the build broke cause mix format --check-formatted failed. Not exactly sure why though...

@victorolinasc Thanks for getting back to me! I updated the PR to use a Keyword list instead of a map. That does seem appropriate. I also made sure to run mix format on the two files this time.

Thanks @victorolinasc! And thanks for working on Joken, it has been a real pleasure to use.

authors: tgturner victorolinasc

repo: joken-elixir/joken


text:
published package contains many files

we should likely just whitelist index.js

Yup, fixed and released in 0.2.5.

Negation in .npmignore (e.g. !/index.js) doesn't work for me, even though the docs suggest it should work. Not sure why. So I just blacklisted everything else.

Not sure why.

npm is full of mysteries.

authors: joliss stefanpenner

repo: joliss/node-walk-sync