sile 0.14.6

Minor upstream release. Does include build system changes but the new configure defaults should be correct for packaging purposes.
See upstream release notes.

All of a sudden the build requires bsdtar, and now it fails (see ofborg's build trial). Reading the changelog I think this regression wasn't intentional..

The bsdtar dependency is not new, it's been needed for some time. We were just silently failing to build the manual properly if it didn't exist.
Checking for it at build time should only happen if --enable-developer (not applicable to the Nix build) or --with-manual are selected. The Nix build is currently setup to build the manual and put it in a docs package I guess. In order to build the manual the build system downloads a bunch of fonts, and bsdtar is used for extracting them. Previously failure to extract some fonts was not failing the build even though the resulting manual would be messed up.

In order to build the manual the build system downloads a bunch of fonts, and bsdtar is used for extracting them.

This would fail on a Nix build - all artifacts needed for build should be present during build time. If you wish to not include these fonts in the source code, we should download them separately and add hashes to each one. Alternatively, we can find a way to use fonts available on Nixpkgs, and tell the Sile's build system not to download fonts, and use our fonts..

Previously failure to extract some fonts was not failing the build even though the resulting manual would be messed up.

Interesting.. A while ago I had a look on the manual and I haven't noticed it was messed up. Perhaps these were only math fonts I overlooked?

In order to build the manual the build system downloads a bunch of fonts, and bsdtar is used for extracting them.

This would fail on a Nix build - all artifacts needed for build should be present during build time. If you wish to not include these fonts in the source code, we should download them separately and add hashes to each one. Alternatively, we can find a way to use fonts available on Nixpkgs, and tell the Sile's build system not to download fonts, and use our fonts..

Substitute fonts are not really a viable option, the manual demonstrates specific features of specific fonts in various languages. Downloading them in advance would work fine but there a small handful (see DOCFONTFILES variable in Makefile-fonts). The source URLs are all listed there too, it would be a matter of downloading and extracting the right files to either .sources (for archives) or .fonts (for direct font downloads). SILE's build system doesn't care about hashes as long as the expected files exists it won't try to download them. I suppose I could rig up something upstream so that we could have a devel-sources bundle included with releases that would include all the 3rd party fonts needed for building the manual and/or running the test suite.

Previously failure to extract some fonts was not failing the build even though the resulting manual would be messed up.

Interesting.. A while ago I had a look on the manual and I haven't noticed it was messed up. Perhaps these were only math fonts I overlooked?

Math yes, code samples another, but also the docs for a number of packages demonstrate things in various other languages with specific font requirements to demo various features.
In other news, why build the manual in the Nix build at all? It can just be skipped --without-manual, then if you really want a copy for the docs package just download it. A copy is posted on all releases alongside the source archive.

I don't think building the manual from disto font packages is a good idea, and it's absolutely a non-starter for the test suite. All of the fonts are version locked in our build system for a reason: even minor tweaks in fonts between revisions can and will cause layout differences in the manual, and they will cause test failures.
It's possible to re-build a serviceable manual that corresponds to what we ship on each version, bun only with the exact font versions we specify. I've been through the process of bumping fonts and checking through all the places they affect things and it's not a light chore. We can rig up some way to package the developer fonts separately as a resources package or something, but I'm not really seeing the use case yet.
We can and do build the manual in CI and post it with releases. If the PDF is generated correctly it doesn't matter what system it was generated on. If shipping it in the docs package is important why not just use that? Or use the one currently being generated ... this system of handling font resources has been around for quite some time already and Nix has been building it fine to date.

It's possible to re-build a serviceable manual that corresponds to what we ship on each version, bun only with the exact font versions we specify.

Would it be acceptable for you if we'd build the manual with our distribution fonts but not verify that it's layout is exactly as it should be i.e, not "testing it" after building it?
Since we don't have all of the required fonts currently in Nixpkgs, in any case perhaps it'd be better to disable building the manual at least in the meantime. Perhaps in the future we can download it from CI straight into the .docs output, which is preferred IMO over using an upstream provided bundle of the fonts.

Note there are merge conflicts now.

I plead temporary insanity, perhaps lack of sleep—half of my points above are bogus. The build system is already smarter than I give it credit for, and among other things a copy of the prebuilt manual is already bundeld in the source package. By default if developer mode (--enable-developer) is not enabled the manual will not be rebuilt, fonts won't be downloaded, etc. It will just install the PDF that shipped with the sources.
Whatever the original problem was above, the bsdtar check I suppose, is actually a small bug because we don't need it even for --with-manual as long as developer mode isn't enabled. I'll try to fix this PR up, but also a v0.14.7 that addresses this upstream is in the works.

Do you have any idea why this was downgraded to GNU Make 4.2? I build it all day long with 4.3 on Arch Linux.

Hey @vcunat can I ask why why this build was downgraded to use GNU Make 4.2? I build it all day long with 4.3 on Arch Linux. If there is a problem I'd like to fix it upstream.

Is there a link to the commit hash / PR this was done?

99fb246d724 it didn't build otherwise since the default was upgraded to 4.4.

Oh. I didn't know 4.4 was out. I'll look into whether than is something that needs fixing upstream. I guess it doesn't matter much now but 4.3 works, no need to go all the way back to 4.2.

I didn't see a point in having so many versions, so 4.3 isn't in nixpkgs now.

@doronbehar The SHA you were asking about is 99fb246d724d.
The next upstream release will have smarter logic for when to check for manual build tooling, which is not needed for the Nix build. This PR includes a workaround that supplies dummies for the checks and doesn't fail since they never actually get used.
Is there anything else holding up this PR? Should I rebase and/or squash all this or will the PR just be merged with a squash?

The update here looks good now. Let's squash the commits and merge this afterwards :).

Rebased and squashed flatter than a pancake.


syncthing: allow enabling tray independently

As per suggestion in https://github.com/rycee/home-manager/pull/188#issuecomment-361701217.

Rebased into master https://github.com/rycee/home-manager/commit/6fc0fd315cd70ac5fe455bc8ddf909558e8af6dd. Thanks for sorting this out.


[Card] Support for extended body content

Description
Are there plans to support an extended amount of body content as found in: https://spectrum.adobe.com/page/cards/#Anatomy

For instance the area where text about XD is applied.
Why do you need this feature or component?
@charlessuh can you share some extended use case for this in your work?

Usage example:

This goes so far as to forgo the heading content all together, which currently leverages some fixed sized containers that might need an edit pass for this sort of thing to be added.

Similarly, on Adobe Fonts we include multiple lines of content in our "Family cards" for fonts.
Example:

Yeah looks like we need to remove the height from .spectrum-Card-content and just let you write that stuff in .spectrum-Body inside of it.

Looking at most of the examples for card on the design site, it seems like in most cases the subtitle is multi-line: https://spectrum.adobe.com/page/cards/
It also looks like the font size is smaller in Spectrum CSS than the designs. Not sure that all fits with this issue, but right now I'm finding this really hard to use and get a result that looks good.

These use-cases seem feasible with the open-ended approach the card currently uses. https://opensource.adobe.com/spectrum-css/?path=/docs/components-card--docs&globals=testingPreview:!true
Let me know if we need to reopen this though!


Vials

Was scrolling through the AoA:M CurseForge page and saw this comment:

Hi! Are there any plans to add smaller vessel (for a volume of 300 lets say?). Right now I dont see any way to take some of essence from the tank - it makes tanks useless and there is no reason to fill them. Everytime Ill have to calculate everything and I guess it will be more fun to just take some of the essence from the tank ;)

Now I would agree that the point is to have difficulty in getting stuff going but requiring 4000 of something to get purity is an artifical hurdle that doesn't really make much sense, you can handle volumes as small as a quarter of that with buckets typically.
Further, it just gates doing stuff with purity to having a lot of essence.
This isn't a technical challenge.
I would propose adding 'vials', an item which is pretty much the same as a vessel but instead of having a quantity of 4000mB, a quantity of 500mB.
Does anyone have an opinion here?
Need:

[ ] Make item
[ ] Texture

Personally, i'd say the best way would be something like a valve pipe or a port that only opens while having a redstone signal and has a modest throughput, something like 10mb\t. That way one could utilize various signal length buttons, levers, timers etc. to properly mix stuff and even automate while enhancing the "alchemical laboratory" feel.
As it stands currently the mod is rather unopproachable with pointlessly giant tanks, no way to trash essentia and prohibitively limited internal tank of synth table combination of problems


Inlocomedia adapter

This includes support of native, interstitial & feed banner ads for InLocoMedia network

Coverage remained the same at 26.31% when pulling 48572e46c174cb21cb201f2e3d0b0589e152277d on inlocomedia-adapter into 23b9f89a9405f860f7e31bd0e9bf283378297a6d on development.

This PR is stopped since we don't think that inloco SDK can be successfully mediated using our current structure, they are using a very unique setup and generally speaking they don't provide native ads, but configurable in feed ads, we shoujld be able to get the inner data and be able to capture impression and clicks events

I'm closing this PR because we need to solve some blockers before merging this andwe will probably require some work in other branches before going again with this


Add config file migration code

Description
The schema of the config file might change with new features or bug fixes. A current example would be: https://github.com/spacemeshos/post/issues/212.
A node should be able to load a config file in an older format, migrate it to the current and persist it again. Preferably with some information about the version of the config file.
Acceptance criteria

When the node initially loads the config file from disk it determines the version information of the config file

Add a new schema (or similarly named) field to config. If not present assume version 0 (current version)

Load file and parse as the version presented

if not current version migrate the config and persist again

Implementation hints

This is a pre-requisite for https://github.com/spacemeshos/post/issues/212
A similar approach is currently implemented for versioning PoST data on disk: https://github.com/spacemeshos/post/pull/211

cc: @dshulyak

I don't think that node should modify config provided by a user. If we want to support backward compatibility for configuration across several release there should be a code that works with old data

The concrete problem that triggered this issue is that smeshing-opts-providerid will be changed from an uint to a string with https://github.com/spacemeshos/post/issues/212 (to make it nil-able).
If the config file is not updated and has the value set as integer, the node will crash during startup with the error message: "expected map, but received float64" which is misleading (it should be "expected string, but received int").
I don't know how we should make the node work with old configuration data? If we read the old config with the old code this config parameter will incorrectly be read as 0 if it is not set. 0 is a valid provider ID though and does not mean "no provider". This has lead to errors before - there is no way to NOT set a provider.
In terms of command line parameters the change in question does luckily not need any adaptions in this area. --smeshing-opts-provider=1337 works the same way after the change as it has before 🙂
We could let smapp take care of the config transition, but then nodes that run standalone will crash when they are updated. That might be OK, but as said earlier the error that will be displayed to the user won't help the user in figuring out what the issue is or how to fix it.
cc @brusherru

i would either add smeshing-opts-providerid-str or whole new section with version (smesher-opts-v1) and print a warning that previous option deprecated (if that option is non-default) and will removed in next release.
i am doing exactly that with that hare3, but there are also other upgradability nuances

I agree with @dshulyak. It will be extremely difficult to maintain, IMO it's best to avoid if possible.
Regarding the problem with smeshing-opts-provider field, it's possible to get around this without changing the type of field in JSON. I suggested it here: https://github.com/spacemeshos/go-spacemesh/pull/4773/files#r1287167363

Thanks I ended up implementing something similar that indeed makes a config migration unnecessary.


Plan with Web dev team UX-sprint objectives

Description
Devise a plan for the UX-sprint with Web dev team and objectives to be achieved.
Acceptance criteria

[ ] written plan with timeline

now irrelevant


Legal requires to have a checkbox, confirming that the user is older than 18 years old.

Legal requires to have a checkbox, confirming that the user is older than 18 years old.
Originally posted by @bacharakis in https://github.com/ossn/ossn-frontend/issues/188#issuecomment-464812749

@alexdor pls notify when this is added in the backend.

@iropal should be deployed

Is this issue free to work on?

There is already a pull request open for this issue ( #261 )

@bacharakis The field has been added. By default it is not checked. Do we consider this issue fixed or do we need something more or different?

Perfect! Not being checked by default is what exactly we need


PageIterator: Change initial page number to 1 and handled duplicates

Initialized self.current_page to 1 instead of 0 and handled duplicates from previous pages to return unique results and to determine the stop iteration criteria (Refer issue 958).

Is this going to me merged soon ?

@Harmon758 I am going to test these changes locally with search_users() and I'll let you all know if it still works.

Seems to be working.

Hi,
So i'm still seeing the same issue here and don't believe its fixed. Anyone else having issues?
thanks

Seems to be working.

I just did the same thing with a different query for page 1 and 2 and got the exact same results.

@meow232309 Are you using the version in this PR?

@meow232309 Are you using the version in this PR?

This should now be resolved by https://github.com/tweepy/tweepy/commit/a7d1608903825a4c2d781e5f8f709f26ed1bad03 and https://github.com/tweepy/tweepy/commit/3c1a397cd8d5bb81ff245ca0645c6462e57a5d33.


Argument 1 passed to SDK\Cache::__construct() must be of the type string

I've been trying to update deps this last 30 minutes with various variations of:
phpsdk_deps --update --branch master

Nothing seems to work though - for some reason nothing can be detected - current CRT, architecture or even PHP branch.
My current project structure looks like so:
C:\php-sdk - this git repo on tag php-sdk-2.1.3
C:\php-sdk\phpmaster\
C:\php-sdk\phpmaster\vc15\x64\deps - dependencies (from some earlier install?)
C:\php-sdk\phpmaster\vc15\x64\php-src - git repo of https://github.com/php/php-src on branch PHP-7.2.4

Visual Studio 2017 Community v15.6.5

What I did originally:

I had this system set up already (with instructions from the readme file)
I opened cmd prompt in C:\php-sdk
I ran phpsdk-vc15-x64.bat
I ran phpsdk_buildtree phpmaster (just in case) - it simply complained that dirs already exist
I ran phpsdk_deps --update --branch master and got the error mentioned in the title

Thanks for the report. There is no way to automatically determine the desired configuration. Either it needs to be specified by an option, or read from the current php-src. If you have some patch, please file a PR.
Thanks.


Update tagging.py

Curious if this fix appropriate or if I am implementing incorrectly

You can also do something like this to link the installed spacy model to the preferred language code name:
python -m spacy link en_core_web_sm en


fix: correctly recognize multiple inheritance for @class

Problem: Inheritance from multiple parent types are not correctly
recognized, only the first parent class was parsed as identifier.
Solution: Use commaSep to recognize multiple parent types.

Preview: (Before / After)

I see a lot of style changes in src/tree_sitter/parser.h, this is probably due to the different tree-sitter CLI version used. I used 0.20.8; please let me know if this is causing any problem/conflicts.

@amaanq kindly bumping this up.

Thank you for the PR! And I'm sorry about being MIA
For future tree-sitter parser related PRs, make sure your cli is built from master, there's slight changes in the generation output


copy-as-curl

Request windows need a mapping to copy the request data as a curl command.

Implemented in #17


Ensure tests added in 91f050d2ef6b22b7aec187aa1cf4593955dcea82 work w…

…ith different openssl installations
Motivation:
Tests were added in 91f050d2ef6b22b7aec187aa1cf4593955dcea82 to run with different protocols / ciphers. These may fail currently when openssl was compiled without support for the protocol / ciphers.
Modifications:

Refactor tests to easier understand for which protocol / cipher it failed
Not fail the test if the protocol is not supported with the used openssl version.

Result:
More robust testing.

Cherry-picked into 4.1 (7736534) and 4.0 (0d2a0abaa2e8a598a9a50fc04a8ae13dea0d9c55)


PaLM Checkpoints

Hi!
Will the checkpoints of pre-trained PaLM models be released?
PaLM: Scaling Language Modeling with Pathways

I suppose this is a no-no, isn't it?

@zolastro Absolutely..... sigh.


Incident Response/Assessment: Chrome One Wallet Extension

Description
Two members of our community have reached out on talk.harmony.one about having large amounts of one taken. Harmony is launching a vulnerability assessment and analysis of Chrome One Wallet Extensions attack surface.
Context
Timeline

Nov12:@givp Issued a bounty to identify the root cause of Harmony Chrome Extension wallets account inconsistency.

Potential Relation:  Reported an issue with the Harmony Chrome Extension whereby upon restoration of a wallet, the wallet holds a different address from the original.
Post: [https://github.com/harmony-one/bounties/issues/88]

Nov18: @RoboValidator Posted about having ten million one stolen. Did not say if he was using one wallet extension on chrome.

Post: [Convo] (https://talk.harmony.one/t/offering-bounty-to-the-hacker-who-stole-10m-one/5845)
Tx: Transaction

Nov25: @cowgp Posted about having over 1.6 million one stolen. States he was using the Chrome wallet extension to stake, unstake and redelegate rewards.

Post: [Conversation] (https://talk.harmony.one/t/hip-17-blacklist-for-malicious-one-wallet-addresses/3272/63)
Tx: Transaction

Acceptance Criteria
**The following must be completed with a report of findings including steps to reproduce. The scope of the assessment done as well as any findings should be clearly described and any should be demonstrated clearly.
Artifact/Lead Collection
Gather and Document Artifacts:

[] Device Info:
[] Browser type:
[] Extension version:
[] Where mnemonic may have been stored:
[] List of recently visited websites with the browser of the extension on (all computers and browser profiles) for as far back as possible especially when the un-delegation started.

Leads from conversations with harmony devs and the individuals involved for documentation:

[] OSINT research into wether the victims wallet addresses where posted publically linking them to posts about there staking activities or linking them to there true identity.

Other artifacts:
- []
- []
Applications Security Info Gathering
Credential Generation/Storage

[] How does the application generate the seed phrase and private key?

[] How and where does the application store the seed phrase and private key?

[] Where does wallet/application stores sensitive data, how are they stored?

[] Does the application enforce a strong password policy?

Areas of interest: Potential UaF, CSRF, CRLF or Bruteforce Bypass
Addition Brute Force TOTP 2fa Info

[] Does the application require 2FA or pin code when users attempt to access sensitive information or transfer a token out?

Networking

[] Does the wallet connect to a trustworthy blockchain node?
[] Does the application allow users to configure a custom blockchain node, if so, what can a malicious blockchain node do to the application?
[] Does the application utilize a cartelized server, what information is sent from the client to the server?
[] Does the application server enforce TLS connection?

Source Code Analysis

[] Any secret(ex. API keys, AWS credentials) leaks in the source code repository?
[] Does the application third-party libraries and do the contain any vulnerabilities?
[] Any notable bad coding practice(ex. misuse cryptography) in the codebase?

Web Application Vulnerability Assesments

Web Application Security Testing

[] Review Webpage Content for Information Leakage
[] Identify Application Entry Points
[] Map Execution Paths Through Application
[] Fingerprint Web Application Framework
[] Fingerprint Web Application
[] Map Application Architecture
[] Configuration and Deployment Management Testing

Test Network Infrastructure Configuration

[] Test Application Platform Configuration
[] Test HTTP Methods
[] Test HTTP Strict Transport Security
[] Test RIA Cross Domain Policy
[] Test File Permission
[] Test for Subdomain Takeover
[] Test Cloud Storage
[] Identity Management Testing
[] Test Role Definitions
[] Test User Registration Process
[] Test Account Provisioning Process
[] Testing for Account Enumeration and Guessable User Account
[] Testing for Weak or Unenforced Username Policy

Authentication Testing

[] Testing for Credentials Transported over an Encrypted Channel
[] Testing for Weak Lock Out Mechanism
[] Testing for Bypassing Authentication Schema
[] Testing for Vulnerable Remember Password
[] Testing for Browser Cache Weaknesses
[] Testing for Weak Password Policy
[] Testing for Weak Password Change or Reset Functionalities
[] Testing for Weaker Authentication in Alternative Channel

Authorization Testing

[] Testing for Bypassing Authorization Schema
[] Testing for Privilege Escalation
[] Testing for Insecure Direct Object References

Session Management Testing

[] Testing for Session Management Schema
[] Testing for Cookies Attributes
[] Testing for Session Fixation
[] Testing for Exposed Session Variables
[] Testing for Cross Site Request Forgery
[] UaF Testing
[] Testing for Logout Functionality
[] Testing Session Timeout
[] Testing for Session Puzzling
[] Testing for Session Hijacking
[] Input Validation Testing
[] Testing for Reflected Cross Site Scripting
[] Testing for Stored Cross Site Scripting
[] Testing for HTTP Verb Tampering
[] Testing for HTTP Parameter Pollution<IP_ADDRESS> Testing for Oracle

Web Security Testing

[] Testing PostgreSQL
[] Testing for ORM Injection
[] Testing for Client-side
[] Testing for LDAP Injection
[] Testing for XML Injection
[] Testing for SSI Injection
[] Testing for XPath Injection
[] Testing for IMAP SMTP Injection
[] Testing for Code Injection
[] Testing for Local File Inclusion
[] Testing for Remote File Inclusion
[] Testing for Command Injection
[] Testing for Format String Injection
[] Testing for Incubated Vulnerability
[] Testing for HTTP Splitting Smuggling
[] Testing for HTTP Incoming Requests
[] Testing for Host Header Injection
[] Testing for Server-side Template Injection
[] Testing for Server-Side Request Forgery
[] Testing for Error Handling
[] Testing for Improper Error Handling
[] Testing for Stack Traces
[] Testing for Weak Cryptography
[] Testing for Weak Transport Layer Security
[] Testing for Padding Oracle
[] Testing for Sensitive Information Sent via Unencrypted Channels
[] Testing for Weak Encryption

Business Logic Testing

[] Test Business Logic Data Validation
[] Test Ability to Forge Requests
[] Test Integrity Checks
[] Test for Process Timing
[] Test Number of Times a Function Can Be Used Limits
[] Testing for the Circumvention of Work Flows
[] Test Defenses Against Application Misuse
[] Test Upload of Unexpected File Types
[] Test Upload of Malicious Files

Client-side Testing

[] Testing for DOM-Based Cross Site Scripting
[] Testing for JavaScript Execution
[] Testing for HTML Injection
[] Testing for Client-side URL Redirect
[] Testing for CSS Injection
[] Testing for Client-side Resource Manipulation
[] Testing Cross Origin Resource Sharing
[] Testing for Cross Site Flashing
[] Testing for Clickjacking

Web Security Testing

[] Testing WebSockets
[] Testing Browser Storage
[] Testing for Cross Site Script Inclusion
[] API Testing

Reward
TBD...
Additional References

Andriod Wallet Security Paper: andriod-wallet-security.pdf

OWASP Application Security Verification Standard 4.0.3-en.pdf

OWASP Web App Security Testing Guide

Tools

ZAP Attack Proxy

Potential Resources For Incident Respons or related DAO's:

Incident-Response_Initial-Prep.pdf

IR-handbook.pdf

NOTES

Keep a Security list of all bug fixes which could potentially comprimise the security of applications in the ecosystem. Maybe a list of all bugs and patches all in one display or location

RESOURCES
APP SOURCE CODE

harmony chrome extension
Harmony Chrome Extension Wallet v1.2.5 Latest Update init address list with Dat Penguin Club Contract address. Remove unnecessary isValidJson() check. This was not allowing HRC 721 tokens to be displayed properly.*

[https://github.com/harmony-one/chrome-extension-wallet/archive/refs/tags/1.2.5.tar.gz]

Repo named in package.json line 9
Harmony Chrome Extension Wallet v1.2.3: Password issue is fixed. You should be able to sign in/delegate/undelegate without any issue.

[https://github.com/harmony-one/chrome-extension-wallet/archive/refs/tags/1.2.5.tar.gz]

*[https://github.com/harmony-one/chrome-extension-wallet/archive/refs/tags/v1.2.3.tar.gz]
Harmony One Wallet v1.0.8 Pre-release:

Security: Tab response hijacking protection, Safe hostname detection, Private data is unreachable in page's javascript runtime (Derek)
Features: Displaying suggested human-readable method with input arguments when signing a data tx (Derek)

[https://github.com/harmony-one/chrome-extension-wallet/archive/refs/tags/v1.0.8.tar.gz]

Harmony One Wallet v1.0.7: Remove the master password, roll back to 1.0.5, and fixed the potential vulnerability issue.

[https://github.com/harmony-one/chrome-extension-wallet/archive/refs/tags/v1.0.7.tar.gz]

Hi people.
Before anything can be done in a serious way, we need to take out all easy methods that can be used to hack wallets, before going in deep.
Thats why i suggest removing the Copy To Clipboard option in all private key or key that can be used to import wallet, because if you copy that, some websites can get the content from clipboard.
Reference:
https://stackoverflow.com/questions/6413036/get-current-clipboard-content
Copy to clipboard, and i think taking screenshots are potential attack vectors. Before anything can be done those have to be mitigated.


Imperative Backend

Description
This PR introduces a new backend that commits the expression in gtfn_ir to individual statements. This PR is the implementation of this project of cycle 12. The purpose of (at least this iteration) of this project is to make the generated code as generated by the stencils in icon-exclaim more readable. This task is not well defined by definition, besides personal preference being part of the definition of readability, itir may represent arbitrarily complex constructs, and readability may become an ill posed requirement in those cases. Hence the focus on the patterns actually used by the icon-exclaim set of stencils.
Overview
The backend was realized as an additional lowering step with associated codegen. Optionally, gtfn_ir is lowered further to gtn_im_ir (im for imperative) that additionally features statements. A very lightweight codegen step is introduced transform these new dialect nodes to c++ code (gtfn). This can be controlled via an additional command line flag (communicated through the pipeline using kwargs).
Limitations
There are work-arounds for two issues with itir in this PR.

The eta pass is disabled for the body of reductions. This is because the eta pass generates an explicit call to plus for cases where the body of the reduction is not a binary operation, but a simple field access
Shift constructs are not lifted out of the arguments of reductions to avoid situations where there are no partial shifts in the argument list of reductions

Furthermore, the transformation form gtfn to gtfn_im is an eager, depth first search algorithm that only makes one pass. This prevents lowering of more involved itir constructs like passing lambdas or reductions as arguments to lambdas / functions. In this case, the backend throws an exception. The restrictions are made explicit by means of a visitor that checks for compatibility.
Testing

The backend has been added to the set of test backends and disabled/enabled as consitent with the default gtfn backend
The backend is tested using the full set of icon-exclaim stencils
Tests have been introduced to check the compatibility visitor of the backend

There are a several problems introduced by merge conflicts. Where there big changes in the gtfn->gtfn_im lowering compared to my last review? Wondering how deep I should go there.

Well, we had quite a few discussions about different aspects of the gtfn->gtfn_im in the past weeks, which were reflected in code. If you trust that my changes to this lowering are in the spirit of what we discussed, then you don't have to go too deep / current level of feedback is fine. If you think that there might be room for misunderstanding or ambiguity, then maybe a deeper look into the lowering again is warranted.


add support for changing the start and duration in the canvas via drag and resize handles

I would like to use the canvas instead of editing the json. this would make the initial planning easy.

Thank you for this suggestion but I'm not looking to add that kind of interactivity to the Canvas. Please fork if you'd like to do that! :bow:


Fixed nuget error.

Got this error:
Error	3	This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is D:\dev\commandline\\.nuget\NuGet.targets.	D:\dev\commandline\src\CommandLine\CommandLine.csproj	139	5	CommandLine
Googled and found this on Stackoverflow. So apparently this is something that was accidentally left in when the .nuget folder was deleted? The snippet I removed shouldn't be needed in the current/correct way to restore packages.

Ok so something is going wrong at appveyor. It seems to be running tests fine but I can't see why it references that last mono thing. Any ideas?
"C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" "CommandLine.sln" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
Microsoft (R) Build Engine version 12.0.31101.0
[Microsoft .NET Framework, version 4.0.30319.34209]
Copyright (C) Microsoft Corporation. All rights reserved.

  CommandLine -> C:\projects\commandline\src\CommandLine\bin\Debug\CommandLine.dll
  CommandLine.Tests -> C:\projects\commandline\src\CommandLine.Tests\bin\Debug\CommandLine.Tests.dll
Discovering tests...OK
%xunit20%\xunit.console.x86 "C:\projects\commandline\src\CommandLine.Tests\bin\Debug\CommandLine.Tests.dll" -appveyor
xUnit.net console test runner (32-bit .NET 4.0.30319.34209)
Copyright (C) 2015 Outercurve Foundation.

Discovering: CommandLine.Tests
Discovered:  CommandLine.Tests
Starting: CommandLine.Tests.DLL
Finished: CommandLine.Tests.DLL

=== TEST EXECUTION SUMMARY ===
   CommandLine.Tests.DLL  Total: 161, Errors: 0, Failed: 0, Skipped: 0, Time: 0.718s
%xunit20%\xunit.console.x86 "C:\projects\commandline\xunit.core.2.0.0\build\monotouch\xunit.execution.MonoTouch.dll" -appveyor
xUnit.net console test runner (32-bit .NET 4.0.30319.34209)
Copyright (C) 2015 Outercurve Foundation.

Discovering: xunit.execution.MonoTouch
System.ArgumentException: Unknown test framework: Could not find xunit.dll or xunit.execution.desktop.dll.
Parameter name: C:\projects\commandline\xunit.core.2.0.0\build\monotouch\xunit.execution.MonoTouch.dll
Command exited with code 1

I've seen the PR now sorry... But it's fixed now, no more problem with AppVeyor. Can you confirm that, @mizipzor?
Anyway, thanks.


Align button

Align "AVVIA SCAN" button

@maxcanna thanks for your suggestion, the team is working on a new UI for the app! Going to close this PR

Oh, ok. Looking forward to see it then!


Vite配置babel插件@babel/plugin-proposal-object-rest-spread不生效

Describe the bug
<EMAIL_ADDRESS>Reproduction
无
Steps to reproduce
无
System Info
chrome70

Used Package Manager
npm
Logs
无
Validations

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

Vite doesn't support chrome70 by default. In dev, you'd need to use evergreen browsers to develop. In build, you can use @vitejs/plugin-legacy to support older browsers. More info.


Removing duplicates

Hi,
In your paper, you mention that 'We remove all examples of 80 Million Tiny Images which appear in the CIFAR datasets'. I was trying to download 80 million Tinyimagenet but apparantly it is not available anymore. Instead, I am trying to use  imagenet32X32. Is there an effective way to remove duplicates of cifar10 or cifar100 from imagenet32X32 ?

A mirror of 80 million tiny images is here: http://www.archive.org/download/80-million-tiny-images-2-of-2/tiny_images.bin

Thank you for the link and quick response. How about removing the duplicates of cifar from it?


Migrate rfdocs manifests and packages to github.

The plugin is great but with rfdocs.org not currently available it would be ideal to add these manifests and packages somewhere else.

You can run rfdocs locally https://github.com/andriyko/rfdocs and configure the plugin to get data from localhost. I can bring rfdocs.org up, but i do not want to pay my own money for the hosting as it was during 2 years. So, if Robot Framework users really need rfdocs.org, i suggest to discuss it in google group.


Fix: Incorrect Query Prefixing for Embedded Models in Query Construction

Background:
In the current implementation, constructing queries involving embedded models results in incorrect field prefixing. Specifically, when combining multiple conditions using logical operators (e.g., OR |), the parents list—which tracks the hierarchy of embedded fields—is unintentionally merged. This leads to improperly concatenated field names, causing queries like @player1_player2_username:{username} instead of the intended @player1_username:{username} | @player2_username:{username}. as mentioned in #636 .
Problem:
When executing queries with embedded models, the shared parents list across different expressions causes incorrect prefix concatenation. This results in invalid RediSearch queries that do not accurately target the intended fields within embedded models.
class Player(EmbeddedJsonModel):
    username: str = Field(index=True)

class Game(JsonModel):
    player1: Optional[Player]
    player2: Optional[Player]

q = Game.find((Game.player1.username=='username') | (Game.player2.username=='username'))
print(q.query)
# Output: (@player1_player2_username:{username}) | (@player1_player2_username:{username})
# Expected: (@player1_username:{username}) | (@player2_username:{username})

Solution:
To resolve this issue, the management of the parents list within the ExpressionProxy and FindQuery classes has been revised to ensure that each expression maintains its own isolated parents hierarchy. This prevents the unintended merging of prefixes when combining multiple query conditions.
Key Changes:
Cloning the parents List in ExpressionProxy:
__init__ Method:
Cloned the parents list to ensure each ExpressionProxy instance operates with its own copy, preventing shared state across expressions.
__getattr__ Method:
Cloned the parents list before appending a new parent, maintaining isolation between different query expressions.
Adjusting FindQuery.resolve_redisearch_query:
Ensured that the parents list specific to each expression is used independently when constructing the query string.
Prevented the merging of prefixes by correctly prefixing field names based on their respective parents hierarchies.
Ensuring Correct Prefixing in resolve_value:
Confirmed that the resolve_value method receives and utilizes the correctly prefixed field_name, eliminating the possibility of incorrect query segments.
Impact:
Correct Query Construction: Queries involving embedded models will now correctly reflect the intended field hierarchies without erroneous prefix concatenations.
Enhanced Reliability: Prevents future issues related to query inaccuracies when dealing with complex embedded model structures.
Backward Compatibility: Existing functionalities remain unaffected except for the correction of the query construction logic.
This resolves #636 and
also #542

Hi @banker @simonprickett @chayim
can you guys pls take a look at this?

Thanks for this fix. @slorello89 I could use this fix for my newer features.
Can we make a release to pypi?


Clean up echo area during startup

Currently we are getting quite a few messages in the echo area during startup, and they are not representative of the important phases of the startup. These should be suppressed, so that important messages can be noticed if there are any.

Resolved in ac5eec4e8a4cb48919bb8016ad31b3b82a0f47db.


Role Mapper does not handle correctly attribute value with '='

Hi @philippej13,
Can you squash your commits and refer your commit to the issue #1936 as follow :
Fixes gravitee-io/issues#1936
https://help.github.com/articles/closing-issues-using-keywords/
Thanks

👍
Thanks @philippej13, see you soon ;)


Collection key type in YAML breaks map range order

When defining a collection in Hugo data file using YAML format it is then parsed as map[interface {}]interface {}. This fundamentally differs from TOML and JSON which parses collections to map[string]interface {}.
Example (YAML):
test:
  a: 1
  b: 2

is parsed to:
map[interface {}]interface {}{"a":1, "b":2}

Example (TOML):
[test]
a = 1
b = 2

is parsed to:
map[string]interface {}{"a":1, "b":2}

Example (JSON):
{
  "test": {
    "a": 1,
    "b": 2
  }
}

is parsed to:
map[string]interface {}{"a":1, "b":2}

As YAML is a superset of JSON one can suppose the same key type in both formats.
The following have a great effect on ranging over maps. From the range docs:

If the value is a map and the keys are of basic type with a defined order ("comparable"), the elements will be visited in sorted key order.

Apparently string is comparable, unlike interface{}.

I came across another issue with this behaviour. map[interface {}]interface {} is not 'jsonifiable'. Given data in test.yaml executing: {{ .Site.Data.test | jsonify }} outputs:
ERROR 2017/11/15 14:43:43 Error while rendering "home": template: index.html:8:23: executing "index.html" at <jsonify>: error calling jsonify: json: unsupported type: map[interface {}]interface {}

I assume this is a go-yaml upstream issue -- and I think I have seen it before?

Duplicate of #2441


[FEATURE] Ability to select the default concrete type of an abstract class

Feature destription
Description
Hi, thank you for this very useful package!
I have a suggestion to make the package more convenient to use, by being able to select the default concrete type of an abstract class rather than <null> like the image below (ex: default to DebugCommand). Is that possible? Or is it too complicated and not worth the time.

Thanks for your attention

Hi.
Sorry, the functionality of this library is implemented by an editor extension in CustomPropertyDrawer for Attribute, but it is not possible to implement this functionality because it is difficult to observe the array strictly by PropertyDrawer.
If such functionality is necessary, it would be necessary to observe changes in the length of the array in your component inspector editor extension.
I hope this is helpful !


Add Setup Dependencies Action and Refactor Workflows

Description
This pull request introduces several improvements to the project's CI/CD workflow and dependency management:

Added a new reusable GitHub Action setup-dependencies to streamline the installation process across workflows.
Updated the code-quality.yml and code-test.yml workflows to use the new setup-dependencies action.
Expanded Dependabot configuration to include the new setup-dependencies action directory.
Upgraded several GitHub Actions to their latest versions:

UmbrellaDocs/action-linkspector from v1.2.1 to v1.2.2
SonarSource/sonarcloud-github-action from v3.0.0 to v3.1.0

Removed the .python-version file, now using pyproject.toml for Python version specification.
Updated Ruff to version 0.6.9 and adjusted its configuration in pyproject.toml.
Updated pytest and pytest-cov dependencies to use specific versions instead of caret notation.
Added a name to the pull request labeller job for better visibility in GitHub Actions.
Enhanced the labeler configuration to include new labels for Just, Shell, GitHub Actions, and Git Hooks.
Added new labels in the labels.yml file for Python, GitHub Actions, Just, Shell, and Git Hooks.

These changes aim to improve consistency, maintainability, and efficiency of the project's development workflow.
fixes #46

#49  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @JackPlowman and the rest of your teammates on  Graphite

Merge activity

Oct 7, 7:41 AM EDT: @JackPlowman merged this pull request with Graphite.


Stages management

I created a project and 3 stages using this command:
jaws stage create

And then deployed each of the new stages using jaws dash.
JAWS created 3 Lambda functions for me and 3 API Gateway resources (each with one stage). What I expected was that JAWS would re-use a single Lambda function and a single API Gateway resource with 3 stages like on this screenshot:

What's the reasoning behind the decision to make JAWS work like this?

The bigger question to me is why you would want to re-use a single lambda function. Wouldn't that make it impossible to have different versions for each stage?

There is versioning in Lambda but currently theres no way to tie a stage or stage(s) from api-gateway to a version or alias.

@dcrockwell both Lambda and API Gateway (and JAWS is already making use of stages in API Gateway–in it's own way).
@yyolk sounds reasonable. I would still like to hear what authors/contributors would say. Maybe I've configured something wrong?

The lambda versioning was released fairly recently, which just happened to coincide with a heroic level core rewrite by @ac360 and @doapp-ryanp for a plugin oriented architecture. The JAWS framework is going to leverage API gateway stages and better lambda versioning support soon.
Check out the roadmap for more info on these issues and more
From the RoadMap...
Incorporate New Lambda Versioning & Aliases
AWS Lambda now features versioning and aliasing support.  We need to implement a new deployment workflow to incorporate these new features.
...
This flow will allow multiple developers to work on the same lambda in their own stage while preventing collisions.  Also provides a clear and methodical release planning with quick and easy roll-back support
Fix API Gateway Deployment To Use Stages Accurately (GitHub Issue #192)
When deploying API Gateway endpoints, JAWS creates a separate REST API on APIG for each stage.  JAWS should use a single REST API per region and create multiple stages within that.

@shortjared thank you very much for the detailed and patient reply! I was honestly searching in existing issues but hadn't found #192 before.
Glad to know it's on the roadmap! Cheers!


WIP: (feat) Polymer 2: Improve ES5 compatibility.

Open questions:

[x] Does core.js/client/shim.js 2.5.1 work in IE11?
[x] Does webcomponentsjs/webcomponents-loader.js 1.0.17 work in IE11?
[x] Does polymer/polymer-element.html 2.2.0 work in IE11?
[ ] Does dolphin-platform-polymer/dolphin-controller.html work in IE11?
[ ] Does dolphin-platform-polymer/build/es5-bundled/dolphin-controller.html work in IE11?

Test strategy: Setup a repository for GitHub pages, install all files all Bower dependencies, and add several HTML files that each use the imports in questions. Refine builds until there are no errors in the console.
polymer serve: This works.
$ ./node_modules/.bin/polymer serve --compile auto

polymer test: This also works (polymer test uses wct with --compile auto; wct is web-component-tester).
$ ./node_modules/.bin/polymer test --local chrome --persistent --skip-selenium-install

polymer build: Somehow this does not work.
$ polymer --version
1.5.7
$ polymer build
$ polymer serve build/es5-bundled/ --hostname <IP_ADDRESS>

cool. What is left to mark the last two checkboxes as checked?

@blackdrag The decision, whether or not to bundle a precompiled ES5-compatible <dolphin-controller>.


[FLINK-13561][table-planner-blink] Verify and correct time function's semantic for Blink planner

What is the purpose of the change
Fix behavior of several datetime builtin functions in blink planner.
Brief change log

af3db19573d91acae9cc15e2186680b49b659fdd  Fix NOW() should return TIMESTAMP instead of BIGINT
This aligns the behavior to other systems (MySQL, Spark). Because NOW() is Synonyms for CURRENT_TIMESTAMP.

d3af9e280d705e51c1f3bc16908e5650c7a639ea  Fix UNIX_TIMESTAMP(string [,format]) should work in session time zone
This aligns the behavior to other systems (MySQL, Spark). UNIX_TIMESTAMP(string [,format]) is an inverse of FROM_UNIXTIME(bigint [,format]). We also remove the support of UNIX_TIMESTAMP(timestamp) in this commit.

5939a990cd86fc16141a39587e565988734162bc  Fix FROM_UNIXTIME(bigint [,format]) should work in session time zone
This aligns the behavior to other systems (MySQL, Spark).

584df370a4feb34b1ef1bdb4a81b60809dad7128  Drop TO_DATE(int) function support
This commit drops TO_DATE(int) function support in blink planner to align with other systems. We only support TO_DATE(string [,format]) in this version.

1a590b6d9c792b136a109cc5f3ad1ab3bf0f6916  Drop TO_TIMESTAMP(bigint) function support
This commit drops TO_TIMESTAMP(bigint) function support in blink planner to align with other systems. We only support TO_TIMESTAMP(string [,format]) in this version.

7dfb34225535a673c99baa4cd7b7dd0ed8a34783  Drop CONVERT_TZ(timestamp, format, from_tz, to_tz) function support
This commit drops CONVERT_TZ(timestamp, format, from_tz, to_tz) function support in blink planner to align with other systems. We only support CONVERT_TZ(timestamp, from_tz, to_tz) in this version.

c2b09aa4f5c00eb5436e5f2e4ed1983657c9753e  Drop DATE_FORMAT(timestamp, from_format, to_format) function support
This commit drops DATE_FORMAT(timestamp, from_format, to_format) function support in blink planner to align with other systems. We only support DATE_FORMAT(timestamp, to_format) and DATE_FORMAT(string, to_format) in this version.

84be6c933af6b8a960df17f6767d620db7f3a59f  Remove some builtin datetime functions which can be covered by existing functions
Removes DATE_FORMAT_TZ, DATE_ADD,DATE_SUB, DATEDIFF, FROM_TIMESTAMP, TO_TIMESTAMP_TZ builtin functions which can be covered by existing functions.

Verifying this change
This change is already covered by existing tests. For the functions changed behavior, we modified existing tests and add some more tests.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

CI passed in my own travis: https://travis-ci.org/wuchong/flink/builds/568707905

Thanks @JingsongLi  for the reviewing. I have updated the PR. I think the commit message explains the changes. Please have a look again when you are free.

LGTM +1

Thanks @JingsongLi  for the reviewing.
The travis failed on an unrelated case which has been fixed FLINK-13605.
https://travis-ci.com/flink-ci/flink/builds/122406398
Will merge this.

Merged with commits:
28260cdd70aee0a4169a068887feae71a81ec4c0
e8fd892220f6575ef99339d274b812202e687f93
d01cfb0cdedea79b2b946b7c3367b29a787d3e79
b41b52a6d1a18eafa113de3abd14da519de8cf2f
80f17d5b16b139023ee63c1251491075000157f7
8dbc64105c13dfae467f2cfb75ec67d0d2d56c84
bde51f9e46600154bd60321d3d345bb539b30ed1
c365780e7527a917e9d127694cd80cf2cdabf247
499a0f49de47c61ad8ef6341402756468d25f680


Added the error message to the filed upload notification

Added the error message to the file upload notification
Fixes #4510
Changed the StashUploadResult to return a message with the status so we can show it in notifications and the user can see what went wrong
Logged in, changed password via main site, uploaded image, failed, notification body contained message
Logged in, uploaded successfully and verified normal message was unchanged
Tested ProdDebug on Pixel 5 with API level 28

@neslihanturan Hmm, it's building fine for me. I added a default case, so maybe that will help the build get past any missing params? Let me know if that helps or not.

@neslihanturan Found the problem. Totally my bad, though I still don't know why my compiler didn't pick up on it. Hopefully, that should fix the build.

Hey @jeremybowenn , currently there is no visible issues with the PR. However, when I tried to cut my internet connection while I upload a photo, upload fails as expected but the notification does not say anything about the reason. Can you say which kind of scenario you have tested and verified the PR is working?

Hey, is this PR is still active?:)

Hey, sorry, I've been a bit busy and this got lost in the shuffle.
I tested this using a pixel 5 emulator on my computer that wasn't connected
to the internet so that all uploads would fail.
I can check the code in master this weekend to ensure everything is working
right.
On Fri, Dec 17, 2021, 4:52 AM neslihanturan @.***>
wrote:

Hey, is this PR is still active?:)
—
Reply to this email directly, view it on GitHub
https://github.com/commons-app/apps-android-commons/pull/4588#issuecomment-996624572,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOK7FLVLZ7UFNJJXD4HBKRTURMI7XANCNFSM5C7KZQGA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi @jeremybowenn , is there any uodate :)

@neslihanturan Sorry for the wait. For my own clarification, did this go into master and you are having problems there, or are you testing my branch and having issues with it on there? If you are on master or another branch, then I don't think it'll work because this hasn't merged yet I believe.
As for testing on my own branch, I'm running into an error on login about Chain validation failed which is preventing me from logging in to test the uploader. If you can confirm that this is happening on my branch and tell me what I'm doing wrong for logging in, I'll get in and try to figure it out asap.

Hey @jeremybowenn , my tests results were on your branch and with beta flavor. Here is the repeated test when I turn off the internet during the upload. I get the same result, no information on notification :(

Sorry for all the wasted time! I made some bad assumptions about the code that should be fixed now. When I try to upload with the wifi turned off now, it shows the following error. The full text is "No content provider: /data/user/0/fr.free.nrw.commons.beta/cache/CommonsContributions/fbe1b980-bfd3-4743-a765-d6d714856e255395746841364598558.jpg" This is directly copied from the exception that was thrown in upload process, so I'm not sure if it will be helpful to some people. Should I also handle translating these errors into something more user-friendly or would you rather do that some other time?

.

Do the right thing

Sorry for all the wasted time! I made some bad assumptions about the code that should be fixed now. When I try to upload with the wifi turned off now, it shows the following error. The full text is "No content provider: /data/user/0/fr.free.nrw.commons.beta/cache/CommonsContributions/fbe1b980-bfd3-4743-a765-d6d714856e255395746841364598558.jpg" This is directly copied from the exception that was thrown in upload process, so I'm not sure if it will be helpful to some people. Should I also handle translating these errors into something more user-friendly or would you rather do that some other time?
 .

Its better if you can pinpoint these errors and add those conditions.
This would be great, thanks.

Hi @jeremybowenn , is this PR still active?:)

@neslihanturan Sorry, but I don't think I'm going to be able to come back to this. Others are more than welcome to use my code to finish this off.

Thanks for your inputs @jeremybowenn,
Closing this one.


Dzimmer patch 1

This request is only for the readme
It is only a first version but "beta-than-nothing"

relevant changes in #15


Add ES 2016 transpilation to Babel config

Fixes #33

@JamesMGreene Did you receive any of the following errors when running without altering init_static.js?
>> SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    >> SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

@sniggitysnax Not once I upgraded to Node 6.x.


[RELAY][MXNET][FRONTEND] Support "dot" and "LogisticRegressionOutput"

Adds support in MXNet frontend for:

dot AKA dense/matmul. Only 2-D input case is supported now.
LogisticRegressionOutput AKA sigmoid.

Both ops can be mapped to existing Relay operators.

@kevinthesun @icemelon9 Could you help review?

Thanks @trevor-m @ZihengJiang @zhiics


Generalize computing SWIFT_HOST_MODULE_TRIPLE

This patch updates the logic for figuring out the Swift module triple from manually trying to patch something together to just asking the Swift driver to tell us what it is based on what we're compiling for.
I'm a little confused on the terminology/intent though. The name is SWIFT_HOST_MODULE_TRIPLE, which in CMake parlance would be the build machine, while it's looking at variables like CMAKE_SYSTEM_PROCESSOR, which are the machine it's building for. I'm going with the machine it's building for in this though.

@swift-ci please test


[docs] Improve custom progress bar demo

Since this component has to display background behind a "real" progress, the 100 value has to be overridden, otherwise it won't be displayed since their values are the same.
<Progress variant="static" color="secondary" value={progress} />

before:

after:

[x] I have followed (at least) the PR section of the contributing guide.

@id0Sch It's a great first pull request on Material-UI 👌🏻. Thank you for working on it!

@oliviertassinari thanks!
Been using material-ui for years now, great to finally give back.
Thanks for your great work!!


BUG: Add sphinx config value in setup

Otherwise the default value overrides the value set in config.py.
This is a great extension, thanks!

Nice catch, thanks for the patch!

Thanks for the prompt merge and new release!


PoC on using websockets with keycloak authentication

Fixes https://github.com/Activiti/Activiti/issues/1714
This is part of PR https://github.com/Activiti/activiti-cloud-query-service/pull/40 to embed Graphql Websockets proxy in Application Gateway with Keycloak Authentication support

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Oembed block

Depends on #1306
Adds an oembed block type which can generically render whatever embed code is required by the configured adapter.

do we have any sample for how to render this on next app or on pug view?

Not yet. The same goes for all the other Blocks: the only "renderer" so far is the AdminUI, but I will be building some examples soon.
The core of what's required it's too make a query like so:
{
  Post(where: {id: "5ce222f898c9bf47598db9c2"}) {
    value {
      document
      cloudinaryImages {
        id
        image {
          publicUrl
          __typename
        }
        align
        __typename
      }
      oEmbeds {
        id
        embed {
          type
          originalUrl
          version
          title
          cacheAge
          provider {
            name
            url
            __typename
          }
          author {
            name
            url
            __typename
          }
          thumbnail {
            url
            width
            height
            __typename
          }
          ... on OEmbedPhoto {
            url
            width
            height
            __typename
          }
          ... on OEmbedVideo {
            html
            width
            height
            __typename
          }
          ... on OEmbedRich {
            html
            width
            height
            __typename
          }
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}

Then there'll be a keystone-supplied deserialisation lib which will convert the result into a format ready for rendering by slate.js 👍


Proposal to obsolete/retire the gosubset_prok slim

Dear all,
The gosubset_prok is very out of date and very incorrect (for example it contains terms such as    GO:0048488  synaptic vesicle endocytosis). The GO ontology editors propose to retire this subset.
The purpose that this subset served when it was created can now be met with taxon constraints.
Please let us know if you have any concerns or objections.
Thanks, Pascale

So, before I can do that, how will I 'save' the old terms ? Other retired slims are in .obo formats, I am not sure how to generate that from protégé.
http://geneontology.org/page/go-subset-guide
I can get the list of terms and save it on the GO website, as a list.
I'm adding this to the editors discussion for next week.
Pascale

ok thanks.


Add zwaply.com to Exchanges

[ ] Description is satisfied.
[ ] Changes display correctly on desktop / mobile.
[ ] Translations have been added or amended as necessary.

Bounty Low shared by issues #213 #214

Claimed.


How to get the front and rear vehicles of ego-vehicle ?

How to get the front and rear vehicles of ego-vehicle  if they are in different lanes of the road  in roundabout env?
For example, the ego vehicle is on a straight lane, and the preceding vehicle is on a connected circular lane.I called your neighbor_vehicles(), but the results are inconsistent when verified in simulation, I'm a little confused
So,thanks for your reply.

Hi,
This is a tricky question whenever we are dealing with a road network more complicated than a straight road (topogically).
For example, if two lanes are merging into the ego-vehicle lane, how should we define the following vehicle? Is it V1 or V2? Similarly, if the ego-vehicle's lane is splitting in two, which vehicle is the preceding one, V3 or V4?
V1 --          -- V3
      \      /
       --EV--
      /      \
V2 --          -- V4

I chose the simple heuristic to project every vehicle on the current vehicle lane and pick the closest, and it works fine most of the time but can easily fail in more complex situations.
If you have any better idea I'm happy to hear your suggestions.

I am very happy to receive your reply!
Can you elaborate on how to project each vehicle onto the ego_vehicle's lane?


Syntax Error when starting HBMQTT

Home Assistant release with the issue:

0.77.2
Last working Home Assistant release (if known):
0.74
Operating environment (Hass.io/Docker/Windows/etc.):
Arch Linux - 4.18.5-arch1-1-ARCH
Component/platform:
homeassistant.setup
Description of problem:
2018-08-31 18:22:51 ERROR (MainThread) [homeassistant.setup] Error during setup of component mqtt
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 145, in _async_setup_component
hass, processed_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mqtt/init.py", line 364, in async_setup
broker_config = await _async_setup_server(hass, config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mqtt/init.py", line 311, in _async_setup_server
hass, conf.get(CONF_PASSWORD), conf.get(CONF_EMBEDDED))
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mqtt/server.py", line 39, in async_start
from hbmqtt.broker import Broker, BrokerException
File "/srv/homeassistant/lib/python3.7/site-packages/hbmqtt/broker.py", line 29
from asyncio import async as ensure_future
^
SyntaxError: invalid syntax
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
#MQTT
mqtt:
  password: hello

Traceback (if applicable):
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 145, in _async_setup_component
    hass, processed_config)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mqtt/__init__.py", line 364, in async_setup
    broker_config = await _async_setup_server(hass, config)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mqtt/__init__.py", line 311, in _async_setup_server
    hass, conf.get(CONF_PASSWORD), conf.get(CONF_EMBEDDED))
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mqtt/server.py", line 39, in async_start
    from hbmqtt.broker import Broker, BrokerException
  File "/srv/homeassistant/lib/python3.7/site-packages/hbmqtt/broker.py", line 29
    from asyncio import async as ensure_future
                            ^
SyntaxError: invalid syntax

Additional information:

You have an outdated hbmqtt lib. Please check your [config_dir]/deps folder, or other lib path.

Thanks for the pointer, I had tried upgrading hbmqtt before raising the issue. Uninstalling and re-installing initially appeared to fix the problem. However it seems that hass is overwriting the installed version of hbmqtt 0.9.4 with version 0.9.2 and causing the problem.
Successfully uninstalled hbmqtt-0.9.2
(homeassistant) [homeassistant@automatatron .homeassistant]$ pip3 install hbmqtt
Collecting hbmqtt
Using cached https://files.pythonhosted.org/packages/39/03/2c3042967200e995587a869b5974b9e28e53cae6bbd5e7256ef8a405c4f4/hbmqtt-0.9.4-py2.py3-none-any.whl
Requirement already satisfied: transitions in /srv/homeassistant/lib/python3.7/site-packages (from hbmqtt) (0.6.8)
Requirement already satisfied: pyyaml in /srv/homeassistant/lib/python3.7/site-packages (from hbmqtt) (3.13)
Requirement already satisfied: passlib in /srv/homeassistant/lib/python3.7/site-packages (from hbmqtt) (1.7.1)
Requirement already satisfied: websockets in /srv/homeassistant/lib/python3.7/site-packages (from hbmqtt) (6.0)
Requirement already satisfied: docopt in /srv/homeassistant/lib/python3.7/site-packages (from hbmqtt) (0.6.2)
Requirement already satisfied: six in /srv/homeassistant/lib/python3.7/site-packages (from transitions->hbmqtt) (1.11.0)
Installing collected packages: hbmqtt
Successfully installed hbmqtt-0.9.4
(homeassistant) [homeassistant@automatatron .homeassistant]$
(homeassistant) [homeassistant@automatatron .homeassistant]$ hbmqtt --version
0.9.4
(homeassistant) [homeassistant@automatatron .homeassistant]$ sudo systemctl restart home-assistant@homeassistant
[sudo] password for root:
Sorry, try again.
[sudo] password for root:
(homeassistant) [homeassistant@automatatron .homeassistant]$ hbmqtt --version
Traceback (most recent call last):
File "/srv/homeassistant/bin/hbmqtt", line 7, in
from scripts.broker_script import main
File "/srv/homeassistant/lib/python3.7/site-packages/scripts/broker_script.py", line 23, in
from hbmqtt.broker import Broker
File "/srv/homeassistant/lib/python3.7/site-packages/hbmqtt/broker.py", line 29
from asyncio import async as ensure_future
^
SyntaxError: invalid syntax
(homeassistant) [homeassistant@automatatron .homeassistant]$ pip3 uninstall hbmqtt
Uninstalling hbmqtt-0.9.2:
Would remove:
/srv/homeassistant/bin/hbmqtt
/srv/homeassistant/bin/hbmqtt_pub
/srv/homeassistant/bin/hbmqtt_sub
/srv/homeassistant/lib/python3.7/site-packages/hbmqtt-0.9.2.dist-info/*
/srv/homeassistant/lib/python3.7/site-packages/hbmqtt/*
/srv/homeassistant/lib/python3.7/site-packages/scripts/*
/srv/homeassistant/lib/python3.7/site-packages/tests/mqtt/*
/srv/homeassistant/lib/python3.7/site-packages/tests/plugins/*
Proceed (y/n)?

#15479


feat: Add the ASYNC_CHAT_SAVING_ENABLED environment variable to control the enabling of the asynchronous background database saving feature for chats.

In middleware.py, the ASYNC_CHAT_SAVING_ENABLED environment variable has been introduced to control the enabling of the asynchronous background database saving feature for chats, addressing the output speed decrease caused by database latency as discussed in #8088.
https://github.com/user-attachments/assets/949c4212-280c-4002-9d0e-666bfe6d8eb4
In the video, the change in the output speed of the same model is demonstrated after toggling the ASYNC_CHAT_SAVING_ENABLED feature, with time.sleep(0.1) used to simulate database latency.

Closing in favour of d55884b50ec06d3c40540deb47ae6d821b27ab04

Closing in favour of d55884b

I just pulled the latest code from the dev branch and reviewed the merge of d55884b. I noticed that if you click "Stop" during the model's output process, the data will not be saved to the database.
https://github.com/user-attachments/assets/461eed1e-8c54-43bf-958b-a6e70838b976

5a720a4a31058ed88a58930052128bc6a0ad062e


Error: Could not find or load main class io.coinswap.client.Main

I get this error on startup, using java-8-openjdk on Linux.

I can second that with
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
on windows

I did get mercury running!
java -jar " Mercury Wallet.jar"
did it for me
~/mercury $ java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
Honestly: It looks FANTASTIC!

I haven't looked into properly bundling it in a way that is easy to redistribute (an installer, OSX .app, etc.), so sorry that it's just a bunch of .jars right now. I'll look for a better solution then it should resolve this issue.

Honestly: It looks FANTASTIC!

Thanks! :)

For now, this error can be fixed by updating to Java 8.

Now there are binaries built for each platform so that problems like this don't happen. This problem shouldn't be encountered anymore. :)

I'm still experiencing this issue. I'm on Arch Linux with JDK8.
$ java -version
openjdk version "1.8.0_45"
OpenJDK Runtime Environment (build 1.8.0_45-b14)
OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)
$ java -jar " MercuryWallet-0.0.2.jar"
Error: Unable to access jarfile  MercuryWallet-0.0.2.jar

I am getting the exact same result as @peerchemist and @dmp1ce. Attempted on Linux with OpenJDK 8 JRE using the Mercury binary.
$ java -version
openjdk version "1.8.0_45-internal"
OpenJDK Runtime Environment (build 1.8.0_45-internal-b14)
OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)
$ java -jar "MercuryWallet-0.0.2.jar"
Error: Could not find or load main class io.coinswap.client.Main

Installing java-openjfx fixed this for me.
sudo pacman -S java-openjfx

I created a package on the AUR for Arch users.
https://aur.archlinux.org/packages/mercuryex/


Fix missing import

The previous commit has accidentally removed (or rather moved to a comment) an import to core::pin::Pin. This PR puts it back, allowing builds to be successful once more.

Thank you for noticing that typo! The library is still in extreme WIP development and is in a somewhat-broken state currently (I'm learning as I'm going). I'm hoping to have a stable API finished within the next month.
Until then, I'm sorry if any of my commit breaks builds! Once there there is a stable release, there is going to be a stable branch.


Menu items broken

Under Win7 64b pro...
With the latest build, 35c72, the Time, Motors, and Comms block menus are either blank or significantly reduced from prior functions.
The functions menu has functions with input variables available.  Not sure if you are just in the middle of adding the functionality back, or if this was also a side effect of the update.

35c726c50efa8d97334ad6c9b41d55c79061361b comes from the better_types branch (full file name is ardublockly_Windows32_2016-01-26_02.01_better_types_35c72.zip), which is an unfinished feature branch, so it is currently broken. I'm still working on it, testing a couple of things before merging into master.

I figured that was the case, just making sure u were aware.
What about longs and doubles?
On Jan 26, 2016 7:05 PM, "Carlos"<EMAIL_ADDRESS>wrote:

35c726c
https://github.com/carlosperate/ardublockly/commit/35c726c50efa8d97334ad6c9b41d55c79061361b
comes from the better_types branch (full file name is
ardublockly_Windows32_2016-01-26_02.01_better_types_35c72.zip), which is an
unfinished feature branch, so it is currently broken. I'm still working on
it, testing a couple of things before merging into master.
—
Reply to this email directly or view it on GitHub
https://github.com/carlosperate/ardublockly/issues/38#issuecomment-175322045
.

Wasn't planning to support them as auto-detected type, but could be added to the "cast" block.

Latest master now has the better_types branch merged in.


Add kubectl context

Shows the current kubectl context.
Using cat/grep/cut just for performance.

Anything else I can/should provide on this PR??

Can I add something in here? The part of ~/.kube/config being searched for looks like this:
current-context: foo.my-domain.com

The problem is that when cutting columns, there is an extra leading whitespace. Which means when the context appears in the prompt line, there are always two spaces in between the initial character and the context name.
This works as a replacement command, and doesn't require piping multiple commands together (tested on OSX and Ubuntu):
awk -F' *: *' '$1 == "current-context" {print $2}' ~/.kube/config

It's simply using awk with a field separator that may or may not including padded spaces, looking specifically for the current-context column, and displaying the value next to it (this is another reason I don't like the grep approach, because it's always possible that they may update with a comment or some other context where they may mention current-context, which would completely derail that approach and display garbage in the prompt.
Sorry, I think this is a fanastic update, but it would genuinely drive me insane to stare at those two spaces all day. Thoughts?

hey. totally welcome suggestion. once i get back to my laptop later today ill update this PR with your suggestion or something else that achieves the same result ;)
Sent from my iPhone

On Sep 1, 2017, at 12:10 PM, Joey Espinosa<EMAIL_ADDRESS>wrote:
Can I add something in here? The part of ~/.kube/config being searched for looks like this:
current-context: foo.my-domain.com
The problem is that when cutting columns, there is an extra leading whitespace. Which means when the context appears in the prompt line, there are always two spaces in between the initial character and the context name.
This works as a replacement command, and doesn't require piping multiple commands together (tested on OSX and Ubuntu):
awk -F' *: *' '$1 == "current-context" {print $2}' ~/.kube/config
It's simply using awk with a field separator that may or may not including padded spaces, looking specifically for the current-context column, and displaying the value next to it (this is another reason I don't like the grep approach, because it's always possible that they may update with a comment or some other context where they may mention current-context, which would completely derail that approach and display garbage in the prompt.
Sorry, I think this is a fanastic update, but it would genuinely drive me insane to stare at those two spaces all day. Thoughts?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.

updated with @TheRealJoeLinux suggestion

comment removed

Would love to have this merged, was about to make a PR for this feature!

@jwkicklighter the PR has been here for a while, I have no idea how they go about merging thou :)

Just tested this out, works perfectly! Would like to see this in as well :+1:


Uploading an image always returns 500

Date: 06/09/2024
Tester: Gilbert Reid
Assigned To:
Severity: Severe
Priority: High
Status: Unresolved
Summary:
The API consistently returns a 500 Internal Server Error when attempting to upload an image. This prevents the successful upload of images and blocks the functionality entirely, affecting any features that rely on image uploads.
Expected Result:
The API should successfully handle image uploads and return a 200 OK or 201 Created status with the corresponding response. In case of an invalid file or other client error, the API should return an appropriate 4xx error (e.g., 400 Bad Request).
Actual Result:
A 500 Internal Server Error is returned every time an image is uploaded, regardless of the file format or size, making image upload functionality unusable.
Defect Description:
Navigate to the image upload API endpoint (e.g., https://petstore3.swagger.io/api/v3/pet/{petId}/uploadImage)
Upload a valid image format.
Submit the request.
Observe that the API returns a 500 Internal Server Error without successfully uploading the image.


add newWebsite boilerplate

@themzed kindly pinging you again about my PR into this repository, seeing that you too ran into failing builds. Please take a look and merge it so builds can finally start passing:
https://github.com/text-mask/text-mask/pull/971


Update 'Role launch stage' for datashare mgr role to GA

Update 'Role launch stage' for datashare mgr role to GA

@phriscage Do you know is there any reason we couldn't make this change?
https://github.com/GoogleCloudPlatform/datashare-toolkit/blob/master/api/config/ds-api-mgr-role-definition.yaml

@phriscage Do you know is there any reason we couldn't make this change?
https://github.com/GoogleCloudPlatform/datashare-toolkit/blob/master/api/config/ds-api-mgr-role-definition.yaml

Hi @mservidio,
No, I do not foresee any issues switching the custom IAM role launch stage to GA. I believe the initial thought process was to follow the launch cycle guidelines for custom IAM roles here while the role was in a testing phase.
Thanks,
Chris

Hi @mservidio,
No, I do not foresee any issues switching the custom IAM role launch stage to GA. I believe the initial thought process was to follow the launch cycle guidelines for custom IAM roles here while the role was in a testing phase.
Thanks,
Chris


What about RFC5591?

Hello
May be your have some planne about support auth by x509 certificate? (RFC 5591)
Thank you

That might happen, eventually. Depends on time and priorities...


No module named 'pydantic_core._pydantic_core'

Describe the bug
When I use Python3 (Python 3.12.3) as installed by homebrew on my Mac, the python -m r2r.examples.servers.basic_pipeline --config local_ollama command errors out with:
File "/Users/user/rag2riches/pydantic/main.py", line 12, in <module>
    import pydantic_core
  File "/Users/user/rag2riches/pydantic_core/__init__.py", line 6, in <module>
    from ._pydantic_core import (
ModuleNotFoundError: No module named 'pydantic_core._pydantic_core'

but I have pydantic_core on my machine:
pip show pydantic_core
Name: pydantic_core
Version: 2.16.3
Summary:
Home-page: https://github.com/pydantic/pydantic-core
Author:
Author-email: Samuel Colvin<EMAIL_ADDRESS>License: MIT
Location: /Users/user/.local/lib/python/site-packages
Requires: typing-extensions
Required-by: pydantic

Expected behavior
The server runs.
Desktop (please complete the following information):

OS: OSX 12.7.4

Additional context
This was working running from the native OSX python instance, but LibreSSL was causing errors when I was trying to run https://github.com/SciPhi-AI/SciPhi-Demo, so I switched to a proper install of python. This error occurs whether or not I use a virtual environment.

Here's the whole error:
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/user/rag2riches/venv/lib/python3.12/site-packages/r2r/examples/servers/basic_pipeline.py", line 6, in <module>
    from r2r.main import E2EPipelineFactory, R2RConfig
  File "/Users/user/rag2riches/venv/lib/python3.12/site-packages/r2r/main/__init__.py", line 1, in <module>
    from .app import create_app
  File "/Users/user/rag2riches/venv/lib/python3.12/site-packages/r2r/main/app.py", line 7, in <module>
    from fastapi import (
  File "/Users/user/rag2riches/venv/lib/python3.12/site-packages/fastapi/__init__.py", line 7, in <module>
    from .applications import FastAPI as FastAPI
  File "/Users/user/rag2riches/venv/lib/python3.12/site-packages/fastapi/applications.py", line 16, in <module>
    from fastapi import routing
  File "/Users/user/rag2riches/venv/lib/python3.12/site-packages/fastapi/routing.py", line 22, in <module>
    from fastapi import params
  File "/Users/user/rag2riches/venv/lib/python3.12/site-packages/fastapi/params.py", line 5, in <module>
    from fastapi.openapi.models import Example
  File "/Users/user/rag2riches/venv/lib/python3.12/site-packages/fastapi/openapi/models.py", line 4, in <module>
    from fastapi._compat import (
  File "/Users/user/rag2riches/venv/lib/python3.12/site-packages/fastapi/_compat.py", line 20, in <module>
    from fastapi.exceptions import RequestErrorModel
  File "/Users/user/rag2riches/venv/lib/python3.12/site-packages/fastapi/exceptions.py", line 3, in <module>
    from pydantic import BaseModel, create_model
  File "/Users/user/rag2riches/pydantic/__init__.py", line 389, in __getattr__
    mod
    ```

Most of the Google results for this issue bring up folks who are having trouble getting suitable packages built for a specific architecture https://stackoverflow.com/questions/76650856/no-module-named-pydantic-core-pydantic-core-in-aws-lambda-though-library-is-i
for me I see:

fastapi-0.109.2-py3-none-any.whl.metadata
pydantic-2.6.3-py3-none-any.whl.metadata
pydantic_core-2.16.3-cp312-cp312-macosx_10_12_x86_64.whl.metadata


docker-compose builds as root

First, thank you very much for this wonderful node-boilerplate, It really does cover a long tech stack which I am trying to complete bit by bit.
Problem which I encountered when I tried to run this as described, simply did:
cd nodejs-api-starter
docker-compose up
And I get this error:
api_1    | EACCES: permission denied, mkdir 'build/emails'
api_1    | EACCES: permission denied, mkdir 'build/emails'
...
and so on.
The problem here is that the build directory created by running build.js through docker-compose is root protected and doesn't allow any further changes, so the build process fails and finally the ./build/server.js is unavailable. I can manually create a build directory that is not root protected and repeat the process then it works. Probably something to do with docker's functioning and my lack of experience in working with it. Can you help me figure out a work around?
screenshot:
http://i.imgur.com/ckiomWY.png

Out of the box, Docker on Ubuntu requires root, see: https://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo

That I fixed when I tried my first docker program. I made a small express program, and a simple Dockerfile:
Use latest node image
FROM node:9-alpine
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
CMD ["npm", "start" ]
EXPOSE 4000
and I built image using the following:
docker build -t node-docker .
and then ran the image using:
docker run -p 4000:4000 -v ~/testProjects/node-docker/:/usr/src/app node-docker
the source, node_modules and package.json everything inside my project directory and I am able to run this without sudo after adding the $USER to docker usergroup.

@smishr4 On our side, other than running an initial mkdir build as the account running docker-compose up. I don't know another way around it. The interesting thing is that this only happens for me on my ubuntu server, not on my local macOS. would be curious as to why that initial folder creation is run under root context.

I think probably something to do the way docker creates the directory on linux machine.
https://github.com/docker/compose/issues/2781#issuecomment-176791391
https://stackoverflow.com/questions/33509752/docker-compose-creates-file-owned-by-root
Anyways instead of doing mkdir build the neater solution would be to just give the permission using chown
Doing this works too:
sudo chown -R $USER:$USER .
docker-compose up
Thanks
Since this is problem with the way docker is working on ubuntu, you can close this issue and create a reference. Again its a great project and I am kinda struggling with graphql-relay as I have only learned graphql just recently using express-graphql with graphiql interface to write queries, if you can suggest me a good place to start from, that would be a good help.

@koistya Isn't this happening because in production, ownership of the build folder is not switched to the node user in the Dockerfile
This is the relevant section. Notice how in development and test env, we chown -R node:node build but not in production...
RUN set -ex; \
  if [ "$NODE_ENV" = "production" ]; then \
  yarn install --no-cache --frozen-lockfile --production; \
  elif [ "$NODE_ENV" = "test" ]; then \
  touch yarn-error.log; \
  mkdir -m 777 build; \
  yarn install --no-cache --frozen-lockfile; \
  chown -R node:node build node_modules package.json yarn.lock yarn-error.log; \
  else \
  touch yarn-error.log; \
  mkdir -p -m 777 build node_modules /home/node/.cache/yarn; \
  chown -R node:node build node_modules package.json yarn.lock yarn-error.log /home/node/.cache/yarn; \
  fi;

If I step into my api container on Ubuntu in production mode, I can see that all folders are owned by node:node except the build folder, which is owned by root:root


Intersect After Town Hall - Thursday, 29th August 2024

Meeting Video: https://youtu.be/N6YIBKzbtgU
Meeting Summary
Intersect Town Hall (TH) Feedback

August TH felt better than previous ones
As a committee member, I liked the opportunity to share updates in Town Hall
I think it's a good sign that the tensions people are raising are largely NOT about the Town Hall itself.
I learned a lot in After Town Hall and was encouraged to return next month
After Town Hall has been super useful in echoing my own thoughts and exploring new thoughts
This Town Hall was very successful as it had so much content and After Town Hall has been very valuable for feedback collection

Who should share updates in Intersect Town Hall?

Some of the updates Intersect Staff should be sharing about Committees and things that go on around in Intersect
It would be good if committees take responsibility for having something to say without a dynamic where Intersect says what the agenda will be.

What do we expect from Town Hall

Build audience so that we could some point reach a tipping point where the updates could be presented by the community instead of Intersect Staff
Allow Intersect members to find ways to change the Town Hall agenda.
This space is for discovery, but having an overarching Agenda would be good to help orient what we are trying to solve
Allow space for participants to bring their ideas
Information should flow between the Town Hall Team and Presenters
Get the first bits of information on how to get Involved
Get the basics of what is an Intersect
Start Agenda discussion early in the month

How could we improve Town Halls?

Think about action items people could leave with and come back to the next session to finish that conversation
Expand Town Halls to different time zones to distribute information more widely across different cultures

Community Hubs could take the lead on facilitating THs in different time zones

Town Hall agenda hops around over so many different topics and for a new person, it will be hard to understand how they are all connected
Have updates ready before the Town Hall week
The committee are focusing on updating GitBooks, who is responsible getting the key updates from GitBook to Town Hall?
Share Participation and engagement metrics of the Town Halls
Have an after-town hall onboarding breakout room
Maybe we shouldn't have multiple breakout rooms and keep it as a continuation in the main Town Hall?
Introduce After Town Hall breakout rooms before we get to know each other breakout rooms
The community needs to feel that a Town Hall is their platform.
Have a one pager for Town Hall Framework, currently its all in huge miro board which can be overwhelming: https://miro.com/app/board/uXjVKG5h5BA=/
Have one meeting with Intersect Staff to review and disseminate the TH WG and asynchronous information several days before Town Hall
More proactive communication about Town Hall WG
More proactive announcements about monthly Town Halls

Intersect has included links to Town Halls and Town hall Workgroups in Developer Newsletter

Share Town Hall and Town Hall WG invites through Intersect Twitter
Improve communication in agreeing on publicity messages
Expand to multiple platforms where we could share information about Town Halls

Limitations of current Town hall Framework

Scarce resources around pulling and formatting Updates together from general updates and Knowledge Base
Is "townhall" a friendly enough label to encourage people to engage without feeling intimidated?
We may not have the "appropriate experience" to onboard new people

Onboarding to Intersect in general

The Discord is confusing. There are too many channels, and it's hard to find and orient around information. It starts to make sense when you spend a lot of time reading through channels, but it is still overwhelming for most

There are multiple support members in Discord answering all kinds of questions and if you have any sort of feedback, you can share it in Discord
Through Discord, it is easier to coordinate questions to the right people
If you would like to stay anonymous, you can share a direct message to me<EMAIL_ADDRESS>

Is there a repository of user feedback about onboarding?

Depends on where the user is coming from, if its a Website, it has a feedback button at the bottom of the screen
You can report any issues or feedback on<EMAIL_ADDRESS>Intersect Staff if collecting that information
Town Hall Team has an open Problem Board: https://github.com/orgs/Catalyst-Swarm/projects/2/views/1

Intersect Staff will run a focus group to improve onboarding next week
There is educational content coming up from grant teams that help to onboard into Cardano Governance https://intersect.gitbook.io/intersect-community-grants/cohort-3/educational-and-multimedia
Could we have more general roles in Discord, it makes communication with roles easier and can also be used to reduce the channel amount people see when new people join
Agree about barriers to participation- a common problem in many chain communities. That is where  Town Halls are a good focus point.
There will be more signposts, introduction videos and descriptive information on Intersect coming soon from Intersect Staff members
There should be a place for new members to get onboarded outside the Town Halls as they might feel too intimidating

How do you get involved as a Haskell Developer?

I am a Haskell developer and I feel like this Community has also Haskell developers working on open source

Here is the Discord Server we have: https://discord.gg/xNUNTBDyfT
here is the communication chat we use: irc://irc.libera.chat/#haskell
Here is the Matrix channels we use: https://matrix.to/#/#hackage:matrix.org
Would be interesting to collaborate and solve open-source Haskell problems

We have a Developer experience Group to first connect with with developer advocates that can help coordinate the education and learning efforts
If there is strong technical capability, then we have core maintainers with who to coordinate

Drafted Meeting Summary today and edited ATH video. Will work on timestamps later

I went and explored the Discord Server. Its name was Functional Programming.
They do not seem to like Cardano and focus more on trolling new people.


Machine Learning with Conversation Slot filling

We are trying to put huggingface-ner sample as machine learning model behind template - Conversational AI - Intent classification and slot filling.
We are able to do the prediction using below code. In below code we have taken text of each dialog and sent to the model. Model is returning predictions as well.
We are now stuck at display the predictions back to UI. Please tell us what changes are needed, so that the UI accepts the returned predictions in json reply, and show them in the dialogues.
if "entity_slot" in li._control_tags:
                from_name = 'ParagraphLabels'; to_name='dialogue'; #TODO: not sure what is purpose of this
                dialogues = [task['data']['humanMachineDialogue'] for task in tasks]
                for dialogue in dialogues:
                    for turn in dialogue:
                        if 'text' in turn:
                            texts.append(turn['text'])

Hello!
In order to return predictions for <ParagraphLabels>, you have to follow the JSON format for predictions' value: https://labelstud.io/tags/paragraphs#Example-JSON . Try to replace plain text NER with the format expected by Paragraphs.
Also, make sure the model is selected in Label Studio project Settings > Annotation > Live Predictions .
Let me know if any of these recipes helps.


Working with Jupyter Notebooks in Visual Studio Code

python manage.py shell_plus --notebook uses IPython Notebook in a web browser as its user interface.
Is it possible to somehow use Visual Studio Code's UI for Jupyter Notebooks?

Hi @fabge , I could make it work by starting the Jupyter server using shell_plus --notebook, then copying the URL from the terminal and pasting it in VSCode command "Jupyter: Specify jupyter server for connections > Existing"


Incomplete multi-character sanitization on utils.js getQueryParam function 2

Happy to see the issue #443 fixed so quickly
However, the problem is not solved yet. CodeQL reports another issue "This does not escape backslash characters in the input."

Maybe you can consider this: https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning-with-codeql

Feel free to open PRs with further fixes, thanks


How to review code - additional links

Pulls in some additional code review resources from the equivalent page on the tech learning pathway, minus one broken link (https://github.com/alphagov/gds-tech-learning-pathway/blob/master/source/resources/other/code-reviews.html.md).
I think the other code review advice from that page (as opposed to advice on writing PRs) is covered already - happy to add in anything missing?

@katstevens I think I might have given the wrong impression when we talked about this the other day - the learning pathways site is still intended to be current so I don't think it makes sense to maintain a list of blog posts and other links in both projects.
Both pages have a lot of overlap but (IMO) they each have a different purpose:

The GDS way explains how we do things at GDS and is relevant to new staff, when forming new teams, or when changing the way an existing team does something
The learning pathways is aimed at helping technologists at GDS develop and get promoted

So my suggestion for untangling this would be:

this page should focus on processes, expectations and rules for code review, but not cover general best practice or link to non-GDS websites
the learning pathways page should collect all these links that explain how to give a good code review and how to engage with code reviews, but it shouldn't prescribe any particular practice

Do you agree with this general approach? It would involve removing some content like the beginning section about good review practice. I'm happy to pair on this if you want, as I've already got a PR in progress on the other repo: https://github.com/alphagov/gds-tech-learning-pathway/pull/125
Also, I don't think this page actually explains the actual rule we follow here for code review:

Every pull request must be approved by another member of staff
If 2 or more people paired on a PR, they can approve it themselves

We might also want to consider in this guidance how we respond to external pull requests, as this requires more care than internal pull requests. As I understand it we don't have a well defined process for engaging with open source communities but past teams have done this well, for example the GDS operations team who documented their process here: https://gds-operations.github.io/contributing/

That all sounds good to me @MatMoore - I think pairing is a good idea to make sure everything's covered in one place or the other. Let's catch up next week.

If 2 or more people paired on a PR, they can approve it themselves

Is this actually the case? I think it might vary between teams (also some teams require two approvals for certain categories of PR, etc). Perhaps some more generic guidance along the lines of 'agree this  process with your team', giving those rules as an example? Then we can mention that any agreed policy should cover external PRs too.


Unable to hit backstage frontend : running on localhost:3000

Please provide solution. Not able to hit backstage frontend from browser.If any changes needed app.config.yaml . Thanks.

Hi! Would need a more information to be able to figure out what's up in this case. Did you follow the instructions at https://backstage.io/docs/getting-started/create-an-app?
You should be able to run yarn dev in your Backstage app and then visit localhost:3000. If that doesn't work there should hopefully be some output in the terminal with some clues towards what might be going wrong, in which case you could post that here.
I will close this for now, please reopen if you still end up having trouble getting started!


set metadata #trivial

          1 Error

:no_entry_sign:
Debugging output: +	spew.Dump(mani)
 (there may be others)

LGTM!
No errors, no warnings. :shipit:

  Generated by :no_entry_sign: Danger

Codecov Report

Merging #787 into master will decrease coverage by 0.01%.
The diff coverage is 20%.

@@            Coverage Diff             @@
##           master     #787      +/-   ##
==========================================
- Coverage   55.25%   55.23%   -0.02%
==========================================
  Files         275      275
  Lines       15835    15840       +5
==========================================
+ Hits         8749     8750       +1
- Misses       6341     6344       +3
- Partials      745      746       +1

Impacted Files
Coverage Δ

cli/sous_metadata_set.go
60.71% <20%> (-8.86%)
:arrow_down:

lib/auto_resolver.go
89.55% <0%> (ø)
: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 702b90d...155de8f. Read the comment docs.


[Azure Storage] Update to May Release

Update vcpkg ports for Azure SDK release. This release may contain multiple ports.

Adding azure-storage-common to release
cc: @vinjiang, @Jinming-Hu, @EmmaZhu, @antkmsft, @vhvb1989, @gearama, @LarryOsterman, @microzchang

Adding azure-storage-files-datalake to release
cc: @vinjiang, @Jinming-Hu, @EmmaZhu, @antkmsft, @vhvb1989, @gearama, @LarryOsterman, @microzchang

Adding azure-storage-files-shares to release
cc: @vinjiang, @Jinming-Hu, @EmmaZhu, @antkmsft, @vhvb1989, @gearama, @LarryOsterman, @microzchang

@jimwang118 It sees CI pipeline is stuck. Can you please take a look?

/azp run

Usage test pass with following triplets:
x86-windows
x64-windows
x64-windows-static