Add fianchetto package

📖 Description
See: https://github.com/drkameleon/fianchetto.art
📦 New package

[x] I have updated the packages/list.art:

All you have to do is add an entry like:packageName: "owner/repo"

[x] The repo in question is formatted as a valid Arturo package:

either have a main.art file and/or an info.art file specifying the entry point, depends and requires

[x] There is at least one published release:

Arturo's package manager versioning uses the published releases' tags which have to conform to SemVer

Ready to merge! 🚀


refactor: port various fixes

Description:
This PR ports various recent fixes from other working branches over to the next branch.
Motivation and Context:
Update next branch with recent changes and additions
How Has This Been Tested?
Manually
Types of changes:
Refactor
Checklist:

[x] My code follows the code style of this project.
[x] I have reviewed and updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes where needed.
[x] All new and existing tests passed.
[x] My commits have been squashed into a concise set of changes.

Coverage decreased (-0.08%) to 23.252% when pulling 4226b804ed98be5453245560a1ec3daa65c2491f on mrfelton:refactor/various-ports into df59442d6444bdfb5c106edb610e88c9a0527ccf on LN-Zap:next.


USART - nothing is printing in minicom (i.e. X)

Dear Sir,
I tried my best but, no out put show up in minicom, according to this coding (11-USART) X doesn't show up in minicom, please help I am stuck up.
Thanks, Regards
Suhail

Thanks I got it fixed

Thanks I got it fixed

@SuhailArshad1122 can you please share how did you manage to do it? Do you use external serial adapter?

Thanks I got it fixed

how did you fixed that i am having same issue please help

For any future people who have this problem, I have gone through this twice (having forgotten it) and both times my issue was that I still had it set up for loopback, so disconnecting that worked.


Add docs reference for ASP.NET

Add docs references for ASP.NET
How to verify

Look through the docs and verify that all places that reference Express also reference ASP.NET.
Verify that the ASP.NET reference corresponds to the one linked in Express.

Fixes #114

Thanks @typerandom , I've added links to all the frameworks that provide this configuration (as we have more now, woot!)


Implement the search index.

Current coverage is 99.19%

Merging #5 into master will decrease coverage by -0.81% as of 200beb9

@@            master      #5   diff @@
======================================
  Files            6       7     +1
  Stmts          169     249    +80
  Branches        12      20     +8
  Methods
======================================
+ Hit            169     247    +78
- Partial          0       1     +1
- Missed           0       1     +1

Review entire Coverage Diff as of 200beb9

Powered by Codecov. Updated on successful CI builds.

Reviewed 3 of 5 files at r1, 2 of 2 files at r2, 2 of 2 files at r3.
Review status: all files reviewed at latest revision, 5 unresolved discussions, all commit checks successful.

fusion_index/resource.py, line 78 [r2] (raw file):
I don't think we're handling the case where searchClass is not in the enum here.

fusion_index/search.py, line 25 [r2] (raw file):
This first sentence here looks like it's incomplete.

fusion_index/search.py, line 44 [r2] (raw file):
I noticed when doing the review for the Fusion side of the lookup index that the production name defaults to "prod" not "production" as this example here might indicate. I think we should standardise on our use, even if this is only serving as an example.

fusion_index/test/test_resource.py, line 103 [r2] (raw file):
I think you should name these functions GET, PUTandDELETEsince there is existing code in the tests that assigns the namesgetandput` to log message objects, it's a little confusing to shadow these like this even if the two aren't used in the same test.

fusion_index/test/test_resource.py, line 301 [r2] (raw file):
There don't seem to be any tests for logging prefix searches.

Comments from the review on Reviewable.io

Review status: 3 of 7 files reviewed at latest revision, 5 unresolved discussions, some commit checks pending.

fusion_index/resource.py, line 79 [r2] (raw file):
I made the code catch the exception and return NotFound.

fusion_index/search.py, line 25 [r2] (raw file):
Added some missing prose here.

fusion_index/search.py, line 44 [r2] (raw file):
Good point, I changed it here as well as in the lookup docs.

fusion_index/test/test_resource.py, line 103 [r2] (raw file):
I uppercased the names.

fusion_index/test/test_resource.py, line 301 [r2] (raw file):
I added some logging testing to test_exactAndPrefix which does prefix tests, so there's a bit more coverage now.

Comments from the review on Reviewable.io

Reviewed 4 of 4 files at r4.
Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.

Comments from the review on Reviewable.io


Mojave merge addendum: CF… & NSCalendar Fixes

In the Mojave timeframe, we have extensively overhauled the way CFCalendar (and consequently, NSCalendar and struct Calendar) work, and improved accuracy, stability and test coverage of several classes of calendrical calculations. This ports those changes to Swift Foundation.

Port the new CFCalendar implementation to s-c-f.
Adopt it in enumeration, where NSCalendar was previously not functional.
Enable bridging when using Core Foundation calls on NSCalendar subclasses, for full feature parity.
Start porting our tests for NSCalendar from internal ObjC code to Swift. This ports an initial batch; we’ll add as many as possible over time.
Fix issues found via porting the tests. This includes implementing {NS,}Calendar.current to have the same mutability semantics as in ObjC, fixing weekend methods to correctly report weekends, and more.

rdar://44472623; fixes SR-8796

@swift-ci test

@millenomi I tried to run this tests on High Sierra in Xcode 10 but it crashed. Is this expected?

@millenomi I tried to run this tests on High Sierra in Xcode 10 but it crashed. Is this expected?

What is the crash?

Let’s retry now that some often upstream CI blockers have been fixed.

@swift-ci please test

I think the crash is the same one as in https://ci.swift.org/job/swift-corelibs-foundation-PR-Linux/1542/console

I'm building tests on Linux separately, and can't trigger it on macOS (on Mojave/Xcode 10.1).

My bad — I had locally disabled tests and I see it now. Investigating.

@swift-ci please test

@millenomi Those changes work ok on High Sierra now.

@swift-ci please test

I'm going to try enabling the #if __LP64__ parts unconditionally if this build passes.

@swift-ci please test

The Linux error was unrelated. I'll restart the build with the fixes from feedback.

@swift-ci please test

@swift-ci please test

Upstream CI blocker filed as https://bugs.swift.org/browse/SR-9228

@swift-ci please test

@swift-ci please test

@millenomi does using this on Linux require a new swift version? Or does fetching a swift version always get the latest foundation in a docker context for example?

@Andrewangeta you need to use the development (trunk) version of Swift to use this code. This branch is set to release with Swift 5.

@millenomi cool that’ll work. Any timeline on the next dev release? I see the last release was like 12 days ago. Also what’s the release cadence like? It tends to vary from 1-3 days to 12 sometimes.

I don't think there are any new updates on that at the moment, but it is a known issue.

@Andrewangeta New toolchains have been made available today at https://swift.org/download/#snapshots.

:D yippie!


Update Script.js

I can't merge this because the adsDeleted boolean is for some checks in the removeAds function and by default it has to be False.


feat: explicitly exported component types

I've started poking around the codebase to see what needs to be done to enable this, and this seems fairly simple on the surface.
Parse the properties of the schema interface, map the names to the type alias and reference, export while making sure no named exports are colliding, and lastly add at the end of the schema.ts file.
So each property in an interface such as this one:
export interface components {
    schemas: {
        SomeExampleDto: {
            createdAt?: string;
        };
        // ...
    };
    // ...
}

Becomes the following export at the end of file:
export type SomeExampleDto = components['schemas']['SomeExampleDto'];

I've taken a naive approach at the AST. Need help with testing that properly, not sure how to go about AST fixtures.

@EcksDy, I would not waste time testing AST. It's much easier to add integration tests with --explicit-component-exports option and match the snapshot with the expected output. I've added a new test case that checks the option. Your feature looks cool.

@radist2s thank you, my pleasure.
I've removed the overkill test in favor of the snapshot testing you've introduced.
On another topic, there might be a potential bug here:

but the option has a different shape:

@EcksDy, according to --no-blob-from-binary works inversely: while it is not provided, blobFromBinary is true. So, there is no bug.

I liked the filter comments. I avoided filters initially to skip another iteration, but it's negligible. I've also removed all assertion.
text is string so I removed the casting.

@EcksDy, please message me if PR is ready and I can merge.

@radist2s sure, all done from my side I think.
Lets see where this goes, I might want to add something else in the future 😄


chore: stop GitHub highlighting comments in json as errors

GitHub also highlights comments in json as errors by default.  Adding the following to  .gitattributes stops that.
*.json  linguist-language=JSON-with-Comments

Makes project readme prettier on github.
Other possibilities discussed here:
https://github.com/microsoft/rushstack/issues/1088

I don't know if it makes sense to do this. Many JSON files (like package.json) cannot have comments, and so the editor should reflect that by marking them as errors. Only special JSON files that allow comments should have this setting enabled.

This is a cosmetic setting that changes how Github's rendering behaviour, when viewing the website.
It will not allow comments in json files.

Happy holidays.


CppProperties.json does not work in root folder for c++ projects

If, for example, you choose x64-Debug, Visual Studio creates a file called CppProperties.json in your root project folder and populates it like so:

VS may do exactly what this says, but the configurations in that file will not get picked up unless the file is inside the ".vs" directory,  not the root folder of the source.
I tore the one remaining hair on my head out trying to figure this out.

Which version of VS are you using? I wasn't able to repro on 16.3.5 or 16.4.0 preview 2.
Can you provide any repro steps or the project you are using?

I'm using the latest release of VS2019. I suppose that's 16.3.5 ?
As far as repro, you can try this repo https://github.com/amoldeshpande/haproxy and do an "open folder", and create the CppProperties via the "Manager Configurations" menu. They should be inoperative until you place it inside .vs
Below is the CppProperties I was trying to use.
{
  "projectName": "HAProxy",
  "environments": [
    {
      "PATH": "${env.vsInstallDir}\\VC\\ClangC2\\bin\\am64;${env.LOCALAPPDATA}\\Atlassian\\SourceTree\\git_local\\usr\\bin;${env.PATH}"
    }
  ],
  "configurations": [
    {
      "name": "Clang-x64-Release",
      "inheritEnvironments": [
        "msvc_x64_x64"
      ],
      "includePath ,": [
        "${env.INCLUDE}"
      ],
      "defines": ["NDEBUG"],
      "intelliSenseMode": "windows-clang-x64",
      "environments": [
        {
          "PATH": "${env.vsInstallDir}\\VC\\ClangC2\\bin\\am64;${env.LOCALAPPDATA}\\Atlassian\\SourceTree\\git_local\\usr\\bin;${env.PATH}",
          "environment": "msvc_x64"
        }
      ]
    },
    {
      "name": "Clang-x64-Debug",
      "inheritEnvironments": [
        "msvc_x64_x64"
      ],
      "includePath ,": [
        "${env.INCLUDE}"
      ],
      "defines": [ "DEBUG" ],
      "intelliSenseMode": "windows-clang-x64",
      "environments": [
        {
          "PATH": "${env.vsInstallDir}\\VC\\ClangC2\\bin\\am64;${env.LOCALAPPDATA}\\Atlassian\\SourceTree\\git_local\\usr\\bin;${env.PATH}",
          "BUILD_DEBUG": 1,
          "environment": "msvc_x64"
        }
      ]
    }
  ]
}

Found the issue: in Open Folder mode VS will ignore the stuff specified in .gitignore, which, in your case, ignored everything by default. Adding an exception to your .gitignore (!/CppProperties.json) will fix the issue.

Awesome, thank you!  Curious why it works from with .vs then ? Is that just a fallback location ?

Correct, the .vs folder is special :)

I added a note about .gitignore to the topic. Should go public in 1-2 days. Thanks for the feedback @amoldeshpande !


aws efs restore fail : ./efs-restore.sh: line 22: [: too many arguments

Hello,
I do some test use efs with data pipeline, according to backup efs .
I can backup efs , but tried  restore efs many times failed. The efs size only 200M,
It is the efs s3 log
27 Jul 2017 08:42:35,923 [INFO] (TaskRunnerService-resource:df-02164142M6NFNIT11Y63_@EC2ResourceObj_2017-07-27T08:40:29-0) df-02164142M6NFNIT11Y63 amazonaws.datapipeline.taskrunner.TaskPoller: Executing: amazonaws.datapipeline.activity.ShellCommandActivity@31e1783b
27 Jul 2017 08:42:36,027 [INFO] (TaskRunnerService-resource:df-02164142M6NFNIT11Y63_@EC2ResourceObj_2017-07-27T08:40:29-0) df-02164142M6NFNIT11Y63 amazonaws.datapipeline.objects.CommandRunner: Executing command: wget https://raw.githubusercontent.com/awslabs/data-pipeline-samples/master/samples/EFSBackup/efs-restore.sh
chmod a+x efs-restore.sh
./efs-restore.sh $1 $2 $3 $4 $5
27 Jul 2017 08:42:36,042 [INFO] (TaskRunnerService-resource:df-02164142M6NFNIT11Y63_@EC2ResourceObj_2017-07-27T08:40:29-0) df-02164142M6NFNIT11Y63 amazonaws.datapipeline.objects.CommandRunner: configure ApplicationRunner with stdErr file: output/logs/df-02164142M6NFNIT11Y63/ShellCommandActivityObj/@ShellCommandActivityObj_2017-07-27T08:40:29/@ShellCommandActivityObj_2017-07-27T08:40:29_Attempt=1/StdError  and stdout file :output/logs/df-02164142M6NFNIT11Y63/ShellCommandActivityObj/@ShellCommandActivityObj_2017-07-27T08:40:29/@ShellCommandActivityObj_2017-07-27T08:40:29_Attempt=1/StdOutput
27 Jul 2017 08:42:36,043 [INFO] (TaskRunnerService-resource:df-02164142M6NFNIT11Y63_@EC2ResourceObj_2017-07-27T08:40:29-0) df-02164142M6NFNIT11Y63 amazonaws.datapipeline.objects.CommandRunner: Executing command: output/tmp/df-02164142M6NFNIT11Y63-1f87ddb121394f15b1d638c67340a48e/ShellCommandActivityObj20170727T084029Attempt1_command.sh with env variables :{} with argument : [<IP_ADDRESS>:/, <IP_ADDRESS>:/, daily, 0, backup-fs-12345678]
27 Jul 2017 08:42:38,569 [ERROR] (TaskRunnerService-resource:df-02164142M6NFNIT11Y63_@EC2ResourceObj_2017-07-27T08:40:29-0) df-02164142M6NFNIT11Y63 amazonaws.datapipeline.connector.staging.StageFromS3Connector: Script returned with exit status 23
27 Jul 2017 08:42:38,605 [INFO] (TaskRunnerService-resource:df-02164142M6NFNIT11Y63_@EC2ResourceObj_2017-07-27T08:40:29-0) df-02164142M6NFNIT11Y63 amazonaws.datapipeline.taskrunner.LogMessageUtil: Returning tail errorMsg :--2017-07-27 08:42:36--  https://raw.githubusercontent.com/awslabs/data-pipeline-samples/master/samples/EFSBackup/efs-restore.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1474 (1.4K) [text/plain]
Saving to: 鈥榚fs-restore.sh鈥�

     0K .                                                     100%  127M=0s

2017-07-27 08:42:36 (127 MB/s) - 鈥榚fs-restore.sh鈥� saved [1474/1474]

./efs-restore.sh: line 22: [: too many arguments
rsync: change_dir "/mnt/backups/backup-fs-12345678/daily.0" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]
27 Jul 2017 08:42:38,606 [INFO] (TaskRunnerService-resource:df-02164142M6NFNIT11Y63_@EC2ResourceObj_2017-07-27T08:40:29-0) df-02164142M6NFNIT11Y63 amazonaws.datapipeline.taskrunner.HeartBeatService: Finished waiting for heartbeat thread @ShellCommandActivityObj_2017-07-27T08:40:29_Attempt=1
27 Jul 2017 08:42:38,606 [INFO] (TaskRunnerService-resource:df-02164142M6NFNIT11Y63_@EC2ResourceObj_2017-07-27T08:40:29-0) df-02164142M6NFNIT11Y63 amazonaws.datapipeline.taskrunner.TaskPoller: Work ShellCommandActivity took 0:2 to complete

The configuration file is nothing special.
myImageID use the the Amazon Linux AMI 2017.03.1 (PV) ami-98f3e7e1
myInstanceType  use t1.micro
Thanks for your answer

I backup efs change 1-Node-EFSBackupPipeline.json default myEfsID , but restore efs use the 1-Node-EFSRestorePipeline default myEfsID.  It is restore efs success after correct myEfsID.


Orion model re-training by initializing model with trained model info

Orion version: 0.6.0
Python version: 3.10
Operating System: Windows

Description
We will run large amount of data through to train models, and will keep training with new data, do not want to do all over from very beginning. I saw the package has model save and load functions, it might not work in this case. Some models, like LSTM, come with callbacks options, may be used for retraining, but models like TadGAN and AER do not have the options.
It would be great if Orion has a feature to re-train by initializing model with previously trained model info.
Thanks,
What I Did
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Hi @lichengca, thank you for your suggestion!
We definitely understand the need for this feature. I'm marking it as a feature request and it should be supported in future releases


Fixed clientlib code examples

thanks @eko, looks god just a little remark

Changes made from my iPhone ;)

thank you @eko


Fixed ANN_MLP dw initialization when moment is not 0

This issue is applicable to backpropagation training method only. Uninitialized values (dw[i]) are first used on line 836 in the case when moment scale (params.bpMomentScale) is not 0.
gemm( _x, grad1, params.bpDWScale, dw[i], params.bpMomentScale, dw[i] );

Branch 2.4 does not have same problem.

:+1:


All Contributors Bot Thread

nice

@all-contributors add @all-contributors for tools

@all-contributors add @SwiftyProgrammer690 for review

@all-contributors add @PythonPrashant for blog


Use a cancellationtoken to stop the simulator from running midway through.

The purpose of this change is to close up the loop between start and stop.

If you start multiple times, only the first should succeed.
If you start and then stop, then the start should be cancelled.

@riknoll @pelikhan PR ready for review.

I am handling cancellation on the editor side in https://github.com/Microsoft/pxt-minecraft/pull/757 but perhaps you have a good point, to just handle it internally.

@pelikhan made the change to handle token internally, ready for review.

I'm tossing up whether it's better if we receive a number of simultaneous startSimulator calls to either:

start the first and ignore the rest
cancel each subsequent one and only run during the last one.

My gut feeling is that it doesn't matter, since the calls are made right after each other, there's no change for saveAsync to be invalidated. @pelikhan does this make sense?

You could keep a hash of the run option and restart if they changed.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Sam El-Husseini<EMAIL_ADDRESS>Sent: Wednesday, October 31, 2018 2:09 PM
To: Microsoft/pxt
Cc: Peli de Halleux; Mention
Subject: Re: [Microsoft/pxt] Use a cancellationtoken to stop the simulator from running midway through. (#4950)
I'm tossing up whether it's better if we receive a number of simultaneous startSimulator calls to either:

start the first and ignore the rest
cancel each subsequent one and only run during the last one.

My gut feeling is that it doesn't matter, since the calls are made right after each other, there's no change for saveAsync to be invalidated. @pelikhanhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpelikhan&data=02|01|jhalleux%40microsoft.com|031968d93c084a010d5508d63f752edd|72f988bf86f141af91ab2d7cd011db47|1|0|636766169862879159&sdata=sShfuSwQyMst7CYDlMFEQE6DeQI%2Be7Avollh%2FGh0rzk%3D&reserved=0 does this make sense?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fpxt%2Fpull%2F4950%23issuecomment-434848699&data=02|01|jhalleux%40microsoft.com|031968d93c084a010d5508d63f752edd|72f988bf86f141af91ab2d7cd011db47|1|0|636766169862889164&sdata=CWoUV8yNJB6%2FmWyLAEdP36jtGrPYJjZCypDqUXNPEhE%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD-4KS9_piFK0VFm8t74EcHp7PQzXqPvks5uqhGYgaJpZM4YEpHb&data=02|01|jhalleux%40microsoft.com|031968d93c084a010d5508d63f752edd|72f988bf86f141af91ab2d7cd011db47|1|0|636766169862889164&sdata=e6pkqB2tcCYWZY1K8oVJOuDbwuOc8G3lYJr6sWt2jVU%3D&reserved=0.

How about runSimulator starts the runToken, and stopSimulator cancels.
StartSimultor just does a save as well. and that's usually pretty quick.

Final thoughts on this @pelikhan

Yep.


Filling individual parts of RAM and Project Plan - Begüm

Filling RAM and Project Plan with my individual contributions

done my part


Cannot use extension in vs 2013 w/ out 2012 installed

When I try to use in vs 2013 I get an error saying extension unable to load and check ActivityLog.xml - it says this: I dont have vs2012 or 2015 installed... any ideas?
  <entry>
    <record>994</record>
    <time>2015/09/18 23:48:33.663</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [TargetFrameworkMigratorPackage]</description>
    <guid>{4C5B2B2F-17B1-4B85-ACEB-F5E8865DC05A}</guid>

80004005 - E_FAIL

    <errorinfo>Could not load file or assembly 'Microsoft.VisualStudio.Shell.11.0, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo>
  </entry>

Fixed in 1.6.1


use conda instead of venv

Is venv the only supported virtual environment mechanism? Is it possible to use conda instead?
The Python extension for VSCode supports many environments (venv, Poetry, Conda). Is it possible to tell the Azure function extension to use whatever Python env the Python extension sets up? Moreover, consider that Azure Machine Learning supports only Conda (https://docs.microsoft.com/en-us/azure/machine-learning/concept-environments) so this is creating some fragmentation across Azure products.

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

ID: 8b1ff97a-0ca7-c91b-5b45-370212407a51
Version Independent ID: b60719ca-3e64-8a00-75bb-dda1d8119b21
Content: Create a Python function from the command line - Azure Functions
Content Source: articles/azure-functions/create-first-function-cli-python.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

Hello @JackCaster - Thank you for your feedback! We will review and update as appropriate.

I think I am getting closer to what I want.
If in setting.json I set "azureFunctions.pythonVenv": "~/miniconda3", then when I press F5 this will be excuted:
> Executing task: . ~/miniconda3/bin/activate && func host start <

which means that the base conda environment will be used. What I'd need is to execute this instead:
~/miniconda3/bin/activate && conda activate myEnv && func host start

Do you know how I can achieve that? I tried with setting an additional task into task.json without avail.
Also, I noticed that if the setting "azureFunctions.pythonVenv": "/home/myhome/miniconda3" starts with a / this will be removed.

Hello @JackCaster - Conda is yet to be supported: Investigate supporting Conda #256
However, it might still be possible to get it working: https://github.com/Hazhzeng/functions-conda
Since this channel is for driving improvements towards MS Docs and we didn't determine any changes to the doc upon reviewing this feedback, we will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Minute missing from unit specification for durations on query spec

URL for relevant page?
https://docs.influxdata.com/influxdb/v0.12/query_language/spec/#durations
What products and version are you using?
Documentation for v0.12
Where did you look before opening the issue?
Checked open issues.
Description
The specification for duration includes the following:
duration_lit        = int_lit duration_unit .
duration_unit       = "u" | "µ" | "s" | "h" | "d" | "w" | "ms" .

Whereas the table directly above it includes "m" for "minute". I assume the duration_unit list should include | "m" | between "s" and "h".

Thank you for pointing this out, @mrsheepuk! Fixed in  https://github.com/influxdata/docs.influxdata.com/pull/444.

Welcome @rkuchan :)


Version 2.2.0 not cleaning caches

Versions prior to v2.2.0 have always worked flawlessly.  :-)
Version 2.2.0 is not working.
It displays a Cache cleaned toast, but the cache is not cleaned.  Unlike previous versions, the cumulative size of the caches that has been deleted is not reported.
Experimenting with all the settings checkboxes did not yield a different result.
Version 2.2.0 tested on Android KitKat.

Hello @Gitoffthelawn.
The app no longer reports the total amount of cache cleaned because of multiple reasons. First, the number did not use to be accurate, which renders it useless. Second, due to an optimization that allows you to skip scanning before cleaning, the number may not even be available.
Does the actual cleaning work for you ? If not, please, write your device, Android version, ROM and of course, post the logcat output.

@Kuci Thanks for the details regarding the total amount cleaned.
I will triple-check, but I'm quite sure that nothing is being cleaned.
Since v2.2.0 was just released, let's give it a few days to see if others are also having the issue.  The test was conducted on a stock LG Android 4.4.2 (SDK 19) ROM.

@Gitoffthelawn Why are you quite sure that nothing is being cleaned ? Do you have any numbers ? Any cases of failure ?

@Kuci  When I would run the previous version, it would seem to work.  I would then run it again, and the sizes of all the caches would be zero within the app, showing that it was most likely working correctly.  To test it, I would go into the stock Android apps manager, and it would show all the caches at zero (except for ones for active processes that quickly get recreated).
When I run the current version, it seems to work as well.  No errors.  But when I run it again, it shows most of the caches have not been deleted.  Going in to the stock Android apps manager confirms this observation.
The first few times I tested the latest version, it did not appear to delete any caches at all.  I've had a moment to try it again, and it appears it is deleting some, but not all, caches.  Is there a new limit to not delete caches under a certain size?
I was thinking about your comment regarding the size of the caches cleared not being accurate within the app... from what I can see, the cache sizes reported in the app match those reported by the stock Android apps manager.  Is it that those values are correct, but the amount cleared was not?  If so, why the discrepancy?

@Gitoffthelawn The only thing we can do about internal cache is to tell Android to free some space, but can not predict how much space will actually be freed.
This line might be buggy on your ROM. I will try to work it around tomorrow and provide you with a branch containing potential fix, so that you could test it out.

@Kuci  No rush at all.  :-)  I'm busier than I prefer and not sure when I will have time for testing.
Just to clarify and to make sure I'm not misunderstanding, the function of this app is to only clean the internal app caches within the limits of Android (nothing more and nothing less), correct?
In other words, it should be the exact same as pressing Clear Cache for each app in the stock Android apps manager, right?
IIRC, the previous version of this app would reduce cache sizes of all apps to zero.  Caches for active processes quickly get recreated, but those are a minority.  This new version does not seem to touch most (perhaps any) caches under 100KB and sometimes misses larger ones.  I suppose I could have just thought the previous version was working, but I'm pretty sure I double-checked the results via the stock Android apps manager.  I was not keeping a written record, however.
I gave Power Clean and CCleaner a try to see how they compare to this project.  Power Clean finds and deletes app caches of all sizes.  CCleaner seems to find and delete app caches over a certain threshold, perhaps 32KB (the smallest it found was 44KB).  I don't know why CCleaner ignores smaller caches.
Here is a quick comparison of the app caches they found in one test:
- Power Clean:   20.4 MB
- Cache Cleaner: 20 MB
- CCleaner:      16.11 MB

@Gitoffthelawn No, it does not do the exact same thing that Clear Cache button in Settings does. Settings app uses API that allows it to immediately delete a cache. We can not use the same API because a permission required to use that API is not available to 3rd party apps in any version of Android. Cache Cleaner uses another API which tells Android how much space in internal storage we would like to be freed and it tries to free as much as we ask for. It is not as reliable as the button in Settings app, yet I find it very reliable on all the devices I have been testing Cache Cleaner on.
Therefore, it is not up to Cache Cleaner what is being cleared, it is up to Android and we can do pretty much nothing about it.

@Kuci That's a fantastic (and very well written) explanation.  Thank you!!!

I also found Cache Cleaner to be very reliable.  When I started using it, it seemed to be just as effective as pressing the Clear Cache button in the stock Android apps manager (although much faster when there are hundreds of apps!).
Any ideas what Power Clean and CCleaner are doing?  I will have to double-check, but I think they both list the cache sizes for specific apps.  That makes me think they are somehow clearing specific app caches (or at least making it look like they are).  I have a hunch (and it's just a guess) that CCleaner uses the same technique as Cache Cleaner, but Power Clean might be using another technique.

@Gitoffthelawn Then Android will try to free 64GB of internal storage. Cache Cleaner tells Android to free as much as is the size of data partition. In other words, data partition on my Nexus 5 is 12.6 GiB, so Cache Cleaner tells Android to free 12.6 GiB of internal storage.
Both Power Clean and CCleaner use the same permission that Cache Cleaner uses, so both of them must be using the same API that we do.

@Gitoffthelawn I have created issue-30 branch. Please, try it yourself if you can and report the results.

@Kuci   Thanks.  It's on my list.  Will be quite some time, but it's in the queue.
I have a few more questions / ideas, and will hopefully have time to post again soon.
In the meantime, quick question: Can you think of any changes in the latest version that would cause this issue (besides the one for the test build)?

@Gitoffthelawn e54a76c2 is the only commit between v2.1.6 and v2.2.0 in which I have made changes to the code related to internal cache cleaning, so no.

@Gitoffthelawn This issue has been opened for over 2 weeks now, are you having troubles with testing ? Do you want me to compile it for you ?

NAVER - http://www.naver.com/
<EMAIL_ADDRESS>님께 보내신 메일 <Re: [android-cache-cleaner] Version 2.2.0 not cleaning caches (#30)> 이 다음과 같은 이유로 전송 실패했습니다.

받는 사람이 회원님의 메일을 수신차단 하였습니다.

My apologies... I've been overbooked.  I've also been thinking about an effective methodology to test it and compare it's results to other tools.  Do you have any ideas?
If you can compile it, that would be great.

Here it is, I have compiled it for you. Just replace .txt with .apk and install it on your device. Let me know about the results.
CacheCleaner-debug.txt

@Gitoffthelawn It has been a week since I posted the APK, what is the result of testing ?

@Kuci What do you think is an effective methodology to test it?

@Kuci I'll have a test system available for about 20 more minutes if you get this.

@Kuci I completed the testing.  Here are the results.
Test operating system: Android KitKat v4.4.2
Step 1: Opened Cache Cleaner v2.2.0 (public release)
Used: 3.1GB
Cache: 102MB
Free: 743MB
Step 2: Cleaned cache with Cache Cleaner v2.2.0
Step 3: Rescan
Used: 3.1MB
Cache: 4.6MB
Free: 838MB
Step 4: Cleaned cache with Cache Cleaner v2.2.0
Step 5: Rescan
Used: 3.1MB
Cache: 4.6MB
Free: 838MB
Step 6: Cleaned cache with Cache Cleaner v2.2.0
Step 7: Rescan
Used: 3.1MB
Cache: 4.6MB
Free: 838MB
Noticed that many caches still exist, with maximum cache sizes of 76KB
Step 8: Uninstalled Cache Cleaner v2.2.0
Step 9: Installed Cache Cleaner v<IP_ADDRESS>-g5963eee (test version)
Step 10: Opened Cache Cleaner v<IP_ADDRESS>-g5963eee
Used: 3.1GB
Cache: 4.8MB
Free: 836MB
Step 11: Cleaned cache with Cache Cleaner v<IP_ADDRESS>-g5963eee
Step 12: Rescan
Used: 3.1GB
Cache: 4.6MB
Free: 836MB
Noticed that many caches still exist, with maximum cache sizes of 76KB (appear to be same apps as in Step 7)
Step 13: Cleaned cache with Cache Cleaner v<IP_ADDRESS>-g5963eee
Step 14: Rescan
Used: 3.1GB
Cache: 4.6MB
Free: 836MB
Noticed that many caches still exist, with maximum cache sizes of 76KB (appear to be same apps as in Step 7)
Step 15: Cleaned cache with Cache Cleaner v<IP_ADDRESS>-g5963eee
Step 16: Rescan
Used: 3.1GB
Cache: 4.6MB
Free: 836MB
Noticed that many caches still exist, with maximum cache sizes of 76KB (appear to be same apps as in Step 7)
Step 17: Opened  CCleaner v1.11.43.  It reported 14.08MB can be cleaned, but there was no specific option for system cache, so did not clean.
Step 18. Opened PowerClean v2.7.10.  It reported System Cache 4.75MB
Step 19. Clean System Cache (and only System Cache) using PowerClean
Step 20: Opened Cache Cleaner v<IP_ADDRESS>-g5963eee
Used: 3.1GB
Cache: 4.6MB
Free: 835MB
Step 21: Cleaned cache with Cache Cleaner v<IP_ADDRESS>-g5963eee
Step 22: Rescan
Used: 3.1GB
Cache: 4.6MB
Free: 835MB
Step 23: In Cache Cleaner v<IP_ADDRESS>-g5963eee, clicked on first 3 apps with 76KB caches (each), and manually cleared them using Android UI
Step 24: Rescan
Used: 3.1GB
Cache: 4.4MB
Free: 835MB
Step 25: In Cache Cleaner v<IP_ADDRESS>-g5963eee, clicked on next 7 apps with 76KB caches (each), and manually cleared them using stock Android UI
Used: 3.1GB
Cache: 3.9MB
Free: 835MB
Conclusion: Cache Cleaner v<IP_ADDRESS>-g5963eee is no more effective than v2.2.0.  Stock Android App Manager can clean caches that Cache Cleaner v<IP_ADDRESS>-g5963eee and v2.2.0 cannot.  Although it is more effective than Cache Cleaner, it is significantly more tedious and time consuming to use the Android App Manager.

@Gitoffthelawn I am sorry for not replying, I was not on the internet.
Your testing methodology looks good and so do the results. v2.2.0 seems to be working properly because there is always some insignificant cache size, which is somehow locked by Android and we can do pretty much nothing about it.
Thank you for reporting and testing.

@Kuci You're welcome.  Glad to help.


⚠ Mobitopup has degraded performance

In 8f816f2, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 6785 ms

Resolved: Mobitopup performance has improved in 746a8a0.


[WIP] Complete school trust data

Update school trust data with all school trusts listed in edubase.
Manually matched trusts to companies house companies, where they were not already matched in edubase.
Manually identified which trusts are umbrella trusts when a school had two trusts listed.
Makefile steps to match a school with its school-trust and school-umbrella-trust keys.

Comment to test slack integration.


How to integrate an external axis?

We are interested in integrating an external axis (aka MultiMove). I did some reading at the old ROS1 driver and learned a few things:

The abb_rws_state_publisher package publishes the JointState and SystemState, including external axis info.
abb_egm_hardware_interface provides actual control of the axes.

Question:  there's a note saying abb_egm_hardware_interface relies on abb_rws_service_provider. Is that a hard requirement or something we could avoid?

Maybe @dignakov @gavanderhoorn or @jbeck28 have suggestions

abb_egm_hardware_interface already supports multiple mechanical units.
abb_rws_service_provider provides services which are used to interrogate the controller at runtime and are used by the hw interface to construct the corresponding ros_control resources, and services used to coordinate the RAPID side of the driver (start + stop EGM, configure settings, etc).
As a bare minimum, you could implement a simple node which offers a service which returns a hard-coded configuration (like in https://github.com/ros-industrial/abb_robot_driver/issues/33#issuecomment-932268546 fi).


Add workflow to publish package to PyPI on tag/release (fixes #43)

Summary of changes
GitHub workflow to build and publish package to PyPI when a tagged commit is pushed to the master branch or when a manual release is drafted.
@bennylope you (I assume you, at least) will need to generate two encrypted secrets, namely PYPI_USERNAME and PYPI_PASSWORD, for this to work (see https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets).
Checklist

[X] Changes represent a discrete update
[X] Commit messages are meaningful and descriptive
[X] Changeset does not include any extraneous changes unrelated to the discrete change

Thank  you @dkgv!


[blaze] Does not install cmake files needed for find_package(blaze) to work

The portfile for the Blaze library does not install the generated files blaze-config.cmake and blaze-targets.cmake which makes it difficult to be discovered using find_package(blaze). What would be the right way to include this library into my own projects?

Generally, the answer is to use find_path() and find_library(). However, I've also modified the blaze port to now install blaze-config.cmake in 4b66571c. It should work with:
find_package(blaze REQUIRED)
target_link_libraries(hpx PRIVATE blaze::blaze)

However, due to some poor interactions with Debug/Release, I had to disable the automatic chainloading of LAPACK and Boost, so you'll need to find_package() those separately.

It now works for us. Thank you very much for resolving this. I suppose this issue can be closed now.


Logical AND operator (&&) is highlighted as illegal

Do I miss something?

I fixed it by commenting these lines in Angular2HTML.sublime-syntax
  # entities:
  #   - include: entities-common
  #   - match: '&'
  #     scope: invalid.illegal.bad-ampersand.html

This is inherited from the official HTML syntax. I never use && in template so never thought that it is a problem. I think I have a better solution, will play a bit and get back to you.

Should be fixed by https://github.com/princemaple/ngx-html-syntax/commit/f42545b1290239d07e6ca6d4af95181e3a9ef74a
And now the js expressions in the angular bindings are highlighted as js. (taking advantage of sublime text build 3156+, from the dev channel)

Thanks for the fix!
Mind me asking, you said you never use && in template, but how do you deal with AND logic in a template? I feel I miss something obvious here...

Well, you always have the option to extract the logic into a method, and call the method in the template instead of writing out the whole logic.


WIP: Revisited CMake files

For anyone interested in understanding CMake I suggest this book -> https://crascit.com/professional-cmake/

This should have been merged into develop back in April, but that didn't happen. And now we have a conflict. @athelaf: Can you resolve the conflict?

Outdated


File missing

Looks good in theory but how would python3 randomBot.py work if the file does not exist.

You are right, I just updated README.md; Correct command is python3 main.py.


change task background to red

Changing the background to red to try out visual regression testing in storybook & chromatic.

Let's not change the background to red.


Feature/check profile

this feature is not complete.
todo:

write a route # TODO Global - get all the laptimes posted by a user.
display that  on UserProfile.tsx page to show User's laptimes/moments(latest*)

im having this issue where it's kinda hard  from Post/Post.tsx to take the user to abother user's page.
if i try this


Provide a default Destination AnimatedContent Scope to support the Shared Element Transition API

Compose 1.7.0-alpha07 has released the first Shard Element Transition API, and after my initial experience with it, I realized that Compose Destination might need to make some encapsulations for this
A simplest example of a Shared Element would look like this:
SharedTransitionLayout {
  NavHost(
    navController = navController,
    startDestination = "first",
  ) {
    composable("first") {
      Column {
        LazyColumn(...) {
          items(100) {
            CenterRow {
              Text(text = "items $it")
              AsyncImage(
                model = "...",
                contentDescription = null,
                modifier = Modifier
                  .sharedElement(
                    state = rememberSharedContentState(key = "image $it"),
                    animatedVisibilityScope = this@composable
                  )
                  .clickable {
                    navController.navigate("second/$it")
                  },
              )
            }
          }
        }
      }
    }
    composable(
      route = "second/{imageId}",
      arguments = listOf(
        navArgument("imageId") { type = NavType.IntType }
      )
    ) { backStackEntry ->
      Box {
        AsyncImage(
          model = "...",
          contentDescription = null,
          modifier = Modifier
            .fillMaxWidth()
            .size(300.dp)
            .sharedElement(
              state = rememberSharedContentState(key = "image ${backStackEntry.arguments?.getInt("imageId")}"),
              animatedVisibilityScope =  this@composable
            )
        )
      }
    }
}

As you can see from the code above, a sharedElement requires an animatedVisibilityScope parameter, and if the code above were done with Compose Destination, it would need to be written as composable(...).
For me, I mostly use DestinationsNavHost in Compose Destination because it automatically generates all composable("xxx") with KSP, but if I want to use the Shared Elements API in some screens, I need to provide an AnimatedVisibilityScope parameter, and DestinationsNavHost can't automatically inject AnimatedVisibilityScope for the screen.
My idea is that the AnimatedContentScope can be injected by default into a different composable in Compose Destination, Just like DestinationNavigator.
@AppNavGraph
@Destination
@Composable
fun SharedTransitionScope.StatusMediaScreen(
  animatedVisibilityScope: DestinationAnimatedVisibilityScope,
  navigator: DestinationNavigator,
  attachments: Array<Attachment>,
  targetMediaIndex: Int,
)

Technically, we can use the manualComposableCallsBuilder for the destinations where we need to pass the animatedVisibilityScope. It's not pretty but it allows us to not write composable() for each destination.
manualComposableCallsBuilder = {
    composable(HomeScreenDestination) {
        CompositionLocalProvider(
            LocalNavAnimatedVisibilityScope provides this,
        ) {
            HomeScreen(
                navController = navController,
                nestedScrollConnectionGetter = { nestedScrollConnection },
            )
        }
    }
    composable(WallpaperScreenDestination) {
        CompositionLocalProvider(
            LocalNavAnimatedVisibilityScope provides this,
        ) {
            WallpaperScreen(
                navController = navController,
                source = navArgs.source,
                wallpaperId = navArgs.wallpaperId,
                thumbData = navArgs.thumbData,
            )
        }
    }
},

Then use the scope inside the composable.
But yeah, auto injected scope would be better.

Hey guys
I haven’t had time to properly check shared element transitions but if you just need the animated scope, that is something that hm the lib already knows how to provide to the destination without any setup whatsoever.
check this
https://composedestinations.rafaelcosta.xyz/v2/styles-and-animations#animated-style

@raamcosta but if we use shared element transition api, we also need SharedTransitionScope in my function, just like this:

but, compose destination seems cannot resolve SharedTransitionScope ?🤔.

I just made use of shared element transitions with no issue. I don't think the "glichyness" is related to Compose Destinations.
That said, I will with next release do some changes that should make using it easier. Specifically with the way to send SharedTransitionScope and AnimatedVisibilityScope.

@raamcosta I have created a sample project which shows the shared element bug when the screens are in nested navhost.
In the sample, Click rows which go to "Detail in List" will correctly work with shared transition, where as those with "Detail in Root" won't work.
ComposeDestinationSharedElemBug.zip

@ammargitham have you tried the same code without Compose Destinations and with official compose navigation lib?
I really don’t think Compose Destinations is causing this issue as we just bridging things from the official lib.

@raamcosta Okay, I tried with the official lib. Same behavior. Will raise issue in Google issue tracker.


Fix Ireland holidays

Proposed change

Ireland holidays changes that have not been merged from #1333.
Type of change

[ ] New country/market holidays support (thank you!)
[ ] Supported country/market holidays update (calendar discrepancy fix, localization)
[x] Existing code/documentation/test/process quality improvement (best practice, cleanup, refactoring, optimization)
[ ] Dependency upgrade (version update)
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] Breaking change (a code change causing existing functionality to break)
[ ] New feature (new python-holidays functionality in general)

Checklist

[x] I've followed the contributing guidelines
[x] This PR is filed against beta branch of the repository
[x] This PR doesn't contain any merge conflicts and has clean commit history
[x] The code style looks good: make pre-commit
[x] All tests pass locally: make test, make tox (we strongly encourage adding tests to your code)
[x] The related documentation has been added/updated (check off the box for free if no updates is required)

coverage: 100.0%. remained the same when pulling 33eacede7a97b710370cd68cd224ae1aee98751d on KJhellico:fix-ireland into fe35f9f4c727793f36b822db49403f2b48d5a9ef on dr-prodigy:beta.


Zotero updates

This process is still partly manual - the builder of the website needs to manually pull a newer version of the Zotero DB.  Ideally, it will be automatic with each build, but that may have too many failure modes to be robust (most especially if the user does not have a valid OAuth token).

This has been superseded by publishing the new website.  Much of this is available already there.

This has been superseded by publishing the new website.  Much of this is available already there.


Unexpected token(.)

Cant figure out the issue..

create .replit and paste this there
run = "wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash && export NVM_DIR=\"$([ -z \"${XDG_CONFIG_HOME-}\" ] && printf %s \"${HOME}/.nvm\" || printf %s \"${XDG_CONFIG_HOME}/nvm\")\" && [ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\" && nvm install 14 && nvm use 14 && yarn && node server"
language = "BASH"

this should upgrade the node which will solve the issue @AdityaParmar101

Bro thanks for quick reply, btw i get this..

shouldn't happen works for me

shouldn't happen works for me

Uh i did that lol . @AdityaParmar101 But it worked

Maybe, use NVM, a package manager for NodeJS, then repeat npm install. It should work.
@AdityaParmar101

create .replit and paste this there
run = "wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash && export NVM_DIR=\"$([ -z \"${XDG_CONFIG_HOME-}\" ] && printf %s \"${HOME}/.nvm\" || printf %s \"${XDG_CONFIG_HOME}/nvm\")\" && [ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\" && nvm install 14 && nvm use 14 && yarn && node server"
language = "BASH"

this should upgrade the node version to 14.
which will solve the issue @AdityaParmar10

create .replit and paste this there
run = "wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash && export NVM_DIR=\"$([ -z \"${XDG_CONFIG_HOME-}\" ] && printf %s \"${HOME}/.nvm\" || printf %s \"${XDG_CONFIG_HOME}/nvm\")\" && [ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\" && nvm install 14 && nvm use 14 && yarn && node server"
language = "BASH"

this should upgrade the node version to 14.
which will solve the issue @AdityaParmar101
if you use this command the node will get updated to 14 which is incompatible with this code at least that's what the console says

it will be fixed in the next update, thanks for your time.

i am using a different package in new update + its coming soon

when will you do it

same problem but i figured out! go to shell and type "npm un youtube-sr". After done uninstalling, Type "npm i youtube-sr". And you are done.


feat: enhance error message when plugin module isn't loaded correctly

Fix for #4024
@sodatea Let me know if it makes more sense to implement this change somewhere else in the codebase.

Thanks for this PR! But the error actually comes from here:
https://github.com/vuejs/vue-cli/blob/80e5d7ff36231fc31d2ed89fcf8f90483dbb3bec/packages/%40vue/cli/lib/add.js#L51-L55
For normal plugins, we do have proper error handling:
https://github.com/vuejs/vue-cli/blob/80e5d7ff36231fc31d2ed89fcf8f90483dbb3bec/packages/%40vue/cli/lib/invoke.js#L72-L83
So once this issue is resolved and vuex & vue-router become standalone plugins, the error message will be correctly displayed. I think @pksunkara is currently working on this.

I just implemented the first part of it, PR #4196

@sodatea ahh makes sense now. This sounds like a more permanent fix. Is there a way I can get in touch to find out what issues to work on? I plan on dedicating some time to knock out some smaller issues. Thanks

@beardedpayton @pksunkara
Just wrote up a Status of Vue CLI
Thanks for all your kind help 😀


[materialized view]column display wrong when use expression

Steps to reproduce the behavior (Required)
CREATE TABLE t1 (
    k1 date,
    k2 int
) ENGINE=OLAP
DUPLICATE KEY(k1)
DISTRIBUTED BY HASH(k1);

CREATE MATERIALIZED VIEW mv1 DISTRIBUTED BY HASH(k1) BUCKETS 10 AS SELECT k1,k2+1 FROM t1;

DESC mv1

Expected behavior (Required)
+--------+--------+------+------+---------+-------+
| Field  | Type   | Null | Key  | Default | Extra |
+--------+--------+------+------+---------+-------+
| k1     | date   | YES  | true | NULL    |       |
| k2+1   | bigint | YES  | true | NULL    |       |
+--------+--------+------+------+---------+-------+

Real behavior (Required)
+--------+--------+------+------+---------+-------+
| Field  | Type   | Null | Key  | Default | Extra |
+--------+--------+------+------+---------+-------+
| k1     | date   | YES  | true | NULL    |       |
| EXPR$0 | bigint | YES  | true | NULL    |       |
+--------+--------+------+------+---------+-------+

StarRocks version (Required)

You can get the StarRocks version by executing SQL select current_version()
BRANCH-3.0-RELEASE-3d4e18a

It's not a bug but feature, because we must assign a name for that column


ROCm/Thrust Breaks due to recent commits in HIP hip_vector_types.h

Hi! Recent changes made to hip_vector_types.h breaks the Thrust Package
In file included from /data/Thrust/thrust/sort.h:1361:
In file included from /data/Thrust/thrust/detail/sort.inl:27:
In file included from /data/Thrust/thrust/system/detail/adl/sort.h:42:
In file included from /data/Thrust/thrust/system/cuda/detail/sort.h:59:
In file included from /data/Thrust/thrust/system/cuda/detail/sort.inl:23:
In file included from /data/Thrust/thrust/system/cuda/detail/detail/stable_primitive_sort.h:81:
In file included from /data/Thrust/thrust/system/cuda/detail/detail/stable_primitive_sort.inl:21:
In file included from /data/Thrust/thrust/system/cuda/detail/detail/stable_radix_sort.h:86:
In file included from /data/Thrust/thrust/system/cuda/detail/detail/stable_radix_sort.inl:29:
In file included from /data/Thrust/thrust/system/cuda/detail/cub.h:63:
In file included from /data/Thrust/thrust/system/cuda/detail/cub/cub.cuh:38:
In file included from /data/Thrust/thrust/system/cuda/detail/cub/block/block_histogram.cuh:36:
In file included from /data/Thrust/thrust/system/cuda/detail/cub/block/specializations/block_histogram_sort.cuh:36:
In file included from /data/Thrust/thrust/system/cuda/detail/cub/block/specializations/../../block/block_radix_sort.cuh:37:
In file included from /data/Thrust/thrust/system/cuda/detail/cub/block/block_exchange.cuh:36:
In file included from /data/Thrust/thrust/system/cuda/detail/cub/block/../util_ptx.cuh:38:
/data/Thrust/thrust/system/cuda/detail/cub/util_type.cuh:632:1: error: base specifier must name a class
CUB_DEFINE_VECTOR_TYPE(char,               char)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/Thrust/thrust/system/cuda/detail/cub/util_type.cuh:553:49: note: expanded from macro 'CUB_DEFINE_VECTOR_TYPE'
    template<> struct CubVector<base_type, 1> : short_type##1                                           \
                                                ^~~~~~~~~~~~~
<scratch space>:153:1: note: expanded from here
char1
^~~~~

Explanation:
In Thrust, we create the vector CubVector, which must base class one of the following vector types: char1...char4. Given recent commits to hip_vector_types.h, char1...char4 is no longer of type class in HIP anymore. Since base specifiers are required to be a class, Thrust breaks.
Current workaround:
Rolling back the commits to hip_vector_types.h before building.

Can the commit be reverted since it's breaking Thrust?

hip vector changes have been reverted via PR #508.


proxy: backend write combining

previously individual requests for the same backend would use multiple
syscalls. This batches them.
This is also prep work for write syscall offloading for uring mode.

skipping the io_uring part for now.. better to focus on stabilizing the code.


Update GPSMonitor

While developing #28 the changes made to GPSMonitor showed to be really decent, even if not super useful at the moment.
I'd like to bring them in, as that makes the GPSMonitor more a of a "component"/singleton rather than just a simple class. And it lets us do (some) things with it without even having an instance at hand.

LGTM. lets see how well it performs and whether this location will have to be changed or moved to happen even sooner.

this is a #28 problem, this can't be a problem here :D


pid missing when spawning by worker group

I'm trying to use the new spawner feature to handling different workloads.
I have two workers which are split into two groups:

node_workers:
  classes: NodeActionsWorker
  workers: 2
job_workers:
  classes: JobActionsWorker
  workers: 1

I start the ruby process to spawn workers
bundle exec ruby -e "require 'sneakers/spawner';Sneakers::Spawner.spawn"

The processes list below
ps -ef | grep sneakers
  501 24223     1   0  2:26PM ??         0:00.17 ruby /Users/twer/Workspace/ScaleWorks/vendor/bundle/ruby/1.9.1/bin/rake sneakers:run
  501 24225     1   0  2:26PM ??         0:00.20 ruby /Users/twer/Workspace/ScaleWorks/vendor/bundle/ruby/1.9.1/bin/rake sneakers:run
  501 24226 24223   0  2:26PM ??         0:00.19 ruby /Users/twer/Workspace/ScaleWorks/vendor/bundle/ruby/1.9.1/bin/rake sneakers:run
  501 24227 24225   0  2:26PM ??         0:00.19 ruby /Users/twer/Workspace/ScaleWorks/vendor/bundle/ruby/1.9.1/bin/rake sneakers:run
  501 24232 24225   0  2:26PM ??         0:00.14 ruby /Users/twer/Workspace/ScaleWorks/vendor/bundle/ruby/1.9.1/bin/rake sneakers:run

So far so good, but when I cat the pids, I found the one of the pids is missing:
cat tmp/pids/sneakers.pid
24225

Then I realize that the two work group share one global config:

# in config/initializers/sneaker.rb

Sneakers.configure  :pid_path => 'tmp/pids/sneakers.pid',
                                  ##other config items

I try to config pid_path within each worker, but it does not work.

Closing as this appears to be solved.


Isce3 rtc

Add isce3_rtc env that installs OPERA's s1-reader and rtc packages

These changes from https://github.com/OPERA-Cal-Val/calval-RTC/pull/6

I've verified that the env does build and can successfully run the isce3 notebook

Add isce3_rtc env


Accessing related data on a modal

Hello,
Just had a question about accessing related model data. Using Laravel Scouts toSearchableArray I am able to append related source data in my News model. For example:
    /**
     * Get the indexable data array for the model.
     *
     * @return array
     */
    public function toSearchableArray()
    {
        $array = $this->toArray();

        $array['source'] = $this->source;
        return $array;
    }

I then create the index and import into elastic search via the command line.
This all works great. When I access ES via Postman I see the news with source data correctly however when I try and access it in my controller using the code below it does not retrieve the related source data, only the news data.
        return News::search('*')
            ->orderBy('published_at', 'desc')
            ->take(100)
            ->get();

Any ideas why this might be? Thanks for your help.

Hi @atmediauk ,
You have to use Eloquent relations, to get data. The search method will only return you a News object.

@babenkoivan thanks for getting back to me.
Sorry if im being stupid but using Laravel Scouts toSearchableArray method I am able to successfully add my related modal data in to the ES index e.g after I create my index and run scout::import "App\News" I see this in Postman - http://jmp.sh/PuHtHOt
Which is good, red box is my source data (related model) and is added. That means my related data is inside ES. But my problem is I cant seem to access the "source" data when using News::search('*')
For example if I do
 return News::search('*')
            ->orderBy('published_at', 'desc')
            ->take(100)
            ->get();

It returns everything except the source which is weird because it is definitely inside ES.
Hopefully that makes sense. Thanks again for your input.

Yes, you are absolutely correct. You can put anything in ES: your model fields or any related data. But when you call the search method you can only retrieve the model itself, that correspond to the search query. For example, you can do the following:
News::search('*')
    ->where('source.tags', 'newspapers')
    ->get();

It will return you a collection of News. If you want to get Sources you have to either do a search on a Source model or use Eloquent relations on News like:
News::search('*')
    ->where('source.tags', 'newspapers')
    ->first()
    ->sources();

Scout doesn't provide you with a direct access to ES. It makes request to ES to get model ids and then gets data from DB. If you want a direct access, have a look at searchRaw method.
Hope I answered your question.

Thanks for the clarification. I didn't realise that it would have to be eager loaded separately.
Thanks again for the great package!


Fix non-building examples

Torus and Nimbus overflowed, so I moved them to bootloader apps.
A number of examples needed updating to the new GPIO system.
The fir example needed the CMSIS DSP directory updated

TODO: Update the libDaisy reference here so it builds once we hit the next version there


Timeout if broker connection cannot be ensured

I have multiple subscriptions set via LEEK_AGENT_SUBSCRIPTIONS with varying broker urls inside them.
If a single broker cannot be connected to, for example if the hostname cannot be resolved, the agent process will hang/fail
at this step
INFO:leek.agent.consumer:(main) Building consumer [Subscription=mars-prod, Prefetch=1000, Pool=2] ...
INFO:leek.agent.consumer:(main) Ensure connection to the broker <BROKER_URL>...

A error will be thrown, but from what i have noticed is that, the brokers from the other subscriptions will not be connected to, although they may be reachable

I have experienced this with version 0.5.0.
Sadly i cannot give anymore logs/infos.

@Stubatiger this is intentional!
During bootstrap, the agent will not start If any subscription from the subscriptions list is not healthy.
https://github.com/kodless/leek/blob/master/app/leek/agent/agent.py#L32-L37
This is useful to know that the agent is working properly, If the error is omitted, when you go to Leek UI -> Agent tab, you will see the agent status as RUNNING. However, a subscription is not healthy.


Deprecate cURL

Part of the simplification project: #1611
Deprecates cURL in favor of reqwest.
This is the preliminary step for the complete disuse of cURL by rustup; on-going discussion: #1657
cc's from previous PR:
@dwijnand
@brson
@briansmith
@jnicholls
@seanmonstar

I don't think RUSTUP_USE_CURL should be introduced and on usage it emits a warning message.  I think the old UsingCurl notification should remain.

@dwijnand Does this mean we should have the user compile themselves with the default feature in the Cargo.toml set to cURL if they want to use it?

No, no compilation necessary, as the rustup binary crate depends on both backends/features:
https://github.com/rust-lang/rustup.rs/blob/194026d2cac3d06c8ef19dc6e23dabda5d3900c4/Cargo.toml#L23

How would a user enable one backend over the other without some kind of environment variable? I think I'm missing something here.

Ah, I see the confusion.  I meant we should introduce RUSTUP_USE_CURL but, if a user sets it, it shouldn't emit a deprecation warning message.  Just "downloading with curl".

Makes sense! I'll apply that change soon.

@dwijnand Removed the deprecation warning.

@kinnison Weird delta removed from commits


[FLINK-16066] StateBinder binds persisted values in inner class

This PR enhance StateBinder to bind persisted values/tables that are defined
within a class that is annotated with a @Persisted annotation.
This allows reusing stateful components via composition.

Looks good, will merge this.


[Feature request] Generate index.js when using input directory option

I think it will be great to generate an index.js exporting all the generated components.
So that we can
import { Cat, Dog } from './components/Icons'

instead of
import Cat from './components/Icons/Catr'
import Dog from './components/Icons/Dog'

I think it is a very good feature! Open to PR!

Working on it

Still working on PR.
Here's script I currently use after svgr
https://gist.github.com/TrySound/d91557ff70e9a11318930a15a4394ea4#file-z_generateindex-js

Follow up in #189.


How to check total cost use

Hello MetaGPT, i have use metaGPT many time and it save to one 1 log with many project i have create, so how can i check total cost and token use in each project, thanks you so much.

For now, MetaGPT will calculate the cost each time calling the API and the cost will be accumulated when running a project. The cost of one project is the last cost calculation message in the log.
Since the log of different project may be saved to the same log.txt like 20240605.txt and the calculation will be mixed.
you can use grep "Total running cost" -n path/to/your_log.txt to manually extract the cost.

@garylin2099 Is it able to set the log_name for a particular project?

Since no further responses are needed, we will close it. Please reopen it if necessary.


Get the values from merged cells

When there is a merged cell the returned value is null. Maybe there should be a filter to return the replicated same value or still preserving the value.


Feature request/suggestion: alert shadows

Basically I think shadows look nice.
Without shadows (current)

With shadows (proposed)

If this is something you would be willing to add to Monomer then I have a half-finished branch that I would be happy to make production-ready: https://github.com/Dretch/monomer/tree/alert-shadows ... if not, then fair enough :smile:

Hi @Dretch!
Absolutely, I'm interested in the PR! I have not added the boxGradient yet mainly to avoid tying the code too much to NanoVG, but I don't think replicating what that function does would be too complex in case we ever move away from using that library.
Regarding how the shadow is displayed, an alternative is to have it visible only on two of the borders, so it gives a feeling that the content is popping out of the screen (example attached):

@Dretch this has been merged. I'll close the issue now. Thanks!


onBeforeRemove always receives a cursor with all files

In the documentation, it says that it should receive a cursor which contains every file to remove, but this cursor always returns all documents, no matter how collection.remove is called
In the documentation, its also written, that this.file should point to the file to remove, but that value is always null. But because it can handle multiple file, this.file can never be correct.
Maybe we should rethink this. Shouldn't it be called once per file? Then, it would be mucj easier to understand.

Hi @macrozone ,
Good suggestion. Could you share your code which causes cursor to have all documents?
And there is no this.file in onBeforeRemove

@dr-dimitru anyone:
MyFileCollection.remove(fileId);
MyFileCollection.remove({_id: fileId});
MyFileCollection.remove({});

all of them trigger onBeforeRemove with a cursor that contains all documents.
concerning this.fileId, its mentioned in the docs: https://github.com/VeliovGroup/Meteor-Files/wiki/Constructor#use-onbeforeremove-to-avoid-unauthorized-remove

My bad, docs is fixed.
I'll update you about this issue later after investigation

Hi @macrozone
Can not reproduce original issue onBeforeRemove always receives a cursor with all files.
On my end only MyFileCollection.remove({}); return all cursors, as it supposed to
Could you explain more?

@macrozone just released new version, please update and let me know how it is going.

Hi @macrozone ,
Any chance for reproduction of original issue?

Closed due to issue owner silence

I had no issue with that anymore, sorry for beeing silent about it and thanks for your efforts


test codecov

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@69e62f6). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #28   +/-   ##
=========================================
  Coverage          ?   63.90%
  Complexity        ?     4811
=========================================
  Files             ?      136
  Lines             ?    21058
  Branches          ?     3815
=========================================
  Hits              ?    13457
  Misses            ?     6264
  Partials          ?     1337

Continue to review full report at Codecov.

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


Address Labelling Flexibility

Currently, we extract 1024x1024 tiles from the VRT and store them in the bucket for labelling. This raises the following:
What if we want to change the tile size, what would happen to current annotations?

Possible solution: Have a script convert json annotations to and from a GPKG file.

Labelling polygons is slow and tedious.

Possible solution: From the paper SolarNet, they used two step approach: (1) Classification, (2) Segmentation. Which for large scale is more approachable.

Addressed with #43


feat: adding cypress

Description

I have installed Cypress and saved the dependency in Package.json file , along with this I have also additionally installed eslint plugin for cypress to avoid eslint errors .

Along with this a new cypress folder has been added to the repository to manage the cypress config and an additional tests folder within this folder where our test files would reside . This PR for now contains a basic test file which was created for testing use only and will soon be removed .

Related issue(s)
Fixes #1700

Yes , it is recommended by cypress itself to put all the test files within the cypress folder , and I have put up a dummy file to check if installation was fine , I would replace it with our test files

/rtm


Pods tab

We need a pods tab!

Done as of https://github.com/shu8/mlh-fellowship-0.2.1-halfway-hackathon/pull/51


Add additional functionality to overlay UI

Example ImageComponent with custom background color

Plugin positions for chat box and bottom right change depending on screen size

I already included the Viewport change in the https://github.com/runelite/runelite/pull/254 :D


Play video file format

I have a big problem,
I'm trying to play videos using your library.
I can't understand why some video work (also with audio) and others do not.
I enclose sample files: one works (big_buck_bunny.mp4) and the other is slow when it needs to play back audio (Samsung).
Can you tell me what could be the problem?
video.zip

Both video play fine on my test device. The only obvious difference between both video is that BBB uses the common H.264 video codes while the Samsung video uses the rather uncommon H.263 codec.
Please post on which device and Android version the issue happens, and the logcat output of the failing video.


[Bug] App crash when clicking notification Reopen #1070

[REQUIRED] Please fill in the following fields:

Unity editor version: 2020.3.15f1
Firebase Unity SDK version: 8.1.0
Source you installed the SDK: unitypackage
Problematic Firebase Component: Messaging
Other Firebase Components in use: Auth, Database, Storage etc
Additional SDKs you are using: None
Platform you are using the Unity editor on: Mac
Platform you are targeting: Android
Scripting Runtime: IL2CPP

[REQUIRED] Please describe the issue here:
When app is running, it will crash when user taps a push notification from the app in the notification tray. (When the app is not open, behaviour is normal: tapping a push notification will open the app).
Please refer issue 1070 for more details
Steps to reproduce
Open the app
Minimize it
Send a notification from Firebase Cloud Message
Tap on the notification
Notice that the app crashes if there's no BIND_JOB_SERVICE permission added.
Where in the documentation or in the release notes does it say to add android:permission="android.permission.BIND_JOB_SERVICE" android:exported="true"/> ?
Issue is reproducible in latest 8.1.0 SDK

Hi @adityathoutam,
Thank you for creating this ticket. We have updated the quickstart examples along with documentation for this.
https://firebase.google.com/docs/cloud-messaging/cpp/client
https://github.com/firebase/quickstart-cpp/pull/99
https://github.com/firebase/quickstart-unity/pull/1113


Support disclosure frame for the SdJwt.present method

The SdJwt.present method currently takes an array of indices. As the doc for the method already says, this is not the most convenient API.
What if we re-use the disclosure frame approach for the present method? This would allow for a much simpler interface, and we could then derive the disclosures that should be exposed based on the payload we want to disclose.
The method could take one option:

Whether you it to automatically disclose everything that is required based on the disclosure frame, or only disclose exactly what is in the disclosure frame, and throw an error if that is not possible based on the disclosures.

Let's say I have the following SD-JWT payload (in pretty format):
{
  "iss": "something",
  "user": {
     "firstName": "Timo",
     "lastName": "Glastra"
  },
  "license": {
     "number": 10,
     "state": "CA"
  }
}

I could make a present call like this:
sdJWt.present({
  user: {
    firstName: true
  }
}, {
  includeRequiredForDisclosureFrame: true
})

This will return the following object, as the license and iss fields MUST be disclosed.
{
  "iss": "something",
   "user": {
      "firstName": "Timo",
    },
   "license": {
     "number": 10,
     "state": "CA"
    }
}

If user was not separately selectively disclosable, with the includeRequiredForDisclosureFrame, it could return this:
{
  "iss": "something",
   "user": {
      "firstName": "Timo",
      "lastName": "Glastra"
    },
   "license": {
     "number": 10,
     "state": "CA"
    }
}

with the includeRequiredForDisclosureFrame set to false it would throw an error.
For the PEX implementation we could then just include only the properties that are requested in the presentation definition, and based on that we will get the minimally required disclosed values.

Yes! This should've been the way from the start, makes so much more sense. Thank you for pointing it out!