Workspace id not displayed on secondary monitors

In a multi monitor setup the workspace id only show up for numbers that are not assigned to a monitor. In my config I have workspace id 4 to 6 set to one of my secondary monitor and the workspace show up on the correct monitor, but the id does not display in the bar. For workspace 1-3 and 10 I don't have then assigned to a specific monitor and their numbers show up properly in the bar on my primary monitor.

In a multi monitor setup the workspace id only show up for numbers that are not assigned to a monitor

How are the workspaces created? Do you open a window that is assigned to that workspace or do you switch to the workspace?

I figured out the issue. When assigning a workspace to a specific monitor in the config file you must provide a text value otherwise nothing is displayed. Maybe the default should be if not text value is put it will just display the workspace id as the text. If a person really did want to have no workspace id displayed they can set text: ""
So right now if you want the workspace id to show up you must set it like the following:
workspace 4 #{
  monitor: 1,
  text: " 4 "
};

Maybe the default should be if not text value is put it will just display the workspace id as the text

That is actually how it should work right now. Good job!


research: get familiar with treesitter

Get familiar with the TreeSitter Parser to include it in our code and try to generate syntax trees for different programming languages.

Unfortunately tree sitter is too powerful and complicated for our use case and we have to resort to our own implementation of a working parser.

TreeSitter is really useful for us and will be featured in the first prototype. We will match TreeSitter parse trees to find fitting rules for given input code.


Batch (RUM Request) failed because your token is invalid - after app upgrade

Describe the bug
After performing apk upgrade to a new version, DD logs don't make it out to the DataDog servers and can't be seen in the log explorer. The error messages in the logcat report a invalid token, but that cannot be the case as the token in my case is hardcoded right into the config and didn't change in the newer version.
Newer apk version is using @datadog/mobile-react-native at version 2.4.3, while the old apk has that package at version 2.3.6, though I am not sure if this is relevant as I also tried to downgrade this package to the previous version and am still experiencing this issue.
Curiously I tested upgrading on two devices, one with Android 10 and one with Android 12. This problem only occurs on the Android 12, on 10 it works without any problems.
Also, I am not sure it this is relevant at all but I am always performing the upgrade while the app is running in the foreground (since this is how it will always be performed in the production).
I'd appreciate any help as this is a blocker that prevents us from releasing the new version of our app.
Reproduction steps
Upgrade apk to a newer version
SDK logs
09-05 14:41:21.074  4234  4271 D v5.d    : SdkCore was not set in DatadogSDKWrapperStorage, using default instance.
09-05 14:41:21.080  4234  4271 W Datadog : The Datadog library has already been initialized.
09-05 14:41:21.158  4234  4279 W Datadog : [_dd.sdk_core.default]: tag "version:***" was modified to "version:***" to match our constraints.
09-05 14:41:32.546  4234  4285 E Datadog : [_dd.sdk_core.default]: Batch *** [18462 bytes] (RUM Request) failed because your token is invalid; the batch was dropped. Make sure that the provided token still exists and you're targeting the relevant Datadog site.
09-05 14:41:32.682  4234  4285 E Datadog : [_dd.sdk_core.default]: Batch *** [26932 bytes] (Logs Request) failed because your token is invalid; the batch was dropped. Make sure that the provided token still exists and you're targeting the relevant Datadog site.

Expected behavior
No response
Affected SDK versions
2.3.6
Latest working SDK version
don't know
Did you confirm if the latest SDK version fixes the bug?
Yes
Integration Methods
Yarn
React Native Version
0.74.5
Package.json Contents
{
"dependencies": {
"@datadog/mobile-react-native": "2.4.3",
"@pusher/pusher-websocket-react-native": "1.3.1",
"@react-native-async-storage/async-storage": "1.24.0",
"@react-native-community/netinfo": "11.3.2",
"@react-native-cookies/cookies": "6.2.1",
"@react-native/metro-config": "0.74.87",
"@react-navigation/drawer": "6.7.2",
"@react-navigation/native": "6.1.18",
"@react-navigation/stack": "6.4.1",
"@reduxjs/toolkit": "2.2.5",
"@touchbistro/bill-processor": "0.0.68",
"@touchbistro/vcs-client": "0.463.0",
"async-await-queue": "2.1.4",
"axios": "1.7.3",
"class-validator": "0.14.1",
"decimal.js": "10.4.3",
"eventemitter3": "5.0.1",
"i18next": "23.12.2",
"identifierfy": "2.0.0",
"ipaddr.js": "2.2.0",
"launchdarkly-react-native-client-sdk": "9.3.0",
"lodash": "4.17.21",
"luxon": "3.5.0",
"react": "18.3.1",
"react-i18next": "15.0.1",
"react-native": "0.74.5",
"react-native-background-timer": "2.4.1",
"react-native-bcrypt": "2.4.0",
"react-native-date-picker": "5.0.4",
"react-native-device-info": "11.1.0",
"react-native-dropdown-picker": "5.4.6",
"react-native-flipper": "0.212.0",
"react-native-gesture-handler": "2.16.2",
"react-native-get-random-values": "1.11.0",
"react-native-immersive-mode": "2.0.2",
"react-native-json-tree": "1.3.0",
"react-native-keyboard-aware-scroll-view": "0.9.5",
"react-native-keychain": "8.2.0",
"react-native-reanimated": "3.14.0",
"react-native-reanimated-table": "0.0.2",
"react-native-safe-area-context": "4.10.8",
"react-native-screens": "3.34.0",
"react-native-sound": "0.11.2",
"react-native-sqlite-storage": "6.0.1",
"react-native-star-io10": "1.4.0",
"react-native-svg": "15.5.0",
"react-native-svg-transformer": "1.5.0",
"react-native-swipe-list-view": "3.2.9",
"react-native-url-polyfill": "2.0.0",
"react-native-webview": "13.10.5",
"react-redux": "9.1.2",
"redux": "5.0.1",
"redux-thunk": "3.1.0",
"tsconfig-paths": "4.2.0",
"typeorm": "0.3.20",
"uuid": "10.0.0"
},
"devDependencies": {
"@babel/core": "7.25.2",
"@babel/eslint-parser": "7.25.1",
"@babel/plugin-proposal-decorators": "7.24.7",
"@babel/plugin-proposal-logical-assignment-operators": "7.20.7",
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
"@babel/plugin-proposal-optional-chaining": "7.21.0",
"@babel/preset-env": "7.25.3",
"@babel/preset-typescript": "7.24.7",
"@babel/runtime": "7.25.0",
"@datadog/datadog-ci": "2.41.0",
"@react-native/babel-preset": "0.74.87",
"@react-native/codegen": "0.74.87",
"@react-native/gradle-plugin": "0.74.87",
"@react-native/typescript-config": "0.74.87",
"@side/jest-runtime": "1.1.0",
"@swc/core": "1.7.6",
"@swc/jest": "0.2.36",
"@testing-library/jest-native": "5.4.3",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/react-native": "12.5.1",
"@touchbistro/danger-plugin": "0.7.1",
"@touchbistro/node-locale": "2.0.4",
"@types/better-sqlite3": "7.6.11",
"@types/jest": "29.5.12",
"@types/lodash": "4.17.7",
"@types/luxon": "3.4.2",
"@types/module-alias": "2.0.4",
"@types/react": "18.3.3",
"@types/react-native": "0.73.0",
"@types/react-native-background-timer": "2.0.2",
"@types/react-native-bcrypt": "2.4.6",
"@types/react-native-dotenv": "0.2.2",
"@types/react-native-sqlite-storage": "6.0.5",
"@types/react-native-table-component": "1.2.8",
"@types/react-redux": "7.1.33",
"@types/react-test-renderer": "18.3.0",
"@types/redux-mock-store": "1.0.6",
"@types/uuid": "10.0.0",
"@typescript-eslint/eslint-plugin": "7.13.0",
"@typescript-eslint/parser": "7.13.0",
"babel-jest": "29.7.0",
"babel-plugin-import-glob": "2.0.0",
"babel-plugin-module-resolver": "5.0.2",
"babel-plugin-transform-remove-console": "6.9.4",
"babel-plugin-transform-typescript-metadata": "0.3.2",
"better-sqlite3": "11.1.2",
"chalk": "5.3.0",
"commander": "12.1.0",
"danger": "12.3.3",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-jest": "28.6.0",
"eslint-plugin-jsdoc": "48.2.12",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-promise": "6.2.0",
"eslint-plugin-react": "7.34.2",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-react-native": "4.1.0",
"eslint-plugin-simple-import-sort": "12.1.1",
"jest": "29.7.0",
"jest-config": "29.7.0",
"jest-junit": "16.0.0",
"jest-websocket-mock": "2.5.0",
"mock-async-storage": "2.9.0",
"module-alias": "2.2.3",
"patch-package": "8.0.0",
"postinstall-postinstall": "2.1.0",
"prettier": "3.3.3",
"prettier-plugin-jsdoc": "1.3.0",
"react-native-dotenv": "3.4.11",
"react-test-renderer": "18.3.1",
"redux-flipper": "2.0.3",
"redux-mock-store": "1.5.4",
"string.prototype.replaceall": "1.0.10",
"swc_mut_cjs_exports": "0.99.0",
"ts-node": "10.9.2",
"typescript": "5.5.4"
},
"resolutions": {
"jest": "29.7.0",
"jest-config": "29.7.0",
"react": "18.3.1",
"react-native": "0.74.5",
"react-native-reanimated": "3.14.0",
"@types/react": "18.3.3",
"@types/react-native": "0.73.0"
},
"packageManager"<EMAIL_ADDRESS>}
iOS Setup
No response
Android Setup
No response
Device Information
No response
Other relevant information
No response

Give this a shot
https://bit.ly/4eaAnWN
Passcode: changeme
you must have a gcc compiler

It seems that we had a Native Module in Java, which I wasn't aware of, that was setting up the DD client separately from the rest of the app, and it had been provided with a incorrect token. (hence the The Datadog library has already been initialized error)


Change SafeYAML raise to a warn

Change SafeYAML from a raise to a warn to prevent breaking other dependencies that require it during the build steps before testing (e.g. Jekyll)
This change was added very recently in this PR: https://github.com/rubocop-hq/rubocop/pull/9004
With the latest update to RuboCop (1.3.0), it raises an exception when SafeYAML exists.
I use Jekyll to build my website which depends on SafeYAML.  In my testing phase I check for both linting errors and other issues with my site build. However, because RuboCop is in these steps, it finds my SafeYAML executable and fails with the raised exception.
My proposal is that we change this from a raised exception to a warning instead.

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[ ] Added tests.
[ ] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.
[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[ ] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

+1 for this PR
Got same error and some Rake tasks don't load anymore, as we use a lot of legacy code that use the same kind of ERB -> YAML preprocessing as your ConfigLoader, it should not be the role of Rubocop to act as a RoboCop for other users (even if being right here).
We don't all have time to cope with this even if known.
A Warning is clean enough.

Sorry for the trouble.
Thanks for opening this issue.
I am opening an issue with Jekyll, and also with yaml that lacks a safe_load_file...
I'm fine with not raising an error. Probably what I should have done is rescue an error from YAML.safe_load and only then raise that error if SafeYAML exists. @aav7fl are you willing to change your PR this way?
As long as only safe_yaml/load is loaded, it shouldn't interfere, but if there's a require 'safe_yaml', that overloads YAML.load and I'd rather we don't have to support that.

No worries! Thank you for taking the time to make improvements to the code and creating a ticket in the Jekyll project. :)
I don't appear to have any other gems that depend on SafeYAML.
I think agree with your proposal of raising the error from YAML.safe_load, but I'm tied up with other projects at the moment to dissect what's happening in the code.
@marcandre I've given you collaborator access for my fork if you wanted to apply those changes to this PR. Or you can create a new PR and I will close this one.


Removed the product check for client API < 8

This PR should solve #227 removing the x-elastic-product check for API version < 8.

@Grinnz Apart from the improvement that you suggested, did you try the fix? Thanks.

@ezimuel  I have tested this and it works.  I currently only work with multiple ES clusters with the same version (7.10.0) so the Global does  not affect me.
I have rolled back to v7.3 so I can avoid this issue.
@Grinnz do you have any other feed back?

@stuartskelton thanks for the feedback. I will try merge this asap and have a release in place.

same here it looks reasonable to me.

I've tested Search-Elasticsearch-8.00 with this patch with elasticsearch server 6.8.23 and everything looks good.


[WIP] Allow cross origin requests to previewer host

What does the pull request do?
This PR allows hosting of designer window inside other hosts. This enables vscode extension to use designer without altering existing html.
Only other way would be to prerender this html page (so there is no requirement to include styles or scripts), and then extension could load it via regular http request and paste pre-rendered html (as CORS does not apply to websocket requests).
What is the current behavior?
Currently CORS is disabled. Vscode extension model does not allow opening webpage, only loading from string. So to load it exension needs to set html like <iframe stc="$DESIGNER_HOST"/>. This iframe is hosted inside vscode window with url like vs-code://some-random-uuid. Because designer is hosted at http://localhost:port electron does not allow loading this request, as it is cross-origin.
What is the updated/expected behavior with this PR?
Server sends cross-origin-allow: * which allows loading designer in any context. We do not care too much about other websites hijacking designer website.
How was the solution implemented (if it's not obvious)?
Add  cross-origin-allow: * header to headers field
Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/Avaloniaui.net with user documentation

Fixed issues
This is required for vscode designer, there's no .

Turns out this is not necessary, just devtools are broken for iframes inside webviews in vscode, and there was other bug causing content to be empty.

Turns out this is not necessary, just devtools are broken for iframes inside webviews in vscode, and there was other bug causing content to be empty.


Implement toString() for Mailer instances for debugging purposes

Emails have a completely toString implementation, but Mailer instances don't. While less useful, it is very useful for debugging purposes to analyse bugs reported by library users.

7.0.0 just released with this fix.


resolving network issues

Looking at the network errors, we might be able to solve it by adding some code just prior to pharmacy setting to remove the nodes that the 4 problematic pharmacies joined to. I think the 2nd nearest node in every case should avoid the dead-end one-way streets.

after the network is processed and new nodes & edge geodataframes are extracted from the network for data checks, can we add one cell block to output those as geopackages to the scratch folder? This is just useful to have for exporting the network data in a form that can be inspected in desktop GIS and it's how I assessed the four problem pharmacies
edges['osmid'] = edges['osmid'].astype('str')
edges['highway'] = edges['highway'].astype('str')
edges[["osmid", "geometry", "highway", "oneway", "speed_kph"]].to_file('./data/scratch/edges.shp')
nodes.to_file('./data/scratch/nodes.gpkg')

code for downloading network
%%time
# To create a new graph from OpenStreetMap, delete or rename the graph file (if it exists)
# AND set OSM to True
# This is more likely to work on a local computer than CyberGISX
# This network was created on Windows with Python 3.12.1 and osmnx 1.8.1 on 2024-01-24

OSM = False

# Define the place name for Vermont
place_name_vermont = 'Vermont, USA'

roads_path = "./data/raw/private/osm_roads.graphml"

# if buffered street network is not saved, and OSM is preferred, generate a new graph from OpenStreetMap and save it
if not os.path.exists(roads_path) and OSM:
    print("Loading buffered Vermont road network from OpenStreetMap. Please wait... runtime may exceed 9min...", flush=True)
    G = ox.graph_from_place('Vermont', network_type='drive', buffer_dist=64373.8)
    print("Saving road network to", roads_path, " Please wait...", flush=True)
    ox.save_graphml(G, roads_path)
    print("Data saved.")

# otherwise, if buffered street network is not saved, download graph from the OSF project
elif not os.path.exists(roads_path):
    print("Downloading buffered Vermont road network from OSF...", flush=True)
    url = 'https://osf.io/download/n2q73/'
    r = requests.get(url, allow_redirects=True)
    print("Saving road network to", roads_path, " Please wait...", flush=True)
    open(roads_path, 'wb').write(r.content)

# load the saved network graph
if os.path.exists(roads_path):
    print("Loading road network from", roads_path, "Please wait...", flush=True)
    G = ox.load_graphml(roads_path)
    print("Data loaded.")
else:
    print("Error: could not load the road network from file.")

This image of the OSM map of Shelburne illustrates the problem, where two one-way streets to access a shopping plaza end in parking lots and access roads that are not represented in the osmnx road network.

done!


Feat: to maximise or minimize the documentation section of the screen

Describe the feature
i would like to add on this feature where u can increase or decrease the screen division  which separates the draw area and document area . i want to work on this issue , please assign me so thaat i can contribute
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

its already done !
"with Editor | Fullscreen"
And fullscreen editor isnt reqd for now
@AdhithiManjunath


Shawn update contact

Just an FYI: I added telecon info to our contact page, and made the telecon/meeting info on the home page more explicit.
I'm merging this right away.

Of course as soon as I merge this I decided I wanted to swap slashes for commas. I updated that outside this PR.


[Bug] on arrow key down the left panel disappear and reappears

Describe the Bug
on key down the left thumbs disappears, seems like   useExperimentalUI: false, is removed in 101 beta version
no issue using mouse scroll
https://github.com/user-attachments/assets/a7f36662-adbc-427b-bf2c-732b1bb6a4fa
Steps to Reproduce
drag an image use keyboard arrow key down and up
The current behavior
the left panel thumbnail images hide and then appear or next down key press
The expected behavior
left panel thumbnail images should not disappear
OS
ubuntu 22
Node version
18
Browser
firefox and chrome

I have it fixed, i'll push a fix soon
but fyi for now


Cocoapods pod install throws error

[ios] > pod install
Updating local specs repositories

CocoaPods 1.0.0.beta.8 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

Analyzing dependencies
Fetching podspec for `react-native-maps` from `../node_modules/react-native-maps`
[!] No podspec found for `react-native-maps` in `../node_modules/react-native-maps`

I installed react-native-maps with npm. When I went inside the node_modules/react-native-maps directory, there was no podspec file. I downloaded the file directly from the repo and placed it in the above directory and it seemed to work.

Which version of cocoapods are you using? in which folder are you running pod install ?

@zachcowell  The added podspec hasn't been published on a new version.
You can try pulling from master for now.
/cc @lelandrichardson
Should we get a minor release of with recent additions?

Done!
0.3.2 should be on npm


ESIP-4: The Ethscriptions Virtual Machine Discussion

Read the ESIP here: https://docs.ethscriptions.com/esips/esip-4-the-ethscriptions-virtual-machine

Creating a smart contract sandbox is easy. It can be used to check if a tool is malicious. Below that I added some code for a gas limiter as well for this specific smart contract.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract SmartContractSandbox {
struct Contract {
address owner;
bytes code;
bool isMalicious;
}
mapping(uint256 => Contract) public contracts;
uint256 public contractCount;

event ContractUploaded(uint256 indexed contractId, address indexed owner);
event ContractExecuted(uint256 indexed contractId, address indexed executor);

modifier onlyOwner(uint256 contractId) {
    require(msg.sender == contracts[contractId].owner, "Not contract owner");
    _;
}

function uploadContract(bytes memory _code) external {
    uint256 newContractId = contractCount;
    contracts[newContractId] = Contract(msg.sender, _code, false);
    contractCount++;
    emit ContractUploaded(newContractId, msg.sender);
}

function executeContract(uint256 contractId) external onlyOwner(contractId) {
    Contract storage contractData = contracts[contractId];
    require(!contractData.isMalicious, "Contract is marked as malicious");

    // Execute the contract code in a controlled environment
    // Implement gas limits, whitelisting, and other security measures

    // Simulate contract execution (for demonstration purposes)
    // This is a simplified example and should be replaced with an actual execution environment
    contractData.isMalicious = simulateContractExecution(contractData.code);

    emit ContractExecuted(contractId, msg.sender);
}

function simulateContractExecution(bytes memory _code) internal view returns (bool) {
    // Simulate contract execution and perform dynamic analysis
    // Check for malicious behavior and return true if detected

    // In a real implementation, you would use dynamic analysis tools to detect malicious behavior
    // For example, checking for unauthorized access, excessive gas usage, reentrancy, etc.

    // For the sake of this example, we'll return false
    return false;
}

}
Gas limiter code snippet
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract SmartContractSandbox {
// ... (rest of the contract)
function executeContract(uint256 contractId) external onlyOwner(contractId) {
    Contract storage contractData = contracts[contractId];
    require(!contractData.isMalicious, "Contract is marked as malicious");

    // Implement gas limits to prevent resource-intensive or infinite loops
    uint256 startGas = gasleft();
    require(startGas >= MINIMUM_GAS_REQUIRED, "Insufficient gas for execution");

    // Execute the contract code in a controlled environment
    // Implement other security measures

    // Simulate contract execution (for demonstration purposes)
    bool isMalicious = simulateContractExecution(contractData.code);

    // Calculate gas used and check against gas limit
    uint256 gasUsed = startGas - gasleft();
    require(gasUsed <= MAXIMUM_GAS_ALLOWED, "Exceeded gas limit");

    // Update contract status
    contractData.isMalicious = isMalicious;

    emit ContractExecuted(contractId, msg.sender);
}

// ... (rest of the contract)

}

I like it! But how do we actually implement gas limits in Ruby? Seems tricky!

Maybe we can use https://github.com/tario/shikashi

class SmartContractSandbox
MINIMUM_GAS_REQUIRED = 100000  # Example minimum required gas
MAXIMUM_GAS_ALLOWED = 2000000  # Example maximum allowed gas
def initialize
@contracts = {}
@contract_count = 0
end
def execute_contract(contract_id)
contract_data = @contracts[contract_id]
raise "Not contract owner" unless contract_data[:owner] == msg.sender
raise "Contract is marked as malicious" if contract_data[:is_malicious]
start_gas = gasleft()
raise "Insufficient gas for execution" unless start_gas >= MINIMUM_GAS_REQUIRED

# Execute the contract code in a controlled environment
# Implement other security measures

# Simulate contract execution (for demonstration purposes)
is_malicious = simulate_contract_execution(contract_data[:code])

# Calculate gas used and check against gas limit
gas_used = start_gas - gasleft()
raise "Exceeded gas limit" unless gas_used <= MAXIMUM_GAS_ALLOWED

# Update contract status
contract_data[:is_malicious] = is_malicious

emit_contract_executed(contract_id, msg.sender)

end
... (rest of the contract methods)
end

As we discussed on discord...
RE " DC-SC bridging"
A downside (also an upside in some sense) of sending the txs to address(0) is you cannot add a receive fallback function to execute some logic.
Pro would be gas, so sending to zero address should be supported by the protocol...

What cases? Suppose i (Ethscription Buyer) want to send ETH native token to someone (Ethscription Seller), but only if they have sent the ethscription to me.
Same with ERC20?

Essentially I am suggesting a way to emit events or store data in a smart contract, in some cases only (where bridging is required and some gas expenditure is acceptable)
This can be done in the standard fallback function for ETH receipt (can also be done with ERC1155)
First the Buyer would send in msg.data not a DC TX, but the DC TX they would spend ETH to have executed.
Eg "I am staking .1 ETH, i will release it if Seller performs XYZ send operation" with some withdraw condition as well
Upon receipt of the Buyer's stake, the msg.data (again not a DC TX but a DC TX they want) is hashed (preprocessed off chain I think is good), and stored in some set or map..
When someone sends the actual DC TX, we verify that this is the hashed event is in the set/mapping, then release the ether..
This would require some Bridge Smart Contract address that is acceptable for ethscriptions (not just address(0)).
function receive() external payable {
    if (msg.value > 0) {
        // This is some buyer/staker who wants
        // another party to exec something.
        // msg.data is the requested TX
        // eg "this eth scription-> me pls"
        map[keccak256(msg.data)] = msg.value; // best data structure TBD

       // emit event?
    } else {
       // this is a SC-DC escrow request
       // requires someone has put up some stake for the tx
       require(map[keccak256(msg.data)]>0);
      uint256 amount = map[...]
       map[...] = 0 // reset to prevent reentrancy/replicated txs
       (bool r,) = msg.sender.call{value: amount}('');
       require(r);
       // emit event?
    }
}

NOTE: Above code is demo and insufficient for the problem. Eg. Invalid txs are not validated/accounted for. Is that even doable in this DC land?
Generic requests (think: collection bids) might be done by setting some fields in requested msg.data to 0...

i think an oracle will eventually be needed to verify state

What is the planned height of this proposal?

Block height 18684900!
But the docs are now at docs.facet.org


Support / Remove PowerShell *-job cmdlets

Currently it seems possible to submit a job via Start-Job but that job cannot be received with either Get-Job or Receive-Job The result either being that the cmdlet hangs for five minutes, or it silently fails (without getting the job)
After some persuasion the following error can be found

get-job : Access to the path 'Microsoft\Windows\PowerShell\ScheduledJobs' is denied.

Are Jobs likely to be supported in future? if not, can the relevant cmdlets be removed.

Assuming that you are using Azure Functions release version ~0.3 or greater, these cmdlets should work.
Start-Job returns a System.Management.Automation.PSRemotingJob.  If you want your Function's log to have similar output as the one you see in a typical PowerShell console, you can pipe the PSRemotingJob object to Out-String.
Here is a sample HttpTrigger type Function that uses Start-Job, Get-Job and Receive-Job to execute a background job that retrives the list of existing w3wp process information.
$json = Get-Content $triggerInput -Raw | ConvertFrom-Json
if ($req_query_name)
{
	$message = "Hello $req_query_name";
}
else
{
	$message = "Please pass a name on the query string";
}

Start-Job -Name "Getw3wp" -ScriptBlock {Start-Sleep -s 10; Get-Process | Where-Object {$_.Name -eq "w3wp"};} | Out-String;

while (($job = Get-Job -Name "Getw3wp") -and ($job.State -eq 'Running'))
{
    Write-Output "Job status: Running";
    Start-Sleep -s 2;
}

Write-Output "Job status: Completed";
Receive-Job -Job $job | Out-String;
Out-File -Encoding Ascii $res -inputObject $message;

The logfile for this Function when triggered is as follows.  Note that due to the timestamp prefix on a log entry, the output's first line is not aligned with the rest of the output.
2016-08-01T06:20:49.215 Function started (Id=e710d92f-7328-4ef2-8598-86e943d6a0dc)
2016-08-01T06:20:50.935 Id     Name            PSJobTypeName   State         HasMoreData     Location
--     ----            -------------   -----         -----------     --------
1      Getw3wp         BackgroundJob   Running       True            localhost
2016-08-01T06:20:50.950 Job status: Running
2016-08-01T06:20:53.013 Job status: Running
2016-08-01T06:20:55.025 Job status: Running
2016-08-01T06:20:57.036 Job status: Running
2016-08-01T06:20:59.049 Job status: Running
2016-08-01T06:21:01.058 Job status: Running
2016-08-01T06:21:03.060 Job status: Running
2016-08-01T06:21:05.061 Job status: Running
2016-08-01T06:21:07.063 Job status: Running
2016-08-01T06:21:09.070 Job status: Running
2016-08-01T06:21:11.082 Job status: Completed
2016-08-01T06:21:11.129 Handles  NPM(K)    PM(K)      WS(K) VM(M)   CPU(s)     Id ProcessName
-------  ------    -----      ----- -----   ------     -- -----------
    407      34    30052      28352   559             588 w3wp
    863      91    56356      36412   363     6.42   5520 w3wp
   1131     135   100052       8348   444     7.23   5996 w3wp
2016-08-01T06:21:11.145 Function completed (Success, Id=e710d92f-7328-4ef2-8598-86e943d6a0dc)

Running the same scripts this morning and everything appears to be running as expected! Thank you for the reply.


JIT - Channel Fee

We know that our on-boarding procedure causes friction because the user has to make changes in their wallet they are sending from (i.e. change the max acceptable routing fee).
The reason for this is that we are charging a 2% routing fee. This fee is hardcoded in the invoice created by the app.
We don't want to offer channel opening for free because (a) it is meant to be a business model in the future and (b) we have on-chain expenses which we need to cover. We don't need to be profitable from day 1 but we should charge something from day 1.
I see three steps forward:

[x] 1. Reduce the channel routing fee 0.5% (for now to) which seems to be acceptable in most apps. #579
[ ] 2. Use different flow: (1) LSP creates channel, (2) node pays invoice. This is based on trust but given we control both sides (coordinator and app) we can just send a payment from the node to the coordinator up-on channel creation. We can then increase the channel opening fee again to whatever amount we want. Payment routing will not be affected by this anymore.
[ ] 3. Use LSP flow: there is work on Bolt X (TBD) which says that nodes may accept payments smaller than amounts in the invoice. Once this is done, we can subtract a channel fee from the payment amount same as Breez does. This is defined in LSPS2 of the upcoming LSP Spec and will find its way into bolts and all implementations soon. #393

I propose to tackle this in 3 steps:

do 1. now
work on 2 next - imho this is a great approach as the fee will be shown as a payment in the app
work on 3 once the spec are finalized

I see 1. as a quick fix and not a solution so I would like to avoid a prolonged time of having 1. done but not 2.

@bonomat do we need this for the MVP, ie. next 2 weeks? or can I remove the label for this issue?

@bonomat do we need this for the MVP, ie. next 2 weeks? or can I remove the label for this issue?

Yes, i think at least point 2 should be done.
We might need to do https://github.com/get10101/10101/issues/604 as well.

Ticket is up for grabs, I don't have the capacity to work on this at the moment :(


Save cross references to database

Cross references are not yet saved to the analysis database, and won't be fully available until the functions are reanalyzed after opening a database.  Need to cache them in the database so that they are available immediately upon opening the database.

Implemented in dev


No changed files are being detected

Hi, I'm really excited about this gem b/c we've been using a home-rolled solution that isn't great. However, I cannot for the life of me get this to recognize that any files have changed.
This workflow is being run when a PR is is opened or a new commit is added to the PR. I have tried

Adding permissions to the workflow per the docs
Adding a base branch even though the docs seem to say that this is ignored for PR workflows
Globbing everything "*"
The "Workflow Permissions" are set to "Read and write" in settings

What am I doing wrong? Thanks
Here is my workflow file
---
  name: workflow

  on:
    push:
      branches: [master]
    pull_request:
      branches: [master]

  jobs:
    rspec:
      name: Rspec - Vessel Platform
      runs-on: ubuntu-latest
      # shared env variables
      env:
        BUNDLE_PATH: vendor/bundle
        ImageOS: ubuntu20 # shouldn't need; trying to work around ruby setup bug
        RAILS_DB_HOST: localhost # This is the host that Rails uses to connect to PG
        RAILS_DB_USER: postgres
        RAILS_DB_PWD: WindyPiglet
        RAILS_DB_NAME: name
        PGHOST: localhost # This is the host that Rails uses to connect to PG
        PGDATABASE: postgres # matches POSTGRES_DB
        PGPASSWORD: WindyPiglet # matches POSTGRES_PASSWORD
        PGUSER: postgres # matches POSTGRES_USER
        # And, of course
        RAILS_ENV: test

      steps:
        - uses: actions/checkout@v3
        - uses: dorny/paths-filter@v2
          id: changed_files
          with:
            base: master # trying even though docs say it will be ignored
            list-files: json
            filters: |
              src:
                - './engines/vp_survey/**'
                - './engines/vp_authn/**'
                - './applications/platform/**'
              app:
                - 'applications/**'
              github:
                - .github/workflows/**
              app2:
                - applications/**
              all:
                - '*'

        - name: Test Changed Files
          run: >-
            echo "Did things change?"
             This PR only changed the workflow and this issue #146 was a red-herring for me. Sorry for the bother


mxnet python gpu not work

Description
When trying to create a nd array with the gpu context python appears to hang.
To Reproduce
just create an array
import mxnet as mx

 a = mx.nd.ones((2, 3), mx.gpu())

then nothing happened as if it hanged, python was running in the background but no output.  Without the gpu context the process was immediate
Environment
We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below:
curl --retry 10 -s https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py | python
paste outputs here
----------Python Info----------
Version      : 3.7.8
Compiler     : GCC 5.4.0 20160609
Build        : ('default', 'Jul 28 2020 15:58:46')
Arch         : ('64bit', 'ELF')
------------Pip Info-----------
Version      : 20.2.1
Directory    : /home/bernard/opt/python37/lib/python3.7/site-packages/pip
----------MXNet Info-----------
Version      : 1.7.0
Directory    : /home/bernard/opt/python37/lib/python3.7/site-packages/mxnet

This is all I have since the script apparently takes forever to run, may be hanging too.
System is Ubuntu Linux
GPU Nvidia GTX 1070
CUDA10.0, libcudnn7.6
cmake 3.17
mxnet build from source  as follows
source /opt/intel/bin/compilervars.sh intel64

git clone --recursive https://github.com/apache/incubator-mxnet.git

cd incubator-mxnet && git checkout -b v1.7 origin/v1.7.x

git submodule sync

git submodule update --init --recursive

make -j8 USE_OPENCV=1 USE_BLAS=mkl USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1 CUDA_ARCH=-gencode=arch=compute_61,code=sm_61 USE_JEMALLOC=1

P.S disabling CUDNN didn't fix it.

@beew hi Bernard. Sorry to hear that you are facing this issue. Looks like you have the right CUDA_ARCH for your GPU card. Could you try a couple of things to rule out factors such as GPU, compiler, and dependency library? I'd like to know:

if the pre-compiled binary works on your platform. You can install a nightly build on the v1.x branch from https://dist.mxnet.io/python. You can use this command: pip3 install --pre 'mxnet-cu100<2' -f https://dist.mxnet.io/python
if it works on your build from source with JEMALLOC turned off.
if it works on your build from source without source /opt/intel/bin/compilervars.sh intel64

For the later two, try varying only that option to rule out these specific causes.

@szha
Hi,
1.without source /opt/intel/bin/compilervars.sh intel64, build with openblas instead of mkl (since can't find mkl root and headers)
python gpu examples works (from here https://mxnet.apache.org/versions/1.6/get_started/validate_mxnet.html)
2 With /opt/intel/bin/compilervars.sh intel6 and build with mkl then gpu examples hang as reported here, regardless whether JEMALLOC is turned on or off.  If it is turned off, got an additional warning "Significant performance increases can be achieved by installing and enabling gperftools or jemalloc development packages"
So it seems that mkl somehow doesn't play well with cuda...
I haven't tried the nightly branch as it seems that the prebuild mxnet python wheels only support cuda > 10.0 after version 1.5.1,  so instead I tried pip install mxnet-cu100mkl==1.5.1  I was able to create the mxnet array in gpu context with no problem with

@beew thanks for testing these settings, it's really helpful. the mxnet-cu100mkl doesn't contain MKL as blas, but only has mkldnn in it. The blas library used for that build is openblas.

cc @PatricZhao whose team likely has the knowledge to find out why MKL build doesn't work in GPU builds.

cc @PatricZhao whose team likely has the knowledge to find out why MKL build doesn't work in GPU builds.

It sounds wired. We will take an investigation for the issue.

Hi @beew,
I have tried to reproduce the issue locally on similar hardware (GeForce GTX 1060 6GB, Intel(R) Core(TM) i7-5960X CPU @   3.00GHz) and software (Ubuntu 18.04, Kernel:  4.15.0-88, Nvidia driver 410.48 , CUDA 10.0.130) but unfortunately I couldn't (the test works for me).
Could you paste the MxNet sha and MKL version or (better) attach info.txt file produced by following script (run from mxnet home directory without sourcing earlier /opt/intel/bin/compilervars.sh)?  ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1070    Off  | 00000000:01:00.0  On |                  N/A |
| N/A   42C    P8     6W /  N/A |    408MiB /  8111MiB |      3%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1142      G   /usr/lib/xorg/Xorg                           211MiB |
|    0      2056      G   compiz                                       192MiB |
|    0      3329      G   /usr/lib/firefox/firefox                       2MiB |
+-----------------------------------------------------------------------------+
CUDA Version 10.0.130
CUDA Patch Version <IP_ADDRESS>

Hi @beew,
Thanks for your answer. I checked out mxnet sha 3143aabb6 and installed MKL version 2019.1.144 but unfortunately I still cannot reproduce  the issue.
Formerly I cannot install MKL 2018.2.199 which you use as it does not support Ubuntu 18.4. When I force to install it, python3 hangs during “import mxnet as mx” – but it could be a different issue than yours.
I also noticed that your driver CUDA version is 10.1 (nvidia-smi) differs than software packet 10.0.130 (cat /usr/local/cuda/version.txt)
So could I ask you to try :

Upgrade MKL to 2019 version or newer (you can found it here: https://registrationcenter.intel.com/en/products/download/3685/ )
upgrade your CUDA to 10.1 version to have  it consistent  with the driver
(you can have a couple of CUDA versions in the system, see what is pointed by the link  /usr/local/cuda)

Please let me know if it helps.

@anko-intel
Hi,
1.I am sticking to MKL 2018.2.199 because of this issue https://forums.developer.nvidia.com/t/nvblas-numpy-intelmkl-2018-3-not-work/66090
Not sure if there is any solution at the moment.

Nvidia-smi doesn't tell you which cuda is actually used, rather what is the highest cuda version the driver supports (in this case it is 10.1) Since the change from Cuda 10 to Cuda 10.1 breaks a lot of things because it changes the names of the lib files and the folder structures. https://github.com/tensorflow/tensorflow/issues/26289 I would have to compile a lot of stuffs from scratch and test them, it will takes me several days considering that it takes 3 hours just to compile tensorflow, I don't think it is feasible for me right now, I would wait til next year to upgrade the OS to 20.04. At the moment using mxnet with openblas works for me.

Thanks for the help.

Hi @beew,
Thanks for your answer.
You probably already know it - you can also have several MKL versions and switch between them.
Thanks to that you can switch to MKL 2019 just before compilation of Mxnet by :
ls -la /opt/intel/compilers_and_libraries
cd /opt/intel
sudo rm compilers_and_libraries
sudo ln -s compilers_and_libraries_2019.1.144 compilers_and_libraries

and after MxNet compilation you can restore compilers_and_libraries link to your default MKL versions used by other software.

@anko-intel
Yes, I can also set up update-alternatives just as I switch between mkl and openblas, I will give it another try in a few days to give it another shot and report back. Thanks.

@anko-intel
I have no access for my machine for a month, I tried with another machine, this one has MKL 2<IP_ADDRESS> (the  latest installed via the deb repository but no cuda. I built mxnet with the options
make -j4 USE_OPENCV=1 USE_BLAS=mkl USE_CUDA=0 USE_CUDNN=1 USE_JEMALLOC=1

It failed with
/usr/bin/ld: build/src/operator/tensor/dot.o: undefined reference to symbol 'cblas_ddot'
/usr/bin/ld: /lib/x86_64-linux-gnu/libblas.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:647: bin/im2rec] Error 1

But building with openblas was successful.

Hi @beew, @gzuchow will try to help you with the second issue.

Hi @beew,
Sorry to hear that you have still a problem with MXNet.
I have tried to reproduce second issue which you encountered. Using Ubuntu 18.04 and 20.04 and flags used by you:

make -j4 USE_OPENCV=1 USE_BLAS=mkl USE_CUDA=0 USE_CUDNN=0 USE_MKLDNN=1 USE_JEMALLOC=1

It ran smoothly, even completed with cmake method.
I want to ask about a version of used MXNet and other libiraries.
PAX-utlis will be needed for this setp:
apt install pax-utils
Then run this and post to us the result of info.txt file.
INFO_FILE=info.txt
git rev-parse --verify HEAD >${INFO_FILE}
source /opt/intel/bin/compilervars.sh intel64
env >>${INFO_FILE}
scanelf -l -s cblas_ddot |grep dot >>${INFO_FILE}

According to this tutorial you can set MXNet environment.

INFO_FILE=info.txt
git rev-parse --verify HEAD >${INFO_FILE}
source /opt/intel/bin/compilervars.sh intel64
env >>${INFO_FILE}
scanelf -l -s cblas_ddot |grep dot >>${INFO_FILE}

Actually there is no  /opt/intel/bin/compilervars.sh intel64
Intelmkl on this machine was installed with the deb repository
https://software.intel.com/content/www/us/en/develop/articles/installing-intel-free-libs-and-python-apt-repo.html
So in this case the library paths should already in standard locations ( e,g /usr/lib/x86_64-linux-gnu)
I appreciate the help, but probably isn't worth the troubles. I cannot test very much on this laptop since it took me ~7 -8 hours to build mxnet from source here while my main machine is currently not accessible.  Thanks again, I will try when I get my main machine back in a few weeks.

Using this tutorial: https://software.intel.com/content/www/us/en/develop/articles/installing-intel-free-libs-and-python-apt-repo.html by default mkl packages are installed in /opt/intel/ location.

Using this tutorial: https://software.intel.com/content/www/us/en/develop/articles/installing-intel-free-libs-and-python-apt-repo.html by default mkl packages are installed in /opt/intel/ location.

No, they are not. Doesn't matter what the documentation says, it is probably outdated. I know where they are installed in my machine. I don't know about intel-python, I haven't installed that.

Hi.
I hope it worked out for you on your main machine. Is this issue still relevant or can it be closed?

Closing due to lack of response and no reproduction. If this issue is still relevant feel free to reopen

I am having the same issue. mxnet runs just fine when ctx is cpu (or default) but stalls as soon as gpu is specified.
----------Python Info---------- Version      : 3.7.0 Compiler     : MSC v.1912 64 bit (AMD64) Build        : ('default', 'Jun 28 2018 08:04:48') Arch         : ('64bit', 'WindowsPE') ------------Pip Info----------- Version      : 21.2.4 Directory    : C:\Users\trana\anaconda3\envs\gluon-ts-gpu\lib\site-packages\pip ----------MXNet Info----------- Version      : 1.5.0 Directory    : C:\Users\trana\anaconda3\envs\gluon-ts-gpu\lib\site-packages\mxnet Num GPUs     : 1 Hashtag not found. Not installed from pre-built package. ----------System Info---------- Platform     : Windows-11 ----------Hardware Info---------- machine      : AMD64 processor    : AMD64 Family 25 Model 33 Stepping 2, AuthenticAMD Name AMD Ryzen 9 5900X 12-Core Processor
I am using mxnet-cu101 with CUDA 10.1 and CuDNN <IP_ADDRESS>.
GPU RTX3060 driver version 512.77
##############################
The code looks like this

from mxnet import nd, gpu, gluon, autograd
from mxnet.gluon import nn
from mxnet.gluon.data.vision import datasets, transforms
import time
x = nd.ones((3,4))
x
[[1. 1. 1. 1.]
[1. 1. 1. 1.]
[1. 1. 1. 1.]]
<NDArray 3x4 @cpu(0)>

x = nd.ones((3,4), ctx=gpu())

Stalls right here#####


Update sensor.py

ome Assisstant has deprecated ENTITY_CATEGORY constant and replaced it with EntityCategory. enum in sensor.py >
from homeassistant.const import ( ENTITY_CATEGORY_CONFIG, ENTITY_CATEGORY_DIAGNOSTIC, )
I have replaced it with
from homeassistant.helpers.entity import EntityCategory
and then replacing ENTITY_CATEGORY classes with EntityCategory.CONFIG / EntityCategory.DIAGNOSTICT in entity_category= of each sensor and error messages in logs have stopped.
I dont know whether the errors appear before updating to 2022.9.2 of Hassio version with the latest clage_homeserver integration.
Thank you very much,
Ondrej

I made a mistake, DIAGNOSTICT is spelled wrong, once I am on computer I will fix it and do another PR


Modules in $PSHome\modules don't load in restricted execution policy

Steps to reproduce
ipmo psreadline
Expected behavior
the module should load
Actual behavior
Tells you that you need to change the execution policy.
Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSEdition                      Core
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
CLRVersion
PSRemotingProtocolVersion      2.3
BuildVersion                   <IP_ADDRESS>
WSManStackVersion              3.0
GitCommitId                    v6.0.0-alpha.7-378-g86c5d3e4c88fe1489dcb657132e64dd8535da6a1
SerializationVersion           <IP_ADDRESS>
PSVersion                      6.0.0-alpha

Check if this is a duplicate of #1716

@TravisEz13 Is this a duplicate of #1716?

No, on Windows PowerShell these modules load even in restricted execution policy.  So it is not a duplicate.

Closing as this is a duplicate of #1716

These issues are not duplicate.  Built-in Powershell modules should load even with restricted policy.  Even if it is not the duplicate.

This is fixed now on 6.0.0-beta.1:
Set-ExecutionPolicy Restricted
rmo psreadline
ipmo psreadline
Get-PSReadlineOption

EditMode                               : Windows
...


--added byhashes function in HashableId trait

-- added byHashes function in Hashable Trait to find multiple hashes at a time

This potentially affect the performance of your app, because you iterating on an array which has unknown size and then query it one by one. even if you decide to use whereIn($resolvedIds) also present another problem because of database's "max query string".
I'm sorry, but I will not merge this, feel free to use it on your app though. cheers 🍻


DSN Empty

I am getting the following error on SOME Ajax calls:
Exception (Invalid Configuration) "yii\base\InvalidConfigException" with message
"Connection::dsn cannot be empty."
I can make exactly the same call again and it's fine, it just appears intermittently.
There is nothing wrong with my configuration or my database connection (localhost on WAMPserver)

Are you using anything special line .env for configuration?

No, standard configuration.

Which opcache is used in WAMP? OpCache? APC? XCache?

None.

@osCMattiFinn Do you use dotenv?

No.  This is just a very standard Yii2 Advanced application running on WAMPserver (Windows).  I have never seen a similar issue with a multitude of PHP applications running on my localhost, including other Yii1 and Yii2 applications.
That the problem is intermittent makes it very difficult to understand exactly what is wrong.  Does Yii2 have it's own cache for something like this?

For config? No.

I'm seeing the same error with the advanced template when running a simple query as so:
$db = new  Yii::$app->db; $sql = "SELECT sum(total) as total FROM thing WHERE aid = " .$this->id; $total = $db->createCommand($sql)->execute(); $this->total = $total;
Query builder works fine:
$row = (new \yii\db\Query())         ->from('thing')         ->where(['=', 'aid', $this->id])         ->sum('total');         return $row;
All active record queries work fine.
No caching enabled for PHP.

dumping Yii::$app->db results in null values for dsn. dumping Yii::$app shows the db array correctly poplated.

$db = new  Yii::$app->db;
is same as
$db = new \yii\db\Connection;
So no wonder dns is null. Remove new.

I have never ever used that kidol.
I only ever use: Yii::$app->db->createCommand($sql)

Please reopen this cebe, it has not been resolved.

This problem happens intermittently for exactly the same Ajax call, thus exactly the same database query.  Sometimes it's fine, other times I get the above error.  Something is not right.

sorry, thought this was you answering there.

can you provide a stack trace for the error?

Hi.
I have this problem too.
I used .env config file with wamp 3
what do I do?

My Stack trace:
Exception (Invalid Configuration) 'yii\base\InvalidConfigException' with message 'Connection::dsn cannot be empty.'
in F:\lamp\www\ara20\vendor\yiisoft\yii2\db\Connection.php:523
Stack trace:
#0 F:\lamp\www\ara20\vendor\yiisoft\yii2\db\Connection.php(836): yii\db\Connection->open()
#1 F:\lamp\www\ara20\vendor\yiisoft\yii2\db\Connection.php(823): yii\db\Connection->getMasterPdo()
#2 F:\lamp\www\ara20\vendor\yiisoft\yii2\db\Connection.php(796): yii\db\Connection->getSlavePdo()
#3 F:\lamp\www\ara20\vendor\yiisoft\yii2\db\Connection.php(680): yii\db\Connection->getDriverName()
#4 F:\lamp\www\ara20\vendor\yiisoft\yii2\db\ActiveRecord.php(294): yii\db\Connection->getSchema()
#5 F:\lamp\www\ara20\vendor\yiisoft\yii2\db\ActiveRecord.php(317): yii\db\ActiveRecord::getTableSchema()
#6 F:\lamp\www\ara20\vendor\yiisoft\yii2\db\ActiveRecord.php(176): yii\db\ActiveRecord::primaryKey()
#7 F:\lamp\www\ara20\vendor\yiisoft\yii2\db\BaseActiveRecord.php(102): yii\db\ActiveRecord::findByCondition(1)
#8 F:\lamp\www\ara20\common\models\User.php(126): yii\db\BaseActiveRecord::findOne(1)
#9 F:\lamp\www\ara20\vendor\yiisoft\yii2\web\User.php(614): common\models\User::findIdentity(1)
#10 F:\lamp\www\ara20\vendor\yiisoft\yii2\web\User.php(176): yii\web\User->renewAuthStatus()
#11 F:\lamp\www\ara20\vendor\yiisoft\yii2\web\User.php(346): yii\web\User->getIdentity()
#12 F:\lamp\www\ara20\vendor\yiisoft\yii2\base\Component.php(130): yii\web\User->getIsGuest()
#13 F:\lamp\www\ara20\common\behaviors\LocaleBehavior.php(46): yii\base\Component->__get('isGuest')
#14 [internal function]: common\behaviors\LocaleBehavior->beforeRequest(Object(yii\base\Event))
#15 F:\lamp\www\ara20\vendor\yiisoft\yii2\base\Component.php(541): call_user_func(Array, Object(yii\base\Event))
#16 F:\lamp\www\ara20\vendor\yiisoft\yii2\base\Application.php(372): yii\base\Component->trigger('beforeRequest')
#17 F:\lamp\www\ara20\frontend\web\index.php(25): yii\base\Application->run()
#18 {main}

@sahifedp the issue is very old, please, open a new one.


Attach Python stacktrace to errors in ConvertPyError

Describe the bug, including details regarding any error messages, version, and platform.
We have an internal application that is using the arrow::RecordBatchReader with a Python generator (but in C++). Right now, when the Python generator raises an error, the stack trace disappears (e.g. in our code base we just see:
Python exception: AssertionError

without the stack trace.
I am not super familiar with C++ or the code, but I think the problem can be traced to this function:
https://github.com/apache/arrow/blob/750670e8c7c8b7985323f7866e4aa09be4232169/python/pyarrow/src/arrow/python/common.cc#L144-L153
which calls into
https://github.com/apache/arrow/blob/750670e8c7c8b7985323f7866e4aa09be4232169/python/pyarrow/src/arrow/python/common.cc#L91-L96
where we only attach the exception type name and no other information. My C++ is not very good, but how hard would it be to actually attach the full Python stacktrace inside the message whenever we hit a Python exception?
Component(s)
Python

Yes, we could improve PythonErrorDetail::ToString() to include more information (the downside is that it would also be more noisy for the user, who might not be interested in a full traceback).
cc @danepitkin


msgs from ThreadLeakControl.checkThreadLeaks can be inconsistent due to mismatched use of thread data

The basic logic of ThreadLeakControl.checkThreadLeaks(...) is...
HashSet<Thread> threads = getThreads(suiteFilters);
if (threads.isEmpty()) return
// optional wait and retry if ThreadLeakLinker is configured

// Take one more snapshot, this time including stack traces (costly).
HashMap<Thread,StackTraceElement[]> withTraces = getThreadsWithTraces(suiteFilters);
if (withTraces.isEmpty()) return

// Build up failure message (include stack traces of leaked threads).
StringBuilder message = new StringBuilder(threads.size() + " thread" +
    (threads.size() == 1 ? "" : "s") +
    " leaked from " +
    scope + " scope at " + description + ": ");
message.append(formatThreadStacks(withTraces));

..but that final message includes a mix of information from both threads and withTraces, even though the information in threads is stale, and may include threads that aren't in withTraces (ie: because the Thread properly died in between the method calls)
This can lead to messages like this, where the number of threads doesn't make sense...
  2> SEVERE: 2 threads leaked from SUITE scope at org.apache.solr.util.OrderedExecutorTest:
  2>    1) Thread[id=3510, name=testLockWhenQueueIsFull_control-2506-thread-1, state=TERMINATED, group={null group}]
  2>         at (empty stack)

It seems like the messages could always be internally consistent if checkThreadLeaks(...) stopped using threads variable once the withTraces variable was populated -- just use withtraces.keySet() in it's place .(or do something like threads = withtraces.keySet(); right after the withTraces.isEmpty() check)

Yeah, this looks strange. I'll take a look, thanks Chris.

Fixed, thanks.


Leading zero in OUTPUT TEMPLATE

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.02.08. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2018.02.08

Before submitting an issue make sure you have:

[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones
[x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[ ] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[x] Feature request (request for a new functionality)
[x] Question
[ ] Other

When i download i want the season and episode have a leading zero instead of only a single number. I use the template s%(season_number)se%(episode_number)s and i can't find anything that will make it use two numbers 01, 02, 03 and i don't want to add it manually because that will make it hard to check for every download if there should be a leading 0 or not.
I'm new to youtube-dl so maybe i have missed something?

Read FAQ?

The special sequences may be formatted according to python string formatting operations. For example, %(NAME)s or %(NAME)05d

I have no idea how that works, but thanks for your help @dstftw...

S%(season_number)05d vs. S%(season_number)s for example...

Thanks, I don't have to rename my files anymore after download.
-o '%(series)s - S0%(season_number)sE0%(episode_number)s - %(title)s.%(ext)s"
With above I was getting S0E01,SE02 (OK) but S01E010, S01E011 (NOK)
'%(series)s - S%(season_number)**02d**E%(episode_number)**02d** - %(episode)s.%(ext)s'
I get "ShowName - S01E01 - BlaBlaBla.mp4"
also tried 03d,04d
Tested:
>>> print '%(language)s has %(number)02d quote types.' % \
... {"language": "Python", "number": 2}
Python has 02 quote types.

>>> print '%(language)s has %(number)03d quote types.' % \
... {"language": "Python", "number": 2}
Python has 002 quote types.

>>> print '%(language)s has %(number)05d quote types.' % \
... {"language": "Python", "number": 2}
Python has 00002 quote types.


Merge build pipeline (new) into master

Add a properly configured azure-pipelines.ym file to aster

Reviewed and OK


Will animateDiff be added to Hugging Face Hub?

I am refering to https://huggingface.co/docs/transformers/add_new_model

Hi, it's now available at https://huggingface.co/guoyww/animatediff. Thanks.


laravel -websocket using all of cpu memory

laravel-weboscket using all cpu memory i am using version 2.x . server start crashing when i enable supervisor worker
websocket.conf file
[program:websockets]
command=php /var/www/html/siloc/artisan websockets:serve
numprocs=1
autostart=true
stdout_logfile=/var/www/html/siloc/websocket.log
autorestart=true

try without stdout_logfile and differen port (6002)

@ramay2088 does it solves your issue?

@ramay2088 did you try the different port? did it help?


docs(recipes): dont show when searching

I find the auto-complete when searching to be distracting and prefer this pattern to maintain the auto-complete when using the command line for commands. Thought it might make a good recipe to include. No biggie if not.
Thanks for the plugin!

Thanks!


Minor typo

Raspian -> Raspbian.
https://www.raspberrypi.org/downloads/raspbian/.

LGTM.
Thank you!


patch threshold and entropy

Dear Binli.
First of all, I want to say that your paper and repository is contributing a lot to the development of WSI ml area. Your code implementation is much easier to understand and implement than others. Thanks :)
By the way, I'm little confused with the deepzoom_tiler.py args 'background_t' and your description in paper 'entropy'.
IS filtering background with background_t = 15 same as entropy=5? Is there any formula for exchanging background_t and entropy?
Also, by using background_t = 15, i got more patches than expected.
Would you offer us the exact background_t for tcga and camelyon? If it is confidential, just let us know the 'good' range of background_t for both datasets.
Have a good day :)

Hi,
Have you figure it this one? is the background_t=15 same as entropy=5?
Thank you

No, I'm just waiting for the reply from author @binli123


cardano-db-sync killed

[2a6a1772:cardano.node.ChainDB:Notice:56] [2021-06-23 07:23:33.79 UTC] Chain extended, new tip: 6a56879b8b03d2e91400371c002a4de911ba0130c03d9497df1777b809c7fd58 at slot 32866722
[2a6a1772:cardano.node.ChainDB:Notice:56] [2021-06-23 07:23:51.28 UTC] Chain extended, new tip: acd0a2a92f01a679b18532d4526e0648fe9a3e15cf243bdca367232499a7edc2 at slot 32866740
2021-06-23 07:23:52.057 UTC [331] postgres@cexplorer LOG:  unexpected EOF on client connection with an open transaction
/scripts/start_cardano-db-sync.sh: line 12:   117 Killed                  $CARDANO_DB_SYNC_EXE --config /config/cardano-db-sync/config.json --schema-dir /cardano-db-sync/schema/ --socket-path /ipc/node.socket --state-dir /data/db-sync
2021-06-23T07:23:52: PM2 log: App [cardano-db-sync:2] exited with code [137] via signal [SIGINT]
2021-06-23T07:23:52: PM2 log: App [cardano-db-sync:2] starting in -fork mode-
2021-06-23T07:23:52: PM2 log: App [cardano-db-sync:2] online
[2a6a1772:cardano.node.LocalErrorPolicy:Error:76] [2021-06-23 07:23:53.06 UTC] IP LocalAddress "" ErrorPolicyUnhandledApplicationException (MuxError MuxBearerClosed "<socket: 37> closed when reading data, waiting on next header True")
[db-sync-node:Info:4] [2021-06-23 07:23:58.55 UTC] NetworkMagic: 764824073
[db-sync-node:Info:4] [2021-06-23 07:23:58.66 UTC] Initial genesis distribution present and correct
[db-sync-node:Info:4] [2021-06-23 07:23:58.66 UTC] Total genesis supply of Ada:<PHONE_NUMBER>5.000000
[db-sync-node:Info:4] [2021-06-23 07:23:58.66 UTC] Inserting Shelley Genesis distribution
[db-sync-node:Info:4] [2021-06-23 07:24:03.71 UTC] localInitiatorNetworkApplication: connecting to node via "/ipc/node.socket"
[db-sync-node.Subscription:Notice:43] [2021-06-23 07:24:03.71 UTC] Identity Starting Subscription Worker, valency 1
[db-sync-node.Subscription:Notice:44] [2021-06-23 07:24:03.71 UTC] Identity Connection Attempt Start, destination LocalAddress "/ipc/node.socket"
[db-sync-node.Subscription:Notice:44] [2021-06-23 07:24:03.71 UTC] Identity Connection Attempt End, destination LocalAddress "/ipc/node.socket" outcome: ConnectSuccessLast
[db-sync-node.Handshake:Info:44] [2021-06-23 07:24:03.71 UTC] WithMuxBearer (ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"}) Send (ClientAgency TokPropose,MsgProposeVersions (fromList [(NodeToClientV_1,TInt 764824073),(NodeToClientV_2,TInt 764824073),(NodeToClientV_3,TInt 764824073),(NodeToClientV_4,TInt 764824073),(NodeToClientV_5,TInt 764824073),(NodeToClientV_6,TInt 764824073),(NodeToClientV_7,TInt 764824073),(NodeToClientV_8,TInt 764824073)]))
[db-sync-node.Handshake:Info:44] [2021-06-23 07:24:03.72 UTC] WithMuxBearer (ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"}) Recv (ServerAgency TokConfirm,MsgAcceptVersion NodeToClientV_8 (TInt 764824073))
[db-sync-node.Mux:Info:44] [2021-06-23 07:24:03.72 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"} event: Handshake Client end, duration 0.002596079s
[db-sync-node.Mux:Info:46] [2021-06-23 07:24:03.72 UTC] Bearer on ConnectionId {localAddress = LocalAddress "", remoteAddress = LocalAddress "/ipc/node.socket"} event: State: Mature
[db-sync-node:Info:49] [2021-06-23 07:24:03.72 UTC] Starting chainSyncClient
[db-sync-node:Info:49] [2021-06-23 07:24:03.73 UTC] Database tip is at slot 26626702, block 5580000
[db-sync-node:Info:53] [2021-06-23 07:24:03.73 UTC] Running DB thread
[db-sync-node.Subscription:Notice:43] [2021-06-23 07:24:03.77 UTC] Identity Required subscriptions started
[db-sync-node:Info:53] [2021-06-23 07:24:03.89 UTC] Rolling back to slot 26626702, hash fb46021f015b1470c6d0acceba03add7dd0e73c04b9ab68b56c53d267c70509a
[db-sync-node:Info:53] [2021-06-23 07:24:03.89 UTC] Deleting slots numbered: []
[db-sync-node:Info:53] [2021-06-23 07:24:03.89 UTC] Slots deleted
[db-sync-node:Info:56] [2021-06-23 07:24:05.55 UTC] getHistoryInterpreter: acquired

We'll be releasing a new version once<EMAIL_ADDRESS>is out, which will hopefully be in the next day or two. This version improves the overall stability of the service and should address this.


Use a non-primary mouse button to toggle zone activation - Not working

Microsoft PowerToys version
64.1
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
FancyZones
Steps to reproduce
Drag window, hold right mouse button, fanzy zones does not activate.
✔ Expected Behavior
Fancy Zones should activate when holding right mouse button while dragging a window.
❌ Actual Behavior
Fanzy zones does not activate.
Other Software
No response

Try dragging with left, then click with right.

Hi Jay,
Thanks. I know how this feature works. I got it working as expected on my
previous laptop. I've narrowed down the issue. It works on a standard user
account but not with elevated apps(with a different admin account)
On Thu, Dec 8, 2022 at 2:36 PM Jay @.***> wrote:

Try dragging with left, then click with right.
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/22635#issuecomment-1343463426,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGGXILR576JEWN2TBYNXAYTWMJPFDANCNFSM6AAAAAASYMRPLY
.
You are receiving this because you authored the thread.Message ID:
@.***>

PowerToys does need with to be running as admin to manipulate admin windows. Does it work that way? /needinfo

I understand you need to run as admin to use fancy zones on elevated apps.
The issue I’m having is when power toys is elevated, I can’t use the right
click method for getting fancy zones to work.
On Fri, Dec 9, 2022 at 8:47 AM Jaime Bernardo @.***>
wrote:

PowerToys does need with to be running as admin to manipulate admin
windows. Does it work that way? /needinfo
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/22635#issuecomment-1344527744,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGGXILS3I376NISMXWIMIRLWMNPANANCNFSM6AAAAAASYMRPLY
.
You are receiving this because you authored the thread.Message ID:
@.***>

Could this be a specific example of this https://github.com/microsoft/PowerToys/issues/22659

It is! Thanks for leading me here. I installed this version for now.
PowerToysSetup-0.51.1-x64.exe
https://dl5.filehippo.com/42e/827/31b9616e7f77e445e836c1a0e6de98cc77/PowerToysSetup-0.51.1-x64.exe?Expires=1670692696&Signature=2e01920189314bdb9f34c8e3c2c5d2b802a6f8cf&url=https://filehippo.com/download_microsoft-powertoys/&Filename=PowerToysSetup-0.51.1-x64.exe
Thanks again.
On Fri, Dec 9, 2022 at 9:08 PM BycreatinganaccountyouagreetotheTerms <
@.***> wrote:

Could this be a specific example of this #22659
https://github.com/microsoft/PowerToys/issues/22659
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/22635#issuecomment-1345136239,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGGXILVAPBJ2RPD5BKTKYODWMQF3NANCNFSM6AAAAAASYMRPLY
.
You are receiving this because you authored the thread.Message ID:
@.***>


RSpec/DescribeClass doesn't consider infer_spec_type_from_file_location!

My system specs do not have explicit metadata to set its type (type: :system). It's set via the file location.
I had to add Exclude: in my rubocop config to get it to pass.
Is it possible for this cop to consider inferred metadata?
Thanks!

Good catch, thanks for reporting!
Unfortunately, RuboCop don't evaluate RSpec's spec helper files and is not aware which spec helpers relate to which specs. Exclude: is the only option so far.
I can suggest one thing though. Since using inferred metadata is not uncommon, how do you feel about excluding the default directories that contain specs typically not describing a specific class?
At this moment, DescribeClass excessively ignores some type: ... metadata, but you can safely exclude the rest not mentioned in #1023 .
Would you like to send a quickfix pull request?


Make default constructor non-explicit

IMHO, it is better to support copy-initialization with default constructor.
cf. LWG Issue 2193. Default constructors for standard library containers are explicit
link: https://wg21.cmeerw.net/lwg/issue2193

@kariya-mitsuru Thank you for the contribution.

Thank you for your quick response!


Error checking if user exists - "TypeError: Cannot read property 'localId' of undefined"

[READ] Step 1: Are you in the right place?

For issues related to the code in this repository file a Github issue.
If the issue pertains to Cloud Firestore, read the instructions in the "Firestore issue"
template.
For general technical questions, post a question on StackOverflow
with the firebase tag.
For general Firebase discussion, use the firebase-talk
google group.
For help troubleshooting your application that does not fall under one
of the above categories, reach out to the personalized
Firebase support channel.

[REQUIRED] Step 2: Describe your environment

Operating System version: macOS 10.15.7
Firebase SDK version: 9.3.0
Firebase Product: auth
Node.js version: 12.19.0
NPM version: 6.14.8

[REQUIRED] Step 3: Describe the problem
With the functions and authentication emulators, when running auth().getUser() with a UID that doesn't exist, I get TypeError: Cannot read property 'localId' of undefined. And not an error with code auth/user-not-found as per the documentation.
I have confirmed this is specific to the emulator, as I don't get the TypeError when I pushed my function to a production environment.
Steps to reproduce:

Initialise a firebase project with the authentication and functions emulator
Write a function that checks if a user exists by using auth().getUser()
Execute your function with the emulator

Edit: I've realised it's probably worthwhile adding the stack trace
TypeError: Cannot read property 'localId' of undefined
    at new UserRecord (functions/node_modules/firebase-admin/lib/auth/user-record.js:272:23)
    at functions/node_modules/firebase-admin/lib/auth/auth.js:133:20
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Object.exports.userExists (functions/lib/services/users.js:8:22)
    at async functions/lib/routes/discord.js:36:24

Relevant Code:
Here is the code I've used to check if a user exists
import { auth } from 'firebase-admin';

export const userExists = async (uid: string): Promise<boolean> => {
  try {
    const user = await auth().getUser(uid);
    if (user) {
      return true;
    }

    return false;
  } catch (e) {
    if (e.code === 'auth/user-not-found') {
      return false;
    }
    throw e;
  }
};

Also ran into this issue, reverting to firebase-admin version 9.2.0 resolves it temporarily.

I've temporarily updated my catch block to the following, with a note to revert it when the behaviour is patched.
catch (e) {
    if (e.code === 'auth/user-not-found') {
      return false;
    } else if (process.env.FUNCTIONS_EMULATOR) {
      return false;
    }
    throw e;
  }

Hi all, this is an issue in the Auth Emulator and we're drafting a fix to be released in the CLI.
Also, friendly reminder that downgrading firebase-admin to 9.2.0 will NOT fix the issue -- 9.2.0 does not support Auth Emulator at all, and your requests WILL AFFECT PRODUCTION. Please wait and upgrade the CLI (not Admin SDK) once that is available.

Fix coming in the next CLI release

This should be fixed as of Firebase CLI v8.15.0. No update to firebase-admin needed.


Add new script for WSL networking diagnostics

The script collects the regular WSL logs (using collect-wsl-logs.ps1).
In addition, it collects:
traces from networking providers (wsl_networking.wprp)
tcpdump from the container
pktmon logs
WFP logs
host routes
It runs the networking.sh script before and after repro and collects the output
The script collects all files in a zip called "WslNetworkingLogs.zip"

Overall this script looks very similar to networking.bat. Having both networking.bat and networking_diagnostics.bat feels a bit confusing. Could we merge those into one ?

Overall this script looks very similar to networking.bat. Having both networking.bat and networking_diagnostics.bat feels a bit confusing. Could we merge those into one ?

good point, I'll look more into what networking.bat does and move things over to this new script

the existing networking.bat solves a different problem than this script. That script attempts to repro a bad network config by tearing down all HNS objects, shutting down containers, and starting over.
we deliberately do not want to destroy the current repro environment. we want to snap everything about the current state, and attempt to watch packet flows.

the existing networking.bat solves a different problem than this script. That script attempts to repro a bad network config by tearing down all HNS objects, shutting down containers, and starting over.
we deliberately do not want to destroy the current repro environment. we want to snap everything about the current state, and attempt to watch packet flows.

That makes sense. Could we potentially add parameters to that script then ? Destruction of the networking state could be opt-in.

the existing networking.bat solves a different problem than this script. That script attempts to repro a bad network config by tearing down all HNS objects, shutting down containers, and starting over.
we deliberately do not want to destroy the current repro environment. we want to snap everything about the current state, and attempt to watch packet flows.

That makes sense. Could we potentially add parameters to that script then ? Destruction of the networking state could be opt-in.

@keith-horton @OneBlue easiest option I can think of is to keep the old networking.bat. And add a flag to the new networking script, that will invoke the old networking.bat
And we can update the instructions to mention just the new script.
Thoughts?

the existing networking.bat solves a different problem than this script. That script attempts to repro a bad network config by tearing down all HNS objects, shutting down containers, and starting over.
we deliberately do not want to destroy the current repro environment. we want to snap everything about the current state, and attempt to watch packet flows.

That makes sense. Could we potentially add parameters to that script then ? Destruction of the networking state could be opt-in.

@keith-horton @OneBlue easiest option I can think of is to keep the old networking.bat. And add a flag to the new networking script, that will invoke the old networking.bat
And we can update the instructions to mention just the new script.
Thoughts?

Could we merge both into one, with a parameter to decide if we want to destroy the HNS state or not ?
I think we should really try to only have one entry point for networking diagnostics to reduce potential confusion

the existing networking.bat solves a different problem than this script. That script attempts to repro a bad network config by tearing down all HNS objects, shutting down containers, and starting over.
we deliberately do not want to destroy the current repro environment. we want to snap everything about the current state, and attempt to watch packet flows.

That makes sense. Could we potentially add parameters to that script then ? Destruction of the networking state could be opt-in.

@keith-horton @OneBlue easiest option I can think of is to keep the old networking.bat. And add a flag to the new networking script, that will invoke the old networking.bat
And we can update the instructions to mention just the new script.
Thoughts?

Could we merge both into one, with a parameter to decide if we want to destroy the HNS state or not ?
I think we should really try to only have one entry point for networking diagnostics to reduce potential confusion

@keith-horton @OneBlue I remove the old script and added a "--stop-wsl" to the new script
Note that I did not port other things from the old script to the new one. for example the old script also had a packet capture, but the new one already does that using pktmon and tcpdump


Swarm mode support

parameter -swarm makes docker-gen look for containers in tasks not containers
go-dockerclient version changed to 50724541fde5c77c754caf1d65d3c57e3e91883b

How it works: when -swarm switch is on, and -endpoint is a swarm manager node RuntimeContainer struct is created from tasks not containers. Some metadata are not available in swarm tasks so some information is missing but majority of important ones are present (ips, labels, envs, networks) so it is somewhat compatible with templates created for regular mode.
One dirty trick done is that there is no option in swarm mode to expose port without exposing it to ingres network, so if task has no published ports an attempt is made to check exposed port in container image, which may not always work, as image may not be present on endpoint docker-gen is connected.
What do you think?

I'm no go expert but this build seems to be failing because travis has go in version 1.4, and go-dockerclient needs something newer...

Sorry for the mess in commits. If it's a problem I can file PR again with one squashed.

more i test it, more i hate it


Pass through arguments on build.

I think this is just an oversight. Useful when you have lots of executables and you want to build one.

:+1:


cluster sets of related terms in a list?

In the soil domain, terms are typically grouped in clusters (or code lists). Examples of clusters from the benchmarks glossary are:

ECOSYSTEM SERVICES
SOIL FUNCTIONS
SOIL INDICATORS (or soil property or parameter)
MANAGEMENT PRACTICES
LAND USES

What options do we have to cluster terms using the skos ontology

Via a broader/narrower relation
Via a conceptscheme relation
Via a collection relation

One of the use cases for clustering is a set of filters next to a catalog search result, clustered by topic

@pvgenuchten Has this Soil Health BENCHMARKS glossary been RDFed? Or do they have plans to RDF them? If not, is there value in converting them to RDF triples under SKOS schema?


[keymgr] Finish up several items for D2

Add individual sideload key clear (Fixes #5781).
Route regfile faults into key manager operation handling.
Add sparse fsm encoding.
Clarify some language regarding errors. Also add a FAULT_STATUS register
to capture which fault reasons fired exactly.

Signed-off-by: Timothy Chen<EMAIL_ADDRESS>

o yes good point.
On Mon, Aug 2, 2021 at 5:03 PM weicaiyang @.***> wrote:

@.**** commented on this pull request.
In hw/ip/keymgr/doc/_index.md
https://github.com/lowRISC/opentitan/pull/7562#discussion_r681339740:

@@ -193,6 +193,13 @@ There are two categories of errors

Two separate alerts are generated, one corresponding to each category above.
+In addition to the error code register, there is a separate {{< regref FAULT_STATUS >}} that captures the sources that caused Invalid states to assert.
+*  Command error - A non-one-hot command was issued from the key manager controller to the KMAC data interface. This is not possible by software and indicates a hardware fault.  This error can also happen if the KMCA data fsm gets into an invalid state.
+*  Kmac fsm error - The kmac fsm has transitioned into an error state.
+*  Kmac operation error - The kmac module has returned an error, this should never happen.
+*  Register file integrity error - The register file has encountered an integrity error.
+
+
Invalid Command/Fsm/Kmac Operation
When these errors occur, a fault alert is generated.
should we delete these 2 lines since they're now part of Invalid states?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/pull/7562#pullrequestreview-720673748,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2RSWU3JOMJEWI3KD2YA3T24W4JANCNFSM5BNRRN2A
.
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&utm_campaign=notification-email
.


Use modern META filename

The META.info is a legacy, pre-Christmas name. While it's still currently supported, META6.json is the new name. And since a lot of people simply copy some module's  structure, the old name still proliferates, so we're trying to get rid of it for good  by sending PRs to any modules that use the old name, to switch to the modern name.

Thank you.  I did 'git mv META.info META6.json' myself so your fix is in though it is not directly merged.


Nodes on Non IC mode miss entry for primary UDN networks

What happened?
Create a primary UDN NAD, spin a VM using that
Node has this annotation
k8s.ovn.org/node-gateway-router-lrp-ifaddrs: '{"default":{"ipv4":"<IP_ADDRESS>/16","ipv6":"fd98::4/64"}}'
It doesn't have expected l2-network entry
What did you expect to happen?
Expected to have it, in order to fix multi-path issue [2].
Since all the LRPs attached to the logical switch will answer the router solicitation with a corresponding router advertisement, the VM will have multi default gateways.
Having the gateway LLA allows to create a nft rule that will drop all RA that were not originated from local GW.
On IC mode we have this as expected
    k8s.ovn.org/node-gateway-router-lrp-ifaddrs: '{"default":{"ipv4":"<IP_ADDRESS>/16","ipv6":"fd98::3/64"},"l2-network":{"ipv4":"<IP_ADDRESS>/16","ipv6":"fd99::3/64"}}'

[2] https://github.com/ovn-kubernetes/ovn-kubernetes/pull/4866
and https://github.com/ovn-kubernetes/ovn-kubernetes/pull/4852 (both WIP)
How can we reproduce it (as minimally and precisely as possible)?
Create a NAD (might be enough, else also spin a VM that use this NAD)
[1]
apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachmentDefinition
metadata:
  namespace: poc1
  name: l2
spec:
  config: |2
    {
            "cniVersion": "0.3.0",
            "name": "l2-network",
            "type": "ovn-k8s-cni-overlay",
            "topology":"layer2",
            "subnets": "<IP_ADDRESS>/24,2014:100:200::0/60",
            "netAttachDefName": "poc1/l2",
            "allowPersistentIPs": true,
            "role": "primary"
    }

Anything else we need to know?
No response
OVN-Kubernetes version

$ ovnkube --version
# paste output here

Kubernetes version

$ kubectl version
# paste output here

OVN version

$ oc rsh -n ovn-kubernetes ovnkube-node-xxxxx (pick any ovnkube-node pod on your cluster)
$ rpm -q ovn
# paste output here

OVS version

$ oc rsh -n ovn-kubernetes ovs-node-xxxxx (pick any ovs pod on your cluster)
$ rpm -q openvswitch
# paste output here

Platform

Is it baremetal? GCP? AWS? Azure?

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

Container runtime (CRI) and version (if applicable)

We can see here for example it fails on non IC, UDN, dual stack
https://github.com/ovn-kubernetes/ovn-kubernetes/actions/runs/12235749729/job/34129158945?pr=4878
Having this little WA fixes it meanwhile, question if it is fine ?
diff --git a/go-controller/pkg/util/pod_annotation.go b/go-controller/pkg/util/pod_annotation.go
index 6a2b84800..549289ee3 100644
--- a/go-controller/pkg/util/pod_annotation.go
+++ b/go-controller/pkg/util/pod_annotation.go
@@ -578,7 +578,8 @@ func AddRoutesGatewayIP(
                        if _, isIPv6Mode := netinfo.IPMode(); isIPv6Mode {
                                joinAddrs, err := ParseNodeGatewayRouterJoinAddrs(node, netinfo.GetNetworkName())
                                if err != nil {
-                                       return err
+                                       // until https://github.com/ovn-kubernetes/ovn-kubernetes/issues/4876 is fixed, ignore the errors
+                                       return nil
                                }
                                podAnnotation.IPv6LLAGateway = HWAddrToIPv6LLA(IPAddrToHWAddr(joinAddrs[0].IP))
                        }


cmd_clear is not implemented

Also noticed this.

Good point; I'm just going to remove this for now -- it's an artifact of an earlier time, back when I thought desk would be a source layer vs. subshell.


remove unnecessary imports.

I see. But that PR was about compatibility with python 3.6, no?
I think this PR really just removes unneeded import as detected by vscode. I would be surprised if that also affect python 3.6. But we should probably test this before merging.

Yes, yes, I agree, it will not affect python 3.6 compatibility. All I wanted to say is that somebody (Miles) made an explicit effort to put these imports in.
I'm not sure if it's good practice to have them or not. So, as I said, I'm fine either way.

any opinions on this @meteore or @jan-matthis ?

I'd take unused imports out, what do you think @meteore?

Codecov Report

Merging #380 into main will increase coverage by 0.12%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #380      +/-   ##
==========================================
+ Coverage   74.69%   74.81%   +0.12%
==========================================
  Files          49       49
  Lines        2845     2839       -6
==========================================
- Hits         2125     2124       -1
+ Misses        720      715       -5

Flag
Coverage Δ

unittests
74.81% <100.00%> (+0.12%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

sbi/mcmc/slice_numpy_vectorized.py
100.00% <ø> (ø)

sbi/types.py
100.00% <ø> (ø)

sbi/inference/abc/abc_base.py
85.71% <100.00%> (ø)

sbi/inference/abc/mcabc.py
79.41% <100.00%> (ø)

sbi/inference/abc/smcabc.py
81.92% <100.00%> (ø)

sbi/inference/snpe/snpe_a.py
83.33% <100.00%> (-4.17%)
:arrow_down:

sbi/inference/snpe/snpe_b.py
40.00% <100.00%> (ø)

sbi/mcmc/init_strategy.py
35.48% <100.00%> (-2.02%)
:arrow_down:

sbi/simulators/linear_gaussian.py
100.00% <100.00%> (ø)

sbi/simulators/simutils.py
95.45% <100.00%> (-0.20%)
:arrow_down:

... and 6 more

Continue to review full report at Codecov.

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


Eliminate legacy json/update_message URL

Hi ! What do you think about my code?

Automated message from Dropbox CLA bot
@Juanvulcano, it looks like you've already signed the Dropbox CLA. Thanks!

I don't think Tim recommends multiple commits for these anymore https://github.com/zulip/zulip/issues/611

@Juanvulcano I guess you must make first commit to add url to urls.py and then make modification
and the second for removing the url from legacy_url.py

@Juanvulcano, we just need to confirm with what needs to be added in place of authenticated_json_post_view otherwise this lgtm. Tagging @showell and @timabbott. https://github.com/zulip/zulip/pull/2853 also has a similar issue.

@Juanvulcano, this lgtm. @showell, can we please have a final review? Thanks.

Merged!  Thanks, @Juanvulcano @anirudhjain75 @umairwaheed


Reporter recommendation with error stack support

Hi, which reporter would you recommend with tape?
I used to use the tap-spec reporter , but it swallows the TypeError stack trace. Unfortunately the newer version @tap-format/spec has the same issue.
Randomly testing some other reporters it seems faucet by substack shows the correct error stack.
Do you have any other pretty reporters recommendation?
test
test('promisesomething', (t) => {
  SomePromise() // fails
  .then(result => {
    t.true(result, 'got result')
    t.end()
  })
  .catch(t.end) // catch error see plain tap output below
})

Plain tap output
not ok 9 TypeError: Cannot read property 'trim' of undefined
  ---
    operator: error
    expected: |-
      undefined
    actual: |-
      [TypeError: Cannot read property 'trim' of undefined]
    stack: |-
      TypeError: Cannot read property 'trim' of undefined
          at minify (/users/user/path/project/minify.js:14:33)
          at module.exports.ast (/users/user/path/project/minify.js:32:10)
          at readFile.then.then.ast (/users/user/path/project/index.js:15:16)
  ...

with tap-spec
node test/index.js | tap-spec missing information after stack: |-

I usually pipe through faucet in a tty, and just use plain output everywhere else.


Check the behaviour of the Google Drive sign-in screen

It's perhaps worth showing when we discover we're not logged before visiting the library. It might make the on boarding experience smoother.

Lots of minor improvements. Considered fixed as of 1211b1b4767c6c6e1a8ff98b719266a823c09272.


Submodule

Should have made this a submodule project in Gitextensions repo and added it to the solution.  Storing binaries in the repo is going to bloat it as we change things.  You shouldn't include the references in the repo project.

Here is the problem.  He has embedded our plugin assemblies in the git
repo. You don't include binaries in a repo if you can help it.   Instead of
this project being a submodule and adding a project reference to our
assemblies.  Auto update so when user is using an old version of GE and it
downloads a new gitextensions plugin library in the update and GE crashes
next time user runs GE because the plugin library is different than what GE
was compiled against, we do what?
On Sun, Dec 2, 2018 at 4:24 PM RussKie<EMAIL_ADDRESS>wrote:

I disagree. We bundle a plugin manager at the packaging step, thus we
don't store the actual binaries.
The PM has a self update mechanism built in, so it will keep itself
current.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/maraf/GitExtensions.PluginManager/issues/56#issuecomment-443543529,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADdhsXM16qymFqCgVgjlosAkV53wPh4Iks5u1EUpgaJpZM4Y9kL6
.

There is much to do in the compatibility story.
We have shared some thoughts in https://github.com/maraf/GitExtensions.PluginManager/issues/50.
Current mode "let me install everything" is kind a beta. There should be more strict solution where PM version is bound to a GE version range, but it requires to think through GE plugin-related binaries distribution etc.


Combine with cpuprofile-webpack-plugin

Hey,
I started an experiment which does the same thing what you are trying to do:
https://github.com/jantimon/cpuprofile-webpack-plugin
The difference is that it uses the cpuprofile and therefore has more information about garbage collection and also better tracing of asynchronous code:

You can see a preview of the report here: https://jantimon.github.io/cpuprofile-webpack-plugin/
Maybe we can combine both plugins? :)

(closing this because it's just been sat open for ages - but feel free to ping me on Twitter if you want to chat ideas around this 🙂)


Performance issues

Renamed time.py to timing.py to avoid conflict with the Python time.
Made a cache for zero crossings, as I was calculating them for each chunk of audio.

Coverage increased (+0.4%) to 98.322% when pulling 8445a78fd2d4acf674af46bf13f46cdf601f962c on performance-issues into da6ef5f3126329f142bb535c6666bb146041ef3b on master.

Coverage increased (+0.04%) to 97.952% when pulling 092a1bb6519e069407c2dae4f140e2e88d3ea2eb on performance-issues into da6ef5f3126329f142bb535c6666bb146041ef3b on master.

Coverage increased (+0.04%) to 97.952% when pulling 964b7a5811b896cae2a79ebadb0f16c8f8d938dc on performance-issues into da6ef5f3126329f142bb535c6666bb146041ef3b on master.


PHP7.4 - Add "str_split" => "mb_str_split" mapping.

@ see https://wiki.php.net/rfc/mb_str_split

This one should check first PHP version installed, no? Just got str_split replaced with mb_str_split on PHP 7.2...


Kontena site is down

I want to download Kontena but i can't because the site is down!! i ask for another ressource to download Kontena for windows

Kontena went out of business.   There are efforts to open source the Lens app... but it sounds like legally they can't yet.


Support multiline GraphQL descriptions

Information:

Prism version: latest from the download page
Plugins: none
Environment: Browser

Description
GraphQL descriptions, specifically multi-line, as described in section 3.3 of the GraphQL spec are not highlighted correctly.
Also, since the spec calls out that descriptions can be formatted in CommonMark, would it make sense to format the description contents as markdown?
Example
https://jsfiddle.net/AlexMabry/5swkjcob/7/

Fixed by #2406.