PDF thumbnail derivatives are failing maybe due to GhostScript

I'm using the isle-buildkit tag 3.3.0 and pdf thumbnails derviatives are failing with this message:
houdini-1  | [2024-08-05T17:09:03.005463+00:00] app.INFO: Convert request. [] [] houdini-1  | [2024-08-05T17:09:03.007852+00:00] app.INFO: Imagemagick Command: {"cmd":"convert pdf:-[0] -thumbnail 100x100 png:-"} [] houdini-1  | [2024-08-05T17:09:05.403012+00:00] app.ERROR: Process exited with non-zero code. {"exit_code":-1,"stderr":""} [] houdini-1  | [2024-08-05T17:09:05.403158+00:00] app.ERROR: RuntimeException: {"exception":"[object] (RuntimeException(code: 500):  at /var/www/crayfish/Houdini/vendor/islandora/crayfish-commons/CmdExecuteService.php:122)"} [] houdini-1  | <IP_ADDRESS> - - [05/Aug/2024:17:09:05 +0000] "GET /convert HTTP/1.1" 500 5 "-" "Apache-HttpClient/4.5.13 (Java/17.0.10)" "-"
I tested out that convert command from the Houdini container and it gave this error message:
convert my_pdf.pdf[0] -thumbnail 100x100 my_pdf.png
Illegal instruction (core dumped)
I found this bug with ghostscript that gives that same error but I do not know if it's related to the problem I'm seeing: https://bugs.launchpad.net/ubuntu/+source/ghostscript/+bug/1806517
Full slack discussion about this issue: https://islandora.slack.com/archives/C019U12D44Q/p1722878784071129

isle-buildkit tag 3.4.0 fixed this issue for me.


New AcceptGatewayPAIForOutboundCalls  parameter is missing

Recently we have introduced the following Parameter for trunk configuration:
https://support.microsoft.com/en-us/help/4458692/incorrect-caller-id-shown-on-the-skype-for-business-client-in-a-call
After you apply this update, you have to set the AcceptGatewayPAIForOutboundCalls parameter (this value is false by default) to true to display forwarded number for different trunks. For example:
Set-CsTrunkConfiguration -Identity site:Redmond -AcceptGatewayPAIForOutboundCalls $True
This example modifies a trunk configuration with the Identity site:Redmond to enable the AcceptGatewayPAIForOutboundCalls. The remaining properties for this configuration will keep their existing values.
Please add this parameter also to the webpage, this is available in SfB Server 2015 and 2019

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

ID: 80f4d755-24e9-d29e-c18e-f380f51835bb
Version Independent ID: 391c3e3e-146a-501c-1866-569b65c0a754
Content: Set-CsTrunkConfiguration (skype)
Content Source: skype/skype-ps/skype/Set-CsTrunkConfiguration.md
Service: skypeforbusiness-powershell
GitHub Login: @hirenshah1
Microsoft Alias: hirshah

@officedocsbot assign @yogkumgit

Hello @bament-hun
Thanks for reporting this. I created a pull request to propose adding this information to the article.
Thank you

@hirenshah1 Please merge this PR #4417

@get-itips  Thank you very much for the contribution and updating the documentation with PR. @bament-hun Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Refactor emplace back

#1855

Can one of the admins verify this patch with one of the following commands:

"jenkins test please" for a one time test run
"ok to test" to accept latest and future commits on this pull request for testing
"add to whitelist" to add the author to the whitelist

ok to test


Fix conflict between different product flavors

Fix conflict between different product flavors so that beta and prod apps could coexist
Title (required)
Fixes #1725
Tests performed (required)
Able to install and log in to both beta and prod flavors of the app simultaneously.
Screenshots showing what changed (optional)

Codecov Report

Merging #1726 into 2.8-release will not change coverage.
The diff coverage is 18.91%.

@@             Coverage Diff             @@
##           2.8-release   #1726   +/-   ##
===========================================
  Coverage         3.89%   3.89%
===========================================
  Files              151     151
  Lines             7521    7521
  Branches           705     705
===========================================
  Hits               293     293
  Misses            7211    7211
  Partials            17      17

Impacted Files
Coverage Δ

...ain/java/fr/free/nrw/commons/auth/AccountUtil.java
0% <ø> (ø)
:arrow_up:

.../free/nrw/commons/di/CommonsApplicationModule.java
50% <0%> (ø)
:arrow_up:

...w/commons/contributions/ContributionsActivity.java
0% <0%> (ø)
:arrow_up:

...java/fr/free/nrw/commons/upload/ShareActivity.java
0% <0%> (ø)
:arrow_up:

...ommons/modifications/ModificationsSyncAdapter.java
0% <0%> (ø)
:arrow_up:

...java/fr/free/nrw/commons/upload/UploadService.java
0% <0%> (ø)
:arrow_up:

...free/nrw/commons/upload/MultipleShareActivity.java
0% <0%> (ø)
:arrow_up:

...ree/nrw/commons/auth/WikiAccountAuthenticator.java
0% <0%> (ø)
:arrow_up:

...n/java/fr/free/nrw/commons/auth/LoginActivity.java
0% <0%> (ø)
:arrow_up:

...ns/contributions/ContributionsContentProvider.java
9.09% <100%> (ø)
:arrow_up:

... and 2 more

Continue to review full report at Codecov.

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

Thanks @maskaravivek , this will be quite useful. I tested on Nexus S API 24 (after uninstalling previous version) and my build fails:
Error while executing: am start -n "fr.free.nrw.commons.debug/fr.free.nrw.commons.auth.LoginActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=fr.free.nrw.commons.debug/fr.free.nrw.commons.auth.LoginActivity }
Error type 3
Error: Activity class {fr.free.nrw.commons.debug/fr.free.nrw.commons.auth.LoginActivity} does not exist.

Error while Launching activity

This is on prodDebug, I haven't tested betaDebug yet.

Works well for me! This will make testing much easier. :)


"asr: Couldn't personalize volume" on Mojave

I kept running into this issue with Install macOS Mojave.app when the prepare-iso.sh script would get to the asr restore command:
	Validating target...done
	Validating source...done
	Retrieving scan information...done
	Validating sizes...done
	Restoring  ....10....20....30....40....50....60....70....80....90....100
	Restored target device is /dev/disk4s2.
	Remounting target volume...done
Personalization succeeded
asr: Couldn't personalize volume /Volumes/macOS Base System

Oddly enough, though, it appears the "Personalization succeeded," but this emits a non-zero status, so the script dies right here.
I decided to see if I could manually run the commands that followed to see what would happen, and sure enough, everything succeeds, but there was one other thing I needed to change.
I needed to replace:
/Volumes/OS\ X\ Base\ System

with:
/Volumes/macOS\ Base\ System

For Mojave, it appears that, when the asr restore command mounts the volume for the base system, it uses the name "macOS Base System" instead of the older "OS X Base System."

I just tested the same changes for Install macOS Catalina.app, and they work for Catalina, as well.

Unfortunately, the problem I have now is, after installation, the VM boots up into the UEFI Interactive Shell, and I'm stuck here.

From comments left on other issues here, I found this script, which copies the EFI files over for the APFS file system to boot properly in VirtualBox: https://github.com/AlexanderWillner/runMacOSinVirtualBox

Hello @ramsey, where did you change the volumes paths? I am having the same issue.

@AxelRobles This commit changed the paths in the script so that the particular issue I was having no longer exists: https://github.com/geerlingguy/macos-virtualbox-vm/commit/37b24fac43044a67870d61cdc346d193fff7b314


Collect crash data for La Mesa, California

See data gathering process to get started - https://github.com/JTurek708/vision_zero_analysis/issues/31

La Mesa city resolution to adopt Vision Zero - https://www.cityoflamesa.us/AgendaCenter/ViewFile/Item/3276?fileID=5426


Changed error in code example.

The setters should return void instead of actually returing a DateTimeOffset.

@SunnySoldier357 : Thanks for your contribution! The author, @conceptdev, has been notified to review your proposed change.

#sign-off


Image zoom

I wanna see the image but bigger

need focus indicator, but too tired to do it right now


Background playback is not working on iOS 12.2.x+

I note that background playback is not working on 12.2.Currently using the hack with checking when the app goes background to play the video after the pause, but sometimes it does not work properly and create a little pause.
@objc func playerStateChanged() {         if currentVideoController.moviePlayer.playbackState == .interrupted {              currentVideoController.moviePlayer.play()         }     }

You should disable video track of currentItem of your AVPlayer right before getting to background and enable it back when you open the app. Then the video won’t be interrupted, and you won’t need the hack

Closed with v2.8.2


Modify "Data-at-rest Encryption" section to remove HMS.

vSAN datastores use data-at-rest encryption by default. The encryption solution is KMS-based and supports vCenter operations for key management. The key encryption keys are stored in an Azure Key Vault and when a host is removed from a cluster for any reason, data on SSDs is invalidated immediately.

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

ID: 88c9f403-10e7-59e6-20c7-7f2964c010ed
Version Independent ID: d5b05dfd-1035-0525-67a0-e46eca8c0de8
Content: Concepts - Storage - Azure VMWare Solution
Content Source: articles/azure-vmware/concepts-storage.md
Service: azure-vmware
GitHub Login: @dikamath
Microsoft Alias: dikamath

@jetomer Thanks for the feedback! We will review and update accordingly.

@jetomer
Thanks for the feedback! I have assigned the issue to content author to check and update the document as appropriate.

@divka78
Can you please check and add your comments on this doc update request as applicable.

updated content
#please-close


Is there a way to check if a file already exists in s3 bucket?

Hi,
First of all thank you for a great library. I have been using it for uploading images to s3 since past 2 months and did not face any issues so far.
There is a new requirement in my application now where I am required to check if a file already exists in the s3 bucket. Is it possible to do that using this library? I went through the readme but did not find any function that would help me in doing that.
Thanks,
Raeesaa

Hi, you can use aws-sdk of the amazon.
var s3 = new AWS.S3();
var params = {Bucket: 'mybucket', Key: 'myfile'};
s3.getObject(params).on('success', function(response) {
console.log("Key was", response.request.params.Key);
}).on('error',function(error){
//error return a object with status code 404
}).send();
To more information, look this: http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-making-requests.html

Extending @qixmiers's answer, it's generally faster is use a HEAD request:
var s3 = new AWS.S3();
var params = {Bucket: 'mybucket', Key: 'myfile'};
s3.headObject(params).on('success', function(response) {
  console.log("Key was", response.request.params.Key);
}).on('error',function(error){
     //error return a object with status code 404
}).send();

Excellent advice!
I'd be more than willing to merge in a PR that added a "examples" section to the readme that offered advice like this @gswalden @qixmiers

so per the documentation
given
var s3 = require('s3');
s3.AWS
is supposed to access the AWS SDK API which it does for example with
s3.AWS.config.region = 'us-west-2'
but short of having to make a separate AWS.S3 object (like the example above) can we access the SDK S3 methods like for example headBucket and headObject with your s3 object?
these don't work_
s3.AWS.headBucket(params, function(err, data) { ....}
s3.AWS.S3.headBucket(params, function(err, data) { ....}

Happy to do PR to the readme (this and setting region and more) if I can understand your API better.


List of possible snippets

I put together a list of questions which I believe are useful. Some of them may have been already covered in the snippets.
Python questions frequently asked on SO:
1. Round to a base value
Example:
# round to a base value 5
10 -> 10
12 -> 10
13 -> 15
14 -> 15
16 -> 15
18 -> 20

2. Check if a string contains a given sub-string
Example:
our_string = "30secondsofpython"
sub_string = "python"
answer -> True

3. Sorted a dictionary by key or value
Example:
# sorted by value
my_dict = {1: 2, 3: 4, 4: 3, 2: 1, 0: 0}
output -> {0: 0, 2: 1, 1: 2, 4: 3, 3: 4}

4. Selecting a random element from a given sequence
Example:
seq = ['a', 'b', 'c', 'd']
output -> 'c' # selected randomly each time.

5. Join a sequence with a given delimiter
Example:
seq = ['a', 'b', 'c', 'd']
delim = '-'
output -> "a-b-c-d"

6. Determine the type of a variable
Example:
a = 10
a_type -> int
b = "string"
b_type -> str

7. Pad a string with given value to make it a specific length
Example:
our_str = "a"
pad_val = "0"
length = 5
output -> "0000a"

8. Convert two lists into a dictionary
Example:
a = ['name', 'place', 'animal', 'thing']
b = ['dexter', 'denver', 'deer', 'door']
output -> {'name':'dexter', 'place':'denver', 'animal':'deer', 'thing':'door'}

9. Trim whitespace from a string.
Example:
our_string = "   30secs of python  "
output -> "30secs of python"

10. Determine if an object is iterable
Example:
a = 10
output -> False
b = [1, 2, 3]
output -> True
c,d,e,f,g = {1:2}, {1,2}, frozenset([1,2,3]), "string", (1,2,3)
output -> True, True, True, True, True

11. Return multiple values
This question has two answers, 1 return a list of all possible outputs. 2 Using yield, a generator function.
IMO, we don't have any snippets related to yield. We can introduce one of the Python's core functionality using yield

12. Check if a value is NaN
Example:
a = float('nan')
output -> True

13. Return ASCII value of a character and vice-versa.
Example:
a = 'A'
output -> 64
b = 64
output -> 'A'

14. Remove duplicate from a list whilst preserving the order
Using set doesn't gaurentee the order of the list.
Example:
a = [1,1,2,3,1]
output -> [1, 2, 3]
# Simple example to prove set doesn't preserve order
l = [1,1,8]
set(l)
# {8, 1}
# As 8 and 1 have same hash values

15. Efficient way to remove unordered duplicates
Example:
a = [(1,2), (2,1), (1,2,3), (2,1,3), (3,2,1)]
output -> [(1,2), (1,2,3)]
# There's no hard and fast rule that we keep fisrt ocurrence, any one of them is fine,
# i.e (1,2,3), (2,1,3), (3,2,1) are duplicates keep any one of them.

This list is not exhaustive as of now. I can add more to the list over time. I don't if questions related to files, directories, os, datetime are relevant to this repo. If yes, I can add them too.

I'm adding one more question which has a daily use.
1. Sum of elements of arbitrary number of lists.
input=[1,2,3,4,5],[4,2,6,2,3],[1,9,1,5,2]
#any number of lists can be passed as arguments SumOfLists(1,2,3,4,5],[4,2,6,2,3],[1,9,1,5,2])
output=[6,13,10,11,10]
#size of output list will be equal to the size of smallest list that is passed to the function.

Hi @gurukiran07  I would like to work on this issue as a part of hacktoberfest. Could you please assign this to me?

Hi, @gurukiran07 I would be glad to help you with this pr as part of the hacktoberfest month
Can you assigned me in? 😄

Thanks for taking the time to compile this list. However, some of these are not worth adding (as they are either built-ins or very simple) and others have already been added in the meantime.


Add resources for JS in chapter 7

Adds the JS resources and makes them the Good enough answer, the user can try to reach th perfect answer on their own
also fixes another editor height error
Preview

I just forgot to add the function definition so the indentation looks weird


Console output truncated with an ellipsis causes remaining text to shift to the left when using $PSStyle

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
Console output truncated with an ellipsis causes remaining text to shift to the left when using $PSStyle
I have a .ps1xml format file that defines a view for file and directory objects which uses $PSStyle to highlight parts of the output, e.g.:
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
    <SelectionSets>
        <SelectionSet>
            <Name>FileSystemTypes</Name>
            <Types>
                <TypeName>System.IO.DirectoryInfo</TypeName>
                <TypeName>System.IO.FileInfo</TypeName>
            </Types>
        </SelectionSet>
    </SelectionSets>
    <ViewDefinitions>
        <View>
            <Name>children</Name>
            <ViewSelectedBy>
                <SelectionSetName>FileSystemTypes</SelectionSetName>
            </ViewSelectedBy>
            <TableControl>
                <TableHeaders>
                    <TableColumnHeader> Name                <Width>30</Width>  <Alignment>Left</Alignment>  </TableColumnHeader>
                    <TableColumnHeader> LastWriteTime       <Width>19</Width>  <Alignment>Left</Alignment>  </TableColumnHeader>
                    <TableColumnHeader> Size                <Width>10</Width>  <Alignment>Right</Alignment> </TableColumnHeader>
                    <TableColumnHeader> FullName                               <Alignment>Left</Alignment>  </TableColumnHeader>
                </TableHeaders>
                <TableRowEntries>
                    <TableRowEntry>
                        <TableColumnItems>
                            <TableColumnItem>

                            </TableColumnItem>
                            <TableColumnItem>

                            </TableColumnItem>
                            <TableColumnItem>

                            </TableColumnItem>
                            <TableColumnItem>

                            </TableColumnItem>
                        </TableColumnItems>
                    </TableRowEntry>
                </TableRowEntries>
            </TableControl>
        </View>
    </ViewDefinitions>
</Configuration>

$filePath = 'D:\my.format.ps1xml'
Update-FormatData -PrependPath $filePath
Get-ChildItem -Path $PSHOME -File

When the Name column contains a long file name, the console truncates the name and adds an ellipsis … to indicate that there are truncated characters. When this happens, the remaining characters on the line are shifted 3 spaces to the left:

Removing the references to $PSStyle in the .ps1xml format file gives the expected layout:

The shift effect is present for any value of $PSStyle.OutputRendering.
Expected behavior
Output text on lines with a truncation ellipsis should remain aligned with its column header.

Actual behavior
Output text on lines with a truncation ellipsis is shifted to the left.

Error details
n/a

Environment data
Name                           Value
----                           -----
PSVersion                      7.2.1
PSEdition                      Core
GitCommitId                    7.2.1
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

Looking at the way the truncation is happening in your two examples, it seems to be mis-counting the number of characters, and cutting the text 3 characters early, which has the knock-on effect of shifting the rest of the line 3 to the left.
Does this happen if you specify a colour instead of reverse ?  I may be mis-remembering but I think there was a bug to do with some escape sequences not being recognized, it's almost like it is fixed everywhere except the truncate routine.

The actual .ps1xml file I use has some logic to set different colors (including reverse) depending on various properties (read only, hidden, etc.), and I see the shifted text any time a color is applied to a truncated name.

OK.  It's odd that truncate is wrong by 3.  You have [esc], [, 0, m, for reset, and [esc], [, 7, m for reverse which is six printable chars and 8 in total.  It would have been a neat explanation if the error was it discounted reset and colours but didn't understand reverse.

A related problem which isn't the one I referred to in the previous example, but relates to errors when the text is too wide for the column
The screen shot below is showing tasks carried out in different environments, the environments are on the right and have names "Shared services pre-release" and "Shared services dev". Red is used to indicate "All EXCEPT the one(s) shown"
When the there is a sufficient width the end of the first line and the second look like this:
Red Shared services pre-release reset
PanettoneService Red Shared services Dev reset
When there is less width the two lines become three:
Red Shared services
PanettoneService  pre-release reset red Shared
services Dev reset
So the columns on default colours become red

For the record: the problem here is EXTREMELY ANNOYING and basically left my dream of using color codes in formatting files on hold. It also affects Format-Wide as well.
We can only add escape sequences to text if we're sure the text will not need to be truncated by the formatter.
Here's a simple repro example:
Given a function that outputs objects ...
function Get-DemoObjects {
    [PSCustomObject]@{PSTypeName = "User"; Name = "Bob Saggat"; Tenure = 2; Role = "Developer" }
    [PSCustomObject]@{PSTypeName = "User"; Name = "John Seymour"; Tenure = 6; Role = "Sw Engineer" }
    [PSCustomObject]@{PSTypeName = "User"; Name = "Billy Bob Thorton"; Tenure = 13; Role = "Senior DevOps Engineer" }
}

If you format those objects such that they get truncated (imagine we did this in a format file):
Get-DemoObjects | Format-Table @{Width = 10; Name = "Name"; E = { $_.Name }},
                               @{Width = 15; Name = "Role";  E = { $_.Role }},
                               @{Width = 3; Name = "YIR";  E = { $_.Tenure }}

Everything is fine, until you add color, and suddenly things get over-truncated, and start sliding around.
Get-DemoObjects |
    Format-Table @{Width = 10; Name = "Name"; E = { (@("`e[32m", "`e[34m", "`e[33m", "`e[31m", "`e[33m", "`e[34m", "`e[32m")[[array]::BinarySearch(@(3, 5, 8), $_.Tenure)]) + $_.Name + "`e[39m"}},
                 @{Width = 15; Name = "Role";  E = { $_.Role }},
                 @{Width = 3; Name = "YIR";  E = { $_.Tenure }}

But it's even worse if you have more escape characters. If you get really unlucky, it can eat the whole text, completely. Other times, you get columns moving around so much they end up under the wrong heading and you can't make heads or tails of it. For my use case last week, imagine we had applied the same color formatting rule to three or four columns. Everything just looked ... random.
Get-DemoObjects |
    Format-Table @{Width = 10; Name = "Name"; E = { (@("`e[32m", "`e[34m", "`e[33m", "`e[31m", "`e[33m", "`e[34m", "`e[32m")[[array]::BinarySearch(@(3, 5, 8), $_.Tenure)]) + $_.Name + "`e[39m"}},
                 @{Width = 15; Name = "Role";  E = {
                                -join $(switch -regex ($_.Role){
                                        "Senior" { "`e[42m" }
                                        "Engineer" { "`e[1;33m" }
                                    }) + $_.Role  + "`e[0m"}},
                 @{Width = 3; Name = "YIR";  E = { $_.Tenure }}

Note that Format-Wide does the same thing, but it gets really weird sometimes. These columns overlap! What's even happening here?
(Get-DemoObjects) + (Get-DemoObjects) +
(Get-DemoObjects) + (Get-DemoObjects) +
(Get-DemoObjects) + (Get-DemoObjects) |
    Format-Wide @{E = { (@("`e[32m", "`e[34m", "`e[33m", "`e[31m", "`e[33m", "`e[34m", "`e[32m")[[array]::BinarySearch(@(3, 5, 8), $_.Tenure)]) + $_.Name + "`e[39m"}} -co 2| Out-String -Width 47

Technically, Format-List is not affected by this, but colors don't work there either, because when it wraps, the second line gets no formatting, which is really gross:

Workaround
For table formats, if you force the width of your columns, then you can write truncation in the format file. As long as the format doesn't output text that's too wide, the formatter won't need to truncate it (the miscalculation only affects the truncation, not the length measurement).

Also, @jhoneill the reason for the number of characters ... is that you're forgetting that it also removed the escape characters from the end of the string.
If we simplify my example:
Get-DemoObjects | Format-Table @{Width = 10; Name = "Name"; E = { "`e[33m" + $_.Name } },
                               @{Width = 15; Name = "Role"; E = { $_.Role }},
                               @{Width = 3;  Name = "YIR";  E = { $_.Tenure }}

Get-DemoObjects | Format-Table @{Width = 10; Name = "Name"; E = { "`e[1;33m" + $_.Name } },
                               @{Width = 15; Name = "Role"; E = { $_.Role }},
                               @{Width = 3;  Name = "YIR";  E = { $_.Tenure }}

We can clearly see that it's truncating the number of printable escape characters (i.e. not e but everything else). When I add 1;at the front, it truncates an extra 2 visible characters from the end. When I add[39m` on the end, it makes no difference, because the characters I added are the ones that get truncated.

Technically, Format-List is not affected by this, but colors don't work there either, because when it wraps, the second line gets no formatting, which is really gross:

@Jaykul Can you please also share the script for doing the list view shown in your comment? That would be helpful.

Technically, Format-List is not affected by this, but colors don't work there either, because when it wraps, the second line gets no formatting, which is really gross:

@Jaykul Can you please also share the script for doing the list view shown in your comment? That would be helpful.

It's basically the same as above, just with | Format-List:
Get-DemoObjects |
    Format-List @{Name = "Name"; E = { (@("`e[32m", "`e[34m", "`e[33m", "`e[31m", "`e[33m", "`e[34m", "`e[32m")[[array]::BinarySearch(@(3, 5, 8), $_.Tenure)]) + $_.Name + "`e[39m"}}

Because I didn't want to make up new data, I made the window very narrow (and may have increased the font size) to force the wrapping even though my text was really short 😉
Off topic, and just for the record:
@ninmonkey we talked about this on Discord, but just in case: The "?" in my prompt is due to a totally different bug in PSReadLine. It changes the color of the last character of your prompt as you type whenever the command isn't valid syntax, and if the last character is an extended character, and if your console encoding isn't set to UTF8, it screws up the character because it uses Console.Write (in my case, with OEM 437 encoding, that PowerLine arrow-block character isn't encodable).

@Jaykul Thanks for the follow-up. Yeah, I figured you might just resized the windows :) It's because the word wrapping utility methods don't take into account escape sequences. I opened #17261 to track that specific issue separately.

@daxian-dbw Thanks! :clap: 😄


Make the aoc join command a slash command.

Closes #64

Just minor comments, feel free to merge with or without them


Email Support

While most people have email, having a general set of boxes for events was useful. I would propose some guidance here for organizers, as well as some generic support in a framework or organization to allow email for events.

One org I work with creates temporary mailing lists for the length of the event (plus some time either side for padding). Mailing list software is mostly free, and we can assign event organizers as admins. Is that the kind of thing you had in mind?

One org I work with creates temporary mailing lists for the length of the event (plus some time either side for padding). Mailing list software is mostly free, and we can assign event organizers as admins. Is that the kind of thing you had in mind?

Yes. For many organizers, setting things up is difficult or cumbersome. While a few don't have any issues, lots want a turnkey solution, so the more we can provide in either detailed instructions or services, the more likely we are to grow the number of organizers.

Yes. For many organizers, setting things up is difficult or cumbersome. While a few don't have any issues, lots want a turnkey solution, so the more we can provide in either detailed instructions or services, the more likely we are to grow the number of organizers.


Trying to run this locally and getting error when i run "npm run regtest:up"

Hey I'm mostly a UI developer trying to run this locally to see how I can contribute.
I followed the steps on https://github.com/joinmarket-webui/jam/blob/master/CONTRIBUTING.md , but when i get to npm run regtest:up , I see this error:

Anybody know why this may be?

Hey @Jared-Dahlke, thanks for the heads-up.
Indeed.. I could reproduce this behaviour when trying to rebuild the setup.
Investigating!

Seems to be introduced with https://github.com/JoinMarket-Org/joinmarket-clientserver/pull/1396
In the dev environment, JM is built from the current master branch on purpose, so it is somewhat expected/accepted that things might break from time to time. Should be mitigated with https://github.com/joinmarket-webui/jam/pull/585 - would be able to try if that fixes the problem for you?

@theborakompanioni hmm for some reason I'm unable to checkout this branch. Will keep trying for a bit

@theborakompanioni I was able to just go in and change the 2 lines from your commit manually, now it seems to be working! Thank you for the help!


Startup crash if used with this modpack

So I tried installing this mod with this modpack, and it crashes at startup.


Authentication using Azure AD

My Cosmos DB account is secured with Azure AD RBAC roles and has local authentication disabled. Thus, you cannot use the master account keys and can only authenticate using Azure AD. This tool does not seem to support that scenario. When I try to open my Cosmos DB account, I get Error: Local Authorization is disabled. Use an AAD token to authorize all request It is unclear how to proceed, how would I let this extension use an AAD token?

When I try to manually attach an account, I get an error saying that the connection string requires an AccountKey

@sdebruyn Hello, I came across this while researching the same issue.
https://learn.microsoft.com/en-us/azure/search/search-howto-managed-identities-cosmos-db#prerequisites

At this time, Cognitive Search obtains keys with the identity and uses those keys to connect to the Azure Cosmos DB account. This means that enforcing RBAC as the only authentication method in Azure Cosmos DB isn't supported when using Search with managed identities to connect to Azure Cosmos DB.

It seems this is currently not supported.

This is fixed. RBAC is fully supported and if role assignment is missing the extension will provide guidance.


Add -c flag to force color output.

This is related to pull-request #1230

$ ninja -c
ninja: invalid option -- 'c'
usage: ninja [options] [targets...]

if targets are unspecified, builds the 'default' target (see manual).

options:
  --version  print ninja version ("1.8.1")

  -C DIR   change to DIR before doing anything else
  -f FILE  specify input build file [default=build.ninja]

  -j N     run N jobs in parallel [default=6, derived from CPUs available]
  -k N     keep going until N jobs fail [default=1]
  -l N     do not start new jobs if the load average is greater than N
  -n       dry run (don't run commands but act like they succeeded)
  -v       show all command lines while building

  -d MODE  enable debugging (use -d list to list modes)
  -t TOOL  run a subtool (use -t list to list subtools)
    terminates toplevel options; further flags are passed to the tool
  -w FLAG  adjust warnings (use -w list to list warnings)
  -c       force using color output

I tested the following to work, for me, while compiling chromium (with ninja):
modified to actually accept -c instead of fail
also don't return, but break instead! else other flags are ignored!

From 7d27df3873593f573515f3133ba7766d8d4fb262 Mon Sep 17 00:00:00 2001
From: Alexander Timin<EMAIL_ADDRESS>Date: Wed, 12 Apr 2017 14:11:48 +0100
Subject: [PATCH] Add -c flag to force color output.

---
 src/build.cc | 3 +--
 src/build.h  | 5 ++++-
 src/ninja.cc | 6 +++++-
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/build.cc b/src/build.cc
index a0c7ec882..f637ed15f 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -149,9 +149,8 @@ void BuildStatus::BuildEdgeFinished(Edge* edge,
     // (Launching subprocesses in pseudo ttys doesn't work because there are
     // only a few hundred available on some systems, and ninja can launch
     // thousands of parallel compile commands.)
-    // TODO: There should be a flag to disable escape code stripping.
     string final_output;
-    if (!printer_.is_smart_terminal())
+    if (!printer_.is_smart_terminal() && !config_.force_color_output)
       final_output = StripAnsiEscapeCodes(output);
     else
       final_output = output;
diff --git a/src/build.h b/src/build.h
index 66ce60767..0035a7cc2 100644
--- a/src/build.h
+++ b/src/build.h
@@ -124,7 +124,8 @@ struct CommandRunner {
 /// Options (e.g. verbosity, parallelism) passed to a build.
 struct BuildConfig {
   BuildConfig() : verbosity(NORMAL), dry_run(false), parallelism(1),
-                  failures_allowed(1), max_load_average(-0.0f) {}
+                  failures_allowed(1), max_load_average(-0.0f),
+                  force_color_output(false) {}

   enum Verbosity {
     NORMAL,
@@ -138,6 +139,8 @@ struct BuildConfig {
   /// The maximum load average we must not exceed. A negative value
   /// means that we do not have any limit.
   double max_load_average;
+  // Do not strip color marks even when writing to a non-terminal.
+  bool force_color_output;
 };

 /// Builder wraps the build process: starting commands, updating status.
diff --git a/src/ninja.cc b/src/ninja.cc
index 54de7b9f1..9661630af 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -212,7 +212,8 @@ void Usage(const BuildConfig& config) {
 "  -d MODE  enable debugging (use -d list to list modes)\n"
 "  -t TOOL  run a subtool (use -t list to list subtools)\n"
 "    terminates toplevel options; further flags are passed to the tool\n"
-"  -w FLAG  adjust warnings (use -w list to list warnings)\n",
+"  -w FLAG  adjust warnings (use -w list to list warnings)\n"
+"  -c       force using color output\n",
           kNinjaVersion, config.parallelism);
 }

@@ -1037,7 +1037,7 @@ int ReadFlags(int* argc, char*** argv,

   int opt;
   while (!options->tool &&
-         (opt = getopt_long(*argc, *argv, "d:f:j:k:l:nt:vw:C:h", kLongOptions,
+         (opt = getopt_long(*argc, *argv, "d:f:j:k:l:nct:vw:C:h", kLongOptions,
                             NULL)) != -1) {
     switch (opt) {
       case 'd':
@@ -1095,6 +1096,9 @@ int ReadFlags(int* argc, char*** argv,
       case OPT_VERSION:
         printf("%s\n", kNinjaVersion);
         return 0;
+      case 'c':
+        config->force_color_output = true;
+        break;
       case 'h':
       default:
         Usage(*config);

Looks good

I would love to see this merged. Is it just the conflict that needs to be resolved?

tiny nitpick:
shouldn't force using color output say instead something like preserve color output?
because what's relevant is not that ninja itself issues colorful output or colorizes uncolored output, but instead that the colors from gcc/clang/... do not get stripped off.

ignoring my previous comment, I resolved the conflict here CI.

@pseyfert have you tested it to work though? if it doesn't work, check out my patch:
https://github.com/ninja-build/ninja/pull/1268#issuecomment-328405287

@xftroxgpx good point, patched, thanks.

Any news on this? I'd really like to retain colored output from compilers when possible.
Other related PRs: #659, #1230


feat: add blockNumber

add blockNumber to write lastBlockNumber when transaction is received

Thanks for reviews
now merged!


WRR-6050: Fixed IconItem to restart marquee after done editing in Scroller with editable prop

Checklist

[x] I have read and understand the contribution guide
[x] A CHANGELOG entry is included
[ ] At least one test case is included for this feature or bug fix
[x] Documentation was added or is not needed
[ ] This is an API breaking change

Issue Resolved / Feature Added
When there is long label inside IconItem in editable Scroller, after done editing the marquee stops and it will never start again.
Resolution
When completing edit, the DOM changes its order and it makes the marquee stops. I guess it's from engine but unfortunately, I coundn't find the specific logic or part. As far as I investigate, JS code has nothing to do with stopping maruee.
To resolve this issue, I chose to let Marquee to invalidate its metrics to restart safely with invalidateProps of MarqueeDecorator. I've added order as invalidateProps and pass it to Marquee through IconItem in JSX so that let Marquee know when the editing is done.
For the case where the editing ended without DOM change, I removed unnecessary Spotlight.focus call added from https://github.com/enactjs/sandstone/pull/1550/files#diff-22d263c3907b8e109699fc727d876991ef576e0c70458dd2e6d59e014f7e426cR573-R574 to prevent stopping marquee.
I've confirmed that without the code the focus remains as is.
Additional Considerations
Currently there is no sample to test the problem. So you should change qa-sampler/IconItem.js to have label based on the change I made.
Links
WRR-6050
Comments
Enact-DCO-1.0-Signed-off-by: Mikyung Kim<EMAIL_ADDRESS>

We will revisit the dropped coverage issue later.

Due to removing Spotlight.focus, the other issue occurred when I tried to reproduce WRQ-8363 issue.
When editing complete by downkey while the pointer hovers on the next item, the long text disappear.


Make previous/next file/diff work with international keyboards (bug 889900)

See https://github.com/mozilla/zamboni/commit/350945c4a71d35252ce361baeb888e96413aa50b

r+

Thank you!


Fix #3 upgrade existing code to swift 3

WORK IN PROGRESS

Reference : https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/index.html#//apple_ref/doc/uid/TP40015214
Has now been updated to Swift 3 and Xcode 8.1

Code was updated as per new guide.
One minor thing.... the RatingControl stack view is missing some attributes in InterfaceBuilder.
Otherwise, everything seems to be working ok


Gender Detection

Is your feature request related to a problem? Please describe.
Gender Detection on live cameras.
Describe the solution you'd like
The detection is done using OpenCV and Keras.
Describe alternatives you've considered
This can be done on videos or on images.
Please assign me to work on this issue.

Add your Implementation inside Awesome face operations

HI I am GSSOS participant and I want to work on this issue with my partner
@akshitagupta15june

assigning

@akshitagupta15june  I am a GSOC , I would like to work on this issue

Assigning


Support emojis

I would like to render emojis embedded in the text.
I have made a proof-of-concept that works like this:

get the emojis as png from https://twemoji.twitter.com/ (they are also available as svg, but rendering svg is not trivial)
make a list of all supported emojis (by converting the hex-name of the icons to the string of the emoji : 1f3c3-200d-2640-fe0f.png => 🏃♀)
give a function as a parameter to RichText to recognize the supported emojis from the input text (in RichText.Add)
return the emojis with their coordinates from RichText.ToText (and replace its text with "" to prevent being it renderer as text)
Get the associated png file from the filesystem and draw it as an image on the context.
Example (ignore the strange newlines):

Since the emoji influence the position of the letters (computed in RichText), this requires a modification of the core (and Text has unexported fields, so a 3-rd party package can't work).
However the rendering of the emojis does not have to be in the core (only the identification of the "supported emojis" must be integrated) - so no dependency on twemoji.
Would you consider such an addition to the library or do you think that this is way out of scope?
I can show you in a draft PR if you want to take a closer look at the modifications that I made.

Background: I am using this project for a small german startup (https://www.bilderbrief.de/) and my customers would :heart:  to send emojis :wink:

Hey @oliverpool , that is a great idea! There are two separate things that come to my mind:

We should support inline images and paths in RichText
We should support SVG glyphs in SFNT fonts (this is where fonts keep their emoticons, see https://docs.microsoft.com/en-us/typography/opentype/spec/svg), however I'm not sure which fonts have them defined and which don't. Surely, you can load a font that has emoticons and add text runs to the RichText with that font (you can combine fonts in RichText)

Both should happen at some point, but the first is far more useful and versatile and can in the meantime be an alternative for the second. Parsing SVGs in SFNT fonts is a lot of work.
However, Text and RichText are being completely revamped in the next release, see the develop branch for a status on that. It has the following implemented: parsing SFNT fonts (TTF, OTF, WOFF, WOFF2, EOT), subsetting SFNT fonts, text shaping using HarfBuzz (ligatures, accents for Devanagari), text direction using FriBidi (combine arabic with latin), vertical text (Chinese, Japanese, ...), font features and variants (ligature and stylistic variants), text justification using Donald Knuth's algorithm as used in TeX, and some other bits. This is working for all output files (SVG, PDF, PNG, ...), however only the NewTextLine is implemented and not yet the RichText interface. The latter should not be a big piece of work though. The Text structure is greatly simplified. Please take a look at the branch to see the results, but adding emoticons would need a bit more work (not much) as well, and realistically that branch might get merged in a month of two.
If you want emoticon support soon, I suggest you create your own branch for now, or wait for the new branch to be merged. You could also push to master now, but there's little gain as the new branch will merge over your changes!

All right, I will maintain my own branch for now (https://github.com/tdewolff/canvas/compare/master...oliverpool:bilderbrief)
Feel free to ping me when the develop branch is finalized, so that I can check if everything still works fine for my usecases and look how I can integrate the emojis back (no hurry - it works fine for now :)

I've incorporated this issue in the new roadmap from where it will be tracked: #74

I'm interested in using this package (which is awesome by the way!) for rendering emojis inline with text and came across this issue where it seems that the groundwork has already been started to support this. Is there any appetite to get the changes merged into the upstream? Thanks

Hi Wei, this has already been merged and you can insert images or any
"canvas" online with text, please see the documentation of the RichText
struct ;-)
On Fri, Sep 1, 2023, 20:32 Wei Zhong Tan @.***> wrote:

I'm interested in using this package (which is awesome by the way!) for
rendering emojis inline with text and came across this issue where it seems
that the groundwork has already been started to support this. Is there any
appetite to get the changes merged into the upstream? Thanks
—
Reply to this email directly, view it on GitHub
https://github.com/tdewolff/canvas/issues/73#issuecomment-1703172284,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABKOGHT2SVX3RILAJWU55OTXYIS33ANCNFSM4XNDQC6A
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

For your information, see
https://github.com/tdewolff/canvas/wiki/Fonts-&-Text#images-paths-and-formulas-between-text
On Sat, Sep 2, 2023, 07:52 Taco de Wolff @.***> wrote:

Hi Wei, this has already been merged and you can insert images or any
"canvas" online with text, please see the documentation of the RichText
struct ;-)
On Fri, Sep 1, 2023, 20:32 Wei Zhong Tan @.***> wrote:

I'm interested in using this package (which is awesome by the way!) for
rendering emojis inline with text and came across this issue where it seems
that the groundwork has already been started to support this. Is there any
appetite to get the changes merged into the upstream? Thanks
—
Reply to this email directly, view it on GitHub
https://github.com/tdewolff/canvas/issues/73#issuecomment-1703172284,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABKOGHT2SVX3RILAJWU55OTXYIS33ANCNFSM4XNDQC6A
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


Remove type piracy

PR #97 temporarily introduces type piracy with Krylov.jl. It must be removed once https://github.com/JuliaSmoothOptimizers/Krylov.jl/pull/767 is merged, and before any release

Fixed by #100


preventDuplicates does not work for arrays

Not sure if this a bug or an intended specification, but for example if I pass this array to toastr:
["Username is required.", "'' is not a valid username.", "Email is required.", "'' is not a valid email."]
preventDuplicates = true does not work. To solve it I used join() to convert the array to string.

Can you provide a snippet of code to illustrate how you are using toastr to pass the array?

Hi John,
Thanks for the quick response. This my ajax call:
  $.ajax({
        type: 'POST',
        data: data,
        dataType: 'json',
        url: this.getAttribute('data-url'),
        headers: {
            Accept: "application/json; charset:utf-8"
        },
        success: function(response) {
            if (response.success === true) {
                if (response.message !== undefined) {
                    // convert array to string using join
                    if (response.message instanceof Array) {
                        response.message = response.message.join('
');
                    }

                    toastr.success(response.message, 'Success');
                }
            } else {
                console.log(response.message);
                // convert array to string using join
                if (response.message instanceof Array) {
                    response.message = response.message.join('
');
                }

                toastr.error(response.message, 'Error');
            }
        },
    });

As you see I used a workaround to convert array to string. And also this is console log output:
["Username is required.", "'' is not a valid username.", "Email is required.", "'' is not a valid email."]

Passing arrays as a message isn't a use case I've ever heard before. @iranianpep - I'm curious why you'd do this rather than forming a string for the toast manually, or create a toast for each string.

I return response.message as an array since it is more flexible to work with, specially for validation messages. Initially I was testing toastr by simply passing the array which still displayed the message, however spent some time figuring out why preventDuplicates didn't work. Like I said, now I implode the array and it works fine.


Get Difference of two points in line chart

(https://user-images.githubusercontent.com/24644623/34041382-e2f16b3c-e1bd-11e7-8d43-9cc8f09e180d.PNG)
In Image if  see first point is in red and second point is in green ,Lets say my First point is -62 and second is 282 so the graph raised by 220 pts so my profit is 220 , now third point , lets say 210 i.e in negative so (220-210) is 10 so loss is of 10  and so on . How to calculate this

@PriyankaBondarde you can do this before creating the chart
const dataValues = [10, 20, 15,...];
const pointColor = dataValues.map((v, i) => {
  const prev = i > 0 ? dataValues[i - 1] : Number.PositiveInfinity;
  return v > prev ? 'green' : 'red';
});

const data = {
  datasets: [{
    data: dataValues,
    pointBackgroundColor: pointColor,
  }]
};

i just want to get difference between two points


Digital corrections - LMS7002M driver hooks

Adding a new API call to LMS7002M that can lookup cached corrections in the database, perform interpolation between points, and apply the correction:
int ApplyDigitalCorrectionsFromCache(const bool isTx)
{
    //get the active channel ChA or ChB (chan)
    //get the current SXX/LO frequency (freq)
    //search the database for the nearest two points before and after freq, given chan, and isTx

    //no points found?
      return ReportError("Cant find entry in db for %f MHz on Rx channel A, etc..");

   //if (isTx)
  {
    //linear interpolate DC real correction, DC imag correction
    //linear interpolate IQ balance phase, and IQ balance gain
  }
  else
  {
    //linear interpolate IQ balance phase, and IQ balance gain
  }
}

using the new call in SoapyLMS7
The setFrequency() call will try to apply corrections for both channels after the LO is re-tuned. If the corrections do not have possible entries in the database, then a warning will be logged.

Added, and interpolation is handled
/*!
     * Store the digital corrections for the current channel.
     * The corrections are written to the calibration database.
     * This call is typically called by the self-cal utilities.
     * @param isTx true for transmit, false for receive
     * @return 0 for success otherwise an error code
     */
    int StoreDigitalCorrections(const bool isTx);

    /*!
     * Apply digital corrections for the current channel.
     * Lookup corrections in the calibration database
     * using the current synthesizer frequency. The call
     * will fail if a calibration point cannot be found.
     * @param isTx true for transmit, false for receive
     * @return 0 for success otherwise an error code
     */
    int ApplyDigitalCorrections(const bool isTx);


az container create --resource-group myResourceGroup --file test.yaml after using this command in cloudshell I am facing this error, can you please tell the issue

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az container create
Errors:
The command failed with an unexpected error. Here is the traceback:
'ResourcesOperations' object has no attribute 'create_or_update'
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/container/custom.py", line 113, in create_container
    return _create_update_from_file(cmd.cli_ctx, resource_group_name, name, location, file, no_wait)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/container/custom.py", line 407, in _create_update_from_file
    resource_client.resources.create_or_update,
AttributeError: 'ResourcesOperations' object has no attribute 'create_or_update'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az container create --resource-group {} --file {}

Expected Behavior
Environment Summary
Linux-5.4.0-1048-azure-x86_64-with-debian-10.2 (Cloud Shell)
Python 3.6.10
Installer: DEB

azure-cli 2.24.0 *

Extensions:
ai-examples 0.2.5
ssh 0.1.5

Additional Context

route to service team

Yes, this issue is duplicate with #18276, let's discuss in that issue~


Full Stack Capstone Kanban Board

For this project we created a Kanban board for the Full stack capstone project, for this project we 4 in our team.

Backend Kanban.

Frontend Kanban

Hi @belalgamal46,
Wow, you did it 🎉

Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
To highlight

All cards have been assigned, have descriptions, and have been pointed fairly ✔

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


more projection ?

could rio-tiler support other projection than WebMercator ?
the core function of rio-tiler takes bounds so basically in https://github.com/cogeotiff/rio-tiler/blob/d9e532a6454f71475f3056cbd2b0bfdb3bd9e497/rio_tiler/utils.py#L308 we could set whatever projection we need.
The main problem is going to come from the submodule tile function that takes web mercator ZXY indexes.
to do:

[x] add crs option to  _tile_read
[x] explore how to define other tilinng schema than web mercator

I've started something over #108, will love to have feedback before moving forward.

with #108 merged rio-tiler now support rendering a tile to any projection. The main problem is retrieving the correct tile bounds for any projection.
from rio_tiler.utils import tile_read

with rasterio.open(address) as src:
    def xy_bounds(x, y, z):
        # Equivalent function of mercantile.xy_bounds
        # return a bounding box for a projection (dst_crs)

    tile_bounds = xy_bounds(x=tile_x, y=tile_y, z=tile_z)
    return tile_read(src, tile_bounds, tilesize, dst_crs=dst_crs, **kwargs)

In rio-tiler we use Mercantile to convert any XYZ tile index to a WebMercator bounding box. There is no (from what I know) any equivalent module that support custom/local projection.
Docs
http://www.liedman.net/2012/07/02/local-projections-in-a-world-of-spherical-mercator/
http://www.liedman.net/tiled-maps/
https://wiki.osgeo.org/wiki/Tile_Map_Service_Specification#global-geodetic
https://github.com/DigitalGlobe/tiletanic
http://www.liedman.net/Proj4Leaflet/


Issue in converting the instance segmentation mask encoding from bdd100k to coco

Hello,
I am trying to convert the bdd100k instance segmentation using this command:
python3 -m bdd100k.label.to_coco -m ins_seg --only-mask -i ./bdd100k/labels/ins_seg/bitmasks/val -o ./ins_seg_val_cocofmt_v2.json
Also, tried this:
python3 -m bdd100k.label.to_coco -m ins_seg -i ./bdd100k/labels/ins_seg/polygons/ins_seg_val.json -o ./ins_seg_val_cocofmt_v3.json -mb ./bdd100k/labels/ins_seg/bitmasks/val
The conversion is successful in both cases and the annotation looks like this

** that's not how coco annotations are.
Now, if you see the segmentation field above there's string encoding of the masks. Now, I am unsure if that's expected or not.
Further, assuming it's correct,  I tried to load the annotations using loader from DETR https://github.com/facebookresearch/detr/blob/091a817eca74b8b97e35e4531c1c39f89fbe38eb/datasets/coco.py#L36
The line I have mentioned above is supposed to do the conversion but I am getting an error from the pycocotools that it's not expecting a string in the mask.

So, I am unsure where the problem is? Is the conversion correct to coco then the loader should work?
Note: I tried to convert the detections and they worked fine.
Thank you for any help you can provide.

Hello,
COCO supports many representations of masks, including polygons and RLE. The one we are using is RLE, which is a compact representation to avoid storing the entire mask. This is because we cannot convert bitmasks to polygons. From the error, it looks like your dataloader only can handle COCO polygons. There are two solutions:

Load the bitmasks directly as an image.
Use the below code to generate the mask given the RLE:

from pycocotools import mask as mask_utils
mask = mask_utils.decode(segmentation)

They will both return the same mask, but both requires you to change the dataloader code, unfortunately.
Hope that helps.

@thomasehuang Thank you so much! that works alright.


homebridge-tuya-switch and homebridge-tuya

I have several smart plugs and smart swiches and try to install homebridge-tuya-switch together with homebridge-tuya,  to get wortking all, but is not possible,  I get this error in homebridge log:
[4/17/2021, 8:00:28 PM] The requested platform 'TuyaLan' has been registered multiple times. Please be more specific by writing one of: homebridge-tuya.TuyaLan, homebridge-tuya-switch.TuyaLan
Any solution,
Regards,

Sorry, you can’t use these two plugins at the same time.
However as far as i know @iRayanKhan has implemented the functionality of this plugin to his plugin. At least i know that he merged my pull request. Try to use his plugin for switches the same way you use this plugin. If it doesn’t work. Go ahead and open an issue there.
Hope this helps.

Thought I added it in, I must have merged into the wrong branch.
I'll have it added Friday. Thanks!

I see it in the plugin, under lib/switchAccessory.js, is it not in 2.0.1?

any news about!

It exists in the plugin, I just have to update the schema. Please wait for the next update :)

Perfect! Thanks a lot! :-)


runchecker: fix no-sock build by conditioning clean up on the NO_SOCK symbol.

Fixes #15054

[ ] documentation is added or updated
[ ] tests are added or updated

Merged to master, thanks.


replace all with regex

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.96.2
OS Version: macOs 15.1.1 (24B91)
Steps to Reproduce:

replace all with regex, for example:  (?<=[,\(])\s*std::shared_ptr<([\w:]+)>(?=\s*\w+|\)|,) to const shared_ptr<$1>&
realDeal(std::shared_ptr <RemoteInfo> remote, std::shared_ptr <IMsg> msg) will be realDeal(const shared_ptr <RemoteInfo>& remote,const shared_ptr <RemoteInfo>& msg)

you're missing a space (?<=[,\(])\s*std::shared_ptr <([\w:]+)>(?=\s*\w+|\)|,)

you're missing a space (?<=[,\(])\s*std::shared_ptr <([\w:]+)>(?=\s*\w+|\)|,)

The spaces are miss added.

reopen

The spaces is miss added.

thank you for stating that you used SEARCH and not find
can confirm
dup:

https://github.com/microsoft/vscode/issues/234067


[$1000] Request Money: The name doesn’t update dynamically on a new workspace chat

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to dev on web chrome
Create a new workspace
Request money
First notice the workspace name on header, workspace message and the request money report
Now change the workspace name and notice that on the LHN and header, the workspace name gets updated dynamically. But if you see on the workspace welcome message and the request money report, the workspace name has not been updated dynamically (within the live chat)
Optional : Even if you refresh the page , the workplace welcome message will update the name, but still the request money report has not updated the workspace name

Expected Result:
In a new workspace chat, the changed workspace name should be updated on the welcome workspace chat message as well as on the request money report dynamically
Actual Result:
In a new workspace chat, the changed workspace name doesn't update on the welcome message as well as on the request money report
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: yes
Reproducible in production?: yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/bfa53cae-0d61-4b9c-9b40-b424a4775757
https://github.com/Expensify/App/assets/93399543/b18942c2-cff6-40de-b05e-7a6ce0220a4d
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685177191168879
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01402004259896cf6a
Upwork Job ID:<PHONE_NUMBER>421620224
Last Price Increase: 2023-06-26

I agree with @hungvu193's RCA and I think it is good to go.
But I would just like to clarify  with @MonilBhavsar @laurenreidexpensify  if we should just watch for name or any other info?

I agree. It's a duplicate. Hence I asked for other props. @MonilBhavsar we should close this one out.

@mananjadhav how's this a duplicate ? It's related to not updating workspace name on welcome message and request money. Whereas the other issue is related to images.

Okay if closed, I wanted to ask will I also be one of the reporters for this bug. Since if this issue wasn't reported, then it wouldn't have been solved on the same PR. Let me know your thoughts on this.😃😃

I also personally agree 👍

Yeah I agree too about the reporting bonus.

@mananjadhav @MonilBhavsar sounds like we're good to move forward with @hungvu193's proposal here?

This issue will be fixed in the PR - https://github.com/Expensify/App/pull/19750. As root causes for this issue and the PR's issue is similar.
@hungvu193 could you please add $ https://github.com/Expensify/App/issues/19847 to that PR so this issue is closed when the PR is merged.
Adding reviewing label here.

@alexpensify I am OOO til 19 June so am adding you as my BZ buddy to watch over this issue while I am out. thanks!

Yeah, I would also like to confirm if it is really needed?

Good point, the server also actually constructs the message, and it doesn't happen until we refresh the page. So we have two options here -

As per the proposal, don't use message.html here and construct the message client side using details from iou report object.
Load reportActions again when name is updated.
Do nothing. message.html is updated when user refreshes the page and they see updated workspace name.

@luacmartins @mountiny would like to have your thoughts as you worked on this part of the feature.

Hmm To some extent I feel like if this is fixed after refresh, renaming a workspace is such rare event we should be fine with do nothing

Are we thinking to close this GH or update the problem? Thanks!

@mananjadhav and @MonilBhavsar - can I get feedback here, thanks!:
https://github.com/Expensify/App/issues/19847#issuecomment-1585166900

@hungvu193 are you saying here that this issue is resolved by https://github.com/Expensify/App/issues/19847? If so, @laurenreidexpensify or @alexpensify - could we just pay out @hungvu193 again for this issue?

I edited the name of this GH based on this conversation:
https://expensify.slack.com/archives/C049HHMV9SM/p1686848305171109?thread_ts=1686741676.850389&cid=C049HHMV9SM
We still need to decide if we will remove usage of message.html or do nothing (backend will fix that issue).

Still in discussion

@laurenreidexpensify - I think you are back online again. We updated the title and had a discussion that this is not a dupe. We still need to decide whether to close or not. Could you let me know when you are taking over again and I can exit this party? Thanks!

@MonilBhavsar just circling back here = https://github.com/Expensify/App/issues/19847#issuecomment-1576504320 - was this fixed in that issue you mentioned?

@MonilBhavsar Bump ^^ thanks

Seeking an expert contributor to help - asking in slack

Hey. This Lucas from Callstack. I'm looking into this issue.

i'm will be presenting a proposal in our internal CS slack today

Thanks @lukemorawski 👍

@mananjadhav have sent C+ offer in Upwork

@lukemorawski is there a draft PR up for this one yet?

we are discussing it internally. Should have a draft today.

Proposal
Problem
When a user in the workspace creates a new money request and then changes the name of that workspace, name is updated in the header and in the workspace top notice, but it's not updated in the message that is the money request preview.
What is the root cause?
The problem is that messages are not automatically updated on device. The message that contains the name of the workspace and doesn't update is just a hardcoded string in the reportAction.message[number].text and reportAction.message[number].html.
What changes do you think we should make in order to solve the problem?
We can update it on the f/e (ways to do it in alternative solutions) but it won't update data on the be and this change won't be reflected on other devices.
The best way would be to update relevant messages on the BE when workspace (policy) name is updated. That should trigger changes on all connected devices and reportActions would update automatically.
What alternative solutions did you explore?

We could utilize ReportScreen's componentDidMount method to check if the policy name changed. If yes, then this could trigger an action, that would look for action reports based on current reportId, replace all occurrences of the old name with new name. Then merge the updated report action with the old ones.
The make sure we are only updating the right action messages, the updates would only be narrowed to reportActions with actionName set to REPORTPREVIEW. This won't work if the current screen is not the ReportScreen.

Better solution then the above but requiring more effort from the app is replacing the workspace name in messages when updateGeneralSettings from lib/actions/Policy fires. The problem is that in that case we don't know what is the id of the reportAction where those messages are. There are two ways of dealing with this problem.
Currently available one is just going through all reportActions and finding the occurrences of the old workspace name and changing it.
Another one, that would probably require changes on the BE, is to add policyID to reportAction object. That way we could quickly find the report where the messages are and update them.

@mananjadhav can you review ^^ the proposal above? thanks!

Hi, I am Michael (Mykhailo) from Callstack. I will take it over during Lucas is OOO.

Waiting for @mananjadhav to review proposal above

I don't see this being handled on App in an efficient way. @lukemorawski's proposal also suggest we do this on the backend.
Ideally the way I would've done is having policyId as @lukemorawski in the reportAction and not have the name stored in the message. I've also recommended then we close this one out if we don't prefer to handle this on the backend.
@MonilBhavsar wdyt?

I don't see this being handled on App in an efficient way. @lukemorawski's proposal also suggest we do this on the backend. Ideally the way I would've done is having policyId as @lukemorawski in the reportAction and not have the name stored in the message. I've also recommended then we close this one out if we don't prefer to handle this on the backend.
@MonilBhavsar wdyt?

Hi! As far as I understand you don't like the idea with the backend improvements, you do?
Is your favourite the second alternative solution with: Another one, that would probably require changes on the BE, is to add policyID to reportAction object...?

Another one, that would probably require changes on the BE, is to add policyID to reportAction object...?

I agree with the backend improvements and yes you're right this is better in the long run. What are thoughts @rezkiy37 ?

Another one, that would probably require changes on the BE, is to add policyID to reportAction object...?

I agree with the backend improvements and yes you're right this is better in the long run. What are thoughts @rezkiy37 ?

So, to sum up:

The backend adds policyID to a reportAction.
The app replaces the workspace name in messages when updateGeneralSettings from lib/actions/Policy fires.

Correct me if I am wrong 🙂

@mananjadhav Hi! What's your decision on this?

@MonilBhavsar can you review today pls :)

The backend adds policyID to a reportAction.
The app replaces the workspace name in messages when updateGeneralSettings from lib/actions/Policy fires.

Thanks, this makes sense. I'm curious how step 2 works. Will the component be remounted and all messages gets updated. Also, this is very different from how it works currently. So, I'll also raise it internally

The backend adds policyID to a reportAction.
The app replaces the workspace name in messages when updateGeneralSettings from lib/actions/Policy fires.

Thanks, this makes sense. I'm curious how step 2 works. Will the component be remounted and all messages gets updated. Also, this is very different from how it works currently. So, I'll also raise it internally

@MonilBhavsar Do you need some help from me here?

Yes please. I would like to know more about how we plan to use the policyID to generate the message. We'll also need a translation key or action indicator that says what message needs to be generated, correct?

We're also discussing here internally https://expensify.slack.com/archives/C03TQ48KC/p1689080689362209

Sorry, but this link does not work for me. Could you tag me there please: @Michael Kravchenko.

Yes please. I would like to know more about how we plan to use the policyID to generate the message. We'll also need a translation key or action indicator that says what message needs to be generated, correct?

AFAIK, we are not going to generate the new message. There are already existed messages. We just need to use an updated workspace name there.

Sorry my bad, that is in an internal channel 😓

AFAIK, we are not going to generate the new message. There are already existed messages. We just need to use an updated workspace name there.

sorry, I think I am not getting it. Currently, we display the message stored in report action object completely. And as per the proposal, we are thinking to pass policyID in reportAction object. We utilize that policyID, generate the message by getting corresponding policy(workspace name) and render the message. Is that correct?

Yes, this seems to have been fixed. I am curious, how? 😄

There's a PR that remove usage of message.html as I mentioned 🤦, I think we can close, can't reproduce anymore.
https://github.com/Expensify/App/blob/451096b4828cf9a9bc1b5b7be95a6d52e79c392d/src/components/ReportActionItem/ReportPreview.js#L109

Yes, you are right!

Awaiting payment here cc @laurenreidexpensify

@MonilBhavsar @laurenreidexpensify I would like to request a partial payment here. I spent time in reviewing and testing the proposals/bug. We went from merging from one issue to even exploring backend changes.

@mananjadhav that seems fair. As you are on the C+ payment beta can you work with @anmurali for payment of $500 for this job? Thanks

@priya-zha offer sent in upwork

@laurenreidexpensify I'll do that. Thanks. Appreciate it.

@laurenreidexpensify thanks, accepted.

@laurenreidexpensify @anmurali I've raised a request on NewDot for $500.

Approved $500 on New Dot for Manan

payment for @priya-zha actioned in upwork. Closing as all payments completed

Approved $500 to Manan based on https://github.com/Expensify/App/issues/19847#issuecomment-1639830229


[wip] Reload Table API to reload table data [rebased]

Same as #11183 but rebased.
I am still going through the design and testing so marking this as a WIP.

Codecov Report
Attention: 61 lines in your changes are missing coverage. Please review.

Comparison is base (d1cc17c) 61.53% compared to head (2e14a08) 46.41%.

Files
Patch %
Lines

...t/local/data/manager/TableDataManagerDelegate.java
0.00%
39 Missing :warning:

...ache/pinot/common/messages/TableReloadMessage.java
0.00%
13 Missing :warning:

...ache/pinot/common/metadata/ZKMetadataProvider.java
0.00%
4 Missing :warning:

...ent/local/data/manager/TableDataManagerConfig.java
0.00%
3 Missing :warning:

...mmon/metadata/controllerjob/ControllerJobType.java
0.00%
1 Missing :warning:

.../pinot/core/data/manager/BaseTableDataManager.java
50.00%
1 Missing :warning:

Additional details and impacted files
@@              Coverage Diff              @@
##             master   #12216       +/-   ##
=============================================
- Coverage     61.53%   46.41%   -15.12%
- Complexity      207      945      +738
=============================================
  Files          2416     1812      -604
  Lines        131177    95228    -35949
  Branches      20245    15353     -4892
=============================================
- Hits          80717    44203    -36514
- Misses        44570    47882     +3312
+ Partials       5890     3143     -2747

Flag
Coverage Δ

custom-integration1
?

integration
?

integration1
?

integration2
?

java-11
?

java-21
46.41% <3.17%> (-14.98%)
:arrow_down:

skip-bytebuffers-false
46.39% <3.17%> (-15.13%)
:arrow_down:

skip-bytebuffers-true
46.39% <3.17%> (-14.99%)
:arrow_down:

temurin
46.41% <3.17%> (-15.12%)
:arrow_down:

unittests
46.41% <3.17%> (-15.12%)
:arrow_down:

unittests1
46.41% <3.17%> (-0.21%)
:arrow_down:

unittests2
?

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Closing since we didn't find this to have sufficient RoI.


darwin: pthread/spawn.h gives unknown type name 'qos_class_t'

Issue description
When updating to Bazel 0.26, an #include <pthread/spawn.h> is added to blaze_util_darwin.cc. This results in darwin: pthread/spawn.h gives unknown type name. A workaround is used by including dispatch/dispatch.h instead.
This is the log:
In file included from src/main/cpp/blaze_util_darwin.cc:24:
/nix/store/mffyf74zc4h2wic5lwx0kyx7gvwif0c5-Libsystem-osx-10.12.6/include/pthread/spawn.h:65:34: error: unknown type name 'qos_class_t'; did you mean 'au_class_t'?
                                 qos_class_t __qos_class);
                                 ^
/nix/store/mffyf74zc4h2wic5lwx0kyx7gvwif0c5-Libsystem-osx-10.12.6/include/bsm/audit.h:176:19: note: 'au_class_t' declared here
typedef u_int32_t       au_class_t;
                        ^
In file included from src/main/cpp/blaze_util_darwin.cc:24:
/nix/store/mffyf74zc4h2wic5lwx0kyx7gvwif0c5-Libsystem-osx-10.12.6/include/pthread/spawn.h:88:34: error: unknown type name 'qos_class_t'; did you mean 'au_class_t'?
                                 qos_class_t * __restrict __qos_class);
                                 ^
/nix/store/mffyf74zc4h2wic5lwx0kyx7gvwif0c5-Libsystem-osx-10.12.6/include/bsm/audit.h:176:19: note: 'au_class_t' declared here
typedef u_int32_t       au_class_t;
                        ^
2 errors generated.

Tried to reproduce this with:
#include <sys/types.h>
#include <sys/resource.h>
#include <sys/sysctl.h>
#include <sys/socket.h>
#include <sys/un.h>

#include <libproc.h>
#include <pthread/spawn.h>
#include <signal.h>
#include <spawn.h>
#include <stdlib.h>
#include <unistd.h>

#include <cerrno>
#include <cstdio>
#include <cstring>

int ConfigureDaemonProcess(posix_spawnattr_t *attrp) {
  return posix_spawnattr_set_qos_class_np(attrp, QOS_CLASS_DEFAULT);
}

but did not get the same error! Need to investigate it further.

This sounds very strange; I just tested myself and clang -E pthread/spawn.h with the appropriate system directories set up does declare qos_class_t prior to any uses of it. All I can figure out is that (prior to including the headers) defining _ANSI_SOURCE or _POSIX_C_SOURCE (or defining _XOPEN_SOURCE with a value of 500L or greater) could cause this behavior, except I see no reason why any of these would be defined.


DDEV bound only to IPv4 interface?

Is there an existing issue for this?

[X] I have searched the existing issues

Run a Diagnostic and Paste Link Here
N/A
Current Behavior
In the DDEV Integration Plugin we got an issue, that the data source integration does not work for some linux distributions.
It looks like this issue is caused by ddev ports only bound to <IP_ADDRESS> but not to the IPv6 interface ::1.
Since the database is referenced by localhost:49354 this will resolve to ::1 in some Linux distributions.
The database can not be connected by the host.
Connecting by <IP_ADDRESS>:49354 works.
Expected Behavior
I would exepect to reach the database container by localhost:49354 from the host system.
Steps To Reproduce
I was not able to reproduce this issue on Windows, please find additional information in the original issue linked below.
Anything else?
Original Issue: https://github.com/php-perfect/ddev-intellij-plugin/issues/24

There hasn't been a request for IPv6 support before, but docker support for it is pretty uneven.
It's not supported at all on Docker Desktop at this point, https://github.com/docker/for-mac/issues/1432
It can be enabled on linux, see https://docs.docker.com/config/daemon/ipv6/
However, DDEV is completely naive about it, so I wouldn't expect it to work with DDEV on Linux
For now, I recommend using <IP_ADDRESS> instead of "localhost".

Thanks for your feedback @rfay!
As a workaround I will configure the plugin to prefer <IP_ADDRESS> over localhost.
Please note, that ddev describes suggests Host: localhost:49163 to connect the database from your host. As we just found out, this does not seem to work on IPv6 enabled devices which seems to be the default for some operating systems.
Also IPv6 support should be a longterm goal in my opinion.

Regarding the Docker Desktop Issue, I'm quite suprised that they do not support IPv6 but on systems using Docker Desktop this issue does not appear. Maybe it's the combination of enabled docker IPv6 support but not supported by DDEV, as everyone who had trouble with the plugin trying to connect to localhost was using native linux with native docker.

Actually, I think the problem you're seeing with the ambiguity of "localhost" is a common problem on systems that support ipv6; it's been a while but I've seen it before, and "localhost" is the worst of the problems. Browsers know how to handle multiple IPs on a name lookup and then try them, but other software may not.
I think it's reasonable, but not terribly urgent, to use "<IP_ADDRESS>" in ddev list and ddev describe.

I just went to work on this and can't find any instances where ddev list or ddev describe use localhost in their recommendations any more. Not sure if it was fixed elsewhere or what. Please let me know about remaining issues here.


17.09.2253.559ebb7ed02 image, both minimal and graphical, fail installation with: changing mode of '/nix/store/[...]-update-users-groups.pl' to 100444: Read-only file system

Issue description
The current iso cannot complete a nixos-install.
The issue has been reported by a couple users on IRC, and I was able to reproduce easily.
Known problematic isos:

https://d3g5gsiof5omrk.cloudfront.net/nixos/17.09/nixos-17.09.2253.559ebb7ed02/nixos-graphical-17.09.2253.559ebb7ed02-x86_64-linux.iso
https://d3g5gsiof5omrk.cloudfront.net/nixos/17.09/nixos-17.09.2253.559ebb7ed02/nixos-minimal-17.09.2253.559ebb7ed02-x86_64-linux.iso

nixos-install
[installation noise]
error: changing mode of '/nix/store/[...]-update-users-groups.pl' to 100444: Read-only file system
# echo $?
1

Steps to reproduce

Boot the image (VirtualBox is fine).
Create a partition (I did dos/mbr, full disk one parttion)
mkfs.ext4 -L nixos /dev/sda1 as in the manual
Mount it at /mnt as in the manual
nixos-generate-config --root /mnt as in the manual
edited the config for grub mbr boot, but this might not be necessary
nixos-install

Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.

This was manually transcribed, sorry if there are typos

 - system: x86_64-linux
 - host os: Linux 4.9.65, NixOS, 17.09.2253.559ebb7ed02 (Hummingbird)
 - multi-user?: no
 - sandbox: yes
 - version: nix-env (Nix) 1.11.15
 - channels(root): nixos-17.09.2253.559ebb7ed02
 - nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

Workaround
Use these (known working isos):

https://d3g5gsiof5omrk.cloudfront.net/nixos/17.09/nixos-17.09.2075.ac35504065/nixos-minimal-17.09.2075.ac35504065-x86_64-linux.iso
https://d3g5gsiof5omrk.cloudfront.net/nixos/17.09/nixos-17.09.2075.ac35504065/nixos-graphical-17.09.2075.ac35504065-x86_64-linux.iso

Using nixos-17.09.git.6b8833d-x86_64-linux.iso, built from the previously release channel worked. The issue should be from a change between 6b8833d and 559ebb7ed02

~/.../nixpkgs/nixos $ git rev-parse HEAD
559ebb7ed02f88ce8ed5ab38e849ad01cdbebcc8

Using this command:
nix-build -A config.system.build.isoImage -I nixos-config=modules/installer/cd-dvd/installation-cd-minimal.nix default.nix

The installation can complete.
Here are the nix-info for the system from which the working image was built. Don't know what factors could make it a different image, other than plain old corruption.
~/.../nixpkgs/nixos $ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 4.9.61, NixOS, 17.09.git.78eed74 (Hummingbird)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 1.11.15`
 - channels(samuel): `"unstable-18.03pre120398.aeff3080d0"`
 - nixpkgs: `/etc/nixos/nixpkgs`

I got this today when installing a clean system using the official image.

I feel like this issue should be merged or kept open until a test is available.

Another report on IRC, for unstable though, with unknown specific image.

Hydra-built 18.03pre121253 2f1a818d00 affected too.
https://d3g5gsiof5omrk.cloudfront.net/nixos/unstable/nixos-18.03pre121253.2f1a818d00/nixos-graphical-18.03pre121253.2f1a818d00-x86_64-linux.iso
I reproduced it the same way.
http://i.imgur.com/ylRIf2g.png

It's a wonder that nixos.tests.installer.simple passes when on my hydra (with update-users-groups.pl being writable among others) it fails just like the installer on the cdrom. Are the published images built on different hosts from those that run the tests?

I tried to compare machines that build nixos.iso_minimal and machines that run nixos.tests.installer.simple. These sets are almost disjoint (with wendy and <IP_ADDRESS> building and lucifer and packet-t2-4 testing), however occasionally the testing machines do build an iso, and the installer on the iso works, e.g. https://hydra.nixos.org/build/65178276 from two days ago.

On my system (Macbook 2,1 with coreboot) nixos-17.09.2253.559ebb7ed02 even don't boot.

17.09.2075.ac35504065 works.

This is a different issue, and looks like the problem with the media (incompletely written image, or bad USB connection).
According to the hypothesis that the only issue is rw files on some build machines, one of the latest good release-17.09 images is nixos-minimal-17.09.2241.f9390d652f9-x86_64-linux.iso made by lucifer in https://hydra.nixos.org/build/65100017, and indeed it works.

I suppose <IP_ADDRESS> is an EC2 machine built from the images before the commit https://github.com/NixOS/nixpkgs/commit/f5b3f2c5a7f2b51e80ac32fb47fd1d7d3e475ad1.

I pushed a hack (574526d510bbfabd66fc251ef6054604c8221ca3) that should prevent building ISOs with such bad paths.

Good idea to break invalid builders! It works. I have also confirmed that my hydra cluster that exhibits the same issue was deployed from the image with wrong permissions and times in /nix/store, and all the wrong paths existed from the moment of deployment.

I think we should fix the underlying problem on 17.09 as well.  Do you think it's better to have b8cc69b3 or f5b3f2c or something else?

I think they are already all cherry-picked, but the EC2 base images are still very old or something.

Right, the first way is picked.  I don't know why I didn't check that before posting :-/

@edolstra: apparently we would better regenerate EC2 images of Hydra build machines. (Or something like that; I doubt our permissions can do it.)

In any case, with the hack in nixpkgs now, the issue shouldn't be experienced in newly published images.

Well we still don't have an actual channel with working ISOs since the build job very frequently ends up on the EC2 nodes. So reopening until the problem is really gone.

So, after dozens of job-restart commands over several hours, I think all the four primary channels are now after your hack-fix commit. :tada:


Conditionally monitor cinder-backup service

The cinder-backup service behaves a little differently as the group
will always exist but the service is only started when the
cinder_service_backup_program_enabled variable is set to True.  As a
result, we remove the cinder-backup check from
openstack_service_local_checks_list and add it to a new variable called
cinder_backup_checks_list.  We then add a new task that adds the checks
in cinder_backup_checks_list conditional on a variable called
maas_monitor_cinder_backup.  The variable maas_monitor_cinder_backup
is assigned the value of cinder_service_backup_program_enabled.
Lastly, we update the deploy script to set
cinder_service_backup_program_enabled to true for testing purposes.
NOTE: the OSA AIO already sets cinder_service_backup_program_enabled to
true, however that user variable file is read first and has a lower
precedence than the other variable files.
Connected #1308
(cherry picked from commit f17699eef729f466861c93c30fb34317cb421404)
Conflicts:
rpcd/etc/openstack_deploy/user_variables.yml
scripts/deploy.sh

👍

👍


Camera take photo returns a file size 0

After I take a new photo, it gives me a photo file which size is 0.
This file is in the folder {packageNameSpace}/Photo/filename.jpg, the path returned onActivityResult like:
/storage/emulated/0/com.coostone.ht/Photo/IMG_20181103_105210.jpg
But the actual photo file is ok (in folder ../DCIM/Camera/filename.jpg)

sometimes onActivityResult return success but this photo did not save immediately


Typing error

Hi,
when I share terminal with my Visual Studio Code my collaborator receive weird characters while typing in terminal.

he want to type "exec chrome" but actually type some weirds characters

Ops! Wrong direction. This is Live Server, not Microsoft's live share.

Sorry, my fault.


Question how to create bi-direction lanelets

I want to create a lanelet which is Bi-directional. It is starting point, so I want to implement this so that the vehicle can leave and also come to the same place(lanelet).
I tried implementing by setting one_way to no. but the route compute is wrong.
please help me on this.

In principle using one_way=no in the attributes of the lanelet is the right way to go. But without any details it is hard to tell why it's not working for you.


Adding inverse transform and adding dev transform

Adding inverse transform function for transforming the output of trained neural network to the initial scale to be able to calculate errors like (MAE, MSE, RMSE).
Adding dev_transform function to transform the test set in the scale of training set to avoid data leakage.
these two functions use the .csv file that is returned by normal_seq function.

Maybe it could be good in the csvs file to put a column with the name of the signals just to check it afterword.


[fix][misc] Unable to connect an etcd metastore with recent releases due to jetc-core sharding problem

Fixes #23513
With recent pulsar releases, it raise NoClassDefFoundError if setup with a etcd metadata.
docker run -it --rm apachepulsar/pulsar:4.0.0 bin/pulsar standalone --metadata-url etcd:http://a-etcd:2379
docker run -it --rm apachepulsar/pulsar:3.0.6 bin/pulsar standalone --metadata-url etcd:http://a-etcd:2379

Motivation
The jetcd-core-shaded module was introduced in #22892 to address the compatibility issues between jetcd-core’s grpc-java dependency and Netty. You can find more details here and in the grpc-java documentation.
Currently, we use unpack-shaded-jar execution unpacks the shaded jar produced by maven-shade-plugin:shade into the jetcd-core-shaded/target/classes directory. However, the classes in this directory conflict with its dependencies. If the maven-shade-plugin:shade runs again without cleaning this directory, it can produce an incorrect shaded jar. You can replicate and verify this issue with the following commands:
# Step 1: Clean the build directory
mvn clean

# Step 2: Perform an install and unpack the shaded jar into a directory.
# Verify the import statement for `io.netty.handler.logging.ByteBufFormat` in
# `org/apache/pulsar/jetcd/shaded/io/vertx/core/net/NetClientOptions.class`.
# The correct import should be:
# `import io.grpc.netty.shaded.io.netty.handler.logging.ByteBufFormat;`.
mvn install
unzip $M2_REPO/org/apache/pulsar/jetcd-core-shaded/4.1.0-SNAPSHOT/jetcd-core-shaded-4.1.0-SNAPSHOT-shaded.jar \
  -d jetcd-core-shaded/target/first-classes

# Step 3: Run the install command again without cleaning.
# The unpacked jar from the previous step will persist in `jetcd-core-shaded/target/classes`.
# Unpack the shaded jar into a different directory (e.g., second-classes) and check the import.
# The incorrect import will be:
# `import io.grpc.netty.shaded.io.grpc.netty.shaded.io.netty.handler.logging.ByteBufFormat;`.
mvn install
unzip $M2_REPO/org/apache/pulsar/jetcd-core-shaded/4.1.0-SNAPSHOT/jetcd-core-shaded-4.1.0-SNAPSHOT-shaded.jar \
  -d jetcd-core-shaded/target/second-classes

# Step 4: Use IntelliJ IDEA's "Compare Directories" tool to compare the `first-classes`
# and `second-classes` directories. The differences in imports should become apparent.

A simpler solution is to remove the configurations related to attach and unpack. IntelliJ IDEA assumes the shaded jar path is target/${artifactId}-${version}.jar. However, in Pulsar’s build system, the finalName is set to just ${artifactId} in the parent pom.xml. While I’m unsure of the reasoning behind this setup, we can override the finalName in jetcd-core-shaded/pom.xml. This is the approach I’ve taken in this patch.
Verifying this change
This issue typically cannot be detected by CI tests, as CI environments always run in a clean workspace. To address this, we could refine our release guidelines to include a step for cleaning the workspace before deploying artifacts. Additionally, incorporating automated checks into the release validation process could help catch such issues early.
Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] The metrics
[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository: https://github.com/Shawyeok/pulsar/pull/18

A simpler solution is to remove the configurations related to attach and unpack. IntelliJ IDEA assumes the shaded jar path is target/${artifactId}-${version}.jar. However, in Pulsar’s build system, the finalName is set to just ${artifactId} in the parent pom.xml. While I’m unsure of the reasoning behind this setup, we can override the finalName in jetcd-core-shaded/pom.xml. This is the approach I’ve taken in this patch.

Thank you, @Shawyeok! Great work. How did you find out that IntelliJ expects this format? Could we remove overriding of finalName in pom.xml so that we'd use the default everywhere? It seems that the finalName was overridden already in the initial commit of Pulsar.

@Shawyeok Please submit a similar change to BookKeeper since there's a similar solution to shade jetcd-core in metadata-drivers/jetcd-core-shaded/pom.xml.

@lhotari

How did you find out that IntelliJ expects this format?

There is a silent error in the pulsar-metadata module dependencies, which I discovered by coincidence.

Could we remove overriding of finalName in pom.xml so that we'd use the default everywhere? It seems that the finalName was overridden already in the initial commit of Pulsar.

I tried once, but other configurations depend on the current finalName setting, such as:
https://github.com/apache/pulsar/blob/81385c5f971913f841d5637c7b8e103138fd76cc/distribution/server/src/assemble/bin.xml#L89-L89
I wasn’t sure what was beneath the surface :-) , so I opted for a conservative approach.

@Shawyeok Please submit a similar change to BookKeeper since there's a similar solution to shade jetcd-core in metadata-drivers/jetcd-core-shaded/pom.xml.

Sure, will do it tomorrow.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 74.35%. Comparing base (bbc6224) to head (8cb145a).
Report is 731 commits behind head on master.

Additional details and impacted files

@@             Coverage Diff              @@
##             master   #23604      +/-   ##
============================================
+ Coverage     73.57%   74.35%   +0.78%
- Complexity    32624    34443    +1819
============================================
  Files          1877     1944      +67
  Lines        139502   147127    +7625
  Branches      15299    16225     +926
============================================
+ Hits         102638   109398    +6760
- Misses        28908    29293     +385
- Partials       7956     8436     +480

Flag
Coverage Δ

inttests
27.57% <ø> (+2.98%)
:arrow_up:

systests
24.40% <ø> (+0.08%)
:arrow_up:

unittests
73.72% <ø> (+0.87%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.
see 656 files with indirect coverage changes


updated the URL to connect to the database

I updated the URL to connect to the database. When I use a Clickhouse database with no password and only the default user default, I cannot connect to Clickhouse.

Checklist

[ ] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
[ ] Links to related issues (if applicable)
[ ] Tests for the changes have been added/updated (if applicable)
[ ] Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
[ ] For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

When I ingest a mysql data source and don't have a password, I can use this connection(sql_alchemy_url=mysql+pymysql://root:@ip:4000/hui) to do the metadata ingestion

and when ingesting a ClickHouse data source, using a connection(clickhouse://default:@ip:8123) can still be successful

For clickhouse data sources you can have a try without password。
scheme: clickhouse


feat(learn): python certification projects (#38216)

Co-authored-by: Oliver Eyton-Williams<EMAIL_ADDRESS>Co-authored-by: Kristofer Koishigawa<EMAIL_ADDRESS>Co-authored-by: Beau Carnes<EMAIL_ADDRESS>Checklist:

[ ] I have read freeCodeCamp's contribution guidelines.
[ ] My pull request has a descriptive title (not a vague title like Update index.md)
[ ] My pull request targets the master branch of freeCodeCamp.
[ ] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

Closes #XXXXX

Hi, I'm closing this, as it looks like it was opened by accident.


ci: install prebuilt cargo-careful

use taiki-e/install-action@cargo-careful to avoid compiling cargo-careful

Right you are, my bad. Rolled this back to just do the cargo-careful change.


change button flow on bill.js (single bill view)

The buttons are currently like this

instead have only 2 buttons "Status" and "CoSponsors" and have a "History" button in the status modal that calls the history modal.


Create CRUD for Roles

See #100 - working with @calebthompson

Duplicate ticket. Closing out  - see #373


Unable to import a rest project

I have a castlemock instance which have 2 projects (soap and rest), I exported the projects and save it in my device.
I created another  instance without any projects, when i want to import the exported projects, soap project is working good and the rest project couldn't be imported.

What is the error?


NotificationSubscription.Context.MO does not work as intended

Hi,
when I try to subscribe using CreateSubscription from "NotificationSubscription.cs", the generated "NotificationSubscription" body as input parameter looks like this:
{
  "context": "MO",
  "source": {
    "id": "wonderfulID"
  },
  "subscription": "Subscription",
  "subscriptionFilter": {
    "api": [
      "events"
    ],
    "typeFilter": "c8y_LoriotUplinkRequest"
  }
}

It does not correctly convert the context, it seems that it does not use the "[EnumMember(Value = "mo")]" of enum "Context".
Anyway, when I change the enum "MO" to "mo" in "NotificationSubscription.cs"
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum Context
{
	[EnumMember(Value = "mo")]
	mo,
	[EnumMember(Value = "tenant")]
	tenant
}

it works:
{
  "context": "mo",
  "source": {
    "id": "wonderfulID"
  },
  "subscription": "Subscription",
  "subscriptionFilter": {
    "api": [
      "events"
    ],
    "typeFilter": "c8y_LoriotUplinkRequest"
  }
}

EnumMember annotation is not taken into account.

Works with Newtonsoft.Json. However, we won't like to add this dependency in this repository.

Ok, I will test it

We've written a custom converter. Seems that the System.Runtime.Serialization attributes are ignored by System.Text.Json.
Let you know once it's in here.

@definitelyNotACatfish Please see the latest commit. We've added a converter factory for enums taken the serialised name into account.