[NSFW] [New Website request] Add support for hanime

[x] I'm reporting a new site support request
[x] I've verified that I'm running youtube-dl version 2021.06.06
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that none of provided URLs violate any copyrights
[x] I've searched the bugtracker for similar site support requests including closed ones

Example URLs
Hanime website link - https://hanime.tv/

Hanime Single video: https://hanime.tv/videos/hentai/jashin-shoukan-inran-kyonyuu-oyako-ikenie-gishiki-2

Description
Nhentai is a website where we can read doujinshis and hanime is the website where we can watch hentai.

In the Hanime example, the JSON being assigned to JS variable window.__NUXT__ needs to be captured. Then metadata is in the .state.data.video.hentai_video object of the JSON, and streaming links are in .state.data.video.videos_manifest.

why would you need yt-dl for nhentai. it doesn't even host videos.
ever heard of HDoujin downloader? recommended to use that instead.
if you're on phone, use Hentoid (can be found on github) to download doujinshis.

This should be pretty straight forward, when given a url to a video, the url to a m3u8 "playlist" can be found in the JS variables.
if I run the the meu8 url with YT, it downloads the video from the multiple parts/slices in the m3u8 and outputs it to a video file with a large file name based on the hash/donno of the m3u8 file path.

In the Hanime example, the JSON being assigned to JS variable window.__NUXT__ needs to be captured (this is used by the NuxtJS framework to pass the page state from the server to the browser). Then metadata is in the .state.data.video.hentai_video object of the JSON, and streaming links are in .state.data.video.videos_manifest.

I cannot understand anything. I am not a computer nerd and I am noob. :\

I am getting this error

The url is not supported :(

why would you need yt-dl for nhentai. it doesn't even host videos.
ever heard of HDoujin downloader? recommended to use that instead.
if you're on phone, use Hentoid (can be found on github) to download doujinshis.

Yup no need for nhentai. I can use hakuneko and aniyomi but I need hanime.

Better to paste the text output inside ```code tags```.
Unfortunately supporting your anime site in yt-dl needs someone to write Python code, as described in the Developer Instructions in the fine manual, so you either have to learn, or hope that someone else is interested.

Well, I could probably do it, but I'd need specs on what to use.
I've built things like this before so I know how, but I'm guessing there is a procedure you would prefer used ?

In the fine manual, see the section Adding support for a new site. But also consider whether the site meets the criteria listed in Can you add support for this anime video site, or site which shows current movies for free?.

Okay, I can't answer that, if someone can find out if it is legal, then I can have at it.

U can alsways download hentai from hanime for free. I read all the rules and faq :+1:


chore: dependabot for e2e

Closes https://github.com/celestiaorg/orchestrator-relayer/issues/595
gomod e2e isn't a valid package ecosystem. The valid package ecosystems are listed here. I think it should just be gomod.
I haven't tested this yet but it seems safe to just ship it and observe dependabot PRs in this repo after it merges.

Summary by CodeRabbit

Chores

Updated dependency management settings to focus on the main module ecosystem.

I don't believe the CodeRabbit review here


Required parameters info is not captured

I have marked some parameters as required [e.g. in swagger.json - "required": true ] but in the generated documentation there is no indication that the parameter is required in the request. Red asterisk or a label indicating that the parameter is required would help.

Can you provide a simple example json?

You can use http://petstore.swagger.io/v2/swagger.json as example json.
DELETE /pet/{petId} has petId as required.

oh, thanks

I've added the 'required`-badge that is also used in the JSON-schema. Try the newest version.

It looks good now. Thanks.


how to get it to work with Mailgun? It doesn't work (anymore)

I swear I tested this about 9 months ago and I was able to receive an email through laravel-mailbox. Today I tried it again and this time I am getting Invalid Mailgun signature or timestamp., Url:https://api.redacted.com/laravel-mailbox/mailgun/mime errors
I'm using the HTTP webhook signing key which has to be the right one
I've gone inside the Mailgun Routes and set the forwarding to forward a copy to https://api.redacted.com/laravel-mailbox/mailgun/mime
I've followed the rest of the setup guide and I can't figure out what I'm doing wrong!
Can someone please help me out.. thanks!

Hey @vesper8
Did you manage to get it to work?
In a recent project I also couldn't get it to work at first, but after directing both Mailguns "store and notify" and "forward" options to the https://api.redacted.com/laravel-mailbox/mailgun/mime endpoint did work for me. Previously I only used the "store and notify" option in mailgun without forwarding.

Hey @vesper8
Did you manage to get it to work?
In a recent project I also couldn't get it to work at first, but after directing both Mailguns "store and notify" and "forward" options to the https://api.redacted.com/laravel-mailbox/mailgun/mime endpoint did work for me. Previously I only used the "store and notify" option in mailgun without forwarding.
I've used Mailgun's webhook key in the MAILBOX_MAILGUN_KEY environment variable.

This is how it works for me. Although I don't use "store and notify", I just forward it.

now that Mailgun has ended its free tier and is now charging 30$ / months to use its routes and webhooks.. I would like to know of another free provider that works with laravel-mailbox if anyone knows of any please mention it in a comment

now that Mailgun has ended its free tier and is now charging 30$ / months to use its routes and webhooks.. I would like to know of another free provider that works with laravel-mailbox if anyone knows of any please mention it in a comment

Sendgrid could be an option

I ended up using my MxRoute account. Don't know why I didn't do that before since I've been paying for it for years. It's great, so easy to set up too. Only for receiving not for sending, but that's perfect for laravel-mailbox


extras: Add API to create RSA keys with random primes

Tied to #248
This adds a _createFromNumbers API which creates an RSA key generating p and q primes based on n, e and d
Motivation:
There might be cases where private RSA keys have to be generated based on their raw elements (modulus n, exponent e and private exponent d) without p and q. These are random primes which are integral parts of the key but can be generated based on the former numbers, and are not always included when representing RSA keys, for example these parameters are not required in JWKs
Modifications:
This adds a static _createFromNumbers method which creates a new RSA key given its raw modulus, exponent and private exponent, generating the needed p and q primes without having to provide them as parameters. The algorithm to generate primes is based on a hybrid approach of the Miller Rabin primality test and the proof of Fact 1 in Dan Boneh's Twenty Years of Attacks on the RSA Cryptosystem paper. To write this algorithm, some additions had to be made to the ArbitraryPrecisionInteger
Result:
Private RSA keys can now be generated without providing p and q

@swift-server-bot add to allowlist


person_detection 例程结果好像不正确

我使用ESP32S3-EYE可以运行例程，相机初始化也没有问题，但是log结果始终是随机的一正一负
person score:-34 no person score 34
Image Captured

person score:-10 no person score 10
Image Captured

person score:-15 no person score 15
Image Captured

person score:33 no person score -33
Image Captured

person score:-10 no person score 10
Image Captured

Hi @HoGC,
We have used the same model and similar setup to the one tflite uses. (https://github.com/tensorflow/tflite-micro/tree/main/tensorflow/lite/micro/examples/person_detection)
The model behaviour is this way. Even on x86, the outputs are always on +ve and other exact -ve to that value.
In general,
if person_score > no_preson_score by good margin it is a person.
Thanks.

This is fixed with following commit:
https://github.com/espressif/tflite-micro-esp-examples/commit/b905680d525161e46ba2b036a9d2b5a77e165154
Scores are now requantized and scaled to % of confidence.
e.g., previous person score:115 no person score -115 is now changed to person score:95%, no person score 5%


Blank blue screen

Hi, I'm working on remote server.
I start visdom with
vis = visdom.Visdom(server='http://<IP_ADDRESS>',port = 8097)
vis.text('Hello, world!')
vis.image(np.ones((3, 10, 10)))

Server responses smth like

INFO:tornado.access:200 POST /events (<IP_ADDRESS>) 0.69ms
INFO:tornado.access:304 GET / (<IP_ADDRESS>) 4.36ms
INFO:tornado.access:304 GET /favicon.png (<IP_ADDRESS>) 2.64ms

but http://<IP_ADDRESS>:8097 remains blank
Any ideas on what's going wrong? Thanks!

Also experiencing this issue here. It seems that the CDN that visdom is using (http://unpkg.com) is down or has some problems. For example, see what is delivered instead of the react.js library<EMAIL_ADDRESS>I think we should remove the dependency on external CDNs - what exactly do we gain?

This seems to be working again now (it does for me)?
The reason for having the dependency like this is that we cannot distribute code by others as part of the repository. The right way to fix it would presumably be to have the install scripts download the dependencies and copy them somewhere in the install directory.

Lots of people have been complaining about random 404 and 503 unpkg responses recently. You can always use jsDelivr instead, which works in a similar way but is more reliable<EMAIL_ADDRESS>

Not solved yet. still facing the same issue.

The reason for having the dependency like this is that we cannot distribute code by others as part of the repository.

@lvdmaaten I'm not a lawyer, but I think all open source licenses allow redistribution as long as you also include the license file and copyright notice. I think that would be the simplest solution.

Even if the license may allow it, Facebook does not want to re-distribute code.

@lvdmaaten Shall I work on a patch to download the required files to the py/static/css or js directories as a part of setup.py file and modify  index.html file to use the local files?

@SelvamArul That would be great!

same problem, any solution now?

Solved by https://github.com/facebookresearch/visdom/commit/2d121340c863c3bbb4ab36de972faf4ea24c5509


Make the tools table more usable

It's not nice to work with.
Ideas:

Split libraries into their own section
Rethink columns?
Different presentation

The following idea extends the approach of a different representation.
How about outsourcing the table to a dedicated Markdown document with some brief explanations for each tool?  It could be considered a Tooling Catalogue, enriched with the tools the community developed.  Each tool might be presented in an own section with an overview about the most important information, just as the different CFF keys in schema-guide.md.
For instance, the section for the Ruby library might contain these basic information:
### `ruby-cff`

* written in: Ruby
* capabilities:
  * creation
  * editing / updating
  * validation
  * conversion
* abstract: ...
* additional information: ...

At the moment, the current representation has the option to introduce redundant entries.  The best example is ruby-cff which has multiple entries due to its ability to fulfill multiple tasks.  But also when one of the tools should be ported to another coding language, there would be basically two entries for the same tool.
The catalogue approach would help here to keep an overview.  If there should be multiple implementations of the same tool which have basically the same functionality, these could be listed in a subsection "Implementations".

Thanks, @kevinmatthes, I really like to idea. @jspaaks, can you see any reason why a dedicated tools doc wouldn't be a good idea?

I agree the tools table is really becoming unwieldy, so any attempt at improvement is worth considering. As to the proposed idea of a catalogue: I would like to point out that such a presentation answers a different kind of question than what the tools table attempted. Specifically, a catalogue view is able to answer questions like: "what tools are there in this landscape?" or even "what is Tool X?" whereas the tools table is able to answer questions like: "what tools can I use to convert from/to CFF?" and "Are there any validators available?".
Having said that, I don't know if that shoudl stop us from trying out the catalogue view, so if @kevinmatthes wants to take a stab at that, that would be welcome AFAIC.

I am going to prepare an example based on ruby-cff in a new Pull Request.

I submitted my suggestion as #406.

Having said that, I don't know if that should stop us from trying out the catalogue view, so if @kevinmatthes wants to take a stab at that, that would be welcome AFAIC.

I agree, let's try this until we can come up with something better (probably in the context of building the new website).


Publish types?

Hi,
I see that this package is built with TypeScript, but does not ship with the types. @types/barcode-detector also does not exist. Would you consider publishing the types? Or, do you have any other recommendations?
TIA!

I'm not super comfortable with TypeScript yet. You mind creating a PR? :)


constrained delaunay triangulation

Add a button to automatically run a constrained delaunay triangulation on the PSLG

now that we have a c++ build chain, cgal could be used for that


Changes on SQL Server firewall don't show up in Activity Logs

We use sql-action in combination with azure/login to authenticate to our SQL Servers from GH Action and update the firewall at runtime. The Azure Login uses a Service Principal to authenticate to Azure, and the whole process works just fine.
However during our tests we realized there was no trace of the firewall change in the Activity Logs.
Though I do see a traces when performing the same action on the portal, using my AAD account.
Do you know why ? Or am I missing something ?

I just realized the checkbox "Allow Azure services and resources to access this server" was checked, thus bypassing the firewall entirely. That also explains why I couldn't find the message "Client does not have access to server. Adding firewall exception for client's IP address." in the action logs.
I confirm Activity Logs also reflect that change properly. My bad! -)


Notification info counter not refreshing

Notification info counter not refreshing after clicking and watching the notification

You can use this command to define whether all items in the list will be marked as read before the Notification Center is created.
MenuConfig.setNotificationCenterOpenIsReaded(-> boolean <-);


Scp 5023/e2 e get contracts api 2

Pre-submit checklist:

Branch

[ ] Tests are provided (if possible)
[ ] Test report is updated (if relevant)
[ ] Commit sequence broadly makes sense
[ ] Key commits have useful messages
[ ] Relevant tickets are mentioned in commit messages
[ ] Formatting, materialized Nix files, PNG optimization, etc. are updated

PR

[ ] Self-reviewed the diff
[ ] Useful pull request description

Review required
[ ] Substantial changes to code, test, or documentation
[ ] Change made to Marlowe validator (@bwbush and @palas must be included as reviewers)
Review not required
[ ] Minor changes to non-critical code, documentation, nix derivations, configuration files, or scripts
[ ] Formatting, spelling, grammar, or reorganization

[ ] Reviewer requested

Don't forget to run updateMaterialized and commit the resulting changes


ghostClass JS Bin example is not working

The ghostClass JS Bin example shown at https://github.com/RubaXa/Sortable/ when explaining ghostClass y not working. It is just creating a Sortable with 100 elements, but there is not ghostClass usage at all.
This is the JS Bin link: http://jsbin.com/boqugumiqi/1/edit?css,js,output
Is it possible to fix it? The ghostClass feature is not well explained without a working example or further explanations.

Fixed this example.

Ok, I now understand that the ghostClass is the item being dragged. I though it was a feature to show a drop area while the user is dragging an item. Such a feature would be useful when items are dragged from a list to another list, or even any div at the document (triggering an onAdd event in another list, or even an invisible list).
As an example: a list of ice cream flavours: lemon, mint, strawberry. You drag each item into a div (in this case an empty canvas), and an ice cream gets drawn with an additional ice cream ball on top, with the proper color. This kind of Sortable usage would make the library more flexible. Would implementing this be too hard?

I had the same request in #144.

Not exactly as the JQuery-UI placeholder you are referencing. Mora like setting a fixed area to drop elements, not just decorating the space when reordering into a list


Add Natural Cubic interpolator

I implemented Natural Cubic Interpolator.
liked to issue #1469 .
This change modified Gonum to interp/cubic.go, interp_example_test.go.
Please confirm changed points.

Hi roman!
Thank you for code review!
I'll reconstruct Natural Cubic Spline method based on your pointed out again.

I'm closing this PR because it has gone stale. We're still interested in contributions, so please create a new PR if you still intend to submit this change.


Can not install

Just installed this plugin and the install failed. This is on Ubuntu 22.04.
I get this:
Plugin 'SftpPlugin' failed to load.
Traceback (most recent call last):
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/sftp.py", line 11, in
import paramiko
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/../lib/paramiko/init.py", line 22, in
from paramiko.transport import SecurityOptions, Transport
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/../lib/paramiko/transport.py", line 89, in
from paramiko.dsskey import DSSKey
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/../lib/paramiko/dsskey.py", line 37, in
from paramiko.pkey import PKey
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/../lib/paramiko/pkey.py", line 31, in
import bcrypt
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/../lib/bcrypt/init.py", line 25, in
from . import _bcrypt  # type: ignore
ImportError: /home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/../lib/bcrypt/_bcrypt.abi3.so: invalid ELF header
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "fman/impl/plugins/plugin.py", line 125, in load
File "fman/impl/plugins/plugin.py", line 141, in _load
File "fman/impl/plugins/plugin.py", line 164, in _load_classes
File "fman/impl/plugins/plugin.py", line 229, in _load_packages
File "", line 399, in _check_name_wrapper
File "", line 823, in load_module
File "", line 682, in load_module
File "", line 265, in _load_module_shim
File "", line 684, in _load
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/init.py", line 1, in
from .columns import Group, Owner, Permissions
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/columns.py", line 3, in
from .filesystems import is_sftp, is_ftp
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/filesystems.py", line 20, in
from .sftp import SftpBackgroundWrapper, SftpConfig, SftpWrapper
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/sftp.py", line 16, in
import paramiko
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/../lib/paramiko/init.py", line 22, in
from paramiko.transport import SecurityOptions, Transport
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/../lib/paramiko/transport.py", line 89, in
from paramiko.dsskey import DSSKey
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/../lib/paramiko/dsskey.py", line 37, in
from paramiko.pkey import PKey
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/../lib/paramiko/pkey.py", line 31, in
import bcrypt
File "/home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/../lib/bcrypt/init.py", line 25, in
from . import _bcrypt  # type: ignore
ImportError: /home/dom/.config/fman/Plugins/Third-party/SftpPlugin/sftp_plugin/../lib/bcrypt/_bcrypt.abi3.so: invalid ELF header

I got the same problem on windows 11

Same problem on Windows 11. No updates on the issue for almost 2 years, guess the project is dead?


Undeclared dependency on grape

grape_on_rails_routes only advertises a dependency on rails, however it also has a dependency on grape:

    grape_klasses = ObjectSpace.each_object(Class).select { |klass| klass < Grape::API }

That makes sense, will look at pushing an update soon. Pull requests are also always welcome :)


fix: update module name and format

Signed-off-by: Xunzhuo<EMAIL_ADDRESS>fix and format codes.
No code changes in this PR, just format codes with the correct module name:)
resolve: https://github.com/mosn/layotto/issues/535

Let us get this merged ? This is no harmful to codes, just goimports style format:) cc @seeflood @mosn/committer

Oh, please fix the conflict

Oh, please fix the conflict.

Confilcts have been resolved.


When the Depth-Anything-V2-Giant 1.3B model will be released？

Hello! This work is very impressive and shows great potential. May I ask when the Depth-Anything-V2-Giant 1.3B model will be released? I am very eager for its release!

Hi @krrr8s, we're currently still in the company review process. We anticipate being able to release it after our paper is accepted.

Will it be possible to fine-tune DINOv2-G model (1.3B) with customed synthetic dataset, then assign pseudo depth labels on unlabeled real images, and then train a smaller model?


New device - 4 socket powerstrip

{
"result": {
"category": "cz",
"functions": [
{
"code": "switch_1",
"desc": "{}",
"name": "开关1",
"type": "Boolean",
"values": "{}"
},
{
"code": "switch_2",
"desc": "{}",
"name": "开关2",
"type": "Boolean",
"values": "{}"
},
{
"code": "switch_3",
"desc": "{}",
"name": "开关3",
"type": "Boolean",
"values": "{}"
},
{
"code": "switch_4",
"desc": "{}",
"name": "开关4",
"type": "Boolean",
"values": "{}"
},
{
"code": "relay_status",
"desc": "{"range":["power_off","power_on","last"]}",
"name": "上电状态",
"type": "Enum",
"values": "{"range":["power_off","power_on","last"]}"
}
],
"status": [
{
"code": "switch_1",
"name": "开关1",
"type": "Boolean",
"values": "{}"
},
{
"code": "switch_2",
"name": "开关2",
"type": "Boolean",
"values": "{}"
},
{
"code": "switch_3",
"name": "开关3",
"type": "Boolean",
"values": "{}"
},
{
"code": "switch_4",
"name": "开关4",
"type": "Boolean",
"values": "{}"
},
{
"code": "relay_status",
"name": "上电状态",
"type": "Enum",
"values": "{"range":["power_off","power_on","last"]}"
},
{
"code": "add_ele",
"name": "增加电量",
"type": "Integer",
"values": "{"unit":"度","min":0,"max":50000,"scale":3,"step":100}"
},
{
"code": "cur_current",
"name": "当前电流",
"type": "Integer",
"values": "{"unit":"mA","min":0,"max":30000,"scale":0,"step":1}"
},
{
"code": "cur_power",
"name": "当前功率",
"type": "Integer",
"values": "{"unit":"W","min":0,"max":50000,"scale":0,"step":1}"
},
{
"code": "cur_voltage",
"name": "当前电压",
"type": "Integer",
"values": "{"unit":"V","min":0,"max":2500,"scale":0,"step":1}"
}
]
},
"success": true,
"t":<PHONE_NUMBER>236,
"tid": "007048b808d211edbc333a18cbe6d689"
}

Please find the API call in iot.tuya.com that reports dp_id. It is the last function in the second to last category. I don't have it in front of me now, so I can't remember the exact names
Also, or if you can't find that, this might be enough on its own, there should be a message in the Home Assistant log when you try to add the device telling the actual data returned from the device. Sometimes the iot.tuya.com info is wrong, and almost always it is missing something, so this is always useful.

is it?
{
"result": {
"active_time":<PHONE_NUMBER>,
"category": "cz",
"category_name": "Socket",
"create_time":<PHONE_NUMBER>,
"gateway_id": "",
"icon": "smart/icon/1531222310rcqusncie3f_0.png",
"id": "23322207807d3a2ddd97",
"ip": "<IP_ADDRESS>",
"lat": "50.9775",
"local_key": "=deleted=",
"lon": "44.7802",
"model": "WP30",
"name": "Детская удлиннитель",
"online": true,
"owner_id": "28174593",
"product_id": "7hBwPPNdDP1xHrWv",
"product_name": "Power Monitoring Strip",
"sub": false,
"time_zone": "+03:00",
"update_time":<PHONE_NUMBER>,
"uuid": "23322207807d3a2ddd97"
},
"success": true,
"t":<PHONE_NUMBER>264,
"tid": "6e24a04e08d811eda4f3322e56e3d437"
}

It should be there:

The highlighted one is correct, but the output is usually more like the first output you gave, with additional dp_id fields reported.  The second set of data is useful for the product_id, but contains quite a lot else that is specific to your device and potentially useful to hackers and stalkers, I think that normally comes from one of the functions under General Devices Management (but there is so much duplication in the tuya cloud api that it could be accessible from elsewhere also).

I have tried all of menus, but dp_id was found nowhere :(

OK. If you can get the HomeAssistant log message from when you try to add the device, probably I can match the above up with what is being returned.  Powerstrips are usually quite simple - there will be booleans corresponding to the switches, the same number of integers corresponding to timers for each switch, and if it supports power monitoring, 3 or 4 integers corresponding to current, voltage, power and maybe energy.

I've connected device as simple switch.
2022-07-21 18:27:02 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches qoto_03_sprinkler with quality of 42%. DPS: {'1': False, '2': False, '3': False, '4': False, '102': 0, '103': 0, '104': 2240, '105': 1, '106': 1709, '107': 34620, '108': 101000, '109': 205, 'updated_at':<PHONE_NUMBER>.9443605}
2022-07-21 18:27:02 WARNING (MainThread) [custom_components.tuya_local.config_flow] Report this to https://github.com/make-all/tuya-local/issues/

And if it will be usesul, such powerstrip i've set up at local tuya integration:
DP 1-4 - SWITCH1-4
DP 104 - voltage scaling 0.1
DP 102 - current scalling 0.001
DP 103 - power scalling 0.1

Available in 0.18.1

Thank you very much! It works perfectly!


the key don't work on Mouse without borders

Microsoft PowerToys version
0.70.0
Installation method
Microsoft Store
Running as admin
No
Area(s) with issue?
Mouse Without Borders
Steps to reproduce
Create the key on pc 1
Copy the key and connect to pc 2
✔ Expected Behavior
I was hoping to see the pc connected and the software working.
❌ Actual Behavior
The software doesn't show me my second computer
On both computers I can only see one of them
I launched the application
Before :

I created the key on another PC and put it in, and yet I only see the name I used to connect to the key "PcFixe" and the real name of my PC.
After :

Btw the refresh button don't work and i'm on Windows 11
Other Software
No response

Have you checked if the computers are connected? Please try to follow troubleshooting to check if it might help. /needinfo
https://learn.microsoft.com/en-us/windows/powertoys/mouse-without-borders#troubleshooting

I've already tried :
Make sure all machines are connected on the same network.
Check if the security key and computer host name are correctly inserted.
Check if the Firewall is blocking connections.
But nothing works and I always get this when I add the key and name:

and the result is :


Can't save images

I have a form that is supposed to save images (assets):
        Add images
        <input type="file" id="images" name="fields[images][]" multiple>

        {% if entry is defined %}
            {{ errorList(entry.getErrors('mailing')) }}
        {% endif %}

Here's the fields:

When I choose a file and submit, nothing is in images for that entry.
What am I doing wrong?

Current version of Guest Entries

The very same for me, unfortunately.
Guest Entries: 2.3.0
Craft Pro 3.4.24
I have two fields which are of type Asset.
Form fields of the format:
<input type="file" name="fields[participantRouteImage][]" id="participantRouteImage" class="custom-file-input">

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`databasename`.`relations`, CONSTRAINT `relations_targetId_fk` FOREIGN KEY (`targetId`) REFERENCES `elements` (`id`) ON DELETE CASCADE)
The SQL being executed was: INSERT INTO `relations` (`fieldId`, `sourceId`, `sourceSiteId`, `targetId`, `sortOrder`, `dateCreated`, `dateUpdated`, `uid`) VALUES (617, 50112, NULL, 20190629, 1, '2020-06-18 15:30:38', '2020-06-18 15:30:38', '333792e8-7809-4a10-9bc4-49cc204914e2')

Stack trace:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`databasename`.`relations`, CONSTRAINT `relations_targetId_fk` FOREIGN KEY (`targetId`) REFERENCES `elements` (`id`) ON DELETE CASCADE) in .../application/vendor/yiisoft/yii2/db/Command.php:1293
Stack trace:
#0 .../application/vendor/yiisoft/yii2/db/Command.php(1293): PDOStatement->execute()
#1 .../application/vendor/yiisoft/yii2/db/Command.php(1093): yii\db\Command->internalExecute('INSERT INTO `re...')
#2 .../application/vendor/craftcms/cms/src/services/Relations.php(110): yii\db\Command->execute()
#3 .../application/vendor/craftcms/cms/src/fields/BaseRelationField.php(746): craft\services\Relations->saveRelations(Object(craft\fields\Assets), Object(craft\elements\Entry), Array)
#4 .../application/vendor/craftcms/cms/src/fields/Assets.php(546): craft\fields\BaseRelationField->afterElementSave(Object(craft\elements\Entry), true)
#5 .../application/vendor/craftcms/cms/src/base/Element.php(2559): craft\fields\Assets->afterElementSave(Object(craft\elements\Entry), true)
#6 .../application/vendor/craftcms/cms/src/elements/Entry.php(1301): craft\base\Element->afterSave(true)
#7 .../application/vendor/craftcms/cms/src/services/Elements.php(2166): craft\elements\Entry->afterSave(true)
#8 .../application/vendor/craftcms/cms/src/services/Elements.php(531): craft\services\Elements->_saveElementInternal(Object(craft\elements\Entry), true, false, true)
#9 .../application/vendor/craftcms/guest-entries/src/controllers/SaveController.php(137): craft\services\Elements->saveElement(Object(craft\elements\Entry))
#10 [internal function]: craft\guestentries\controllers\SaveController->actionIndex()
#11 .../application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#12 .../application/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#13 .../application/vendor/craftcms/cms/src/web/Controller.php(178): yii\base\Controller->runAction('', Array)
#14 .../application/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('', Array)
#15 .../application/vendor/craftcms/cms/src/web/Application.php(291): yii\base\Module->runAction('guest-entries/s...', Array)
#16 .../application/vendor/craftcms/cms/src/web/Application.php(559): craft\web\Application->runAction('guest-entries/s...', Array)
#17 .../application/vendor/craftcms/cms/src/web/Application.php(270): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#18 .../application/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#19 .../application/web/index.php(21): yii\base\Application->run()
#20 {main}

Next yii\db\IntegrityException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`databasename`.`relations`, CONSTRAINT `relations_targetId_fk` FOREIGN KEY (`targetId`) REFERENCES `elements` (`id`) ON DELETE CASCADE)
The SQL being executed was: INSERT INTO `relations` (`fieldId`, `sourceId`, `sourceSiteId`, `targetId`, `sortOrder`, `dateCreated`, `dateUpdated`, `uid`) VALUES (617, 50112, NULL, 20190629, 1, '2020-06-18 15:30:38', '2020-06-18 15:30:38', '333792e8-7809-4a10-9bc4-49cc204914e2') in .../application/vendor/yiisoft/yii2/db/Schema.php:674
Stack trace:
#0 .../application/vendor/yiisoft/yii2/db/Command.php(1298): yii\db\Schema->convertException(Object(PDOException), 'INSERT INTO `re...')
#1 .../application/vendor/yiisoft/yii2/db/Command.php(1093): yii\db\Command->internalExecute('INSERT INTO `re...')
#2 .../application/vendor/craftcms/cms/src/services/Relations.php(110): yii\db\Command->execute()
#3 .../application/vendor/craftcms/cms/src/fields/BaseRelationField.php(746): craft\services\Relations->saveRelations(Object(craft\fields\Assets), Object(craft\elements\Entry), Array)
#4 .../application/vendor/craftcms/cms/src/fields/Assets.php(546): craft\fields\BaseRelationField->afterElementSave(Object(craft\elements\Entry), true)
#5 .../application/vendor/craftcms/cms/src/base/Element.php(2559): craft\fields\Assets->afterElementSave(Object(craft\elements\Entry), true)
#6 .../application/vendor/craftcms/cms/src/elements/Entry.php(1301): craft\base\Element->afterSave(true)
#7 .../application/vendor/craftcms/cms/src/services/Elements.php(2166): craft\elements\Entry->afterSave(true)
#8 .../application/vendor/craftcms/cms/src/services/Elements.php(531): craft\services\Elements->_saveElementInternal(Object(craft\elements\Entry), true, false, true)
#9 .../application/vendor/craftcms/guest-entries/src/controllers/SaveController.php(137): craft\services\Elements->saveElement(Object(craft\elements\Entry))
#10 [internal function]: craft\guestentries\controllers\SaveController->actionIndex()
#11 .../application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#12 .../application/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#13 .../application/vendor/craftcms/cms/src/web/Controller.php(178): yii\base\Controller->runAction('', Array)
#14 .../application/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('', Array)
#15 .../application/vendor/craftcms/cms/src/web/Application.php(291): yii\base\Module->runAction('guest-entries/s...', Array)
#16 .../application/vendor/craftcms/cms/src/web/Application.php(559): craft\web\Application->runAction('guest-entries/s...', Array)
#17 .../application/vendor/craftcms/cms/src/web/Application.php(270): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#18 .../application/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#19 .../application/web/index.php(21): yii\base\Application->run()
#20 {main}
Additional Information:
Array
(
    [0] => 23000
    [1] => 1452
    [2] => Cannot add or update a child row: a foreign key constraint fails (`databasename`.`relations`, CONSTRAINT `relations_targetId_fk` FOREIGN KEY (`targetId`) REFERENCES `elements` (`id`) ON DELETE CASCADE)
)

Submits fine if no image selected.

I solved this @wallacio, I didn't have the enctype=multipart/form-data set on the form tag, that caused that integrity constraint


Some fixes for Qt5 on Windows

Pinging @mingwandroid about this one.

Closing, superseded by #13.


US12: User Settings: As a logged-in user, I want to view and edit my profile information, including username, password, and country of origin.

Acceptance Criteria

[x] sopra-fs23-group-20/client#35
[x] sopra-fs23-group-20/client#34
[x] sopra-fs23-group-20/server#35

41b4c204cbae6cb21c8b8da96fe7d22a8f8bd295
45f47f7724db9a67d931a67893886b249665733b

41b4c204cbae6cb21c8b8da96fe7d22a8f8bd295
45f47f7724db9a67d931a67893886b249665733b


[DO NOT MERGE YET] Use robot when making obo version of imports

This requires the changes in https://github.com/ontodev/robot/issues/64 which is not in the latest release yet
For discussion see https://github.com/owlcs/owlapi/issues/752

CI failed because the line should be:
$(ROBOT) convert --check false -i $<  -f obo -o<EMAIL_ADDRESS>&& mv<EMAIL_ADDRESS>$@
Not sure if it is normal, but it spits errors with:
http://bjonnh.net/share/clo_import.owl

Thanks!
Looks like the build fail now is to do with no globbing on some unixen


crystal: fix "play" subcommand

(backport of commit 473c890034e8d25278a52157ce230b77c82f3116)
Motivation for this change
Backports https://github.com/NixOS/nixpkgs/pull/49252
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Fits CONTRIBUTING.md.

Success on x86_64-darwin (full log)
Attempted: crystal, shards
The following builds were skipped because they don't evaluate on x86_64-darwin: mint
Partial log (click to expand)
building
build flags: SHELL=/nix/store/cblfnvb5rmhd2z231mqasn0brzh1hhv4-bash-4.4-p23/bin/bash CRFLAGS=--release
crystal build src/shards.cr -o bin/shards --release
installing
post-installation fixup
strip is /nix/store/df6k4mgdjxciy0f637lryp7c9ln7n1m3-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/6raxi5jsnzmdih3wdzxy0qc6qcws0ayb-shards-0.8.1/bin
patching script interpreter paths in /nix/store/6raxi5jsnzmdih3wdzxy0qc6qcws0ayb-shards-0.8.1
/nix/store/143j7p0v3ggsnh9mwjkdi8xshampsw3v-crystal-0.26.0
/nix/store/6raxi5jsnzmdih3wdzxy0qc6qcws0ayb-shards-0.8.1

Success on x86_64-linux (full log)
Attempted: crystal, mint, shards
Partial log (click to expand)
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/9bv5pha5qazmgi60k268rharaihvknnp-shards-0.8.1
shrinking /nix/store/9bv5pha5qazmgi60k268rharaihvknnp-shards-0.8.1/bin/shards
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/9bv5pha5qazmgi60k268rharaihvknnp-shards-0.8.1/bin
patching script interpreter paths in /nix/store/9bv5pha5qazmgi60k268rharaihvknnp-shards-0.8.1
checking for references to /build in /nix/store/9bv5pha5qazmgi60k268rharaihvknnp-shards-0.8.1...
/nix/store/qpah85bjiv857dybpl5kq3xgr2w932jr-crystal-0.26.0
/nix/store/4sl4s07anjnv7j7f51z9y4f7da0fbirf-mint-0.2.1
/nix/store/9bv5pha5qazmgi60k268rharaihvknnp-shards-0.8.1


feat(codebuild): artifact encryption property

Fixes #3211

Please read the contribution guidelines and follow the pull-request checklist.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@skinny85 review please

No problem, thanks for your time and congratulations on the stable release!


Validate table name before deletion via User Interface

As a admin when I delete a table on Apache Pinot UI instead of just a confirmation box, I should be requested to validate the table name & type it manually in a dialog box.
This is to make sure no wrong table is deleted as sometimes admin might be working with multiple browser tabs

cc @joshigaurava @jayeshchoudhary

Curious if other systems also require something similar?

Curious if other systems also require something similar?

I've been thinking about this question for a while. I think for a normal SQL database the answer is, "kind of". You drop a table by typing out DROP TABLE <table_name> where you're effectively doing what's asked here. Github makes you type out the repo name if you're going to delete it. I can't find the post mortem, but I believe AWS and other companies have moved to requiring a second human sign off on (like actively run some command or approve on website) any destructive commands.
All of that said, I think I agree with the ask here. I think anyone running Pinot in prod and relying on the current UI would welcome this feature. If we're worried someone's workflow would really be harmed by this, maybe we can add a "do not ask again for X days" checkbox?

After a few more incidents this year where we accidentally deleted the wrong table, I think we also want users to type out the cluster name. If you have a set up where users test tables on a different cluster, it's very easy to accidentally delete the real one instead of the test one.


fix: support rxjs lettable operators

I'm submitting a...
[x] Bug Fix

Description
I've updated the list of externals for rxjs to support lettable operators. Tested on my lib (ngx-translate) and it works.
Fixes #247
Before:

After:

Does this PR introduce a breaking change?
[x] No

Tested adding externals to local ng-package.json and it removes almost all rxjs dependencies from the bundle, thanks!
Some remain though and I think it is related to an import of the animationFrame scheduler:
import { animationFrame } from 'rxjs/scheduler/animationFrame';
Is there any additional declaration required to match this one, too? I can't really figure out how to declare it.

try that and let me know if it works:
'rxjs/scheduler/Action': 'Rx.Scheduler',
'rxjs/scheduler/animationFrame': 'Rx.Scheduler',
'rxjs/scheduler/AnimationFrameAction': 'Rx.Scheduler',
'rxjs/scheduler/asap': 'Rx.Scheduler',
'rxjs/scheduler/AsapAction': 'Rx.Scheduler',
'rxjs/scheduler/async': 'Rx.Scheduler',
'rxjs/scheduler/AsyncAction': 'Rx.Scheduler',
'rxjs/scheduler/AsyncScheduler': 'Rx.Scheduler',
'rxjs/scheduler/queue': 'Rx.Scheduler',
'rxjs/scheduler/QueueAction': 'Rx.Scheduler',
'rxjs/scheduler/QueueScheduler': 'Rx.Scheduler',
'rxjs/scheduler/VirtualTimeScheduler': 'Rx.Scheduler',
'rxjs/scheduler': 'Rx.Scheduler',

Works, big thanks!

And you tested that the lib works too, right? Not just that it removes the code from the bundle

Tested and works, yes.

Perfect, thanks!
I've updated the PR to add this

Good work from you all!
I am just into a meeting ... will look later to merge / release :-)
Cheers, David

On 23. Nov 2017, at 12:21, Olivier Combe<EMAIL_ADDRESS>wrote:
Perfect, thanks!
I've updated the PR to add this
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

RxJS Lettable Operators Usage Guide: https://github.com/ReactiveX/rxjs/blob/master/doc/lettable-operators.md#lettable-operators

Oh look at this from the docs:
If you require('rxjs/_esm5/path-mapping'), you will receive a function that returns an object of key-value pairs mapping each input to it's file location on disk. Utilize this mapping as follows:

webpack.config.js

Simple configuration:

const rxPaths = require('rxjs/_esm5/path-mapping');
const webpack = require('webpack');
const path = require('path');

module.exports = {
  entry: 'index.js',
  output: 'bundle.js',
  resolve: {
    // Use the "alias" key to resolve to an ESM distribution
    alias: rxPaths()
  },
  plugins: [
    new webpack.optimize.ModuleConcatenationPlugin()
  ]
};

This would work with rollup too

Hi @ocombe,
I don't understand. The mappings are
"rxjs/observable/concat": path.resolve(PATH_REPLACEMENT, "rxjs/_esm5/observable/concat.js")

For rollup, we need a mapping to the UMD identifier. So when requiring the rxPaths() I look up filenames which doesn't help with rollup or am I missing somethng?

Ah maybe, I haven't tried actually :)


Problems building docs with sphinx 1.5.6

I'm attempting to build the documentation for dask 1.15.1 for the Debian package, using sphinx 1.5.6, pandas 0.20.3, python 3.5.3 and numpydoc 0.7.0, and it's currently failing to build from source.
With the error:
Exception occurred:
File "/usr/lib/python3/dist-packages/numpydoc/docscrape.py", line 343, in _pae
raise ValueError(msg)
ValueError: The section Notes appears twice in the docstring of None in None.
The full traceback has been saved in /tmp/sphinx-err-_mt1fzrj.log, if you want .
If I disable this code in dask/utils.py:derived_from
python             if len(not_supported) > 0:                 note = ("\n        Notes\n        -----\n"                         "        Dask doesn't support the following argument(s).\n\n")                 args = ''.join(['        * {0}\n'.format(a) for a in not_supported])                 doc = doc + note + args
It'll build, I also found changing Notes to Extra Notes, and adding extra ------ in the restructured text heading markup worked.

Hi @detrout !  First, thank you for the well worded issue.
I ran into this as well.  My solution was here: https://github.com/dask/dask/pull/2512 .  However that as merged before the last release, so I would expect you to get that solution regardless.

Sadly pinning numpydoc to an earlier version is one of those things Debian packaging isn't good at.
I wonder why it's still getting the duplicate Notes error even though extra_titles() is being called and does appear to be changing the doc string to "Extra Notes"

Yeah, the fix in that PR resolved the issue for us.  I'm not entirely sure
what's happening here.
On Thu, Jul 20, 2017 at 7:20 PM, Diane Trout<EMAIL_ADDRESS>wrote:

Sadly pinning numpydoc to an earlier version is one of those things Debian
packaging isn't good at.
I wonder why it's still getting the duplicate Notes error even though
extra_titles() is being called and does appear to be changing the doc
string to "Extra Notes"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/2530#issuecomment-316857421, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AASszKBPB0D92guOmi0TKj1i78o5Znu3ks5sP-C9gaJpZM4OeujF
.

The fix in #2512 that resolved the exception was pinning numpydoc to 0.6.0. At least for me, the doc build fails with numpydoc 0.7.0 and with numpydoc 0.8.0.dev.0 (commit 057ef572dd5ea547af2832e1b68d934cf953eafe)

I stuck a pdb.set_trace in docscrape.py just before the raise ValueError, and tried to figure out what the duplicate Notes sections were... It seems almost like they're documentation for two different functions? (I'll try to attach the body of the two sections to the issue.)
Would you mind if I renamed the section about unsupported arguments to 'Caution'? for the Debian packaging?
--- a/dask/utils.py
+++ b/dask/utils.py
@@ -496,7 +496,7 @@
                 not_supported.extend(ua_args)

             if len(not_supported) > 0:
-                note = ("\n        Notes\n        -----\n"
+                note = ("\n        Caution\n        -------\n"
                         "        Dask doesn't support the following argument(s).\n\n")
                 args = ''.join(['        * {0}\n'.format(a) for a in not_supported])
                 doc = doc + note + args

It does trigger unknown section errors, but the build finishes at least.

The blocks were pretty long. I put them in gists.
https://gist.github.com/detrout/26459718e933bcc3feab0151fc66bbee
https://gist.github.com/detrout/32f19ebcddfacee9e6bd4d1cf33ffa37

Has this been raised as a numpydoc issue or does this overlap with an existing numpydoc issue?

Renaming Notes to Caution seems sensible to me.  Sorry for the delay @detrout .  We could do this in the mainline codebase as well.
@jakirkham I haven't personally reported upstream.  If you feel like doing this I would be obliged.

I haven't reported it to numpydoc and I haven't found a similar case either.
Do you know of any other projects trying to inherit docstrings like you are?
As far as I can tell your extra_docs function always works, If there's two notes sections, one of them is renamed to Extra Notes. I just can't figure out why numpydoc cares.
I added some code to write out all of the docstrings, and discovered the indentation wasn't always consistent. DataFrame functions mask and where, and SeriesGroupBy functions agg and aggregate have a different indentation from the Notes block being added, but suppressing adding the "doesn't support" note didn't stop the sphinx traceback

I believe that this has been resolved.  The doc building on RTD seems to work well.  Regardless, this issue has gone stale.  Closing.


Issue

fluttercors -db -p /path/to/flutter
Nothing to patch in /Users/dharma.jalla/Downloads/flutter/packages/flutter_tools/lib/src/web/chrome.dart
Nothing to patch in /Users/dharma.jalla/Downloads/flutter/packages/flutter_tools/lib/src/drive/web_driver_service.dart
No files patched

Please provide more details. There is nothing actionable in this issue.

Closing due to not enough information. Feel free to reopen with more details


First three web UI features implemented

Allow multiple alerts to be selected in the alert list. Allow a single note to be applied to all selected alerts. Add hyperlink fields to alert for operational runbooks.

Features will be merged serially


Visualization Documentation

Add documentation and example for visualization tool which is called by cube.visualize(). The function itself is in LUCI/LuciVisualize

Here is the documentation
https://crhea93.github.io/LUCI/example_visualize.html


FlagForceHTTP -> to also force adding http if schema not present?

Hey guys,
Still new with github, so pardon my ignorance.
I have a use case wherein input url doesn't contain schema, and was wondering if 'FlagForceHTTP' should also include adding default 'http' schema if schema doesn't exist, and not just if schema is 'https'? e.g. :
	&testCase{
		"ForceHTTP",
		"whereareyou.com",
		FlagForceHTTP,
		"http://whereareyou.com",
		false,
	},

Already made changes here in my local, and if this is a valid issue, should just be a simple fix, and will search on how to commit the change.
func forceHTTP(u *url.URL) {
if strings.ToLower(u.Scheme) == "https" {
u.Scheme = "http"
}
// +den
// for those urls not having schema, then add http
if strings.ToLower(u.Scheme) == "" {
	u.Scheme = "http"
}
// -den

}

Hi,
This looks like a duplicate of #11, the feature makes sense but there are some subtle issues as mentioned in the discussion.
Thanks,
Martin


Use unicode fraction for grids className

Hello,
Did you consider (and if yes can you explain me quickly why i has been rejected) using unicode fraction in grids className, like
w-⅓ over w-third (or even ⅓ 😄  but maybe its going too far)
w-⅔ over w-two-thirds
w-¼ over w-25
...
I guess you got the idea.
I find it more consistent than mixing numbers and letters and i believe even clearer at a first glance.
Sorry if this suggestion has already been proposed and answer but i didn't find it in your issues.
Keep up your great work on Tachyons !
PS: unicode className is compatible until IE6 if i'm not wrong, so no compatibility worries

how are you supposed to type that?

Even if this library is thought to be easy to write, i usually type once and copy/paste rest of the time (or use components). I personally find more interesting to read it easily than to write it.

@Alexgalinier While we appreciate this interesting concept for class naming, we won't look to support it in core since it will be more difficult to type and search for. Following this same philosophy we also won't introduce characters that need to be escaped in the source css. But that's not to say you can't create your own fork for widths and publish it!

Thanks for your answer, i totally understand the point. I won't do a fork cause it's not mandatory in my opinion. It was more to share an idea that could have helped.


buildkite: use stable agents for daily longtests

@kostko check again please, i added another commit after your review


Fetch local file

Hey Ulf, was playing around with ur repo, great tool.
I was just wondering how to replace the gisturl by a local graph.json file, I tried to fetch a local path but it says "file not found", do you have a workaround ? I do not know where the error comes from.
Cheers

Hmm... I don't know but it works for me. What steps are you following here?
So if I (1) clone the repo (2) cd network_styling_with_d3 (3) python -m http.server 8000 (4) go to localhost:8000?url=/path/to/my/graph it works.

I was trying to change the path within vis.js
  if (controls['file_path'] == "") controls['file_path'] = "https://gist.githubusercontent.com/jct94/595b98f29f4353965e46aa8248331a9f/raw/14f89b40a089af5b6d0cb5e9cdfac5e8d41a75fb/graph_covidwho_louvain.json";

Ah ok. Well, try no changing the code but just inputting the path as a url argument (step 4 above). That should work.

It does, thanks!


install: make datapath-mode the main flag, deprecate some flags

Since we are now using the Helm charts as basis to generate manifests for cilium install, most of the configuration flags we used to have are superseded by Helm options that can be set via helm-set flags.
This commit aims:

To make datapath-mode the only remaining "main configuration flag", so that user experience is kept simple.
To rework the auto-detection logic in a way that makes datapath-mode the only remaining "main configuration flag", so that the Helm chart configuration code is kept simple and centralized in helm.go.

In doing so, we are able to mark deprecated some of the older configuration flags that are superseded by Helm options.

the code change looks good, but i don't have enough context for all he IPAM mode settings. requesting review from cilium/ipam.

IPAM changes should be transparent, in terms of code the goal is to have it work exactly as before except that the IPAM is auto-detected alongside datapath-mode rather than on its own.

Looks like this PR picked up a merge conflict and needs to be rebased.

@gandro @tklauser I agree. If that's OK with you I can quickly rework the PR to that end, so that we don't have multiple hops in terms of deprecation (bad from a user perspective, IMO).

@gandro @tklauser I agree. If that's OK with you I can quickly rework the PR to that end, so that we don't have multiple hops in terms of deprecation (bad from a user perspective, IMO).

That sounds good to me, thanks Nicolas!

The external workloads failure seems completely unrelated to the PR.

The external workloads failure at https://github.com/cilium/cilium-cli/actions/runs/2468063257 seems completely unrelated to the PR.

Yes, it seems to consistently fail on master as well. AFAIK @michi-covalent has been investigating said failure in #908. Let's fix these separately.
Merging this PR to unblock AKS re-enabling.


Update keyboard dynamically based on typed letters

Right now, the keyboard key colours reflect the static state of what's in the answer, but it could be helpful to update this dynamically. I.e. a yellow key would turn gray after you type it to indicate there are no more known instances of that letter.

This is now behind the "Keyboard clues for remaining letters" feature, and looks like the following:


TravisCI: Remove external go vet reference.

The vet tool moved into the Go source tree as of Go 1.5.  Its previous location in the x/tools repo was deprecated at that time and has now been removed.
This commit updates the .travis.yml configuration to avoid fetching vet from the old location and to simply use the version now available as part of the standard Go install.
Also, while here, remove the check for changing to tool path since it is no longer needed.

This change is

OK


Td-agent sometimes stop parsing logs to elasticsearch

td-agent version:
root@lb # td-agent-gem --version
2.6.13
OS:
root@lb # lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.4 LTS
Release:        14.04
Codename:       trusty
Configuration:
<source>
@type tail
path /var/log/db-backup-monitoring.log
pos_file /var/log/td-agent/db-backup-monitoring.log.pos
tag shivam.error
format /^(?[^ ]) (?[^ ]).* (?[^ ]*)$/
time_format %d-%m-%Y
</source>
<match shivam.erro*>
@type elasticsearch
host  <IP_ADDRESS>
port 9200
include_timestamp true
logstash_format true
logstash_prefix backup-monitoring
logstash_dateformat %Y
index_name testing.%Y%m
</match>
I am parsing a self created log file by running a cron at specific time once in a day which contain only 10 records and append the logs to exist file, sometimes it doesn't detect log rotation (once or twice in a week) so don't parse the logs to elastic-search.
Please let me know the problem what i'm not noticing.
Is this somehow related to buffer ?

See https://docs.fluentd.org/v1.0/articles/in_tail#logrotate-setting and check your log rotation configuration.

it's stale and no response. I'm closing


Add email address on OpenLiteSpeed Server

I have a server with Ubuntu 14.04 LTS and OpenLiteSpeed installed on it. I used these commands to install RainLoop on it:
apt-get update –y
apt-get upgrade –y
cd /usr/local/lsws/Example/html
mkdir rainloop
cd rainloop
wget http://repository.rainloop.net/installer.php
/usr/local/lsws/lsphp73/bin/lsphp installer.php
The RainLoop login screen can be accessed with http://192.168.0.xxx/rainloop.
But how do I add an email address so that I can sign in?
https://cyberpanel.net/ uses RainLoop on OpenLiteSpeed so I know it should work. I can't find instructions on how to add a new email address anywhere on the web. So, kindly help me with this issue.

Hey @silent10 Can you walk me through how you installed it?


Backport fn {d,r}av1d_cdf_thread_update code size reduction from dav1d 1.4.2

Reorder CDF arrays so that copying can be performed in larger blocks.

@fbossen, can we merge this?


Add generic shape matching methods + example to test overlap tests

Shapes now have the following methods
collides(shape: any): boolean - Test overlap with any other shape
contains(point: Vec2): boolean - Test if a point is contained by the shape

Thank you this is useful! Can you fix the diff noise in math.ts it's making it hard to view actual diff

Thank you!


Following files from E-MTAB-2323 of ArrayExpress are missing.

Hi,
I was going through your tutorial on Genomic Interactive Visualization Engine LINK. But, I found wget not able to find the files from E-MTAB-2323. The following command does not download the file-
wget http://www.ebi.ac.uk/arrayexpress/files/E-MTAB-2323/E-MTAB-2323.additional.1.zip
I will highly appreciate if you know where the files are and let us know.
Thank in advance,
BK

Looks like the original file was removed from EBI/Array Express. Sorry this
is an external file. I am not able to suggest how to find this file. I will
let the other authors to chime in if they can.
Sheng
On Tue, Oct 18, 2022 at 12:16 BK @.***> wrote:

Hi,
I was going through your tutorial on Genomic Interactive Visualization
Engine LINK.
https://urldefense.com/v3/__https://zhong-lab-ucsd.github.io/Genomic-Interactive-Visualization-Engine/gallery/Demo1-captureHiC_promoter_contacts/__;!!Mih3wA!ElatnHXAUAnKO2JTUIVga-qJgQsFIQq36TDqCSHeeca7bya6g-dWCyM2s9dPkXlIP4WE4ppT8_iqeYIBGWW-Z439$
But, I found wget not able to find the files from E-MTAB-2323. The
following command does not download the file-
wget
http://www.ebi.ac.uk/arrayexpress/files/E-MTAB-2323/E-MTAB-2323.additional.1.zip
https://urldefense.com/v3/__http://www.ebi.ac.uk/arrayexpress/files/E-MTAB-2323/E-MTAB-2323.additional.1.zip__;!!Mih3wA!ElatnHXAUAnKO2JTUIVga-qJgQsFIQq36TDqCSHeeca7bya6g-dWCyM2s9dPkXlIP4WE4ppT8_iqeYIBGcMXsRCm$
I will highly appreciate if you know where the files are and let us know.
Thank in advance,
BK
—
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/Zhong-Lab-UCSD/Genomic-Interactive-Visualization-Engine/issues/117__;!!Mih3wA!ElatnHXAUAnKO2JTUIVga-qJgQsFIQq36TDqCSHeeca7bya6g-dWCyM2s9dPkXlIP4WE4ppT8_iqeYIBGRW4kx0C$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AENNQOW7SGSZCBXJP4JGHTDWD3ZQFANCNFSM6AAAAAARIMVVBM__;!!Mih3wA!ElatnHXAUAnKO2JTUIVga-qJgQsFIQq36TDqCSHeeca7bya6g-dWCyM2s9dPkXlIP4WE4ppT8_iqeYIBGfODqgRi$
.
You are receiving this because you are subscribed to this thread.Message
ID: <Zhong-Lab-UCSD/Genomic-Interactive-Visualization-Engine/issues/117@
github.com>
--
Sheng Zhong, Professor of Bioengineering, University of California, San
Diego, Ph:<PHONE_NUMBER>, Office: PFBH 384, http://systemsbio.ucsd.edu


[ARIFLOW-2458] Add cassandra-to-gcs operator

Make sure you have checked all steps below.
JIRA

[x] My PR addresses the following Airflow JIRA issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-2458

Description

[x] Here are some details about my PR, including screenshots of any UI changes:
Create cassandra hook + cassandra_to_gcs operator that allows cql results to be stored in GCS in json format (compatible with BigQuery)

Tests

[x] My PR adds the following unit tests OR does not need testing for this extremely good reason:
tests.contrib.operators.test_cassandra_to_gcs_operator
tests.contrib.operators.test_cassandra_hook
integration tests in local environment

Commits

[x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Documentation

[x] In case of new functionality, my PR adds documentation that describes how to use it.

When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.

Code Quality

[ ] Passes git diff upstream/master -u -- "*.py" | flake8 --diff

failure occured at db migration, unrelated to PR

Hmm, I don't really trust the failed tests, rebased against master: https://travis-ci.org/Fokko/incubator-airflow/builds/379609692

Failure from PY3 envs  are on Snakebitem which is consistent with other recent PRs.
Failures from PY2 envs are on the following two tests that did not fail prior to rebase.

test_scheduler_sla_miss_callback_exception
test_scheduler_sla_miss_email_exception
Doesnt seem to suggest any potential correlation with this PR, kinda odd.

Still failing one of

Codecov Report

Merging #3354 into master will increase coverage by 0.01%.
The diff coverage is 87.5%.

@@            Coverage Diff             @@
##           master    #3354      +/-   ##
==========================================
+ Coverage   76.47%   76.49%   +0.01%
==========================================
  Files         203      203
  Lines       15012    15016       +4
==========================================
+ Hits        11480    11486       +6
+ Misses       3532     3530       -2

Impacted Files
Coverage Δ

airflow/utils/db.py
33.6% <0%> (-0.28%)
:arrow_down:

airflow/models.py
87.04% <100%> (+0.14%)
:arrow_up:

airflow/hooks/hdfs_hook.py
92.5% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

@jgao54 can you please limit the amount of closing and opening that you do? We have been contacted by Apache Infra explaining to us that we are taking up to 25% of total build time of Travis builds of all Apache projects. Please retry builds on your own account and point to successful builds there if necessary.

@bolkedebruin I'll be more mindful, sorry about that.


Add language switch before login page

The default language should be italian and the language switch should be available even before the location selection

Fixed in #54


Windows undefined symbol error when building with cargo build

This can be avoided by using cargo build --release or npm run tauri dev -- --release.

OBE by #326.


Over ten times worse example() performance when field is nullable.

Describe the bug
When field is set as nullable, calling example() is more than ten times slower. I believe there is no reason for this.

[x] I have checked that this issue has not already been reported.
[x] I have confirmed this bug exists on the latest version of pandera.
[ ] (optional) I have confirmed this bug exists on the master branch of pandera.

Code Sample, a copy-pastable example
from timeit import timeit

import pandera as pa
import pandera.typing as pt

class MyDF1(pa.SchemaModel):
    a: pt.Series[float]

class MyDF2(pa.SchemaModel):
    a: pt.Series[float] = pa.Field(nullable=True)

# following command prints about 0.22 seconds on my computer
timeit('MyDF1.example(size=1)', setup='from __main__ import MyDF1', number=10)

# following command prints about 3.14 seconds on my computer
timeit('MyDF2.example(size=1)', setup='from __main__ import MyDF2', number=10)

Expected behavior
Both commands should take about the same time.
Desktop (please complete the following information):

OS: [Win10 with WSL]

fixed by #641


Update README.md

Explain your changes
Suppose there is a related issue with enough detail for a reviewer to understand your changes fully. In that case, you can omit an explanation and instead include either “Fixes #XX” or “Updates #XX” where “XX” is the issue number.
Checklist

[x] I have read the “Pull requests” section in the contributing guidelines.
[x] I agree to the terms within the code of conduct.

🛟 If you need help, consider asking for advice over in the Kinde community.

Cheers @Haix02 - great attention to detail :)


Add all version 5 options and support updating

See this for the same changes made to filebeat:
https://github.com/pcfens/puppet-filebeat/pull/113

@claflico any other changes we need to get this merged?

Not that I see. I'm using the Master branch in our DEV environment (yeah, yeah I know) and want to make sure that when I merge it I have time to fix any issues that might show up and prevent puppet from running.

You could just tag master and use that in your dev branch instead.
Or make a new branch called dev or something. Then master would be free for merges.

Hold my beer....  :)


Develop

Coverage increased (+0.07%) to 83.281% when pulling 0f165977e0804c785781a5be707005604bd2d1a6 on develop into ceea0bad06d4cb25aba922259b01441ec3e7f03d on qa.


Too large color bar makes png figures ugly

The figures generated with the --cbar option on and saved as PNG have the color-scale bar on their side too big. Compare this figure created by the current version of our code

and a version of the same figure after the change I am going to propose

The change would consist just in putting
plt.colorbar(shrink=0.5) here https://github.com/Probe-Particle/ppafm/blob/18a5d8a68158e5ffc76d7988bb3e9a6a3b86ff2d/ppafm/PPPlot.py#L98
By the way, do not worry that the images I am comparing above as examples also have different contrast: The one generated with the code in our current main branch is wrong because of #250, but that is a separate issue (although if you do not mind solving it with one pull request, it may save me some hassle). Note that we need the above figure for the paper we are writing, which is why I started worrying about both factual correctness and nice layout.

Make sure that the shrink factor shrink=0.5 also looks reasonable for square images. It could be that you need to adjust it dynamically based on the image aspect ratio to something like  shrink=(y_dim/x_dim).

@NikoOinonen, thanks, good catch. I have uploaded a new commit to #251, which hopefully deals with the aspect ratio.


How to create and use API Key?

Please help me with How to create and use API Key?
I tried following endpoint:
/api/v1/admin/api-key/create

In init, you can run migration and seeder.
Then you can use the default api key ids 2ihKDneb9jQGgidAOqfO and ZLCtDd2rh3TAyVhfAeo3JOPvWfAsTp0Oq6rHl69D as xApiKey.
// request headers
{
  'x-api-key': '${apiKeyId}:${apiKeySecret}'
}

For creation, you can read in "src/common/api-key/controllers/api-key.admin.controller.ts."
Only admins can create new API keys


Adding a message when create a document if collection has no mapping

Adding message when create a document if collection has no mapping :
"No collection mapping detected. You need to configure your collection to enable this form."

Codecov Report

Merging #381 into 2.x will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              2.x     #381   +/-   ##
=======================================
  Coverage   85.89%   85.89%
=======================================
  Files          38       38
  Lines         723      723
=======================================
  Hits          621      621
  Misses        102      102

Continue to review full report at Codecov.

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


Jump search | C++ and Java

🚀 Feature
(A clear and concise description of what the feature is.)
Implementation of jump search in C++ and Java
Have you read the Contributing Guidelines on Pull Requests?
(Write your answer here.)
Yes
Motivation
(Please outline the motivation for the proposal.)
I want to contribute this under GSSoC'21.
Pitch
(Please explain why this feature should be implemented and how it would be used.)
It can add to our knowledge of searching algorithms.

Kindly allow me to implement it in Java as a part of GSSOC'21.

@iamvs-2002 Make a separate Issue

@iamvs-2002 Make a separate Issue

Alright

@HarshCasper I just saw that this is already implemented in C++ and Java.
So should close this and look for other issues as it will be repeated otherwise ?


Fix continuous integration e2e backend failures

Ensure CI docker backend always runs DB migrations, even when out of order.  In other words, this PR updates the CI process to now run ./dspace database migrate ignored instead of simply ./dspace database migrate. This ensures that the database backend also applies any migrations which run "out of order" (based on the name of the migration).
Small PR to debug/fix the current issues with e2e tests.  Currently the Docker backend that e2e tests require is failing to start up properly.
This has fixed the issue!

Merging immediately as this has fixed the e2e tests issue


Removed selinux recipe and omit running cache ...

Removed selinux recipe and omit running cache creation by hand on rhel/fedora family since this creates files with the wrong security context in /dev/shm.
Also update testing to enforce selinux when needed (testing templates seem to have this set to permissive) and use both chef_version 12 and 13
Description
Actually testing with selinux enforced
Issues Resolved
Failing installation on selinux enforced nodes
Check List

[x] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[x] New functionality includes testing.
[x] New functionality has been documented in the README if applicable
[x] All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

Thanks for cleaning up the testing while you were in here. Big improvement


Asynchronous validation framework

Currently we use joi which unfortunately does not have asynchronous support. We need to change to another framework that has support for async functions.
Probably ajv is the best candidate.
Others come to mind, too.

Done with commit 3ce4bf2af63c9affecd3dcb3661ffc38651181c5
And some minor changes with commit fe87c3210c25d4d6664b8d24f8fd3ecbc843719a in the skeleton-project graphql-server
Unit tests are NOT working
The unit tests will be fixed when @vsuaste merges the branch independent-model-layer into master


Email Sharing Externalizer Extension

This update allows for customizers to add a configuration to the email sharing service for an optionally configured custom externalizer domain.
The default provided in the OCD should make it function the same as it does today when there is no configuration present (defaults to 'publish').

Tested the fix with latest asset share.
Verified that w/o configuration the externalizer uses publish URLs.
Verified that w/configuration the externalizer uses the configured key.
Gets the 👍 from me once the CHANGELOG is updated.

Thanks @id-keenan !


Page does not exist

https://zulip.readthedocs.io/en/latest/overview/roadmap.html

@karunakarhv where did you find a link to that URL?  We should update the link.

I've added a redirect to make the link take you to the replacement place, but am leaving this open until we have confirmation of whether there's a link we need to change.  Thanks for the report!

@timabbott Alright will wait until we have a confirmation.
For time being, the url has been updated to below:
https://zulip.readthedocs.io/en/latest/overview/release-lifecycle.html#server-roadmap


fix: fixed broken documentation links

I found some broken links in the UI to the moved documentation.
I used https://github.com/lycheeverse/lychee to scan for broken links.
$ cat <<'EOF' > .lycheeignore
^file://
^https://accounts\.exmaple\.com/saml/metadata$
^https://demo\.com/tos-%7B%7B.Lang%7D%7D$
^https://example\.auth0\.com/samlp/metadata\?connection=SAML-ZITADEL$
^https://gitlab\.com/dashboard/groups$%
EOF
$ lychee --verbose --no-progress --exclude-link-local --exclude-mail --exclude-loopback .

@hifabienne I think we should keep this named as fix since it fixes broken links in console

@dol can you run prettier on your fork. It looks like the angular lint is unheapy

@fforootd I'll do.

@fforootd I'll do.

:grin: npm run lint:fix


API proposal

Goals

Define a Color type that is interoperable across Elm packages, meaning:

users of Elm packages know that they can create a Color by any means and use it for any purpose
authors of packages that consume or produce colors want to use this type so that their package interoperate with other packages that use colors

Guarantees

For all supported conversions, fromXX >> toXX guarantees for each component:

for Int components, output will match the input in the supported range
for Float components, output will be within 0.000001 of the input in the supported range

Conversions will be tested against a reference data set to ensure correctness

API
type Color

There has been argument that this should be a type alias Color = { red : Float, green : Float, blue : Float, alpha : Float } -- I think making this a private, opaque type is best at the moment (and probably long-term) because:

It gives us freedom in the short term to change the internal representation (which I'm slightly worried might be necessary to get the accuracy guarantees we want as we add more conversions.
It gives us the flexibility to do the trick that the old elm-lang/core#Color and kuon/elm-hsluv use to switch on the fly to whatever representation is best suited to the manipulations being done, which can improve both performance and accuracy
the RGB representation is still "easily" available with myColor |> toStandardRgb
I think the opaque type makes it more likely for other package authors to use this Color type for input and output to their API because it doesn't feel tied to a particular color space

fromRgba : { red : Float, green : Float, blue : Float, alpha : Float } -> Color
fromHsla : { hue : Float, saturation : Float, lightness : Float, alpha : Float } -> Color

Note: the floats are all in the range [0..1], with the thought that if you have values that are in some other base (like 255, or 100, or 360 for hue), you can just divide, but always using [0..1] for inputs in the packages makes things consistent and flexible.
~The name "standardRgb" is meant to indicate these are interpreted as sRGB values (details would be included in the function docs), see discussion at https://github.com/avh4/elm-color/issues/3#issuecomment-418612706~
~Should the from* functions take a record instead of separate parameters?~

rgb255 : Int -> Int -> Int -> Color
withAlpha : Float -> Color -> Color
rgb : Float -> Float -> Float -> Color
rgba : Float -> Float -> Float -> Float -> Color
hsl : Float -> Float -> Float -> Color
hsla : Float -> Float -> Float -> Float -> Color

Note: the floats are all in the range [0..1], with the thought that if you have values that are in some other base (like 255, or 100, or 360 for hue), you can just divide, but always using [0..1] for inputs in the packages makes things consistent and flexible.
Should "Rgb255" be "Rgb8" instead?  I think 255 is more familiar to web developers.
Do we want all combinations of xxx/xxxa, or just the ones that seem most common, or just the ones without alpha since withAlpha can be used?

toRgba : Color -> { red : Float, green : Float, blue : Float, alpha : Float }
toRgb255 : Color -> { red : Int, green : Int, blue : Int, alpha : Float }
toHsla : Color -> { hue : Float, saturation : Float, lightness : Float, alpha : Float }

Again, all floats are in the range [0..1] which is meant to be consistent and flexible; worst case is the user just multiplies by the range they need
Here it's easy to always include the alpha, since the user can just ignore it if they don't want it.
Should toRgb255 return alpha as an Int?  That would make sense from reading it, but I believe in practice you tend to need the alpha as a float for most web dev cases.

toHex : Color -> { hex : String, alpha : Float }

this returns 6-digit hex
it returns a record to make it clear that the string doesn't include the alpha, and to make it readily available for callers that need it
should toHex8 be included?  It's not supported on all browsers yet

fromHex : String -> Maybe Color

Would support 3, 4, 6, and 8 digit hex strings (with or without the leading '#')
Is this actually needed?  Isn't it a pain to deal with the Maybe?
Would it be best to just have this be fromHex : String -> Color, and have it fallback to returning black if the string is invalid?  I think this would be easier to use for most cases where people want to use hex color values.  What are the downsides?
Should there instead or additionally be fromHexInt : Int -> Color that would be used with fromHexInt 0xaacc00 ?  I guess there's no reliable way to know how many digits the input has, so I guess that's not feasible.

toCssRgba : Color -> String
toCssHsla : Color -> String

Are these appropriate to include here vs being left to another package?

Basic colors
red, orange, yellow, ...

All the colors from the old elm-lang/core#Color module.
I think the idea behind that was good: it gives people easy access to simple colors, and also gives nice versions of those colors (that is, it's not the ugly #ff0000 for red, etc).

grayscale : Float -> Color
greyscale : Float -> Color

Is this needed?  Has it been particularly useful to anyone?

For later discussion (for a future version)
The following are things that probably make sense to include, but I think are less urgent than everything above and can be postponed for now:

Color manipulation: darken/lighten/saturate/etc
Color accessibility: calculate contrast, or produce a contrasting color
Conversion to other color spaces or data formats: are there more spaces and formats that should be included vs being left to other packages?

After re-considering every pro and cons, I'm in favor of an opaque Color type, but with additional record based types that should be used for public API. This way, the function name can be shorter while still being explicit because of the type.

Like:
type Color = ... -- opaque
type alias StandardRgb = { red : Float, green : Float, blue : Float, alpha : Float } -- public
type alias StandardRgb255 = { red : Int, green : Int, blue : Int, alpha : Float } -- public

fromRgb: StandardRgb -> Color
fromRgb255: StandardRgb255 -> Color

toRgb : Color -> StandardRgb
toRgb255 : Color -> StandardRgb255

I am strongly in favor of passing records and avoiding fromRgb: Float -> Float -> Float -> Color we don't need partial application. If there is a strong demand for that form, I'm for adding shortcuts like: rgb: Float -> Float -> Float -> Color but the fromXXX and toXXX should manipulate records.

Rgb8 is shorter, but Rgb255 is clearer and explicit.

We need CSS color parser, cf my comment https://github.com/avh4/elm-color/issues/3#issuecomment-418623860 I had to deal with some export from some lib which used rgba(x%...) format I had to parse in elm, I'm sure it would help a lot of folks.

I think all functions should include the alpha channel and be called rgb, hsl except the toHex : Color -> { hex : String, alpha : Float } form which is a nice idea and possible "short forms".

grayscale: Float -> Color is nice, but I never remember if 0 is white or black and what is the range, I end up doing c = setLightness black 0.3 if I need a 30% gray.

Speaking of the 30% gray, I really think elm would be well served by a perceptually linear color space (some guy implemented hslvu in elm :D ), if we have a gradient or whatever colored element, if we change the hue, we want to preserve saturation and contrast/lightness.

Color manipulation and accessibility also need an adapted color space.

For the last two points, I will keep my hsluv package up to date and add support for the Color type as a first step. Then we can discuss if it should be included in the core color package.

To comment on some specific points (hopefully not too nitpicky):

goals: agreed
guarantees:  a 'reference data set' is ok, I can try to create property-based tests with something like NoRedInk/elm-check
api:

I would advocate to drop the 'standard' part, since the sRGB aspect is something you only need to clarify in the doc once. But I don't hold that opinion extremely strongly.
maybe call it setAlpha? This makes it clear that you can also change the opacity for a color that already has an alpha, as opposed to 'adding' an alpha channel. Again, weakly held opinion.
I like the withAlpha function, but I think it's low-cost (create and maintain) to include an alpha variant of each 'from' function. So in my opinion ( fromRgba, fromRgb, fromHsla, fromHsl, fromRgba255, fromRgb255, setAlpha ) could be a very decent api in terms of clearness and ease of use.
I don't think we should take a record as input, as everybody knows the ordering of the colors of RGB, since it's in the name. Same for HSL.
the 'to'-functions: I would align them with the alpha convention in the 'from'-functions. So (only) providing ( toRgba, toRgba255, toHsla ) sounds like a good idea to me.
toHex: I'm luke warm on having to deconstruct for result, especially for one simple reason: I'm not ever going to use that alpha it returns. So yes, it makes the lossiness clear, but it's kind of not a nice user experience. I think we can trust the programmers to check the doc and understand that they convert to hex with full opacity?
fromHex: I don't personally foresee ever needing it. But I'm happy to defer to other people's needs.

greyscale: no need to include this, except as an example in the docs showing how easy it is to create this function with HSL in one line: greyscale x = fromHSL 0 0 x.
basic colors: that's actually a great idea, I forgot about that feature. We could re-use existing work: https://clrs.cc/ (MIT-licensed).

I don't think we should take a record as input, as everybody knows the ordering of the colors of RGB, since it's in the name. Same for HSL.

It's not about order, it's to allow easier "moving around" of colors (for example, decoded from json).
I think we could have both. The fromXXX form taking records (aliased for expliciteness of the "standard") and the xxx form taking multiple arguments.

Whatever decisions are made about the actual semantics and implementation, I think the key is to make the base Color package as simple and maintainable as possible. Allow other community packages to support other color spaces/formats and expose additional functionality.

Great, I agree with the comments about using records / having both fromXxxx [record] and xxxx [multiple params],  as well as with just calling functions "rgb" and noting in the docs the subtlety about sRGB.  (After doing research, I had originally thought color profiles would be more prominent, but I haven't yet seen any real uses of them in web dev.)
I've updated the proposal based on those comments.

Allow other community packages to support other color spaces/formats and expose additional functionality.

@danielnarey What I'd like this package to help avoid is having many packages pop up that have certain functions that are basically the same -- for example, converting to/from hex strings is something that several 0.18 packages implemented (and all in slightly different ways).  (Another example is color manipulation--certainly a standard package doesn't need to include all possibly manipulations, but there's probably a subset that many end-users will need that probably should become standard.)  I agree we want to make something that will support other packages to implement more nuanced or advanced functionality, but also I think we should try to discover the natural break between commonly-needed and needed-in-specific-scenarios, and try to reduce the number of packages that most users need to depend on, if possible.
I'd be interested in starting to collect a list of the types of functionality that we'd expect to be the responsibility of other community packages.  Do you have more to add to this list?

color manipulation:  (hopefully some core, common manipulations can be eventually put into the standard color package, but other packages might implement more advanced manipulation)
color conversion: (common ones would be in the standard package (like hsl, hex, discussed above), but more niche conversions could be in other packages)
specific palettes
gradients / palette generation

On September 5, 2018 5:30:07 PM GMT+02:00, Aaron VonderHaar<EMAIL_ADDRESS>wrote:

Great, I agree with the comments about using records / having both
fromXxxx [record] and xxxx [multiple params],  as well as with just
calling functions "rgb" and noting in the docs the subtlety about sRGB.
(After doing research, I had originally thought color profiles would be
more prominent, but I haven't yet seen any real uses of them in web
dev.)
I've updated the proposal based on those comments.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/avh4/elm-color/issues/4#issuecomment-418774257

I think we are getting there. I would still declare alias type for records.
I also agree about avoiding multiple implementations of the same thing, we should provide a nice reference tool for color manipulations, with tests and all. We don't want package A to provide a darken function using float in the 0-1 range and B, using a percentage in the 0-100 range...
Elm now strip unused code, we won't bloat apps if we provide a full featured package.
Nicolas Goy

@kuon can you say a bit more about the record type aliases?
type alias StandardRgb = { red : Float, green : Float, blue : Float, alpha : Float } -- public
fromRgb: StandardRgb -> Color
...

For me personally, I find the extra indirection confusing what APIs excessively use type aliases (it adds another name that I have to learn and remember)...  Do you tend to prefer more aliases in general, or is there something specific to colors that makes these particularly useful?  I'm guessing it's for cases where you want to store these records in another data structure?  I was thinking if there's a way we could encourage most users to story Color values most of the time and only convert to records at the boundaries of their application, then maybe the record aliases wouldn't be needed?

@avh4 As a general rule, when designing an API, I avoid type alias as I use records mostly for options, a bit like https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/Element-Input
Now for the color package, I thought of alias for a few reasons:
That extra level of indirection is something I want, because I want the API use to wonder "what is StandardRgb" and read the type documentation where we mention it's 0->1 range in sRGB space. I think it is clearer to expose the API user to the alias once, read about normalized values and sRGB and then have a consistent experience across the API using that type.
I think it is good to expose a public type other library or user code can use. Using that type in another library implies the sRGB and normalization of value and makes everything consistent. The user will be familiar with how the components are represented.
Knowing that those alias will be "public elm knowledge", I think it will help make code clearer when components needs to be stored. We may imagine an image manipulation program where the developer wants direct pixel data, with Array StandardRgb, the person reading the code will be in familiar and documented water.
As a note, we can drop the Standard and use RgbComponents and document it to be in sRGB.

Adding the points that @avh4 made, I guess what I don't like about the type alias so much is that

it's more, rather than less, the benefit is not so obvious to me
as a newcomer, it could give me the impression that I should maybe sometimes use one, sometimes use the other? Will I be keeping, using and passing values of that type around? But I don't, I only ever care about the input to create a core Color value. So it will probably never even show up in my own type signatures.

I get the point about Array StandardRgb, but you will have people using intermediate formats anyway, so that for example people will inevitably use stuff like Array (Float, Float, Float), Matrix Float, and whatever other permutations, with and without alpha, List, Dict instead of Array, Int instead of Float etc.
I would advocate that our goal should be to have the same pleasant clarity and simplicity that you can find in the rest of the elm ecosystem. Ideally people have this impression that using color in a typesafe way is no big deal and feels very natural. I don't want the api user to wonder.

@2mol well, maybe I am being optimistic about the reuse of the component type. I guess you might be right about the "everybody is going to use a custom type anyway, because of requirements" part.
My main point was about documentation, because they are not just record containing floats, they are records containing floats clamped in the 0->1 range, and the float type does not enforce that. The type alias is a way to document that, but well, it will not add any type safety.
I like them in this case because I have the feeling it will tidy the API and the documentation, but I don't have a strong opinion about it. Especially if we do all functions in fromRgb and fromRgba variant, as this will double the number of type alias and might get out of hands.

I think the summary that @avh4 keeps updating in the top post is already pretty good.

I think the summary that @avh4 keeps updating in the top post is already pretty good.

Yes it is, mine was not a replacement, it was more a way to have an overview. It helps view the size of the API, at least for me.

Im really glad to see this package come back. The api looks good too. I suspect theres nothing I can do to help, but if there is I would love to be a part of this package.

Okay, it sounds like the core conversion functions seem stable enough to start working on.  I've set up the project and CI, and will push a work in progress branch for the basic conversion shortly.
Given there's some debate about the record aliases for the {red, green, blue}, etc records, I think we can put off adding those immediately (they can easily be added later if it becomes clear they're valuable).

I agree, let's start, a lot of people need a color type.
Do you want me to prepare my color parser for review and inclusion in the project?
On September 7, 2018 6:51:41 AM GMT+02:00, Aaron VonderHaar<EMAIL_ADDRESS>wrote:

Okay, it sounds like the core conversion functions seem stable enough
to start working on.  I've set up the project and CI, and will push a
work in progress branch for the basic conversion shortly.
Given there's some debate about the record aliases for the {red, green,
blue}, etc records, I think we can put off adding those immediately
(they can easily be added later if it becomes clear they're valuable).
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/avh4/elm-color/issues/4#issuecomment-419322092

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Do you want me to prepare my color parser for review and inclusion in the project?

@kuon after chatting with the elm-css author, I'm not sure I understand in what situations parsing CSS-like color strings will be useful.  I'm thinking of leaving that out of 1.0.0, and trying to collect some info about who would use it and in what scenarios.  (Can you open an issue if you have some off the top of your head?)

Okay, most of this has been implemented in #9, so please review the code there.
I split remaining questions in separate issues: #11, #12, #13.

Here is my best argument for not having a complex type as input to a function needing a color. Let's say your function works with Rgb255 values. Instead of making this explicit by having the input type
{ red : Int, blue : Int, green : Int } you make it accept Color thereby not giving any indication about the preferred color space. The user will then have to guess (or read the source code, or maybe you document it) which Color to create to avoid multiple conversions.
I don't see any downside to accepting an explicit record. If the user wants to convert, they call the appropriate conversion function before calling the function.
An analogy would be to not accept List a but instead some custom type that has both List a and Array a.


⚠ Grafana has degraded performance

In 36030b4, Grafana (https://grafana.hydeos.fr) experienced degraded performance:

HTTP code: 200
Response time: 2030 ms

Resolved: Grafana performance has improved in 5611077 after 42 minutes.


Readme updates

Added a section on instantiated objects vs object literals.  Added a section on current limitations.

Merged manually.


RFC: let path resolution in macro expression be lexical

In usual expression, path (Type::Const) resolution is lexical (i.e. only depending on location where it is wrote). However, in macro expression, path resolution rule is complicated and unpredictable.
For example, a macro defined in namespace resolves path from its receiver. This rule is unique, but it is not useful in fact.
module Foo
  A = :Foo

  macro mac
    {% p A %}
  end
end

class Bar
  A = :Bar

  include Foo
end

Foo.mac # it shows `:Foo` here
Bar.mac # and shows `:Bar` here (?)

Besides, path in macro hook is resolved from a type which is the reason of invoking this hook.
I think, there are no reason why they are so on. It is unreasonable really. Thus, it is better that path resolutions in any macro expressions unify to resolving as lexical. At least it is the same rule of path resolution in usual expression, so we can accept it easily.
One of benefits of this change is that it makes macros more robust. In other words this prevents either include and inheritance breaks a macro. For instance, when a macro refers constant and including type redefines the same name constant, then the macro will be broken currently.
Remaining problem is Path#resolve (and similar methods) resolution. Resolution rule in macro expression is diverted to Path#resolve. But. if this RFC is accepted, this behavior seems bad obviously. It should be resolved from wrote location.
class Foo
  A = :Foo

  macro mac(path)
    {% p path.resolve %}
  end
end

A = :global
Foo.mac(A) # currently it shows `:Foo`, but `:global` is expected.

However, in some cases (e.g. DSL), resolving path from macro location is preferred. For this case, we should add overload Path#resolve(scope : TypeNode). It is more explicit than now.

Yeah, I think type resolution like it is in methods makes the most sense because, as you say, it can't be broken by inheritance.
Then Path.resolve should resolve the type depending on where the constant is defined. But that's not possible right now because constants don't store the location where they are defined. I think this is the same problem as JSON::Serialize where the converter doesn't work if it's relative to the place where it's declared.


Additional slimPatterns for base config

During a recent deployment, it was found that the lambda deployment package uploaded to S3 had an unzipped size in excess of 95MB, which was rejected by AWS as too large.  The solution is to slim the numpy.libs and rasterio.libs directories and associated libraries.  The resulting zip file uploaded to the serverless deployment bucket was under 2MB (zipped) after this change.

Seems like a reasonable change. I'll update the test fixtures when I have an opportunity, to get the tests passing, and merge this once that is done.

So, it turns out we don't need these changes anymore as we have removed the offending lambdas from the default set deployed with cirrus. That said, we will need to keep these additional filter patterns in mind if we ever decide to distribute them in a cirrus plugin.


bash-commons v0.0.1

This PR creates the first version of the bash-commons repo.
It includes helpers for:

arrays
assert
aws
files
logging
OS
strings

I’ve also included the ability to install these helpers via the Gruntwork Installer and automated tests. There are plenty more helpers and tests that we’ll migrate here over time, but this should be a good starting point.
This is a large PR, so it might be easier to browse the v0.0.1 branch directly.

Thx for the review! All feedback handled. Merging now.


Error ECONNREFUSED

Error: connect ECONNREFUSED <IP_ADDRESS>:4370
at Object._errnoException (util.js:1041:11)
at _exceptionWithHostPort (util.js:1064:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1153:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '<IP_ADDRESS>',
port: 4370
Keep getting this error

#11 Use the changed port and http.