Markup to describe when APIs were introduced/changed

It would really help if the API documentation had some kind of consistent markup that described at what node version and API was introduced and or changed in a backwards incompatible way.
For example io.js newSession docs doesn't at all mention that the callback argument is new since 0.10.
Would this be a good place to report this?
The thing that is needed IMO is:

agreement that this is a problem and that inline text in the API docs is a solution
a markup template for what these notes should look like
... people can PR into the API docs on an ongoing basis using the standard markup

agreement that this is a problem and that inline text in the API docs is a solution

IIRC, we reached agreement that noting introduction (and, when applicable, deprecation) versions is the desired course of action at Node summit last week.

a markup template for what these notes should look like

As a strawman:
* Introduced: vX.Y.Z
* Deprecated: v.X.Y.Z

We should also look into building an mdast plugin that can extract this info, linkify it to the appropriate section of the the CHANGELOG, and render it in a nicer form.

As a side note, I’d love to help in any way possible regarding implementing mdast. As the author, I’m sure I can answer a lot of questions and implement feature requests fast!

In addition to the Introduced and Deprecated tags, it would also be good to have an Unstable tag to mark things that have been merged but are not yet available in stable. Similar to rust docs.

Closing as this repository is dormant and likely to be archived soon. If this is still an issue, feel free to open it as an issue on the main node repository.


Use a single crate/implementation for handling hex-encoding/decoding

We currently have a mixture of hand-rolled encoders and usage of the hex crate.
We should check the performance of hex-conservative and use it exclusively throughout  our codebase if it's performant enough, or if not, we should just avoid using any third-party crates for this and extend our own hand-rolled implementation to cover all our needs.
Ensure that when using this to display a byte array we make use of appropriate non-allocating functionality provided by hex-conservative crate.
Relevant code paths in this repo:

astria-telemetry: https://github.com/astriaorg/astria/blob/4478cb644990e608a11248d53ca3bae4aad009f1/crates/astria-telemetry/src/display.rs#L59-L79
astria-sequencer (will be removed with #1525): https://github.com/astriaorg/astria/blob/e94567741f18ff3eef6d12660b46c361bd1ffb48/crates/astria-sequencer/src/utils.rs#L16-L25

┆Issue Number: ENG-841

This issue is stale because it has been open 45 days with no activity. Remove stale label or this issue
be closed in 7 days.


Re-Analyze Data with Homicide as Rate

As discussed, this PR re-runs the spatial analysis with the additional consideration of homicide as rate. (It is operationalized as number of homicides per 1000 residents)

awesome, thanks for doing this @bransonf!


cocomac: Watch contact[\W]{0,6}whatsapp[\W_]{0,6}\d

cocomac requests the watch of the watch_keyword contact[\W]{0,6}whatsapp[\W\_]{0,6}\d. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

contact[\W]{0,6}whatsapp[\W\_]{0,6}\d has been seen in 17 true positives, 0 false positives, and 0 NAAs.

Rejected by Makyen in Charcoal HQ. Reason: 'Not approving requested in CHQ, with the expectation that there would be an update.'


Mouse wheel scrolling is backwards

Microsoft PowerToys version
0.57.0
Running as admin

[ ] Yes

Area(s) with issue?
System tray interaction
Steps to reproduce
Scrolling direction of the mouse wheel. Every where else in the system scroll wheel behavior is consistent (e.g. pull on the wheel scrolls up) In fact, when Settings is front most, PowerTools (in the background) scrolls correctly! When I bring it forward, it reverses scroll direction
✔ Expected Behavior
Scroll wheel usage is consistent with systems scrolling
❌ Actual Behavior
It's the opposite
Other Software
Windows 10 Pro 21H2
Intel NUC
Razor Naga mouse (using Razor drivers)

The settings app has different issues on different mouse hardware due to the use of XAML Islands. We hope that WinUI3 will fix this in the future.

hi @scottjenson, settings is now a native app, does this still happen?  /needinfo

I'm happy to confirm this, I'm just travelling at the moment and won't be
able to test this for about a month.
On Wed, Jul 20, 2022 at 8:38 PM Clint Rutkas @.***>
wrote:

hi @scottjenson https://github.com/scottjenson, settings is now a
native app, does this still happen? /needinfo
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/17362#issuecomment-1191029533,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIBXOX32XZZMBRZDEVKWM3VVDH4TANCNFSM5SC6FW5A
.
You are receiving this because you were mentioned.Message ID:
@.***>

/needinfo
does this still happen?

Yes, very easy to reproduce on Win11. I have a logitech mouse and I have the scroll wheel setup to mimic 'touch screen style' where pulling toward me on the wheel scrolls down. This works in every app, no problem. However, if I just open PowerToys from the system tray (to see the shortcuts), but no nothing, just go back to my browser window and scroll (while PowerToys window is open), the scroll direction is reversed. If I close the PowerToys window, scrolling is immediately returned to normal.
Is PowerToys messing with input events? Is there possibly a setting that I should turn off?

I have a similar problem! Whenever I start up my computer after shutting down/sleeping, etc, all windows will move content up when I drag down (with two fingers). The only way I can reset it to my default (move content down when drag down) is if I open up the Synaptics Pointing Device window. I don't need to change any settings, just open the window! Also, before I open the window, the Animated Taskbar Icon is not showing (either on the taskbar or overflow menu), but when I open the Synaptics window, it pops up. My settings in Synaptics have 'Show Animated Icon' checked.
This problem only started after I downloaded PowerToys. Disabling the mouse utilities and Mouse w/o borders does not rectify the problem.


Add sportx-strategy

Fixes # .
Changes proposed in this pull request:

@mrwillis If you just need to call a specific function of a smart contract you dont need to create your own strategy you can use the strategy "contract-all" which allow you to do a custom call see: https://github.com/snapshot-labs/snapshot.js/tree/master/src/strategies/contract-call see example https://hub.snapshot.page/api/spaces/nice

Ah got it thanks. Will try that.

Closing this PR for now, feel free to open it again if you still want go forward with it.


Undefined offset: 0

I am trying to get Montly reports but I am not able to get them. This is the code that I have by the moment:
<?php

require_once('itunesconnectapi/class/iTunesSalesApi.php');

$reporter = new iTunesSalesApi("user","password","idVendor");

$reporter = new iTunesSalesApi();
$reporter->setLogin("user")
            ->setPassword("password")
            ->setVendor("idVendor")
            ->setFolder("C:\xampp\htdocs\stats")
            ->setUseCache(true)
            ->setReportModeAll();

try{
    if($data = $reporter->getSalesMonthlyReport()) {
        print_r(json_encode($data));
    }
    else{
        echo "Api  Errors : ".$reporter->getErrorsAsString();
    }
}catch (Exception $e){
    echo $e->getMessage();
}

but this error is shown on the screen:

Notice: Undefined offset: 0 in C:\xampp\htdocs\stats\itunesconnectapi\class\iTunesSalesApi.php on line 604
Unknown error has ocured (http code 0 )

I have this error for any information I try to get from my iTunnes Connect. I am using XAMPP as local server so I do not know if it can be related with the issue.
What should I do to solve this problem?
Thanks in advance!

Hi FranRomero,
Thank you for your feedback !
First observation : you don't need to instantiate your object twice, my example is maybe a bit confusing : you can remove the first $reporter = new iTunesSalesApi("user","password","idVendor"); as you create the object again on the next line.
Regarding your specific error, it most likely would be a cUrl error. The api uses curl to call iTunes servers, the error code 0, from the message "Unknow error has occured (http code 0)" usulally indicates that the request could not have been made.
Make sure you have curl enabled on your xampp configuration, here is a link that might help : http://stackoverflow.com/questions/3020049/how-to-enable-curl-in-xampp
Let me know if all is ok and good luck !

Hi Finnb8r,
Thank you for your quick answer!
I have checked that CURL is enabled on XAMPP and I removed the first object contructor as you suggested but the error persists. I am not familiar with CURL so I do not know if I have to modify any additional file.
Thanks again for your suggestions!

Re,
I have just commited a small change to the file iTunesSalesApi.php
If you can checkout the lastest version, the error should now be a bit more specific.
If the error is related to SSL, you can disable SSL checks by calling (after you have updated to latest version):
$reporter->disableCurlSSL = true; just after $reporter = new iTunesSalesApi();
Keep me posted

Hi,
I have added the line that you suggested (after downloading the new version) and now a new error have appeared:

Unknown error has ocured (http code 404 )

The error that I had before has dissapeared, though.
Thanks for your quick replies!

Great, there's progress ;)
Last little thing and we should get the specific error : I have just pushed another minor commit that changes the file iTunesSalesApi.php.
If you checkout the lastest version, there should be a specific error message along with the error code.
Sorry for any inconvenience and this step by step debugging...

Hi!
Thanks again for your quick answer!
Now, with your last commit the error its much more intuitive:

Unknown error has ocured (http code 404, content : There were no sales for the date specified. )

so I notice that I had not stats for last month because I published the application on February so I understand why this error happens right now.
According to the fail that I had before, I have changed my code to get weekly stats but a new error happened:

Warning: file_put_contents(\C:\Users\Fran\AppData\Local\Temp\S_S_W_87386320_20170219.txt): failed to open stream: Invalid argument in C:\xampp\htdocs\stats\itunesconnectapi\class\iTunesSalesApi.php on line 663
Warning: fopen(\C:\Users\Fran\AppData\Local\Temp\S_S_W_87386320_20170219.txt): failed to open stream: Invalid argument in C:\xampp\htdocs\stats\itunesconnectapi\class\iTunesSalesApi.php on line 696
Warning: feof() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\stats\itunesconnectapi\class\iTunesSalesApi.php on line 702
Warning: fgets() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\stats\itunesconnectapi\class\iTunesSalesApi.php on line 705
Warning: feof() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\stats\itunesconnectapi\class\iTunesSalesApi.php on line 702
Warning: fgets() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\stats\itunesconnectapi\class\iTunesSalesApi.php on line 705

and these two last lines are repeteaded around 1000+ times.
I thought that these errors were related about cache but I have deleted the lines refered to cache and the error persists.
This is the code that I have now:
<?php

require_once('itunesconnectapi/class/iTunesSalesApi.php');

$reporter = new iTunesSalesApi("user","password","idVendor");

$reporter = new iTunesSalesApi();
$reporter->setLogin("user")
            ->setPassword("password")
            ->setVendor("idVendor")
            ->setFolder("C:\xampp\htdocs\stats")
            ->setUseCache(true)
            ->setReportModeAll();

try{
    if($data = $reporter->getSalesWeeklyReport()) {
        print_r(json_encode($data));
    }
    else{
        echo "Api  Errors : ".$reporter->getErrorsAsString();
    }
}catch (Exception $e){
    echo $e->getMessage();
}

Thanks again for you help!

Okay, I have done another commit...
The class uses the function gzdecode but this function is not always available.; I have changed it to gzinflate which should be better.
I have also added a check on file opening to prevent 1000+ lines of errors, sorry about that.
Everything should work now, sorry again for the inconvenience but thanks for being a true tester !

Now there are just two errors about opening a file (one is the same as before). Here I add both errors:

Warning: file_put_contents(\C:\Users\Fran\AppData\Local\Temp\S_S_W_87386320_20170219.txt): failed to open stream: Invalid argument in C:\xampp\htdocs\stats\itunesconnectapi\class\iTunesSalesApi.php on line 663
Unable to open file \C:\Users\Fran\AppData\Local\Temp\S_S_W_87386320_20170219.txt
Warning: unlink(\C:\Users\Fran\AppData\Local\Temp\S_S_W_87386320_20170219.txt): Invalid argument in C:\xampp\htdocs\stats\itunesconnectapi\class\iTunesSalesApi.php on line 666

Thanks again!

Ok, the error seems to be specific to the local environment. When looking at the file path, it starts with a "" which should not be there. For example on our linux servers, the tmp path is mostly "\tmp" but on your local machine it's "C:\Users....".
I have updated the path to try with and without the "" at the beginning of the path.
Everything should work now (once you checkout the latest version) !

Now it is retrieving me the JSON with the information. Thank you very much!
Just a note:  Some values of the JSON are not enconding well when they have accents. I think you should use utf8_encode or utf8_decode functions depending of the codification of your database.
As an example:
Energía is retrieved as Energ\u00eda
Thank you again for your quickly and patient help :)

Great news !
I'll actually bypass the whole tmp file on a next commit to avoid any errors that should not be a problem.
Thanks for the UTF-8 suggestion, I will make sure to double check that.
Thank you again for your feedback and all my apologies for the issues you encountered.
Good luck and have fun :)


[Table] reorder rows

Summary
Sometimes the particular order of rows in a table is important (eg for certain schemas or for priority of work), this contribution intends to allow users to reorder rows in the table to represent their desired ordering.
Additional context
From
Internal Watson-IoT/pal-tracking#160

An icon is added to the toolbar which looks like the column picker on its side to represent picking rows. Upon selection, the table enters a special reordering state with grab handles rendered on the left most part of the row, with a save/cancel button pairing pushing the tools in the toolbar left until the state is saved or cancelled.

One potential blocker here is that the react-dnd (drag and drop) hook requires a ref to the root element. Carbon doesn't forward a ref from the TableRow. A couple options:

Submit an enhancement to Carbon to use fowardRef in the TableRow, wait for that to be published, then implement this feature
Reimplement the TableRow by copy/pasting the source from Carbon, submit the forwardRef enhancement, implement the forwardRef in our copy/paste, develop this feature, and then refactor to remove the copy/paste version of TableRow once the fix is published.f

If this is not a top priority item, I'd prefer us to do option 1 and wait to implement this after we've got the fix published in Carbon. Option 2 is a lot of overhead that we should only take on if it's imperative we develop this asap.

List does not use the Table under the hood, so there isn't a dependency here. We can deliver this independent of the List reordering of rows in #1344

@tay1orjones Have you given any thought to the technical implementation once the dnd is resolved.  ie, What happens when drage/drop.  Do I get a callback with a reorder request and something would then need to reorder the items and then send those items back to the table?  Does the table just manage the state of the reorder, but forwards the action off as FYI (ie, like column resizing).

@tay1orjones Have you given any thought to the technical implementation once the dnd is resolved. ie, What happens when drage/drop. Do I get a callback with a reorder request and something would then need to reorder the items and then send those items back to the table? Does the table just manage the state of the reorder, but forwards the action off as FYI
(ie, like column resizing).

This makes me curious. Is this a pure UI thing and the the row ordering will become an explicit metadata property separated from the actual data? If so, how is it combined with sorting and pagination? The reason for adding reordering functionality mentions certain schemas, how does schemas fit into this?
My two cents on the state management since I noticed that the column resize was mentioned: Having the non stateful table managing the state of the column widths for the column resize was probably not the best approach because it opens up for a lot of additional complexity when the application still needs to be able to set some specific column widths after init. So, learning from that, if we expect that the application at some point will load some pre-defined row order the row order state should probably not be managed in the normal table (but possibly in the stateful table).

@bjornalm That's a good point about sorting.   Does it make sense that you can sort AND reorder, and if you did, what is the expectation here... is an application supposed to sort and remember the rearranged rows that are no longer in sort order?  Granted, if the act of reordering is meant to be a data editing feature, then, I can see sorting and reordering both working together.  ie, data is sorted by priority, you drag a row and drop it, and the drop handler re-calculates a new priority based on the drop location, updates the data, and the table is in sort order.  But, this is complicated, and not sure it is the intention of re-ordering.

Yeah these are great questions - I'm not sure on the answer. There's also the question of if the table "freezes" and isn't intractable while in "dnd mode"
We're just beginning to look at this and probably need to have a roundtable for both for this and also the smaller related issue of reordering list rows #1344
@amymillett @lukefirth @dianatran18 a lot of this is UX related and would make sense to be defined from a design/UX perspective. Narrowing down the intent will help define a clearer path of implementation. I also would like to hear from the product teams requesting this feature and what they're expecting in regards to the above items. Sorting, filtering, pagination - how all of these intend to work with row reordering.

@scottdickerson - Monitor was tagged for this. Do you know we would need this as opposed to List card reorder? I am thinking about Hierarchy theme work.

No longer valid. If someone still has a use case for this please reach out to design and we can reopen.


add expandall feature & auto get selected text or current word in act…

…ived docview to search

@googlebot I signed it!


Some tv4 episodes not working

Checklist

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

Verbose log

youtube-dl -x https://www.tv4play.se/program/nyhetsmorgon/12534705 -v          1 ↵
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-x', u'https://www.tv4play.se/program/nyhetsmorgon/12534705', u'-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.03.24
[debug] Python version 2.7.16 (CPython) - Darwin-18.7.0-x86_64-i386-64bit
[debug] exe versions: avconv 12.3, avprobe 12.3, ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Using fake IP <IP_ADDRESS> (SE) as X-Forwarded-For.
[TV4] 12534705: Downloading video info JSON
[TV4] 12534705: Downloading JSON metadata
[TV4] 12534705: Downloading m3u8 information
[TV4] 12534705: Downloading MPD manifest
[TV4] 12534705: Downloading f4m manifest
[TV4] 12534705: Downloading ISM manifest
WARNING: [TV4] 12534705: Failed to parse XML syntax error: line 1, column 0
Traceback (most recent call last):
  File "/Users/hakan/.virtualenvs/foo2/bin/youtube-dl", line 8, in <module>
    sys.exit(main())
  File "/Users/hakan/.virtualenvs/foo2/lib/python2.7/site-packages/youtube_dl/__init__.py", line 474, in main
    _real_main(argv)
  File "/Users/hakan/.virtualenvs/foo2/lib/python2.7/site-packages/youtube_dl/__init__.py", line 464, in _real_main
    retcode = ydl.download(all_urls)
  File "/Users/hakan/.virtualenvs/foo2/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 2019, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/Users/hakan/.virtualenvs/foo2/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/Users/hakan/.virtualenvs/foo2/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/Users/hakan/.virtualenvs/foo2/lib/python2.7/site-packages/youtube_dl/extractor/tv4.py", line 103, in _real_extract
    video_id, ism_id='mss', fatal=False))
  File "/Users/hakan/.virtualenvs/foo2/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 2344, in _extract_ism_formats
    return self._parse_ism_formats(ism_doc, urlh.geturl(), ism_id)
  File "/Users/hakan/.virtualenvs/foo2/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 2353, in _parse_ism_formats
    if ism_doc.get('IsLive') == 'TRUE' or ism_doc.find('Protection') is not None:
AttributeError: 'NoneType' object has no attribute 'get'

Description
This site used to work (even through login wall), now it suddenly doesn't. Seems to be a parsing of JSON/XML problem.

Awesome, thanks @dstftw !


[Feature][UI Next][V1.0.0-Alpha] The column of the resource name on the page of the UDF resource management is too narrow.

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
The column of the resource name on the page of the UDF resource management is too narrow.

Use case
I'd like to extend the column of the resource name.
Related issues
No response
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I'll fix this issue.


Add binary property to WhiskActionMetaData

This PR adds a binary property to a WhiskActionMetaData's exec type for non-sequence exec types. The binary field will be displayed when fetching an action.

PG3 1544 ⏳

Values that should be shown in WhiskActionMetaData:

string exec
-kind, binary, main

attach exec

kind, binary, main

blackbox exec

kind, image, binary, main

PG3 1548 🔵


how to use recovery backup keywords to get the existing wallet in a new device ?

I got it solved. Closing this now.


Feature request: Size custom emoji

Hello, I would like to know if it is possible to change the size of custom emoji only, I need that these are bigger than normal. Thank you

i would target them with css


Allow class-based callback function

Enable the callback function to be a class member. The following is not currently possible, but desirable:
class MyMqttWrapperClass {
   byte server[] = { 10, 1, 1, 1 };
   PubSubClient *mqttclient;
   void mycallback(char* topic, byte* payload, unsigned int length) {
      //do something here
   }
   void init() {
      mqttlclient=new PubSubClient(server, 1883, this->mycallback, ethClient);
   }
}

@knolleary, why was this closed?
It should be pretty easy to implement with the help of #include <functional>.
typedef std::function<void(char*, uint8_t*, unsigned int)> MQTT_CALLBACK_SIGNATURE;

Then we could:
setCallback(std::bind(&MyMqttWrapperClass::mycallback, this));

I know functional is available for the ESP8266, not sure about original Arduinos though.

I closed it because after 2 years of being open it had never proven to be needed and I wasn't confident of the side effects such a change would have.
If a pull request arrived that made this change in a 100% backward compatible way, for all platforms, then I'd certainly consider it.

Hi,
Even if the request is rather old, I find it interesting. I didn't find the way th use PubSubClient inside a class and use a method of that class as the callback.


Adds inputs processing for queries with multiple transactions

Queries for multiple transactions /transaction/details/["txHash1","txHash2"] do not have the same data for vin compared to queries for a single transaction /transaction/details/txHash.
Differences:

Missing legacyAddress, cashAddress, value
Should delete addr, valueSat, doubleSpentTxID

This commit fixes that by applying the same processing of single transactions to the query for multiple transactions.

:tada: This PR is included in version 1.0.0 :tada:
Your semantic-release bot :package::rocket:


Proposal: Support for setting the cursor for a XAML UI Element

Proposal: Support for declaring the cursor for a XAML UI Element
Summary
In WPF, you can easily change the cursor of an element. However, in WinUI you have to subscribe to the OnPointerEntered and OnPointerExited events and change the shown cursor accordingly using WinRT APIs in a UWP CoreWindow or Win32 APIs in a Desktop HWND or use the XAML extensions from Windows Community Toolkit. WinUI should offer a built-in way to change the cursor.
Rationale

Many developers who are familiar with WPF expect a straightforward way to change the cursor of any element. Although devs can use Windows Community Toolkit, I believe that WinUI should offer it built-in. This will also allow C++ devs to change the cursor within XAML markup. It will also be better if we could define custom cursor in XAML without code-behind (Refer this link).
Scope

Capability
Priority

This proposal will allow developers to set the mouse cursor for a UI Element using XAML markup
Must

This proposal will allow developers to set the mouse cursor for a UI Element from code-behind without pointer events
Must

This proposal will allow developers to define and use custom cursors in markup without code-behind
Could

Important Notes
UIElement should have a Cursor property of CoreCursor. It should also work with WinUI Desktop Apps.

This should be integrated into proposal https://github.com/microsoft/microsoft-ui-xaml/issues/506 which mentions in point 4) the addition of a Cursor API.

Lets track it through #506. @Jaiganeshkumaran  please feel free to add information to that proposal if needed. Thanks!


org settings: Fix styling of Allowed Domains modal

You can get here from http://localhost:9991/#organization/organization-permissions and then clicking on [Add or Change] for the top setting (might be [Configure] by the time you read this).

Two things:

The checkbox should be centered and use the same styling as the other checkboxes on the settings pages
There should be a "Close" button in the lower right; see e.g. the change email modal at http://localhost:9991/#settings/your-account (click on the button that has your email). This close button should have the same styling etc as that one.

(you can replace localhost:9991 with either a zulipdev.org domain, or chat.zulip.org).

@zulipbot claim

@zulipbot claim

Link to my PR fixing this issue (https://github.com/zulip/zulip/pull/7827)

@kriti21 I have already submitted a pr for this issue which is only waiting for a final review :sweat_smile: From next time onwards, please check before working on an issue or either of our efforts will be wasted :)

Yep. Thanks @ihsavru

@zulipbot abandon


fix keep-alive headers

http/2 does not allow connection-specific headers - https://httpwg.org/specs/rfc7540.html#n-connection-specific-header-fields
keep-alive header was missing timeout parameter

Sure, but harm is there if we keep sending it anyway (and successfully have been doing so already)?

Just checked the curl source... apparently they automatically remove these headers anyway, so there's no harm, but no use either
https://github.com/curl/curl/blob/8ea5d41fe0167802c74a049e8409a85fb68083be/lib/http2.c#L1757
You might want to fix the Keep-Alive header syntax at any rate

Ok cool, I will fix the keep-alive header next time I push something.


Document which code signing keys will be used for published artifacts.

Looks like artifacts are being signed with this key:
https://keyserver.ubuntu.com/pks/lookup?search=6ead752b3e2b38e8e2236d7ba9321edaa5cb3202&fingerprint=on&op=index
If that is the correct key can you add a section to the readme confirming that is the key that is expected to be used for code signing on the artifacts released from this repo? Thanks. :)
See examples of other libs that provide docs for the code signing key used are here:

https://dist.apache.org/repos/dist/release/logging/KEYS
https://square.github.io/okhttp/security/security/#verifying-artifacts

I have now committed the following file:
https://github.com/wrandelshofer/FastDoubleParser/blob/85a7d65cd25878a9ac243fabb703e56e7d8d7c07/KEYS
hth

Thanks!


how to change model from default efficientnet_lit0 in tflite model maker image_classifier.create()

Hi,
I wanted to know in tflite model maker, if i want to use a custom model and not the default model to train and quantize with custom data, how do i do that? image.classifier.create() seems to be using efficientnet_lite0 as default and i cannot seem to change it to any other model, say mobilenet_v2.
thanks

@suyash-narain ,
We see that the issue template has not been filled, could you please do so as it helps us analyse the issue [tf version, steps followed before you ran into this error or stand alone code to reproduce the issue faced] or if possible share a colab gist with the issue reported.

Also please take a look at this link which provides more information.It helps!


AggregationDictionary (IsADictionary) cast back to dictionary

AggregationDictionary implements the interface IsADictionary<string, IAggregationContainer> and has implicit operators to cast Dictionaries to AggregationDictionary however it is not possible to do it the other way around.
IsADictionary has a BackingDictionary field which is protected, could we have a way of accessing this?

Hey @Romanx, AggregationDictionary implements IDictionary<string, IAggregationContainer> so you can cast it to this to access IDictionary<string, IAggregationContainer> methods that are implemented explicitly on AggregationDictionary.
Is there some reason that you explicitly wanted the BackingDictionary (Dictionary<string, IAggregationContainer>)?

Seems i was trying to cast it to Dictionary<string, IAggregationContainer> which was causing me an error. Consider this closed :)


Add protocol-agnostic request/response content to RequestLog

Motivation:
RequestLog.requestContent() and responseContent() currently return the content
object which is specific to the underlying serialization implementation,
which is ThriftCall and ThriftReply for Thrift.
We refer to ThriftCall and ThriftReply directly in various service/client
implementations to get the following information:

RPC method name
RPC parameter list
RPC return value or exception

Using ThriftCall and ThriftReply for this purpose is not a good idea
because 1) we have tight coupling with Apache Thrift and 2) our code
complexity will increase when we add support for more RPC protocols such
as gRPC.
Modifications:

RequestLog.requestContent() and responseContent() now return
RpcRequest and RpcResponse.
Add RequestLog.rawRequestContent() and rawResponseContent() which
return ThriftCall and ThriftReply
RequestLogBuilder.requestContent(..) and responseContent(..) now
require two arguments.

THttpClientDelegate and THttpService were modified and refactored to
catch this change up.

Use requestContent() and responseContent() instead of raw*() wherever
possible
Miscellaneous

Fix an incorrect log format in RequestLogListenerInvoker
Use ArgumentMatchers instead of Matchers

Result:
Less coupling with Thrift

Codecov Report

Merging #388 into master will increase coverage by 0.06%.

@@             Coverage Diff              @@
##             master     #388      +/-   ##
============================================
+ Coverage     65.28%   65.34%   +0.06%
- Complexity     3111     3118       +7
============================================
  Files           356      356
  Lines         14096    14120      +24
  Branches       1610     1611       +1
============================================
+ Hits           9202     9227      +25
+ Misses         3927     3923       -4
- Partials        967      970       +3

Impacted Files
Coverage Δ
Complexity Δ

...corp/armeria/common/logging/RequestLogBuilder.java
100% <ø> (ø)
1 <ø> (ø)
:x:

...om/linecorp/armeria/common/logging/RequestLog.java
5.55% <ø> (ø)
1 <ø> (ø)
:x:

.../armeria/common/logging/NoopRequestLogBuilder.java
23.8% <ø> (ø)
5 <ø> (ø)
:x:

...eria/common/logging/RequestLogListenerInvoker.java
62.5% <ø> (ø)
2 <ø> (ø)
:x:

...ia/internal/logging/DropwizardMetricCollector.java
72.72% <100%> (+1.61%)
10 <ø> (ø)
:x:

.../armeria/client/tracing/AbstractTracingClient.java
92.85% <100%> (ø)
10 <ø> (ø)
:x:

...ecorp/armeria/server/http/AbstractHttpService.java
54.76% <100%> (ø)
10 <ø> (ø)
:x:

...armeria/server/tracing/AbstractTracingService.java
85.41% <100%> (ø)
11 <ø> (ø)
:x:

.../logging/structured/ApacheThriftStructuredLog.java
51.35% <100%> (ø)
6 <ø> (ø)
:x:

...ver/logging/DropwizardMetricCollectingService.java
84.61% <50%> (ø)
7 <ø> (ø)
:x:

... and 10 more

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 9f72335...42fbea5. Read the comment docs.

Codecov Report

Merging #388 into master will increase coverage by 0.06%.

@@             Coverage Diff              @@
##             master     #388      +/-   ##
============================================
+ Coverage     65.28%   65.34%   +0.06%
- Complexity     3111     3118       +7
============================================
  Files           356      356
  Lines         14096    14120      +24
  Branches       1610     1611       +1
============================================
+ Hits           9202     9227      +25
+ Misses         3927     3923       -4
- Partials        967      970       +3

Impacted Files
Coverage Δ
Complexity Δ

...corp/armeria/common/logging/RequestLogBuilder.java
100% <ø> (ø)
1 <ø> (ø)
:x:

...om/linecorp/armeria/common/logging/RequestLog.java
5.55% <ø> (ø)
1 <ø> (ø)
:x:

.../armeria/common/logging/NoopRequestLogBuilder.java
23.8% <ø> (ø)
5 <ø> (ø)
:x:

...eria/common/logging/RequestLogListenerInvoker.java
62.5% <ø> (ø)
2 <ø> (ø)
:x:

.../armeria/client/tracing/AbstractTracingClient.java
92.85% <100%> (ø)
10 <ø> (ø)
:x:

...armeria/server/tracing/AbstractTracingService.java
85.41% <100%> (ø)
11 <ø> (ø)
:x:

.../logging/structured/ApacheThriftStructuredLog.java
51.35% <100%> (ø)
6 <ø> (ø)
:x:

...ecorp/armeria/server/http/AbstractHttpService.java
54.76% <100%> (ø)
10 <ø> (ø)
:x:

...ia/internal/logging/DropwizardMetricCollector.java
72.72% <100%> (+1.61%)
10 <ø> (ø)
:x:

...ver/logging/DropwizardMetricCollectingService.java
84.61% <50%> (ø)
7 <ø> (ø)
:x:

... and 10 more

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 9f72335...42fbea5. Read the comment docs.

Thanks @trustin


Error: Nock: No match for HTTP request (should be matching)

Hey guys, I'm having trouble with matched requests. I'm seeing Error: Nock: No match for HTTP request GET /1.1/users/lookup.json?user_id=&screen_name=lefnire, yet that exact URL is nocked in my code. It's weird because using .log(console.log) I see the Error: Nock: No matches, then at the end see AssertionError: Mocks not yet satisfied with all the previous no-matches verbatim.
Here's my code (stripped everything not relevant), and here's my error.

This issue gets me every time. This time, it got me because the url ended up with a comma "," as a result of a dynamic url that can take a join array by comma. Simply checking for the length of the array and ommitting when only one element in the array, solves the issue.
Is there a way to throw a comparison error/warning when the URL does not qualify?

Error: Nock: No match for HTTP request. Make sure URL does not end in "," or "/" etc.
Expected: /my/url?s=sts
Received: /my/url?s=sts,

@sam3k could you please create a follow up issue with a test that reproduces the problem? Creating a runkit notebook like https://runkit.com/gr2m/59ff5289617b520016eb98f9 is a big help

@gr2m Sure, that's cool. First time using runkit tbh; hopefully got it right. Here it is: https://runkit.com/sam3k/5a048e1d8658b00011f9e174
Things to note:

It will fail when const stocks = ['goog'] and path: '/baz?s=goog,', (Ends with comma)
but it will pass when const stocks = ['goog', 'gm'] and path: '/baz?s=goog,gm', (Doesn't end with comma)


Silent error after invoice payment when spotify returns 403

Using a Spotify premium account and a playlist from that same account is a requirement of this project, however it is possible for a free account to create an application on the developer dashboard and get the required credentials.
Setting up a jukebox like that can lead to a situation where the jukebox is created, and someone paying for a song there will not get her  request attended due to a spotify 403 error. Internally the browser receives this Failed to get auth response from the extension's API, however the UI don't display any message for the user that paid the invoice, from an user perspective it just freezes.

@fczuardi v0.2.6 is released can you try that version again if the bug if gone?


Adding Controller

Good day,
currently i needed to add the HP VAN SDN and ONOS Controllers to the tool. But i cannot seem to get the install scripts for these controllers.

Hi,
I am actually new in this and I want to use this script, so I have few questions if you could possibly help me with them;
-I have a i5-3210m computer with 8Gb of ram, can I use it to be both the cbench server & client and run the benchmarking in it?
-I installed the controllers and tried to run the ./benchmarking_throughput.sh, but it is still stuck in this phase:

1
NOX controller
01_NOX
GPid is , id is 0
<EMAIL_ADDRESS>password:
Permission denied, please try again.
<EMAIL_ADDRESS>password:
Permission denied, please try again.
<EMAIL_ADDRESS>password:

What should I do please?


Fixed CMakeLists: Added 2 missing packages

The cmake command in the docker container gives an error message, because the 2 packages are missing.
This resolves the error.

Did you build and run the Dockerfile correctly according to the instructions? I tried it again and it works well without any errors in CMake. It seems that the added libraries you mentioned are required by Ceres. Is there any possibility that Ceres found a locally installed version?

The issue occurred when building on a different computer, so I will accept the request.


Possible to avoid recursive symlink?

The cmd directory of this repo contains a recursive symlink back to the parent directory.  Would it be possible to remove that?  I've found several tools either get caught in an infinite loop when searching the directory (for example, python's setuptools tooling), or they emit errors warning of the infinite loop (e.g. grep and find).
(If you're wondering why I'm using python setuptools in a go repo, it's because we're migrating some parts of the product to go for performance so we currently have a hybrid repo.)

Do you import package in etcd or have the whole repo in your project?
We use symlinks for vendoring etcd dependencies, for official releases, and to avoid dependency conflicts. If you import e.g. clientv3 of etcd, you shouldn't need to worry about symlinks.

I'm using glide to manage my vendor directory.  I'm using this in my glide.yaml but it still seems to check out cmd and other directories:
- package: github.com/coreos/etcd
  subpackages:
  - client
  - pkg/transport

Is github.com/coreos/etcd the right import to use or is there a packaged version of jus the client somewhere?

@fasaxc Not sure, you might ask glide team about it.
We have other projects that import etcd package with glide, with no problem.
https://github.com/coreos/etcd-play/blob/master/glide.yaml#L5-L14

I think I'm just going to adjust the repo structure so that the vendor dir is not in the same directory as our python code, that'll sidestep the main issue that I have.

@fasaxc Ok, please feel free to re-open this if you still have issues. Thanks!


readme/mobx-react-soundcloud-boilerplate

Adds a SoundCloud mobx-react boilerplate repository.

@mweststrate feel free to close the PR, when you want to keep your list of tutorials/examples small. It would be ok for me :)
Additionally I am looking forward to find the time to refactor the mobx-react-soundcloud boilerplate project regarding to your tipps in my tutorial! If you find the time as well, feel free to contribute to the boilerplate project to apply your changes like you think it would be best practice :) Otherwise I will do my best to have all best practices in there.

Thanks for the PR, I've added the link to the examples section instead (https://mobxjs.github.io/mobx/faq/examples.html)

Thanks :)


Add fill option to coco utils

There was previously no way use a fill other than black when using gen_coco_sal() or sal-on-coco-dets. I added fill as an optional parameter that is passed through to occlude_image_batch().
For now, it is assumed that a multi-channel fill value matches the number of channels of every image in the provided serialized detections, and similarly an image fill value matches the shape of each image.
click requires options to have explicit types, so for sal-on-coco-dets the fill is limited to 3 channel values.

LGTM, thanks! Feel free to ignore, but would it make sense to update our SerializedDetectionSaliency notebook to use a fill value? This may improve the quality of our saliency results (not 100% sure though).

I'm not opposed but I don't think we should block this PR with that.

Updated the SerializedDetectionSaliency example. Saliency differences are also improved from the implementation changes to gen_coco_sal when only one prediction and label is provided.

@brianhhu if the notebook changes look alright, I would like to get this in so I can make the release.

LGTM- thanks everyone! This is turning out to be a really nice release.


anticipatory-music-transformer

https://crfm.stanford.edu/2023/06/16/anticipatory-music-transformer.html

AI addition.

AI +

Added in 8b0c2bf


Render source HTML instead of URL

Is it possible for phantom render() or another method to generate an image from an HTML snippet as opposed of a URL page?
Working withing a MVC, it would be a pain to generate a route just to render what we need back into an image snapshot.
I wonder if I can just generate the html with the needed img src= and others, and have it withing the render() method?
If this is not possible and I am crazy, maybe you can suggest a different route to approach the problem.

page.open('data:text/html,'+
    '<body>hello</body>', function(status){
        console.log(status);
        page.render('render_html.png');
});

does it work for you?

You can also use page.content = "<body>hello </body>".

Additionally, you can use page.clipRect prior to page.render to achieve a single element "view". CasperJS has made a lovely abstraction of such as casper.captureSelector.
@aria blogged about this concept here: http://ariya.ofilabs.com/2013/04/web-page-clipping-with-phantomjs.html

@Jzarecta Seems like the combination of those things covers your needs, right?

Thanks James, I solved it last night after much poking around. Yet your solution is a lot sleeker using the data:text/html declaration.


clean up comms

add function to free communicators that is spit by SimpleCommSplitter
remove some unnecessary mpi_comm_dup calls. Some of those call are actually bugs

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Trivial change (affects only documentation or cleanup)

Checklist:

[ ] I have tested this change with a run of GEOSgcm (if non-trivial)
[x] I have added one of the required labels (0 diff, 0 diff trivial, 0 diff structural, non 0-diff)
[ ] I have updated the CHANGELOG.md accordingly following the style of Keep a Changelog

Yes. There is a SimpleCommSplitter in MAPL_Cap.  If we keep the FINAL in SimpleCommSplitter, , then we should add FINAL in MAPL_Cap. In the FINAL of MAPL_Cap, it has to call MPI_Finalize , which is not explicit enough for me.

I'm not understanding.   FINAL would only be needed for the type that encapsulates the comm.   The other containing types would not need  a FINAL method.

When is the FINAL of SimpleCommSplitter called? I believe it is called when MAPL_Cap is out of scope or right before it is destroyed. But at that time, MPI_Finalize is already called and the free_sub_comm() is either buggy or meaningless.

Ideally it should go out of scope before MPI_Finalize is called.  After all, MPI_Finalize() does not need it.  But I agree that we don't want a major refactoring just to accomplish this.

@weiyuan-jiang I pushed the "Update branch" button, so please pull if you are developing.

@weiyuan-jiang Also: did you test this on Orion (I guess along with #744 ) ?

Not yet.

@tclune I think it is quite awkward here : https://github.com/GEOS-ESM/MAPL/blob/0ad9d599a972aeb81e2628045ebbd7200780dda4/shared/SimpleCommSplitter.F90#L328-L331  .

I cannot follow the precise rationale for the check, so I think more explanation for your concern is warranted.

I did a run with GEOSgcm and this seems zero-diff.

@weiyuan-jiang Please elaborate on your concerns about the code here:

@tclune I think it is quite awkward here :
https://github.com/GEOS-ESM/MAPL/blob/0ad9d599a972aeb81e2628045ebbd7200780dda4/shared/SimpleCommSplitter.F90#L328-L331
.

@tclune , if  a splitter is copied after slpit() is called, then both splitters can call free_sub_comm(). But there is only one comm to be freed.  It should be the users' responsibility to free only once just like allocated pointer.  So I print a "WARNING" message.


Unknown error occured

Integration discovered my Onkyo TX NR636, but when I click 'Configure' and enter the IP address, an error message appears 'unknown error occurred':
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 227, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 286, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 374, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/hass_onkyo_ng/config_flow.py", line 116, in async_step_user
onkyo_receiver = OnkyoReceiver(receiver=receiver)
File "/config/custom_components/hass_onkyo_ng/onkyo.py", line 36, in init
source_list = self.get_sources()
File "/config/custom_components/hass_onkyo_ng/onkyo.py", line 83, in get_sources
power_state = status[1]
TypeError: 'bool' object is not subscriptable

Oh, this is still in the making and not supposed to work at all yet.


Add option to autostart without having to F9 [FEATURE]

Add option to autostart without having to F9

This mod already autostarts when you host a co-op game from the title screen.


Update layout of Uploads index and show pages

Since it seems like we aren't completely removing visibility into uploads in the application, we should revisit the uploads index and show pages, which are pretty basic right now, and need to fit into the new organization page flow (e.g., organization header, etc.).

Closing this in favor of actionable tickets with completed designs: #745 and #746.


macOS fixes

This is the first step towards broader compatibility. It resolves the issues bootstrapping on macOS with its BSD userland as mentioned in #2
However it does not yet have any testing against "full" BSD environments such as FreeBSD, OpenBSD, NetBSD, or helloSystem. (Thats to come in another PR, so this doesn't solve #2... yet)

So I've released 0.3.1 with macOS support.
Thanks again for the contribution, I wouldn't have done it without you!
Let me know if you encounter additional issues.


增加同步重试能力

增加同步重试能力（默认重试5次、间隔0ms）
增加@SyncEasyRetryRouting，支持同步重试次数以及重试间隔可配置化
@EasyRetryable增加重试种类，默认为异步保持不变，可选择同步方式

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.zhangchi20 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


[1.11.2] Logistical Sorter item filtering issue

Issue description:
Using the logistical sorter to sort the drops from a mob farm and I've run into an issue when trying to send items like bows ect which are damaged to a different location it will only filter the exact bow that was used to create the filter because it's using the metadata from that item.
With a bow filter in place it will send the bow or those with identical metadata to the correct storage but at the same time it also wont send the other bows to the other storage which is currently set to take everything not filtered so the bows will just sit in the original storage.
I found a similar issue from 2014 where a subtype check was added but this doesn't seem to be an option in the logistical sorter anymore.
Steps to reproduce:

Place storage.
Place logistical sorter pulling from the storage.
Place logistical transporters connecting the sorter to two more storage and paint the transporters different colours.
Set the sorters default filter to 1 of the colours then create a filter for bows set to the 2nd colour.
Add some random items and bows with different metadata to the first storage.
The random items will now be in the 2nd storage and any bows with the same metadata as the original will be in the 3rd storage all the remaining bows will still be in the first storage.

Version (make sure you are on the latest version before reporting):
Forge: <IP_ADDRESS>4
Mekanism: 9.3.4
Other relevant version:

Confirmed for latest Mekanism version.
Easier reproduction:

Place a bunch of random bows (different damage) and some junk (bones/arrows or anything other than bows) in a chest
Logistical sorter next to it, with a pipe leading to another chest
Try to filter all bows out

There isn't a way to ignore nbt/damage/whatever.


Fix mention links

Summary
canonical already starts with @, remove the extra @.
computed: {
	canonical(): string {
		return `@${this.username}@${toUnicode(this.host)}`;
	},

Thank you!


Grid spacing 33 GHz

Why is 33 GHz included in the grid spacing attribute? This is not aligned with any standard grid as far as I know.

The list of possible grid spacings was taken from the CFP MSA MIS (http://www.cfp-msa.org/documents.html). See page 82 of the Version 2.6 spec, for CFP NVR4 register 8196. It doesn't really cause any harm to include the 33 GHz possibility, even if nobody is currently implementing it, does it? That value will simply not be listed as something supported.

33 GHz grid spacing is used in legacy 10G submarine systems.  As such, current systems can be required to adhere with the 33 GHz grid.


OCM-2185: remove ROSA non-STS terraform content from provider repo

Remove all non STS code in order to avoid confusion and encourage the STS workflows
Remove the "oc_cluster" resource
Removed all examples used this resource:

create_ccs_cluster
create_rosa_iam_cluster
create_simple_cluster

Also removed relevant subsystem tests and unit tests

/hold

/hold cancel
Discussed with @arendej and decided to keep the "ocm_cluster" for the OSD clusters usage
Just removing the following examples:

examples/create_rosa_cluster/create_rosa_iam_cluster
examples/create_simple_cluster


Translate docs

1.Describe the changes made:

Translated the preface
Translated the Section 1 - Setup Typescript With React.

This PR is related to this open issue:

Basic Is there a Portuguese version already? I would like to do the translation, how to proceed? #362

Hi, @GiselaMD
Sorry for disturbing. May you review my translation for Section 1, please?
Thanks in advance


Readable replicas

It would be really nice to have the number of readable replicas as a row in the tables. Even if 0.

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

ID: 5676aae7-73bc-c084-174b-50ba4fd7be77
Version Independent ID: 0998f821-0f03-a833-b4b3-0d6ebd9468e5
Content: Azure SQL Database vCore-based resource limits - single database
Content Source: articles/sql-database/sql-database-vcore-resource-limits-single-databases.md
Service: sql-database
GitHub Login: @CarlRabeler
Microsoft Alias: carlrab

@SQLGuyChuck We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.


feat: restore field_simp [*]

fixes #5689
to do this we basically copy the missing functionality over from the simp internals

To be honest the implementation of field simp seems a bit unwieldy to me right now, I'd be much happier to see it reimplemented as a macro or something closer to that if possible and reusing more of the original simp internals

I agree with your assessment, but this seems like a reasonable short-term solution and easy enough to swap out once we figure out what to do. Thanks!
bors r+


$containsAny does not work with integer fields

$containsAny criteria does not work with integer fields of a document. As I'm relatively new to LokiJS, please kindly enlighten me if there's another criteria for dealing with integer fields. Didn't find anything in the documentation that mention that it shouldn't be used for integer fields.
Here's an example to illustrate:
    var temp = __lokiconnector.getCollection("temp");
    temp.insert({ id: 1, name: "Sample-1101", level: 18 });
    temp.insert({ id: 2, name: "Sample-1102", level: 22 });
    temp.insert({ id: 3, name: "Sample-1103", level: 18 });
    temp.insert({ id: 4, name: "Sample-1104", level: 15 });
    temp.insert({ id: 5, name: "Sample-1105", level: 31 });
    temp.insert({ id: 6, name: "Sample-1106", level: 27 });
    temp.insert({ id: 7, name: "Sample-1107", level: 33 });

    var suitableLevel = [18, 22];
    var suitableNames = ['Sample-1102', 'Sample-1105'];

    var workingResult = temp.find({
        name: { '$containsAny': suitableNames }
    });

    var buggyResult = temp.find({
        level: { '$containsAny': suitableLevel }
    });

    console.log(JSON.stringify(workingResult)); //Returns 2 items: Sample-1102 and Sample-1105
    console.log(JSON.stringify(buggyResult)); // Returns []. It should return Sample-1101, Sample-1102, Sample-1103 if it's working.

Any ideas?

I think the op you want to use is $in which should be used when the property is not an array but the compare values are.
Our wiki page was a little confusing, so I added more info to $in, $contains, and $containsAny descriptions.
$contains and $containsAny are mainly useful with strings and there multiple modes of use are why the string comparison seemed to work.

When typeof property is :

string: it will do a substring match for your string (indexOf)
array:  it will check for 'value' existence in that array (indexOf)
object: it will check to see if your 'value' is a defined property of that object

So because your property was a 'string' it would just run substring matches on your value array.  If your property had been an array it would return matches where any of its elements were exactly represented within compare values (no substring match).  I won't cover object scenario as I don't feel it is relevant to your issue.
Let me know if that is clear or if you think our updated wiki descriptions could still be clearer there.

Now that makes sense. I have used $in instead and it now works perfectly.
Thanks!


[Hosted RN Storybook] Added addon for pairing device (with qr code).

Issue: If user has hosted react native storybook version, it needs to manually enter code to the phone to connect it to server.
This addon solves the issue by displaying qr code, so user can simply point the phone to it to pair.
What I did
Added new event when new channel is created. This addon listens to it and uses the pairedId code for qr component.
#NOTE: This is WIP, the functionality still needs to be properly documented, we need example project from app side (adding ability to scan qr component).

@Gongreg is this still something you're working on?

@ndelangen, yes. I am working with it internally, trying it out, before moving forward here.

Hey, I still want to do some cleanup. But here is an example project: https://expo.io/@gongreg/rn-storybook-hosted-client-example
Server: https://vast-eyrie-45947.herokuapp.com/ (takes ~30s to load because heroku shuts it down).

@Gongreg What's the next step for this? After 3.3 is merged and released, what's you plan?

you can use now for publishing instead of Heroku, it's much better

@ndelangen is there anything else to do here?

Hey, I've thought about this for quite some time. The more I think about it the more I realise that there is almost no need for this functionality.
This functionality doesn't really bring anything for the developer. He will still use locally running storybook server + app.
If we are talking about user who is just playing around in a storybook, why would he want to open both app and browser? First question is going to be, why do I even need browser? What we should focus on is making onDeviceUI support a lot better. It should have option to display all the addons (that are possible) user wants to use. It should have a proper hierarchy of stories just like there is one in browser. I know that I spent lots of time trying to make it work, but I think it is better to not clutter storybook more with functionality, that is not really going to be used.
I've tried to write a medium post explaining what I did here and I showed it for few people, but they were not really sure why do we need to do this all complex thing.
So instead I am going to close this PR and update the medium blogpost into something more of "Trying to create static React Native Storybook and steps forward" where I will share experience in creating this and look into what we can actually achieve with onDeviceUI instead of this.
Sorry that I kept this open for so long, but I will try to be more useful while working onDeviceUI part.

@Gongreg I imagine a feature that shows a full screen on-device navigator (with hierarchy) when you some gesture or hold the phone a certain way.
I do think the web UI makes sense for documentation purposes also for RN. And i also would ask how to make use of things like addon-knobs for RN if there's no web UI connected to it.
Hoping to see some PR's improving the on-device navigator from you ;)


Unhandled exception happened: 'redis'

safety version: 2.3.5
Python version: 3.11
Operating System: Debian 11

Description
Our GitLab CI uses a 'python' Docker image to run safety checks, and these suddenly started failing with a mysterious "Unhandled exception happened: 'redis'" message.
$ pip3 install safety
...
Successfully installed Click-8.1.3 certifi-2022.12.7 charset-normalizer-3.1.0 dparse-0.6.2 idna-3.4 packaging-21.3 pyparsing-3.0.9 requests-2.28.2 ruamel.yaml-0.17.21 safety-2.3.5 toml-0.10.2 urllib3-1.26.15
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

[notice] A new release of pip available: 22.3.1 -> 23.1.1
[notice] To update, run: pip install --upgrade pip
$ safety check -r server/requirements.txt --full-report
Unhandled exception happened: 'redis'
ERROR: Job failed: exit code 1

What I Did
pip3 install safety
safety check -r server/requirements.txt --full-report

I'm unable to reproduce this issue locally, even when I use the same 'python' docker image.  Instead I get a proper report about a vulnerability in redis (vuln. id 53868).

It seems to be the insecure_full.json file that is not always correct.
On local and on CI, I manage to get both valid and invalid results with enough attempts.

@mgedmin and @Corentin-Br, I'm trying to reproduce this issue; I'll be grateful if you can share an anonymized debug from the Safety execution. You can run it with the debug flag:
safety --debug check

Hello @yeisonvargasf I encounter similar issue today.  The error context:
Unhandled exception happened: 'graphene-django'

And it looks like the JSON vulnerabilities differs sometimes when safety try to retrieve it
The result runs with safety --debug check
2023-05-31 13:28:00,930 safety.cli => Telemetry enabled: True
2023-05-31 13:28:00,931 safety.cli => Running check command
2023-05-31 13:28:01,089 safety.cli => Calling the check function
2023-05-31 13:28:01,100 safety.util => Telemetry body built: {'os_type': 'Darwin', 'os_release': '22.4.0', 'os_description': 'macOS-13.3.1-x86_64-i386-64bit', 'python_version': '3.8.13', 'safety_command': 'check', 'safety_options': {}, 'safety_version': '2.3.5', 'safety_source': 'cli'}
2023-05-31 13:28:01,108 urllib3.connectionpool => Starting new HTTPS connection (1): pyup.io:443
2023-05-31 13:28:01,158 urllib3.connectionpool => https://pyup.io:443 "GET /aws/safety/free/insecure.json?telemetry=%7B%22os_type%22%3A+%22Darwin%22%2C+%22os_release%22%3A+%2222.4.0%22%2C+%22os_description%22%3A+%22macOS-13.3.1-x86_64-i386-64bit%22%2C+%22python_version%22%3A+%223.8.13%22%2C+%22safety_command%22%3A+%22check%22%2C+%22safety_options%22%3A+%7B%7D%2C+%22safety_version%22%3A+%222.3.5%22%2C+%22safety_source%22%3A+%22cli%22%7D HTTP/1.1" 200 117782
2023-05-31 13:28:01,169 safety.util => Telemetry body built: {'os_type': 'Darwin', 'os_release': '22.4.0', 'os_description': 'macOS-13.3.1-x86_64-i386-64bit', 'python_version': '3.8.13', 'safety_command': 'check', 'safety_options': {}, 'safety_version': '2.3.5', 'safety_source': 'cli'}
2023-05-31 13:28:01,182 urllib3.connectionpool => https://pyup.io:443 "GET /aws/safety/free/insecure_full.json?telemetry=%7B%22os_type%22%3A+%22Darwin%22%2C+%22os_release%22%3A+%2222.4.0%22%2C+%22os_description%22%3A+%22macOS-13.3.1-x86_64-i386-64bit%22%2C+%22python_version%22%3A+%223.8.13%22%2C+%22safety_command%22%3A+%22check%22%2C+%22safety_options%22%3A+%7B%7D%2C+%22safety_version%22%3A+%222.3.5%22%2C+%22safety_source%22%3A+%22cli%22%7D HTTP/1.1"<PHONE_NUMBER>
2023-05-31 13:28:01,345 safety.cli => Unexpected Exception happened: 'graphene-django'
Traceback (most recent call last):
  File "/Users/darkborderman/.pyenv/versions/3.8.13/envs/Napoleon-3.8/lib/python3.8/site-packages/safety/cli.py", line 145, in check
    vulns, db_full = safety.check(packages=packages, key=key, db_mirror=db, cached=cache, ignore_vulns=ignore,
  File "/Users/darkborderman/.pyenv/versions/3.8.13/envs/Napoleon-3.8/lib/python3.8/site-packages/safety/util.py", line 614, in new_func
    return f(*args, **kwargs)
  File "/Users/darkborderman/.pyenv/versions/3.8.13/envs/Napoleon-3.8/lib/python3.8/site-packages/safety/safety.py", line 345, in check
    for data in get_vulnerabilities(pkg=name, spec=specifier, db=db_full):
  File "/Users/darkborderman/.pyenv/versions/3.8.13/envs/Napoleon-3.8/lib/python3.8/site-packages/safety/safety.py", line 231, in get_vulnerabilities
    for entry in db[pkg]:
KeyError: 'graphene-django'
Unhandled exception happened: 'graphene-django'
2023-05-31 13:28:01,346 safety.cli => Calling clean up on close function.
2023-05-31 13:28:01,346 safety.safety => Closing requests session.

duplicate of https://github.com/pyupio/safety/issues/490


Added Advanced Windows Exploitation

Learn hack

Is there any other awesome repository that describes windows exploitation ?

i saw this in the list as Windows Exploitation but link is dead. https://github.com/enddo/awesome-windows-exploitation

Thanks for the info.


fix(tx): fix "destructure non-iterable instance" error on CI builds

Fix for "TypeError: Invalid attempt to destructure non-iterable instance" error on CI builds (Travis/Netlify).

+1 for merging this in
No only a CI error but also a problem when trying to locally develop for the library


Periods, and special chars in filename will cause "too many open files" error

The zip in question has files with periods in its name. Conversion fails immediately with the error
[FATAL] open /Volumes/Scratch/Utils/COMIX/Bronze Age (2018).cbz: too many open files

see https://pkg.go.dev/io/fs#WalkDir . and other special characters directory names are not supported.


Consider new behavioral phenotype terms for Ohyama 2015

https://www.nature.com/articles/nature14297 FBrf0228257
The paper characterises and escape response circuit and so has behavioral phenotypes in which this response is disrupted. A quick query of FB-chado shows no phenotype curation for this paper:
SELECT p.uniquename from phenotype p JOIN phenstatement ps on ps.phenotype_id = p.phenotype_id JOIN pub on ps.pub_id = pub.pub_id where pub.uniquename = 'FBrf0228257';

=>
uniquename
(0 rows)

A range of escape behaviors are described in papers referenced from this one:
"Larvae have... an array of distinct escape behaviours available for responding to threats, such as turning, digging, fast crawling and rolling 27,28,31–35 The most vigorous escape sequence consists of two locomotion modes: rolling followed by fast crawling 28,32."
As a follow-up to this ticket, we should probably investigate adding a wider range of larval movement phenotypes.

Just retrohacked this paper and it actually has been phen-curated (by me, though I have no memory of it!). Possibly your query is looking only for CV statements attached to the FBrf? Since this paper looks at behavior phenotypes that result from activating neurons - ie a GAL4 or LexA driver driving TrpA1 - we don't actually attach CV terms in these cases (not sure how much you know about this issue?). So you can see free text statements describing phenotypic consequences of activating the GAL4 under the phenotypic free text section (phenotypic data>detailed description) of the GAL4 (eg http://flybase.org/reports/FBal0254537.html).
We should still try and come up with potential new CV terms for this paper, but wanted to note that CV terms are not currently attached to GAL4s so we'll need to come up with a solution for that first (something that has been discussed previously at FlyBase, hence the introduction of the pheno_anat flag, see below). This will apply to any papers that activate/silence populations of neurons, such as FlyBowl.
At some point since this paper, we introduced the pheno_anat flag to add to these kinds of papers (copied the details of that flag from the curation manual below), so that in future we could come up with a plan to deal with them more effectively. Looks like this paper also records activity of neurons (GCaMP), which is something we don't even capture in free text.
pheno_anat
The publication describes experiments that use genetic manipulations as a tool to activate/inhibit/kill a cell, to try to identify what biological processes that particular cell is normally involved in (i.e. they are not really concerned with the biology of the particular gene/gene product being used to affect the cell, they are just using it as a tool).  These manipulations may either be used to generate a phenotype in an otherwise wild-type background, or they may be used to study the interaction between activating/inihibiting/killing a particular cell and a phenotype caused by mutations in another gene. (Note, that at present we are not capturing this information because the way it ends up being reported is not very helpful to users, so this flag is acting as an easy way for us to identify these papers in the future, once we have implemented changes which solve this issue).

We should still try and come up with potential new CV terms for this paper, but wanted to note that CV terms are not currently attached to GAL4s so we'll need to come up with a solution for that first.

I didn't realise these are not being captured!  These are the phenotypes we are most interested in for VFB so we need to find a way to change this ASAP and come up with a targeted/prioritised retrofit strategy.   We should also discuss whether it is worth capturing anything from GCAMP experiments.  Perhaps some combination of neurophysiology defective + cell type could work here.  Need to work on a use case query and think about whether we have resources before we decide.
I'll be in Cambridge next Wed, perhaps we could discuss then.

Ah, thought you were aware! Yes, would be good to especially have a chat with Gillian about it as she's the most knowledgeable. Needing it for VFB (along with having some dedicated man-hours for it!) will be a good impetus to get it done.

Good that we have free text though.  Definitely worth displaying to our users and looks like it could make retrofitting practical.

Just FYI, I think we decided as of July 2016 that instead of adding free text for activation/inhibition of neurons, we would ONLY add the pheno_anat flag. These papers will still be easily identifiable for a retrofit, but for papers curated since then, there won't be free text describing those types of experiments.

Yep - the pheno_anat flagged list of papers is part of what we pitched I would work on (thin/phen curation) in our VFB curation plans proposal (think Gillian gave you a copy and we discussed it briefly when we met for our training).

Pasting from Slack:

tamsin [3:33 PM]
Hello - looking at Ohyama 2015 paper and potential behavioral phenotypes… Struggling a bit to think about how these might work, since activating certain circuits is provoking “normal” behavior. The phenotype ontology terms are largely based on defects in biological processes. So I am just not quite sure how this would fit into existing phenotype curation. Agree that it’s useful to be able to record it, but it’s quite different to typical phenotype curation (edited to correct typo) (edited)

Aoife [3:35 PM]
Was chatting to Tamsin about this earlier and she brought this up, and I agree. Seems slightly odd or clumsy to attach CV terms (as we’ve been using them) to ‘wild-type’ phenotypes that particular circuits are responsible for.

I think we can still treat them as phenotypes in that they are behaviours induced when they wouldn't normally be.
e.g. behaviour: wing flicking
phenotype induced by some genotype + heat shock: increased wing flicking
We have standard patterns to record this in phenotype ontologies.  Take a look at any of the phenotype terms in FBcv with 'increased' in the name.
With sufficient evidence, we might want to assert in the ontology that a neuron type is "'capable of part of' some 'wing flicking'".  Just as for a gene annotation with a GO term, you need loss of function evidence and strong evidence that the effect is specific to the neuron.  e.g. a combination of very specific targeting + GCAMP evidence that shows activation of the neuron during activation of the behaviour.   (FlyBowl is all activation not loss of function so should be only recorded as phenotype)

Had a quick look and found a few other papers that also looked at larval escape behavior, documenting them below for more information and also so that they can be curated at the same time as Ohyama Nature 2015 (FBrf0228257) (they may also contain useful follow up references). All the papers mention rolling behavior, and a couple also measure speed of crawling - these could potentially be the most reliable/consistent CV terms to use.
Ohyama et al., 2013, PLoS ONE (FBrf0222494) (paper has only been skimmed); "Noxious mechanical and thermal stimuli can evoke sideways rolling, a stereotyped escape response [9]. Two mechanical stimuli, touching and vibration, induce head retraction and head casting [10–12]."
Yoshino et al., 2017, Curr. Biol. (FBrf0236440) (no curation on this yet): "optogenetic activation of C4 da neurons is sufficient to provoke corkscrew-like rolling behavior similar to what is observed when larvae receive noxious stimuli, such as high temperature or harsh mechanical stimulation [10–12]"; they also seem to use 'rolling' and increases in crawling speed as measures, and have a nice movie of rolling behavior in the supplement.
Oswald et al., 2011, Fly (FBrf0217956) (paper has only been skimmed); "We describe here a robust behavioral escape response from larvae to rising temperature." "In addition to the corkscrew roll escape response, we observed another aspect to the behavior preceding the roll where the larva thrashes the mouthparts laterally once to each side (Fig. 1A and Sup. Movie S1). This response invariably precedes the cork- screw roll."

How do we name the phenotype when escape response is activated in the absence of stimulus.
ectopic escape response ?
induced escape response | conditional ts (need to add conditional optogenetic)
'increased escape response' feels wrong as doesn't occur much without stimulus.

[ ] Write referenced textual description of main larval locomotor modes - those of relevance to Ohyama paper are highest priority @aoifelarkin

In thinking about this and reading up some of the papers that were referenced by Ohyama Nature 2015 (FBrf0228257), along with FBrf0222494/FBrf0236440/FBrf0217956 mentioned in my comment above, I've seen some of these escape behaviors (including rolling sometimes mentioned in free text) tagged with some existing CV terms: such as pain response defective, or stress response defective, or behavior defective (for example check out phenotypic class terms and descriptions under http://beta.flybase.org/reports/FBal0281084.html). Presume some retrofitting would be required if a 'rolling' type CV term were to be added (and often free text is only listed under the UAS, not the GAL4).
'pain response defective' (a child term of stress response defective) ; the definition of this in FBcv is: Phenotype that is a defect in response to pain (GO:0048265). 'response to pain' is defined as: 'Any process that results in a change in state or activity of a cell or an organism (in terms of movement, secretion, enzyme production, gene expression, etc.) as a result of a pain stimulus. Pain stimuli cause activation of nociceptors, peripheral receptors for pain, include receptors which are sensitive to painful mechanical stimuli, extreme heat or cold, and chemical stimuli.'
Possibly the escape rolling type behavior might fit under this CV term already (given that it is a change in movement in response to mechanical stimulus). Or if you wanted more detailed locomotor-escape CV terms, you could add the rolling escape behavior as an extra CV term under here?
FYI FBrf0223267 (http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0078704) has a nice movie (movie s4) of an escape roll in response to a parasitoid wasp, as well as a nice figure depicting larval behaviors in response to attack (fig 1).
FBrf0224808 is an uncurated paper which has a lot of data ("We optogenetically activated 1054 identified neuron lines in Drosophila larvae and tracked the behavioral responses from 37,780 animals") in which they identify "29 discrete, statistically distinguishable, observer-unbiased behavioral phenotypes" - these also have nice videos in the supplemental data and might be useful as general larval locomotor categories (the phenotypes include some 'escape' subtypes).
Potential definition for a 'rolling behavior' type CV term: Escape (corkscrew-like) rolling behavior in larvae can occur in threatening situations such as strong noxious stimulation or predator attack (FBrf0200914, FBrf0222494, FBrf0223267, FBrf0224808). A combination of mechanosensory and nociceptive cues increases the likelihood of rolling (FBrf0228257).


DiskStation DS3617xs  - Intel® Xeon® Processor D-1527 (Broadwell)

Hi,
Any ideas if this would run on a DiskStation DS3617xs  which has this CPU: Intel® Xeon® Processor D-1527 (Broadwell)?
Thanks

It should run fine with the amd64 version
(https://github.com/SynoCommunity/spksrc/wiki/Synology-and-SynoCommunity-Package-Architectures)


exp/lighthorizon: Init

PR Checklist
PR Structure

[ ] This PR has reasonably narrow scope (if not, break it down into smaller PRs).
[ ] This PR avoids mixing refactoring changes with feature changes (split into two PRs
otherwise).
[ ] This PR's title starts with name of package that is most changed in the PR, ex.
services/friendbot, or all or doc if the changes are broad or impact many
packages.

Thoroughness

[ ] This PR adds tests for the most critical parts of the new functionality or fixes.
[ ] I've updated any docs (developer docs, .md
files, etc... affected by this change). Take a look in the docs folder for a given service,
like this one.

Release planning

[ ] I've updated the relevant CHANGELOG (here for Horizon) if
needed with deprecations, added features, breaking changes, and DB schema changes.
[ ] I've decided if this PR requires a new major/minor version according to
semver, or if it's mainly a patch change. The PR is targeted at the next
release branch if it's not a patch change.

What
Experiment in exp/lighthorizon, serving requests via just-in-time parsing of checkpoint archives.
To avoid parsing all checkpoints for every request, we build bitmask indexes, telling us which checkpoints different items appear in.
Implemented endpoints:

[x] /operations
[x] /account/{account_id}/operations

Why
For historical queries, this would mean we don't need any database at all, removing a major pain-point for people running horizon.
Known limitations

Only uses checkpoint data for now, which is up to 5 minutes out-of-date.
no /effects, /trades, LP’s without TX meta

TODO

[ ] implement more endpoints

[x] /transactions
[ ] filtering txns/operations by successful
[ ] filtering txns/operations by payments
[ ] /claimable_balances
[ ] /liquidity_pools

[ ] distributed index rebuilding via map/reduce
[ ] rebuild transaction indexes as part of the map/reduce.
[ ] use an index to answer a question based on txmeta to see how we would do that

Was merged into lighthorizon branch by @paulbellamy to continue work on the prototype there.


Attributed title problem

When I change the title from plain to attributed in interface builder, the radio button stops working and I can no longer check it. Any solution for that?

Can you provide a code sample or screenshot? Thanks!

Sorry, I stopped using DLRadioButton due to this issue and no longer have the sample code.
However, as I explained it before: once the title is attributed, there is no user interaction with the radio button possible anylonger. It cannot be checked or unchecked. It just stops working.

Thanks for reporting it. Will try to fix it in next version.


Author rights

Steins Gate is a commercial project - you are not allowed to use any of their resources (like image) by law in projects like this. Your repo can be blocked!
Please show a document which proves you are allowed to or remove all mentions of Steins Gate's characters!

But project is not related with Steins;Gate in any way - image is not from that project - it was drawn by independent author. And all name's coincidence are occasional.
But okay, I'll change the logo.


cmd/node: Move setupGenesis logic into svm.SetupGenesis

Closes #2830. I'm available for iterating based on any feedback you all might have.
Changes
Moves all genesis setup logic from cmd/node into svm.
DevOps Notes

[x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
[x] This PR does not affect public APIs
[x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
[x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)

TODO's, for future PRs:

Hide state.TransactionProcessor from svm.New public API.

bors try

bors merge