Need a way to configure the highlight color

The default highlight color for vim-illuminate is pretty subtle. I'd like a way to configure the highlight color (and background) of words. I don't see anything in the documentation about changing the highlight color. Is this possible?

See :h illuminatedWord and :h illuminatedCurWord. If you are using the LSP functionality then see :h hl-LspReferenceText, :h hl-LspReferenceWrite, and :h hl-LspReferenceRead.

In case anyone else is looking to do this here is the solution I came up with for my ~/.vimrc
autocmd VimEnter * hi illuminatedWord ctermbg=38 ctermfg=226


az ad app create with roles fails

az ad app create with --app-roles fails with the following error:
az : ERROR: Expecting value: line 1 column 1 (char 0)
At ...\dev-we1\software\api-client.deploy.ps1:14 char:20

... istration = az ad app create --display-name $displayName --app-roles  ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (ERROR: Expectin...lumn 1 (char 0):String) [], RemoteException
FullyQualifiedErrorId : NativeCommandError

I am running the following command from a ps1 file in a power shell 5 console, where the roles.json is in the same location as the ps file:
az ad app create --display-name "app-test" --app-roles "roles.json"
Removing the --app-roles "roles.json" part creates the app properly. I have tried removing the ", prefixing the filename with @, nothing seems to work.
roles.json content:
[
{
"allowedMemberTypes": [
"Application"
],
"description": "Allow the application to call actions as itself.",
"displayName": "Call actions",
"isEnabled": true,
"lang": null,
"origin": "Application",
"value": "Actions.Call"
}
]
I am running the latest version of Az module installed via MSI:
azure-cli                         2.0.67
acr                                2.2.9
acs                                2.4.4
advisor                            2.0.1
ams                                0.4.7
appservice                        0.2.21
backup                             1.2.5
batch                              4.0.3
batchai                           0.4.10
billing                            0.2.2
botservice                         0.2.2
cdn                                0.2.4
cloud                              2.1.1
cognitiveservices                  0.2.6
command-modules-nspkg               2.0.2
configure                         2.0.24
consumption                        0.4.4
container                         0.3.18
core                              2.0.67
cosmosdb                          0.2.11
deploymentmanager                  0.1.1
dla                                0.2.6
dls                               0.1.10
dms                                0.1.4
eventgrid                          0.2.4
eventhubs                          0.3.7
extension                          0.2.5
feedback                           2.2.1
find                               0.3.4
hdinsight                          0.3.5
interactive                        0.4.5
iot                               0.3.11
iotcentral                         0.1.7
keyvault                          2.2.16
kusto                              0.2.3
lab                                0.1.8
maps                               0.3.5
monitor                           0.2.15
natgateway                         0.1.1
network                            2.5.2
nspkg                              3.0.3
policyinsights                     0.1.4
privatedns                         1.0.2
profile                            2.1.5
rdbms                             0.3.12
redis                              0.4.4
relay                              0.1.5
reservations                       0.4.3
resource                          2.1.16
role                               2.6.4
search                             0.1.2
security                           0.1.2
servicebus                         0.3.6
servicefabric                     0.1.20
signalr                            1.0.1
sql                                2.2.5
sqlvm                              0.2.0
storage                            2.4.3
telemetry                          1.0.2
vm                                2.2.23
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\dev.azure\cliextensions'
Python (Windows) 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.

Same issue also for az ad app update --id $appRegistration.appId --app-roles "roles.json"

It seems that the issue was caused by PowerShell ISE - it was running the script by default under the 'PS C:\WINDOWS\system32>' folder. Because of this, the roles.json file was not found in this folder since obviously it was under another folder.
Maybe it would make sense to have a more specific error message with 'File not found' in this case.

Agreed, ideally we should emit out a warning to tell people that the file can't load or the role content is not json. We will consider once we have more user voices on this.
For anyone who runs into this, please upvote


Access log location

Hi,
Thank you for this add-on.
After enabling the access log, where can I find it ?
 Add-on version: 4.2.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 11.0  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2023.10.5
 Home Assistant Supervisor: 2023.10.1

Stefaan

Hi,
I'm sorry I didn't get back to you sooner. I lost sight of this issue. AFAIK the access log should show up in the add-on logging.


When scroll direction is set to vertical; page displays full width at every orientation

When scroll direction is set to vertical, page will always display full width

Does not seem to Fix #4 as it only handles vertical mode. When in paged the size of the document still jumps all over the place depending on what zoom level you are in when rotating.


Add all gcc versions

This PR adds all GCC versions to the release. It takes longer for the build to complete, but is a more complete release of the binaries.
https://travis-ci.com/kdheepak/boostBuilder/builds/130594835
I require this since I would like gcc with C++14 features, which the default 4.8.5 build does not have.
I thought I'd check if you would you be interested in merging this PR? If not, I'll be happy to maintain my fork of this repository.

looks good, thanks!
I will create a new 1.71.0-1 release after the merge.

Great! Thanks for merging! It seems to have built fine, I'll delete my fork. Any reason you made it a pre-release instead of an actual release?

On 8 October 2019 03:52:15 CEST, Dheepak Krishnamurthy<EMAIL_ADDRESS>wrote:

Great! Thanks for merging! It seems to have built fine, I'll delete my
fork. Any reason you made it a pre-release instead of an actual
release?

I just wanted to have it as a pre-release until Travis was done. I will change it later today.


go-to-def not work when using trailing-return-type

template <typename T, typename U>
auto add(const T &t, const U &u) -> decltype(t + u);
//             ^  ^        ^  ^              ^ go-to-def and rename doesn't work.

this is not just about trailing return types but basically any expression inside decltype.
Looks like DecltypeTypeLoc is missing the sourcerange information for its expression and parentheses(there are fixmes around about that as well https://github.com/llvm-mirror/clang/blob/master/include/clang/AST/TypeLoc.h#L1887).
We can either try and fix that, or patch it up in clangd specifically to update endpoint for decltypetypelocs.
minimal repro:
int a
decltype([[^a]]) b;

selects vardecl, instead of the declrefexpr inside decltype.


fix(run-time-errors):  Reset the cucumber report on each test run and allow global install

This PR fixes following issues,
(i) Cucumber html report for OpenZap doesn't "reset" for each test run  #10
Creates execution files -  html report and raw cucumber json files for each test run. This would avoid override of any pre-existing test results,
(ii) Resolves global install on sentinel-ast #9
Passes sudo access to underlying npm install commands for each integration folders.

@petedv Had a look?


Preselect tracked files on open

A simple implementation of git commit -a
Preselect files that have been modified and deleted, but new files you have not told Git about are not selected.

I finally had time and tried this out myself. I think this is a good idea if you have files that you don't want to have tracked right away, however I am wondering if this is done by the majority of users. I will merge this and maybe we can get a little bit of feedback in the next release.
One more thing: Github doesn't recognize the your commit as yours, I am not sure how to fix it but this might mean that your commit won't show up on your github profile. Let me know if I can merge anyway or if you want to change this somehow.


Hotfix/4.7.1

update and add/remove sections as needed
New Features
please describe new capabilities
Fixes
Updated the postgres interface to use SQLAlchemy's v2 API
Testing
Ran in the first-mesh example
Prior to merging for releases:

[x] update the project's version in the top-level CMakeLists.txt file
[x] update the appVersion to be the new container image tag version in chart/Chart.yaml

This looks good and consistent with the v2 SQLAlchemy requirements.
I don't have anything to add at this point, anything we're missing we can hotfix later on


URL Validation doesn't account for +'d emails

Need to url encode the + to %2b in your validation email links.

Thanks @BrettTrotter, closing as a dupe of https://github.com/gratipay/gratipay.com/issues/3110, with a +1 for you over there.


Add marks feature

closes #132
This fulfills what I would require of such a feature, but I'm taking suggestions of course.
(Including naming, unfortunately bookmark was already taken)
EDIT: Feel free to disregard the second commit if you want, I just wanted to test out this clap feature and I just so happened to have a perfect case right here

with fish this is how the dynamic shell completions look like:

This looks great. Thanks!


Namespace enhancement suggestion

Common highly used basic classes should be in the root namespace.
Isn't it better to have FluentCMS instead of FluentCMS.Core.Entities for IEntity?

Are you suggest to remove Core from Entities namespace?

Are you suggesting to remove Core from Entities namespace?

Correct, FluentCMS may be enough, not sure...

It's done.


One To Many References not working

Hi there,
i googled a lot including chatgpt, none of it is working for me.
I am trying to do a very simple one to many relation between 2 tables, and get the sequence contains no elements exception.
[TableName("ServiceProviders")]
[PrimaryKey("Id")]
[ExplicitColumns]
public class ServiceProvider
{
        [Column("ServiceProviderId")]
        public int Id { get; set; }

        [Reference(ReferenceType.Many, ColumnName = "ServiceProviderId", ReferenceMemberName = "MemberId")]
        public List<Test> Tests { get; set; }
}

[TableName("Tests")]
[PrimaryKey("Id", AutoIncrement = true)]
[ExplicitColumns]
public class Test
{
    [Column("TestId")]
    public int Id { get; }

    [Column("MemberId")]
    public int MemberId { get; set; }

    [Reference(ReferenceType.Foreign, ColumnName = "ServiceProviderId", ReferenceMemberName = "Id")]
    public ServiceProvider ServiceProvider { get; set; }
}

I also tried the following without success:
    [TableName("ServiceProviders")]
    [PrimaryKey("Id")]
    [ExplicitColumns]
    public class ServiceProvider
    {
        [Column("ServiceProviderId")]
        public int Id { get; set; }

        [Reference(ReferenceType.Many, ColumnName = "ServiceProviderId", ReferenceMemberName = "ServiceProvider")]
        public List<Test> Tests { get; set; }
    }

    [TableName("Tests")]
    [PrimaryKey("Id", AutoIncrement = true)]
    [ExplicitColumns]
    public class Test
    {
        [Column("TestId")]
        public int Id { get; }

        [Column("MemberId")]
        public int MemberId { get; set; }

        [Reference(ReferenceType.Foreign, ColumnName = "ServiceProviderId", ReferenceMemberName = "Id")]
        public ServiceProvider ServiceProvider { get; set; }
    }

what am i missing?
Best,
Dee

I also copy pasted the fixed example provided here: https://github.com/schotime/NPoco/issues/315
still getting the sequence contains no elements error.


Data requested exceeds the maximum size.

The method is
self.childAddedHandle = [self.wilddog observeEventType:WDGDataEventTypeChildAdded withBlock:^(WDGDataSnapshot *snapshot) {...}];
When the the requested data is too big,the block won't be called.And the console show the following message:
"too_big, error reason:Data requested exceeds the maximum size that can be accessed with a single request
Data requested exceeds the maximum size that can be accessed with a single request."
In this case,what should I do to get the data?

You can limit query scope like this:
[[[self.wilddog queryOrderedByKey] queryLimitedToLast:5] observeEventType:WDGDataEventTypeChildAdded ...

In addition, you can combine queryEndingAtValue: with queryOrderedByKey to request data before a specific node, for example:
[[[[self.wilddog queryOrderedByKey] queryEndingAtValue:@"-KehGmQcUFr_LD5E2CSx"] queryLimitedToLast:5] observeEventType:WDGDataEventTypeChildAdded withBlock:^(WDGDataSnapshot * _Nonnull snapshot) {
    NSLog(@"%@", snapshot);
}];

This solution  works,thanks a lot!

@ainopara  what should I do if I want to request all data,and I even don't know the total data count?

In most case, you can just use
[self.wilddog observeEventType:WDGDataEventTypeChildAdded ...

to request all data on current path.
If there is too many data on current path, you can request part of them with
[[[self.wilddog queryOrderedByKey] queryLimitedToFirst:5] observeEventType:WDGDataEventTypeChildAdded ...

then save the key of the last snapshot, get the next 4 snapshot with
[[[[self.wilddog queryOrderedByKey] queryEndingAtValue:lastKey] queryLimitedToFirst:5] observeEventType:WDGDataEventTypeChildAdded ...

You can get all data on current path with this method.

Yes,I tried to complete this solution.
This is my pseudocode with recursion:
- (void)getPartData {
  if(hasData){
     requestData(lastkey,^{
       use data;
       update lastkey;
       update isFinished;
       if(!isFinished) {
           getPartData();
       }
     } );
  }
}

this is the reality code:
- (void)getPartData {
    static BOOL isLastRequest = NO;
    static BOOL isFirstRequest = YES;
    static NSInteger singleRequestCount = 10;
    self.childAddedHandle = [[[[self.wilddog queryOrderedByKey] queryStartingAtValue:_lastKey] queryLimitedToFirst:singleRequestCount] observeEventType:WDGDataEventTypeValue  withBlock:^(WDGDataSnapshot *snapshot) {
        NSEnumerator *children = snapshot.children;
        if (snapshot.childrenCount<singleRequestCount) {
            isLastRequest = YES;
        }
       WDGDataSnapshot *childSnapshot = children.nextObject;
        for (int i=0;i<singleRequestCount;i++) {
            //只保留第一次请求的第一个数据,其余次数的第一数据,和上一次的数据是重复的.
            if(!isFirstRequest&&i==0){
                continue;
            }
            //没有数据的跳过
            if(!childSnapshot) {
                isLastRequest = YES;
                break;
            }
            //处理每一个snapshot.
            _count++;
            NSLog(@"%zi-%@",_count,childSnapshot.key);
            _lastKey = childSnapshot.key;
            //获得下一个的
            childSnapshot = children.nextObject;
        }
        isFirstRequest = NO;
        if (!isLastRequest) {
            NSLog(@"----------");
           //递归,直接调用会造成数据有时候返回null,但是实际上还有数据,暂时用dispatch_after解决.
            dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
                [self.wild dog removeObserverWithHandle:self.childAddedHandle];
                [self getPartData];
            });
        }
    }];

So,I think this solution is very complex,I wish there will be a more conveniet way to get all data,even the data is too much.

you can use for ... in ... and observeSingleEventOfType:block: to simplify your code. For example:
    static NSInteger singleRequestCount = 10;
    __weak __typeof__(self) weakSelf = self;
    [[[[self.wilddog queryOrderedByKey] queryStartingAtValue:_lastKey] queryLimitedToFirst:singleRequestCount] observeSingleEventOfType:WDGDataEventTypeValue withBlock:^(WDGDataSnapshot *snapshot) {
        __strong __typeof__(self) strongSelf = weakSelf;
        if (strongSelf == nil) {
            return;
        }

        for (WDGDataSnapshot *childSnapshot in snapshot.children) {
            if ([childSnapshot.key isEqualToString:strongSelf.lastKey]) {
                continue;
            }
            strongSelf.count += 1;
            NSLog(@"%zi-%@", strongSelf.count, childSnapshot.key);
            strongSelf.lastKey = childSnapshot.key;
        }

        if (snapshot.childrenCount == singleRequestCount) {
            NSLog(@"----------");
            dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
                __strong __typeof__(self) strongSelf = weakSelf;
                if (strongSelf == nil) {
                    return;
                }

                [strongSelf getPartData];
            });
        } else {
            NSLog(@"---------- EOF");
        }
    }];

ok,thank you for your enthusiastic advice.


Fix naming of WebContainer Tests/IT (Shiro 2.x)

This is an integration tests, renaming the test as *IT, allows it to be skipped with -DskipITs, otherwise (without additional configuration) it will run as a unit test

Following this checklist to help us incorporate your contribution quickly and easily:

[ ] Make sure there is a GitHub issue filed
for the change (usually before you start working on it).  Trivial changes like typos do not
require a GitHub issue.  Your pull request should address just this issue, without pulling in other changes.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Format the pull request title like [#XXX] - Fixes bug in SessionManager,
where you replace #XXX with the appropriate GitHub issue. Best practice
is to use the GitHub issue title in the pull request title and in the first line of the commit message.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] add fixes #XXX if merging the PR should close a related issue.
[ ] Run mvn verify to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If you have a group of commits related to the same change, please squash your commits into one and force push your branch using git rebase -i.
[ ] Committers: Make sure a milestone is set on the PR

Trivial changes like typos do not require a GitHub issue (javadoc, comments...).
In this case, just format the pull request title like [DOC] - Add javadoc in SessionManager.
If this is your first contribution, you have to read the Contribution Guidelines
If your pull request is about ~20 lines of code you don't need to sign an Individual Contributor License Agreement
if you are unsure please ask on the developers list.
To make clear that you license your contribution under the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

[ ] I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
[ ] In any other case, please file an Apache Individual Contributor License Agreement.

Merging #1123 into main


what gatestep does?

Hi, sorry for the late reply. The gate step represents the time step to stop calculating the cross-attention.


Update build script to run tests, updating packages.

I wasn't able to run the tests when I forked, so I upgraded to NUnit3, and then moved FsUnit to be grabbed from paket.
I'm still getting errors running the tests (below) but the project builds, and I thought I'd send over this progress. Thoughts? Either on how to fix the below, or the updates I've added?
Thanks!

System.Exception: Start of process  failed. Cannot start process because a file name has not been provided.
at Fake.ProcessHelper.ExecProcessWithLambdas@79-16.Invoke(String message) in C:\code\FAKE\src\app\FakeLib\ProcessHelper.fs:line 79
at Fake.ProcessHelper.ExecProcessWithLambdas(FSharpFunc2 configProcessStartInfoF, TimeSpan timeOut, Boolean silent, F SharpFunc2 errorF, FSharpFunc2 messageF) in C:\code\FAKE\src\app\FakeLib\ProcessHelper.fs:line 79                       at Fake.Testing.NUnit3.NUnit3(FSharpFunc2 setParams, IEnumerable1 assemblies) in C:\code\FAKE\src\app\FakeLib\UnitTe st\NUnit\NUnit3.fs:line 280                                                                                at FSI_0005.Build.clo@179-18.Invoke(Unit unitVar0)                                                                     at Fake.TargetHelper.runSingleTarget(TargetTemplate1 target) in C:\code\FAKE\src\app\FakeLib\TargetHelper.fs:line 492

@forki I'm not sure if this is actually a FAKE thing or maybe just an interaction between the two, but thought you might know more about what's going wrong. Any ideas? :-) Thanks!

can you please ask on twitter? I'm not an expert on NUnit3 - but I'm sure we'll find one

Thanks a lot for looking into this - updating to NUnit 3 would be great :)

Sooo, question. How important is setting the FSharp.Compiler.Service version? Is that what's causing this error? (It's at least different than the issue listed in Issue 277?) :-)
Error:
System.Exception: Could not detect package version for FSharp.Compiler.Service ---> System.Exception: Package FSharp.Compiler.Service was not found.
at Fake.NuGetHelper.version@113.Invoke(String message) in C:\code\FAKE\src\app\FakeLib\NuGet\NugetHelper.fs:line 113
at Fake.NuGetHelper.GetPackageVersion(String deploymentsDir, String package) in C:\code\FAKE\src\app\FakeLib\NuGet\NugetHelper.fs:line 113
--- End of inner exception stack trace ---
at Fake.NuGetHelper.GetPackageVersion(String deploymentsDir, String package) in C:\code\FAKE\src\app\FakeLib\NuGet\NugetHelper.fs:line 127
at FSI_0005.Build.replacements@88.Invoke(String packageName) in Y:\Projects\FSharp.Formatting\build.fsx:line 89
at Microsoft.FSharp.Collections.IEnumerator.map@111.DoMoveNext(b& )
at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator1.System-Collections-IEnumerator-MoveNext()    at Microsoft.FSharp.Collections.SeqModule.Fold[T,TState](FSharpFunc2 folder, TState state, IEnumerable1 source)    at FSI_0005.Build.clo@85-12.Invoke(Unit _arg3) in Y:\Projects\FSharp.Formatting\build.fsx:line 95    at Fake.TargetHelper.runSingleTarget(TargetTemplate1 target) in C:\code\FAKE\src\app\FakeLib\TargetHelper.fs:line 492
System.Exception: Could not detect package version for FSharp.Compiler.Service ---> System.Exception: Package FSharp.Compiler.Service was not found.
at Fake.NuGetHelper.version@113.Invoke(String message) in C:\code\FAKE\src\app\FakeLib\NuGet\NugetHelper.fs:line 113
at Fake.NuGetHelper.GetPackageVersion(String deploymentsDir, String package) in C:\code\FAKE\src\app\FakeLib\NuGet\NugetHelper.fs:line 113
--- End of inner exception stack trace ---
at Fake.NuGetHelper.GetPackageVersion(String deploymentsDir, String package) in C:\code\FAKE\src\app\FakeLib\NuGet\NugetHelper.fs:line 127
at FSI_0005.Build.replacements@88.Invoke(String packageName) in Y:\Projects\FSharp.Formatting\build.fsx:line 89
at Microsoft.FSharp.Collections.IEnumerator.map@111.DoMoveNext(b& )
at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator1.System-Collections-IEnumerator-MoveNext()    at Microsoft.FSharp.Collections.SeqModule.Fold[T,TState](FSharpFunc2 folder, TState state, IEnumerable1 source)    at FSI_0005.Build.clo@85-12.Invoke(Unit _arg3) in Y:\Projects\FSharp.Formatting\build.fsx:line 95    at Fake.TargetHelper.runSingleTarget(TargetTemplate1 target) in C:\code\FAKE\src\app\FakeLib\TargetHelper.fs:line 492
I was able to get around the previous issues after running a paket simplify which removed the FSharp.Compiler from paket.dependencies, but now I'm seeing that error when it calls (GetPackageVersion "packages" packageName) in the UpdateFsxVersions target. I could be heading down totally the wrong path :-) but figured I'd ask.

@tpetricek: This shows as still breaking, but locally this builds entirely for me now. Any idea how to fix travis? :-)

It worked! If you import latest changes in master into your PR, it should run.

Woohoo! Then if/when this looks good to you, it's ready to be merged. :-)

@matthid Could you have a quick look? You know some of the more intricate things that can go wrong here :)

Yeah looks good to me. I have marked some places regarding our most loved dependency "FSharpVSPowerTools"...
The cange in the solution file is not a stopper as it is easily added again.

Should I merge this into v3 and release a new beta, so that we can test it?

That would be awesome, assuming no one else has objections. :-)

Apparently now obsoleted by https://github.com/tpetricek/FSharp.Formatting/pull/430.
Sorry for not merging for sooooo long ...


tf.io.gfile.copy and tf.gfile.Copy input and output same path with overwrite removes all contents

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): no
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): 1.14.0
Python version: 2.7.15
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: N/A
GPU model and memory: N/A

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with: 1. TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)" 2. TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the current behavior
cat label.pbtxt

Some txt in the file

tf.io.gfile.Copy('label.pbtxt', 'label.pbtxt', overwrite=True)
cat label.pbtxt

Describe the expected behavior
cat label.pbtxt

Some txt in the file

tf.io.gfile.Copy('label.pbtxt', 'label.pbtxt', overwrite=True)
cat label.pbtxt

Some txt in the file

Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
import tensorflow as tf
tf.io.gfile.Copy('label.pbtxt', 'label.pbtxt', overwrite=True)
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Issue replicating with TF-1.14, also in TF-2.0rc2. kindly find the gist of colab.Thanks!

This is kind of working as intended. The same behavior happens on the operating system level:
mihaimaruseac@ankh:/tmp$ cat x
1
2
3
mihaimaruseac@ankh:/tmp$ cat x > x
mihaimaruseac@ankh:/tmp$ cat x
mihaimaruseac@ankh:/tmp$

In the end, you are opening the file twice, once for reading and once for writing on it from scratch (thus truncating it to size 0). Then the copy reads a chunk from the beginning and writes it on the output. However, as the file on disk has been cleared, the first chunk is empty so nothing gets written.


Speed limit problem

Device: [comma two]
Dongle ID: [1631748f51929063]
Route: [1631748f51929063|2021-07-28--06-22-45]
Timestamp: [Unknown]
Version: [release2 (0.8.6)]
Car make/model: [honda pilot 2019]

Speed limit problem,
Everything was great on speed limit 84mph with version 0.8.5
When I updated to version 0.8.6, I found problem with speed limit 69mph. And the speed is low, so please can you help me to back my original speed limit 84 mph, pls.
Milestone: 2000.
Thank you.

Can you be more specific what happened? Did you get the alert about speed to high? Did the car never reach the desired speed?
Looking at the route I never see the set speed set higher than 101 kph (~63 mph).

This is ur question :

Did the car never reach the desired speed?

My answer, YES THE CAR NEVER REACH THE DESIRED SPEED.
This is ur comment :

Looking at the route I never see the set speed set higher than 101 km ( 63
mph).

My answer, myvcomma two version 0.8.5 reach to (84mph), Attached guide to
the picture.  And all the comma. ai members said, the speed limit is
(84mph), Attached guide to the picture.
Now, the specific problem is attached in video, so u can understand
directly, ( I set the speed on 135km, then the speed come down
automatically to 114km)????
Why this happened in version 0.8.6?
Could you help me, Pls.

I don't see a video. If you want to share files you have to do that through the github web interface, not through email.
Are you sure you sent the right route, this is a plot of the set speed while openpilot was engaged in the 2nd half of the drive.

Attache video..
Sorry the video can't send because the big size. I will put in the Honda,
accra comma ia members

How I can send the video, in GitHub, in which place?

Attache video..
Sorry the video can't send because the big size. I will put in the Honda,
accra comma ia members, but still big size...

This is the pic of the route...

Are you sure you sent the right route, this is a plot of the set speed
while openpilot was engaged in the 2nd half of the device

I sent the video to @.***
Please, I need help, do understand me.
Now u have all the information
On Mon, 2 Aug 2021, 9:46 pm Willem Melching, @.***>
wrote:

I don't see a video. If you want to share files you have to do that
through the github web interface, not through email.
Are you sure you sent the right route, this is a plot of the set speed
while openpilot was engaged in the 2nd half of the drive.
[image: 2021-08-02-194521_1629x1978_scrot]
https://user-images.githubusercontent.com/1314752/127902693-56c7b0f0-e222-4d3a-a391-b15fb26bbfd0.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/commaai/openpilot/issues/21803#issuecomment-891213538,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVA6OXLWNP7PA5OWUAZOKHDT23KV5ANCNFSM5BJBUMGA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

Finally ur system except the video
https://user-images.githubusercontent.com/88205149/128094328-40f19cd4-c264-4531-af47-74436b40ec55.mp4

Route

Thanks for the detailed feedback, this issue is the same as this. So I will link and close.
https://github.com/commaai/openpilot/issues/21697

Hello,
What is the news about this problem 👇

Poor longitudinal tuning *

https://github.com/commaai/openpilot/commit/a8f3e2b3c26f2b617a1c9c94250b44adce861d04
Just merged a potential fix into master. This should hopefully help with some Hondas. I was not able to test some, so any feedback is welcome.


fix JSON file formatting for easier parsing

store all data into a list and remove an unnecessary comma at the end of the last object

Why a list?

(sorry don't check this GitHub account as frequently) I am using the load function from the json module in my notebook. The formatting as it stands returns a JSONDecodeError -- placing everything in a list easily solves the problem. If we wanted to retain the JSON structure wouldn't we have to then add another hierarchical level and provide a key for each entry?


CI checks core image version update

Fixes #1359
What is being addressed
We tag core images with a value from a version file. If the application is updated but the version file isn't, then it might cause failures after the merge to main.
The reason is that in PR validation we deploy a new environment, but on main we use a preexisting one. If the version file isn't change then the existing container running in the environment won't get replaced and that can produce errors in the E2E tests.
How is this addressed

Add a check in the CI that will enforce updating the version file when the respective application is updated.
You can see a run result here: https://github.com/microsoft/AzureTRE/runs/5286484296?check_suite_focus=true

@damoodamoo, @eladiw - you're tagged as reviewers as you were on different ends of this issue - one made a change in the api (with no version update) and the second had tests fail after merge to main.

@damoodamoo There might be a reason why they chose not to go in the sha route before and I didn't want to make too many changes.
It might be something to do with the API displaying a "nice" version so that will remain.


out to wrong directories

I have groc setup and working great on one of my computers but when I go to re-generate the docs from my other computer they don't end up in ./doc like they're supposed to ... they instead show up in whatever folder the file being processed was in. Here's my .groc.json file.... any thoughts why this would be happening on one machine but not another?
{
    "glob": ["app.js", "kue/*.js", "routes/*.js", "utils/*.js", "tests/*.js", "README.md"]
    , "except": ["*.min.js", "node_modules/**/*.js"]
    , "out": "./doc"
    , "index": "README.md"
    , "github": false
}

Thanks so much—loving groc! Keep up the great work.
-Mac

@machellerogden I have this same problem, did you figure out a solution? The html doc files are dumped through out the application except a few are placed into ./doc.

One difference is that some of code files I'm generating documentation from are outside of the project in a Gem path. It's placing the code files outside of the project dumped in their directories, but the files within the project are going into ./doc correctly.


How to prevent content/about/index.md from showing as a post?

My index.md file inside content/about/ shows as a post in the website's home page. Is it possible to prevent this from happening?
Thanks!

My apology for the delay. I'll take a look tonight.

@netstx @Januadrym My apology for the delay. I'll take a look tonight.

No worries, thanks!

@monkeyWzr want me to test the commit?

@netstx Would be a great help! Thank you!


service/ingest: repeated reingest of overlapping range causes duplicate errors

PR Checklist
PR Structure

[x] This PR has reasonably narrow scope (if not, break it down into smaller PRs).
[x] This PR avoids mixing refactoring changes with feature changes (split into two PRs
otherwise).
[x] This PR's title starts with name of package that is most changed in the PR, ex.
services/friendbot, or all or doc if the changes are broad or impact many
packages.

Thoroughness

[x] This PR adds tests for the most critical parts of the new functionality or fixes.
[x] I've updated any docs (developer docs, .md
files, etc... affected by this change). Take a look in the docs folder for a given service,
like this one.

Release planning

[x] I've updated the relevant CHANGELOG (here for Horizon) if
needed with deprecations, added features, breaking changes, and DB schema changes.
[x] I've decided if this PR requires a new major/minor version according to
semver, or if it's mainly a patch change. The PR is targeted at the next
release branch if it's not a patch change.

What
include liquidity pool tables in the ingest state machine's history operation purge for a given ledger range
Why
fixes error during reingestion due to duplicate errors in liquidity pool table state.
porting this change to master, fix has gone through review in PR #4114 and merged to release-v2.12.0
Closes #4110
Known limitations

This is already included in the 2.12.0 release branch. Next week we will merge the release branch into master so it's not necessary to create another pr to merge these changes into master

This is already included in the 2.12.0 release branch. Next week we will merge the release branch into master so it's not necessary to create another pr to merge these changes into master

ok, I'll close this PR, thanks!


got an unexpected keyword argument 'name'

I am getting the following error when running train.py
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.4\helpers\pydev\pydev_run_in_console.py", line 52, in run_file
pydev_imports.execfile(file, globals, locals)  # execute the script
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.4\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/fakarim/PycharmProjects/Speaker_Verification/train.py", line 134, in
main()
File "C:/Users/fakarim/PycharmProjects/Speaker_Verification/train.py", line 128, in main
train(args, log_dir, hparams)
File "C:/Users/fakarim/PycharmProjects/Speaker_Verification/train.py", line 54, in train
checkpoint = tacotron_train(args, log_dir, hparams)
File "C:/Users/fakarim/PycharmProjects/Speaker_Verification\tacotron\train.py", line 305, in tacotron_train
return train(log_dir, args, hparams)
File "C:/Users/fakarim/PycharmProjects/Speaker_Verification\tacotron\train.py", line 127, in train
model, stats = model_train_mode(args, feeder, hparams, global_step)
File "C:/Users/fakarim/PycharmProjects/Speaker_Verification\tacotron\train.py", line 69, in model_train_mode
is_training=True)
File "C:/Users/fakarim/PycharmProjects/Speaker_Verification\tacotron\models\tacotron.py", line 64, in initialize
zoneout=hp.tacotron_zoneout_rate, scope='encoder_LSTM'))
File "C:/Users/fakarim/PycharmProjects/Speaker_Verification\tacotron\models\modules.py", line 139, in init
name='encoder_fw_LSTM')
File "C:/Users/fakarim/PycharmProjects/Speaker_Verification\tacotron\models\modules.py", line 39, in init
self._cell = tf.nn.rnn_cell.LSTMCell(num_units, state_is_tuple=state_is_tuple, name=name)
TypeError: init() got an unexpected keyword argument 'name'

wrong tensorflow version. thats why.

@fazlekarim , I also meet same problem.Could you tell me how do resolved the problem?  Thanks!


Two speedups

Hi @giswqs, just suggesting two things which I found sped up processing time significantly on larger rasters.

allow the sample window size to be set from samgeo.generate. Fewer, larger windows take less time as long as you have the memory.
Skip any sample windows which are 100% nodata, with the option to set lower thresholds.

This is great! Thank you for your contribution.


发送卡券消息支持卡券扩展信息参数为空

Codecov Report

Merging #300 into master will decrease coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #300      +/-   ##
==========================================
- Coverage   76.29%   76.22%   -0.08%
==========================================
  Files          74       74
  Lines        3206     3209       +3
==========================================
  Hits         2446     2446
- Misses        760      763       +3

Impacted Files
Coverage Δ

wechatpy/enterprise/client/api/message.py
62.61% <0%> (-1.81%)
:arrow_down:

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 826a608...9131f48. Read the comment docs.


Migrate tests to Spring Boot Test 1.4

Fixes #1205.

That is a big one. Mostly, @IntegrationTest, @SpringApplicationConfiguration  and @WebIntegrationTest were replace by @SpringBootTest. Some classes were reformated with Eclipse Spring Cloud Formatter.

@ryanjbaxter @dsyer
Hello guys, any bandwitch for this PR on 1.2.0.M1 or M2 ?

We're all at Spring One or on PTO this week.

Of course :) hope I'll be there next year.

Thanks!


[Bug]: Fail to run operator “frozen_in_time” showing “The size of tensor a must match the size of tensor b”

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Fail to run operator “frozen_in_time” showing “The size of tensor a must match the size of tensor b ”
2022-06-15 17:10:53,244 -<PHONE_NUMBER> - test_video_text_embedding.py-test_video_text_embedding:44 - ERROR: Fail to run frozen_in_time - {'model_name': 'frozen_in_time_base_16_244'}
ERROR MESSAGE: The size of tensor a (2353) must match the size of tensor b (785) at non-singleton dimension 1

Expected Behavior
No error
Steps To Reproduce
import logging
import os
import subprocess
from towhee import ops

logger = logging.getLogger()
log_path = 'video_text_embedding.log'

# Test action-classification operators
video_text_embedding = {
    'clip4clip': [
        {'model_name': 'clip_vit_b32'}
    ],
    'frozen_in_time': [
        {'model_name': 'frozen_in_time_base_16_244'}
    ]
}

def test(data_path):
    if not os.path.isfile(data_path):
        subprocess.call(
            f'wget -O {data_path} https://dl.fbaipublicfiles.com/pytorchvideo/projects/archery.mp4',
            shell=True
        )

    video_decoder = ops.video_decode.ffmpeg(sample_type='uniform_temporal_subsample', args={'num_samples': 12})
    # Since the video_decoder returns generator, need to extract output from generator for repetitive usage
    input_data = [x for x in video_decoder(data_path)]
    handler = logging.FileHandler(log_path)
    logger.addHandler(handler)

    for k, v in video_text_embedding.items():
        init_op = getattr(ops.video_text_embedding, k)
        for args in v:
            try:
                op_video = init_op(**args, modality='video')
                video_emb = op_video(input_data)
                op_text = init_op(**args, modality='text')
                text_emb = op_text('using a test description')
                assert video_emb.shape[0] > 0
                assert video_emb.shape == text_emb.shape
            except Exception as e:
                logger.error('Fail to run %s - %s', k, str(args))
                print(f'ERROR MESSAGE: {e}')
                pass

if __name__ == '__main__':
    test('./archery.mp4')

Environment
- Towhee version(e.g. v0.1.3 or 8b23a93):latest (CPU)
- OS(Ubuntu or CentOS):
- CPU/Memory:
- GPU:
- Others:

Anything else?
No response

@binbinlv
Fixed with updated operator. Please test with the latest operator.

Fixed and closed.


Try inlining our objc backflip

@swift-ci please benchmark

Performance: -O

Regression
OLD
NEW
DELTA
RATIO

EqualStringSubstring
39
42
+7.7%
0.93x (?)

EqualSubstringSubstringGenericEquatable
39
42
+7.7%
0.93x (?)

EqualSubstringString
39
42
+7.7%
0.93x (?)

Improvement
OLD
NEW
DELTA
RATIO

NSStringConversion.MutableCopy.LongUTF8
683
622
-8.9%
1.10x (?)

Code size: -O
Performance: -Osize

Regression
OLD
NEW
DELTA
RATIO

LessSubstringSubstring
39
43
+10.3%
0.91x

RandomShuffleLCG2
416
448
+7.7%
0.93x (?)

EqualSubstringSubstring
39
42
+7.7%
0.93x (?)

EqualStringSubstring
39
42
+7.7%
0.93x (?)

EqualSubstringSubstringGenericEquatable
39
42
+7.7%
0.93x (?)

EqualSubstringString
39
42
+7.7%
0.93x

LessSubstringSubstringGenericComparable
39
42
+7.7%
0.93x

Array2D
6992
7520
+7.6%
0.93x (?)

Improvement
OLD
NEW
DELTA
RATIO

NSError
188
175
-6.9%
1.07x (?)

Code size: -Osize
Performance: -Onone

Regression
OLD
NEW
DELTA
RATIO

DataToStringMedium
6850
7700
+12.4%
0.89x (?)

UTF8Decode_InitFromCustom_contiguous_ascii_as_ascii
457
504
+10.3%
0.91x (?)

StringWordBuilderReservingCapacity
2710
2960
+9.2%
0.92x (?)

StringWordBuilder
2760
3000
+8.7%
0.92x

UTF8Decode_InitFromBytes_ascii_as_ascii
486
527
+8.4%
0.92x (?)

Improvement
OLD
NEW
DELTA
RATIO

String.data.LargeUnicode
199
179
-10.1%
1.11x (?)

FindString.Loop1.Substring
858
794
-7.5%
1.08x

Code size: -swiftlibs

How to read the data
The tables contain differences in performance which are larger than 8% and
differences in code size which are larger than 1%.
If you see any unexpected regressions, you should consider fixing the
regressions before you merge the PR.
Noise: Sometimes the performance results (not code size!) contain false
alarms. Unexpected regressions which are marked with '(?)' are probably noise.
If you see regressions which you cannot explain you can try to run the
benchmarks again. If regressions still show up, please consult with the
performance team (@eeckstein).

Hardware Overview
  Model Name: Mac Pro
  Model Identifier: MacPro6,1
  Processor Name: 12-Core Intel Xeon E5
  Processor Speed: 2.7 GHz
  Number of Processors: 1
  Total Number of Cores: 12
  L2 Cache (per Core): 256 KB
  L3 Cache: 30 MB
  Memory: 64 GB


Two different paths considered as duplicated

I have defined two paths /users/{id} and /users/{uuid} and those are considered as duplicated. That part of code https://github.com/apigee-127/swagger-tools/blob/master/lib/specs.js#L262-L278
var normalizePath = function (path) {
  var matches = path.match(/\{(.*?)\}/g);
  var argNames = [];
  var normPath = path;

  if (matches) {
    _.each(matches, function (match, index) {
      normPath = normPath.replace(match, '{' + index + '}');
      argNames.push(match.replace(/[{}]/g, ''));
    });
  }

  return {
    path: normPath,
    args: argNames
  };
};

normalizes paths (e.g. both /users/{id} and /users/{uuid} becoming /users/{0}) disregarding at least name but also type and format of those parameters causing this https://github.com/apigee-127/swagger-tools/blob/master/lib/specs.js#L965-L969 part of code
var nPath = normalizePath(name);

    // Validate duplicate resource path
    if (seenPaths.indexOf(nPath.path) > -1) {
      createErrorOrWarning('DUPLICATE_API_PATH', 'API path (or equivalent) already defined: ' + name, pPath,
                           results.errors);
}

to throw an error.

Found that issue to comment on that subject https://github.com/apigee-127/swagger-tools/issues/7. Seems like it's by design?


Numbers tab throws error with CE

The number tab throws an error and doesnt open when trying to open it with CE installed
Log: https://gist.github.com/b4e91c215a80f2009a2fbd1580d3a885

If this is still a thing: blame CE =)


"Help" module doesn't display correctly in IE11

Tested on Ketcher v.2.2.1-136-gf081b9ce
Steps to reproduce:

Launch Ketcher in IE11.
Click the 'Help' button.

Expected result: The "Help" module is displayed correctly in the modal window.

Actual result: The "Help" module is displayed outside the modal window.

Can not reproduce. Fixed in other tasks

Release/2.3 The issue is closed as fixed.


GPU Driver Issue with Hyprland?

I just installed nixos and hyprland on my m2 mbp but when i try to run hyprland, i get a blank screen and an error that says:
(EE) could not connect to wayland serverd1 (Device or resource busy)so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri/)dri)

Partially solved the issue by enabling
hardware.asahi.useExperimentalGPUDriver but now hyprland is kinda buggy and i have to pass --impure when building because of pure evaluation mode

See solved Issue #229

See solved Issue #229

yeah, saw that issue but i still have the issue and the patch seems to have been merged to nixpkgs

ok i fully fixed the issue. when i clicked my touchbar, i realized that the cursor moved and that hyprland was trying to extend the screen to the touchbar. i then installed tiny-dfr and voila! all the flickering and stuff gone!

Should be fixed with the updated nixpkgs in the latest release.


E6E1: As a Marketplacemaintainer I can resolve conflicts, so users have a safe and fair marketplace.

Abstract:
In a Swarm City marketplace a request becomes a deal when both parties agree to the deal, and are equally invested in it.
Both Seeker and Provider may put the deal in a state of conflict. This means the funds are locked, and only the Marketplacemaintainer can decide how the funds will be paid out.
How it could work:
When a deal is in state "Disputed", the Marketplacemaintainer will see the deal on top of the marketplacelist. On the detail view, the Marketplacemaintainer now can enter the chat to figure out what went wrong, and resolve the disputed deal.
The Marketplacemaintainer chooses what portion of the escrowed funds get returned to Provider and Seeker.
What it looks like:

When a deal is in conflict (1), directly below the request, the Marketplacemaintainer sees:

a horizontal divider line
the reply of the Provider, consisting of:

reply description
Datetime
black checkmark (small) and (amount) and 'DAI'
avatar
name an "•" and ProviderRep* and "SWR" (blue)
*visually presented simple as "SWR"

a horizontal divider line
a chat-button
copy "This deal is in conflict."
smaller copy "You were added to the chat."
big button, copy "resolve"
a red border

When the maintainer taps the resolve-button, the detailview of the item changes to show the resolve-view (2). This view consists of:

a horizontal divider line
the reply of the Provider, consisting of:

reply description
Datetime
black checkmark (small) and (amount) and 'DAI'
avatar
name an "•" and ProviderRep* and "SWR" (blue)
*visually presented simple as "SWR"

a horizontal divider line
percentage the Seeker will receive
amount of tokens the Seeker will receive
Seeker avatar
Seeker name an "•" and SeekerRep* and "SWR" (blue)
*visually presented simple as "SWR"
a slider with green dragpoint
percentage the Provider will receive
amount of tokens the Provider will receive
Provider avatar
Provider name an "•" and ProviderRep* and "SWR" (blue)
*visually presented simple as "SWR"
black Xmark (cancelbutton)
Big white iconbutton with blue V-mark (confirmbutton)

On this view, the maintainer can decide how to divide the funds among Seeker and Provider by:

dragging the slider (which makes the percentages and amount changes instantly on release)
tapping on a percentage, which turns into an input field (slider and amount change when new value is input here)
tapping on an amount, which turns into an input field (slider and percentage change when new value is input here)

When the maintainer wants to confirm this division and carry it out, they tap the white iconbutton with blue Vmark. This will change the view to resolve-conflict page (3).
The copy on resolve-conflict page (3) is "You're about to send [Seekeramount] DAI to [Seeker] and [Provideramount] DAI to [Provider].". The small copy is "This can not be undone."
When the maintainer taps the big white button with blue V-mark, they trigger the resolve-conflict password (4) for signing the transaction.
When the white button of resolve-conflict-password (4) is enabled and tapped by the user, the page changes to resolve-conflict-progress (5).
resolve-conflict-progress (5) is a processing page, in this case the copy is "Payout is being processed."

In Conflict Marketplace and Item Views

Resolved Conflict View

Once the transaction is processed, the user will automatically be routed to the conflict-resolved page. The Marketplacemaintainer sees:

timestamp of when deal was put in conflict
a “servicemessage” with copy: "Conflict resolved"
Marketplacemainter Avatar, followed by the copy "You resolved the conflict by paying out the deal.
Provider Avatar, followed by copy "[Provider name] was paid [provider payout amount] DAI."
Seeker Avatar, followed by copy ""[Seeker name] was paid [seeker payout amount] DAI."
Copy "see on ethplorer" that links to transaction hash.

Resolved Conflict item-list view

Desktop view:

Reference to #192 which is, when a deal put into conflict by a user, the marketplace owner gets added to the deal's chat.


Optional support of Oracle substitution variables

In SQL*Plus code (as well as for some IDEs, and libraries, like DevArt ODAC) it's possible to specify "substitition" variables, like shown below
SELECT * FROM DUAL WHERE &subval

where subval can be presented as remaining part of SQL text, lile text " NOT EXISTS (SELECT NULL FROM ... " and so on. Most close analogue are C macroses.
Those variables are well-described here: https://blogs.oracle.com/opal/entry/sqlplus_101_substitution_varia
we need to implement such optional support for ocilib as well (it MUST be disabled by default for compatibility reason).
Oracle's OCI level seems does not support those substitition variables, from my understanding such support could be implemented at client level only

Hi,
Can't you use OCI_ExecuteFmt() or OCI_PrepareFmt() methods that accepts the token %m ?
It performs the same feature.
Vincent

Example:
OCI_ExecuteStmtFmt(st, "select sysdate from %m", "dual");

I think it addresses your request
Regards,
Vincent

Technically that is related, but is not the same.
Point is to support SQL*Plus scripts as is. %m is too far away

Sorry to intrude, but I don't think OCILIB should try to implement SQLPlus. There's much more to supporting SQLPlus scripts than substitution variables. And I, for one, do not need all that code in my programs.

If you don't understand how to use macroses (the substitution variables) - it does not mean that this feature is not required at all. For more mature libraries this feature is standard and has been available for years:
You can see it there, for an example:
https://www.devart.com/odac/docs/?work_macros.htm

Basically these macros provided by devart, for example, are equivalent to %m token when using OCI_PrepareFmt().
Can you point what you can do with devart macros and you can't do in OCILIB ?

It's not equalent.
%m implies hardcoded order of passwed variables into the function call.
while the macroses/substitution variables are dynamic - that way I can write code which will handle any SQL, any number of variables, depending on user imput.
also %m is positional parameter (order matters), and for multiple instances of the same variable, like
CREATE TABLE test TABLESPACE &tablespace  lob (c) STORE AS BASICFILE (TABLESPACE &tablespace)

vs
CREATE TABLE test TABLESPACE %m lob (c) STORE AS BASICFILE segname (TABLESPACE %m)

If will have to pass tablespace name twice.
For some cases the task will become even unreachable, because number of partitions can vary, and I can't predict how many %m parames I will have to pass into function (for macroses approach I will have to pass just single variable &tablespace, which will be instantiated multiple times in resulting code)
CREATE TABLE sales
  ( prod_id       NUMBER(6)
  , cust_id       NUMBER
  , time_id       DATE
  , channel_id    CHAR(1)
  , promo_id      NUMBER(6)
  , quantity_sold NUMBER(3)
  , amount_sold   NUMBER(10,2)
  )
 PARTITION BY RANGE (time_id)
 ( PARTITION p2015 VALUES LESS THAN (DATE '01-APR-2006') TABLESPACE &tablespace._p2015
 , PARTITION p2016 VALUES LESS THAN (DATE '01-JUL-2006') TABLESPACE &tablespace._p2016
 , PARTITION p2017 VALUES LESS THAN (DATE '01-OCT-2006') TABLESPACE &tablespace._p2017
 , PARTITION p2018 VALUES LESS THAN (DATE '01-JAN-2007') TABLESPACE &tablespace._p2018
 );

So %m similar, but not even close to the macroses power, and does not meet our needs.
Will you object against pull request? I can prepare code next week (I had been implemented, but I need to review/merge from ocilib 3.12x branch, it could take some time).

Please, don't turn OCILIB into a generic string processing library!

By default ocilib does not parse input sql strings, unlike most other libs
(such as otl for instance) for performance reasons.
Of course i could add something like oci_setsqlvariable() and statement
objects could check if any are stored and then perform substitutions. Why
not. But it will still impact all statements even with ni macro in sql
statement...
About pull request, i am not against from the moment contributors give up
their rights as it is a pain in case of license change.
It's not equalent.
%m implies hardcoded order of passwed variables into the function call.
while the macroses/substitution variables are dynamic - that way I can
write code which will handle any SQL, any number of variables, depending on
user imput.
also %m is positional parameter (order matters), and for multiple instances
of the same variable, like
CREATE TABLE test TABLESPACE &tablespace  lob (c) STORE AS BASICFILE
(TABLESPACE &tablespace)
vs
CREATE TABLE test TABLESPACE %m lob (c) STORE AS BASICFILE segname
(TABLESPACE %m)
If will have to pass tablespace name twice.
For some cases the task will become even unreachable, because number of
partitions can vary, and I can't predict how many %m parames I will have to
pass into function (for macroses approach I will have to pass just single
variable &tablespace, which will be instantiated multiple times in
resulting code)
CREATE TABLE sales
( prod_id       NUMBER(6)
, cust_id       NUMBER
, time_id       DATE
, channel_id    CHAR(1)
, promo_id      NUMBER(6)
, quantity_sold NUMBER(3)
, amount_sold   NUMBER(10,2)
)
PARTITION BY RANGE (time_id)
( PARTITION p2015 VALUES LESS THAN (DATE '01-APR-2006') TABLESPACE
&tablespace._p2015
, PARTITION p2016 VALUES LESS THAN (DATE '01-JUL-2006') TABLESPACE
&tablespace._p2016
, PARTITION p2017 VALUES LESS THAN (DATE '01-OCT-2006') TABLESPACE
&tablespace._p2017
, PARTITION p2018 VALUES LESS THAN (DATE '01-JAN-2007') TABLESPACE
&tablespace._p2018
);
So %m similar, but not even close to the macroses power, and does not meet
our needs.
Will you object against pull request? I can prepare code next week (I had
been implemented, but I need to review/merge from ocilib 3.12x branch, it
could take some time).
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/vrogier/ocilib/issues/43#issuecomment-218699868

I will see what i can do about it.
I would interested in your definition of more mature libraries ?
Aging ?  Feature coverage ?  Power ?  Bug free ? More expensive ?
Commercial ?  What else ?
First, ocilib is the only open source oracle library running on all oracle
platforms and accessible from any language.
Second, it supports 99 %  of oci api features.
Rare are the libraries to provide a such coverage, especially open source
ones.
Third, ocilib is about 9 years old and used in pretty much in every
computing areas where oracle is involded, from medical, banking,
industries, transports, and so on. Thus I consider ocilib as a mature
library.
Fourth, when you compare devart odac features with ocilib, the gap is
pretty smalll in the scope of oci support.
Last, but not least, , devart odac cost minimum 1500 $ to start working
with. And they must have an deal agreement with oracle corp in order to
provide an implementation of oracle wired protocol (otherwise it's
illegal). Ocilib costs zero. They run a business, not me.
Thus, you cannot compare an open source library with a commercial product.
Especially when this product is only available in C++ and Pascal where as
the open source run anywhere from any language.
Personally, i think that ocilib does not have much to envy to odac.
I'm opened as usual for any bug report or enhancement request, for sure  : )
I will study your request about variables (and other ones) as I did for
your request about handling strings with null characters that I've
addressed.
It is just that, filling suddently the tracker with enhancement requests
stating that the lib seems not mature enought and shall support features
brought by commercial products for free, is a bit abrupt  ; )
Adding  variable sibstitution support is quite simple and requires only few
methods.
For exposing OCINumber, it requires a more consequent work, especially for
the C++ api.
For direct path, I need to investigate what I can do.
I will update each request asap with more information !
Best regards
By default ocilib does not parse input sql strings, unlike most other libs
(such as otl for instance) for performance reasons.
Of course i could add something like oci_setsqlvariable() and statement
objects could check if any are stored and then perform substitutions. Why
not. But it will still impact all statements even with ni macro in sql
statement...
About pull request, i am not against from the moment contributors give up
their rights as it is a pain in case of license change.
It's not equalent.
%m implies hardcoded order of passwed variables into the function call.
while the macroses/substitution variables are dynamic - that way I can
write code which will handle any SQL, any number of variables, depending on
user imput.
also %m is positional parameter (order matters), and for multiple instances
of the same variable, like
CREATE TABLE test TABLESPACE &tablespace  lob (c) STORE AS BASICFILE
(TABLESPACE &tablespace)
vs
CREATE TABLE test TABLESPACE %m lob (c) STORE AS BASICFILE segname
(TABLESPACE %m)
If will have to pass tablespace name twice.
For some cases the task will become even unreachable, because number of
partitions can vary, and I can't predict how many %m parames I will have to
pass into function (for macroses approach I will have to pass just single
variable &tablespace, which will be instantiated multiple times in
resulting code)
CREATE TABLE sales
( prod_id       NUMBER(6)
, cust_id       NUMBER
, time_id       DATE
, channel_id    CHAR(1)
, promo_id      NUMBER(6)
, quantity_sold NUMBER(3)
, amount_sold   NUMBER(10,2)
)
PARTITION BY RANGE (time_id)
( PARTITION p2015 VALUES LESS THAN (DATE '01-APR-2006') TABLESPACE
&tablespace._p2015
, PARTITION p2016 VALUES LESS THAN (DATE '01-JUL-2006') TABLESPACE
&tablespace._p2016
, PARTITION p2017 VALUES LESS THAN (DATE '01-OCT-2006') TABLESPACE
&tablespace._p2017
, PARTITION p2018 VALUES LESS THAN (DATE '01-JAN-2007') TABLESPACE
&tablespace._p2018
);
So %m similar, but not even close to the macroses power, and does not meet
our needs.
Will you object against pull request? I can prepare code next week (I had
been implemented, but I need to review/merge from ocilib 3.12x branch, it
could take some time).
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/vrogier/ocilib/issues/43#issuecomment-218699868

Could the following suite your needs ?
New methods
OCI_VariableStore * OCI_VariableStoreCreate();
boolean OCI_VariableStoreFree(OCI_VariableStore *store);
boolean OCI_VariableStoreClear(OCI_VariableStore *store);
boolean OCI_VariableStoreSetValue(const otext *name, const otext *value);
const otext * OCI_VariableStoreGetValue(const otext *name);
boolean OCI_VariableStoreAddStatement(OCI_VariableStore *store, OCI_Statement *stmt);
boolean OCI_VariableStoreRemoveStatement(OCI_VariableStore *store, OCI_Statement *stmt);

Use case
OCI_VariableStore *store = OCI_VariableStoreCreate();
OCI_VariableStoreSetValue("table", "all_users");
OCI_VariableStoreSetValue("column", "username");
OCI_Statement *st = OCI_StatementCreate(con);
OCI_VariableStoreAddStatement(store, st);
OCI_Prepare(st, "select &column from &table where &column = :1");
OCI_BindString(st, ":1", str, sizeof(str));
OCI_Execute(st);
OCI_VariableStoreRemoveStatement(store, st);
OCI_VariableStoreFree(store);

Sorry for offtopic, I did not say that ocilib is not mature. I just said that ODAC libs (and users) have had the macroses for years, and it's a bit strange that ocilib still does not provide it (a bit less mature, but it fixable :).
Also those functions are available in FireDAC (AnyDAC derivative).
http://docs.embarcadero.com/products/rad_studio/firedac/uADCompClient_TADQuery_Macros.html
So such macro idea is not something unique - as I know lot of people use its benefit.
All those Delphi libs are commerical ones, right, I don't know any production ready free one. Though I don't think that such things are related to the techical part of the issue.

I'd implement API as just single simple call:
OCI_BindSubstitution(st, "&tablename", str, sizeof(str));

and/or
OCI_BindMacro(st, "&tablename", str); // as far as the str is practically always NULL terminated string

OCI_Prepare(), subsequently, could see that at least one OCI_BindSubstitition() call was performed, so the underlying query is &substitution aware and developer knows what he does.
Once that "substitution aware" flag is set by OCI_BindSubstitition(), then the OCI_Prepare() can start building of the internal SQL string which will be finally passed to server. OCI_StatementClose() could dispose that internal string from heap later.
Adding the checking into the OCI_Prepare() and OCI_StatementClose()
 if (stmt->substituted)

practically will not affect performance; the stmt->substituted field will be false by default, of course.
Also please note, that macroses can be nested, like
OCI_BindSubstitution(st, "&where", "&table..&column != 0");
OCI_BindSubstitution(st, "&table", "all_users");
OCI_BindSubstitution(st, "&column", "user_id");
OCI_Prepare(st, "select &&table..&column &table._&column, '&where' expr from &table where &where");

and resulting query need to be built as follows (strings to be replaced in loop untill nothing will be found):
select all_users.user_id all_users_user_id,  'all_users.user_id != 0' expr from all_users where all_users.user_id != 0

I'm sorry, but I still don't see why this string manipulation functionality should be implemented in a database interface library. A regexp_replace (possibly in a loop until no more matches are found - to cater for nested macros) should do nicely.
And just to clear any doubts here: yes, I understand perfectly well what SQL*Plus substitution variables are and how to use them in SQL*Plus. I also use the functionality you describe quite often in C - I just use a library function to do the macro expansions before I call OCILIB; I also use that same library function for other things, like generating localised boilerplate texts to display to the user - should I now go and refactor my code to use OCILIB's macro expansion for the strings that happen to be SQL, or maybe start insisting that the message display library implement macro expansion functionality, too?
Please, do not complicate the API more than necessary and resist the scope creep - even if it is easy to implement now, that is code that needs to be maintained and debugged and regression-tested with every future change!

FladoToo,

Regexp replacement is not the same, as well as %m. I need to use the same SQL text in SQL*Plus, TOAD, PL/SQL Developer, wherever. If each tool will use own implementation of the string substitution/macro expansion it will quickly become support and debug nightmare: rather than just copy/pasting values I will have to do the regexp replacement manually in SQL IDE. That is not convenient in general.

I don't understand which complication do you mean. We just need to add one single additional and optional call. If you don't need or don't want to use it - just don't make the call, nothing will change to you. The same is true for regressions and so on. Nothing changes, as it's just an enhancement. But of course we need to add... additional regression tests just for the new functionality.

Message displaying need to show original SQL text, not expanded one. Developer must know what he does. Also it should be possible to retreive the resulting text, using separate call, like OCI_GetExpandedSql

dbpm,
I think there's some misunderstanding here. Let me try to clear it:

OCILIB is not a tool in the sense that SQLPlus, Toad, etc. are, and it hopefully never will be. You want some tool functionality incorporated in the library to make your debugging easier; I may want other tool functionality implemented (e.g., COPY, or set autotrace trace statistics, or @) using the exact same argument - where should the line be drawn? If you want an API that can take an SQLPlus script and execute it the same way SQL*Plus does, you've come to the wrong place.
more code=(potentially) more bugs, harder maintenance, more effort for new features ("yes, this new feature would be nice, but how it will work with substitution variables?") even if nobody uses it.
I mean messages unrelated to SQL, as in
msg_en="Customer &c. is not allowed to do this";
msg_de="Kunde &c. darf das nicht";
I already have a function that expands the macro named "c" in these strings. I can use the same function for expanding macros in SQL.

COPY is SQL*Plus only unique feature, no one known OCI related library implements it, the same is true for SET AUTOTRACE, @ and so on, nobody requests to support that, so referenning to them is just kind of counterproductive verbal speculation, sorry.
ok, less code (ideally - empty .c) produces no bugs and easier in maintenance, it's really good point, can't disagree
It's good to you that you already have this function, but probably it's good time to share the functionality to others, isn’t it?

Substitution variables are a SQL*Plus feature, too. So your argument
boils down to "some other OCI libraries have it, so OCILIB must have it,
too." I personally don't think every library should make the same mistakes,
so for me this argument is not convincing.
Sadly, the function in question is provided by a proprietary
closed-source library, so I don't have the actual code. But my point is, it
is a string processing library, and not a OCI library or a message
processing library.

Cheers!
Flado
On 25 May 2016 17:02, "dbpm"<EMAIL_ADDRESS>wrote:

COPY is SQL*Plus only unique feature, no one known OCI related library
implements it, the same is true for SET AUTOTRACE, @ and so on, nobody
requests to support that, so referenning to them is just kind of
counterproductive verbal speculation, sorry.
ok, less code (ideally - empty .c) produces no bugs and easier in
maintenance, it's really good point, can't disagree
It's good to you that you already have this function, but probably it's
good time to share the functionality to others, isn’t it?

—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/vrogier/ocilib/issues/43#issuecomment-221585478

every library should make the same mistakes

It's really hard to understand why you have decided that substitution/macros functionality it is a mistake.
Macroses in C/C++ also are the kind of mistakes? Just because Java or Swift suddenly decided to do not implement them? Ok.
Let's rewrite ocilib without any macroses, then let's see how the code will look.
I still don't get your point, sorry.

My point is simple: macro expansion is a string processing functionality which should be implemented in a string processing library. OCILIB is not a string processing library. Ergo, macro expansion has no place in OCILIB.

Hi,
Quite an old topic.
I don't have any short/mid term plans for implementing this request that is not really in the scope of the OCILIB library.
I agree it would be a 'nice to have" but I've got many other stuff to do in OCLIB prior to that.
Thus i'm closing this enhancement request for  the moment.


Some services fail to start (unexpected SIGKILL)

First time trying out this HA plugin, and I'm seeing
s6-rc: info: service init-paperless successfully started
s6-rc: info: service paperless: starting
s6-rc: info: service paperless successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
Paperless-ngx docker container starting...
Installing languages...
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8788 kB]
Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [13.8 kB]
Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [169 kB]
Fetched 9225 kB in 4s (2397 kB/s)
Reading package lists...
Package tesseract-ocr-eng already installed!
Package tesseract-ocr-deu already installed!
Creating directory scratch directory /tmp/paperless
Adjusting permissions of paperless files. This may take a while.
Waiting for Redis...
Connected to Redis broker.
Apply database migrations...
Operations to perform:
  Apply all migrations: account, admin, auditlog, auth, authtoken, contenttypes, django_celery_results, documents, guardian, paperless, paperless_mail, sessions, socialaccount
Running migrations:
  No migrations to apply.
Running Django checks
System check identified no issues (0 silenced).
Did not create superuser, a user josxa already exists
Executing /usr/local/bin/paperless_cmd.sh
2024-07-29 22:54:07,378 INFO Set uid to user 0 succeeded
2024-07-29 22:54:07,398 INFO supervisord started with pid 736
2024-07-29 22:54:08,403 INFO spawned: 'gunicorn' with pid 1312
2024-07-29 22:54:08,420 INFO spawned: 'gunicorn-ingress' with pid 1313
2024-07-29 22:54:08,439 INFO spawned: 'celery' with pid 1314
2024-07-29 22:54:08,443 INFO spawned: 'celery-beat' with pid 1315
2024-07-29 22:54:08,454 INFO spawned: 'consumer' with pid 1316
2024-07-29 22:54:08,472 INFO spawned: 'celery-flower' with pid 1317
Checking if we should start flower...
2024-07-29 22:54:08,571 INFO success: celery-flower entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
Not starting flower
2024-07-29 22:54:09,581 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-29 22:54:09,582 INFO success: gunicorn-ingress entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-29 22:54:09,583 INFO success: celery entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-29 22:54:09,583 INFO success: celery-beat entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-29 22:54:09,584 INFO success: consumer entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-29 22:54:09,585 INFO exited: celery-flower (exit status 0; expected)
[22:54:22] INFO: Starting NGinx....
celery beat v5.4.0 (opalescent) is starting.
2024-07-29 22:54:36,008 WARN exited: gunicorn-ingress (terminated by SIGKILL; not expected)
2024-07-29 22:54:36,091 INFO spawned: 'gunicorn-ingress' with pid 1534
2024-07-29 22:54:37,138 INFO success: gunicorn-ingress entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-29 22:54:53,349 WARN exited: gunicorn (terminated by SIGKILL; not expected)
2024-07-29 22:54:53,445 INFO spawned: 'gunicorn' with pid 1593
2024-07-29 22:54:54,492 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-29 22:55:00,472 WARN exited: consumer (terminated by SIGKILL; not expected)
2024-07-29 22:55:00,577 INFO spawned: 'consumer' with pid 1618
2024-07-29 22:55:01,630 INFO success: consumer entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-29 22:55:22,132 WARN exited: celery (terminated by SIGKILL; not expected)
2024-07-29 22:55:23,146 INFO spawned: 'celery' with pid 1711
2024-07-29 22:55:24,163 INFO success: celery entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-07-29 22:55:35,728 WARN exited: celery-beat (terminated by SIGKILL; not expected)
2024-07-29 22:55:35,876 INFO spawned: 'celery-beat' with pid 1738
2024-07-29 22:55:36,884 INFO success: celery-beat entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

gunicorn and celery appear to never come up properly and get caught in a failure loop. Is there any way to debug why they're failing? I have HA running in supervised mode on a VM.
My settings feel fairly standard:

I never tested this add-on outside HA OS it's maybe an OS dependent error, there's also some updates I haven't released yet, I'll check if everything works well and push a new release

Can you give futher information about your environnement ?
OS version, supervisor installation method, anything you may think is relevent, please

Alright so I'm running the thing on an Ubuntu machine within VirtualBox and the HA operating system install. Version is 2.05 with these HA versions:
Core
2024.1.1
Supervisor
2024.08.0
Operating System
11.5
Frontend
20240104.0

Oh, looking at the VirtualBox logs I'm actually seeing OOM errors. Let me see if I can assign some more and report back

Yup, that was it. 2GB were getting tight ;)
Sorry about that!


fix: coalesce function should return correct data type

Which issue does this PR close?

Closes #9458.
Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Some remaining test failures are unrelated. But some seem related. I'll keep looking into them.

Thanks @Dandandan


Northeast Forestry University

Please tell me how to get your approval，We are recognized by the Ministry of Education，So please help me.Can a screenshot of an Outlook web page prove？

@Code0401 I am sorry, I feel that there is some misunderstanding.

I do not doubt that you have an email address ending with @nefueducn.onmicrosoft.com.
I do not doubt that Northeast Forestry University is a recognized Chinese university.
The problem is that official internet domain of Northeast Forestry University is nefu.edu.cn, and the domain which you wish to add is nefueducn.onmicrosoft.com.
I need the proof which shows that Northeast Forestry University officially recognizes nefueducn.onmicrosoft.com as an email domain where Northeast Forestry University assigns email addresses from to Northeast Forestry University students.
The proof which you have submitted shows that you have an access to the email at nefueducn.onmicrosoft.com. It does not proof that addresses in nefueducn.onmicrosoft.com domain are assigned to students by the university. It also does not proof that the university recognizes this email domain as an official domain for the students.

And the most important: If you are the student of this university, you do not need to have the university added to SWOT repository. Please apply with official document ("OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students).

I'm an it manager，I can prove everything about my school，So why do Chinese universities seem to be treated differently?
What proof do you need, please tell me, I think it is impolite to close.
Thank you.

What kind of proof is possible, please tell me by example.
emmm,I don't know if it's impolite to speak like this in your country，thank you

This is an alias for nefu.edu.cn，I don't know how to express in English, I hope you can understand


Fixes infinite loop in TailedFile with long lines.

If a long line is encountered where the trailing newline is not in the buffer
and the buffer is not considered used enough to be cleaned an infinite loop
occurs.
Fix this by ignoring such lines and looping through until the next line is
found.

I'm not thrilled with the idea of skipping content, but this behaviour is preferable to a complete failure to process any more content at all.
This was time consuming to review without tests and I still have a relatively low level of confidence. What sort of testing have you given this, @foxdan?

Fair point, it was tested by running over a file without skip_to_end that was previously causing lockups.
Added a unittest for this and in fact it was returning the end of the longline, now fixed.

OK, thanks.


Add Chinese UI extract support and a small fix for tripletriad icon

Only a small fix.
some changes added.
Summary:

Tripletriad icon offset calibration.
Tried to added missing Aciton Cost Types, names from JobGuide on lodestone.
RepairItem now returns an Item rather than XivRow.
Small fix to allow SaintCoinach.Cmd to scan Chinese ui assets while using command ui and uiHD.

Quack-quack.

TT icon offset looks good 👍

Wow if  #44  is merged then some changes is required here

@ClayLivince aaand ofc I merged it before I saw your comment :/

Oh I have changed it


Update dev shell

Probably only I care, but:

Removes Hugo, now that we're on Laika
Sets up everything else
Uses the new typelevel-nix, so we can easily inherit future improvements

Remains fully opt-in.

[back from reboot]
Also fixes that Graal 8 packages a Node 12 which locks up my system on the JavaScript branches!


Stop using debugConfiguration.python

Fixes #10789

[x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
[x] Title summarizes what is changing.
[x] Has a news entry file (remember to thank yourself!).
[ ] Appropriate comments and documentation strings in the code.
[ ] Has sufficient logging.
[ ] Has telemetry for feature-requests.
[ ] Unit tests & system/integration tests are added/updated.
[ ] Test plan is updated as appropriate.
[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed).

Do we want to hot fix this?

cc: @IanMatthewHuff ^

@rchiodo @sadasant Yeah, I think so. It's low danger fix and a number of folks hit this before. I'll start the process.


Opening a f# dot net core 1.0 project sometimes gives strange errors

After a few seconds I sometimes get errors if I open a hello world f# dot net core 1.0 project. It does not happens always but often.
Steps to reproduce:

Install dotnet core 1.0
Create a f# project from command line with "dotnet new --lang f#"
Open in Visual Code with the Ionide plugin install
Say yes to installing required assets
Select file Program.fs
Wait a few seconds..

Then sometimes visual code will r.x. show the error "the type referenced though 'System.IO.TextWriter' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.IO'.
This error is not correct as the project will compile and run just fine.

Run dotnet build, try to edit file, errors should disappear .

Just tried again - this time on a Mac rather then Windows. Same problem. Did both a "dotnet build" and a "dotnet run", changed files and restarted. Seemed to work for 10-20 seconds then it gave the same error again.

Same problem
code: https://gist.github.com/angrydexterous/c5130e1fbb5c37b179f8133d90d0b397
Visual Studio Code : 1.3
Mono JIT compiler version 4.4.1
Ubuntu 16.04
Error
The type referenced through 'System.Threading.Tasks.Task`1' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Threading.Tasks'.at line 20 col 74

Can reproduce errors, no idea what's wrong. It might actually be some FCS problem

Great that it can be reproduced. It is a blocker for me. Had to put usage of ionide on pause.

Same here

Same here

Running into same issue :(

It's probably https://github.com/fsharp/FSharp.Compiler.Service/issues/619

Note that fsharp/FSharp.Compiler.Service#619 should be fixed by fsharp/FSharp.Compiler.Service#628 👏  (the PR isn't merged yet into FCS though)

I think FCS version we're using should contain fix... And project.json is dead anyway.


Sales order tests

Implement tests for Amount and Customer

Tests written for Amount and Customer classes of SalesOrder.
No tests written for SalesOrder yet; have added an issue to do this when we discuss feature flaws related to it.
Edited the validation_regex for amount to allow for cents, 123.5 and 123.45 are recognised, but 123.456 is not
Edited the validation_regex for customer to allow at most one space, so "john doe" is allowed, "john  doe" is not
Added note that toString representation of amount is temporary; to be changed as necessary for UI
Refactored date class; shifted it to a more general package as it is now shared by SalesOrder and Task classes

Codecov Report

Merging #72 (ba190d7) into master (96addd7) will increase coverage by 0.33%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master      #72      +/-   ##
============================================
+ Coverage     68.85%   69.19%   +0.33%
- Complexity      545      549       +4
============================================
  Files            95       95
  Lines          1782     1782
  Branches        204      204
============================================
+ Hits           1227     1233       +6
+ Misses          491      485       -6
  Partials         64       64

Impacted Files
Coverage Δ

.../seedu/address/logic/commands/EditTaskCommand.java
84.31% <ø> (ø)

...edu/address/logic/parser/AddTaskCommandParser.java
90.90% <ø> (ø)

...in/java/seedu/address/logic/parser/ParserUtil.java
98.48% <ø> (ø)

src/main/java/seedu/address/model/Date.java
70.00% <ø> (ø)

...in/java/seedu/address/model/salesorder/Amount.java
30.00% <ø> (+30.00%)
:arrow_up:

.../java/seedu/address/model/salesorder/Customer.java
30.00% <0.00%> (+30.00%)
:arrow_up:

...ava/seedu/address/model/salesorder/SalesOrder.java
0.00% <ø> (ø)

src/main/java/seedu/address/model/task/Task.java
70.83% <ø> (ø)

...in/java/seedu/address/storage/JsonAdaptedTask.java
55.17% <ø> (ø)

... and 1 more

Continue to review full report at Codecov.

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


Use dedicated service account for operator

Feature
The Shipwright operator currently deploys with the system/default service account, with attendant cluster roles/role bindings being assigned to a default service account that could be used by other workloads. We should not confer roles to service accounts that can be used by arbitrary workloads.
The operator's deployment should use its own dedicated service account that is provisioned by OLM.

This was fixed in #25


Live demo is dead

http://jsonplaceholder.typicode.com/
Application Error
An error occurred in the application and your page could not be served.
Please try again in a few moments.

If you are the application owner, check your logs for details.

Just letting you know. :-)

Hi @ghpabs,
Thanks a lot for letting me know :+1: , looking into it right now.

Thanks!

You're welcome :)


Bump up cni version to v1.0.1

Signed-off-by: Quan Tian<EMAIL_ADDRESS>

@tnqn do you think we could resurrect this PR? was there any technical reason you didn't follow though with it?

@tnqn do you think we could resurrect this PR? was there any technical reason you didn't follow though with it?

Sure, I will reopen it and continue the work. I did see some issues when bumpping up CNI version which made me defer it but I couldn't remember the details.

Superseded by https://github.com/antrea-io/antrea/pull/4425


Move migration into db directory

Codecov Report

Merging #470 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #470   +/-   ##
=====================================
  Coverage      73%    73%
=====================================
  Files          26     26
  Lines         615    615
=====================================
  Hits          449    449
  Misses        142    142
  Partials       24     24

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 3e0c8f8...30af94e. Read the comment docs.


Improve Navbar and Center 'Our Features' Section

Description: There are two UI improvements that I would like to suggest for the current project:
Navbar Alignment:
The "Waste Management" title in the navbar is currently positioned above the other menu items ("Upload", "Features", "Feedback", and "Contact").
I would like to align the "Waste Management" title next to these items, maintaining a cleaner and more cohesive navbar structure.
Center 'Our Features' Section:
The "Our Features" section currently appears left-aligned. To improve visual balance, I would like to center this section horizontally on the page if acceptable i would like to do this for other sections too.
Expected Behavior:
The navbar should display all items in one row, with "Waste Management" positioned before or next to the other menu items.
The "Our Features" section should be centrally aligned, with its content neatly centered in the available space.
Screenshots:

please assign this issue to me

Hi GarimaSingh0109
I have worked on the issue and  made the necessary changes .Here's a screenshot of the updated section for your review:

Please let me know if everything looks good, or if there are any further changes you'd like me to make  like aligning other sections ,before I proceed with creating a pull request.
Thanks!
Make sure to replace [Overseer's Name] with the actual name of the overseer and provide the screenshot link in place of link_to_screenshot.
You can then submit this comment in the issue discussion.

I would like to work on it.please assign it to me.


[NoSuchFieldError] --> mLayoutDirection

java.lang.NoSuchFieldError: no "I" field "mLayoutDirection" in class "Lk/e0/u2/j;" or its superclasses

@crazy1235 Did you solve this issue? I have similar error.
java.lang.NoSuchFieldError: no "[F" field "arr" in class "Lo/AndroidMenu_androidKt;" or its superclasses

Could you provide a callstack?

@NickGerleman Thank you for checking.
java.lang.NoSuchFieldError: no "[F" field "arr" in class "Lo/access$getBottomAppBarCutoutOffset$p;" or its superclasses
                                                                                at com.facebook.yoga.YogaNative.jni_YGNodeCalculateLayoutJNI(Native Method)
                                                                                at com.facebook.yoga.YogaNodeJNIBase.extraCallback(SourceFile:220)
                                                                                at o.getHandlePosition-tuRUvjQ$foundation_release.calculateLayout(SourceFile:466)
                                                                                at o.setValue$foundation_release.ICustomTabsCallback$Default(SourceFile:940)
                                                                                at o.setValue$foundation_release.ICustomTabsCallback$Default(SourceFile:662)
                                                                                at o.setValue$foundation_release.ICustomTabsCallback(SourceFile:623)
                                                                                at com.facebook.react.uimanager.UIManagerModule$4.runGuarded(SourceFile:842)
                                                                                at com.facebook.react.bridge.GuardedRunnable.run(SourceFile:30)
                                                                                at android.os.Handler.handleCallback(Handler.java:942)
                                                                                at android.os.Handler.dispatchMessage(Handler.java:99)
                                                                                at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(SourceFile:27)
                                                                                at android.os.Looper.loopOnce(Looper.java:201)
                                                                                at android.os.Looper.loop(Looper.java:288)
                                                                                at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run

Some of these methods, like com.facebook.yoga.YogaNodeJNIBase.extraCallback don't seem to exist (at least today, or in other GitHub searches).
But the other likely possibility is that NoSuchFieldError is being thrown by a Yoga measure function. Yoga layout may all into Java provided callbacks to provide measurements for leaf nodes (e.g. text). Yoga doesn't interact with anything akin to the class name mentioned here.

Same problem (after enabling dexguard / proguard):
Fatal Exception: java.lang.NoSuchFieldError: no "[F" field "arr" in class "Lcom/facebook/yoga/YogaNodeJNIFinalizer;" or its superclasses
       at com.facebook.yoga.YogaNative.jni_YGNodeCalculateLayoutJNI(YogaNative.java)
       at com.facebook.yoga.YogaNodeJNIBase.calculateLayout(YogaNodeJNIBase.java:220)
       at com.facebook.react.uimanager.ReactShadowNodeImpl.calculateLayout(ReactShadowNodeImpl.java:466)
       at com.facebook.react.uimanager.UIImplementation.calculateRootLayout(UIImplementation.java:940)
       at com.facebook.react.uimanager.UIImplementation.updateViewHierarchy(UIImplementation.java:662)
       at com.facebook.react.uimanager.UIImplementation.dispatchViewUpdates(UIImplementation.java:623)
       at com.facebook.react.uimanager.UIManagerModule$3.runGuarded(UIManagerModule.java:842)
       at com.facebook.react.bridge.GuardedRunnable.run(GuardedRunnable.java:30)
       at android.os.Handler.handleCallback(Handler.java:958)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
       at android.os.Looper.loopOnce(Looper.java:205)
       at android.os.Looper.loop(Looper.java:294)
       at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:228)
       at java.lang.Thread.run(Thread.java:1012)

@riccardo-welld this looks like a different issue, and stemming from the React Native build.
I confirmed that, the field is annotated with @DoNotStrip, and that RN's proguard config is configured not to obfuscate based on the annotation (using the same rules we use, to ship Yoga with proguard inside of Meta). https://github.com/facebook/react-native/blob/489df722b3b9b4106d53d853d9ff6d0a3f177254/packages/react-native/ReactAndroid/proguard-rules.pro#L73
I supsect your configuration may not be correctly using provided proguard rules by React Native. If you are still seeing this, and are able to create a repro, consider making a new issue in RN repo.


Fix InspectCode documentation

Replace ';' by ',' in C# object initializer

Hi @pmiossec, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, DNFBOT;

@pmiossec LGTM 👍. Left a minor comment, adjust, squash/rebase commit and I'll merge:+1:

done
On 1 July 2016 at 22:33, Mattias Karlsson<EMAIL_ADDRESS>wrote:

@pmiossec https://github.com/pmiossec LGTM 👍. Left a minor comment,
adjust, squash/rebase commit and I'll merge👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cake-build/cake/pull/1026#issuecomment-230041314, or mute
the thread
https://github.com/notifications/unsubscribe/AAcFpNKDf7_xQVDWqX1FWvjCDdMmmvCSks5qRXmegaJpZM4JDczD
.

@pmiossec merged, thanks for contributing 👍

No problems ;)
Continue the good work!


Refactoring NavigationRewritingExpressionVisitor

This isn't really a bug fix or a new feature so to speak. I set out to begin working on existing issues around navigations in queries and needed to wrap my head around the code, but I found it difficult to keep track of what was going on and how the behaviors of different things interacted. After some tip-toeing around, stepping through calls, and breaking some tests, I started to see what some of the little 'flags' meant and when they applied, so I wanted to separated their concerns and make their behavior a little more explicit.
I would like to work on some of the open issues concerning navigations by building upon this refactored code. I made sure all of the tests passed locally, please let me know what you think.

Hi @tuespetre, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

Just a heads up to anyone reading this, I plan to implement a solution for https://github.com/aspnet/EntityFramework/issues/3792 on top of this work; maybe that could help to explain the way I refactored the code here.


More detailed installa instructions

I have installed the library and loaded, but I need to disable ssl cert verify on Auth->finish method.
How do you suggest to modify the library classes?

\Choccybiccy\HumanApi\Auth is just an extension of \GuzzleHttp\Client, so you have access to any of the methods exposed by Guzzle.
In your scenario you could use:
$auth->setDefaultOption('verify', false);
$auth->finish();

Hope this helps. :)


Add some css feature  like React Style Helper

Is it possible to add some feature like React Style Helper?

I think i can pr for it.

We has support similar features for <style scope> and <style module>, what do you think is missing?

We has support similar features for <style scope> and <style module>, what do you think is missing?

oh，it doesn't work in my workspace, or am I missing some configuration item？

We has support similar features for <style scope> and <style module>, what do you think is missing?

@johnsoncodehk such as show stylesheet info when hover on classname. Has this feature been implemented？

And My workspace only show the info like this.

Show stylesheet in hover info is out of project scope, it will not built-in support in extension. But you can implement it by language service plugin API, see #1027.


Fix define global object for module loader

When the module load, global object is empty. case using the Browserify. This code that has been used even jQuery

Can you please add a better description for what you are fixing here, I want to try and understand what's not working, given that this patters is from https://github.com/umdjs/umd

For details, check it because it does not know. Sorry, I'm not good at much English.

Found relevant commit, thanks: https://github.com/jquery/jquery/commit/6de1d973a436282af7dfe3072924016c3cdc1984#diff-f1ebe0c2ce0a72c9131e854556761642

Tested with Browserify and this does fix the issue, thanks @sugarshin!

https://github.com/alexgibson/shake.js/releases/tag/v1.2.1

Thank you ask them to the verification!


Add Empty Clause For Start End Key

Add [empty] clause for functions start_key and end_key
in mango_idx_view.erl.
36579-empty-start-end-key

Closing this out as its not correct. If we can get a reproducer into the test suite then we can figure out a proper fix.


Remove keystone and apache role deps on serverspec

These got missed in the big change earlier.

:+1:

This actually passed, https://jenkins.openstack.blueboxgrid.com/job/Ursula_Test_PRs/1612/
We had a second jenkins server give the PR a try, and that one failed due to jenkins setup not being right. So merging this in based on the real jenkins passing.


Fix a space bug in clean_text

I mixed up FF with CR when reading an ASCII table. Bug reported via email.

bors r+