data-href works, but data-srcset and data-sizes does not

<a
    class="progressive replace"
    data-srcset="https://unsplash.it/320/200?image=1 800w, https://unsplash.it/2560/1600?image=1 1200w"
    data-sizes="100vw"
    data-caption="https://unsplash.it/2560/1600?image=1"
>
    <img
        src="https://unsplash.it/64/40?image=1"
        class="preview"
        loading="lazy"
        alt="image" />

The above isn't working for me. Only the 64x40 <img> loads.
Also had no errors in the browser console log. Any ideas what the issue might be?

You've not used an href (or data-href) to a default image in your <a> element. That's still required.

@craigbuckler Got it thanks!


Request/Question

Is it possible to do something like gdrive delete PACKT_EBOOKS/!(*.zip) in order to delete every single file which is not a .zip file?

That’s going to be a bash question, not really a question about gdrive because your shell, not gdrive, is what does the wildcard expansion.

@notaduck This is a real answer to your question.
Just follow https://unix.stackexchange.com/questions/78376/in-linux-how-to-delete-all-files-except-the-pattern-txt, using gdrive instead of rm:
find . -type f ! -name '*.zip' -exec gdrive delete {} \;

@notaduck My previous comment was probably not helpful because I misinterpreted your question, but I don't think it's possible to do what you're asking. It would also be convoluted to implement.

Fair enough, but still a big thank your time!


onVideoTaken is not being called

Is this a bug report?
Yes
Have you read the Contributing Guidelines?
No
Environment
Android OS 7.0
Device  Moto G4 Plus
Steps to Reproduce
startRecordingVideo and then stopRecordingVideo but it didn't callonVideoTaken at all.
However, capturing image does call onPictureTaken
Steps:

start recording
stop recording
deug to see if returns to method onVideoTaken

Expected Behavior
It should call onVideoTaken with a file.
Actual Behavior
onVideoTaken is not being called at all.

My code is ```mCameraView.setCameraListener(new CameraListener() {
@Override
public void onCameraOpened() {
super.onCameraOpened();
}
        @Override
        public void onCameraClosed() {
            super.onCameraClosed();
        }

        @Override
        public void onPictureTaken(byte[] picture) {
            super.onPictureTaken(picture);
            // Create a bitmap
            Bitmap result = BitmapFactory.decodeByteArray(picture, 0, picture.length);
        }

        @Override
        public void onVideoTaken(File video) {
            super.onVideoTaken(video);
            Toast.makeText(getActivity(), "Wow!", Toast.LENGTH_SHORT).show();
        }
    });
    mButtonRecord.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            if (mButtonRecord.getText().toString().equalsIgnoreCase("start")) {
                mButtonRecord.setText("stop");
                mCameraView.captureImage();
            } else if (mButtonRecord.getText().toString().equalsIgnoreCase("stop")) {
                mButtonRecord.setText("start");
                mCameraView.stopRecordingVideo();
            }
        }
    });```

I can reproduce this on a Nexus 5X with 8.1 and a Nexus 6 with 7.1.1. Same results with start and stop callbacks and onPictureTacken callback, but not onVideoTaken.

Try to give permission to storage. It's help for me

Can still reproduce with storage permission granted

From what I could see, it seems the issue is caused by the camera capture requiring a "cached video" while recording, but it only checks for an option to save the temp video in an external storage in the prepareMediaRecorder() method of Camera1 (Camera1.java):
private File getVideoFile() {
    if (!Environment.getExternalStorageState().equalsIgnoreCase(Environment.MEDIA_MOUNTED)) {
        return null;
    }

    File mediaStorageDir = new File(Environment.getExternalStorageDirectory(), "Camera");

    if (!mediaStorageDir.exists()) {
        if (!mediaStorageDir.mkdirs()) {
            return null;
        }
    }

    return new File(mediaStorageDir.getPath() + File.separator + "video.mp4");
}

I made a minor workaround - didn't test all cases, but if you add a Context to the constructing method of Camera1 and use it in CameraView.java file:
mCameraImpl = new Camera1(getContext(), mEventDispatcher, mPreviewImpl);
You can then look for the internal storage directory as-well in the getVideoFile method this way:
private File getVideoFile() {
    if (!Environment.getExternalStorageState().equalsIgnoreCase(Environment.MEDIA_MOUNTED)) {
        return null;
    }

    File mediaStorageDir = new File(Environment.getExternalStorageDirectory(), "Camera");
    boolean missingDir = false;

    if (!mediaStorageDir.exists()) {
        if (!mediaStorageDir.mkdirs()) {
            missingDir = true;
        }
    }

    if (missingDir)
    {
        mediaStorageDir = new File(ctx.getFilesDir(), "Camera");

        if (!mediaStorageDir.exists()) {
            if (!mediaStorageDir.mkdirs()) {
                return null;
            }
        }
    }

    return new File(mediaStorageDir.getPath() + File.separator + "video.mp4");
}

And then the video works.
Not sure if its the best way to do it though

I'm having this same issue. Camera1 is only looking at external storage

Same issue

This issue will be covered with the video implementation in v1.0.0. Expecting a beta release including videos support shortly. Closing this issue, if there are still storage concerns I will create a new ticket for the 1.0.0 release!


Process is terminating due to StackOverflowException with custom provider on PSModulePath

Steps to reproduce
$path = '~/code'
pushd $path
Install-module SHiPS
git clone https://github.com/DarqueWarrior/vsteam.git
$env:PSModulePath += ";$((resolve-path $path).path)"
Import-module vsteam -verbose
Add-TeamAccount -Account <YourVSTSAccountNameOnly> -Drive <DesiredDrive> -Verbose
# Enter your Personal Access Token to VSTS Account

Expected behavior
# Drive will be added
Set-Location <DesiredDrive>:
ls

Actual behavior
Process is terminating due to StackOverflowException.

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.0-rc
PSEdition                      Core
GitCommitId                    v6.0.0-rc
OS                             Microsoft Windows 10.0.16299
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Workaround
Do not add module path to PSModulePath and the steps below will work.
$path = '~/code'
pushd $path
Install-module SHiPS
git clone https://github.com/DarqueWarrior/vsteam.git
Import-module ./vsteam -verbose
Add-TeamAccount -Account <YourVSTSAccountNameOnly> -Drive <DesiredDrive> -Verbose
# Enter your Personal Access Token to VSTS Account
# Drive will be
Set-Location <DesiredDrive>:
ls

This repros in Windows PowerShell 5.1 so it's not due to any changes we've made in PSCore6

My hypothesis is that the VSTeam module calls into SHiPs module which in turn calls VSTeam module, etc... until stack runs out.  cc @jianyunt

I was able to replicate the error in 5.1 as well.  @DarqueWarrior we never tested with the module on psmodulepath with Windows 5.1 - only loading from off psmodulepath.

Something is "wrong" in the steps below so I cannot repro it?
cd E:\azure
git clone https://github.com/DarqueWarrior/vsteam.git
PS E:\azure> install-module ships
PS E:\azure> cd E:\azure\vsteam
PS E:\azure\vsteam> ipmo ships
PS E:\azure\vsteam> $path="e:\azure"
PS E:\azure\vsteam> $((resolve-path $path).path)
E:\azure
PS E:\azure\vsteam> $env:PSModulePath += ";$((resolve-path $path).path)"
PS E:\azure\vsteam> $env:PSModulePath
C:\Users\jianyunt\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Progr
m Files (x86)\Microsoft Azure Information Protection\Powershell;E:\azure
PS E:\azure\vsteam> Import-module vsteam
PS E:\azure\vsteam> gmo vsteam | fl

Name              : vsteam
Path              : E:\azure\vsteam\vsteam.psd1
Description       : Adds functionality for working with Visual Studio Team Services and Team Foundation Server.
ModuleType        : Manifest
Version           : 2.0.0
NestedModules     : {team, git, Approvals, buildDefinitions...}
ExportedFunctions : {Add-VSTeam, Add-VSTeamAccount, Add-VSTeamAzureRMServiceEndpoint, Add-VSTeamBuild...}
ExportedCmdlets   :
ExportedVariables : VSTeamVersionTable
ExportedAliases   : {Add-AzureRMServiceEndpoint, Add-Build, Add-BuildDefinition, Add-BuildTag...}

PS E:\azure\vsteam> New-PSDrive -Name vs -PSProvider SHiPS -Root 'VSTeam#VSAccount' -Scope Global -verbose
VERBOSE: Performing the operation "New drive" on target "Name: vs Provider: Microsoft.PowerShell.SHiPS\SHiPS Root: VSTeam#VSAccount".
VERBOSE: import-module VSTeam; get-module VSTeam -verbose
VERBOSE: E:\azure\vsteam\vsteam.psd1
VERBOSE: using module 'E:\azure\vsteam\vsteam.psd1'; $mod=get-module VSTeam; &($mod){[VSAccount]::new('VSAccount')}

Name           Used (GB)     Free (GB) Provider      Root                                                                                CurrentLocation
----           ---------     --------- --------      ----                                                                                ---------------
vs                                     SHiPS         VSTeam#VSAccount

We have related Issues with discussions about reloading nested modules.

@jianyunt it doesn't repro if you call new-psdrive outside of the module.  it only overflows if new-psdrive is called within the module:
add-teamaccount -account foo -personal bar -drive vs

The goal was to offer a much easier way to add a drive using the -Drive parameter. As @SteveL-MSFT explained if called separately it works fine.  I never remember how to call New-PSDrive and have to look it up so I wanted to save the users of VSTeam from the same issue by simply doing it for them with -Drive.
The part that confuses me is the fact that if the module is not on PSModulePath everything works but if it is it breaks.

cc @HemantMahawar

It looks like there is a circular dependency in handling nestedmodudule (VSTeam=>Team=>VSTeam) if the module path is in the psmodulepath.  The problem has been there in Windows PowerShell too.
Details:
The infinite loop is in the  GetExportedTypeDefinitions. While new-psdrive, the SHiPS calls “import-module VSTeam; get-module VSTeam” via the PowerShellprovider.SessionState.InvokeCommand.InvokeScript().
Here is my findings about why loading vsteam module from local path works but it does not if under psmodulepath.

Import-module vsteam from a local path. This case works fine. From my watch window, you can see VSTeam has a nestedmodule, Team but it has no nestedmodules.

While VSTeam module is in the psmodulepath, from the debugger you can see VSteam has NestedModule, Team, which a nestedmodule, VSTeam, which is causing module loading infinitely.

 Stack
System.Management.Automation.dll!System.Management.Automation.PSModuleInfo.GetExportedTypeDefinitions() Line 580 (e:\powershell\src\System.Management.Automation\engine\Modules\PSModuleInfo.cs:580)
System.Management.Automation.dll!System.Management.Automation.AnalysisCache.CacheModuleExports(System.Management.Automation.PSModuleInfo module, System.Management.Automation.ExecutionContext context) Line 465 (e:\powershell\src\System.Management.Automation\engine\Modules\AnalysisCache.cs:465)
System.Management.Automation.dll!Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingModulePath(System.Management.Automation.PSModuleInfo parentModule, bool found, System.Collections.Generic.IEnumerable<string> modulePath, string name, System.Management.Automation.SessionState ss, Microsoft.PowerShell.Commands.ModuleCmdletBase.ImportModuleOptions options, Microsoft.PowerShell.Commands.ModuleCmdletBase.ManifestProcessingFlags manifestProcessingFlags, out System.Management.Automation.PSModuleInfo module) Line 345 (e:\powershell\src\System.Management.Automation\engine\Modules\ModuleCmdletBase.cs:345)
System.Management.Automation.dll!Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingModulePath(bool found, System.Collections.Generic.IEnumerable<string> modulePath, string name, System.Management.Automation.SessionState ss, Microsoft.PowerShell.Commands.ModuleCmdletBase.ImportModuleOptions options, Microsoft.PowerShell.Commands.ModuleCmdletBase.ManifestProcessingFlags manifestProcessingFlags, out System.Management.Automation.PSModuleInfo module) Line 276 (e:\powershell\src\System.Management.Automation\engine\Modules\ModuleCmdletBase.cs:276)
System.Management.Automation.dll!Microsoft.PowerShell.Commands.ImportModuleCommand.ImportModule_LocallyViaName(Microsoft.PowerShell.Commands.ModuleCmdletBase.ImportModuleOptions importModuleOptions, string name) Line 708 (e:\powershell\src\System.Management.Automation\engine\Modules\ImportModuleCommand.cs:708)
System.Management.Automation.dll!Microsoft.PowerShell.Commands.ImportModuleCommand.ProcessRecord() Line 1731 (e:\powershell\src\System.Management.Automation\engine\Modules\ImportModuleCommand.cs:1731)
System.Management.Automation.dll!System.Management.Automation.Cmdlet.DoProcessRecord() Line 177 (e:\powershell\src\System.Management.Automation\engine\cmdlet.cs:177)
System.Management.Automation.dll!System.Management.Automation.CommandProcessor.ProcessRecord() Line 360

Repro steps
cd E:\azure\vsteam
Import-module SHipS
$path="e:\azure"
$((resolve-path $path).path)
$env:PSModulePath += ";$((resolve-path $path).path)"
Import-module VSTeam -verbose
$secure=convertTo-SecureString "htbaixci3me7dag364fgp2hccdgzh6zznrvhvfgjzkxrrtmwpa" -AsPlainText -Force
Add-TeamAccount -Account http://<IP_ADDRESS>:8080/tfs/DefaultCollection -Drive vss -verbose -SecurePersonalAccessToken $secure

Recommended workaround:
I think by separating teamspsdrive from vsteam module will likely workaround the problem.

Looking at the code in GetExportedTypesDefinitions, it appears to be a TODO to handle circular dependencies and caching nested module types.  We should fix this in 6.1, but existing usage will need to use the workaround particularly if targeting Windows PowerShell 5.1 as well.

I just want to confirm that the circular dependencies are implicit and not explicit correct? I don't see where I am referencing the two modules against each other explicitly.

@DarqueWarrior yes, it is implicit due to how SHiPS calls back into the module to access the class since we don't supported exposing classes via ExportedTypes yet.

Was this issue fixed in https://github.com/PowerShell/PowerShell/pull/6843?


feat: structural mutual recursion

This adds support for mutual structural recursive functions.
For now this is opt-in: The functions must have a termination_by structural … annotation (new since #4542) for this to work:
mutual
inductive A
  | self : A → A
  | other : B → A
  | empty
inductive B
  | self : B → B
  | other : A → B
  | empty
end

mutual
def A.size : A → Nat
  | .self a => a.size + 1
  | .other b => b.size + 1
  | .empty => 0
termination_by structural x => x
def B.size : B → Nat
  | .self b => b.size + 1
  | .other a => a.size + 1
  | .empty => 0
termination_by structural x => x
end

The recursive functions don’t have to be in a one-to-one relation to a set of mutually recursive inductive data types. It is possible to ignore some of the types:
def A.self_size : A → Nat
  | .self a => a.self_size + 1
  | .other _ => 0
  | .empty => 0
termination_by structural x => x

or have more than one function per argument type:
  def isEven : Nat → Prop
    | 0 => True
    | n+1 => ¬ isOdd n
  termination_by structural x => x

  def isOdd : Nat → Prop
    | 0 => False
    | n+1 => ¬ isEven n
  termination_by structural x => x

This does not include

Support for nested inductive data types or nested recursion
Inferring mutual structural recursion in the absence of termination_by.
Functional induction principles for these.
Mutually recursive functions that live in different universes. This may be possible,
maybe after beefing up the .below and .brecOn functions; we can look into this some
other time, maybe when there are concrete use cases.

I am new to this, but is there a corresponding mathlib branch for this?

Yes, branch lean-pr-testing-4575 on mathlib exists for that purpose! It is a bit behind, so not sure if it will have a valid cache.
Or you just create a project that doesn't use mathlib and use break it? You can use leanprover/lean4-pr-releases:pr-release-4575` as the lean-toolchain.

The build seems broken: https://github.com/leanprover-community/mathlib4/tree/lean-pr-testing-4575

Ah, this is due to #4632. I’ll fix manually.

@tobiasgrosser, took a while, but it seems we have a working mathlib branch.

I moved our codebase to this PR: https://github.com/opencompl/lean-mlir/pull/431.
It fails with failed to generate equational theorem for 'Lets.denote'.

It shouldn't, but I had to extend other pieces of the code, so maybe made a mistake there. You could try the mathlib tag nightly-testing-2024-07-05 first to see if it is due to my PR or some other change.

The issue does not arise in nightly-testing-2024-07-05. I just pushed my update (https://github.com/opencompl/lean-mlir/pull/432) and will rebase the mutual-recursion PR as soon it is merged.

Thanks for the analysis, I’ll search for the bug early next week at the latest.

I have a fix/workaround for your code:
diff --git a/SSA/Core/Framework.lean b/SSA/Core/Framework.lean
index bf18ff1b..fb9db629 100644
--- a/SSA/Core/Framework.lean
+++ b/SSA/Core/Framework.lean
@@ -160,7 +160,7 @@ def Com.denoteLets : (com : Com d Γ eff ty) → (Γv : Valuation Γ) →
       body.denoteLets (V.snoc Ve) >>= fun V =>
       return V.cast (by simp [Com.outContext])

-def Lets.denote [DialectSignature d] [DialectDenote d]
+def Lets.denote [DialectSignature d] [DialectDenote d] {Γ₂}
     (lets : Lets d Γ₁ eff Γ₂) (Γ₁'v : Valuation Γ₁) : (eff.toMonad d.m <| Valuation Γ₂) :=
   match lets with
   | .nil => return Γ₁'v

without this, the implicit Γ₂ is put before the [DialectSignature d]. That is part of the Let’s parameters, and with my code parameters must come before indices.
Why did it work before? In e461ea6517586f2440f9602950160244a1e7c3a3 I changed hasBadParamDep?, thinking I am fixing a bug, but maybe the new code is wrong or too restrictive. Will have to think about that.
Incidentially, since there is no termination_by structural lets clause, lean then tries to find another recursive argument and settles on termination_by structural Γ₂, and for that (for some reason maybe also worth investigating) the equational theorem generation fails.

Since this issue isn't about mutual recursion per se, let’s move it to https://github.com/leanprover/lean4/issues/4671, if you don't mind.

I have a fix/workaround for your code:
diff --git a/SSA/Core/Framework.lean b/SSA/Core/Framework.lean
index bf18ff1b..fb9db629 100644
--- a/SSA/Core/Framework.lean
+++ b/SSA/Core/Framework.lean
@@ -160,7 +160,7 @@ def Com.denoteLets : (com : Com d Γ eff ty) → (Γv : Valuation Γ) →
       body.denoteLets (V.snoc Ve) >>= fun V =>
       return V.cast (by simp [Com.outContext])

-def Lets.denote [DialectSignature d] [DialectDenote d]
+def Lets.denote [DialectSignature d] [DialectDenote d] {Γ₂}
     (lets : Lets d Γ₁ eff Γ₂) (Γ₁'v : Valuation Γ₁) : (eff.toMonad d.m <| Valuation Γ₂) :=
   match lets with
   | .nil => return Γ₁'v

without this, the implicit Γ₂ is put before the [DialectSignature d]. That is part of the Let’s parameters, and with my code parameters must come before indices.
Why did it work before? In e461ea6 I changed hasBadParamDep?, thinking I am fixing a bug, but maybe the new code is wrong or too restrictive. Will have to think about that.
Incidentially, since there is no termination_by structural lets clause, lean then tries to find another recursive argument and settles on termination_by structural Γ₂, and for that (for some reason maybe also worth investigating) the equational theorem generation fails.

This works. I also have the feeling that the issues I report may be a bit beyond what this PR should be about. Happy to see this merged.

It fails with failed to generate equational theorem for 'Lets.denote' in Framework.lean. I

Just for the record: The error message you see here is due to #837: When recursing on an index, rather than the indexed type itself, then the function can be defined but lean struggles with proving the equational theorems.
I’ll keep this in mind as I extend inferring recursive arguments to mutual recursion.


What's meaning of "convertUrls"

What's meaning of "convertUrls"
How to set this pararm

Basically, it makes uglifycss rebuild paths or url() regarding the current location of your css input and the target directory of your css output. You can have a look at the directory tests-url in this repo to get examples.


Can we add '?' mask?

0 - Only digit
A - Only character
? - Both digit and character

''  mask: '[______]'


Add files to jasmin mirror

resolution_fixed   |    by<EMAIL_ADDRESS>
Could you please add the following to the jasmine mirror?
/group_workspaces/jasmin/tids/UM//ancil/atmos/ukv/soil_parameters/hwsd_vg/v4
This is used for SURF stem testing.

Issue migrated from trac:296 at 2024-01-31 18:26:44 +1100

<EMAIL_ADDRESS>changed status from new to closed

<EMAIL_ADDRESS>set resolution to fixed

<EMAIL_ADDRESS>commented

Done now


ninja STILL should have a microbomb

Description

the ninja was given a microbomb implant but it was removed after an upstream merge

death acidifier:

Not sure what you mean by this

I think a death acidifier is better tbh

I think a death acidifier is better tbh

Ninjas have no allies, there is no reason for them to take an acidifer over a microbomb. the entire point of the acidifier was so nukies wouldn't TK with their microbomb

The microbomb was given to the ninja because it destroyed items on purpose and the death acidifier did not exist yet.
The ninja's job isn't to kill people. It's to achieve very specific subversion objectives and survive. The acidifier keeps ninja tech out of spessman hands should the ninja fail.


Zig client?

Hi TB team,
Apologies if this question is obvious.
I want to write a Zig application that makes use of Tigerbeetle, and while there are plenty of clients for Go/C/..., I couldn't find a way to get a Zig client going.
Theoretically, the C client could be used via Zig C-interop, but that seems quite awkward no?
What's the best way to interact with TB from a Zig application?

Hi @bruvduroiu! Right now, we don't officially support Zig --- as the language it still unstable, we are treating Zig as our internal implementation detail, and don't expose anything Zig specific in our public interfaces.
That being said, we have a low-level Zig client in this repository:
https://github.com/tigerbeetle/tigerbeetle/blob/d3a4aafb9e630a25ac8acafbdedfaa7a380cbe64/src/vsr/client.zig
No good docs at the moment, but you might want to take a look at how we use it from our benchmark load script:
https://github.com/tigerbeetle/tigerbeetle/blob/d3a4aafb9e630a25ac8acafbdedfaa7a380cbe64/src/tigerbeetle/benchmark_load.zig#L77-L87

Many thanks for pointing me in the right direction! Will try to hack something together


About source only and t-nse

source only-Resnet is 36.6 in many papers, but I didn't get 36.6 in my trial. Can you share your training model with me?
Another question ,is the t-nse_fearture's shape like [h * w, 2048], and the label's shape like [h * w]?  [ps: you saide you use layer4 features as input in another issues.]
In my process, i get the layer4 features which shape is [1,2048,81,61], and then i upsample the features to [1, 2048, 1024, 512]  which match the labels shape[1024, 512], and then i reshape the features to [1024 * 512, 2048] and labels to [1024 * 512].
Is that right?

The source only model I trained yields mIoU around 35. However, in order to be consistent with other literatures, I borrowed the results from their tables. As for the t-sne, on the contrary to your strategy, I shrink the ground truth label to [1,19,81,61] to match the label map. While my strategy is more efficient, I think yours is also fine.

thanks a lot~ I will try your strategy later~ Could you share your source only model with me? I wanna analyze the source only result image however the model I trained can not yield a mIoU as yours~ I will appreciate it if you share with me!

I might have to retrain it since the source only experiment was done long long ago.,,

Thank you very much if you have time to retrain the model~ Could you give me your contact information like wechat ~~ We can discuss more details about DA~My email is<EMAIL_ADDRESS>

Please refer to our oral presentation video. We have put the QR code of WeChat in it.


消息重试后不知道为啥，就是不进入我的死信队列

各位大佬，能帮我看看我重复消费后，连死信队列都没生成

@shenmiren0002  Whether you can provide more information? RocketMQ version, source code and so on

@shenmiren0002 I use rocketmq5.0 and rocketmq-spring version 2.2.2
    <dependency>
      <groupId>org.apache.rocketmq</groupId>
      <artifactId>rocketmq-spring-boot-starter</artifactId>
      <version>2.2.2</version>
    </dependency>

broker.conf

consume code:
package com.github.mxsm.rocketmq;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;

@Service
@RocketMQMessageListener(topic = "mxsm",consumerGroup = "mxsm")
public class HelloConsume implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        throw new IllegalArgumentException("test");
    }
}

result after 16 times :

I think you can adjust broker config :
messageDelayLevel=1s 5s

messageDelayLevel implication you can see the document of official website.
you can check the code of you.

@shenmiren0002 you create DefaultMQPushConsumer as bean that can't automatic injection. you can see the rocketmq-spring-boot-starter source code, if you want to setting you can use RocketMQMessageListener annotation to do this.

thank you so much .I have solved it after I deleted queue and install a new queue.

@shenmiren0002 you create DefaultMQPushConsumer as bean that can't automatic injection. you can see the rocketmq-spring-boot-starter source code, if you want to setting you can use RocketMQMessageListener annotation to do this.

thank you so much.I have solved it after I deleted queue and created a new queue


Add Alpha Vantage mcp server

Adds a new model context protocol to the README for the alpha vantage API.

@SecretiveShell It's a local server that makes queries it an API endpoint. Is there a different method you recommend?
I was following the official quickstart documentation

@SecretiveShell It's a local server that makes queries to an API endpoint. Is there a different method you recommend? I was following the official quickstart documentation which makes a similar api request

Local would be an MCP that is controlling software installed on the machine.
Network would be any remote API that the MCP server is talking to.

Added this context to the legend https://github.com/punkpeye/awesome-mcp-servers/blob/main/README.md#legend

Ah I see what you are saying, that makes sense. I've updated the PR to reflect the right icon.
This one should probably be switched to Cloud as well, it uses a similar remote API request:
[anjor/coinmarket-mcp-server](https://github.com/anjor/coinmarket-mcp-server) 🐍 🏠 - Coinmarket API integration to fetch cryptocurrency listings and quotes


[msgvote] order of reactions is not consistent

As noted by domain#2722 and many others, this problem applies to smartreact too.

Leaving this open to double check for v3 behaviour, but the v2 cogs won't be touched as support has ended for those.


Cannot install storage driver on RHEL

I get an error when trying to configure the storage driver on RHEL 7.
Apparently, it comes from this variable https://github.com/arc-ts/ansible-role-docker/blob/master/vars/main.yml#L5
Any suggestion on how to bypass it? (I edited the installed role, and I am delighted with it. Thanks!)

The role was setup to only support the distros I could easily test against (free), and Docker 'officially' doesn't support CE on redhat. However it should be a quick and easy fix if all that's needed is the storage driver change.
I've created a branch redhat-support which should take care of it (I just don't have something I can test it with). Please give it a go and if it works I'll merge it in.
Thanks!

Thanks. Problem solved!
Unfortunately, it opened new ones (that I can move to a new ticket or forget about). My previous happy installation was a local one. Now, when installing remote servers, I get
TASK [galaxy.docker : STORAGE - DEVICEMAPPER - Convert Volume To Thinpool] *********************************************************
fatal: [abacus-dev]: FAILED! => {"changed": false, "cmd": "lvconvert -y --zero n -c 512K --thinpool docker-vg/thinpool --poolmetadata docker-vg/thinpool_metadata", "failed": true, "msg": "[Errno 2] No such file or directory", "rc": 2}

This can be fixed by prefixing the with /usr/sbin/ the call to lvconvert and lvchange  (but I don't know if this is something that can be applied to all distributions).  Trying to switch to the shell module did not have any effect.
Another part that was tricky is that the failing commands are not re-executed when the playbook is run again. To have the commands run again, I have had to
# sudo vgremove docker-vg
# sudo rm /etc/lvm/profile/docker-thinpool.profile

I've gone ahead and updated/tested the role with the path prefix (no issues with centos). If you don't mind giving it a pull and testing it again, it'd be much appreciated.
I could probably make it a bit smarter about when it executes lvconvert/lvchange...but will definitely need to do some testing. It currently err on the side of caution and only modifies it if the volumes were created in the play. Last thing I'd want to trigger is accidental screwing up of someone's data.
If I can't find a happy workaround, I'll at least update the docs in the the devicemapper section regarding what to do in the event of a failed execution.

if you don't mind giving it a pull and testing it again, it'd be much appreciated.

Thanks! Worked fine!

If I can't find a happy workaround, I'll at least update the docs in the the devicemapper section regarding

Fair point about erring on the side of caution. Regarding documentation, maybe a couple message in respective rescue block could get more eye-balls.

That's actually a really good idea. I'll take care of that quick and merge it in. Will bump the release and get it out some time today.

I see that 2.0.1 is not listed on galaxy https://galaxy.ansible.com/arc-ts/docker/
I haven't got a clue of how the galaxy publishing process works, but just in case you forgot something...
BTW, a link to galaxy in the project description would be handy. I don't have any factual base for doing it, but I like to add the galaxy origin to my requirements.yml, just in case it improves their statistics. Popularity and last commit date are the things that I look at when shopping for roles...

It looks like for whatever reason the notification webhook didn't fire off in travis or wasn't received after the last successful build completed. I popped over to galaxy and manually synced with the repo so 2.0.1 should be there now.
Also not a bad idea re - galaxy link, I'll go ahead and make that change now.


Question

I put new Custom Model..
How can I fix it?

that happened because you remove steve geometry in the .json file

{
"format_version": "1.12.0",
"minecraft:geometry": [
{
"description": {
"identifier": "geometry.lefthand",
"texture_width": 16,
"texture_height": 16,
"visible_bounds_width": 2,
"visible_bounds_height": 3,
"visible_bounds_offset": [0, 1.5, 0]
here..?

ex : sword.png   /   sword.geo.json
How can I add it?
These have different filename ..

yeah it will be cool if you can teach us how to add our own geometries in readme

you can use the clothes inside the plugin as example
1.The .json file
-you should use the .json in the config then draw inside it because you need to have the steve geometry
-the geometry name, you need to named it to "geometry.xyz"
xyz is the folder name you putted the clothes in (take a look at the example .json file)
2.The .png
-just draw a texture then saved
after you have 2 files above, you named them with the same name, for ex:
Angle_1.json , Angle_1.png
then put them in a folder named xyz then it ready to go

thx, will try

So the JSON contain player model and shield ?
Is there any way to get current geometry of the player in the script, and push model of the shield into ?
Thanks

Yes you can but you need to copy the code in the shield into the player geometry yourself.
As i know there is no tool to merge 2 bedrock model (geometry) file into one


v13.0.2 introduced bug in detecting static assets

Initial checklist

[X] I read the support docs
[X] I read the contributing guide
[X] I agree to follow the code of conduct
[X] I searched issues and couldn’t find anything (or linked relevant results below)

Affected packages and versions
13.0.2
Link to runnable example
https://github.com/rancher/rke2-docs/actions/runs/11658790536/job/32458348363?pr=277
Steps to reproduce
Prior to 13.02, usage of assets under the root/static/ folder via Docusarous Static Assests support https://docusaurus.io/docs/static-assets did not trigger broken links.
Expected behavior
For example, https://github.com/rancher/rke2-docs/blob/main/docs/security/fips_support.md?plain=1#L7, which points to a PDF, works correctly on the actual website, https://docs.rke2.io/security/fips_support. This is because Docusarous will

Docusaurus will try to look for it in both static/img/docusaurus.png and public/img/docusaurus.png. The link will then be converted to a require() call instead of staying as a URL.

The remarks-validate-links should not identify this link as broken.
Actual behavior
The remarks-validate-links identify this link as broken.
Affected runtime and version
<EMAIL_ADDRESS>Affected package manager and version
yarn version v1.22.22
Affected OS and version
No response
Build and bundle tools
Docusaurus

Hi!
If I go to https://github.com/rancher/rke2-docs/blob/main/docs/security/fips_support.md, and click that link, it 404s.
Same for the other things, if I go to https://github.com/rancher/rke2-docs/blob/main/docs/architecture.md, that image does not show.
This is covered by the paragraph “This is specifically for Git repos. Like this one. Not for say a website” in the intro and the “When should I use this?” section in the readme.
For a website, which uses more complex algorithms to look up things, as you describe for docusaurus with both static and public, that’s something dependent on particular tools, not something this tool does.
Perhaps https://github.com/remarkjs/remark-lint-no-dead-urls is what you are looking for?

Unfortunately, https://github.com/remarkjs/remark-lint-no-dead-urls  only covers "external" link, while your plugin which checks "internal" links.
I take your point that this is only intended for git repos and not websites. Worst case I can pin the dependency and tell dependabot to ignore it.
I bring this issue up only because previous versions did not have this issue and thus this is an unexpected change in functionality.
https://xkcd.com/1172/

remark-lint-no-dead-urls is not limited to external links: when it is known what the href of a page is, it can resolve things relative to it (this is the internal you mean I think?)
Now, plugins are configured “in total”, not per file. So while there is one from option, you probably need to set an origin and pathname in file.data.meta: https://github.com/remarkjs/remark-lint-no-dead-urls#options
Right, xkcd.com/1172](https://xkcd.com/1172/ indeed 😅

Thanks I will try that approach.


CLIMATE-882 - local data source is not Python 3 compatible

With this PR, the main python 3 incompatibility issue in local.py is fixed and we can now successfully finish the smoke tests on python 3. This will now let us see precisely which parts of the ocw codebase are not python 3 compatible with each of our CI builds.

Can one of the admins verify this patch?

ping @lewismc

+1


GH-35969: [Swift] use ArrowType instead of ArrowType.info and add binary, time32 and time64 types

Changes:

Updated code to use ArrowType instead of ArrowType.info to store the arrow type in classes and structs.  This was done due to Time32 and Time64 requiring additional information beyond just the basic enum info.
Add binary, time32 and time64 types.

Closes: #35969

+1
Could you use our pull request template next time?
Could you use 1 issue/PR per change for easy to review next time? For example, 3 issues/PRs for this case:

ArrowType.info -> ArrowType
Add binary
Add time32 and time64

Yes, I will use the template and have 1 issue per PR going forward.  I apologize for any confusion.

@kou I hope all is well.  Can you please merge this PR if everything looks ok?

Merged!

Thank you!


Replace named pipes to unix domain sockets for communication with the blind bid process

Closing, as we are moving the blind bid to the Rusk server instead.


test(crux-ui): add e2e test for version and deployment deletes

Codecov Report
Patch and project coverage have no change.

Comparison is base (8701d61) 25.49% compared to head (a20588c) 25.49%.
Report is 2 commits behind head on develop.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #706   +/-   ##
========================================
  Coverage    25.49%   25.49%
========================================
  Files           60       60
  Lines         5703     5703
========================================
  Hits          1454     1454
  Misses        4147     4147
  Partials       102      102

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


Licensing

Hey, I think this is a great CV template! I'm a bit lost on the best way to comply with the BSD license though. Clause 2 says
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

I notice that the sample does not put the licence and copyright notice in the generated document. Is the expectation that the text would be included in a cover letter or email when providing a resume to a potential employer? I suspect an employer wouldn't be expecting that, and it might not be a great look. I'm just wondering, is this an unintended consequence of using the BSD 3-Clause licence?

Hello there!
Nice catch! No expectation to put anything in any compiled pdf :wink: . Totally agree that it would look weird and is absolutely unintended.
Back when I created the repo I probably just took any "permissive" license without thinking too much about it. Could've been MIT as well. I wasn't fully aware of the "binary issue" in BSD for LaTeX, but I remember that I didn't want to go with LPPL (which seems to be kind of a default in the LaTeX / CTAN world) because it felt too restrictive. On the other hand, Creative Commons seemed like a bad choice b/c it is intended for documents, not source code.
Fun fact: all my compiled lecture pdfs are indeed licensed under CC BY-SA 4.0 :sweat_smile:
So long story short, it's probably a good idea to re-license this project. In case you have more insights or experience with LaTeX class licensing, what would you prefer? I really don't care too much.  From my limited legal understanding, MIT should solve at least the "binary issue"; ISC seems to be the currently preferred one by the BSD people. :man_shrugging:
Btw, is this by any chance your thread?  :sweat_smile:


fix: Typo in development guide

What was the problem/requirement? (What/Why)
Typo in development documentation
What was the solution? (How)
Fix the typo
What is the impact of this change?
Typo resolved
How was this change tested?
N/A
Was this change documented?
N/A
Is this a breaking change?
No

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Hey Matt, thanks for the first external contribution!
This reminds me that we need more upfront info here, but all commits to the repositories in this org need to have:

a conventional commit: https://www.conventionalcommits.org/en/v1.0.0/. Your PR title can match. I'd recommend something like docs: update DEVELOPMENT resources type
a signed commit (git commit -s). To update you can do git commit -s --amend and git push --force-with-lease

If you update this PR with that, we can get it merged!


[auth] Fix getIDToken API and an error handling case

Add a missing API - Firebase 10 was missing an NS_SWIFT_NAME on one of the getIDToken APIs, leading to an inconsistent API set.
Fix an error handling case that could crash in Firebase 10 and wasn't ported correctly in Firebase 11
Update the sample app to make it easier to test the async getIDToken APIs

Details below:
Firebase 10 APIs

Firebase 11 APIs after this PR

In Firebase 10 it was possible for the completion handler to return both a nil tokenResult and error, when tokenResultWithToken:token errored.  In Firebase 11, the JWT error detection wasn't yet implemented. That is now fixed.

Merging here. I'll address any additional review comments in a subsequent PR.


Create new UI for client linking

I've updated the client linking UI to allow linking multiple clients to one user. @LisaMoore1 Let me know if this is missing any critical features once it gets deployed to test.
Screenshot:

@calebissharp Is this something ready to test? If so can you slide it on over to Review/QA? Thanks.

@LisaMoore1 Not yet, no. The tests are still failing and the PR hasn't been merged yet.


fix image upload when there's a form error

Minor issue.
When you try to upload an image with any empty form field it will cause and error when rendering :new again because the image is not persisted but it has an attached file.

Thanks for the PR @nerijunior!


[Event Parameter] codeunit 5780 "Whse. Cross-Dock Management" - OnCalcCrossDockToTransferOrderOnAfterTransferLineSetFilters

Can you please add parameter WhseCrossDockOpp (with var access) and LocationCode to OnCalcCrossDockToTransferOrderOnAfterTransferLineSetFilters in codeunit 5780 "Whse. Cross-Dock Management"?
Similar to how  WhseCrossDockOpp and LocationCode are already made available in OnCalcCrossDockToServiceOrderOnAfterServiceLineSetFilters and OnCalcCrossDockToSalesOrderOnAfterSalesLineSetFilters.
Before
OnCalcCrossDockToTransferOrderOnAfterTransferLineSetFilters(TransferLine);
After
OnCalcCrossDockToTransferOrderOnAfterTransferLineSetFilters(TransferLine, WhseCrossDockOpp, LocationCode);

PS: To avoid future issues on adding another batch of missing parameters, I would suggest to keep the event signature inline with the 2 above mentioned existing publishers for looping sales / service lines.
After
OnCalcCrossDockToTransferOrderOnAfterTransferLineSetFilters(TransferLine, WhseCrossDockOpp, QtyOnPick, QtyPicked, ItemNo, VariantCode, LocationCode, CrossDockDate, LineNo);

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 10820.


License?

Looks interesting - would like to try.  Is this MIT license?

Is this is open source?  One of the licenses in here apply?   https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/licensing-a-repository

If you intend to specify "No License" can you at least tell us?  https://choosealicense.com/no-permission/
as I'm sure you know...
No License
When you make a creative work (which includes code), the work is under exclusive copyright by default. Unless you include a license that specifies otherwise, nobody else can copy, distribute, or modify your work without being at risk of take-downs, shake-downs, or litigation. Once the work has other contributors (each a copyright holder), “nobody” starts including you.

Sorry for the late response, the repo is under MIT license. Thank you for your interest in our work.


Open Manipulator with XL-320 servos

Hello:),
Thanks for your time. I am using 5 XL-320 servos on Open Manipulator. I update the ID of 5 servos to  11~15 and the baud rate to 1000000 using Dynamixel Wizard 2.0. And the servos could be driven by using Dynamixel Workbench.
However, when it comes to Open Manipulator, I could not make it. It seems that XL-320 should use  "dynamixel::JointDynamixel" instead of "dynamixel::JointDynamixelProfileControl" and I set the modes to "position_mode" but it comes out some errors. Any help is much appreciated.
Could you advice how to modify the codes to adapt XL-320 servos? I would like to use XL-320 servos therefore the manipulator could be small and light.
` //change to dynamixel::JointDynamixel due to XL-320 in "open_manipulator.cpp"
actuator_ = new dynamixel::JointDynamixel();
//actuator_ = new dynamixel::JointDynamixelProfileControl(control_loop_time);

// Set communication arguments
STRING dxl_comm_arg[2] = {usb_port, baud_rate};
void *p_dxl_comm_arg = &dxl_comm_arg;

// Set joint actuator id
std::vector<uint8_t> jointDxlId;
jointDxlId.push_back(11);
jointDxlId.push_back(12);
jointDxlId.push_back(13);
jointDxlId.push_back(14);

addJointActuator(JOINT_DYNAMIXEL, actuator_, jointDxlId, p_dxl_comm_arg);

// Set joint actuator control mode
STRING joint_dxl_mode_arg = "position_mode";

void *p_joint_dxl_mode_arg = &joint_dxl_mode_arg;
setJointActuatorMode(JOINT_DYNAMIXEL, jointDxlId, p_joint_dxl_mode_arg);

/*****************************************************************************
** Initialize Tool Actuator
*****************************************************************************/
tool_ = new dynamixel::GripperDynamixel();

uint8_t gripperDxlId = 15;
addToolActuator(TOOL_DYNAMIXEL, tool_, gripperDxlId, p_dxl_comm_arg);

STRING gripper_dxl_mode_arg = "position_mode";
void *p_gripper_dxl_mode_arg = &gripper_dxl_mode_arg;
setToolActuatorMode(TOOL_DYNAMIXEL, p_gripper_dxl_mode_arg);`

"roslaunch open_manipulator_controller.launch"
Errors come as follows.
SUMMARY
PARAMETERS

/open_manipulator/control_period: 0.01
/open_manipulator/moveit_sample_duration: 0.05
/open_manipulator/planning_group_name: arm
/open_manipulator/using_moveit: False
/open_manipulator/using_platform: True
/rosdistro: kinetic
/rosversion: 1.12.14

NODES
/
open_manipulator (open_manipulator_controller/open_manipulator_controller)
auto-starting new master
process[master]: started with pid [4021]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to a8b04352-b9e4-11e9-82a7-049226cd8812
process[rosout-1]: started with pid [4049]
started core service [/rosout]
process[open_manipulator-2]: started with pid [4060]
Joint Dynamixel ID : 11, Model Name : XL-320
Joint Dynamixel ID : 12, Model Name : XL-320
Joint Dynamixel ID : 13, Model Name : XL-320
Joint Dynamixel ID : 14, Model Name : XL-320
Gripper Dynamixel ID : 15, Model Name :XL-320
[ERROR] [TxRxResult] There is no status packet!
[ERROR] groupSyncRead getdata failed
[ERROR] groupSyncRead getdata failed
[ERROR] groupSyncRead getdata failed
[INFO] Succeeded to init /open_manipulator
[ERROR] [TxRxResult] There is no status packet!
[ERROR] groupSyncRead getdata failed
[ERROR] groupSyncRead getdata failed
[ERROR] groupSyncRead getdata failed
[ERROR] [TxRxResult] There is no status packet!
[ERROR] groupSyncRead getdata failed
[ERROR] groupSyncRead getdata failed
[ERROR] groupSyncRead getdata failed
...

@Tibeo
Unfortunately, our package does not support XL320 model. Please use XM430 as written on our eManual (XL430 model can be also used but not recommended since we found motor overload issues when testing it).
Regards,
Ryan

@rjshim Thanks for your information. It is a pity that I could not use XL-320 models. I have several XH430-W210 models and they are OK with the package. What I am trying to do is making a tiny manipulator. So I could refer to Dynamixel workbench and create a new package to motivate XL-320, right? Do you have any tips or suggestions on this? Thanks a lot.

@Tibeo
Would you test it again with giving 7.4V instead of 12V that you might have given to motors?
Check out the link to know the specification of XL-320.
Regards,
Ryan

Hello Ryan @rjshim,
Do you mean I test XL-320 again using open manipulator with 7.4V? I did the test with 7.4V voltage. Anyway, I will go through the specification and test it again.
You told me that open manipultor package could not support XL320. I am now a bit confused about whether it could support XL320. Would you help verfy it if you have XL-320 servos on hand? Thanks a lot.
Thanks and Regards,
Tibeo

@Tibeo
We do not support each person's own customized robot so I recommended you use XM430 as instructed on our eManual.
I thought the error code was from DXL-WB and one of the possible reasons you got that error code is because you might've given wrong voltage to motors.
I only tested if DXL-WB works fine with XL-320 and 7.4V and it was fine. You said you tested om package with XL320 and 7.4V and if you are still having the same problem, unfortunately, it is beyond the scope of our support.
Regards,
Ryan

This issue has been closed as there weren't recent activities. Please feel free to reopen this thread if there's any opinion to throw. Thanks.


Create an important task

Sorry if this is the wrong repo to ask this.
I have an application where I need to run a tight regulation loop preferably without interruption on a two core ESP32 or possibly ESP32-S3 device. I also have other less latency sensitive tasks that will run in the background (web server etc). What would be the best solution?

Would it make sense to run the regulation loop in its own task pinned to core1? (xTaskCreatePinnedToCore?)
Can/Should I disable Tick Interrupts  on core1? I still want the webbserver and Wifi to function ok. However that is handled by core0 right?

How do I do this? Is all of this possible today from rust? If not, to what crate should a PR for this be committed?
Am I approaching this wrong?

I think the best place for such questions would be the Matrix chat, rather than opening issues in the e-HAL crate. Please join us in the chat room!


[Bug] showme ship sends both original and render

https://discord.com/channels/226528541368385536/456218562428796929/939898425925840897

no longer reproducible


Module fail to load with nwjs

SerialPort version: 4.0.3 and 5.0.0-beta2
NodeJS Version:6.9.1
Operating System and Hardware: Windows 8 64bits/Intel core i7-4700HQ/8Go RAM
Are you using Electron/Atom/NwJS?: NwJS sdk-0.18.1
(Run node -v && npm -v && python --version to get version numbers)
Summary of Problem
serialport module fail to load when the application is launched from NWJS rather than from node.
The same code used directly in nodejs work fine.
Note: I am using a software serial port loop (free virtual serial port) to connect the application with a simulator running in another nodejs application.
When both application run under nodejs, the two serial ports open fine and the two apps communicate happily.
Expected Behavior
serial port module shall load fine in NWJS.
Actual Behavior
The serialport module fail to load in NWJS with the following message:
D:\dev\perso\test_nw\node_modules\bindings\bindings.js:86 Uncaught Error: Une routine dinitialisation dune bibliothèque de liens dynamiques (DLL) a échoué.
\\?\D:\dev\perso\test_nw\node_modules\serialport\build\Release\serialport.node
    at Object.Module._extensions..node (module.js:639:18)
    at Module.load (module.js:511:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
    at Module.require (module.js:521:17)
    at require (internal/module.js:20:19)
    at bindings (D:\dev\perso\test_nw\node_modules\bindings\bindings.js:79:44)
    at Object.<anonymous> (D:\dev\perso\test_nw\node_modules\serialport\lib\bindings.js:3:35)
    at Module._compile (module.js:594:32)
    at Object.Module._extensions..js (module.js:609:10)

Steps and Code to Reproduce the Issue
Create a simple html page for NWJS and add the following javascript code:
require("serialport")

serialport works with nwjs pretty fine. You just need to copy node_modules/serialport to your app root directory

and don't forget to build serialport with nw-gyp

No, I was not able to make it work, either with NWJS nor Electron. Please understand that I'm not very experienced with the nodejs/javascript ecosystem.
I tested the following :

I recompiled the module (it build with 'node-pre-gyp', don't know if this is the required way to "build with nw-gyp"),
put the DLL in the application directory,
put the  serialport module directory in the application directory

All without success.
Finally, I changed my mind and split my application in two process communicating via Websocket, one NWJS app doing the GUI, and on nodejs app doing the serial port stuff.

this is how to compile it  on a windows x64 :
node-pre-gyp rebuild --runtime=node-webkit --target=0.18.3 --target_arch=x64 --target-platform=win32

Tested with rebuilding the serialport modulewith node-gyp, finally the module load fine in NWJS.
Thank you for the response.


Error in conventional-commits-parser: no writecb in Transform class

Running "conventionalChangelog:release" (conventionalChangelog) task
fxa-content-server.CRITICAL: uncaughtException Error: Error in conventional-commits-parser: no writecb in Transform class
    at afterTransform (/Users/vladikoff/mozilla/fxa-local-dev/fxa-content-server/node_modules/grunt-conventional-changelog/node_modules/conventional-changelog/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:75:33)
    at TransformState.afterTransform (/Users/vladikoff/mozilla/fxa-local-dev/fxa-content-server/node_modules/grunt-conventional-changelog/node_modules/conventional-changelog/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:59:12)
    at DestroyableTransform._transform (/Users/vladikoff/mozilla/fxa-local-dev/fxa-content-server/node_modules/grunt-conventional-changelog/node_modules/conventional-changelog/node_modules/conventional-commits-parser/index.js:80:9)
    at DestroyableTransform.Transform._read (/Users/vladikoff/mozilla/fxa-local-dev/fxa-content-server/node_modules/grunt-conventional-changelog/node_modules/conventional-changelog/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:10)
    at DestroyableTransform.Transform._write (/Users/vladikoff/mozilla/fxa-local-dev/fxa-content-server/node_modules/grunt-conventional-changelog/node_modules/conventional-changelog/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:160:12)
    at doWrite (/Users/vladikoff/mozilla/fxa-local-dev/fxa-content-server/node_modules/grunt-conventional-changelog/node_modules/conventional-changelog/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:335:12)
    at writeOrBuffer (/Users/vladikoff/mozilla/fxa-local-dev/fxa-content-server/node_modules/grunt-conventional-changelog/node_modules/conventional-changelog/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:321:5)
    at DestroyableTransform.Writable.write (/Users/vladikoff/mozilla/fxa-local-dev/fxa-content-server/node_modules/grunt-conventional-changelog/node_modules/conventional-changelog/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:248:11)
    at Readable.ondata (_stream_readable.js:528:20)
    at emitOne (events.js:77:13)
    at Readable.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at Readable.push (_stream_readable.js:110:10)
    at DestroyableTransform._transform (/Users/vladikoff/mozilla/fxa-local-dev/fxa-content-server/node_modules/grunt-conventional-changelog/node_modules/conventional-changelog/node_modules/git-raw-commits/index.js:36:16)
    at DestroyableTransform.Transform._read (/Users/vladikoff/mozilla/fxa-local-dev/fxa-content-server/node_modules/grunt-conventional-changelog/node_modules/conventional-changelog/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:10)
    at DestroyableTransform.Transform._write (/Users/vladikoff/mozilla/fxa-local-dev/fxa-content-server/node_modules/grunt-conventional-changelog/node_modules/conventional-changelog/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:160:12)
Fatal error: Error in conventional-commits-parser: no writecb in Transform class

Using via "grunt-conventional-changelog": "5.0.0",
Task configuration:
module.exports = function (grunt) {
  grunt.config('conventionalChangelog', {
    options: {
      changelogOpts: {}
    },
    release: {
      src: 'CHANGELOG.md'
    }
  });
};

Any ideas?

I think its the grunt wrapper that doesn't print out the real error message. I'll work on that.

Hm thanks, thought it was node 4 issue, but yeah something else is going on in my case

note to myself: the error handling is always a problem although I'm trying to fix it a few times. There must be a better way.

Yeah this is strange, I think some sub-dependency regressed in the past 2 weeks. I was able to create this tag 2 weeks ago https://github.com/mozilla/fxa-content-server/commit/deaabfd5176460c9418f2aeba95dc0e9ccdacd2e but now it fails with that error
in node 0.10

with conventional-changelog 3 the task hangs

in node 0.10 and node 4 with conventional-changelog 4 and 5 the task whose the whitecb error.

There might be something in the commit messages. I was saying the tool should print what the error is instead of no writecb in Transform class :(
This happens to me many times before and hard for me to debug. And I thought I fixed it :(
Once there are error messages printed you should be able to find out what's wrong easily.


issue2

Corrected the method extension call from MessUpName to RuinSongName.

Wonderful! Thank you for filing the issue and submitting a fix for this, @CoalFace-Rockerby.


Add support for bitwise not !

We currently do not support bitwise negation ! we should add this.

#833 better captures this one


jQuery.browser Removed in jQuery 1.9

jQuery.browser has been removed from the latest version of jQuery (1.9) and is causing the plugin to fail without using  https://github.com/jquery/jquery-migrate
long term I guess modernizr will have to be used, to check the browser.

Hello! Please, add compatibility with jQuery 1.11
Thanks for the great plugin! ;)


Change req_check_len error message in req.c, it also accepts passphrase of 20 bytes.

Description of change
This PR changes the error message that is displayed when trying to use a passphrase longer than 20 bytes.
It is however possible to use a passphrase of exactly 20 bytes long.

I've sent the signed cla to<EMAIL_ADDRESS>Are there any other actions I need to do to make the cla-check pass ?

you could push an updated commit, which will cause a rescan.  or just leave as-is because i removed the flag.

0cb8c9d in master and ddc311f in 1.1.0  Thank you!


Sampling

When sampling, why do we need to provide seq_length characters as the input? Shouldn't it be one character at a time?

You're right, seq_length-th sequences was the quick n' dirty way to keep the hidden states between each character. predict function should also receive initial hidden states as input. I'll update it.

This commit works for gru and rnn. lstm layers require additional cell_states handling.

Works perfect. Thanks.


go mod import failed

help me!

GOPATH=E:\my_docs\tobias-go

the import path is github.com/olivere/elastic/v7 please dont use issue tracker for a question.
https://go.dev/help


query.error is reset to null when using refetchInterval option

HI,
I've used react-query for polling request and noticed weird behavior.
Expect behavior:
When request fails, query.error shouldn't be reset null until request succeed.
Current behavior:
When request fails, query.error value is constantly switching between null and request error value
Steps to reproduce:

open https://codesandbox.io/s/nostalgic-swirles-q4unq
see console output

I will debug it and keep this issue updated if I'll get more info

I think what happens Is that when a query is fetched (regardless) of cause, the error is set to null. This may not be right.
https://github.com/tannerlinsley/react-query/blob/master/src/index.js#L258
Tanner Linsley
On Dec 6, 2019, 3:44 AM -0700, Andrew Cherniavskii<EMAIL_ADDRESS>wrote:

HI,
I've used react-query for polling request and noticed weird behavior.
Expect behavior:
When request fails, query.error shouldn't be reset null until request succeed.
Current behavior:
When request fails, query.error value is constantly switching between null and request error value
Steps to reproduce:
• open https://codesandbox.io/s/nostalgic-swirles-q4unq
• see console output
I will debug it and keep this issue updated if I'll get more info
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Yes, indeed.
I'll submit a PR.
BTW, looks like the source code in the repo is outdated comparing to NPM releases.
Can you update it?
Also, it would be great if you update Github Releases as well - this way users can subscribe to new releases and be notified when new release is out!
Let me know if I can help with something!

Not sure if you noticed my previous comment, so adding mention @tannerlinsley
https://github.com/tannerlinsley/react-query/issues/64#issuecomment-562990605

Yep. I’m away from my computer right now. I’ll update and release soon

@tannerlinsley Thanks!


Prevent multiple form submissions

Although the problem described here is specific to Notify it feels like the solution could be more generally applicable. The code here is a rough first go at adapting it to GOV.UK Frontend. I might not have put it in the right place. It doesn’t have tests. I haven’t even checked that it works.

In Notify we’ve seen users complaining that they got sent an invitation email twice. This is probably because someone on their team clicked the ‘send invite’ button twice (even though they think they only clicked it once). Some users will just double click everything on a web page because Windows.
Double form submission is a common issue on web pages, and there are a number of different ways to prevent it. I chose to do it this way because:

temporarily, not permanently disabling the button means that this addresses the double clicking issue without breaking things if the user did, really want to click the button again deliberately (eg an AJAX request times out and nothing happens)
doing it with a data attribute, rather than the disabled attribute  means that the interaction behaviour of the button doesn’t change (disabled buttons can’t be focused, for example)

Adapted from https://github.com/alphagov/notifications-admin/blob/93e7f9213533790ffb52a8f3afadbace9145eea2/app/assets/javascripts/preventDuplicateFormSubmissions.js

I love this idea but I'm worried about the impact it could have.
GOV.UK Frontend is intended to work in any service and we cannot be sure that buttons will always be used in a traditional form context, for example someone may build a number counter component that relies on being able to press 'increase' quickly.
It's also hard to know if this would result in any negative results since if this triggers in the wrong circumstance users are likely to blame themselves.
With this in mind, do you think it's possible to get what you have learned here and turn it into guidance?
I wonder if this is something that could be handled server side? Given that the server could know how quickly requests are coming in.
Failing this we could consider making this an opt in feature for buttons?
What do you think? Do you think I'm being overly cautious?

In the original implementation this was scoped to only elements with type="submit" inside a <form>.
Might be sensible to replicate that here because it would prevent this behaviour being applied to:

links, which should submit idempotent GET requests
buttons which don’t submit forms but trigger Javascript events (like @nickcolley’s hypothetical number counter)

Thoughts?

It does seem reasonable to only do this when a button is using type=submit, we should bare in mind that if a user does not supply a type to their button submit is the implicit default.
In terms of detecting if it is in a form I would be careful not to check any process that walks up the DOM is not slow for performance, it might be that this is not necessary...
Interested to hear what others think.

@nickcolley I think this:
var isInsideAForm = event.target.form

should be something more like:
var isSubmittingAForm = event.target.form && event.target.type === 'submit'

(I don’t know if that’s the right property names, but you get the idea)

Otherwise I think this is a solid implementation.

Good shout
I've made an example page to test this: https://output.jsbin.com/deriwub

var DEBOUNCE_TIMEOUT_IN_SECONDS = 0.5
var debounceFormSubmitTimer = null

button.addEventListener('click', function(event) {
    var $button = event.target
    var isSubmitButton = $button.type === 'submit'
    var isInsideAForm = $button.form

    if (!isSubmitButton || !isInsideAForm) {
      return;
    }

    if (debounceFormSubmitTimer) {
      event.preventDefault()
      return false;
    }

    debounceFormSubmitTimer = setTimeout(function () {
      debounceFormSubmitTimer = null
    }, DEBOUNCE_TIMEOUT_IN_SECONDS * 1000)
});

Needs cross browser testing, will see what other people think.

Another thought, it feels like there's a few needs here:

If I accidentally double click since I'm used to that, don't submit the form
If the form takes long and I get impatient, dont submit the form if it's already in progress

I think this only covers the first case @quis maybe some sort of loading pattern would be necessary to satisfy both?

Might this ever prevent valid clicks? So if I click but my connection has gone wrong, and then my connection is fixed, I sometimes find I need to click again, this would prevent that?

@joelanman at the moment the implementation only prevents clicks that happen immediately afterwards, in my example there's a 500millisecond window, Chris' example is a 1.5 second window

ah yes sorry, this PR is just about double clicks, not any click after the first one

Regarding the duration of the timeout, basing it on how quickly the user expects the UI to respond seems sensible. In other words it shouldn’t interfere with someone who re-clicks because they think that the system hasn’t registered their first click. The generally accepted figure seems to be 1 second1.

https://www.nngroup.com/articles/response-times-3-important-limits/

@quis so do you think the timeout should be 1.5s as suggested to cover that case?

@nickcolley I think 1s. Not sure what I based the original 1.5s number on.

I've been busy recently but I have pushed the work I have done, I think the only thing left to do is write tests for this, so will pick this up when I get some time.

I don’t disagree with this as a technique but would question whether it should be done by default.
There may be edge cases where this functionality obstructs functionality - eg clicking a list of delete buttons in quick succession or a medium style “clap” button.
Perhaps this could only be applied to buttons that explicitly request it, eg with a data-prevent-doubleclick attribute or a js-prevent-doubleclick class

@timpaul @36degrees and I have chatted about this and we're going to resolve the remaining worries by doing the following:

Make this a opt-in feature
Add guidance to the design system, component page on how to enable this feature, and when.

We're going to try to have timers that do not conflict but if it's not possible we believe that having this as an opt-in feature will remove some of the risk.

Think I need to pair with someone on it to talk through the compromises of the current approach vs refactored.
I've pushed up the less controversial version and the refactored version https://github.com/alphagov/govuk-frontend/compare/debounce-button-refactor?expand=1
The feature is called 'debounce' which can be changed to whatever we think is clearest for users.

<button class="govuk-button" data-prevent-double-click="true">
  Submit
</button>

{{ govukButton({
  text: "Submit",
  preventDoubleClick: true
}) }}

Will this also stop users from submitting the form twice by pressing enter within a form field?

@adamsilver no it does not.

Thanks everyone that contributed to this, took us a long time to get it right but I'm happy with what we've managed here.
Special thanks to @quis for the original contribution.


fix: separate client init from common

this will help to prevent crashing when installed on server
Change log:
Created a new class DuckModClient and moved client init features from DuckMod
Reconfigured fabric.mod.json to init client separately
Imports corrected

build jars


gather pending jobs at scheduler exit

Coverage decreased (-1.0%) to 75.0% when pulling ad1331e361f7c745c97c23d521d8bc81d7832ed2 on feature/gather-pending-jobs into 6184e3148b71908896d88682bdaa947018a68ca3 on develop.


README: switch status badges over to shine-oss

We are moving away from the ms organization.

/azp run

/azp run

AZURE COME ON

Oh, my B. It excludes README files.


QG 4 checks (Release 23.12)

QG checks
Please keep this issue open until QG is concluded and will be managed by the Issue Creator!
We will inform you about finding and proposals in separated issues, this issue here is for the Overview of the Checks!
Please keep this issue open until QG is concluded!
Product Owner: @jjeroch
Dev SPOC:
Helm Chart Version: 1.7.0
App Version: 1.7.0
Release Managemnet Reference Issue:
Check of Tractus-X Release Guidelines

Currently implemented automatic checks can be found under your product on our Release Guidelines Checks Board
This QG Check is depending on the mandatory information from our current Release Guidelines

TRG 1 Documentation

[x] TRG 1.01 appropriate README.md
[ ] TRG 1.02 appropriate install instructions either INSTALL.md or in README.md
[x] TRG 1.03 appropriate CHANGELOG.md

TRG 2 Git

[x] TRG 2.01 default branch is named main
[x] TRG 2.03 repository structure
[x] TRG 2.04 leading product repository
[x] TRG 2.05 .tractusx metafile in a proper format

TRG 3 Kubernetes

[x] TRG 3.02 persistent volume and persistent volume claim is used when needed

TRG 4 Container

[ ] #381
[x] TRG 4.02 base image is agreed
[x] TRG 4.03 image has USER command and Non Root Container
[x] TRG 4.05 released image must be placed in DockerHub, remove GHCR references
[x] TRG 4.06 separate notice file for DockerHub has all necessary information

TRG 5 Helm

[ ] TRG 5.01 Helm chart must be released
[ ] TRG 5.02 Helm chart location in /charts directory and correct structure
[ ] TRG 5.04 CPU / MEM resource requests and limits and are properly set
[ ] TRG 5.06 Application must be configurable through the Helm chart
[ ] TRG 5.07 Dependencies are present and properly configured in the Chart.yaml
[ ] TRG 5.08 Product has a single deployable helm chart that contains all components
[ ] TRG 5.09 Helm Test running properly
[ ] TRG 5.10 Products need to support 3 versions at a time
[ ] TRG 5.11 Upgradeability

TRG 6 Released Helm Chart

[ ] TRG 6.01 Released Helm Chart

TRG 7 Open Source Governance

[x] TRG 7.01 Legal Documentation
[x] TRG 7.02 License and copyright header
[x] TRG 7.03 IP checks for project content
[x] TRG 7.04 IP checks for 3rd party content
[ ] #382
[ ] #383
[x] TRG 7.07 Legal notice for documentation

Hints
Information Sharing
Skipping TRG 5 + 6 as Helm Charts are part of repo portal-cd

Checks finished for portal-frontend, based on 1.7.0-rc4. I've opened following issues:

#381
#382
#383

Please take care, @evegufy


Add osm2pgrouting to the installation

Can simply be installed by adding it to the apt-get install section. This way a great tool would be available within the image to import osm files. I suggest also adding wget so downloading osm files and importing them into the database can be done from within the image.

Thanks for that!

What package repository would this be in?
I've added the apt.postgresql.org repo, but docker complains that it can't find the package osm2pgrouting.

@hpfast looks like upstream (Postgres) moved to debian:jessie as their base image which does not have a package for osm2pgrouting. Will remove the package to get Docker Hub builds working again.

Ok, that explains it, thanks. Hadn't thought to look in debian's repos.
Managing to build from source.
On Mon, Feb 27, 2017 at 12:30 PM, Hans Kristian Flaatten <
<EMAIL_ADDRESS>wrote:

@hpfast https://github.com/hpfast looks like upstream (Postgres) moved
to debian:jessie as their base image which does not have a package for
osm2pgrouting. Will remove the package to get Docker Hub builds working
again.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Starefossen/docker-pgrouting/issues/8#issuecomment-282696017,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADfUav_SFnaaxrBncg7meCvIBJX9uauFks5rgrPlgaJpZM4LS1V4
.


How do I set the maximum length for a phone number?

I use it this way and it works fine. But I want to limit it. How can I do that ?

For example: maxLenght={11}
<TextInputMask
    type={'cel-phone'}
    options={{
        maskType: 'BRL',
        withDDD: true,
        dddMask: '0(999) 999 99 99'
    }}
    value={phoneNumber}
    onChangeText={text => {
        this.setState({
            phoneNumber: text
        })
    }}
    // add the ref to a local var
    ref={(ref) => this.phoneField = ref}
/>

<TextInputMask
    type={'cel-phone'}
    options={{
        maskType: 'BRL',
        withDDD: true,
        dddMask: '0(999) 999 99 99'
    }}
    value={phoneNumber}
    onChangeText={text => {
        this.setState({
            phoneNumber: text
        })
    }}
    // add the ref to a local var
    ref={(ref) => this.phoneField = ref}
    maxLength={8}
/>

@benhurott  It doesn't work properly because it takes into account the mask's special characters. So in order to set a maxLength of 10 for a US phone number, I have to set a maxLength of 14 when using the mask<PHONE_NUMBER>. But if I type the number fast enough so that the mask is not yet being applied, I can type a 14 digit phone number.


MAISTRA-2399 Move doc generation from operator to api repo

Do we need to remove the docs files, perhaps adding a link to the new location?

+1. Docs in this repo should probably be removed. Other than that, this looks good to me.

I thought I had removed them, but apparently not. I've now added a link to maistra/api docs to the README.md file.


Foolproof: Disable VAD if clip_timestamps is in use

Prevent silly things to happen.

@Purfview , could you provide an example of the strange behavior if using both vad_filter and clip_timestamp ?

@Purfview , could you provide an example of the strange behavior if using both vad_filter and clip_timestamp ?

clip_timestamps is like custom/manual VAD and it runs after Silero VAD code. Them both running at same time doesn't make sense.
For example you want to transcribe only the second minute of audio and setclip_timestamps="120,180", if VAD is enabled then audio can be different and the second minute wouldn't be at "120,180" anymore., transcription would happen at some unknown portion of audio.

Okay. But I think you should add a comment or logging for this update logic code: vad_filter will be ignored if clip_timestamp is used.

Comment added.


dateWidget template is not the same over time

I have a Reservations model that require a start date and end date.
Using the FormHelper in the simplest way
<fieldset>
    <legend><?= __('Request reservation') ?></legend>
<?php
    echo $this->Form->input('date_start', ['type' => 'date']);
    echo $this->Form->input('date_end', ['type' => 'date']);
?>
</fieldset>

gives this result

Adding some debug in the date function returned this

If I reset the previous template after the call to parent::date it works :)
public function date($fieldName, array $options = []) {
    $fields = ['year' => true, 'month' => true, 'day' => true];
    $prev_template = $this->templates('dateWidget');
    // debug('dateWidget: before '.$this->templates('dateWidget'));
    $this->templates([
        'dateWidget' => $this->_getDatetimeTemplate($fields, $options)
    ]);
    // debug('dateWidget: after '.$this->templates('dateWidget'));
    $return = parent::date($fieldName, $options);
    $this->templates(['dateWidget' => $prev_template]);
    return $return;
}

I hope I helped. It's my first time reporting an issue :+1:

Should be fixed with commit 1f693960d28e134b9ef4188a2fb869564abce44f. Thanks for targeting the bug so precisely ;) I did not directly use your code since I had to put it in the three methods (date, datetime and time) but the idea is all yours!

Thamks!
It's fixed now. The code was only a draft. :smile:
Thanks again for such awesome plugin!


external/libpng: optimization

there's arm/intel-specific .c source that uses neon or sse intrinsics; we'll want similar for risc-v.

I'm currently taking a look at this one.

one question: upstream of https://android.googlesource.com/platform/external/libpng/  is from chromium(https://chromium.googlesource.com/chromium/src/third_party/libpng/) or form it's official repo, which I think is https://github.com/glennrp/libpng?

I'm currently taking a look at this one.

@dragostis how is it going at your end? I'm also interested on this porting for riscv.

one question: upstream of https://android.googlesource.com/platform/external/libpng/ is from chromium(https://chromium.googlesource.com/chromium/src/third_party/libpng/) or form it's official repo, which I think is https://github.com/glennrp/libpng?

for most projects in external/ you should be able to look at the METADATA file to answer this question. in this case, it's https://android.googlesource.com/platform/external/libpng/+/refs/heads/master/METADATA which says github.
(it looks like chromium only has a couple of small changes on top of "true" upstream anyway? https://chromium.googlesource.com/chromium/src/third_party/libpng/+/refs/heads/main/patches/)

@unicornx, I have a PR ready. It's currently sitting on SourceForge because I was under the impression that GitHub was just a mirror since many of the latest PRs have no comment on them.
I tried contacting the maintainer a couple of times and also the impl group without much success until now.

Hello,
I wanted to inform you, that we also implemented a libpng rvv implementation and evaluated the performance of it with our RVVRadar tool on an Allwinner D1 (RVV 0.7). Details can be found here:: https://github.com/mschlaegl/libpng_rvv-doc
There are also two pull requests:
https://github.com/libpng/libpng/pull/3

Hi,
I wanted to inform you that we have also implemented a libpng for RVV and evaluated the performance of different implementation candidates with our RVVRadar tool on an Allwinner D1 (RVV 0.7). Details can be found here:: https://github.com/mschlaegl/libpng_rvv-doc
There are also two older pull requests:
https://github.com/glennrp/libpng/pull/405
https://github.com/libpng/libpng/pull/3
The original maintainer Glenn Randers-Patterson sadly passed away in 2018. For some time it looked like glennrp/libpng would no longer be actively maintained and the work would be moved to libpng/libpng. However, now it seems glennrp/libpng is active again.

anyone familiar enough with upstream to know if/when they plan on releasing v1.6.40? (we prefer to stick to published releases, but if that's not likely any time soon we can try to switch to a SHA instead...)

ah, that's unfortunate...
* f135775a Release libpng version 1.6.40
* afc6c595 Fix a build regression on Solaris
* e6c5bf46 Ensure that only one eXIf chunk is written in the entire datastream
* 8be5c147 Don't report a valid tRNS chunk if it was canceled
* f7abe3c4 Avoid a memory leak when allocation of a pCAL buffer fails
* 82097c21 Fix a doc typo in pnglibconf.dfa
* e519af8b cmake: Allow overwriting the debug postfix of library filenames
* efc96c9d cmake: Redo the fix for Clang support on Windows
* aab24fa1 Clean up CMakeLists.txt
* efa9c2e9 cmake: Rename the custom targets to have the png_ prefix
* c22ef3b2 Revert "cmake: Fix the Clang support on Windows"
* 66fede80 ci: Update the CI scripts
* 59fa76e1 ci: Add CMake+Ninja+Clang to the AppVeyor CI matrix
* 70fda183 cmake: Fix the Clang support on Windows
* aeb26da4 cmake: Use CMAKE_SHARED_LIBRARY_C_FLAGS in version script checks
* cd0ea2a7 Fix for universal binaries on macOS
* 9923515f Update the copyright year
* 61bfdb0c Update the configuration for Travis CI and AppVeyor CI
* 9db8cff6 ci: Fix verification under Cygwin Bash + CMake + Visual Studio; update
* b445aade ci: Rename the ci_* scripts
* 3c152a8e Fix typos
* 5a0b7e9c manuals: Remove references to libpngpf(3); update links
* b126f807 Reorganize and update the README file; add Markdown formatting
* 3c761b51 Bump version to 1.6.40.git

i'll take that update anyway (https://android-review.googlesource.com/c/platform/external/libpng/+/2636112/), but no riscv stuff in there :-(

I am wondering which one of the below list would be the upstream for aosp:

https://github.com/libpng/libpng
https://github.com/pnggroup/libpng
https://github.com/glennrp/libpng:  info from mschlaegl that "For some time it looked like glennrp/libpng would no longer be actively maintained and the work would be moved to libpng/libpng. However, now it seems glennrp/libpng is active again.“

I am wondering which one of the below list would be the upstream for aosp...

see https://github.com/google/android-riscv64/issues/37#issuecomment-1584607217 where i already answered this question (both for libpng specifically, but also for all projects in external/).

I am wondering which one of the below list would be the upstream for aosp...

see #37 (comment) where i already answered this question (both for libpng specifically, but also for all projects in external/).

Yes, I had already read your comment before. I asked again due to I am wondering if the upstream of libpng (which is mentioned in the METADATA as "https://github.com/glennrp/libpng.git") will be changed. From the input from mschlaegl, it looks something is changing......

no, nothing is changing. (remember anyone can comment here!)

Looking back through this thread, it seems a part of the confusion is that it's not particularly clear what glennrp/libpng refers to, because there's the original SourceForge, but our METADATA points to a Github. However, clicking through to that Github routes you to pnggroup/libbpng. Perhaps these folks took over the project formally?
At a glance, it does appear that pnggroup/libpng is the closest to glennrp/libpng, they seem to own the redirect, and they also seem to be the most active libpng fork.
@enh-google Should we consider updating the METADATA to just point to the redirected project?
@mschlaegl regarding those PRs on the project, that thread seems to have revived in December, is this something you still intend to pursue landing? (No pressure, just trying to avoid duplicate assigning this to others who might be interested.)

@enh-google Should we consider updating the METADATA to just point to the redirected project?

yeah, that sgtm. i'll let @sadafebrahimi make that change (because i'm curious whether that's something that external-updater will be confused by, or whether it will just work?). looks like we're a couple of tagged releases behind too :-)
we should probably think about whether we should switch to the chromium upstream instead, but -- as we've seen with other projects -- that's a bit of a mixed bag.


rawgit is in sunset phase

Like pointed out on the site itself, rawgit is currently in its sunset phase - in the process of shutting down in October 2019.
MarkerClusterer is currently using as a default resource to host its custom markers https://github.com/googlemaps/v3-utility-library/blob/2015e66cabec3a5553a4ef12c0ac9c332d7dbcc3/markerclustererplus/src/markerclusterer.js#L1639
so it might be appropriate to switch to something else.

Thanks for the heads up


when i click check permissions button app closed

when i click check permissions button app closed every time.

Hi @dondeepak
Can you please post a full stacktrace ?


Simplified Chinese- container “Execute Shell” Cannot execute

Describe your issue here

Useful
Info

Versions
Rancher v1.6.2 Cattle: v0.181.4 UI: v1.6.5

Access
localauth admin

Orchestration
Cattle

Route
stacks.index

Duplicate of https://github.com/rancher/rancher/issues/8963, let me know if you disagree.


Code deduplication of non-async to async

Delegating call from BigtableAdmin to BigtableAsyncAdmin using Configurations.

@sduskis Could you please have a look on BigtableAdmin changes.


No way to exclude vendor dir in latest release

$ curl -sLo- https://github.com/alecthomas/gometalinter/releases/download/v2.0.5/gometalinter-2.0.5-linux-amd64.tar.gz|tar -xzC "$GOPATH/bin" --exclude COPYING --exclude README.md --strip-components 1 -f-
$ cd /path/to/checkout
$ cd subcomponent
$ gometalinter -j1 --vendor -s some_dir -s ../../checkout_root/vendor -s vendor -s ../vendor -s /absolute/path/to/vendor --deadline 900s --disable-all -E dupl -E errcheck -E gosimple -E ineffassign -E misspell -E safesql -E staticcheck -E vet -E vetshadow ./...
../vendor/golang.org/x/net/http2/go19.go:14:2:warning: error return value not checked (invalid operation: s (variable of type *net/http.Server) has no field or method RegisterOnShutdown) (errcheck)
../../checkout_root/vendor/golang.org/x/net/http2/go19.go:14:2:warning: error return value not checked (invalid operation: s (variable of type *net/http.Server) has no field or method RegisterOnShutdown) (errcheck)
../../checkout_root/vendor/golang.org/x/net/http2/go19.go:14:2:warning: invalid operation: s (variable of type *net/http.Server) has no field or method RegisterOnShutdown (gosimple)
../vendor/golang.org/x/net/http2/go19.go:14:2:warning: invalid operation: s (variable of type *net/http.Server) has no field or method RegisterOnShutdown (staticcheck)
$

As you can see, I've tried every conceivable way to exclude the vendor dir, but it still gets included.
I'm using go 1.8.3 on Linux / x86_64. The release I used above is 2.0.5.

--vendor and --skip path tells gometalinter to never execute a linter with any path in the vendor directory, but gometalinter has no way of ensuring that a linter doesn't load those packages (when they are called with some other path).
I'm not sure why these linters are including ../vendor, but it may have something to do with the your GOPATH. You can try CGO_ENABLED=0, if I remember correctly that can something cause issues.
You can tell gometalinter to ignore these errors with --exclude ../vendor.

Hi @dnephin. Thanks for the quick response.
My GOPATH="$HOME" and there's nothing weird going on in that string (spaces, utf characters, length, etc.). CGO_ENABLED=0 didn't change anything, but --exclude ../vendor did, indeed, remove the warnings for files in vendor, which is nice, but I was more concerned with the performance impact of linting vendor, than the results being included.
Unless you have any other suggestions for preventing the linters from entering the vendor directory, I suppose this issue can be closed, though I think all gometalinter users would appreciate it, if you guys investigated why this is happening and possibly fixed it - there's potentially a lot of time/resources that could be saved here.

Yes, this could use more investigation. I've encountered this myself once or twice, but it was a while ago, and I was under the impression the issue had been resolved (#315 fixed part of it). Do you have the same problem with go1.9 and go1.10 ?
I don't think this is affecting most users. There's something about specific environments that confuse some linters and causes this problem.  You can run with --debug to get more information. If you want to post a log here I can look over it and see if I notice anything.

Interesting - after installing go 1.10, there are no reports for files in the vendor directory, but the analysis seems to take quite a bit longer.

Can you try explicitly setting GOROOT to the location of your 1.9 installation?

Ok, here's how I compared the results for go 1.8, 1.9 and 1.10.
My $GOPATH happens to be equal to $HOME and my $PWD when calling docker is the top of my checkout, within the $HOME tree.

There is definitely a problem here, but I leave the analysis to you guys. If you want o support go 1.8, there's the issue of vendor findings, otherwise there's the issue of increased run times in go >=1.9.
PS. $GOROOT was explicitly set in each case.

I suspect the reason it's slower on 1.9/1.10 is directly related to the output. I don't think it's actually linting the correct files with 1.8, which is why it's faster. It runs correctly with 1.9/1.10, which is why it takes longer.
I think it's likely that the compiled binaries are using newer libs which don't work correctly with 1.8. Does gometalinter work correctly with 1.8 if you install it with go get instead of the pre-compiled binaries?

I suspect the reason it's slower on 1.9/1.10 is directly related to the output. I don't think it's actually linting the correct files with 1.8, which is why it's faster. It runs correctly with 1.9/1.10, which is why it takes longer.

Yeah, that's the most likely explanation.

I think it's likely that the compiled binaries are using newer libs which don't work correctly with 1.8. Does gometalinter work correctly with 1.8 if you install it with go get instead of the pre-compiled binaries?

I believe it did, but I've run out of time to spare for verifying this. When I get back to the gometalinter stuff, I'll probably post some new findings (though we are moving to go 1.10, so it will most likely be info about how the number of warnings changed, with no further investigation into running on go 1.8).
For now at least you know that 1.8 can be problematic. I'd suggest explicitly stating which go versions are supported by gometalinter in the README.

Hey. With go 1.10, the number of findings increased quite a bit (though that may have to do with upgrading gometalinter and the linters), but the running time remained similar. We're no longer using go 1.8, so that's the end of that story for me. Feel free to resolve this, if you can't reproduce the issues with go 1.8. Thanks.

@alecthomas I want to ask how can I skip checking a vendored project here, See (CircleCI)[https://circleci.com/gh/mjtrangoni/grafana/109].

This is not happening local, at my desktop.
There is no vendor at the listed linting paths
This is running with go1.10.1, but github.com/mattn/go-sqlite3/sqlite3_go18.go enforce using go1.8.

I am a bit lost on how can I get gometalinter running again. Thanks!!

I think the problem is that the code doesn't build.  Those errors are coming from the loader. The package has to load correctly, otherwise it can't lint, so it's reporting that there are errors loading the package.
You could try running go build in that environment and I expect you would get the same errors. If you can fix the build errors the lint errors should be gone.

@dnephin I found that CGO_ENABLED=1 did the trick, as go-sqlite3 use CGO. Thanks!

I ran into this as well. --exclude=^vendor\/ solved it for me.

Same with me
$ gometalinter \
    --exclude='error return value not checked.*Log.*\(errcheck\)$$' \
    --exclude='Errors unhandled.,LOW,HIGH \(gas\)$$' \
    --disable=maligned \
    --cyclo-over=25 \
    --deadline=2m \
    --vendor \
    ./...
vendor/cloud.google.com/go/bigquery/query.go:166:22:error: cannot use true (type bool) as type *bool in assignment (vet)
vendor/cloud.google.com/go/bigquery/query.go:168:22:error: cannot use false (type bool) as type *bool in assignment (vet)
vendor/cloud.google.com/go/bigquery/query.go:199:15:error: cannot use qq.UseLegacySql (type *bool) as type bool in field value (vet)
vendor/cloud.google.com/go/bigquery/query.go:200:22:error: invalid operation: ! *bool (vet)
vendor/cloud.google.com/go/bigquery/query.go:166:22:warning: cannot use true (type bool) as type *bool in assignment (vetshadow)
vendor/cloud.google.com/go/bigquery/query.go:168:22:warning: cannot use false (type bool) as type *bool in assignment (vetshadow)
vendor/cloud.google.com/go/bigquery/query.go:199:15:warning: cannot use qq.UseLegacySql (type *bool) as type bool in field value (vetshadow)
vendor/cloud.google.com/go/bigquery/query.go:200:22:warning: invalid operation: ! *bool (vetshadow)
vendor/cloud.google.com/go/bigquery/query.go:166:24:warning: error return value not checked (cannot convert true (untyped bool constant) to *bool) (errcheck)

I'm using Go 1.10.2

Confirm.. it seems issue on the dependency. At least for my case.

The latest gometalinter master includes a minor attempt to fix some of these issues. Give it a whirl if you're seeing similar issues.

Is it possible to do fix on the linter? Because the problem still happen because of the dependency failed to compile, at least for my case.

Any update on this?

--vendor and --skip path tells gometalinter to never execute a linter with any path in the vendor directory, but gometalinter has no way of ensuring that a linter doesn't load those packages (when they are called with some other path).

@dnephin Couldn't gometalinter automatically ignore any linting error/warning containing vendor directory in the reported path, if invoked with --vendor option?

It could, but that is definitely not what you want. If a linter is printing errors in vendor it means it is failing to load the source. If you ignore those errors all you have accomplished is to disable the linters that were failing to load.
What you probably want is to fix the build problems, not hide the lint failures.

@dnephin In my case, I believe there was no build error. We use CircleCI with docker executor. The first stage is building&testing which works fine. The next stage is linting that failed due linting issues in one of the vendor directory. Interestingly, there was no such error before we split vendored dependencies into two vendor directories: one in root directory, and another in a subdirectory. The one in the subdirectory started causing linting issues: https://circleci.com/gh/sergefdrv/minbft/11. Moreover, same as https://github.com/alecthomas/gometalinter/issues/449#issuecomment-383186230, I cannot reproduce that on my local machine, even though I ensured exactly the same versions of gometalinter and go installed from the same binaries. But I could reproduce the same issue by rebuilding the CI image locally and running linting inside. I wonder why...

We used Go 1.10.4 in our builds. I tried to play with Go version and it changes the result when running in a CircleCI container. With Go 1.11.4 there is no linting issue anymore. I wonder why...

@alecthomas @mjtrangoni I think I know what was different between the CI container and the local machine. I belive, I installed gometalinter at some point on my machine with go get and gometalinter --install.  I guess the newly installed gometalinter used those tools. Once I removed those old binaries, I could reproduce the same on my local machine.
What I don't understand is why gometalinter still reports issues found in vendor subdirectories, although I specify --vendor option? I can build and test my project with either go1.10.4 or go1.11.4. So this doesn't seem a building issue. The reported issues are like:
sample/vendor/golang.org/x/net/http2/go111.go:26:16:warning: error return value not checked (invalid operation: trace (variable of type *net/http/httptrace.ClientTrace) has no field or method Got1xxResponse) (errcheck)

What I can notice is that the offending file includes // +build go1.11 directive.

Apparently, gometalinter's tools try to analyse the code as if they would build it using their version of Go, as opposed to using the version of Go installed on the host.

Maybe gometalinter should check the version of the go compiler on the system against its own version and issue a warning.

That sounds good to me. I expect that will help a bit by catching problems related to go version. However I believe we see similar problems related to CGO_ENABLED being enabled or disabled, and there may be other causes that I'm not familiar with.

Issuing a warning about go version mismatch would be helpful. I had to spend quite some time trying to understand the real cause of the issue. What could also make sense is to tag the binaries on the release page with the exact go version used to compile. In other words, it would be nice to make this requirement visible.


Design error handling

What
We have a design for how error will be handled
Why
So users understand the error messages they see and can attempt to fix the issue themselves
Who needs to work on this
Interaction designer, content designer
Who needs to review this
Product manager
Done when

[ ] There's a design for a 404 page
[ ] There's a design for a 500 page

current idea from @nataliecarey:


Feature suggestion: Set time of day

As I sit here waiting for the sun to come up and start charging my batteries it occurred to me I'd love to be able to set the time of day.

I'll see if I can add it.  In the mean time you can press shift+alt+O to enable the debug panel and then press O to toggle it.  There's a button in there to advance time by 1 hour each click.

Added in v1.6.4.