juju config minio secret-key returns empty string

The command currently returns an empty string but it shouldn't.

This happens when the secrey key is generated by charm (default empty value).
https://github.com/canonical/minio-operator/blob/2b77883c19d00d5a1666ae7f318b28e5ee55bf41/src/charm.py#L29
https://github.com/canonical/minio-operator/blob/2b77883c19d00d5a1666ae7f318b28e5ee55bf41/src/charm.py#L56
Workaround
When you set the value yourself this works ok. Use:
juju config minio secret-key="<more_the_8_char_string>"

Indeed that looks broken, the logic should be assigning the generated secret key to self.model.config["secret-key"] as a default value in the init method, unless a value was already assigned by the administrator.

I don't know if this is broken or by intent.  I think the idea is that if no password is set at deployment, the default password is randomly generated and then stored somewhere the charm can access again (so it isn't making a new random value every time a hook fires).  @grobbie would your preference be that the charm write the random value it comes up with to it's own config so that you the user could later access it?
I don't know config is writable from the charm, but easy enough to try.

Config is not writable from the charm code, the only way we can return the auto generated password would be through an action or accessing the k8s secret.

Closing as this will not be implemented.  If you need to reuse the password outside of the charm, for now the recommendation is to set the password yourself via config (juju config charmname secret-key=xxx) and then you can use it however you like (including pull it back out again with juju config)


Adding API-Performance-Overview Dashboard to grafonnet.

Type of change

[ ] Refactor
[X] New feature
[ ] Bug fix
[X] Optimization
[ ] Documentation Update

Description

Adding API-Performance Dashboard to grafonnet
Related Tickets & Documents

Related Issue #
Closes #

Checklist before requesting a review

[X] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.

Testing

Please describe the System Under Test.
Please provide detailed steps to perform tests related to this code change.
How were the fix/results from this change verified? Please provide relevant screenshots or results.

Current Dashboard: Api-Performance dashboard
Jsonnet Coded Dashboard: Api-perfromance dashboard

http://dittybopper-dittybopper.apps.smanda-ocp1.perfscale.devcluster.openshift.com/d/MpfMxQKIz/api-performance?orgId=1&refresh=30s this is previous dashboard.
http://dittybopper-dittybopper.apps.smanda-ocp1.perfscale.devcluster.openshift.com/d/B6BGbwFSk/api-performance-dashboard?orgId=1&refresh=30s this one is new one

Hi @vishnuchalla
old dashboard: http://dittybopper-dittybopper.apps.smanda-ocp1.perfscale.devcluster.openshift.com/d/izpjYb5Ik/api-performance?orgId=1&refresh=30s
new dashboard: http://dittybopper-dittybopper.apps.smanda-ocp1.perfscale.devcluster.openshift.com/d/7V2CLb5Sz/api-performance-dashboard?orgId=1&refresh=30s

label names and values doesn't seem to be matching exactly. Can you make sure that everything between the old and new dashboards is same.

Thanks for this PR @Manda-supraja26 ! I use this dashboard a lot and I would like the panel legends to have "Max" instead of "Last *".  That's a change I make in my own dashboard copies because "Current" doesn't give me the information I want.
Also, if the Tooltips can "sort descending" that is also more helpful when there are usually large numbers of data series in one panel.

Thanks for this PR @Manda-supraja26 ! I use this dashboard a lot and I would like the panel legends to have "Max" instead of "Last *". That's a change I make in my own dashboard copies because "Current" doesn't give me the information I want.
Also, if the Tooltips can "sort descending" that is also more helpful when there are usually large numbers of data series in one panel.

Thanks for the review @afcollins. i will work on suggested changes.

@afcollins  i have updated the dashboard.  And dashboard link ARE:

@vishnuchalla
old dashboard: http://dittybopper-dittybopper.apps.smanda-ocp1.perfscale.devcluster.openshift.com/d/mniWpfpSk/api-performance?orgId=1&refresh=30s
new dashboard: http://dittybopper-dittybopper.apps.smanda-ocp1.perfscale.devcluster.openshift.com/d/T6kZpftIk/api-performance-dashboard?orgId=1&refresh=30s

@afcollins I have updated the dashboard. Please let me know if anything needs to be added. Dashboard links:

@vishnuchalla
old dashboard: http://dittybopper-dittybopper.apps.smanda-ocp1.perfscale.devcluster.openshift.com/d/mniWpfpSk/api-performance?orgId=1&refresh=30s
new dashboard: http://dittybopper-dittybopper.apps.smanda-ocp1.perfscale.devcluster.openshift.com/d/T6kZpftIk/api-performance-dashboard?orgId=1&refresh=30s

@Manda-supraja26 I think its good to confirm that moving all the legends from "current" --> "max" is okay with all the users and is backward compatible.

@vishnuchalla
old dashboard: http://dittybopper-dittybopper.apps.smanda-ocp1.perfscale.devcluster.openshift.com/d/Fxd0tZhIz/api-performance?orgId=1&refresh=30s
new dashboard: http://dittybopper-dittybopper.apps.smanda-ocp1.perfscale.devcluster.openshift.com/d/_8OAtZ2Ik/api-performance-dashboard?orgId=1&refresh=30s


error in extract_round_trips

Problem Description
Please provide a minimal, self-contained, and reproducible example:
import pandas as pd
import pyfolio as pf
from io import StringIO

content = """
index,symbol,amount,price
2019-03-21 09:00:00,ABCD,-1,100
2019-03-21 09:10:00,ABCD,1,200
2019-03-21 09:20:00,ABCD,1,200
2019-03-21 09:30:00,ABCD,-1,100
"""
df = pd.read_csv(StringIO(content), index_col=0, parse_dates=True)
rts = pf.round_trips.extract_round_trips(df)
print(rts)

"""
             close_dt   long             open_dt   pnl  rt_returns symbol duration
0 2019-03-21 09:10:00  False 2019-03-21 09:00:00 -15.0   -0.150000   ABCD 00:10:00
1 2019-03-21 09:30:00   True 2019-03-21 09:10:00  15.0    0.130435   ABCD 00:20:00

"""

Please provide the full traceback:

Please provide any additional information below:
row 1, the open_dt should be 2019-03-21 09:20:00 not 2019-03-21 09:10:00
Versions

Pyfolio version: 0.9.2
Python version: 3.6
Pandas version: 0.20.3

2019-03-21 09:10:00 is correct. The position is closed out to zero on 9:10:00.

my new code:
import pandas as pd
from io import StringIO
from math import copysign
from collections import deque
import numpy as np
import warnings
import itertools

pd.set_option('display.width', 1000)

def extract_round_trips(transactions):
    roundtrips = []
    ticket = itertools.count(1)

    for sym, trans_sym in transactions.groupby('symbol'):
        trans_sym = trans_sym.sort_index()
        price_stack = deque()
        dt_stack = deque()
        oid_stack = deque()
        trans_sym['signed_price'] = trans_sym.price * \
                                    np.sign(trans_sym.amount)
        trans_sym['abs_amount'] = trans_sym.amount.abs().astype(int)
        for dt, t in trans_sym.iterrows():
            if t.price < 0:
                warnings.warn('Negative price detected, ignoring for'
                              'round-trip.')
                continue

            indiv_prices = [t.signed_price] * t.abs_amount
            if (len(price_stack) == 0) or \
                    (copysign(1, price_stack[-1][-1]) == copysign(1, t.amount)):
                price_stack.append(deque(indiv_prices))
                dt_stack.append(deque([dt] * len(indiv_prices)))
                oid_stack.append(deque([next(ticket)] * len(indiv_prices)))
            else:
                # Close round-trip
                pnl = 0
                invested = 0
                cur_open_dts = []
                size = 0

                for idx, price in enumerate(indiv_prices):
                    if len(price_stack) != 0 and \
                            (copysign(1, price_stack[-1][-1]) != copysign(1, price)):

                        _price_stack = price_stack[0]
                        _dt_stack = dt_stack[0]
                        _oid_stack = oid_stack[0]

                        prev_price = _price_stack.popleft()
                        prev_dt = _dt_stack.popleft()
                        prev_oid = _oid_stack.popleft()

                        pnl += -(price + prev_price)
                        cur_open_dts.append(prev_dt)
                        invested += abs(prev_price)
                        oid = prev_oid
                        size += 1

                        if len(_price_stack) == 0:
                            price_stack.popleft()
                            dt_stack.popleft()
                            oid_stack.popleft()

                        if (len(_price_stack) == 0) or (idx == len(indiv_prices) - 1):
                            roundtrips.append({'pnl': pnl,
                                               'open_dt': cur_open_dts[0],
                                               'close_dt': dt,
                                               'long': price < 0,
                                               'rt_returns': pnl / invested,
                                               'symbol': sym,
                                               'oid': oid,
                                               'open_price': abs(prev_price),
                                               'close_price': abs(price),
                                               'size': size
                                               })

                            pnl = 0
                            invested = 0
                            cur_open_dts = []
                            size = 0
                    else:
                        # Push additional stock-prices onto stack
                        price_stack.append(deque([price]))
                        dt_stack.append(deque([dt]))
                        oid_stack.append(deque([next(ticket)]))

    roundtrips = pd.DataFrame(roundtrips)

    roundtrips['duration'] = roundtrips['close_dt'].sub(roundtrips['open_dt'])

    return roundtrips

if __name__ == '__main__':
    content = '''
    index,symbol,amount,price
    2019-03-21 09:00:00,ABCD,2,100
    2019-03-21 09:10:00,ABCD,2,110
    2019-03-21 09:20:00,ABCD,-3,120
    2019-03-21 09:30:00,ABCD,-2,130
    2019-03-21 09:40:00,ABCD,1,140
    '''

    '''
             close_dt  close_price   long  oid             open_dt  open_price  pnl  rt_returns  size symbol duration
0 2019-03-21 09:20:00          120   True    1 2019-03-21 09:00:00         100   40    0.200000     2   ABCD 00:20:00
1 2019-03-21 09:20:00          120   True    2 2019-03-21 09:10:00         110   10    0.090909     1   ABCD 00:10:00
2 2019-03-21 09:30:00          130   True    2 2019-03-21 09:10:00         110   20    0.181818     1   ABCD 00:20:00
3 2019-03-21 09:40:00          140  False    3 2019-03-21 09:30:00         130  -10   -0.076923     1   ABCD 00:10:00
    '''

    df = pd.read_csv(StringIO(content), index_col=0, parse_dates=True)

    rts = extract_round_trips(df)
    print(df)
    print(rts)


Add the contents of .docs to a docs-support directory in Windows packages.

This is the AppVeyor part of #2291.

I have cancelled the travis build because not needed.

Should be good to merge; the docs-support directory and content are present in the Windows zip files.


Wrong warning for consensus transfer txes

Running the following
oasis account transfer 1.0 test:bob --account test:alice --network testnet  --no-paratime

the safety check complains about the invalid recepient:
Error: signer for address '0x0000000000000000000000000000000000000000' will not be able to sign transactions on consensus layer
Use --force to ignore this check

This is a perfectly valid transaction though.

This is a perfectly valid transaction though.

clarification: valid command, bad transaction generated, correct error regarding that transaction

or no, is it?

Transaction was fine, because the native address is used there directly (ResolveAddress in SDK returns the native address + optionally ethereum address).

oh interesting


fix default gas limit

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/kind api-change
/kind backend-change
/kind ui-change
/kind bug
/kind cleanup
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #1562
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

test on both web and iopay desktop


allow cluster client to use limiter

code users can pass a limiter struct into cluster client then allow each node client in the cluster to use that limiter

@vmihailenco Hi, any idea on this PR? We have the same issue that may get help from this. Thanks.

Looks good - thanks!

@vmihailenco I believe we should pass a Limiter constructor to the option instead of a Limiter, as mentioned by @ThomasJannaud

@vmihailenco will try make a PR for this.

@walktall indeed. Please hold on - I think I have a solution.

@walktall indeed. Please hold on - I think I have a solution.

Sure, thanks!

@walktall please check https://github.com/go-redis/redis/pull/1332


MaxConcurrentFetches and number of brokers/partitions

Let's say I have:

3 brokers
1 topic with 3 partitions
3 consumers

Each consumers consumes a single topic partition. How many concurrent fetches a consumer can have?
The documentation implies that each consumer will have 3 concurrent fetches, because I have 3 brokers.
Could you help me understand how there can be 3 concurrent fetches to a single partition? Would not that break the order in which records are processed? Or each fetch returns the same data?
Also I don't quite understand how FetchMaxBytes and FetchMaxPartitionBytes play together. If I am consuming a single partition, then a fetch request can't be larger than 1 * FetchMaxPartitionBytes, but it does not seem to be the case...

MaxConcurrentFetches is the upper bound per client. If MaxConcurrentFetches == 3:

I don't understand why I will have 3 concurrent fetches if a client is consuming a single partition. The first fetch is obvious, but why other 2 are needed? Do they retrieve data in advance? Or they are simply duplicates?

I don't know what you mean by "it does not seem to be the case"?

I am consuming a single partition so I expect that I only need to configure FetchMaxPartitionBytes. But reality check shows that I also need to configure FetchMaxBytes or the client consumes a lot more RAM than expected.
By your explanation it also looks like I need to configure MaxConcurrentFetches, but I did not touch it. To reduce memory consumption, I had to configure FetchMaxBytes even if a single/node client is consuming a single partition.
It works, but I have no idea why.

If a client is consuming a single partition, you'll have one fetch. The configuration setting is a limit, not a must-be-this requirement. Max doesn't mean ExactlyAlways.
Also yes -- please confirm the number of topics and partitions you're consuming.

Also yes -- please confirm the number of topics and partitions you're consuming.

I have:

4 servers/consumers/clients
4 kafka brokers
2 topics
1 topic with 8 partitions; each consumer consumes 2 partitions
1 topic with 4 partitions; each consumers 1 partition

I had to lower FetchMaxBytes from the default 50mb to 4mb and observed a reduction in memory consumption ~512mb. I am using ZSTD and the data is highly compressible.
FetchMaxPartitionBytes is the default 1mb. MaxConcurrentFetches is not configured.
I am using https://github.com/twmb/franz-go/tree/master/examples/group_consuming with manual committing.

If a client is consuming a single partition, you'll have one fetch. The configuration setting is a limit, not a must-be-this requirement. Max doesn't mean ExactlyAlways.

Okay, sounds like I don't need to touch it.

The max bytes applies as the data is written on the wire. If your data is highly compressible, then it makes sense that lowering the max bytes by 46M results in a reduction in memory consumption by 512M -- the data is is decompressed after being read, so it is possible that your 46M decompressed to 512M.
I don't think there's anything to do here so I'll close this for now.


Record End to End Latency Using Activity Task Start Time

What was changed:
Change Activity End to End Latency to record from task start time.
Why?
This is so that we record the time from when the activity first entered the queue and not when the poll started that grabbed this activity
Checklist

Closes issue: https://github.com/temporalio/sdk-go/issues/431

How was this tested: N/A

CC @mastermanu


DEBUG: Right Key press in the last position of an exercise causes a Debug Mode-only Exception

Only if exercise starts with Black's move.

Fixed


feat: add mongodb 1.19.0 release

update mongodb with release 1.19.0

:tada: This issue has been resolved in version 1.323.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


chore: update catalog config and screenshot

update tagline in catalog config to be 30 characters or less
update screenshot to be correct aspect ratio

Good catch! I updated all the screenshots to be strictly 3:2.


Assembler messages:no such instruction: `shlx %rdx,%rcx,%rdx'

here is my hardware
1.CentOS release 5.11
2.re2c 0.13.6
3.gcc (GCC) 4.9.4
4.model name      : Intel(R) Xeon(R) CPU E5-2682 v4 @ 2.50GHz
5.PHP 5.6.26 (cli)

We'll need the steps to reproduce

Did you use install script from the project root? Could you try to remove -march=native  from https://github.com/phalcon/php-zephir-parser/blob/development/install#L53 and try reinstall?

thank you very much .it's ok! i do that thing
remove -march=native
2017-12-14 3:47 GMT+08:00 Serghei Iakovlev<EMAIL_ADDRESS>
Did you use install script from the project root? Could you try to
remove -march=native from https://github.com/phalcon/
php-zephir-parser/blob/development/install#L53 and try reinstall?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/phalcon/php-zephir-parser/issues/33#issuecomment-351501516,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APqlqeBIUCz5NFA0mYNTnQMdvyLBZl3sks5tACm_gaJpZM4RAuOq
.

Refs: https://github.com/phalcon/cphalcon/issues/13143


Should not connect to non-existing ws API

code
const express = require(`express`)
const server = express()
require(`express-ws`)(server)
server.ws(`/xxx`, (ws, req) => {
  console.log(`socket`, req.testing)
  ws.on(`message`, function(msg) {
    console.log(msg)
  })
})
server.listen(3040)

test
Should not connect to non-existing ws API
new WebSocket(`ws://<IP_ADDRESS>:3040/1/2/3`)

solution: https://github.com/wll8/express-ws


Add meeting notes from 2024-10-24

Something went wrong with PR preview build please check

Preview is available here:http://developers-pr1057.previews.kube001.services.stellar-ops.com


wrong data type string

It seems the adapter uses the wrong datatype "string" instead of "number".
There is only this error message, the adapter seems to work fine.
2023-08-11 11:23:04.869 - info: device-reminder.0 (715) State value to set for "linkeddevices.0.Alexa.Wohnzimmer.speak-volume" has to be type "number" but received type "string"
--
2023-08-11 11:23:04.875 - error: alexa2.0 (83380) Datatype "string" for Echo-Devices.G2A1Bxxxxxxxx.Commands.speak-volume differs from expected "number", ignore state change! Please write correct datatype

Versions:

Adapter version: 1.2.9
JS-Controller version: 4.0.24
Node version: 18.17.0
Operating system: linux

bitte aktuelle Github Version testen

V 2.0.1


Emoji API

Is there an API to fetch without CORs? This'll be for a browser extension

On Thu, Dec 15, 2022 at 6:28 AM Stanley @.***> wrote:

Is there an API to fetch without CORs? This'll be for a browser extension
—
Reply to this email directly, view it on GitHub
https://github.com/lopste/forumoji/issues/37, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATJZIQTANPR6F5ENGJNHDRLWNMTIDANCNFSM6AAAAAAS7ZNET4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Ooh- I’ll need a host that isn’t GitHub for that, but I think I could
easily move it to a node.JS repl.

Thanks!

Working on this at #6006 of that extension, by the way


32-bit qrenderdoc build failure ("SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32")

Building renderdoc 1.0 on both Mageia 6 i586 (GCC 5.5.0) and Mageia 7 i586 (GCC 7.3.0) (Linux), I get the following build error:
[100%] Building CXX object qrenderdoc/Code/pyrenderdoc/CMakeFiles/_qrenderdoc.dir/__/__/renderdoc_python.cxx.o
cd /home/iurt/rpmbuild/BUILD/renderdoc-1.0/build/qrenderdoc/Code/pyrenderdoc && /usr/bin/c++   -DDISTRIBUTION_CONTACT=\"https://madb.mageia.org/package/show/name/renderdoc\" -DDISTRIBUTION_NAME=\"Mageia\" -DDISTRIBUTION_VERSION=\"1.0-1.mga6\" -DGIT_COMMIT_HASH=\"5ef2d0bb5e86a37ba6c250987e9dc8c33c26435c\" -DRENDERDOC_PLATFORM_LINUX -DRENDERDOC_STABLE_BUILD=1 -DRENDERDOC_SUPPORT_GL -DRENDERDOC_SUPPORT_VULKAN -DRENDERDOC_WINDOWING_XCB -DRENDERDOC_WINDOWING_XLIB -D_qrenderdoc_EXPORTS -I/home/iurt/rpmbuild/BUILD/renderdoc-1.0/qrenderdoc -I/home/iurt/rpmbuild/BUILD/renderdoc-1.0/renderdoc/api/replay -I/usr/include/python3.5m  -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -std=c++11 -fstrict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wno-unused-variable -Wno-unused-parameter -Wno-unused-result -Wno-type-limits -Wno-missing-field-initializers -Wno-unknown-pragmas -Wno-reorder -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Werror -Wno-unknown-warning-option -Wno-unused-private-field -DNDEBUG -fPIC   -std=gnu++14 -o CMakeFiles/_qrenderdoc.dir/__/__/renderdoc_python.cxx.o -c /home/iurt/rpmbuild/BUILD/renderdoc-1.0/build/qrenderdoc/renderdoc_python.cxx
/home/iurt/rpmbuild/BUILD/renderdoc-1.0/build/qrenderdoc/renderdoc_python.cxx:4252:3: error: #error "SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32"
 # error "SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32"
   ^

Full build log:
build.0.20180309093408.log.txt

This is in theory an easy fix, I just assume linux is 64-bit in qrenderdoc/CMakeLists.txt:
if(NOT APPLE)
    set(SWIG_FLAGS "-DSWIGWORDSIZE64")
endif()

But I can't test any fix because I don't have any 32-bit linux install to verify that the code actually works.
I'm not sure if 32-bit linux is even used - at least on any desktop platform with sufficient graphics hardware to make use of renderdoc. Does it actually make sense to support 32-bit linux? Even 32-bit windows is almost gone, I only really support it because many people still default to building 32-bit applications.

32-bit Linux is still used, at least checking the download stats for Godot Engine 3.0 (which requires OpenGL 3.3 support), ~10% of the Linux downloads are for the 32-bit build.
I agree that it's likely not the main platform renderdoc users will use, but at the same time it doesn't make much sense (yet) to drop 32-bit support in an application if it can build on 32-bit out of the box. Most Linux distros won't package 64-bit only applications, as they thrive (again, for now) to provide the same level of support for 32-bit and 64-bit users.
I'll work on a patch, if all that's needed is a bits check, it shouldn't be too hard to implement.

Fair enough, if there are systems out there then like you say there's no reason to drop it. I'm just surprised that there is such a high proportion of users, since going by steam survey numbers that's 10x higher than windows even.
I'd appreciate a patch, thanks!

I'm just surprised that there is such a high proportion of users, since going by steam survey numbers that's 10x higher than windows even.

Yeah I find it surprising too. But it's similar for our Windows builds, 15% of Windows users download the 32-bit build for Godot Engine. I guess both Windows and Linux users might download 32-bit builds by habit more than by necessity (which is a terrible idea on Linux, as it's much easier to run a proper 64-bit build than a 32-bit one...).
So yeah, it's a bit of a chicken and egg problem.. Do people use 32-bit because we provide it, or do we provide it because they want to use it? :D


Flutter 48.1.2 plugin is not installing in Android Studio

Hi,
Flutter 48.1.2 plugin is not installing in Android Studio. It keeps asking me to configure plugin after installing the plugin and restarted the IDE.
Android Version: 4.0.1
Here is my flutter doctor -v
[√] Android Studio (version 4.0)
• Android Studio at E:\Android\AndroidStudio4.01
• Flutter plugin version 48.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
Between I am using custom idea.properties. Any help would be appreciated.

Hi @pluzmedia
Following the indication of jetbrains' Flutter plugin, the correct way to address the problem is to open an issue in the dedicated repository.
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


Feature: Whitelist certain processes from Microphone/Webcam Active Registry Key

Is your feature request related to a problem? Please describe.
There are some applications where my microphone will be active, but I won't actually be on a phone call or recording.  I'd like to be able to whitelist those applications.  This was accomplished in sleevezipper's HASS Workstation here
https://github.com/sleevezipper/hass-workstation-service/issues/32
Describe the solution you'd like
Either a way to whitelist, or a sensor for the specific application using the microphone.
This was accomplished in sleevezipper's HASS Workstation here
https://github.com/sleevezipper/hass-workstation-service/issues/32
Describe alternatives you've considered
Listed above.
Additional context
None

I don't think hass workstation actually accomplished/implemented it, I don't even think they got around to fetching the actual process name.
But it's not hard to do, I've put it on the list; hassagent-138

They definitely did accomplish it.  They didn't have a whitelist functionality, they just had a sensor for all the processes using the microphone/webcam

Weird, didn't see that in their code. Anyway, that part's implemented in HASS.Agent as well (latest beta).


convolve2d real arrays

Hello,
After discussion  #15204
Here is a code to deal with the convolution using FFT of two 2D real arrays. It is mostly inspired from the scipy.fftconvolvefunction.  One use-case & test of this function is available on Colab  HERE with the JAX 0.4.6 version (this is the current one at least today). For sure my code is not the best one. Feel free to improve it.

I do nit know if the second array in2 can be smaller in size than the first one
for sure the complex-complex case would need some adaptation
finally the next_fast_len available in scipy  would improve the computation of the "good" FFT size.

@jax.jit
def convolve2r(in1,in2):

  # suppose
  # in1 = jnp.asarray(x1)
  # in2 = jnp.asarray(x2)
  #  "assert" in1.ndim == in2.ndim == 2
  #  "assert" in1.size == in2.size
  #  "assert" in1.dtype.kind == 'f' and in2.dtype.kind == "f"

  axes = range(in1.ndim)

  s1 = in1.shape
  s2 = in2.shape
  shape = [s1[i] + s2[i] -1 for i in range(in1.ndim)]

  # crude next_fast_len equivalent with just power of 2
  fshape = 2**np.ceil(np.log2(np.array(shape))).astype('uint16')

  fslice = tuple([slice(sz) for sz in shape])

  sp1 = jnp.fft.fftn(in1, fshape, axes=axes)
  sp2 = jnp.fft.fftn(in2, fshape, axes=axes)
  conv = jnp.fft.irfftn(sp1 * sp2, fshape, axes=axes)
  conv = conv[tuple(map(slice, shape))]   #conv = jax.lax.slice(conv,(0,0),(shape))

  def _centered(arr, newshape):
    # Return the center newshape portion of the array.
    newshape = np.asarray(newshape)
    currshape = np.array(arr.shape)
    startind = (currshape - newshape) // 2
    endind = startind + newshape
    myslice = [slice(startind[k], endind[k]) for k in range(len(endind))]
    return arr[tuple(myslice)]

  return _centered(conv, s1)

[X] Check for duplicate requests.

Thanks! JAX can't accept code contributions without a CLA, so the best way to proceed if you wanted this pulled into the JAX codebase would be to open a Pull Request. See Contributing Code using Pull Requests for some information on this.


itemClick item 点击事件怎么监听

Is this a general databinding issue or question? You are more likely to get a
response from somewhere like
StackOverflow.
Issue
Please be as detailed as possible and include a (formatted) stacktrace if
relevant. A sample project that reproduce the problem goes a long way!
Feature Request
Please give an example use-case on why the feature is useful. Keep in mind the
scope of this project is to bind data to RecyclerView/ListView/ViewPager etc,
not to add additional features to those views.

Thank you for reporting your issue. In order to look into it, can you please provide a sample project and clear steps to reproduce?

就是我想实现单个item 点击监听，没有看到有说明文档

The sample app has click listener examples https://github.com/evant/binding-collection-adapter/blob/master/app/src/main/res/layout/item.xml. You might be able to get more help on a place like stack overflow.

dom跑不起来，想问下，是不是还要写adapter

bindExtra 可以绑定一个监听器

很简单啊，bindExtra


Biocfixes

You are sure about the change from dontrun to donttest? I mean bioconductor is not dogmatic about this, and it just causes a NOTE and not a WARNING.

You are sure about the change from dontrun to donttest? I mean bioconductor is not dogmatic about this, and it just causes a NOTE and not a WARNING.

It is optional. Notes are just disturbing on the screen but I can live with it easily if there are reasons to ignore, and we jointly decide to do so. No strong opinions here. I am not sure if dontrun has so notable advantages that it would deserve to be kept. But if it is preferable, we can stick to it.

I would like to avoid dontrun, but then the examples are run and do take ages to run. For me this a waste of time and resources, especially, if I think about the bioconductor test machines. And if we dont test what is the point in running the examples in the first place?

Fair enough. Let us save some CO2 and keep dontrun.


SM-57: Create store endpoint for Reparation Request

Closes #57

Codecov Report

Merging #88 (54e5285) into acceptance (d66679a) will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             acceptance      #88   +/-   ##
=============================================
  Coverage         77.29%   77.29%
  Complexity          123      123
=============================================
  Files                48       48
  Lines               392      392
=============================================
  Hits                303      303
  Misses               89       89

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 d66679a...54e5285. Read the comment docs.


Clear inheritedAccessControlContext of threads shared by ExecutorService

Threads started by ExecutorService would have Protection Domain of inheritedAccessControlContext loaded by our classLoader.
Suggestion to Replace AccessControlContext since we already replaced ClassLoader

Observed in:

Oracle 1.8.0_221
OpenJDK Runtime Environment Corretto-<IP_ADDRESS>

Thanks for the PR!


fix: add sideEffects: false to react-error-overlay

This allows us to leave the import in the code, and webpack will still tree shake it out.
Verified by grepping for startReportingRuntimeErrors in the resulting bundle.
Note that this is usage outside of react-dev-utils.

Docs: https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free

Why have a bot autoclose PRs that hasn't been acknowledged by the maintainers? Not the friendliest thing in the world (I personally don't really care, but it can be disheartening to beginners, methinks)
/cc @Timer mind taking a look at this?

What bundle do you refer to?

The dev bundle.

Yes, they're identical 🙂
$ yarn create react-app myapp
$ cd myapp
$ yarn start &
$ curl -s http://localhost:3000/static/js/bundle.js | md5
c2e99be9db96e20f22b9bd578cc80fea
$ curl -s http://localhost:3000/static/js/0.chunk.js | md5
07e94a964f183f6edaee07cb113c1e03
$ curl -s http://localhost:3000/static/js/main.chunk.js | md5
09ec1827050bed667003a85530d36ac4

# Change package.json of error overlay, and restart server

$ curl -s http://localhost:3000/static/js/bundle.js | md5
c2e99be9db96e20f22b9bd578cc80fea
$ curl -s http://localhost:3000/static/js/0.chunk.js | md5
07e94a964f183f6edaee07cb113c1e03
$ curl -s http://localhost:3000/static/js/main.chunk.js | md5
09ec1827050bed667003a85530d36ac4

can't get CI to pass, YOLO


Adding Animated icon in Navbar and Footer

Fixed issue no #201
https://github.com/TechNodes2-0/ElectiveHub/assets/137484958/497327cb-b975-46f3-9cb7-b1dcd2d129b7

Current behavior

Proposed changes

Checks

[ ] All commits in this Pull Request are signed and Verified by Github.

conflicts are resolved please merge it


time: add wasip1 files

Add wasip1 files to the time package.
When writing this, I found out the horrifying fact that wasip1 doesn't specify what time zone the runtime is using. This will be corrected in wasip2, but for now we can make an assumption that it's using UTC, as that's what wasmtime, wasmer, and wazero use for clock_time_get on the realtime clock.
The list of files to read from also doesn't make sense in wasip1 (there's no consistent platform filesystem layout, runtimes can and will define their own filesystems with their own semantics), so it is left with an empty slice to satisfy the compiler.
Change-Id: Ib1db8e956a4ea13748260969d20f0e141fa1db73

This was a result of me somehow losing a commit 🤔. Thanks for testing it!


Nativescript Adapter issues

Is your feature request related to a problem? Please describe.
Having troubles using the native-script adapter. The App doesn't start, on compilation, I get an error  uninitialized variable in ios and android just crashes without finishing the build
Describe the solution you'd like
Can there be a different storage adapter since the open source version of the sqlite plugin works on ui thread hence performance issues and i believe the crushes might be from there though not really sure
Describe alternatives you've considered
A file Storage like loki.js or any other reasonable file storage system for javascript
Additional context
Great plugin. Thanks for that..

loki.js is an in memory store only, as far as I know it doesn't support any persistence.
I feel like I can't test nativescript enough, every time I release a new version of the plugin folks are opening a new issue for it in no time.
I just made a new storage backend for nodejs, snap-db.  Shouldn't take too much trouble to port it to nativescript, react native or even cordova to replace the SQLite plugins I'm using on all those platforms for nanoSQL.  This will let us have performant database persistence without any native code.  Should be far more robust.

Thanks for the quick response. I see snap-db is an in-house project is there an ETA for possible integration. Also if there is any help I can provide. Thanks

After doing some research Nativescript doesn't have any file append methods, doesn't have any filesystem streaming and also doesn't have position/length based file reading. It's surprising to me that they took the time to build a filesystem module and didn't include these features.
A majority of these features are needed for SnapDB to make sense, it seems the best you could do without building your own native modules is a simple JSON file store.
Putting together a new adapter with a simple JSON data storage would be very simple, should be doable within a week or so.


TypeScript (1/n)

This is an initial, work-in-progress branch that replaces Closure Compiler type checking with TypeScript type checking.  The first phase of this work will be to replace our custom type annotations with those understood by tsc.
This branch will transform the module:ol/foo/Bar~Options types in an automated way.  For example, say we currently have a typedef in ol/foo/Bar.js:
// in ol/foo/Bar.js

/**
 * @typedef {Object} Options.
 * @property {string} bam A string.
 */

Currently, we use that typedef in another module like this:
// before in ol/foo/Baz.js

/**
 * @param {module:ol/foo/Bar~Options} options Some options.
 */
// ...

After this change, we will "import" the type and use it like this:
// after in ol/foo/Baz.js

/** @typedef {import("./Bar.js").Options} _ol_foo_Bar_Options_ */

/**
 * @param {_ol_foo_Bar_Options_} options Some options.
 */
// ...

We can follow up this change with hand edited type names (e.g. BarOptions instead of _ol_foo_Bar_Options_).

Looks like we will need to differentiate between imported typedef and imported classes.

@Turbo87 - it would be great to have your help.  We need to make the change to class syntax first (see #8385).

Looks like we will need to differentiate between imported typedef and imported classes.

I think you don't need to declare a @typedef for classes, typescript handles the class type checking with the classic import.
To me
/** @typedef {import("./Collection.js")} _ol_Collection_ */

is already handled by
import Collection from "./Collection"

then you can use {Collection} for type checking.

/** @typedef {import("./Bar.js").Options ol_foo_Bar_Options */

I think
import {Options} from "./Bar.js"
/**
 * @param {Options} options Some options.
 */

works as well

We still need the comment style import where we only use the type in a comment (and only code style import where we use the import in code) if we keep the same linter rules.
The comment style import works for classes when using class syntax in the other module.  There may still be issues to work out, but the transform here and the work in #8385 is going in the right direction.

Ok, I've found an import comment syntax that will work now that we have proper classes.  The key is to be explicit about default exports.  So, when working with a type from another module, these are two options:
Options 1 (local typedef):
/** @typedef {import("./Foo.js").default} Foo */

/**
 * @param {Foo} foo The foo.
 * @returns {string} A string.
 */
export function getBar(foo) {
  return foo.getBar();
}

Option 2 (inline import):
/**
 * @param {import("./Foo.js").default} foo The foo.
 * @returns {string} A string.
 */
export function getBar(foo) {
  return foo.getBar();
}

I'm partial to Option 2 since I think it will make documentation slightly less hard.  I'll update the codemod to rework our comments to match this style now.
The other semi-blocker I've run into is @link parsing.  TypeScript 3 has a fix for @link parsing (see Microsoft/TypeScript#25206), but this is not yet in a stable release (Microsoft/TypeScript#16498 is the broader issue).  I've updated our dependency to<EMAIL_ADDRESS>so our npm run typecheck script can work.  But editors won't yet use this version, so it would be nice to have a workaround.  I'm inclined to replace our @links with markdown links wherever they occur in a @typedef.  I'll check now to see how many of these are links to other types - these would be more fragile to change (since we may change the doc anchor names).

Another thing to ticket: it looks like our grouping with parens doesn't work in function typedefs.
For example, instead of
/**
 * @typedef {function((string|undefined)): (string|undefined)} SomeType
 */

We need to do
/**
 * @typedef {function(string|undefined): (string|undefined)} SomeType
 */

I've opened Microsoft/TypeScript#25779, but I think it would be good to start getting rid of the unnecessary ( ).

@tschaub I've fixed some errors detected by typescript, see https://github.com/tschaub/openlayers/pull/2

Thanks @fredj.  It looks like those changes could all be made against master.  To the extent possible, I’d like to fix the issues we encounter here as separate PRs.  And I’ll keep rebasing this.

@tschaub I've created a pull request against master, see #8402

Ok, the next blocking(ish) issue is that valid-jsdoc treat's TypeScript's imported type syntax as invalid.  I've proposed eslint/doctrine#216 as a fix.  If something like this doesn't make its way into ESLint, we can create a custom valid-tsdoc rule with the change.

@tschaub Our nightlies haven't been publishing because npm reset our tokens. I'll update this thread when we get that fixed.

@weswigham pointed out in my discussion with him that Typescript also checks jsdoc for validity, so valid-jsdoc may be redundant. I'm not sure how much overlap there is between the two checks. valid-jsdoc might still provide some errors that Typescript doesn't.

@weswigham pointed out in my discussion with him that Typescript also checks jsdoc for validity, so valid-jsdoc may be redundant. I'm not sure how much overlap there is between the two checks. valid-jsdoc might still provide some errors that Typescript doesn't.

Thanks for the updates @sandersn - and good pointer about checking doc validity with tsc.  When we get this first round of Typescript work in, we can adjust our linting rules.  I'll check to see if there are checks we still want to keep from valid-jsdoc.  It would be ideal to use a single tool for type checking and doc extraction.

Looks like our next blocker is lack of @enum support (Microsoft/TypeScript#18161).

Where can i find typescript related tickets, chores that need to
be done moving the publication of ts-index files from within ol along?
Is there a central issue to keep track of the ts-developments in ol?

@OSHistory Thanks for willing to help out. I just created #8448 to track the effort. Any comments and contributions are welcome.

@tschaub What does the @enum annotation do to the annotated object literal? As far as I can tell it just makes sure that the properties always get their literal type. That is,
var e = {
   True = ‘True’,
   False = ‘False’
}

Has the incorrect type { True: string, False: string }, but would have type { True: “True”, False: “False” } if annotated with @enum. Is that correct?

@sandersn the @enum tag serves two purposes with the Closure Compiler.

When used in member expressions, the property must exist in the object.
Values are type checked where used.

For example:
/**
 * The geometry type.
 * @enum {string}
 */
const GeometryType = {
  POINT: 'Point',
  LINE_STRING: 'LineString',
  POLYGON: 'Polygon'
};

/**
 * @return {string}
 */
function validUse() {
  return GeometryType.POINT;
}

/**
 * Inexistent enum element.
 * @return {string}
 */
function invalidUse1() {
  return GeometryType.FOO;
}

/**
 * Inconsistent return type.
 * @return {boolean}
 */
function invalidUse2() {
  return GeometryType.POINT;
}

It isn't clear to me yet how this maps to TypeScript's enum.

@tschaub I don't think it does map to Typescript's enum. From typescript's perspective, all @enum adds is making the object literal "closed" -- typescript allows all JS object literals to have any property, but only allows reference to declared properties in TS.

@tschaub Do you have a script or something that converts the module:/path/etc references to import("../path/etc") references? I want to play around with my addition of @enum to the Typescript compiler but its swamped by parse errors right now.

@sandersn I neglected to update the branch after rebasing.  The latest commit in my ts branch has the TypeScript import types.  Those changes are generated by running this on master:
# ts.js from https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e
jscodeshift --transform ts.js src

(This is overkill for jscodeshift, but I was initially thinking it would involve more ast transforms.)
Let me know if there is anything I can help test out.  And thanks a ton for your ideas & help with this!

@tschaub Did you find out anything about simple typedefs like
/**
 * @typedef {Array<number>} Coordinate
 */

I'm not able to use or import those. It will probably be easiest to get rid of those and just use the underlying type instead.

I'm not able to use or import those. It will probably be easiest to get rid of those and just use the underlying type instead.

Looks like I did something else wrong. These work fine now.

Microsoft/TypeScript#26067 has been merged and published under the @latest tag,, so we should be able to start fixing types in our code base, based on this branch's output from tsc --pretty.

With the latest typescript@next (3.1.0-dev.20180830), we still get a lot of spurious errors reported from npm run typecheck.  But some of them are things we can address here.  Others depend on upstream TypeScript fixes.  Here is a breakdown of a few of the error types:

Incorrect types.  The XML parsers use Node all over the place.  In many places, the functions really only work with Element or HTMLElement.  Here is an example error of this type:
src/ol/xml.js(408,17): error TS2339: Property 'firstElementChild' does not exist on type 'Node'.

Multiline types.  TypeScript does not properly parse JSDoc type expressions that span more than one line.  See Microsoft/TypeScript#26528 for a proposed fix.  Until this addressed, most of the errors we get from npm run typecheck have to be ignored.
Here is an example of a multiline type expression (from ol/Tile.js):
/**
 * @typedef {function(import("./tilecoord.js").TileCoord, number,
 *           import("./proj/Projection.js").default): (string|undefined)} UrlFunction
 */

And here is an example of the resulting error (when calling a UrlFunction with three args):
src/ol/tileurlfunction.js(85,16): error TS2554: Expected 4 arguments, but got 3.

Typedefs whose names are not on the same line as the tag.  This is part of the broader problem of skipping newline + asterisk in TypeScript, but this is an issue that we could choose to fix in the library (by moving names onto the same line as the tag and type).  We could also propose a fix upstream that is similar to the fix for multiline @param parsing.
Here is an example of a typedef whose name is not on the same line as the tag (from ol/style/Style.js):
/**
 * @typedef {function((import("../coordinate.js").Coordinate|Array<import("../coordinate.js").Coordinate>|Array<Array<import("../coordinate.js").Coordinate>>),import("../render.js").State)}
 * RenderFunction
 */

And here is an example of the resulting error:
src/ol/style/Style.js(186,15): error TS2304: Cannot find name 'RenderFunction'.

It would be great if people wanted to start fixing the errors of the first type (improper use of Node in the XML parsers).
I'll look into a fix for the third type of error (typedef names on a different line than the tag).  I don't think it is necessarily worth changing these in our library, since the broader multiline JSDoc parsing issue needs to be addressed if we are going to be able to use TypeScript for type checking.
If anybody wants to weigh in on the TypeScript multiline JSDoc type parsing issue, please see Microsoft/TypeScript#23667 and the proposed partial solution in Microsoft/TypeScript#26528.

Here is a proposed fix for the "typedefs whose names are not on the same line..." issue: Microsoft/TypeScript#26775.

I ticketed the issue with XML formats in #8560.

Getting closer :)
$ npx tsc | wc -l
    1665

Most of the remaining issues are due to multiline types.
There are also a number of errors due to our use of @abstract.  It looks like TypeScript is not parsing these.  For example, we get this error:
src/ol/webgl/Shader.js:26:15 - error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.

26    * @return {number} Type.
                 ~~~~~~

For this code in ol/webgl/Shader.js:
  /**
   * @abstract
   * @return {number} Type.
   */
  getType() {}

I'll ticket this upstream.

Most of the remaining issues are due to multiline types.

This might not have been true.
I've updated Microsoft/TypeScript#26528 so it now works for multiline types (including multiline function signatures).  After these changes, npx tsc | wc -l is at 1509.  The good news, there is plenty of work to go around!

I ran a bash line to count the different typescript errors:
npx tsc | grep 'error TS[0-9]*' -o | cut -d" " -f2 | sort | uniq -c | sort -n
The result is:
      1 TS2363
      1 TS2555
      1 TS8024
      2 TS2425
      2 TS2447
      2 TS2557
      2 TS2684
      2 TS2719
      3 TS1345
      3 TS2362
      3 TS2694
      4 TS1005
      4 TS2540
      5 TS2351
      8 TS2349
      8 TS2367
     10 TS2416
     11 TS2551
     16 TS2352
     28 TS2554
     35 TS2306
     56 TS2355
    103 TS2304
    129 TS2345
    197 TS2322
    308 TS2339

The four most frequent are
TS2339: Property 'x' does not exist on type 'y'
TS2322: Type 'x' is not assignable to type 'y'
TS2345:  Argument of type 'x' is not assignable to parameter of type 'y'
TS2304: Cannot find name 'x'

I've updated things so we now depend on<EMAIL_ADDRESS>which includes the fix for multiline type expressions (Microsoft/TypeScript#26528).
There are still some issues parsing (e.g. @abstract parsing), but I think the majority of the issues reported by npm run typecheck would be easier to address if this were merged.
So, this is ready for review.

What's the status of getting typescript definitions for v5x (?5.3.2) This is holding up deployment of an app because of the need for some events new to v5.x.

I've generated typescript declarations for v5.3.2 using JSDoc.
This is modified JSDoc template for generating Dash docset and typescript declarations
based on openlayers JSDoc template.

@hanreev Sounds great, thanks! I suppose, you moved it to a separate repo (https://github.com/hanreev/types-ol)? I checked it out, first impression seems good. Have you checked, if your approach works with the 6.0 developments? Might be an idea to advertise your efforts in some other issues related to TS-Integration.

@OSHistory I've released beta version for openlayers 6.0.0-beta.11
https://github.com/hanreev/types-ol/tree/beta


prototype DynamicSelectedElementBinding.

Contributor Checklist

[ ] Did you add Scaladoc to every public function/method?
[ ] Did you add at least one test demonstrating the PR?
[ ] Did you delete any extraneous printlns/debugging code?
[ ] Did you specify the type of improvement?
[ ] Did you add appropriate documentation in docs/src?
[ ] Did you state the API impact?
[ ] Did you specify the code generation impact?
[ ] Did you request a desired merge strategy?
[ ] Did you add text to be included in the Release Notes for this change?

Type of Improvement

new feature/API

API Impact

Backend Code Generation Impact

Desired Merge Strategy

Release Notes

Reviewer Checklist (only modified by reviewer)

[ ] Did you add the appropriate labels?
[ ] Did you mark the proper milestone (Bug fix: 3.3.x, [small] API extension: 3.4.x, API modification or big change: 3.5.0)?
[ ] Did you review?
[ ] Did you check whether all relevant Contributor checkboxes have been checked?
[ ] Did you mark as Please Merge?

encountered a really strange question:
class Test extends Module {
      {
        val wire = Wire(new Bundle {
          val x = UInt(3.W)
          val y = UInt(3.W)
          val vec = Vec(4, UInt(3.W))
        })
        wire.x := RegNext(3.U)
        wire.y := RegNext(3.U)
        wire.vec(0) := RegNext(3.U)
        wire.vec(wire.x) := RegNext(3.U)
        wire.vec(1.U) := RegNext(3.U)
      }
    }
    aspectTest(() => new Test) {
      top: Test =>
        Select.registers(top).map(_.instanceName) should be (List(
          "wire_x_REG",
          "wire_y_REG",
          "wire_vec_0_REG",
          "wire_vec_REG",
          "wire_vec_1_REG"
        ))
    }

got error
- Prefixing on connection to subfields work *** FAILED ***
  List("wire_x_REG", "wire_y_REG", "wire_vec_0_REG", "wire_vec_REG", "wire_vec_REG_1") was not equal to List("wire_x_REG", "wire_y_REG", "wire_vec_0_REG", "wire_vec_REG", "wire_vec_1_REG") (PrefixSpec.scala:293)
  Analysis:
  List(4: wire_vec_REG_1 -> wire_vec_1_REG)

seems name plugin is not happy with this :(


fix: make sure to prefilter the flat portion of a combined knn

Closes #1561
Closes #1563

Perhaps we could make a test asserting there is a filter node as expected when doing combined KNN?

I went ahead and made a test focused on making sure that a filter is applied to the new data (prefilter or not).  It doesn't look for specific nodes though as I worry that might change with time.  It works by checking the results.  Let me know if you'd rather I put a test in looking for specific nodes.


Connection timeout for pre and post handlers and missing ssh_banner warning

Hi,
There is only one connection_timeout. It is located in the general config section. The specific honeypot types do only pass the config var through to pre and post handler.
I did it that way because i don't wanted to introduce config to pre and post handlers and to be able to have special handling in the honeypot types, just in case it is needed in the future.

I can change it if you prefer to read the config in pre and post auth handlers.

Ah fair enough, that makes sense 👍

Can you rebase the changes? They are conflicting with the other docker pull request recently 😄
Also, can you apply the timeout to honeypot-script.py too please?

Sure. But i spotted one thing which i would like to discuss before.
In honeypot-docker.py at get_post_auth_details the line details = self.get_connection_details() looks to me as it will start a second container, as get_connection_details contains the code to launch a container upon pre_auth. Looking at the logs is see 2 different container IDs showing up. This seems to be a bug which i would fix with my next commit. Do you agree with that?

Yeah, it does do this currently. It was the easiest way to allow pre-auth with one plugin, and post-auth with docker.  Happy to consider other ideas though.

Hmm, i see. pre_auth_handler and post_auth_handler do hold their own list of plugins, so a plugin instance reuse is not possible without changing that, right? I thought of doing a check on self.container in honeypot-docker.py->get_post_auth_details to omit a second container launch if one is already running for that session.

In get_post_auth_details I'll add an if to check the cfg file for honeypot-docker - pre-auth. If that is true then don't launch the new one.
I'll commit your bits then get on doing that.

Not sure that will work as post_auth_handler needs the connection details which aren't present if no second container is launched.

I think it gets passed the details in conn_details, so we just need to return that (after changing the username and password fields from spoofing.

What it gets passed is
self.conn_details = {'peer_ip':self.server.peer_ip, 'peer_port':self.server.peer_port, 'local_ip':self.server.local_ip, 'local_port':self.server.local_port, 'username':username, 'password':password}
But post_auth_hanlder wants:
self.sensor_name = returned_conn_details['sensor_name']
self.honey_ip = returned_conn_details['honey_ip']
self.honey_port = returned_conn_details['honey_port']
self.username = returned_conn_details['username']
self.password = returned_conn_details['password']

"sensor_name" (right now the container ID) would be missing in that case as the information is not available.
What about "honey_ip" and "honey_port"?

Just adding them in now, and I changed the container ID to be the hostname instead 😄

:D

Just pushing a commit now, seems to be ok for me.

hmpf. merged the upstream right now, added the new docker pid config from default and cannot start anymore. create_host_config() got an unexpected keyword argument cpuset_cpus. Need to look into that first.

@bang-uin You've to update your configuration manually (honssh.cfg) to the latest version: https://github.com/tnich/honssh/blob/master/honssh.cfg.default#L192

and maybe update docker-py?

@bang-uin update you docker-py version

@unixfox: i already done this "... added the new docker pid config from default ..."
@tnich: yeah that's my next try

Updated docker-py and got past the cpuset error but now the plugin throws an error "[PLUGIN][HONEYPOT-DOCKER][ERR] - ". I have no time now and will look later at this. Maybe just another config problem. Thanks.

@bang-uin @unixfox had same error and it was a configuration problem :)

Sounds like we might need to add some checks for whatever configuration error it is

@bang-uin Paste your configuration here.
To resolve my issue I removed the HONEYPOT DOCKER block then I repaste the default block from the honssh.cfg.default and finally I filled all the fields inside the HONEYPOT DOCKER block.

Here: http://pastebin.com/JyXQafsx
I just copy/paste the new config entries.

Removing the old docker section and replacing it by a copy from honssh.cfg.default didn't help.
I'll remove my config and copy the default one. We'll see.

Strange, here is my configuration if you need it: http://hastebin.com/ibozucevax.ini

@unixfox Which version of docker-py have you installed?
My curent version is 1.10.6

@bang-uin
root@honeypot:~/honssh# pip show docker-py
Name: docker-py
Version: 1.10.6
Summary: Python client for Docker.
Home-page: https://github.com/docker/docker-py/
Author: Joffrey F
Author-email<EMAIL_ADDRESS>License: UNKNOWN
Location: /usr/local/lib/python2.7/dist-packages
Requires: backports.ssl-match-hostname, six, websocket-client, ipaddress, docker-pycreds, requests

I don't know, but something is wrong. I've done a fresh clone from master, used the default config and just added the minimum config values to get it started using docker and the same error appears.

Did you tried to fill the same field for docker customization as me?
I hope if a field isn't fill, it isn't used for launching the container because some of them requires a recent kernel (+4.4).
I ran this Docker check if you want to compare the results:
root@honeypot:~# bash check-config.sh
warning: /proc/config.gz does not exist, searching other paths for kernel config ...
info: reading kernel config from /boot/config-4.4.0-45-generic ...

Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- apparmor: enabled and tools installed
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_DEVPTS_MULTIPLE_INSTANCES: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: enabled
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_CPUSETS: enabled
- CONFIG_MEMCG: enabled
- CONFIG_KEYS: enabled
- CONFIG_VETH: enabled (as module)
- CONFIG_BRIDGE: enabled (as module)
- CONFIG_BRIDGE_NETFILTER: enabled (as module)
- CONFIG_NF_NAT_IPV4: enabled (as module)
- CONFIG_IP_NF_FILTER: enabled (as module)
- CONFIG_IP_NF_TARGET_MASQUERADE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_IPVS: enabled (as module)
- CONFIG_IP_NF_NAT: enabled (as module)
- CONFIG_NF_NAT: enabled (as module)
- CONFIG_NF_NAT_NEEDED: enabled
- CONFIG_POSIX_MQUEUE: enabled

Optional Features:
- CONFIG_USER_NS: enabled
- CONFIG_SECCOMP: enabled
- CONFIG_CGROUP_PIDS: enabled
- CONFIG_MEMCG_SWAP: enabled
- CONFIG_MEMCG_SWAP_ENABLED: missing
    (note that cgroup swap accounting is not enabled in your kernel config, you can enable it by setting boot option "swapaccount=1")
- CONFIG_MEMCG_KMEM: enabled
- CONFIG_BLK_CGROUP: enabled
- CONFIG_BLK_DEV_THROTTLING: enabled
- CONFIG_IOSCHED_CFQ: enabled
- CONFIG_CFQ_GROUP_IOSCHED: enabled
- CONFIG_CGROUP_PERF: enabled
- CONFIG_CGROUP_HUGETLB: enabled
- CONFIG_NET_CLS_CGROUP: enabled (as module)
- CONFIG_CGROUP_NET_PRIO: enabled
- CONFIG_CFS_BANDWIDTH: enabled
- CONFIG_FAIR_GROUP_SCHED: enabled
- CONFIG_RT_GROUP_SCHED: missing
- CONFIG_IP_VS: enabled (as module)
- CONFIG_IP_VS_NFCT: enabled
- CONFIG_IP_VS_RR: enabled (as module)
- CONFIG_EXT4_FS: enabled
- CONFIG_EXT4_FS_POSIX_ACL: enabled
- CONFIG_EXT4_FS_SECURITY: enabled
- Network Drivers:
  - "overlay":
    - CONFIG_VXLAN: enabled (as module)
      Optional (for encrypted networks):
      - CONFIG_CRYPTO: enabled
      - CONFIG_CRYPTO_AEAD: enabled (as module)
      - CONFIG_CRYPTO_GCM: enabled (as module)
      - CONFIG_CRYPTO_SEQIV: enabled (as module)
      - CONFIG_CRYPTO_GHASH: enabled (as module)
      - CONFIG_XFRM: enabled
      - CONFIG_XFRM_USER: enabled (as module)
      - CONFIG_XFRM_ALGO: enabled (as module)
      - CONFIG_INET_ESP: enabled (as module)
      - CONFIG_INET_XFRM_MODE_TRANSPORT: enabled (as module)
  - "ipvlan":
    - CONFIG_IPVLAN: enabled (as module)
  - "macvlan":
    - CONFIG_MACVLAN: enabled (as module)
    - CONFIG_DUMMY: enabled (as module)
- Storage Drivers:
  - "aufs":
    - CONFIG_AUFS_FS: enabled (as module)
  - "btrfs":
    - CONFIG_BTRFS_FS: enabled (as module)
    - CONFIG_BTRFS_FS_POSIX_ACL: enabled
  - "devicemapper":
    - CONFIG_BLK_DEV_DM: enabled
    - CONFIG_DM_THIN_PROVISIONING: enabled (as module)
  - "overlay":
    - CONFIG_OVERLAY_FS: enabled (as module)
  - "zfs":
    - /dev/zfs: missing
    - zfs command: missing
    - zpool command: missing

Limits:
- /proc/sys/kernel/keys/root_maxkeys: 1000000

root@honeypot:~# uname -a
Linux honeypot 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Between we should probably create an issue for your problem instead of resolving the issue inside a pull request.

I'm pretty sure it has something to do with the environment. Anyway, you're right. Let's stop the discussion in this pull request. I'll reinstall the VM and hope the best. If i'm not able to resolve this i'll create an issue. Thanks so far.

Just for Info:
The problem seems to come from being unable to start the docker container. For whatever reason there is no error at all.  In the end i kicked the whole VM away and starting again from scratch. Now everything seems to work. Really strange. Anyway, it's working!


sql: Add information_schema.role_table_roles view

Fixes #2649

This change is

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/7f7b4df1f2862f830321e081b3c570f20dc349e1/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/bb281a806f9ff01e108c9fc4a46e7789d6a5d2c6/

LGTM

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/da68971c50538b8ac9ad79141f2fc7c4813d8d6a/


Error in stockfish\models.py in del, _put

I did not even use del I dont know why it is error'ing there.
The exact line which is error'ing is, stdin.flush()
It gives OSError: [Errorno 22] Invalid argument.
I have a different computer where I do not get the error.
I dont understand.

Hi, not sure why it's giving you that error. For the del method though, it will generally be called implicitly once you're finished with your object of the Stockfish class (so e.g., when your python script finishes). It will run without you calling it.
 Maybe that's what's causing the issue.

hi brother. ye i have the obejct inside a loop xd. so he overwrites it all the time? and probably does the del function. no i dont use the kill stockfish at all. BUT bro I now updated from python 3.7 to 3.9 and also used stockfish 14 instead of 11 and also I use the stockfish del function after the loop. now everything works. these are a lot of updates to i dont know which one solved it :D


Preactions not being considered for save?

This is happening with version 2.0.0 of spark-redshift.
We use spark-redshift to migrate some data from MySQL to Redshift. One of the table contains rows of daily aggregated data, so, to avoid data duplication, we use a preaction in the form "DELETE FROM table WHERE date=" to already existing data for the date being migrated in the statement that writes to the destination dataframe.
This has been working nicely for some time now, but today we found yesterday's data in the table  duplicated. We occasionally have network issues so the migration runs in a Scala Try{} construct, and from the log I can indeed see that data migration executed twice yesterday.
So I checked the spark-redshift source code, and if I am not mistaken, preactions and postactions are only valid for Load and not a Save. Can you confirm this?

Or maybe not. I just saw that readshiftWrite calls redshiftLoad, so I guess preactions are considered while saving too?


set data source to cap-static bucket

The r2 bucket set to read data from for the pdf_splitting operation was erroneously let to the unredacted bucket.  This sets it to point at the cap static bucket.
Additionally updates the test file and adds more thorough commenting to the tests to make it easier to follow

I think this needs an additional change to tests/conftest.py, and I thought of one other thing -- since we might be writing the results to a separate bucket, maybe introduce another bucket/env var.


Add integration test proving plugin works with gradle 7.1.1

FIY, I'm going to update the doc as the compatibility information is wrong: https://gatling.io/docs/gatling/reference/current/extensions/gradle_plugin/#compatibility


Please add "Quit" button to main menu

Hello,
ConnectBot has a main menu which offers the following options/buttons:

Sort by color/name
Manage Pubkeys
Colors
Settings
Help

Could you please add another button/option called "Quit" or "Exit" to the main menu which disconnects from all hosts and closes ConnectBot?
It would be much appreciated.
Regards

I think "Disconnect all" would be useful, but not a "Quit" button. That goes against Android UX guidelines.


Using the @test command to trigger tests

This is a first commit to change the current way of testing, to a newer method which will use the Q# @test functionality.
There is also an update to the update script. This will make sure that the text which explains how to install IQsharp uses the latest version in the example.

It is my understanding that https://github.com/microsoft/QuantumKatas/pull/468 is going to remove most, if not all, instructions on updating IQ# to a specific version in the notebooks, so a part of this change might become obsolete. @rmshaffer, could you share your plan for #468?

It is my understanding that #468 is going to remove most, if not all, instructions on updating IQ# to a specific version in the notebooks, so a part of this change might become obsolete. @rmshaffer, could you share your plan for #468?

I believe @vivanwin's approach here is better than the one I had started in #468. There is still a possibility that version mismatches could cause problems, since there is a version of the Katas specified in the .csproj that may not match the installed version of IQ#. We could discuss further, but I'm inclined to change my PR to follow the pattern proposed here.

@vivanwin I believe I've identified the root cause of the CI failures here. It appears to be a bug in IQ# -- the kernel is reporting itself as ready to execute cells too early, before the packages have finished loading. (It's a timing issue, and unfortunately the CI tries to execute the first cell immediately after the kernel reports itself as ready.) There's a simple fix, but unfortunately it's in IQ# code and wouldn't be available until the next release.
Since it's a timing issue, I am hoping this can be worked around for now by keeping the %package Microsoft.Quantum.Katas::0.12.20082513 and/or the %workspace reload commands in the notebook, so that the packages have time to finish loading before the first %check_kata command is executed. Can you try that?

If this is indeed the case, it's unfortunate, I was looking forward to getting rid of those cells :-(
Here is what I would do in this case:

Do the @Test change alone, modifying the projects but not the notebooks. Since the master is already on the latest IQ# version and our update instructions ask to have the installed IQ# version match the notebook version, the instructions should be fine (there is a silver lining to the fact that we never got to updating the update instructions to suggest only matching 0.12 part of the version!)
Separately, double-check the installation instructions in the main README to see whether they reflect our latest state. At a glance, this section lists packages that individual tutorials need installed, and it should include numpy and matplotlib for QuantumClassification tutorial.
(optional) Separately, update all of the per-notebook update instructions to include conda information. I'll admit I'm a bit reluctant to do that, since these cells will go away in less than a month, but for the sake of completeness we can do that.
(at some point between now and the next QDK release) I think it's time to create a troubleshooting guide for the katas: if you have error X, it's probably reason Y.
(after the next QDK release) Finish the change removing the %package and %workspace cells, together with the per-notebooks update instructions, and replace them with a link to the troubleshooting guide.

What do you think?

@vivanwin I believe I've identified the root cause of the CI failures here. It appears to be a bug in IQ# -- the kernel is reporting itself as ready to execute cells too early, before the packages have finished loading. (It's a timing issue, and unfortunately the CI tries to execute the first cell immediately after the kernel reports itself as ready.) There's a simple fix, but unfortunately it's in IQ# code and wouldn't be available until the next release.
Since it's a timing issue, I am hoping this can be worked around for now by keeping the %package Microsoft.Quantum.Katas::0.12.20082513 and/or the %workspace reload commands in the notebook, so that the packages have time to finish loading before the first %check_kata command is executed. Can you try that?

Would the same issue affect the IQSHARP_AUTO_LOAD_PACKAGES environment variable?

Would the same issue affect the IQSHARP_AUTO_LOAD_PACKAGES environment variable?

That's a great point, @cgranade! I hadn't thought of that. That code path is separate and should not be affected by this issue.
@vivanwin, to try this out:

Re-apply your notebook changes. (Sorry!)
Add the following line to validate-notebooks.ps1, just before the call to jupyter nbconvert:$env:IQSHARP_AUTO_LOAD_PACKAGES = "Microsoft.Quantum.Standard,Microsoft.Quantum.Katas,Microsoft.Quantum.Xunit"

That should ensure that the listed packages have all been loaded before executing the first cell.
In my testing this causes the kernel startup to take a bit longer (as would be expected, since it's loading additional packages), and so in order for CI to pass reliably you may also want to increase the startup timeout by adding something like:
--ExecutePreprocessor.startup_timeout=180
to the jupyter nbconvert command.

@rmshaffer Is this change necessary for adopting @test attribute? If not, I'd really prefer to keep it separate from this PR, as I suggested in this comment. I know it is really tempting to do all improvements at once, but they all have the potential to be breaking, so mixing them together makes troubleshooting that much harder. It's a better engineering practice to do unrelated changes separately, one at a time.

@rmshaffer Is this change necessary for adopting @test attribute?

No, it's not. It's only necessary for removing the %package and %workspace reload cells.
Yes, agreed, we should do this change separately (and I will investigate that as part of my PR #468).
@vivanwin, please disregard my previous suggestion, I'll try that out myself! 😊


Custom Stages won't work for me well

Describe your problem here.
just look at dis

can anyone help?
yes i made a setting for no backgrounds it works with other stages..
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
I have a NoBG option

try
function onCreate()
makeLuaSprite('room', 'room', -600, -300);
setScrollFactor('room', 0.9, 0.9);
addLuaSprite('room', false);
end
idk what is NoBG for tbh. the code above just adds the room

try
function onCreate() makeLuaSprite('room', 'room', -600, -300); setScrollFactor('room', 0.9, 0.9); addLuaSprite('room', false); end
idk what is NoBG for tbh. the code above just adds the room

dosnt work . - . ?????????

i need to see the files in order to see if your location of files are correct

noBG is a option i made that removes the BG and never loads it for preformance

the locations match up like other files

so why did you put room in nobg for?

cause usually it looks like this

i put room in if not noBG cause that means it will only load if noBG is off so that means that there will be "No BG"

i just put the room file in the mods folder

so its like lowquality?

yes and it works when i put it in normal stage

its just like putting room inside not lowquality

yes

lemme think

idk but your suppose to add the “addLuaSprite” in the noBG too

it maybe try restarting the whole game and loading it by cmd

if none of them works then idk anymore. my brain smol

i removed the other functions a while ago it still dosnt work at all

i dont think you need the close but if that also doesnt works then i cant help anymore. brains overheating man

oofies :(

lol

gl with your code! eventually, it will work

the making of the lua sprite should be
makeLuaSprite('room','folder name here!!/room', -600,-300) if its in a folder, if that helps

Missing texture

nothing works -3-

if its working now then you can close the issue


My branch

I have created CMakeLists.txt for building your library via cmake,
and also I have created spec file for Fedora/CentOS. I think my
changes will be useful.

I think your work will be useful when decision is made to add cmake for building the examples. Right now jsmn got changed into header only lib.


From serializable option optional option

This pull request includes updates to the fromSerializableOption function, version bump, and additional test cases to improve the resilience and functionality of the fromSerializableOption function.
Functionality Updates:

Changed the function signature of fromSerializableOption to accept a possibly undefined object and return a None type if undefined is provided. This change makes the function more resilient to bad types passed as parameters (src/option/index.ts).

Version Update:

Updated the package version from 0.4.1 to 0.5.0 in package.json to reflect the new changes.

Documentation:

Added a new section in CHANGELOG.md to document the changes in version 0.5.0, including the updated function signature and improved resilience of the fromSerializableOption function.

Testing:

Added new test cases in src/option/option.test.ts to ensure fromSerializableOption returns a None type when called with no object, undefined, or non-Option types.

Coverage after merging fromSerializableOption-optional-option into master100.00%
Coverage ReportFileBranchesFuncsLinesUncovered Linesoption   index.tsN/A100%100%result   index.tsN/A100%100%


Fix and clean up examples/lighting-app/efr32 RPC build

Remove all of the duplicate include_dirs that were needed due
to missing dependencies & improper use of private deps.
Add back an retargetserial.c file which is needed for this build. It
was removed in fc59bd2fdb ("[3rd-party] update openthread and
ot-br-posix (#5062)")
Define the pigweed_lighting debug API in a common place. This
means we need to move the enable_pw_rpc to that place, too.
Add missing bits to CHIPProjectConfig.h needed after c99bef7884
("[EFR32] BLE Advertissement fixes and change default pin code
(#5503)")

Tested via
gn gen out/with_pw_rpc --args='import("//with_pw_rpc.gni")'
ninja -C out/with_pw_rpc

Note it is still broken due to OpenThread serial conflict.

@jmartinez-silabs Does this unblock your fix?

@mspang Yes I think so. I will fetch this and try the rework of the uart driver

@mspang Can you rebase to confirm the build fix in mainline fixes this?


Clarify advantages over conventional approach in documentation

I got a really dumb question.
So I found this repo/extension from the latest VSCode release notes. I guess the extension's selling point is its use of debugpy, so I went over to their repo but came up short as well in search of an answer to what I was wondering about:
What does this extension do that's not already possible?
I don't have it installed or ever used, to my knowledge, debugpy, and have "always" been able to hit F5 in Python projects and have all the fabulous tools I could want available (breakpoints, conditional breakpoints, step in/out/over, step into 3rd party code, configure breaking on exceptions, debug asyncio/threads, ...). There's no feature I am missing, and also no feature I see this extension or debugpy has available over the conventional approach. All I have installed is the "normal" Python extension.
Is this extension a move to support the Debug Adapter Protocol? (Don't know if the Python extension uses that already) Or something else entirely? Am I missing something?

@alexpovel The intent of this extension is to allow debugpy (bundled implementation) to be independent of python extension. A issue we commonly see when versions of python are deprecated (like 3.7), and python extension moves forward, people lose the ability to debug with older versions of python. They either have to pin the python extension and not receive any new capabilities of the python extension or upgrade their python environment which might not be possible. With this extension, you only get the debugger features, so you can pin it to versions that worked for you. While keeping the main python extension on latest.
Second thing that this does is platform specific builds of debugpy. In the main extension we bundle all debugpy builds for all platforms in a single extension package. This extension only bundles bits relevant to each platform, so you only get the bits that you would use.
Third, this extension implements all the same functionality as the main python extension. New features will be added here. Eventually the features in main will switch over to use this.

Thanks, appreciated!

I think this should be stated in the readme. I had to search quite a while to find this issue to see what the extension is actually about.


Speedup WISE_get_lightcurves

Suggestions for how to speedup this section:

Work with the parquet call:

is there a way to vectorize finding which partition an object is in?
potentially make a dict or pandas df with hp.query_circle
goal is to be able to do a sort of groupby on the coords of the objects
This is a general question of how to efficiently search the whole sky for a large list of coords that will benefit other use cases

Take all the other things out of the coordinate search

flux conversion

make a list of result_table and concatenate that into one object either astropy table or a data frame.

Think about weather or not we have a dfsingle.append or collect all the dfsingles and append later

This might already be changed as a ripple effect of the above suggestions.

goal is to be able to do a sort of groupby on the coords of the objects

Slight clarification that the goal is to find the partition each coord is in, then groupby the partitions so that we only have to load each partition once and can then find all objects that are in there.

I briefly checked to see if I could tell why pan-starrs search is so much faster than WISE or ZTF, and try to learn from that successful search.  Pan-Starrs search currently is done in a for loop over each object, so not sure why it is so much faster, other than that the pan-starrs API must be faster?


Release 3.2.0

Questions
Answers

Description?
Release 3.2.0

Type?
Release

BC breaks?
no

Deprecations?
no

Fixed ticket?
...

How to test?
Complete suite

Some license headers are outdated ⚠

Some license headers are outdated warning

I fix it

@matks #92

@Progi1984 I'm sorry, I dont know how you fixed the license headers but they are wrong. There is even some OSL license headers mixed in the module.
I fixed it in https://github.com/PrestaShop/ps_linklist/pull/94/ using php-dev-tools

@matks #94 merged. Thanks

I check the list of PRs 🤔 it seems it's only bug fixes or "project stuff" (license header, dev tools ...) ? did I miss something as it's a minor version ?

Thanks @Progi1984


Question: Is there a way to build with relative paths?

By default, Gridsome loads all assets from the absolute root of my site.
I can add pathPrefix to move that to a subfolder (e.g. mysubfolder), but all assets are still loaded from an absolute url: /mysubfolder/....
Is there a way to have Gridsome to load relative paths?  (also all of Gridsome's assets and css)?

No, unfortunately :) It might be doable with the <base> HTML element, but it would require some changes in the webpack config, etc, if it is possible.

Can I add a feature request for this?
I think this would be a very valuable addition to work out of the box!

+1

Please add, it's necessary for IPFS deployment!

@tiptronic did you find a solution for this I am facing the same issue? Thanks

Hi @OliPerraul Yes - I used another framework :)
I am really bored, if basic functionality is ignored and they try to sell it as 'feature'...
I like Gridsome pretty much, but I simply don't have to fight for such a basic thing...
-> I'm back, when it works... (if ever)

Balls.

Can we add some prio to this? I am blocked in deployment in this moment. Happy to help but would need some overview.

+1 How is this not already implemented? Why assume users never ever host from a subfolder?

We are building out landing pages for our clients that will either be downloaded by them, or deployed to their servers by us. Therefore, it isn't realistic for us to assume the eventual path of the landing page itself.
PLEASE make it possible to build with relative paths.
In the meantime if anyone has a solution for our problem that doesn't involve pulling away from Gridsome then please let me know.
Thanks!

It would also help us in deploying it with Gitlab Pages...
On Wed, Apr 28, 2021 at 11:27 AM animald @.***> wrote:

We are building out landing pages for our clients that will either be
downloaded by them, or deployed to their servers by us. Therefore, it isn't
realistic for us to assume the eventual path of the landing page itself.
PLEASE make it possible to build with relative paths.
In the meantime if anyone has a solution for our problem that doesn't
involve pulling away from Gridsome then please let me know.
Thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/gridsome/gridsome/issues/575#issuecomment-828303995,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAM24X2LU3TBISRXG3XTSULTK7IJZANCNFSM4IGPOUCQ
.

Is there any follow-up?


Add a new changelog using keepachangelog.com format

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
744

Relevant Lines:
757

💛  - Coveralls


[WIP] Marketplace Operator CRDs and CSV

/approve
/retest

Closing this as PR #621 captures everything we need.


Keybase FS completely broken

I can't access my keybase FS anymore. In the GUI app I get 'could not verify metadata' and I get 404s on https://thomwiggers.keybase.pub and https://keybase.pub/thomwiggers/. I did not delete anything.
my log id: 089a9de7e05d51635382aa1c and 8a5b3dcb119c3c260a5aec1c

Dupe of https://github.com/keybase/kbfs/issues/1578


actionChannels should not be emptied by plugins

If a plugin gets enabled later on in the lifecycle of pluginbot it should have available to it all the services that the other plugins have, this could be done by looking at the state and building a fresh channel or it could be built using source channels that clone themselves when a new plugin needs them.

build consumption channel which can be built from existing services - i decided long running channels that can be cloned are a bad idea because if a service gets deleted it should not be consumed by future plugins (which would require complex logic with these channels)


Implement Caching

Possible level of caching

distribution
installation dir

Some resource

https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows
https://github.com/actions/cache

Fixed


How use 304 and Last-Modified

Hi,
I can't figure out the right way to use HTTP header "Last-modified/If-modified-since" with AlamofireImage.
Does AlamofireImage send the received header Last-modified back to the server when trying to download the same image again? If this header doesn't sent to the server, I need to set up manually. But, to set it manually I need to read the value Last-modified received from the server... does AlamofireImage store this header in the Cache.db ?
Thanks.

HTTP caching is handled at the URLSession level and by default, AlamofireImage (though Alamofire) doesn't change the inherited behavior. There are some settings you can change though. I suggest you look at Apple's documentation and the documentation for URLCache.
In the future, you should open questions like this on Stack Overflow and tag alamofireimage.
Cheers. 🍻

From our Contribution Guidelines
Asking Questions
We don't use GitHub as a support forum. For any usage questions that are not specific to the project itself, please ask on Stack Overflow instead. By doing so, you'll be more likely to quickly solve your problem, and you'll allow anyone else with the same question to find the answer. This also allows maintainers to focus on improving the project for others.


How to specify  temporary directories?

The plots_dir environment variable specify the final destination folder where you would like the plot to be stored, and usually it's recommended to  use a large slow hard drive. Am I understanding this plots_dir correctly?
This docker image has plots_dir environment variable for final directory, but doesn't have an environment variable to specify temporary directories, usually temporary directories are on fast SSDs.

I'm not sure you can specific a default temp and secondary temp env var, but what I did is mount both /plots/ and /plots_temp/:
-v /mnt/mycloud/plots/:/plots
-v /mnt/fast_drive/plots_temp:/plots_temp
Then to create a plot:
docker exec -it chia-farmin-1 venv/bin/chia plots create -k 32 -b 4000 -t /plots_temp/ -2 /plots_temp/ -d /plots/
Don't ask me why I map -2 (the 2nd temp location) to the same. When I did not map -2, I saw my container's volume start eating alot of space (40gb?) so I assume there is some logic/bug that it didn't use the -t /plots_temp/ for everything 🤷🏼

Got it, thanks!


data:ayush-3150

Fixes Issue

Changes proposed

Check List (Check all the applicable boxes)

[ ] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[ ] All new and existing tests passed.
[ ] This PR does not contain plagiarized content.
[ ] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

First of all, Thank you for the time to review my pull request and for giving me comments. I have removed Avatar and fixed the youtube icon typo.


Calendar is getting cut from the bottom

In case of there is no space available in the bottom calendar is not going to available space area i.e. top of input box; rather is coming down only n its getting cut/all dates are not visible

Your issue is related to this one: #790
I personally used the workaround indicated here here

Hi, I'll be closing this as there's no feedback from original poster, feel free to re open it if need it.


drenv: Add option to pass flag to test/scritps/drenv-selftest

Fixes: #1200

@Sheetalpamecha when submitting such changes it helps to show an example run. It can be in the commit message or in a comment.

Sure will take care of it in future PRs.


bug(python): failed when use uv to install

LanceDB version
v0.17.1
What happened?
Failed when use uv to install.
➜ uv lock
  × No solution found when resolving dependencies:
  ╰─▶ Because there is no version of pylance==0.21.0b5 and lancedb==0.17.1 depends on pylance==0.21.0b5, we can conclude that
      lancedb==0.17.1 cannot be used.
      And because your project depends on lancedb==0.17.1, we can conclude that your project's requirements are unsatisfiable.

      hint: `pylance` was requested with a pre-release marker (e.g., pylance==0.21.0b5), but pre-releases weren't enabled (try:
      `--prerelease=allow`)

This is because lancedb depends on a pre-release package pylance. This is a not a good thing in general in production overall.
Also, pylance should not be part of lancedb by default.
Are there known steps to reproduce?
Create a pyproject.toml file:
[project]
name = "hm-lancedb"
version = "1.0.0"
requires-python = "~=3.12.0"
dependencies = [
  "lancedb==0.17.1",
]

and run uv lock.

I saw a ticket at https://github.com/lancedb/lancedb/issues/1793 which can at least get rid of pre-release package pylance.

@hongbo-miao It does look like a pre-release PyLance version made it into the latest LanceDB build which doesn't seem intentional, I use UV and build often with the prerelease PyLance versions if you want to use this workaround for now, just add the following environment variables:
ENV UV_INDEX="https://pypi.fury.io/lancedb/"
ENV UV_PRERELEASE=allow

Thanks @BTheunissen ! I found lancedb==0.17.0 having no issue, so just use 0.17.0 for now. ☺


Added Trie [Go]

Fixes #546
By submitting this pull request I confirm I've read and complied with the below declarations.

[x] I have read the Contribution guidelines and I am confident that my PR reflects them.
[x] I have followed the coding guidelines for this project.
[x] My code follows the skeleton code structure.
[x] This pull request has a descriptive title. For example, Added {Algorithm/DS name} [{Language}], not Update README.md or Added new code.
[x] This pull request will be closed if I fail to update it even once in a continuous time span of 7 days.

Hi! Thanks for showing interest in contributing to this repository.
Please make sure that you have ticked the points mentioned in PR description correctly.
Thanks again!

Comment on 96766058b60b5a3ca998efa64fe5abd5067a8686, file trie/trie.go, line 7.
exported const AlphabetSize should have comment or be unexported
Origin: GoLintBear, Section: golint.


Setup travis to deploy jars to github repo

Setup travis to deploy jars to github repo for downstream projects such as sync-android-p2p-example.
Some docs:

http://stackoverflow.com/questions/14013644/hosting-a-maven-repository-on-github
http://stackoverflow.com/questions/28174883/travis-ci-deploy-jar-to-github-master

Done.


Delete all transaction history

Decided with Sasha to add that in settings, screens are here
zpl.io/25OMeK8
zpl.io/bzqnAvX
zpl.io/bA7EZ8x

duplicate


Add convenience wrapper for pragma optimize

The SQLite docs recommend some cases where PRAGMA optimize; should be used: https://www.sqlite.org/pragma.html#pragma_optimize
I have discovered recently a case where this helped a project at work (https://twitter.com/alexcwatt/status/1851094243323912631) and now I'm wondering about how to make this easier to discover and use.
Do we want a way to test that these wrappers translate to the expected execute call? I wasn't sure what tests to write for this change.

@alexcwatt Thanks for this! The omission was mentioned by @rickhull in https://github.com/sparklemotion/sqlite3-ruby/issues/559
If we're going to allow the optimize bits to be passed in by the caller, I'd like the API to be a bit more developer-friendly. Would you consider defining some constants in lib/sqlite3/constants.rb?
Our test coverage is pretty bad right now for the pragma methods, so as long as we keep the implementation simple, I think it's probably OK to not have test coverage.