Cannot sort on geo_point fields

It seems that the "orderBy" function does not support sorting on fields of type geo_point.
The bellow function call will return every index entries within a distance of $location['distance'] of the given location coordinate.
$searcher->must(new GeoDistance('locations', [ (float) $location['lat'], (float) $location['lon']], $location['distance'] ?? '200km'));

When trying to apply a orderBy('locations'), I get this error:
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"can't sort on geo_point field without using specific sorting feature, like geo_distance"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"offers","node":"66qPfbXCQ7Kch-EAzjHhOA","reason":{"type":"illegal_argument_exception","reason":"can't sort on geo_point field without using specific sorting feature, like geo_distance"}}],"caused_by":{"type":"illegal_argument_exception","reason":"can't sort on geo_point field without using specific sorting feature, like geo_distance","caused_by":{"type":"illegal_argument_exception","reason":"can't sort on geo_point field without using specific sorting feature, like geo_distance"}}},"status":400}

I have tried a few things but none of my attempts seem to work. Is this even out of the box supported?
What the ElasticSearch query should look like:
GET offers/_search
{
  "size": 1,
  "query": {
    "bool": {
      "filter": {
        "geo_distance": {
          "distance": "100km",
          "locations": {
                    "lat": -89.440879,
                  "lon": 124.327279
          }
        }
      }
    }
  },
  "sort": [
    {
      "_geo_distance": {
        "locations": {
                  "lat": -89.440879,
                  "lon": 124.327279
        }
      }
    }
  ]
}

Thanks!

Using debugging, what does the query look like that is executed but returns the Elastic error?

Is this even out of the box supported?
Well, AFAIK GeoDistance is not something included in this package, so I wouldn't necessarily expect it to work immediately in all facets of Scout/Elastic/Explorer. But perhaps together we can make it work!

Looks like it is impossible to catch, server crashes before being able to return anything.
To query over a GeoPoint field one need to use specific sorting features (as the error yields). If I use sort on a regular field (that is ....->orderBy('discount')), the debugger yields:
.
.
.
"sort": [
    {
      "discount": "asc"
    }
 ]

What the package does when using orderBy is wrapping the field in a sort object as above. So when ordering on the locations field, it probably does the same:
.
.
.
"sort": [
    {
      "locations": "asc"
    }
 ]

Which if ran on ElasticSearch yields the same error as mentioned in the issue's description.
My wild guess to solve the problem would be to wrap field of type GeoPoint in a different way, such as:
.
.
.
"sort": [
    {
      "_geo_distance": {
        "locations": {
                  "lat": -89.440879,
                  "lon": 124.327279
        }
      }
    }
 ]

Thereby having an option to either pass the orderBy function an specific object, or by tweaking the JeroenG\Explorer\Domain\Syntax\Sort; into being able to receive "sorting feature" parameters (which I am trying to do ATM).

Note that: The function also need to be able the sorting feature, which in the _geo_distance case is an array with a lat and lon row.
I think there's potential for expending this package to include the so called sorting feature (I am not an ElasticSearch expert, pardon if I am missing something) 🔥 .

Ok, I have looked at the sorting feature and the current implementation is quite naive considering everything that is possible with ES. It will take quite some work to write a new implementation and rework how sorting is now done, so I cannot promise any timeline when I would be finished (or start) with this.
I think for the time being you can circumvent it by using the Finder directly instead of your model, i.e.:
$query = Query::with(new BoolQuery());
$builder = new SearchCommand('my_index', $query);
$query->setSort([new MyCustomGeoSort(....)]);
$finder = new Finder($client, $builder);
$results = $finder->find();

(Have a look at the  Finder's tests and Elastic Engine to get to know it more)

@Jeroen-G if you are working on the sort feature, it would be nice to have the Nested Sort too. Reading to your last reply I ended up with this solution. In this way I can have my data with paginations too. Hope it helps.

Create a custom SortNested class which extends your Sort class (otherwise the assertion throws an exception):

namespace App\Services\Projection\Scout;

use JeroenG\Explorer\Domain\Syntax\Sort;
use Webmozart\Assert\Assert;

class SortNested extends Sort
{
    public const ASCENDING = 'asc';

    public const DESCENDING = 'desc';

    private string $path;

    private string $field;

    private string $order;

    public function __construct(string $path, string $field, string $order = self::ASCENDING)
    {
        parent::__construct($field, $order);

        $this->path = $path;
        $this->field = $field;
        $this->order = $order;
        Assert::inArray($order, [self::ASCENDING, self::DESCENDING]);
    }

    public function build(): array
    {
        return [
            $this->field => [
                'order' => $this->order,
                'nested' => [
                    'path' => $this->path,
                ],
            ],
        ];
    }
}

Create a custom class that fetches the result:

namespace App\Services\Projection\Reader;

use JeroenG\Explorer\Application\DocumentAdapterInterface;
use JeroenG\Explorer\Infrastructure\Scout\ScoutSearchCommandBuilder;
use Laravel\Scout\Builder;

class GetScoutResult implements \App\Services\Contracts\Projection\Reader\GetScoutResultInterface
{
    private DocumentAdapterInterface $documentAdapter;

    public function __construct(DocumentAdapterInterface $documentAdapter)
    {
        $this->documentAdapter = $documentAdapter;
    }

    /**
     * {@inheritDoc}
     */
    public function execute(Builder $query, int $perPage, int $page, array $sort = []): array
    {
        $offset = $perPage * ($page - 1);

        $normalizedBuilder = ScoutSearchCommandBuilder::wrap($query);
        $normalizedBuilder->setOffset($offset);
        $normalizedBuilder->setLimit($perPage);
        $normalizedBuilder->setSort($sort);

        $result = $this->documentAdapter->search($normalizedBuilder);

        return [
            'hits' => $result->hits(),
            'aggregations' => $result->aggregations(),
            'count' => $result->count(),
        ];
    }
}


Add platform sample in node.yml usage

Hello,
I created a this Pull Request. This is a little appendix to Readme.md.
Because I got stuck in rbenv installation.
↓↓↓ Here is my episode.

I use this plugin toward Amazon linux
I built Ruby on Rails environment while I saw Readme.md node.yml usage.
First, I wrote node.yml
# node.yml

rbenv:
  global:
    2.3.3
  versions:
    - 2.3.3

  scheme: https

But I run itamae, when I happened a error.
 INFO : Starting Itamae...
 INFO : Loading node data from /Users/kawakubox/Workspace/generic-recipe/roles/rails/node.yml...
 INFO : Recipe: /Users/kawakubox/Workspace/generic-recipe/roles/rails/default.rb
 INFO :   Recipe: /Users/kawakubox/Workspace/generic-recipe/vendor/bundle/ruby/2.3.0/gems/itamae-plugin-recipe-rbenv-0.6.3/lib/itamae/plugin/recipe/rbenv/system.rb
 INFO :     Recipe: /Users/kawakubox/Workspace/generic-recipe/vendor/bundle/ruby/2.3.0/gems/itamae-plugin-recipe-rbenv-0.6.3/lib/itamae/plugin/recipe/rbenv/install.rb
 INFO :       Recipe: /Users/kawakubox/Workspace/generic-recipe/vendor/bundle/ruby/2.3.0/gems/itamae-plugin-recipe-rbenv-0.6.3/lib/itamae/plugin/recipe/rbenv/dependency.rb
 INFO :       execute[rbenv install 2.3.3] executed will change from 'false' to 'true'
ERROR :         stdout | Installing ruby-2.3.3...
ERROR :         stdout |
ERROR :         stdout | [1mBUILD FAILED[m (Amazon Linux AMI 2016.09 using ruby-build 20161121-14-gd799bdd)
ERROR :         stdout |
ERROR :         stdout | Inspect or clean up the working tree at /tmp/ruby-build.20161214144733.28704
ERROR :         stdout | [33mResults logged to /tmp/ruby-build.20161214144733.28704.log[m
ERROR :         stdout |
ERROR :         stdout | Last 10 log lines:
ERROR :         stdout | config.sub already exists
ERROR :         stdout | checking build system type... x86_64-pc-linux-gnu
ERROR :         stdout | checking host system type... x86_64-pc-linux-gnu
ERROR :         stdout | checking target system type... x86_64-pc-linux-gnu
ERROR :         stdout | checking for gcc... no
ERROR :         stdout | checking for cc... no
ERROR :         stdout | checking for cl.exe... no
ERROR :         stdout | configure: error: in `/tmp/ruby-build.20161214144733.28704/ruby-2.3.3':
ERROR :         stdout | configure: error: no acceptable C compiler found in $PATH
ERROR :         stdout | See `config.log' for more details
ERROR :         Command `  export RBENV_ROOT=/usr/local/rbenv
  export PATH="/usr/local/rbenv/bin:${PATH}"
  eval "$(rbenv init --no-rehash -)"
  rbenv install 2.3.3` failed. (exit status: 1)
ERROR :       execute[rbenv install 2.3.3] Failed.

I noticed my mistake, when I had reading dependency.rb
I tried to write platform key and redhat value in node.yml.
platform: redhat   # <-- appendix

rbenv:
  global:
    2.3.3
  versions:
    - 2.3.3

  scheme: https

I retried itamae.
 INFO : Starting Itamae...
 INFO : Loading node data from /Users/kawakubox/Workspace/generic-recipe/roles/rails/node.yml...
 INFO : Recipe: /Users/kawakubox/Workspace/generic-recipe/roles/rails/default.rb
 INFO :   Recipe: /Users/kawakubox/Workspace/generic-recipe/vendor/bundle/ruby/2.3.0/gems/itamae-plugin-recipe-rbenv-0.6.3/lib/itamae/plugin/recipe/rbenv/system.rb
 INFO :     Recipe: /Users/kawakubox/Workspace/generic-recipe/vendor/bundle/ruby/2.3.0/gems/itamae-plugin-recipe-rbenv-0.6.3/lib/itamae/plugin/recipe/rbenv/install.rb
 INFO :       Recipe: /Users/kawakubox/Workspace/generic-recipe/vendor/bundle/ruby/2.3.0/gems/itamae-plugin-recipe-rbenv-0.6.3/lib/itamae/plugin/recipe/rbenv/dependency.rb
 INFO :         package[gcc] installed will change from 'false' to 'true'
 INFO :         package[gdbm-devel] installed will change from 'false' to 'true'
 INFO :         package[libyaml-devel] installed will change from 'false' to 'true'
 INFO :       execute[rbenv install 2.3.3] executed will change from 'false' to 'true'
 INFO :       execute[rbenv global 2.3.3] executed will change from 'false' to 'true'

Yay!!!

I praying to reduce mistakes like me.

I think this is recipe's bug. How about adding 'amazon' to https://github.com/k0kubun/itamae-plugin-recipe-rbenv/blob/v0.6.3/lib/itamae/plugin/recipe/rbenv/dependency.rb#L15? It should work without configuration effort on Amazon Linux.

Thanks to advice.
Please see file changed
I updated to dependency.rb, and I run itamae.
 INFO : Starting Itamae...
 INFO : Loading node data from /Users/kawakubox/Workspace/itamae-sample/roles/ruby/node.yml...
 INFO : Recipe: /Users/kawakubox/Workspace/itamae-sample/roles/ruby/default.rb
 INFO :   Recipe: /Users/kawakubox/Workspace/itamae-sample/vendor/bundle/ruby/2.3.0/gems/itamae-plugin-recipe-rbenv-0.6.3/lib/itamae/plugin/recipe/rbenv/system.rb
 INFO :     Recipe: /Users/kawakubox/Workspace/itamae-sample/vendor/bundle/ruby/2.3.0/gems/itamae-plugin-recipe-rbenv-0.6.3/lib/itamae/plugin/recipe/rbenv/install.rb
 INFO :       Recipe: /Users/kawakubox/Workspace/itamae-sample/vendor/bundle/ruby/2.3.0/gems/itamae-plugin-recipe-rbenv-0.6.3/lib/itamae/plugin/recipe/rbenv/dependency.rb
 INFO :         package[gcc] installed will change from 'false' to 'true'
 INFO :         package[gdbm-devel] installed will change from 'false' to 'true'
 INFO :         package[libffi-devel] installed will change from 'false' to 'true'
 INFO :         package[libyaml-devel] installed will change from 'false' to 'true'
 INFO :         package[ncurses-devel] installed will change from 'false' to 'true'
 INFO :         package[openssl-devel] installed will change from 'false' to 'true'
 INFO :         package[readline-devel] installed will change from 'false' to 'true'
 INFO :         package[git] installed will change from 'false' to 'true'
 INFO :       git[/usr/local/rbenv] exist will change from 'false' to 'true'
 INFO :       directory[/usr/local/rbenv/plugins] exist will change from 'false' to 'true'
 INFO :       directory[/usr/local/rbenv/cache] exist will change from 'false' to 'true'
 INFO :         git[/usr/local/rbenv/plugins/ruby-build] exist will change from 'false' to 'true'
 INFO :       execute[rbenv install 2.3.3] executed will change from 'false' to 'true'
 INFO :       execute[rbenv global 2.3.3] executed will change from 'false' to 'true'

# ssh into ec2

[ec2-user@ip-10-0-1-117 ~]$ rbenv
rbenv 1.1.0
Usage: rbenv <command> [<args>]

Some useful rbenv commands are:
   commands    List all available rbenv commands
   local       Set or show the local application-specific Ruby version
   global      Set or show the global Ruby version
   shell       Set or show the shell-specific Ruby version
   install     Install a Ruby version using ruby-build
   uninstall   Uninstall a specific Ruby version
   rehash      Rehash rbenv shims (run this after installing executables)
   version     Show the current Ruby version and its origin
   versions    List all Ruby versions available to rbenv
   which       Display the full path to an executable
   whence      List all Ruby versions that contain the given executable

See `rbenv help <command>' for information on a specific command.
For full documentation, see: https://github.com/rbenv/rbenv#readme

It looks like SUCCESS!!
Thanks!!

:+1:


Fix example 01 in linear model

We renamed X and y to data and target.
However we did not change the code used in the comment there:
https://github.com/INRIA/scikit-learn-mooc/blob/master/python_scripts/linear_models_ex_01.py#L78
We need to update it.

We have the same question in a later quiz in linear model with the same issues.


[T4A6][F10-B1] Calvin Yang JiaWei

Ready for review

Some comments added. Please close the PR after reading comments.
Hi Hi Calvin, try to split your commits by the type of tests implemented. Currently it seems alright to commit them together because they are currently short and somewhat simple. However in the future, do take note to split them - one for every significant changes or split commits if they are not exactly similar even though they might be related.
Otherwise, if you find it too troublesome to explicitly split everything, try to at least group them by similarity and commit them separately by groups, for example in your case, e.g. "Testing for elementsAreUnique()....." or "Asserting for true cases for elements ....."
~ Chuan Wei Candiie


Update Working with Vuex.md

@bitbager can you please resolve the conflicts or close MR if the one that i merged covers everything you wanted to change?


Dev-only dependencies

Avoid loading dev-only modules by deferring those; when checks etc are accessed.

devImports : deferredModule
override flake.checks and flake.devShells in the main eval; choice of attrs should be generalized
what about apps?
do this at the perSystem level too?

This will work best with

https://github.com/NixOS/nix/issues/7730

flakeModules may suffer from a similar lack of laziness and should perhaps be considered as a "class" or "context" of its own.
Both it and dev-only dependencies move towards a situation where the top level attributes are more controlled, and have to be enumerated somewhere in order to be published on the flake.
It's perhaps worth considering to model these dependency phenomena explicitly within the top level modules somehow. The genericity seems warranted because the internal dependencies may differ between flakes. I'm concerned about the complexity of such a solution though, and about the potential for bad interactions (although that might just be fear talking at this point).
To develop this, it's probably best to start with dev-only dependencies and perhaps later generalize it, if feasible.

Here's a possible implementation

https://github.com/hercules-ci/hercules-ci-agent/pull/516

The flaws are

Compensating for bad subflake support in Nix, while the subflake is actually a workaround for https://github.com/NixOS/nix/issues/7730
Re-evaluating the modules without restriction could let the dev modules make changes to e.g. packages, potentially defeating checks / CI. While this is nothing new - you could test mypkg.override foo instead of mypkg, it does make it possible to override something by mistake.

Ideally it would reuse the base evaluation's option values, while also setting readOnly = true on the pre-existing options. Only specific options, such as checks and perSystem.checks would have their definitions forwarded, allowing merging (instead of forwarding the final option value).

a situation where the top level attributes are more controlled, and have to be enumerated somewhere in order to be published on the flake.

Not sure. They may be quite orthogonal despite serving similar goals.

later generalize it

Had no problem generalizing https://github.com/hercules-ci/hercules-ci-agent/pull/516 (mentioned at the start).

:tada: You may now use flake-parts.flakeModules.partitions to achieve this.

I'm debating whether to add an opinionated module that sets
partitionedAttrs.checks = "dev";
partitionedAttrs.devShells = "dev";

and perhaps add a convenience alias dev for partitions.dev.module.
Not sure about the other options in partitions.dev though. Maybe set opinionated defaults like extraInputsFlake = self.outPath + "/dev";? Might be fragile.


Added argument -f / --fix

@Arpita-Jaiswal can you add some rudimentary test also for fix. Also it should be fbt fix like cargo fix. You use a sub command for new functionality. You use -f etc for tweaking the behavior of some functionality.


repartition dask dataframe gives faulty partitions.

when repartitioning a dask dataframe according to a certain frequency the last partition contains values that should not be in this partition.
example:
import pandas as pd
nums = [f'{i:02},' for i in range(0,3)]
dates = pd.date_range('2018-07-01', periods=3, freq='1d')
df = pd.DataFrame({'dates':dates, 'nums': nums}).set_index('dates')
df

nums

dates

2018-07-01
00,

2018-07-02
01,

2018-07-03
02,

when loading to a dask dataframe, repartitioning with a daily frequency and printing the partitions
you can see that last partition contains two days.
from dask import dataframe as dd
ddf = dd.from_pandas(df, npartitions=1).repartition(freq='1d')
for i in range(ddf.npartitions):
    print(ddf.get_partition(i).compute())

nums

dates

2018-07-01
00,

nums

dates

2018-07-02
01,

2018-07-03
02,

Note: this also happens with other frequencies.
Python 3.6.5 :: Anaconda, Inc.
dask Version: 0.18.1
pandas Version: 0.23.0

possible related to #3714 .  I think this has to do with the initial setting of npartitions=1 ?  If the divisions/index don't have an initial frequency then I don't think dask can guarantee perfect partitions
cc @mrocklin

I think this is unavoidable when your repartition freq matches the resolution of the timestamps.
The divisions will always have the minimum of each partition and the max of the last. That means you have to have the following divisions.
(Timestamp('2018-07-01 00:00:00', freq='D'),
 Timestamp('2018-07-02 00:00:00', freq='D'),
 Timestamp('2018-07-03 00:00:00', freq='D'))

I don't think there's anything dask could do here, other than perhaps document that. Would welcome a PR to clarify this in the docs. I couldn't quite find a nice way to word it.


Module path should be "github.com/mborders/artifex", not "github.com/borderstech/artifex"

Background
Module path is inconsistent with go import path.
GO111MODULE=on, as doc said, import "github.com/mborders/artifex", then get this error:
go: finding module for package github.com/mborders/artifex
go: downloading github.com/mborders/artifex v0.0.0-20191113201913-8ea03c710bd4
go: found github.com/mborders/artifex in github.com/mborders/artifex v0.0.0-20191113201913-8ea03c710bd4
go: test1 imports
        github.com/mborders/artifex<EMAIL_ADDRESS>parsing go.mod:
        module declares its path as: github.com/borderstech/artifex
                but was required as: github.com/mborders/artifex

Solution
Fix the module path:

Rename the module path to "github.com/mborders/artifex": https://github.com/mborders/artifex/blob/master/go.mod#L1

module github.com/mborders/artifex
require (
	…
)

Change the doc document to use import "github.com/borderstech/artifex".

@mborders @Prnyself  Could you help me review this issue? Thx :p

Sure thing, I will fix this!

Fixed!


BUG - All source code should have copyright header

Describe the bug
Some of the source code has

// Copyright 2020 Security Scorecard Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

while some of them don't
Expected behavior
A clear and concise description of what you expected to happen.
All the source code needs to have this additional header.
Additional context
Add any other context about the problem here.
This should be an automated test that should be part of the build.

I would like to work on this.

Closed by #320


Implementation of using BarValuesChart to display View Component values.

Fixes Issue
fixes #744
Changes proposed
[x] - Render the component values in a table
Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] All existing tests passed.

Do you have a screenshot of how this changes the appearance or a link I can use with my local dev instance to see the change too?

Comparing the current 0.11.x branch;

against this PR;

It appears the dataset comparison view is no longer rendering String values, and is attempting to plot charts when there is no numeric data

Comparing the current 0.11.x branch;

against this PR;

It appears the dataset comparison view is no longer rendering String values, and is attempting to plot charts when there is no numeric data

This shows the Dataset view working using example data.

I need to test using same data as you. Where are you getting your Dataset data from ?

Comparing the current 0.11.x branch;

against this PR;

It appears the dataset comparison view is no longer rendering String values, and is attempting to plot charts when there is no numeric data

This shows the Dataset view working using example data.
I need to test using same data as you. Where are you getting your Dataset data from ?

Not a public dataset, but if you want a reference to an internal dataset, you can take a look at;
https://example.com/dataset/comparison?testId=262&ds=133265_26488_0&ds=133267_26490_0#labels

Another example of a more complex view is test 62 (internally)
One ViewComponent for the Default view for that test is;
{
	"6": {
		"id": 242945,
		"headerOrder": 6,
		"headerName": "Mean user CPU",
		"labels": [
			"Mean user CPU"
		],
		"render": "(value, run, token) => new Number( value.reduce((a, b) => { if (!a) { a = 0 } if (!b) { b = 0 } return a + b; }, 0) / value.length ).toPrecision(3)"
	}
}

And the View in DatasetSummary is;
{
	"242945": {
		"Mean user CPU": [
			0.878,
			2.34,
			0.926,
			1.554,
			1.794,
			2.804,
			...
			1.63,
			1.246,
			2.92,
			0.776,
			1.528
		]
	}
}

The Label Mean user CPU should be rendered with the function (value, run, token) => new Number( value.reduce((a, b) => { if (!a) { a = 0 } if (!b) { b = 0 } return a + b; }, 0) / value.length ).toPrecision(3)
To provide a table like;

Comparing the current 0.11.x branch;

against this PR;

It appears the dataset comparison view is no longer rendering String values, and is attempting to plot charts when there is no numeric data

This shows the Dataset view working using example data.
I need to test using same data as you. Where are you getting your Dataset data from ?

Not a public dataset, but if you want a reference to an internal dataset, you can take a look at;
https://example.com/dataset/comparison?testId=262&ds=133265_26488_0&ds=133267_26490_0#labels

I can't recreate what you are seeing. Instead I don't have any data being displayed using the internal dataset. I will need to investigate further.

Comparing the current 0.11.x branch;

against this PR;

It appears the dataset comparison view is no longer rendering String values, and is attempting to plot charts when there is no numeric data

This shows the Dataset view working using example data.
I need to test using same data as you. Where are you getting your Dataset data from ?

This has been fixed and is now being displayed as expected.


Fix overflow of file count

Fixes file count overflow.
ZIPFoundation crashes at https://github.com/weichsel/ZIPFoundation/blob/cf10bbff6ac3b873e97b36b9784c79866a051a8e/Sources/ZIPFoundation/Archive%2BWriting.swift#L354 if file count exceeds 65535 (UInt16.max).
Changes proposed in this PR

Add overflow check for NumberOfEntriesOnDisk and NumberOfEntriesInCentralDirectory

Tests performed
An error is thrown instead of crash if file count exceeds 65535.

Swiftlint fails at Archive.swift. Is that OK to alter the file length limit to some other larger value? I read Archive.swift and think it's better to keep it as is (or maybe extract EndOfCentralDirectoryRecord extension to some other file?).

I read Archive.swift and think it's better to keep it as is (or maybe extract EndOfCentralDirectoryRecord extension to some other file?).

Would it work to move the CompressionMethod enum to Data+Compression or aren't that enough removed lines to get Archive <400?

Great idea! That would be enough. I've made the change.

Great idea! That would be enough. I've made the change.

Thanks for the PR and for adding the additional test coverage 👍


Configure koji_promote plugin

Depends on https://github.com/projectatomic/atomic-reactor/pull/319.

Ready for review.

LGTM

LGTM but there's a merge conflict and my attempt to resolve it resulted in failing tests. Can you please rebase?

Re-based.

And merged.

Thanks! Not sure why we didn't get a Travis CI/coveralls report.


times cannot yield an enumerator when chained to map

# ruby
» 10.times.map do |i|
»   i * i
» end
#» [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]

# goby
» 10.times.map do |i|
¤   i * i
» end
#» InternalError: Can't yield without a block

Thanks for reporting!


Check user in Team

###When using this plugin, how or what format is the output? I am receiving this error "System.InvalidOperationException: Instance validation error: 'xml - platform' is not a valid value for FetchOutputformat."
Steps to reproduce the problem (screenshots are really usefull)
CRM Version - onpremise 8.2.2 - WorkflowTools version <IP_ADDRESS>

Hi TristanHolt, I just tested it in the last version in online (9.1) and is working fine.
I'm executing a very simple query to find if the user is in the team:
<fetch version=""1.0"" output-format=""xml - platform"" mapping=""logical"" distinct=""true""><entity name=""team"">
<attribute name=""teamid""/>
<filter type=""and"">
<condition attribute=""teamid"" operator=""eq"" value="""+ teamReference.Id.ToString() + @"""/>

<link-entity name=""teammembership"" from=""teamid"" to=""teamid"" visible=""false"" intersect=""true"">
<link-entity name=""systemuser"" from=""systemuserid"" to=""systemuserid"" alias=""ag"">
<filter type=""and"">
<condition attribute=""systemuserid"" operator=""eq""  uitype=""systemuser"" value= """+ userId + @"""/>

Could you please share with me more details about your scenario?
thanks

What is this in reference to?
Get Outlook for Androidhttps://aka.ms/ghei36

From: Demian Adolfo Raschkovan<EMAIL_ADDRESS>Sent: Tuesday, April 30, 2019 7:15:46 PM
To: demianrasko/Dynamics-365-Workflow-Tools
Cc: Tristan Holt; Author
Subject: Re: [demianrasko/Dynamics-365-Workflow-Tools] Check user in Team (#121)
Hi TristanHolt, I just tested it in the last version in online (9.1) and is working fine.
I'm executing a very simple query to find if the user is in the team:
<fetch version=""1.0"" output-format=""xml - platform"" mapping=""logical"" distinct=""true""><entity name=""team"">
<attribute name=""teamid""/>
<filter type=""and"">
<condition attribute=""teamid"" operator=""eq"" value="""+ teamReference.Id.ToString() + @"""/>
<link-entity name=""teammembership"" from=""teamid"" to=""teamid"" visible=""false"" intersect=""true"">
<link-entity name=""systemuser"" from=""systemuserid"" to=""systemuserid"" alias=""ag"">
<filter type=""and"">
<condition attribute=""systemuserid"" operator=""eq"" uitype=""systemuser"" value= """+ userId + @"""/>
Could you please share with me more details about your scenario?
thanks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/demianrasko/Dynamics-365-Workflow-Tools/issues/121#issuecomment-488148614, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALHN25IM4OUNGR5YKZDOYCTPTDHKFANCNFSM4GSYBPLQ.


Should map == to .equals method call

let intEqual (a : Int) (b : Int) : Bool = (a == b);

intEqual 160 160

This program displays false because it actually use == in Java, which is not going to test the equality of this two objects but just test whether they are the same object.

In the future, when unboxing is finished, Int in intEqual would be mapped to Java primitive int, and we can only use == to compare.
@tomtau What do you think?

it'll be mapped to long, but the rest of the story is the same for primitive types

@zonyitoo For now, I think you have to explicitly call .equlas on the object. We will leave this open for future work.

will disappear with https://github.com/hkuplg/fcore/issues/30


[Feature]: OpenAI supply image path

🚀 The feature, motivation and pitch
Hi! I need a low-latency vision API endpoint. The current vLLM endpoint takes about 200ms (100ms for smaller images) to process a base64 image (provided via image_url as base64). I need to cut that number down to almost zero
(I checked it against cached web URL images which have almost no latency)
Would it be possible to implement that one can also supply an absolute path to an image? All my images are local anyways.
Alternatives
The alternative would be to somehow optimize the base64 parsing, but I don't know if that's possible
Additional context
No response
Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

See #8730

Awesome, thank you 😊


feat(gc): Use SelfSubjectRulesReview to scan for garbage collectable resources

The GC trait currently scans all the resources based on the set of types returned by the Discovery API. This leads to a significant number of unauthorised requests, that have proved to overload the API server unnecessarily.
This PR improves the GC trait, to rely on SelfSubjectRulesReview requests, to scan for garbage collectable resources, assuming the operator can only garbage collect resources it has previously created.
Rate limiting is also added, so that one SelfSubjectRulesReview request is performed over a minute period at the maximum, allowing to refresh the cached set of collectable types, should the permissions granted to the operator service account changed at runtime.
Release Note
feat(gc): Use SelfSubjectRulesReview to scan for garbage collectable resources

Let me merge this. The test failure in the OpenShift workflow is also present in main branch.


AttributeError: 'decimal.Decimal' object has no attribute 'total_seconds'

Debian 9, python 3.5.3, Django 1.10.7
python ./manage.py qinfo

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django/core/management/__init__.py", line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django/core/management/base.py", line 294, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django/core/management/base.py", line 345, in execute
    output = self.handle(*args, **options)
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django_q/management/commands/qinfo.py", line 41, in handle
    info()
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django_q/monitor.py", line 128, in info
    exec_time = exec_time['time_taken'].total_seconds() / tasks_per_day
AttributeError: 'decimal.Decimal' object has no attribute 'total_seconds'

if I enable time zone support in django settings I get another fault
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django/core/management/__init__.py", line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django/core/management/base.py", line 294, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django/core/management/base.py", line 345, in execute
    output = self.handle(*args, **options)
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django_q/management/commands/qinfo.py", line 41, in handle
    info()
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django_q/monitor.py", line 127, in info
    exec_time = last_tasks.aggregate(time_taken=Sum(F('stopped') - F('started')))
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django/db/models/query.py", line 356, in aggregate
    return query.get_aggregation(self.db, kwargs.keys())
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django/db/models/sql/query.py", line 462, in get_aggregation
    result = compiler.apply_converters(result, converters)
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django/db/models/sql/compiler.py", line 779, in apply_converters
    value = converter(value, expression, self.connection, self.query.context)
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django/db/backends/mysql/operations.py", line 208, in convert_datetimefield_value
    value = timezone.make_aware(value, self.connection.timezone)
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/django/utils/timezone.py", line 368, in make_aware
    return timezone.localize(value, is_dst=is_dst)
  File "/opt/arif-envo-cesmma/lib/python3.5/site-packages/pytz/__init__.py", line 225, in localize
    if dt.tzinfo is not None:
AttributeError: 'decimal.Decimal' object has no attribute 'tzinfo'

@peppelinux could you give a bit more information about your system.
It works for myself on my machine with the following:

Django (1.11)
Django-q (0.8.0)

I run macOS Sierra (v10.12.5)

as already wrote:
Debian 9, python 3.5.3, Django 1.10.7
django-q version is the latest stable

Sorry, first drink coffee then read stuff... I tried django 1.10.7 with djang-q but din't get any errors.
Unfortunately I can't check on Debian or Python 3.5.

Thank you very much,
I really appreciate your share, I'll do my best with some trials before update, and hopefully close, this issue.

I had the same issue #224

With python2 it doesn't exists, I had this exception with python 3.5 but I should do some other accurate tests

@peppelinux any update on this?

Python 3.6 mac django2
run qinfo
same issue
but if USE_TZ = True then ,no error

python 3.6
django 2.0.3
python manage.py qinfo
Same issue.

python 3.7.3
django 2.1.7
python manage.py qinfo
Same issue for me as well.

python 3.7.3
django 2.2.12
mysql 5.7
python manage.py qinfo
Same issue for me as well.

Hi,
I have the same issue.
If we investigate in the file monitor.py, we see in line 204 that the object exec_time["time_taken" has type "decimal.Decimal".
But the method "total_seconds()" it's a timedelta method.
https://docs.python.org/2/library/datetime.html#datetime.timedelta.total_seconds
            exec_time = last_tasks.aggregate(
                time_taken=Sum(F("stopped") - F("started"))
            )

            exec_time = exec_time["time_taken"].total_seconds() / tasks_per_day```

Currently on holiday, but will have a look when I'm back. Thanks for the
detective work.
On Thu, 30 Jul 2020, 11:59 Ikarys<EMAIL_ADDRESS>wrote:

Hi,
I have the same issue.
If we investigate in the file monitor.py, we see in line 204 that the
object exec_time["time_taken" has type "decimal.Decimal".
But the method "total_seconds()" it's a timedelta method.
https://docs.python.org/2/library/datetime.html#datetime.timedelta.total_seconds
        exec_time = last_tasks.aggregate(
            time_taken=Sum(F("stopped") - F("started"))
        )

        exec_time = exec_time["time_taken"].total_seconds() / tasks_per_day```

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Koed00/django-q/issues/245#issuecomment-666271940,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA6AQNMMJYTI6WM7OFW4TVTR6FABJANCNFSM4DQR44YA
.

I have the same issue @ version 1.3.9 on Redis 5.0.14, MariaDB 10.3.29 and Python 3.9.1
My temp solution is delete .total_seconds().
Thank You~


Build failed for MVD head

Bug Report
The head of the MVD produces build errors. To eliminate any side-effects, I repeated the build process on a clean and empty VM (especially ~/.m2/repository is empty).
Steps to Reproduce
Setup: Clean VM (Ubuntu 20.04.6 LTS Minimal server), OpenJDK 11 & Git
$ git clone https://github.com/eclipse-edc/MinimumViableDataspace.git
$ cd MinimumViableDataspace
$ ./gradlew clean build -x test
Context Information

Ubuntu 20.04.6 LTS (Minimal server), OpenJDK 11 & Git

Detailed Description
$ ./gradlew clean build -x test
Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details
Invalid Java installation found at '/usr/lib/jvm/openjdk-11' (Common Linux Locations). It will be re-checked in the next build. This might have performance impact if it keeps failing. Run the 'javaToolchains' task for more details.

> Task :system-tests:compileTestJava
/home/mvd/MinimumViableDataspace/system-tests/src/test/java/org/eclipse/edc/system/tests/utils/TransferSimulationUtils.java:137: error: cannot find symbol
                        session -> ContractNegotiationStates.CONFIRMED.name().equals(session.getString("status"))
                                                            ^
  symbol:   variable CONFIRMED
  location: class ContractNegotiationStates
Note: /home/mvd/MinimumViableDataspace/system-tests/src/test/java/org/eclipse/edc/system/tests/catalog/CatalogClientTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/mvd/MinimumViableDataspace/system-tests/src/test/java/org/eclipse/edc/system/tests/utils/TransferSimulationUtils.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

> Task :system-tests:compileTestJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':system-tests:compileTestJava'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 16s
23 actionable tasks: 15 executed, 8 up-to-date

Addition: If you simply delete the system test in the MVD that fails first, you end up with this problem: https://github.com/eclipse-edc/MinimumViableDataspace/issues/132

Issue has been resolved in #134


How to transfer results.json to coco-style

Thanks for your working.
I  test it on dataset and get a "results.json".But the competition needs different json style just Like
{
"video_id" : int,
"category_id" : int,
"segmentations" : [RLE or [polygon] or None],
"score" : float,
}
How can I convet it?Thanks a lot.

the model weight is invalid ,  can you provide me some help?


fix: link for shift left did not work

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Thank you for the PR. The document update looks good and corrects the issue.


Error when running "docker compose --profile multi up -d"

Error response from daemon: driver failed programming external connectivity on endpoint quickstart-tutorials-jenkins_controller-1 (99d73499cbeccad5211e1eb*******************bd3fb443b904dcddcab2a6): Bind for <IP_ADDRESS>:8080 failed: port is already allocated

Purpose:
Trying to follow the tutorial "End-to-End Multibranch Pipeline Project Creation"
What I've done:
1. Followed the tutorial "Build a Node.js and React app with npm"
2. got up to the step where I run "docker compose --profile node up -d".
3. Everything worked fine.
*4. Tried to complete the tutorial "End-to-End Multibranch Pipeline Project Creation"
6. Ran "docker compose --profile multi up -d". Encountered Above error.
7. Proceed anyway onto step "Create your Multibranch Pipeline project". Ran into these warnings and had to wait. The status for the branches are in waiting for too long.
07:00:56 Jenkins-Imposed API Limiter: Current quota for Github API usage has 52 remaining (1 over budget). Next quota of 60 in 59 min. Sleeping for 5 min 5 sec.
07:00:56 Jenkins is attempting to evenly distribute GitHub API requests. To configure a different rate limiting strategy, such as having Jenkins restrict GitHub API requests only when near or above the GitHub rate limit, go to "GitHub API usage" under "Configure System" in the Jenkins settings.
07:03:57 Jenkins-Imposed API Limiter: Still sleeping, now only 2 min 3 sec remaining.

What I've tried:
1. I've tried to remove everything from docker with "docker system prune" and other commands,
2. restart docker
3. update docker to latest version (from v4.23.0 to v4.32.0)
4. restart my machine (MacOS 14.4.1)
5. Delete and re-clone quickstart-tutorials repo
Notes:
1. "docker-ssh-jenkins-agent" Node is failing to start. These are the logs
SSHLauncher{host='desktop-jenkins_agent-1', port=22, credentialsId='jenkins-ssh-agent-private-key', jvmOptions='', javaPath='', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=60, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.NonVerifyingKeyVerificationStrategy, tcpNoDelay=true, trackCredentials=true}
[07/18/24 07:32:12] [SSH] Opening SSH connection to desktop-jenkins_agent-1:22.
desktop-jenkins_agent-1: Name or service not known
SSH Connection failed with IOException: "desktop-jenkins_agent-1: Name or service not known", retrying in 15 seconds. There are 10 more retries left.
desktop-jenkins_agent-1: Name or service not known
.
.
.
ERROR: Connection is not established!
java.lang.IllegalStateException: Connection is not established!
   at com.trilead.ssh2.Connection.getRemainingAuthMethods(Connection.java:989)
   at com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.getRemainingAuthMethods(TrileadSSHPublicKeyAuthenticator.java:89)
   at com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.canAuthenticate(TrileadSSHPublicKeyAuthenticator.java:81)
   at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
   at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
   at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
   at java.base/java.util.Spliterators$IteratorSpliterator.tryAdvance(Unknown Source)
   at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source)
   at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source)
   at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
   at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
   at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(Unknown Source)
   at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
   at java.base/java.util.stream.ReferencePipeline.findFirst(Unknown Source)
   at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance(SSHAuthenticator.java:222)
   at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance(SSHAuthenticator.java:173)
   at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:882)
   at hudson.plugins.sshslaves.SSHLauncher.lambda$launch$0(SSHLauncher.java:441)
   at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.base/java.lang.Thread.run(Unknown Source)
[07/18/24 07:34:57] Launch failed - cleaning up connection
[07/18/24 07:34:57] [SSH] Connection closed.

Checking quickstart-tutorials-jenkins_controller-1 on docker container Logs

WARNING h.plugins.sshslaves.SSHLauncher#launch: SSH Launch of docker-ssh-jenkins-agent on desktop-jenkins_agent-1 failed in 165,116 ms
INFO    hudson.slaves.SlaveComputer#tryReconnect: Attempting to reconnect docker-ssh-jenkins-agent

3. Docker Compose version v2.28.1-desktop.1
4. Docker Client: Version:  27.0.3

Side-note:
*Among this step, you need to create "development" and "production" branches, however "git checkout development" returns errors saying development does not exist. I presume it should be "git checkout -b development". Same for production.
Please help, I want to complete this tutorial.

Hello @ajunx8,
Thank you for taking the time to create this issue. We greatly appreciate your feedback as it helps us improve our documentation and user experience.
It appears that some instructions may be missing at the end of the tutorial. Let's try a potential solution together. If this resolves your problem, we will update the documentation accordingly.
Suggested Solution
Before starting the next tutorial, please try running the following command:
docker compose --profile node down -v --remove-orphans
This command will:

Stop and remove all containers defined in the docker-compose file
Remove associated volumes
Remove any orphaned containers

Next Steps

Please attempt this solution and let us know if it resolves the issue you encountered.
If successful, we will update the tutorial to include this step, ensuring future users don't face the same problem.
If the issue persists, please provide additional details about the error you're experiencing, and we'll work together to find a solution.

We appreciate your patience and collaboration in improving our documentation. Your input is invaluable in making our tutorials more comprehensive and user-friendly.
If you have any questions or need further assistance, please don't hesitate to ask. We're here to help!

After running docker compose --profile node down -v --remove-orphans and then docker compose --profile multi up -d I still get the following error:
Error response from daemon: driver failed programming external connectivity on endpoint quickstart-tutorials-jenkins_controller-1 (76e17cd7cdb7db82e508ac733ef254a534b67fce7a25ccaa6553673ec27df9af): Bind for <IP_ADDRESS>:8080 failed: port is already allocated

I enter into localhost:8080 and check the Dashboard > Nodes > docker-ssh-jenkins-agent > Logs and I still get the error:
desktop-jenkins_agent-1: Name or service not known
SSH Connection failed with IOException: "desktop-jenkins_agent-1: Name or service not known", retrying in 15 seconds.

Troubleshooting Persistent Jenkins Controller
The down command should have resolved the issue. However, if you still have a Jenkins controller running on port 8080 after executing the command, you'll need to terminate it using an alternative method.
Option 1: Using Docker Desktop
If you're using Docker Desktop:

Locate the quickstart-tutorials container
Click the red "Delete" button to terminate it

Option 2: Using Command Line
To terminate the container via command line, follow these steps:

List all running containers:
docker container ls
Find the container using port 8080:
docker container ls | grep 8080
Extract the container ID:
docker container ls --format "{{.ID}}\t{{.Ports}}" | grep "<IP_ADDRESS>:8080->8080" | cut -f1
Terminate the container using a one-liner:
docker kill $(docker container ls --format "{{.ID}}\t{{.Ports}}" | grep "<IP_ADDRESS>:8080->8080" | cut -f1)

These steps should help you remove any lingering Jenkins controller instances and free up port 8080 for future use.
Note: Always exercise caution when using docker kill commands, especially in production environments.

The issue still persists after spinning it up, then stopping the container through Option 2,
➜  quickstart-tutorials git:(main) docker compose --profile multi up -d
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set.    About a minute ago   Up About a minute (health: starting)                                       quickstart-tutorials-discovery_and_jcasc_modifier-1
bd934a10d6c4   ghcr.io/jenkins-docs/quickstart-tutorials/jenkinsci-tutorials:simple_controller_   "/usr/bin/tini -- /u…"   About a minute ago   Up About a minute (healthy)            <IP_ADDRESS>:8080->8080/tcp, 50000/tcp   quickstart-tutorials-jenkins_controller-1
➜  quickstart-tutorials git:(main) docker container ls | grep 8080
bd934a10d6c4   ghcr.io/jenkins-docs/quickstart-tutorials/jenkinsci-tutorials:simple_controller_   "/usr/bin/tini -- /u…"   3 minutes ago   Up 3 minutes (healthy)            <IP_ADDRESS>:8080->8080/tcp, 50000/tcp   quickstart-tutorials-jenkins_controller-1
➜  quickstart-tutorials git:(main)
docker container ls --format "{{.ID}}\t{{.Ports}}" | grep "<IP_ADDRESS>:8080->8080" | cut -f1
bd934a10d6c4
➜  quickstart-tutorials git:(main) docker kill $(docker container ls --format "{{.ID}}\t{{.Ports}}" | grep "<IP_ADDRESS>:8080->8080" | cut -f1)
bd934a10d6c4
➜  quickstart-tutorials git:(main) docker container ls
CONTAINER ID   IMAGE                                                                            COMMAND                  CREATED         STATUS                            PORTS     NAMES
48db9925f7a0   ghcr.io/jenkins-docs/quickstart-tutorials/jenkinsci-tutorials:agent_discovery_   "sh -c /usr/local/bi…"   4 minutes ago   Up 4 minutes (health: starting)             quickstart-tutorials-discovery_and_jcasc_modifier-1
➜  quickstart-tutorials git:(main) docker compose --profile multi up -d
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set. Defaulting to a blank string.
[+] Running 3/4
 ✔ Container quickstart-tutorials-sidekick_service-1              Exited                                                                                0.6s
 ✔ Container quickstart-tutorials-discovery_and_jcasc_modifier-1  Running                                                                                0.0s
 ⠹ Container quickstart-tutorials-jenkins_controller-1            Starting                                                                                0.8s
 ✔ Container quickstart-tutorials-multi_jenkins_controller-1      Started                                                                                0.1s
Error response from daemon: driver failed programming external connectivity on endpoint quickstart-tutorials-jenkins_controller-1 (30f7e941244c4286b8dcf028917a90fb079662d08c0184bcf8a2179af169972f): Bind for <IP_ADDRESS>:8080 failed: port is already allocated
➜  quickstart-tutorials git:(main) docker compose --profile multi down -v --remove-orphans
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set.  Defaulting to a blank string.
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "GITPOD_WORKSPACE_URL" variable is not set. Defaulting to a blank string.
[+] Running 7/8
 ✔ Network quickstart-tutorials_default                           Created                                                                                0.0s
 ✔ Volume "agent-ssh-dir"                                         Created                                                                                0.0s
 ✔ Volume "quickstart-tutorials_jenkins_home"                     Created                                                                                0.0s
 ✔ Container quickstart-tutorials-sidekick_service-1              Exited                                                                                0.7s
 ✔ Container quickstart-tutorials-jenkins_controller-1            Started                                                                                0.8s
 ✔ Container quickstart-tutorials-discovery_and_jcasc_modifier-1  Started                                                                                0.8s
 ⠸ Container quickstart-tutorials-multi_jenkins_controller-1      Starting                                                                                0.8s
 ✔ Container desktop-jenkins_agent-1-multi                        Created                                                                                0.0s
Error response from daemon: driver failed programming external connectivity on endpoint quickstart-tutorials-multi_jenkins_controller-1 (eee9b4ecf3523778029437c1a3bac432f73765d39d2753ad4aa60167ce2b8f9a): Bind for <IP_ADDRESS>:8080 failed: port is already allocated
➜  quickstart-tutorials git:(main) lsof -i :8080
COMMAND    PID         USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
firefox    859 adriangreksa  126u  IPv4 0xcdbcbb0292e895a9      0t0  TCP localhost:55523->localhost:http-alt (ESTABLISHED)
firefox    859 adriangreksa  168u  IPv4 0xcdbcbb02907ce129      0t0  TCP localhost:55525->localhost:http-alt (ESTABLISHED)
com.docke 2194 adriangreksa   51u  IPv6 0xcdbcbaef61ea16d9      0t0  TCP localhost:http-alt->localhost:55523 (ESTABLISHED)
com.docke 2194 adriangreksa   58u  IPv6 0xcdbcbaef61e9b6d9      0t0  TCP localhost:http-alt->localhost:55525 (ESTABLISHED)
com.docke 2194 adriangreksa  110u  IPv6 0xcdbcbaef61e9a6d9      0t0  TCP *:http-alt (LISTEN)

Tried to start the tutorial anyway, but got up to the "Create your Multibranch Pipeline project" step 9.
Dashboard > Building a Multibranch Pipeline Project > master > #.1 > Console Output
Branch indexing
05:29:30 Connecting to https://api.github.com/ with no credentials, anonymous access
Obtained Jenkinsfile from e9ed5b1a67fd903ce791ac59bf1b87899c8852d5
[Pipeline] Start of Pipeline
[Pipeline] node
Still waiting to schedule task
‘[docker-ssh-jenkins-agent](http://localhost:8080/computer/docker%2Dssh%2Djenkins%2Dagent/)’ is offline

@ajunx8: This issue has been resolved.
Please test the updated implementation and provide feedback on whether it now meets your requirements.


Add  Join Community button or section redirecting to discord channel

Where should this button be?

It should be in the footer. You can see the community section there.


liquid-outlet breaks in Ember 1.13.0-beta.1

When using liquid-outlets in 1.13.0-beta.1 I get  Cannot read property 'path' of undefined
This is my error log:
TypeError: Cannot read property 'path' of undefined
    at TransformLiquidWithAsToHash.TransformWithAsToHash_validate [as validate] (/Users/dennis/Development/Wakoopa/rosalina/node_modules/liquid-fire/ext/plugins/transform-liquid-with-as-to-hash.js:45:15)
    at /Users/dennis/Development/Wakoopa/rosalina/node_modules/liquid-fire/ext/plugins/transform-liquid-with-as-to-hash.js:28:23
    at Walker.visit (/Users/dennis/Development/Wakoopa/rosalina/bower_components/ember/ember-template-compiler.js:15437:7)
    at visitors.ElementNode (/Users/dennis/Development/Wakoopa/rosalina/bower_components/ember/ember-template-compiler.js:15453:16)
    at Walker.children (/Users/dennis/Development/Wakoopa/rosalina/bower_components/ember/ember-template-compiler.js:15470:7)
    at Walker.visit (/Users/dennis/Development/Wakoopa/rosalina/bower_components/ember/ember-template-compiler.js:15438:12)
    at visitors.ElementNode (/Users/dennis/Development/Wakoopa/rosalina/bower_components/ember/ember-template-compiler.js:15453:16)
    at Walker.children (/Users/dennis/Development/Wakoopa/rosalina/bower_components/ember/ember-template-compiler.js:15470:7)
    at Walker.visit (/Users/dennis/Development/Wakoopa/rosalina/bower_components/ember/ember-template-compiler.js:15438:12)
    at visitors.Program (/Users/dennis/Development/Wakoopa/rosalina/bower_components/ember/ember-template-compiler.js:15447:16)

You need a newer liquid-fire version. See the compatibility table.

Ah thanks, I missed that. Thought that 0.19 was the latest.
—
Met vriendelijke groet / Kind regards,
Dennis Tel
On Sun, May 17, 2015 at 5:51 PM, Edward Faulkner<EMAIL_ADDRESS>wrote:

You need a newer liquid-fire version. See the compatibility table.
Reply to this email directly or view it on GitHub:
https://github.com/ef4/liquid-fire/issues/286#issuecomment-102816307


Merging the xenon patch branch with main

Merging
merges the xenon patch branch with the main one
Checklist
Take a look at this checklist, and select answers for each.

This introduces meaningful changes. ✅
This is a standalone PR: it doesn't require other updates to work. ✅
This isn't a refactor/formatting change *✅
This doesn't break anything. ✅

Ok fine if I delete the branch now that you've pushed the changes?

yep


Create autodocumentation of API for GPFflow.

The script generate_rst.py creates a folder gpflow which contains all
the rst for the autogeneration using sphinx. Also added is type checking
to the documentation and css and logo for the docs.

This is a pull request for the changes to the documentation. It is a simple script that traverses the gpflow module and creates rst for the publically accessible items on the module. It also adds some css and bits like that to the conf.py
Before merging we add this to the circle CI and make sure either it pushes to read the docs in some way, or that it publishes to github pages.

@condnsdmatters , have you checked that it works on readthedocs?

@condnsdmatters , have you checked that it works on readthedocs?

I haven't logged on to read the docs, because I don't have your login details, but it works as a hosted site (as I've shared elsewhere). The way the works is that the script generates .rst files,  by traversing the gpflow module, and then sphinx can use these autogen'd files to make a static html site, with tthe right theme.
My remaining thoughts for this PR is that

if we stick with read the docs, we need to find a way to keep our autogen'd rst auto-updating (perhaps by regenerating documentation as a final step in the pipeline, though I dont like this as it involves the commiting autogenerated files to the repo)
we move to github pages, which will store all our documenation in either this repo or another one. preferably this one using this method. The advantage of this is we control everything, don;t rely on read the docs at all and can shut it down. Also, we can then set up a CNAME redirect from https://gpflow.org/documentation or https://docs.gpflow.org/ smth like that, so the whole thing is coherent

Hello @condnsdmatters , I apologize for closing your PR. It was closed automatically when I moved develop-2.0 to the develop. Could you re-open the PR? Thanks!

@awav This is finally visible on read the docs at https://gpflow.readthedocs.io/en/eric-documentation_patches/gpflow/covariances/index.html
Its fully ready for review.


Package skeleton

Need some basic structure to support a package with executable code examples.

This was actually resolved by by #15 , I just forgot to mention it in the commit.


Update README.MD

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[ ] Searched the bugtracker for similar pull requests
[ ] Read adding new extractor tutorial
[x] Read youtube-dl coding conventions and adjusted the code to meet them
[ ] Covered the code with tests (note that PRs without tests will be REJECTED)
[ ] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[ ] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[x] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
Explanation of your pull request in arbitrary form goes here. Please make sure the description explains the purpose and effect of your pull request and is worded well enough to be understood. Provide as much context and examples as possible.

Feel free to complete the description in the PR template.
The proposed change would only be valid if there was a sudo program in Windows, which there certainly wasn't when the text was written and AFAIK this is still true.
There is now a usable Windows Subsystem for Linux with a sudo command. If you can demonstrate installing yt-dl release in WSL using the procedure laid out for Unixes, we might consider something like this:
 To install it right away for all UNIX users (Linux, macOS, etc.), type:

 sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
 sudo chmod a+rx /usr/local/bin/youtube-dl

 If you do not have curl, you can alternatively use a recent wget:

 sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
 sudo chmod a+rx /usr/local/bin/youtube-dl

-Windows users can download an .exe file and place it in any location on their PATH except for %SYSTEMROOT%\System32 (e.g. do not put in C:\Windows\System32).
+You can also use this procedure in Windows Subsystem for Linux. Otherwise Windows users can download an .exe file and place it in any location on their PATH except for %SYSTEMROOT%\System32 (e.g. do not put in C:\Windows\System32).

My guess is that the WSL installation procedure doesn't put the program on the PATH for ordinary Windows use but I'd be happy to receive advice from someone like the owner (@ethanhs) of this repo which reports "works perfectly".

Feel free to complete the description in the PR template.
The proposed change would only be valid if there was a sudo program in Windows, which there certainly wasn't when the text was written and AFAIK this is still true.
There is now a usable Windows Subsystem for Linux with a sudo command. If you can demonstrate installing yt-dl release in WSL using the procedure laid out for Unixes, we might consider something like this:
 To install it right away for all UNIX users (Linux, macOS, etc.), type:

 sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
 sudo chmod a+rx /usr/local/bin/youtube-dl

 If you do not have curl, you can alternatively use a recent wget:

 sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
 sudo chmod a+rx /usr/local/bin/youtube-dl

-Windows users can download an .exe file and place it in any location on their PATH except for %SYSTEMROOT%\System32 (e.g. do not put in C:\Windows\System32).
+You can also use this procedure in Windows Subsystem for Linux. Otherwise Windows users can download an .exe file and place it in any location on their PATH except for %SYSTEMROOT%\System32 (e.g. do not put in C:\Windows\System32).

My guess is that the WSL installation procedure doesn't put the program on the PATH for ordinary Windows use but I'd be happy to receive advice from someone like the owner (@ethanhs) of this repo which reports "works perfectly".

For some reason when I try to install the ytdl in my WSL with "sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl" and  "sudo chmod a+rx /usr/local/bin/youtube-dl", I am having some problems. When I try to execute ytdl with "sudo youtube-dl", it returns "/usr/local/bin/youtube-dl: 2: Syntax error: newline unexpected". I don't know if it happens because I am using Windows WSL, or it is an issue that occurs in all Unix systems.

Use the nightly build per #30839.

"sudo youtube-dl"

NEVER DO THAT !


Add inline variable context menu item in Pharo snippet

Since they aren't temps (they are page-global) I assume you don't care that other snippets will be wrong.

We could do it for the temps assigned in the same snippet.

So only temps, not snippet variables and not in other snippets on the page?

https://user-images.githubusercontent.com/249595/220733693-118c88f1-81a7-4fd7-b856-b36dd7d2a094.mov


feat: Create Windows ARM64 installer, for #6344, fixes #5817

The Issue

#6344
#5817

How This PR Solves The Issue
This now adds a Windows ARM64 installer
Manual Testing Instructions

[x] Install and use on arm64 and amd64
[x] Make sure installed binaries are signed (from release, https://github.com/ddev-test/ddev/releases/tag/v1.23.5-aaa-testwinarm64.2 )
[x] Should not be able to run the arm64 installer on amd64, and vice versa.

TODO:

[ ] Follow up with a docs update explaining Windows ARM64 installation and use (traditional, docker-desktop, docker-ce)
[ ] Update the WSL install scripts. Stop using chocolatey and instead get the installer directly from github release. This probably needs to be done after v1.23.5 comes out.

@dennisameling thanks for all the work you've done over so many years with this.  Would appreciate your review here and trying the installer out.  (There's a fully-built and signed installer at https://github.com/ddev-test/ddev/releases/tag/v1.23.5-aaa-testwinarm64.2 )

This isn't installing gsudo.exe successfully right now, at least on arm64.

I had a release of this on ddev-test/ddev where the amd64 installer was not signed. I fiddled and tried to make it check and prevent that possibility. I hope I was successful. But it seems that the release after that went fine. We'll need to check carefully at actual install time.


[gitfs] ffi.h not found

I'm having a persistent issue building gitfs with it's root cause being that the compile isn't detecting libffi even thought it's available in MacOSX and installed via homebrew
libffi: stable 3.0.13 (bottled), HEAD [keg-only]
Portable Foreign Function Interface library
https://sourceware.org/libffi/
/usr/local/Cellar/libffi/3.0.13 (15 files, 377.1K)
Built from source on 2014-10-16 at 23:09:13
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/libffi.rb
GIST: https://gist.github.com/whcordis/7cbb441295c297bcc3c2249da48de965

gitfs is supposed to be linked with macOS's libffi since libffi is keg-only and not specified as the dependency of gitfs.
Therefore, Homebrew's libffi have nothing with this issue.
Do you have ffi.h in /usr/include/ffi/ or /usr/include/libffi?
You can check that by running:
$ ls /usr/include/ffi /usr/include/libffi
ls: /usr/include/libffi: No such file or directory
/usr/include/ffi:
ffi.h		fficonfig.h	ppc-darwin.h	x86-ffitarget.h
ffi_common.h	ffitarget.h	ppc-ffitarget.h

New version has shipped. Please try again.


[ui bug] fix styling so warning msg isn't hidden behind sql-lab

with:

without:

@ecesena @mistercrunch @bkyryliuk @vera-liu

LGTM

Thanks for the fix!


After installing it via Homebrew it doesn't download Xcode properly

When using xcodes in M1 Mac, it can select the xcodes nicely if they are already installed in the applications folder.
However, when trying to install directly through the xcodes command, it downloads a small file and installation completes from there instead of downloading the full Xcode version.

hi @thepoppingone
If you browse to /Users/<user>/Library/Application Support/com.robotsandpencils.xcodes/ you'll see any files it has tried to download and is usually a file with html in it
In the past, the is because the Apple ID you're logging in with is not a Apple Developer and it doesn't handle it properly.
Let me know if something like that is your issue?

Yeah I also met the issue, the error as below:
The operation couldn’t be completed. (DecodingError.dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Invalid value around character 0." UserInfo={NSDebugDescription=Invalid value around character 0.})))) The operation couldn’t be completed. (DecodingError.dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Invalid value around character 0." UserInfo={NSDebugDescription=Invalid value around character 0.}))))

Hi @MarcSteven
Usually those types of decoding errors are because you are not logged into an Apple Developer account and it's trying to parse the downloads, but it's returning as html and not json. Can you make sure you are logged in with Xcode's with an Apple ID that is tied to a developer account?

@MattKiazyk I don't have Xcode ,I just want to download it

Sorry I only got to work on this problem again as the M1 Mac was taken away from me. If my Apple ID is not tied to a developer account can this still work? This works fine without developer account in intel macs though.


Focusing issue

I am using a window manager which when I open search I can type into the search but use the arrow keys, but it doesn't "focus" it seems. Because when I press enter, I don't focus any application. But it works if I change my focus to the search tab by "clicking" it. This isn't an issue with Godot because I can use other popups just fine like go to line or the baked in go to function
Really nice add-on tho! Really hope you can fix it because other than issue I really like it!

Thanks for the feedback! I'm glad you like the addon.
I’m not sure I fully understand the focus issue you’re having. Can you explain a bit more? Or maybe share a screenshot


feature: option to customize mocha template

right now the .feature files gets converted to a mocha test using a hardcoded template. Would be nice if we could pass an option to the preprocessor to override the template

@fcurella I'm thinking more about this.. is the cookie removed in between steps of a single scenario? or between separate scenarios?

@lgandecki between steps, since each step is converted to a single test

aside from the fact that it might be nice to have dynamic templates, I think preserving cookie and the local storage should be a default inside a scenario, what do you think?
Once this is done it will be much easier to do this properly:
https://github.com/cypress-io/cypress/issues/686
but we can have a temporary solution . This is not really usable if we clear cookies and local storage betwen every it :)

Due to personal reasons, the previous maintainers of this package are stepping down and handing the reigns over to me, a long-time contributor to the project and a user of it myself. This is a responsibility I'm very excited about. Furthermore, I'd like to thank @lgandecki ++ for all the work that they've done so far.
Read more about the transfer of ownership here.
The repository has however moved and all outstanding issues are being closed. This is not a reflection of the perceived importance of your reported issue. However, if after upgrading to the new version, you still find there to be an issue, feel free to open up another ticket or comment below. Please make sure to read CONTRIBUTING.md before doing so.


FediAct interferes with fade-in animations on non-Mastodon-instance sites

This is continuing the issue in #42, but I've got a little more info now. Still happens in v<IP_ADDRESS> and newer, fine before <IP_ADDRESS>.
After that one was closed, I wrote there:

Unfortunately the problem is still happening in v<IP_ADDRESS> in Worldle. The JSON error is gone now, but I guess that was a red herring, sorry!
I dug around a little bit more and I can't find the conflict between the site and this extension. One thing I did notice is that the images disappear the moment FediAct is enabled -- I don't have to reload for them to disappear.
The other thing I noticed is that if I disable opacity: 0 (from Worldle's .opacity-0 class in chunk.css) then the problem goes away. So for some reason, that opacity which is usually being overridden... somehow (probably during fade-in?) is still being applied when FediAct is enabled.
(Although I'm eyeing the @keyframes animations -- I don't have enough front-end skills to know if that would interfere though.)

And I just had a similar problem happen on an internal tool at work -- it does
.fade {
  opacity: 0;
  animation: fadeIn 2s .2s 1 normal forwards ease-out;
}

@keyframes fadeIn {
  0% { opacity: 0; visibility: hidden; }
  50% { opacity: 0; visibility: visible;}
  100% { opacity: 1; visibility: visible;}
}

and the page then never fades in.
I have a minimal test case available that reproduces the problem, although interestingly putting this HTML and CSS into JSFiddle doesn't reproduce it.
https://www.lafferty.ca/fediact.html
https://www.lafferty.ca/fediact.css

(#57 might be related, I see improvmx.com has fade animations too.)

(#61 might be related, I see improvmx.com has fade animations too.)

I think I know what the issue is. FediAct uses (invisible) CSS animation (events) to detect inserted elements. The stylesheet for this function is always injected and apparently can interfere with sites that use the opacity property in it's own animations, in one way or another
I'll look into this when I have some spare time again, right now I'm writing my thesis and time is rare, unfortunately.


Added binding to callback

Scope is undefined when NODE_ENV === 'production'. This causes exception and nodejs terminates.
When NODE_ENV === 'development' Watching class in webpack/Compiler binds handler to itself and scope becomes Watching. Which works, but only by accident.
console.log(this)  in afterBuild prints

sails-hook-webpack: Webpack loaded.
sails-hook-webpack: Watching for changes...
Watching {
startTime:<PHONE_NUMBER>278,
invalid: false,

Woops, missed that! Thanks for this, merging and releasing 👍

@vkirilyuk landed in https://github.com/teamfa/sails-hook-webpack/releases/tag/2.0.4


[Feature Suggestion] Smopy integration

Hi,
Kudos on great library! I've found it very useful.
For some recent routing work, I integrated smopy into a sort-of mangled version of your visualization code. The results are quite nice and permit use of other map tiles besides.
A sample:

[A georeferenced network w/ red one ways for (most of) Pittsburg, CA is rendered on top of the map. Also showing two routes in red and blue (alpha < 1 so purple where they match) + origin/destination points.]
I can refactor my implementation and submit a pull request from a fork if you'd like. However, I used an object-oriented approach with an earlier version of the master branch and suspect you would have your own way of implementing it. The general idea though is to initialize a smopy.Map instance w/ the coordinates of the network bounding box and call the show_mpl method on any existing matplotlib artist. The .to_map_pixels method on the smopy.Map instance must be used to plot any lines, points or other georeferenced data.
Figured this might be useful for you or other users, but not sure if this is the best place to provide this info. Feel free to close if not relevant.
Looking forward to future updates!

@sfwatergit yes this is a great idea. I'll integrate this into the next major version. Do you have your code on GitHub?

I refactored some code from a much earlier version of osmnx, as I was initially planning to only use the visualization functionality and didn’t feel that this justified the additional dependencies. In particular, I subsumed all of the viz code into a single class, as it reduced some redundancy in my implementation. I’m happy to share that as a gist; however, I can’t yet open source the rest of the project. Would that work for you?

On Dec 11, 2016, at 11:57 AM, Geoff Boeing<EMAIL_ADDRESS>wrote:
@sfwatergit https://github.com/sfwatergit yes this is a great idea. I'll integrate this into the next major version. Do you have your code on GitHub?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/gboeing/osmnx/issues/14#issuecomment-266303437, or mute the thread https://github.com/notifications/unsubscribe-auth/ABiGtdAWHNqAhwSz--9mGYu60nHVl0BFks5rHFWNgaJpZM4LHb-a.

Yes of course. The gist would be useful just so I don't reinvent the wheel when I work to integrate this in a few weeks.

Fairly inelegant, but did the job for me: https://gist.github.com/sfwatergit/0267cf5b9ed0b0f3e294592b52e422fc https://gist.github.com/sfwatergit/0267cf5b9ed0b0f3e294592b52e422fc. Lines 72-80 set up the smopy.Map object. Anytime you need a coordinate pair plotted, run it through smopy.Map.to_pixels(coord) so that the correct translation from geographic to pixel coordinates is achieved. I’ve updated the map and route plotting code to do just that.

On Dec 11, 2016, at 2:22 PM, Geoff Boeing<EMAIL_ADDRESS>wrote:
Yes of course. The gist would be useful just so I don't reinvent the wheel when I work to integrate this in a few weeks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/gboeing/osmnx/issues/14#issuecomment-266312779, or mute the thread https://github.com/notifications/unsubscribe-auth/ABiGtbFcohRSdQ2yDHv7Xbnpi-wl7xuSks5rHHe-gaJpZM4LHb-a.

I added a variation of this functionality in d9ee28c305568ddaaf164fb9d8d5a92befcd08ac. It uses folium and interactive web maps instead of smopy and static map tiles.


Rename rambling

rambling provides (or will provide):

Distributed shell functionality
Log fetching for remote YARN jobs
Resource allocation of containers (e.g., CPU, memory)
Deploy conda environments via YARN job submission
Container restart/dynamic allocation

Names of other YARN-related projects:

py-yarn
yarn-api-client
Llama
Kitten
Apache Twill
Apache Slider

Knit

Ah, thanks for starting this @koverholt. Other suggestions i've seen:

pyalloc
pyarn
pyrn
yarnsnake

I'm +1 on knit.  I don't see an apache yarn related projects named that.

I am also +1 on knit

fiber
stingray (a random thought)
Sanshin

I also like sanshin.  Maybe we save that for the umbrella project ramlbing, distrbuted, hdfs3?

weave

Unfortunately, weave is/was already an Apache YARN project:
https://github.com/continuuity/weave
It has since been renamed Twill

+1 knit

+1 knit, and it opens up the opportunity for sweater puns

Looks like knit is the clear winner here, thanks for the feedback, everyone!

Renaming complete, thanks Ben!


Need authorization on this repository

I want to update to current FTP site, THEN fix my xml files as someone has mucked with the FTP site.

I am now powerful enough


CPU and GPu

Hi, I'm assuming this uses the machine's CPU for training the mode?
Is it possible to configure it to use GPU instead?

This project is just a wrapper around libsvm => no gpu support out of the box.
It seems that this project explored how to use cuda to improve performance but I never try it myself and it does not seems actively maintained...


OpenZipkin nuget account for releasing packages

@adriancole to action

cc @openzipkin/devops-tooling just in case someone else wants to help :)

It is frankly just opening an account in the http://www.nuget.org website :)

@aliostad please keep in mind that I support over a dozen projects. I humbly ask you to engage others instead of assuming I will do all sorts of review, cleanup, and administrative work personally. This includes asking on lists instead of me personally, and also soliciting users to review your work. It isn't sustainable to take my time for granted on all tasks.

@aliostad so I've sent you a secure note for the password to the openzipkin nuget account.
Please don't publish this as a 1.0 (or otherwise formal release) since no-one who uses .net has participated in any recent issue or even agreed to test this, yet. If there's a snapshot ability, please use that.
Once there's feedback from users, it would be time to think about 1.0, but until then, let's keep it flexible.

Thank you!

Please don't publish this as a 1.0

Sure :) After doing OSS for more than 5 years I think I have learnt a thing or two about versioning. My most popular project (cachecow) went to version 1.0 after 2.5 years. @adriancole


Show updated release notes

Summary
Disable script that was ignoring untagged release notes. Those notes can be valid notes that were fixed after being tagged.
Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.01%) to 85.901%

Totals

Change from base Build<PHONE_NUMBER>:
0.01%

Covered Lines:
17364

Relevant Lines:
20214

💛  - Coveralls


Copy route validation and defaulting bits from openshift-apiserver.

This is an almost-direct copy of the route validation and hostname assignment logic from openshift-apiserver, which has been refactored to operate on the v1 types from openshift/api instead of the internal types from openshift/openshift-apiserver. From library-go, one implementation will be sharable between openshift-apiserver and kube-apiserver to support OpenShift variants that serve the route API via CRD.

/hold
For openshift-apiserver 1.25 bump.

/lgtm
/approve
/hold
This cannot merge until there is a proof PR that demonstrates openshift-apiserver using this branch and passing CI.

@deads2k The openshift-apiserver kube bump went in and the proof PR (https://github.com/openshift/openshift-apiserver/pull/328) for this move is green. PTAL when you have a chance.

/hold cancel

/lgtm

/cherry-pick release-4.12


docs(ch,en)kitex/Tutorials/basic_feature/ciruitbreaker.md

1、熔断器使用说明有误,官网说默认提供的是 circuitbreaker.RPCInfo2Key，但是实际上是circuitbreak.RPCInfo2Key,并没有er。 2、修改了使用实例，更直观！
What type of PR is this?

docs: Documentation only changes
What this PR does / why we need it (en: English/zh: Chinese):

en: Modify the wrong place in the instructions of the fuse tutorial. The default is circuitbreaker.RPCInfo2Key instead of circuitbreaker.RPCInfo2Key. The usage example has been modified to be more intuitive!
zh:修改熔断器教程中使用说明中错误的地方,默认提供的是 circuitbreak.RPCInfo2Key而不是默认提供的是 circuitbreaker.RPCInfo2Key，修改了使用示例，更直观！
Which issue(s) this PR fixes:

Fixes #<538>

 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.王鹏程 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

 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.
王鹏程 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Please sign this  CLA first.

@wpc0086 hello, any progress ?

@wpc0086 hello, any progress ?
抱歉，已经按照jayantxie的建议修改了


Bug fix so that Python uses unsigned integers to address cms table

Fix for Issue #34.

Looks good, but can you please add a test?
A test that fails before your fix, and passes after.

@tjbookreader thanks, no needed to re-submit PR


Use environment variables and .env

We can use the dotenv module to load host and port from environment variables and .env files.

Closed by #8


Refactoring of core security to remove the factories.

Renamed security_context -> security_connector.
Credentials are now responsible for creating their own connectors.

Ruby failure looks legit?

This test should have passed in the first place. My previous implementation was too lax. @tbetbetbe, can you have a look at my fix? Let me know if you have any questions.


Setup Travis CI to verify

Issue Reference
This PR addresses the Issue : Fixes #13
Summarize
Please, describe what the PR does, the changes you have made.

Also, mention the key points if any to look into while code reviews

Can anyone merge this PR? Travis will help us to manage PR's easily since it automatically detect broken code


chore: update .gitignore and IntelliJ settings

Updated .gitignore to exclude IDEA files from being indexed
Updated code style settings to follow the official Kotlin standards

Summary by CodeRabbit

Chores

Updated .gitignore to simplify exclusion of IntelliJ and Android Studio files while retaining essential configuration files.
Removed .idea/.name file, which may affect project name display in IDEs.
Streamlined Kotlin code style settings by removing Java and Markdown configurations and standardizing to "KOTLIN_OFFICIAL."
Introduced a shared dictionary for IDE text processing, recognizing the term "timeserial."
Deleted .idea/kotlinc.xml, which may impact Kotlin plugin settings in the IDE.

Yes, it runs on CI along with unit tests. We use detekt. To run only linter without tests you can execute detekt task in gradle: ./gradlew detekt. I'll add this information to the contributors guide


Create getting-started-azure.md

Missing page as provided for other platforms.

This change is

I signed it!

/assign

/ok-to-test

/assign @sarahmaddox

Thanks!
/lgtm
/approve


Cow: Watch (?-i:id=100073208300354)(?# facebook.com)

Cow requests the watch of the watch_keyword (?-i:id=100073208300354)(?# facebook.com). See the MS search here and the Stack Exchange search in text, in URLs, and in code.

(?-i:id=100073208300354)(?# facebook.com) has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


Error message as html

Error message as html   added

Coverage remained the same at 97.31% when pulling abeaf8b3346ebbc5b5626db8c5c5ed6444955cb4 on tushariscoolster:master into c3d89a4abec82c2dc70d60cd5a77306b5ca0ed6e on johannesjo:master.

Thanks for the PR. Could you also provide some tests for using html?

Not sure i have much time now, will do it later.


TI-2097: Pepsi SSO: Setup SAML with Pepsi

https://truthinnovations.atlassian.net/browse/TI-2097

@trutheddie There's a merge conflict, it looks trivial though. Do you want us to handle it on merge or resolve it some other way?

@trutheddie I didn't realize this until I looked at the code more carefully, but there is a rebase duplication generated, similar to what happened earlier, a block of code is duplicated in client_base.py: https://github.com/diurnate/pysaml2/blob/6e33a74a1b2db3ee18a56aa13bebb221734be7e6/src/saml2/client_base.py#L393-L407
can you fixup the three remaining commits into a single commit or similar that doesn't have the duplicate?


Add templating for default values

Looks good to me!
Did I get it correctly that this only works in case the defaulted fields are missing entirely? In this case I will try to get rid of them in kubectl-gs.
As for the sshKey I think we are still working on how ssh should be managed to begin with so maybe this will change. But for now it seems good enough.

I want to try this out and also talk to upstream. It is possible to also do on the empty string but it makes the policy a bit more complicated (which I do not love).

I was just thinking, maybe we should have a human readable list of the rules? When we add more and more defaults here it could get hard to have an overview of what is taken care of and what isn"t.

I was just thinking, maybe we should have a human readable list of the rules? When we add more and more defaults here it could get hard to have an overview of what is taken care of and what isn"t.

I have now tried to make the test cases we check easier to read, added some docs in the code and some comments in the yaml description. What would be the best way to make it more human readable for you?
I want to add a cleaner README with development instructions next - just looking for input :)

I added some more reviewers to get feedback while I make more improvements.

I have now tried to make the test cases we check easier to read, added some docs in the code and some comments in the yaml description. What would be the best way to make it more human readable for you?
I want to add a cleaner README with development instructions next - just looking for input :)

The comments already work for me. :D Thank you. A README will be very helpful as well.

I have now tried to make the test cases we check easier to read, added some docs in the code and some comments in the yaml description. What would be the best way to make it more human readable for you?
I want to add a cleaner README with development instructions next - just looking for input :)

The comments already work for me. :D Thank you. A README will be very helpful as well.

I added some README in this PR already:
https://github.com/giantswarm/kyverno-policies/pull/43

I will merge here and work on the config management.


fix: GPTSimpleKeywordTableIndex query error with no keywords mentioned

While we query something that is not mentioned in original doc , it fetches zero node, and pop up ZeroDivisionError: integer division or modulo by zero
Here is my original program
index = GPTSimpleKeywordTableIndex(nodes,storage_context=storage_context, service_context=service_context)
retriever = index.as_retriever(retriever_mode='simple', similarity_top_k=1)
response_synthesizer = ResponseSynthesizer.from_args(
    node_postprocessors=[
        SimilarityPostprocessor(similarity_cutoff=0.7)
    ],service_context=service_context
)
query_engine = RetrieverQueryEngine.from_args(
    retriever=retriever,
    response_synthesizer=response_synthesizer,
    response_mode="tree_summarize",
    verbose=True,
    service_context=service_context
)
query="xxxxxx"
response = query_engine.query(query)

with error like below:
Traceback (most recent call last):
  File "/home/username/.local/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3460, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-2-a1d9bf635e11>", line 1, in <module>
    runfile('/tmp/pycharm_project_78/test llamindex basic.py', wdir='/tmp/pycharm_project_78/')
  File "/home/username/.pycharm_helpers/pydev/_pydev_bundle/pydev_umd.py", line 198, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  File "/home/username/.pycharm_helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "/tmp/pycharm_project_78/test llamindex basic.py", line 157, in <module>
    response = get_response_with_en(query,service_context,query_engine)
  File "/tmp/pycharm_project_78/user_module/utils.py", line 206, in get_response_with_en
    response = query_engine.query(query)
  File "/tmp/pycharm_project_78/llama_index/indices/query/base.py", line 20, in query
    return self._query(str_or_query_bundle)
  File "/tmp/pycharm_project_78/llama_index/query_engine/retriever_query_engine.py", line 145, in _query
    response = self._response_synthesizer.synthesize(
  File "/tmp/pycharm_project_78/llama_index/indices/query/response_synthesis.py", line 163, in synthesize
    response_str = self._response_builder.get_response(
  File "/tmp/pycharm_project_78/llama_index/token_counter/token_counter.py", line 78, in wrapped_llm_predict
    f_return_val = f(_self, *args, **kwargs)
  File "/tmp/pycharm_project_78/llama_index/indices/response/response_builder.py", line 376, in get_response
    return self._get_tree_response_over_root_nodes(
  File "/tmp/pycharm_project_78/llama_index/indices/response/response_builder.py", line 421, in _get_tree_response_over_root_nodes
    node_text = self._service_context.prompt_helper.get_text_from_nodes(
  File "/tmp/pycharm_project_78/llama_index/indices/prompt_helper.py", line 178, in get_text_from_nodes
    text_splitter = self.get_text_splitter_given_prompt(
  File "/tmp/pycharm_project_78/llama_index/indices/prompt_helper.py", line 159, in get_text_splitter_given_prompt
    chunk_size = self.get_chunk_size_given_prompt(
  File "/tmp/pycharm_project_78/llama_index/indices/prompt_helper.py", line 105, in get_chunk_size_given_prompt
    result = (
ZeroDivisionError: integer division or modulo by zero

I'm going to close this for now as it seems inactive.
I encourage you to make the change more general though! If any retriever fails to retrieve any nodes, we shouldn't be trying to call the synthesis module :)


Crash on Startup

Please provide a brief summary of the bug
While loading Minecraft FTB StoneBlock3 version 1.5.0, it crashes to desktop with no reason that I can see. But I am given a error log and a web address to report the bug.
Please provide steps to reproduce where possible
I open Overwolf launcher. I launch FTB app. I click play on StoneBlock3. I wait for menu to start single player or multiplayer. I click single player and open a single player game. I wait for game to open and game crashes to desktop.
Expected Results
I expected Minecraft to open for gameplay.
Actual Results
Game crashes to desktop.
What Java Version are you using?
Java 19.0.1 2022-12-18
What is your operating system and platform?
Windows 10 Pro
How did you install Java?
Java website download and install
Did it work before?
yes
Did you test with other Java versions?
yes
Relevant log output
hs_err_pid7064.log

https://github.com/adoptium/adoptium-support/issues/668#issuecomment-1364879136
The reply fixed this issue for me