ModuleNotFoundError: No module named 'pycore.tikzeng'

After running
pip install pycore
when I try to run in python:
from pycore.tikzeng import *
I got:
ModuleNotFoundError: No module named 'pycore.tikzeng'
Version: pycore==17.4.17

pip uninstall pycore
The pycore package referred to is the local one.

maybe it's worth to rename the package and publish it to Python Package Index ?

I got ModuleNotFoundError: No module named 'pycore' after pip uninstall pycore...What am I doing wrong?

I got ModuleNotFoundError: No module named 'pycore' after pip uninstall pycore...What am I doing wrong?

Just forgot the code cd pyexamples/. My too low-level mistake.


Problem description
shows as manufacture eWeLink CK-BL702-SWP-01(7020) available from amazon ebay ect https://www.ebay.co.uk/itm/314855773062
appears to be working in z2mqtt see here for info on the clusters https://github.com/Koenkk/zigbee2mqtt/issues/19334#issuecomment-1784120749
Solution description
please add this device
Screenshots/Video
Screenshots/Video
[Paste/upload your media here]

Device signature
Device signature
{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4742, maximum_buffer_size=127, maximum_incoming_transfer_size=242, server_mask=11264, maximum_outgoing_transfer_size=242, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0009",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x1000",
        "0xfc11",
        "0xfc57"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019",
        "0x0b04"
      ]
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "eWeLink",
  "model": "CK-BL702-SWP-01(7020)",
  "class": "zigpy.device.Device"
}

Diagnostic information
Diagnostic information
[Paste the diagnostic information here]

Logs
Logs
[Paste the logs here]

Custom quirk
Custom quirk
[Paste your custom quirk here]

Additional information
https://github.com/Koenkk/zigbee2mqtt/issues/19334#issuecomment-1784120749

so i managed to cobble together a quirk that seems too work values reported by the voltage, current and wattage seem feasible.
`
import logging
import zigpy.types as t
import copy
from typing import Dict
from zigpy.profiles import zha
from zigpy.quirks import CustomCluster, CustomDevice
from zigpy.zcl.foundation import ZCLAttributeDef, ZCLCommandDef
from zhaquirks import Bus, LocalDataCluster
from zigpy.zcl.clusters.general import (
Basic,
GreenPowerProxy,
Groups,
Identify,
OnOff,
Ota,
Scenes,
Time,
AnalogInput,
)
from zigpy.zcl.clusters.lightlink import LightLink
from zigpy.zcl.clusters.smartenergy import Metering
from zigpy.zcl.clusters.homeautomation import ElectricalMeasurement
from zhaquirks.const import (
DEVICE_TYPE,
ENDPOINTS,
INPUT_CLUSTERS,
MODELS_INFO,
OUTPUT_CLUSTERS,
PROFILE_ID,
SKIP_CONFIGURATION,
)
CURRENT_REPORTED = 0x7004
VOLTAGE_REPORTED = 0x7005
POWER_REPORTED = 0x7006
class ZBElectricalMeasurement(LocalDataCluster):
cluster_id = 0xFC11
name = "measure"
attributes = {
    0x7004: ("CURRENT_REPORTED",  t.CharacterString, True),
    0x7005: ("VOLTAGE_REPORTED", t.CharacterString, True),
    0x7006: ("POWER_REPORTED", t.CharacterString, True),
    }
def _update_attribute(self, attrid, value):
    super()._update_attribute(attrid, value)
    if attrid == CURRENT_REPORTED:
        self.endpoint.electrical_measurement.current_reported(value)
    elif attrid == POWER_REPORTED:
        self.endpoint.electrical_measurement.power_reported(value)
    elif attrid == VOLTAGE_REPORTED:
        self.endpoint.electrical_measurement.voltage_reported(value)

class ElectricalMeasurementCluster(LocalDataCluster, ElectricalMeasurement):
"""Custom class for power, voltage and current measurement."""
POWER_ID = 0x050B
VOLTAGE_ID = 0x0505
CURRENT_ID = 0x0508

AC_VOLTAGE_MULTIPLIER = 0x0600
AC_VOLTAGE_DIVISOR = 0x0601
AC_CURRENT_MULTIPLIER = 0x0602
AC_CURRENT_DIVISOR = 0x0603
AC_POWER_MULTIPLIER = 0x0604
AC_POWER_DIVISOR = 0x0605

_CONSTANT_ATTRIBUTES = {
    AC_VOLTAGE_MULTIPLIER: 1,
    AC_VOLTAGE_DIVISOR: 1000,
    AC_CURRENT_MULTIPLIER: 1,
    AC_CURRENT_DIVISOR: 1000,
    AC_POWER_MULTIPLIER: 1,
    AC_POWER_DIVISOR: 1000,
}
def voltage_reported(self, value):
    """Voltage reported."""
    self._update_attribute(self.VOLTAGE_ID, value)
def power_reported(self, value):
    """Power reported."""
    self._update_attribute(self.POWER_ID, value)
def current_reported(self, value):
    """Ampers reported."""
    self._update_attribute(self.CURRENT_ID, value)

class PlugAC(CustomDevice):
"""test."""
signature = {
MODELS_INFO: [("eWeLink" ,"CK-BL702-SWP-01(7020)",)],
ENDPOINTS: {
# <SimpleDescriptor endpoint=1 profile=260 device_type=9
# device_version=1
# input_clusters=[0, 3, 4, 5, 6, 4096, 64529, 64599]
# output_clusters=[10, 25, 2820]>
1: {
PROFILE_ID: zha.PROFILE_ID,
DEVICE_TYPE: zha.DeviceType.MAIN_POWER_OUTLET,
INPUT_CLUSTERS: [
Basic.cluster_id,
Identify.cluster_id,
Groups.cluster_id,
Scenes.cluster_id,
OnOff.cluster_id,
LightLink.cluster_id,
ZBElectricalMeasurement.cluster_id,
0xfc57,
],
OUTPUT_CLUSTERS: [Ota.cluster_id, ElectricalMeasurement.cluster_id, Time.cluster_id],
},
        242: {
        # <SimpleDescriptor endpoint=242 profile=41440 device_type=97
        # input_clusters=[]
        # output_clusters=[]
        PROFILE_ID: 41440,
        DEVICE_TYPE: 97,
        INPUT_CLUSTERS: [],
        OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
        },
    },
}
replacement = {
    SKIP_CONFIGURATION: True,
    ENDPOINTS: {
        1: {
        PROFILE_ID: zha.PROFILE_ID,
        DEVICE_TYPE: zha.DeviceType.SMART_PLUG,
        INPUT_CLUSTERS: [
            Basic.cluster_id,
            Identify.cluster_id,
            Groups.cluster_id,
            Scenes.cluster_id,
            OnOff.cluster_id,
            LightLink.cluster_id,
            ElectricalMeasurementCluster,
            ZBElectricalMeasurement,

        ],
        OUTPUT_CLUSTERS: [Ota.cluster_id, Time.cluster_id],
        },
        242: {
        # <SimpleDescriptor endpoint=242 profile=41440 device_type=97
        # input_clusters=[]
        # output_clusters=[33]
        PROFILE_ID: 41440,
        DEVICE_TYPE: 97,
        INPUT_CLUSTERS: [],
        OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
        },
    },
}

`

Hi,
could you please add the "default behaviour after power Out" (Don't konw if this is called correct ...)
Before using the quirk i could define this (On, Off, Last State), but had no power measurement-
No, with the quirky i can't define this anymore, but because i have the ability for power measurement now this is much better WITH the quirk 😉👍
And because i'm relatively new to HA, I had a real hard time to get the quirk working because of the formatting problems above 😅
Regards & Kudos
Alex

I will try and see what I can do. It's my first attempt at creating a quirk

That would really be great, i'd appreciate this ! 🤘

As is said, i'm a newbee, but i assume it could be THIS:

Hmm,
but i can't write an attribute "Last" or "LastState" here (just ON of OFF) ... maybe i'm completely wrong 😁
Before the quirk i had three options: On, Off, LastState

you can write the attribute with
start_up_on_off (id: 0x4003)
0 = StartUpOnOff.Off
1 = StartUpOnOff.On
2 = StartUpOnOff.Toggle
255 = StartUpOnOff.PreviousValue

Thanks, so i can at least manually set or check it 😉👍

Just wanted to say thanks very much for pulling together this quirk @gromgsxr - it's great to be able to get the power output from these switches now.
Not sure why github insists on messing up the formatting of the quirk, when pasted in here, but for future generations here's a version in a file, with the correct indentation, etc...
eWelinkQuirk - Copy.txt

I've installed the quirk but all the sensors are reporting as "Unknown". Any ideas?

I've installed the quirk but all the sensors are reporting as "Unknown". Any ideas?

What version of ha? 2023.07.03 works for me earlier versions didn't.

I've installed the quirk but all the sensors are reporting as "Unknown". Any ideas?

What version of ha? 2023.07.03 works for me earlier versions didn't.

2024.01

Oh not tried after 2023.07.03. what happens if you read the attributes on active power, rms voltage and RMS current

i will try and update at some point to try
AC_VOLTAGE_MULTIPLIER = 0x0600
AC_VOLTAGE_DIVISOR = 0x0601
AC_CURRENT_MULTIPLIER = 0x0602
AC_CURRENT_DIVISOR = 0x0603
AC_POWER_MULTIPLIER = 0x0604
AC_POWER_DIVISOR = 0x0605
if you try reading those attributes i wonder if its not pulling he multiply across

All the multipliers are 1 and all the divisors are 1000.
I left a light plugged in for a while and it eventually started reading 4W. It appears the problem is very slow updates (several hours).

I had a go on the latest and the updates almost instantly

Based on this comment about when ZHA sets the refresh times, I tried reconfiguring the device and it appears to be updating quickly now.
Many thanks for your help!


Refactor rollup config

move all bundles into dist folder
add size snapshot
remove treeshake test

Codecov Report

Merging #645 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #645   +/-   ##
=======================================
  Coverage   88.28%   88.28%
=======================================
  Files          49       49
  Lines         367      367
=======================================
  Hits          324      324
  Misses         43       43

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3c743c...9e071ae. Read the comment docs.

Thank you!!!


translation fixes for SB

same as for ARR and HW, here a fix of all SB translations.

I guess this would be a nit, but somewhat to @quisquous' point, is there a way we can discern from fixes and cleanup?

ui/raidboss/data/04-sb/eureka/eureka_hydatos.js : Could you restore French translations like this. #1404

Will resubmit seperate PRs for sroting, removing/fixing FIXME and removing/adding notused or new lines to match find_missing_translations complaints


Proof of concept for testing the C-julia-interface

Not for merge, rather for discussion.
My overall idea was to call the C-API functions from julia (i.e. a loop julia -> C -> julia). One can then compare to corresponding direct calls of the julia API functions.

I am not fully convinced that testing our C and Fortran interfaces from Julia is the right move. For once, you already noticed that it skips and/or fails with some initialization/finalization routines. Furthermore, it might hide some issues about mismatching libraries etc. if Julia automatically picks up the correct libraries where an external program would not. Finally, this does not resolve testing the Fortran interface.
There might be good reasons for doing it this way that I am not seeing right now. But my initial feeling is that if we want to have robust testing (including parallel tests with MPI) for all 3 languages, we need to test each language interface separately.

Two things motivated this approach:

I was happy with the julia testing facilities
It would have been easy to create mock-ups of LibTrixi simstates on-the-fly, which could then be used to compare to values returned via the interfaces.

Follow-up issue: #74


Nothing happens

I'd like to show Onboard at first time launch, but right now nothing appears.
This is my code:

#import "OnboardingViewController.h"
@interface ViewController ()

@implementation ViewController
#
#
#
-(void)firstTimePopup{

    OnboardingContentViewController *firstPage = [OnboardingContentViewController contentWithTitle:@"Welcome" <EMAIL_ADDRESS>image:[UIImage imageNamed:@"logo"] buttonText:@"Text For Button" action:^{
    }];
    OnboardingContentViewController *secondPage = [OnboardingContentViewController contentWithTitle:@"Welcome" <EMAIL_ADDRESS>image:[UIImage imageNamed:@"logo"] buttonText:@"Text For Button" action:^{
    }];
    OnboardingViewController *onboardingVC = [OnboardingViewController onboardWithBackgroundImage:[UIImage imageNamed:@"bg"] contents:@[firstPage, secondPage]];
    [self presentViewController:onboardingVC animated:YES completion:nil];
end

what am I missing?

Have you tried self.navigationController?

[self.navigationController presentViewController:onboardingVC animated:YES completion:nil];
stille the same :(

You put this code inside a view controller - what are you doing with the view controller itself? How/where do you create/show it.

ok so... I'm calling firstTimePopup from my viewDidLoad when the user launches the app for the first time. is there something else I should add?

I don't know enough about what you're doing. The view controller you showed the file for, is that being shown on screen?

The ViewController is my "homepage", that is showing correctly. Now on ViewController.m, in the viewDidLoad I check if it's user first use and if so, I call firstTimePopup, that should show the onboardingvc.
i know i'm missing something elementary but can't figure out what.

It sounds like a very simple issue - you're missing something somewhere. Have you tried presenting a normal UIViewController instead of the onboarding view controller?

Yes, I called it from a button and it works! So should I move the code to viewDidAppear?

Sounds like your timing was bad - you never want to present a view controller in viewDidLoad, as that can be called before that view controller is even shown on screen. I would suggest moving it to viewDidAppear, which will onboard slightly after the original view controller is seen.

I did it and it doesn't show up.

It shows up on button click, but not in viewDidAppear?

exactly

That sounds really odd... Without looking at more of the code, setting my own breakpoints/logs, etc., I'm not sure I can help. Presenting a view controller is about as simple as it gets - but I don't really have enough info to debug remotely.

Ok so i found a way. Not move all the code to viewDidLoad but just [self firstTimePopup].
It is working now.

And like a charm.
Amazing job man!
Thank you for the support!

No problem, glad to help!


useSxStyle

Type of change

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

What does this change?
Introduce useSxStyle hook.
discussed in #39

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Documentation on argument placement for ue4-docker build is ambiguous

From ue4-docker build reference
ue4-docker build [-h] [--linux] [--rebuild] [--dry-run]
                 [--pull-prerequisites] [--no-engine] [--no-minimal]
                 [--no-full] [--no-cache] [--random-memory]
                 [--exclude {debug,templates}] [--cuda VERSION]
                 [-username USERNAME] [-password PASSWORD] [-repo REPO]
                 [-branch BRANCH] [-isolation ISOLATION]
                 [-basetag BASETAG] [-dlldir DLLDIR] [-suffix SUFFIX]
                 [-m M]
                 release

which suggests the following usage:
ue4-docker build --linux 4.25.1
However, elsewhere in the documentation, for example in Advanced build options the examples suggest usage is
ue4-docker build 4.25.1 --linux
Maybe arguments are parsed in both scenarios? Regardless of this, the reference documentation should likely align with the other examples of ue4-docker build

The ordering on that page is directly reproduced from the output of ue4-docker build --help and is generated automatically by the Python argparse module, so any changes would need to involve a manual editing step each time the page is updated, which I'm hesitant to introduce. The command will work correctly regardless of the order in which the arguments are specified, so the order that a given user decides to specify them is entirely a matter of preference. Personally, I always put the Unreal Engine release number first and specify the other flags afterwards because I find it clearer to read, and that preference is reflected in the examples throughout the documentation, but it's not by any means mandatory.
It's worth noting that this parsing behaviour is fairly standard at the broader level outside ue4-docker. Most command-line tools that use standard argument parsing libraries will accept optional arguments in any order (including interspersed between positional arguments) so long as any positional arguments are specified in the correct order relative to one another. Notable examples are tools which allow the user to specify arbitrary arguments to be propagated to other tools that get run as child processes, which will typically require the additional arguments be placed after a given positional argument, or else delineated from the entirety of the rest of the command by a double dash (--). I'm also aware of some tools such as FFmpeg that rely on the specific placement of flags relative to one another to determine their meaning, such as seeking to a given starting time in a particular input file.

Got it! I asked because after many hours of failed builds one starts to look into every possible cause of failure, and this inconsistency causes doubt. There are definitely many command line tools that require arguments in specific places, but when I posted this I failed to register the RELEASE as just another argument. Additionally, I have experience with argparse and should have known better ;)


Add link in readme

NB first commit has been removed from master, also worth rebasing as I fixed a concurrency issue leading to NREs


Document Schema

This is the core document schema for an AtJSON document. We're using this as the base specification for what annotations are available from a simple document.

@gmedina / @pgoldrbx / @jsocol / @ckung

This may be the wrong place but this illuminated a question for me:
If I have an embed annotation, and I'd like both inline and block versions, how would we go about supporting that? Two different annotations, since it seems from this schema like the annotation can only have one type?

@jsocol we could add a runtime option for this, since we're encountering variants in markdown that have block v inline form with the same name. code is a pretty good representation of this.
I think it may make sense to override the schema on a per-annotation basis. That way, there's a default behavior.

@james that could also be an attribute on the annotation. E.g., you might have an image annotation that can be display: inline or display: block - they don't need to be different core types because of the arbitrary attributes are absolutely no problem to add.

Actually, this will be required for arbitrary annotations to be added to documents. I'm going to rename type to display and allow an optional property display on annotations.

@jsocol I've updated the PR to have a display property override


[FEATURE REQUEST] Redesign the Queue an make a class for each screen type

The class EHMTX_queue; does not fit the features anymore.
There should be more dynamic std::list instead, and there should be a class for each screen type to move the complexity from void EHMTX_queue::draw() to the separate screen classes. The base class should only contain the attributes common to all screens. I started to "sketch" it in m8trx32.h, but I have no time to develop this right now.
The result would be a much cleaner code with more dynamic, the number of different screens would be limited only by RAM. The screen identifier could be cleanly separated from the icon into an attribute, instead of the workaround with the "|". So it would also be possible to have multiple bitmap_screen if there is enough RAM.

Great news, but I'm not much help here, I don't know C++. :)

Since we abstract from the monolithic system, and make a modular one in which each page is a separate module with its own requisites. It seems to me that it would be good to transfer settings from the general config to the individual one for a page.

time_format: "%H:%M"
date_format: "%d.%m."
rtl: false https://github.com/lubeda/EspHoMaTriXv2/issues/39
weekdays: "SUMOTUWETHFRSA"
replace_time_date_to and replace_time_date_from
So we can flexibly manage the display, and we can display time and date in different formats in dynamics.

PS: In principle we can leave this in the general config as a default value for screens that don't have these individual settings.

This will allow to display the date in 2 or 3 languages, for me it would be relevant Ukrainian, English, Korean, for our relatives, Spanish, English, Ukrainian. Now it is not possible. But in the new structure I don't see any obstacles.

You have a very seldom use case but you're right. Problematic are the service calls from home assistant, there are no default parameters. So instead a
of the normal parameter like the font color etc. you have to specify rtl, date format and the rest. This is "uncool" and makes using the ulanzi more user unfriendly.

I was going to open an Issue in ESPHome about this, if it is not possible to set opional parameters in a service call. But if it is really impossible, although declared services in ESPHome Yaml can do it, and ywe can try to do it through them, then we can make a limited set of calls for each service with a different set of parameters.

Like
api:
  services:
    - service: show_screen_message
      variables:
        message: string
        mode: int
...
      then:
...

https://github.com/esphome/issues/issues/4996

If you can make a working version with at least one fully working screen, I'll try to add the others.
I think it will be easier that way. And maybe faster.

And we can give only necessary parameters to the services, and everything else (rarely used) can be done through the ASPHome API, like here https://github.com/lubeda/EspHoMaTriXv2/issues/96#issuecomment-1766734650

When redesigning the queue the "icon|screen_id" syntax should be questioned. Also the now (thanks to @andrewjswan) more than 20 different screens are very confusing to beginners. Perhaps there is a way to make the service calls easier. The esphome api especially the service calls are the limiting factor.
i have got no time to think about it in detail or even start coding, but using ehmtx should never be as hard as rocket-science.

I found such a code in ESPHome, it registers the service registered in the API section, and it does not require complete completion of all parameters, maybe this will help us somehow?
  api_apiserver = new api::APIServer();
  api_apiserver->set_component_source("api");
  App.register_component(api_apiserver);
  api_apiserver->set_port(6053);
  api_apiserver->set_password("");
  api_apiserver->set_reboot_timeout(0);
  api_userservicetrigger = new api::UserServiceTrigger<std::string, int32_t>("show_display_message", {"message", "type"});
  api_apiserver->register_user_service(api_userservicetrigger);
  automation_2 = new Automation<std::string, int32_t>(api_userservicetrigger);


Optional lsp installation

removed the two functions you wrote because a) lib.nvim.lua.expToLua exists and b) some packages needed command+args so i removed pkgOrStr

oops forgot to add descriptions

looks good, the list approach is unusual but should work as well as any other.
could I ask you to add this change to the changelog as well as add a page on the documentation describing custom LSP command usage?

could I ask you to add this change to the changelog as well as add a page on the documentation describing custom LSP command usage?

where should I put it? in docs/manual/languages.adoc?

release notes udpated, docs dumped into docs/manual/languages.adoc

I was thinking a custom chapter, but it probably belongs in languages chapter anyway. Thanks!


Add changes from the uefi-rs project

Lists the few modifications uefi-rs received in December

Thanks a lot!

Thanks a lot!


fix(markdown) Switch to newest MD transform package

Signed-off-by: Jerome Simeon<EMAIL_ADDRESS>Issue #407 & Markdown Fixes

Fix for as parsing in template variables.
Switches to the lates markdown transform

Coverage increased (+0.003%) to 95.221% when pulling 93b33ad01b732f033943bc108088e5acd9f3fb68 on jeromesimeon:js-fix-markdown into 57e735e5d9ff1b3efdec6a41059f9845cd75cd73 on accordproject:master.


Add dynamic provisioning

Allows users to create and delete FSx OpenZFS filesystems and volumes dynamically for their pods

can you include what tests you ran to confirm the PR is working as expected

can you include what tests you ran to confirm the PR is working as expected

I ran make test which runs all of the unit tests along with the sanity test. All the tests passed.
I also tested creating, mounting, and deleting a filesystem and volume in a dev environment.

/approve
/lgtm


Splash doesn't cover entire widget

Hi @jonahwilliams, there was a change to button splashes caused by this PR - https://github.com/flutter/flutter/pull/18369 which is causing some issues on the Hamilton app (development, not in the app stores). I included sample code that shows the pattern we use to expand a button to fill the width of a screen. After the above PR, the splash only covers a minimal area. Reading through the PR, I'm unsure of which APIs we need to interact with differently or if this is a bug. Thanks!
Then

Now

import 'package:flutter/material.dart';

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Tap Demo',
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: new MyHomePage(title: 'Tap Demo'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => new _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      body: new ListView.builder(
        itemBuilder: (context, index) {
          return Container(
            margin: const EdgeInsets.all(8.0),
            child: ConstrainedBox(
              constraints: BoxConstraints.expand(
                height: 50.0,
              ),
              child: FlatButton(
                child: Text('TAP ME'),
                onPressed: () {},
              ),
            ),
          );
        },
      ),
    );
  }
}

☆ flutter doctor -v
[✓] Flutter (Channel master, v0.5.7-pre.83, on Mac OS X 10.13.5 17F77, locale en-US)
    • Flutter version 0.5.7-pre.83 at /Users/albertlardizabal/dev/flutter
    • Framework revision b931640c1d (10 hours ago), 2018-07-10 06:51:12 +0100
    • Engine revision 6fe748490d
    • Dart version 2.0.0-dev.63.0.flutter-4c9689c1d2

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/albertlardizabal/Library/Android/sdk
    • Android NDK at /Users/albertlardizabal/Library/Android/sdk/ndk-bundle
    • Platform android-27, build-tools 27.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.4.1, Build version 9F2000
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 26.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] IntelliJ IDEA Community Edition (version 2018.1.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 26.0.2
    • Dart plugin version 181.4892.1

The area outside is tappable and the button covers the width, but the splash is just that small area.

If you pass these constraints in via the button theme instead this works correctly.  Because of my change there is another widget around the material of the button, so that is getting expanded instead.  Does this work for you?
class _MyHomePageState extends State<MyHomePage> {

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      body: new ButtonTheme(
        height: 50.0,
        minWidth: double.infinity,
        child: new ListView.builder(
          itemCount: 30,
          itemBuilder: (context, index) {
            return new Container(
              margin: const EdgeInsets.all(8.0),
              child: new ConstrainedBox(
                constraints: const BoxConstraints.expand(
                  height: 50.0,
                ),
                child: new FlatButton(
                  child: const Text('TAP ME'),
                  onPressed: () {},
                ),
              ),
            );
          },
        ),
      ),
    );
  }
}

This works. Thanks.

Awesome, I'm going to close this bug now - but if you have any more issues please let me know

Hi @jonahwilliams do you have an ETA for when the fix will land?


Exception when trying to send mail from import from query

Scenario: type a query in the editor and try to create a table from the query.
Expected: everything ok.
Actual: it broke with An unknown error has happened.
At the very least the import process shall be resilient to not being able to send a mail. IIRC that notification mail is only sent when the import takes some time. Should be easy to fix.
Exception: no implicit conversion of nil into String

services/importer/lib/importer/mail_notifier.rb:58:in `basename'
services/importer/lib/importer/mail_notifier.rb:58:in `extract_file_names'
services/importer/lib/importer/mail_notifier.rb:31:in `send!'
services/importer/lib/importer/mail_notifier.rb:18:in `notify_if_needed'
app/models/data_import.rb:837:in `notify'
app/models/data_import.rb:315:in `handle_success'
app/models/data_import.rb:195:in `run_import!'
lib/resque/importer_jobs.rb:9:in `block in perform'
lib/resque/base_job.rb:21:in `call'
lib/resque/base_job.rb:21:in `run_action'
lib/resque/importer_jobs.rb:9:in `perform'

Duplicated: https://github.com/CartoDB/cartodb/issues/6296

Gonna close this one and assign the other one to me. Thanks! :-)

IMHO related but not duplicate. The original issue was a timeout... but ok as long as you take care of it :D

The other seems to be related with the mail notifier when the import fails (timeout), this one when the import succeeds. The problem is the same, so sure, I'll take care of it!

the focus of the other was in the timeout when importing, thus two distinct issues.
the timeout issue was fixed in the prev sprint. That makes this one surface.


Stuffing ping-pong in a mocha test

I'm cherry-picking some leftovers from the (then dropped) PR about mock contracts.
This PR proposes that ping-pong tests are made into a mocha test so it's easier and faster to run, develop, debug, etc

I finally was able to make the change on the deployment repo (uff), so I'm requesting re-review


Library do not have support for Async

Library do not have support for Async
As a developer i want to use new language features
and i want to have fast way to start few requests in parallel
Now we are starting Threads manually as we have a lot of files to upload

Closed it as outdated.


Is there any plan to support react-native-unity-view in windows and osx?

It would be perfact, If this project can support react native in windows and osx.
https://github.com/Microsoft/react-native-windows
https://github.com/ptmt/react-native-macos

No support for the time being


Upgrade to latest sepc256k1 (version 0.30.0)

closes #3482

@tcharding can you point out the said guy errors ?
I made the corrections that you pointed out in the past

@mahmudsudo one that stands out is that there is a merge commit in this PR.
But I agree with @tcharding -- this project is not a great choice to use for learning git.

@apoelstra firstly the merge commit was to get my branch up to date with the main branch ( I had created the fork in the immediate past )
Not that I am begging to have your judgment overturned but I feel this is prejudiced and there is no mistake in this git push .
Atleast both of you couldn’t point out this error
Have a nice day


[SPARK-48643][SQL] Narrow down default regex of sql options redaction

What changes were proposed in this pull request?
Narrow down default regex of sql options redaction.
Why are the changes needed?
The current spark.sql.redaction.options.regex configuration is too loose, resulting in masking of some insensitive options.
Like 'tag.creation-period'='hourly' option in Paimon,
Original option:
'tag.creation-period' = 'hourly'

Redacted:
'tag.creation-period' = '*********(redacted)'

Does this PR introduce any user-facing change?

Yes, affects behavior of sql options redaction.
How was this patch tested?

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

No

I think this is a behavior change and we should refrain from modifying the default value of an existing config. A better way might be adding a new config that users can opt in. cc @cloud-fan

Got it, thanks, it's a minor fix, I'll close it.

It's good to be more restrictive by default. You can always set this config in your own use cases.


search -files option

return a list of files containing the terms
set format to (:filename xxx)

Seems to work.
It's keeping the same formats, just displaying the first chunk that matches any of the args.

Closing this until someone tells me it doesn't work :)


Update autoexpanding-archiving.md

Clarified OWA and Outlook Win32 support for hybrid exchange deployments (primary account on-premises and archive in cloud).
Also updated Win32 auto-expanding search availability to MEC channel.

@jcreigt Thanks for creating this PR but please address comments in email before I merge it

#sign-off


Native share API on Android

I ran across this blogpost https://developers.google.com/web/updates/2016/10/navigator-share. It allows you to invoke the native share dialog on Android.
Might be to close to integrate now as we also have to subscribe for this feature to get a token. Let me know and I could have a look (or not).

#wontfix, repo deprecated

We should move this one to the new application though as it might be a nice new feature.


[Bug]: Changing sneak keybinding crashes game

Forge Version
<IP_ADDRESS>60
Galacticraft Version
4.0.6
Log or Crash Report
https://mclo.gs/JKyKJpb
Reproduction steps

Change the sneak key to < (QWERTZ keyboard layout).
Game instantly crashes

Using GameSettings instead of the LWJGL Keyboard class should help in this case.


UX sprint search page

Issue
Fixes #50
Description
Search page updates after ux design sprint
Testing instructions
http://localhost:3000/search
Screenshots (optional)

Note to dev:
Try flipping provider and histology order


Choice[Service] is provided by cats

This compiles for me.  You get the Monad[Task] from batteries, which lets it find cats' Choice.

Thanks a lot!


biomes in non snowy whitelist are still snowy, and the snow still accumulates, but the effects are gone

this is with minecraft:desert in the list - this is a desert, and the snow is still building up

Mod loader?
Minecraft version?
Mod loader version?
Newly generated chunks since adding biome to the whitelist?

Ah sorry yes:
Mod Loader/version: Fabric 1.16.5 (JumpLoder on CurseForge)
This world was generated after adding desert to the whitelist, before the game was even booted

this wasnt a crash but I an provide a log if you wish to see other mods and extra details

so I forked the mod and made it so it did this, Im not sure if you ever intended it to do this, I can make a pull request if you think this looks about right, but it might need some modification

Not supporting fabric anymore, sorry. (But by all means, keep your fork).
(As is probably very clear, I just don't have the time to support multiple modloaders and/or versions across my mods.)


Remove unused withSkinnableProps import/export.

Checklist

[X] I have read and understand the contribution guide
[X] Documentation was added or is not needed
[ ] This is an API breaking change

Issue Resolved / Feature Added
[//]: # @enact/moonstone/Skinnable is importing and exporting withSkinnableProps which was removed with the recent https://github.com/enactjs/enact/pull/1827. This is purely a simple cleanup PR.
Resolution
[//]: # Remove the unused withSkinnableProps import/export.
Enact-DCO-1.0-Signed-off-by: Jason Robitaille<EMAIL_ADDRESS>

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


Sudo mode should support activation via multi-factor.

Closes #316

Coverage increased (+0.2%) to 87.361% when pulling ee748d085967a4dcef26c53bdb53d7179ee2e571 on feature/mfa-sudo into<PHONE_NUMBER>75e7b71e75596fd8436f95e47c17ed on master.


Enable to query README

datapackage.json (document) has property readme that is not included in enabled searches. We need it
Acceptance Criteria

[x] Able to query README

Tasks

[x] add readme to ENABLED_SEARCHES
[x] test it

FIXED


Debian 9 armhf Pinebook Pro can run ShadowTech?

Is there a chance that i can run it on debian 9 Stretch especially an armhf processor like the Pinebook Pro?

no, it's just x86_64


jshint does not recognize typings (.tsd) configurations for node

When using node in VS Code, jshint does not recognize the built in Node types/funcs, such as __dir name, require, etc. This results in erroneous linting errors. Note that VS Code does not recognize these types until the node tsd files are added to a project.
Is there a workaround for this?

Add "node": true as a jshint option

@appeality @rkhat's should solve your 'erroneous listing errors' issues.


MousePosition Control displays mouse position while hovering over contextMenu

This is probably more an issue with ol/control/MousePosition, or controls in general. When I move the mouse, the position changing is displayed even when moving the mouse over context menu.  This can be confusing to users who might select "create Marker Here" widget on the context menu.

Sorry, I admit, my feedback has been horrible.
Closing as I have no clue if this is still an issue, please reopen a new one with a repro.


[Feature request] Add flag indicating validity of field itself (ignoring children)

Example: https://jsfiddle.net/downace/4k1pvba8/1/
I have an array of items, each item is validated, array itself is also validated. I need to show validation message for array only if this array is invalid.
For now I have to use workaround like this:
import some from "lodash/some";

function $invalidSelf(validation) {
    return some(validation, (v, type) => !type.startsWith('$') && !v);
}

It would be nice to have something like $invalidSelf or $invalidExact alongside with $invalid

Implemented it myself: https://github.com/downace/vuelidate/tree/%24invalidSelf
I think this change is not very necessary in the library, so I'm not going to PR it for now and leave it up to developers


Test change: Moved ggplot examples up

ggplot examples are at the top, followed by the long from dplython import * section with all the tables now in the middle, and the Matplotlib example still at the end.
The ggplot examples at the top add more visual interest at the top of the README.  If not, could adding another example help to achieve that?

It would be cool to have some visuals higher up on the README. But I think it's important for the first example to illustrate core functionality. The ggplot example is not really core functionality. So I guess I prefer the idea of using a different visual example, as you suggested.

Okay, that makes sense! I'll play around with it some more when finals are
over after this week. I've been working with C and Java all semester and
I'm really looking forward to getting back into Python.
On Mon, Apr 11, 2016 at 3:50 PM, Nathan Gould<EMAIL_ADDRESS>wrote:

It would be cool to have some visuals higher up on the README. But I think
it's important for the first example to illustrate core functionality. The
ggplot example is not really core functionality. So I guess I prefer the
idea of using a different visual example, as you suggested.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/dodger487/dplython/pull/26#issuecomment-208599868


fix: ignore bodies sent with non-PUT/PATCH/POST requests

Right now, it's possible to crash a Node server by including a body with a GET request. This fixes it

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[ ] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Tests

[ ] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[ ] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Edits

[ ] Please ensure that 'Allow edits from maintainers' is checked. PRs without this option may be closed.

So this also prevents sending a body with DELETE? That's unfortunate. It always feels jank having to use a POST request for a delete operation just because the HTTP standard has this odd specification.

adjusted the behaviour in #11710. but also, don't send bodies with DELETE requests :)

Thanks! I'm blaming my backend team ;)


Project Root vs. (Webservers) Document Root

It's not uncommon to have projects, where the (physical) file-root - and therefore Brackets Project root - differs from the Webservers Document-Root. But Brackets doesn't seem to support such a setup. E.g. look at a typical Zend Framework 2 MVC-style project, where views (HTML) are placed in e.g. $DOCUMENT_ROOT/../module/Application/view
Despite the fact, that Live-Preview will (presumably) never work in such kind of Projects, since there's a complex relation (MVC-Router) between FileSystem Paths and URL's, it should be possible to set the $Project-Root to $DOCUMENT_ROOT/../, and have brackets resolve (relative or absolute) paths according to the Webservers $DOCUMENT_ROOT (e.g. $Project-Root/public).
IMHO there should be an Option to set a subfolder of the Project-Root as Webservers Document-Root.

Related to this item on our feature backlog: Make Live Development Work For Router-Based Technologies.  But maybe for simpler use cases like this, we don't need that full feature.

Closing since it looks like Live Preview: using a local server is confusing already covers this.  Please upvote!  I'm hoping this is one we can get to soon...


PHP 8.2 comatibility

I get this error message using PHP 8.2 when just entering takeout:
Deprecated: Return type of HumbugBox3130\KevinGH\RequirementChecker\RequirementCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://[...]/.composer/vendor/tightenco/takeout/builds/takeout/.box/src/RequirementCollection.php on line 12

I guess that's a PHP compatibility problem.
I can't find any information on the README which PHP versions are officially supported.

@vblinden is correct.
I can confirm as I am using takeout with PHP 8.2

Hey @TiiFuchs
I'm using Takeout (v2.5.0 at the time of writing) with PHP 8.2.6. What version of Takeout are you using? I think the suggestion from @vblinden should fix it.
I'm gonna close the issue, but pls feel free to reopen it and leave a comment if that doesn't work for you.

@tonysm maybe update the installation instructions?  I just had the same issue, followed the instructions, the composer install command given installs 1.x.  Maybe give a more specific example for folk with PHP 8.2?

@cheesegrits we're working on something that should fix issues like this one. See #326 if you're curious.


Fixed broken Pagination link in Knexjs page

We are really bad at linking things ;) Thank you!

No problem! I'll put up more PRs if I find anymore broken links.


Add note to readme that node >14.18 is required

The node: require syntax requires node 14.18, which I found I was still on 14.15... took a little while to figure out what was going on :smile:

Hello,
Thank you for reporting this issue.
It was a mistake, i didn't notice that this protocol was added in node-fetch and its dependencies.
I updated the build process to remove all node: occurrences.
I think you can safely use the package on any LTS version now.
A new version 3.1.0-fix.1 has been published to npm.

even better! thank you for maintaining this package


render and run preflights

What this PR does / why we need it:
This PR adds a plugin command  that serves as an entry point for our helm plugin.  The preflight subcommand is capable of pulling a remote preflight spec from registry and will template out the preflight spec utilizing config values set if a config spec is also included.
Which issue(s) this PR fixes:

Fixes #
https://app.shortcut.com/replicated/story/58512/make-preflight-checks-work-for-config-options-and-anything-templated
Special notes for your reviewer:

Related to plugin PR: https://github.com/replicatedhq/kots-helm/pull/15
Steps to reproduce

Does this PR introduce a user-facing change?

     Adds `plugin` command for kots that is utilized by our helm plugin.

Does this PR require documentation?

Should we make this new command hidden for now? There's a Hidden flag in Cobra commands.


Fix ecmwf

ERA5 failed during cropping of the weather model to the user specified AOI due to changes in how the coordinate arrays are set up (#538).
I've corrected the shape broadcasting for ERA5 to pass, and verified that delays produced on this PR for ERA5, HRES, GMAO and HRRR are equivalent to delays produced on dev prior to #538  (#525).
Tests pass locally.

@bbuzz31 do we have any tests that test with ECMWF models currently?

@jlmaurer some of the tests have a variable (WM) that can be changed to ERA-5. Sometimes ERA-5 takes many hours to download.
In #543 I'm reusing downloaded ERA5 models for test_intersect.py so that is a partial test.

Ok great. Do those tests pass? The problem here is one of ordering.

Yup they pass


inaccurate std implementation in binned_statistic

stats/_binned_statistic_dd.py uses numerically unstable method for calculating standard deviation:
flatsum = np.bincount(binnumbers, values[vv])
flatsum2 = np.bincount(binnumbers, values[vv] ** 2)
result[vv, a] = np.sqrt(flatsum2[a] / flatcount[a] -
                        (flatsum[a] / flatcount[a]) ** 2)

If the input data contains large numbers, the squared numbers in the subtraction are very large. As the result precision can be lost - a well known problem in numerical computing.
The effect can be shown by increasing the input data values in the unit tests, for example:
cls.v = np.random.random(100) + 1e4

instead of the default
cls.v = np.random.random(100)

and all std-related unit tests will fail.
A better implementation would first calculate the means of the bins and then square (data-mean). Another safe option is just to use np.std but this could be slow.

I just looked at this on my dev box and not sure the example illustrates the issue:
(scipy-dev) Lucass-MacBook:stats rlucas$ python
Python 3.6.7 |Anaconda, Inc.| (default, Oct 23 2018, 14:01:38)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy.stats as ss
>>> import numpy as np
>>> cls = np.random.random(100) + 1e4
>>> np.std(cls)
0.2854385260083998
>>> flatsum = np.sum(cls)
>>> flatsum
1000055.4102408785
>>> flatsum2 = np.sum(cls**2)
>>> flatsum
1000055.4102408785
>>> flatsum2
10001108243.668032
>>> flatcount=len(cls)
>>> np.sqrt(flatsum2 / flatcount - (flatsum / flatcount) ** 2)
0.285438502420829
>>> np.sqrt(flatsum2 / flatcount - (flatsum / flatcount) ** 2) - np.std(cls)
-2.3587570785466028e-08

looks like numpy.std has something like the Welform algorithm (accounting for large numbers) built in:
https://github.com/numpy/numpy/blob/master/numpy/core/src/multiarray/calculation.c#L360-L513
I'll look a little closer at the supported uses for the binned_statistic method and see if the numpy method can solve the problem.

Welford's algorithm appears to be an online algorithm used when computing the variance in a single pass.  Here the data is being traversed twice already, so the simplest approach may just be
to first subtract the mean before squaring.  Continuing the example from https://github.com/scipy/scipy/issues/10126#issuecomment-489867040
flatcount = len(cls)
flatsum = np.sum(cls)
flatsum2 = np.sum((cls-flatsum/flatcount)**2)
std = np.sqrt(flatsum2a/flatcount)

@pvanmulbregt  that is a good idea on the way to proceed, I will write the unit test with the example above and try the 2 pass approach.  What precisely constitutes Welford and what constitutes something else is fuzzy to mean.

Looked into this over the weekend. There is a quick workaround, use a callable rather than the string literal 'std' as the argument. If you use a callable that does the standard deviation in a numerically stable way, i.e. numpy.std() will work fine.

I wont be able to look at this again until Thursday this week at the earliest. Writing my notes here:
The function call:
https://github.com/scipy/scipy/blob/master/scipy/stats/_binned_statistic.py#L17
ultimately calls:
https://github.com/scipy/scipy/blob/master/scipy/stats/_binned_statistic.py#L180-L181
which calls:
https://github.com/scipy/scipy/blob/master/scipy/stats/_binned_statistic.py#L358
i.e. the binned_statistic_dd definition. The binned_statistic_dd method contains logic to construct the bins (something I'm still working to understand) and then executes the statistical calculation on the data in each bin (in this case calculates sums and sums of squares).
The offending code is here:
https://github.com/scipy/scipy/blob/master/scipy/stats/_binned_statistic.py#L566-L569
but a change isn't quite as simple as adding in a mean as a difference (I tried that and there are some broadcasting issues). Will pick this back up after Thursday.


Merge dev branch to main

https://github.com/open-cluster-management/backlog/issues/18536
/hold

/unhold

/lgtm


Execute python code before parsing setup.cfg

I'm currently trying to make my python packages PEP517/518 compatible. For this, I'm replacing the setup.py with a setup.cfg file and a project.toml file. This was quite straightforward to do for most of my packages, but for one package, I was not able to do this translation.
Package description
The package in question contains a (parent) python package that includes several packages that can also be installed as stand-alone python packages. For this, I created the following project structure:
    ├── main_package
    │   ├── python_module1
    │   ├── python_module3
    │   └── stand_alone_subpackage
    │       ├── stand_alone_subpackage
    │       │   └── subpackage_module
    │       │       └── script.py
    │       ├── pyproject.toml
    │       ├── requirements.txt
    │       ├── setup.py
    │       └── setup.cfg
    └── setup.py

I use the following setup.py file to install the subpackage in the parent package while getting rid of the redundant stand_alone_subpackage namespace.
from setuptools import setup, find_namespace_packages
import re

requirements = [
    "gym",
    "matplotlib",
    "numpy",
    "torch",
    "joblib",
    "tensorboard",
    "mpi4py",
    "psutil",
    "tqdm",
]

# Retrieve package list
PACKAGES = find_namespace_packages(include=["machine_learning_control*"])

# Add extra virtual shortened package for each of namespace_pkgs
namespace_pkgs = ["simzoo"]
exclusions = r"|".join(
    [r"\." + item + r"\.(?=" + item + r".)" for item in namespace_pkgs]
)
PACKAGE_DIR = {}
for package in PACKAGES:
    sub_tmp = re.sub(exclusions, ".", package)
    if sub_tmp is not package:
        PACKAGE_DIR[sub_tmp] = package.replace(".", "/")
PACKAGES.extend(PACKAGE_DIR.keys())

# Run python setup
setup(
    name="main_package",
    version="0.0.0",
    description=(
        "A parent python package."
    ),
    install_requires=requirements,
    packages=PACKAGES,
    package_dir=PACKAGE_DIR,
)

Why this works can be found inside a StackOverflow question I opened some months ago. The main thing it does is adds the virtual shortened modules to the PACKAGES and PACKAGES_DIR variables. This way the PythonClassinside thestandalone_subpackage` can be imported using the following import command:
from main_package.stand_alone_supbpackage import PythonClass
``

instead of using the actual (longer) module namespace:

```python
from main_package.stand_alone_subpackage.stand_alone_supbpackage import PythonClass

Translated setup.py file
I translated the setup.py to the following setup.cfg file:
[metadata]
name = main_package
version = 0.0.0

[options]
packages = find:
include_package_data = True
install_requires =
    gym
    matplotlib
python_requires = >=3.5

I, however, did not yet find a way to inject the extra virtual (shortened) modules before the packages = find: command is parsed. One possible way would be to read the PACKAGES and PACKAGE_DIR variables from a file. This would be similar to using the file: and attr: arguments for the package version parameter. While doing so, this file has to be created before the setup.cfg file is parsed. I, however, did not find a way to do this in setuptools 50.3.2. My question is, therefore, does anybody know a way of achieving the more complicated setup procedure I am trying to achieve?
Update
I just found out that you can combine both the setup.cfg and setup.py code. This allows me to define most of the setup information inside the setup.cfg file while keeping the packages and package_dir arguments inside the setup.py file. This allows me to inject the virtual shortened modules inside the setup.py file. I currently use the following setup.py file:

from setuptools import setup, find_namespace_packages
import re

with open("README.md") as f:
    readme = f.read()

# Add extra virtual shortened package for each of namespace_pkgs
PACKAGES = find_namespace_packages(include=["machine_learning_control*"])
namespace_pkgs = ["simzoo"]
exclusions = r"|".join(
    [r"\." + item + r"\.(?=" + item + r".)" for item in namespace_pkgs]
)
PACKAGE_DIR = {}
for package in PACKAGES:
    sub_tmp = re.sub(exclusions, ".", package)
    if sub_tmp is not package:
        PACKAGE_DIR[sub_tmp] = package.replace(".", "/")
PACKAGES.extend(PACKAGE_DIR.keys())

# Run python setup
setup(
    packages=PACKAGES, package_dir=PACKAGE_DIR,
)

If anybody knows if it is possible to put everything inside the setup.cfg file please let me know. Thanks a lot in advance!

@rickstaa you cannot put Python code in setup.cfg the only way to achieve what you want is to keep a part of the code you need in setup.py (and put the rest into setup.cfg).
Also, do you know about the find_namespace: directive? Also, doesn't [options.packages.find] section and its options (where, include, exclude) provide you with enough filtering?

As webknjaz said, a setup.cfg file doesn't allow for much logic at all. If you're getting more complex than normal (and that's what your subpackage setup is), you can always keep a stripped-down setup.py around. It's not unusual either, and necessary for example when you build packages with C++ sources in them. Check out pygalmesh (a package of mine): All metadata in setup.cfg, and the rest of the logic in setup.py. Perhaps this will help.

@webknjaz Thanks a lot for your explanation! The solution works when I keep both a setup.py and setup.cfg. I think for now that gives me the result I was aiming to. Namely,  giving users the ability to import the main_package.stand_alone_subpackage.stand_alone_subpackage.subpackage_module under a shortened main_package.stand_alone_subpackage.subpackage_module namespace. In this the redundant folder is needed to be able to give users the ability to install the stand_alone_subpackage as a stand-alone pipy module.
Just out of curiosity after your comment, I also tried achieving the same behaviour using the find_namespace: directive. I however was not able to find the right setup.cfg syntax for achieiving the desired end result. currently use the following setup.py config file:
[options]
include_package_data = True
packages=find_namespace:

[options.packages.find]
where=
    .
    ./main_package/stand_alone_subpackage/stand_alone_subpackage
exclude=
    main_package.stand_alone_subpackage
include=
    main_package.stand_alone_subpackage.stand_alone_subpackage
``

But this doesn't seem to work because of the following reasons. First as far as I understand it the where option doesn't support a list of paths. Further, although the exclude and include keywords work, they do not provide a way to change the import namespace. I, therefore, don't think I can achieve the desired setup without using the additional logic that is added to the `setup.py` file. Another way to achieve what I want is to replace all the submodules by [name_space packages](https://packaging.python.org/guides/packaging-namespace-packages/) and update [the folder structure](https://github.com/pypa/sample-namespace-packages/tree/master/native) to the one that is [documented by the setuptools documentation](https://packaging.python.org/guides/packaging-namespace-packages/):

```bash
├── stand_alone_subpackage_1
│   ├── main_package
│   │   └── submodule_1
│   │       └── __init__.py
│   └── setup.py
└── stand_alone_subpackage_1
    ├── main_package
    │   └── submodule_2
    │       └── __init__.py
    └── setup.py

This would however make the github folder structure more complicated. If you could let me know if you think my conclusion is correct, I would be very gratefull! Thanks a lot in advance!
@nschloe Also thanks a lot for the example repository and telling me that such a setup is not unusual. I need C++ sources in a further stage of my project so I think the repository is very helpful.

Sounds about right

@webknjaz Amazing thanks a lot! I will close the issue for now!


Indicate when stored NPC recipes are no longer available for crafting

This one might be harder to do but here's the idea:

Player stores a recipe for an item
Said item is removed from the game entirely or moved to a different vendor
When player views the vendor station, item will be missing. At this point, the items in the journal for that vendor should be validated, if any appear to be outdated or no longer available, they should be marked as such

Add status to journal entries: available, outdated, unavailable

Resolved in 0.3.3


Store message_key on validation exception

Also add missing spec for validation exception.

huh, it might be duplicated from #1210 @dblock
should I remove the message_key commit?

Yes but I am glad this one has tests. Can you please squash the commits?

@dblock done.

Merged via https://github.com/ruby-grape/grape/commit/c54cd8f0487480e7633abb92ae03b138c080e37e.


Client::get_posts silently loses posts when called with many IDs

It seems that the API is silently limiting the number of posts you can search for by ID to 75, while the Client tries to process 100 at a time.
https://github.com/nasso/rs621/blob/2e99f56dcce19bd2bf48167f49b26c5b6ffbab63/src/post.rs#L449

This is very old now and I don't want it bothering you

i haven't had a chance to look into it but it's not bothering me don't worry!! thank you for the concern.


Add ability to close all widgets in the main area

Migrated from https://github.com/jupyter-attic/jupyter-js-plugins/issues/114

We should probably do this by adding a new command - probably rare enough that we don't need a keyboard shortcut.

@blink1073 I am going to have @charnpreetsingh185 create a new method of ApplicationShell that will use its private Tracker to close all widgets in the main area. Then we would add a command somewhere that simply calls that method. But which plugin should add that command. Right now we don't have a plugin that has "global" commands.

The "main" plugin seems like a good spot.

Which could actually be sensibly merged with the application folder.

We saw that but I wasn't sure that that main plugin could be used. Can we add a requires section to grab the command palette and add it as usual?

Ayup, there was nothing special about "main".

So I am guessing that the main plugin isn't quite a real plugin - it is the root plugin that should only depend on the app?

It is a real plugin on that there's nothing special about it, just like any other plugin.  It just happens to do stuff directly on the window.


added @variable and CTE to MERGE target table

Documentation does not clearly state that @variable or CTE can be used as target of MERGE statement, while SQL server allows it
select @@version

declare @demo table(id int)
merge into @demo
using @demo c on c.id=2
when matched then update set id = 1;
go

declare @demo table(id int);
with cte as (select * from @demo)
merge into cte
using cte c on c.id=2
when matched then update set id = 1;
go

Microsoft SQL Server 2016 (SP3-GDR) (KB5021129) - 13.0.6430.49 (X64)
	Jan 22 2023 17:38:22
	Copyright (c) Microsoft Corporation
	Developer Edition (64-bit) on Windows 10 Pro 10.0 <X64> (Build 19045: ) (Hypervisor)

(1 row affected)

(0 rows affected)

(0 rows affected)

@mstehrani

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Thanks again @OleksiiKovalov for suggesting this edit. This improvement to the docs went live last week. Your commit is include in the commit history and your account is listed in the Contributors to this article.


Text from source view mouse hover popup gets copied instead of selected source text.

When attempting to copy selected text from the source view, if the mouse hover popup is open for that variable the text from the hover popup gets copied to clipboard instead of the selected text.
For example if I selected the variable "blah" the mouse hover popup will appear immediately. If I try to copy the text, the value "blah {123, 456}" is copied instead of the value "blah". If this is the intended behavior it would be great if there was an option to disabled it.

This should feel better as of 3bb8dc9089e458f3cc7cd5d6b78b38880e63d891. Keyboard focus on the hover evaluation popup now requires manual interaction; unless this happens, keyboard focus (including cursor controls and copy/paste) will be kept on the underlying panel.


Health bar

Instantiated into the Fight scene similarly to the Fighters, meaning the health bars will be children of the top node in the Fight scene by calling AddChild().
Along with a simple health bar there should be some dynamic text that displays the beast's current health as a fraction of its maximum health value.
If you look at health bars in Pokemon games you will notice the health bar is displayed inside a box that also contains the Pokemon's name and level. Our health bar GUI element should contain the health bar itself as well as the health fraction, the player's name, and there should be space to display the beast's modifier (which will likely be a single word).


[question] Live-reload changes to static data src

How to live-reload the changes to the static data src like the one used in the live demo?

Hello @caycaycarly,
Could you please clarify more what you mean?

Hello @caycaycarly,
Could you please clarify more what you mean?

Apologies.
So now, just like how the demo website's data src is a .json file, my use case similar, just that it will require arbitrarily overwriting the file every couple of weeks. I've noticed issues related to data src refreshing and code mentioning "livereload", and I assumed this was JS code to detect changes to the arc and reindex it.
So, I was wondering if live-reloading the data, without having to restart the http server is something that exists/ can be baked in autoComplete.js or would I need to implement another JS/bash solution for the same.

Apologies.
So now, just like how the demo website's data src is a .json file, my use case similar, just that it will require arbitrarily overwriting the file every couple of weeks. I've noticed issues related to data src refreshing and code mentioning "livereload", and I assumed this was JS code to detect changes to the arc and reindex it.
So, I was wondering if live-reloading the data, without having to restart the http server is something that exists/ can be baked in autoComplete.js or would I need to implement another JS/bash solution for the same.

No worries at all :)
The issues you're referring to are mostly about the "livereload" development code that existed in the build version by mistake and had to be removed, but there is not "livereload" function built-in autoComplete.js.
Regarding your second point, if I got you properly I believe in your case you wont need to restart the server or have a live reload function with autoComplete.js for each time you update your .json file as long as you refresh the page that has the autoComplete.js.
Please let me know if I've answered your questions.

No worries at all :)
The issues you're referring to are mostly about the "livereload" development code that existed in the build version by mistake and had to be removed, but there is not "livereload" function built-in autoComplete.js.
Regarding your second point, if I got you properly I believe in your case you wont need to restart the server or have a live reload function with autoComplete.js for each time you update your .json file as long as you refresh the page that has the autoComplete.js.
Please let me know if I've answered your questions.

Ah. That did answer my question. Thank you.

Ah. That did answer my question. Thank you.


[DOCS] Use shared attributes

Changes

Replaces the {vers} attribute with the {version} attribute from the stack version file.
Replaces the {es-vers} attribute with the {elasticsearch_version} attribute from the stack version file.
Update the ver-d attribute value

The change isn't completely noop for master and other development branches.
The docs currently append -SNAPSHOT (e.g. 8.0.0-SNAPSHOT) to the version for development branches. While I can use an ifeval to recreate this, I feel that using only the version number (e.g. 8.0.0) is more consistent with other Elastic docs.
This change would remove the appended -SNAPSHOT, except for in the Development Builds section of the Installation docs:
https://www.elastic.co/guide/en/elasticsearch/hadoop/master/install.html#download-dev
I've included the output diffs below.
HTML Output Diffs
https://www.elastic.co/guide/en/elasticsearch/hadoop/master/requirements.html
@@ -14 +14 @@
-java version "1.8.0_45"

Elasticsearchedit

We highly recommend using the latest Elasticsearch (currently 8.0.0-SNAPSHOT). While elasticsearch-hadoop maintains backwards compatibility
+java version "1.8.0_45"

Elasticsearchedit

We highly recommend using the latest Elasticsearch (currently 8.0.0). While elasticsearch-hadoop maintains backwards compatibility

-elasticsearch-8.0.0-SNAPSHOT

If Elasticsearch is running (locally or remotely), one can find out its version through REST:

$ curl -XGET http://localhost:9200
@@ -17 +17 @@ find a matrix of supported versions <a class="ulink" href="https://www.elastic.c
+elasticsearch-8.0.0

If Elasticsearch is running (locally or remotely), one can find out its version through REST:

$ curl -XGET http://localhost:9200

@@ -22 +22 @@ elasticsearch-8.0.0

If Elasticsearch is running (locally or remote
-    "number" : "8.0.0-SNAPSHOT",
+    "number" : "8.0.0",

@@ -108 +108 @@
-java version "1.8.0_45"

Elasticsearchedit

We highly recommend using the latest Elasticsearch (currently 8.0.0-SNAPSHOT). While elasticsearch-hadoop maintains backwards compatibility
+java version "1.8.0_45"

Elasticsearchedit

We highly recommend using the latest Elasticsearch (currently 8.0.0). While elasticsearch-hadoop maintains backwards compatibility

@@ -111 +111 @@ find a matrix of supported versions <a class="ulink" href="https://www.elastic.c
-elasticsearch-8.0.0-SNAPSHOT

If Elasticsearch is running (locally or remotely), one can find out its version through REST:

$ curl -XGET http://localhost:9200
+elasticsearch-8.0.0

If Elasticsearch is running (locally or remotely), one can find out its version through REST:

$ curl -XGET http://localhost:9200

@@ -116 +116 @@ elasticsearch-8.0.0

If Elasticsearch is running (locally or remote
-    "number" : "8.0.0-SNAPSHOT",
+    "number" : "8.0.0",

https://www.elastic.co/guide/en/elasticsearch/hadoop/master/install.html
@@ -56 +56 @@ Spark itself.

The Spark connector framework is the
-  <version>8.0.0-SNAPSHOT</version>
+  <version>{version}-SNAPSHOT</version>

@@ -150 +150 @@ Spark itself.

The Spark connector framework is the
-  <version>8.0.0-SNAPSHOT</version>
+  <version>{version}-SNAPSHOT</version>


CHORE: Add the Python example reference on the README.

I came looking for the Python example but there was no reference to it.

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

@Afrowave thank you!


TODO: Repeat THEMIS event list enhancement for MMS events

(Note: This is not an issue with the magplots package, but a todo list item for my postdoc work.)
Repeat this process: https://zenodo.org/records/10531587
...for the MMS event list.

See also Issue #23

Other possible datasets: Geotail, Cluster, JAXA mission Arase/ERG


ux improvements on deployed solutions and node listing

[ ] add 'multiselect' check box to delete multiple deployments, add / remove multiple nodes, etc.

[ ] add confirmation message pop up after delete button is clicked. "remove x number of solutions? this cannot be undone."

[ ] remove / cancel button under the popup message.

this is not ok, this page to be used as read-only view as it "lists" all the pods not just the solutions. if anything the delete action should get removed and only place to delete to be the My Workloads page.


inexact mixed is incompatible with exact object type in array element

I have an array of exact objects and I'm passing it into a function in which the type of array element doesn't matter, so I've annotated it as Array<mixed>. Unfortunately, flow complains that it cannot assign the exact object array to the mixed array.
This conflicts with my understanding that any type can flow into a mixed type, so I think it's a bug.
See https://flow.org/try/#0MYewdgzgLgBApgDwIbCgGwJ4C4YEEBO+SGAPAN4A+4cOAjBQL4B8MAvDANpnV0MC6AbgBQQ0JFgBbAJYI4AEwCuABxwEipabLkt2iFOgwCgA , in which the following code results in a flow error.
const exactly: Array<{|one: 1|}> = [{one: 1}];

const mixedup: Array<mixed> = exactly;

Error:
3: const mixedup: Array<mixed> = exactly;
                                 ^ Cannot assign `exactly` to `mixedup` because inexact mixed [1] is incompatible with exact object type [2] in array element.
References:
3: const mixedup: Array<mixed> = exactly;
                        ^ [1]
1: const exactly: Array<{|one: 1|}> = [{one: 1}];
                        ^ [2]

Fix
It's because you can mutate original array after such an assignment so it'll loose it's type.

Works as expected, should be closed imho

Perfect, thanks @apsavin!


Remove Progress Bar Upon Completion Of Installation

For me, a progress bar indicates that some process for which progress can happen is currently running.

When the process of installing the patch / patching the .exe files is finished and ends, so should end the progress bar display, imho.
Otherwise it looks (misleadingly) like a "stuck at 99%" issue to me.

Coming in the next version.


Make PASSKIT_ env variables not mandatory

Making PASSKIT_... variables mandatory makes Docker flow very strange:
RUN RAILS_ENV=production \
    NODE_ENV=production \
    PASSKIT_WEB_SERVICE_HOST=https://example.com \
    PASSKIT_CERTIFICATE_KEY=NOT_USED_NON_BLANK \
    PASSKIT_PRIVATE_P12_CERTIFICATE=NOT_USED_NON_BLANK \
    PASSKIT_APPLE_INTERMEDIATE_CERTIFICATE=NOT_USED_NON_BLANK \
    PASSKIT_APPLE_TEAM_IDENTIFIER=NOT_USED_NON_BLANK \
    PASSKIT_PASS_TYPE_IDENTIFIER=NOT_USED_NON_BLANK \
    bundle exec rails assets:precompile

Because those variables should not exists and/or be injected into Dockerfile. But, just because they are mandatory, assets:precompile crashes with error. However, on practice, they are not used at all by assets compilation.
As well a bit similar situation is with say db:migrate, which may crash in envs w/o such vars (again some simple one-off containers w/o full env).
I guess any other type of solution may be ok (later "normal" run errors, log warnigns, etc), but not the crash of the rails app if env is missing. I mean no any other gem in my memory seems to have such behaviour.
Thanks.

Yes, I agree. Maybe you have a bit of time to help and start from https://github.com/coorasse/passkit/pull/5 ? This would solve the issue I believe


Suggested that best practice to keep UPN and email the same

Can you explain why you say this is best practice. When working with security of organizations, it has always been best practice to keep these different to keep hackers from trying to brute force login via known email addresses. When the UPN is not the same, along with using a sub-domain for the UPN, the brute force attacks drop to zero.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: f42a1bfc-8920-c16d-f4c9-d29b401b7f6c
Version Independent ID: 979b71da-fdff-238d-41fb-472f1591e51e
Content: Change a user name and email address - Microsoft 365 admin
Content Source: microsoft-365/admin/add-users/change-a-user-name-and-email-address.md
Service: o365-administration
GitHub Login: @KwekuA
Microsoft Alias: kwekua

@johnwc Thank you for your feedback. While the Brute force attack can be dropped to zero, In some environments, it’s just not feasible to change the UPN due to user confusion.

Users will need to understand what their UPN is and that it is the login for all things Office 365 related. There are some prompts that will say “enter your email” but they will in fact need to use their UPN (for example, office sign in)

Most ActiveSync clients will automatically configure using Autodiscover. When your UPN matches your email, you basically just enter your email and password. When they don’t match, you enter your email and password, then you’ll get prompted to enter your login (UPN) to actually authenticate.

All Versions of Office and OneDrive prompt the user for their email address and again, they really mean the UPN.

CC: @kwekuako
Hope this helps!
Thanks
Sri

Every organization that we've worked with viewed the simple things you pointed out as a employee education issue. The security issue on the other hand was always a higher concern than teaching users how to login with their UPN.
Best practices usually do not prioritize user education issues over security issues.

@msbemba Thank you very much for the contribution and sharing this explanation. @johnwc Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

@yogkumgit the comment is not helpful because it does not exhibit best practice. It exhibits a better user experience recommendation. It should be updated and made clear what the best practice is for secure accounts, but is MS recommendation to keep the UPN and email address the same for better user experience.


Replicator fails to authenticate to open db after cookie timeout

Expected Behavior

A replicator document with valid credentials for a target database should continue to present valid credentials when replicating. Even when a target database allows anonymous writes, there may be validate_doc_update scripts that make decisions based on the user performing the replication.
Current Behavior

If the target database does not require authentication, the replicator may function with the user context of the administrator creating the replication document until the authentication cookie expires. At this point, the target database will ignore the expired cookie and accept documents but any validate_doc_update scripts that make decisions based on user context will instead receive an 'undefined' user context.
Possible Solution

Reject expired authentication cookies.
Use basic auth

Steps to Reproduce (for bugs)

Set up target database that is open for anonymous writing.
Create VDU on target database that rejects documents from non-admin users.
Create a continuous replication document from a source database to the target database and specify admin credentials.
Wait over 10 minutes (cookie session timeout) and add a document to the source database.

Context

Our Nunaliit tool makes a lot of decisions in the VDU about which documents can be updated based on roles and fields in documents. The configuration of Nunaliit permits decisions about whether or not to accept anonymous writes or to require valid users. In addition, valid users may be required to agree to terms (attribute on user doc because terms may be versioned, etc.) of use or take other steps before being granted write or edit permissions.
We have designed Nunaliit to work with couchdb without assuming that we are the only code touching it. Making configuration changes at a database level or customizing plugin settings is something we'd like to avoid. Ideally the cookie auth would have the same behaviour as the basic auth.
Your Environment

Version used: 2.2.0
Browser Name and version: Chrome/Firefox (latest)
Operating System and version (desktop or mobile): Ubuntu 16.04 server. Various clients.
Link to your project: http://nunaliit.org

Made a script to replicate the issue:
#!/bin/bash

S=localhost:15984
SA=adm:pass@${S}
JSON="Content-Type: application/json"

curl -s -XDELETE $SA/db > /dev/null
curl -s -XDELETE $SA/srcdb > /dev/null
curl -s -XDELETE $SA/_replicator > /dev/null
curl -s -XPUT $SA/db > /dev/null
curl -s -XPUT $SA/srcdb > /dev/null

echo "Setting [couch_httpd_auth] timeout = 5"
curl -s -XPUT adm:pass@localhost:15986/_config/couch_httpd_auth/timeout -d '"5"' > /dev/null
curl -s -XPUT adm:pass@localhost:25986/_config/couch_httpd_auth/timeout -d '"5"' > /dev/null
curl -s -XPUT adm:pass@localhost:35986/_config/couch_httpd_auth/timeout -d '"5"' > /dev/null

echo "Adding VDU to target"
cat <<EOF > /tmp/vdu.json
  {
    "_id": "_design/vdu",
    "validate_doc_update":"function(newDoc, oldDoc, userCtx) { log(userCtx); if (newDoc.name != userCtx.name) { throw({'forbidden': 'VDU failed'}); } }"
  }
EOF
curl -s -XPUT $SA/db/_design/vdu -H "$JSON" -T /tmp/vdu.json > /dev/null

echo "Replicating from srcdb to db"
curl -s XDELETE $SA/_replicate -H "$JSON" -d '{"source":"http://adm:pass@localhost:15984/srcdb", "target":"http://adm:pass@localhost:15984/db", "worker_proceses":1, "continuous":true}' > /dev/null
curl -s XPOST   $SA/_replicate -H "$JSON" -d '{"source":"http://adm:pass@localhost:15984/srcdb", "target":"http://adm:pass@localhost:15984/db", "worker_proceses":1, "continuous":true}' > /dev/null

sleep 3

DOCID=0

echo "With frequent enough updates, session is getting refreshed"
while [ $DOCID -lt 2 ]; do
    let DOCID++
    echo ""
    echo "DocID: $DOCID"
    curl -s -XPUT $SA/srcdb/$DOCID -H "$JSON" -d '{"name":"adm"}' > /dev/null
    echo "Doc added to source, sleeping 2 seconds"
    sleep 2
    echo "Getting doc from target:"
    curl $SA/db/$DOCID
done

echo "With long sleeps, sesssion will timeout and not get refreshed"
sleep 10

while [ $DOCID -lt 10 ]; do
    let DOCID++
    echo ""
    echo "DocID: $DOCID"
    curl -s -XPUT $SA/srcdb/$DOCID -H "$JSON" -d '{"name":"adm"}' > /dev/null
    echo "Doc added to source, sleeping 7 seconds"
    sleep 7
    echo "Getting doc from target:"
    curl $SA/db/$DOCID
done

It can be run against a default dev cluster:
$. /replicate_session_with_vdu_auth.sh
Setting [couch_httpd_auth] timeout = 5
Adding VDU to target
Replicating from srcdb to db
With frequent enough updates, session is getting refreshed

DocID: 1
Doc added to source, sleeping 2 seconds
Getting doc from target:
{"_id":"1","_rev":"1-66e95cbbe626e928747ecc225341b2d6","name":"adm"}

DocID: 2
Doc added to source, sleeping 2 seconds
Getting doc from target:
{"_id":"2","_rev":"1-66e95cbbe626e928747ecc225341b2d6","name":"adm"}
With long sleeps, sesssion will timeout and not get refreshed

DocID: 3
Doc added to source, sleeping 7 seconds
Getting doc from target:
{"error":"not_found","reason":"missing"}

DocID: 4
Doc added to source, sleeping 7 seconds
Getting doc from target:
{"error":"not_found","reason":"missing"}

An interesting observation is that a 403 HTTP response, which a forbidden could generate for individual docs will trigger a cookie refresh.
However replicator, in the normal case would write documents using a _bulk_docs  endpoint and the result of that is 201 even though some documents in the batch failed with a forbidden error.
It is possible to trick the replicator to use single requests if attachments are used. Indeed, I had waited till the after the session expired and added a document with an attachment to the source:
 curl -s -XPUT adm:pass@localhost:15984/srcdb/1/att1?rev=1-66e95cbbe626e928747ecc225341b2d6 -H 'Content-Type: application/octet-stream' -T 1mb
{"ok":true,"id":"1","rev":"2-3dec55150ee06ac046419c71f00f5351"}

The script was running in the part with long sleep but as soon as the attachment was added, the session was refreshed and the a few writes succeeded:
ocID: 4
Doc added to source, sleeping 7 seconds
Getting doc from target:
{"error":"not_found","reason":"missing"}

DocID: 5
Doc added to source, sleeping 7 seconds
Getting doc from target:
{"_id":"5","_rev":"1-66e95cbbe626e928747ecc225341b2d6","name":"adm"}

DocID: 6
Doc added to source, sleeping 7 seconds
Getting doc from target:
{"error":"not_found","reason":"missing"}

Thank you!


404 error on certain imgur URLs

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2021.06.06
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: ['--default-search', 'auto_warning', '--ignore-errors', '--add-metadata', '--all-subs', '--convert-subs=srt', '--embed-subs']
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://imgur.com/a/XlRUIpM']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.8.10 (CPython) - Linux-5.12.10-1-default-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.4, ffprobe 4.4, rtmpdump 2.4
[debug] Proxy map: {}
[imgur:album] XlRUIpM: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "/bin/youtube-dl/youtube_dl/extractor/common.py", line 634, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2288, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib64/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib64/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/usr/lib64/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib64/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib64/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
Description

Certain imgur URLs give a 404 error when trying to download them, while they work in Firefox. They are generally URLs beginning with https://imgur.com/a/ , referring to a single video. The example video is NSFW.

OP example is 404.

@dirkf This video still exists, but gives the same error with youtube-dl 2021.12.17: https://imgur.com/a/j1ltixx

Indeed:
$ ./youtube-dl-20230718 'https://imgur.com/a/j1ltixx'
[imgur:album] j1ltixx: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
$

This is actually, or at least obscured by, #25351, where the album API URL in the extractor is no longer valid:
         data = self._download_json(
+            'https://api.imgur.com/post/v1/albums/%s?client_id=%s&include=media,account' % (client_id, gallery_id),
+            gallery_id, fatal=False)
-            'https://imgur.com/gallery/%s.json' % gallery_id,
-            gallery_id)['data']['image']

The new replacement API URL works in the browser but gives 401 or 429 in yt-dl, despite apparently the same headers.

Ah, let's try this instead!
         data = self._download_json(
+            'https://api.imgur.com/post/v1/albums/%s?client_id=%s&include=media,account' % (gallery_id, client_id),
+            gallery_id, fatal=False)
-            'https://imgur.com/gallery/%s.json' % gallery_id,
-            gallery_id)['data']['image']

Then, hurrah!
$ $ python3 -m youtube_dl -v -F 'https://imgur.com/a/j1ltixx'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-F', 'https://imgur.com/a/j1ltixx']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: 5e51cb0aa
[debug] Python 3.11.2 (CPython i686 32bit) - Linux-6.1.0-12-686-pae-i686-with-glibc2.36 - OpenSSL 3.0.9 30 May 2023 - glibc 2.36
[debug] exe versions: ffmpeg 5.1.3-1, ffprobe 5.1.3-1
[debug] Proxy map: {}
[imgur:album] j1ltixx: Downloading JSON metadata
[download] Downloading playlist: Racchetta Zanzare YPD comprato da YASTA
[imgur:album] playlist Racchetta Zanzare YPD comprato da YASTA: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[Imgur] h4Yc6Cp: Downloading webpage
[info] Available formats for h4Yc6Cp:
format code  extension  resolution note
gif          gif        960x1706   gif container, gif, video only, 3.04MiB
mp4          mp4        960x1706   (best)
[download] Finished downloading playlist: Racchetta Zanzare YPD comprato da YASTA
$


Ability to adjust Notifications timeout  [REQUEST]

I like that we can turn on or off the Notifications, but it would be nice to be able to adjust the timeout length. Even the notification location like in the panel instead.  Or even just Notify only with errors.
There seems to be another bug.  When clicking the "Close All' it does nothing.

Well I created a Pull request for this.
#16

Thanks @branden-akana for merging the Pull Request.
Just wondering when it might get published to Atom.
Thanks


Android-Java 3.1: Android-Option-Menu

Description
What is option menu?
Usage and implementation
Example
Domain
Android Dev (Java)
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

@VikasPandey121 Sir I want to work on this issue.


the request for the algorithm

This is a great work!!! I have read the paper for times. But I am still confused about how it trained. Could you please tell me the pseudocode?

@lk-greenbird, do you mean how CLIPort is trained? Take a look at this toy-problem  from Zeng et al. to get a gist of the training pipeline. CLIPort is more-or-less the same, but conditioned on language-goals instead of just behavior cloning.

Closing due to inactivity.


Adding privacy policy page

@4darsh-Dev
I would like to add privacy policy page, could you please assign it to me

Gentle Reminder 🚨🚨
PA and Mentor nominations have been started for GSSoC-Ext 2k24. '
Do share your experiences and connect on Socials. '
It was a great experience working with you all
Thanks💗 for your valuable contributions!


Add guides about ros2 console-logging

Checklist

[X] I've read the contribution guidelines.
[X] I've searched other issues and no duplicate issues were found.
[X] I've agreed with the maintainers that I can plan this task.

Description
Writing guidelines about ros2 console-logging.
Purpose
Current console-logging.md in autowarefoundation/autoware-documentation/tree/main/docs/contributing/coding-guidelines/ros-nodes is empty.
Possible approaches
Writing guidelines in  console-logging.md
Definition of done
finisih writing

@alanmengg Sorry for the inconvenience. Do you have any ideas about the guidelines?

I think I can write some basic usage case using autoware examples~

Oh, it's great! In that case, let's discuss it on your PR.
Today I found a PR that should be mentioned in the logging guideline. cc @takayuki5168
https://github.com/autowarefoundation/autoware.universe/pull/2056


This is not the official source of MADB

You should state that this is a fork. The name madb is the name of the official project. There are official nuget packages, but you have created your own. While you did provide myself as an author, again, it is using the madb, which is the name of the official project, but not the ID on nuget.
As it stands, you are violating the license:

Trademarks.
This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.

Please make it known that is is a fork of the original project and change the name of the nuget package id.

Hi @camalot,
Thanks for reaching out to us!
We've initially created this project to fix some issues we've reported against the original madb project and provided you a link back to this project as a means to share the fixes we've implemented (see e.g. work item 21787, 21763, 21658 & 21653).
As it stands, we've spent quite a lot of time refactoring the code base, adding unit tests and making the code base StyleCop compliant (see #4 and #5). We've done that based on some of the requirements we had.
I think our version of the codebase has diverged sufficiently from yours to warrant a rename. We'll update the name of the project and the NuGet packages.
Net, here's what we'll do:

Rename the project and NuGet packages, which should avoid any confusion with madb (and madbee, and Managed.Adb)
Keep or add copyright notices to all source files
Mention you in the COPYRIGHT file at the root of the repository
let us know whether this satisfies your request.

Since we're talking about licensing and attribution, we tried to make sure we properly license and attribute the code contained in this package (see e.g. the COPYRIGHT) file.
Here's what we found so far:

madb is a .NET port of the Java version of the ddmlib project, so copyright should be attributed to The Android Open Source Project, too
madb includes (e.g. BEBinaryReader.cs) dicom-cs which is licensed under the LGPLv2 license. We've removed this dependency as it seems this would force this code to be licensed under the LGPLv2 rather than the Apache license.
madb includes (e.g. BigEndianConverter.cs) MiscUtil which is licensed under the Apache license, so requires attribution, too. We've removed this file in our codebase.

Do you know of any other codebase that's included in madb or any other license that may apply to the code in madb?
Let me know if you have any further questions or comments,
Frederik.

Thank you Frederik. It isn't my name that is the issue, which you have have in place in most of the source that I looked at already, it is the lack of a link to the original source: either on the original codeplex site (http://madb.codeplex.com) or the current project home at github (http://github.com/camalot/madb).
I was actually happy to see someone else actively working on this, as it is just a side project for me. The issue I had was that you have a nuget package and the project using the original project name, without stating that it is a fork of another project. Honestly, I would rather to see this code merged back in to the original project. So I guess what I am saying is, if you provide a link to the original (which if it the project was on github when you forked it, it would be there) I am fine with the name, and would even be ok with the nuget package using that name as the ID. This would eliminate the issues with renaming a nuget package ID too.
I am not aware of any other licenses that apply to code.

Hi Ryan,
I've prepared #8, which includes a link to the GitHub project where you do the active development, and also renames the library and NuGet packages to SharpAdbClient to avoid naming conflicts.
That should resolve this issue for now.
I'm always happy to look into how we can merge back our changes to the main madb repository. Thing is, we've made a lot of changes and I want to make sure you're comfortable with them before we embark on trying to convert this into a pull request.
Madb has worked really well for us so far (thanks!), but we've had issues from time to time - you can find most of them on Codeplex.
What we came to realize is that madb does a lot more than what we require for now. For example, the Device class provides a lot of functionality (say, support for exploring the entire file system or support for BusyBox) which we don't use right now, and which would bite us from time to time.
What we currently need is a thin implementation of the adb protocol which provides support for the basic adb commands - anything you can do with the command line version of adb, say.
So the first thing we did was to split madb in two - a part we thought we'd need, and another part, which we dubbed Managed.Adb.Extensions, which provides additional features which we don't currently use.
Then we set out to make sure the code in the 'core' madb library is testable (we currently have about 30% code coverage and are looking to increase that) and complies with our internal code standards - mainly StyleCop compliance. StyleCop also has a rule that enforces copyright headers at the top of each file, so that's why you saw us (well, StyleCop really) add copyright headers to files we didn't even change.
The changes are a bit intrusive from time to time - for example, the AdbHelper class has mainly disappeared and has been split in an AdbSocket (which takes care of sending low-level messages) and AdbClient (which takes care of the actual command). The DeviceMonitor and SyncService wrap around the AdbSocket. The Device class has moved to the Extensions project and been replaced with a DeviceData object, which basically only holds the information adb has on the device (such as name, status). You can still create a Device object; that would just wrap around the DeviceData object and provide additional functionality.
If that's something you'd like to merge back to madb, we'd need to figure out the how to do that. For example, our root folders are different (our / maps to your /trunk), and we migrated the code from Codeplex separately.
Cheers,
Frederik.

Hi @camalot
We pulled the 'madb' package from NuGet and re-published with our own, and updated the name of this project. That should fix your initial request.
Happy to keep the conversation on how to merge back these changes going -- feel free to comment on this issue or create a separate one for that.
Cheers,


Add unit tests for com.immomo.rhizobia.rhizobia_J.crypto.AESUtils

I've analysed your codebase and noticed that com.immomo.rhizobia.rhizobia_J.crypto.AESUtils is not fully tested.
I've written some tests for the methods in this class with the help of Diffblue Cover.
Hopefully, these tests will help you detect any regressions caused by future code changes. If you would find it useful to have additional tests written for this repository, I would be more than happy to look at other classes that you consider important.

@Braavos96, Although the UT added here not so necessary and doubting this is an add,  thks anyway and i will add more UT. ^_^


Maple Lakes biome

Modified bamboo ponds biome with spruce trees, oak trees, and birch. Orange leaf color for oak trees to look like maples. Biome should generate somewhere within the same temperature range of taigas and birch forests.

Unsure of how I want to do this biome - Closing for now.


crash on 1.10.2 when "sack of holding in the starter chest"

this is a strange crash concerning "sack of holding" this happens only if i find the sack in the starter chest at the beginning of a new world/game never has happened when i craft the item later on.
"https://pastebin.com/4YWdQhUk"

I see, so somehow it has bad data when spawned from a loot table instead of crafted.  Whatever the cause ill have a fix out soon :)

This should fix it, hopefully i tested every angle.  Stop by again for any other issues. https://minecraft.curseforge.com/projects/cyclic/files/2441711