Add support for passing in directories to the update command

Is there a way to do a batch update for all pictures in a single folder similar to how a folder of pictures is imported?
This would be useful to be able to update all pictures in a single date folder and add them all to a single album.
This would also be useful to be able to allow elodie to reorganize pictures that have had their EXIF data updated using a third-party application.

You can pass any number of files or folders to elodie.py. If you pass a folder it will update all of the photos in that folder.
./elodie.py update --location="Sunnyvale, CA" /path/to/file1.jpg /path/to/file2.jpg

./elodie.py update --location="Sunnyvale, CA" /path/to/folder

It does not appear to work in Windows.

reopening as a feature request.
Do you mind trying multiple files as arguments? Curious if that works on Windows.

It does. I've used it.
But I'd like to use a separate program to batch edit EXIF data and then us the elodie.py update command and have all of the pictures get reorganized automatically. I plan to do this with my entire picture collection once I know the feature works. It will not be feasible to type in each picture's file location individually.

It will not be feasible to type in each picture's file location individually.

Agree. I'll have a look and see what needs to be done to support directories.

@jalsin82 mind checking if #182 works for you in windows?

<EMAIL_ADDRESS>It seems to work as long as you don’t add the trailing “\” .
From: Jaisen Mathai<EMAIL_ADDRESS>Sent: Saturday, January 7, 2017 8:58 PM
To: jmathai/elodie<EMAIL_ADDRESS>Cc: jalsin82<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [jmathai/elodie] Add support for passing in directories to the update command (#178)
@jalsin82https://github.com/jalsin82 mind checking if #182https://github.com/jmathai/elodie/pull/182 works for you in windows?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/jmathai/elodie/issues/178#issuecomment-271125883, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXsjp17jv4fa1niPeBufECLTzh5gV-YYks5rQFDJgaJpZM4LZt3n.

Merged.


add localStorage support

Add localStorage as an alternative to cookies to enable scenarios such as cordova support:

Add _.localStorage which shares the same 'api' as _.cookie
Add storage option which accepts 'localStorage' option
Replace direct reference to _.cookie to use the current storage.
See #24 for more informations

Awesome, thanks so much for doing this. The code looks very much like what I was hoping for - a simple drop-in using the same API for cookies and localStorage. We're going to do a little cleanup over here before releasing, mainly hardening the error-handling:

add unit tests for alternative storage
undo changes to minified snippets, since the snippet code hasn't changed (maybe a closure compiler version difference?)
(optional?) fallback to cookies if localStorage fails/doesn't exist
exception-handling for storage failure cases (so it doesn't blow up anyone's app on older browsers etc)

I wouldn't worry about the exception-handling/fallback stuff, but if you want to add the first two (esp. unit tests) that would be helpful in expediting this change.

I fixed my commit to remove unwanted changes. In addition I added a check to ensure that localStorage is actually available and fallback to cookie if not.
Regarding unit test I seems that current MixpanelCookie class is not tested independently of mixpanel lib implementation. I would gladly help but I must say It is not easy to jump in :)

Thanks, no worries about the tests, we'll take care of it. Probably won't be able to get to this before next week, thanks for your patience!

Hi, just wanted to check in and let you know I haven't forgotten about this. We have a private version of this branch with unit tests and some extra fixes almost ready to go. With fundamental changes like this we like to run the dev version for a while on mixpanel.com before releasing publicly, so it won't land on master right away, but rest assured it's on the way!

Great news :) Thanks

Hi @sandorfr, thanks again for the patch, which has been released in v2.5.0. As you can see in the git history (https://github.com/mixpanel/mixpanel-js/compare/7be2439635a0fbb36ec2db8e9264781828d46928...5ef1be42b40eda9dd2ab5ffb4ca84702583d8adf), a lot's been added on top of your initial commits - mainly centered around testing, dealing with exception conditions we've seen while running this code on mixpanel.com (e.g., browser extensions preventing localStorage access), and updating naming conventions.
You'll want to note that your config option is now called persistence instead of storage, but otherwise everything's compatible with your version.

Awesome, I'm going to update my blog post and integrate this in my app very soon.


xcaddy build --with github.com/caddyserver/forwardproxy failed with [FATAL] exit status 1

Is bug reproducible with latest forwardproxy build?
yes

What are you trying to do?
build as documented - should I have something to do before using the build command? maybe.

xcaddy build --with github.com/caddyserver/forwardproxy

What did you expect to see?
status 0 after build

What did you see instead (give full error messages and/or log)?
xcaddy build --with github.com/caddyserver/forwardproxy
2024/06/11 14:31:31 [INFO] absolute output file path: /root/caddy
2024/06/11 14:31:31 [INFO] Temporary folder: /tmp/buildenv_2024-06-11-1431.2867752398
2024/06/11 14:31:31 [INFO] Writing main module: /tmp/buildenv_2024-06-11-1431.2867752398/main.go
package main

import (
caddycmd "github.com/caddyserver/caddy/v2/cmd"
    // plug in Caddy modules here
    _ "github.com/caddyserver/caddy/v2/modules/standard"
    _ "github.com/caddyserver/forwardproxy"

)
func main() {
caddycmd.Main()
}
2024/06/11 14:31:31 [INFO] Initializing Go module
2024/06/11 14:31:31 [INFO] exec (timeout=0s): /usr/bin/go mod init caddy
go: creating new go.mod: module caddy
go: to add module requirements and sums:
go mod tidy
2024/06/11 14:31:31 [INFO] Pinning versions
2024/06/11 14:31:31 [INFO] exec (timeout=0s): /usr/bin/go get -d -v github.com/caddyserver/caddy/v2
github.com/caddyserver/caddy/v2 imports
log/slog: package log/slog is not in GOROOT (/usr/lib/go-1.18/src/log/slog)
github.com/caddyserver/caddy/v2 imports
github.com/quic-go/quic-go imports
github.com/quic-go/quic-go/internal/wire imports
slices: package slices is not in GOROOT (/usr/lib/go-1.18/src/slices)
2024/06/11 14:31:33 [FATAL] exit status 1

Go 1.18 is not supported, it is quite old. Please upgrade to 1.22.

found that there is no prerequsites checker and that apt-install go installs a go version
but maybe not the right one.
there is no newer go available with apt-get install go
go 1.18 is from 2022. thats very new for my Linux  and me, too. some say that a child from 2022 is quite old, some may say that the children is to young for the school.
I have no idea to upgrade go.
case can be closed
thx for the information


LLVM ERROR: Could not acquire a cryptographic context: The specified procedure could not be found.  (0x7F)

When decompiling my code, I found the following error:
LLVM ERROR: Could not acquire a cryptographic context: The specified procedure could not be found.  (0x7F)
Below are some parts of the messages:
-> running SelfAssignOptimizer ( 1148.68s )
Warning: out of memory; trying to recover
-> running VarDefForLoopOptimizer ( 1149.69s )
-> running VarDefStmtOptimizer ( 1150.00s )
Warning: out of memory; trying to recover
-> running EmptyStmtOptimizer ( 1152.41s )
-> running GotoStmtOptimizer ( 1152.69s )
-> running SimplifyArithmExprOptimizer ( 1152.92s )
-> running DeadCodeOptimizer ( 1153.97s )
-> running DerefToArrayIndexOptimizer ( 1154.22s )
Warning: out of memory; trying to recover
-> running IfToSwitchOptimizer ( 1155.30s )
-> running CCastOptimizer ( 1155.43s )
Warning: out of memory; trying to recover
-> running CArrayArgOptimizer ( 1158.86s )
Running phase: variable renaming [readable] ( 1159.13s )
Running phase: converting constants to symbolic names ( 1170.18s )
LLVM ERROR: Could not acquire a cryptographic context: The specified procedure could not be found.  (0x7F)
Error: Decompilation of file d:\tmp\autodraw.exe.bc failed

This is the python command I used:
python c:\retdec\bin\retdec-decompiler.py d:\tmp\autodraw.exe

Please help to figure out what I did wromg

That's usually an indication that you've run out of memory. Did you try the 64-bit version?
Still, there are several Autodraws but if it's the one designed to use with Autodesk Inventor, you're talking about a 166mb file, which is going to require an obnoxious amount of memory no matter how you slice it. You should probably examine the file beforehand and determine a good small range of functions to decompile, instead of trying to do the whole program at once.

Hi. As @silverbacknet wrote above, you do not have enough memory, which is supported by the following lines in the output:
Warning: out of memory; trying to recover
...
Warning: out of memory; trying to recover

The Could not acquire a cryptographic context error is caused by insufficient memory and has already been discussed in #73 and #387, so see these two issues for more details. My suggestion is to use selective decompilation to decompile only the given functions:
python c:\retdec\bin\retdec-decompiler.py --select-functions MyFunction1,MyFunction2 --select-decode-only d:\tmp\autodraw.exe

or the given address ranges:
python c:\retdec\bin\retdec-decompiler.py --select-ranges 0x40000000-0x40005000 --select-decode-only d:\tmp\autodraw.exe

(These are just examples, you will need to adjust the names of the functions and ranges by yourself.)

Thank you for your prompt reply and suggestion, I will download the 64 bit retdec and try to decompile certain range.
The autodraw is the program that I developed my self and I lost the source code due to hard disk crash.


Allow displaying warning even on successful builds

It would be very nice to have the compiler warnings even on successful builds.
Currently the only way to get these warnings is to have a failing build (they are present among the error messages). elm-make will print them even on successful build so I guess the loader is just not forwarding the compiler output (showing only the warning and not all the output would require parsing the output to find the warning section). I don't know much about how webpack works, do you think this is something doable?
I'll try to take a look at the loader's code to see if I can hack something into a PR.

Probably this has to be addressed in rtfeldman/node-elm-compiler, there's an issue for that on the repo. You are very welcome to leave feedback there.

Compiler warnings are being removed in 0.19 and it's not certain they'll be re-added, so it's probably best to hold off. 😄

Thanks for the reply, that's a good point!

I'm assuming this one can be closed, because of #142 🤔

@Skinney thanks for taking over! :tada: :raised_hands:


Feature/search results covers

Description
Fixes cell display
Trello card: https://trello.com/c/bq6LJ977/103-endpoints-forsearch
Type of change

[x] Bug fix (non-breaking change which fixes an issue)

Change Status

[x] Complete, tested, ready to review and merge

How Has This Been Tested?

[x] Manually tested with simulator (iPhone 11 Pro Max)

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[x] There are no merge conflicts

 Endpoints for Search


SRIOV tests fail because of a breaking change in the test framework

Because of this commit: https://github.com/LIS/LISAv2/commit/b00d5b54d202bcc6904cc41de7fbc745780a6c67#diff-fd8a417b18cc4776c967999f5ef81c74
the state file of the linux test cases is /home/lisa/state.txt and not /home/lisa/TestState.log, thus breaking all the automation relying on that.
TC needed to be fixed:
Functional_NICS_SRIOV_IFUP
@iamshital do you have other TCs affected?

@iamshital @juhlee-microsoft we need to define and document an exact workflow of test case (error) logging and status via text files, which each test should respect.
There is no documentation on this matter, so we cannot enforce anything for the test case developer and maintainer.

@ader1990 , Yes. I've noticed the breaking change and some of the tests are broke. I'm fixing them one by one. (5/6 tests affected)

SRIOV tests are fixed, closing this issue.


update cookiecutter

Pull Request Checklist:

[ ] This PR addresses an already opened issue (for bug fixes / features)

This PR fixes #xyz

[ ] (If applicable) Documentation has been added / updated (for bug fixes / features).
[ ] (If applicable) Tests have been added.
[ ] CHANGELOG.rst has been updated (with summary of main changes).

[ ] Link to issue (:issue:number) and pull request (:pull:number) has been added.

What kind of change does this PR introduce?

Updates the cookiecutter template
Synchronizes some dependencies

Does this PR introduce a breaking change?
No.

coverage: 81.279%. remained the same
when pulling 47fc1a69da47f7d3d0dd1791d43dd8e73ae8be9b on cookeicutter-update
into 4aeba1ae4f08d7ef916bf1c86049123da77efe93 on master.


Support Nginx

Problem this feature will solve
Nginx server is very popular and Gitpod has it outof the box, however this starter does not support it out of the box.
Background

Proposed Solution
Add Nginx into the system which includes:

Aliases to start and stop it
mutitail and tail log monitor option in .starter.ini`
debug on and debug off implmentation
default server and start server functionality
expose port in .gitpod.yml

Constraints and Assumptions

support Nginx as a default server type

implement into starter.ini and bash/helpers.sh
add an alias to stop and start it
wire Nginx into snippets/server-functions
wire Nginx into snippets/browser-functions

Alternatives or Workarounds
Use it by hand which would require editing `gitpod.yaml' on every new workspace creation, klunky
Additional context
Test it with all features like phpmyadmin

Requires PHP-FPM which will slow down the  workspace image build and add even more complexity to the conditional setup.

A few apis were added and I will finish with that but until PHP-FPM is implmented, php files will download instead of be displayed when served by nginx

I got  nginx working with php-fpm74 and will implement it in this project.
Check it out here

Implmented


[Feat]: Auto-clear localStorage and sessionStorage

Description
Are there any plans to support erasing records from localStorage (and sessionStorage)?
Thank you for your work on this plugin.
Proposed solution
This would involve modifying the cookie helper functions to extract keys from the Storage instances, filter matching cookies, and remove them.
The internal implementation wouldn't be too complicated to add (see example below). I just don't know how this should be configurable for users integrating this plugin.

Option 1: `[category].autoClear.clear*Storage`
CookieConsent.run({
	categories: {
		analytics: {
			autoClear: {
				clearLocalStorage: true,
				clearSessionStorage: true,
				cookies: [
					{
						name: '_uetsid'
					}
				]
			}
		}
	}
})

Option 2: `[category].autoClear.cookies[].clear*Storage`
CookieConsent.run({
	categories: {
		analytics: {
			autoClear: {
				cookies: [
					{
						name: '_uetsid',
						localStorage: true,
						sessionStorage: true
					}
				]
			}
		}
	}
})

Option 3: `[category].autoClear.*Storage[]`
CookieConsent.run({
	categories: {
		analytics: {
			autoClear: {
				cookies: [
					{
						name: '_uetsid'
					}
				],
				localStorage: [
					{
						name: '_uetsid'
					}
				],
				sessionStorage: [
					{
						name: '_uetsid'
					}
				]
			}
		}
	}
})

The following is a stripped down working example I've tested on a client project (that does not implement the aformentioned configuration variants):
import { isLocalStorageAvailable, isSessionStorageAvailable } from '../utils/environment.js';
import * as CookieConsent from 'vanilla-cookieconsent';

CookieConsent.run({
	// ...
	onConsent: () => {
		toggleCategoryAnalytics();
	},
	onChange: ({ changedCategories }) => {
		if (changedCategories.includes('analytics')) {
			toggleCategoryAnalytics();
		}
	},
});

function toggleCategoryAnalytics() {
	const isAccepted = CookieConsent?.acceptedCategory('analytics');

	window.dataLayer?.push([ 'consent', 'update', {
		'analytics_storage': (isAccepted ? 'granted' : 'denied'),
	} ]);

	if (!isAccepted) {
		const cookies = CookieConsent.getConfig('categories')?.analytics?.autoClear?.cookies;
		if (cookies.length) {
			eraseStorageItems(cookies);
		}
	}
}

function eraseStorageItems(cookies) {
	let localStorageKeys;
	let sessionStorageKeys;

	for (const { name: cookieName } of cookies) {
		if (isLocalStorageAvailable()) {
			localStorageKeys ??= getAllStorageKeys(window.localStorage);

			const foundCookies = findMatchingCookies(localStorageKeys, cookieName);
			for (const foundCookie of foundCookies) {
				window.localStorage.removeItem(foundCookie);
			}
		}

		if (isSessionStorageAvailable()) {
			sessionStorageKeys ??= getAllStorageKeys(window.sessionStorage);

			const foundCookies = findMatchingCookies(sessionStorageKeys, cookieName);
			for (const foundCookie of foundCookies) {
				window.sessionStorage.removeItem(foundCookie);
			}
		}
	}
}

/**
 * This function is copied from `findMatchingCookies()` from
 * {@link https://github.com/orestbida/cookieconsent/blob/v3.0.0-rc.17/src/utils/cookies.js vanilla-cookieconsent}.
 *
 * @param {string[]} allCookies
 * @param {string}   cookieName
 */
function findMatchingCookies(allCookies, cookieName) {
	// ...
}

/**
 * Returns array with all the cookie names.
 *
 * This function is based on `getAllCookies()` from
 * {@link https://github.com/orestbida/cookieconsent/blob/v3.0.0-rc.17/src/utils/cookies.js vanilla-cookieconsent}.
 *
 * @param   {Storage} storage
 * @param   {?RegExp} [regex]
 * @returns {string[]}
 */
function getAllStorageKeys(storage, regex) {
	/**
	 * @type {string[]}
	 */
	const cookieNames = [];

	/**
	 * Save only the item names
	 */
	for (const name of Object.keys(storage)) {
		if (regex) {
			try {
				regex.test(name) && cookieNames.push(name);
			// eslint-disable-next-line no-empty
			} catch (e) {}
		} else {
			cookieNames.push(name);
		}
	}

	return cookieNames;
}

Additional details
No response

I think adding an option to delete items in localstorage is useful, but I don't agree on session storage ones, since they are deleted at the end of the browsing session.


How to run API tests in a BC container?

Issue
I raised the question a couple of days ago on yammer. And Nikola Kukrika noted that this can only be done in a database that has no users and is access using Windows authentication. This is because, as he writes: "If there is a different authentication or an user in a database, the authorization must be implemented, and we have not done this one."
So, I tried to get this done with a BC container. But apparently New-BcContainer always inserts a user in the database.
@freddydk, you suggested to at to following parameter to the New-BcContainer call:
-myscripts @( @{ "SetupNavUsers.ps1" = "Write-Host 'Skipping user creation'" } )

As reported on yammer, this indeed prevents a user to be added, but also throws an error when in VS Code I try to download symbols from this database:
'The system cannot contact a domain controller to service the authentication request. Please try again later.'

   at System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean throwOnError, SecurityStatusPal& statusCode)
   at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob)
   at System.Net.Http.AuthenticationHelper.SendWithNtAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean isProxyAuth, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Dynamics.Nav.Deployment.Telemetry.TelemetryHttpClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.Deployment\Telemetry\TelemetryHttpClientHandler.cs:line 61
   at Microsoft.Dynamics.Nav.Deployment.Http.NavHttpClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.Deployment\Http\NavHttpClientHandler.cs:line 35
   at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
   at Microsoft.Dynamics.Nav.Deployment.ApiClients.ServerInfoApiClient.GetServerInfo() in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.Deployment\ApiClients\ServerInfoApiClient.cs:line 46
   at Microsoft.Dynamics.Nav.Deployment.ApiClients.PackagesApiClient.SendRequest(IHttpClient client, SymbolReferenceSpecification reference) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.Deployment\ApiClients\PackagesApiClient.cs:line 130
   at Microsoft.Dynamics.Nav.Deployment.ApiClients.PackagesApiClient.DownloadPackage(IHttpClient client, SymbolReferenceSpecification specification, String directory, Boolean isSecondLevelDependency) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.Deployment\ApiClients\PackagesApiClient.cs:line 164
   at Microsoft.Dynamics.Nav.Deployment.ApiClients.PackagesApiClient.DownloadPackages(ImmutableArray`1 references, String targetDir) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.Deployment\ApiClients\PackagesApiClient.cs:line 56
   at Microsoft.Dynamics.Nav.Deployment.ReferenceDownloader.NavDevServerPackageDownloader.DownloadPackages(ImmutableArray`1 packages, String targetDirectory) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.Deployment\ReferenceDownloader\NavDevServerPackageDownloader.cs:line 32
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.DownloadSymbolsRequestHandler.DownloadFiles(DownloadSymbolsRequest request, String cacheDirectory, ImmutableArray`1 referencesToDownload) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\DownloadSymbolsRequestHandler.cs:line 124
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.DownloadSymbolsRequestHandler.ProcessRequestAsync(DownloadSymbolsRequest request, Int32 requestId, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\DownloadSymbolsRequestHandler.cs:line 93
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.NavServerRequestHandler`2.HandleAsync(T request, Int32 requestId, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\NavServerRequestHandler.cs:line 40
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.HandleAsync(JToken requestContents, Int32 requestId, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\MessageProtocol\RequestHandlerBase.cs:line 65
   at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.Process(Message message) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 80```

Now what do I want to achieve exactly?
I want to run tests that check my own API page APIV1LookupValues.Page.al.. This will be part of the 2nd edition of my book for which the code can be found in the Chapter 13 folder of the accompanying GitHub repo (branch BC18, not main). This folder contains both the app en test code of the LookupValue extension and should be able to be deployed. The API tests are stored in codeunit: APIV1LookupValuesE2E.Codeunit.al.
Hope this makes sense enough.

What is the full command you use for creating the container?

# set accept_eula to $true to accept the eula found here: https://go.microsoft.comfwlink/?linkid=861843
$accept_eula = $true

# container name and version
$containerName = 'd365bc18WA'

$artifactUrl = Get-BCArtifactUrl -type OnPrem -country "w1" -version "18"

$licenseFile = "https://www.dropbox.com/...."

New-BCContainer -accept_eula:$accept_eula `
                -containerName $containerName `
                -artifactUrl $artifactUrl `
                -licenseFile $licenseFile `
                -auth Windows `
                -credential $credential `
                -memoryLimit:10GB `
                -updateHost `
                -shortcuts StartMenu `
                -isolation process `
                -includeTestToolkit `
                -includeTestLibrariesOnly `
                -myscripts @( @{ "SetupNavUsers.ps1" = "Write-Host 'Skipping user creation'" } )

Yeah, so you get a container without users.
But obviously that cannot be used from VS Code - but do you need VS Code to run the API tests?
Couldn't you publish your app and run the tests from PowerShell?

Nope, don't need VSCode to run the tests, but need VSCode to develop and deploy the extension.
Hadn't only slightly thought of publishing the app through PowerShell, but thought it would throw the same error. But reading "between the lines" of your last question I reckon that should be possible. Let me try that one and get to you.

Publish-BcContainerApp without -useDevEndpoint will not need the credentials as it doesn't actually connect to BC

In the meantime, I will check whether I can launch the test runner from PowerShell without creating a user.

Run-TestsInBcContainer will create a Windows User and if I disable that - it crashes.
It seems like the client Service endpoint does not support a database without users.
You should be able to login to the WebClient and run the tests though - not sure whether we would ever be able to support this through the client services endpoint (i.e. PowerShell)

I stand corrected.
With a small fix to Run-TestsInBcContainer, it actually does work.
This script:
$licenseFile = $LicenseFileSecret.SecretValue | Get-PlainText
if (-not $windowsCredential) {
    $windowsCredential = get-credential
}
$auth = "Windows"
$artifactUrl = Get-BCArtifactUrl -country us -type OnPrem -storageAccount bcpublicpreview
New-BcContainer `
    -accept_eula `
    -artifactUrl $artifactUrl `
    -auth $auth `
    -Credential $windowsCredential `
    -licenseFile $licenseFile `
    -myscripts @( @{ "SetupNavUsers.ps1" = "Write-Host 'Skipping user creation'" } )

Import-TestToolkitToBcContainer -includeTestFrameworkOnly
Publish-BcContainerApp -skipVerification -appFile "C:\Users\freddyk\Dropbox\Shared\BingMaps\apps.zip" -sync -install
Publish-BcContainerApp -skipVerification -appFile "C:\Users\freddyk\Dropbox\Shared\BingMaps\testapps.zip" -sync -install
Run-TestsInBcContainer -extensionId '8d4a154b-8c4c-482a-ac1b-a09ee4ed7834' -detailed

Outputs:
  Codeunit 70131 BingMaps Test Success (8.243 seconds)
    Testfunction RoleCenterNotification Success (0.183 seconds)
    Testfunction ServiceConnection Success (0.104 seconds)
    Testfunction SetupBingMaps Success (0.166 seconds)
    Testfunction CreateCustomer Success (0.017 seconds)
    Testfunction RenameCustomer Success (0.187 seconds)
    Testfunction DeleteCustomer Success (0 seconds)
    Testfunction BingMapsOnCustomerCard Success (4.643 seconds)
    Testfunction BingMapsOnCustomerList Success (2.33 seconds)
    Testfunction BingMapsShowAllOnCustomerCard Success (0.406 seconds)
    Testfunction BingMapsShowAllOnCustomerList Success (0.207 seconds)
  Codeunit 70132 BingMaps Test2 Success (5.223 seconds)
    Testfunction RoleCenterNotification Success (0.2 seconds)
    Testfunction ServiceConnection Success (0.083 seconds)
    Testfunction SetupBingMaps Success (0.18 seconds)
    Testfunction CreateCustomer Success (0.01 seconds)
    Testfunction RenameCustomer Success (0.123 seconds)
    Testfunction DeleteCustomer Success (0.017 seconds)
    Testfunction BingMapsOnCustomerCard Success (4.61 seconds)

at the end.

Great, when will it be available?

in ~3 hours in a preview bccontainerhelper

Buildmachine was in limbo stage:-( - takes some more time..

The latest preview has this change.

I finally did get the API tests working on a local installation with some help from Onat Buyukakkus. Yeahhh.
Now I am going to check it on docker.

Halted by #2083 (wanted to run that first before I would install the preview)

Halted by #2083 (wanted to run that first before I would install the preview)

OK, that one is tackled.
Meanwhile, before using the preview with the fix I tested the following:

Created BC18 container

with Windows authentication
opening web client and logging in
deploying app and tests
add tests to AL Test Tool
set test runner to 130451 - Test Runner - Isol. Disabled
removed all user related records using MSSSMS
ran tests successfully

Created BC18 container

with Windows authentication
without user by adding -myscripts @( @{ "SetupNavUsers.ps1" = "Write-Host 'Skipping user creation'" } ) to New-BCContainer
can not login into web client

I tried (2) - works fine if I specify my host computers windows credentials as -credential.
Just to be sure - in your 2. attempt - did you specify your host windows credentials as -credential?

Just to be sure - in your 2. attempt - did you specify your host windows credentials as -credential?

Nope and thought I had removed the -credential part. Will retest with (and without).

The container needs to have the Windows User (same as on host) created - else Windows Auth. won't work

I tried (2) - works fine if I specify my host computers windows credentials as -credential.

Tested and indeed works like a charm with BcContainerHelper 2.0.15 and running tests from AL Test Tool in web client.
Next test to trigger the tests with Run-TestsInBcContainer.

for that you need the latest 2.0.16 preview

Some time ago that I installed the preview. Thought it would installed using the -AllowPrerelease parameter on the Install-Module.
So, I run:
Install-Module -Name bccontainerhelper -force -AllowPrerelease

But do get the error:
Install-Module : A parameter cannot be found that matches parameter name 'AllowPrerelease'.

Something has changed on this?

Apparently my PowerShellGet is outdated.

Ran
# container name and version
$containerName = 'd365bc18WA'

# set credentials for using with Windows
$login = 'yyy'
$password = 'xxxx'
$securepassword = (ConvertTo-SecureString -String $password -AsPlainText -Force)
$credential = New-Object System.Management.Automation.PSCredential($login, $securepassword)

Run-TestsInBcContainer -containerName $containerName `
                       -credential $credential `
                       -extensionId 'e26890f8-fafe-49c6-8951-2c1457921f9b' `
                       -detailed

with positive result:

So, tested and ok.
Thanx for the help and fix, @freddydk.

Awesome, thanks

I have an additional query related to this issue: as these API tests need to be run with test isolation disabled - using  the test runner 130451 - Test Runner - Isol. Disabled -, how can I get this done without having to set the test manually on the AL Test Tool?
For this I have opened a new issue: #2084.


[BUG] - Only Shows Temp and Door on Refrigerator

I have a new LG Refrigerator Model LMXS30796S. It has all of the fresh air filter and ice plus, smart saving mode, eco friends, water filter. But I do not see any of that show up inside HA.
On top of this the door never reports open in HA. It is always closed even when I leave door open for a few minutes.
Expected behavior
Curious what I need to do in order to get the other objects to populate.
Screenshots

Environment details:
HA 0.112.4. Ubuntu 20.04 with Docker on a VM.

I see it all now so nevermind. Its in the attributes for object itself.


tty-share: 2.0.0 -> 2.2.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/tty-share/versions.
meta.description for tty-share is: "Share terminal via browser for remote work or shared sessions"
meta.homepage for tty-share is: "https://tty-share.com"
meta.changelog for tty-share is: ""
Updates performed

Version update

To inspect upstream changes

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 2.2.0 with grep in /nix/store/6glrdlwx8gzbjs6m68xfpw3a31hf6gdx-tty-share-2.2.0

directory tree listing: https://gist.github.com/181707e486876d88b98854cde37cbd39

du listing: https://gist.github.com/24f536420562a8c25e6039d15897bb85

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
tty-share

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/6glrdlwx8gzbjs6m68xfpw3a31hf6gdx-tty-share-2.2.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A tty-share https://github.com/r-ryantm/nixpkgs/archive/3269a5d684c317f21bca8020ff4995725617b06c.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/6glrdlwx8gzbjs6m68xfpw3a31hf6gdx-tty-share-2.2.0
ls -la /nix/store/6glrdlwx8gzbjs6m68xfpw3a31hf6gdx-tty-share-2.2.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

tty-share

Maintainer pings
cc @andys8 for testing.

I tested this-

Presence of env vars as they should be in 2.2.0

Availability of scrollback, as it should be in 2.1.0

Approved
@ryantm- I had been holding off testing this for 2 days since it was multiple steps:

Find the commit id,

Shallow clone

Build

I accidentally stumbled upon instructions to test and realized it's a copy-paste command + 10 secs to download.
Might I suggest putting this information somewhere more prominently?

@asdf8dfafjk yeah the PR text could probably be a lot better arranged. Feel free to offer concrete suggestions over at https://github.com/ryantm/nixpkgs-update


Missing My Stats in the SG menu

Description
The menu item called My Stats disappeared for me from the menu.
Steps to Reproduce

Click on the arrow beside the level progres bar

Expected Behavior
It should be there, I didn't turn it off anyhow.
Console Errors
Error in event handler for (unknown): TypeError: Cannot read property 'msg' of undefined
Screenshots

System (please complete the following information):

ESGST: 8.1.6 (Dev.3)
Browser: Chrome 70.0.3538.110

Additional Context
Can I enable it back or is it a bug?

Can you check if for some reason it's not being added to another dropdown? That error doesn't help without the line number.
You could try resetting the links of that dropdown to get it back.

I had that too, resetting helped after fix #1062 was in.
But something in the code or the new holiday button on SG causes this issue.

But something in the code or the new holiday button on SG causes this issue.

It was both, because Custom Header/Footer Links was not configured to deal with additional buttons in the header (it was using indexes like 0, 1, 2 etc instead of specifications like 'Giveaways', 'Discussions' etc). So when the new holiday button was added, that messed things up. But I'm concerned because gizellos is reporting this now, which probably means that the bug is still not fixed in the latest version.

By resetting the account dropdown, the other dropdowns are not affected.
They are exported with your settings, but importing them back after resetting would probably just bring the bug back. If you want, you can export your settings and show me what the chfl_account_sg object looks like.

I reseted the menu and it is OK now, thanks.

Ok, closing then.


Missing lifecycle Terraform meta-argument definition

Is there an existing issue for this?

[x] I have searched the existing issues

Description
Description
I encountered an issue while trying to add a lifecycle Terraform meta-argument to the AKS module. The intention was to ignore changes to the microsoft_defender attribute. However, when I included the following block in my configuration:
lifecycle {
  ignore_changes = [
    microsoft_defender
  ]
}

I've received the following error message during the plan/apply phase:
Error: Reserved block type name in module block

  on ../../main.tf line 118, in module "aks":
  118:   lifecycle {

The block type name "lifecycle" is reserved for use by Terraform in a future version.

Steps to Reproduce

Create a Terraform configuration using the AKS module from the Azure provider.
Add the lifecycle block with ignore_changes.
Run terraform plan or terraform apply.

Expected Behavior
The expected behavior is that Terraform should allow the use of the lifecycle meta-argument within the module without throwing an error, enabling me to ignore changes to the specified attribute.
Actual Behavior
The actual behavior is that Terraform throws an error indicating that the lifecycle block type name is reserved for future use, preventing me from applying my configuration.
Environment
Terraform version: 1.91
AKS module version: 9.20
Azure provider version: 3.117
New or Affected Resource(s)/Data Source(s)
azurerm_kubernetes_cluster
Potential Terraform Configuration

References
No response

Hello, I am not understanding what you tried to do.
We do already use a lifecycle block in the module here:
https://github.com/Azure/terraform-azurerm-aks/blob/9087737408b0dfbe1b7e6a1fc5863ec160691ccd/main.tf#L562-L573
Could you be more specific about what you tried to implement ? Can you please provide a code example ? thanks

Thank you for your response. Let me clarify my specific use case:
I'm trying to ignore changes to the microsoft_defender block in the AKS cluster configuration. Specifically, whenever I make changes to the cluster, Terraform proposes changing this configuration:
  # module.aks.module.aks.azurerm_kubernetes_cluster.main will be updated in-place
  ~ resource "azurerm_kubernetes_cluster" "main" {
        id                                  = "/subscriptions/id/resourceGroups/my-rg-int/providers/Microsoft.ContainerService/managedClusters/my-aks-int"
        name                                = "my-aks-int"
        tags                                = {
            "Environment" = "Integration"
            "Terraform"   = "true"
        }
        # (41 unchanged attributes hidden)

      - microsoft_defender {
          - log_analytics_workspace_id = "/subscriptions/id/resourcegroups/DefaultResourceGroup-WEU/providers/Microsoft.OperationalInsights/workspaces/id" -> null
        }

        # (11 unchanged blocks hidden)
    }

I tried adding a lifecycle block in my root module configuration:
module "aks" {
source = "Azure/aks/azurerm"
version = "9.2.0"
# ... other configuration ...
lifecycle {
    ignore_changes = [
      microsoft_defender
    ]
  }

However, this results in the error:
╷
│ Error: Reserved block type name in module block
│
│   on ../../main.tf line 125, in module "aks":
│  125:   lifecycle {
│
│ The block type name "lifecycle" is reserved for use by Terraform in a future version.

Could you please advise on the correct way to ignore changes to the microsoft_defender configuration within the AKS module? Should this be handled within the module itself rather than in the root configuration?

in Terraform you cannot pass a lifecycle block to a module.
This specific microsoft_defender issue you mention was already discussed in https://github.com/Azure/terraform-azurerm-aks/issues/495

@0xtvignoli  You might find useful this example of the mapotf tool that should solve your use case:
https://github.com/Azure/mapotf/tree/main/example/customize_aks_ignore_changes


Fix CircleCI configuration

Close #30

Coverage decreased (-2.0%) to 92.072% when pulling 3232402e23c0643a4f0698c834029fd12f819956 on fix-circleci into 343ee0d38d2632a437ed055df58524c1b12a130d on main.


fix company logo

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
fix company logo
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:

/lgtm
/approve
I think this PR just replaced the png files, the layout issue will be fixed by #327.
Thanks @whitewindmills


feat: mall max increased

Alternative to #2393.
Mall max is now 999,999,999,999. Item limits are the same as they were.
I tried to be as minimal as possible. Some changes have occurred due to the blending of items / meat...
There is more work to be done: StoreManageFrame doesn't work perfectly (although does work better). The maximizer max price needs more work to be a long, and various preferences (e.g. autoBuyPriceLimit) should also be longs.

yes, I wanted a quick fix to the division by zero / mall parsing errors people are getting, and then we can do a proper code base run through in subsequent PRs


error

need help

How did you get this error?

If you need future support welcome to join our discord server: https://discord.gg/wRCgB7vBQv

i don't i do like this video and i am getting this error https://www.youtube.com/watch?v=5Y5GPO95uxE&t=66s

Can you provide more information? like exception, current playing track.

log file

i can't see any problem with these logs can you provide the track url that are your playing on

make your bot are not using default avatar @aqajjif


1017: Upgrade xcode 15

Short description
Since we won't be able to publish ios apps after 29th of April, with XCode 14, we have to upgrade to xcode 15
Proposed changes

upgrade to xcode15

Resolved issues

Fixes: #1017

now the pr is ready @steffenkleinle
https://app.circleci.com/pipelines/github/digitalfabrik/lunes-app/3503/workflows/299f3979-2b1d-44e5-9ac3-afc95ccfe4f7
Ios builds also work now


txn: fix some cases and add check exists logic

fix some case logic
cherry-pick op check not exist processing logic

@coocood PTAL

LGTM


Gunther disappears?

https://www.reddit.com/r/StardewValley/comments/603sk9/gunther_bug_multiplayer_mod/

If this happens again I'll look into it.


Add whitelisting parameter to CLI

Is your feature request related to a problem? Please describe.
Currently, it's only possible to ignore files with a pattern when using the CLI. For CI stuff it would be nice to have a whitelisting parameter in the CLI
Describe the solution you'd like
Add a whitelisting parameter to the CLI.
Describe alternatives you've considered
Sure, the ignore pattern can be used to get something like the requestet feature. But it's just harder then it needs to be.
P.S. Of course, I don't expect other people to do this work for me. It's more a note to myself, to keep track.

Implemented in https://github.com/ionide/FSharp.Analyzers.SDK/pull/196


Deal with the first token being "trailing whitespace"

If the token is considered "trailing whitespace" and needs to be deleted, it tries to remove the item from the linked list. However, that doesn't work on the first and last entries. There already is a clause for the last item, just not the first item.
Currently a draft since this is missing tests.
Fixes #81

I'll note I'm very limited on time, so anyone taking willing to take this over the finish line by writing tests is welcome to.

The PR with tests was merged.


Add an endpoint to calculate Payback Period.

Note

Payback period, which is used most often in capital budgeting, is the period of time required to reach the break-even point (the point at which positive cash flows and negative cash flows equal each other, resulting in zero) of an investment based on cash flow.

Payback period is calculated as

Create a function in ./helpers/functions.py file for the calculation.

Map it with an endpoint GET /payback_period in the main.py file with properly.

can i be assigned this issue? and how long could i spend on it?

May I work on this issue?

Go ahead @NiranjanHonnungar

@Lakshya-30 You may look into some other issue, or can even raise an issue to add a new endpoint.

how do i know what parameters to assume for the function?

My pull request access is being denied @ighoshsubho

I have initiated a pull request, can i now be assigned a different task


Support Press and Hold, and Releasing a key.

resolves #2
We (I) need to find a way to test this change without running it manually

Seems to work


Non ending update indicator

However the package is indeed updated after restarting Atom.

This would be an Atom or more likely apm bug. Please forward this issue over to https://github.com/atom/apm
That being said, I know Atom Beautify does have more dependencies than most Atom packages, and this is why some users do experience what you described in this issue. This is more obvious on slower Internet connections.
The issue https://github.com/Glavin001/atom-beautify/issues/320 is related to this and will resolve this issue: limiting the dependencies installed by apm to a minimum and installing required dependencies for language-specific beautification on-demand.


Zero length files

This pull request fixes a couple of issues

When taking a screenshot if the driver doesn't support screen capture at the moment the mink object is returned.  This causes an invalid file to be stored and a broken image in the report.
The handler uses a variable screenShotPrefix which is never defined.  This also fixes that.

Thanks !


hapi-route-auto-reg & bell

Does anyone has any pointers on how to set this up?
Thanks

Apparently once you register hapi-route-auto-reg plugin you can't add anything to server.route({}); anymore. Any ideas are more than welcome :)
server.register([
    {
      register: require('bell')
    },
    {
      register: require("hapi-route-auto-reg"),
      options: {
        directory:  __dirname + '/routes'
      }
    },
    {
      register: require('hapi-bookshelf-models'),
      options: {
        knex: require('./knexfile')[environment],
        plugins: ['registry'],
        models:  __dirname + '/models'
      }
    }
  ], function (err) {
    if (err) throw err;

    server.auth.strategy('google', 'bell', {
      provider: 'google',
      password: 'password',
      isSecure: false,
      // You'll need to go to https://console.developers.google.com and set up an application to get started
      // Once you create your app, fill out "APIs & auth >> Consent screen" and make sure to set the email field
      // Next, go to "APIs & auth >> Credentials and Create new Client ID
      // Select "web application" and set "AUTHORIZED JAVASCRIPT ORIGINS" and "AUTHORIZED REDIRECT URIS"
      // This will net you the clientId and the clientSecret needed.
      // Also be sure to pass the redirect_uri as well. It must be in the list of "AUTHORIZED REDIRECT URIS"
      clientId: '',
      clientSecret: '',
      providerParams: {
        redirect_uri: server.info.uri + '/auth/callback'
      }
    });

    server.route({
      method: 'GET',
      path: '/hello',
      config: {
        handler: function (request, reply) {
          reply('hello');
        }
      }
    });

    server.route({
      method: '*',
      path: '/auth',
      config: {
        auth: 'google',
        handler: function (request, reply) {
          reply('
' + JSON.stringify(request.auth, null, 4) + '
');
        }
      }
    });
  }
);

I'm not sure why this should be the case, let me check

For anyone that cares about this, I found a way to make it work.
server.register(require('bell'), function (err) {
  if (err) throw err;

  server.auth.strategy('google', 'bell', {
    provider: 'google',
    password: 'password',
    isSecure: false,
    // You'll need to go to https://console.developers.google.com and set up an application to get started
    // Once you create your app, fill out "APIs & auth >> Consent screen" and make sure to set the email field
    // Next, go to "APIs & auth >> Credentials and Create new Client ID
    // Select "web application" and set "AUTHORIZED JAVASCRIPT ORIGINS" and "AUTHORIZED REDIRECT URIS"
    // This will net you the clientId and the clientSecret needed.
    // Also be sure to pass the redirect_uri as well. It must be in the list of "AUTHORIZED REDIRECT URIS"
    clientId: ',
    clientSecret: '',
    providerParams: {
      redirect_uri: server.info.uri + '/auth'
    }
  });
});

server.register([
    {
      register: require("hapi-route-auto-reg"),
      options: {
        directory:  __dirname + '/routes'
      }
    },
    {
      register: require('hapi-bookshelf-models'),
      options: {
        knex: require('./knexfile')[environment],
        plugins: ['registry'],
        models:  __dirname + '/models'
      }
    }
  ], function (err) {
    if (err) throw err;
  }
);

and my directory structure looks like this is...
routes/
    api/
    auth/
        google.js

where google.js is...
module.exports.routes = function(server){
  server.route({
    method: '*',
    path: '/auth',
    config: {
      auth: 'google',
      handler: function (request, reply) {
        reply('
' + JSON.stringify(request.auth, null, 4) + '
');
      }
    }
  });
};

I also opened an issue on Bell repo asking how to set up Bell with multiple plugins. Hope that helps and simplifies server.register() call.

Hmmm... I noticed that when I use method: '*' in auth/google.js route is not working properly.


FP fix: attachment_html_smuggling_atob.yml

Our ilike check was a little too broad, requiring only =, atob, and ; anywhere in a string. This fix now checks to ensure the = and atob are close to one another.
Also adds high trust for good measure.

One miss, and it fires 5 other rules, I think that's ok.


kube-prometheus: bind mount host rootfs into node exporter

Fixes https://github.com/prometheus/node_exporter/issues/474 in the operator
Fixes #569 (by making the mount explicit)

A lightbulb just turned on: we should keep in mind that the mountPropagation field is a beta feature and consider its use when making decisions about taking the operator to 1.0.0.

@squat good point, yes :+1:

A lightbulb just turned on: we should keep in mind that the mountPropagation field is a beta feature and consider its use when making decisions about taking the operator to 1.0.0.

kube-prometheus just happens to be part of this repository but is not versioned along with the Prometheus Operator so I don't think it's relevant. It is relevant however for the whole monitoring stack to be considered stable.

hmm, I believe CI failed, because I rewrote the commit message which in turn changed the commit hash, let me rebundle the jsonnet files.

CI resolved @brancz @squat PTAL


Pane numbering isn't correct

Hi!
I haven't used Tidal and Tidalvim in a while but recently updated to my current configuration (which uses NeoVim as the vim editor) and experienced some funky stuff with the default tmux startup script in the plugin folder.
When I start up the default script I get an error saying that pane 0 doesn't exist.
As a consequence (and fix) I corrected my startup script to target pane 1 and 2 which made everything work. Not sure what cause(s/d) this ? I'm on tmux v.2.9a on MacOS, using tidal v-1.0.13

And here is my corrected version of tidalvim:
#!/bin/bash
set -euf -o pipefail

VIM=${VIM:-"vim"}
TMUX=${TMUX:-"tmux"}

FILE=${FILE:-"$(date +%F).tidal"}
SESSION=${SESSION:-"tidal"}

TIDAL_BOOT_PATH=${TIDAL_BOOT_PATH:-""}
GHCI=${GHCI:-""}

args=${@:-$FILE}

# Check if tmux session "tidal" is running, attach only
# else, create new session, split windows and run processes
$TMUX -2 attach-session -t $SESSION || $TMUX -2 \
  new-session -s $SESSION   \; \
  split-window -v -t $SESSION   \; \
  send-keys -t 1 "$VIM $args" C-m   \; \
  send-keys -t 2 "TIDAL_BOOT_PATH=$TIDAL_BOOT_PATH GHCI=$GHCI tidal" C-m   \; \
  select-pane -t 1


Show changes that will be made in the cluster before applying in istioctl

Although istioctl manifest generate along with istioctl manifest diff give some insight into changes between configurations in the cluster, a more direct diff would improve user confidence in the changes being applied. This request has come up a number of times in the past, most recently at IstioCon.
The feature could be a --dry-run flag enhancement where the diffs that would be applied to the cluster are displayed for inspection. The key part of the implementation is to diff against cluster resources. Most of the code for diffing already exists so this is a matter of composing the feature from the building blocks.

I have been working on this issue and should provide a PR soon. Thanks.

Hi @litong01, shall we move this issue to 1.12?

@zhlsunshine After a lot of work on this, it seems there is really no good solution regarding this issue. Probably will not be fixed.


Stack upgrade gametests

Gametests https://github.com/refinedmods/refinedstorage2/issues/248
Stack Upgrade https://github.com/refinedmods/refinedstorage2/issues/69

Oh right I completely forgot that the constructor accepts stack upgrades too


Sticky footer (plugin)

Just push footer at bottom :-)
BtScore-Footer-Adjust

We added this to the theme


[bug] FastLanes signed integer array round trip failed

Hi Vortex! I recently played a bit on Vortex <-> Arrow with FastLane encoding.
However, it seems that current implementation automatically convert signed interger to unsigned variant, as shown in the following code: https://github.com/spiraldb/vortex/blob/develop/encodings/fastlanes/src/bitpacking/compress.rs#L33-L40
Here's a minimal reproducible code, it will panic because the Int64Array is converted back to UInt64Array
use arrow::{
    array::{AsArray, Int64Array, UInt64Array},
    datatypes::{Int64Type, UInt64Type},
};
use vortex::{arrow::FromArrowArray, IntoCanonical};
use vortex_fastlanes::{find_best_bit_width, BitPackedArray};

fn main() {
    let vortex_array =
        vortex::Array::from_arrow(&Int64Array::from_iter(-500..500), false).as_primitive();

    let bitpacked_array = BitPackedArray::encode(
        vortex_array.as_ref(),
        find_best_bit_width(&vortex_array).unwrap(),
    )
    .unwrap();

    println!("bitpacked_array: {:?}", bitpacked_array);

    let canonical_array = bitpacked_array
        .into_canonical()
        .unwrap()
        .into_arrow()
        .unwrap();
    let arrow_array_again = canonical_array.as_primitive::<Int64Type>();
    println!("arrow_array_again: {:?}", arrow_array_again);
}

I tried to comment out the .to_unsigned() etc, and it seems to work again.
I haven't read FastLane paper carefully, can you provide some hints on why to convert it into unsigned values?

Thanks for finding this @XiangpengHao!
The bug is actually that BitPackedArray::encode is only supposed to work on unsigned integer inputs.
When compressing signed ints in the Vortex Compressor, we effectively always do FoR (Frame of Reference, which subtracts the minimum value and converts to unsigned) or ZigZag (which essentially does a wrapping shift left, converting negative signed ints to odd unsigned ints and positive signed ints to even unsigned ints).
Fix is in #930, will get that merged and cut a patch release :)

fix released in 0.11.0


pause and seekbar not working

hey and thanks for this simple player for a fast solution
when i press the play button, pause button doesn't appear and spinner is showing
seek bar now working at all and cause stop audio

@yeganehaym Play/Pause and Seekbar Works.
This happens When your audio file cannot be loaded by the player.
Please check: You have provided the correct location for the file and that the file is playable, Try with a different file.
Check out the sample project on how to play audio from phone storage.

audio is playing and i can hear the vice
but control has problems

Oh you mean seekbar controls?
I also have faced this kind of problem when i load mp3 files that are online.
The audio plays but I'm unable to move the seek bar.
But for the same file if i play it offline using localhost there is no problem and i can move the seek bar.

Hello guys. I'm not facing this problem yet 🤔
Can you send the audio link for me to test it?

I will send the mp3 files via email

same problem if i use url seek bar not work for all audio

@peace-shillong I recently released a new version of the library. Can you test it?
com.github.jeancsanchez:JcPlayer:2.6.11

I am still facing the issue in com.github.jeancsanchez:JcPlayer:2.6.11. Seekbar works only first time when I am loading the audio from a url. I can hear the audio play.
Do you have any solution for this? Thanks.

Hi,
I have the same problem described here. I'm using version 2.6.16, could you please help me?
Thanks


Lens enhancement

Try and/or replace lens in image magnifier with a new lens library

https://mark-rolich.github.io/Magnifier.js/


Can't type in Chinese after using backspace key

Description
After I typed a string of Chinese, there was a word wrong. I couldn't type several letters after using backspace. I think this is the problem of backspace key. In other editors, I didn't find that I couldn't input because of backspace key. Thanks
Steps to Reproduce

input a Chinese word
input a English word
press backspace key to delete English letter in Chinese-Input-mode(any input method), and you can not input any word util switch English-input-mode

Reproduces how often:
always
Versions
1.44.0
1.39.1

solved by new atom version 1.53.0


Create simple functionality for installing logstash

For start we need create simple role for installing Logstash with steps like officials install guides

Assignee is None

Created by EnergyNick at 2022-11-11T12:44:55Z


Adding a wrapper in the style guide

Hey, sorry I haven't had any PRs recently, work is intense.
I've been pondering how useful it would be to be able to have the ability to insert the example into a partial in the style guide.
So, if you wanted to show how a complex form component would display within your simple_form, you could create a partial with the form setup, then display the example within that partial.
Would that make sense to add?  All I could think of was using content_for to capture the sample component and if there was a partial, that would use the capture, if there wasn't a partial, then we'd display the content_for directly.
I am sure there are other options as well, what thoughts do you have on this one?

This is a very interesting proposition and can potentially solve a bunch of issues! :) Thanks for proposing this! And no worries at all about PRs, there's no pressure and life's busy!
Do you have any ideas how the final API could look like, from the user perspective? Like, how would an example with this wrapper look like in the yaml?
I'm trying to think how the easiest way for the user to do this without interfering with regular component usage in your views. I'll give it some thought as well and come up with a few options, but curious to know how you envision this from the user perspective, as it's a great idea!

I was going to try out a theory tonight, but I ended up fussing with the demo app for quite some time after re-checking it out.  I forgot I had to update pg to 1.1.3 in order for it to work on windows (in addition to adding tz-info).
My current theory is that I'll be looking for the key partial within the mv_stub_meta.  If the key is present and has a valid partial, the component would be loaded into content_for :mv_component, and the partial would be rendered with the expectation that it will load :mv_component in content_for.  If there was not a partial in mv_stub_meta the component would be rendered as it is now. I believe I may have to use the index number for the loop and send that into the partial in order to make it unique... but I'd like to give it a try to work out the fine details...

I made a PR (#88) with the general concept I was going for.  Let me know what you think


Ship --esm as default on and provide an opt-out

Do you want to request a feature or report a bug?
Feature
What is the current behaviour?
For module/nomodule support we have to pass --esm flag
What is the expected behaviour?
--esm should be on by default
If this is a feature request, what is motivation or use case for changing the behaviour?
We should make --esm ON by default because a major chunk of browsers already support this and we have a fallback for browsers that dont.
So there's no reason why this should be on by default.
Catch: If you have a very small app, and are using all node_modules from their es5 definition, you might see a rise in bundle size because

you used all es5 dependencies, thus no saving there
your app is really small so hardly any saving there
we added a nomodule polyfill for safari 10.x, thus a few bytes increased overall

Please mention other relevant information.

Node version: any
npm version: any
Operating system: any
CLI version: next
Browser: all

Fixed by #688


UI - redirect links for team (Mentions) are not correct

Affected module
Does it impact the UI, backend or Ingestion Framework?
UI
Describe the bug
A clear and concise description of what the bug is.
Redirect links are not working as expected

Mention someone in thread
hove over or try to navigate to that team
It's not redirecting

To Reproduce
Screenshots or steps to reproduce

Expected behavior
A clear and concise description of what you expected to happen.
It should redirect to teams page
Version:

OS: [e.g. iOS]
Python version:
OpenMetadata version: [e.g. 0.8]
OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ]

Additional context
Add any other context about the problem here.
Check for users as well

Adding on above issue more env. details where this is replicable.
Version:
OS: Linux/Mac
Python version:
OpenMetadata version: 0.12.1


Set default values for MaxPodsThreshold and JobDeleteTimeDuration

In https://github.com/Comcast/kuberhealthy/pull/692, 2 new environment variables were added for check-reaper: MAX_PODS_THRESHOLD and JOB_DELETE_TIME_DURATION. If any of these environment variables are unset, then we'll get errors like:
level=error msg="Error converting MaxPodsThreshold to int"

or
time="2020-12-16T13:51:14Z" level=error msg="Error converting JobDeleteTimeDurationEnv to Float"
time="2020-12-16T13:51:14Z" level=error msg="Failed to reap khjobs with error:  time: invalid duration "

This PR sets default values in case these environment variables are unset or their values cannot be parsed.

This makes sense. Thanks for making all the improvements in the log messages as well! Before, we had set values and then made it more configurable.. Adding those default values makes it less error prone and help it run more smoothly! Thanks for pointing it out and adding your fixes!


frontend: mui v4 to v5 migration

Updates frontend to use mui v5.
Consists of dependency upgrades, updated imports, and theme config updates for mui v5. Should be pretty straightforward.

@shanefontaine no since they are unrelated to mui, and related to react-app-rewired react-scripts


Magic Refactor + Master Spellbook

About the PR

HUGE TBA PR, currently working on the following:

[x] Split Spellbook and Magic Systems & Comps
[x] Move Spellbook and Magic to Shared & network
[x] Fix Fireball & Projectile Spells
[x] Fix Sounds on some spells
[ ] Make a Speech Event so all speech is handled through it & the magic comp
[ ] Add conditions to spells that need robes, hat, staff, etc.
[ ] Refactor/rename targeting
[ ] Move ignore caster from Force Wall to Magic Comp
[ ] Add a Master Spellbook & Wizard Currency via the shop system (bind to mind for main user)
[ ] Add a way to refund purchases (abilities and items)
[ ] Add a way to only buy/refund in a certain area
[ ] Add Action Upgrade purchases to Master Spellbook
[ ] Refactor the old spellbook system into something temporary

BONUS:

[ ] RPG Mechanic ECS for targeting and such (MMO-like floor AOEs, etc)
[ ] Field ECS to have a field do something (spawn a temp dance floor, time stop, time dilation, healing, etc)

Why / Balance

Technical details

Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Alpha example video of a Master Spellbook:
https://github.com/space-wizards/space-station-14/assets/54602815/bd7bafda-9a94-4c37-9afa-966b1da13d70
Breaking changes

Changelog

hold alt and type 0153 on the numpad for the ™ character

mute toxin will be able to block wizards from casting, right?

mute toxin will be able to block wizards from casting, right?

Depends on the spell.

yus, all spells doesn't need a vocal component

Can you call the "master spellbook" a grimoire instead?

inb4 chemists throw muting foam grenades at wizard

Can you call the "master spellbook" a grimoire instead?

It's been renamed!

Wanna ask, what do you think of placing each spell of SharedMagicSystem inside it's own file, like SharedMagicSystem.Knock.cs, so it would be a little bit easier to find particular spell among the files and file itself wouldn't become too large?
I did this for wizard spells in my fork: https://github.com/space-wizards/space-station-14/blob/921a37b8e5bf217c569fa3b4710fc5d1a9ae6298/Content.Shared/Magic/SharedMagicSystem.cs
Of cause it's PR of yours and you're in charge here, but maybe you'd find this idea useful.

Well i just pushed some minor cleanup and tried to implement the buying condition you mentioned to the catalog with ListingLimitedUpgradesCondition, it's broken cuz the prototype ID check in line 34 fails after upgrading once (maybe compare parents and have a common one between all upgrades? idk), still commited it in case you want to finish it, feel free to reverse that.
Things that can be done when the antag event is actually gonna be added (tho i recommend fixing these now):
* You can create ForceWall many times on a tile

* If you use a spell, refund it and then buy it again you don't have to wait for the cooldown to be over

* Blink doesnt get deselected after a use

* Wands should prob have infinite ammo since you can refill them with the refund trick (unless you can fix it another way)

* Refunding items should require you to have them in your hands, failing to refund should have user feedback

* Is it intended that summon ghosts has no price? It seems pretty disruptive to not cost anything

Things that you need to do in this pr:
* Split the spell events with regions (partials may be a bit overkill)

You can self merge if you want after that

So refunding works only on the map they were purchased on.
It's intended that the refund button gets disabled once the wizard teleports from his ship to the station. So wherever they spawn it'll automatically mark the map id they're on and when they leave that map, the refund button won't work anymore.
I think the prototypeID thing broke because it went from ProductUpgradeID to ProductUpgradeId. Did you adjust spellbook_catalog to match?

I think the prototypeID thing broke because it went from ProductUpgradeID to ProductUpgradeId. Did you adjust spellbook_catalog to match?

Yeah, that one i did., tho I forgot to fix another one, next commit will fix the linter.
Also, what i meant is that I implemented the condition mentioned in the TODO but it's not working cuz it compares prototype ids  when it should be doing something else (see ListingLimitedUpgradesCondition line 34), still pushed it on the last commit in case you wanted to fix that. Feel free to reverse if my implementation is completely wrong

I think the prototypeID thing broke because it went from ProductUpgradeID to ProductUpgradeId. Did you adjust spellbook_catalog to match?

Yeah, that one i did., tho I forgot to fix another one, should be fixed now. Also, what i meant is that I implemented the condition mentioned in the TODO but it's not working cuz it compares prototype ids when it should be doing something else (see ListingLimitedUpgradesCondition line 34), still pushed it 2 commits ago in case you wanted to fix that. Feel free to reverse if my implementation is completely wrong

I found the issue, it's checking by .Count instead of the highest level. The system's allowed to skip levels so the count wouldn't match up.
So you could have two effected levels of level 2 and level 4, which would still have a Count of 2 and it would exit early.

Well i just pushed some minor cleanup and tried to implement the buying condition you mentioned to the catalog with ListingLimitedUpgradesCondition, it's broken cuz the prototype ID check in line 34 fails after upgrading once (maybe compare parents and have a common one between all upgrades? idk), still commited it in case you want to finish it, feel free to reverse that.
Things that can be done when the antag event is actually gonna be added (tho i recommend fixing these now):
* You can create ForceWall many times on a tile

* If you use a spell, refund it and then buy it again you don't have to wait for the cooldown to be over

* Blink doesnt get deselected after a use

* Wands should prob have infinite ammo since you can refill them with the refund trick (unless you can fix it another way)

* Refunding items should require you to have them in your hands, failing to refund should have user feedback

* Is it intended that summon ghosts has no price? It seems pretty disruptive to not cost anything

Things that you need to do in this pr:
* Split the spell events with regions (partials may be a bit overkill)

You can self merge if you want after that

Force wall was lowered to 12 seconds for despawn time. Generally the spell should be ready to cast before the wall disappears but now at least it won't let you spam it at a huge net positive.
Summon ghosts is mimicking ss13 as a free show ghosts to all. I haven't figured out how to get it to continually show new ghosts so I allowed it to be recast after a few minutes.


[Play Multiplayer Screen ClientSide] Can't Connect Error

Issues that do not follow this template will be closed
Describe the Bug:
The first time entering Survival Multiplayer (SMP) info the Play Multiplayer screen in the Minecraft client shows the server can't connect with red x. Refresh doesn't change the server can't connect error. However if you ignore the error and click the server connect icon you will log into the server and then have no further issues. This bug only affects first time players on a server. Not sure if it happens when you add a second server you have not played on.
How Can We Reproduce the Bug:

Install Pack
Add SMP title and IP address.
Receive an error that can't connect.
Hit refresh still get error
If you click on icon then it will connect to server.
First time connecting to server may get timed out
Second time connecting everything will work fine and then you don't get the error anymore.

Expected behavior:
Once SMP info is add the Play Multiplayer screen
If Applicable, Add Screenshots or Video to Explain the Bug:

Crash Report or Game Log
Paste your crash report or log file to https://gist.github.com/ and paste the link here.
No Crash Reports for the 2 day old server :p. I couldn't find a log file with any applicable information.
Please complete the following information:

Which Game Launcher are you using? :Overwolf CurseForge
Have you checked if your bug has already been reported, including closed issues? : Yes, there were no open or closed bug reports related to play multiplayer or server connection errors.
Have you added or removed any mods, and if so, which?: I received the error before adding FTB Essentials and FTB Ranks to the server and verified clients can connect without them installed and still have the error. FTB Essentials has useful admin features like Invsee, Mute, Ender Chest see, etc.
Modpack Version Number :<IP_ADDRESS>
Does this issue affect Server, Client, or Both? : It appears to be primarily client side. I could not find any indication in the latest or earliest log file. I did not search all the log files.

Additional context:
As I was creating this report a member tried connecting the first time and got the error cannot connect in the Player Multipler screen and there was no consol activity associated with it.

Honestly, I'm only concerned with whether clients can connect or not.
This is a common issue with modded minecraft servers.
Consider this a side effect of a security setting that keeps people from seeing who is on the server without connecting at least once.

Ahhhhhh that explains the anonymous players on the server screen. That helps me a lot and I understand that it might not be anything you could do but just wanted to make sure it wasn't something simple. Thank you for the response.


Multi yubikey support

If you try to use this tool with more than one YubiKey plugged in at once, the program will get confused in some way and permanently indicate that a key needs to be touched (until all keys are removed from the system)

Agree - I believe it's the HMAC detector that is faulty, since it's based on device plugged and unplugged events...
https://github.com/maximbaz/yubikey-touch-detector/blob/main/detector/hmac.go

Do these plugged and unplugged events contain any information unique to each YubiKey like a serial number? If so, it should be possible to keep track of multiple keys

Hard to say without doing a bunch of testing... Will get to this at some point, but help is very welcome 😅
By the way, as a temporary workaround you can potentially ignore HMAC events altogether (events from this app include "reason").


[BUG] Account setup error

What happened
Python cannot load LoadLibraryEx library at from starknet_py.net.account.account import Account.
I tried to reinstall and update packages and also tried to use a different laptop.
Stack trace
Traceback (most recent call last):
File "c:\Users\hai1r\OneDrive\Documents\scripts\starknet\starknet.py", line 8, in
from starknet_py.net.account.account import Account
File "C:\Users\hai1r\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\starknet_py\net\account\account.py", line 9, in
from starknet_py.hash.address import compute_address
File "C:\Users\hai1r\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\starknet_py\hash\address.py", line 4, in
from starknet_py.hash.utils import compute_hash_on_elements
File "C:\Users\hai1r\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\starknet_py\hash\utils.py", line 5, in
from crypto_cpp_py.cpp_bindings import (
File "C:\Users\hai1r\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\crypto_cpp_py\cpp_bindings.py", line 96, in
def cpp_hash(left: int, right: int) -> int:
File "C:\Users\hai1r\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\crypto_cpp_py\cpp_bindings.py", line 48, in load_cpp_lib
CPP_LIB_BINDING = load_cpp_lib_windows(cpp_lib_file)
File "C:\Users\hai1r\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\crypto_cpp_py\cpp_bindings.py", line 58, in load_cpp_lib_windows
dll_handle = win32api.LoadLibraryEx(dll_name, 0, handle1)
pywintypes.error: (126, 'LoadLibraryEx', 'The specified module could not be found.')
Steps to reproduce
client = FullNodeClient(node_url=RPC_STARK)
account = Account(
client=client,
address=RPC_STARK,
key_pair=key_pair,
chain=StarknetChainId.TESTNET,
)
print(account.get_balance())
SDK Version

Python version
3.10
What operating system are you using?
Windows
Is there an existing issue for this?

[X] I have searched the existing issues and verified no issue exits for this problem.

Hi, are you trying to install MinGW as in our docs via chocolatey? If so and the problem persists, we've answered to such problems on starknet.py channel on Starknet Discord (link in docs).

Hi, yes, I have MinGW installed via choco and I also have the PATH updated. I still have the same issue.

You can take a look at our discord channel, exactly this message, where we answered problems similar to yours

try to put files libcrypto_c_exports.dll libgcc_s_seh-1.dll libstdc++-6.dll libwinpthread-1.dll in same folder as your main script.
If it won't help, then reinstall python


Min width to the flex coumns mode.

[ X ] bug report => search github for a similar issue or PR before submitting
[ X ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior
Today, when I use column flex mode and when I shrink the screen, the columns overlap each other.
Currently I'm using the columns the following way:
let columns = [
            { entity: 'Envolvido', name: 'Nome', prop: path + 'dadosPessoais.nome', minWidth: 30,  },
            { entity: 'Envolvido', name: 'Nome Fantasia', prop: path + 'dadosPessoais.nomeFantasia', minWidth: 30 },
            { entity: 'Envolvido', name: 'CNPJ', prop: path + 'dadosPessoais.documentoIdentificacao.cpfCnpj', minWidth: 300 },
            { entity: 'Envolvido', name: 'UF', prop: path + 'dadosPessoais.endereco.uf.sigla', minWidth: 300 },
            { entity: 'Envolvido', name: 'Município', prop: path + 'dadosPessoais.endereco.municipio.nome', minWidth: 300 }
        ];

 <ngx-datatable #table
      class="material"
      [rows]="rows"
      [columns]="columns"
      [selected]="selected"
      [selectionType]="'checkbox'"
      [columnMode]="'flex'"
      [headerHeight]="50"
      [rowHeight]="45"
      [footerHeight]="50"
      [externalPaging]="true"
      [count]="page.totalElements"
      [offset]="page.pageNumber"
      [limit]="page.size"
      [scrollbarH]="true"
      (page)='setPage($event)'
      (select)='onSelect($event)'>

Expected behavior
I'd like to set a minWidth to the columns, for when I resize/shrink the screen, the columns keep with the min width.
Reproduction of the problem
https://swimlane.github.io/ngx-datatable/#fixed
What is the motivation / use case for changing the behavior?
The number of columns of my table will change dynamically, so when the number of columns is wide enough it will be set to the min width.
Please tell us about your environment:

Table version: 0.8.x

Angular version: 2.0.x

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Language: [all | TypeScript X.X | ES6/7 | ES5]

@nssantos Why was this closed? I have this same issue and think this is a great suggestion. Did you find another way to solve this problem?


Zerotier client shows very strange SSL problems when using it from 0-robot

Issue migrated from https://api.github.com/repos/Jumpscale/lib9/issues/301, opened by @FastGeert
"bad handshake: Error([('SSL routines', 'SSL23_GET_SERVER_HELLO', 'unknown protocol')

ErrorConditionObject: HTTPSConnectionPool(host='my.zerotier.com', port=443): Max retries
exceeded with url: /api/network/9f77fc393e094c66 (Caused by SSLError(SSLError("bad
andshake: Error([('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')],)",),))

@FastGeert
please i want to know what are you did to get this Error ?


Questions on its usage

I came across this and was excited about the use-case for editors to preview and edit SEO title and description with preview.
However when i try to use the code as specified (the second one), it throws error as below. This code is on a template (umbraco 7.1.6); The property is named seo in the assigned page.
Compiler Error Message: CS1061: 'object' does not contain a definition for 'Title' and no extension method 'Title' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 28: @{ var seo = this.Model.Content.GetPropertyValue("seo"); }
Line 29:
Line 30: @seo.Title @seo.Description

I'm getting the same error. when i just output @seo i see { "title": "SEO title", "description": "this is the description" }  on the page, but it looks like @seo.Title throws an error. is there a using statement or something that i'm missing?

Hi!
Try this.Model.Content.GetPropertyValue("seo").Description
Does that work?

using that gives me this error:
'object' does not contain a definition for 'Description' and no extension method 'Description' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)

if anybody else tries to use this and has the same issue, here's the solution:
add using statements to your view:
@using Umbraco.Web
@using Newtonsoft.Json.Linq
then parse the object to JObject:
var seo = JObject.Parse(this.Model.Content.GetPropertyValue("seo").ToString());
then get the values like this:
@seo.GetValue("title")
@seo.GetValue("description")

CodeAbuser's solution works, just make sure to check for empty values first(and remember those using statements!). Here's what I did, but you probably should set the value as a variable first so you don't have to get it twice...
if (!String.IsNullOrEmpty(this.Model.Content.GetPropertyValue("seo").ToString()))
{
var seo = JObject.Parse(this.Model.Content.GetPropertyValue("seo").ToString());
<meta name="title" content="@seo.GetValue("title")">
<meta name="description" content="@seo.GetValue("description")">
}

Hi!
Since we added the property value converters you can use it like this:
@(this.Model.Content.GetPropertyValue("seo").Description)
or like this
@{ var seo = this.Model.Content.GetPropertyValue("seo"); }
@seo.Description
@seo.Title
The -part of the lines where stripped from documentation (readme.md) by github so I hade to change them to > och <
Hope this helps!

does this require downloading a new version or can i use this now?  What using statement do i need to be able to resolve the SeoValues object?

You should be able to use the current version. Just include the namespace "SeoVisualizer"

@using SeoVisualizer;
That gives me an error. namespace not found

Strange - do you have the dll in the bin-folder? If not - download the latest version from our.umbraco.org and install it again.

i did not have the dll. i upgraded to the latest version and the dll is there now and your example works. thanks!


Dumping proxy log is slowing pipeline down

See here
Need to:

[ ] reduce the default logging
[ ] stop dumping and instead upload as artifact

FYI @hallipr. The python ml pipelines are pushing around 25 million lines/a couple GB per hour which is slowing down our log queries by quite a bit. Top lines per pipeline per hour are around 700k, vs. ML being at 8 million (internal) and 19 million (public).


Advanced Search - Front End

@jadmsaadaot @amichard Here are the updated designs for the advanced search, let me know if you have any questions
https://jacklyn808742.invisionapp.com/console/share/3W2O64AP5C/874445058

@JHarrietha-AOT , @jadmsaadaot, is this a duplicate of #1213?

Resolved with @abin-aot. This is a task for #1213


Read Everything Before Doing Anything?

If it were me, I would place this information
"Fields in a fixed layout are not editable even if the Editable property is set to true. "
In a big colorful Note at the beginning of the page, to alert developers as soon as possible to the very significant fact that fields laid out using this control cannot be edited. Thus sparing them the trouble of seizing on this display option only to find that it is somewhat useless on a data entry page.

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

ID: 9accee14-66b3-70ad-02ff-de86a48d6b78
Version Independent ID: 17b817ea-9ae1-bf7a-7961-06c908f0c8af
Content: Arranging Fields in Rows and Columns Using a Fixed Control - Business Central
Content Source: dev-itpro/developer/devenv-arrange-fields-in-rows-and-columns-using-fixedlayout-control.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Although we'd like to think that everybody reads through the entire topic, I think this is really good feedback. We will make that change and it'll be ready with the next doc refresh. Thanks!


Fixes roles so that they can be loaded into chef-solo and chef-zero.

A modest PR to make the provided roles loadable into chef-zero-provisioned Vagrant VM.

This seems fine by me.


cannot find cuda installation

thread 'main' panicked at /home/cj/.cargo/registry/src/index.crates.io-6f17d22bba15001f/find_cuda_helper-0.2.0/src/lib.rs:12:13:
Could not find a cuda installation

I have nvidia-cuda-toolkit and nvidia-driver-535 installed

This might just be that the PATH needs to include /usr/local/cuda/bin.

Since I just struggled with this problem.
It turns out that find_cuda_helper looks in /opt/cuda and /usr/local/cuda for include/cuda.h. However, my cuda is in /usr, so a ln -s /usr /usr/local/cuda did the trick.

i'm going to close this because there's not enough information included to reproduce your error.
@GopherJ -- if you're still looking for support on this, please re-open with more information. we have issue templates here to help with that: https://github.com/risc0/risc0/issues/new/choose


The files are expired

Thank you for your interesting work!
I want to access files which are provided by links.
However ,the files are expired. Can you re-upload the necessary files?
Thank you,
Kibum Kim

I have also found the same issue; could you please upload them again? Thank you so much!


文章提交回复Attribute 'data-setup' in element 'video' not supported

ErrorException thrown with message "Attribute 'data-setup' in element 'video' not supported (for information on implementing this, see the support forums) "
Stacktrace:
#81 ErrorException in F:\sites\laracms\vendor\ezyang\htmlpurifier\library\HTMLPurifier\HTMLDefinition.php:379
.......

HTMLPurifier 新版不兼容了，手动移除一下吧


I want to have this in Pkg :)

What speaks against it? How difficult would it be to make a PR?

You're welcome to try - you should probably raise in issue about it on Pkg.jl not here.

I imagine the "you're welcome to try" comment would extend to how you'd feel about me stealing putting your code into a PR to Preferences.jl using package extensions?

Yeah go for it.

@tecosaur have you done anything in this direction?

Put it on my to-do list 😛


Springboot links are broken

Hi!
I've been just looking for some examples and found out that in the readme.md most of the springboot links are broken.
for example: this this leads to nowhere.

@mrm9084 any suggestions?

@sovietspy2 Hi, sorry about that things are in the middle of a renaming. You can find our source here. https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/appconfiguration/spring-cloud-azure-appconfiguration-config-web


Trade To Box Native Rune Not Showing Up

Brief description (high level)
Not able to search or select native RUNE as the trade to pair
Steps to recreate (detail)

After insuring that the native RUNE asset is toggled on
Choose trade and try searching for native RUNE as the traded to asset.
Currently work around is to have the from asset be native RUNE and then choose a to asset and swap the from/to to get it selectable.

Screenshots/vids (add or add attachments “to the right”)
Link to Discord
https://discord.com/channels/554694662431178782/915680123800416277/915684352829050920
AC (acceptance criteria)
Fixing the option to search and have native RUNE selectable for the (to) asset in a trade for all wallets on beta.shapeshift.com

closing.


Created SQL database

(/!) Will need to change logins :

User login : user/user
Root login : root/root

docker-compose uses version 3
Database uses mysql:latest

Uses port 3306 (default)

Database uses phpmyadmin

Uses port 8888 (default : 80)

All tables have been created
All relations have been created
(/!) Will need to update fields in GameSession and Drawing

RESOLVE #7

Wrong files

Wrong files


Zoom only first element/header of recyclerview?

Great library! Would it be possible to make the zooming effect only for the top-most element of the recyclerview? I'd like to zoom only the "header" when overscrolling

Sorry, this library is unable to implement this effect.
It scales the whole recyclerView rather than each itemView.
So maybe you should find out another way to implement this effect.
Thanks for your issue!


A small question：Missing traffic_model file in the model folder

Dear Author,
I hope this message finds you well. First, I would like to thank you for sharing your project on GitHub. Your work is incredibly valuable, and I appreciate the effort you have put into it.
I am currently using your code, but I have encountered an issue that leads me to believe there might be some missing parts. Specifically, I noticed that the 'traffic_model' file appears to be missing from the 'model' folder, which is causing some difficulties in running the project.  To ensure I am not misunderstanding anything, could you please confirm if there are any missing pieces of code or if I might have overlooked a step?
Thank you very much for your assistance!
Best regards.

I have uploaded the missing file. Sorry for the delayed response.
From: 269293242 @.>
Date: Wednesday, July 3, 2024 at 3:07 PM
To: jjalcaraz-upct/nb-iot-environment @.>
Cc: Subscribed @.***>
Subject: [jjalcaraz-upct/nb-iot-environment] A small question：Missing traffic_model file in the model folder (Issue #1)
traffic.model.png (view on web)https://github.com/jjalcaraz-upct/nb-iot-environment/assets/170171980/28ec5340-c429-441e-9222-306bcffa63cc Dear Author,
I hope this message finds you well. First, I would like to thank you for sharing your project on GitHub. Your work is incredibly valuable, and I appreciate the effort you have put into it.
I am currently using your code, but I have encountered an issue that leads me to believe there might be some missing parts. Specifically, I noticed that the 'traffic_model' file appears to be missing from the 'model' folder, which is causing some difficulties in running the project. To ensure I am not misunderstanding anything, could you please confirm if there are any missing pieces of code or if I might have overlooked a step?
Thank you very much for your assistance!
Best regards.
—
Reply to this email directly, view it on GitHubhttps://github.com/jjalcaraz-upct/nb-iot-environment/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN3EW2FNY6YGUYAFHYNKOVDZKPZRZAVCNFSM6AAAAABKJRRLOWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4DQNJYGYZTGMA.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


[Bug]: fix inodefull err when the rw mp is not pulled in time

Contact Details
<EMAIL_ADDRESS>Is there an existing issue for this?

[X] I have searched all the existing issues

Priority
high
Environment
- CubeFS version:3.3.0

Current Behavior
Inodefull  err will be returned directly to the client.
Expected Behavior
Inodefull  err should trigger rw mp pull and retry at least a few times.
Steps To Reproduce
1. Set the InodeStep to small one, e.g. 10240
2. Write object to trigger mp split

CubeFS Log
No response
Anything else? (Additional Context)
No response

done


Support Angular 1.5 for npm and bower

Angular 1.5 is fresh off the press. The bower and npm installs should support be able to resolve Angular 1.5 as a dependency.

Related to #689

@davideast is going to handle this. I think we should update the Angular deps in the bower.json and the package.json to ^1.3.0 which will give us >= 1.3.0 and < 2.0.0. If there ever is a 1.6.0, we will pick it up automatically without having to do a release.


some question about secret sharing

would like to make some modifications to the secret sharing. Currently, it seems that secret sharing involves exchanging frames between all clients. However, I would like clients to be divided into multiple groups, and clients within each group can exchange frames with each other. Can you give me some suggestions?

Hello, we use an (n, n)-secret sharing scheme, that is, a secret value is partitioned into n pieces. The value can be recovered if and only if one holds all n pieces.  For example, if a client has a secret value $s$, he partitions it into $[s_1, s_2, \ldots, s_n]$, and sends $s_i$ to client$_i$. See here.
In my opinion, if you want the clients to exchange their frames within a small group, it may be convenient to maintain a list containing the neighbors among the group, and then send it in a similar way.
I'm not sure if this has addressed your question.

Thank you for your answer. I still have some questions about secret sharing.

In this section of the code in sever.py, the AdditiveSecretSharing class sets shared_party_num to int(self._cfg.federate.sample_client_num). However, use_ss is only set to true when all clients participate, so sample_client_num will be -1.

I'm confused because in secret_sharing.py, shared_party_num is required to be greater than -1. I'm not sure where I'm misunderstanding.

"However, use_ss is only set to true when all clients participate, so sample_client_num will be -1." This is not true. When use ss, we assert that cfg.federate.client_num == cfg.federate.sample_client_num , see here

thank you，it is really helpful for me


Update README.md

Copy edited (e.g. ref. http://en.wikipedia.org/wiki/JavaScript and http://en.wikipedia.org/wiki/OS_X).

Thank you very much for the fixes.


Wrong CFG implementation

Classifier free guidance should be calculated as noise_pred = uncond + cfg * (cond - uncond), but it seems all the guidance modules are implemented as noise_pred = cond + cfg * (cond - uncond). e.g. https://github.com/threestudio-project/threestudio/blob/main/threestudio/models/guidance/stable_diffusion_guidance.py#L240
Fortunately this problem is not significant when cfg is large, and all the results look good so far.

They are just the same when you replace cfg with cfg + 1 for the uncond first version. We follow the original paper to implement it. IMO, both implementations are ok. You can try whether the quality gets improved with cfg=7.5 and the uncond first version.

Ah yes they are indeed equivalent. Thanks for the explanation.


Update test files (in.txt, expected_dos.txt, etc.) - part quad

Prepared new in.txt & expected_dos.txt; created actual_out.txt; compared expected_dos.txt with actual_out.txt.  The results are as expected (less than perfect).  Closing the issue.


Style/ArrayCoercion auto-correction not equal for nil values

If a value can be nil, then ArrayCoercion auto-corrected change does not produce an equivalent change. It's a good suggestion but not always valid.
Expected behavior
Don't auto-correct unless certain
Actual behavior
Changes code
Steps to reproduce the problem
test_value = nil

original_result = [test_value] unless test_value.is_a?(Array)
new_result = Array(test_value)

original_result == new_result # false

# original_result [nil]
# new_result []

RuboCop version
Include the output of rubocop -V or bundle exec rubocop -V if using Bundler. Here's an example:
$ [bundle exec] rubocop -V
0.88.0 (using Parser <IP_ADDRESS>, rubocop-ast 0.2.0, running on ruby 2.6.5 x86_64-darwin16)

Agreed, this cop is, at the very least, not safe.
Any object that responds_to? :to_a is an issue:
Array({a: 1}) # => [[:a, 1]]  != [{a: 1}]
Array(Set[1, 2, 3]) # => [1, 2, 3]  != [Set[1, 2, 3]]

I'll make it as unsafe but the issue should remain open: does this cop deserve its badge?

What about using Array.new(1, value)?
irb(main):001:0> Array.new(1, {a: 1})
=> [{:a=>1}]
irb(main):002:0> Array.new(1, Set[1, 2, 3])
=> [#<Set: {1, 2, 3}>]
irb(main):003:0> Array.new(1, 1..)
=> [1..]

Ah, it won't work for arrays args as expected :(

This one seems to work https://stackoverflow.com/a/29431497
irb(main):001:0> [{a: 1}].flatten(1)
=> [{:a=>1}]
irb(main):002:0> [Set[1, 2, 3]].flatten(1)
=> [#<Set: {1, 2, 3}>]
irb(main):003:0> [1..].flatten(1)
=> [1..]
irb(main):004:0> [Time.now].flatten(1)
=> [2020-07-27 17:07:10.792690033 +0300]
irb(main):005:0> [[1, 2]].flatten(1)
=> [1, 2]
irb(main):006:0> [[{a:1}, Time.now]].flatten(1)
=> [{:a=>1}, 2020-07-27 17:07:32.01765441 +0300]

There just isn't a reliable builtin way to do this.
Maybe this cop could enforce the use of proper duck-typing:
# bad?
x = [x] unless x.is_a?(Array)
# good
x = [x] unless x.respond_to? :to_ary

Note: I did mean to use to_ary (implicit conversion to Array), and to_a (explicit conversion) is not good.
Given the fact that to_ary (and how it differs from to_a) is pretty obscure, I think that the best solution is that this cop should be entirely retired. There's nothing inherently wrong with x = [x] unless x.is_a?(Array) and there is not any better and reliable alternative.

Just checking whether x responds to to_ary might no be enough, you probably also have to invoke it:
x = x.respond_to?(:to_ary) ? x.to_ary : [x]

IMO, x = [x] unless x.is_a?(Array) is much easier to understand. It almost literally says "put x in an array unless x is an array". I don't think that's "bad" at all.

There's also the option of simply disabling the cop by default, which is a bit less extreme (at least people can run it on demand then). The fact that relatively few people complained about running into conversion issues leads me to believe that's not a very common problem, but that' definitely a cop that can't be made safe.

Now disabled by default #8792