text:
feat(338): add new pitchdeck slides to homepage

Description
This PR updates the homepage based on the latest figma guidelines (linked here).
Leaving as draft for @thansidwell and stakeholders to review — specific feedback requests include:

I copied some of the graphics directly from the figma, but I believe you meant some of them as placeholders for now — would love your feedback on the finalized versions of those section graphics?
I assumed the final "Get Started" link went to /map, but that was a shot in the dark.
I could use more direction on the mobile view sizes for the "three blue boxes" graphic.

Desktop (1980px)

Mobile (375px)

Closes #338

@paulhchoi I did a quick test using a screen reader to see how the list is read out, unfortunately it isn't favourable. It's confusing to have 3 lists that house only 1 item each.  I'm currently researching how to make the list appear the way we wanted to through CSS so we only have one list.
Another thing is I recommend hiding this image from screen readers since it's just a repetition of the list item, and not adding value to the meaning of this section. cc @bacitracin

@paulhchoi, great work on all this. Here's a few minor issues I found.

The headline and subheading don't align with the photos. Can you align them to 2/3 and 1/3 layout?  https://share.cleanshot.com/PfRHxtDN
On small screens lets hide these two photos. It's too many photos for such a small screen. https://share.cleanshot.com/CmQrg881
As the screen gets wide the gap between the text and graphics isn't centered. Can you try to center it? https://share.cleanshot.com/gfcYDnQ3
The buttons on the home page are different than the buttons elsewhere. https://share.cleanshot.com/tkKD8htP We have about 3 different-looking variants and I'm trying to unify them into one button style with several variations with this ticket. https://github.com/CodeForPhilly/vacant-lots-proj/issues/288  Not sure what button to use. The nav buttons in your preview look like the closest to what the design is.

@paulhchoi RE: https://github.com/CodeForPhilly/vacant-lots-proj/issues/338#issuecomment-1994673318
I did a quick screen reader pass to see how the nested list is announced. It doesn't make sense to have a 3 different lists that only have 1 item each, so it was confusing.

Video Demo
https://github.com/CodeForPhilly/vacant-lots-proj/assets/102739972/03be05dd-63a3-4631-b1e1-d8ca30863f6d

We can just drop the
, and make those 3 items straight
s. It's essentially just another heading, with number in the beginning.
That said, let's make this image a list, because it now assists the succeeding h3 headings - denoting that it's a 3 step process.

Details

use
,
  because Voice Over refuses to announce the list without explicit role of list/listitem
hide the icons from screen readers

cc @bacitracin

@thansidwell @marvieqa requesting a review, all feedback should've been applied — thanks for the feedback thus far.
@thansidwell thoughts on the coloring for the main cta button?:
https://github.com/CodeForPhilly/vacant-lots-proj/assets/8061917/54664f97-4c4a-4f93-809d-225fde0716d0

Thanks @paulhchoi! The experience is a lot better!
I ran into some small things:

The links found after the H3s (ex. Find Properties, Get Access and so on...) are not recognized as links when using a screen reader. It is announced incorrectly as buttons.
When user selects "Learn How" button, we scroll to the content which is a visual cue to start reading. But this doesn't translate to screen reader users. We should manage the focus to go to the first
 so SR announces it immediately after scroll as a cue for them that something has changed. If this is out of scope, let me know I'll write up a separate tix.

@marvieqa made the updates to the The links found after the H3s with some notes:

the tab-index="0" just comes prepackaged with the @next-ui/buttons, so I left it in as it wasn't effecting my screenreader during testing. There's also a ticket open to refactor all buttons on the site, so this fix may come for free.

I added the appropriate id to the
 so the screenreader drops to it when the Learn How button is clicked, but on testing, the screenreader wasn't reading the h2 text immediately. Opening another ticket would work.

@thansidwell I added the links to the copy of a couple of the sections and also added the default blue/darkblue/purple styling.

@thansidwell regarding the scroll down button, @marvieqa requested we link the
 anchor for screen-reader purposes. I'll revert back to adding the anchor id to the section itself, and @marvieqa, please add this as an acceptance criteria to the ticket you're opening — to ensure that the scroll action doesn't cut off the graphic on desktop viewports. Thanks!

@paulhchoi Interesting. The "Learn How" button is there to urge people to scroll down below the fold to read the other content. I'm not sure visually impaired people with screen readers behave the same way. @marvieqa, could we test what actually happens for screen readers when the ID is put on the section vs the heading? If it still need to be on the heading we can add a negative margin to make sure it doesn't go to far.

@paulhchoi I also notice that "This tool can empower..." disappears on mobile. https://share.cleanshot.com/kx293byC

@paulhchoi Interesting. The "Learn How" button is there to urge people to scroll down below the fold to read the other content. I'm not sure visually impaired people with screen readers behave the same way. @marvieqa, could we test what actually happens for screen readers when the ID is put on the section vs the heading? If it still need to be on the heading we can add a negative margin to make sure it doesn't go to far.

@thansidwell I checked both, when @paulhchoi had it on the section and when the ID is on
. But like Paul's experience, the screen reader did not announce it for me as well, so I'm making a separate ticket for it and do a bit of research, make recommendations from there ;).
When a screen reader user reaches "Learn How" button and activates it, there should be some form of announcement of what has changed, what did the button do. Otherwise, they will not know what has occurred, that we actually scrolled down to encourage further reading - so they are left confused. The easiest way to do this is to programmatically manage the focus to fall on something that a screen reader can announce. If the focus goes to the next heading, then they would be prompted that there are further contents to read in the page. This gives them an equitable experience as sighted users who get visual cue from the scroll action.

@thansidwell

Right now the navigation scrolls away, but it should be fixed, just like on the About and Take Action pages.
I also noticed that "This tool can empower..." disappears on mobile.

both are corrected

@thansidwell bump for a review of this please?

Looks great! Pass.

Looks great! Pass.

Thanks! Now requesting a review from either @thansidwell or @nlebovits

authors: marvieqa paulhchoi thansidwell

repo: CodeForPhilly/vacant-lots-proj


text:
[Feature Request]:   solution for leetcode 953

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
I would like to add solution in c++,java,python, javascript for leetcode problem 953. Verifying an Alien Dictionary
Use Case
solution for leetcode 953
Benefits
No response
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

@Ajay-Dhangar  can you please assign me.

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
Overflow error

When more than 4 BottomBarItems are used its show renderflex overflow error.

Thanks for reporting the issue @marc-walton . Could you send a screenshot of what the BottomBar with overflow error looks like in your end?

Closing since there is no response for 4 months.

I am having the same issue when I use different language. Please consider this.

authors: CoderUni Purus marc-walton


text:
Code Bogosort algorithm :infinity: in any programming language you like :computer:

Code Bogosort algorithm :infinity: in the relevant language folder :file_folder: in the main branch.
if language folder doesn't exist you can make folder :file_folder: and add your program in it.
You can find new languages in this Programming Language List.
Give star :star: to this repository.

can you assign this issue to me? I would like to contribute.

Hello There @iParadocx , I would like to contribute to this, Could you please assign me?
Thank you.

repo: Codewave-Crew/Lets-Do-Code


text:
🛑 Date is down

In 889bd3a, Date (https://dubae.vip) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Date is back up in 978f8aa.

repo: Codifta/uptime


text:
🛑 Date is down

In e5b65f6, Date (https://dubae.vip) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Date is back up in 14e8050 after 7 minutes.


text:
View Actions tooltips are not showing

I've encountered an issue with tooltips not displaying for the actions within views toolbar. Specifically, tooltips appear correctly for main activities, such as hovering over the search icon which displays the "Search" tooltip. However, tooltips fail to appear for actions within the explorer view, like the 'New File' action.
The above issue happens in the default (attached views) mode, but it's working correctly in the full workbench mode.
I'm able to reproduce the issue in the demo as well.

Thanks for the report!

@CGNonofr Thanks for working on this! It fixed the problem for most tooltips of the editor but the issue still there for actions in the title - like when there is only 1 view in a view container, the tooltips won't work.
https://github.com/CodinGame/monaco-vscode-api/assets/10572734/62fc4a7f-2536-4a38-bfbe-30b8e539aa9b

authors: Abdallatif CGNonofr

repo: CodinGame/monaco-vscode-api


text:
Modified the url class in --reduced size in the LinkList.module.css file

Hi, I modified the url class in --reduced size in the LinkList.module.css. I opened the website in development mode and that seems to have fixed the problem.

Close #798

Can confirm the issue is fixed.

Sorry, then I work on it yet. Thanks the review. :)

@allcontributors add @zvolcsey for code

Thank you, this is great!

source: gharchive/pull-request

authors: dipamsen shiffman zvolcsey


text:
Tr/claude3

Type
enhancement, bug_fix

Description

Added support for the anthropic/claude-3-opus-20240229 model in the AI model configuration.
Implemented command execution functionality for the Bitbucket app, allowing for dynamic command execution based on PR events.
Refactored error handling in litellm_ai_handler.py by removing TryAgain exception usage.
Updated documentation to include instructions for configuring Anthropic models and the new pr_commands feature for Bitbucket app.
Updated configuration.toml to demonstrate the use of pr_commands for Bitbucket app.
Upgraded litellm and openai dependencies to newer versions.

Changes walkthrough
Relevant filesEnhancement

__init__.pyAdd Support for Anthropic Claude-3 Model

pr_agent/algo/init.py
Added support for the anthropic/claude-3-opus-20240229 model with a token limit of 100000.

+2/-1

bitbucket_app.pyImplement Command Execution Functionality for Bitbucket App

pr_agent/servers/bitbucket_app.py
Added update_settings_from_args function call to update settings based on command arguments.  Implemented _perform_commands_bitbucket to execute configured commands for Bitbucket PRs.  Modified webhook handler to support new command execution logic based on pr_commands configuration.

+32/-12

Bug_fix

litellm_ai_handler.pyRefactor Error Handling and Remove Detailed Docstring

pr_agent/algo/ai_handlers/litellm_ai_handler.py
Commented out import statement for TryAgain from openai.error.  Removed the TryAgain exception from the retry decorator and the exception handling.  Removed detailed docstring for chat_completion method.  Changed the exception raised from TryAgain to APIError when the response is None or empty.

+6/-24

Documentation

Usage.mdUpdate Documentation for Bitbucket App Configuration and Anthropic Models Support

Usage.md
Updated documentation to reflect new pr_commands configuration for Bitbucket app.  Added documentation for configuring Anthropic models.

+21/-12

Configuration changes

configuration.tomlUpdate Configuration for Bitbucket App Command Execution

pr_agent/settings/configuration.toml

Added pr_commands configuration for Bitbucket app.

+4/-3

Dependencies

requirements.txtUpgrade Dependencies `litellm` and `openai`

requirements.txt
Upgraded litellm to version 1.29.1.  Upgraded openai to version 1.13.3.

+2/-2

✨ PR-Agent usage:
Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

Preparing review...

Preparing review...

Preparing review...

Persistent review updated to latest commit https://github.com/Codium-ai/pr-agent/commit/26fb2a416448e9b7ee8b8077ddc268ad12d9fb7c

Preparing review...

PR Review

 ⏱ Estimated effort to review [1-5]
4, due to the complexity and variety of changes across multiple files, including model support addition, error handling refactoring, dynamic command execution, and dependency upgrades. Understanding the impact of these changes requires a deep understanding of the existing codebase and the functionalities being modified or added.

 🧪 Relevant tests
No

 🔍 Possible issues

Possible Bug: The removal of TryAgain exception handling in litellm_ai_handler.py without a clear replacement might lead to unhandled error scenarios that were previously retried. This could affect the robustness of the error handling mechanism.

Performance Concern: The dynamic command execution feature in bitbucket_app.py introduces additional complexity and potential performance overhead, especially if the commands list grows or if the commands themselves are resource-intensive.
 🔒 Security concerns
No

 🔀 Can this PR be split?

Sub PR theme: Add Support for Anthropic Claude-3 Model

Relevant files:

pr_agent/algo/__init__.py
Usage.md

Sub PR theme: Refactor Error Handling in litellm_ai_handler

Relevant files:

pr_agent/algo/ai_handlers/litellm_ai_handler.py

Sub PR theme: Implement Dynamic Command Execution for Bitbucket App

Relevant files:

pr_agent/servers/bitbucket_app.py

Sub PR theme: Update Documentation and Configuration Examples

Relevant files:

Usage.md
pr_agent/settings/configuration.toml

Sub PR theme: Upgrade Dependencies

Relevant files:

requirements.txt

 Code feedback:
relevant filepr_agent/algo/ai_handlers/litellm_ai_handler.pysuggestion

Consider reintroducing a retry mechanism or a more specific error handling strategy for cases where the API call fails in a manner that was previously retried with TryAgain. This ensures robustness and reliability of the AI handler. [important]

relevant linefrom openai import APIError, RateLimitError, Timeout
relevant filepr_agent/servers/bitbucket_app.pysuggestion

Validate and sanitize the commands and args extracted from the configuration to prevent potential security risks or errors due to malformed commands. This is crucial when dynamically executing commands based on external input. [important]

relevant linesplit_command = command.split(" ")
relevant filepr_agent/servers/bitbucket_app.pysuggestion

Implement error handling for the new dynamic command execution feature to ensure that failures in one command do not halt the execution of subsequent commands. This could include logging the error and continuing with the next command. [medium]

relevant lineget_logger().error(f"Failed to perform command {command}: {e}")
relevant filepr_agent/algo/__init__.pysuggestion

Ensure that the token limit for the newly added anthropic/claude-3-opus-20240229 model aligns with the actual capabilities and limitations of the model to prevent unexpected behavior. [medium]

relevant line'anthropic/claude-3-opus-20240229': 100000,

 ✨ Review tool usage guide:
Overview:
The review tool scans the PR code changes, and generates a PR review. The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
When commenting, to edit configurations related to the review tool (pr_reviewer section), use the following template:
/review --pr_reviewer.some_config1=... --pr_reviewer.some_config2=...

With a configuration file, use the following template:
[pr_reviewer]
some_config1=...
some_config2=...

  Utilizing extra instructions
The review tool can be configured with extra instructions, which can be used to guide the model to a feedback tailored to the needs of your project.
Be specific, clear, and concise in the instructions. With extra instructions, you are the prompter. Specify the relevant sub-tool, and the relevant aspects of the PR that you want to emphasize.
Examples for extra instructions:
[pr_reviewer] # /review #
extra_instructions="""
In the 'possible issues' section, emphasize the following:
- Does the code logic cover relevant edge cases?
- Is the code logic clear and easy to understand?
- Is the code logic efficient?
...
"""

Use triple quotes to write multi-line instructions. Use bullet points to make the instructions more readable.

  How to enable\disable automation

When you first install PR-Agent app, the default mode for the review tool is:

pr_commands = ["/review", ...]

meaning the review tool will run automatically on every PR, with the default configuration.
Edit this field to enable/disable the tool, or to change the used configurations

  Auto-labels
The review tool can auto-generate two specific types of labels for a PR:

a possible security issue label, that detects possible security issues (enable_review_labels_security flag)
a Review effort [1-5]: x label, where x is the estimated effort to review the PR (enable_review_labels_effort flag)

  Extra sub-tools
The review tool provides a collection of possible feedbacks about a PR.
It is recommended to review the possible options, and choose the ones relevant for your use case.
Some of the feature that are disabled by default are quite useful, and should be considered for enabling. For example:
require_score_review, require_soc2_ticket, and more.

  Auto-approve PRs
By invoking:
/review auto_approve

The tool will automatically approve the PR, and add a comment with the approval.
To ensure safety, the auto-approval feature is disabled by default. To enable auto-approval, you need to actively set in a pre-defined configuration file the following:
[pr_reviewer]
enable_auto_approval = true

(this specific flag cannot be set with a command line argument, only in the configuration file, committed to the repository)
You can also enable auto-approval only if the PR meets certain requirements, such as that the estimated_review_effort is equal or below a certain threshold, by adjusting the flag:
[pr_reviewer]
maximal_review_effort = 5

  More PR-Agent commands

To invoke the PR-Agent, add a comment using one of the following commands:

/review: Request a review of your Pull Request.
/describe: Update the PR title and description based on the contents of the PR.
/improve [--extended]: Suggest code improvements. Extended mode provides a higher quality feedback.
/ask <QUESTION>: Ask a question about the PR.
/update_changelog: Update the changelog based on the PR's contents.
/add_docs 💎: Generate docstring for new components introduced in the PR.
/generate_labels 💎: Generate labels for the PR based on the PR's contents.
/analyze 💎: Automatically analyzes the PR, and presents changes walkthrough for each component.

See the tools guide for more details.
To list the possible configuration parameters, add a /config comment.

See the review usage page for a comprehensive guide on using this tool.

/review

/help

/review

/improve

repo: Codium-ai/pr-agent


text:
Have bootstrap force version upgrade

@yimuchen can you test? (I also just made a 0.2.9 release)
Annoyingly, bootstrap.sh always has to be updated after new tags, but I don't see another way unless we have some pre-release-hook github action. Anyway it's pretty easy to manage so far

Just tried the following:
Install 0.2.8 using old bootstrap script.
download/run the new bootstrap script
checked that the lpcjobqueue version in python environment has been updated to 0.2.9
So it seems to work.

authors: nsmith- yimuchen

repo: CoffeaTeam/lpcjobqueue


text:
Remember last open directory

Since there is Home key to go to current dir and Shift+HOME to go to root

When I close and reopen mpv, pressing option or ctrl+o opens the root folder. Can it remember the last directory I opened, even if it's not the root directory?

Theoretically this feature could be implemented, but currently it's not supported. I'll consider implementing this if I find the time, but in the meantime I will leave this issue open.

repo: CogentRedTester/mpv-file-browser


text:
Support for all release targets of .NET MAUI?

I'm currently exploring .NET MAUI, and as it is, this project works brilliantly, but only for the android portion of .NET MAUI.  If I have time, I'll look through the code and see if I can send a pull request once I figure out how to fix it, but until then, I just felt it was best if you were aware.  :)
In other words, this doesn't currently play well with other targets for a multi-target project, such as .NET MAUI.  At least, not when creating such an app from the provided template for .NET MAUI.

Thanks for the heads-up! I am working on an M1 Mac without Rosetta 2 (because reasons), so I can't really test a MAUI project. I'd still be grateful if you could send a reproduction project (either .zip or GitHub-Repository) and let me know exactly what does not work. Maybe I can further pinpoint the issue.

Closing due to lack of further feedback. Feel free to reopen the issue with additional feedback anytime.

authors: CollinAlpert Nerketur


text:
Modify getPayoutRating func to be dynamic based on config.historySize param

export const config = {
  name: 'Kusama Validator Resource Center',
  nodeWs: 'wss://kusama-rpc.polkadot.io',
  denom: 'KSM',
  addressPrefix: 2,
  historySize: 28, // <---
  polkascanAPI: 'https://explorer-31.polkascan.io/kusama/api/v1', // no trailing slash
}

Done!


text:
Fixed bugs determining next schedule time when last weekly event was …

…current and also in unit test.

Codecov Report

Merging #64 into master will increase coverage by 0.09%.
The diff coverage is 55.55%.

@@            Coverage Diff             @@
##           master      #64      +/-   ##
==========================================
+ Coverage   74.24%   74.34%   +0.09%
==========================================
  Files           8        8
  Lines         563      569       +6
  Branches       95       97       +2
==========================================
+ Hits          418      423       +5
+ Misses         69       68       -1
- Partials       76       78       +2

Impacted Files
Coverage Δ

src/schedule.c
72.78% <55.55%> (+0.38%)
:arrow_up:

Continue to review full report at Codecov.

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

authors: cableramki codecov-io

repo: Comcast/aker

license_source: bigquery


text:
Release process doc

#578

We should see what happens to our automatic container builds before we fully finish this document.

Hold on merging this, I'm adding notes how Helm repo is publshed.

@joshulyne I think this updated README is valid given our new build processes and automation.  More work would be great to automate the tagging and pushing of versioned images, but this process should be accurate to current day.

@joshulyne I think this updated README is valid given our new build processes and automation.  More work would be great to automate the tagging and pushing of versioned images, but this process should be accurate to current day.

authors: chadbitzer integrii joshulyne

repo: Comcast/kuberhealthy


text:
Upgrade k8s.io packages to v1.19.0

Required k8s.io packages seem to be a bit old.
This PR updates k8s.io/api, k8s.io/apimachinery and k8s.io/client-go packages to v0.19.0 and adjust the code accordingly.
I've ran go test ./... and got few failures, but I'm not sure if they are related to this PR changes. Is there a better way trigger the some tests?

 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.Adrian Aneci seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

This looks great!  I think we're going to do some extra validation on our end before merging this one.  We also might be able to implement some of those context.TODO() items.  Thank you!

tested these changes in our lab clusters and it worked fine! 👍 thanks for the upgrade!!

I made an issue to fill in the missing contexts: #640

authors: CLAassistant adriananeci integrii joshulyne


text:
Adds HdfsUtils and deprecates Guard

This fixes #285, as the new methods return Hdfs actions.

Aside from the method name style for the tests and a question about sorting, I am ok :+1: with this.

@toddmowen can you merge this code without the changes to permafrost due to the Scala 2.11 upgrade and raise an issue to do this later.

authors: stephanh toddmowen vineethvarghese

repo: CommBank/maestro


text:
Publish to Maven Central

If artifact is published to Maven Central then other libraries published there can depend on it. Moreover, there is no need to add jitpack repo to buildscript for users since either mavenCentral() or jcenter() (which contains everything from Maven Central) is usually already added.
Plugins like https://github.com/vanniktech/gradle-maven-publish-plugin can be used to simplify publishing.

Sorry, no plans to do this.

authors: Jawnnypoo koral--


text:
[Bug] Upgraded to latest version and .Net7 and generated classes for TextAlignmentGenerator do not compile

The call is ambiguous between the following methods or properties: 'CommunityToolkit.Maui.Markup.TextAlignmentExtensions_Editor.TextCenterHorizontal(Microsoft.Maui.Controls.Editor)' and 'CommunityToolkit.Maui.Markup.TextAlignmentExtensions_Editor.TextCenterHorizontal(Microsoft.Maui.Controls.Editor)'	(net7.0-windows10.0.19041.0)	[REDACTED]\CommunityToolkit.Maui.Markup.SourceGenerators\CommunityToolkit.Maui.Markup.SourceGenerators.TextAlignmentExtensionsGenerator\EditorTextAlignmentExtensions.g.cs	122	Active

Hi @OmiCron07!
Please edit your Issue and include the information required in the New Issue template. We cannot help you solve this bug without the information we ask for in the New Issue template.

Bug Template
<!--
Hello, and thanks for your interest in contributing to the .NET MAUI Markup Toolkit!

Please describe the issue below, including detailed steps for reproduction. If we are unable to reproduce the bug we will be unable to fix the issue and may close this Issue.

-->

### Description

<!-- Please provide a detailed description of the issue -->

### Stack Trace

<!-- Please copy/paste the complete stack trace (if applicable) -->

### Link to Reproduction Sample

<!-- Please link to a GitHub Repo or GitHub Page -->

### Steps to Reproduce

1.
2.
3.

### Expected Behavior

### Actual Behavior

### Basic Information

- Version with issue:
- Last known good version:
- IDE:
- Platform Target Frameworks: <!-- All that apply -->
  - iOS:  <!-- The version of the iOS SDK you are compiling against, e.g. 11.1 -->
  - Android: <!-- The version of the Android SDK you are compiling against, e.g. 7.1 -->
  - UWP:  <!-- The version of the UWP SDK you are compiling against, e.g. 16299 -->
- Android Support Library Version: <!-- if applicable -->
- Nuget Packages:
- Affected Devices:

### Workaround
<!-- If you've found a way around this issue, help other users out and share the workaround -->

### Reproduction imagery

<!-- If it is a visual issue, please include imagery (GIF/Screenshots) showing the problem -->


text:
Font discrepancy between arXiv and pdfTeX

The arXiv compiler seems to use a different, larger font than pdfTeX for the same code with the compositionalityarticle class, which adds up to a big difference between the two documents.
Here's a screenshot of the arXiv version:

versus the pdfTeX Version 3.14159265-2.6-1.40.19 (TeX Live 2018)

Ideally I'd like the arXiv version version to look the same as the one I compiled myself, would there be a quick fix for that? Enforcing font settings one way or another?

This should now be fixed in v2.

authors: n-otter toumix

repo: Compositionality/latex-template


text:
Make CyVerse Data Store input/output optional

As a togglable alternative to direct upload/download. Depends on https://github.com/Computational-Plant-Science/plantit-cli/issues/21

Zip file of outputs can now be downloaded from run page (as of b8f2330)

Zip file of outputs can now be downloaded from run page (as of b8f2330)

repo: Computational-Plant-Science/plantit


text:
try-again not working on newest master, error msg: "UncaughtThrowError: uncaught throw :try_again"

Following is code example:
require 'pry-rescue'

def test
  raise "foo"
  # puts "foo"
rescue => e
  raise "bar"
end

binding.pry

Following is my gem version:
Fetching method_source-1.0.0.gem
Fetching interception-0.5.gem
Fetching pry-0.14.0.gem
Fetching pry-rescue-1.5.2.gem
Fetching coderay-1.1.3.gem
Successfully installed coderay-1.1.3
Successfully installed method_source-1.0.0
Successfully installed pry-0.14.0
Building native extensions. This could take a while...
Successfully installed interception-0.5
Successfully installed pry-rescue-1.5.2
5 gems installed

Following is reproduce:
From: /home/zw963/1.rb:11 :

     6: rescue => e
     7:   raise "bar"
     8: end
     9:
    10: # pry!
 => 11: binding.pry

[1] pry(main)> test
RuntimeError: bar
from 1.rb:7:in `rescue in test'
Caused by RuntimeError: foo
from 1.rb:4:in `test'
[2] pry(main)> cd-cause

From: /home/zw963/1.rb:4 Object#test:

    3: def test
 => 4:   raise "foo"
    5:   # puts "foo"
    6: rescue => e
    7:   raise "bar"
    8: end

RuntimeError: foo
from 1.rb:4:in `test'
[1] pry(main)> edit -m
Waiting for Emacs...

From: /home/zw963/1.rb:10 :

     5:   puts "foo"
     6: rescue => e
     7:   raise "bar"
     8: end
     9:
 => 10: binding.pry

[1] pry(main)> try-again
UncaughtThrowError: uncaught throw :try_again
from /home/zw963/others/.rvm/gems/ruby-2.7.1@rescue/gems/pry-rescue-1.5.2/lib/pry-rescue/commands.rb:74:in `throw'
[1] pry(main)>

Tested on both 2.7.1 and 3.0.0, thank you.

+1

Isn't your example missing wrapping the test call with Pry.rescue?
e.g.
Frame number: 0/0

From: /home/jason/Code/scratch/pry-rescue-test.rb:10 :

     5:   raise 'foo'
     6: rescue => e
     7:   raise 'bar'
     8: end
     9:
 => 10: binding.pry

[1] pry(main)> Pry.rescue { test }

Frame number: 0/18
Frame type: rescue

From: /home/jason/Code/scratch/pry-rescue-test.rb:7 Object#test:

    4: def test
    5:   raise 'foo'
    6: rescue => e
 => 7:   raise 'bar'
    8: end

RuntimeError: bar
from pry-rescue-test.rb:7:in `rescue in test'
Caused by RuntimeError: foo
from pry-rescue-test.rb:5:in `test'
[1] pry(main)> try-again

Frame number: 0/18
Frame type: rescue

From: /home/jason/Code/scratch/pry-rescue-test.rb:7 Object#test:

    4: def test
    5:   raise 'foo'
    6: rescue => e
 => 7:   raise 'bar'
    8: end

RuntimeError: bar
from pry-rescue-test.rb:7:in `rescue in test'
Caused by RuntimeError: foo
from pry-rescue-test.rb:5:in `test'
[1] pry(main)>

Yes, you are right, thank you.

authors: jasonewall jurriaanschrofer zw963

repo: ConradIrwin/pry-rescue

license: mit


text:
raw_json method alternative

I am trying to ditch Rails, and put showterm player in a Sinatra app along with old script linux command (not the *improved version in showterm).
What is a good alternative for the raw_json method in Standard Library or a standalone gem other than active_support which is what raw_json is using?
https://github.com/ConradIrwin/showterm.io/blob/master/app/helpers/scripts_helper.rb#L3-L14

raw is only needed to stop rails HTML-escaping the result, the .to_json.gsub() is the only bit you need, and the standard libraries' JSON will work just fine.

thanks for the tip, i have been running into some weird issues if the replay contains emacs, is there a way to debug showterm to understand which sequence is causing the error and maybe trace it?

you might want to try upgrading the js emulator, the showterm code itself doesn't do much with the values

Thanks again!! really appreciate it! I did upgrade the term.js file but still getting the same error, "Uncaught TypeError: Cannot set property 'innerHTML' of undefined"  the latest term.js file "this.children[y].innerHTML = out;"
I could help to track down whats wrong if i am sure it is not something related to the showterm improved script implementation as i am not using it for this quick hack. so I guess its a term.js issue now!

The script implementation in the repo is just for mac users, it's probably out of date by now too :) I don't think I changed anything

I think i was getting errors due to big terminal dimensions!!

authors: ConradIrwin zotherstupidguy


text:
change css style for title

I've changed the color of the title to be more orange
here are the code:
h1 {
	color: #ea9f1d;
}

All right good job. The changes look much better than before

all done

repo: Consciously/con-github-crashcourse


text:
Fix interfaceId computation

Tasks
Fixes #48.
Changes

[x] Fixed interfaceId computation via using more precise BigInt type. Added left zero-padding to always return 4 bytes.
[x] Added new test sample, fixed affected test suite.

Regards.

Codecov Report

Merging #50 (6ae8b70) into master (9eb5c6e) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #50      +/-   ##
==========================================
+ Coverage   91.90%   91.93%   +0.02%
==========================================
  Files         239      239
  Lines        4734     4734
  Branches      723      723
==========================================
+ Hits         4351     4352       +1
+ Misses        235      234       -1
  Partials      148      148

Impacted Files
Coverage Δ

.../implementation/declaration/contract_definition.ts
97.29% <100.00%> (+1.35%)
:arrow_up:

Continue to review full report at Codecov.

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

repo: ConsenSys/solc-typed-ast


text:
Fix code scanning alert - Insertion of sensitive information into log files

Consider using a secure logging library for Java
Tracking issue for:

[ ] https://github.com/ConsenSys/teku/security/code-scanning/652

Going to close this one - we already have this alert tracked through the code scanning alerts and the information being logged isn't sensitive (and is important for the user to see to be able to resolve the issue).

authors: ajsutton behroozreview

repo: ConsenSys/teku


text:
Rename EIP4844 Milestone to Deneb

https://github.com/ethereum/beacon-APIs/pull/289

Made in #6783 with several TODOs which should be completed when rename in spec is don

Final cleanup TODOs:

[ ] Update spec link to deneb in https://github.com/ConsenSys/teku/blob/a764ee42742b950fe66ca87b5f1e787b5e45e977/beacon/sync/src/main/java/tech/pegasys/teku/beacon/sync/fetch/FetchBlockAndBlobsSidecarTask.java#L49-L51
[ ] Update spec link to deneb, remove p https://github.com/ConsenSys/teku/blob/a764ee42742b950fe66ca87b5f1e787b5e45e977/networking/eth2/src/main/java/tech/pegasys/teku/networking/eth2/rpc/beaconchain/methods/BlobsSidecarsByRangeMessageHandler.java#L134-L137
[ ] Make DENEB constant == "deneb" when reference tests are updated https://github.com/ConsenSys/teku/blob/a764ee42742b950fe66ca87b5f1e787b5e45e977/eth-tests/src/main/java/tech/pegasys/teku/ethtests/TestFork.java#L21-L22
[ ] Clean up hack when reference tests are updated https://github.com/ConsenSys/teku/blob/a4a0bd7c88f8f9799031fe6bb5c4e559bd66f9ab/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/altair/fork/TransitionTestExecutor.java#L50-L53
[ ] Clean up hack when reference tests are updated https://github.com/ConsenSys/teku/blob/a4a0bd7c88f8f9799031fe6bb5c4e559bd66f9ab/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/altair/fork/ForkUpgradeTestExecutor.java#L41-L44
[ ] Update setters and override when configs are updated https://github.com/ConsenSys/teku/blob/a764ee42742b950fe66ca87b5f1e787b5e45e977/ethereum/spec/src/main/java/tech/pegasys/teku/spec/config/builder/DenebBuilder.java#L28
[ ] Update EIP4844_FORK_VERSION and EIP4844_FORK_EPOCH names in all configs: https://github.com/ConsenSys/teku/tree/a764ee42742b950fe66ca87b5f1e787b5e45e977/ethereum/spec/src/main/resources/tech/pegasys/teku/spec/config/configs and https://github.com/ConsenSys/teku/tree/a764ee42742b950fe66ca87b5f1e787b5e45e977/ethereum/spec/src/test/resources/tech/pegasys/teku/spec/config/standard
[ ] Avoid exposing 4844 out of ckzg wrapper

We can close this finally with https://github.com/ConsenSys/teku/pull/6842 merged


text:
Add metrics for inbound and outbound peer counts

fixes #7845
Documentation

[X] I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

[x] I thought about adding a changelog entry, and added one if I deemed necessary.

Tested on holesky archive node. The number of outbound and inbound peers from the /eth/v1/node/peers API match up with the new peers_direction_current metric confirming it is correct. Also added some unit testing to PeerManagerTest showing it works correctly.

The change is looking good. However, for the unit tests, it would be better to have separate tests for the new metric functionality. Not only does it make it easier to read, but it also allows you to test different scenarios (increase/decrease inbound and outbound peers).

authors: courtneyeh lucassaldanha

repo: Consensys/teku


text:
Implement Download button for selected data

Selected items should be downloadable on button press. Therefore all related surfaces should be bundled.

Almost ready, one test is missing. Now it looks like this:

Is the button label reasonable? It's "Download related surfaces".

repo: ContactEngineering/TopoBank


text:
REST API frontend abstraction

The code currently directly interacts with the REST API, in the sense that individual components issue GET, PUT etc. requests and consume the output.
This issue suggests refactoring part of this code to mirror backend ORM classes in the frontend.
Suggested steps:

Implement OpenAPI documentation for the backend, e.g. using django-spectacular
Generate automatic frontend classes, e.g. using openapi-ts
Switch code to use this abstraction layer

A key advantage of this is:

Checking the reponse against a schema (encoded in the frontend classes)
Easier testing because those classes can be mocked

See also: https://github.com/ContactEngineering/topobank/issues/1094

repo: ContactEngineering/ce-ui


text:
add sha256sum of image as a label

This will allow us to short circuit the CircleCI workflow by immediately checking if the image needs to be rebuilt and bailing out (halting) if not.
Look up sha256sum of flavor in index.json, compare to label on remote image, halt if matching.

IIRC this is an un-recoverable chicken/egg scenario.
We cannot know the image sha until the image is fully built, once we know the image sha, if we add that as a label to the image, the image sha will change as a result.

Sorry @usrbinkat I didn't make this clear enough. I want to short circuit based on the sha256sum of the qcow2 disk image. I spent some time thinking about this morning and I have yet to figure out a way to stick a unique label on the image(s) (in the case arm64 and amd64 will have different sums).

Ah, we can create a ${QCOW2_FILE}.sha256 file here and then add the shasum file path to persist_to_workspace here.
From there we can read in the sum and create a label for each child qcow2 arch image.

closing this issue, I'm taking a different approach to halt the jobs.

authors: jbpratt usrbinkat

repo: ContainerCraft/kmi


text:
Dataset has been changed.

Guess this is the right fix? Not sure why it was not made originally.

@jbednar or @philippjfr you could merge if it's the right fix...

Well, guess it can't be wronger than it was ;) I'll merge...

Thanks!  Must have missed committing that one somehow.

authors: ceball jbednar

repo: ContinuumIO/anacondaviz


text:
Reblock accepts dict values for blockshape, blockdims

This allows users to specify new blockshapes along single dimensions
Example
>>> x = da.ones((24, 24), blockshape=(4, 8))
>>> y = x.reblock(blockshape={0: 12})
>>> y.blockdims
((12, 12), (8, 8, 8))

Fixes #117
cc @shoyer

Thoughts on this interface @shoyer ?

I think was one of my suggested APIs :). So, this looks great to me.

authors: mrocklin shoyer

repo: ContinuumIO/dask


text:
In the online demo, pressing play after stop on the mp3 does not resume

Visit https://cookpete.com/react-player/
Click on the mp3
It plays
Hit stop
It stops
Hit play
It's not playing...

After pause, play does resume. Is it intended for play not to work after hitting stop?
OS: macOS High Sierra
Browser: Tested both Chrome, Canary build of Chrome and Firefox

Hitting stop simply sets the url prop to null and unmounts all players. You have to explicitly play a URL after hitting stop otherwise nothing will happen.
Note that this is just a design choice of the demo page, not a definition of what "stop" should mean. Maybe "reset" would be a better label for that button.

authors: CookPete christiaanwesterbeek

repo: CookPete/react-player


text:
OCR captcha drop ~ 70%

Cảm ơn chủ thớt về một công trình tuyệt vời, mình đang tìm cách xử lý captcha MB Bank và thấy repo này, mừng rỡ đi thử đoạn code nhận diện khoảng vài chục captcha mbbank thì thấy chưa có cái nào chính xác, thay psm từ 1 tới 13 vẫn trả về đa phần là kết quả rỗng.
Mấu chốt vướng mắc nhất của các cách thức truy cập api mbbank đều khó ở captcha.
Kết nối với dịch vụ bên 2captcha thì tỉ lệ chính xác cũng khá cao nhưng chờ khoảng vài phút

Xin chào bạn @lacvietanh, nếu bạn đã thử đoạn code nhận diện thì bạn đã dùng luôn phần lọc đường kẻ captcha (captchaImagePRCLine1, captchaImagePRCLine2) chưa? Nếu chưa thì tesseract sẽ rất khó để nhận diện được kí tự trên captcha. Riêng với thư viện này, mình đã test và độ chính xác nó sẽ nằm tầm 70% (chạy thử 10 cái thì nó nhận 7 cái).

uây thiếu sót của mình🥺 mình ko biết có chỗ đó.. đúng là nếu lọc đường kẻ noise đi thì package này nhận diện chữ chuẩn lắm luôn.. mà mình gà mờ chưa đọc được hết code chưa rõ vụ khử đường kẻ chỗ nào.. để mình xem lại..
Tuần qua mình đã tích hợp api của bên sieuthicode.. cũng người VN mà không rõ họ dùng công nghệ nào để xử lý captcha, mình đọc log gần 500 cái chưa trật phát nào🥶

@lacvietanh Hi bạn, bạn kiểm tra từ line 46 -> line 74 src/MB.ts nhé!

authors: CookieGMVN lacvietanh

repo: CookieGMVN/MBBank


text:
Stuck on loading screen

Basically the same problem as #1. Also I had some old savegame, which I tried playing. I was in the dorm room and everything works fine until I try to leave the dorm because it gets stuck on the loading screen.

That sounds very different and I actually may have an idea on what is happening, since GTA's have a similar bug I fixed.
What you can try to do to verify that this is indeed the same bug is set CPU Affinity of Bully's executable to just one CPU. You can do this from Task Manager.

I did as you said and the same thing happens.

Is there any way for you to provide a full memory dump from the game when it's frozen? Again you can do it from Task Manager, and those are huge, although they compress very well.

Can't post the file here because even after compressing it's around 200mb, but you should be able to download it easily from the link.
https://transfernow.net/ddl/bully

I see exactly where you are deadlocking (audio streaming), but sadly no idea what to do with it since I never had it.
I have pretty much only one idea - I noticed you have Avast, you can try excluding Bully and/or its directory from scanning.

Tried that and it didn't work out so I guess I'm screwed :( Just wondering why I'm having such a problem because when I last played a year ago, everything was working fine, didn't even need the mod. I have the exact same setup, so nothing much should have changed.

This is pretty much the main reason this game is so problematic - everybody has a different range of issues and in most cases I cannot reliably fix them until I find a way to reproduce them 😕

Try his save?

authors: AntonsMc CookiePLMonster kriki200

repo: CookiePLMonster/SilentPatchBully


text:
⚠ Samsung has degraded performance

In 90fd87e, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2548 ms

Resolved: Samsung performance has improved in ba08931.

repo: CoopPlayzz/Webstatus-electronicbrands


text:
⚠ Samsung has degraded performance

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

HTTP code: 200
Response time: 2803 ms

Resolved: Samsung performance has improved in cd85705.


text:
⚠ Samsung has degraded performance

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

HTTP code: 200
Response time: 2906 ms

Resolved: Samsung performance has improved in 335063b.


text:
⚠ Samsung has degraded performance

In 3325b80, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2666 ms

Resolved: Samsung performance has improved in d10d990.


text:
⚠ Samsung has degraded performance

In 0bc0018, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2469 ms

Resolved: Samsung performance has improved in 1a63023.


text:
Can I change the parser options?

In the TimeSpanParser repository, this parser supports custom options.
For example,

    // How to treat the first number, if it has no units (and no colon)
    // e.g. Units.Minutes will mean "4" gets treated as "4 minutes"
    public Units UncolonedDefault = Units.None;

    // How to treat the first number, if it has no units and does have a colon.
    // e.g. Units.Minutes will mean "4:30" gets treated as a 4m30s
    // valid things are: Days, Hours, Minutes
    public Units ColonedDefault = Units.Hours;

It would be perfect if user can handle parser options.

@wisenb Thanks a lot for the suggestion, have added both of these as configurable options in v0.3.0 which can be changed via a drop-down selection in the PT Run settings!

authors: CoreyHayward wisenb

repo: CoreyHayward/PowerToys-Run-Timer


text:
Support changing the regional depth for a query

Both in Regionalstatistik and Zensus we have the possibility in the UI to change the regional depth (Deutschland, Bundesländer, Kreise, Gemeinden etc.) for a given table and evas number.
Can we support this in our library?

The specification of the regional depth is possible by speciying the query paramer classifyingvariable1 in the get request to the respective code of the variable. E.g. for 12411-01-01-5-B:

classifyingvariable1=GEMEIN -> use Gemeinde
classifyingvariable1=DLAND -> use Bundesland

Yeah I was thinking about these variables, if I remember correctly there are three variables so 1, 2 and 3 with the same name, so maybe we have to test it out properly before implementing but I will do so this week

Related question / feature request: https://github.com/CorrelAid/pystatis/issues/104 ("Download Zenus data for other than Bundesland")

I will implement this by end of the week!

@bergnerjonas no actually the correct parameter is regionalvariable and regionalkey. If classifyingvariable can be used, too, its ok but I guess not the intended use case as regionalvariable only exists in Regio and Zensus database

And I just noticed we already support that

authors: bergnerjonas pmayd sjockers

repo: CorrelAid/pystatis


text:
🛑 Tautulli is down

In 5041de3, Tautulli (https://$URL/tautulli) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tautulli is back up in db3fa3c.

repo: CoryManson/uptime


text:
Track unmaintained crates

During CosmWasm development we published crates that are not safe for public consumtion. We should mard them as unmaintained somehow, e.g. in the RustSec Advisory Database. But first of all, let's get an overview.

Crate
Source
Note

cosmwasm
https://github.com/CosmWasm/cosmwasm/tree/0.7
Unmaintained; all versions yanked

cw-multi-threaded-cache
https://github.com/CosmWasm/cw-tools
Example code only; unmaintained; unused; yanked

cw-module-size
https://github.com/CosmWasm/cw-tools
Example code only; unmaintained; unused; yanked

cw-check-contract
https://github.com/CosmWasm/cw-tools
Unmaintained; unused; yanked

cw-multi-threaded-cache and cw-module-size are fully yanked now. Also cw-check-contract@1.0.0 is yanked and only the version with the deprecation note is still available.
@tom How did you create the deprecation note for cw-check-contract@1.0.1? Do you have that on some local branch of cw-tools you can share?

cw-check-contract was not downloaded anymore. All versions if it are yanked now.

@webmaster128 I've just archived cw-tools. Should we close this issue?

What's left is doing something helpful with the very old cosmwasm crate. It is easy to be misused due to its name.

Oh, there is also cw-storage.
I just yanked all versions of the cosmwasm crate and proposed an unmaintained entry in the RustSec Advisory Database .

repo: CosmWasm/cosmwasm


text:
RUSTSEC-2024-0344 at curve25519-dalek =3.2.0

At ibc-rs repo, we received this report: cosmos/ibc-rs#1263
It seems that cosmwasm-crypto is pulling curve25519-dalek ^3 via ed25519-zebra ^3.

Thanks for the report. If I understand this correctly, it is only a problem when handling secrets. cosmwasm-crypto only uses ed25519_zebra for signature verification, so no secrets involved.
Nonetheless, I'll bump the version here and in wasmvm.

I just realized, the latest 2.0.4 uses older ed25519-zebra:
https://github.com/CosmWasm/cosmwasm/blob/v2.0.4/packages/crypto/Cargo.toml#L19
But on main it was already updated :raised_hands:
https://github.com/CosmWasm/cosmwasm/blob/main/packages/crypto/Cargo.toml#L22
Anyway, thanks for looking into it :pray:

authors: chipshort rnbguy


text:
Building for darwin on nix fails

Trying to build on nix for darwin, (see https://github.com/NixOS/nixpkgs/pull/71316), I hit the following problem:
unpacking sources
unpacking source archive /nix/store/3ii33ri19pv2c092gzdr0vpjjqw1yrmj-source
source root is source
unpacking source archive /nix/store/g5zrf1aaw39w6cg7qfadfvrjy9cmky8a-wasmtime-20191018-vendor
patching sources
applying patch /nix/store/fh5c4jz5k0ny4fpmsiqkxk9qhqv2chh0-cargo-lock.patch
patching file Cargo.lock
configuring
building
++ env CC_x86_64-apple-darwin=/nix/store/hi40vi42w2rnf9pflyhmsalcj5jf2bsv-clang-wrapper-7.1.0/bin/cc CXX_x86_64-apple-darwin=/nix/store/hi40vi42w2rnf9pflyhmsalcj5jf2bsv-clang-wrapper-7.1.0/bin/c++ CC_x86_64-apple-darwin=/nix/store/hi40vi42w2rnf9pflyhmsalcj5jf2bsv-clang-wrapper-7.1.0/bin/cc CXX_x86_64-apple-darwin=/nix/store/hi40vi42w2rnf9pflyhmsalcj5jf2bsv-clang-wrapper-7.1.0/bin/c++ cargo build --release --target x86_64-apple-darwin --frozen
   Compiling log v0.4.8
   Compiling libc v0.2.64
   Compiling proc-macro2 v1.0.5
   Compiling unicode-xid v0.2.0
   Compiling cfg-if v0.1.10
   Compiling syn v1.0.5
   Compiling ryu v1.0.2
   Compiling serde v1.0.101
   Compiling semver-parser v0.7.0
   Compiling failure_derive v0.1.6
   Compiling proc-macro2 v0.4.30
   Compiling itoa v0.4.4
   Compiling unicode-xid v0.1.0
   Compiling cranelift-codegen-shared v0.46.1
   Compiling arrayvec v0.4.12
   Compiling memchr v2.2.1
   Compiling rustc-demangle v0.1.16
   Compiling syn v0.15.44
   Compiling lazy_static v1.4.0
   Compiling typenum v1.11.2
   Compiling glob v0.3.0
   Compiling nodrop v0.1.14
   Compiling byteorder v1.3.2
   Compiling scopeguard v1.0.0
   Compiling regex-syntax v0.6.12
   Compiling autocfg v0.1.6
   Compiling rayon-core v1.6.0
   Compiling smallvec v0.6.10
   Compiling quick-error v1.2.2
   Compiling byte-tools v0.3.1
   Compiling getrandom v0.1.12
   Compiling termcolor v1.0.5
   Compiling bitflags v1.2.1
   Compiling wasmtime-environ v0.2.0 (/private/tmp/nix-build-wasmtime-20191018.drv-0/source/wasmtime-environ)
   Compiling fake-simd v0.1.2
   Compiling plain v0.2.3
   Compiling ppv-lite86 v0.2.5
   Compiling unicode-segmentation v1.3.0
   Compiling wasmparser v0.39.2
   Compiling opaque-debug v0.2.3
   Compiling either v1.5.3
   Compiling fallible-iterator v0.2.0
   Compiling indexmap v1.2.0
   Compiling spin v0.5.2
   Compiling nix v0.15.0
   Compiling stable_deref_trait v1.1.1
   Compiling wasmparser v0.37.2
   Compiling void v1.0.2
   Compiling id-arena v2.2.1
   Compiling leb128 v0.2.4
   Compiling wasmtime v0.2.0 (/private/tmp/nix-build-wasmtime-20191018.drv-0/source)
   Compiling strsim v0.9.2
   Compiling wasi-common v0.1.0 (https://github.com/CraneStation/wasi-common?rev=c3bf040#c3bf0404)
   Compiling crossbeam-utils v0.6.6
   Compiling thread_local v0.3.6
   Compiling humantime v1.3.0
   Compiling block-padding v0.1.4
   Compiling semver v0.9.0
   Compiling bincode v1.2.0
   Compiling num-traits v0.2.8
   Compiling num-integer v0.1.41
   Compiling heck v0.3.1
   Compiling c2-chacha v0.2.2
   Compiling crossbeam-queue v0.1.2
   Compiling rustc_version v0.2.3
   Compiling base64 v0.10.1
   Compiling gimli v0.19.0
   Compiling aho-corasick v0.7.6
   Compiling generic-array v0.12.3
   Compiling num_cpus v1.10.1
   Compiling atty v0.2.13
   Compiling dirs-sys v0.3.4
   Compiling mach v0.2.3
   Compiling errno v0.2.4
   Compiling time v0.1.42
   Compiling filetime v0.2.7
   Compiling jobserver v0.1.17
   Compiling memoffset v0.5.1
   Compiling scroll v0.9.2
   Compiling directories v2.0.2
   Compiling digest v0.8.1
   Compiling block-buffer v0.7.3
   Compiling rand_core v0.5.1
   Compiling quote v0.6.13
   Compiling region v2.1.2
   Compiling sha2 v0.8.0
   Compiling quote v1.0.2
   Compiling rand_chacha v0.2.1
   Compiling cc v1.0.46
   Compiling chrono v0.4.9
   Compiling crossbeam-epoch v0.7.2
   Compiling rand v0.7.2
   Compiling crossbeam-deque v0.7.1
   Compiling rayon v1.2.0
   Compiling regex v1.3.1
   Compiling backtrace-sys v0.1.32
   Compiling zstd-sys v1.4.13+zstd.1.4.3
   Compiling cmake v0.1.42
   Compiling raw-cpuid v6.1.0
   Compiling wasmtime-runtime v0.2.0 (/private/tmp/nix-build-wasmtime-20191018.drv-0/source/wasmtime-runtime)
   Compiling scroll_derive v0.9.5
   Compiling wabt-sys v0.7.0
   Compiling backtrace v0.3.40
   Compiling goblin v0.0.24
   Compiling env_logger v0.6.2
   Compiling file-per-thread-logger v0.1.2
   Compiling pretty_env_logger v0.3.1
   Compiling serde_derive v1.0.101
   Compiling synstructure v0.12.1
   Compiling walrus-macro v0.12.0
   Compiling wasi-common-cbindgen v0.1.0 (https://github.com/CraneStation/wasi-common?rev=c3bf040#c3bf0404)
   Compiling failure v0.1.6
   Compiling zstd-safe v1.4.13+zstd.1.4.3
   Compiling zstd v0.4.28+zstd.1.4.3
error: linking with `/nix/store/hi40vi42w2rnf9pflyhmsalcj5jf2bsv-clang-wrapper-7.1.0/bin/cc` failed: exit code: 1
  |
  = note: "/nix/store/hi40vi42w2rnf9pflyhmsalcj5jf2bsv-clang-wrapper-7.1.0/bin/cc" "-m64" "-L" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.0.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.1.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.10.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.11.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.12.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.13.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.14.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.15.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.2.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.3.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.4.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.5.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.6.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.7.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.8.rcgu.o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.9.rcgu.o" "-o" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/libwasi_common-cb01afa41255bfe8.dylib" "-Wl,-exported_symbols_list,/private/tmp/nix-build-wasmtime-20191018.drv-0/rustcqP4NQ5/list" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/wasi_common-cb01afa41255bfe8.4mk5g2t6mk33db4q.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps" "-L" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/release/deps" "-L" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/build/backtrace-sys-2d147214789255a0/out" "-L" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/libnix-dfd91aca8c39020a.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/libvoid-9cdf6e4006aa038f.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/libbitflags-a7bbe403b9c1735b.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/librand-daaf851cf7868d45.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/librand_chacha-97fa38918d53e690.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/libc2_chacha-a0e1f0d831f8f9dd.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/libppv_lite86-2a1a38c81ee18cd3.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/liblazy_static-4cae960660a74250.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/librand_core-4e1a0c41489f9461.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/libgetrandom-28165c5b9affdbed.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/liblog-47c2bc685ba53e9c.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/libfiletime-e91ead56cad31a83.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/libfailure-7e4295e10a48e1af.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/libbacktrace-d1b25e4eda6cc091.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/libbacktrace_sys-38b2028395269248.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/liblibc-31f4ec99033d3060.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/libcfg_if-1ee9105a5976112b.rlib" "/private/tmp/nix-build-wasmtime-20191018.drv-0/source/target/x86_64-apple-darwin/release/deps/librustc_demangle-627c318ee7b04a5c.rlib" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libstd-c6ca9251a199aa27.rlib" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-39ec93fd4165c255.rlib" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-a948cb44f048597a.rlib" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-9f041fb877b98c64.rlib" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-3c4a5c551a922378.rlib" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-2c195470cc27ba70.rlib" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-38fc89345f49f6a1.rlib" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libunwind-e60112f814e80d3d.rlib" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-ebddb7552a11bbd5.rlib" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/liblibc-46d8e16ab2813df4.rlib" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/liballoc-349e6b1effd8559c.rlib" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-1a46406c8cbb31ae.rlib" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libcore-2922fa7cbacf5093.rlib" "/nix/store/r8ps3zwaxwam9bnw9i0n46z4qr2j7yzk-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-96d54cc5512fa6bf.rlib" "-lSystem" "-lresolv" "-lc" "-lm" "-dynamiclib" "-Wl,-dylib"
  = note: Undefined symbols for architecture x86_64:
            "_utimensat", referenced from:
                _$LT$$u5b$u8$u5d$$u20$as$u20$nix..NixPath$GT$::with_nix_path::h2c1b78ca714c817b in wasi_common-cb01afa41255bfe8.wasi_common.2pp5p6tf-cgu.12.rcgu.o
          ld: symbol(s) not found for architecture x86_64
          clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error

error: Could not compile `wasi-common`.
warning: build failed, waiting for other jobs to finish...
error: build failed
builder for '/nix/store/6h89ffzlsxmxf8wp0abap155i9g8nw46-wasmtime-20191018.drv' failed with exit code 101

I read somewhere that on nix, certain symbols are removed from libsystem that are not available on all versions of MacOS. (See first two messages on https://logs.nix.samueldr.com/nix-darwin/2019-07-26)

Awesome, thanks for this! So, we do indeed use _utimensat in our codebase here. As far as I remember, _utimensat was added to darwin when macOS 13 was released, and before then, only _utimes was available. My proposition here is to try and use filetime crate which handles different darwin versions dynamically, which should hopefully fix the problem. I'd ask you to verify that it builds fine for you with this fix though. Would that be OK?

I have no idea about darwin and little idea about nix, but I am happy to test fixes.

OK, so I think there is a potential fix for this, but it requires some thought before committing to it. @alexcrichton @sunfishcode I'd very much appreciate your opinion on this. The potential fix, in principle, would require the same mechanism as the one used in @alexcrichton's filetime crate for checking whether a symbol exists at runtime:
static ADDR: AtomicUsize = AtomicUsize::new(0);
let func: Option<unsafe extern "C" fn(...)> = unsafe {
    fetch(&ADDR, b"utimensat\0").map(|sym| mem::transmute(sym))
};
if let Some(func) = func {
    // Success! "utimensat" symbol was found on our host
    // Call utimensat(...)
    func(fd, path, ...);
} else {
    // Sad days, "utimensat" is not available on this host
}

In case of the negative route, when utimensat symbol is not found on the host, filetime resorts back to utimes. However, our use case is slightly more constrained than filetime's in the sense that we always operate on a combination of a (pre)opened file descriptor and a relative path. Now, AFAIK there is no "at" version of utimes, i.e., something like utimesat, which makes things a little bit more complicated than I originally envisioned. We could improvise by calling openat on the provided pair (fd, rel_path), and then adjust filetimes using futimes syscall like so:
let fd = unsafe { libc::openat(dirfd, path, libc::O_NOFOLLOW | libc::O_RDWR) };
unsafe { libc::futimes(fd, times.as_ptr()) };

But this becomes somewhat messy, plus it adds up to two additional syscalls (one to get the file descriptor using openat, and second to read current values of atime and mtime -> no UTIME_OMIT or UTIME_NOW available if utimensat is not available :-().
Originally, I thought of extending filetime crate with this use case in mind, but I'm now I'm hesitant as it could potentially break the symmetry in implementation between Linux and BSD hosts.
Anyhow, the question here is should we support hosts without utimensat capabilities, or not?

I'm generally of the opinion that on recent (ish) versions of a platform is where a program should be the most optimized, and if a slower polyfill is required on older platforms that's better than not having the functionality at all. In that sense if the polyfill for older platforms requires some hoops and a few more syscalls I personally think that's ok.
Also FWIW if this is on Linux I'd recommend using libc::syscall since that is generally a bit more robust than dlopen in the face of static linking and musl. It's only available on Linux though!

I'm generally of the opinion that on recent (ish) versions of a platform is where a program should be the most optimized, and if a slower polyfill is required on older platforms that's better than not having the functionality at all. In that sense if the polyfill for older platforms requires some hoops and a few more syscalls I personally think that's ok.

Makes sense! :-)

Also FWIW if this is on Linux I'd recommend using libc::syscall since that is generally a bit more robust than dlopen in the face of static linking and musl. It's only available on Linux though!

Yep, absolutely. I was going to basically steal much of the "meat" from your lib, filetime and that would include both Linux and BSD implementations. I guess I'll prepare a draft PR with a potential resolution of the issue and cc all of you guys in, and coordinate with @nomeata for some testing, if that's OK of course! How does that sound for everyone?

That sounds like a good approach to me!

What's done in filetime for utimensat and futimens sounds like a quite repetitive piece of code, which may be useful in different crates.
How about writing some macro that would automatically generate the Option<unsafe extern "C" fn(...)> getters and publishing it as a crate? Alternatively, you could write a function, generic over the function type, which would accept the symbol name and return Option<unsafe extern "C" fn(...)>.
Idea:
maybe_function!("futimens", fn(c_int, *const timespec) -> c_int);

or
let futimens = maybe_function<fn(c_int, *const timespec) -> c_int>("futimens");

I'm not sure if we can create convert fn to unsafe extern "C" fn, though.

@kubkon, were you able to make progress here?

Hey @nomeata, apologies but I didn't have time to properly sit down to it yet. Having said that I've got some more time this week, so hopefully, I'll get most of it (if not all) done this week. The moment I get something working and reviewed, I shall let you know and kindly ask for your help in verifying that the changes are actually correct.

authors: alexcrichton kubkon marmistrz nomeata sunfishcode

repo: CraneStation/wasi-common


text:
Introduce a schema based expando object

We now have multiple converters that deal with converting to and from JsonObject to ExpandoObject and same for BsonObject and ExpandoObject. All of these plus ExpandoObjectExtensions, JsonSchemaExtensions, JsonExtensions and BsonExtensions all carry with it a lot of duplicate logic.
A simplification in the codebase could be to introduce a type; SchemaObject or similar. Something that holds a reference to the actual target schema and then converts values as they are set.
This would then lead us to basically use standard serializers, which would make everything a lot simpler.
An example of something that is duplicated, as a reference. All the places we check which JsonObjectType it is we have the following:
var type = (schemaProperty.Type == JsonObjectType.None && schemaProperty.HasReference) ?
                schemaProperty.Reference.Type :
                schemaProperty.Type;

if (type.HasFlag(JsonObjectType.Null))
{
    type ^= JsonObjectType.Null;
}

This takes out the null flag. Which is not useful for us when checking what type it is.

We want to move away from this and have dynamic types @ runtime instead.

repo: Cratis/Chronicle


text:
Look at introducing a PowerBI connector / integration for creating projections that target a PowerBI dataset

Resources:
https://learn.microsoft.com/en-us/power-query/creating-first-connector
https://jussiroine.com/2019/02/building-a-custom-connector-for-power-bi-that-supports-oauth2-to-visualize-my-wellness-data/
https://www.sqlgene.com/2019/02/19/create-a-power-query-custom-data-connector-in-10-minutes/
https://community.powerbi.com/t5/Community-Blog/Custom-Data-Connector-How-to-Deploy-and-Test/ba-p/862678

Duplicate of #241


text:
CASMINST-5104 DOCS: shandy full system power off/on test procedure changes

Description

Improved sample sat status commands taking advantage of filtering and field display options
Adjusted several pdsh commands to work when there are more than 3 master nodes, 3 worker nodes, or 3 utility storage nodes.
Include SDU information from CASMTRIAGE-3797
Include running of this script to address cfs-state-reporter issues on storage names. from CASMTRIAGE-3812
Include NCN_SHUTDOWN_TIMEOUT warning for "sat bootsys shutdown --stage ncn-power" from CRAYSAT-1513
Include text about the possibility of needing to reapply Gigabyte nodes BIOS settings for application and compute nodes. from CASMTRIAGE-3825
Added new topic to address issue affecting worker nodes with Mellanox NICs and access to Lustre via Slingshot switches which are in the unpowered compute node cabinets during the "Power On and Start the Management Kubernetes Cluster" procedure. This new procedure does a special CFS ansible session which unloads DVS, Lnet, and Lustre from all worker nodes when then enables ncn-personalization to run with success. from DVS-2731

Checklist Before Merging

[x] If I added any command snippets, the steps they belong to follow the prompt conventions (see example).
[x] If I added a new directory, I also updated .github/CODEOWNERS with the corresponding team in Cray-HPE.
[x] My commits or Pull-Request Title contain my JIRA information, or I don't have a JIRA.

Wrong Jira ticket and very stale copy of branch.

repo: Cray-HPE/docs-csm


text:
🛑 sneak.page is down

In e682cee, sneak.page (https://sneak.page) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sneak.page is back up in bb7f587 after 22 minutes.

repo: Crazy-Marvin/upptime


text:
🛑 sneak.page is down

In c7f18c4, sneak.page (https://sneak.page) was down:

HTTP code: 404
Response time: 113 ms

Resolved: sneak.page is back up in e54182d after 8 minutes.


text:
🛑 sneak.page is down

In 9278b5d, sneak.page (https://sneak.page) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sneak.page is back up in 736ce5b after 8 minutes.


text:
🛑 sneak.page is down

In 2d36ce5, sneak.page (https://sneak.page) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sneak.page is back up in a0a6a2b after 10 minutes.


text:
addedtostage event

I had always thought that the added event triggered when the object was added to the stage but now I realize that this just triggers when added to a parent.  Is there a way short of polling the stage property to find when an object is added to the stage - if not, would it make sense to have an addedtostage event?  Thanks,
Dan

Hmmm I guess we could ask to see if there is a stage property once added - maybe that's enough.  Ya, I guess...  I'll leave this here in case you think its a good idea anyway.  I like to run the added just once so cancel the event with the 4th parameter of on().  Now, I can't do that, I have to cancel it with the event object's remove() method if the stage property is there - otherwise leave the added event active.

See #493

authors: danzen lannymcnie

repo: CreateJS/EaselJS


text:
Scanning is relative to the player even when in cursor mode, version 0.1.1

I think it is annoying how scanning is useless when in cursor mode due to the scanning always being relative to the player. When I'm building in cursor mode I'd like to be able to stay in cursor mode for as long as possible, but this isn't always possible when I need to scan for something I want to build next to. As a counterexample, pressing the K key when in cursor mode does already correctly read the coordinates of the cursor instead of the coordinates of the player, which is very useful.

Fixed and pushed.


text:
Investigate Beacon integration

[ ] Examine the Beacon docs https://docs.walletbeacon.io/
[ ] Check whether it's easy to integrate Beacon into a desktop app
[ ] If Beacon works within two days of effort, test local build with any Tezos dApp, e.g. obtkt.com.

Actually the correct URL for the docs is https://docs.walletbeacon.io/wallet/getting-started/web/getting-started.

The code in the old T2 repo used to work with Beacon so it might provide some clues for getting it to work properly.

repo: Cryptonomic/Galleon


text:
AMP created Firewall rules being duplicated in IPtables

Bug Report
System Information

Operating System: Ubuntu 18.04.5
uname: Linux Ubuntu-1804-bionic-64-minimal 4.15.0-124-generic #127-Ubuntu SMP Fri Nov 6 10:54:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

AMP version and build date: AMP Release "Europa" v2.0.8.6, built 23/11/2020 19:36

Which AMP release stream you're using: Mainline

I confirm:

[x] that I have searched for an existing bug report for this issue.
[x] that I am using the latest available version of AMP.
[x] that my operating system is up-to-date.

Symptoms

What are you trying to do?

run a minecraft instance

What are you expecting to happen?

an iptables firewall rule be created once for each of the following: sftp/tcp, minecraft/tcp+udp

What is actually happening?

on some instances, many multiple duplicated rules are being created

Reproduction

create minecraft java instance
edit ports for the instance - change the port number for the SFTP module to something that is resolved by iptables to a name (e.g. 5680-canna)
start and restart the instance
check iptables -L
you should see the rule for the port listed many times
this behaviour also happens if the minecraft port accidentally resolves to a name

example output from iptabes here: https://hastebin.com/apumefelef.sql

What's the full output of running:
ampinstmgr updatefirewall amp
As root?

as "amp" user:
[Info] AMP Instance Manager v2.0.8.8 built 11/12/2020 18:07
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Error] I require root access to do that!
as root: - run multiple times in a row...
root@Ubuntu-1804-bionic-64-minimal ~ # ampinstmgr updatefirewall amp
[Info] AMP Instance Manager v2.0.8.8 built 11/12/2020 18:07
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Using iptables firewall.
[Info] Adding 3 new firewall rules
[Info] Firewall rule to add: TCP/5680 (AMP:Minecraft16:FileManagerPlugin.SFTP.SFTPPortNumber)
[Info] Firewall rule to add: TCP/25579 (AMP:Minecraft16:MinecraftModule.Minecraft.PortNumber)
[Info] Firewall rule to add: UDP/25579 (AMP:Minecraft16:MinecraftModule.Minecraft.PortNumber)
[Info] No existing firewall rules to remove
root@Ubuntu-1804-bionic-64-minimal ~ # ampinstmgr updatefirewall amp
[Info] AMP Instance Manager v2.0.8.8 built 11/12/2020 18:07
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Using iptables firewall.
[Info] Adding 1 new firewall rules
[Info] Firewall rule to add: TCP/5680 (AMP:Minecraft16:FileManagerPlugin.SFTP.SFTPPortNumber)
[Info] No existing firewall rules to remove
root@Ubuntu-1804-bionic-64-minimal ~ # ampinstmgr updatefirewall amp
[Info] AMP Instance Manager v2.0.8.8 built 11/12/2020 18:07
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Using iptables firewall.
[Info] Adding 1 new firewall rules
[Info] Firewall rule to add: TCP/5680 (AMP:Minecraft16:FileManagerPlugin.SFTP.SFTPPortNumber)
[Info] No existing firewall rules to remove
root@Ubuntu-1804-bionic-64-minimal ~ # ampinstmgr updatefirewall amp
[Info] AMP Instance Manager v2.0.8.8 built 11/12/2020 18:07
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Using iptables firewall.
[Info] Adding 1 new firewall rules
[Info] Firewall rule to add: TCP/5680 (AMP:Minecraft16:FileManagerPlugin.SFTP.SFTPPortNumber)
[Info] No existing firewall rules to remove
root@Ubuntu-1804-bionic-64-minimal ~ #

And ampinstmgr dumpfirewall ?

And ampinstmgr dumpfirewall ?

as its been a while, ive put new output here:
https://gist.github.com/ktremain/74f70ea7a9bccce324876f870a9e9375
this output contains the following commands:

iptables -L
ampinstmgr updatefirewall amp
ampinstmgr updatefirewall amp
ampinstmgr dumpfirewall
ampinstmgr dumpfirewall

all performed straight after each other

as its been a while, ive put new output here:
https://gist.github.com/ktremain/74f70ea7a9bccce324876f870a9e9375
this output contains the following commands:

iptables -L
ampinstmgr updatefirewall amp
ampinstmgr updatefirewall amp
ampinstmgr dumpfirewall
ampinstmgr dumpfirewall

all performed straight after each other

Don't repeat commands please, if I've asked you to run a command I only want that command and that command only to be run, the number of times prescribed.
For whatever reason AMP isn't seeing the existing rules so it thinks they're missing, and so tries to re-add them each time.
Since you're on Ubuntu, I'd advise using UFW instead of iptables for the time being until this can be resolved.

Don't repeat commands please, if I've asked you to run a command I only want that command and that command only to be run, the number of times prescribed.
For whatever reason AMP isn't seeing the existing rules so it thinks they're missing, and so tries to re-add them each time.
Since you're on Ubuntu, I'd advise using UFW instead of iptables for the time being until this can be resolved.

I think I know what's up, in the iptables listing it's showing "canna" as the port number which AMP isn't making sense of.
If you do iptables -n -L INPUT can you verify that the output shows the actual port numbers as opposed to the protocol names?

I think I know what's up, in the iptables listing it's showing "canna" as the port number which AMP isn't making sense of.
If you do iptables -n -L INPUT can you verify that the output shows the actual port numbers as opposed to the protocol names?

yes, confirmed that using -n on iptables shows the actual port numbers.
iptables -L
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:canna /* AMP:Minecraft16:FileManagerPlugin.SFTP.SFTPPortNumber */
iptables -nL
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:5680 /* AMP:Minecraft16:FileManagerPlugin.SFTP.SFTPPortNumber */

yes, confirmed that using -n on iptables shows the actual port numbers.
iptables -L
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:canna /* AMP:Minecraft16:FileManagerPlugin.SFTP.SFTPPortNumber */
iptables -nL
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:5680 /* AMP:Minecraft16:FileManagerPlugin.SFTP.SFTPPortNumber */

This issue is fixed as part of the next update.

This issue is fixed as part of the next update.

authors: PhonicUK ktremain

repo: CubeCoders/AMP


text:
Question about moving command

Dear Author:
Hi, I'm developing an app to control my bebop2 in c# for windows.
I only found the protocol about takeoff and landing, and other network protocol from the official pdf.
I'm writing the function of pilotting and the videostream, could you give me some suggestion?
I know there are lots of command type(e.g. non ack/ack/low latency/..), but here's my question: what's the command data type?
for example: for takeoff, the data type is 1010 per byte, for landing, the data type is 1030, but how is other command?
do you have something like Instruction Manual?
Thanks for your support!!
Best Regards,
Halley

Hi
this project is perfect for you
https://github.com/Ruslan-B/AR.Drone
there is a library in C#/.Net for controller the AR.DRONE 2.0
Best Regards,
Edwin

repo: Cubillosxy/MYO-PYTHON-BEBOP


text:
🛑 lemmy.best is down

In f497177, lemmy.best (https://lemmy.best) was down:

HTTP code: 0
Response time: 0 ms

Resolved: lemmy.best is back up in d3073b8 after 2 hours, 29 minutes.


text:
🛑 笔记一note.5i.gs is down

In f9f9a39, 笔记一note.5i.gs (https://note.5i.gs/#) was down:

HTTP code: 502
Response time: 513 ms

Resolved: 笔记一note.5i.gs is back up in c4e5e30 after 9 minutes.

repo: Cutiei/Uptime


text:
new API including ask and tell

Motivation
In the current ask-and-tell interface, it may be difficult to implement mirrored sampling because ask returns only one solution.
Additionaly, updating based on z vector is also difficult, as ask returns only x vector rather than z.
So adding the new API (e.g optimize()) that includes ask and tell is helpful to implement such features.
This is related to https://github.com/CyberAgentAILab/cmaes/issues/117.

Thank you for the comment. You are right. At that time, I hadn't come up with a way to realize mirrored sampling (used in CR-FM-NES) with an ask-and-tell interface, so I tried to include everything in optimize(). But now that I've figured out how to do it, I think I can provide the mirrored sampling with the usual ask-and-tell interface, as shown above.

I have implemented mirrored sampling (also known as antithetic sampling) in the DX-NES-IC code.
https://github.com/CyberAgentAILab/cmaes/pull/149

repo: CyberAgentAILab/cmaes


text:
AttributeError: module 'keras' has no attribute 'applications'

I got this error via latest install for pip. This error a got after this:
from keras_bert.loader import load_trained_model_from_checkpoint
Stacktrace:
`/usr/local/lib/python3.7/dist-packages/keras_bert/backend.py in ()
18 utils = keras.utils
19 activations = keras.activations
---> 20 applications = keras.applications
21 backend = keras.backend
22 datasets = keras.datasets
AttributeError: module 'keras' has no attribute 'applications'`
Okay. I had seen https://github.com/CyberZHG/keras-bert/blob/master/keras_bert/backend.py and i don't find call of application. Keras don't have applications method but tf.keras already have.
What i doing wrong?

This may due to the update of tensorflow (2.5.0). Please try keras-bert==0.87.0.

This may due to the update of tensorflow (2.5.0). Please try keras-bert==0.87.0.

Already. Pip don't find this version. I guess don't find because test failed. I use pip install via link and than python gives me error for failed test before build package on my host.

I don't think pip will/should run the tests before installing the package. It will decay a little time if you are using a mirror. keras-bert==0.88.0 fixed the test cases.

Set the environment variable TF_KERAS=1 to force keras-bert to use tf.keras instead of keras.
os.environ["TF_KERAS"]="1"

authors: CyberZHG mtchibozo vngrv

repo: CyberZHG/keras-bert


text:
🛑 Cyberflix Docs is down

In 20445dd, Cyberflix Docs (https://docs.cyberflix.io) was down:

HTTP code: 503
Response time: 2164 ms

Resolved: Cyberflix Docs is back up in ce4a74b after 14 minutes.

repo: Cyberflix-Media/Cyberflix-Status


text:
[BUG] cdxgen -o bom.json returns error with node 18.20.5

Hi,
When I run this command "cdxgen -o bom.json with node 18.20.5 it fails with the following.
Cdxgen version is 0.11.0.
The error is as follows:
Unable to parse trivy-main/pkg/fanal/analyzer/language/nodejs/npm/testdata/sad/package-lock.json without legacy peer dependencies. Retrying ...
node:internal/errors:496
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:405:5)
    at validateString (node:internal/validators:162:11)
    at join (node:path:429:7)
    at file:///C:/Users/vinko.bedek/AppData/Roaming/nvm/v18.20.5/node_modules/@cyclonedx/cdxgen/binary.js:111:25
    at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
    at async loadESM (node:internal/process/esm_loader:34:7)
    at async handleMainPromise (node:internal/modules/run_main:106:12) {
  code: 'ERR_INVALID_ARG_TYPE'

Works with node 18.20.4 and works with the latest node 22, 18.20.5 seems to be problematic. Could very well be a node issue, but we are not experiencing any other issues in our codebase.
Any help is appreciated.

We are node>=20 for a while now.
https://github.com/CycloneDX/cdxgen/blob/master/package.json#L59

authors: prabhu vinkobedek

repo: CycloneDX/cdxgen


text:
Swift Fixes

This PR contains two fixes identified when using the new Swift BOM Generation functionality:

Swift was not included in the createMultiXBom function, so Swift BOMs were not generated in multiProject mode. This patch adds Swift into createMultiXBom matching the pattern of other languages.
If both Package.resolved and Package*.swift files exist inside a repository, the former were ignored. This patch will evaluate all applicable files.

Thanks @wr-rmcnamara! Please use version 8.4.3 which includes your PR.

authors: prabhu wr-rmcnamara


text:
createGenericKInstance 时 z.isMemberClass() 空指针

https://github.com/pdog18/GradleForAndroidPdog/tree/master/app 我的代码在这，
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Class.isMemberClass()' on a null object reference
at com.chad.library.adapter.base.BaseQuickAdapter.createGenericKInstance(BaseQuickAdapter.java:1020)
at com.chad.library.adapter.base.BaseQuickAdapter.createBaseViewHolder(BaseQuickAdapter.java:1004)
at com.chad.library.adapter.base.BaseQuickAdapter.createBaseViewHolder(BaseQuickAdapter.java:986)
at com.chad.library.adapter.base.BaseQuickAdapter.onCreateDefViewHolder(BaseQuickAdapter.java:982)
at com.chad.library.adapter.base.BaseQuickAdapter.onCreateViewHolder(BaseQuickAdapter.java:759)
at com.chad.library.adapter.base.BaseQuickAdapter.onCreateViewHolder(BaseQuickAdapter.java:68)

是最新的版本吗？

下面这段代码擦除了泛型信息，所以无法通过反射找到ViewHolder的类型，public RefreshLoadmoreAdapter build() {         return new RefreshLoadmoreAdapter(convert, refresh, loadmore);     }

compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.26'

authors: CymChad FrankKwok pdog18

repo: CymChad/BaseRecyclerViewAdapterHelper


text:
Issue 6574 - Erroneous recursive call in template instantiation

https://issues.dlang.org/show_bug.cgi?id=6574
Improve mangling scheme to distinguish instantiations with specialized template parameters.
If a template argument matches to specialized template parameter, the argument is mangled with prefix 'H'.

Corresponding compiler fix: https://github.com/D-Programming-Language/dmd/pull/4270

Is there a way in github to specify that one pull is dependent on another?


text:
dub.selections.json should allow to exclude optional package

Just noticed that when dpl-docs in the dlang.org repo was picking up botan to build ddox with 2.067.1, not really ideal. It might even be better to not automatically use optional dependencies until explicitly added to dub.selections.json.

This is part of #361 - we definitely need to improve this for the next release (prior to 1.0.0). What I'd like to have is a system where a package can declare a dependency as optional+default off, or optional+default on (default meaning that no dub.selections.json exists yet). The absence in dub.selections.json would function as the "off"-switch.

authors: MartinNowak s-ludwig

repo: D-Programming-Language/dub


text:
Maybe#halt

This works inversely to Maybe#continue.

Ebert has finished reviewing this Pull Request and has found:

3 possible new issues (including those that may have been commented here).
2 fixed issues! 🎉

You can see more details about this review at https://ebertapp.io/github/D3MNetworks/ronad/pulls/11.

Ebert has finished reviewing this Pull Request and has found:

1 possible new issue (including those that may have been commented here).
3 fixed issues! 🎉

You can see more details about this review at https://ebertapp.io/github/D3MNetworks/ronad/pulls/11.


text:
NFT Voting Module

Add a simple NFT voting module which determines voting power based on the NFT token balance of specific addresses.

Thanks for the contribution! NFT voting is definitely something that would be great to have.
For this contract we do need staking to prevent double votes. For example:

I have 2 NFTs.
I vote on a proposal with 2 voting power.
I send my NFTs to another wallet.
That wallet votes on a proposal with 2 voting power.

Now we've double voted. I think the way forward here would be to write a modified stake-cw20 contract which lets you stake NFTs. Then, we could modify this contract to query that contract so that it can have voting power at height information and prevent that double voting.

So all of this is true and we now have #309!
However, this contract would work GREAT with non-transferable NFTs. Have a ticket to implement "soul bound" NFTs which we can use for things like titles. See: https://github.com/DA0-DA0/dao-contracts/issues/311
tl;dr this contract might still be useful.

Closing as I've merged the voting power queries into the staking contract after some discussion with @Callum-A .

authors: JakeHartnell cypherape ezekiiel


text:
request for hacktoberfest github topic label

Hello :)
I'm participating in Hactoberfest this year and was hoping that you would be willing to add the hacktoberfest topic label to the project?

Hacktoberfest® is open to everyone in our global community. Whether you’re a developer, student learning to code, event host, or company of any size, you can help drive growth of open source and make positive contributions to an ever-growing community. All backgrounds and skill levels are encouraged to complete the challenge.

Here if more details on how to do that, if that helps.
Thanks.

Absolutely, done!

authors: brynrhodes deekim


text:
Add ability to enter address within contact details

Context
Currently, candidates are only able to enter phone number.
Changes proposed in this pull request
This PR allows a candidate to enter their address and then review it at the end.
Additionally, there has been some refactoring to enable having multi-steps to enter contact details. Instead of a single controller ContactDetailsController, this PR adds a namespace ContactDetails:: so that each step for contact details, there is a controller. This means we can avoid having a bloated single controller and each ContactDetails controller redirects to the another and handles only what it needs to for the step it's responsible for.
For example:

Enter phone number (and eventually email) => ContactDetails::BaseController
Enter address => ContactDetails::AddressController
Check your contact details => ContactDetails::ReviewController

Further, there are now two separate save methods for ContactDetailsForm to follow the spitting of controllers. E.g. ContactDetails::AddressController will call ContactDetailsForm#save_address.

Guidance to review

Get the app running, try adding in an address and see if it works. Currently, there is no validation, this will be added in a later PR.
There are comments in the system tests to show where this is headed.

To make things easier to review, below is my plan of action. Let know if this makes sense and if it's missing anything.

[x] Be able to add phone number and review it (#363)
[ ] Be able to add address and review it (this PR)
[ ] Add completed label to contact details section and show contact details at application review
[ ] Be able to change your contact details
[ ] Add validation for phone number
[ ] Add validation for address

Link to Trello card
191 - Providing contact details

The design has the field widths slightly different:

You can find the page here to inspect it for the classes to use :) https://apply-beta-prototype.herokuapp.com/application/61EQK/contact-details/uk-address

The design has the field widths slightly different:

You can find the page here to inspect it for the classes to use :) https://apply-beta-prototype.herokuapp.com/application/61EQK/contact-details/uk-address

Good spot! 🔍  I completed missed this. I will fix now!

authors: chubberlisk tvararu


text:
Add missing audible label for first line of address

Context
According to the pattern described in the design system, the label for first line of the address should announce that it is the first line of 2 (the second label is entirely hidden, and announces that it is line 2 of 2).
Changes proposed in this pull request
Add the missing (but visually hidden) line 1 of 2 text to the label for address_line1. This follows the method recommended by @peteryates in https://github.com/DFE-Digital/govuk_design_system_formbuilder/issues/177#issuecomment-674234646
Guidance to review
Are we happy using an inline safe_join method?
Link to Trello card
https://trello.com/c/lQPig396

Not quite sure what’s going on with the 2 failures (I updated the tests to fix the other 16 failures by using match: :prefer_exact). Any clues?

repo: DFE-Digital/apply-for-teacher-training


text:
fix for back button not sticking to just under the header

Description

Small fix for back button not being in the right place - see screenshots

Ticket number (if applicable)
How Has This Been Tested?

manually been through every page and checked

Screenshots
Staging currently:

Prototype:

This fix:

Checklist:

[x] My code follows the standards used within this project
[x] I have performed a self-review of my code
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests (Unit, E2E) that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Closing as fixed under this PR: https://github.com/DFE-Digital/check-an-early-years-qualification/pull/232

authors: DanielClarkeEducation sam-c-dfe


text:
565 projects pagination

Changes
Add Pagy for pagination
We want to implement pagination using the GOV.UK components library, which is
compatible with Pagy.
This adds and configures Pagy. The default number of items per page is set to
10, and the default size parameter is set to match the Design System
documentation.
Paginate the projects index page
For now, we send a request to the API for each project on the project index
page. These requests are very slow, resulting in a very, very slow page load time
when there are multiple projects. We want to paginate the projects in order to
reduce the load.
This paginates the projects index page. It also moves the Add a new project
button to the top of the page, because it was looking a bit odd next to the
pagination component.
Fix the total number of projects shown in the heading
We need to update the way we calculate the total number of projects now that we
paginate them (else we are just showing the number of projects per page).
This uses the Pagy count method which returns the total number of records.
Checklist

[x] Attach this pull request to the appropriate card in Trello.
[x] Update the CHANGELOG.md if needed.

 Paginate the project list


text:
How should we refer to an application?

Currently when someone registers for an NPQ their data is stored in as an Application. These applications are sent to ECF where they're dealt with from a lead provider/payment point of view.
Now we're separating NPQ so it's standalone the application will be joined to declarations, and declarations tell us about the training a person is receiving, not their application for that training.
The model still works for this and the relationship is clean, but the name 'applications' might not be accurate and could possibly mislead people unfamiliar with the domain.
Other suggestions to be discussed

Registration
Training

Previous research session with NPQ Reg bought up 'application' as a term.
Users tend to refer to signing up with an LP as the 'application' and signing up with DfE as a 'registration'.
They flagged that the inconsistency can cause confusion when talking to users.
Planning a follow up session so will poke on this further.

Another point here is that we refer to it as an 'application' throughout the API and API docs, so providers will be familiar with it. Maybe this is one to leave for API v4.

authors: kerry-b peteryates

repo: DFE-Digital/npq-registration