Fails on Docker swarm

"WARNING You Probably Don't Need this Docker Image: " we should follow that advice and remove Gunicorn and the requirement for forwarded-ip. You can't used fixed ip for traefik in swarm mode or Kubernetes.  Also better to let swarm manage replication instead of Gunicorn workers

If you use Traefik to route to an API container without a forwarded ip, the IP of the accessor will not be logged. Is this okay?

I'm not familiar with Kubernetes and Docker swarms, but doesn't Traefik need to pre-set a trusted IP in order to reference the X-Forwarded-For header? It seems like this would be necessary to prevent spoofing when routing through multiple proxies and the accessor's original IP is passed in the header.

Traefik has this covered for swarm, compose or k8s. All internal traefik can be trusted. We use forwardedHeaders.trustedIPs
Since Traefik is the edge router within the Docker Compose network, and it's the first point of contact for incoming requests, you can trust all IPs within the Docker Compose network (because they are all internal to the network and under your control). This means that you could potentially specify the entire subnet of the Docker Compose network as trusted in the Traefik configuration.
However, note that the X-Forwarded-* and Forwarded headers are typically used in situations where there are multiple hops between the client and the server (for example, client -> load balancer -> proxy -> server), so if Traefik is the only hop between the client and the server, you might not need to use these headers at all.

Do we really need to remove Gunicorn? There may be cases where we deploy without using Kubernetes, and since Gunicorn is responsible for distributing the workers, it seems unlikely that using Kubernetes will cause any problems.

I believe compose supports replication too. Also I noticed Gunicorn makes the image very large. However we can leave it for now.

I didn't remove Gunicorn, but I did remove the static IP dependency for production compose in the new commit. Please leave a comment if you have anything to add.

I get gateway timeout, error 504. It worked only twice but fails on docker-compose down/up. We need to guarantee connection will always be accepted.

This is caused by Traefik not catching the reverse proxy because we added a private network. it appears that the problem is only with prod compose. First, please add "traefik.docker.network=reverse-proxy-public" to the labels of your api.
For example, you can define it as follows. I'll fix it in the next commit.
  api:
    image: cosogi/llmchat:230610
    restart: always
    env_file:
      - .env
    command:
      - "--host"
      - "<IP_ADDRESS>"
      - "--port"
      - "8000"
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=reverse-proxy-public"
      - "traefik.http.routers.api.rule=HostRegexp(`${HOST_MAIN}`, `{subdomain:[a-z]+}.${HOST_MAIN}`, `${HOST_IP}`)"
      - "traefik.http.routers.api.entrypoints=websecure"
      - "traefik.http.services.api.loadbalancer.server.scheme=http"
      - "traefik.http.services.api.loadbalancer.server.port=8000"
      - "traefik.http.routers.api.tls=true"
      - "traefik.http.routers.api.tls.certresolver=myresolver"
      - "traefik.http.routers.api.tls.domains[0].main=${HOST_MAIN}"
      - "traefik.http.routers.api.tls.domains[0].sans=${HOST_SUB}"
    depends_on:
      - proxy
      - db
      - cache
      - vectorstore
    volumes:
      - .:/app
    networks:
      - api-private
      - reverse-proxy-public

Thanks. I will update compose

Works.


Offsite postgresql backups using WAL-E

This PR strives to allow encrypted offsite backups to an S3 bucket, along with continuous archiving that also helps us with DR purposes.
Story: https://trello.com/c/sozQLBHM/42-spike-end-to-end-backup-procedure-for-bouncer
WAL-E: https://github.com/wal-e/wal-e
I have successfully tested this in Vagrant. The bucket in Integration has been deployed from this change.
Would love to hear some critical opinion on this!

I've made some minor comments but overall this looks excellent.

Thanks @mattbostock, updated as per your comments. Very much agree with your comment over syslogging, not sure whether we wanted it more verbose (added this as a separate commit).

@surminus Did you mean to squash 4109503?
I noticed you added logging, but we're not logging the output of the WAL-E script. There's an example where we've done this elsewhere.

@mattbostock thanks, I've updated the logging; I thought the postgres log was verbose enough but there's no harm in pushing to syslog either.
I also note I haven't added any tests which would be good to do.

:+1: LGTM

:+1:

:eggplant:


[Feature][script] Bash in tools/bin is not executable

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description

Use case
No response
Related issues
No response
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Maybe this feature is no longer needed.  What do you think?
relative pr: #9733

currently, our shell script in bin could be executed when we extract files from the tarball, but not for tools directory. and users have to sh tools/bin/create-schema.sh instead of ./tools/bin/create-schema.sh I think if we could support the second command will be more user friendly, WDYT?

remove stale


Battery-Powered Pico W and USB Type-C Connection Issue

Hello, pico-sdk team,
I am reporting a consistent issue that occurs when the battery-powered Raspberry Pi Pico W is connected to a host PC via a USB Type-C connection. Below are the details and the results of our investigations so far:
Detailed Description of the Issue:

When the Pico W is powered by batteries and connected to a host PC via a USB Type-C cable, USB communication does not initiate under certain conditions. The table below shows the voltage fluctuations of VBUS depending on the USB cable connection status:

Device
Voltage with USB Disconnected
Voltage after connecting to device first, then host
Voltage after connecting to host first, then device

Pico
0.42 V
5.17 V
5.17 V

Pico W
1.36 V
0.97..1.09 V (unstable)
5.16 V

In the case of Pico W, the VBUS voltage measured without a USB cable connected is 1.36 V, which exceeds the vSafe0V (0-0.8 V) defined by USB Power Delivery. This is considered to be the basis for determining that the USB controller of the host PC is not supplying power to the VBUS for safety reasons.

Circuit Diagram:
The circuit diagram used for this investigation is shown below. The tests were conducted using the cable included with the Raspberry Pi Debug Probe, equipped with a Type-C adapter, and the Amazon Basics USB Type-C to Micro-B 2.0 Short Charger Cable - 6 Inches (15.2 Centimeters).

Summary of Community Discussion:

Through discussions in the community, the following measures were tested:

A temporary software solution by setting WL_GPIO 2 to Low.
A temporary hardware solution by pull-down VBUS (pin 40) with a resistor of about 10kOhm.
A permanent solution proposal to pull-down WL_GPIO 2 through firmware adjustments in the CYW43439. This measure is difficult for end-users to implement, hence strongly recommended for examination by the development team.
Requesting that these temporary solutions be documented in the datasheet by the development team.

Useful Links:

Detailed research organized in the GitHub repository: pico-w-usb-failures
Community forum discussion: Raspberry Pi Pico Forum
USB Type-C® Cable and Connector Specification
Universal Serial Bus Power Delivery Specification

These measures mitigate the issue, but a permanent fix is necessary. We recommend further investigation and development of these hardware and software-based approaches by the development team.
Thank you for your attention.

This isn't an issue with the pico-sdk itself, so moving this issue to the pico-feedback repo.


new feature: omit_attrs

2 patterns available

style: remove from all tags
span.style: "." combined like JSONPath - remove from specific tag only

Can omit_attrs and omit_enclosure be combined in order to parse the HTML tree only once?

@getreu
The project policy is in readme:

Each function is offered as a single feature, so the dependencies are kept small.


Write down and review the formulation including different levels of detail

Two parts of the design based on three sources,

[x] Different levels of detail: https://www.overleaf.com/project/6694e85334c12d8cf2cc24d5
[ ] Deal with weights and milestones: https://www.overleaf.com/project/64a7d25498ab9e29369b64dc
Features for decommissioning, mothballing, retrofitting: https://github.com/spine-tools/SpineOpt.jl/discussions/476

Different levels of detail

Design
Method 1
Method 2
Method 3

Simplest
Exp total capacity
Total flow (same as 3?)
Cost para A/B

Complicated
Exp accum capacity
Vintage each flow   (need vintage production index)
Cost para A/B

Compact
Exp accum capacity
Vintage sum flow   (don't need vintage production index)
Cost para A/B

The above table serves as a summary and will be elaborated later.
Design 1: simplest formulation
Sets
Parameters
Variables
Objective function
Constraints
Design 2: complicated formulation
Sets
Parameters
Variables
Objective function
Constraints
Design 3: compact formulation
Sets
Parameters
Variables
Objective function
Constraints

Economic representation
For economic representation we modify the cost parameters in the objective function.
Investment costs
Use this parameter instead of $p_{a, y}^{\text{inv cost}}$ for the investment cost
$p_{a, y}^{\text{discounted inv cost}}=\frac{1}{(1+p^{\text{discount rate}})^{y}}(p_{a, y}^{\text{inv cost}}-p_{a, y}^{\text{salvage value}})$
where salvage value is
p^{\text{salvage value}}_{a, y} = p^{\text{annualized inv cost}}_{a, y} \sum_{i=y+1}^{y + p^{\text{tech lifetime}}_{a, y} - 1} \frac{1}{(1 + p^{\text{WACC}}_{a, y})^{i - y} } \quad \forall y \in \mathcal{Y}

and where annualized cost is
p^{\text{annualized inv cost}}_{a, y} = \frac{p^{\text{WACC}}_{a, y}}{ (1+p^{\text{WACC}}_{a, y}) \cdot \bigg( 1 - \frac{1}{ (1+p^{\text{WACC}}_{a, y})^{p^{\text{tech lifetime}}_{a, y}} } \bigg) } p^{\text{inv cost}}_{a, y}

Weights for operational cost parameters
Multiply this weight that only depends on operation year $y$ by the cost parameters
$p_{y}^{\text{discounting}}=\frac{1}{(1+p^{\text{discount rate}})^{y}} p^{\text{milestone weight}}_{y}$

The main design is finished. Most probably it will be fine-tuned when implementing. Closing this to keep track of progress.


chore: upgrade browserslist

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[x] Build-related changes
[x] Other, please describe: upgrade browserslist

Does this PR introduce a breaking change? (check one)

[ ] Yes
[x] No

If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:

[x] It's submitted to the dev branch, not the main branch
[x] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[x] All tests are passing
[x] New/updated tests are included

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

Coverage decreased (-0.1%) to 99.853% when pulling a38e97c0a494e4cfb1b2c888d193a72fc2b34cf7 on chore/browserslist into 621b490e5cfe9421d8366546a8b64a5c638c5207 on dev.

Do you have any plans to upgrade the ESM build to ES6? ES5 needs more polyfill, so building with ES6 will reduce the build size more.

Do you have any plans to upgrade the ESM build to ES6? ES5 needs more polyfill, so building with ES6 will reduce the build size more.

Is there any good way to do research on browser compatibility for ES6?

Do you have any plans to upgrade the ESM build to ES6? ES5 needs more polyfill, so building with ES6 will reduce the build size more.

Is there any good way to do research on browser compatibility for ES6?

https://caniuse.com/?search=es6
Please refer to this site

But we have the target to compatible with the following browser versions:
edge 12
firefox 18
chrome 49
safari 10
opera 36
node 6

I see. I can't help it

Run firefox 18.0 test failed.
https://github.com/js-sdsl/js-sdsl/actions/runs/3279851856/jobs/5399903934
Because mocha.js has ES6 arrow function but firefox 18.0 not support.

Successful run in firefox 31!
https://github.com/js-sdsl/js-sdsl/actions/runs/3281412236/jobs/5403384090

Although we can't test some browser in specific version such as chrome 49 but I think firefox 31 is old enough.
https://mozilla.org/en-US/firefox/31.0/releasenotes/
Firefox 31 is released in July 22, 2014 even earlier than chrome 49 (2016-03-02).
https://chrome.softwaredownload.co.in/chrome-49-0-2623
We even test it in difference os including windows, ubuntu and macos.


Add the @as functionality for the props in JSX v4

https://github.com/rescript-lang/syntax/pull/723#pullrequestreview-1218723375

Done


Bump testnet dag genesis timestamp for testnet reset

Purpose

For reviewers

Related Github issues

Changes

Tests

Deployment Considerations
Version Notes
{ major | minor | patch }

NOTE: Include the version notes in the squash commit message

prnet cleaned-up successfully


After upgrade to 1.1.0 with angular rc.5, child modal does not work

I have upgraded an existing app to angular rc.5 and moved my code to ngModule implementation now that ng2-bootstrap supports rc.5 with version 1.1.0
This app is based on Nathan Walker angular2-seed-advanced.
Upgraded my web.module.ts to import Ng2BootstrapModule
my main app module is also imported here
this module imports a shared module that handles shared components and services for my entire app including a toolbar component that uses child modal to display user profile info.
Now when application is loading I get te following error
Template parse errors: There is no directive with "exportAs" set to "bs-modal"
Here is the code used :
toolbar.component.html
...
<mcapps-profile [ngClass]="{'hidden': !auth.isLoggedIn }" #profile="profileModal" ></mcapps-profile>

profile.component.html
<div bsModal #profileModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myProfileModalLabel" aria-hidden="true" [config]="{backdrop: 'static'}">
...
</div>

profile.component.ts
// angular
import { ViewChild, OnInit, DoCheck, ChangeDetectionStrategy, ChangeDetectorRef }  from '@angular/core';
import { FormBuilder, FormGroup, Validators }   from '@angular/forms';

// lib
import { ModalDirective } from 'ng2-bootstrap/ng2-bootstrap';

// app
import { BaseComponent, LogService } from '../../../core/index';
import { IProfile, AuthService, PasswordValidator, ProfileValidator, EmailValidator, MyClubAppsApiService } from '../../index';

@BaseComponent({
  moduleId: module.id,
  selector: 'mcapps-profile',
  templateUrl: 'profile.component.html',
  exportAs: 'profileModal',
  changeDetection: ChangeDetectionStrategy.OnPush
})

export class ProfileComponent implements OnInit, DoCheck {

  @ViewChild('profileModal') public profileModal: ModalDirective;

....

I can't figure out what I am doing wrong here.
Worked perfectly well prior to moving to 1.10 and NgModule implementation.
Help appreciated.

Can you show us your ngmodule declaration, please?

thanks for your reply, meanwhile I found what the problem was : ModalModule was imported twice from different places.


Research on adding test framework in hid-node ssi module

[ ] Implement a basic framework. Like there should a test folder where all test case are present. Upon running a test command , it should execute all the test cases.

Unit test for Tx based RPC's have been added:

Create DID: https://github.com/hypersign-protocol/hid-node/issues/171
Update DID: https://github.com/hypersign-protocol/hid-node/issues/172
Deactivate DID: https://github.com/hypersign-protocol/hid-node/issues/173
Create Schema: https://github.com/hypersign-protocol/hid-node/issues/174
Register Credential Status: https://github.com/hypersign-protocol/hid-node/issues/175

Unit tests (Success Scenarios) for Query based RPC's have been added:

https://github.com/hypersign-protocol/hid-node/issues/192


Store the menu item level as a param for ease of access

Closing this pull request and opening a new one because of some other pull request that was made by accident on Jan 19


Update audio_classification_pipeline.mdx

Fixed a typo, "let's pass is straight to" --> "let's pass it straight to"

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Minimap moves to middle of screen

Describe the bug
On boot the minimap appears in the middle top of my screen. Upon resizing (to or from) maximized window to any size except minimum, minimap remains in the middle of the screen. If I log out of my runelite account that syncs settings the minimap moves back to its correct position.
To Reproduce
Steps to reproduce the behavior:

Log in to game
Log into Runelite account (that stores settings) and see minimap isn't in correct position.

Expected behavior
Minimap should always stay to the top right regardless of resizing window and being logged into Runelite account or not.
Screenshots

Environment (please complete the following information):

OS: Windows 10
RuneLite version: 1.4.16
Launcher version: 1.6.0 Rev 174

alt + right click to reset position, you moved the minimap

Wow, I had no idea that was a thing. Thanks a lot.


エラーでデプロイできないため調査

以下のようなエラーが起きてしまいデプロイできないため調査
Error: failed to fetch an image or build from source: error building: failed to solve: failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: unexpected status code [manifests 1]: 502 Bad Gateway

Investigating - Deployments that build new images are failing with errors like:

ERROR [internal] load metadata for docker.io...
We're investigating the issue now.
The failed deployments do not impact existing machines and nomad allocs. They only prevent new changes from getting deployed.
Sep 20, 2023 - 02:12 CDT
fly.io側のエラーみたい

一時的なものであったみたいです。

Visit your newly deployed app at https://smartlottery.fly.dev/

無事デプロイできたのでcloseします。


What's the unit of the maximum input sequence (max_seq_len)

I am curious about the unit of the maximum input sequence (max_seq_len). As mentioned in paper, it seems the unit is single-frame:
... When using a input sequence length of 512 (typo here, should be 576), similar to what was considered in [77] (512), our method only has a minor drop in average mAP (-1.1%) and significantly outperforms [77] ...
But in the code, I found it seems the unit of max_seq_len is the 4-frame because the features are extracted with stride=4. Therefore, a input feature sequence with max_seq_len of 2304 should cover information of consecutive 2304 * 4 frames.
When compared with the [77], it seem it's not fair to directly compare the 576 with 512 because the 512 used in the [77] represent a consecutive 512 frames, while the 576 in this work represent a feature of 576 frames with interval 4, thus this work has much longer temporal input.

@happyharrycn Can you further describe how you guys came across 2304 as the number to set for max_seq_len? Thanks for such amazing work.

Actually, we have an ablation study in Appendix Table B of ActionFormer. You can find that enlarging the max_seq_len will bring a slight performance boost.

Actually, we have an ablation study in Appendix Table B of ActionFormer. You can find that enlarging the max_seq_len will bring a slight performance boost.

So is it just for training scenario right? Also incase of any features, the value for the same should be the value of the largest feature size available or it can be any value?

Yes it is just for training, and it can be any value (smaller max_seq_len may results in bad results).

Yes it is just for training, and it can be any value (smaller max_seq_len may results in bad results).

I tried out changing the value. With very less max_seq_len, I was not able to train the model due to an assertion in LocPointGenerator(assert feat_len <= buffer_pts.shape[0], "Reached max buffer length for point generator"). Would really appreciate your feedback on same.

For very small max_seq_len, you should increase the max_buffer_len_factor in the config.

Closed due to inactivity.


Line plot widget from layer Metadata for plugins

Hi @dstansby, hi everyone,
I am leaving my suggested changes for this new feature in this PR. This implementation would fullfil #60 .
I don't necessarily expect this to be reviewed soon, so please take your time! :)
On the other hand, please do let me know as soon as possible if these changes can be implemented here so that I can update other repositories that rely on this feature. I am open for changes and feedback!
Best,
Marcelo

I'm 👍 for including this. It looks like napari layers have a .features attribute, which stores the kind of data you mentioned in #60 - could you use that to get the data for plotting instead, as it's a built in and documented napari attribute?

Hi @dstansby ,
All napari layers have the .features attribute except the Image Layer. When I started this, I was aiming for features that would be stored in a image layer, thus the reason for the .metadata.
I would be OK to change from .metadata to .features, which would make it looks similar to the FeatureScatterWidget, then we would not support the image layer.

That makes sense, I didn't realise .metadata was a 'proper' napari layer attribute for some reason - I'll go ahead and review now!

Hi @dstansby ,
Thanks for the review and sorry for the long delay! I can restart working on this next week, I am leaving a few comments now.
Recently, a line plot widget from the features property has shown more useful to me (despite not working with the image layer), similar to the already existing FeaturesScatterWidget. Thus, I intend to add it as a second class here as well. Maybe both can be just one, not sure yet if that's a good idea.

Stepping back a bit, is there a specified structure for the .metadata attribute in napari? The .features attribute is always a pandas DataFrame, so it's easy to write code that plots it. Without a similar fixed structure for .metadata I'm not sure it's a good idea to support what we're guessing is stored in there. Sorry it's taken me so long to ask this (important!) question...

Stepping back a bit, is there a specified structure for the .metadata attribute in napari? The .features attribute is always a pandas DataFrame, so it's easy to write code that plots it. Without a similar fixed structure for .metadata I'm not sure it's a good idea to support what we're guessing is stored in there. Sorry it's taken me so long to ask this (important!) question...

Yeah as I said recently, I was working with metadata in order to get features stored in an Image layer, thus the metadata, but I am leaning towards Labels layer anyway. I am refactoring this code to make line plots for the Labels layer.
If it is OK with you, I would close this PR and open a new one where I have been updating this code.

👍 closing and opening a new PR is good for me

Closing this as #184 was just opened and should replace this.


[ Question ]How to define the job in prometheus.yml?

Hi, I find there few doc about how to implement this in prometheus, below is my configuration
prometheus.yml

- job_name: 'nginx-exporter'
scrape_interval: 15s
static_configs:
- targets: ["http://<IP_ADDRESS>/status/format/json"]
relabel_configs:
- source_labels: [__address__]
regex: (^http://.)
target_label: __param_target
- source_labels: [__param_target]
target_label: host
- source_labels: []
regex: .
target_label: __address__
replacement: <IP_ADDRESS>:9913

docker-compose.yml

nginx-exporter:
image: sophos/nginx-vts-exporter
ports:
- 9913:9913
environment:
NGINX_HOST: "http://<IP_ADDRESS>/status/format/json"

Question 1.  how to set monitor endpoint(s)?
Question 2. how to implements this in prometheus.yml?

Thanks a ton....T T, wait for u help.

targets in prometheus.yml should be the address of nginx-vts-exportor.
For example
 - targets: ["http://<IP_ADDRESS>:9913"]


[Event Request] Codeunit 7025 Requisition Line Price PROCEDURE IsPriceUpdateNeeded() - OnAfterIsPriceUpdateNeeded

Please add an Event OnAfterIsPriceUpdateNeeded in Procedure IsPriceUpdateNeeded in Codeunit 7025 Requisition Line Price
PROCEDURE IsPriceUpdateNeeded(AmountType: enum "Price Amount Type"; FoundPrice: Boolean; CalledByFieldNo: Integer) Result: Boolean;
    begin
        if FoundPrice then
            Result := true
        else
            Result :=
                Result or
                not ((CalledByFieldNo = RequisitionLine.FieldNo(Quantity)) or
                    ((CalledByFieldNo = RequisitionLine.FieldNo("Variant Code")) and not IsSKU))

	OnAfterIsPriceUpdateNeeded(Result,RequisitionLine,CalledByFieldNo,IsSKU); <-- NEW EVENT
    end;

    [IntegrationEvent(false,false)]
    local procedure OnAfterIsPriceUpdateNeeded(var Result: Boolean; RequisitionLine: Record "Requisition Line"; CalledByFieldNo: Integer; IsSKU: Boolean)
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 49559.


Rename "graphcool" to "prismagraphql" in URI

@brikou : Thanks for the PR 🙌

:tada: This PR is included in version 1.16.4 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add InventoryObject interface automatically

Add InventoryObject interface automatically, without need to
specify it in :inventory_object_attributes

@miq-bot assign @agrare
@miq-bot add_label enhancement

I can't think of a better way to do this but looks good to me

Ovirt and Amazon tests pass locally with this changeset applied


🏗 Make Effects functional interfaces

Summary
This updates the interface definition of Effect to mark it as a functional interface (SAM)
Technical considerations

It wasn't possible to have a SAM whose only method was a suspending fun in the version of Kotlin that we were using when building the library. Newer version of Kotlin allow it (hence why I bumped it)
Tests
No behavioral changes were made. It makes sense for the classes inside the library to be properly inherited, but there are use cases for users to have small, anonymous effects (similar to how Reducers can be full blown classes or not)

It would be nice if you could give an example (actual code) of the usages you've thought about when requesting for this change.

My thinking is that things like simple effect factories can be like:
class SimpleEffectFactory @Inject constructor(
    private val dependencyA: DependencyA,
    private val dependencyB: DependencyB
) {

    fun createFor(parameter: String) = Effect {
        dependencyA.foo(dependencyB.bar, parameter)
        null
    }
}

Instead of
class SimpleEffectFactory @Inject constructor(
    private val dependencyA: DependencyA,
    private val dependencyB: DependencyB
) {

    fun createFor(parameter: String) = object : Effect {
        override suspend fun execute(): Action? {
            dependencyA.foo(dependencyB.bar, parameter)
            return null
        }
    }
}

Furthermore, in simple reducers (like one that only provides logging), you can have a single anonymous effect where the user can perform side effects galore with a much more compact syntax


Unable to sync behind my company using Microsoft ISA Server

Visual Studio Code Version : 1.16.1
Code Settings Sync Version : 2.8.3
Operating System : Windows 10 Enterprise build 1703
Occurs On: [Upload / Download / Help Configuring ] Download
Proxy Enabled: [ Yes / No ] I tried Yes and No
GIst Id: e9b9a2ab8ed400a8dea8b6b6cb022b33
I have posted frequently asked questions on
http://shanalikhan.github.io/2016/11/07/visual-studio-code-frequently-asked-questions.html
so you may able to resolve the error quickly.
Please make sure to write the versions and console logged error picture or copied text
Here is what the console spit  :
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28 [Extension Host] Error: connect ENOENT hepisa.hep-bejune.ch
at module.exports.sendError (C:\Users\clement.boillat.vscode\extensions\Shan.code-settings-sync-2.8.3\node_modules\github\lib\index.js:854:19)
at C:\Users\clement.boillat.vscode\extensions\Shan.code-settings-sync-2.8.3\node_modules\github\lib\index.js:865:29
at callCallback (C:\Users\clement.boillat.vscode\extensions\Shan.code-settings-sync-2.8.3\node_modules\github\lib\index.js:728:17)
at ClientRequest. (C:\Users\clement.boillat.vscode\extensions\Shan.code-settings-sync-2.8.3\node_modules\github\lib\index.js:807:17)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:191:7)
at emitErr (C:\Users\clement.boillat.vscode\extensions\Shan.code-settings-sync-2.8.3\node_modules\agent-base\agent.js:88:11)
at C:\Users\clement.boillat.vscode\extensions\Shan.code-settings-sync-2.8.3\node_modules\agent-base\agent.js:99:9
at Socket.onerror (C:\Users\clement.boillat.vscode\extensions\Shan.code-settings-sync-2.8.3\node_modules\github\node_modules\https-proxy-agent\https-proxy-agent.js:104:5)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at emitErrorNT (net.js:1283:8)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)

I spent hours trying to configure the proxy but nothing works. Any idea or steps to follow ?

I might not be able to reproduce at my end due to connection.

I spent hours trying to configure the proxy but nothing works.

What you can do is hit the commands and run the extension and debug it and send me pull request, i will accept and publish new version if it helped you.

Ok,  thank you for your answer.
I'll check your commands and maybe send a pull request if I find something.


New Method to declare timezone: tz()

I would like to define the timezone when I would like my scheduler to run.
If we take this example:
# No specified time zone. These will use the local timezone.
schedule.every().day.at("10:30").do(job)
schedule.every().wednesday.at("13:15").do(job)
schedule.every(2).days.at("17:47").do(job)

We can enhance it to add one more step to specify the required timezone.
# Defined time zone.
schedule.every().day.at("10:30").tz("America/New_York").do(job)
schedule.every().wednesday.at("13:15").tz("Australia/Sydney").do(job)
schedule.every(2).days.at("17:47").tz("Europe/London").do(job)

The benefits of this would be very very helpful. Especially for multi-national companies who need something like this to work at a specified time in a specific timezone.

Currently schedule.py has no dependencies and can exists alone.  This fix adds multiple packages that are not part of the standard python install.  The question that should be asked is whether this file should now have required complexity.  It looks like the author build this file to not had dependencies.

Support for timezone in .at() has been added in 1.2.0 :tada:


⚠ Bofrost.at has degraded performance

In d40093f, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2326 ms

Resolved: Bofrost.at performance has improved in 330bc30 after 8 minutes.


[Feature] document a materialization

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature
i want to be able to document a materialization in a yaml file
ex :
version: 1
materializations:
  - name: view_create_drop
    description: the doc of my materialization

when i execute
dbt docs generate and dbt docs serve i want to see my materialization documented
Describe alternatives you've considered
No response
Who will this benefit?
No response
Are you interested in contributing this feature?
No response
Anything else?
No response

Thanks for opening this @salimmoulouel !
Good news: there's already a way you can do this by documenting a macro. It also works in conjunction with docs blocks so you don't have to repeat yourself.
The key insight is that for each of your custom materializations, dbt creates a macro in the following format:
materialization_{materialization_name}_{adapter}

See below for an example you can try out.
Since we already have the capability to document materializations, I'm going to close this as not planned. But any feedback on this capability is welcome.
Example
macros/my_materialization.sql
{% materialization my_materialization_name, default %}
 -- the logic for your custom materialization is in here
{% endmaterialization %}

{% materialization my_materialization_name, adapter='xyz' %}
 -- if you need custom logic for the xyz adapter, then it is in here
{% endmaterialization %}

macros/_macros.yml
version: 2

# Format of macros for materializations:
#   materialization_{materialization_name}_{adapter}

macros:
  - name: materialization_my_materialization_name_default
    description: '{{ doc("my_materialization") }}'

  - name: materialization_my_materialization_name_xyz
    description: '{{ doc("my_materialization") }}'

Generate your docs and launch the website:
dbt docs generate
dbt docs serve

Navigate the to the macros folder and click on one of the macros for your materialization:


Compiler proto small vocabulary fixes.

Hey @cstml can we do a quick run on the proto to do a quick cleanup.

Refer to #56


rstudio: Fix recompilation issue with custom package set

Motivation for this change
This attempts to fix the issue described at https://github.com/NixOS/nixpkgs/pull/22219#issuecomment-291801133. Any change to the custom packages passed to RStudio causes this to recompile RStudio, which is completely unnecessary and a waste of time.
This rolls back most of my old PR, and instead of trying to make RStudio depend on a custom R version and properly use its packages, it implements something more like rWrapper in a new file, wrapper-rstudio.nix. It uses the same method of making RStudio use a custom environment, it is just refactored.
Existing configurations with the old useRPackages will break, but the new method of configuring a custom RStudio environment is just an analogue of how one configures a custom R environment.
Manual was also updated to conform with this change.
Things done

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

[X] NixOS
[ ] macOS
[ ] Linux

[X] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

Test build are running at http://hydra.nixos.org/jobset/nixpkgs/r-updates ...


Adding elasticsearch phonetic analyzer / tokenizer

Summary of the changes / Why this improves CrateDB
Let's you match results phonetically
Checklist

[X] User relevant changes are recorded in CHANGES.txt
[X] Touched code is covered by tests
[X] Documentation has been updated if necessary
[X] CLA is signed
[X] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in CHANGES.txt
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

Can one of the admins verify this patch?

Fixing the test cases, will push another commit

ok to test

@robd003 Thanks a lot for this contribution, we will look into this asap.

@suet I'm going to work on fixing the test cases this weekend. What else do you need so that we can get this merged in?

Hi @robd003 what would be your approach on solving the test cases?. Thank you

@marregui Could I get some help from the Crate staff to fix the test cases?

@robd003
I've added a couple of commits to fix the tests and add documentation for the new token filter.
If you're ok with this, I'd continue squashing and merging this feature once approved.

@seut Thanks a bunch! Let's get this merged in :)

retest this please
It seems the gradle daemon was killed under the hood.

@robd003
We've merged in in, thanks again a lot for this contribution!


move workers to top level of config

right now it's nested under server

fixed in https://github.com/XRPLF/clio/pull/241


custom golang's pkg name

What type of PR is this?
fix: https://github.com/cloudwego/fastpb/issues/14 ( pr #13, after rebase, recommit, and proto-gen-go using version 1.28.0)
When the file path does differ from the go_package name, the generated pb.fast.go is not available, although the official documentation does not recommend this, but it is legal.
ps:
option go_package = "github.com/cloudwego/fastpb/examples/fastpb_gen/user/player;playercustom";
What this PR does / why we need it (en: English/zh: Chinese):
en: Fix the generated file is not available when the package name and path of custom golang are different
zh: 修复自定义golang的包名与路径不同时，生成的文件不可用

pr check 没过，重新提一下吧

@HeyJavaBean  我看了下check license header  没过，这个我要怎么弄，之前没弄过

这个 check license header 好像有点问题，先跳过吧


Enforce $JAVA_HOME is set to JDK 8 in RC build script.

Perhaps a project-wide check is necessary, but for now we should at least make sure the release doesn't run into any more problems.
R: @youngoli
cc: @robinyqiu

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Thanks Kyle! This looks really useful. I did some quick testing on my command line to see if it would've caught the problem when I ran into it and can confirm it does.

+cc @lostluck @pabloem


启动 Supervisor 失败

2017-07-15 21:18:09 (47.2 MB/s) - ‘/lib/systemd/system/supervisord.service’ saved [418/418]

systemctl daemon-reload
警告: 自动添加 iptables 规则失败
如有必要, 请手动添加端口 29900 的防火墙规则:
iptables -I INPUT -p udp --dport 29900 -j ACCEPT
service iptables save
service iptables restart
sleep 3
Job for supervisord.service failed because the control process exited with error code. See "systemctl status supervisord.service" and "journalctl -xe" for details.
启动 Supervisor 失败, Kcptun 无法正常工作!
请反馈给脚本作者。

systemctl status supervisord.service

Systemd的单元描述文件分散在三个目录：

/lib/systemd/system：系统默认的单元文件
/etc/systemd/system：用户安装的软件的单元文件
/usr/lib/systemd/system：用户自己定义的单元文件

而在此脚本中作者选择了 /lib/systemd/system/ 目录来放 supervisord.service，所以我尝试了以下解决方案：
修改脚本， 将 /lib/systemd/system/supervisord.service 改为 /etc/systemd/system/supervisord.service,
再运行就成功了。

@JesseWo
针对你提到的这个问题，我查了一下资料，确实 /etc/systemd/system 目录要优于 /lib/systemd/system，当时写脚本时没在意放置位置，没想到还会引起无法启动的问题？
https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files
The files that define how systemd will handle a unit can be found in many different locations, each of which have different priorities and implications.
The system's copy of unit files are generally kept in the /lib/systemd/system directory. When software installs unit files on the system, this is the location where they are placed by default.
Unit files stored here are able to be started and stopped on-demand during a session. This will be the generic, vanilla unit file, often written by the upstream project's maintainers that should work on any system that deploys systemd in its standard implementation. You should not edit files in this directory. Instead you should override the file, if necessary, using another unit file location which will supersede the file in this location.
If you wish to modify the way that a unit functions, the best location to do so is within the /etc/systemd/system directory. Unit files found in this directory location take precedence over any of the other locations on the filesystem. If you need to modify the system's copy of a unit file, putting a replacement in this directory is the safest and most flexible way to do this.
If you wish to override only specific directives from the system's unit file, you can actually provide unit file snippets within a subdirectory. These will append or modify the directives of the system's copy, allowing you to specify only the options you want to change.
The correct way to do this is to create a directory named after the unit file with .d appended on the end. So for a unit called example.service, a subdirectory called example.service.d could be created. Within this directory a file ending with .conf can be used to override or extend the attributes of the system's unit file.
There is also a location for run-time unit definitions at /run/systemd/system. Unit files found in this directory have a priority landing between those in /etc/systemd/system and /lib/systemd/system. Files in this location are given less weight than the former location, but more weight than the latter.
The systemd process itself uses this location for dynamically created unit files created at runtime. This directory can be used to change the system's unit behavior for the duration of the session. All changes made in this directory will be lost when the server is rebooted.

那个改脚本的方法具体怎么操作，能告诉一下吗？

Systemd
怎么修改


Correct package versions?

Hi,
Thank you for your amazing work. I've read your paper and it is really enlightening.
I would like to replicate your results and possibly contribute more on it on my research.
It has been 7 months since the last commit to this project. Are you planning to commit environment.yml file for required packages and their correct versions? At this point,  trial-and-error looks like the only way we have. That would be really appreciated, if you at least give us the correct versions.
Any answer yes/no could be time saving for anyone who is interested with this work.
Thank you

Hello,
Thank you for your interest in our work and for pointing this out. Unfortunately, I don't have access to the environment file during the holidays, I will check in the new year, and get back to you. Happy to keep talking if anything else is a concern.
Best,
Ben

Packages have been added in "code/environment.yml", please let me know if there are any further issues.

Packages have been added in "code/environment.yml", please let me know if there are any further issues.

Thank you

Thank you


MsSQL workload not schedulable on new node sizes

MsSQL workload requires 2 CPUs and 2 Gi memory to run. With current node sizes, the workload may never be scheduled. Update the MsSQL workload to use less resources.
Events:
  Type     Reason            Age               From               Message
  ----     ------            ----              ----               -------
  Warning  FailedScheduling  1m (x25 over 1m)  default-scheduler  0/7 nodes are available: 1 Insufficient memory, 2 node(s) didn't match node selector, 7 Insufficient cpu.

Closing as fixed


No such file or directory: 'output/all_reports.json'

HI,
i got following error while trying it:
Traceback (most recent call last):
  File "./h1reports", line 294, in <module>
    reports = get_all_reports(args)
  File "./h1reports", line 68, in get_all_reports
    with open("%s/all_reports.json" % args.directory, "w") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'output/all_reports.json'

would appreciate if you could look into it.

By default it is not making the directory output,
i fixed it by creating directory output and keeping all_reports.json inside it.
Thanks again for cool tool :)

Thanks, I'll do a bug fix to have it create the directory if it doesn't exist. I'll leave this open until I get that done :)

Resolved, thanks again for the feedback :)


AttributeError

I've been using the upwork template and an upwork invoice to test out this software. I've tried using different input modules such as pdftotext and tesseract.
My code is as follows:
from invoice2data import extract_data
from invoice2data.extract.loader import read_templates
result = extract_data('upwork.pdf', templates='com.upwork.yml')

I keep getting the same error no matter which input module I use:
 Traceback (most recent call last):
  File "N:\python\invoice2data\invoice.py", line 3, in <module>
    result = extract_data('upwork.pdf', templates='com.upwork.yml')
  File "C:\Users\mehraz.hossain\AppData\Local\Programs\Python\Python37\lib\site-packages\invoice2data\main.py", line 92, in extract_data
    optimized_str = t.prepare_input(extracted_str)
AttributeError: 'str' object has no attribute 'prepare_input'

Can someone please show me where the error in my code might be?

(fixed formatting of initial comment)
You need to load the template(s) first using the read_templates() function. You are passing a string instead, which fails. See the example code on the frontpage for a working example.


[Feature request] Jump to existing window in buffer mode

CtrlP and fzf.vim have an option where if the selected buffer is already open in a window somewhere, it will jump to that window instead of opening it in the current window. (https://github.com/junegunn/fzf.vim/issues/98) This would be really nice to have in LeaderF.
Edit: After some more thought, what I really want is an entirely new window mode that lists and jumps to open windows. Buffer mode should remain as it is.

Add an option g:Lf_JumpToExistingWindow.


Monitor etcd for k0s

Looks like it requires grabbing the content of these files and applying a secret for kube-prometheus-stack can use:
curl --cacert /var/lib/k0s/pki/etcd/ca.crt --cert /var/lib/k0s/pki/etcd/server.crt --key /var/lib/k0s/pki/etcd/server.key https://localhost:2379/metrics

cc @brunnels

@brunnels  I wonder if we could use a hook to put these into a secret in the cluster
hooks:
  apply:
    after:
      - sudo k0s kubectl create namespace observability > /dev/null 2>&1 || true
      - sudo k0s kubectl create secret generic etcd-certs --from-file=cacert=/var/lib/k0s/pki/etcd/ca.crt --from-file=cert=/var/lib/k0s/pki/etcd/server.crt --from-file=key=/var/lib/k0s/pki/etcd/server.key  > /dev/null 2>&1 || true

Solution was much easier than I thought
https://github.com/onedr0p/flux-cluster-template/pull/1179


Mac OS Stream Deck Software?

Does this only work with Windows stream deck software?

Hey simcc,
The Elgato Stream Deck has software built for Windows and Mac OS.
I believe the plugin should function just fine on Mac OS as well.
Unfortunately, I do not have any way of testing that myself as I don't own
a mac.
However, I would be more than happy to troubleshoot with you should you run
into any issues.
Here is an example of a program you would pair with the command sender.
Zayik/UDPListener: Starts a basic UDP Listener that user can use to test
with a UDP Sender. (github.com) https://github.com/Zayik/UDPListener
Since the command sender is just sending a message via udp protocol, you
can technically write a receiver in any language (C#, Java, Python, C++,
etc.) and on any platform.
For example, one could create a program on a Raspberry Pi, and when it
receives a UDP message, it responds back with the current time.
On Sat, Dec 18, 2021 at 9:53 AM simcc @.***> wrote:

Does this only work with Windows stream deck software?
—
Reply to this email directly, view it on GitHub
https://github.com/Zayik/CommandSender/issues/2, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACEELKT2J3YZB34USX36DJLURTDAPANCNFSM5KK35ZLQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

As I have heard no comments to suggest the plugin does not work on other platforms, I am going to mark this as closed.

Hi sorry for delay getting back. Thanks for the reply. I'm actually fine with the receivers etc. My problem is it won't even install on OSX. See Screenshot.

.

I've only just started with stream deck, so no idea why it won't install...some plugins don't work on Mac and vice versa, no idea why...there's a brief list here (obvious reasons that some don't...but not all): https://streamdeck-plugins.com

I've done some research, and I found out that depending on the coding language and features used, Mac OS isn't supported.
This was done using a library to allow use of c#, which has Windows requirement.
Therefore, this app unfortunately does not support Mac OS.
That being said, I am looking at converting this to Javascript which can more easily support Mac OS. I'll let you know when I have that available.

I have created a new plugin which should have Mac OS support. https://github.com/Zayik/CommandSender-Websocket-Edition
This is by switching to Javascript which Streamdeck indicates should be able to have Mac OS support.
However, there are some key differences. Instead of using UDP messages, it is using WebSockets.
To the best of my knowledge, UDP messages cannot be used in Javascript unless used within Node JS, or possible some other technology. To the best of my knowledge, StreamDeck does not support any technologies that would allow use of udp messages within Javascript. This is why I switched over to WebSockets.
To create a test server, or to learn how to interact with Websockets from a language such as C#, one can refer to https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_server. Mozilla provides a very simplistic example that can be compiled and used to test the new WebSocket version of the CommandSender.

Hey thanks for getting back...I'm getting out of my depth here, lol...but I'll check out if your plugin works on Mac and report back regardless...whether I can figure the rest out, we'll see...cheers and happy new year!

The new plugin installs in Mac OS Mojave anyway! ...Probably be a while before I get a chance to sit down with it, I'll let you know...thanks again.


pig-latin: 2 incorrect tests

I disagree with the multi-word tests, the last two in the spec file

what should translate as atwhay    assert.equal('ellway, hatway avehay eway erehay?', translate('well, what have we here?'))
    -- ...................^^^^^^

spaces should translate as acesspay    assert.equal('abstay\tanday   pacessay', translate('tabs\tand   spaces'))
    -- ...........................^^^^^^^^

These cases would fall into the "some letter clusters are treated like a single consonant" class

The pig latin tests were based off of a really old version of the spec and that test no longer exists. https://github.com/exercism/lua/pull/329 updates pig latin to the latest spec and (hopefully) resolves any remaining issues.


Doesn't work inside fixed height container

Any way to make this work inside of a fixed height container?

I'm afraid the script doesn't take vertical space into account at all. I think one of the forks did try to tackle this problem (but don't quote me on that).


Update SIWA config for Android and refactor

Simplifies existing code and adds the official config for SIWA with New Dot.
Was having some issues with Log not showing up, sticking with console for now.

Config update and refactor were split into #7 & #9.


New Hologram display limits update completely broke text display.

This means it is impossible to grab ANYONE's holograms, kinda a yikes!
[wire] addons/wire/lua/entities/gmod_wire_expression2/core/cl_hologram.lua:14: attempt to index upvalue 'holoDisplayCVar' (a nil value)

fn - addons/wire/lua/entities/gmod_wire_expression2/core/cl_hologram.lua:14
unknown - addons/ulib-master/lua/ulib/shared/hook.lua:109

This line should be CreateConVar https://github.com/wiremod/wire/pull/2271/files#diff-2548e3cbe473fd5a19032bc7cd8f66b5944d9868305d63f6206f957a94db0623R2

@LiddulBOFH mind doing a patch?

Ah, sorry, didn't get this notification till a couple hours later; also figured since the server-side version of that cvar was replicated, wouldn't need to recreate it, just need that particular cvar not able to be changed by clients

to be clear, I did test this before merging and did not get this issue. it seems the host of a local server isn't affected by this issue.

Yeah it would've only affected dedicated servers


Feat/ping

Created ping endpoint that returns json data when  called.

closes #357

Kindly review @Asylcreek
close #357

Hey man.
Please make the PR to the staging branch instead.

Alright man. I thought I did.
Sorry about that


Zones are not authorized

Hi,
I installed cloudflare-exporter from helm repo, added CF_API_TOKEN, and received only worker metrics and the next error:
level=error msg="graphql: zones [***] are not authorized"
We have paid CF account, I also tried to set FREE_TIER=false but still not working properly
Any ideas how to fix it?

That error is because the token you are using is not authorized for that zone. You can edit that on your user panel in CF--> Tokens--> click on token, edit, and add access to that zone or all zones.
Either way it wont work with free zones at the moment.


cmake - disallow switching ENABLE_MONGODB separate from ENABLE_POCO_MONGODB

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
For changelog. Remove if this is non-significant change.
Category (leave one):

Build/Testing/Packaging Improvement

Short description (up to few sentences):
When ENABLE_MONGODB is disabled separate from ENABLE_POCO_MONGODB it leads to problem with compilation.
Fixes #6014

ClickHouse Stress Test (thread) - fixed in #6072


Add hardwood trees on Fossil Island

Currently working on this, just logging it!

[x] Add patches under Tree Config for:

[x] Fossil Island - East
[x] Fossil Island - South
[x] Fossil Island - West

[x] Add teleport options under Tree teleport options Config for:

[x] Fossil Island - East
[x] Fossil Island - South
[x] Fossil Island - West

[x] Add a teleport option for the Digsite pendant

[x] The closest teleport is Digsite, then Quick-Travel on the barge and run to the Fossil Island hardwood tree patches via the beach tunnel

[x] Add a teleport option for the mounted Digsite pendant

[x] The closest teleport is Digsite, then Quick-Travel on the barge and run to the Fossil Island hardwood tree patches via the beach tunnel

[x] Add Digsite pendant to the item requirements
[x] Add the Locations for:

[x] Fossil Island - East
[x] Fossil Island - South
[x] Fossil Island - West

[x] Add the Teleports for:

[x] Fossil Island - East
[x] Fossil Island - South
[x] Fossil Island - West

[x] Add the farmer Squirrels to the Tree patch farmers List (NPC ID's found via RuneLite's developer mode NPC toggle):

[x] Squirrel - East (NPC ID: 7754)
[x] Squirrel - South (NPC ID: 7755)
[x] Squirrel - West (NPC ID: 7756)

[x] Add Teak and Mahogany as valid saplings
[ ] Add Teak and Mahogany as valid varbits
[ ] Other steps that I'm not aware of...

Could use some assistance on the PR #20, I'm evidently missing something, but I'm not entirely sure what. Could do with a code review!


Browsersync only reloading once

I've been playing with browsersync: gulp watch-styles --base --bs  It looks like it's only applying and reloading the browser the first time I make a changes in my _theme.less file. All other times it's like nothing is happening in terminal. It's not firing the command again.

bsConfig file:
module.exports = {
    proxy:  `${ptotocol}://${localConfig.hostname}.${localConfig.generic}/`,
    host:   `${localConfig.hostname}.${localConfig.generic}`,
    tunnel: `${localConfig.hostname}`,
    port:   3000,
    open:   false
};

@williamengbjerg thanks!
The same behavior with _theme.less and Magento_Theme/web/CSS/source/_module.less. But everything is ok with other files
Need to investigate

@bobmotor Confirming when changing other files it works pretty well. Except _variables.less. Maybe because it's imported through _theme.less? I'm not completely sure.


Newsletters: add 84 (2020-02-12)

[x] @dongcarl add description of Bitcoin Core #17578

Verified the links at the bottom are :ok:

Pushed edits for feedback (thanks!).  Also made slight edits to @dongcarl's text (spelling[1], fixing my old broken link to the wrong PR, and adding a link to a previous newsletter with some anchor text) and re-did the commit so it credits him as author instead of me (required a force push).
[1] Per style guidelines, used American English spelling in line with this document's primary author (me) using that spelling.  Just mentioning this so that Carl and John know they're free to insert those extra us after os in their own documents for the website.

@bitschmidty just prior to merge time, could you please check https://bitcoincore.org/bin/bitcoin-core-0.19.1/ to see if RC2 has been uploaded?  If so, could you please also s/rc1/rc2/ in the action items section?

@harding Will do!

ACK 85adf14c80c05529d90d4e10e55d24e5596471b1

ACK 85adf14c80c05529d90d4e10e55d24e5596471b1

Split the style guide change into its own commit and squashed


Add support back for 'preferred_element_type' arg in jnp.dot

Hello Jax team,
I hope you are doing well.
Do you intend to support the preferred_element_type argument in jnp.dot in the near future? This was already integrated in #4465 but removed right away because "the numeric behavioral and return type rules of the dtype parameter in numpy seem to differ quite substantially from the preferred_element_type in XLA" (from this comment).
Thank you!

Hi @dallatt
Looks like preferred_element_type argument has been added to jnp.dot in latest version of JAX. The PR related to the documentation of the same was merged already. You can find the related documentation here: https://jax.readthedocs.io/en/latest/_autosummary/jax.numpy.dot.html
Thank you

Thanks! Indeed this looks like it's been fixed by #17506. Thanks!

Awesome, thank you all!


Extends security scheme with ciba flow

Fixes #3587
Uses https://github.com/OAI/OpenAPI-Specification/blob/v3.0.4-dev/versions/3.0.4.md#specification-extensions for ciba flow so that OAS is not overburdened with CIBA flow specific additional fields in oauth flow object.

@shilpa-padgaonkar thanks!  For extensions, we don't put them directly in the specification.  instead, there is a registry on the gh-pages branch (which has web site content rather than spec content, because of how GitHub pages is configured).
You'll notice the registry is mostly empty- I don't think we've figured out the criteria for listing extensions (e.g. whether they have to be implemented first or not), and it looks like the linked issue on the registry page for figuring it out is still open.  So we might need to discuss this in a Thursday TCD call - feel free to add your issue to the agenda by adding a comment to that agenda issue.
I think @miqui is also working on things for extension registries, including #3598.
I'm going to close this for now, but that's not a rejection of this solution.  It's just that this is not where it goes if we want to do an extension.

@shilpa-padgaonkar BTW, all are welcome to join the weekly calls.  If that time does not work for your time zone but you would like to join a call, please let us know- we are trying to figure out if we should have some calls at alternate times, and knowing who would benefit and what time zones they are in will help us with that planning.

@shilpa-padgaonkar Security is really not my area of expertise – looking at the linked issue, I can't really tell what the appropriate way to add this to the spec really is.  It looks like there's some confusion or disagreement among folks who have commented, and I don't see anyone from our Technical Steering Committee (TSC) weighing in.
I would recommend discussing your proposal in more detail in the issue first, and/or joining a Thursday call if that's convenient for you.  If that call is not convenient, we can put the issue on the agenda and get some TSC guidance on your behalf (although it might take another week or two before we get to it- we have a large backlog right now).
It's generally best to have clear agreement on the solution in an issue before opening a PR.  So your PR #3607 is great as the solution was already clear fro the issue (and thank you for figuring out the right branch and file!  I'm sure we'll merge that as soon as we get someone from the TSC to approve it).  But with this issue, it's not yet clear that everyone agrees on the problem and solution.
We try to avoid having PRs open when there's not yet agreement, because they tend to just get stuck - we've been trying to clear out the old PRs where that's happened and not add new ones.  So I'd recommend continuing the issue discussion until there's more clarity and agreement.


Document new PQL and reorg from PR #201

and generally revamp the docs. Some fixes:

add info on how to use the ssl_verify to provide
the CA root certificate (fixes #143),
improve some examples, fixing #129,

Pull Request Test Coverage Report for Build 737948477

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 85.006%

Totals

Change from base Build 737878011:
0.0%

Covered Lines:
754

Relevant Lines:
887

💛  - Coveralls


[CUDA] Fix build failure with cuda11.6.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: liutongxuan:x: nluehrYou have signed the CLA already but the status is still pending? Let us recheck it.


SNYK: github.com/docker/docker Denial of Service (DoS)

Summary of issue

Severity: high
Affected versions of this package are vulnerable to Denial of Service (DoS). Encrypted overlay networks on affected configurations silently accept cleartext VXLAN datagrams that are tagged with the VNI of an encrypted overlay network. As a result, it is possible to inject arbitrary Ethernet frames into the encrypted overlay network by encapsulating them in VXLAN datagrams.

A sophisticated attacker may be able to establish a UDP or TCP connection by way of the container’s outbound gateway that would otherwise be blocked by a stateful firewall or carry out other escalations beyond simple injection by smuggling packets into the overlay network.
Note: Patches are available in Moby releases 23.0.3, and 20.10.24. As Mirantis Container Runtime's 20.10 releases are numbered differently, users of that platform should update to 20.10.16.
Link to detailed description

Fixed in https://github.com/equinor/terraform-azurerm-service-bus/pull/26


Config return type

For some reason when you type hint a string like "Config", it makes that function not show up in the dir of the class. It also just didnt make sense for the function to_dict() to return a type of "Config". You can now call this function and it will return a dictionary.

Thank you for catching that issue!


AttributeError

Hello I have imported and created unet using below code : -
model = Unet(input_shape=(128,128,3),classes=256)
but when i run it it gives me error
AttributeError: module 'keras.utils' has no attribute 'get_file'
so how can i slove it
I have
tensorflow == 2.6.2
and keras == 2.6.0

I am having the same problem. Also this one: AttributeError: module 'tensorflow' has no attribute 'to_int32'
AttributeError: in user code:

    /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/keras/engine/training.py:853 train_function  *
        return step_function(self, iterator)
    <ipython-input-6-7788975c3f2b>:4 mean_iou  *
        y_pred_ = tf.to_int32(y_pred > t)

tf 2.6.0
keras 2.6.0

Hello I have imported and created unet using below code : - model = Unet(input_shape=(128,128,3),classes=256) but when i run it it gives me error AttributeError: module 'keras.utils' has no attribute 'get_file' so how can i slove it I have tensorflow == 2.6.2 and keras == 2.6.0

Did you get to find any solution? I did
import segmentation_models as sm
sm.set_framework('tf.keras')
sm.framework()

and it solves that specific error, but now it outputs other similar error :
AttributeError: module 'tensorflow' has no attribute 'to_int32'

actually, I did the same as you and I do not have errors anymore.
In which line do you get this error?
My problem now is that it doesn't recognize the GPU..

@keval2232 @elliestath Try:
import segmentation_models as sm

sm.set_framework('tf.keras')

sm.framework()


Dims sliders should be sorted by dimension order

🚀 Feature
While working on my dimension sorter widget, I noticed that changing the dims order doesn't affect the slider order on screen, which I found jarring. In my opinion the sliders should be reorderable based on viewer.dims.order, with the slider closest to the canvas being the one that gets swapped out when ndisplay is toggled.
A tiny example to play with:
import numpy as np
import napari

# tzcyx array
data = np.random.random((20, 16, 2, 128, 128))

viewer = napari.view_image(data, axis_labels=list('tzcyx'))
viewer.dims.order = (2, 0, 1, 3, 4)  # ctzyx

I dig it, I'd probably want to play with this before committing, but makes sense to me

Curious what others think?

I agree with @jni here.
Using the script in the OP I get:

†oggle 3D does properly use z, so the re-ordered dims.
I think dims order if provided should affect slider order and indeed my intuition would be that the slider at the canvas edge would be the one used for toggle-3D.


Implement csplit

Replaces https://github.com/uutils/coreutils/pull/1245

Some clippy warnings have to be fixed (I will do it)


[Bug]: camelCase alias for frontmatter file queries are undefined

Describe the bug
---
queries:
  - releaseYear: release_year.sql
---

vs

---
queries:
  - my_alternative_alias: release_year.sql
---

If you alias release_year.sql as releaseYear, the frontmatter will run without error and a query named releaseyear (lowercase 'y') will run successfully. But there will not be a query named releaseYear (capital 'y') in the scope, and any downstream attempts to reference it as such will fail.
While the examples in the docs use snakecase, I don't believe anywhere in the docs indicates that camelCase aliases will cause this particular bug.
Severity
annoyance
Additional Information, or Workarounds
No response

I've looked back into the PR where this feature was implemented.
https://github.com/evidence-dev/evidence/pull/734
We intentionally decided to lowercase all query ids because of unexpected behaviour if you used mixed cases. Solution is therefore

Better docs - document this behaviour
And ideally - throw useful warning if user tries to use capital letters in a query ID


5.1 release notes appear to be empty?

Not sure if this is just when upgrading from a beta?

Or maybe that's intentional? ¯_(ツ)_/¯

This is normal for the beta release notes. There were no changes from the previous beta.


Mbed import with --depth switch should affect mbed-os clone

from @fredlee12001

mbed import accepts an option to truncate the git history depth, --depth.
When I tried to import the PDMC project with --depth 1, I found that Mbed OS contained more than one commit in its history. See attached image

This might be also related to locally cached copy of Mbed OS that has the full index tree. To save traffic, Mbed CLI will prefer to use the locally cached copy (200KB download vs 50MB)

Thank you for raising this issue. Please note we have updated our policies and
now only defects should be raised directly in GitHub. Going forward questions and
enhancements will be considered in our forums, https://forums.mbed.com/ . If this
issue is still relevant please re-raise it there.
This GitHub issue will now be closed.


[Feature Request] Multiple selectable columns

Existing Component
Yes
Component Name
ElTable
Description
Can we get more than one selection column to work with, as showed in the following image?
https://user-images.githubusercontent.com/3602272/38234736-055658c0-371f-11e8-9459-c741b529e248.png

Sorry, we have no plan to support this.


Uncaught TypeError: Converting circular structure to JSON

[Enter steps to reproduce below:]

...
...

Atom Version: 0.196.0
System: Mac OS X 10.10.3
Thrown From: atom-beautify package, v0.26.2
Stack Trace
Uncaught TypeError: Converting circular structure to JSON
At /Users/seivan/.atom/packages/atom-beautify/node_modules/analytics-node/node_modules/superagent/lib/node/index.js:801

TypeError: Converting circular structure to JSON
  at stringify (native)
  at Request.end (/Users/seivan/.atom/packages/atom-beautify/node_modules/analytics-node/node_modules/superagent/lib/node/index.js:801:29)
  at attemptRetry (/Users/seivan/.atom/packages/atom-beautify/node_modules/analytics-node/node_modules/superagent-retry/lib/index.js:38:21)
  at Request.end (/Users/seivan/.atom/packages/atom-beautify/node_modules/analytics-node/node_modules/superagent-retry/lib/index.js:48:12)
  at Analytics.flush (/Users/seivan/.atom/packages/atom-beautify/node_modules/analytics-node/lib/index.js:159:6)

Commands
  7x -0:23.8.0 core:move-right (atom-text-editor.editor)
  3x -0:23.1.0 core:move-left (atom-text-editor.editor)
     -0:22.2.0 editor:move-to-end-of-line (atom-text-editor.editor)
     -0:22 editor:newline (atom-text-editor.editor)
     -0:20.8.0 core:undo (atom-text-editor.editor)
 16x -0:20.8.0 core:move-down (atom-text-editor.editor)
     -0:19.8.0 editor:newline (atom-text-editor.editor)
     -0:18 core:backspace (atom-text-editor.editor)
     -0:16.2.0 autocomplete-plus:confirm (atom-text-editor.editor)
     -0:13.7.0 editor:move-to-end-of-line (atom-text-editor.editor)
     -0:12.7.0 core:move-down (atom-text-editor.editor)
     -0:12.5.0 core:save (atom-text-editor.editor)
     -0:12.5.0 linter:lint (atom-text-editor.editor)
     -0:11.2.0 command-palette:toggle (atom-text-editor.editor)
     -0:09.8.0 core:confirm (atom-text-editor.editor.mini)
     -0:09.8.0 typescript:output-file-execute-in-iojs (atom-text-editor.editor)

Config
{
  "core": {
    "themes": [
      "atom-dark-ui",
      "railscast-theme"
    ],
    "disabledPackages": [
      "deprecation-cop",
      "feedback",
      "exception-reporting",
      "language-clojure",
      "language-csharp",
      "language-less",
      "language-php",
      "language-perl",
      "language-toml"
    ]
  },
  "atom-beautify": {
    "analytics": false
  }
}

Installed Packages
# User
.bin, vundefined
atom-beautify, v0.26.2
atom-typescript, v4.1.0
autocomplete-css, v0.6.0
autocomplete-paths, v1.0.2
autocomplete-plus, v2.12.1
autocomplete-ruby, v0.1.0
autocomplete-snippets, v1.3.0
ember-cli-helper, v0.7.2
ember-snippets, v1.2.1
language-ember-script, v0.1.0
language-emblem, v0.1.0
language-swift, v0.4.0
linter, v0.12.1
linter-coffeelint, v0.2.2
linter-coffeescript, v0.1.1
linter-ruby, v0.1.4
linter-scss-lint, v0.0.14
linter-swiftc, v1.0.0
preview, v0.13.8
railscast-theme, v0.3.0
ruby-bundler, v0.2.1
script, v2.20.0

# Dev
No dev packages

Would you be able to run Beautify - Help Debug Editor in the same file that caused this error? Thank you.

There have been many releases after v0.26.2 and this bug has been unreproducible and unconfirmed by other users including myself.
If this issue is still applicable in latest versions, please let me know and we can reopen this. Thanks.

[Enter steps to reproduce below:]

...
...

Atom Version: 1.3.0
System: Unknown Windows Version
Thrown From: atom-beautify package, v0.28.19
Stack Trace
Uncaught TypeError: Converting circular structure to JSON
At /C:/Users/Ruslan/.atom/packages/atom-ternjs/lib/atom-ternjs-client.coffee:46

TypeError: Converting circular structure to JSON
    at Object.stringify (native)
    at Client.module.exports.Client.update (C:\Users\Ruslan\.atom\packages\atom-ternjs\lib\atom-ternjs-client.coffee:46:29)
    at Type.module.exports.Type.queryType (file:///C:/Users/Ruslan/.atom/packages/atom-ternjs/lib/atom-ternjs-type.coffee:126:21)
    at Manager.onDidChangeCursorPosition (C:/Users/Ruslan/.atom/packages/atom-ternjs/lib/atom-ternjs-manager.js:309:17)
    at later (C:\Users\Ruslan\AppData\Local\atom\app-1.3.0\resources\app.asar\node_modules\underscore-plus\node_modules\underscore\underscore.js:724:25)

Commands
     -7:45.7.0 tree-view:add-file (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -7:43.8.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -7:40.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
 23x -7:10.8.0 atom-terminal-panel:toggle-autocompletion (atom-text-editor.editor.is-focused)
     -6:58.1.0 settings-view:open (input.autocomplete.autocomplete-input.autocomplete-text)
     -5:58.5.0 tree-view:open-selected-entry-right (span.name.icon.icon-file-text)
     -4:28.7.0 core:save (atom-text-editor.editor.is-focused)
     -4:10.5.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused)
     -4:10.5.0 editor:newline (atom-text-editor.editor.is-focused)
     -4:09.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused)
     -4:09.0 editor:newline (atom-text-editor.editor.is-focused)
     -3:28.1.0 settings-view:open (atom-text-editor.editor.is-focused)

Config
{
  "core": {
    "projectHome": "/users/rulsky/dev_workspace",
    "disabledPackages": [
      "language-c",
      "language-clojure",
      "language-csharp",
      "language-go",
      "language-make",
      "language-mustache",
      "language-objective-c",
      "language-perl",
      "language-python",
      "language-yaml",
      "welcome",
      "atom-terminal-panel",
      "atom-ternjs"
    ]
  }
}

Installed Packages
# User
atom-beautify, v0.28.19
autocomplete-modules, v1.3.1
color-picker, v2.0.14
emmet, v2.3.17
file-icons, v1.6.13
jshint, v1.8.3
linter, v1.11.3
linter-csslint, v1.1.0
linter-htmlhint, v0.2.1
linter-jshint, v1.2.1
linter-jsonlint, v1.1.1
linter-scss-lint, v2.4.0
minimap, v4.18.0
pigments, v0.19.3
Remote-FTP, v0.7.14
terminal-plus, v0.14.5

# Dev
No dev packages

At /C:/Users/Ruslan/.atom/packages/atom-ternjs/lib/atom-ternjs-client.coffee:46

@Rulsky looks like a atom-ternjs-client issue.


OnErrorResumeNext - handling a situation when receive fails during connect

Currently if an exception was thrown when waiting for the init message we would end the receive loop without faulting the start task. Given that we don't have transport connect timeout yet it would make start() calls hang indefinitely. After this change an exception would complete a pending start() call with an exception.

Thanks @BrennanConroy !


Trace nodes do not nest correctly in the infoview

Prerequisites
Please put an X between the brackets as you perform the following steps:

[x] Check that your issue is not already filed:
https://github.com/leanprover/lean4/issues
[x] Reduce the issue to a minimal, self-contained, reproducible test case.
Avoid dependencies to Mathlib or Batteries.
[x] Test your test case against the latest nightly release, for example on
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)

Description
Nested trace nodes are not indented correctly in the widget-based infoview.
They are fine on the command line
Context
This makes set_option trace.Meta.synthInstance true very hard to read the output of.
Zulip thread
Steps to Reproduce
Run
import Lean

#eval Lean.logInfo <|
  .trace { cls := `foo } m!"Foo" #[
    .trace { cls := `bar } m!"Bar 1" #[
      .trace { cls := `baz } m!"Baz" #[
        m!"Log message"
      ]
    ],
    .trace { cls := `bar } m!"Bar 2" #[
      m!"Log message"
    ]
  ]

Expected behavior: Trace nodes are properly nested, as they are on the command line / in #guard_msgs:
[foo] Foo
  [bar] Bar 1
    [baz] Baz
      Log message
  [bar] Bar 2
    Log message

Actual behavior: Infoview shows

Versions
4.15.0-rc1
Additional Information
Impact
Add :+1: to issues you consider important. If others are impacted by this issue, please ask them to add :+1: to it.

This (mostly) worked in Lean 4.8.0, where the infoview output is:

I experimented with a patch along the lines of
--- a/src/Lean/Widget/InteractiveDiagnostic.lean
+++ b/src/Lean/Widget/InteractiveDiagnostic.lean
@@ -175,7 +175,9 @@ where
       else
         pure (.strict (← children.mapM (go nCtx ctx)))
     let e := .trace data.cls header data.collapsed nodes
-    return .tag (← pushEmbed e) default
+    -- Trace nodes occupy a full line in the widget view, so ensure the formatter considers them
+    -- as such.
+    return .nest 2 <| .tag (← pushEmbed e) "\n"

which ensures that the TaggedText actually populates the indent correctly; but then the infoview seems to insert extra newlines and indents.

As a workaround when using  set_option trace.Meta.synthInstance true, you can use #guard_msgs to force the trace to be rendered as correctly-indented text.


update link to Material Design website

is now: https://material.io/design/

Thank you for taking the time to try and update this. There is a forward in place though so the link is not breaking. The microsite is no longer being updated either, so merging this wouldn't have any impact on the website itself. Because of that, I'm going to close this out since merging the update would merely be for the repo only which is not that important.
You may want to check out Material Components for Web and see where you can help there. It is the evolution of MDL that is being actively maintained and updated.


S4 Touch screen bug(s) on Kali GUI Beta

Samsung S4 - touch screen has some bugs that will affect anyone trying to use Beta GUI on the S4 tablet (net hunter non rooted).

Selecting text with mouse, grabbing windows, and mouse clicks on terminals did not work.

Using a bluetooth keyboard was a feasible workaround but the tablets unable to copy and paste, move the terminal(s), etc.

See one minute video of issue(s) at: (https://youtu.be/_3oiAO-q7p0)

A few notes
1.) You are following pentoo directions on kali, that's not going to be useful.
2.) you can't interact with the vnc session while the clipboard window is open, that's just not how it works.  That window shows you the contents of the clipboard but paste works the normal way from inside the session (edit menu, paste)
3.) you are already in the environment, you don't also need to ssh.  You can interact with the environment over ssh or web vnc,  you can use both, but it doesn't make a lot of sense to ssh into the game environment from the game environment.
That leaves the "click and drag" type operations.  I honestly have no idea how that works on a touch screen interface, and novnc says it support touch screen use.  I'm open to adding whatever, if a package/driver is missing for example, but right now I'm not sure what to do


Not grabbing all

What steps will reproduce the problem?
Get tags for anything with more than 500 images ie tag "hashimoto_takashi"
click get all
download
What is the expected behavior? What do you get instead?
Download a full set of images only get 1st 500
When you try to look at all the pages It shows nothing after page 25
How often does this problem occur?
When ever i try to download more then 500 images
What version of the program are you using? On what operating system?
4.6.0 on windows 10
Please provide any additional information below

Which website does this happen on?
Plus is there any reason you're using a 9 month-old version?

is there any reason you're using a 9 month-old version?

True.
I recommend you try to download v5.1.1, because in newer versions there are still some errors with new batch downloading algorithm
https://github.com/Bionus/imgbrd-grabber/releases/tag/v5.1.1

Yeah about that I just found the new version of your program I was only ever able to find the one I was using when I searched for this program. I haven't tried to use the lastest one with more than 500 images yet but I've noticed that this one doesnt put the photos in the correct spot for example If i have it set to go to "F:\Tag\Dragon" half will end up in "F:\Tag" and the other half will go into "F:\Tag\Dragon" Im sorry for my poor grammer and spelling it is really late for me


How to add an additional object in the MINOS simulator?

I want to modify the simulator by adding sketch detection feature in the given simulator.

Can you clarify what you mean by "adding a sketch detection feature"?  Do you mean creating a new sensor type that implements an edge detection algorithm?


Add Mantien UI example integration

Describe the bug
I would like to work with Mantine UI library for conteint injected scripts. I know that currently there isn't a guide to do that. I was trying to replicate the integration of the Chakra steps, but like is expected doesn't work.
To Reproduce

Clone repository
Follow the steps on Mangien installations here
Run the project (npm run dev)
Load the extension.

Expected behavior
Able to see the compnentes with styles of Mantine library
Screenshots
As you can see, the button hasn't the styles of the library.

Desktop (please complete the following information):

OS: Mac
Browser chrome
Node Version 20.5.1

Additional context
My goal is able to use styles on the content injected scripts

Bro you need to figure out way to render your button inside container that is attached with shadowDOM, then inline preload the css with chrome.geturl and then wrap it with react.render function and voila u get scoped css button.

If you don't mind style pollution, you can remove shadow dom logic and just use that. But I think you need to prevent style pollution 😃
So take a look at @tngflx's comment.

@enmanuelmag Does Previous answers, solve your issue?


calculator to find equation of tangent

Proposal
(A clear and concise description of what the proposal is.)

i like to work on it


Failed to load resource: the server responded with a status of 404

I have added instafeed js and given div tag in html.
The script I have used is

But I am getting as 404 error in console and is stating as
Failed to load resource: the server responded with a status of 404
When i click that line then its navigating to new tab of instagram and getting as following
Sorry, this page isn't available.
The link you followed may be broken, or the page may have been removed. Go back to Instagram.
https://api.instagram.com/v1/users/sultanahmed313/media/recent?client_id=dfdd3513a8fa4696963275d163b09936&callback=instafeedCache8bbb6f493982a461.parse

Hi @sultanwork77 - not a good idea to post your client ID publicly.
That said, the user you're retrieving for https://www.instagram.com/sultanahmed313/ has no posts, so there'll be nothing to show.


Making addFailure function - public

Making addFailure function - public and setting up defaults for the last parameter.
Making test cases around it

This gives users an option to use existing functionality to generate and add new error message. The existing functionality takes care of translation and ":attribute" naming. It also simplifies the use of \resources\lang\en\validation.php file as a single source of truth for an error messages.

Please help. I don't know why continuous-integration/styleci/pr is  not happy. I checked the EOL, but it is not the case.

Yes, I see now. It is EOL problem. I have fixed it. I'll do another PR


Bundle the extension

Getting this warning after vsce package:

This extension consists of 168 separate files. For performance reasons, you should bundle your extension: https://aka.ms/vscode-bundle-extension

The extension should be bundled using webpack.

reverting to previous version until windows problem is fixed


Ensure dtype float to input

Trying the test_sobo_thc function from experiments/visualize_ThreeHumpCamel.py I got this error:
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
AttributeError: 'float' object has no attribute 'rint'

The above exception was the direct cause of the following exception:

TypeError                                 Traceback (most recent call last)
File [~/.venv/lib/python3.10/site-packages/numpy/core/fromnumeric.py:57](https://file+.vscode-resource.vscode-cdn.net/home/ilario/software/summit/experiments/~/.venv/lib/python3.10/site-packages/numpy/core/fromnumeric.py:57), in _wrapfunc(obj, method, *args, **kwds)
     56 try:
---> 57     return bound(*args, **kwds)
     58 except TypeError:
     59     # A TypeError occurs if the object does have such a method in its
     60     # class, but its signature is not identical to that of NumPy's. This
   (...)
     64     # Call _wrapit from within the except clause to ensure a potential
     65     # exception has a traceback chain.

TypeError: loop of ufunc does not support argument 0 of type float which has no callable rint method

During handling of the above exception, another exception occurred:

AttributeError                            Traceback (most recent call last)
AttributeError: 'float' object has no attribute 'rint'

The above exception was the direct cause of the following exception:

TypeError                                 Traceback (most recent call last)
Cell In[3], line 1
----> 1 test_sobo_thc(4, True, None, plot=True)

File [~/software/summit/experiments/visualize_ThreeHumpCamel.py:190](https://file+.vscode-resource.vscode-cdn.net/home/ilario/software/summit/experiments/~/software/summit/experiments/visualize_ThreeHumpCamel.py:190), in test_sobo_thc(num_experiments, maximize, constraint, plot)
    187     print(next_experiments)  # show next experiments
    188     print("\n")
--> 190 xbest = np.around(xbest, decimals=3)
    191 fbest = np.around(fbest, decimals=3)
    192 print("Optimal setting: " + str(xbest) + " with outcome: " + str(fbest))

File <__array_function__ internals>:180, in around(*args, **kwargs)

File [~/.venv/lib/python3.10/site-packages/numpy/core/fromnumeric.py:3348](https://file+.vscode-resource.vscode-cdn.net/home/ilario/software/summit/experiments/~/.venv/lib/python3.10/site-packages/numpy/core/fromnumeric.py:3348), in around(a, decimals, out)
   3257 @array_function_dispatch(_around_dispatcher)
   3258 def around(a, decimals=0, out=None):
   3259     """
   3260     Evenly round to the given number of decimals.
   3261
   (...)
   3346
   3347     """
-> 3348     return _wrapfunc(a, 'round', decimals=decimals, out=out)

File [~/.venv/lib/python3.10/site-packages/numpy/core/fromnumeric.py:66](https://file+.vscode-resource.vscode-cdn.net/home/ilario/software/summit/experiments/~/.venv/lib/python3.10/site-packages/numpy/core/fromnumeric.py:66), in _wrapfunc(obj, method, *args, **kwds)
     57     return bound(*args, **kwds)
     58 except TypeError:
     59     # A TypeError occurs if the object does have such a method in its
     60     # class, but its signature is not identical to that of NumPy's. This
   (...)
     64     # Call _wrapit from within the except clause to ensure a potential
     65     # exception has a traceback chain.
---> 66     return _wrapit(obj, method, *args, **kwds)

File [~/.venv/lib/python3.10/site-packages/numpy/core/fromnumeric.py:43](https://file+.vscode-resource.vscode-cdn.net/home/ilario/software/summit/experiments/~/.venv/lib/python3.10/site-packages/numpy/core/fromnumeric.py:43), in _wrapit(obj, method, *args, **kwds)
     41 except AttributeError:
     42     wrap = None
---> 43 result = getattr(asarray(obj), method)(*args, **kwds)
     44 if wrap:
     45     if not isinstance(result, mu.ndarray):

TypeError: loop of ufunc does not support argument 0 of type float which has no callable rint method

The problem seems to be that the dtype of a variable was object and numpy didn't like that.
For fixing this issue would have been enough to fix it here:
https://github.com/sustainable-processes/summit/blob/c3deffc90aad5573c32de2968ba26d95e3ccaf5a/summit/strategies/sobo.py#L316
But for staying safe, I corrected it in the previous definition of the input variable.

Thanks, lgtm. Can you merge main - I fixed a bug where the tests weren't running on PRs from forks.


RFC6265 cookie support

Motivation:
Currently Netty supports a weird implementation of RFC 2965.
First, this RFC has been deprecated by RFC 6265 and nobody on the internet use this format.
Then, there's a confusion between client side and server side encoding and decoding.
Typically, clients should only send name=value pairs.
This PR introduces RFC 6265 support, but keeps on supporting RFC 2965 in the sense that old unused fields are simply ignored, and Cookie fields won't be populated. Deprecated fields are comment, commentUrl, version, discard and ports.
It also provides a mechanism for safe server-client-server roundtrip, as User-Agents are not supposed to interpret cookie values but return them as-is (e.g. if Set-Cookie contained a quoted value, it should be sent back in the Cookie header in quoted form too).
Also, there are performance gains to be obtained by not allocating the attribute name Strings, as we only want to match them to find which POJO field to populate.
Modification:
New RFC6265ClientCookieEncoder/Decoder and RFC6265ServerCookieEncoder/Decoder pairs that live alongside old CookieEncoder/Decoder pair to not break backward compatibility.
New Cookie.rawValue field, used for lossless server-client-server roundtrip.
Result:
RFC 6265 support.
Clean separation of client and server side.
Decoder performance gain:
Benchmark                     Mode  Samples        Score        Error  Units
parseOldClientDecoder        thrpt       20  2070169,228 ± 105044,970  ops/s
parseRFC6265ClientDecoder    thrpt       20  2954015,476 ± 126670,633  ops/s

This PR would close #3221 and #1406.
PS: I'd gladly push my benchmark, but Netty currently uses JMH 0.9 and I used 1.3.3 (lazy mode).

ping
I'd like to get this merged before providing a PR for upgrading JHM.

Looks great except for tiny style issues.  Let me merge this once you address the comments.

@trustin comments addressed, pushed and rebased

@trustin Just ported a fix for https://github.com/AsyncHttpClient/async-http-client/issues/806

@slandelle We are almost there. Thanks for your patience!

@trustin Thanks for reviewing. Comments addressed!

@trustin I guess this issue can now be closed as commit was cherry-picked to 4.1 and master.

Actually closing myself so I can clean up my clone and provide further PRs.


Temporal Coverage end date validation fails

Error relates to overlap detection.

Not yet. I had a solution for this in the past that didn't fully work because of bugs in our dependencies and had to be discarded. I will try again now that we have updated the project to Vue 3.

This has been fixed.


Add support for Google VPNs

Terraform resources:
google_compute_vpn_gateway
google_compute_vpn_tunnel
google_compute_external_vpn_gateway
google_compute_ha_vpn_gateway
Pricing page:
https://cloud.google.com/network-connectivity/docs/vpn/pricing

I'll work on it.

google_compute_vpn_tunnel should have VPN Tunnel with unit hours.
google_compute_external_vpn_gateway should have a usage parameter monthly_egress_data_transfer_gb with sub parameters for the three categories specified in the princg ( this is similiar to monthly_egress_data_transfer_gb in  storage_bucket):
    monthly_egress_data_transfer_gb:
      worldwide: 12500
      china: 50
      australia: 250

These should display with the following names and tiers with unit GB:
IPSec traffic to worldwide excluding Australia, China, but including Hong Kong (first 1TB)
IPSec traffic to worldwide excluding Australia, China, but including Hong Kong (next 9TB)
IPSec traffic to worldwide excluding Australia, China, but including Hong Kong (over 10TB)
IPSec traffic to China excluding Hong Kong (first 1TB)
IPSec traffic to China excluding Hong Kong (next 9TB)
IPSec traffic to China excluding Hong Kong (over 10TB)
IPSec traffic to Australia (first 1TB)
IPSec traffic to Australia (next 9TB)
IPSec traffic to Australia (over 10TB)

google_compute_vpn_gateway and google_compute_ha_vpn_gateway should have a usage parameter monthly_egress_data_transfer_gb with sub parameters for the categories specified VM-VM egress pricing within Google Cloud:
    monthly_egress_data_transfer_gb:
      same_region: 12500
      us_or_canada:
      europe:
      asia:
      south_america:
      worldwide:
      oceania:

These should display with the following names with unit GB:
IPSec traffic within the same region
IPSec traffic within the US or Canada
IPSec traffic within Europe
IPSec traffic within Asia
IPSec traffic within South America
IPSec traffic between continents (excludes Oceania)
IPSec traffic to/from Indonesia and Oceania

Thanks, @tim775 for the throughout description.

Released in v0.9.1


Add docs for Update-IdentitySourceCertificates in Runcommand

Now Update-IdentitySourceCertificates can support for downloading certs from default domain controllers automatically. If  SSLCertificatesSasUrl is not provided by a user, it will download certs from the default domain controllers.

@jjaygbay1
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


chore(main): release 1.18.0

:robot: I have created a release beep boop
1.18.0 (2024-06-05)
Features

Add Infrastructure github action (e1bf93f)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/andresousadotpt/reminder-bot/releases/tag/v1.18.0 :sunflower:


Prepare tenant_mgr for etcd integration

We're supposed to subscribe for safekeeper info from etcd on a certain timeline(s), and update timeline state accordingly: start/stop walreceiver, disable/enable various related threads.
To do so, we need more info on which timeline is located locally and every timeline's disk_consistent_lsn + have a place to store the channel end to receive etcd updates from the async code.
Currently, there looks to be a somewhat confusingly implemented separation of "local" timelines, DatadirTimelineImpl, stored in the tenant map and the "inmem" timelines, stored in the LayeredRepository map.
Both objects reference each other, but now the "local" timelines were not properly updated in the map sometimes (not removed at all on detach, had complex code to create on attach)
A refactoring of tenant_mgr had brought the following:

Mutex replaced with RwLock on the tenants data, along with the data hidden more into the inner module.
Ideally, tenant_mgr might be converted into some mockable struct later, but it's quite a big refactoring to take now, but its data is now somehow hidden
register_new_timeline method to add local and remote timeline data on either timeline download or local timeline load on start
detach_timeline reworked: now it does not delete local files, but unloads both local and inmem timeline data from memory, allowing to reload the local files on attach. I don't think we should delete anything from disk from the pageserver process.
general style fixes ({formatting_args}, tenantid -> tenant_id, method renames to highlight the local nature of timeline data)

So, with this implementation we will never delete tenant's data from the pageserver? How do we free disk space then?

So, with this implementation we will never delete tenant's data from the pageserver? How do we free disk space then?

For now, we don't use attach/detach api in the cloud yet, so the problem of having a free space is not that big apparently.
We monitor the cluster sizes and act manually now, example: https://neondb.slack.com/archives/C033A2WE6BZ/p1650971247754729
As for the deletion, I was under the impression that pageserver should not attempt to remove entire timelines, but during writing the reply I'm not sure anymore that's ok.
My initial idea was that gc + compaction + future s3 on demand download with local layer eviction is enough to claim free space back.
On the other hand, makes no sense to keep somebody's private data after the last detach.
What's missing now is the way to "unload" the timeline from memory, adjust a few odd layers and reload it back and that's what I was also trying to achieve with these changes, but looks like it deserves a separate approach.
I'll return the directory deletion, it's a couple of lines to the eviction function.

For now, we don't use attach/detach api in the cloud yet

Console calls detach when the cluster is deleted. But detach removes only timelines, not tenants. Not sure what is the proper way. Likely it should be ok to remove tenant entirely if last timeline belonging to it was deleted

Could be the case, but shutting down a tenant properly with all his threads seems to be a bit harder task than just a etcd preparation refactoring (while arguably I slipped off here with the removal of the file removal).


Rudimentary port of av1_scan_orders to rust.

This is a rudimentary port of av1_scan_orders to rust, meaning it was mostly converting the C code to rust via regex and fixing various errors.
Should advance #650 .

I'd squash-merge it and address the nits later. Is it fine for you @tdaede ?

yeah seems ok