no chinese

Why are there so many language options but no Chinese? Are you looking down on us China?

Why are there so many language options but no Chinese? Are you looking down on us China?

Understand, the author doesn't translate the entire program, he translates it only into English (which is considered the language of development) and into German, because he most likely uses it and knows it. All other languages are translated by community members, depending on who knows which language and who uses it. If there is no language in the application, it's only because there isn't a single person in the community who owns it or wants to use it and translate it. There is a whole "Translation" section on the main page dedicated to this, where you can familiarize yourself with everything. There you can learn how to personally participate in the translation of the application into any language you wish.
P.S. As the author wrote, the application has a Chinese translation. It may not be complete, but again, if you wish, you can supplement it ourselves.

this issue should be closed as completed

Yes, it's time to close it


RFC: split StreamingConnector into ingestion and aggregation component

Currently ingestion and aggregation are tightly coupled together. I believe they should be two separate domains, even though the components of the underlying technology are tightly coupled as well.
By separating these modules it becomes easier to reason about the system as each component (ingestion, aggregation) will be responsible for their part only. It also becomes easier to cover the system with tests.

@hekike can you share your architectural diagram here?
I think we are close to getting this done.


Unable to find and view uploaded images in findings

Bug description
Hi, I´m new with DefectDojo and I´m testing it to implement it my company. I downloaded and installed DefectDojo using Docker and I´m having problems to view the uploaded images in the findings.
Digging a little bit I have found that these images are being uploaded to the docker container named django-defectdojo_uwsgi_1 to the path /app/media/uploaded_files, but when I try to see them I get a 404 error.
Looking into the logs I have found that DefectDojo is trying to get the image from the docker container named django-defectdojo_nginx_1 in the path /usr/share/nginx/html/media/uploaded_files/ (see logs below).
I have manually copied the uploaded files from the first container to the second to check this problem and the images can now be seen.
I don´t know if I´m doing something wrong, but it seems weird that the application is uploading the files into one path and then looking for them in another.
PS. I´m using the default configuration.
Steps to reproduce
Steps to reproduce the behavior:

Install defectdojo as indicated in the github page.
Create a new product type, product, engagement and finding.
Access to the finding and upload an image through the Manage Files option.
Click on the image uploaded and get a 404 error.

Expected behavior
I expect to see the images I have upload in the finding
Deployment method (select with an X)

[ ] Kubernetes
[X] Docker
[ ] setup.bash / legacy-setup.bash

Environment information

Operating System: Debian 5.9.1-1kali2 (2020-10-29) x86_64 GNU/Linux
DefectDojo Commit Message: [2021-03-22 19:11:13 +0100] ec47390e: Bump lxml from 4.6.2 to 4.6.3 (#4108) [ (HEAD -> master, origin/master, origin/HEAD)]

Screenshots
Finding with two files uploaded, the first one is not found, the second one is found because I copied it to /usr/share/nginx/html/media/uploaded_files/ path.

404 not found image

Console logs
celeryworker_1  | [23/Mar/2021 12:41:17] INFO [celery.worker.strategy:157] Received task: dojo.tasks.async_dupe_delete[4a4b1a6c-bf58-4b82-9aa1-34b42e93ca80]
celeryworker_1  | [23/Mar/2021 12:41:17] INFO [celery.app.trace:125] Task dojo.tasks.async_dupe_delete[4a4b1a6c-bf58-4b82-9aa1-34b42e93ca80] succeeded in 0.0038983169999937672s: None
nginx_1         | 2021/03/23 12:41:22 [error] 6#6: *54 open() "/usr/share/nginx/html/media/uploaded_files/5f06dc68-9a7f-42fa-81f1-561d41767dd0.PNG" failed (2: No such file or directory), client: <IP_ADDRESS>, server: , request: "GET /media/uploaded_files/5f06dc68-9a7f-42fa-81f1-561d41767dd0.PNG HTTP/1.1", host: "localhost:8080", referrer: "http://localhost:8080/finding/1"
nginx_1         | <IP_ADDRESS> - - [23/Mar/2021:12:41:22 +0000] "GET /media/uploaded_files/5f06dc68-9a7f-42fa-81f1-561d41767dd0.PNG HTTP/1.1" 404 153 "http://localhost:8080/finding/1" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0" "-"
nginx_1         | <IP_ADDRESS> - - [23/Mar/2021:12:41:23 +0000] "GET /favicon.ico HTTP/1.1" 499 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0" "-"
uwsgi_1         | [pid: 18|app: 0|req: 106/110] <IP_ADDRESS> () {40 vars in 663 bytes} [Tue Mar 23 12:41:23 2021] GET /favicon.ico => generated 26621 bytes in 71 msecs (HTTP/1.1 404) 6 headers in 198 bytes (1 switches on core 0)
uwsgi_1         | [pid: 18|app: 0|req: 107/111] <IP_ADDRESS> () {44 vars in 740 bytes} [Tue Mar 23 12:41:24 2021] GET /alerts/count => generated 12 bytes in 15 msecs (HTTP/1.1 200) 6 headers in 180 bytes (1 switches on core 1)
nginx_1         | <IP_ADDRESS> - - [23/Mar/2021:12:41:24 +0000] "GET /alerts/count HTTP/1.1" 200 12 "http://localhost:8080/finding/1" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0" "-"

I believe this is fixed in the dev branch. Could you try that?

@valentijnscholten I confirm you that the problem is solved.
You have fixed it as I did yesterday. Just one thing to take into account if someone have the same problem. In addition to modify docker-compose.yml file with the volumes, I had to modify nginx_TLS.conf file because nginx didn´t have the media path configured.
location /static {
alias /usr/share/nginx/html/static;
    }
location /media {
      alias /usr/share/nginx/html/media;
    }
location / {
      include /run/defectdojo/uwsgi_pass;
      include /etc/nginx/wsgi_params;
      uwsgi_read_timeout 1800;

Makes sense, could you make a small PR against dev to add the media mapping to nginx TLS?

Sorry for the delay answering.
PR done

It seems that I didn´t to de PR correctly.
I think is now done.
Check this https://github.com/DefectDojo/django-DefectDojo/pull/4371

fixed in 1.15.0


Makefile target for big install command

Our Poetry dependency installation command is pretty long. This captures it in the Makefile as make install.

Nice call. IMO we should do this for all common commands. I.e. make code-checks/lint, make test, etc.
Would make it easier to ensure the checks being run in pre-commit, GitHub actions, and manually are all the same.


Install as a git submodule: breaks index. Adding .gitignore helps

I'm managing my whole ~, and I've installed zplug as:
git submodule add https://github.com/b4b4r07/zplug.git .zplug

Added appropriate lines to .zshrc, including
After zplug install git starts being annoying:
$ git status
On branch master
Changes not staged for commit:
	modified:   .zplug (untracked content)

This doesn't appear anymore if I add .gitignore to ~/.zplug:
.cache
.gitignore
repos
zcompdump

Full dotfiles just for the case.
The rest is just brilliant! Great job

Hi,
I appreciate your suggestion, but it is difficult to add .gitignore to the root directory because it is the use case unexpected by the developer.
zplug developer want the users to manage zplug with zplug update --self.

I think @pirj has a point though, if you compare to say fzf or nvm, they have a .gitignore setup and the working directory stays clean to git - for example fzf ignores it's "./bin/" folder.


feat(sublist): generate flamegraphs

Next step would be to figure out why stuff is taking so long. Flamegraphs are a really helpful tool for that. I added flamegraph generation based on  this blog post. It was barely any work, since pprof and criterion work incredibly well with each other.
The blog most mentions this only works on linux though... not sure what OS you're running.
I've included a comment with instructions to generate in the little convenience html file:
cargo bench --bench sublist -- --profile-time=5

It looks to me like much time is spend in syscalls, waiting on locks specifically.
I'm including my results here, in case there's trouble getting it to run on your machine:

Threads, 100

Threads, 260135

Threads, 520271

It's interesting why so much time is spent on starting a thread... I thought I only start a few threads and then reuse them 🤔

It's interesting why so much time is spent on starting a thread... I thought I only start a few threads and then reuse them thinking

The thread creation only dominates for the benchmark with very small input, right? I think that's pretty normal. Thread creation has a constant overhead, and if the problem itself is small enough, that overhead will dominate.
One way to fix that is to pick some reasonable problem size and use the sequential version for small problems, only spinning up a thread pool for large enough input. That would in theory give you the best of both worlds.


Can we change grafana datasource name to "prometheus"?

because  datasource name of promethues operator  create is "prometheus",not "Prometheus", If we change to same, it will be easy to import
https://github.com/istio/installer/blob/master/istio-telemetry/grafana/dashboards/galley-dashboard.json#L35
https://github.com/coreos/kube-prometheus/blob/master/manifests/grafana-dashboardDatasources.yaml#L3

I think if we made this change we would get some users requesting we switch it back to "Prometheus" for some reason or another. Is there a better solution where we can make it configurable using the grafana template stuff?


Remove deprecated WinGet package for June 2024 GDK Update 2

Remove deprecated WinGet package for June 2024 GDK Update 2
Microsoft Reviewers: Open in CodeFlow

@microsoft/xbox-developer-experience-toolbox for review


cpu or gpu

nice package, just wondering if this runs on cpu or gpu
cheers

@jason-shen Hey, this would be CPU only at the time. That said, the underlying ONNX framework totally supports hw acceleration through GPU so it shouldn't be too difficult to add support for it when available.


Could not cast value of type '__NSCFNumber' (0x10cc8c2d8) to '__C.NSLineBreakMode' (0x102ac8818)

I'm getting this error:
Could not cast value of type '__NSCFNumber' (0x10cc8c2d8) to '__C.NSLineBreakMode' (0x102ac8818)
in LayoutExpression.swift line 749.
It's working fine on the Simulator, but when I run on actual device, my app crashed and gave me this error.
I'm not sure what I did wrong but it only happens on one ViewController. While others works just fine.

If you could submit a sample project that demonstrates the problem, I’ll try to track it down.

I figured out what causes the crash. It's when I'm trying to set a constant for attributedTitle for a UIButton. Then, I create an outlet of the UIButton and used myButtonsetAttributedTitle(attributedString, for: .normal) it's no longer crashing. Maybe you can fix it.

@ardramli this is now fixed on the develop branch.

Fixed in version 0.6.25


Show kill button for INIT state and option to sort jobs by start and finish time

part of #164

Coverage remained the same at 88.711% when pulling e07ca4874936e71c5c10f97b0acc6fc1b53bf4b9 on cabhishek:develop into b4e5801237b4ad8e12fd9e08660ebc52119f59c4 on Netflix:develop.


specified exception in test_FitGammaHillas() and minor changes requested by karl

as requested by @kosack in #208

Argh, I was also fixing the pep8 formatting. Let me solve the conflict for a second.

Fixed, and merged.


Start Load-shedding Highway data

For HDC: If HWY too long -> Data is useless -> Don't capture FrameKm

semi-related, what happens if we use 3-threads instead of 2?


spring-upgrade created by renovate

Change description
Merged two spring upgrade created by renovate
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

Mutation test is failing on nightly-dev . closing this ticket


Get better names for raw types

Some types override the Module#name method to impersonate other types, but Sorbet checks for module (and ancestor) equivalance when checking for equality of types. Thus, if the types don't match, Sorbet ends up reporting a misleading name for such modules.
It is better to report the name that would have been returned by Module#name instead, by doing the bind/call trick.
Motivation

Make T::Types::Simple.new(Type).name return the actual type name and not the overridden one.
Test plan

See included automated tests.

@jez This seems to be more in your area of expertise. What do you think about this?

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build result here:
→ https://go/builds/bui_HzxIYdNdUW0cy4

Would you be open to version-gating this change on ruby-2.7 and above? There is a performance issue with Module#name in ruby 2.6 and earlier that we avoid by overloading name: https://bugs.ruby-lang.org/issues/15625. We'll still need to figure out how to resolve the use of overloading when we switch to 2.7, but we can make that part of a separate effort.

Thanks for the explanation @elliottt. Version-gating this on ruby-2.7 and above would not help me in what I was planning to build on this, so I'd rather not change the library and run with my own little patch in my project to get the true names of classes. Thanks for the consideration anyway.


Adjustments to MusicService auth flow

Includes the following:

Adds linkDeviceId handling into AppLink flows.
Simplifies the part1/part2 handling by caching values instead of passing back tuples. These can still be accessed as the link_code and link_code_id attributes on the MusicService instance and passed into part2. This may be necessary if the MusicService instance is not preserved between steps.
Handles more authorization failure conditions.
Uncomment the timezone handling.
Reduce unnecessary log levels, fix typos.

Here's how auth can be done now:
>>> from soco.music_services.music_service import MusicService
>>> plex = MusicService("Plex")
>>> reg_url = plex.device_or_app_link_auth_part1()

 -> Go complete authentication

>>> plex.device_or_app_link_auth_part2()
>>> for result in plex.search("artists", "Stevie Wonder"):
...     result
...
<soco.music_services.data_structures.MSArtist object at 0x7f8b5b1bf3d0>

If the MusicService instance is lost during auth, this can be done instead:
>>> from soco.music_services.music_service import MusicService
>>> plex = MusicService("Plex")
>>> reg_url = plex.device_or_app_link_auth_part1()
>>> print(plex.link_code, plex.link_code_id)  # Save for later

 -> Go complete authentication

>>> from soco.music_services.music_service import MusicService
>>> plex = MusicService("Plex")
>>> plex.device_or_app_link_auth_part2(link_code=link_code, link_code_id=link_code_id)

https://github.com/KennethNielsen/SoCo/pull/1/commits/d5ae84a3867c3b461086e327fadbd02c7c44c84e was needed as faults were sometimes returned with a HTTP 200 status code (i.e., success). I saw this when the refresh key expired. Doing this check in parse_response turned out to be too late.
https://github.com/KennethNielsen/SoCo/pull/1/commits/55b0a26ec8ce4e8592153dc598e7ec918e1bc0c8 was needed as validating the namespace when searching the payload for reauth tokens breaks some services (which are probably out of spec).
I experienced both of these when testing against bonob.

Looks good. Thanks.


Party Implementation.

Ability to listen to songs together in a synced way
ToDo:

[x] Implementing view to display all parties
[ ] Ability to create a new party
[ ] Ability to join a party
[ ] Ability to edit party details
[ ] Ability to kick people from party
[ ] Ability to transfer host to another user
[ ] Ability to delete the whole party
[ ] Ability to gain a secret to invite people to private parties
[ ] Logic to update party status and state
[ ] Logic to delete a party when there isn't an update after 24 hours
[ ] Logic to invite people to their party via discord invites or to Join a public party via the Join function of discord

Progress update:
This issue waits for the API rework to be done, on which I'm currently working on!

Added todo list on the issue, to have a list of tasks


Support for TaskEither.tryCatchK

Hi and tanks for your awesome library!
When experimenting with your library I've encountered this issue when dealing with concatenating TaskEithers with the .flatMap method.
I've tried to recreate your setup of your blog post.
Heres an extract of my code.
  TaskEither<Failure, Quote> getRandom() => TaskEither.tryCatch(
        () => _makeRequest(),
        (error, stackTrace) => FetchFailure(
          error: error,
          stacktrace: stackTrace,
        ),
      ).flatMap((r) => _cacheTask(r))

  TaskEither<Failure, Quote> _cacheTask(Quote quote) => TaskEither.tryCatch(
        () => _cache(quote),
        (error, stackTrace) => SharedPreferenceFailure(
          error: error,
          stacktrace: stackTrace,
        ),
      );

The return type 'TaskEither<Failure, Quote>' isn't a 'TaskEither<FetchFailure, Quote>', as required by the closure's context.dart[return_of_invalid_type_from_closure](https://dart.dev/diagnostics/return_of_invalid_type_from_closure)
TaskEither<Failure, Quote> _cacheTask(Quote quote)
Type: TaskEither<Failure, Quote> Function(Quote)

package:mvvm_study/ye/repository/quotes_impl.dart

TaskEither<Failure, Quote> _cacheTask(Quote quote) => TaskEither.tryCatch(
      () => _cache(quote),

where Failure is
abstract class Failure {
  final String type;
  final String message;
  final FailureSeverity severity;
  final Object? error;
  final Object? stacktrace;

  const Failure({
    required this.type,
    required this.message,
    required this.severity,
    this.error,
    this.stacktrace,
  });
}

and Failures are
import 'package:mvvm_study/core/failure.dart';

class FetchFailure extends Failure {
  const FetchFailure({
    super.type = 'FetchFailure',
    super.message = 'An error occured while fetching data from the server',
    super.severity = FailureSeverity.high,
    super.stacktrace = '',
    super.error = '',
  });
}

class SharedPreferenceFailure extends Failure {
  const SharedPreferenceFailure({
    super.type = 'SharedPreferenceFailure',
    super.message = 'An error occured while fetching from SharedPreferences',
    super.severity = FailureSeverity.high,
    super.stacktrace = '',
    super.error = '',
  });
}
...

Even with
abstract class Failure {}

class SharedPreferenceFailure implements Failure {}
...

the resulting error is the same.
So here I'm thinking that a tryCatchK (widening) might be useful or I'm doing something terrible wrong with my code.
Im running the current latest Dart SDK Dart 3.1.2.

I resolved by enforcing the return type
TaskEither<Failure, Quote> getRandom() => TaskEither<Failure, Quote>.tryCatch(
        () => _makeRequest(),
        (error, stackTrace) => FetchFailure(
          error: error,
          stacktrace: stackTrace,
        ),
      ).flatMap((r) => _cacheTask(r));

Silly me.
Can be closed if no one thinks tryCatchK is useful.


Generalize metadata classes for use in other Catalyst projects

The classes in pudl.metadata.classes are great for controlling all things metadata in PUDL. I'd like to be able to use classes like Resource, Field, and Package in our other projects like DBCP. DBCP currently uses pandera to store metadata. Unfortunately, pudl.metadata.classes imports a lot of PUDL specific constants like FIELD_METADATA and RESOURCE_METADATA. This makes it difficult for DBCP to use the classes with new metadata.
This feels like a decently high priority so DBCP can leverage PUDL's metadata tools prior to adding new datasets and improving existing data.
There are a few submodules under pudl.metadatathat contain PUDL metadata constants:

constants (these are less PUDL specific)
codes
fields
resources
sources

How can we redesign pudl.metadata.classes so other projects can use these classes?

We could make constants like RESOURCE_METADATA an instance variable for classes like Resource and DataSource. This would be very flexible but would require folks to specify the resource_metadataattribute for every Resource.
We could make the constants class variables. Folks could subclass pudl.metadata.classes classes and specify class variables like RESOURCE_METADATA or FIELD_METADATA. This way folks wouldn't need to specify the metadata constants very every instance. Treating these constants as instance or class variables would not enforce the existing metadata project structure we use.
... still a WIP

I think all of the constants are being referred to in dict_from_id() methods. Here is a list of where all of the constants are being used:

Resource.dict_from_id()
- RESOURCE_METADATA
- FIELD_METADATA_BY_GROUP
- FIELD_METADATA_BY_RESOURCE
- SOURCES
- FOREIGN_KEYS
Encoder.dict_from_id()
- RESOURCE_METADATA
Encoder.from_code_id()
-  CODE_METADATA
Encode.to_rst()
- JINJA_ENVIRONMENT
- RESOURCE_METADATA
Field.dict_from_id()
- FIELD_METADATA
License.dict_from_id()
- LICENSES: Will licenses be shared across projects?
Contributor.dict_from_id()
- CONTRIBUTORS: Will contributors be shared across projects?
DataSource.dict_from_id()
- SOURCES
DataSource.from_field_namespace()
- SOURCES

What data stored in these constants should be shared across projects? Contributors Licenses? What about field and code metadata? This kind of gets at the type of client work we take on. If client data integration is related to PUDL it should just be included in PUDL. IF the data sources are completely separate from PUDL (like in DBCP) it makes less sense to share field and resource metadata between the projects.


rt2870 firmware

Hi there, I'm trying to perform a net install over Wi-Fi using a rt2870 USB device but the interface doesn't come up in the installer with the message:
modprobe: can't load module rt2800lib (kernel/drivers/net/wireless/ralink/rt2x00/rt2800lib.ko): unknown symbol in module, or unknown parameter

Once the fresh install is booted (via ethernet) I can bring up the interface but I have to first load the ralink firmware with:
sudo apt-get install firmware-misc-nonfree

Can you confirm that this firmware is not included?  If so is there any chance that a nonfree installer will be provided, or do I get to develop and maintain that?  These devices are cheap and plentiful so I imagine lots of users could benefit from this.
Thanks!

That package is definitely not included in the standard installer image.

Okay, thanks.  It's a catch-22 that you need the network to install the network so maybe this note will help others avoid it.  Don't expect a network install with the standard installer using a rt2870!!


Allow upstream python-zlib-ng and python-isal to support threads directly

Since there are GIL escapes builtin in the zlib module, these are also built into the zlib_ng and isal_zlib modules. It should therefore be possible to use the threading module to efficiently address multiple cores while having all the benefits of shared memory.
In theory this should be more efficient than the current methodology which is used now and utilizes pipes as a means of interprocess communication.
In practice this means that we will not have to bother with igzip and possibly crabz anymore and also can make the non-threaded and threaded opening options much more simple as this will be handled by igzip.open and gzip_ng.open.
Less reliance on external applications + faster code seems like a win. Except that it will be some engineering effort to get it done ;-). A downstream effect of this will be that dnaio will become unbeatable in any metric by any other library. No matter what compression level or amount of threads is chosen.

[x] python-isal
[x] python-zlib-ng

I also inquired if this would be a good idea for cpython, but the idea was shot down as an "extreme corner case": https://discuss.python.org/t/multithreaded-gzip-reading-and-writing/24086 .
I guess (de)compressing 100GB gzip files is not a common workload for most python users. So for standard zlib, we will be stuck with pigz. On the upside, this allows me more freedom in how I implement this. I don't have to worry about calls like 'seek()' etc. I will only have to implement a streaming interface with no searching.

Python-zlib-ng 0.4.0 adds threading. Implemented in xopen in #135 .


Documentation about metrics

Hello,
I am new using Pyfolio, is there any place where i can find documentation about these metrics?
annual_return
annual_volatility
sharpe_ratio
calmar_ratio
stability
max_drawdown
omega_ratio
sortino_ratio
skewness
kurtosis
alpha
beta

Good point, I moved this over here: https://github.com/quantopian/qrisk/issues/12

Good point, will add these.

@junajo10 Here is the link to the empyrical documentation. This library is used in the website and in pyfolio for risk calculations.
http://quantopian.github.io/empyrical/appendix.html#

Thanks, do you know if these metrics could be used with intraday strategies? I am using tick data. If you think there are better metrics than these ones, please let me know.


chore(deps): update common-dev-assets digest to c3d897c

This PR contains the following updates:

Package
Update
Change

common-dev-assets
digest
87bfe93 -> c3d897c

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

:tada: This PR is included in version 2.1.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Airline Tycoon Deluxe (331920) works

GOG version reported working: http://www.gamingonlinux.com/articles/airline-tycoon-deluxe-released-on-gog-for-linux.5173
Steam version should work.

Unfortunately I have to close this PR; This repo is mainly interested in Steam configuration being valid; GOG version being able to run doesn’t suggest that the Steam version will too.
If you can confirm it downloads and runs from inside Steam, can re‐open and merge :)


ops.copy makes object (arrays only?) immutable

Issue:
When trying to overwrite an object after making a copy using ops.copy,  it makes the object immutable. Even after explicitly converting to numpy using ops.convert_to_numpy, the copied object remains immutable.
How to Reproduce:
import numpy as np
from keras import ops

arr = np.arange(10)
ops_arr = ops.copy(arr)

print(type(ops_arr)) # now it's EagerTensor

ops_arr_np = ops.convert_to_numpy(ops_arr)
print(ops_arr_np) # of type ndarray

ops_arr_np[0] = 10

And the error that follows:
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
# in <cell line: 9>()
      7 print(ops_arr_np) # of type ndarray
      8
----> 9 ops_arr_np[0] = 10

ValueError: assignment destination is read-only

Thanks for the report, this is now fixed at HEAD.


Added date and time support, added numFormat support, removed dynamics

The current implementation does not support the styles.xml  elements, which are essential to pretty much any work with numbers. This pull request will fix this.
I tried to read numbers from a .xlsx file and that resulted in some strange ISO8601 string because the tool generating the file created a  with the numFmtId=164. The number 164 is totally correct as any number from 164 are custom numFmtIds, so this should work, but it does not. For some reason, the number 164 was hard-coded to be a date, which makes no sense, but I guess that was some short-cut that worked for a single file in development.  I also tried to read date-values, time-values and dates-with-times-values. All of them were very wrong to say the least ;). Dates resulted in some strange year in the millions, for example.
I had to refactor a few things to make this possible as there were a lot of dynamic and magic .toString() calls that made it very hard to understand what is going on. I tried to keep it to a minimum, and I will provide a second pull request containing only code style refactoring that I think would improve the readability of other places also.
Furthermore, I had to "break" the dynamic-everything assumption, which is a (very) good I believe and will explain here:
A user should understand what he receives and dart from version 3 has a feature called sealed classes with provide exhaustive matching for that. So to make things simple, every cell carries one of these values:
sealed base type: CellValue

null ... there is nothing in the cell
TextCellValue  ... text in the cell
IntCellValue  ... integer in the cell
DoubleCellValue  ... decimal in the cell
FormulaCellValue ... formula in the cell (formally Formula
BoolCellValue ... true/false in the cell
TimeCellValue ... duration in the cell
DateTimeCellValue ... date with time in the cell
DateCellValue ... date in the cell

All cell values provide reasonable toString() methods as well as access to common types by something like a .value property or a method like .asDateTimeLocal(), .asDateTimeUtc() or .asDuration(). Date and time values carry the year, day, hour, etc. .. values because it does not seem clear if the user of the library needs the UTC or the local version of it. Also, a date is kind of a date and not really a date with time zero, and there is no native date type in dart. This may be a bit of a philosophical question, but more often than not, people shoot themselves in the foot with all the daylight saving time and timezone stuff when they simply want a date.  So the conversion from and to these CellValue types should be rater simple, and we could even provide some extension methods for it. To allow for the sealed stuff, we increased the dart version in the pub spec file to 3.0, I think this should be ok by now.
I also added some simple test Excel files with such values, created using MSOffice, Google Docs and LibreOffice. Hope the effort is appreciated, if so, me and my team may be able to contribute again.

Amazing work 👏🏼
We would need documentation in the README.md for all the new and changed stuff.
And also a list of the breaking changes, which can be put in the CHANGELOG.md

Exactly, following semantic versioning 👍


Notebook edits to markdown cells cannot be undone after switching to preview mode

Issue Type: Bug
While editing Notebooks the user has to keep switching between the preview and edit mode of a markdown cell. However after making some unwanted changes there is no Undo (Ctrl+Z). Undo/Redo should work as you toggle between the edit and preview modes.
Azure Data Studio version: azuredatastudio 1.13.0 (c7d7faa1670e829a8252cbf83ec691496f4d0502, 2019-10-30T18:45:12.404Z)
OS version: Windows_NT x64 10.0.18363

@qifahs @MsSQLGirl  If you could provide specific examples of what isn't working as you'd expect that would be great. So far in my testing I've found that the only scenario that doesn't seem to work is

Switch to markdown/split view mode
Make change in MD cell
Switch to rich text mode
Try to undo change

If I do the reverse (make change in rich text and switch to markdown/split view) then the undo seems to work as I'd expect.
Can you confirm that this is the only scenario that's broken here?

In general it should be possible to undo a change on any cell. Another scenario which is broken is jumping between cells:

Edit markdown cell
Click on a code cell
Come back to the markdown cell
Try to undo change

This works for a code cell though. You can go back to a code cell after loosing focus on it, and undo the code you had written there. Markdown cell seems to loose the change history as soon as you click out of it.

Chatted with Julie on this; this work was delayed given unexpected telemetry work that @Charles-Gagnon had to pick up. @corivera is taking over this and working on this currently.


Accessing Bookstack from local IP is not possible after setting up APP_URL

Describe the bug
I cannot access Bookstack through my local IP anymore once I set up APP_URL. I'm not sure this is intended, but the other day my internet was out for the day and it was highly annoying not being able to access a local database on my own network. All my other selfhosted docker apps are fine running behind both a web URL (reverse proxied) and local access. Only Bookstack has this issue and I don't know why. It's great that I can access Bookstack using my domainname and a reverse proxy, but giving up local access to do that seems silly and a weak feature - I can't think of any other Docker app that I'm running that has this issue, all of them can be accessed fine through a reverse proxy and also locally using their IP and port.
I'm using the latest version of Bookstack, on Docker, as of today.  Everything else works fine, but there has to be a way to access it locally in case the internet goes down (and really, why not access it locally when you are on the network and you can?)
How can I access it locally when APP_URL has been set up?

Hi @recklessnl,
APP_URL essentially forces all generated URLs in BookStack.
BookStack only really supports being used on a single host URL for a single BookStack instance.
You can try to go without setting APP_URL but it's possible you could face other issues, Especially in a reverse proxy setup.

@recklessnl Can you briefly describe your docker / networking setup? If you are experiencing issues accessing a locally hosted system when the internet goes down it may just be as simple changing your DNS settings.
It does seem that Bookstack works without APP_URL set, but you need to make sure that your proxy is connecting to your Bookstack container using HTTPS otherwise Bookstack will only serve HTTP links.

I'm going to close this in favour of grouping related issues into #1342.


Correct state for failedscheduling algorithm

when an algorithm is FailedScheduling, fill the correct state for the UI.

Following changes requiered to the casing of the word to camelCase, changes need to propogate through all of our packages, ( consts, etc. ).


Leading spaces are removed from all wrapped lines except the first

We are using this library to render text which the user can enter into a textarea to display as a "note" in a mapping/drawing app.
Using the text area, it's possible to add some rudimentary "formatting" by entering leading spaces, or adding lots of spaces between words.
These are lost when using this library, which loses the formatting. You can see the issue here where the text is laid out with canvas-hypertxt on the left and the textarea on the right:

The exact text is:
   bbc.com and.                                      another bbc.com

new line bbc.com

   more
new
lines

bbc.com

will fix :)


Fix missing RBAC permissions for node update

I broke this in 34e679096 by intersecting an existing RBAC section.
Just needed move it to some place that makes sense...

[ ] Tests
[ ] Documentation
[ ] Release note

None required

Deploy preview for calico ready!
Built with commit c7f30a48b3f2d7a836b837b6ac467535f36d97ac
https://deploy-preview-3285--calico.netlify.com

The same thing that I missed the first time I made this fix :sweat_smile:
If you look closely, you'll see that the current position actually cuts a section short.
We want it to look like this:
  - apiGroups: [""]
    resources:
      - nodes/status
    verbs:
      # Needed for clearing NodeNetworkUnavailable flag.
      - patch
      # Calico stores some configuration information in node annotations.
      - update

Without this change, it renders like this:
  # Pod CIDR auto-detection on kubeadm needs access to config maps.
  - apiGroups: [""]
    resources:
      - configmaps
    verbs:
      - get
      # Calico stores some configuration information in node annotations.
      - update

Hopefully that makes sense... if not let's chat on slack.


[NEW]:

Please use this template to suggest a new event or update an existing event for the BBW website! You can also directly submit your event as a pull request to this repository. This will speed up things significantly!
# # the name of your event
name = "WebZero BlockSpäti Co-Working"

# # shortest possible name (without year)
shortname = "WebZero BlockSpäti"

# # type of the event
# #  available types (you can choose more):
# #   * meetup
# #   * conference
# #   * hackathon
# #   * expo
# #   * party
# #   * other
types = ["other"]

# # status of the event
# #  available types:
# #   * idea
# #   * planning
# #   * published
status = "published"

# # the name of the group organizing the event
org = "WebZero"

# # the github handle of the directly responsible individual for this event
# # (this person will coordinate with #bbw24 organizers)
dri = "blacklodge430"

# # A point of contact (responsible person)
poc = "Roman Kemper"

# # the start date of the event
date = "2024-05-21"

# # how many days the event lasts (1 - N)
days = 4

# # the event times (shows up in the event card)
times = "10:00-15:00"

# # Link to venues from the Places table - use this OR enter venueName, venueUrl and venueAddress
# venues =

# # the event venue name
venueName = "NEST"

# # link to the venue on open street maps
venueUrl = "https://maps.app.goo.gl/jT2bzUGkrHidhkSG6"

# # the event venue address
venueAddress = "Görlitzer Str. 52, 10997 Berlin"

# # the languages in which the event will take place (you can choose more)
languages = ["english"]

# # the max number of attendees of the event
attendees = 120

# # blockchains that the event deals with
# # if it is an interchain event, then leave blank
# chains = ["example"]

# # tags for the event, will show up as labels.
# # pick 1-4
tags = ["Co-Working", "protocol-agnostic", "Networking", "Education"]

# # A logo attachment
logo = "logo.png" logo = "[logo.png](https://ibb.co/NLP9qYY)

# # a description of the event.
description = """
Spend Berlin Blockchain Week in true Berlin style by working from a traditional crypto Spätkauf.

Come co-work, enjoy a crypto-branded mate, try out a quest and network with builders, founders and creators in the space.

We’ll have snacks, beverages and a Starlink router to keep your WiFi at super strength all day long.
"""

# # type of registration
# #  Possible values:
# #   * tickets
# #   * invites
# #   * signup
type = "signup"

# # price of the ticket
price = "free"

# # link to the registration or ticket purchase page
link = "https://lu.ma/joinwebzero"

# # custom action button label
# #button = "Buy tickets!"

# # status of registrations
# #  Possible values:
# #   * available
# #   * sold-out
# #   * closed
status = "available"

# [links]
# # the website of the event
# # make sure to have all the relevant information: dates, venue, program, ticketing (if any), etc.
web = "https://lu.ma/joinwebzero"

# # twitter account
twitter = "https://twitter.com/joinwebzero"

# # public telegram group
telegram = "https://t.me/joinWebzero"

# # docs
# #docs = "https://example.org/docs"

Your event is live :) Please double check if everything's correct https://blockchainweek.berlin/24


BUG when deleting file in a emoji-named dir

to reproduce:

in file explorer (in left-panel) create a new folder
name it “test😈” (an emoji char at the end)
create a file in test😈, name it “records.mjs”
open the file in editor
create another folder inside test😈, name it “records”
then delete records folder (in built-in file explorer)
the file records.mjs in editor now error marked “Deleted”
(the file is still exists)

version using: 1.10.0 945

You should try the latest version.
I tried to reproduce this in version 1.10.2 .
Zero errors.
Or can you upload video


Method name scanning

The stage0 example shown at https://github.com/fractureiser-investigation/fractureiser#stage0-infected-mod-jars displays the decompiled code of a method named _1685f49242dd46ef9c553d8af1a4e0bb(). Would it be possible to write a regex for similarly-named methods and reliably detect stage0 in mods infected in this manner?

This is unlikely to work, as these method names are generated by calling String.format("_%s", UUID.randomUUID().toString().replaceAll("-", "")), creating and using a new random UUID for the method name on infection. Additionally, files can be infected without generating one of these "helper methods" (the payload can be directly added to <clinit>).


Temporarily suppress 8.1 warnings to maintain backward compatibility.

https://github.com/wildbit/postmark-php/issues/88

Wondering, wouldn't it be better, to add the native types accordingly instead of suppressing them?

Running this branch with my project still generates warnings on the valid method in CaseInsensitiveArray class, could you please add the attribute/type hint there as well?

Wondering, wouldn't it be better, to add the native types accordingly instead of suppressing them?

Suppression is preferred for upgrading because it will not break existing application at all (they don't know the new attributes).
Once the PHP version of this project does not support older PHP versions anymore or a deliberate major version with (this) breaking changes is released, then it makes sense to use types.

Running this branch with my project still generates warnings on the valid method in CaseInsensitiveArray class

I guess it was just missed and should be added, then old/new PHP versions will have no issues and everyone is happy.


update to Octopus 13.0

Ashwin has already done this ;-).

This MR needs to be applies to this repository as well hence reopening the MR


Adapt for go 1.12 - Issue #225

Use now mandatory way to expose C structs with CGO

Thanks for the contribution! :D


ProgrammingArticles: GitOps Articles

| Introduction to GitOps - CodeProject |
| GitOps with Terraform and GitHub - CodeProject |
| GitOps Provisioning with GitHub Actions - CodeProject |

#2224 closes #2223


Support for CommonJs/es2015

This may be possible and I'm just doing it wrong, but currently when I try to load jquery.hx as a CommonJs module I hit errors.
I'm running tests in Karma using Babel and Browserify. Both jquery and hx are included as bower components. Jquery loads fine, but importing hx throws the error Uncaught TypeError: Cannot use 'in' operator to search for 'Float32Array' in undefined in browserify. I realize that jquery and its plugins were not originally intended to be used in this way.
My import statements look like this:
import $ from '../bower_components/jquery/dist/jquery';
import hx from '../bower_components/jquery.hx/dist/hx';

Something like this: http://blog.npmjs.org/post/112712169830/making-your-jquery-plugin-work-better-with-npm

@JustinLivi this is a bug in the version of bezier-easing included in the build:
var global = this;
// ...
var float32ArraySupported = 'Float32Array' in global;

The context of an anonymous wrapper ends up being undefined within a browserify module. I'll update and republish.

All set - you'll probably need to use something like browserify-shim since babelify moves requires to the top of the module.

Nice, thanks!


Add push target into sample

What type of PR is this?
/kind bug
What does does this PR do / why we need it:
the PushTarget is able to show in preference view but not in set/unset example
Which issue(s) this PR fixes:
Fixes #?
How to test changes / Special notes to the reviewer:

/ok-to-test

small straight forward fix
/lgtm
/approve
/retest


Mlops add and update entities

Relevant information
Add and update mlops entities: model, endpoint, model_data
Checklist

[ V] I've read the guidelines and understand the acceptance criteria.
[ V] The value of the attribute marked as identifier will be unique and valid.
[ V] I've confirmed that my entity type wasn't already defined. If it is I'm providing an
explanation above.

@EntityBot

@entityBot


ICASSP reference in README

I just checked this repo to see which paper to cite and saw that it is still the arxiv version. Maybe you want to update this to the ICASSP version?

@boeddeker and @thequilo, I cannot directly request your review.

Thank you.


Trying to synchronise my version of Accretion Formulae

Trying to synchronise my version of Accretion Formulae but there appears to be some conflict. Will probably help me learn more about GitHub pull requests! Thank you for your patience :)

I've closed this pull request and will try to re-synchronise things again now


Workflow restriction that each step in DAG needs to be an existing WorkflowTemplate

Summary
Argo Workflow currently supports templateReferencing: Secure which will ensure user can only submit Workflow which uses an existing WorkflowTemplate (and need to use workflowTemplateRef, rather than the deprecated templateRef, w/ quote "You should never reference another template directly on a template object (outside of a steps or dag template)"). Otherwise it will error out with

Error: workflows must use workflowTemplateRef to be executed when the controller is in reference mode

It should also support restriction that user can submit a self-defined DAG but each step in DAG needs to be an existing WorkflowTemplate.
Currently it is not doable, as refer WorkflowTemplate in DAG uses templateRef, and doing so will trigger the same error as above.
Use Cases

I have an existing set of WorkflowTemplates. I'd like the user to trigger any combination of them by defining their own DAG, but not anything else.
I have an existing WorflowTemplate. I'd like the user to execute any N-fold of it to run in parallel.

It provide the same security level as workflowTemplateRef, as user can basically curl to run every individual Workflow. But it can fully leverage the visibility of DAG diagram.

Thank you for your proposal. Would you be interested in submitting a PR, or we can see how popular this is and prioritise based on that.

I'm facing same problem here, with templateReferencing; secure opt, you can't invoke Workflows that uses steps o dag because you can't use the container struct directly or templateRef


Eigenstrat data format

https://github.com/poseidon-framework/poseidon2-schema/issues/20 makes some changes necessary:

[ ] The conversion module can not any more be a one way ticket from plink binary to other formats, but should allow for conversion between all poseidon v.2 genetic data formats (atm. plink binary and eigenstrat). The resulting post-conversion packages should be valid and equal to the input packages in all aspects of context data.
[ ] All formats need validation code. Atm. this means we need new validation code for eigenstrat files.
[ ] The merge module has to become more sophisticated to allow for prior conversion in case of incompatible data formats.

Outdated - all of that now lives in trident


AFHTTPClient success/failure callbacks should pass back more and similar information

Currently the AFHTTPClient success callback for the get/put/post/delete accepts an id object which is the parsed object from the body of the response. The failure callbacks take a (NSHTTPURLResponse*, NSError*). For the success callbacks it is currently not possible to get the status code of the response. It is only possible to get the parsed object. For the failure callbacks it is possible to get the status code from the NSHTTPURLResponse and in some cases the NSError (failures that have no HTTP response wouldn't have a status code). However, in the failure callback it is not possible to get the body of the response. NSHTTPURLResponse doesn't contain anything related to the body of the response. The reason this is an issue is that sometimes 4xx responses contain more detailed error information in the body. Take for example the facebook request: http://graph.facebook.com/4?access_token=foobar. It will return a status code of 400 and the body has more error information (requires https).
I would propose the following change:

success callback would have the following interface: success(AFHTTPResponse *response)
failure callback would have the following interface: failure(AFHTTPResponse *response, NSError *error)

The response for this callback could be nil under errors that do not receive a response (eg: loss of internet, or timeouts). The error should always be set.

The AFHTTPResponse might look something like this:
@interface AFHTTPResponse : NSObject {
    NSInteger statusCode;
    NSHTTPURLResponse *response;
    NSData *rawBody;
    id parsedBody; // parsed XML, JSON, HTML tree, (could be nil if parse fails or if parsing is disabled)
}

Not only would using something like AFHTTPResponse address the issues I outlined above but would also help prevent breaking API changes for the AFHTTPClient going forward. New details or different parameters could be passed to the success/failure callbacks by adding a property to the AFHTTPResponse.
Making this change would break the current API so I would love to get some feedback on this. I am also open to giving the first implementation a go as well provided folks think this is the right direction.

Yes, please. The API that I spend most of my time interacting with returns JSON-encoded error hashes on requests that have response status codes in the 4xx range. Additionally, I routinely need access to header fields from successful responses, which don't appear to be possible to get at via AFJSONRequestOperation at present.

This is definitely needed — even the Gowalla API returns JSON bodies for non-2xx requests. I get the feeling the Gowalla developers aren't using AFNetworking, or at the very least they're not using AFHTTPClient / AFJSONRequestOperation.

@aaronbrethort: I needed something similar, so I added the NSHTTPURLResponse as part of the success completion block in my clone here

I like the AFHTTPResponse approach (though the responseCode property is unneeded; already provided by the NSHTTPURLResponse).
Apart from breaking the API (fine with me) and loosing some of the simplicity of the current API, storing both the raw response data and the parsed response will lead to increased memory usage, some of it could be worked around with having the parsed response be lazily initialized. However I'm guessing the reason for having the raw data there is in case a non-XML/JSON/Plist/whatever response is returned, in which case clients would probably check the parsedBody field first anyway (thus losing the point of it being lazy for most people).

I just had some time over for a quick spike on @evanlong's suggestion. There's some fun edge cases to explore, for instance some APIs returns a JSON/XML body describing the problem for a non-20x response, even for image requests (or html responses for, say, 500 errors).
That means the current design comes up a bit short since it kind of expects the response to be in the format requested. One approach would be to apply the current adapter pattern (-canProcessRequest:) towards the response bodies as well, given the API in question returns proper content-type and so forth. Or just pass back the raw NSData and let the consumer deal with it like Evan suggested.
Given that the use case here is most likely crappy APIs (with regards to the mismatched formats), letting the consumer deal with the NSData might be the path of least future-maintenace-pain here. But I've come across a number of APIs that returns further information in the response body of 4xx errors (in the request format luckily), so I'd love to carve some more on this.

My opinion is that the completion block should just have a single parameter with the operation itself. Then you can extract whatever fields you want from the operation's properties. Thoughts?

I'll admit that I completely misgauged the mainstream use case for AFHTTPClient. I'd pared down the responses for AFHTTPClientOperation, but I now see that I went a bit too far. I had made this decision on the assumption that anyone wanting anything more could override in a subclass and/or manually enqueue operations, but I see how non-obvious / cumbersome that would be.
As nice as it would be to encapsulate everything into a single new response object, I'm extremely hesitant to replace the foundation networking objects. One of my main objections to any other networking library is their reliance on reinventing the wheel for things like that, so as much as possible, I'd like to avoid that. Luckily, this information is already encapsulated in the operation object, or could be pretty easily unrolled into the callback block operation arguments.
So here's my revised set of block arguments:
success: ^(id <AFHTTPClientOperation> operation, NSHTTPURLResponse *response, id object) failure: ^(id  operation, NSHTTPURLResponse *response, NSError *error)`
I think this is a good compromise. It's not too heavy, gives you the basic things that you need up front, but provides the operation object itself in case you need anything else (like the responseJSON of the operation on a failure condition. The other added bonus is that you can see what operation actually got tapped to handle the request.
How does this strike everyone? /cc @aaronbrethorst, @atnan, @js, @adamjernst

+1!

Perfect. The various NSOperation subclasses are already exposed and available for "public" use, so it fits in nicely in the API.
(Sidenote: I like to typedef my blocks when they're used several places for similar things, YMMV of course :))

Sounds perfect, thanks!
On Oct 24, 2011, at 7:45 AM, Mattt<EMAIL_ADDRESS>wrote:

I'll admit that I completely misgauged the mainstream use case for AFHTTPClient. I'd pared down the responses for AFHTTPClientOperation, but I now see that I went a bit too far. I had made this decision on the assumption that anyone wanting anything more could override in a subclass and/or manually enqueue operations, but I see how non-obvious / cumbersome that would be.
As nice as it would be to encapsulate everything into a single new response object, I'm extremely hesitant to replace the foundation networking objects. One of my main objections to any other networking library is their reliance on reinventing the wheel for things like that, so as much as possible, I'd like to avoid that. Luckily, this information is already encapsulated in the operation object, or could be pretty easily unrolled into the callback block operation arguments.
So here's my revised set of block arguments:
success: ^(id <AFHTTPClientOperation> operation, NSHTTPURLResponse *response, id object) failure: ^(id  operation, NSHTTPURLResponse *response, NSError *error)`
I think this is a good compromise. It's not too heavy, gives you the basic things that you need up front, but provides the operation object itself in case you need anything else (like the responseJSON of the operation on a failure condition. The other added bonus is that you can see what operation actually got tapped to handle the request.
How does this strike everyone? /cc @aaronbrethorst, @atnan, @js, @adamjernst
--
Reply to this email directly or view it on GitHub:
https://github.com/gowalla/AFNetworking/issues/83#issuecomment-2504298

Glad to hear that this solution was amenable to everyone.
Working from that design, I was able to (hopefully) refactor out some of the more awkward and gnarly bits of AFHTTPClient, et al. Check out these changes in this experimental branch—I'd love to get some feedback for this.

Looks great, thanks!

What is the plan for rolling this into the main branch?

I'm running into this issue where I need to see the JSON response on a failure condition. Is this not in the main branch yet?


Input data / headers not working

I happen to have an issue with any of the POST, PUT and DELETE methods.
They don't seem to accept any input data nor do they use the custom headers i specify

Both requests just give me an empty php://input and $_SERVER without HTTP_KEY
I tested my server-side code with curl, it's working. Appears there are some issues with the new update?
Also i can't launch the app on my pebble anymore, i'm using Pebble Classic with firmware v3.12.3.

I'll take a look.
What do you see when you launch the app? Does it crash immediately?

So 3 items I want to address:

Headers not working: I was able to reproduce this. Headers were not being sent in the configuration page. I just pushed out a fix for this and it's working for me. Remember to use Access Control headers on your POST and OPTIONS calls.
Doesn't accept input data: I'm not able to reproduce this. Do you not receive a request on your server? Or is the JSON data not there?
Can't launch on Pebble Classic v3.12.3: I pushed out a new version to hopefully address this. I was able to reproduce and fix it on an emulator, but I'm not able to test on an actual watch since I don't own a classic Pebble.

Actually, I've removed the TEST button from the configuration page. This is done to provide a more consistent testing/troubleshooting experience for users.
The behavior of the http call on the configuration page and http call on the watch is different. The configuration page uses a browser agent (requires CORS headers on servers), where calls from the pebble watch doesn't.
To test requests, deploy your requests and trigger them on the watch itself.

Thanks for your reply, i'll answer in more detail tomorrow (it's night here)
When i try to launch the app, it just plays that short page transition animation, but the pebble keeps showing the home screen (or jumps to it if you used quicklaunch from a watchface).
My server receives the request, but input data is missing.
And thanks for the new build, i'll check it out tomorrow!

I've tested it now, app launches on my watch, input data is being used - everything works fine, thank you! :)

Awesome!


windows app crash

Checklist

[X] I read the troubleshooting guide before raising this issue
[X] I made sure that the issue I am raising doesn't already exist

Current bug behaviour
When I run Flutter application on Windows the audio player crashes after adding the plugin.
flutter version:3.22.3
audioplayer: 6.1.0
Expected behaviour
crash solve
Steps to reproduce

Add plugin in my project
project run then crash

Code sample
no code
Affected platforms
Windows
Platform details
windows 11
AudioPlayers Version
6.1.0
Build mode
debug, release
Audio Files/URLs/Sources
No response
Screenshots
No response
Logs

my relevant logs

Full Logs

my full logs or a link to a gist

Flutter doctor:
Output of: flutter doctor -v

Related issues / more information
No response
Working on PR
no way

Please check if you use msix, if yes, upgrade msix to the lastest version might help you fix the crash. Somehow, a .dll file in msix cause the crash when we are working with audioplayers package.

Please check if you use msix, if yes, upgrade msix to the lastest version might help you fix the crash. Somehow, a .dll file in msix cause the crash when we are working with audioplayers package.

No i am not using msix plugin

I also experienced a crash when my code ran final player = AudioPlayer(). According to the Windows system logs, the crash was caused by MSVCP140.dll. I reinstalled it with version 14.40.33810, and the app no longer crashes.
Hope this helps.


Correct a typo and add .. note:: to installation_use.rst

Also rephrase one particularly awkward sentence in philosophy_directions.rst
Thank you for transcrypt! Also, my editor emacs was opening those .rst files in DOS encoding, you probably should convert them to UTF-8 or something?

Thanks!


Problem in Alphabetical order -in french

foie is between Examen and Exposition
@niharikaavasthi FYI

@nrosh052 @niharikaavasthi
This issue has fixed #267

@nrosh052 please recheck

Thanks Melika, It's great :)

Checked. Looks okay hence closing the issue


Crosscheck stations from Solargis validation report

https://solargis2-web-assets.s3.eu-west-1.amazonaws.com/public/doc/Validation-Report_Global-Solar-Atlas-2.0_WB-ESMAP_Nov2019-1.pdf

As of today, Solargis model has been validated at 228 public sites worldwide. More than 20 different networks across the globe have been used by Solargis for the validation:

Global and regional networks: BSRN, SURFRAD, GAW, SOLRAD, ESRL, NREL, FLUXNET, EC, SACC, SRRA, KACST, OPWP, SAURAN, IDMP, Ministry of Energy Chile, etc.
Data from resource mapping initiatives like ESMAP and IFC (funded by the World Bank Group)
Meteorological networks of stations at a country level: BOM, KNMI, AEmet, etc.

Site name Country GHI DNI Latitude [°] Longitude [°] Elevation [m a.s.l.] Source Climate zone Recently updated
A Coruna Spain x x 43.3672 -8.4194 58 AEMET 3 No
Adam Oman x x 22.2072 57.5230 250 OPWP 2 Yes
Aggeneys South Africa x x -29.2945 18.8155 789 Eskom 2 Yes
Agoufu Mali x - 15.3445 -1.4791 290 - 2 Yes
American Samoa  ASM  x  x  -14.2474  -170.5644  42  NOAA ESRL  1  No
Amman Jordan x - 32.0247 35.8789 1041 - 3 No
Armazones Chile x - -24.6346 -70.2426 2576 Ministerio de 2 Yes
Athens Greece x - 37.9718 23.7183 107 IDMP 3 Yes
BacNinh Vietnam x x 21.2015 106.0629 60 ESMAP 3 Yes
Bahawalpur Pakistan x x 29.3254 71.8188 123 ESMAP 2 Yes
Bamba Mali x - 17.0990 -1.4018 272 - 2 Yes
Banizoumbou Niger x - 13.5311 2.6613 211 - 2 Yes
Barcelona Spain x - 41.3858 2.1169 125 SOLARFLUX 3 No
Bergen Norway x - 60.3838 5.3319 45 IDMP Univ. of 3 Yes
The above stations are missing (only checked the first page of validation sites)

@AdamRJensen I suggest we only investigate stations used to validate DNI (page 52 onwards), which is approximately half of the total stations included in this report.
If you approve all pending pull requests (in order to be absolutely sure which stations are already included), I am willing to take up the task. From a quick look at the DNI stations, I think that most of them are already included.
Thoughts?

I agree with this approach. The table of missing stations above is also only of the DNI stations - I fear we are missing quite a few stations...

The following stations measuring DNI are not included in the current list.
Site name, Country, Lat, Lon, Elev, Source

[ ] Adam, Oman, 22.2072, 57.5230, 250, OPWP
[ ] Manah, Oman, 22.6031, 57.6672, 345, OPWP
[ ] Aggeneys, South Africa, -29.2945, 18.8155, 789, Eskom
[ ] Helios, South Africa, -30.5011, 19.5607, 905, Eskom
[ ] BacNinh, Vietnam, 21.2015, 106.0629, 60, ESMAP
[ ] Central  Highlands, Vietnam, 12.7534, 107.8763, 290, ESMAP
[ ] Bahawalpur, Pakistan, 29.3254, 71.8188, 123, ESMAP
[ ] Hyderabad, Pakistan, 25.4134, 68.2595, 63, ESMAP
[ ] Islamabad, Pakistan, 33.6419, 72.9838, 558, ESMAP
[ ] Khuzdar, Pakistan, 27.8178, 66.6294, 1254, ESMAP
[ ] Karachi, Pakistan, 24.9334, 67.1116, 45, ESMAP
[ ] Lahore, Pakistan, 31.6946, 74.2441, 207, ESMAP
[ ] Multan, Pakistan, 30.1654, 71.4978, 123, ESMAP
[ ] Quetta, Pakistan, 30.2708, 66.9398, 1586, ESMAP
[ ] Bukit Kototabang, Indonesia, -0.2019, 100.3181, 864, GAW
[ ] Caceres, Spain, 39.4722, -6.3394, 405, AEMET
[ ] Cordoba, Spain, 37.8444, -4.8506, 91, AEMET
[ ] Lleida, Spain, 41.6258, 0.5950, 192, AEMET
[ ] Madrid, Spain, 40.4528, -3.7242, 664, AEMET
[ ] Malaga, Spain, 36.7192, -4.4803, 60, AEMET
[ ] Murcia, Spain, 38.0028, -1.1694, 62, AEMET
[ ] Oviedo, Spain, 43.3536, -5.8733, 336, AEMET
[ ] Palma, Spain, 39.5667, 2.7439, 4, AEMET
[ ] San Bartolome Tirajana, Canary Isl., 27.7581, -15.5756, 50, AEMET
[ ] San Sebastian, Spain, 43.3075, -2.0394, 252, AEMET
[ ] Soria, Spain, 41.7667, -2.4667, 1082, AEMET
[ ] A Coruna, Spain, 43.3672, -8.4194, 58, AEMET
[ ] Valladolid, Spain, 41.6500, -4.7667, 735, AEMET
[ ] Chilanga, Malawi, -15.6798, 34.9723, 767, ESMAP
[ ] Chileka, Malawi, -15.6798, 34.9723, 767, ESMAP
[ ] Kasungu, Malawi, -13.0153, 33.4685, 1065, ESMAP
[ ] Mzuzu, Malawi, -11.4199, 33.9953, 1285, ESMAP
[ ] Dar es Salaam, Tanzania, -6.7811, 39.2039, 93, ESMAP
[ ] Dicheto, Ethiopia, 11.9156, 41.5511, 431, IFC
[ ] Edinburg, Texas, USA, 26.3059, -98.1716, 45, NREL
[ ] Lafayette, Louisiana, USA, 30.2050, -92.3979, 5, NREL
[ ] Watkins, USA, 39.7568, -104.6202, 1674, NREL
[ ] Egbert, Canada, 44.2300, -79.7800, 233, SACC
[ ] Feni, Bangladesh, 22.8003, 91.3582, 15, ESMAP
[ ] Freiburg, Germany, 47.9792, 7.8311, 275, IDMP
[ ] Weihenstephan, Germany, 48.4000, 11.7000, 472
[ ] Gan, Maldives, -0.6906, 73.1501, 2, ESMAP
[ ] Hanimaadhoo, Maldives, 6.7464, 73.1686, 2, ESMAP
[ ] Hulhulé, Maldives, 4.1927, 73.5281, 2, ESMAP
[ ] Kadhdhoo, Maldives, 1.8583, 73.5197, 2, ESMAP
[ ] Geneve, Switzerland, 46.2003, 6.1316, 420, CUEPE
[ ] Hradec Kralove, Czech Republic, 50.1830, 15.8330, 236, CHMU
[ ] Hrazdan, Armenia, 40.5116, 44.8230, 1845, ESMAP
[ ] Masrik, Armenia, 40.2077, 45.7645, 1944, ESMAP
[ ] Talin, Armenia, 40.3860, 43.8927, 1641, ESMAP
[ ] Yerevan, Armenia, 40.1887, 44.3976, 946, ESMAP
[ ] Hurso, Ethiopia, 9.6136, 41.6385, 1110, IFC
[ ] Longe, Zambia, -14.8397, 24.9319, 1167, ESMAP
[ ] Lusaka, Zambia, -15.3946, 28.3372, 1262, ESMAP
[ ] Misamfu, Zambia, -10.1726, 31.2231, 1382, ESMAP
[ ] Mochipapa, Zambia, -16.8382, 27.0703, 1282, ESMAP
[ ] Mount Makulu, Zambia, -15.5483, 28.2482, 1224, ESMAP
[ ] Mutanda, Zambia, -12.4236, 26.2153, 1317, ESMAP
[ ] Vaulx un Velin, France, 45.7786, 4.9225, 170, IDMP

Regarding the ESKOM network in South Africa (information was found here):
Eskom makes use of pyrheliometers mounted on trackers, with only some of their stations equipped with photoelectric pyranometers. Eskom data was reported to be of low quality due to a lack of regular cleaning. This is due to the remote locations of their stations in the Northern Cape.
Some information on ESKOM is here. It sounds like the stations had initially RSIs but they were replaced with trackers and pyrheliometers. They are probably Tier 2 stations, using shadowrings for measuring diffuse (based on a photo in the report).

Information on Bukit Kototabang here.

Information on Freiburg here.
Although the station's coordinates are not mentioned, it is clearly stated that G;B;D are measured with a tracker

Information on some more stations in Europe was found here and here.

The Geneva station mentioned in this list has been moved since 2010, so the mentioned coordinates in the SolarGIS report are not accurate. Information about this are provided here.
The new station is located in Carouge, on the Battelle campus (latitude: 46.176°N, longitude: 6.139°E, altitude: 432m), and has GHI and DNI on a tracker (Tier 2). It belongs to the University of Geneva.

Information on the Hradec Kralove station here  and here.


Getting Grid Column With Rendered Content To Size Appropriately

Looking for ideas to address the issue demonstrated in this fiddle:
http://jsfiddle.net/UberMario/tg6rdsuh/5/
The grid's (table) appears to have sufficient width to fit all the content (Columns 1 and 2), but the dynamically rendered 'Select' column is being clipped on the right.

You can fix this with CSS:
select {
  width: 100% !important;
}

Fiddle: http://jsfiddle.net/37yrukn6/
By default, the select in the grid will have a fixed width of 75px.
By setting it to 100% you're making sure it will adapt to the width of the cell.
BTW: You should give the select a distinct CSS class and change my CSS sample accordingly, otherwise it will make all your select elements have 100% parent width, which is probably not what you want.

That works GREAT and is very simple/elegant!  Hopefully I can return the favor soon!


How do I have to keep Aurora working when I have the application closed?

Hi, im new and idk how to still using the app when i close it.

You just have to click on the cross in the program and then answer "Would you like to exit Aurora?" with No.


Add SSMS artifact

I have added the SSMS (sql server management studio) artifact to our public artifact

Use this ChocolateyPackageInstaller.sp1 version instead, as it also handles restart requirements without failing the artifact.


⚠ Samsung has degraded performance

In 3eee47a, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 1899 ms

Resolved: Samsung performance has improved in 4d48c5c.


0.11.1 and aiohttp dependency update

PR for a patch release of ACA-Py 0.11.1, with the only change being an update of the aiohttp dependency to one that addresses CVE-2024-30251.
Fixes #2935.

Wait — the integration tests didn’t run.  That’s no good.  Can we force that?  And why didn’t they run?

The branch restrictions should be taken off the integration test workflow.


Loading: there should not be scene audio playing before loading finishes.

For example, there is a scene close to Gamer's Plaza with an endless loop, and it can start playing during the loading. https://explorer.decentraland.org/?position=71%2C-10

As sounds are loaded after loading finishes, this should be already fixed.


create new vault (controller)

i was going through the new app and when i canceled the creation of a new vault by clicking the back arrow and then going back to "create new vault" I cant open the select menu "choose controller" anymore (im in fullscreen mode)

This functionality is not part of the CoinVault extension, but Blockcore/SmartCityPlatform. Leaving this bug for future fixing.


Get Connect Method get

ATTENTION: DO NOT USE THIS FIELD TO ASK SUPPORT QUESTIONS. USE THE PLATFORM CHANNELS FOR THIS.
Fill in the template. Issues that do not respect the model will be closed.
Describe the bug
A clear and concise description of what the bug is.
Reproduction code
NOTE: THIS IS MANDATORY, IF YOUR ISSUE DOES NOT CONTAIN IT, IT WILL BE CLOSED PRELIMINARY)
example:
await get(
            reqUrl,
            contentType: 'application/json',
            headers: header ?? defaultHeader,
          );

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Flutter Version:
Enter the version of the Flutter you are using
Getx Version:
Enter the version of the Getx you are using
Describe on which device you found the bug:
ex: Moto z2 - Android.
Minimal reproduce code
Provide a minimum reproduction code for the problem

Sorry, I could not understand your request.


Dependecy not found

The dependency is not being found:

Hi, sorry for the late response, I'm currently on holiday. Does 0.5.9 work? I'll take a look at it when I'm back. In the meantime you could clone the project and build it yourself and use mavenLocal.

Good evening, I've just tested both 0.5.10 and 0.5.9 and they both didn't work.

Hi, I now use maven central to publish, which should resolve this issue. Could you try using the new dependency for 0.5.11 and let me know if it works?


Add "make proto" to CI build

We should have a CI test to ensure it is always possible to regenerate protocols/grpc/agent.proto from protocols/grpc/agent.pb.go (and the same for the other *.proto files).
This should be as simple as adding make proto to .ci/run.sh.
/cc @WeiZhang555.

I like this idea, thanks Jame for raising this! @jodh-intel


Privacy icon for Disqus misplaced

Hey, just trying to integrate Disqus into my blog. When I view the blog on my iPhone 6 the bottom icons are like so:

The privacy icons is misaligned. Just wondered if you had stumbled on this issue before and know if there's a fix or not? Looks like there isn't enough width. Maybe there is somewhere I can modify the width of the blog? Thanks

Modify layout .content-container padding in _site.scss.
.content-container {
  max-width: 38rem;
  padding: 2rem 1.3rem;
  margin-left:  auto;
  margin-right: auto;

  @media (min-width: 38rem){
    padding: 5rem 1rem;
  }
}

Check out here.


Specific Minor Version Support

I have pinned my function app's runtime version to 3.0.13353.0 due to outage caused by auto roll forward minor version behavior of function runtime in azure.
Since my function is tested on this particular version of runtime, can I continue using it in production until the end of time?
Is there any documentation that highlights any risk with this approach? I don't want to see another outage because Azure Functions App Service stopped supporting this particular minor version abruptly.

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

ID: 07d8c45a-8f08-4c87-ae0d-9fbb901ed402
Version Independent ID: 73c96870-96d3-5859-a0b9-1c69c3b11300
Content: How to target Azure Functions runtime versions
Content Source: articles/azure-functions/set-runtime-version.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

@vaibhavramdasi Thank you for your feedback! We will review and update as appropriate.

@vaibhavramdasi  We won't be affecting the last stable version as that version is already on the workers. We update the regions gradually hoping that we will  understand the status before too many people are updated. However, the issues with the latest versions have been fixed and RCA has been provided for the dame.
You may continue to pin to the older version for a while but we would strongly recommend that you test on non-pinned as we may remove the older versions eventually.

@vaibhavramdasi Following up to understand whether my previous comment helps and works out for the mentioned problem statement.

@JayaChatterjee-MSFT

we may remove the older versions eventually.

Is there any documentation that highlights this fact? Documentation has  just following line which does not warn user about possible end of support(even worse removal) of pinned minor version.

If you specify a minor version (for example, "2.0.12345"), the function app is pinned to that specific version until you explicitly change it.

@vaibhavramdasi Those details will be documented on Azure App Service announcements - Github : https://github.com/Azure/app-service-announcements - You can subscribe to the repo to be notified of major changes in Azure App Service.
You may opt for the "Watch" option so that you start receiving communication for all the Major enhancement.

Please let me know if this helps.

Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion.

@vaibhavramdasi I agree that this statement is too vague, and I'm adding information about minor version removals. Thanks for bringing this to our attention.


Incomplete transfer of data from context to CloudEvent

Describe the issue
https://github.com/dapr/python-sdk/blob/e89ac58f531f05ad4b47d46c1ccfcd4682c94573/ext/dapr-ext-grpc/dapr/ext/grpc/_servicier.py#L187-L194
Not all metadata is copied from context to CloudEvent.
This prevents you from accessing potentially relevant information the original message would've given.
Expected Behaviour
All data from context should be accessible in CloudEvent.

Could you provide an example I can use to implement this?
How can I force the processing of an event with metadata that would trigger this code path, and how would you usually verify that the cloud event has the expected data? I'm not familiar with cloud events myself.

An example would be CloudEvents generated by Debezium, which follow a structure as described here.
As you can see, the structure has more fields than just type, id, source, data and content_type. These fields however are not included in the CloudEvent received by the consumer. I specifically would want to access the iodebeziumop and the iodebeziumschema fields.
I'm not entirely sure myself, but you should be able to reproduce the issue by first publishing an event of the Debezium structure as a CloudEvent and then receiving it on the subscriber side. As far as I know, you should be missing all the originally given fields except for type, id, source, data and content_type.
Hope this helps and thank you in advance.

@jrehnen after much investigation I have determined that additional Cloud Event metadata (such as these debezium fields) are not currently stored by most Dapr PubSub components.
I will be updating all PubSub components to do so for the 1.9 release and will add Python SDK support at that time. While I already have a Python SDK implementation which I believe to be working, I do not actually have a Dapr PubSub component which I know to handle the CloudEvent Metadata correctly.

ext.grpc._servicier.py in _CallbackServicer:
def OnTopicEvent(self, request: TopicEventRequest, context: grpc.ServicerContext):
The missing metadata should be returned via gRPC metadata. Cloud Events treats non-standard fields as headers and in gRPC that means metadata.
This means this data should be available via one of the following:
context.invocation_metadata()
context.trailing_metadata()

However, in my testing the data the headers are not returned today because no Dapr PubSub component seems to be saving these additional non-standard headers / metadata, and the PubSub components aren't sending this data to subscribers.
Before the Python SDK changes could have any impact we need to update PubSub components. This will be specific to each PubSub component.

@jrehnen good news - if you are sending a cloud event to Dapr directly (with data content type "application/cloudevents+json") we are actually storing all custom attributes.
However the proto for the TopicEventRequest has no way for us to pass these additional attributes.
I'll add support for the cloud event extension attributes to the proto, which then will enable you to access them in the Python SDK via the cloudevent extension dictionary. This should not even require a SDK change.
Due to the runtime change required however this won't happen until release 1.9.
If you use HTTP as the app protocol instead you may already be able to receive these debezium attributes!
Please note once again that all of this will only be supported if the data content type is "application/cloudevents+json"

Confirmed this is working with HTTP (flask_dapr or dapr-ext-fastapi extensions or any other HTTP method):
import logging
from flask_dapr import DaprApp
from flask import Flask, request

app = Flask(__name__)
dapr = DaprApp(app)

@dapr.subscribe(pubsub='pubsub', topic='mytopic')
def handlethis():
  logging.warn(request.data)
  return "test", 200

if __name__ == '__main__':
  app.run(host='<IP_ADDRESS>', port=5000)

Run the subscriber app:
dapr run --app-id python-subscriber --app-protocol http --app-port 5000 python3 app.py

Now publish the cloud event - note the application/cloudevents+json content type. See the custom property SOMECUSTOMPROPERTY - this could be the debezium properties you are interested in.
 dapr publish --publish-app-id python-subscriber --pubsub pubsub --topic mytopic --data '{"specversion" : "1.0", "type" : "com.dapr.cloudevent.sent", "source" : "testcloudeventspubsub", "subject" : "Cloud Events Test", "id" : "someCloudEventId", "SOMECUSTOMPROPERTY": "CUSTOMVALUE", "time" : "2021-08-02T09:00:00Z", "datacontenttype" : "application/cloudevents+json", "data" : {"orderId": "100"}}'

== APP == WARNING:root:b'{"SOMECUSTOMPROPERTY":"CUSTOMVALUE","data":{"orderId":"100"},"datacontenttype":"application/cloudevents+json","id":"someCloudEventId","pubsubname":"pubsub","source":"testcloudeventspubsub","specversion":"1.0","subject":"Cloud Events Test","time":"2021-08-02T09:00:00Z","topic":"mytopic","traceid":"00-e940d870ac248252ed5123a6f870dbe3-e3596874062b9598-01","traceparent":"00-e940d870ac248252ed5123a6f870dbe3-e3596874062b9598-01","tracestate":"","type":"com.dapr.cloudevent.sent"}'

@jrehnen my recommendation for now is to use HTTP if you need to use PubSub.

This will not make the next release as the required work isn't done in the Dapr runtime.

@jrehnen the linked PR should do what you want now. This will only work with Dapr 1.10 forward.
event.Extensions() is a dictionary which will include all those custom properties.


add version code to config file

versioning the config file will allow us to notify users when some default configurations have been updated to ensure that a user isn't using a config with old values from the generate command

part of k2recon


nccopy dies when copying an NCZarr file

Using the latest snapshot (9/8/22, 5 PM MT) both nccopy and ncks fail to copy the
in_zarr4.cdl file I posted yesterday. As mentioned in #2494, the ncdump and ncks tools now successfully print the Zarr version of that file. Here the issue is copying, not printing.
Here are some complementary symptoms that should be easy to reproduce:
zender@spectral:~$ nccopy -L 0 "file://${HOME}/nco/data/in_zarr4#mode=nczarr,file" "file://${HOME}/in_zarr4#mode=nczarr,file"
NetCDF: Invalid argument
Location: file nccopy.c; line 1169
zender@spectral:~$ ncks -O --log=0 "file://${HOME}/nco/data/in_zarr4#mode=nczarr,file" "file://${HOME}/in_zarr4#mode=nczarr,file"
ERROR: file nc4attr.c, line 99.
No error
ERROR: file nc4attr.c, line 99.
No error
ERROR: file nc4attr.c, line 99.
No error
ERROR: file nc4attr.c, line 99.
No error
nco_err_exit(): ERROR Short NCO-generated message (usually name of function that triggered error): nco_close()
nco_err_exit(): ERROR Error code is -1. Translation into English with nc_strerror(-1) is "Unknown Error"
nco_err_exit(): ERROR NCO will now exit with system call abort()
Abort trap: 6
zender@spectral:~$

The nccopy error traces back to an endianness issue:
	if(endianness != NC_ENDIAN_NATIVE) { /* native is the default */
	    NC_CHECK(nc_def_var_endian(ogrp, o_varid, endianness));
	}

The non-error output from ncks ("ERROR: file nc4attr.c, line 99. No error") is a little disconcerting, though presumably harmless, because it also occurs during the (successful) copying from NCZarr->HDF5:
zender@spectral:~$ ncks -O --log=0 "file://${HOME}/nco/data/in_zarr4#mode=nczarr,file" ~/in_zarr4.nc
ERROR: file nc4attr.c, line 99.
No error
ERROR: file nc4attr.c, line 99.
No error
ERROR: file nc4attr.c, line 99.
No error
ERROR: file nc4attr.c, line 99.
No error
zender@spectral:~$

However, nccopy still fails when trying to copy NCZarr->HDF5:
zender@spectral:~$ nccopy "file://${HOME}/nco/data/in_zarr4#mode=nczarr,file" ~/in_zarr4.nc
NetCDF: Invalid argument
Location: file nccopy.c; line 1169
zender@spectral:~$

BTW, both nccopy and ncks successfully copy this file from HDF5->NCZarr.

Hopefully fixed by PR https://github.com/Unidata/netcdf-c/pull/2503

PR #2503 may have fixed the original problem though it seems to have introduced at least one regression, because nccopy does not successfully copy with the command and file referenced above. Using the latest netCDF-c from this morning 10 AM CEST 9/15/22, here are the results of the above commands with nccopy and ncks trying to copy in_zarr4 from NCZarr to NCZarr. The commands now fail at a point, common to both commands, where they are trying to manipulate an attribute that, in the original CDL, is a long NC_CHAR array (netCDF3 string) and that ncdump wants to print (before it, too, fails) as a netCDF4 string type. Note that this same attribute (the original_values attribute of ppc_bgr), has previously caused problems.
zender@spectral:~$ nccopy -L 0 "file://${HOME}/nco/data/in_zarr4#mode=nczarr,file" "file://${HOME}/in_zarr4#mode=nczarr,file"
NetCDF: Invalid argument
Location: file nccopy.c; fcn copy_var line 1427
zender@spectral:~$

zender@spectral:~/nco/data$ ncks -O --log=1 "file://${HOME}/nco/data/in_zarr4#mode=nczarr,file" "file://${HOME}/in_zarr4#mode=nczarr,file"
	log_level changed to 1
	HDF5 error messages have been turned off.
	NCZ_open: path file:///Users/zender/nco/data/in_zarr4#mode=nczarr,nczarr,file,file mode 4096
	NCZ error messages turned on.
	NCZ_close: ncid 0x10000
	NCZ_open: path file:///Users/zender/nco/data/in_zarr4#mode=nczarr,nczarr,file,file mode 4096
	NCZ error messages turned on.
ERROR: nco_inq_var() fails for variable "ppc_bgr"
ERROR NC_EINVAL Invalid argument
HINT: NC_EINVAL errors can occur for many reasons. Three common ones are described here. 1. When invalid chunking directives are given, e.g., to unchunk a record variable or to chunk a variable with an invalid size (such as zero or larger than a fixed dimension). This is the most frequent/likely cause in our experience. 2. When HDF4-enabled NCO attempts to directly write to an HDF4 (not HDF5) file. Not all HDF5 calls are available with HDF4, and the operators ncrename and ncatted are liklier to trigger this problem. We are working to solve this (fxm TODO nco1104). Please let us know if it affects you. For now the workaround is to convert the HDF4 file to netCDF4 first (e.g., with ncks -4 in.hdf out.nc), then use ncrename or ncatted. 3. When NCO operators attempt to open netCDF4 files using the diskless option, usually invoked with --diskless_all, --ram_all, or --open_ram. Is your input file netCDF4 format?  (http://nco.sf.net/nco.html#fmt_inq shows how to tell.) If so then omitting the diskless option may solve this problem. 4. When floating-point quantization algorithms (e.g., BitGroom) are applied to integer-containing variables.
nco_err_exit(): ERROR Short NCO-generated message (usually name of function that triggered error): nco_inq_var()
nco_err_exit(): ERROR Error code is -36. Translation into English with nc_strerror(-36) is "NetCDF: Invalid argument"
nco_err_exit(): ERROR NCO will now exit with system call abort()
Abort trap: 6
zender@spectral:~/nco/data$

This in_zarr4.cdl file seems to be a good one for finding bugs, so I suggest that you test both ncdump and nccopy on it before concluding that the underlying problems have all been fixed.

Try regenerating in_zarr4 from in_zarr4.cdl and see if it works.
I think I introduced a back compatibility failure.

YES!!! I guess the on-disk NCZarr format changed due to the recent PR and the new library is incompatible with the old format. Glad you thought of that. Copying and printing both work as advertised. I'll close this issue. Thanks, @DennisHeimbigner


Fixed example of Vec\reproduce()

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build 999134830:
0.0%

Covered Lines:
3064

Relevant Lines:
3065

💛  - Coveralls


SBT not picking up file changes on MacOS

steps
sbt version: 1.2.8
problem
When running ~run in sbt, after changing a file nothing happens. I was testing different editors (VS Code, Idea, Sublime) and the problem still appears.
expectation
Sbt should watch the files for changes

@wdanilo Thanks for the report. Could you try 1.3.0-RC2, and see if the problem still happens?
If so could you list out the reproduction steps in such a way that the team can recreate your problem on our computer?

@wdanilo this issue isn't specific enough to debug. Watching files on mac does work for the majority of projects so we need more details to investigate. Closing for now, but I will re-open if you provide more information.


Return InvalidArgError when pydantic validation fails on API objects

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

When a user passes in extra parameters (see pydantic extra: str = "forbid") to the body of /bulk/search/, they receive an InvalidArgsError.

What is the current behavior? (You can also link to an open issue here)

extra parameters are ignored silently

What is the new behavior (if this is a feature change)?

Raise InvalidArgsError with body

{
        "message": json.dumps(error_messages),
        "code": InvalidArgError.code,
        "type": InvalidArgError.error_type,
        "link": InvalidArgError.link
}

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
No

Have unit tests been run against this PR? (Has there also been any additional testing?)
Yes

Related Python client changes (link commit/PR here)
Not needed.

Related documentation changes (link commit/PR here)
Same

Please check if the PR fulfills these requirements

[x] The commit message follows our guidelines
[x] Tests for the changes have been added (for bug fixes/features)
[x] Docs have been added / updated (for bug fixes / features)

rerunning tests: https://github.com/marqo-ai/marqo/actions/runs/4558116695

Unit tests: https://github.com/marqo-ai/marqo/actions/runs/4559621361

https://github.com/marqo-ai/marqo/actions/runs/4570217900

DIND test: https://github.com/marqo-ai/marqo/actions/runs/4592343621
Local-OS test: https://github.com/marqo-ai/marqo/actions/runs/4592345433
s2search-OS test https://github.com/marqo-ai/marqo/actions/runs/4592351838


introduce different travis runners for different jobs

Please review; should I squash the commits?

probably @TimNN

Also, could you add a few blank lines in the matrix section in travis.yml

Looks good so far. Could you please make sure that log "going to deploy to $BOLD$REPO_URL$RESET" is not executed if deployment would be skipped?
Also, feel free to comment once you made any changes because GitHub does not send emails when new commits are added to a PR.

should be fixed now? Shall I squash?

I think GitHub can do the squashing, let me try


Two language

How can I use two languages?

Short answer first, right now you can't.
Long answer: I've been thinking about it too, since I find it very useful. So far I have 2 options, from easier to implement, to one that is harder both to implement and use, but I guess will give the best results.

Apply the stemmer in different languages, (with some sort of priority), and stop processing for the first one that modifies the word. That's pretty much what a tool like Sphinx Search does: http://sphinxsearch.com/docs/latest/conf-morphology.html (all the way down).
Be able to insert text in the tables while indicating the language. It will mostly sure need an extra column to store the language for that row. (not sure if this is possible, have to check FTS5 API).

Right now, I think I'll go implementing it way #1.
Any suggestions?

0-9 - number tokenizer
ASCII - ASCII tokenizer [A-Z]
Unicode tokenizer symbols array (examlpe russian [А-Я])

Thank you very much for the library link. It looks really useful for several projects. But due the fact that it's README says:

...CLD2 is not designed to do well on very short text...

And as the FTS5 works by passing single words at a time to the tokenizer, I went into implementing my initial approach (which I think will work perfect on languages as different as Russian and English) of running into a list of suggested languages, and trying them until one is able to tokenize. The order means priority, so if most of your text is in Russian, then you should put Russian first.
This is the way that a fully blown dedicated search tool like Sphinx Search work. Later on, if I find a way to hint the language in the query (and get access to that query), I'll definitely include the library you mentioned. For now, I hope you find the current state of the art good enough for your needs. Don't hesitate to further contact me.


Define a user story.

This comes before writing code. Relates to #1.

Want to see if I can write a user story in the wiki and link it to issues - would really be nice if I could then show status in the wiki pages.

closed by [[../wiki/manage-scrivener-project]]


allow redirect url to have dynamic parameter

This patch allow to call the redirection url (LOGIN_REDIRECT_URL) with parameters that can be for example computed in the pipeline.
Allowed parameters are defined in the settings file with LOGIN_REDIRECT_URL_PARAMETER = ['param1', 'param2']

This can be accomplished with an intermediate page to do the final redirect, or even the final page can access the stored values in the session.


no error thrown on "VT" character insertion

an inserted VT character breaks xlsx file starting at the column & row where it is inserted, yet no error is thrown.
( http://stackoverflow.com/questions/3380538/what-is-a-vertical-tab )

Character \u0002 also breaks XLSX file, but does not throw error.


Shaking scrollbar

I'm working on the project, where we have two components - one with the Table and Autosizer and another one is left hand side menu.  Currently I'm facing the obstacle with scrollbar shaking when I open side menu with css transition and shrinking the component with Table.
But when i click somewhere on the page everything works as it should.I'm confused.
Could somebody give me a piece of advice on how it can be solved.
Here is the example: https://codesandbox.io/s/71xxm06806.
Please open it in full size mode and click toggle button to see it, and then click on the header to check that everything starts working correctly.

.ReactVirtualized__Grid,
.ReactVirtualized__List {
  &::-webkit-scrollbar {
    display: none;
  }
}

Maybe you can try this to hide scrollbar or something.

Thanks @iTonyYo for your advice, but scrollbar is needed in my case.

@bugstamp What about making it overflow: scroll; so the scrollbar will always be displayed?

I had this issue because one of my grids was too wide. I was following the source code in this example and I added the scrollbar width instead of subtracting. This made everything 10ish pixels too wide and I got these double flickering scrollbars.


Working Example

Hi there
Thanks for your lib, however Im wondering. Do you have a working example that demos the features of this library, a codepen or something?
Thanks

Doesnot understand too how to add it to clean html page and serviceworker, can anyone help?


Add 'Hide sensitive values' feature

Having the option to hide sensitive values (balance, transaction amounts etc.) is something quite common in Bitcoin wallets and is a good security / privacy practice to enact in general. There is several ways to do this though I believe the least intrusive is tapping and holding the balance to hide / reveal sensitive information. Design mockup below:

Thank you once again for all the help & suggestions.

No worries! I love Phoenix, I'd be interested in helping out whenever possible. Just tag me on here or dm me over on the bitcoin desgin Slack - bitcoin.design


Bug fix repeat function result length is invalid and cause overflow

What problem does this PR solve?
Problem Summary:
repeat('a', k1), if k1 is nullable column
when execute repeat function, input column is nested column of k1
so if k1 is NULL value, the nested value maybe not inited and invalid,
cause the result length is large and overflow
Release note
None
Check List (For Author)

Test

[ ] Regression test
[ ] Unit Test
[ ] Manual test (add detailed scripts or steps below)
[] No need to test or manual test. Explain why:

[ ] This is a refactor/code format and no logic has been changed.
[ ] Previous test can cover this change.
[ ] No code files have been changed.
[ ] Other reason

Behavior changed:

[ ] No.
[ ] Yes.

Does this need documentation?

[ ] No.
[ ] Yes.

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

run buildall


Post CloudFormation Work

The first iteration of setting up OpenMapKitServer on CloudFormation is 🏁 done 🏁 ! But, we have a few more tasks to finish before considering this work in a good place

Task
Description
Expected timeline
Owner
Status

Using spot instances
The new infrastructure is currently using on-demand instances. This is a consequence of the MixedInstancesPolicy being hard to customise via CloudFormation on AWS. @smit1678 is putting me in touch with our POC at AWS, and we will make a decision about whether to wait for their implementation, or use alternatives like 2 ASGs, one spot and one on-demand, wherein the on-demand is brought to capacity only when the spot ASG is out of capacity
End Feb
@arunasank

Making the infrastructure robust
Will work with @willemarcel to understand how many servers need to go into each stack and if additional monitoring/resources need to be set up. We can also set up certain stacks in different AWS regions, to be closer to their user base
End Feb

Using EC2 instances with instance stores
The t3.medium uses an EBS for storage instead of inbuilt instance-storage. EBS is makes disk reads/writes slower and is $$$ as compared to instances that come with in-built SSDs. I'll set up the OMK on an instance with SSD. Instances with in-built SSDs cost more than instances that depend on EBS, so will factor in our current costs before making this decision.
End Feb

Strong end-to-end testing
I'll be leaning on @willemarcel's expertise to put together a list of user-tests both as documentation for standardising testing after future deploys, as well as for testing that the current infrastructural changes have not impacted the application in any way
End Feb

Getting rid of EBS backed deploy dependencies
Since we are shifiting to CloudFormation, we can clean out all EBS related files in this project, as well as archive https://github.com/hotosm/omk-server-eb
End Feb

Set up all our OMK stacks using CloudFormation
Make a detailed plan for deleting existing EBS environments, and setting up OMK stacks on CloudFormation, to ensure that the process is seamless and secure, and we don't accidentally lose data
End Feb

Write up detailed documentation on stack creation/updation/deletion
@willemarcel and I are super excited to move away from console-dependent deploys to 🍿-time deploys, which is what we'll have after we set up all our tasks on CloudFormation.! This task will involve writing up detailed documentation for the ✨ new ✨ way to deploy.
End Feb

If any of you are interested in owning these tasks or pairing on them, please get in touch with me/fill out your handle in the Owner column. 🤗
cc/ @hotosm/tech

Please also point out tasks I have missed out on in the above list, and feel free to edit the above post to change the status for a task!

Awesome and thanks for the detailed split @arunasank ! I'd like to support & learn from @arunasank @willemarcel on

Set up all our OMK stacks using CloudFormation and
Documentation of stack setup

Welcome to the party @ramyaragupathy! Can you edit the post to add your handle against the tasks? 😄


Implement field actions (p0)

Implement field actions marked as 'p0' in the list. There're 29 remained as of Sep 29, 2017.

I'm taking dayOfWeek and dayOfYear, will commit them against this issue.


Bring back build parallelism

We had to remove build parallelism because MSBuild doesn't automatically coordinate builds of a project. Building a project multiple times at a time will usually cause sadness, and it was easy to trigger with Tye when you have a shared dependency project used by multiple services.
Some ideas about how to bring it back (discussed with @rainersigwald):

Generate a project with p2ps to all of the things we want to build and invoke MSBuild on that
Use BuildManager in memory and queue multiple builds

The first one of these would probably be a big improvement because:

Allows MSBuild to do its thing for parallelism
Reduces the number of times we shell out and launch a new dotnet process

Doing the second one of these would be more work, but probably moves us in a direction we want to go eventually:

We can reuse the state we already have in memory from evaluation
We can eliminate shelling out completely

@rynowak putting this in 0.2.