chore: change deployment to foodsaving.world

Current coverage is 98.83% (diff: 100%)

Merging #266 into master will not change coverage

@@             master       #266   diff @@
==========================================
  Files           119        119
  Lines          1883       1883
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1861       1861
  Misses           22         22
  Partials          0          0

Powered by Codecov. Last update 149b2e7...2812771


Sipeed license server for Gowin IDE is offline.

License server IP <IP_ADDRESS> given in docs is not working. If it is running on different IP then please update it in the docs.

it is update to <IP_ADDRESS>

Thanks for the update.

it is update to <IP_ADDRESS>

<IP_ADDRESS> is not working now.

I can't use it neither.

Having the same issue. Server not responding.

Any update?

Same here, any news?

Responded on the issue #7

Installing GOWIN FPGA Designer  Version 1.9.8 build(54687) has worked for me. I was able to get a license.
Also 1.9.8 works better with the Sipeed cards, for example <IP_ADDRESS> is not able to program the internal FLASH (it is not possible to change the USB cable speed on the windows installation of that version).


French translation of the site

I am interested in providing a French translation for this site. Is anyone working on this yet?

Seems like not, you can do this and pull a request~

I began working on a French translation locally. I'm discovering Hexo at the same time, and I quite like it so far. :+1:

@Calinou remember to create a new branch to do this, or you may need to do git rebase before you pull request~

@Calinou Do you need help with this ? I can finish it if you want

Hi @Calinou
I also discover Hexo and did a quick translation for the Navy theme
Which theme are you using and where are we in this project ?
menu:
  docs: Docs
  api: API
  news: Nouvelles
  plugins: Plugins
  themes: Thèmes
  search: Chercher

index:
  get_started: Commercer

page:
  contents: Contenus
  back_to_top: Retour au début
  improve: Améliorer ce document
  prev: Précédent
  next: Suivant
  last_updated: "Dernière mise à jour: %s"

sidebar:
  docs:
    getting_started: Premier pas
    overview: Vue d'ensemble
    setup: Installation
    configuration: Configuration
    commands: Commandes
    migration: Migration
    basic_usage: Utilisation de base
    writing: Écriture
    front_matter: Front-matter
    tag_plugins: Tag Plugins
    asset_folders: Asset Folders
    data_files: Fichiers de données
    server: Serveur
    generating: Génération
    deployment: Déploiement
    customization: Personnalisation
    permalinks: Permaliens
    themes: Thèmes
    structure: Structure
    templates: Modèles
    variables: Variables
    helpers: Assistants
    internationalization: Internationalisation (i18n)
    plugins: Plugins
    miscellaneous: Divers
    troubleshooting: Dépannage
    contributing: Contribuant
  api:
    core: Noyen
    overview: Aperçu
    events: Évènements
    locals: Locals
    router: Routeur
    box: Boîte
    rendering: Rendu
    posts: Messages
    scaffolds: Échafaudages
    themes: Thèmes
    extensions: Extensions
    console: Console
    deployer: Déployer
    filter: Filtre
    generator: Générateur
    helper: Assistant
    migrator: Migrateur
    processor: Processeur
    renderer: Rendu
    tag: Tag

It's been a while, I'm quite sure I don't have the translated files anymore by now…


[PoC][QT-Portal][WRU] - Download of medical data - Error 403, request failed in Benutzerverwaltung when trying to change test-center for a user after cancellation date

Environment : WRU
https://dfe4f5c711db.schnelltestportal.de/qt/
Preconditions:
Partner contract for partner test1021 or test1025 has already been cancelled (e.g. cancellation date on 26.10.22 or 10.11.22), Test-Centers and addition of new users have already been deactivated as expected in "Benutzerverwaltung".
Test Steps :
The admin user logs in to the QT portal.
The user clicks on the button "Benutzerverwaltung".
The test-centers and users for the partner are listed (options for test-centers are deactivated, new users cannot be added, but existing (non-admin) users can still be edited.
The user tries to change the test-center for an existing (non-admin) user.
Expected Results:
When the user tries to change the test-center for a user, this should not be changed.
No error message occurs
Actual Result:
The test-center is not changed for the user as expected. An error message "request failed with status code 403" is shown - see Screenshots
The test-center is not changed for the user.

technically it works as expected: backend refuses any changes in group administration.  This issue cannot put the system in incorrect state though.
The user administration is still possible after cancellation date to give the admins even then the ability to delete users on their request.
Their two ways to address this:

give the user an more convenient response to handle this error
restrict user management and disable user editing in DOWNLOAD_REQUESTED cancellation state, only leaving the option to delete the user.


Trouble getting results back with Scan and Filter

I am connecting to Hbase <IP_ADDRESS> and I am having trouble using Scan and Filter together. I have no problem getting results back using Scan by itself but when I add a Filter, I get: { '0': undefined }
Here's my code:
var hclient = hbase({
    zookeeperHosts: ["0.0.0:2181"],
    rootRegionZKPath: "/meta-region-server",
    rpcTimeout: 30000,
    pingTimeout: 30000,
    callTimeout: 5000,
});

var scan = hclient.getScanner('cool_table');

var filter1 = {
    singleColumnValueFilter: {
      columnFamily: 'firstname',
      columnQualifier: 'value',
      compareOp: "EQUAL",
      comparator: {
        substringComparator: {
          substr: 'JOHN'
        }
      },
      filterIfMissing:true,
      latestVersionOnly: true
    }
};

var filterList1 = new hbase.FilterList();

filterList1.addFilter(filter1);

scan.setFilter(filterList1);

scan.each(function(err, res) {
   return console.log(arguments);
});

Not sure what I am doing wrong but I appreciate your help.

I was able to figure out the problem.


Http Toolkit randomly stops working

http toolkit works until it hits a random time and then it never launches again

duplicate of #26


yfinance down?

I'm just using .history within a function to retrieve the current price of spx:
spx = yf.Ticker("^SPX")
def current_price():
todays_data = spx.history(period='1d')
return todays_data['Close'][0]
I haven't modified my code since it was running but I'm receiving an index error:
  IndexError: index 0 is out of bounds for axis 0 with size 0

Apologies, issue has already been resolved


Connected fields using the form builder

It seems it's the only missing twill component in the form builder, we should definitely add the ConnectedField as a form service, similar to Columns

This is already available, see https://github.com/area17/twill/pull/2323


Preventing a traceback when a library is not built during export

This fixes issue #1864.
Output before PR
Traceback (most recent call last):
  File "..\mbed\workspace_tools\project.py", line 176, in <module>
    setup_user_prj(project_dir, test.source_dir, test.dependencies)
  File "C:\mbed\workspace_tools\export\__init__.py", line 170, in setup_user_prj
    copy_tree(lib_path, join(user_lib, basename(lib_path)))
  File "C:\mbed\workspace_tools\export\__init__.py", line 152, in copy_tree
    copytree(src, dst)
  File "C:\Python27\lib\shutil.py", line 171, in copytree
    names = os.listdir(src)
WindowsError: [Error 3] The system cannot find the path specified: 'C:\\mbed\\.build\\rtos/*.*'

Output after PR
$python workspace_tools\project.py -c -m NUCLEO_F746ZG -p 96 -i uvision5

Failed exports:
  * NUCLEO_F746ZG::uvision5     Library path 'C:\Users\bridan01\Documents\dev\mbed\.build\rtos' does not exist. Ensure that the library is built.

cc @adustm and @0xc0170

LGTM, just that one minor question

@screamerbg @0xc0170 Why was this closed? The patch seems to work and resolve #1864

@screamerbg @0xc0170 Why was this closed? The patch seems to work and resolve #1864

I actually  haven't noticed this closure. @screamerbg A reason for a closure is missing.

There was a merge conflict I believe at the time and we were preparing for the workshop at the time. It was deemed low priority (and we wanted to reduce the number of changes we were making). We could reopen this if we're ready to look at this again.

If there was a merge conflict, I can do the legwork of opening a new PR with a rebased copy of the change set.

Rebased and opened a new PR.


chore(deps): upgrade runtime dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-runtime-dependencies-2.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 1651

Questions ?
Please refer to the Backport tool documentation


Normalize headers

Codecov Report

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

@@           Coverage Diff           @@
##           master       #8   +/-   ##
=======================================
  Coverage   74.22%   74.22%
=======================================
  Files           7        7
  Lines         225      225
=======================================
  Hits          167      167
  Misses         30       30
  Partials       28       28

Impacted Files
Coverage Δ

copier.go
68.26% <ø> (ø)
:arrow_up:

error.go
100% <ø> (ø)
:arrow_up:

dir.go
80% <ø> (ø)
:arrow_up:

read.go
73.17% <ø> (ø)
:arrow_up:

checker.go
100% <ø> (ø)
:arrow_up:

paths.go
75% <ø> (ø)
:arrow_up:

abs.go
75.75% <ø> (ø)
:arrow_up:

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 225610b...953a5c9. Read the comment docs.


chore: deleted unused links

What ❔

deleted unused links

Why ❔

unused

Checklist

[x] PR title corresponds to the body of PR (we generate changelog entries from PRs).
[x] Tests for the changes have been added / updated.
[x] Documentation comments have been added / updated.
[x] Code has been formatted via zk fmt and zk lint.

@yilimin999 looks like after merging the most recent main, the lints CI job fails. Could you please run zk fmt?


Unexplained Http 50x Errors Under Load

Hi we are currently performing some basic load tests using Ocelot as a Gateway to backend APIs. For the most part it's working well however we have found that once we cross a certain threshold of requests per second (around 40 rps), we start seeing unexplained 500 responses with the following error message raised in Ocelot (in HttpClientHttpRequester).
Exception Stack Trace
Error Code: UnableToCompleteRequestError Message: Error making http request, exception: System.Net.Http.HttpRequestException: The server returned an invalid or unrecognized response.
at System.Net.Http.HttpConnection.ThrowInvalidHttpResponse()
at System.Net.Http.HttpConnection.ParseStatusLine(Span1 line, HttpResponseMessage response)    at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)    at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)    at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)    at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)    at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Ocelot.Requester.HttpClientHttpRequester.GetResponse(DownstreamContext context) errors found in ResponderMiddleware.
Environment Setup

Ocelot 13.0 running as .net core web app.
2 App Servers each hosting Ocelot and fronted by ILB.
DownstreamHost pointing to ILB fronting 2 App Servers

No QoS, RateLimiting etc enabled
Polly Package not installed
-------------------------------------------
Is this behaviour something you have come across before?
Thanks.

So it turns out this was an issue with the configuration of the test runner rather than the Gateway.
Oddly the problem did not manifest when going direct to the APIs.


Cvssv2 vector to version fix

try to determine cvss version only for cvssv3.x and only if vector is present

LGTM


Black background / no tiles

Wikimedia tile server is offline. I tried experimenting with others such as openstreetmap, for example like this:
OSM_TILE_SERVER = 'https://tile.openstreetmap.org/{}/{}/{}.png'
I can download these tiles manually, but for some reason, the generated output is still a big black background. There's no warnings or errors during run.

You need to also change the user agent in line 92 to anything, like strava-heatmap for example.
Then it works. At least for me. :)
Using the user agent in the script you get a 403 (Forbidden) via wget, it only works in your browser.

I also encounter the same error.
When I run python3 strava_local_heatmaps.py I get for the following error while downloading more than half of the tiles (the %d are placeholders).
ERROR downloading tile https://maps.wikimedia.org/osm-intl/%d/%d/%d.png failed, using blank tile

To generate the complete heatmap correctly I changed the OSM_TILE_SERVER constant to https://tile.openstreetmap.org/{}/{}/{}.png (just as @rapliandras  did) and to abide by OSM's usage policy I used the user-agent: Strava-local-heatmap/master executed by <my personal website> (as @Natenom suggested).
To the developers, The following is a diff with these changes that you can apply to make progress on this issue.
diff --git a/strava_local_heatmap.py b/strava_local_heatmap.py
index 84a4496..0765b36 100644
--- a/strava_local_heatmap.py
+++ b/strava_local_heatmap.py
@@ -36,11 +36,14 @@ HEATMAP_MARGIN_SIZE = 32 # margin around heatmap trackpoints in pixel

 PLT_COLORMAP = 'hot' # matplotlib color map

-OSM_TILE_SERVER = 'https://maps.wikimedia.org/osm-intl/{}/{}/{}.png' # OSM tile url from https://wiki.openstreetmap.org/wiki/Tile_servers
+OSM_TILE_SERVER = 'https://tile.openstreetmap.org/{}/{}/{}.png' # OSM tile url from https://wiki.openstreetmap.org/wiki/Tile_servers
 OSM_TILE_SIZE = 256 # OSM tile size in pixel
 OSM_MAX_ZOOM = 19 # OSM maximum zoom level
 OSM_MAX_TILE_COUNT = 100 # maximum number of tiles to download

+USER = '' # A way for the users running the program to identify themselves
+USER_AGENT = 'Strava-local-heatmap/master executed by %s' % USER
+
 # functions
 def deg2xy(lat_deg: float, lon_deg: float, zoom: int) -> tuple[float, float]:
     """Returns OSM coordinates (x,y) from (lat,lon) in degree"""
@@ -89,7 +92,7 @@ def gaussian_filter(image: np.ndarray, sigma: float) -> np.ndarray:
 def download_tile(tile_url: str, tile_file: str) -> bool:
     """Download tile from url to file, wait 0.1s and return True (False) if (not) successful"""

-    request = Request(tile_url, headers={'User-Agent':'Mozilla/5.0'})
+    request = Request(tile_url, headers={'User-Agent': USER_AGENT})

     try:
         with urlopen(request) as response:

Sorry for the lack of response, the wikimedia maps public API was indeed locked down: https://wikitech.wikimedia.org/wiki/Maps/External_usage

maps.wikimedia.org tiles may only be used by Wikimedia wikis, and sites hosted by Wikimedia Affiliates.

We can hack our way around it but I would rather not, and the openstreetmap public API still works. I have a fix stashed somewhere I am going to push.
Thanks for all the suggestions, I agree we should follow openstreetmap's policies.

This should be fixed by https://github.com/remisalmon/Strava-local-heatmap/commit/4e2ae7a5d4b9e8c0bf3acf1114895403d8c9d1bc and https://github.com/remisalmon/Strava-local-heatmap/commit/2ed4dcee1d6608b4ab7c78a2ee3dc4a78632eebb.
The OSM tiles won't look as good but at least they work (for now). If anyone want to make a case to the wikimedia foundation that we should poke their map API go for it :)


SAK-41685: propagate IdUnusedException if the site does not exist so …

…it can be handled
We're testing this fix out in our 19.0 instance, allowing the method to propagate the exception enables the MOTD web service (in AnnouncementEntityProviderImpl) to return the public announcements for the channel (which is already done in the catch).
Doesn't seem to be called anywhere else, and it doesn't affect calls to the web service to retrieve the announcements for a site, even if the site does not exist.

I noticed during testing that this change logs a warning whenever the motd web service is called.  We're simply removing that line here.

Thanks! The PermissionException should clearly be handled in the EntityProvider also, so that a user lacking permissions will still get the public announcements for the channel.  It is thrown on getAnnouncementChannel and getMessages.
Not sure on what would be preferred for the NPE, it is handled in the EntityProvider like the others, but it would perhaps be better to log an error and remove it from the method signature, as that would be an unexpected error case.

I agree with @curtisvo here. @ern, any thoughts?


ZMQ Proxy(XPUB,XSUB) crashes, Docker container exit code 137

I have noticed that creating many subscriptions(ex: 1M) leads to increased memory consumption on the proxy side. And after some time the container crashes with 137.
Here is the Proxy code.

def main(lang):
    global context
    context = zmq.Context()
    frontend = context.socket(zmq.XPUB)
    frontend.bind("tcp://*:%s" % (8888,))

    backend = context.socket(zmq.XSUB)
    backend.bind("tcp://*:%s" % (9999,))

    try:
        zmq.proxy(frontend, backend)
    except Exception as e:
        print(e)

    frontend.close()
    backend.close()
    context.term()

Subscriber code

import zmq
import gc
import time

context = zmq.Context()

def subscribe():
    print "Adding new socket...."
    socket = context.socket(zmq.SUB)
    socket.connect("tcp://<IP_ADDRESS>:8888")

    import string
    import random  # define the random module
    letters = string.ascii_lowercase
    for b in range(1000):
        print "Sleeping for a second...."
        time.sleep(1)
        for bb in range(1000):
            topic = ''.join(random.choice(letters) for bb in range(30))
            print("subscribed to {topic}".format(topic=topic))
            socket.setsockopt(zmq.SUBSCRIBE, topic)

            print socket.getsockopt(zmq.EVENTS)
    print "Waiting for messages"
    i = 0
    for l in range(10):
        string = socket.recv()
        data = string.split()
        print data
        i = i + 1
        if i % 100 == 0:
            print "Collecting GC"
            gc.collect()
        time.sleep(0.01)
    socket.close()

Docker container ran with 1000M memory limit for the proxy.
Is this due to the MTrie at pub side?

I think this is a question for libzmq, since pyzmq isn't really involved in the proxy code other than setting it up and calling zmq_proxy. @bluca?
In gneral, it's also useful to provide a complete example. The publisher is currently missing.

Hi @minrk , Please assume that the publisher is idle and not pushing any events. I have observed that when we add more subscriptions to the sub socket, the proxy consumes more memory with respect to the number of topics.

I have no idea what 137 means - you need adequate memory provisions according to the workload

Thanks @bluca.
If I have 100 subscriptions on SUB socket,Does the socket.close() remove the subscription from Pub socket? Or I have to socket.setsockopt(zmq.UNSUBSCRIBE, topic.encode('utf-8')) for each one of them before closing the socket?

they are removed automatically

137 is out-of-memory, so the implication is that 1M subscriptions of 30 bytes uses more that 1GB of memory. When I run this test with the proxy in a container and the subscriber in a different container, it's the subscriber that's using all that memory and not the proxy. The proxy stays below 20MB the whole time.
A subscriber does need to store all of its subscriptions in order to re-establish subscriptions on reconnect. In this case you have 1M random 30B subscriptions, so assuming there's no overhead whatsoever, you'd expect at least 30MB. Since you see more like 1GB, then the memory footprint of each random 30B subscription is closer to 1kB. I see this as well. The trie storage does seem relevant, because when I produce 1M unique subscriptions of similar size with a less random pattern, e.g. f"{b:015}-{bb:015}", which gives subscriptions of the form '0000000000009999-0000000000008888' it only takes 60MB instead of 1GB.

tries are explicitly optimized for strings storage in terms of space and computation costs - if you have completely random bytes, then it's going to explode in complexity, that's pretty much expected - so again, it needs to be allocated enough resources

@minrk I didn't have the container for the subscriber. I just ran the proxy in the container and noticed the memory increase. As @bluca mentioned it could be that the randomization of mine costed more memory.

@bluca @minrk We are facing a ZMQ proxy crash every 3 days and when we look at the dashboards we don't see any CPU or memory spikes. From the code, we have gracefully handled the socket's initialization and termination.
And adding socket.setsockopt(zmq.UNSUBSCRIBE, topic.encode('utf-8')) before closing the socket seems helping us in this. Does the UNSUBSCRIBE helps in releasing any resources other than close() ?

ok, thanks for the info. Closing here.

@minrk Could you please comment on the above query?

I can't really speak to any inner workings of libzmq. If you have questions, feel free to open an issue in libzmq. Since close is an asynchronous operation, it is possible there are unsent subscription messages being held up, which might be governed by LINGER. You could try close(linger=0) and see if that changes anything. That's just a guess.

Thanks @minrk


Resuming grid sweep does not launch missing runs

Describe the bug
After removing some runs from a completed grid sweep and resuming the sweep, no new runs are passed to the agents and the sweep goes back into the complete state.
This is in contrast to the documentation which describes that the missing configurations will be launched when the sweep is resumed: https://docs.wandb.ai/sweeps/faq#rerun-grid-search
To Reproduce
Steps to reproduce the behavior:

Create a sweep for example:

method: grid
parameters:
  batch_size:
    values:
    - 20
program: train.py

Launch an agents for the sweep
Remove the entry of the run when completed
Resume the sweep
Launch a new agent to run the missing sweep
Wandb agent will give the following output

wandb: Starting wandb agent :sleuth_or_spy:
2021-02-01 21:32:51,562 - wandb.wandb_agent - INFO - Running runs: []
2021-02-01 21:32:51,915 - wandb.wandb_agent - INFO - Agent received command: exit
2021-02-01 21:32:51,915 - wandb.wandb_agent - INFO - Received exit command. Killing runs and quitting.
wandb: Terminating and syncing runs. Press ctrl-c to kill.

The state of the sweep will go back to completed

Expected behavior
The missing sweep should be run by the agent after it has been deleted from the sweep.

Hey @ExpectationMax
I tried reproducing the issue and these are my observations :point_down:
Code
I have tried out with a very basic example to showcase the features of resuming the grid sweep.
train.py
import wandb

# Set up your default hyperparameters before wandb.init
# so they get properly set in the sweep
hyperparameter_defaults = {
    'epoch':2
}

# Pass your defaults to wandb.init
wandb.init(config=hyperparameter_defaults)
config = wandb.config

# Log metrics inside your training loop
metrics = {'custom_metric': config["epoch"]/2}
wandb.log(metrics)

sweeps.yaml
program: train.py
method: grid
metric:
  name: custom_metric
  goal: minimize
parameters:
  epoch:
    values:
      - 2
      - 4

Steps

With both the train.py and sweeps.yaml at hand, I ran the sweep with the command $ wandb sweep sweeps.yaml
This gives me a command to run the sweep agent.
After I run the agent for the sweep my dashboard looks like this

Here we can see that both the runs have been logged with epoch values 2 and 4.
After the agent terminates, I do a ctrl-c  in the terminal to close the sweep.
I go into the dashboard and delete the run that I want my agent to resume.

Here one can see that the first run has been deleted.
After the run has been deleted, I go into the control-page of the sweep and click on the resume button.
With the resume button clicked, I run the same sweep agent again from the terminal.
After the process terminates this is how my dashboard looks

I think the detailed walkthrough would make it feasible for you to combat your issues. Feel free to write in if this does not help you.

@jvlmdr, can you please provide a link to your workspace for review. Thanks.

@jvlmdr, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

Question: if some runs fail or are deleted, is the (grid) sweep supposed to go through them again and relaunch?

@jpcbertoldo , depends on the search strategy - if you were using a grid search, yes the agent will create a run for the exact same run configuration (since a grid search is an exhaustive search of your config). bayes and random search sample from a distribution, so there is a probability to run the same config, but for most configs to control a neural network, the chance of you reaching the same config is low - specially if you have a continuous distribution like normal or uniform defined in your config.

So, for the record, I think there is a bug on that as well.
I launched a grid sweep and, as it was running, I deleted some runs that broke.
As it finished the last combinations it did not go back to the ones missing.

I bumped into the same issue.

yeah, this is busted. same experience

Have tested based on original feedback (https://github.com/wandb/wandb/issues/1787#issuecomment-773104274) and this is working as intended.


fix(live_mode): stop imagestream after QR code is scanned

Resolves https://github.com/RafaelBarbosatec/qr_code_dart_scan/issues/9

I use this modification, thanks. Someboby knows how to fix the camera ratio issue ?


[Bug] CRUD entity could not include search string

Fixes #3117 - what do you think @pxpm & @anclywen?

A new inspection was created.

A new inspection was created.

The inspection completed: 5 updated code elements

The inspection completed: 5 updated code elements

Merged into master. It'll be available later today as 4.1.18.


added abstract factory for hash functions

Coverage decreased (-3.4%) to 96.226% when pulling 2ebdee3e0d6e8f5873453878bccf8beaccbe6238 on add-hash-algo-cli-opt into 36ad139a2eceec7d52abce710090e35423fb8956 on v3.

Coverage decreased (-3.5%) to 96.047% when pulling 4c7722f47a9e078bc244193bfe075a122a3f01f2 on add-hash-algo-cli-opt into 36ad139a2eceec7d52abce710090e35423fb8956 on v3.

Coverage increased (+0.01%) to 99.605% when pulling df688e4b8e25b3627e253a3b8762a9aa8019f321 on add-hash-algo-cli-opt into 36ad139a2eceec7d52abce710090e35423fb8956 on v3.

Coverage increased (+0.01%) to 99.605% when pulling ad26f51b15f9a344c8d57999e6e616c02f737249 on add-hash-algo-cli-opt into 36ad139a2eceec7d52abce710090e35423fb8956 on v3.

Coverage increased (+0.01%) to 99.605% when pulling ad26f51b15f9a344c8d57999e6e616c02f737249 on add-hash-algo-cli-opt into 36ad139a2eceec7d52abce710090e35423fb8956 on v3.

Added '--hash' cli flag

Coverage increased (+0.008%) to 99.598% when pulling 7cdfc32ab4c55b0cd9402d09e7f33803105bb9cd on add-hash-algo-cli-opt into deaa1ebef7d86365f51bdc6923a9468b7748a862 on v3.


Why doesn't JSONFieldBase respects the prepared parameter?

The prepared argument is there, and from what I understand it declares if the value is ready to written to the database. Something like this:
def get_db_prep_value(self, value, connection, prepared=False):
    """Convert JSON object to a string"""
    if self.null and value is None:
        return None
    if not prepared:
        value = json.dumps(value, **self.dump_kwargs)
    return value

The current test suit (checkout from master) runs without failures with this change.

Some background on why I ask this:
I'm using this package to efficiently dump/load large databases, but it doesn't work properly with JSONField, when the data is restored into the model, the JSON field attribute ends up with the JSON string as the value.

Let me know if PR #182 doesn't fix this. Thanks!


Two alerts failing out of the box: K8SControllerManagerDown and K8SSchedulerDown

Installed with KOPS 1.4.1, K8s 1.4.6 on AWS.
It looks to me like the query is set to alert when there is one kube-scheduler (or kube-contoller-manager), which I don't understand.
ALERT K8SSchedulerDown
  IF absent(up{job="kube-scheduler"}) or (count(up{job="kube-scheduler"} == 1) BY (cluster) == 0)

I’m pretty new to prometheus queries and I’m not really sure how the BY (cluster) == 0) relates.
Any pointers appreciated.
Thanks for the great project!
--Duncan

The BY (cluster) == 0 part is unlikely important in most setups it just allows this to be used to monitor/alert for more than one Kubernetes cluster (eg. when using Federation). I'm guessing your alert is rather triggering because of the absence of a kube-scheduler job. Could you make sure you can find it in the /targets page? If it is not there, what is likely happening is that there is no Endpoints object that lists the kube-scheduler and kube-controller-manager, which means you either don't have the Services created from manifests/k8s/. Or your kube-scheduler and kube-controller-manager are not discoverable via those, in which case the output of the following would help:
$ kubectl get pods --all-namespace

Or if you cannot disclose all of that information this should give us all the information applicable:
$ kubectl -n monitoring get pods
$ kubectl -n kube-system get pods

Thanks for the quick response.
I don't see them on the /targets page.
Here is the info requested:
NAMESPACE            NAME                                                     READY     STATUS             RESTARTS   AGE
athena-graphql       athena-graphql-cmd-3150689734-xqkkq                      1/1       Running            0          4d
deis                 deis-builder-2759337600-en6fr                            1/1       Running            1          17d
deis                 deis-controller-873470834-re8zj                          1/1       Running            0          17d
deis                 deis-database-1712966127-plp30                           1/1       Running            0          17d
deis                 deis-logger-9212198-xjpsj                                1/1       Running            3          17d
deis                 deis-logger-fluentd-0ppwl                                1/1       Running            0          17d
deis                 deis-logger-fluentd-a8zly                                1/1       Running            0          17d
deis                 deis-logger-redis-663064164-3wq80                        1/1       Running            0          17d
deis                 deis-monitor-grafana-432364990-joygg                     1/1       Running            0          17d
deis                 deis-monitor-influxdb-2729526471-7npow                   1/1       Running            0          17d
deis                 deis-monitor-telegraf-2poea                              0/1       CrashLoopBackOff   112        17d
deis                 deis-monitor-telegraf-cy218                              1/1       Running            0          17d
deis                 deis-nsqd-3264449345-c1t0c                               1/1       Running            0          17d
deis                 deis-registry-680832981-64b4s                            1/1       Running            0          17d
deis                 deis-registry-proxy-94w6s                                1/1       Running            0          17d
deis                 deis-registry-proxy-p46bn                                1/1       Running            0          17d
deis                 deis-router-2457652422-sx6c7                             1/1       Running            0          17d
deis                 deis-workflow-manager-2210821749-ggzm3                   1/1       Running            0          17d
hades-graphql        hades-graphql-cmd-1371319327-6sqb6                       1/1       Running            0          8m
kube-system          dns-controller-2613152787-l8bj4                          1/1       Running            0          17d
kube-system          etcd-server-events-ip-10-101-115-158.ec2.internal        1/1       Running            0          17d
kube-system          etcd-server-ip-10-101-115-158.ec2.internal               1/1       Running            0          17d
kube-system          kube-apiserver-ip-10-101-115-158.ec2.internal            1/1       Running            2          17d
kube-system          kube-controller-manager-ip-10-101-115-158.ec2.internal   1/1       Running            0          17d
kube-system          kube-dns-v20-3531996453-ban95                            3/3       Running            0          17d
kube-system          kube-dns-v20-3531996453-v66h9                            3/3       Running            0          17d
kube-system          kube-proxy-ip-10-101-115-158.ec2.internal                1/1       Running            0          17d
kube-system          kube-proxy-ip-10-101-175-18.ec2.internal                 1/1       Running            0          17d
kube-system          kube-scheduler-ip-10-101-115-158.ec2.internal            1/1       Running            0          17d
monitoring           alertmanager-main-0                                      2/2       Running            0          4d
monitoring           alertmanager-main-1                                      2/2       Running            0          4d
monitoring           alertmanager-main-2                                      2/2       Running            0          4d
monitoring           grafana-874468113-0atmz                                  2/2       Running            0          4d
monitoring           kube-state-metrics-3229993571-aqo7z                      1/1       Running            0          4d
monitoring           node-exporter-5xyxb                                      1/1       Running            0          4d
monitoring           node-exporter-xwgn6                                      1/1       Running            0          4d
monitoring           prometheus-k8s-0                                         3/3       Running            0          4d
monitoring           prometheus-operator-479044303-ris0n                      1/1       Running            0          4d
splunkspout          k8ssplunkspout-nonprod-2ykwk                             1/1       Running            0          17d
splunkspout          k8ssplunkspout-nonprod-xdp7d                             1/1       Running            0          17d
styleguide           styleguide-cmd-685725177-pwl1c                           1/1       Running            0          4d
styleguide-staging   styleguide-staging-cmd-2993321210-1cgmo                  1/1       Running            0          2h
wellbot              wellbot-web-3878855632-34s4e                             1/1       Running            0          15d
welltok-arch-k8s     welltok-arch-k8s-1857575956-ky06l                        1/1       Running            0          14d```

I believe I have seen this before, the problem I think is that kops doesn't label the kubernetes component pods correctly with k8s-app=<component-name>. To confirm that can you give me the output of kubectl -n kube-system get kube-controller-manager-ip-10-101-115-158.ec2.internal -oyaml and kubectl -n kube-system get kube-scheduler-ip-10-101-115-158.ec2.internal -oyaml (in case they got rescheduled the pods that now start with kube-scheduler or kube-controller-manager respectively)
If what I am guessing is correct then we should push on kops side to use upstream manifests like bootkube does.

kube-controller-manager.txt
kube-scheduler.txt

This was a similar issue - to add that label to kube-proxy: https://github.com/kubernetes/kops/pull/617

I didn't see that one, thanks for pointing it out! I opened https://github.com/kubernetes/kops/issues/1226 to start a discussion on it. Hopefully we will get those soon then. In the mean time I think you'll have to either ssh onto those servers, change the templates and restart them (which makes the objects be recreated from the templates IIRC; disclaimer: not super familiar with kops).

I just noticed etcd is not appearing in my prometheus targets either.

Oh, and kube-dns. Should we update https://github.com/kubernetes/kops/issues/1226 ?

It seems like we won't have an answer before the holidays. So I'll keep pushing in the new year. But yes I will keep pushing for a consistent labelling strategy, we'll add the respective manifests for Prometheus to properly discover the components here once we have that consistent labelling. I don't mind maintaining a set of manifests for kops, bootkube, etc. as long as each of those labelling strategies make sense and exist.
So far so goot :) happy holidays!

I added the labels on the master (/etc/kubernetes/manifests/kube-controller-manager,kube-scheduler), and then ran kubectl create -f manifests/k8s/self-hosted
I ran hack/cluster-monitoring/teardown and then hack/cluster-monitoring/deploy and that fixed the alerts for kube-scheduler and kube-controller-manager.
kube-dns now has four endpoints listed under /targets, and they are all getting error: getsockopt: connection refused
I'd also like to add etcd, but don't find any explicit instructions on that. It would be great to add a kops default setup in manifests/k8s/kops/

Yep that's the plan as soon as we have consistent labeling in upstream kops.

Labelling added to kops: https://github.com/kubernetes/kops/pull/1314

I don't have a v1.5.x kops cluster handy, but I'll create the manifests with a best effort and then it would be great if you could test them.

With pleasure. Thanks

In fact I think the manifests from manifests/k8s/self-hosted are suitable for kops when using the latest master, am I mistaken? Except kube-dns as the manifest is slightly outdated from the upstream manifest, but there are no alerts for kube-dns metrics yet so that wouldn't be a problem for now. Can you confirm that?

Actually it seems that the kube-dns manifest for v1.5.0 has been updated so in that case it should appear as well.

I'll create a 1.5.x K8s cluster with the latest KOPS soon to test, thanks.
 I can see that the 1.4.x manifest has not been updated to expose metrics in the upstream kops repo.
The kubernetes target failure is a bit more tricky, best would be if the certificate were to be created with the requested IP in the additional names section. (inspect your cert with openssl x509 -text -in your.crt) The other option is to "manually" maintain an Endpoints object through a headless Service as done for etcd (see manifests/etcd), that way the correct IP will be used to perform the request.

@brancz I don't know whether we want to continue this thread on kops/kube-prometheus work - let me know if there's a better place. Maybe we should open a new issue.
I used kops latest (master: Version git-8b21ace) and Kubernetes 1.5.1 to create a new cluster in AWS.
Running hack/cluster-monitoring/deploy
--- github/kube-prometheus ‹master› » ./hack/cluster-monitoring/deploy
namespace "monitoring" created
deployment "prometheus-operator" created
the server doesn't have a resource type "servicemonitor"
the server doesn't have a resource type "servicemonitor"
the server doesn't have a resource type "servicemonitor"
No resources found.
No resources found.
No resources found.
deployment "kube-state-metrics" created
service "kube-state-metrics" created
daemonset "node-exporter" created
service "node-exporter" created
configmap "grafana-dashboards" created
deployment "grafana" created
service "grafana" created
configmap "prometheus-k8s" created
configmap "prometheus-k8s-rules" created
service "prometheus-k8s" created
prometheus "prometheus-k8s" created
configmap "alertmanager-main" created
service "alertmanager-main" created
alertmanager "alertmanager-main" created

Has this been solved on upstream kops? @dmcnaught

I'm going to start with the kops - kube-prometheus config when kops 1.5 has been released.

Great thanks for the update! Are you aware of an ETA?

I've heard "soon" - it's currently in alpha4: https://github.com/kubernetes/kops/releases

Great! Looking forward to "soon" 🙂

Me too. I thought it would be "sooner" 😉

Getting close with kops 1.5.0-alpha2 and k8s 1.5.2 ^ Just the api cert issue to go. 😄

Same with a cluster created using Kubeadm.

@yann-soubeyrand for kubeadm clusters you need to enable the controller manager and scheduler to listen on all or at least the pod networking interface/ip.

@brancz Can confirm what @yann-soubeyrand and @rocketraman have said, kubeadm and gke use component: kube-scheduler, not k8s-app

@yann-soubeyrand for kubeadm clusters you need to enable the controller manager and scheduler to listen on all or at least the pod networking interface/ip.

I changed the bind address of controller manager and scheduler to <IP_ADDRESS>, but they are still not up on prometheus.


Changed IoT hub happy path meta descriptions and titles for better SEO

@sideye,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

#sign-off

@shizn, To resolve this pull request, please add an appropriate comment so that automation can take appropriate action. Thanks.


Fix AOI share workflow

This is WIP, remaining steps:

[x] Fix export dropwn (should allow download/url copy when share is available)
[x] Enable keyboard shortcuts on AOI share map page
[x] Include mosaic name column in the project page (depends on https://github.com/developmentseed/pearl-backend/issues/59)

cc @geohacker

Updates:

Included mosaic column in "Exported Maps" table
Fixed export dropdown button at explore page
Fixed copy URL and download button in "Exported Map" table in the project page

Notes:

Layer prediction opacity at AOI share page is working, but not for the mosaic. I suggest we ticket in separately.
Keyboard shortcuts didn't exist on AOI share page, so I haven't added them now. We can add it later if necessary.
API routes for downloading geotiffs are broken, the request is always returning 500 status. @geohacker I reported to @ingalls in the chat, should we open a ticket for this?

How to give feedback:

At the project page, create an AOI, run live prediction
Click the export button, copy URL, open in a separate tab
Click the download button, it will fail because API returns 500, but the endpoint should be right
Visit the profile project page
Exported maps table should be populated and export buttons should work

@geohacker this is ready for review.

@vgeorge this mostly worked as you outlined. I ran into one problem:

Even after clicking the Create Share URL, it didn't give me a way to copy. But when I go to the project page, I can see the URL there and I'm able to see the map and download GeoTIFF from the share page.

API routes for downloading geotiffs are broken, the request is always returning 500 status.

I was able to download geotiff from the AOI share page. But not from the project explore page.

@geohacker I believe all share-related issues were addressed. Can you please do another review?


fix: stabilize cpe sorting during collection sort

Summary
This is not yet fully deterministic but is a branch that attempts to fix #2967
Reproduce
FROM alpine:latest

RUN apk update

RUN apk add jenkins

Build the above image and run syft using this branch
for i in (seq 1 20); ~/go/bin/syft -o json 2967:test | jq . > test_sbom/test_$i.json; end

Then you can use something like the following to show the sha for each sbom
#!/opt/homebrew/bin/fish

# Change directory to the target directory
cd test_sbom

# Loop through each file in the directory
for file in *
    if test -f $file  # Check if the item is a regular file
        set sha (sha256sum $file)
        echo "$sha\t$file"
    end
end

On main this produces about 7/8 unique sha for 20 sbom generated against the same image.
On this branch there are only 2 unique sha for the same test.
This is currently WIP to determine what the final non determinism that is causing the two different sha.
Current determinism progress between main and this branch for the sample image
The final diff for this branch no longer is related to CPE inconsistency and instead exists within how java packages are created and stored in the collection during cataloging. There is also an inconsistency in relationships being generated for the two outputs of 4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4 and 5d5655ad32cdbfbcdaaabe6a314f6656145ad33dcb54428802fd3dc153e436d0.
This is what I'm currently investigating before submitting this PR for review.
Main
7275bc491df371ae43338df29d8bcc91277a949c00dc5aa0b017009ac5442384  test_1.json\ttest_1.json
7275bc491df371ae43338df29d8bcc91277a949c00dc5aa0b017009ac5442384  test_2.json\ttest_2.json
7275bc491df371ae43338df29d8bcc91277a949c00dc5aa0b017009ac5442384  test_3.json\ttest_3.json
7275bc491df371ae43338df29d8bcc91277a949c00dc5aa0b017009ac5442384  test_4.json\ttest_4.json
7275bc491df371ae43338df29d8bcc91277a949c00dc5aa0b017009ac5442384  test_5.json\ttest_5.json
825e8612d1bb070e42451718cab9f69e0439be3228880d697d140f19340ff55a  test_6.json\ttest_6.json
711c903cf104e84ed89b1057f634a4cc594edee6c2007eeb3e489ebb089daf0d  test_7.json\ttest_7.json
7275bc491df371ae43338df29d8bcc91277a949c00dc5aa0b017009ac5442384  test_8.json\ttest_8.json
521a382fb033df30649eb9204519e4bb66d376b353ae11c4a492f2245fb00663  test_9.json\ttest_9.json
2dc6d6f47a53e12c384ea37a6d395461f19ee1a016e8e97b7137330206293406  test_10.json\ttest_10.json
9f86203a5511a109d97f9972fcd79b07ff77b3331058b6016ba5fa1b9ace3b48  test_11.json\ttest_11.json
7275bc491df371ae43338df29d8bcc91277a949c00dc5aa0b017009ac5442384  test_12.json\ttest_12.json
fd0c866c23b306b8dfdd9e64e1f16808037b3c6c9a1425fd45e5411362340bde  test_13.json\ttest_13.json
6257fd4022d7589cdf981a52b25a2e3e532810548358c09fc8e6ca10f43e9a78  test_14.json\ttest_14.json
7275bc491df371ae43338df29d8bcc91277a949c00dc5aa0b017009ac5442384  test_15.json\ttest_15.json
7275bc491df371ae43338df29d8bcc91277a949c00dc5aa0b017009ac5442384  test_16.json\ttest_16.json
297748476a36259f1ff14f6087333823dca77c4f13ce33198acaabbafde254f6  test_17.json\ttest_17.json
9cb06d031e5b6b95279ef0c6a5faf4380acfcc117fb6699ab9c7ea5df7e6095b  test_18.json\ttest_18.json
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  test_19.json\ttest_19.json

Branch
[I] hal@ChristophersMBP ~/d/s/2967> ./sha.fish
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_1.json\ttest_1.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_2.json\ttest_2.json
5d5655ad32cdbfbcdaaabe6a314f6656145ad33dcb54428802fd3dc153e436d0  test_3.json\ttest_3.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_4.json\ttest_4.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_5.json\ttest_5.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_6.json\ttest_6.json
5d5655ad32cdbfbcdaaabe6a314f6656145ad33dcb54428802fd3dc153e436d0  test_7.json\ttest_7.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_8.json\ttest_8.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_9.json\ttest_9.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_10.json\ttest_10.json
5d5655ad32cdbfbcdaaabe6a314f6656145ad33dcb54428802fd3dc153e436d0  test_11.json\ttest_11.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_12.json\ttest_12.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_13.json\ttest_13.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_14.json\ttest_14.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_15.json\ttest_15.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_16.json\ttest_16.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_17.json\ttest_17.json
5d5655ad32cdbfbcdaaabe6a314f6656145ad33dcb54428802fd3dc153e436d0  test_18.json\ttest_18.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_19.json\ttest_19.json
4d076f84e08b338743ee76f68f2ba516267d954dece28ff700c6ebc152ca95a4  test_20.json\ttest_20.json

The final bit of nondeterminism here comes from the java cataloger and how packages are deduplicated in the given sample image. I believe on some runs the final jansi package is sourced from one of the following virtual path.
Depending on which "wins" vs the other and makes it into the final SBOM causes other side affects around relationships, cpes, and other metadata regarding the package.
This causes the sha of the generated SBOM to be different depending on which "jansi" made it into the final document.
-        virtualPath: "/usr/share/webapps/jenkins/jenkins.war:WEB-INF/lib/jansi-1.11.jar:org.fusesource.jansi:jansi"
+        virtualPath: "/usr/share/webapps/jenkins/jenkins.war:WEB-INF/lib/jansi-1.11.jar"

In

@wagoodman updated based on your comments


install-and-setup.md correction

install-and-setup.md mentions "Google API Console" but this is now called "Google Cloud Platform API Dashboard". you also need to click the "Library" link before the "Google Calendar API" search works.
it is also unclear, to me, if I need to create credentials in the Google Calendar API as the text says "To use this API, you may need credentials. Click 'Create credentials' to get started."

Thank you @Eddict for bringing this to our attention. A fix is pending review and should be deployed soon.


[matrices] Identity function returns the wrong argument

Identity and the set function seem to return a different argument to the out vec. Presumably not indented
Reproduce:
const m = identity44([]);  // Returns the frozen identity
m[0] = 1000 // Has no affect
console.log(m[0]) // 1

Looks like https://github.com/thi-ng/umbrella/blob/develop/packages/matrices/src/set.ts#L6 calls compile with default arg which is 'a' https://github.com/thi-ng/umbrella/blob/develop/packages/vectors/src/compile/emit.ts#L165 but all other functions that use vector set return the o argument https://github.com/thi-ng/umbrella/blob/develop/packages/vectors/src/set.ts#L9

Thank you for reporting this! Just fixed it & will release later tonight...

Oki, the fix is published now:
https://github.com/thi-ng/umbrella/blob/develop/packages/matrices/CHANGELOG.md#2122-2022-08-16


PP-5635: add indices for emitted_events date columns

Context:
The emitted event sweeper queries emitted_events table to retrieve
not emitted events. It uses event_date and emitted_date to determine
which records should be re-processed (https://github.com/alphagov/pay-connector/pull/1767).
In order to make sure queries are efficient indices on those columns
are required.


feat: remove unused data in subscription batcher

Contributor checklist

[ ] Bug fixes include regression tests
[ ] Features include unit/acceptance tests

🚀 Thank you for your contribution! 🚀


Feature request: Sending image to Photoshop when there is no open/active document

I'd like to be able to send an image from Auto1111 to Photoshop when there is no open/active document in Photoshop. It would just open the image in Photoshop. Is that possible? Currently, if there is no open/active document in Photoshop, then clicking the send button does nothing. Perhaps an option could be added in the sdppp_send_document dropdown menu for "New Document."

that's make sense.
But I wonder....How can you open any plugin's UI when you are not opening any document?

Does the plugin's UI need to be open to send an image to Photoshop? Or does it just need to be "connected" on the backend?

The plugin seems to be working even without any document open in Photoshop.

I don't know, my photoshop will show this UI when I don't open any document.

I get that screen when Photoshop is first started or when all documents are closed. But if I click the top Plugins menu, then SD-PPP, and then Connect SD or ComfyUI, it shows me the UI with no document open.

Oh, thanks.
fixed in main branch.


It would be nice to have a flatMap function

Since this is a pretty common and widely understood tool in functional languages it would be nice to have a List implementation for Ramda.

I think what you are looking for is chain

Any reason why it is called chain and not flatMap?

Because it is fantasy-land compatible I think

What do people think about adding an alias?

What do people think about adding an alias?

People think "no" :)
https://github.com/ramda/ramda/issues/859
https://github.com/ramda/ramda/pull/574#issuecomment-64124850

I do also beleive that "chain" is a common name just like "flatMap". Another name for the same function is "bind". https://github.com/cwmyers/monet.js#bind-alias-flatmap-chain

Ok, I do understand the reluctance to add aliases.  My problem here was simply that I didn't know that chain was the same as flatMap, so I looked for flapMap in the docs, couldn't find it and gave up.  What about a documentation solution to this problem?  So perhaps in the list of functions on the left there could be common aliases (like flatMap, foldL, etc) in a different colour which simply link to their equivalent Ramda function.  I don't mind learning new names for things, but I need to know they exist in the first place :)

There has been a discussion about an "aka" tag so that you could search for "flatMap" and get "chain". Don't know what happened there...

@ccapndave if you do a cmd/ctrl + f in the docs you and search for flatMap its there..

Unfortunately this page on wiki is not the most discoverable thing in the world:
https://github.com/ramda/ramda/wiki/Functions-AKA


Python 无法自动补全

RT，MAC 下的Python，用的Pyenv管理环境，环境切换没有问题，但是无法自动补全，知道如何解决么？

你用的是lsp-python-ms?如果是lsp-python-ms的话，我就不知道了，我也才刚开始使用。然后在conda环境下也没有任何问题。
如果是lsp-python的话，可能要在pyenv环境下安装pyls，python3 -m pip install --upgrade 'python-language-server[all]' pyls-isort

安装过了，自行编译了 Microsoft.Python.Language.Server，无法补全，估计得切换模式才行

没太看懂，你现在是系统环境下的python可以补全是吧

在其他编辑器，或者直接在 ipython 环境下，都可以补全，但是在 emacs 下无法自动补全

你主要看下这边的配置你写对了吗，如果你自己编译了mspyls，这里得改，确保路径什么的都对哈。
最好贴一下自己的配置，不然我也很难帮你看。。。
如果实在不行，那就把def-package! lsp-python-ms这段给删了，用回pyls算了。
记得安装，python3 -m pip install --upgrade 'python-language-server[all]' pyls-isort

说明
电脑配置如下:
 系统版本：	macOS 10.14.5 (18F203)
  内核版本：	Darwin 18.6.0
  启动宗卷：	Macintosh HD

现在的疑问是，无论是 macOS, 亦或是 Ubuntu19.04，Python 无法补全， c-c++ 同样如此，但是编辑 el 文件又可以
init.el

;; Copy this file to ~/.doom.d/init.el or ~/.config/doom/init.el ('doom
;; quickstart' will do this for you). The `doom!' block below controls what
;; modules are enabled and in what order they will be loaded. Remember to run
;; 'doom refresh' after modifying it.
;;
;; More information about these modules (and what flags they support) can be
;; found in modules/README.org.

(doom! :completion
       (company          ; the ultimate code completion backend
        +auto            ; as-you-type code completion
        +childframe      ; a nicer company UI (Emacs 26+ only)
        )
       ;;(helm             ; the *other* search engine for love and life
       ;;+fuzzy)          ; enable fuzzy search backend for helm
       ;;ido               ; the other *other* search engine...
       (ivy              ; a search engine for love and life
        +icons
        +prescient
        +childframe)

       :ui
       ;;deft              ; notational velocity for Emacs
       doom              ; what makes DOOM look the way it does
       doom-dashboard    ; a nifty splash screen for Emacs
       doom-quit         ; DOOM quit-message prompts when you quit Emacs
       ;;fill-column       ; a `fill-column' indicator
       hl-todo           ; highlight TODO/FIXME/NOTE tags
       ;; indent-guides     ; highlighted indent columns
       modeline          ; snazzy, Atom-inspired modeline, plus API
       nav-flash         ; blink the current line after jumping
       ;;neotree           ; a project drawer, like NERDTree for vim
       ophints           ; highlight the region an operation acts on
       (popup            ; tame sudden yet inevitable temporary windows
        +all             ; catch all popups that start with an asterix
        +defaults)       ; default popup rules
       ;;pretty-code       ; replace bits of code with pretty symbols
       ;;tabbar            ; FIXME an (incomplete) tab bar for Emacs
       treemacs          ; a project drawer, like neotree but cooler
       ;;unicode           ; extended unicode support for various languages
       vc-gutter         ; vcs diff in the fringe
       vi-tilde-fringe   ; fringe tildes to mark beyond EOB
       window-select     ; visually switch windows
       workspaces        ; tab emulation, persistence & separate workspaces

       :editor
       (evil +everywhere); come to the dark side, we have cookies
       file-templates    ; auto-snippets for empty files
       fold              ; (nigh) universal code folding
       (format +onsave)  ; automated prettiness
       lispy             ; vim for lisp, for people who dont like vim
       multiple-cursors  ; editing in many places at once
       ;;parinfer          ; turn lisp into python, sort of
       rotate-text       ; cycle region at point between text candidates
       snippets          ; my elves. They type so I don't have to

       :emacs
       (dired            ; making dired pretty [functional]
        +ranger          ; bringing the goodness of ranger to dired
        +icons)          ; colorful icons for dired-mode
       electric          ; smarter, keyword-based electric-indent
       vc                ; version-control and Emacs, sitting in a tree

       :term
       eshell            ; a consistent, cross-platform shell (WIP)
       ;;term              ; terminals in Emacs
       vterm             ; another terminals in

       :tools
       ;;ansible
       ;;debugger          ; FIXME stepping through code, to help you add bugs
       direnv
       docker
       editorconfig      ; let someone else argue about tabs vs spaces
       ein               ; tame Jupyter notebooks with emacs
       eval              ; run code, run (also, repls)
       (flycheck
        +childframe)     ; tasing you for every semicolon you forget
       flyspell          ; tasing you for misspelling mispelling
       ;;gist              ; interacting with github gists
       (lookup           ; helps you navigate your code and documentation
        +devdocs         ; ...on devdocs.io online
        +docsets)        ; ...or in Dash docsets locally
       lsp
       macos             ; MacOS-specific commands
       magit             ; a git porcelain for Emacs
       make              ; run make tasks from Emacs
       ;;password-store    ; password manager for nerds
       pdf               ; pdf enhancements
       prodigy           ; FIXME managing external services & code builders
       rgb               ; creating color strings
       ;;terraform         ; infrastructure as code
       tmux              ; an API for interacting with tmux
       upload            ; map local to remote projects via ssh/ftp
       ;;wakatime

       :lang
       ;;agda              ; types of types of types of types...
       ;;assembly          ; assembly for fun or debugging
       (cc +lsp)           ; C/C++/Obj-C madness
       ;;clojure           ; java with a lisp
       ;;common-lisp       ; if you've seen one lisp, you've seen them all
       ;;coq               ; proofs-as-programs
       ;;crystal           ; ruby at the speed of c
       ;;csharp            ; unity, .NET, and mono shenanigans
       data              ; config/data formats
       ;;erlang            ; an elegant language for a more civilized age
       ;;elixir            ; erlang done right
       ;;elm               ; care for a cup of TEA?
       emacs-lisp        ; drown in parentheses
       ;;ess               ; emacs speaks statistics
       (go +lsp)                ; the hipster dialect
       ;;(haskell +intero) ; a language that's lazier than I am
       ;;hy                ; readability of scheme w/ speed of python
       ;;idris             ;
       (java +lsp)                       ; the poster child for carpal tunnel syndrome ;(java +meghanada)
       javascript        ; all(hope(abandon(ye(who(enter(here))))))
       ;;julia             ; a better, faster MATLAB
       kotlin            ; a better, slicker Java(Script)
       latex             ; writing papers in Emacs has never been so fun
       ;;ledger            ; an accounting system in Emacs
       ;;lua               ; one-based indices? one-based indices
       markdown          ; writing docs for people to ignore
       ;;nim               ; python + lisp at the speed of c
       ;;nix               ; I hereby declare "nix geht mehr!"
       ;;ocaml             ; an objective camel
       (org              ; organize your plain life in plain text
        +attach          ; custom attachment system
        +babel           ; running code in org
        +capture         ; org-capture in and outside of Emacs
        +export          ; Exporting org to whatever you want
        +habit           ; Keep track of your habits
        +present         ; Emacs for presentations
        +protocol)       ; Support for org-protocol:// links
       ;;perl              ; write code no one else can comprehend
       ;;php               ; perl's insecure younger brother
       ;;plantuml          ; diagrams for confusing people more
       ;;purescript        ; javascript, but functional
       (python
        +pyenv
        +conda
        +lsp)            ; beautiful is better than ugly
       qt                ; the 'cutest' gui framework ever
       ;;racket            ; a DSL for DSLs
       ;;rest              ; Emacs as a REST client
       ;;ruby              ; 1.step do {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
       rust              ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
       ;;scala             ; java, but good
       sh                ; she sells (ba|z)sh shells on the C xor
       ;;solidity          ; do you need a blockchain? No.
       ;;swift             ; who asked for emoji variables?
       ;;terra             ; Earth and Moon in alignment for performance.
       web               ; the tubes
       ;;vala              ; GObjective-C

       ;; Applications are complex and opinionated modules that transform Emacs
       ;; toward a specific purpose. They may have additional dependencies and
       ;; should be loaded late.
       :app
       ;;(email +gmail)    ; emacs as an email client
       ;;irc               ; how neckbeards socialize
       ;;(rss +org)        ; emacs as an RSS reader
       ;;twitter           ; twitter client https://twitter.com/vnought
       (write            ; emacs as a word processor (latex + org + markdown)
       +wordnut         ; wordnet (wn) search
       +langtool)       ; a proofreader (grammar/style check) for Emacs

       :collab
       ;;floobits          ; peer programming for a price
       ;;impatient-mode    ; show off code over HTTP

       :config
       ;; For literate config users. This will tangle+compile a config.org
       ;; literate config in your `doom-private-dir' whenever it changes.
       ;;literate

       ;; The default module sets reasonable defaults for Emacs. It also
       ;; provides a Spacemacs-inspired keybinding scheme and a smartparens
       ;; config. Use it as a reference for your own modules.
       (default +bindings +snippets +smartparens)

       :private
       ;; lsp-intellij
       )
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(package-selected-packages (quote (async quelpa use-package persistent-soft))))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

2. config.el

(load! "+os")
(load! "+misc")
(load! "+text")
(load! "+prog")
(load! "+ui")
(load! "+bindings")

(setq doom-scratch-buffer-major-mode 'emacs-lisp-mode)

(setq-default fill-column 100
              delete-trailing-lines t)

;; Delete the selection when pasting
(delete-selection-mode 1)

;; disable risky local variables warning
(advice-add 'risky-local-variable-p :override #'ignore)

;; check minified-file
(add-to-list 'magic-mode-alist (cons #'+my/check-minified-file 'fundamental-mode))

(set-popup-rules! '(("^\\*helpful" :size 0.35)
                    ("^\\*Ibuffer\\*$" :size 0.35)
                    ("^\\*info.*" :size 80 :side right)
                    ("^\\*Man.*" :size 80 :side right)
                    ("^\\*Customize" :actions display-buffer)
                    ("^\\*edit-indirect" :size 0.6)
                    ("^\\*YASnippet Tables\\*$" :size 0.35)
                    ("^\\*grep\\*$" :size 0.35)
                    ("^\\*Anaconda\\*$" :size 0.35)
                    ("^\\*helm kill ring\\*$" :size 0.35)
                    ((lambda (buf _) (with-current-buffer buf (eq major-mode 'forge-topic-mode))) :size 0.35)
                    ))

;; Load system profile for different machines
(let ((profile "~/.config/doom/profile.el"))
  (when (file-exists-p profile)
    (load-file profile)))

c++需要编译ccls，follow这里，python的话我用的直接是vscode编译过的mspyls。就是用你的vscode安装python plugin然后打开一个python 文件，然后mspyls就编译好了。接下来fd就会找executable，所以你需要再安装下fd, brew install fd。

并没有用，ccls已经安装过了，对于 Python，哪怕自行编译 Microsoft.Language.Server 并手动指定 ms-python-lsp 的位置，一样无法自动补全，😌

自定义执行路径如下，并不能自动补全，很神奇，为了测试，使用Centaur Emacs的配置，它的补全不会有问题
lsp-python-ms-executable is a variable defined in lsp-python-ms.el.

Value
"/Users/huchen/.vscode/extensions/python-language-server/output/obj/Microsoft.Python.LanguageServer/netcoreapp2.2/osx.10.14-x64/host/Microsoft.Python.LanguageServer"

lsp-python-ms-dir is a variable defined in lsp-python-ms.el.

Value
"/Users/huchen/.vscode/extensions/python-language-server/output/bin/Release/"

你是不是vscode的plugin没更新啊，我这边osx的python plugin路径跟你的不太一样。
然后现在安装编译和更新都已经集成到lsp-python-ms里了，你更新下这个plugin，然后M-x吧

全部重新安装了，今晚突然发现正常了，回想了下过程，可能是因为emacs打开 Python 代码停留时间太长了，结果居然就正常了，不知道原因为何


list_files.xq does not sort correctly

A problem with eXist 4.0 and the old xqueries

Fixed. Also takes into account any suffix after the number.


Remove manual install for federation.

/cc @irfanurrehman @shashidharatd

@gyliu513, would you rather consider removing manual deployment as expressed in here

@shashidharatd Done by removed the manual section in user guide.

This LGTM. Thanks for the update. would leave it to @marun to lgtm it.
/assign @marun

Thank you!
/lgtm


CEP 7: Conda Capitalization Standard

This pull request contains a draft CEP for a final official decision of conda capitalization within the documentation, so that it can be enforced for consistency in PRs and any other written materials. Please see the CEP itself for more information about the proposal.

Closing this because we solved it with the PRs linked above.


Add sample names to reconstruction output

Is there a way to have the file export the sample names in a 5th column alongside the D47s for the reconstructions? Otherwise its a simple matter of copying and pasting from the input file, but could save that extra step if you have time!

Ordering of the reconstructed temperatures fixed in https://github.com/Tripati-Lab/BayClump/commit/0f46df9ec4e975243e80d5bf3e80ec647207a619.
For Bayesian models, pass extra column:
https://github.com/Tripati-Lab/BayClump/blob/dev/server.R#L1380
https://github.com/Tripati-Lab/BayClump/blob/dev/server.R#L1357
https://github.com/Tripati-Lab/BayClump/blob/dev/server.R#L1334

Function added in https://github.com/Tripati-Lab/BayClump/commit/8febc676934d9713d8b8072613a5cda70ac451b0


feat(kafka): expose default kafka producer mechanism

Checklist

[ ] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
[ ] Links to related issues (if applicable)
[ ] Tests for the changes have been added/updated (if applicable)
[ ] Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
[ ] For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

Documentation: https://docs.confluent.io/platform/current/installation/configuration/producer-configs.html
Added properties:
retries (Default =<PHONE_NUMBER>)
Setting a value greater than zero will cause the client to resend any record whose send fails with a potentially transient error. Note that this retry is no different than if the client resent the record upon receiving the error. Produce requests will be failed before the number of retries has been exhausted if the timeout configured by delivery.timeout.ms expires first before successful acknowledgement. Users should generally prefer to leave this config unset and instead use delivery.timeout.ms to control retry behavior.
retry.backoff.ms (Default = 100)
The amount of time to wait before attempting to retry a failed request to a given topic partition. This avoids repeatedly sending requests in a tight loop under some failure scenarios.
request.timeout.ms (Default = 30000)
The configuration controls the maximum amount of time the client will wait for the response of a request. If the response is not received before the timeout elapses the client will resend the request if necessary or fail the request if retries are exhausted. This should be larger than replica.lag.time.max.ms (a broker configuration) to reduce the possibility of message duplication due to unnecessary producer retries.
delivery.timeout.ms (Default = 120000)
An upper bound on the time to report success or failure after a call to send() returns. This limits the total time that a record will be delayed prior to sending, the time to await acknowledgement from the broker (if expected), and the time allowed for retriable send failures. The producer may report failure to send a record earlier than this config if either an unrecoverable error is encountered, the retries have been exhausted, or the record is added to a batch which reached an earlier delivery expiration deadline. The value of this config should be greater than or equal to the sum of request.timeout.ms and linger.ms.
resolve #6377

Overall this looks very nice, thanks!

Hey @djordje-mijatovic have you had a chance to review David's feedback?

Hey @djordje-mijatovic have you had a chance to review David's feedback?

Yes. Everything is fixed.


Downloading firmware to MIO3 and MMC3

The downloading feature is still missing in pySiLibUSB and SiUsb3 TL (https://github.com/SiLab-Bonn/basil/blob/development/host/basil/TL/SiUsb3.py#L46).

USB3 support was dropped. KX2 modules are programmed via internal FTDI JTAG programmer.


Missing feature

I just noticed that train_test_split nor the main is returning more than 3 splits as mentionned in the picture

Yes, I coded train_test_split to only return one, so that we can call it as many times as we want to have more than 1 split! I think that it should be changed in the main. What do you think?

Ok, I understand.
No problem to add the feature in the main.


Updating bccciss package when data tables are updated

User ignorance to be corrected. I am updating a raw data table (feasibility) and then running the create_package_data.R script to update to the package .rda format successfully. This new data is not used when I then rerun the index.rmd as a local instance.
Not sure what I'm needing to do to implement the changes- am I needing to regenerate the bccciss package? If so I'm not sure if I actually know the procedure for this.

Yes the package has to be updated. You can do this from RStudio.
Or commit your new rda files and reinstall from github.

Thanks. Rebuild works fine though I have to manually remove the package from my library to allow it to be rebuild

Just a simple R restart on windows. (ctrl + shift + F10 in RStudio)
The package has compiled code. When the library is loaded on windows, the library C code is locked by the R process and can not be replaced.


Promise.all chaining is broken

TypeScript Version:  <IP_ADDRESS> (default for Visual Studio 2015 Update 2)
Code
// worked on TS <IP_ADDRESS>
let promises: Promise<number>[];
let promiseall: Promise<number[]> = Promise.all(promises)

Expected behavior: No compilation error.
Actual behavior:
Type 'Promise<Promise<number>[]>' is not assignable to type 'Promise<number[]>'.
  Type 'Promise<number>[]' is not assignable to type 'number[]'.
    Type 'Promise<number>' is not assignable to type 'number'.

Duplicate of #7566 :/


typo in predefined question

open ChatGPT menu
open Settings
choose PreDefined Questions tab
the caption for question "Create necessary interfaces for this class in Delphi:" says "Crreate Interface"
needs to say "Create Interface" instead (has double "r")

Fixed.


Testing

Fixes some math from #212
Fixes #210 and #205
Eat people more like the original

Nice, thanks for fixing this. TIL Math.asin and acos.

Thank you so much for that!
If you haven't added yourself as a contributor on package.json, please do so! :)


What is the intent of a time series database?

I work on an education startup and content engagement is a great concern for us, I've been thinking how can I know if a given user has engaged with a video or an audio. Is it an arbitraty percentage of content consumed? How can I store the moments of content consumed, which moment has been consumed more than one time, etc.
Is this database or this category of database something I should be looking into to solve this kind of problem?

Hey,
You might want to give Wikipedia a read. It's indeed a type of database specialized towards storing time series data. Simplified, it's typically specialized towards measuring and analyzing something over time.
It sounds like your problem can be addressed by this kind of database, Heroic might be a poor fit unless you are looking to setup a very large solution since that is what it specializes towards.
Good luck with your startup!


EvMeter API endpoints

Running version 1.5.1 and trying to use all API meters.
I am able to POST Grid details without a problem but I can not see how to POST EV meter and Solar meter data.
Are these just placeholders for now?

The API defintion is right here: https://swagger-ui.serkri.be/#/

Yes and that is what I have been using. However I only see an option to send Mains meter values (L1, L2, L3) but I do not see any option to send EV meter and Solar Meter values to the controller.
Unless I am missing something obvious here...

There is no such thing in the SmartEVSE design as a solar meter, there is only MainsMeter and EVMeter.
The values of EVMeter are taken off of the modbus, you cannot feed them with the API . Only the MainsMeter values you can feed through the API, and this is because users with a home battery want to prevent the home battery charging the EV battery and/or vice versa.

Since the API goes through wifi (http) it is not a preferred way to set critical values.

Ok, gotcha. So the option to select API as meter type for EV Meter is not intentional. I propose to remove that at some point to avoid similar confusion in the future

Yup can't test anything right now so let's leave this issue open as a reminder for me.

@thucar can you test this version for me? It is the current master version (1.5.2 + some small changes), added to it the change to skip the EM_API option at the EVMeter:
1.5.2+-em_api.zip

Fixed 8f1e650a1e50fa21451f64a54e896de3b6075543


Exclude milestone events in GitHub integration (at least optionally)

This is a very similar story to:

#25789

Basically all the same facts and reasons apply:

Here's the start of a ton of spam from this event type.
Like label/unlabel events, milestone events are liable to be quite spammy because one naturally has one of them just when creating an issue, and may often have bursts of lots of them when doing triage.
Like label/unlabel events, we know that zero people today are actually relying on these, because the existing messages we show are completely useless in the same way: they repeat the entire issue description, but don't mention the specific milestone that was set.

@zulipbot claim


Safety

Story
As a developer, I want to implement the idea of safety, so that I define events that will trigger a buy or a sell.
Consider

Creating the following two defined events:

Stop Loss

A stop-loss is an order type to limit potential losses on a cryptocurrency trade. (AnythingCrypto, 2018)

Flash Crash Detection

Flash crash is a "deep drop of an asset’s price followed by its quick recovery is a nightmare for any trader who sets up a stop-loss order. Many traders have lost money when they set up a stop-loss on a crypto exchange and a flash crash happens. Our service monitors all major crypto exchanges, and we offer a flash crash detection system that can be used by any trading strategy which is connected directly to a crypto exchange." (Signals Network Whitepaper, 2018)

Kryptos already integrates stop losses and take profits


pmd:ImmutableField, pmd:SimplifyConditional - Immutable Field, Simpli…

This pull request is focused on resolving occurrences of Sonar rules pmd:SimplifyConditional - Simplify Conditional
pmd:ImmutableField - Immutable Field
You can find more information about the issue here:
https://dev.eclipse.org/sonar/coding_rules#q=pmd:SimplifyConditional
https://dev.eclipse.org/sonar/coding_rules#q=pmd:ImmutableField
Please let me know if you have any questions.
M-Ezzat

Thank you, for your contribution. I merged the changes into the development branch (1.0.2-development) for the next release.


CoqLexer: missing operator '<->'

(Original issue 1011 created by brab on 2014-06-24T10:48:50.893036+00:00)
The operator '<->' seems to be missing from the list of operators in CoqLexer (https://bitbucket.org/birkenfeld/pygments-main/src/bec55c895c0475097940dde470060a68e6ce6958/pygments/lexers/functional.py?at=default#cl-2802). It is thus parsed as two operators '<-' followed by '>'.
Could it be added to the list of operators?

(Original issue 1011 last updated on 2014-09-19T22:07:21.093876+00:00)
(Issue automaticaly closed due to status in Bitbucket: resolved)

(Original comment by dscorbett on 2014-06-25T13:15:49.090817+00:00)
Is anything highlighted wrong because of this?

(Original comment by brab on 2014-06-25T14:28:22.430146+00:00)
I'm writing a filter that converts operators into unicode versions, and it fails in this case as the stream returns two elements instead of one for '<->'.

(Original comment by jaingaurav2 on 2014-06-30T05:15:49.347033+00:00)
Pull request #376 should resolve this

(Original comment by birkenfeld on 2014-09-19T22:07:21.105557+00:00)
Merged.


Failed to send crash report due to a network error: SocketException: Failed host lookup: 'clients2.google.com' (OS Error: 。 , errno = 11001)

Steps to Reproduce

...
...
...

Logs

flutter.log
Flutter crash report; please file at https://github.com/flutter/flutter/issues.
command
flutter build apk
exception
FileSystemException: FileSystemException: readSync failed, path = 'G:\flutter_browser\build\app\outputs\apk\release\app-release.apk' (OS Error: 操作成功完成。
, errno = 0)
#0      _RandomAccessFile.readSync (dart:io/file_impl.dart:761:7)
#1      _File.readAsBytesSync (dart:io/file_impl.dart:560:23)
#2      ForwardingFile.readAsBytesSync (package:file/src/forwarding/forwarding_file.dart:95:62)
#3      _calculateSha (package:flutter_tools/src/android/gradle.dart:619:32)
#4      _buildGradleProjectV2 (package:flutter_tools/src/android/gradle.dart:765:34)
#5      _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:71:64)
#6      _rootRunUnary (dart:async/zone.dart:1132:38)
#7      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#8      _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#9      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#10     Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#11     Future._completeWithValue (dart:async/future_impl.dart:522:5)
#12     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:30:15)
#13     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:288:13)
#14     runCommandAndStreamOutput (package:flutter_tools/src/base/process.dart)
#15     _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:71:64)
#16     _rootRunUnary (dart:async/zone.dart:1132:38)
#17     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#18     _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#19     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#20     Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#21     Future._completeWithValue (dart:async/future_impl.dart:522:5)
#22     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:552:7)
#23     _rootRun (dart:async/zone.dart:1124:13)
#24     _CustomZone.run (dart:async/zone.dart:1021:19)
#25     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#26     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#27     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#28     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#29     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#30     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)

G:\flutter_browser>flutter doctor -v
[√] Flutter (Channel stable, v1.9.1+hotfix.5, on Microsoft Windows [Version 10.0.18362.175], locale zh-CN)
• Flutter version 1.9.1+hotfix.5 at G:\AndroidBrowser\branches\flutter
• Framework revision 1aedbb1835 (6 days ago), 2019-10-17 08:37:27 -0700
• Engine revision b863200c37
• Dart version 2.5.0
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at E:\AndroidSDK
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = E:\AndroidSDK
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[√] Android Studio (version 3.4)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 39.0.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[!] Connected device
! No devices available
! Doctor found issues in 1 category.

Hi @limin1314
I'm not sure that google translator is really helping me out here:
FileSystemException: FileSystemException: readSync failed, path = 'G:\flutter_browser\build\app\outputs\apk\release\app-release.apk' (OS Error: 操作成功完成。
, errno = 0)

translates to
FileSystemException: FileSystemException: readSync failed, path = 'G:\flutter_browser\build\app\outputs\apk\release\app-release.apk' (OS Error: **The operation completed successfully.**。
, errno = 0)

is that correct?
Could you please provide your flutter run --verbose/flutter build --verbose ?
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of ' flutter doctor -v'  please.
All system setups can be slightly different so its always better to open new issues and reference related issues.


Add constants for uclibc

Some constants needs to build target mips-openwrt-linux-uclibc (OpenWrt-15.05.1):

GRND_NONBLOCK
GRND_RANDOM

@bors: r+

:pushpin: Commit ea66e51 has been approved by alexcrichton

:hourglass: Testing commit ea66e5102cf877d9eeeaf5dad6316ebbf318d646 with merge 4412f687cb05e63f4fa0143cf0ad484c76f8ad30...

:broken_heart: Test failed - status-travis

@bors: retry
On Tue, Apr 10, 2018 at 9:48 AM, bors<EMAIL_ADDRESS>wrote:

💔 Test failed - status-travis
https://travis-ci.org/rust-lang/libc/builds/364626001?utm_source=github_status&utm_medium=notification
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rust-lang/libc/pull/966#issuecomment-380128598, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAD95P8447tYP4wJXwsffCE21uHK2uuOks5tnMZAgaJpZM4TNqex
.

:hourglass: Testing commit ea66e5102cf877d9eeeaf5dad6316ebbf318d646 with merge 6403d9cb78d7ea01879d5d0d3542e39323302986...

:broken_heart: Test failed - status-travis

@bors: retry
On Tue, Apr 10, 2018 at 10:15 AM, bors<EMAIL_ADDRESS>wrote:

💔 Test failed - status-travis
https://travis-ci.org/rust-lang/libc/builds/364651240?utm_source=github_status&utm_medium=notification
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rust-lang/libc/pull/966#issuecomment-380138442, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAD95J-xgJNFov1Ws5u04R9vb_ERkqI6ks5tnMysgaJpZM4TNqex
.

:hourglass: Testing commit ea66e5102cf877d9eeeaf5dad6316ebbf318d646 with merge c454601b700d0b6972149363a94e68e0b8561204...

Oops... Those constants already commited in https://github.com/rust-lang/libc/commit/ba0e4bb4d3397d8bea440d0e3ea8e0c5b1659587#diff-442841c9dfd8470bf01413c3fa88daf2R1331
Sorry, I patched libc from rust 1.25.0 and didn't see this commit. So, this PR is not need.


Set 'as_user==true' explicitly for all messages sent.

[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've searched for any related issues and avoided creating a duplicate issue.

Description
The latest update fixed the issue where as_user=true on a crafted message was being mangled.  However prior to 4.x, this value was set explicitly. This is no longer the case and breaks public 3rd party hubot scripts.
Seems wrong to make script not written for slack, have to include a slack specific work around.
Steps to reproduce:

Type 'bot help'

That's fair.

Have a look at #337 @ArcticSnowman ?


Option for Download paper in each sem

Fixes #23
Checklist

[ ] My branch is up-to-date with the Upstream master branch.
[ ] I have added necessary documentation (if appropriate)

Changes proposed in this pull request

Screenshots (if appropriate)

Link to live demo (if appropriate):
https://amisha.gdy.club/paper.lnmiit
Closes #

LGTM
It will be good if you squash commits before pushing them.As you are first timer , I am merging it but keep it mind from now. Keep contributing


chunks doesn't work with goog.requireType

This is transferred from https://github.com/google/closure-compiler/issues/3931
Closure Compiler introduces closure-calculate-chunks as a tool to create an option to use chunks.
https://github.com/google/closure-compiler/wiki/Chunk-output-for-dynamic-loading#asking-closure-compiler-to-produce-chunks---the-easy-way
But it doesn't work well when we have a dependency referenced by goog.requireType because google-closure-deps doesn't list files referenced by goog.requireType as dependencies. closure-calculate-chunks accepts the deps.js generated by google-closure-deps so it means that closure-calculate-chunks cannot recognize the file because the file isn't in the deps.js.

myapp.js

goog.provide("myapp");

// mylib isn't listed as a dependency of `myapp.js`
goog.requireType("mylib");

myapp.foo = a => console.log(a);

// goog.addDependency('../../../../../src/myapp.js', ['myapp'], [], {'lang': 'es6'});

I think this is caused by the following problems

google-closure-deps doesn't list files referenced by goog.requireType (this is not a problem of Closure Compiler itself)
There is no way to specify files only referenced by goog.requireType as inputs of chunks

We could pass the files as --js options unless the dependencies don't include any circular dependency.

If Closure Compiler won't support the case of a circular dependency caused by dependencies of goog.requireType, this seems to be solved only by fixing google-closure-deps.

We should be able to fix this without changes to the deps file. It will just requiring parsing and traversing the AST for every closure-library file because we can't depend on the deps.js file to correctly list the inputs. It's not a big change, but it will likely be a hit to the speed of the tool.

The code to detect an add goog.requireType calls is currently present. I'll need a minimal reproduction case to debug this further.


Documentation with detailed and updated information

@lbegani  This should be closed - doc move into https://github.com/Dronecode/csd_docs/pull/8

The image is now moved to https://github.com/Dronecode/csd_docs

... and looks damn good thanks :-) !!!


Laguna Beach, CA

Bob Whalen (Mayor)<PHONE_NUMBER>
Steve Dicterow (Mayor Pro Tem)<PHONE_NUMBER>
Peter Blake<PHONE_NUMBER>
Toni Iseman<PHONE_NUMBER>
Sue Kempf<PHONE_NUMBER>
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>,
<EMAIL_ADDRESS>Dear Laguna Beach City Council,
My name is [YOUR NAME] and I am a resident of [YOUR NEIGHBORHOOD/DISTRICT]. I am writing to demand that the Laguna Beach City Council adopt a city budget that prioritizes community wellbeing, and redirects funding away from the police.
For the FR 2020-2021 Budget, Laguna Beach has appropriated $19.8 million of the General Fund to the Police department. This is larger than any other portion of the General Fund - 27%. Compare this to just $3.8 million (5.2%) spent on Community Services - this includes City Parks, Community Assistance, and all Homeless Programs.
Around the country, we are witnessing shocking abuses of police power, manifested as violence and murder inflicted primarily on Black, Latinx, and Indigenous people. While these high-profile cases are taking place in other cities, Laguna Beach is not free from police violence and systemic racism within its criminal justice system. To truly rid ourselves of these problems we must imagine and build new systems to keep our community safe - systems that enable conflict de-escalation, substance abuse treatment, mental health and housing services.
I demand that the City Council begin defunding the Laguna Beach Police Department and re-allocate those funds to programs proven to more effectively promote a safe and equitable community, such as affordable housing programs, community-based mental health programs, and more investment in programs for the homeless such as the ASL.
Thank you for your time.
[YOUR NAME]
[YOUR ADDRESS]
[YOUR EMAIL]
[YOUR PHONE NUMBER]

Bob Whalen (Mayor)<PHONE_NUMBER>
Steve Dicterow (Mayor Pro Tem)<PHONE_NUMBER>
Peter Blake<PHONE_NUMBER>
Toni Iseman<PHONE_NUMBER>
Sue Kempf<PHONE_NUMBER>
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>,
<EMAIL_ADDRESS>Dear Laguna Beach City Council,
My name is [YOUR NAME] and I am a resident of [YOUR NEIGHBORHOOD/DISTRICT]. I am writing to demand that the Laguna Beach City Council adopt a city budget that prioritizes community wellbeing, and redirects funding away from the police.
For the FR 2020-2021 Budget, Laguna Beach has appropriated $19.8 million of the General Fund to the Police department. This is larger than any other portion of the General Fund - 27%. Compare this to just $3.8 million (5.2%) spent on Community Services - this includes City Parks, Community Assistance, and all Homeless Programs.
Around the country, we are witnessing shocking abuses of police power, manifested as violence and murder inflicted primarily on Black, Latinx, and Indigenous people. While these high-profile cases are taking place in other cities, Laguna Beach is not free from police violence and systemic racism within its criminal justice system. To truly rid ourselves of these problems we must imagine and build new systems to keep our community safe - systems that enable conflict de-escalation, substance abuse treatment, mental health and housing services.
I demand that the City Council begin defunding the Laguna Beach Police Department and re-allocate those funds to programs proven to more effectively promote a safe and equitable community, such as affordable housing programs, community-based mental health programs, and more investment in programs for the homeless such as the ASL.
Thank you for your time.
[YOUR NAME]
[YOUR ADDRESS]
[YOUR EMAIL]
[YOUR PHONE NUMBER]


Add CI job with pyarrow strings turned on

As part of https://github.com/dask/dask/issues/9946, this PR adds a new CI job that has the dataframe.convert_string config option turned on. Given there are still lots of known failures when dataframe.convert_string is enabled, I've marked this new CI job as an allowed failure (all other CI jobs are unchanged). That means, only for this new job, even if the test suite fails, we'll still get a green check mark. After all the test failures in this job have been fixed, we should remove the continue-on-error: true line for this job.
cc @j-bennet

Note in the pyarrow CI job logs there are lots of test failures

Sure, that makes sense. We should be installing all the nightly upstream packages in the pyarrow job now


Sprite groups no longer seem to work in 2.0

In Pyglet 2.0dev5 (Windows 10 x64), the following code:
import pyglet

batch = pyglet.graphics.Batch()
bg = pyglet.sprite.SpriteGroup(0)
fg = pyglet.sprite.SpriteGroup(1)

generates the following error:
    bg = pyglet.sprite.SpriteGroup(0)
TypeError: __init__() missing 3 required positional arguments: 'blend_src', 'blend_dest', and 'program'

This usage is as per the documentation so I'm not sure what's wrong.

As shown by this code, the SpriteGroup requires the texture, blend_src, blend_dst and program arguments. These weren't provided so it threw an error. Using the pyglet.graphics.OrderedGroup class, however, would work with just the order argument. Have you mixed up the two classes?
class SpriteGroup(graphics.Group):
    """Shared sprite rendering group.
    The group is automatically coalesced with other sprite groups sharing the
    same parent group, texture and blend parameters.
    """

    def __init__(self, texture, blend_src, blend_dest, program, order=0, parent=None):
        """Create a sprite group.
        The group is created internally when a :py:class:`~pyglet.sprite.Sprite`
        is created; applications usually do not need to explicitly create it.
        :Parameters:
            `texture` : `~pyglet.image.Texture`
                The (top-level) texture containing the sprite image.
            `blend_src` : int
                OpenGL blend source mode; for example,
                ``GL_SRC_ALPHA``.
            `blend_dest` : int
                OpenGL blend destination mode; for example,
                ``GL_ONE_MINUS_SRC_ALPHA``.
            `program` : `~pyglet.graphics.shader.ShaderProgram`
                A custom ShaderProgram.
            `order` : int
                Change the order to render above or below other Groups.
            `parent` : `~pyglet.graphics.Group`
                Optional parent group.
        """
        super().__init__(order, parent)
        self.texture = texture
        self.blend_src = blend_src
        self.blend_dest = blend_dest
        self.program = program

Oho, I believe that might be my issue. Thank you!


Command fo find bicepconfig.json in use and read properties

Is your feature request related to a problem? Please describe.
Sometimes you want to know which bicepconfig.json file is being used. A custom one somewhere in your path or a parent directory or the built-in one.
Describe the solution you'd like
Would like to see a command to get bicepconfig.json files and one to read them.
# Find bicepconfig files
Get-BicepConfig

Get-BicepConfig | Read-BicepConfig

Read-BicepConfig -Path ..\bicepconfig.json

Additional context

Currently, this is handled by BicepNet. I'll create an issue there as well.

Currently, this is handled by BicepNet. I'll create an issue there as well.

Cool! I was going to ask you about that. Thinking about adding commands to easily add settings to the files as well.

Proof of concept for the command available for testing in https://github.com/PSBicep/BicepNet/pull/35.