Write more TestFX tests

I had to shorten some of the test names on the last commit (cut, copy, paste tests) because I was getting build failures due to Gradle being unable to write the test report. I guess it's due to too long of a path name. This issue may be what's causing it, but I was running it on Gradle 3.5.
 Is this a bug? Or is the deleted space intentional?

I'm also wondering whether StyledTextAreaBehaviorTest should be moved to its own package in the test packages, and move each test suite into its own test class. This would minimize the long path name issue I encountered above and make the code more readable.

Aye, that approach is definitely cleaner.

Hmm... it built fine on mine multiple times, though there were some flaky tests from time to time...
I'll have to look at this again later in the week.

Well that doesn't make any sense. Without the force-display stage code, the tests do not pass on my machine but it does on Travis, despite both of us using the Linux OS...?

I'm guessing this has to do with running the code in headless mode, but I'm not sure how to do that on my end. At the same time, I don't understand why headless mode would work properly whereas head (?) mode wouldn't.

After upgrading to the latest TestFX release, the tests passed on my machine.... very strange indeed.

Ok, looks like everything works, except for Page Down for very strange reasons. I'm not sure why, but at least I can move on to the next tests.

@TomasMikula @twistedsquare since you two use Mac, could one of you test out this PR? I'm going to clean this PR up a bit and then merge it. However, I want to make sure it builds on a Mac, so we don't get numerous issues later about it not building properly on other people's systems.

Actually, hold that thought. There's one more test I was going to write, but I'll have to do that later in the week.

I'm not sure how to properly set up the Travis files to get these to work properly, so I've filed TestFX/TestFX#396

The Linux builds have been failing because when I copied TestFX's Travis files over, they were building on the Trusty distro whereas we were building on the Precise distro. However, I'm not sure why that would make a difference. Both the OSX and Trusty builds fail on the same test in ContextMenuTests.

The Linux builds have been failing because when I copied TestFX's Travis files over, they were building on the Trusty distro whereas we were building on the Precise distro. However, I'm not sure why that would make a difference.

I removed the OSX environment and the two Linus builds passed. After comparing the two, it seems the Linux builds fail when install: true is used. Everything else appears to be the same.

@TomasMikula Can you sign up this project for Appveyor, so we can add CI for Windows as well?

I cleaned up the commit history. Everything is the same except for ContextMenuTests, which now shows the context menu through means other than a simulated user right click. I'm not sure if that will cause the two tests that were otherwise failing to pass in Travis on OSX, but it's a start.
As for the other tests that are failing, they all relate to using home/end, up/down on a multi-line paragraph when no modifiers are down and when only shift is down. Strangely, when shift and shortcut are down, they work correctly.
I need to look at the SelectionPolicy.EXTEND that's sometimes used for OSX environments to insure that my tests aren't failing because I'm testing for behavior that isn't normal on that OS.

I looked at the SelectionPolicy.EXTEND, and it's only used in shift + left mouse presses. I'm not sure why the multi-line navigation tests would fail. As for the context menu tests, not the opposite ones fail. Very strange...
I think for now, I'll add an assumeTrue statement, so that the tests that otherwise fail on OSX only get run on Linux. This would allow me to continue to work on other parts of this project while still insuring most of the tests pass.

Ok. I finally got the multi-line paragraph navigation tests to pass. Now I just need to get these remaining 2 ContextMenu tests to pass (or go back to my idea of skipping them if run on a mac).

Before merging this, I think I should clean up the tests once more and rename some tests to explain what they do (in other words, homeMovesCaretToStartOfArea() instead of home()).


Create security.txt

As recommended in as in https://securitytxt.org/

Also see Advocating security.txt across UK government


Update samples for td operator

Update samples and README under td directory.
This PR intends to make using the samples easier. Even though users have to change result_connection by themselves, they can use queries without changes.

@treasure-data/support-engineer Could someone review it?


feat: add SMPTE timecodes

Related:
This PR closes #809
Description:
This PR adds support to the media-time component for displaying SMPTE timecodes.
Ready?
Yes. I would like to see if we have a better way of getting framerate than specifying it as a prop. This may require some deeper Vidstack/video knowledge from @mihar-22
Anything Else?
N/A
Review Process:
Test enabling SMPTE timecodes on a video.

If we can't find a way to programmatically get the frame rate, it might be preferable to specify it in media-player rather than in media-time.

The validation error from GH Actions seems unrelated and can also be seen on #810

Awesome, thanks for the PR and getting on top of this. So, what we need is more complicated. We an API on the player for interacting with respect to frames.
Very rough example:
interface MediaFrames {
  frame: number; // -1 if unknown
  rate: number; // provided or estimated
  toSMPTE(frame: number): string; //
  fromSMPTE(smpte: string): number; // seconds
  seek(frame: number): void; // negative number seeks backwards
}

// ...

player.frames.seek(10);

Rough reference -> LINK
Additional requirements:

A way to estimate frame rate. The user can provide this as concrete value or we estimate it. Media element and hls.js would most likey use different estimation techniques. Best to search around to see what options are available.
Ability to provide starting timecode so media can seek to it immediately when ready for playback
Displaying time code which you've implemented but it requires adjustment. Add to media context and make frame internally a signal which you can then use to format time. I think useSmpte is a little odd, probably format="smpte".

A way to estimate frame rate. The user can provide this as concrete value or we estimate it. Media element and hls.js would most likey use different estimation techniques. Best to search around to see what options are available.

This is the only solution I've found that (tested) works with HLS and should work with other providers
setInterval(() => {
  const quality = getUnderlyingVideo().getVideoPlaybackQuality();

  const fps = quality.totalVideoFrames - totalFrames;
  totalFrames = quality.totalVideoFrames;
}, 1000);

It's not ideal but I guess it could work for an estimation

Displaying time code which you've implemented but it requires adjustment. Add to media context and make frame internally a signal which you can then use to format time[...]

Just to clarify, what are you referring to with "add to media context"?

The MediaFrames class

The MediaFrames class

Ah! Done, should be committing the first pass soon

Frame-by-frame seeking is working as can be seen on https://vanillo.tv/v/6JXWI4yNkml

Awesome work @thehydrogen!!
Few change requests:

MediaFramesInstance should just be MediaFrames and you can remove the interface. A class is essentially an interface.
I don't see frame estimation code yet, might still be working on it? We can keep it separate and follow up, for now it can be simply defined on the player? Leave it up to you.
Sync the player frames prop with store in media-store-sync.ts.
Drop the setByPlayer and noPlayerWarning in MediaFrames. I see it was modelled after MediaRemoteControl but that's a little different since it can be created outside of the player component. The MediaFrame class is only an internal construct. Pass in the store to MediaFrame constructor if you need it. Do not pass in a player reference as that's over exposing.
Format can be empty string "" or "smpte".
formatTimeSmpte repeats a lot of code in formatTime. Can we just use formatTime and then append frames suffix? I'm also wondering whether other options such as padHours and all that makes sense because SMPTE time code is expected in a particular format. Need to think about that API, let me know if you have ideas.

MediaFramesInstance should just be MediaFrames and you can remove the interface. A class is essentially an interface.
Done!

I don't see frame estimation code yet, might still be working on it? We can keep it separate and follow up, for now it can be simply defined on the player via frames prop? Leave it up to you.
Yep still working on it. I'd love your feedback on this suggestion - I don't personally love it but it seems like the only option.

Sync the player frames prop with store in media-store-sync.ts.
Done!

Drop the setByPlayer and noPlayerWarning in MediaFrames. I see it was modelled after MediaRemoteControl but that's a little different since it can be created outside of the player component. The MediaFrame class is only an internal construct. Pass in the store to MediaFrame constructor if you need it. Do not pass in a player reference as that's over exposing.
Done!

Format can be empty string "" or "smpte".
Done!

formatTimeSmpte repeats a lot of code in formatTime. Can we just use formatTime and then append frames suffix? I'm also wondering whether other options such as padHours and all that makes sense because SMPTE time code is expected in a particular format. Need to think about that API, let me know if you have ideas.
You're right that there's a specific format for SMPTE timecodes. I think we should keep formatTimeSmpte and remove the optional arguments for padding since those are already specified. Open to your feedback though!

I appreciate the work in this PR a lot but because of 1.0@next rebuild it's outdated now. I'm more than happy to guide you in a new PR and get this added in. Most of the files have moved around slightly but you should comfortably be able to find them. You can kick off the new PR empty and start with questions if you like and we can go from there.
I'm sorry we broke this PR and all the hard work you put in, the rebuild and why it was needed is explained in the new release notes. I'd love to see this work go through, if you get a chance to start again love to help. Message me on Discord if you need anything too.
There's also some new suggestions on the issue around whether we can even accurately detect the video frame rate, so there might be some discussion needed around this feature.
Thank you ❤


[VQ]: brushing on visual querying page does not work in firefox

brushing in the date-of-birth/death popover workd fine for me in chrome, but not in firefox:
https://user-images.githubusercontent.com/20753323/168595567-443d202c-127d-4a31-b26a-af4d213d343f.mp4

Comment during dev meeting: potential cause different handling of foreignobject in different browsers?
Would it make sense to implement widget as indivisual components separate from svg instead?

I have been able to isolate one issue in a minimal working example:
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title></title>
  <script src="https://d3js.org/d3.v7.min.js"></script>
  <style>*,*::before,*::after{box-sizing:border-box}</style>
</head>
<body>
  <svg width="1000" height="700" style="border:1px solid rebeccapurple">
    <foreignObject x="300" y="200" width="200" height="100">
      <xhtml:body xmlns="http://www.w3.org/1999/xhtml" style="border:1px solid hotpink;display:grid">
        <svg xmlns="http://www.w3.org/2000/svg" width="198" height="98" viewBox="0 0 198 98">
          <g id="foo"></g>
        </svg>
      </xhtml:body>
    </foreignObject>
  </svg>
  <script>
    const brush = d3.brushX()
      .extent([[0,0],[198,98]])
      .on('start', e => console.log('start', e.selection, e.sourceEvent.clientX, e.sourceEvent.clientY))
      .on('brush', e => console.log('brush', e.selection, e.sourceEvent.clientX, e.sourceEvent.clientY))
      .on('end', e => console.log('end', e.selection, e.sourceEvent.clientX, e.sourceEvent.clientY));
    d3.select('#foo').call(brush);
  </script>
</body>
</html>

This works as expected both in Firefox and Chromium. However, if I wrap the foreignObject in a g element with a translate() on it, it no longer works and exhibits the same behavior in Firefox as the issue itself. I am currently trying to get this to work in the histogram code as well.

Update for my example above! Adding a viewBox to the outer SVG as well (as is the case in the VQ page), the brush is suddently offset in the X direction by the x offset of the viewBox:
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title></title>
  <script src="https://d3js.org/d3.v7.min.js"></script>
  <style>*,*::before,*::after{box-sizing:border-box}</style>
</head>
<body>
  <svg width="1000" height="700" style="border:1px solid rebeccapurple" viewBox="-50 -50 1000 700">
    <foreignObject x="300" y="200" width="200" height="100">
      <xhtml:div xmlns="http://www.w3.org/1999/xhtml" style="border:1px solid hotpink;display:grid;isolation:isolate">
        <svg xmlns="http://www.w3.org/2000/svg" width="198" height="98" viewBox="0 0 198 98">
          <g id="foo"></g>
        </svg>
      </xhtml:div>
    </foreignObject>
  </svg>
  <script>
    const brush = d3.brushX()
      .extent([[0,0],[198,98]])
      .on('start', e => console.log('start', e.selection, e.sourceEvent.clientX, e.sourceEvent.clientY))
      .on('brush', e => console.log('brush', e.selection, e.sourceEvent.clientX, e.sourceEvent.clientY))
      .on('end', e => console.log('end', e.selection, e.sourceEvent.clientX, e.sourceEvent.clientY));
    d3.select('#foo').call(brush);
  </script>
</body>
</html>

Similarly, a translate() anywhere in the ancestors of the foreignElement will offset the brush. So it seems the solution is to not have any translations on the root SVG element; i.e., working with global coordinates everywhere in the SVG. Not ideal, but workable.
Passing down a SVGTransform object as a property to all components to help keep track of the current displacement relative to the global coordinate system could be a solution. Every child that would have a transform or a viewBox would then instead add its displacement to the parent transform it receives:
const parentTransform: SVGTransform = ...;
const ownTransform = new SVGTransform();
ownTransform.setTranslate(ownTx, ownTy);
const list = new SVGTransformList();
list.initialize(parentTransform);
list.appendItem(ownTransform);
const finalTransform = list.consolidate();

The translate x and y could then be accessed via the (deprecated) matrix property of the SVGTransform. But maybe, since only translation is required, it is easier to make a self-rolled class or object just handling those two properties.

So, to conclude my previous comment: The issue in Firefox is that the outer SVG created in VisualQuerying.tsx has a viewBox of ${-window.innerWidth / 2} ${-window.innerHeight / 2} ${window.innerWidth} ${window.innerHeight}.


Signature extraction failed

Details at https://gist.github.com/chmaynard/a2d724a03f0147798ba51f948f41e244
I'm using the latest version in Homebrew: 2017.05.14

Having the exact same issue
ERROR: Signature extraction failed: Traceback (most recent call last):   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 1081, in _decrypt_signature     video_id, player_url, s   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 1004, in _extract_signature_function     cache_res = res(test_string)   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 1057, in <lambda>     return lambda s: initial_function([s])   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/jsinterp.py", line 254, in resf     res, abort = self.interpret_statement(stmt, local_vars)   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/jsinterp.py", line 55, in interpret_statement     v = self.interpret_expression(expr, local_vars, allow_recursion)   File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/youtube_dl/jsinterp.py", line 211, in interpret_expression     raise ExtractorError('Unsupported JS expression %r' % expr) youtube_dl.utils.ExtractorError: Unsupported JS expression 'oE["do"](a,67)'  (caused by ExtractorError('Unsupported JS expression \'oE["do"](a,67)\'',))

Outdated versions of youtube-dl.

@dstftw What if I get similar error, but I already upgrade my package yesterday to .18.1?
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "C:\Python\Python35\lib\site-packages\youtube_dl\extractor\youtube.py", line 1070, in _decrypt_signature
    video_id, player_url, s
  File "C:\Python\Python35\lib\site-packages\youtube_dl\extractor\youtube.py", line 958, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflJ6jfXc/en_US/base.js'
 (caused by ExtractorError("Cannot identify player 'https://www.youtube.com/yts/jsbin/player-vflJ6jfXc/en_US/base.js'",))

I tried to force reinstall package, but it not helps:
python -m pip install -I youtube-dl
Collecting youtube-dl
  Using cached youtube_dl-2<IP_ADDRESS>-py2.py3-none-any.whl
Installing collected packages: youtube-dl
Successfully installed youtube-dl-2<IP_ADDRESS>


Encode URL component correctly for Markdown images with title attribute

![Alt text](/path/to.png?oneTwoThree=1 2 3 "Tooltip goes here")
Should have URL encoded correctly to
<img src="/path/to.png?oneTwoThree=1%202%203" alt="Alt text" title="Tooltip goes here" />

You said what it should do but didn't say what it does do :-)


Parallel work

Hi!
I just saw that you pushed v3.0. I have been working on similar changes (central coordinator) plus some cleanups. This now somewhat redundant and I would need to rebase in order to figure out what the new deltas are and whether they make sense.
Can you have a look at my fork and let me know if you are interested in my changes / it makes sense for me to continue? Tough, I'm not yet fully finish.
My bad that I did not ask before ...

Hey @patman15 , sorry that your work isn't needed anymore. You also missed one crucial thing: Handling when the inverter goes offline. I'm also preparing this integration to get merged into the core.
Again, I know that feeling and I feel sorry for you, but I still appreciate your work.

@mawoka-myblock you might have missed, that I, among other things required, fixed sensor.py to better match current HA requirements to possibly get it upstreamed as discussed in https://github.com/SonnenladenGmbH/APsystems-EZ1-API-HomeAssistant/issues/20. Nevertheless if you say you are good, fine for me. I might have a functional issue, but I will first test V3.

I'm in the process of creating the PR which is really hard. takes a breath not to rant about HA


请求支持

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting a new site support request
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that none of provided URLs violate any copyrights or contain any DRM to the best of my knowledge
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and am willing to share it if required

Region
china
Example URLs
无法登录
Provide a description that is worded well enough to be understood
无法登录missav 请求
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
无法

Duplicate of #6544


Entra login hangs on https://login.microsoftonline.com/common/reprocess

When logging in with an Entra ID, the page keeps loading indefinitely and no auth token is provided to the CLI. Not sure if this is an issue with the DevTunnels CLI, but AZ CLI auth does work in the same environment. GitHub login does work for DevTunnels CLI in same environment as well.
You can contact me internally (mivleesh) if necessary as well.
Version
Tunnel CLI version: 1.0.1401+3d725ee539
Tunnel service URI        : https://global.rel.tunnels.api.visualstudio.com/
Tunnel service version    : 1.0.1401.29245 (3d725ee539; 2024-11-12 17:31:21Z)
Tunnel service cluster    : euw
Steps

Run devtunnel user login -e -v
Log-in with Entra ID
Page redirects to https://login.microsoftonline.com/common/reprocess?ctx=, but this page keeps loading indefinitely (white page)

Logs
Using token cache file: DevTunnels/devtunnels-tokens-github
MSAL-Cache: Initialized 'Storage'
MSAL-Cache: Reading Data
MSAL-Cache: Reading from file
MSAL-Cache: Cache file exists? 'False'
MSAL-Cache: Got '0' bytes from file storage
Using client AppId: c0df98ca-23b4-4bce-bb9f-72039b28d3a5
Using token cache file: DevTunnels/devtunnels-tokens-microsoft
MSAL-Cache: Initialized 'Storage'
MSAL-Cache: Registering token cache with on disk storage
MSAL-Cache: Done initializing
MSAL: [Cache Session Manager] Entering the cache semaphore. Real semaphore: True. Count: 1
MSAL: [Cache Session Manager] Entered cache semaphore
MSAL-Cache: Before access
MSAL-Cache: Acquiring lock for token cache
MSAL-Cache: Before access, the store has changed
MSAL-Cache: Reading Data
MSAL-Cache: Reading from file
MSAL-Cache: Cache file exists? 'True'
MSAL-Cache: Read '0' bytes from the file
MSAL-Cache: Got '0' bytes from file storage
MSAL-Cache: Read '0' bytes from storage
MSAL-Cache: Deserializing the store
MSAL: [Internal cache] Clearing user token cache accessor.
MSAL-Cache: After access
MSAL-Cache: Released lock
MSAL: [Cache Session Manager] Released cache semaphore
MSAL: [Internal cache] Total number of cache partitions found while getting refresh tokens: 0
MSAL: [GetAccounts] Found 0 RTs and 0 accounts in MSAL cache.
MSAL: IsLegacyAdalCacheEnabled: yes
MSAL: [Region discovery] Not using a regional authority.
MSAL: [Instance Discovery] Tried to use network cache provider for login.microsoftonline.com. Success? False.
MSAL: [Instance Discovery] Tried to use known metadata provider for login.microsoftonline.com. Success? True.
MSAL: [GetAccounts] Found 0 RTs and 0 accounts in MSAL cache after environment filtering.
MSAL: IsLegacyAdalCacheEnabled: yes
MSAL: IsLegacyAdalCacheEnabled: yes
MSAL: Found 0 cache accounts and 0 broker accounts
MSAL: Returning 0 accounts
Using token cache file: DevTunnels/devtunnels-tokens-msi
MSAL-Cache: Initialized 'Storage'
MSAL-Cache: Reading Data
MSAL-Cache: Reading from file
MSAL-Cache: Cache file exists? 'False'
MSAL-Cache: Got '0' bytes from file storage
MSAL-Cache: Got '0' bytes to write to storage
MSAL-Cache: Writing cache file
MSAL-Cache: Writing file with chmod 600
Using client AppId: c0df98ca-23b4-4bce-bb9f-72039b28d3a5
Using token cache file: DevTunnels/devtunnels-tokens-microsoft
MSAL-Cache: Initialized 'Storage'
MSAL-Cache: Registering token cache with on disk storage
MSAL-Cache: Done initializing
MSAL: MSAL MSAL.NetCore with assembly version '<IP_ADDRESS>'. CorrelationId(e9730c4b-b7e0-425a-a262-dc94d66488d8)
MSAL: DefaultBrowserOptions configured. HidePrivacyPrompt False
MSAL: HtmlMessageSuccess? True
MSAL: HtmlMessageError? True
MSAL: BrowserRedirectSuccess? False
MSAL: BrowserRedirectError? False
MSAL: === InteractiveParameters Data ===
LoginHint provided: False
User provided: False
UseEmbeddedWebView: System
ExtraScopesToConsent:
Prompt: not_specified
HasCustomWebUi: False
MSAL:
=== Request Data ===
Authority Provided? - True
Scopes - 46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2/.default
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenInteractive
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - False
HomeAccountId - False
CorrelationId - e9730c4b-b7e0-425a-a262-dc94d66488d8
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:

MSAL: === Token Acquisition (InteractiveRequest) started:
         Scopes: 46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2/.default
        Authority Host: login.microsoftonline.com
MSAL: [Instance Discovery] Instance discovery is enabled and will be performed
MSAL: [Region discovery] Not using a regional authority.
MSAL: [Instance Discovery] Tried to use network cache provider for login.microsoftonline.com. Success? False.
MSAL: Fetching instance discovery from the network from host login.microsoftonline.com.
MSAL: Starting [Oauth2Client] Sending GET request
MSAL: Starting [HttpManager] ExecuteAsync
MSAL: [HttpManager] Sending request. Method: GET. Host: https://login.microsoftonline.com.
MSAL: [HttpManager] Received response. Status code: OK.
MSAL: Finished [HttpManager] ExecuteAsync in 464 ms
MSAL: Finished [Oauth2Client] Sending GET request  in 465 ms
MSAL: Starting [OAuth2Client] Deserializing response
MSAL: Finished [OAuth2Client] Deserializing response in 19 ms
MSAL: [Instance Discovery] Tried to use network cache provider for login.microsoftonline.com. Success? True.
MSAL: [Instance Discovery] After hitting the discovery endpoint, the network provider found an entry for login.microsoftonline.com ? True.
MSAL: Using system browser.
MSAL: Listening for authorization code on http://localhost:43353/

Workaround was to use device login via devtunnel user login -d, but the original issue is still present.


Supporting “full_text” of a tweet with “tweet_mode=extended”

Is there an ability to access the “full_text” of a tweet using STTwitter? Sorry, I haven’t found that yet. Thanks!
https://developer.twitter.com/en/docs/tweets/tweet-updates

I found that extended is located at:
.getStatusHomeTimeline which includes “useExtendedTweetMode”


CB-438 Send JSON response for constraint violations

The core ConstraintViolationExceptionMapper class was returning a plain
string as a response, but to be valid for JSON-producing endpoints, it
should return JSON. It now does, in a manner identical to the same
mapper in periscope.

Replaced by PR #4664


Comparison with LIO-SAM?

Hi!
Do you have any opinion about LIO-SAM (https://github.com/TixiaoShan/LIO-SAM) and its derivatives?
For example this paper: https://www.researchgate.net/publication/362466555_Evaluation_and_comparison_of_eight_popular_Lidar_and_Visual_SLAM_algorithms reports LIO-SAM accuracy is comparable to hdl_graph_slam (or even better). However without much details about the parameters it is difficult to tell whether the comparison is fair.
Did you ever check and compare accuracy and performance with LIO-SAM (or similar) yourself?
One interesting difference I find between hdl_graph_slam and LIO-SAM is the latter implements a feature based ICP-like matching (using edge and surface features). The original LOAM paper claims features matching gives faster and better results, in a similar fashion than it does in traditional image processing.
In both projects, the feature extraction is based on heuristics on LIDAR ring points scanning, but with modern high density LIDAR sensors (e.g. 64/128 lanes), I guess traditional 3D feature extraction methods could work.
Did you ever explore this kind of feature matching in hdl_graph_slam? (I know ICP/NDT kind of make their own features, but a normal/distribution is not quite the same as something like a corner or an edge)
Sorry for the too many questions :)
Thanks!

I think LIO-SAM should work better in general while hdl_graph_slam can be better in situations where GNSS and ground plane constraints are effective. In my opinion, the performance difference stems from the choice of the scan matching target (scan-to-scan vs scan-to-model matching) rather than the matching cost design (some works like DLIO showed a good accuracy with a combination of GICP and scan-to-model matching).
Anyways, both hdl_graph_slam and LIO-SAM are a bit outdated now, and I think it would be good to use a more recent ones like FAST-LIO and DLIO.
Note that we are planning to release a new mapping package that works quite well in many situations.

Thanks for the insight!
I totally missed DLIO. It looks quite capable indeed!


Heroes unlimited 2 e

Changes / Comments
Removed spinner arrows from number inputs.
Changed labeling on bionics tab to include some headers and placeholder text for eugenic builds.
Added ammo count and range to the roll template for ranged attacks.
Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[ ] Does the pull request title have the sheet name(s)? Include each sheet name.
[ ] Is this a bug fix?
[ ] Does this add functional enhancements (new features or extending existing features) ?
[ ] Does this add or change functional aesthetics (such as layout or color scheme) ?
[ ] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[ ] If this is a new sheet, did you follow Building Character Sheets standards ?

If you do not know English. Please leave a comment in your native language.

Character Sheet Info Roll20 Internal Use only.


init command not creating .gitignore when run from npm package

To reproduce:

Install CLI via npm install -g @epandco/unthink.
Run unthink init test-project

.gitignore file does not exist (tested on macos). Looking at the CLI in the global node_module folder (in my case, /usr/local/lib/node_modules/@epandco/unthink/unthink-stack), there is no ".gitignore" file there. Could the npm package not be including it?
Edit: I did a follow-up and tested the CLI project via npm link. It properly handles the ".gitignore" file.

@lxndrdagreat running npm pack also included it properly which is basically a local version of what I think it sends up.
Maybe it was removed on my local when I published it. Going to publish again.

@lxndrdagreat actually lets talk about this in the morning before I publish anything. I have to bump a patch version to do it etc.

Ends up that the .gitignore in the unthink_stack folder is getting renamed to .npmignore upon package installation.


Figure out persistence/backup for our juptyerhub accounts

ansible with restc
ansible docker copy

Would simply coping /var/lib/docker/volumes/ somewhere safe be enough?

sure, for a first step -- like that docker copy link above
when we start putting students on the 3 raided nodes in our M235 machine room, we'll need something more like that restc approach

Do you know if there's any buffering -- or if stopping the hub will flush all the open volumes to /var/lib/docker/volumes?

(i.e. -- I guess you can't simple restore by untarring volumes.tar?)

I think it should work if containers that use those volumes are stopped.
For jupyter specifically, it simply stores notebooks in text files. So, I would expect it to behave like any text editor. All closed files should be saved. Any open/unsaved files won't be saved (only their old versions that are persisted to disk will). If files are being saved while they are copied,  they will be corrupted. Though, it is possible to "lock" the files from modifications before copying them.

At the very least with "local" storage drivers (on linux), volumes seem to behave just like any other host system directories, so there shouldn't be any additional buffering and flushing.

thanks, doing this now

I'll make sure the students know that from now on they will need to save their work in a folder called "backups" or something, to avoid having to copy the git repo that is being cloned for every user.

https://docker-py.readthedocs.io/en/stable/containers.html#  -- get_archive and put_archive

I'll make sure the students know that from now on they will need to save their work in a folder called "backups" or something, to avoid having to copy the git repo that is being cloned for every user.

Is the git repo really that large?

right -- not  necessarily the git repo, but modified satellite images and figures from class exercises etc. are going to be an issue as we scale up:
4.0K    _data/data_share
4.0K    _data/a301_lib
4.0K    _data/sat_data
16K     _data/.ipynb_checkpoints
8.0K    _data/__pycache__
52K     _data/a301_2020/.git/hooks
8.0K    _data/a301_2020/.git/logs/refs/heads
8.0K    _data/a301_2020/.git/logs/refs/remotes/origin
12K     _data/a301_2020/.git/logs/refs/remotes
24K     _data/a301_2020/.git/logs/refs
32K     _data/a301_2020/.git/logs
8.0K    _data/a301_2020/.git/refs/heads
4.0K    _data/a301_2020/.git/refs/tags
8.0K    _data/a301_2020/.git/refs/remotes/origin
12K     _data/a301_2020/.git/refs/remotes
28K     _data/a301_2020/.git/refs
16M     _data/a301_2020/.git/objects/pack
4.0K    _data/a301_2020/.git/objects/info
16M     _data/a301_2020/.git/objects
8.0K    _data/a301_2020/.git/info
4.0K    _data/a301_2020/.git/branches
16M     _data/a301_2020/.git
4.0K    _data/a301_2020/data_share
8.0K    _data/a301_2020/a301_lib
4.0K    _data/a301_2020/sat_data
36K     _data/a301_2020/notebooks/week3/.ipynb_checkpoints
88K     _data/a301_2020/notebooks/week3
17M     _data/a301_2020/notebooks/figures
24K     _data/a301_2020/notebooks/week1
84K     _data/a301_2020/notebooks/week2/.ipynb_checkpoints
8.0K    _data/a301_2020/notebooks/week2/__pycache__
232K    _data/a301_2020/notebooks/week2
17M     _data/a301_2020/notebooks
32M     _data/a301_2020
32M     _data

I guess it's going to be an issue even if modified files are saved in a separate folder. Since people would probably tend to have a copy of notebook/output for every modification they make (since they wouldn't want to lose previous code/data).

right -- for this course in particular hard quotas are going to have to be enforceable

How much space are you planning to give to each student?

the 3 ibm blades that charles and henryk are refitting for our machine room will have 300 Gbytes Raid 1.  If 15 students can run on 8 cores/16 G ram, then they could have most of one of the blades.  But we wouldn't want to back all of that up.  I'll also be showing them how to install python on their laptops in a couple of weeks, so the number could drop to say 7 students relying on our hub.

8 cores/16 G ram seems very little for 15 students. But it depends on what they do.

we always have the option of adding a new container image to jupyterhub.eoas.ubc.ca once we get persistence/backups set up for kubernetes.   We haven't been given a budget, but storage costs are obviously the biggest expense on AWS, so we'd need to monitor disk use very carefully/figure out how to limit them to say 2 Gbytes.

We could also spread them out on the other 2 nodes -- not many other users until term 2.

Which parts are hosted on AWS and which ones are on-premises?

storage costs are obviously the biggest expense on AWS

Where do they say that?

disk cost -- that's our experience with research hosting -- they use the instance pricing as a lure, and make their money on storage.  Charles is running some cost summaries on Monday for our EOSC 350 jupyterhub.
Currently:  jupyterhub.eoas.ubc.ca:  kubernetes/EKS in the AWS canadian region
eoas1-5:  racked in the UDC
eoas6-8:  will be racked in EOAS Main 235 once the redundant power supplies and drives are installed

AWS probably isn't the cheapest hosting provider

If network is fast, storage can be mounted remotely. And the actual data can be stored on-premises.
I think hard drives are very cheap now. Can get 10 TB hard drive for less than 400 CAD, with price of less than 4 CAD per 100 GB.

Also, amazon S3 is probably cheaper for storage than EKS.

that's true, but they won the competition for UBC's business, so they're
what we've got, unless we want to collect student fees for computing
(which is illegal without UBC Senate approval it turns out)
On 2020-09-27 10:35, fyrzbavqr wrote:

AWS probably isn't the cheapest hosting provider
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/eoas-ubc/eoas_tlef/issues/47#issuecomment-699664359,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACHQHBSSMVCPPGLAE5W7GTSH5ZUXANCNFSM4R3RMW4Q.

the problem with building out more of our own nodes is that our machine room  doesn't meet UBC data security standards (also power/air conditioning is limited) so we are really forced into the cloud.  But even $30/term would be a bargain for students, since they don't have to buy textbooks for these courses.

Then we can stilly try using Amason S3. It seems cheaper.
Amazon S3: $0.023 per GB per month
EKS storage:  $0.004445 per GB per hour = $3.2004 per GB per month
So, there's two order of magnitude difference in price.
I think S3 can be simply bind mounted as a volume.

https://jlelse.blog/dev/restic-docker/

We don't really have to use ansible to configure backups. In "ansible with restc" link, they just use ansible to set up every docker container.
But it's perfectly fine to just run restic in a normal docker container with docker-compose.
On the other hand, it might be useful to be able to setup the whole infrastructure of containers on the nodes using ansible.
But docker-compose seems simpler.

Restic can backup to a standalone restic server, or it can also backup to a variety of other destinations in the cloud, including Amazon S3.
It can also backup using simple sftp, so nothing would need to be installed on the remote server.
There is a long list of supported storage providers here:

https://restic.readthedocs.io/en/stable/030_preparing_a_new_repo.html#
https://rclone.org/

Can even configure it to stop notebooks before doing backups to prevent corrupted data: https://github.com/djmaze/resticker

nice -- why don't we start with a local backup that uses resticker, then we can see what charles things about a rest api


Project level 8/9 logic of updating self check servers

Hi I managed to pass level 8 but I cant seem to fix my code for the level 9 private test cases.
Currently, this is how my implementation works:
I created an ImList of customers at the very start of the run() method in simulate8 to represent the list of customers for the shared queue. My Self Check Server is a child class of Server.
Whenever there is a WaitEvent or ServeEvent or DoneEvent involving a Self Check Server, I would update all the Self Check Servers in the shop to the have the same list of waiting customers. Additionally, if there is a DoneEvent and the list of customers for the shared queue is not empty, I would create a new ServeEvent for the first customer and remove the customer from the list.
May I know if this logic is wrong? I'm quite unsure of how the shared queue should be updated accordingly. Any help would be greatly appreciated. Thanks in advance!

What i did was that i have an entirely separate event flow in the arrive event class. In my event class, i check if my server is a human or a self-checkout, if its a selfcheckout then it will go through the wait/serve/done based on its own queue (implemented in the shop) so i don't have to deal with any inconsistency

hello you mentioned that "Additionally, if there is a DoneEvent and the list of customers for the shared queue is not empty, I would create a new ServeEvent for the first customer and remove the customer from the list." are you removing the first customer (the one you are creating the serve event for) from the list?
what i did was to remove a customer from the waitlist only when executing a serve event, add customer only when executing wait event and not change the waitlist during a done event. hope this helps!

@herq-ules
Ohh I see where I went wrong now, the customer should be removed from the queue when its served, not during a done event. Fixing this made it pass the test case. Thank you very much!!


OSSL_PROVIDER_load(0, "legacy")  fail

dggphicprd00055: /usr1/lm/openssl/openssl3-alpha6/openssl-openssl-3.0.0-alpha6 # ./config
dggphicprd00055: /usr1/lm/openssl/openssl3-alpha6/openssl-openssl-3.0.0-alpha6/apps # ldd openssl
linux-vdso.so.1 (0x00007fffab3c7000)
libachk.so => /lib64/libachk.so (0x00007ffbd47c0000)
libssl.so.3 => /usr1/lm/openssl/openssl3-alpha6/openssl-openssl-3.0.0-alpha6/libssl.so.3 (0x00007ffbd450c000)
libcrypto.so.3 => /usr1/lm/openssl/openssl3-alpha6/openssl-openssl-3.0.0-alpha6/libcrypto.so.3 (0x00007ffbd3e9c000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007ffbd3c98000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ffbd3a7a000)
libc.so.6 => /lib64/libc.so.6 (0x00007ffbd36d7000)
librt.so.1 => /lib64/librt.so.1 (0x00007ffbd34cf000)
/lib64/ld-linux-x86-64.so.2 (0x0000563a1c2bd000)
dggphicprd00055: /usr1/lm/openssl/openssl3-alpha6/openssl-openssl-3.0.0-alpha6/apps # gdb ./openssl
GNU gdb (GDB; SUSE Linux Enterprise 12) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://bugs.opensuse.org/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./openssl...done.
(gdb) b main
Breakpoint 1 at 0x44af2c: file apps/openssl.c, line 229.
(gdb) r
Starting program: /home/lm/openssl/openssl3-alpha6/openssl-openssl-3.0.0-alpha6/apps/openssl
Missing separate debuginfos, use: zypper install glibc-debuginfo-2.22-49.16.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Breakpoint 1, main (argc=1, argv=0x7fffffffe218) at apps/openssl.c:229
229         LHASH_OF(FUNCTION) *prog = NULL;
(gdb) call OSSL_PROVIDER_load(0, "legacy")
$1 = (OSSL_PROVIDER *) 0x0
(gdb)
the OSSL_PROVIDER_load(0, "legacy") is failed.
OpenSSL need other settings???

What happens if you do this?
$ ../util/wrap.sh ./openssl

or this?
$ OPENSSL_MODULES=../providers ./openssl

OPENSSL_MODULES=../providers ./openssl

dggphicprd00055: /usr1/lm/openssl/openssl3-alpha6/openssl-openssl-3.0.0-alpha6/apps # OPENSSL_MODULES=../providers ./openssl
Standard commands
asn1parse         ca                ciphers           cmp
cms               crl               crl2pkcs7         dgst
dhparam           dsa               dsaparam          ec
ecparam           enc               engine            errstr
fipsinstall       gendsa            genpkey           genrsa
help              info              kdf               list
mac               nseq              ocsp              passwd
pkcs12            pkcs7             pkcs8             pkey
pkeyparam         pkeyutl           prime             provider
rand              rehash            req               rsa
rsautl            s_client          s_server          s_time
sess_id           smime             speed             spkac
srp               storeutl          ts                verify
version           x509
Message Digest commands (see the `dgst' command for more details)
blake2b512        blake2s256        gost              md4
md5               mdc2              rmd160            sha1
sha224            sha256            sha3-224          sha3-256
sha3-384          sha3-512          sha384            sha512
sha512-224        sha512-256        shake128          shake256
sm3
Cipher commands (see the `enc' command for more details)
aes-128-cbc       aes-128-ecb       aes-192-cbc       aes-192-ecb
aes-256-cbc       aes-256-ecb       aria-128-cbc      aria-128-cfb
aria-128-cfb1     aria-128-cfb8     aria-128-ctr      aria-128-ecb
aria-128-ofb      aria-192-cbc      aria-192-cfb      aria-192-cfb1
aria-192-cfb8     aria-192-ctr      aria-192-ecb      aria-192-ofb
aria-256-cbc      aria-256-cfb      aria-256-cfb1     aria-256-cfb8
aria-256-ctr      aria-256-ecb      aria-256-ofb      base64
bf                bf-cbc            bf-cfb            bf-ecb
bf-ofb            camellia-128-cbc  camellia-128-ecb  camellia-192-cbc
camellia-192-ecb  camellia-256-cbc  camellia-256-ecb  cast
cast-cbc          cast5-cbc         cast5-cfb         cast5-ecb
cast5-ofb         des               des-cbc           des-cfb
des-ecb           des-ede           des-ede-cbc       des-ede-cfb
des-ede-ofb       des-ede3          des-ede3-cbc      des-ede3-cfb
des-ede3-ofb      des-ofb           des3              desx
idea              idea-cbc          idea-cfb          idea-ecb
idea-ofb          rc2               rc2-40-cbc        rc2-64-cbc
rc2-cbc           rc2-cfb           rc2-ecb           rc2-ofb
rc4               rc4-40            seed              seed-cbc
seed-cfb          seed-ecb          seed-ofb          sm4-cbc
sm4-cfb           sm4-ctr           sm4-ecb           sm4-ofb

And now, with gdb, and try the same load again.  So:
OPENSSL_MODULES=../providers gdb ./openssl

Does call OSSL_PROVIDER_load(0, "legacy") still fail with this?

successful,
so , it must be required  legacy.so? but now  just only provides libssl.a and libcrypto.a

legacy.so is required to use legacy algorithms, but otherwise not.

legacy.so is required to use legacy algorithms, but otherwise not.

OK, ths much!!

How can I compile the algorithm suites included in Legay into libcrypto and libssl and modify some configuration files for compilation?

How can I compile the algorithm suites included in Legay into libcrypto and libssl and modify some configuration files for compilation?

legacy.so is built by default. You don't need to do anything special to build it. You just need to make sure it is loaded at run time if you need to use it.
There is information on the Wiki for how to load providers:
https://wiki.openssl.org/index.php/OpenSSL_3.0

How can I compile the algorithm suites included in Legay into libcrypto and libssl and modify some configuration files for compilation?

legacy.so is built by default. You don't need to do anything special to build it. You just need to make sure it is loaded at run time if you need to use it.
There is information on the Wiki for how to load providers:
https://wiki.openssl.org/index.php/OpenSSL_3.0

just only used the legacy.so? the liblegacy is not available?

just only used the legacy.so? the liblegacy is not available?

Building OpenSSL for static linking will result in the legacy provider being part of libcrypto. You still have to explicitly "load" it using "OSSL_PROVIDER_load" or via the config file, but you don't need a legacy.so file in that case.

ok, i try it,ths

How can I compile the algorithm suites included in Legay into libcrypto and libssl and modify some configuration files for compilation?

legacy.so is built by default. You don't need to do anything special to build it. You just need to make sure it is loaded at run time if you need to use it.
There is information on the Wiki for how to load providers:
https://wiki.openssl.org/index.php/OpenSSL_3.0
OpenSSL 3.0 compiles legacy algorithms such as (RC4, DES...) into the crypto library instead of using the legacy library. Is it consistent with 1.1.1f?


⚠ Processors has degraded performance

In 871cec5, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 82 ms

Resolved: Processors performance has improved in 1c6b3ca.


fix(catalog): Add Screen Reader notice Edit Metadata Link opens in new tab

Catalog: Screen Reader notice Edit Metadata Link opens in new tab
The issue is that in the Catalog's About page, when using a Screen Reader, the Edit Metadata link doesn't tell the user it will open in a new tab, which is an accessibility issue.
The issue happens when you mix a Backstage's Link and an aria-label, our Link checks whether the link is an external one with a Regex, and adds a hidden label to the content of the link, however when aria-label is present, the reader uses that without looking at the content, this is very common when we use an IconButton as a Link.

To fix this we check if the link received an aria-label and concatenate the , Opens in a new window text.
Steps to reproduce:

Open Url: https://demo.backstage.io/ and enter valid login credentials.
Navigate to the Kind combo box. Make sure Component is selected.
Select a link from the name column (For example playback-order). A new page of component opens up.
Launch NVDA or VoiceOver and navigate to Edit Metadata link.
Screen reader will not mention the link will open in a new tab.

:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

@freben Is there a way for me to trigger a re-run of failed checks?

No sorry, only maintainers can. Did that now.


Make public but incomplete urls login only

Notes for testing
You should be able to access the following pages if you are logged in, but get a 404 if you are not logged in:

member search and browse
member detail page
membership activities
book search and browse
book details

Notes for dev
Temporarily, for mid-october release
Basically content pages only will be accessible (except for analysis, not yet built)
restrict access to these:

all member urls (browse, detail, activities)
all book urls (browse, detail)

Unfortunately Members, Books, Cards, and Analysis are greyed out and not clickable on the test site. See attached photo. I'm able to click through Sources and About pages.

Sorry, @clmahoney ! I forgot to note that you'll have to edit the url and go there directly to check, now that the menu links are turned off.  To get to the members pages add /members/ to the main test url; once you get there, if you're logged in you should be able to navigate to other member pages. To get to the books pages, add /books/ to the main url.
I recommend testing simultaneously in two browsers, one where you are logged in and one where you are not - that way you can navigate to test pages in the browser where you're logged in, and then cut and paste them to test that you get a 404 in the browser where you are not logged in.

Thank you for clarifying @rlskoeser!

If I AM logged in, I can still access the Member page, the search and browse, the detail page, and the membership activities. I checked Abbott (not many events) and Colens (tons of events).
If I AM logged in, I can still access the Books page, including search and browse and book details. I checked "Beyond the Horizon" and "Jude the Obscure"

If I'm not logged in, on the Member page I see: a "Not Found" page and image of the "Absent on business" sign. I also get a "Not Found" page and image when I check books.


Removed error in ViewController.swift in Demo.

Removed error in ViewController.swift in Demo.

Thanks @coylums! This was fixed by another PR I just merged.


[W6.1f][T13-B1] Jaryl Tan

Made the method "execute" in the command superclass abstract

@Juxarius
Nothing much to review here. Hence closing with minimal review


Issues in Applying Security to a REST API Doc

Description:
Doc: https://ei.docs.wso2.com/en/7.1.0/micro-integrator/develop/advanced-development/applying-security-to-an-api/
For the time being remove the following content from the doc as the steps seem to be not much clear and not explained well.
Please reverify the content and add them back to the doc.

Using Kerberos to secure the REST API
Using an OAuth base security token
Using a policy file to authenticate with a secured back-end service

Hi @isuruuy429, In this section, the focus was to how to create a data service and data source. Complete examples are linked in is section. Example: https://ei.docs.wso2.com/en/latest/micro-integrator/use-cases/examples/data_integration/rdbms-data-service/ with db scripts. Hence closing this.


Feature request: mod updates

Currently, when you add a new version of a mod you get both in the mod list. It would be great if the new version replaced the old one, keeping the spot in the load order.

ill add this to the draggable sorting goal!


Add semantic release

ci: add semantic-release as a dev dependency
ci: extend npm-github-config shareable config
ci: change branch to branches to comply with options formatting
ci: add a test script
ci: add release workflow

:tada: This PR is included in version 1.1.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Dont eager load providers

Hopefully fixes https://github.com/aspnet/Configuration/issues/366
Apologies if it has issues, I had loads of difficulties getting the dotnet cli to work at all.

Hi @herecydev, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

Needs some work to fix some of the tests, will try and get dotnet working so I can test properly

Won't this break all sorts of error handling people might be doing?

First of apologies if I misunderstood anything here, part of the reason I'm doing this is for learning.
By error handling I assume you mean eagerly loading earlier rather than failing during building of the IConfigurationRoot?

Yea I'm actually wondering about that bug. It's filed as a performance bug with no description and no data.

That bug #366 is specifically about included IConfiguration i.e. what you get when you call Include() con the builder and pass an existing IConfiguration. It is about not copying the data from the original configuration but rather call through its APIs as needed. It is true we had no perf data, but @davidfowl and I thought it was important enough to have the bug. What it is missing is a better description :smile:

Ahh wow yea I had no include it was about that specific provider 😆

Cool, well this is far from what was desired so I'm going to close it


Ringing - From: null, To: null, Direction: CallDirection.outgoing

: Ringing - From: null, To: null, Direction: CallDirection.outgoing
I/flutter (11315): voip-onCallStateChanged CallEvent.ringing
I/flutter (11315): ringing
D/TwilioVoicePlugin(11315): Connect failure
E/TwilioVoicePlugin(11315): Call Error: 31603, Decline
I/flutter (11315): Call Error: 31603, Decline

We do have same also i get my access token own our own server and token for fcm for the device but still no luck same as the error you give. And we don's use TWIML just on putting in phone servers.

Please review your Twilio logs to ensure you don't have any errors/call fails from Flutter.

@Erchil66 see #56 - this could be useful

@preprincipletech see #56, could be useful

Hi @cybex-dev .
I'm seeing similar logs despite call getting connected. From and To are also not available on the caller side as you confirmed here. How to resolve this as the steps in #56 are unclear to me.
Platform: Android
Client code:
  bool? result = await _instance.call.place(
    from: "client:Alice",
    to: "Bob",
    extraOptions: null,
  );

makeCall is the name of the function registered as callback for TwilioML app. The function receives following request body.
{
  AccountSid: <ACCOUNT_SID>,
  ApiVersion: '2010-04-01',
  ApplicationSid: <ACCOUNT_SID>,
  CallSid: <CALL_SID>,
  CallStatus: 'ringing',
  Called: '',
  Caller: 'client:Alice',
  Direction: 'inbound',
  From: 'client:Alice',
  To: 'Bob'
}

Dialing call inside function.
 const dial = voiceResponse.dial({
        callerId: request.body.From,
        answerOnBridge: true,
      });

VoiceResponse in XML
<?xml version="1.0" encoding="UTF-8"?><Response><Dial callerId="client:Alice" answerOnBridge="true"><Client>Bob</Client></Dial></Response>

@agent515
Did you resolve this problem? 31603 does ring a bell, but I do not recall the exact cause though I'm reminded of a client not being registered/active or something thereabout.

Hi @cybex-dev. I was able to receive correct values for From and To on callee side. But CallDirection was still CallDirection.outgoing. But not sure how I resolved this because I noticed this working just now (only on the callee side). Maybe it started working after taking latest pull from the master.
Ringing - From: Alice, To: Bob, Direction: CallDirection.outgoing

Hmm - all is well that ends well. I'll close the issue for now.

@cybex-dev  CallDirection should have been CallDirection.incoming at Callee side. So should we create a separate issue for it?


SeedFix

Modified pull tests to be more readable and added seed pull test to bash script.
Modified propagation in makeseedMB to be done step by step: pull tests improved but still not fully correct.
New Seed Pull Tests:
Info in <testFastTracker seed pull test P0 - version 0>: pullAnalytical - OK - 1.003885
Info in <testFastTracker seed pull test P1 - version 0>: pullAnalytical - OK - 0.993171
Error in <testFastTracker seed pull test P2 - version 0>: pullAnalytical- FAILED- 0.778718
Error in <testFastTracker seed pull test P3 - version 0>: pullAnalytical- FAILED- 0.728237
Error in <testFastTracker seed pull test P4 - version 0>: pullAnalytical- FAILED- 0.847409
Info in <testFastTracker seed pull test P0 - version 1>: pullAnalytical - OK - 1.004926
Info in <testFastTracker seed pull test P1 - version 1>: pullAnalytical - OK - 0.983480
Error in <testFastTracker seed pull test P2 - version 1>: pullAnalytical- FAILED- 0.796300
Error in <testFastTracker seed pull test P3 - version 1>: pullAnalytical- FAILED- 0.745969
Error in <testFastTracker seed pull test P4 - version 1>: pullAnalytical- FAILED- 0.828543

After modification pulls look better:
Info in <testFastTracker seed pull test P0 - version 0>: pullAnalytical - OK - 1.014963
Info in <testFastTracker seed pull test P1 - version 0>: pullAnalytical - OK - 1.007950
Error in <testFastTracker seed pull test P2 - version 0>: pullAnalytical- FAILED- 0.812907
Error in <testFastTracker seed pull test P3 - version 0>: pullAnalytical- FAILED- 0.897912
Error in <testFastTracker seed pull test P4 - version 0>: pullAnalytical- FAILED- 1.092334
Info in <testFastTracker seed pull test P0 - version 1>: pullAnalytical - OK - 0.992418
Info in <testFastTracker seed pull test P1 - version 1>: pullAnalytical - OK - 0.997328
Error in <testFastTracker seed pull test P2 - version 1>: pullAnalytical- FAILED- 0.839584
Error in <testFastTracker seed pull test P3 - version 1>: pullAnalytical- FAILED- 0.928815
Error in <testFastTracker seed pull test P4 - version 1>: pullAnalytical- FAILED- 1.088840

Problems only at the extremeties

Info in : pullAnalytical - OK - 0.965172
Info in : pullAnalytical - OK - 1.008672
Info in : pullAnalytical - OK - 1.027217
Info in : pullAnalytical - OK - 0.995559
Error in : pullAnalytical- FAILED- 0.776293
Info in : pullAnalytical - OK - 0.982993
Info in : pullAnalytical - OK - 1.010699
Info in : pullAnalytical - OK - 1.044234
Info in : pullAnalytical - OK - 0.998854
Error in : pullAnalytical- FAILED- 0.780866


Fixes html download page double scroll bar in Edge

Summary | Résumé
Fixes html download page double scroll bar in Edge.
Example download page in Edge

Fixed! Tested it and looks good, thanks Pete!


Update README.md

Fix without v2 path

For new comers

Coverage remained the same at 93.931% when pulling a0f7c17d5afafe301a293450832b3a47a8068903 on tvitcom:master into fc6e6ff4f54530bc2cf97d063347ad794736d063 on go-ozzo:master.

The v2 tag is correct.  I've fixed the go-rest-api link. Thanks for your contribution!


Zappa not compatible with Python3.8

Summary - Zappa version 0.52.0 not working with Python 3.8
Context
I created the virtualenv using python 3.8 and tried to deploy the environment. Its showing some error. Same thing with python3.7 is working seamlessly.
Expected Behavior
zappa deploy  should start deploying the project.
Actual Behavior
zappa deploy   with python3.8 version, its showing below error--
Traceback (most recent call last):
File "/home/user/Development/serverless_project/virt/demo_zappa/bin/zappa", line 5, in
from zappa.cli import handle
File "/home/user/Development/serverless_project/virt/demo_zappa/lib/python3.8/site-packages/zappa/cli.py", line 44, in
from .core import Zappa, logger, API_GATEWAY_REGIONS
File "/home/user/Development/serverless_project/virt/demo_zappa/lib/python3.8/site-packages/zappa/core.py", line 33, in
import troposphere
File "/home/user/Development/serverless_project/virt/demo_zappa/lib/python3.8/site-packages/troposphere/init.py", line 586, in
class Template(object):
File "/home/user/Development/serverless_project/virt/demo_zappa/lib/python3.8/site-packages/troposphere/init.py", line 588, in Template
'AWSTemplateFormatVersion': (basestring, False),
NameError: name 'basestring' is not defined
Steps to Reproduce(Similar steps with python3.7 are working fine)

Created Django Project
Created virualenv for python3.8 (virtualenv -p /usr/bin/python3.8 virt/demo_zappa/)
Setup zappa_settings.json with runtime "python3.8"
Executing zappa init or zappa deploy  is producing errors.

Your Environment

Zappa version used: 0.52.0

Operating System and Python version: Ubuntu 18.04 LTS and Python 3.8.10

The output of pip freeze:
argcomplete==1.12.3
asgiref==3.3.4
boto3==1.17.89
botocore==1.20.89
certifi==2021.5.30
cfn-flip==1.2.3
chardet==4.0.0
click==8.0.1
Django==3.2.3
django-extensions==3.1.3
djangorestframework==3.12.4
durationpy==0.5
future==0.18.2
hjson==3.0.2
idna==2.9
importlib-metadata==4.5.0
jmespath==0.10.0
kappa==0.6.0
pep517==0.10.0
pip-tools==6.1.0
placebo==0.9.0
PyMySQL==1.0.2
python-dateutil==2.8.1
python-slugify==5.0.2
pytz==2021.1
PyYAML==5.4.1
requests==2.25.1
s3transfer==0.4.2
six==1.16.0
sqlparse==0.4.1
text-unidecode==1.3
toml==0.10.2
tqdm==4.61.0
troposphere==2.7.1
typing-extensions==<IP_ADDRESS>
urllib3==1.26.5
Werkzeug==0.16.1
wsgi-request-logger==0.4.6
zappa==0.52.0
zipp==3.4.1

Your zappa_settings.json:

{
"dev": {
"aws_region": "ap-south-1",
"django_settings": "python_zappa.settings",
"profile_name": "default",
"project_name": "python-zappa",
"runtime": "python3.8",
"s3_bucket": "",
"manage_roles": false,
"role_arn": "arn:aws:iam:::role/",
"slim_handler": false,
"delete_local_zip": true
}
}

Works with troposphere==3.0.2, but there are other problems with using that.


gha: Move to helm install mode for Gateway API jobs

Relates: https://github.com/cilium/cilium/issues/25156
Signed-off-by: Tam Mach<EMAIL_ADDRESS>

The changes are limited to Gateway API GHA job, which is successfully run in this PR https://github.com/cilium/cilium/actions/runs/5052875753/jobs/9066158748?pr=25608.
Required review is in, marking this ready to merge.


not_null failure where error tolerance

We have a test as follows:
        tests:
          - not_null:
              config:
                severity: error
                error_if: ">1000"
                warn_if: ">1000"

The purpose of this test is to ensure a certain data completion tolerance and flag where this tolerance is not being met for the business to take action.
Behaviour for newer versions of dbt_constraints attempts to apply a not_null constraint in this situation and fails because it's not a true not_null in the database sense. There needs to be some means to ignore the implementation of this constraint - automatic or by configuration.

Sorry it took so long to get around to this but I am going to filter out tests with an error_if configuration.


Remove Global/USHoliday class

Description

Global/USHoliday class has wrong holidays and it does not rely on MHDB. Therefore, this class was deleted and all its dependencies were updated to rely on the MHDB.
Related Issue

Closes #7506
Motivation and Context

With this change, future expiry functions will be calculated taking into account the holiday list for each class, defined in MHDB.
Requires Documentation Change

N/A
How Has This Been Tested?

The existent unit tests were run to check everything still worked as expected
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[x] Refactor (non-breaking change which improves implementation)
[ ] Performance (non-breaking change which improves performance. Please add associated performance test and results)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Non-functional change (xml comments/documentation/etc)

Checklist:

[x] My code follows the code style of this project.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

Included by https://github.com/QuantConnect/Lean/pull/7605


[Evaluate for merging] A more reliable way to send data to GLVis in parallel [par-sockets-dev]

In class socketstream, add new methods, in parallel, which should be a much more reliable way to connect and send data to GLVis in parallel. These methods basically serialize the communications by processor rank: first rank 0 connects or sends its data; then after rank 0 is done and if there were no errors, rank 1 takes turn, and so on. This approach should be very reliable because it follows the logic/sequence used in GLVis.
Updated examples 1p, 2p, 3p, 4p, 10p, and 11p to use the new methods; if all testing goes smooth, we should update the rest of the parallel examples too.

@v-dobrev and @aaroncblack: ignore the AppVeyor failures, I fixed its settings so it doesn't run in branches without a configuration file.

@stefanozampini Did you make a PR with the increase of the backlog from 4 to 128 while listening on a socket? I bet such change would render this PR unnecessary.

It’s in MFEM. Then it needs to be propagated to GLVis https://github.com/mfem/mfem/pull/189 https://github.com/mfem/mfem/pull/189

On Apr 29, 2017, at 7:42 PM, Lisandro Dalcin<EMAIL_ADDRESS>wrote:
@stefanozampini https://github.com/stefanozampini Did you make a PR with the increase of the backlog from 4 to 128 while listening on a socket? I bet such change would render this PR unnecessary.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/mfem/mfem/pull/188#issuecomment-298179804, or mute the thread https://github.com/notifications/unsubscribe-auth/AE4lAfooMEhf6Q71eMwTuWJvcfC0kT6xks5r02iEgaJpZM4NLAoU.


How to use --resume command with Checkpoint parameter

I do not know where to find the correct path to use as an argument to the --resume flag.
I followed the Re-training on the PlantCLEF Dataset instructions and quit (ctrl C) after 1 epoch was completed. I then attempted to resume using:
python3 train.py --model-dir=models/plants data/PlantCLEF_Subset --resume=CHECKPOINT
but I do not know what the checkpoint path is.
I attempted using       /root/.cache/torch/hub/checkpoints/resnet18-f37072fd.pth        which was given when the classification began in the following line:
Downloading: "https://download.pytorch.org/models/resnet18-f37072fd.pth" to /root/.cache/torch/hub/checkpoints/resnet18-f37072fd.pth 100.0%
I then received the following error message:
File "train.py", line 195, in main
args.start_epoch = checkpoint['epoch'] + 1
KeyError: 'epoch'

when I do the list command I get the following
data/PlantCLEF_Subset:
labels.txt  test   train   val
models/plants:
chackpoint.pth.tar    labels.txt    model_best.pth.tar    tensorboard
But nothing seems to give me the correct path

@4boris try using --resume=models/plants/checkpoint.pth.tar (for last checkpoint) or --resume=models/plants/model_best.pth.tar (for highest-accuracy checkpoint)

i get the following error message:
File "train.py", line 196, in main
best_accuracy= checkpoint['best_accuracy']
KeyError: 'best_accuracy'

@4boris sorry about that, this should be fixed in https://github.com/dusty-nv/pytorch-classification/commit/3e9cf8c4003311009539a6c101d156c919fe2250
Either comment out those lines in your local copy of train.py, or pull the latest.   If you are running the container, the container won't have been updated, so make the change inside container.   Or just restart training from the beginning.

Thank you for the help!

I am training object detection with a dataset which I created using the camera-capture. after the completion of every epoch in the training set i see the checkpoint path print out and I can see all the checkpoints in my directory but when I run the command with the --resume flag and the checkpoint path, it loads the checkpoint but then begins from epoch 0 again.

I believe its normal for the training script to start the epoch count from 0 when --resume is used
Also, I would use a different model dir when you --resume , otherwise it will overwrite your previous checkpoints

From: 4boris @.>
Sent: Friday, July 28, 2023 2:40:23 PM
To: dusty-nv/jetson-inference @.>
Cc: Dustin Franklin @.>; Comment @.>
Subject: Re: [dusty-nv/jetson-inference] How to use --resume command with Checkpoint parameter (Issue #1707)
I am training object detection with a dataset which I created using the camera-capture. after the completion of every epoch in the training set i see the checkpoint path print out and I can see all the checkpoints in my directory but when I run the command with the --resume flag and the checkpoint path, it loads the checkpoint but then begins from epoch 0 again.
—
Reply to this email directly, view it on GitHubhttps://github.com/dusty-nv/jetson-inference/issues/1707#issuecomment-1656169836, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADVEGK4PL4SX6J6W76FOBVDXSQBRPANCNFSM6AAAAAA22J7Y7A.
You are receiving this because you commented.Message ID: @.***>

if it starts again from epoch 0 does it mean all the training progress was lost or is that just a restart on the epoch counter?

Its just the counter, the training process is still kept by virtue of the model weights that you resumed from

From: 4boris @.>
Sent: Friday, July 28, 2023 2:58:25 PM
To: dusty-nv/jetson-inference @.>
Cc: Dustin Franklin @.>; Comment @.>
Subject: Re: [dusty-nv/jetson-inference] How to use --resume command with Checkpoint parameter (Issue #1707)
if it starts again from epoch 0 does it mean all the training progress was lost or is that just a restart on the epoch counter?
—
Reply to this email directly, view it on GitHubhttps://github.com/dusty-nv/jetson-inference/issues/1707#issuecomment-1656188011, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADVEGKZSNT6GVC3LPZ3CONDXSQDVDANCNFSM6AAAAAA22J7Y7A.
You are receiving this because you commented.Message ID: @.***>


[ZAP] Need to support nested struct type

Problem
Currently, struct type can only contain default type such as "INT16U", but we shall allow it contain another user defined struct type to specify some clusters from CHIP spec.
Proposed Solution
Support nested struct type

https://github.com/project-chip/zap/issues/151

I've moved all the "chip_zap_support" labeled bugs into the zap repo itself under https://github.com/project-chip/zap/issues
I propose that we delete the chip_zap_support label, and all the bugs in this repo, and in the future simply open the issues in the zap repo itself, since it's much easier to keep track.
But given that I'm not sure how this repo is tracking "dependent issues" it's not my call.


Enable model API in Heapster

see: https://github.com/GoogleCloudPlatform/heapster/issues/463#issuecomment-129635265

cc: @piosz  @jszczepkowski @afein

@afein is working on optimizing memory usage for the model. Can we hold off from enabling the model until then (a few more days)? Enabling model now will result in significant memory usage.

That is correct, when the memory usage is optimized (2 days ETA), the use_model flag should be set to true by default on Heapster, without requiring it to be set explicitly.

That is correct, when the memory usage is optimized (2 days ETA), the use_model flag should be set to true by default on Heapster, without requiring it to be set explicitly.
Should we close this PR then?

Yes. Lets close this.
On Thu, Aug 13, 2015 at 7:01 AM, Wojciech Tyczynski <
<EMAIL_ADDRESS>wrote:

That is correct, when the memory usage is optimized (2 days ETA), the
use_model flag should be set to true by default on Heapster, without
requiring it to be set explicitly.
Should we close this PR then?
—
Reply to this email directly or view it on GitHub
https://github.com/kubernetes/kubernetes/pull/12523#issuecomment-130683914
.


Metal Adventure : Move img in Github

Fix
get img form github only.

With pleasure.
Thank for your reactivity too.

Hello @yuyuki
FYI, we received an email from Github about a possible security vulnerability in the repo related to package-lock.json in the Metal Adventures folder. We went ahead and remove a few of the files in that folder which I assume are part of your build process. This came up as part of our weekly code push so we may have removed more files than we need just to in order to facility the process. You could add back the .gitignore file but the gulpfile, package-lock, and package should probably be kept locally.
Let me know if you have any questions.
Thanks,
Cassie

Hi @clevett ,
Thank to advice me. I will remove from « Metal Adventures » all unnecessary files.


AUR version not up to date

The AUR version is the one from August, it would be really nice if it were to be updated.
Thanks

Updated now, thanks!


Add better login page

Themes now cover the login page
more responsive on both large, small and smallest screens
the footer behaves like a footer

Large

Very small

There are some deeper problems with angular dark themes in general. All components usually use the current font-color. The browser sets this this to black by default.
Theme mixins will not change the font-color, since mixins are not inherently scoped to selectors. By recommendation in similar issues, I set the default font color to white for any dark theme. Please try that out @emanuelschuetze

tinyslides


request_encode_url gives InsecureRequestWarning and hangs indefinitely

I'm experiencing the following issue.
I am making GET requests  using the request_encode_url PoolManager method to two sites that do not have SSL: mose.io and mattbruenig.com
The following request (to https://mose.io)  gives the InsecureRequestWarning but still returns a response:
> myheaders = {'Accept-Encoding': 'gzip,deflate', 'Accept': '*/*', 'Cookie': '', 'DNT': '1'}
> pool = urllib3.PoolManager(num_pools=1, headers=myheaders)
> pool.request_encode_url("GET", "https://mose.io", timeout=1).status
/venv/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning)
200

But this request (to https://mattbruenig.com) gives the warning and then hangs indefinitely:
> myheaders = {'Accept-Encoding': 'gzip,deflate', 'Accept': '*/*', 'Cookie': '', 'DNT': '1'}
> pool = urllib3.PoolManager(num_pools=1, headers=myheaders)
> pool.request_encode_url("GET", "https://mattbruenig.com", timeout=1).status
/venv/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning)

Is there a way to get this to at least raise an exception, instead of hanging? I also would have expected it to timeout. Thanks a lot.

Yes: you can turn off retries.
This is not actually hanging. The server is returning a 503 Service Unavailable response with a Retry-After header set to 3600 seconds (a.k.a. one hour). urllib3 by default respects these responses, so we stop and hold-off until the retry-after time has passed.
In general if you want to do only exactly the request you ask for, you'll need to set retries=0, or more generally set a custom retry policy.

thank you!


Node.js  Community Committee Meeting 2021-05-13

Time
UTC Thu 13-May-2021 16:00 (04:00 PM):

Timezone
Date/Time

US / Pacific
Thu 13-May-2021 09:00 (09:00 AM)

US / Mountain
Thu 13-May-2021 10:00 (10:00 AM)

US / Central
Thu 13-May-2021 11:00 (11:00 AM)

US / Eastern
Thu 13-May-2021 12:00 (12:00 PM)

EU / Western
Thu 13-May-2021 17:00 (05:00 PM)

EU / Central
Thu 13-May-2021 18:00 (06:00 PM)

EU / Eastern
Thu 13-May-2021 19:00 (07:00 PM)

Moscow
Thu 13-May-2021 19:00 (07:00 PM)

Chennai
Thu 13-May-2021 21:30 (09:30 PM)

Hangzhou
Fri 14-May-2021 00:00 (12:00 AM)

Tokyo
Fri 14-May-2021 01:00 (01:00 AM)

Sydney
Fri 14-May-2021 02:00 (02:00 AM)

Or in your local time:

https://www.timeanddate.com/worldclock/fixedtime.html?msg=Node.js+Foundation+Community Committee+Meeting+2021-05-13&iso=20210513T1600
or https://www.wolframalpha.com/input/?i=04PM+UTC%2C+May+13%2C+2021+in+local+time

Links

Minutes Google Doc: https://docs.google.com/document/d/1Z7P_ZM_oaWnbOCddDv7YZ0OanAVzp9pMmZYnPf3Hgbw/edit

Agenda
Extracted from cc-agenda labelled issues and pull requests from the nodejs org prior to the meeting.
Invited

CommComm Members: @nodejs/community-committee

Observers/Guests
Feel free to follow along on the YouTube live stream, or attend meeting as a guest
by calling in to Zoom, using the links below. If you will be attending as a guest,
please comment on this issue to let us know you'll be joining.
Notes
The agenda comes from issues labelled with cc-agenda across all of the repositories in the nodejs org. Please label any additional issues that should be on the agenda before the meeting starts.
Joining the meeting

Link for participants: https://zoom.us/j/95198277339
For those who just want to watch: https://www.youtube.com/channel/UCQPYJluYC_sn_Qz_XE-YbTQ

Invitees
Please use the following emoji reactions in this post to indicate your
availability.

:+1: - Attending
:-1: - Not attending
:confused: - Not sure yet

Good morning from Durham NC USA,
If you have a moment, review the linkedin post, let me know if anything should be adjusted, and to know if you did proof the post.
https://www.linkedin.com/posts/activity-6798584671388102656-pfke
@joesepi @mhdawson

It's Eid here, so I won't be attending.

No meeting today. No agenda items.


loadTest Deply

Warnings

:warning:
Please include a description of your PR changes.

  Generated by :no_entry_sign: dangerJS against 06b24c88bfca7203875ce39cfda21ef6df6d4ae4


Add configurability for max header field size in HPACK

Addresses https://github.com/aspnet/KestrelHttpServer/issues/2872

Updated


how to succeed logging to the same file from multiple processes

I have seen the link https://github.com/google/glog/issues/170
but I do not how to succeed logging to the same file from multiple processes.
I would like to ask where is the merge and could I change every file's name from every processed  and make files's name to the same one to solve the problem now?
Thanks very much for your help , best wishes!

Logging into the same file from multiple processes does not sound very useful. A possible implementation would inadvertently incur an unconditional runtime overhead due to necessary synchronization. This is something one wants to avoid.


feat(reset): update tailwind preflight

https://github.com/tailwindlabs/tailwindcss/blob/1eb4127de233e9323c793878d492a4c3c30c2b3b/src/css/preflight.css
Should we update/remove this rule?
https://github.com/antfu/unocss/blob/3861968ea7eab6190b2930d4f29c3cc95b02f382/packages/reset/tailwind.css#L15-L18

I don't think we need this
 ::before,
 ::after {
   --tw-content: '';
 }


chore(select): create select scaffold

Simply creates the scaffold that md-select will be built on.  md-select has no functionality yet.
r: @jelbourn.

It will be great to have Readme.md committed while scaffolding.

I know it's early but are you going to implement search and multi directives on md-select?


Docs issue: "globalstrict" described incorrectly

The docs for "globalstrict" say that it suppresses warnings if you use "use strict" at the global level. Observationally, it appears that using this option does the opposite, which is that it requires strict mode.

Are you using JSHint 2.9.0? If so, this is a duplicate of #2661

i'm on 2.8.0. this docs issue has been around for a couple of years. i finally got frustrated enough by it to report.


use scrypt for password hashing

maybe better to use social network logins: twitter, facebook.

we are using the defaul hashers of Django


rollupOptions.output.assetFileNames only working for CSS

Describe the bug
When trying to create a new output for anything other than CSS, I always only get CSS files returned
Reproduction
Laravel 11 project with Vite v5
Steps to reproduce
Console logging name shows me only CSS files despite the JS input files existing:
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';

export default defineConfig({
    plugins: [
        laravel({
            input: [
                'resources/css/app.css',
                'resources/js/app.js',
                'resources/js/hash.js',
            ],
            refresh: true,
        }),
    ],
    build: {
      rollupOptions: {
        output: {
          assetFileNames: ({ name }) => {
            console.log(name)
            return "assets/[name]-[hash][extname]"
          },
        },
      },
    }
});

System Info
Running via docker in laravel sail...

  System:
    OS: Linux 6.6 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (12) arm64 unknown
    Memory: 12.35 GB / 14.62 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.11.1 - /usr/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 10.5.0 - /usr/bin/npm
    pnpm: 8.15.5 - /usr/bin/pnpm
    bun: 1.0.33 - /usr/bin/bun
  npmPackages:
    vite: 5.1.* => 5.1.6

Used Package Manager
npm
Logs
vite v5.1.6 building for production...
✓ 50 modules transformed.
app.css
rendering chunks (1)...app.css
public/build/manifest.json              0.38 kB │ gzip:  0.16 kB
public/build/assets/app-D9zfUliR.css   43.13 kB │ gzip:  7.53 kB
public/build/assets/hash-D5cdxjL_.js    0.02 kB │ gzip:  0.04 kB
public/build/assets/app-B7i_t91Q.js   107.17 kB │ gzip: 38.42 kB
✓ built in 757ms

Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

I know this exists, however this is still an issue on 2024.

Why was this closed? It remains as a bug


Add guidelines to nominate new committers

Establishes guidelines to add new committers to the project. The guidelines are based on the respective guidelines of the Open vSwitch process as they are very well written have proven to be effective to recognize contributions to the open source project.

@borkmann @aanm @mchalla Since all of you are current committers, please approve the suggested guidelines after careful review.
Of course, everyone else is also welcome to review this and suggest changes.

The guidelines look good to me, approved:
Signed-off-by: Daniel Borkmann<EMAIL_ADDRESS>

LGTM


Add return values for selected layers in LayersControl

Description:
I primarily use st_folium in combination with LayerControl in Streamlit applications. However, one challenge I encountered is that there is no straightforward way to determine which layers are currently selected from the LayerControl. This limits functionality when trying to dynamically update components such as legends for each layer.
Here's a basic example of the issue:

The user toggles visibility of multiple layers using LayerControl.
There is no direct support to return the currently selected layers, which makes it difficult to update elements like legends that correspond to those layers.

To address this issue, I introduced a modification that allows st_folium to return the currently selected layers when interacting with the LayerControl. Now, when users toggle visibility of layers, the Streamlit app can respond accordingly, such as updating a legend for each selected layer. This greatly enhances interactivity.

@reyemb this looks like a great addition to me -- there are a couple of formatting issues that github actions caught. Would you mind fixing those? You can fix those manually, or just run pre-commit install and pre-commit run --all-files locally to have them auto-fixed for you.

Thank you for the feedback!
Here are the changes I made in response to the issues raised:
Removed the Out-of-Place Comment:
I removed the comment that was flagged as out-of-place in the previous review.
Added an Example File:
I provided an additional example file showcasing how the newly introduced functionality.
Support for All Layer Types:
In response to the feedback about whether the solution applies to different types of map layers: Yes, the solution I've implemented supports all types of layers added to the map, not just specific ones.
Previously, I was only returning the names of the layers, but I found that some providers use layers with identical names while differentiating by URLs. For this reason, the updated implementation now returns a string containing a combination of both the layer's name and URL.
The format is:

layer_name1;url1,layer_name2;url2
Layers and URLs are separated by ";"
Multiple layers are separated by ","

That way of separating out layers seems OK, but I think it would be better to just return them as json objects, like
[{"name": "foo", "url": "bar"}...]

Is there a good reason not to return them like that?
Also, can you please fix the linting changes? As I suggested here https://github.com/randyzwitch/streamlit-folium/pull/217#issuecomment-2377664168, you can do this locally with pre-commit.

Hey I thought I might go the easy way, but I adjusted to code and run pre-commit as you suggested.

I dont know why the test fails.  Me or @blackary will try running the tests locally and if they pass, then we'll merge

All but one passes locally for me @reyemb
============================================================= FAILURES =============================================================
___________________________________________ test_layer_control_dynamic_update[chromium] ____________________________________________

page = <Page url='http://localhost:8699/dynamic_layer_control'>

    def test_layer_control_dynamic_update(page: Page):
        page.get_by_role("link", name="dynamic layer control").click()
        # page.get_by_text("Show generated code").click()

        page.frame_locator('iframe[title="streamlit_folium\\.st_folium"]').get_by_text(
            "Parcels"
        ).click()
        expect(
            page.frame_locator('iframe[title="streamlit_folium\\.st_folium"]').get_by_text(
                "Parcels"
            )
        ).not_to_be_checked()
        expect(
            page.frame_locator('iframe[title="streamlit_folium\\.st_folium"]')
            .get_by_role("img")
            .locator("svg")
        ).to_be_hidden()
        expect(page.get_by_text("dashArray")).to_be_hidden()

        page.get_by_test_id("stRadio").get_by_text("Both").click()
        page.frame_locator('iframe[title="streamlit_folium\\.st_folium"]').get_by_text(
            "Parcels"
        ).click()
        expect(
            page.frame_locator('iframe[title="streamlit_folium\\.st_folium"]').get_by_text(
                "Parcels"
            )
>       ).not_to_be_checked()
E       AssertionError: Locator expected not to be checked
E       Actual value: True
E       Call log:
E       LocatorAssertions.not_to_be_checked with timeout 5000ms
E         - waiting for frame_locator("iframe[title=\"streamlit_folium\\.st_folium\"]").get_by_text("Parcels")
E         -   locator resolved to  Parcels
E         -   unexpected value "checked"
E         -   locator resolved to  Parcels
E         -   unexpected value "checked"
E         -   locator resolved to  Parcels
E         -   unexpected value "checked"
E         -   locator resolved to  Parcels
E         -   unexpected value "checked"
E         -   locator resolved to  Parcels
E         -   unexpected value "checked"
E         -   locator resolved to  Parcels
E         -   unexpected value "checked"
E         -   locator resolved to  Parcels
E         -   unexpected value "checked"
E         -   locator resolved to  Parcels
E         -   unexpected value "checked"
E         -   locator resolved to  Parcels
E         -   unexpected value "checked"

tests/test_frontend.py:384: AssertionError
========================================================= warnings summary =========================================================
tests/test_package.py::test_map
  <frozen importlib._bootstrap>:488: DeprecationWarning: Type google.protobuf.pyext._message.ScalarMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.

tests/test_package.py::test_map
  <frozen importlib._bootstrap>:488: DeprecationWarning: Type google.protobuf.pyext._message.MessageMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.

tests/test_package.py::test_map
  /Users/randyzwitch/miniconda3/envs/streamlit-folium/lib/python3.12/site-packages/google/protobuf/internal/well_known_types.py:91: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
    _EPOCH_DATETIME_NAIVE = datetime.datetime.utcfromtimestamp(0)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
------------------------- generated xml file: /Users/randyzwitch/github/streamlit-folium/test-results.xml --------------------------
===================================================== short test summary info ======================================================
FAILED tests/test_frontend.py::test_layer_control_dynamic_update[chromium] - AssertionError: Locator expected not to be checked
============================================ 1 failed, 21 passed, 3 warnings in 35.83s =============================================
(streamlit-folium) randyzwitch@Randys-MBP streamlit-folium %

Going to merge this. I believe that #219 from @blackary might fix the test, not sure

@reyemb ...my apologies, but can you re-submit this PR? I made a logical error about the order I could merge these PRs, and I cannot re-open this one
Should just be hitting the button again from your fork to re-submit


add iconUrl

Thanks for submitting a pull request to newrelic/opensource-website.
If possible, please help the maintainers by leveraging the following conventional commit standards in your pull request title and commit messages.
Use chore

for changes / additions / corrections to content in the src/data/project-main-content, src/data/projects directories
for changes / additions / corrections to images in the static/images directory
for functional changes / additions to code in the examples directory

Example
git add src/data/projects/newrelic-nr1-github.json
git add src/data/project-main-content/newrelic-nr1-github.mdx
git commit -m "chore(nr1-github): adjusting config and content"
git push

Use fix

for functional corrections to code in the src/components, src/templates, src/fragments, src/pages or directories
for corrections in the src/data/oss-category or src/data/project-tags directories
for functional corrections to code in the examples directory

Example
git add src/pages/code-of-conduct.mdx
git commit -m "fix: typo and prop error in the code of conduct"
git push

Use feat

for functional changes / additions to code in the src/components, src/templates, src/fragments, src/pages or directories
for changes / additions in the src/data/oss-category or src/data/project-tags directories

Example
git add src/pages/video.js
git commit -m "feat(media): creating a video landing page"
git push

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

@adwetzelnr Thanks for the contribution. It looks like you haven't signed the CLA yet. If you could do that and update the link, I'll merge this in right away. Thanks!

Signed the CLA, thanks.  And this PR is to fix the typo from my first PR.  So this should supersede the other, if there is such a thing :)

Closing b/c the change was addressed in another PR.


Tessel get seeker option

Tessel.get and Tessel.list accept additional option
opts.authorized for filtering seekers result.
fixes https://github.com/tessel/t2-cli/issues/368

@johnnyman727 @rwaldron
Changed default value and also added a reasonable opts.authorized to
each command what calls Tessel.get or
controller.standardTesselCommand`` - also the CASE of Tessel.js connection.connectionType === USBdefaults to connection.authorized
=== true`

I just did smoke testing with an unauthorized T2 and this nicely prevents the Unhandled rejection Error: Not connected issue.
Once this is merged, then I'm +1 on this PR.

@rwaldron @johnnyman727 my local tests pass - don't know why Travis-CI is angry ... :sleeping: now

:tada: Travis-CI error fixed also - before :tea: + :egg: (breakfast) :yum:

@Student007 great work!

Landed

:notes: :dancers: :notes:
great teamwork!
:bow:


Access 'touchstart' event

Hi @jerosoler ,
is it possible to access the 'touchstart' event on the editor?
I would like to be able to move the flowdiagram around by using two fingers touch without having to click and drag the diagram around.
I wasn't able to do so with the following snippet:
  editor.value.on('touchstart', (event: any) => {
    console.log('in touch event', event)
    if (event.targetTouches.length == 2) {
      // move the diagram around ?
    }
  })

But I don't get the log statement, nor do I know how to move the entire diagram according to the input (if it gets recognized).
Is that even possible with your library? 😄

Hi!  @SilasNiewierra
This should work.
editor.on('click', (e) => {
if(e.type === "touchstart") {
 //you code
 }
})

You can see in the start function how the events are set.
https://github.com/jerosoler/Drawflow/blob/523a2f7cc551dd4b366d71694eef046c7f72d93b/src/drawflow.js#L53

Hi @jerosoler ,
click is only fired if I click on the editor.
But I want an event that reacts when I touch the editor (touch the trackpad on my laptop) instead of clicking it? 🤔

Have you tried it?
The library has a touchstart event:
 this.container.addEventListener('touchstart', this.click.bind(this));

Which triggers the function click
And the click function:
 click(e) {
    this.dispatch('click', e);
    ...

So I should be listening to the event.

Yes I tried it.
Only when I click the editor surface, I get a reaction (the console log).
If I just touch the trackpad, nothing happens.
But zooming in and out by pinching my fingers on the trackpad works (without printing a console log though).
My code:
editor.value.on('click', (e: Event) => {
    console.log('in here with event: ', e)
})

Try the native event to see if it shows you information. In other div o in div drawflow.
...addEventListener('touchstart', function(){
console.log("test");
});

I tried, but nothing gets fired. 🤔 not only in the library. Seems like a bigger issue, which has nothing to do with Drawflow 😄  thanks again


Derive Typesafe Config decoders without requiring imports from com.typesafe.config

It would be nice to be able to use deriveDecoder without having to import anything from com.typesafe.config.

Now possible with #52, although the documentation may need an update.


Add TUS

Add the Technical University of the Shannon. Ireland

amalgamation of https://ait.ie/ & https://lit.ie/

@boardtc First stage of verification passed, official domain is tus.ie as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@philipto Thanks very much, What typically is the timeline for a decision?

My license expires in 4 days so definitely keen to get this resolved!

@boardtc Thank you for your patience while waiting for a review and processing your request. Pull request merged.


Write a C++ program for binary search

Description
Write a C++ program for binary search
Binary search is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the middle element of the array. If they are not equal, the half in which the target cannot lie is eliminated and the search continues on the remaining half, again taking the middle element to compare to the target value, and repeating this until the target value is found. If the search ends with the remaining half being empty, the target is not in the array.
Input  : 10 20 30 40 50 60 70 80 90 100
Target : 30

Output : 2

Steps to implement Binary Search

Compare x with the middle element.
If x matches with middle element, we return the mid index.
Else If x is greater than the mid element, then x can only lie in right half subarray after the mid element. So we recur for right half.
Else (x is smaller) recur for the left half.
End

10 20 30 40 50 60 70 80 90 100
------------------------------
            ^
            30 => Not Found

10 20 30 40 50 60 70 80 90 100
--------------
      ^
      30 => Found

Contributed by - @PravunathSingh

How to contribute

Save the solution in BinarySearch.cpp file
Add BinarySearch.cpp file in dsa/binary-search folder

!assign